1"use strict";(self.webpackChunkyumapos_web_client_mobile=self.webpackChunkyumapos_web_client_mobile||[]).push([[7321],{67321(Qo,G,i){i.d(G,{ForgotPasswordComponent:()=>Yo});var A=i(60177),S=i(49769),O=i(17705),o=i(35547),a=i(85802),x=i(32271),h=i(89079),m=i(89417),L=i(65868),T=i(26920),B=i(40100),k=i(82798),W=i(37702),y=i(77339),j=i(59640),V=i(68018),$=i(8125),U=i(57786),X=i(23294),P=i(96354),R=i(73359),g=i(27198),E=i(89208),M=i(86884),Y=i(98620),K=i(67788),J=i(78884),Q=i(9284),b=i(28934),z=i(301),u=i(13810),F=i(48177),N=i(10621),H=i(45268),Z=i(6716),q=i(41566),oo=i(12560),w=i(30995),eo=i(84989),to=i(43223),f=i(44162),D=i(99170),no=i(90974),ro=i(43441),io=i(74728);function ao(e,r){if(1&e){const t=o.RV6();o.j41(0,"yp-page-back-button-panel",3),o.nI1(1,"translate"),o.bIt("backClick",function(){a.eBV(t);const s=o.XpG();return a.Njj(s.goBack())}),o.k0s()}2&e&&o.Y8G("title",o.bMT(1,1,"META.FORGOT_PASSWORD"))}function so(e,r){if(1&e){const t=o.RV6();o.j41(0,"div",4)(1,"button",5),o.bIt("click",function(){a.eBV(t);const s=o.XpG();return a.Njj(s.continueWithPhoneNumber())}),o.EFF(2),o.nI1(3,"translate"),o.k0s()()}2&e&&(o.R7$(2),o.SpI(" ",o.bMT(3,1,"COMMON.CONTINUE")," "))}function _o(e,r){if(1&e&&o.eu8(0,7),2&e){o.XpG(4);const t=o.sdS(2);o.Y8G("ngTemplateOutlet",t)}}function mo(e,r){if(1&e&&o.DNE(0,_o,1,1,"ng-container",21),2&e){const t=o.XpG(3);o.Y8G("ypProjectedHeader",t.AppLayoutHeaderIndex.last)}}function co(e,r){if(1&e&&(o.j41(0,"div",9),o.eu8(1,7),o.k0s()),2&e){o.XpG(3);const t=o.sdS(2);o.R7$(),o.Y8G("ngTemplateOutlet",t)}}function lo(e,r){if(1&e&&(o.j41(0,"mat-option",16)(1,"span",22),o.EFF(2),o.k0s()()),2&e){const t=r.$implicit;o.Y8G("value",t),o.R7$(2),o.SpI("+",t.countryCallingCode)}}function po(e,r){1&e&&(o.j41(0,"mat-error"),o.EFF(1),o.nI1(2,"translate"),o.k0s()),2&e&&(o.R7$(),o.JRh(o.bMT(2,1,"COMMON.PHONE_NUMBER.ERROR.REQUIRED")))}function uo(e,r){1&e&&(o.j41(0,"mat-error"),o.EFF(1),o.nI1(2,"translate"),o.k0s()),2&e&&(o.R7$(),o.JRh(o.bMT(2,1,"COMMON.PHONE_NUMBER.ERROR.INVALID")))}function fo(e,r){if(1&e&&(o.j41(0,"div",19),o.nrm(1,"yp-error",23),o.k0s()),2&e){const t=r.$implicit;o.R7$(),o.Y8G("serverResponseError",t)}}function Co(e,r){if(1&e&&(o.j41(0,"div",20),o.eu8(1,7),o.k0s()),2&e){o.XpG(3);const t=o.sdS(4);o.R7$(),o.Y8G("ngTemplateOutlet",t)}}function ho(e,r){if(1&e&&o.eu8(0,7),2&e){o.XpG(4);const t=o.sdS(4);o.Y8G("ngTemplateOutlet",t)}}function Po(e,r){if(1&e&&o.DNE(0,ho,1,1,"ng-container",24),2&e){const t=o.XpG(3);o.Y8G("ypProjectedFooter",t.AppLayoutFooterIndex.firstLevel)}}function go(e,r){if(1&e){const t=o.RV6();o.j41(0,"yp-fixed-header-footer"),o.nVh(1,mo,1,1,"ng-container",7),o.j41(2,"div",8),o.nVh(3,co,2,1,"div",9),o.j41(4,"h1",10),o.EFF(5),o.nI1(6,"translate"),o.k0s(),o.j41(7,"form",11),o.bIt("submit",function(){a.eBV(t);const s=o.XpG(2);return a.Njj(s.continueWithPhoneNumber())}),o.nrm(8,"input",12),o.j41(9,"div",13)(10,"mat-form-field",14)(11,"mat-select",15),o.Z7z(12,lo,3,2,"mat-option",16,o.fX1),o.k0s()(),o.j41(14,"mat-form-field",17)(15,"mat-label"),o.EFF(16),o.nI1(17,"translate"),o.k0s(),o.nrm(18,"input",18),o.nVh(19,po,3,3,"mat-error")(20,uo,3,3,"mat-error"),o.k0s()()(),o.Z7z(21,fo,2,1,"div",19,o.fX1),o.nVh(23,Co,2,1,"div",20),o.k0s(),o.nVh(24,Po,1,1,"ng-container",7),o.k0s()}if(2&e){const t=o.XpG(2);o.R7$(),o.vxM(t.appLayoutService.isDesktopLayout()?-1:1),o.R7$(2),o.vxM(t.appLayoutService.isDesktopLayout()?3:-1),o.R7$(2),o.SpI(" ",o.bMT(6,16,"CONFIRMATION.FORGOT_PASSWORD.PHONE_NUMBER_FORM.TITLE")," "),o.R7$(2),o.Y8G("formGroup",t.forgotPasswordFormGroup),o.R7$(3),o.Y8G("appearance","outline")("subscriptSizing","dynamic"),o.R7$(),o.Y8G("panelWidth","")("formControl",t.forgotPasswordFormGroup.controls.countryPhoneFormat),o.R7$(),o.Dyx(t.phoneService.availablePhoneFormats),o.R7$(2),o.Y8G("appearance","outline")("subscriptSizing","dynamic"),o.R7$(2),o.JRh(o.bMT(17,18,"COMMON.PHONE_NUMBER.LABEL")),o.R7$(2),o.Y8G("ypPhoneNumberFormattedInput",t.forgotPasswordFormGroup.controls.countryPhoneFormat.value.countryCallingCode)("formControl",t.forgotPasswordFormGroup.controls.phoneNumber),o.R7$(),o.vxM(t.forgotPasswordFormGroup.controls.phoneNumber.hasError("required")?19:t.forgotPasswordFormGroup.controls.phoneNumber.hasError("phoneNumber")?20:-1),o.R7$(2),o.Dyx(t.serverResponseErrors()),o.R7$(2),o.vxM(t.appLayoutService.isDesktopLayout()?23:-1),o.R7$(),o.vxM(t.appLayoutService.isDesktopLayout()?
1-1:24)}}function Eo(e,r){if(1&e&&(o.j41(0,"div",19),o.nrm(1,"yp-error",23),o.k0s()),2&e){const t=r.$implicit;o.R7$(),o.Y8G("serverResponseError",t)}}function To(e,r){if(1&e){const t=o.RV6();o.j41(0,"yp-fixed-header-footer",6)(1,"yp-action-confirmation-selection",25),o.bIt("changePhoneNumber",function(){a.eBV(t);const s=o.XpG(2);return a.Njj(s.changePhoneNumber())})("sendConfirmation",function(s){a.eBV(t);const p=o.XpG(2);return a.Njj(p.sendForgotPasswordCode(s))}),o.qex(2,26),o.EFF(3),o.nI1(4,"translate"),o.bVm(),o.qex(5,27),o.Z7z(6,Eo,2,1,"div",19,o.fX1),o.bVm(),o.k0s()()}if(2&e){const t=o.XpG(2),n=o.r8f(0);o.Y8G("footerUnderflowEnabled",!0),o.R7$(),o.Y8G("phoneNumber",n.phoneNumber)("confirmationTypes",n.availableConfirmationTypes),o.R7$(2),o.SpI(" ",o.bMT(4,4,"CONFIRMATION.FORGOT_PASSWORD.CONFIRMATION_TYPE_SELECTION.TITLE")," "),o.R7$(3),o.Dyx(t.serverResponseErrors())}}function Ro(e,r){if(1&e&&(o.j41(0,"div",19),o.nrm(1,"yp-error",23),o.k0s()),2&e){const t=r.$implicit;o.R7$(),o.Y8G("serverResponseError",t)}}function Fo(e,r){if(1&e){const t=o.RV6();o.j41(0,"yp-fixed-header-footer",6)(1,"div",8)(2,"yp-action-confirmation-header",28),o.bIt("changePhoneNumber",function(){a.eBV(t);const s=o.XpG(2);return a.Njj(s.changePhoneNumber())})("goBack",function(){a.eBV(t);const s=o.XpG(2);return a.Njj(s.goBackFromNewPasswordForm())}),o.k0s(),o.Z7z(3,Ro,2,1,"div",19,o.fX1),o.j41(5,"yp-action-confirmation-footer",29),o.bIt("changeConfirmationType",function(){a.eBV(t);const s=o.XpG(2);return a.Njj(s.changeConfirmationType())}),o.k0s()()()}if(2&e){const t=o.XpG(2),n=o.r8f(0);o.Y8G("footerUnderflowEnabled",!0),o.R7$(2),o.Y8G("phoneNumber",n.phoneNumber)("requestedConfirmations",n.requestedConfirmations),o.R7$(),o.Dyx(t.serverResponseErrors()),o.R7$(2),o.Y8G("requestedConfirmations",n.requestedConfirmations)("availableConfirmationTypes",n.availableConfirmationTypes)}}function wo(e,r){1&e&&(o.j41(0,"h1",10),o.EFF(1),o.nI1(2,"translate"),o.k0s()),2&e&&(o.R7$(),o.JRh(o.bMT(2,1,"CONFIRMATION.FORGOT_PASSWORD.NEW_PASSWORD_FORM.TITLE")))}function vo(e,r){if(1&e){const t=o.RV6();o.j41(0,"yp-action-confirmation-header",28),o.bIt("changePhoneNumber",function(){a.eBV(t);const s=o.XpG(3);return a.Njj(s.changePhoneNumber())})("goBack",function(){a.eBV(t);const s=o.XpG(3);return a.Njj(s.goBackFromNewPasswordForm())}),o.k0s()}if(2&e){o.XpG(3);const t=o.r8f(0);o.Y8G("phoneNumber",t.phoneNumber)("requestedConfirmations",t.requestedConfirmations)}}function Oo(e,r){1&e&&(o.j41(0,"mat-error"),o.EFF(1),o.nI1(2,"translate"),o.k0s()),2&e&&(o.R7$(),o.JRh(o.bMT(2,1,"CONFIRMATION.CODE.ERROR.REQUIRED")))}function yo(e,r){1&e&&(o.j41(0,"mat-error"),o.EFF(1),o.nI1(2,"translate"),o.k0s()),2&e&&(o.R7$(),o.JRh(o.bMT(2,1,"CONFIRMATION.CODE.ERROR.MIN_LENGTH")))}function Mo(e,r){1&e&&(o.j41(0,"mat-error"),o.EFF(1),o.nI1(2,"translate"),o.k0s()),2&e&&(o.R7$(),o.JRh(o.bMT(2,1,"CONFIRMATION.CODE.ERROR.MAX_LENGTH")))}function bo(e,r){1&e&&(o.j41(0,"mat-error"),o.EFF(1),o.nI1(2,"translate"),o.k0s()),2&e&&(o.R7$(),o.JRh(o.bMT(2,1,"CONFIRMATION.CODE.ERROR.INVALID")))}function No(e,r){1&e&&(o.j41(0,"mat-error"),o.EFF(1),o.nI1(2,"translate"),o.k0s()),2&e&&(o.R7$(),o.JRh(o.bMT(2,1,"CONFIRMATION.CODE.ERROR.EXPIRED")))}function Do(e,r){1&e&&(o.j41(0,"mat-error"),o.EFF(1),o.nI1(2,"translate"),o.k0s()),2&e&&(o.R7$(),o.JRh(o.bMT(2,1,"CONFIRMATION.CODE.ERROR.RESET")))}function Io(e,r){if(1&e&&(o.j41(0,"mat-form-field",17)(1,"mat-label"),o.EFF(2),o.nI1(3,"translate"),o.k0s(),o.nrm(4,"input",36),o.nVh(5,Oo,3,3,"mat-error")(6,yo,3,3,"mat-error")(7,Mo,3,3,"mat-error")(8,bo,3,3,"mat-error")(9,No,3,3,"mat-error")(10,Do,3,3,"mat-error"),o.k0s()),2&e){const t=o.XpG(4);o.Y8G("appearance","outline")("subscriptSizing","dynamic"),o.R7$(2),o.JRh(o.bMT(3,5,"CONFIRMATION.CODE.LABEL")),o.R7$(2),o.Y8G("formControl",t.newPasswordFormGroup.controls.code),o.R7$(),o.vxM(t.newPasswordFormGroup.controls.code.hasError("required")?5:t.newPasswordFormGroup.controls.code.hasError("minlength")?6:t.newPasswordFormGroup.controls.code.hasError("maxlength")?7:t.newPasswordFormGroup.controls.code.hasError("invalidCode")?8:t.newPasswordFormGroup.controls.code.hasError("codeExpired")?9:t.newPasswordFormGroup.controls.code.hasError("codeReset")?10:-1)}}function Go(e,r){1&e&&(o.j41(0,"mat-error"),o.EFF(1),o.nI1(2,"translate"),o.k0s()),2&e&&(o.R7$(),o.JRh(o.bMT(2,1,"CONFIRMATION.FORGOT_PASSWORD.PASSWORD.ERROR.REQUIRED")))}function Ao(e,r){1&e&&(o.j41(0,"mat-error"),o.EFF(1),o.nI1(2,"translate"),o.k0s()),2&e&&(o.R7$(),o.JRh(o.bMT(2,1,"CONFIRMATION.FORGOT_PASSWORD.PASSWORD.ERROR.LENGTH")))}function So(e,r){1&e&&(o.j41(0,"mat-error"),o.EFF(1),o.nI1(2,"translate"),o.k0s()),2&e&&(o.R7$(),o.JRh(o.bMT(2,1,"CONFIRMATION.FORGOT_PASSWORD.CONFIRM_PASSWORD.ERROR.INVALID")))}function xo(e,r){if(1&e){const t=o.RV6();o.j41(0,"form",33),o.bIt("submit",function(){a.eBV(t);const s=o.XpG(3),p=o.r8f(0);return a.Njj(s.setNewPassword(p.initialConfirmation.confirmationRequestDto))}),o.nrm(1,"input",12),o.nVh(2,Io,11,7,"mat-form-field",17),o.j41(3,"mat-form-field",17)(4,"mat-label"),o.EFF(5),o.nI1(6,"translate"),o.k0s(),o.nrm(7,"input",34),o.nVh(8,Go,3,3,"mat-error")(9,Ao,3,3,"mat-error"),o.k0s(),o.j41(10,"mat-form-field",17)(11,"mat-label"),o.EFF(12),o.nI1(13,"translate"),o.k0s(),o.nrm(14,"input",35),o.nVh(15,So,3,3,"mat-error"),o.k0s()()}if(2&e){const t=o.XpG(3),n=o.r8f(0);o.Y8G("formGroup",t.newPasswordFormGroup),o.R7$(2),o.vxM(n.initialConfirmation.confirmationRequestDto.confirmationCheckType!==t.ConfirmationCheckType.noCode?2:-1),o.R7$(),o.Y8G("appearance","outline")("subscriptSizing","dynamic"),o.R7$(2),o.JRh(o.bMT(6,13,"CONFIRMATION.FORGOT_PASSWORD.PASSWORD.LABEL")),o.R7$(2),o.Y8G("formControl",t.newPasswordFormGroup.controls.newPassword),o.R7$(),o.vxM(t.newPasswordFormGroup.controls.newPassword.hasError("required")?8:t.newPasswordFormGroup.controls.newPassword.hasError("minlength")?9:-1),o.R7$(2),o.Y8G("appearance","outline")("subscriptSizing","dynamic"),o.R7$(2),o.JRh(o.bMT(13,15,"CONFIRMATION.FORGOT_PASSWORD.CONFIRM_PASSWORD.LABEL")),o.R7$(2),o.Y8G("errorStateMatcher",t.passwordConfirmationErrorStateMatcher)("formControl",t.newPasswordFormGroup.controls.repeatPassword),o.R7$(),o.vxM(t.newPasswordFormGroup.hasError("passwordConfirmationTheSame")?15:-1)}}function Lo(e,r){if(1&e&&(o.j41(0,"div",19),o.nrm(1,"yp-error",23),o.k0s()),2&e){const t=r.$implicit;o.R7$(),o.Y8G("serverResponseError",t)}}function Bo(e,r){if(1&e&&(o.j41(0,"div",20),o.eu8(1,7),o.k0s()),2&e){o.XpG();const t=o.sdS(11);o.R7$(),o.Y8G("ngTemplateOutlet",t)}}function ko(e,r){if(1&e&&o.eu8(0,7),2&e){o.XpG(2);const t=o.sdS(11);o.Y8G("ngTemplateOutlet",t)}}function Wo(e,r){if(1&e&&o.DNE(0,ko,1,1,"ng-container",24),2&e){const t=o.XpG(3);o.Y8G("ypProjectedFooter",t.AppLayoutFooterIndex.firstLevel)}}function jo(e,r){if(1&e){const t=o.RV6();o.j41(0,"div",4)(1,"button",5),o.bIt("click",function(){a.eBV(t);const s=o.XpG(3),p=o.r8f(0);return a.Njj(s.setNewPassword(p.initialConfirmation.confirmationRequestDto))}),o.EFF(2),o.nI1(3,"translate"),o.k0s()()}2&e&&(o.R7$(2),o.SpI(" ",o.bMT(3,1,"CONFIRMATION.FORGOT_PASSWORD.BUTTON.SET_NEW_PASSWORD")," "))}function Vo(e,r){if(1&e){const t=o.RV6();o.j41(0,"yp-fixed-header-footer",6)(1,"div",8),o.nVh(2,wo,3,3,"h1",10)(3,vo,1,2,"yp-action-confirmation-header",30),o.nVh(4,xo,16,17,"form",31),o.Z7z(5,Lo,2,1,"div",19,o.fX1),o.j41(7,"yp-action-confirmation-footer",32),o.bIt("requestCodeAgain",function(s){a.eBV(t);const p=o.XpG(2);return a.Njj(p.sendForgotPasswordCode(s))})("changeConfirmationType",function(){a.eBV(t);const s=o.XpG(2);return a.Njj(s.changeConfirmationType())}),o.k0s(),o.nVh(8,Bo,2,1,"div",20),o.k0s(),o.nVh(9,Wo,1,1,"ng-container",7),o.k0s(),o.DNE(10,jo,4,3,"ng-template",null,2,o.C5r)}if(2&e){const t=o.XpG(2),n=o.r8f(0);o.Y8G("footerUnderflowEnabled",!0),o.R7$(2),o.vxM(n.initialConfirmation.confirmationRequestDto.confirmationCheckType===t.ConfirmationCheckType.noCode?2:3),o.R7$(2),o.vxM(n.initialConfirmation.confirmationType!==t.ConfirmationType.flashCallThenSms&&n.initialConfirmation.confirmationType!==t.ConfirmationType.sms&&n.initialConfirmation.isExpired?-1:4),o.R7$(),o.Dyx(t.serverResponseErrors()),o.R7$(2),o.Y8G("requestedConfirmations",n.requestedConfirmations)("availableConfirmationTypes",n.availableConfirmationTypes),o.R7$(),o.vxM(t.appLayoutService.isDesktopLayout()?8:-1),o.R7$(),o.vxM(t.appLayoutService.isDesktopLayout()?
1-1:9)}}function $o(e,r){if(1&e&&o.nVh(0,go,25,20,"yp-fixed-header-footer")(1,To,8,6,"yp-fixed-header-footer",6)(2,Fo,6,5,"yp-fixed-header-footer",6)(3,Vo,12,7),2&e){let t;const n=o.XpG(),s=o.r8f(0);o.vxM((t=s.forgotPasswordLayoutType)===n.ForgotPasswordLayoutType.phoneNumberForm?0:t===n.ForgotPasswordLayoutType.confirmationTypeSelection?1:t===n.ForgotPasswordLayoutType.noCodeVerification?2:t===n.ForgotPasswordLayoutType.newPasswordForm?3:-1)}}const Uo=e=>e.controls.repeatPassword.value===e.controls.newPassword.value?null:{passwordConfirmationTheSame:!0};class Xo{isErrorState(r,t){const n=t?.hasError("passwordConfirmationTheSame");return!!(r&&(r.invalid||n)&&(r.touched||t&&t.submitted))}}var c=function(e){return e[e.phoneNumberForm=0]="phoneNumberForm",e[e.confirmationTypeSelection=1]="confirmationTypeSelection",e[e.noCodeVerification=2]="noCodeVerification",e[e.newPasswordForm=3]="newPasswordForm",e}(c||{});let Yo=(()=>{class e{constructor(){this.appLayoutService=(0,a.WQX)(Y.T),this.cameFromLogin=(0,O.hFB)(!0),this.phoneService=(0,a.WQX)(Q.u),this.navigationActionsService=(0,a.WQX)(J.tg),this.store=(0,a.WQX)(j.il),this.changeDetectorRef=(0,a.WQX)(O.gRc),this.activatedRoute=(0,a.WQX)(W.nX),this.authenticationService=(0,a.WQX)(K.k),this.userPlatformService=(0,a.WQX)(z.s),this.subSinkService=(0,a.WQX)(b.z,{self:!0}),this.ForgotPasswordLayoutType=c,this.ConfirmationType=g.Y,this.ConfirmationCheckType=R.w,this.AppLayoutHeaderIndex=q.h,this.AppLayoutFooterIndex=Z.J,this.serverResponseErrors=(0,a.vPA)(void 0),this.forgotPasswordFormGroup=new m.gE({countryPhoneFormat:new m.MJ(this.phoneService.defaultPhoneFormat,{nonNullable:!0,validators:m.k0.required}),phoneNumber:new m.MJ("",{nonNullable:!0,validators:[m.k0.required,N.t.phoneNumber(this.phoneService.defaultPhoneFormat.countryCallingCode)]})}),this.newPasswordFormGroup=new m.gE({code:new m.MJ("",{nonNullable:!0,validators:[m.k0.required,m.k0.minLength(4),m.k0.maxLength(6)]}),newPassword:new m.MJ("",{nonNullable:!0,validators:[m.k0.required,m.k0.minLength(6)]}),repeatPassword:new m.MJ("",{nonNullable:!0,validators:m.k0.required})},Uo),this.passwordConfirmationErrorStateMatcher=new Xo,this.forgotPasswordLayoutType=(0,a.vPA)(c.phoneNumberForm);const t=(0,a.WQX)(o.Agw),n=(0,a.WQX)(y.En);(0,u.De)(!(0,A.Vy)(t));const s=this.store.select(D.gn),p=s.pipe((0,P.T)(_=>_?.phoneNumber)),Ko=s.pipe((0,P.T)(_=>_?.availableConfirmationTypes)),Jo=s.pipe((0,P.T)(_=>_?.newPasswordConfirmations)),v=(0,h.ot)(p,{requireSync:!0}),I=(0,h.ot)(Jo,{requireSync:!0});this.availableConfirmationTypes=(0,h.ot)(Ko,{requireSync:!0}),this.forgotPasswordViewModel=(0,x.EW)(()=>{let _;switch(this.forgotPasswordLayoutType()){case c.phoneNumberForm:_={forgotPasswordLayoutType:c.phoneNumberForm};break;case c.confirmationTypeSelection:{const l=v();(0,u.iY)(l);const d=this.availableConfirmationTypes();(0,u.iY)(d),_={forgotPasswordLayoutType:c.confirmationTypeSelection,phoneNumber:l,availableConfirmationTypes:d};break}case c.noCodeVerification:{const l=v();if(void 0!==l){(0,u.iY)(l);const d=I();(0,u.iY)(d);const C=this.availableConfirmationTypes();(0,u.iY)(C),_={forgotPasswordLayoutType:c.noCodeVerification,phoneNumber:l,availableConfirmationTypes:C,requestedConfirmations:d,initialConfirmation:(0,F.ov)(d)}}break}case c.newPasswordForm:{const l=v();if(void 0!==l){(0,u.iY)(l);const d=I();(0,u.iY)(d);const C=this.availableConfirmationTypes();(0,u.iY)(C),_={forgotPasswordLayoutType:c.newPasswordForm,phoneNumber:l,availableConfirmationTypes:C,requestedConfirmations:d,initialConfirmation:(0,F.ov)(d)}}break}}return _}),this.subSinkService.sink=this.forgotPasswordFormGroup.controls.countryPhoneFormat.valueChanges.subscribe(_=>{this.forgotPasswordFormGroup.controls.phoneNumber.setValue(""),this.changeDetectorRef.markForCheck()}),this.subSinkService.sink=(0,U.h)(this.forgotPasswordFormGroup.controls.countryPhoneFormat.valueChanges,this.forgotPasswordFormGroup.controls.phoneNumber.valueChanges).pipe((0,P.T)(()=>"+"+this.forgotPasswordFormGroup.controls.countryPhoneFormat.value.countryCallingCode+this.forgotPasswordFormGroup.controls.phoneNumber.value),(0,X.F)()).subscribe(_=>{this.store.dispatch(f.I.setRegistrationInfoPhoneNumber(_)),this.serverResponseErrors.set(void 0)}),this.subSinkService.sink=this.store.select(D.gn).subscribe(_=>{if(void 0!==_&&_.phoneNumber&&(0,$.h)(_.phoneNumber)){const l=H.X.parsePhoneNumber(_.phoneNumber);if(l){const d=this.phoneService.availablePhoneFormats.find(C=>C.countryCallingCode===l.countryCallingCode);d&&(this.forgotPasswordFormGroup.controls.countryPhoneFormat.setValue(d,{emitEvent:!1}),this.forgotPasswordFormGroup.controls.phoneNumber.setValidators([m.k0.required,N.t.phoneNumber(d.countryCallingCode)]),!1!==_.isExistingCustomer&&this.forgotPasswordFormGroup.controls.phoneNumber.setValue(l.phoneNumber,{emitEvent:!1})),this.changeDetectorRef.markForCheck()}}}),n.pipe((0,y.gp)(f.I.forgotPasswordNoCodeConfirmationConfirmed),(0,h.pQ)()).subscribe(_=>{this.forgotPasswordLayoutType.set(c.newPasswordForm)}),(0,a.QZP)(_=>{this.store.dispatch(f.I.forgotPasswordNoCodeConfirmationTrack()),_(()=>this.store.dispatch(f.I.forgotPasswordNoCodeConfirmationTrackCancel()))}),(0,a.QZP)(()=>{this.forgotPasswordLayoutType()===c.newPasswordForm&&this.newPasswordFormGroup.reset()}),(0,a.QZP)(()=>{const _=this.forgotPasswordViewModel();_?.forgotPasswordLayoutType===c.newPasswordForm&&(_.initialConfirmation.confirmationType===g.Y.callToVerify?this.newPasswordFormGroup.controls.code.disable():this.newPasswordFormGroup.controls.code.enable())})}goBack(){let t=this.cameFromLogin();if(this.activatedRoute.data){const n=this.activatedRoute.data.cameFromLogin;"boolean"==typeof n&&(t=n)}this.store.dispatch(t?this.navigationActionsService.getNavigateToLoginAction(void 0):this.navigationActionsService.getNavigateToRegistrationAction())}changePhoneNumber(){this.forgotPasswordLayoutType.set(c.phoneNumberForm)}continueWithPhoneNumber(){this.forgotPasswordFormGroup.invalid?this.forgotPasswordFormGroup.markAllAsTouched():(this.serverResponseErrors.set(void 0),this.subSinkService.sink=this.authenticationService.loadAvailableConfirmationTypesForRegistration(M.Q.mainScreenArea).subscribe(t=>
1{if(t.type===f.I.loadAvailableConfirmationTypesForRegistrationSuccess.type){const n=(0,F.Lr)(t.confirmationTypes);1===n.length?this.sendForgotPasswordCode(n[0]):this.forgotPasswordLayoutType.set(c.confirmationTypeSelection)}else this.serverResponseErrors.set(t.errors);this.changeDetectorRef.markForCheck()}))}goBackFromNewPasswordForm(){const t=this.availableConfirmationTypes();this.forgotPasswordLayoutType.set(t&&t.length>1?c.confirmationTypeSelection:c.phoneNumberForm),this.newPasswordFormGroup.reset()}changeConfirmationType(){this.forgotPasswordLayoutType.set(c.confirmationTypeSelection),this.newPasswordFormGroup.reset()}sendForgotPasswordCode(t){this.serverResponseErrors.set(void 0),this.subSinkService.sink=this.authenticationService.requestForgotPasswordConfirmation(t,M.Q.mainScreenArea).subscribe(n=>{n.type===f.I.requestForgotPasswordConfirmationSuccess.type?(this.forgotPasswordLayoutType.set(n.confirmationRequestDto.confirmationCheckType===R.w.noCode?c.noCodeVerification:c.newPasswordForm),[g.Y.telegram,g.Y.max].includes(t)&&4!==this.userPlatformService.userPlatformType&&window.open(n.confirmationRequestDto.linkForCustomer,"_blank")):this.serverResponseErrors.set(n.errors),this.changeDetectorRef.markForCheck()})}setNewPassword(t){this.newPasswordFormGroup.invalid?this.newPasswordFormGroup.markAllAsTouched():(this.serverResponseErrors.set(void 0),this.subSinkService.sink=this.authenticationService.setNewPassword(t.confirmationCheckType===R.w.noCode?{confirmationRequestId:t.confirmationRequestId}:{confirmationCode:this.newPasswordFormGroup.controls.code.value},this.newPasswordFormGroup.controls.newPassword.value).subscribe(n=>{n.type===f.I.setNewPasswordSuccess.type?this.store.dispatch(this.navigationActionsService.getNavigateToAfterPasswordRecoveredAction()):n.errors.some(s=>s.responseErrorCode===E.D.profileWrongVerificationCode)?this.newPasswordFormGroup.controls.code.setErrors({invalidCode:!0}):n.errors.some(s=>[E.D.profileVerificationCodeNotFound,E.D.profileVerificationCodeAlreadyExpired].includes(s.responseErrorCode))?this.newPasswordFormGroup.controls.code.setErrors({codeExpired:!0}):n.errors.some(s=>s.responseErrorCode===E.D.profileVerificationCodeReset)?this.newPasswordFormGroup.controls.code.setErrors({codeReset:!0}):this.serverResponseErrors.set(n.errors),this.changeDetectorRef.markForCheck()}))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=o.VBU({type:e,selectors:[["yp-forgot-password"]],inputs:{cameFromLogin:[1,"cameFromLogin"]},features:[o.Jv_([b.z])],decls:6,vars:2,consts:[["backButtonPanelTemplate",""],["phoneNumberBottomActionButtonsTemplate",""],["setNewPasswordBottomActionButtonsTemplate",""],[3,"backClick","title"],[1,"yp-bottom-buttons-wrapper"],["type","button",1,"yp-btn","yp-btn-lg","yp-btn-primary",3,"click"],[3,"footerUnderflowEnabled"],[3,"ngTemplateOutlet"],[1,"form-wrapper"],[1,"mb-3",2,"--yp-page-back-button-panel-padding-inline","0"],[1,"form-heading"],["novalidate","",1,"form-controls-wrapper",3,"submit","formGroup"],["type","submit",1,"d-none"],[1,"phone-number-controls"],[1,"phone-country-code",3,"appearance","subscriptSizing"],[1,"direction-ltr",3,"panelWidth","formControl"],[3,"value"],[3,"appearance","subscriptSizing"],["type","tel","id","tel-national","name","tel-national","autocomplete","tel-national","matInput","",1,"direction-ltr",3,"ypPhoneNumberFormattedInput","formControl"],[1,"my-2","mx-3"],[1,"mt-5"],[3,"ngTemplateOutlet",4,"ypProjectedHeader"],[1,"direction-ltr"],[3,"serverResponseError"],[3,"ngTemplateOutlet",4,"ypProjectedFooter"],[3,"changePhoneNumber","sendConfirmation","phoneNumber","confirmationTypes"],["projected-title",""],["projected-errors",""],[3,"changePhoneNumber","goBack","phoneNumber","requestedConfirmations"],[3,"changeConfirmationType","requestedConfirmations","availableConfirmationTypes"],[3,"phoneNumber","requestedConfirmations"],["novalidate","",1,"mb-4","form-controls-wrapper",3,"formGroup"],[3,"requestCodeAgain","changeConfirmationType","requestedConfirmations","availableConfirmationTypes"],["novalidate","",1,"mb-4","form-control
1s-wrapper",3,"submit","formGroup"],["type","password","id","new-password","name","new-password","autocomplete","new-password","matInput","",3,"formControl"],["type","password","autocomplete","new-password","matInput","",3,"errorStateMatcher","formControl"],["type","text","id","one-time-code","name","one-time-code","autocomplete","one-time-code","inputmode","numeric","maxlength","6","matInput","",3,"formControl"]],template:function(n,s){if(1&n&&(o.SS7(0),o.DNE(1,ao,2,3,"ng-template",null,0,o.C5r)(3,so,4,3,"ng-template",null,1,o.C5r),o.nVh(5,$o,4,1)),2&n){const p=o.bH3(s.forgotPasswordViewModel());o.R7$(5),o.vxM(p?5:-1)}},dependencies:[m.X1,m.qT,m.me,m.BC,m.cb,m.tU,m.l_,m.j4,T.rl,k.VO,L.wT,B.fg,T.nJ,T.TL,to.h,w.cU,oo.A,ro.T,io.a,no.i,w.J0,eo._,w.xp,S.T3,V.D9],encapsulation:2,changeDetection:0})}}return e})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.