PageSourceSearch

https://sushimoji.ru/1898.e8bf41457ec568b0.js

js sushimoji.ru collected 2026-10-07 18:13:08 UTC 62,653 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkyumapos_web_client_mobile=self.webpackChunkyumapos_web_client_mobile||[]).push([[1898],{1898(_n,Z,r){r.d(Z,{ACCOUNT_ROUTES:()=>bt});var N=r(63792),A=r(10467),o=r(85802),v=r(59640),w=r(54843),q=r(35060),j=r(2071),M=r(67788),R=r(78884);const nn=function(){var i=(0,A.A)(function*(m,e){const s=(0,o.WQX)(v.il),c=(0,o.WQX)(M.k),y=(0,o.WQX)(R.tg);return(yield c.resolveCustomerInfo()).customerInfoType!==j.v.authenticated||(s.dispatch(y.getNavigateToAfterLoginAction()),(0,w._)(q.t))});return function(e,s){return i.apply(this,arguments)}}();var x=r(37702);const P=function(){var i=(0,A.A)(function*(m,e){const s=(0,o.WQX)(M.k),c=(0,o.WQX)(x.Ix);return(yield s.resolveCustomerInfo()).customerInfoType!==j.v.authenticated||(console.log("[YP]","notLoggedInOrAnonymousGuard resolved with redirect"),c.parseUrl("/"))});return function(e,s){return i.apply(this,arguments)}}();var U=r(22806),tn=r(25558),Y=r(7673),F=r(44162),V=r(70792),on=r(91214),$=r(28673),en=r(70980),J=r(52906),G=r(96354),k=r(99170),X=r(86884),rn=r(65873);var b=r(67526),p=r(49769),h=r(17705),n=r(35547),I=r(89079),T=r(89417),O=r(26920),H=r(40100),W=r(82798),Q=r(65868),mn=r(46822),sn=r(68018),un=r(8125),l=r(84572),E=r(57786),f=r(23294),a=r(38008),C=r(15307),u=r(27198),_=r(89208),g=r(96645),S=r(98620),D=r(9284),z=r(28934),cn=r(301),B=r(48177),ln=r(64683),pn=r(10621),Tn=r(45268),gn=r(6716),Rn=r(73137),vn=r(12560),dn=r(30995),Fn=r(70578),In=r(43223),Nn=r(95373),An=r(34721),bn=r(66566),On=r(44170),Cn=r(46259),Mn=r(60177),fn=r(32271),En=r(77339),xn=r(73359),hn=r(13810),Sn=r(90974),Pn=r(43441),Gn=r(74728);function Dn(i,m){if(1&i&&(n.j41(0,"div",5),n.nrm(1,"yp-error",6),n.k0s()),2&i){const e=m.$implicit;n.R7$(),n.Y8G("serverResponseError",e)}}function Ln(i,m){if(1&i){const e=n.RV6();n.j41(0,"yp-fixed-header-footer",1)(1,"yp-action-confirmation-selection",2),n.bIt("changePhoneNumber",function(){o.eBV(e);const c=n.XpG();return o.Njj(c.changePhoneNumber.emit())})("sendConfirmation",function(c){o.eBV(e);const y=n.XpG();return o.Njj(y.requestOneTimePassword(c))}),n.qex(2,3),n.EFF(3),n.nI1(4,"translate"),n.bVm(),n.qex(5,4),n.Z7z(6,Dn,2,1,"div",5,n.fX1),n.bVm(),n.k0s()()}if(2&i){const e=n.XpG();n.Y8G("footerUnderflowEnabled",!0),n.R7$(),n.Y8G("phoneNumber",e.phoneNumber())("confirmationTypes",e.availableConfirmationTypes()),n.R7$(2),n.SpI(" ",n.bMT(4,4,"CONFIRMATION.ONE_TIME_PASSWORD.CONFIRMATION_TYPE_SELECTION.TITLE")," "),n.R7$(3),n.Dyx(e.serverResponseErrors())}}function Bn(i,m){1&i&&(n.j41(0,"mat-error"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&i&&(n.R7$(),n.JRh(n.bMT(2,1,"CONFIRMATION.CODE.ERROR.REQUIRED")))}function jn(i,m){1&i&&(n.j41(0,"mat-error"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&i&&(n.R7$(),n.JRh(n.bMT(2,1,"CONFIRMATION.CODE.ERROR.MIN_LENGTH")))}function $n(i,m){1&i&&(n.j41(0,"mat-error"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&i&&(n.R7$(),n.JRh(n.bMT(2,1,"CONFIRMATION.CODE.ERROR.MAX_LENGTH")))}function kn(i,m){1&i&&(n.j41(0,"mat-error"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&i&&(n.R7$(),n.JRh(n.bMT(2,1,"CONFIRMATION.CODE.ERROR.INVALID")))}function Xn(i,m){1&i&&(n.j41(0,"mat-error"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&i&&(n.R7$(),n.JRh(n.bMT(2,1,"CONFIRMATION.CODE.ERROR.EXPIRED")))}function Wn(i,m){1&i&&(n.j41(0,"mat-error"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&i&&(n.R7$(),n.JRh(n.bMT(2,1,"CONFIRMATION.CODE.ERROR.RESET")))}function Vn(i,m){if(1&i){const e=n.RV6();n.j41(0,"form",14),n.bIt("submit",function(){o.eBV(e);const c=n.XpG(3);return o.Njj(c.logInWithPasswordForm())}),n.nrm(1,"input",15),n.j41(2,"mat-form-field",16)(3,"mat-label"),n.EFF(4),n.nI1(5,"translate"),n.k0s(),n.nrm(6,"input",17),n.nVh(7,Bn,3,3,"mat-error")(8,jn,3,3,"mat-error")(9,$n,3,3,"mat-error")(10,kn,3,3,"mat-error")(11,Xn,3,3,"mat-error")(12,Wn,3,3,"mat-error"),n.k0s()()}if(2&i){const e=n.XpG(3);n.Y8G("formGroup",e.oneTimePasswordFormGroup),n.R7$(2),n.Y8G("appearance","outline")("subscriptSizing","dynamic"),n.R7$(2),n.JRh(n.bMT(5,6,"CONFIRMATION.CODE.LABEL")),n.R7$(2),n.Y8G("formControl",e.oneTimePasswordFormGroup.controls.oneTimePassword),n.R7$(),n.vxM(e.oneTimePasswordFormGroup.controls.oneTimePassword.hasError("required")?7:e.oneTimePasswordFormGroup.controls.oneTimePassword.hasError("minlength")?8:e.oneTimePasswordFormGroup.controls.oneTimePassword.hasError("maxlength")?9:e.oneTimePasswordFormGroup.controls.oneTimePassword.hasError("invalidCode")?10:e.oneTimePasswordFormGroup.controls.oneTimePassword.hasError("codeExpired")?11:e.oneTimePasswordFormGroup.controls.oneTimePassword.hasError("codeReset")?12:-1)}}function wn(i,m){if(1&i&&n.nVh(0,Vn,13,8,"form",13),2&i){n.XpG();const e=n.r8f(0),s=n.XpG();n.vxM(e.confirmationType!==s.ConfirmationType.flashCallThenSms&&e.confirmationType!==s.ConfirmationType.sms&&e.isExpired?-1:0)}}function Un(i,m){if(1&i&&(n.j41(0,"div",5),n.nrm(1,"yp-error",6),n.k0s()),2&i){const e=m.$implicit;n.R7$(),n.Y8G("serverResponseError",e)}}function Yn(i,m){if(1&i){const e=n.RV6();n.j41(0,"button",18),n.bIt("click",function(){o.eBV(e);const c=n.XpG(2);return o.Njj(c.skipRegistration())}),n.EFF(1),n.nI1(2,"translate"),n.k0s()}
12&i&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"SHOPPING_CART.SKIP_REGISTRATION")," "))}function Hn(i,m){if(1&i&&(n.j41(0,"div",11),n.eu8(1,12),n.k0s()),2&i){n.XpG();const e=n.sdS(13);n.R7$(),n.Y8G("ngTemplateOutlet",e)}}function Qn(i,m){if(1&i&&n.eu8(0,12),2&i){n.XpG(2);const e=n.sdS(13);n.Y8G("ngTemplateOutlet",e)}}function Jn(i,m){if(1&i&&n.DNE(0,Qn,1,1,"ng-container",19),2&i){const e=n.XpG(2);n.Y8G("ypProjectedFooter",e.AppLayoutFooterIndex.firstLevel)}}function zn(i,m){if(1&i){const e=n.RV6();n.j41(0,"div",20)(1,"button",21),n.bIt("click",function(){o.eBV(e);const c=n.XpG(3);return o.Njj(c.logInWithPasswordForm())}),n.EFF(2),n.nI1(3,"translate"),n.k0s()()}2&i&&(n.R7$(2),n.SpI(" ",n.bMT(3,1,"COMMON.CONTINUE")," "))}function Kn(i,m){if(1&i&&n.nVh(0,zn,4,3,"div",20),2&i){n.XpG();const e=n.r8f(0),s=n.XpG();n.vxM(e.confirmationType!==s.ConfirmationType.callToVerify?0:-1)}}function Zn(i,m){if(1&i){const e=n.RV6();n.SS7(0),n.j41(1,"yp-fixed-header-footer",1)(2,"div",7)(3,"yp-action-confirmation-header",8),n.bIt("changePhoneNumber",function(){o.eBV(e);const c=n.XpG();return o.Njj(c.changePhoneNumber.emit())})("goBack",function(){o.eBV(e);const c=n.XpG();return o.Njj(c.goBackFromPasswordForm())}),n.k0s(),n.nVh(4,wn,1,1),n.Z7z(5,Un,2,1,"div",5,n.fX1),n.j41(7,"yp-action-confirmation-footer",9),n.bIt("requestCodeAgain",function(c){o.eBV(e);const y=n.XpG();return o.Njj(y.requestOneTimePassword(c))})("changeConfirmationType",function(){o.eBV(e);const c=n.XpG();return o.Njj(c.changeConfirmationType())}),n.k0s(),n.nVh(8,Yn,3,3,"button",10),n.nI1(9,"async"),n.nVh(10,Hn,2,1,"div",11),n.k0s(),n.nVh(11,Jn,1,1,"ng-container",12),n.k0s(),n.DNE(12,Kn,1,1,"ng-template",null,0,n.C5r)}if(2&i){const e=n.XpG(),s=n.bH3(e.initialConfirmation());n.R7$(),n.Y8G("footerUnderflowEnabled",!0),n.R7$(2),n.Y8G("phoneNumber",e.phoneNumber())("requestedConfirmations",e.requestedConfirmations()),n.R7$(),n.vxM(s.confirmationRequestDto.confirmationCheckType!==e.ConfirmationCheckType.noCode?4:-1),n.R7$(),n.Dyx(e.serverResponseErrors()),n.R7$(2),n.Y8G("requestedConfirmations",e.requestedConfirmations())("availableConfirmationTypes",e.availableConfirmationTypes()),n.R7$(),n.vxM(n.bMT(9,10,e.showSkipRegistrationButton$)?8:-1),n.R7$(2),n.vxM(e.appLayoutService.isDesktopLayout()?10:-1),n.R7$(),n.vxM(e.appLayoutService.isDesktopLayout()?-1:11)}}let qn=(()=>{class i{constructor(){this.changePhoneNumber=(0,h.CGW)(),this.appLayoutService=(0,o.WQX)(S.T),this.store=(0,o.WQX)(v.il),this.changeDetectorRef=(0,o.WQX)(h.gRc),this.navigationActionsService=(0,o.WQX)(R.tg),this.authenticationService=(0,o.WQX)(M.k),this.userPlatformService=(0,o.WQX)(cn.s),this.subSinkService=(0,o.WQX)(z.z,{self:!0}),this.AppLayoutFooterIndex=gn.J,this.ConfirmationType=u.Y,this.ConfirmationCheckType=xn.w,this.oneTimePasswordFormGroup=new T.gE({oneTimePassword:new T.MJ("",{nonNullable:!0,validators:[T.k0.required,T.k0.minLength(4),T.k0.maxLength(6)]})}),this.showConfirmationTypeSelect=(0,o.vPA)(!0),this.serverResponseErrors=(0,o.vPA)(void 0);const e=(0,o.WQX)(C.$),s=(0,o.WQX)(n.Agw),c=(0,o.WQX)(En.En);(0,hn.De)(!(0,Mn.Vy)(s));const y=this.store.select(k.gn).pipe((0,ln.j_)()),K=(0,I.ot)(y,{requireSync:!0});this.availableConfirmationTypes=(0,fn.EW)(()=>{const L=K().availableConfirmationTypes;return(0,hn.iY)(L),L}),this.phoneNumber=(0,fn.EW)(()=>{const L=K().phoneNumber;return(0,hn.iY)(L),L}),this.requestedConfirmations=(0,fn.EW)(()=>K().loginWithOneTimePasswordConfirmations),this.initialConfirmation=(0,fn.EW)(()=>(0,B.ov)(this.requestedConfirmations())),this.showSkipRegistrationButton$=(0,l.z)([this.store.select(Cn.Xp).pipe((0,ln.eU)()),this.store.select(Cn.jW),this.navigationActionsService.authorizationNextPage$,y.pipe((0,G.T)(L=>L.loginWithOneTimePasswordConfirmations))]).pipe((0,G.T)(([L,Mt,xt,St])=>(0,B.HP)(e,L,Mt,xt)&&St.reduce((yn,Pt)=>Pt.confirmationType===u.Y.sms?yn+1:yn,0)>1));const Ot=(0,o.QZP)(()=>{1===this.availableConfirmationTypes().length&&this.showConfirmationTypeSelect.set(!1),Ot.destroy()});(0,o.QZP)(L=>{this.store.dispatch(F.I.oneTimePasswordNoCodeConfirmationTrack()),L(()=>this.store.dispatch(F.I.oneTimePasswordNoCodeConfirmationTrackCancel()))}),c.pipe((0,En.gp)(F.I.oneTimePasswordNoCodeConfirmationConfirmed),(0,I.pQ)()).subscribe(L=>{this.logInWithNoCodeConformation(L.confirmationRequestId)})}goBackFromPasswordForm(){this.availableConfirmationTypes().length>1?this.showConfirmationTypeSelect.set(!0):this.changePhoneNumber.emit(),this.oneTimePasswordFormGroup.controls.oneTimePassword.reset()}changeConfirmationType(){this.showConfirmationTypeSelect.set(!0),this.oneTimePasswordFormGroup.controls.oneTimePassword.reset()}skipRegistration(){this.store.dispatch(F.I.loginAnonymously(!1,[this.navigationActionsService.getNavigateToAfterLoginAction()]))}requestOneTimePassword(e){this.serverResponseErrors.set(void 0),this.subSinkService.sink=this.authenticationService.requestOneTimePassword(e,X.Q.fullScreen).subscribe(s=>{s.type===F.I.requestOneTimePasswordSuccess.type?(this.showConfirmationTypeSelect.set(!1),[u.Y.telegram,u.Y.max].includes(e)&&4!==this.userPlatformService.userPlatformType&&window.open(s.confirmationRequestDto.linkFor
1Customer,"_blank")):this.serverResponseErrors.set(s.errors)})}logInWithPasswordForm(){this.oneTimePasswordFormGroup.invalid?this.oneTimePasswordFormGroup.markAllAsTouched():(this.serverResponseErrors.set(void 0),this.subSinkService.sink=this.authenticationService.loginCustomer({password:this.oneTimePasswordFormGroup.controls.oneTimePassword.value}).subscribe(e=>{e.type===F.I.loginCustomerSuccess.type?this.store.dispatch(this.navigationActionsService.getNavigateToAfterLoginAction()):e.errors.some(s=>s.responseErrorCode===_.D.accountLoginFailed)?this.oneTimePasswordFormGroup.controls.oneTimePassword.setErrors({invalidCode:!0}):e.errors.some(s=>[_.D.profileVerificationCodeNotFound,_.D.profileVerificationCodeAlreadyExpired].includes(s.responseErrorCode))?this.oneTimePasswordFormGroup.controls.oneTimePassword.setErrors({codeExpired:!0}):e.errors.some(s=>s.responseErrorCode===_.D.profileVerificationCodeReset)?this.oneTimePasswordFormGroup.controls.oneTimePassword.setErrors({codeReset:!0}):this.serverResponseErrors.set(e.errors),this.changeDetectorRef.markForCheck()}))}logInWithNoCodeConformation(e){this.serverResponseErrors.set(void 0),this.subSinkService.sink=this.authenticationService.loginCustomer({confirmationRequestId:e}).subscribe(s=>{s.type===F.I.loginCustomerSuccess.type?this.store.dispatch(this.navigationActionsService.getNavigateToAfterLoginAction()):this.serverResponseErrors.set(s.errors),this.changeDetectorRef.markForCheck()})}static{this.\u0275fac=function(s){return new(s||i)}}static{this.\u0275cmp=n.VBU({type:i,selectors:[["yp-login-with-one-time-password"]],outputs:{changePhoneNumber:"changePhoneNumber"},features:[n.Jv_([z.z])],decls:2,vars:1,consts:[["bottomActionButtonsTemplate",""],[3,"footerUnderflowEnabled"],[3,"changePhoneNumber","sendConfirmation","phoneNumber","confirmationTypes"],["projected-title",""],["projected-errors",""],[1,"my-2","mx-3"],[3,"serverResponseError"],[1,"form-wrapper"],[3,"changePhoneNumber","goBack","phoneNumber","requestedConfirmations"],[3,"requestCodeAgain","changeConfirmationType","requestedConfirmations","availableConfirmationTypes"],["type","button",1,"yp-btn","yp-btn-lg","yp-btn-link","w-100","mb-3"],[1,"mt-5"],[3,"ngTemplateOutlet"],["novalidate","",1,"my-5","form-controls-wrapper",3,"formGroup"],["novalidate","",1,"my-5","form-controls-wrapper",3,"submit","formGroup"],["type","submit",1,"d-none"],[3,"appearance","subscriptSizing"],["type","text","id","one-time-code","name","one-time-code","autocomplete","one-time-code","inputmode","numeric","maxlength","6","matInput","",3,"formControl"],["type","button",1,"yp-btn","yp-btn-lg","yp-btn-link","w-100","mb-3",3,"click"],[3,"ngTemplateOutlet",4,"ypProjectedFooter"],[1,"yp-bottom-buttons-wrapper"],["type","button",1,"yp-btn","yp-btn-lg","yp-btn-primary",3,"click"]],template:function(s,c){1&s&&n.nVh(0,Ln,8,6,"yp-fixed-header-footer",1)(1,Zn,14,12),2&s&&n.vxM(c.showConfirmationTypeSelect()?0:c.requestedConfirmations().length?1:-1)},dependencies:[T.X1,T.qT,T.me,T.BC,T.cb,T.tU,T.l_,T.j4,O.TL,O.rl,H.fg,O.nJ,dn.cU,Pn.T,Sn.i,Gn.a,vn.A,dn.J0,p.T3,p.Jj,sn.D9],encapsulation:2,changeDetection:0})}}return i})();const nt=["passwordInput"];function tt(i,m){if(1&i){const e=n.RV6();n.j41(0,"yp-login-with-one-time-password",3),n.bIt("changePhoneNumber",function(){o.eBV(e);const c=n.XpG();return o.Njj(c.passwordForm.set(!1))}),n.k0s()}}function ot(i,m){1&i&&(n.j41(0,"h1",23),n.EFF(1),n.nI1(2,"translate"),n.k0s(),n.j41(3,"div",6),n.EFF(4),n.nI1(5,"translate"),n.k0s()),2&i&&(n.R7$(),n.SpI(" ",n.bMT(2,2,"LOGIN.TITLE.DELETE_ACCOUNT")," "),n.R7$(3),n.SpI(" ",n.bMT(5,4,"DELETE_ACCOUNT.LOGIN.TEXT")," "))}function et(i,m){1&i&&(n.j41(0,"div",6),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&i&&(n.R7$(),n.SpI(" ",n.bMT(2,1,"LOGIN.ANONYMOUS_CUSTOMER_REGISTERED")," "))}function it(i,m){if(1&i&&(n.j41(0,"h1",23),n.EFF(1),n.nI1(2,"translate"),n.k0s(),n.nVh(3,et,3,3,"div",6)),2&i){n.XpG(2);const e=n.r8f(3);n.R7$(),n.SpI(" ",n.bMT(2,2,"LOGIN.TITLE.DEFAULT")," "),n.R7$(2),n.vxM(e?3:-1)}}function rt(i,m){1&i&&(n.j41(0,"div",6),n.EFF(1," \u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u0434\u043b\u044f \u0432\u0445\u043e\u0434\u0430 \u0438\u043b\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 "),n.k0s())}function at(i,m){if(1&i){const e=n.RV6();n.j41(0,"mat-option",24),n.bIt("click",function(){o.eBV(e);const c=n.XpG(2);return o.Njj(c.countryCodeOptionClick())}),n.j41(1,"span",25),n.EFF(2),n.k0s()()}if(2&i){const e=m.$implicit;n.Y8G("value",e),n.R7$(2),n.SpI("+",e.countryCallingCode)}}function st(i,m){1&i&&(n.j41(0,"mat-error"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&i&&(n.R7$(),n.JRh(n.bMT(2,1,"COMMON.PHONE_NUMBER.ERROR.REQUIRED")))}function ut(i,m){1&i&&(n.j41(0,"mat-error"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&i&&(n.R7$(),n.JRh(n.bMT(2,1,"COMMON.PHONE_NUMBER.ERROR.INVALID")))}function ct(i,m){1&i&&(n.j41(0,"mat-error"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&i&&(n.R7$(),n.JRh(n.bMT(2,1,"COMMON.PASSWORD.ERROR.REQUIRED")))}function lt(i,m){1&i&&(n.j41(0,"mat-error"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&i&&(n.R7$(),n.JRh(n.bMT(2,1,"COMMON.PASSWORD.ERROR.INVALID")))}function mt(i,m){if(1&i&&(n.j41(0,"mat-form-field",15)(1,"mat-label"),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.nrm(4,"input",26,2),n.nVh(6,ct,3,3,"mat-error")(7,lt,3,3,"mat-error"),n.k0s()),2&i){const e=n.XpG(2);n.Y8G("appearance","outline")("subscriptSizing","dynamic"),n.R7$(2),n.JRh(n.bMT(3,5,"COMMON.PASSWORD.LABEL")),n.R7$(2),n.Y8G("formControl",e.loginFormGroup.controls.password),n.R7$(2),n.vxM(e.loginFormGroup.controls.password.hasError("required")?6:e.loginFormGroup.controls.password.hasError("invalidPassword")?7:-1)}}function pt(i,m){if(1&i&&(n.j41(0,"div",16),n.nrm(1,"yp-error",27),n.k0s()),2&i){const e=m.$implicit;n.R7$(),n.Y8G("serverResponseError",e)}}function dt(i,m){1&i&&(n.j41(0,"mat-error"),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&i&&(n.R7$(),n.JRh(n.bMT(2,1,"TERMS_AGREEMENT.CHECKBOX.ERROR")))}function Ct(i,m){if(1&i&&(n.j41(0,"div",17),n.nrm(1,"yp-legal-agreement",28),n.nI1(2,"translate"),n.nVh(3,dt,3,3,"mat-error"),n.k0s()),2&i){const e=n.XpG(2);n.R7$(),n.Y8G("legalAgreementType",e.tenant.legalAgreementSignIn)("continueButtonText",n.bMT(2,4,"COMMON.CONTINUE"))("formControl",e.loginFormGroup.controls.legalAgreement),n.R7$(2),n.vxM(e.loginFormGroup.controls.legalAgreement.invali
1d&&(e.loginFormGroup.controls.legalAgreement.dirty||e.loginFormGroup.controls.legalAgreement.touched)?3:-1)}}function ft(i,m){if(1&i){const e=n.RV6();n.j41(0,"div",19)(1,"button",29),n.bIt("click",function(){o.eBV(e);const c=n.XpG(3);return o.Njj(c.forgotPasswordClick())}),n.EFF(2),n.nI1(3,"translate"),n.k0s()()}2&i&&(n.R7$(2),n.SpI(" ",n.bMT(3,1,"SHOPPING_CART.FORGOT_PASSWORD")," "))}function _t(i,m){if(1&i&&n.nVh(0,ft,4,3,"div",19),2&i){const e=n.XpG(2);n.vxM(e.passwordForm()?0:-1)}}function ht(i,m){if(1&i){const e=n.RV6();n.j41(0,"div",19)(1,"button",29),n.bIt("click",function(){o.eBV(e);const c=n.XpG(2);return o.Njj(c.skipRegistration())}),n.EFF(2),n.nI1(3,"translate"),n.k0s()()}2&i&&(n.R7$(2),n.SpI(" ",n.bMT(3,1,"SHOPPING_CART.SKIP_REGISTRATION")," "))}function Tt(i,m){if(1&i&&(n.j41(0,"div"),n.EFF(1),n.k0s(),n.j41(2,"div"),n.EFF(3,"\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a: "),n.j41(4,"a",31),n.EFF(5,"Epos"),n.k0s(),n.EFF(6,"."),n.k0s(),n.j41(7,"div"),n.EFF(8," \u041a\u0430\u043a \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0430\u043a\u043a\u0430\u0443\u043d\u0442: "),n.j41(9,"ol")(10,"li"),n.EFF(11,"\u0412\u0432\u0435\u0441\u0442\u0438 \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438"),n.k0s(),n.j41(12,"li"),n.EFF(13,"\u041d\u0430\u0436\u0430\u0442\u044c \xab\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c\xbb"),n.k0s(),n.j41(14,"li"),n.EFF(15,"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u043e Telegram, \u0437\u0432\u043e\u043d\u043a\u043e\u043c \u0438\u043b\u0438 \u0441\u043c\u0441"),n.k0s(),n.j41(16,"li"),n.EFF(17,"\u0410\u043a\u043a\u0430\u0443\u043d\u0442 \u0441\u0442\u0430\u0432\u0438\u0442\u0441\u044f \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435"),n.k0s()()(),n.j41(18,"div"),n.EFF(19," \u041a\u0430\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0443\u0434\u0430\u043b\u044f\u044e\u0442\u0441\u044f: "),n.j41(20,"ul")(21,"li"),n.EFF(22,"\u0443\u0447\u0435\u0442\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f"),n.k0s(),n.j41(23,"li"),n.EFF(24,"\u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 (\u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430, \u0438\u043c\u044f)"),n.k0s(),n.j41(25,"li"),n.EFF(26,"\u0438\u0441\u0442\u043e\u0440\u0438\u044f \u0437\u0430\u043a\u0430\u0437\u043e\u0432 \u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438"),n.k0s()()(),n.j41(27,"div"),n.EFF(28," \u0421\u0440\u043e\u043a\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f: \u0434\u043e 7-\u043c\u0438 \u043a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u043d\u044b\u0445 \u0434\u043d\u0435\u0439 \u0441 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430 "),n.k0s(),n.j41(29,"a",32),n.nI1(30,"ypAddSavedUtmParams"),n.EFF(31," \u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 Play Store "),n.k0s(),n.j41(32,"a",32),n.nI1(33,"ypAddSavedUtmParams"),n.EFF(34," \u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0432 Play Store "),n.k0s()),2&i){const e=n.XpG(3),s=n.r8f(0);n.R7$(),n.SpI('\u042d\u0442\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0430 \u0434\u043b\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f "',s.appName??e.tenant.name,'", \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0432 Google Play.'),n.R7$(28),n.Y8G("href",n.bMT(30,3,s.androidAppHref),n.B4B),n.R7$(3),n.Y8G("href",n.bMT(33,5,"https://play.google.com/store/apps/developer?id=Epos"),n.B4B)}}function gt(i,m){if(1&i&&(n.j41(0,"div",20),n.nrm(1,"yp-app-links",30),n.nVh(2,Tt,35,7),n.k0s()),2&i){const e=n.XpG(2),s=n.r8f(0);
1n.R7$(),n.Y8G("mobileApp",s),n.R7$(),n.vxM(s.androidAppHref&&e.tenant.country===e.COUNTRY_ISO3166_CODES_MAP.RU?2:-1)}}function vt(i,m){if(1&i&&(n.j41(0,"div",21),n.eu8(1,22),n.k0s()),2&i){n.XpG();const e=n.sdS(31);n.R7$(),n.Y8G("ngTemplateOutlet",e)}}function Et(i,m){if(1&i&&n.eu8(0,22),2&i){n.XpG(2);const e=n.sdS(31);n.Y8G("ngTemplateOutlet",e)}}function yt(i,m){if(1&i&&n.DNE(0,Et,1,1,"ng-container",33),2&i){const e=n.XpG(2);n.Y8G("ypProjectedFooter",e.AppLayoutFooterIndex.firstLevel)}}function Rt(i,m){if(1&i){const e=n.RV6();n.j41(0,"div",34)(1,"button",35),n.bIt("click",function(){o.eBV(e);const c=n.XpG(2);return o.Njj(c.submitForm())}),n.EFF(2),n.nI1(3,"translate"),n.k0s()()}if(2&i){const e=n.XpG(2);n.R7$(2),n.SpI(" ",n.bMT(3,1,e.passwordForm()?"COMMON.SIGN_IN":"COMMON.CONTINUE")," ")}}function Ft(i,m){if(1&i){const e=n.RV6();n.j41(0,"yp-fixed-header-footer",4)(1,"div",5),n.nVh(2,ot,6,6)(3,it,4,4),n.nVh(4,rt,2,0,"div",6),n.j41(5,"form",7),n.bIt("submit",function(){o.eBV(e);const c=n.XpG();return o.Njj(c.submitForm())}),n.nrm(6,"input",8),n.j41(7,"div",9)(8,"mat-form-field",10)(9,"mat-select",11),n.bIt("opened",function(){o.eBV(e);const c=n.XpG();return o.Njj(c.countryCodeSelectOpened())})("closed",function(){o.eBV(e);const c=n.sdS(17),y=n.XpG();return o.Njj(y.countryCodeSelectClosed(c))}),n.Z7z(10,at,3,2,"mat-option",12,n.fX1),n.k0s()(),n.j41(12,"mat-form-field",13)(13,"mat-label"),n.EFF(14),n.nI1(15,"translate"),n.k0s(),n.nrm(16,"input",14,0),n.nVh(18,st,3,3,"mat-error")(19,ut,3,3,"mat-error"),n.k0s()(),n.nVh(20,mt,8,7,"mat-form-field",15),n.k0s(),n.Z7z(21,pt,2,1,"div",16,n.fX1),n.nVh(23,Ct,4,6,"div",17),n.j41(24,"div",18),n.nVh(25,_t,1,1),n.nVh(26,ht,4,3,"div",19),n.k0s(),n.nVh(27,gt,3,2,"div",20),n.nVh(28,vt,2,1,"div",21),n.k0s(),n.nVh(29,yt,1,1,"ng-container",22),n.k0s(),n.DNE(30,Rt,4,3,"ng-template",null,1,n.C5r)}if(2&i){const e=n.XpG(),s=n.r8f(0),c=n.r8f(6),y=n.r8f(9);n.Y8G("footerUnderflowEnabled",!0),n.R7$(2),n.vxM(y?2:3),n.R7$(2),n.vxM(e.tenant.country===e.COUNTRY_ISO3166_CODES_MAP.RU?4:-1),n.R7$(),n.Y8G("formGroup",e.loginFormGroup),n.R7$(3),n.Y8G("appearance","outline")("subscriptSizing","dynamic"),n.R7$(),n.Y8G("panelWidth","")("formControl",e.loginFormGroup.controls.countryPhoneFormat),n.R7$(),n.Dyx(e.phoneService.availablePhoneFormats),n.R7$(2),n.Y8G("appearance","outline")("subscriptSizing","dynamic"),n.R7$(2),n.JRh(n.bMT(15,21,"COMMON.PHONE_NUMBER.LABEL")),n.R7$(2),n.Y8G("ypPhoneNumberFormattedInput",e.loginFormGroup.controls.countryPhoneFormat.value.countryCallingCode)("formControl",e.loginFormGroup.controls.phoneNumber),n.R7$(2),n.vxM(e.loginFormGroup.controls.phoneNumber.hasError("required")?18:e.loginFormGroup.controls.phoneNumber.hasError("phoneNumber")?19:-1),n.R7$(2),n.vxM(e.passwordForm()?20:-1),n.R7$(),n.Dyx(e.serverResponseErrors()),n.R7$(2),n.vxM(e.tenant.legalAgreementSignIn!==e.TermsAgreementType.empty&&!e.passwordForm()&&e.tenant.bitSettingsDecoded.authorizationBySms?23:-1),n.R7$(2),n.vxM(e.tenant.bitSettingsDecoded.authorizationBySms?-1:25),n.R7$(),n.vxM(c?26:-1),n.R7$(),n.vxM(y&&s?27:-1),n.R7$(),n.vxM(e.appLayoutService.isDesktopLayout()?28:-1),n.R7$(),n.vxM(e.appLayoutService.isDesktopLayout()?-1:29)}}let It=(()=>{class i{constructor(){this.tenant=(0,o.WQX)(C.$),this.phoneService=(0,o.WQX)(D.u),this.appLayoutService=(0,o.WQX)(S.T),this.navigationActionsService=(0,o.WQX)(R.tg),this.store=(0,o.WQX)(v.il),this.changeDetectorRef=(0,o.WQX)(h.gRc),this.authenticationService=(0,o.WQX)(M.k),this.userPlatformService=(0,o.WQX)(cn.s),this.subSinkService=(0,o.WQX)(z.z,{self:!0}),this.passwordInputElementRef=(0,h.ebz)("passwordInput",{read:n.aKT}),this.AppLayoutFooterIndex=gn.J,this.TermsAgreementType=g.C,this.COUNTRY_ISO3166_CODES_MAP=a.t,this.customerWebSettings$=this.store.select(bn.gd).pipe((0,ln.eU)()),this.isDeleteAccountRequest$=this.navigationActionsService.authorizationNextPage$.pipe((0,G.T)(e=>e===R.eg.deleteAccount)),this.showSkipRegistrationButton$=(0,l.z)([this.store.select(Cn.Xp).pipe((0,ln.eU)()),this.store.select(Cn.jW),this.navigationActionsService.authorizationNextPage$]).pipe((0,G.T)(([e,s,c])=>(0,B.HP)(this.tenant,e,s,c))),this.passwordForm=(0,o.vPA)(!1),this.serverResponseErrors=(0,o.vPA)(void 0),this.countryCodeSelectedOnLastOpen=!1,this.showRegisteredCustomersAuthRequiredMessage$=this.tenant.bitSettingsDecoded.allowCreateOrderForRegisteredWithoutAuthorization?(0,Y.of)(!1):(0,l.z)([this.store.select(On.cA),this.store.select(k.gn)]).pipe((0,G.T)(([e,s])=>{if(e?.anonymousCustomerData?.customerPhoneInfo&&s?.phoneNumber&&(0,un.h)(s.phoneNumber)){const c=Tn.X.parsePhoneNumber(s.phoneNumber);return!!c&&c.countryCallingCode===e.anonymousCustomerData.customerPhoneInfo.countryCallingCode&&c.phoneNumber===e.anonymousCustomerData.customerPhoneInfo.phoneNumber&&!0===s.isExistingCustomer&&!0===s.isRegistrationComplete}return!1})),this.loginFormGroup=new T.gE({countryPhoneFormat:new T.MJ(this.phoneService.defaultPhoneFormat,{nonNullable:!0,validators:T.k0.required}),phoneNumber:new T.MJ("",{nonNullable:!0,validators:[T.k0.required,pn.t.phoneNumber(this.phoneService.defaultPhoneFormat.countryCallingCode)]}),password:new T.MJ("",{nonNullable:!0}),legalAgreement:new T.MJ(!1,{nonNullable:!0})}),this.loginFormGroup.controls.countryPhoneFormat.valueChanges.pipe((0,I.pQ)()).subscribe(e=>{this.loginFormGroup.controls.phoneNumber.setValue("",{emitEvent:!1})}),(0,E.h)(this.loginFormGroup.controls.countryPhoneFormat.valueChanges,this.loginFormGroup.controls.phoneNumber.valueChanges).pipe((0,I.pQ)(),(0,G.T)(()=>"+"+this.loginFormGroup.controls.countryPhoneFormat.value.countryCallingCode+this.loginFormGroup.controls.phoneNumber.value),(0,f.F)()).subscribe(e=>{this.store.dispatch(F.I.setRegistrationInfoPhoneNumber(e)),this.serverResponseErrors.set(void 0)}),this.store.select(k.gn).pipe((0,I.pQ)()).subscribe(e=>{if(void 0!==e&&(this.tenant.bitSettingsDecoded.authorizationBySms||this.passwordForm.set(!1),e.phoneNumber&&(0,un.h)(e.ph
1oneNumber))){const s=Tn.X.parsePhoneNumber(e.phoneNumber);if(s){const c=this.phoneService.availablePhoneFormats.find(y=>y.countryCallingCode===s.countryCallingCode);c&&(this.loginFormGroup.controls.countryPhoneFormat.setValue(c,{emitEvent:!1}),this.loginFormGroup.controls.phoneNumber.setValidators([T.k0.required,pn.t.phoneNumber(c.countryCallingCode)]),this.loginFormGroup.controls.phoneNumber.setValue(s.phoneNumber,{emitEvent:!1}),e.isExistingCustomer&&e.isRegistrationComplete&&(this.tenant.bitSettingsDecoded.authorizationBySms||this.passwordForm.set(!0)))}}this.changeDetectorRef.markForCheck()}),this.tenant.bitSettingsDecoded.authorizationBySms?this.store.select(k.gn).pipe((0,J.$)(),(0,mn.YQ)(()=>this.showRegisteredCustomersAuthRequiredMessage$)).subscribe(([e,s])=>{e?.isExistingCustomer&&e.isRegistrationComplete&&!s&&this.loadAvailableConfirmationTypes()}):(0,o.QZP)(()=>{const e=this.passwordForm();this.loginFormGroup.controls.password.setValidators(e?T.k0.required:null),this.loginFormGroup.controls.password.updateValueAndValidity()}),(0,h.uEv)(()=>{this.passwordInputElementRef()?.nativeElement.focus()})}countryCodeOptionClick(){this.countryCodeSelectedOnLastOpen=!0}countryCodeSelectOpened(){this.countryCodeSelectedOnLastOpen=!1}countryCodeSelectClosed(e){this.countryCodeSelectedOnLastOpen&&e.focus()}submitForm(){this.passwordForm()?this.login():this.getRegistrationInfo()}forgotPasswordClick(){this.store.dispatch(this.navigationActionsService.getNavigateToForgotPasswordAction())}skipRegistration(){this.store.dispatch(F.I.loginAnonymously(!1,[this.navigationActionsService.getNavigateToAfterLoginAction()]))}getRegistrationInfo(){this.loginFormGroup.invalid?this.loginFormGroup.markAllAsTouched():(this.serverResponseErrors.set(void 0),this.subSinkService.sink=this.authenticationService.loadRegistrationInfo().subscribe(e=>{e.type===F.I.loadRegistrationInfoSuccess.type?e.registrationInfo.isExistingCustomer&&e.registrationInfo.isRegistrationComplete?this.tenant.bitSettingsDecoded.authorizationBySms&&this.loadAvailableConfirmationTypes():this.store.dispatch(this.navigationActionsService.getNavigateToRegistrationAction()):this.serverResponseErrors.set(e.errors),this.changeDetectorRef.markForCheck()}))}loadAvailableConfirmationTypes(){this.subSinkService.sink=this.authenticationService.loadAvailableConfirmationTypesForRegistration(X.Q.mainScreenArea).subscribe(e=>{if(e.type===F.I.loadAvailableConfirmationTypesForRegistrationSuccess.type){const s=(0,B.Lr)(e.confirmationTypes);1===s.length?this.sendOneTimePassword(s[0]):this.passwordForm.set(!0)}else this.serverResponseErrors.set(e.errors);this.changeDetectorRef.markForCheck()})}sendOneTimePassword(e){this.subSinkService.sink=this.authenticationService.requestOneTimePassword(e,X.Q.mainScreenArea).subscribe(s=>{s.type===F.I.requestOneTimePasswordSuccess.type?(this.passwordForm.set(!0),[u.Y.telegram,u.Y.max].includes(e)&&4!==this.userPlatformService.userPlatformType&&window.open(s.confirmationRequestDto.linkForCustomer,"_blank")):this.serverResponseErrors.set(s.errors),this.changeDetectorRef.markForCheck()})}login(){this.loginFormGroup.invalid?this.loginFormGroup.markAllAsTouched():(this.serverResponseErrors.set(void 0),this.subSinkService.sink=this.authenticationService.loginCustomer({password:this.loginFormGroup.controls.password.value}).subscribe(e=>{e.type===F.I.loginCustomerSuccess.type?this.store.dispatch(this.navigationActionsService.getNavigateToAfterLoginAction()):e.errors.some(s=>s.responseErrorCode===_.D.accountLoginFailed)?this.loginFormGroup.controls.password.setErrors({invalidPassword:!0}):this.serverResponseErrors.set(e.errors),this.changeDetectorRef.markForCheck()}))}static{this.\u0275fac=function(s){return new(s||i)}}static{this.\u0275cmp=n.VBU({type:i,selectors:[["yp-login"]],viewQuery:function(s,c){1&s&&n.wEZ(c.passwordInputElementRef,nt,5,n.aKT),2&s&&n.NyB()},features:[n.Jv_([z.z])],decls:14,vars:21,consts:[["inputPhone",""],["bottomActionButtonsTemplate",""],["passwordInput",""],[3,"changePhoneNumber"],[3,"footerUnderflowEnabled"],[1,"form-wrapper"],[1,"form-subheading"],["novalidate","",1,"form-control
1s-wrapper",3,"submit","formGroup"],["type","submit",1,"d-none"],[1,"phone-number-controls"],[1,"phone-country-code",3,"appearance","subscriptSizing"],[1,"direction-ltr",3,"opened","closed","panelWidth","formControl"],[3,"value"],[1,"flex-grow-1",3,"appearance","subscriptSizing"],["type","tel","id","tel-national","name","tel-national","autocomplete","tel-national","matInput","",1,"direction-ltr",3,"ypPhoneNumberFormattedInput","formControl"],[3,"appearance","subscriptSizing"],[1,"my-2","mx-3"],[1,"my-3","fs-3","text-start"],[1,"my-3","text-center"],[1,"mb-3"],[1,"d-flex","flex-column","gap-2","my-3"],[1,"mt-5"],[3,"ngTemplateOutlet"],[1,"form-heading"],[3,"click","value"],[1,"direction-ltr"],["type","password","id","current-password","name","current-password","autocomplete","current-password","matInput","",3,"formControl"],[3,"serverResponseError"],[3,"legalAgreementType","continueButtonText","formControl"],["type","button",1,"yp-btn","yp-btn-sm","yp-btn-link",3,"click"],[3,"mobileApp"],["href","https://play.google.com/store/apps/developer?id=Epos","rel","noopener"],["rel","noopener","target","_blank",1,"yp-btn","yp-btn-primary",3,"href"],[3,"ngTemplateOutlet",4,"ypProjectedFooter"],[1,"yp-bottom-buttons-wrapper"],["type","button",1,"yp-btn","yp-btn-lg","yp-btn-primary",3,"click"]],template:function(s,c){1&s&&(n.SS7(0),n.nI1(1,"async"),n.nI1(2,"ypNotNull"),n.SS7(3),n.nI1(4,"async"),n.nI1(5,"ypNotNull"),n.SS7(6),n.nI1(7,"async"),n.nI1(8,"ypNotNull"),n.SS7(9),n.nI1(10,"async"),n.nI1(11,"ypNotNull"),n.nVh(12,tt,1,0,"yp-login-with-one-time-password")(13,Ft,32,23)),2&s&&(n.bH3(n.bMT(2,3,n.bMT(1,1,c.customerWebSettings$)).mobileApp),n.R7$(3),n.bH3(n.bMT(5,8,n.bMT(4,6,c.showRegisteredCustomersAuthRequiredMessage$))),n.R7$(3),n.bH3(n.bMT(8,13,n.bMT(7,11,c.showSkipRegistrationButton$))),n.R7$(3),n.bH3(n.bMT(11,18,n.bMT(10,16,c.isDeleteAccountRequest$))),n.R7$(3),n.vxM(c.tenant.bitSettingsDecoded.authorizationBySms&&c.passwordForm()?12:13))},dependencies:[T.X1,T.qT,T.me,T.BC,T.cb,T.l_,T.j4,O.rl,W.VO,Q.wT,H.fg,O.nJ,O.TL,In.h,dn.cU,vn.A,Fn.F,qn,Rn.W,p.T3,dn.J0,p.Jj,sn.D9,Nn.v,An.T],encapsulation:2,changeDetection:0})}}return i})();const Nt=function(){var i=(0,A.A)(function*(m,e){const s=(0,o.WQX)(M.k),c=(0,o.WQX)(x.Ix),y=yield s.resolveCustomerInfo();return!(y.customerInfoType!==j.v.authenticated||y.customerProfile.isDeviceVerified&&y.customerProfile.contacts.find(K=>2===K.contactType)?.isConfirmed)||(console.log("[YP]","phoneNumberConfirmationGuard resolved with redirect"),c.parseUrl("/"))});return function(e,s){return i.apply(this,arguments)}}(),At=function(){var i=(0,A.A)(function*(m,e){const s=(0,o.WQX)(x.Ix);return!((0,o.WQX)(C.$).bitSettingsDecoded.authorizationBySms&&!s.currentNavigation()?.extras.skipLocationChange)||s.parseUrl("/"+N.G.account.path+"/"+N.G.account.children.login.path)});return function(e,s){return i.apply(this,arguments)}}(),bt=[{path:N.G.account.children.login.path,component:It,canActivate:[nn],resolve:[$.p],data:N.G.account.children.login.metadata},{path:N.G.account.children.forgotPassword.path,loadComponent:()=>r.e(7321).then(r.bind(r,67321)).then(i=>i.ForgotPasswordComponent),canActivate:[P],resolve:[$.p],data:{...N.G.account.children.forgotPassword.metadata,cameFromLogin:!0}},{path:N.G.account.children.recoverPassword.path,loadComponent:()=>r.e(7321).then(r.bind(r,67321)).then(i=>i.ForgotPasswordComponent),canActivate:[P],resolve:[$.p],data:{...N.G.account.children.recoverPassword.metadata,cameFromLogin:!1}},{path:N.G.account.children.phoneConfirmation.path,loadComponent:()=>r.e(6086).then(r.bind(r,66086)).then(i=>i.PhoneNumberConfirmationComponent),canActivate:[Nt],resolve:[$.p],data:N.G.account.children.phoneConfirmation.metadata},{path:N.G.account.children.registration.path,loadComponent:()=>Promise.all([r.e(2076),r.e(5159)]).then(r.bind(r,95159)).then(i=>i.RegistrationComponent),canActivate:[At,P],resolve:[(i,m)=>{const e=(0,o.WQX)(v.il),s=(0,o.WQX)(rn.D);return s.addSpinner(X.Q.mainScreenArea),(i=>(i.dispatch(F.I.loadRegistrationInfo()),i.select(k.gn).pipe((0,J.$)(m=>void 0!==m?.registrationInfoFields),(0,G.T)(()=>{}))))(e).pipe((0,en.j)(()=>s.removeSpinner(X.Q.mainScreenArea)))},$.p],data:N.G.account.children.registration.metadata},{path:N.G.account.children.delete.path,component:b.S,resolve:[(i,m)=>{const e=(0,o.WQX)(v.il),s=(0,o.WQX)(V.z),c=(0,o.WQX)(M.k),y=(0,o.WQX)(R.tg);return(0,U.H)(c.resolveCustomerInfo()).pipe((0,tn.n)(K=>(K.customerInfoType===j.v.authenticated?(y.setAuthorizationNextPage(R.eg.deleteAccount),e.dispatch(y.getNavigateToProfileInfoAction()),e.dispatch(F.I.showDialogDeleteCustomerConfirmation())):(e.dispatch(y.getNavigateToLoginAction(R.eg.deleteAccount)),s.customCanonicalUrl=on.k.getDeleteAccountPath()),(0,Y.of)(void 0))))}]},{path:N.G.account.children.profile.path,loadChildren:()=>Promise.all([r.e(2076),r.e(5445)]).then(r.bind(r,15445)).then(i=>i.PROFILE_ROUTES)}]},90974(_n,Z,r){r.d(Z,{i:()=>an});var N=r(60177),A=r(17705),o=r(35547),v=r(85802),w=r(32271),q=r(99213),j=r(68018),M=r(46850),R=r(27198),nn=r(64954),x=r(13810),P=r(48177);const U=d=>({seconds:d});function tn(d,b){if(1&d&&(o.EFF(0),o.nI1(1,"translate")),2&d){const p=o.XpG(4);o.SpI(" ",o.i5U(1,1,"CONFIRMATION.COUNTDOWN",o.eq3(4,U,p.secondsLeftToAllowNextConfirmation()))," ")}}function Y(d,b){if(1&d){const p=o.RV6();o.j41(0,"div",0)(1,"button",3),o.bIt("click",function(){v.eBV(p);const n=o.XpG(3);
1return v.Njj(n.requestCodeAgain.emit(n.ConfirmationType.flashCallThenSms))}),o.nrm(2,"mat-icon",4),o.j41(3,"span"),o.EFF(4),o.nI1(5,"translate"),o.nVh(6,tn,2,6),o.k0s()()()}if(2&d){const p=o.XpG(3);o.R7$(),o.Y8G("disabled",p.secondsLeftToAllowNextConfirmation()>0),o.R7$(),o.Y8G("svgIcon",p.SvgIcon.refreshCcw),o.R7$(2),o.SpI(" ",o.bMT(5,4,"CONFIRMATION.BUTTON.CALL_AGAIN")," "),o.R7$(2),o.vxM(p.secondsLeftToAllowNextConfirmation()?6:-1)}}function F(d,b){if(1&d&&o.nrm(0,"mat-icon",4),2&d){const p=o.XpG(4);o.Y8G("svgIcon",p.SvgIcon.refreshCcw)}}function V(d,b){1&d&&(o.EFF(0),o.nI1(1,"translate")),2&d&&o.SpI(" ",o.bMT(1,1,"CONFIRMATION.BUTTON.SEND_SMS_AGAIN")," ")}function on(d,b){1&d&&(o.EFF(0),o.nI1(1,"translate")),2&d&&o.SpI(" ",o.bMT(1,1,"CONFIRMATION.BUTTON.SEND_SMS")," ")}function t(d,b){if(1&d&&(o.EFF(0),o.nI1(1,"translate")),2&d){const p=o.XpG(4);o.SpI(" ",o.i5U(1,1,"CONFIRMATION.COUNTDOWN",o.eq3(4,U,p.secondsLeftToAllowNextConfirmation()))," ")}}function $(d,b){if(1&d){const p=o.RV6();o.j41(0,"div",2)(1,"button",3),o.bIt("click",function(){v.eBV(p);const n=o.XpG(3);return v.Njj(n.requestCodeAgain.emit(n.ConfirmationType.sms))}),o.nVh(2,F,1,1,"mat-icon",4),o.j41(3,"span"),o.nVh(4,V,2,3)(5,on,2,3),o.nVh(6,t,2,6),o.k0s()()()}if(2&d){const p=o.XpG(2),h=o.XpG();o.R7$(),o.Y8G("disabled",h.secondsLeftToAllowNextConfirmation()>0),o.R7$(),o.vxM(p.requestSmsButtonSettings.showRepeatIcon?2:-1),o.R7$(2),o.vxM(p.requestSmsButtonSettings.showRepeatIcon?4:5),o.R7$(2),o.vxM(h.secondsLeftToAllowNextConfirmation()?6:-1)}}function en(d,b){if(1&d&&(o.j41(0,"div",1),o.EFF(1),o.nI1(2,"translate"),o.k0s(),o.nVh(3,Y,7,6,"div",0),o.nVh(4,$,7,4,"div",2)),2&d){const p=o.XpG();o.R7$(),o.SpI(" ",o.bMT(2,3,"CONFIRMATION.FLASH_CALL.ADDITIONAL_INFO")," "),o.R7$(2),o.vxM(p.showRequestFlashCallThenSms?3:-1),o.R7$(),o.vxM(p.requestSmsButtonSettings?4:-1)}}function J(d,b){if(1&d&&(o.EFF(0),o.nI1(1,"translate")),2&d){const p=o.XpG(3);o.SpI(" ",o.i5U(1,1,"CONFIRMATION.COUNTDOWN",o.eq3(4,U,p.secondsLeftToAllowNextConfirmation()))," ")}}function G(d,b){if(1&d){const p=o.RV6();o.j41(0,"div",0)(1,"button",3),o.bIt("click",function(){v.eBV(p);const n=o.XpG(2);return v.Njj(n.requestCodeAgain.emit(n.ConfirmationType.sms))}),o.nrm(2,"mat-icon",4),o.j41(3,"span"),o.EFF(4),o.nI1(5,"translate"),o.nVh(6,J,2,6),o.k0s()()()}if(2&d){const p=o.XpG(2);o.R7$(),o.Y8G("disabled",p.secondsLeftToAllowNextConfirmation()>0),o.R7$(),o.Y8G("svgIcon",p.SvgIcon.refreshCcw),o.R7$(2),o.SpI(" ",o.bMT(5,4,"CONFIRMATION.BUTTON.SEND_SMS_AGAIN")," "),o.R7$(2),o.vxM(p.secondsLeftToAllowNextConfirmation()?6:-1)}}function k(d,b){if(1&d){const p=o.RV6();o.j41(0,"div",0)(1,"button",5),o.bIt("click",function(){v.eBV(p);const n=o.XpG(3);return v.Njj(n.changeConfirmationType.emit())}),o.EFF(2),o.nI1(3,"translate"),o.k0s()()}2&d&&(o.R7$(2),o.SpI(" ",o.bMT(3,1,"CONFIRMATION.BUTTON.CHANGE_CONFIRMATION_TYPE")," "))}function X(d,b){if(1&d&&o.nVh(0,k,4,3,"div",0),2&d){const p=o.XpG(),h=o.XpG();o.vxM(h.availableConfirmationTypes().length>1&&!p.isExpired?0:-1)}}function rn(d,b){if(1&d&&o.nVh(0,en,5,5)(1,G,7,6,"div",0)(2,X,1,1),2&d){let p;const h=o.XpG();o.vxM((p=b.initialConfirmationType)===h.ConfirmationType.flashCallThenSms?0:p===h.ConfirmationType.sms?1:p===h.ConfirmationType.telegram||p===h.ConfirmationType.max||p===h.ConfirmationType.callToVerify?2:-1)}}let an=(()=>{class d{constructor(){this.ConfirmationType=R.Y,this.requestedConfirmations=A.hFB.required(),this.availableConfirmationTypes=A.hFB.required(),this.requestCodeAgain=(0,A.CGW)(),this.changeConfirmationType=(0,A.CGW)(),this.SvgIcon=nn.h,this.secondsLeftToAllowNextConfirmation=(0,v.vPA)(M.t.confirmationCodeResendIntervalInSeconds);const p=(0,v.WQX)(o.Agw);(0,x.De)(!(0,N.Vy)(p)),this.footerViewModel=(0,w.EW)(()=>{let h;const n=this.requestedConfirmations(),I=(0,P.ov)(n);switch(I.confirmationType){case R.Y.flashCallThenSms:const T=n.reduce((W,Q)=>Q.confirmationType===R.Y.flashCallThenSms?W+1:W,0),O=n.reduce((W,Q)=>Q.confirmationType===R.Y.sms?W+1:W,0);let H;this.availableConfirmationTypes().includes(R.Y.sms)&&T>1&&(H={showRepeatIcon:0!==O}),h={initialConfirmationType:R.Y.flashCallThenSms,showRequestFlas
1hCallThenSms:0===O,requestSmsButtonSettings:H,showChangeConfirmationTypeButton:!1,isExpired:I.isExpired};break;case R.Y.sms:h={initialConfirmationType:R.Y.sms,showChangeConfirmationTypeButton:!1,isExpired:I.isExpired};break;case R.Y.telegram:case R.Y.max:case R.Y.callToVerify:h={initialConfirmationType:I.confirmationType,showChangeConfirmationTypeButton:this.availableConfirmationTypes().length>1,isExpired:I.isExpired};break;default:console.error("[YP]",`Not supported confirmationType ${n[0].confirmationType} in ActionConfirmationFooterComponent`)}return h}),(0,v.QZP)(h=>{const n=this.requestedConfirmations(),I=n[n.length-1];this.secondsLeftToAllowNextConfirmation.set(this.getSecondsLeftToAllowNextConfirmation(I.sentAt));const T=setInterval(()=>{const O=this.getSecondsLeftToAllowNextConfirmation(I.sentAt);0===O&&clearInterval(T),this.secondsLeftToAllowNextConfirmation.set(O)},1e3);h(()=>{clearInterval(T)})})}getSecondsLeftToAllowNextConfirmation(p){const h=Math.round(((new Date).getTime()-p.getTime())/1e3);return h<M.t.confirmationCodeResendIntervalInSeconds?M.t.confirmationCodeResendIntervalInSeconds-h:0}static{this.\u0275fac=function(h){return new(h||d)}}static{this.\u0275cmp=o.VBU({type:d,selectors:[["yp-action-confirmation-footer"]],inputs:{requestedConfirmations:[1,"requestedConfirmations"],availableConfirmationTypes:[1,"availableConfirmationTypes"]},outputs:{requestCodeAgain:"requestCodeAgain",changeConfirmationType:"changeConfirmationType"},decls:1,vars:1,consts:[[1,"text-center"],[1,"mb-4"],[1,"text-center","mt-2"],["type","button",1,"yp-btn","yp-btn-sm","yp-btn-link","yp-btn-with-icon","btn-request-new-confirmation",3,"click","disabled"],[1,"yp-btn-icon-first","icon-sm",3,"svgIcon"],["type","button",1,"yp-btn","yp-btn-sm","yp-btn-link",3,"click"]],template:function(h,n){if(1&h&&o.nVh(0,rn,3,1),2&h){let I;o.vxM((I=n.footerViewModel())?0:-1,I)}},dependencies:[q.An,j.D9],styles:[".btn-request-new-confirmation[_ngcontent-%COMP%]{display:inline-flex;align-items:center}.btn-request-new-confirmation[_ngcontent-%COMP%]:hover{text-decoration:none!important}.btn-request-new-confirmation[_ngcontent-%COMP%]:hover   [_ngcontent-%COMP%]:not(.icomoon-icon){text-decoration:underline!important}.btn-request-new-confirmation[_ngcontent-%COMP%]   .icomoon-icon[_ngcontent-%COMP%]{margin-inline-end:.25rem}"],changeDetection:0})}}return d})()},43441(_n,Z,r){r.d(Z,{T:()=>un});var N=r(49769),A=r(17705),o=r(85802),v=r(32271),w=r(89417),q=r(99213),j=r(39204),M=r(68018),R=r(38008),nn=r(15307),x=r(27198),P=r(64954),U=r(98620),tn=r(48177),Y=r(6716),F=r(30995),V=r(18372),on=r(32476),t=r(35547);const $=[[["","projected-title",""]],[["","projected-details",""]],[["","projected-errors",""]]],en=["[projected-title]","[projected-details]","[projected-errors]"],J=()=>["yp-btn-lg","yp-btn-mw-xxl"];function G(l,E){1&l&&t.EFF(0," (\u0441\u0430\u043c\u044b\u0439 \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431) ")}function k(l,E){1&l&&t.EFF(0," (\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e \u0438 \u043f\u0440\u043e\u0449\u0435 \u0432\u0441\u0435\u0433\u043e) ")}function X(l,E){1&l&&t.EFF(0," (\u0441\u0431\u043e\u0438\u0442 \u0438\u0437-\u0437\u0430 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a) ")}function rn(l,E){if(1&l&&t.nVh(0,G,1,0)(1,k,1,0)(2,X,1,0),2&l){let f;const a=t.XpG().$implicit,C=t.XpG(2);t.vxM((f=a)===C.ConfirmationType.max?0:f===C.ConfirmationType.callToVerify?1:f===C.ConfirmationType.flashCallThenSms?2:-1)}}function an(l,E){1&l&&t.nrm(0,"hr")}function d(l,E){if(1&l){const f=t.RV6();t.j41(0,"div",17)(1,"mat-radio-button",18),t.EFF(2),t.nI1(3,"translate"),t.nVh(4,rn,3,1),t.k0s(),t.j41(5,"mat-icon",19),t.nI1(6,"ypActionConfirmationSvgIcon"),t.bIt("click",function(){const C=o.eBV(f).$implicit,u=t.XpG(2);return o.Njj(u.selectedConfirmationType.set(C))}),t.k0s()(),t.nVh(7,an,1,0,"hr")}if(2&l){const f=E.$implicit,a=E.$index,C=E.$count,u=t.XpG(2);t.R7$(),t.Y8G("value",f),t.R7$(),t.SpI(" ",t.bMT(3,5,"CONFIRMATION.TYPE."+f)," "),t.R7$(2),t.vxM(u.tenant.country===u.COUNTRY_ISO3166_CODES_MAP.RU?4:-1),t.R7$(),t.Y8G("svgIcon",t.bMT(6,7,f)),t.R7$(2),t.vxM(a!==C-1?7:-1)}}function b(l,E){if(1&l){const f=t.RV6();t.j41(0,"div",9)(1,"div",13)(2,"h3",14),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",15)(6,"mat-radio-group",16),t.bIt("ngModelChange",function(C){o.eBV(f);const u=t.XpG();return o.Njj(u.selectedConfirmationType.set(C))}),t.Z7z(7,d,8,9,null,null,t.fX1),t.k0s()()()()}
1if(2&l){const f=t.XpG();t.R7$(3),t.JRh(t.bMT(4,2,"CONFIRMATION.SELECT_CONFIRMATION_TYPE")),t.R7$(3),t.Y8G("ngModel",f.selectedConfirmationType()),t.R7$(),t.Dyx(f.confirmationTypesToDisplay())}}function p(l,E){1&l&&t.EFF(0," (\u0441\u0430\u043c\u044b\u0439 \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431) ")}function h(l,E){1&l&&t.EFF(0," (\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e \u0438 \u043f\u0440\u043e\u0449\u0435 \u0432\u0441\u0435\u0433\u043e) ")}function n(l,E){1&l&&t.EFF(0," (\u0441\u0431\u043e\u0438\u0442 \u0438\u0437-\u0437\u0430 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a) ")}function I(l,E){if(1&l&&(t.j41(0,"div",27),t.nVh(1,p,1,0)(2,h,1,0)(3,n,1,0),t.k0s()),2&l){let f;const a=t.XpG().$implicit,C=t.XpG(2);t.R7$(),t.vxM((f=a)===C.ConfirmationType.max?1:f===C.ConfirmationType.callToVerify?2:f===C.ConfirmationType.flashCallThenSms?3:-1)}}function T(l,E){if(1&l){const f=t.RV6();t.j41(0,"yp-radio-button",23),t.bIt("radioButtonChange",function(){const C=o.eBV(f).$implicit,u=t.XpG(2);return o.Njj(u.selectedConfirmationType.set(C))}),t.j41(1,"div",24),t.nrm(2,"mat-icon",25),t.nI1(3,"ypActionConfirmationSvgIcon"),t.j41(4,"div",26)(5,"div"),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.nVh(8,I,4,1,"div",27),t.k0s()()()}if(2&l){const f=E.$implicit,a=t.XpG(2);t.Y8G("radioButtonName","confirmationTypeRadio_"+f)("radioButtonChecked",a.selectedConfirmationType()===f)("radioButtonCssClasses",t.lJ4(10,J)),t.R7$(2),t.Y8G("svgIcon",t.bMT(3,6,f)),t.R7$(4),t.JRh(t.bMT(7,8,"CONFIRMATION.TYPE."+f)),t.R7$(2),t.vxM(a.tenant.country===a.COUNTRY_ISO3166_CODES_MAP.RU?8:-1)}}function O(l,E){if(1&l&&(t.j41(0,"div",10)(1,"div",20),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",21),t.Z7z(5,T,9,11,"yp-radio-button",22,t.fX1),t.k0s()()),2&l){const f=t.XpG();t.R7$(2),t.JRh(t.bMT(3,1,"CONFIRMATION.SELECT_CONFIRMATION_TYPE")),t.R7$(3),t.Dyx(f.confirmationTypesToDisplay())}}function H(l,E){if(1&l&&(t.j41(0,"div",11),t.eu8(1,12),t.k0s()),2&l){t.XpG();const f=t.sdS(22);t.R7$(),t.Y8G("ngTemplateOutlet",f)}}function W(l,E){if(1&l&&t.eu8(0,12),2&l){t.XpG(2);const f=t.sdS(22);t.Y8G("ngTemplateOutlet",f)}}function Q(l,E){if(1&l&&t.DNE(0,W,1,1,"ng-container",28),2&l){const f=t.XpG();t.Y8G("ypProjectedFooter",f.AppLayoutFooterIndex.firstLevel)}}function mn(l,E){if(1&l){const f=t.RV6();t.j41(0,"div",29)(1,"button",30),t.bIt("click",function(){o.eBV(f);const C=t.XpG();return o.Njj(C.sendConfirmation.emit(C.selectedConfirmationType()))}),t.EFF(2),t.nI1(3,"translate"),t.k0s()()}if(2&l){const f=t.XpG();t.R7$(),t.Y8G("disabled",!f.selectedConfirmationType()),t.R7$(),t.SpI(" ",t.bMT(3,2,"COMMON.CONTINUE")," ")}}let sn=(()=>{class l{transform(f){switch(f){case x.Y.flashCallThenSms:case x.Y.callToVerify:return P.h.phone;case x.Y.telegram:return P.h.telegram;case x.Y.max:return P.h.max;case x.Y.sms:return P.h.message;case x.Y.email:return P.h.mail}}static{this.\u0275fac=function(a){return new(a||l)}}static{this.\u0275pipe=t.EJ8({name:"ypActionConfirmationSvgIcon",type:l,pure:!0})}}return l})(),un=(()=>{class l{constructor(){this.phoneNumber=A.hFB.required(),this.confirmationTypes=A.hFB.required(),this.changePhoneNumber=(0,A.CGW)(),this.sendConfirmation=(0,A.CGW)(),this.tenant=(0,o.WQX)(nn.$),this.appLayoutService=(0,o.WQX)(U.T),this.AppLayoutFooterIndex=Y.J,this.ConfirmationType=x.Y,this.COUNTRY_ISO3166_CODES_MAP=R.t,this.confirmationTypesToDisplay=(0,v.EW)(()=>(0,tn.Lr)(this.confirmationTypes())),this.selectedConfirmationType=(0,v.uu)({source:this.confirmationTypes,computation:(f,a)=>void 0!==a?.value&&f.includes(a.value)?a.value:void 0})}static{this.\u0275fac=function(a){return new(a||l)}}static{this.\u0275cmp=t.VBU({type:l,selectors:[["yp-action-confirmation-selection"]],inputs:{phoneNumber:[1,"phoneNumber"],confirmationTypes:[1,"confirmationTypes"]},outputs:{changePhoneNumber:"changePhoneNumber",sendConfirmation:"sendConfirmation"},ngContentSelectors:en,decls:23,vars:10,consts:[["bottomActionButtonsTemplate",""],[3,"footerUnderflowEnabled"],[1,"form-wrapper"],[1,"mb-4"],[1,"form-heading"],[1,"form-subheading"],[1,"mt-2"],[1,"me-2","text-nowrap","direction-ltr"],["type","button",1,"yp-btn","yp-btn-link","yp-btn-link-alt","yp-btn-link-no-padding",3,"click"],[1,"cards-container"],[1,"text-center"],[1,"mt-5"],[3,"ngTemplateOutlet"],[1,"yp-card"],[1,"yp-card-title"],[1,"yp-card-content"],[3,"ngModelChange","ngModel"],[1,"d-flex","align-items-center","justify-content-between"],[3,"value"],[1,"icon-sm",3,"click","
1svgIcon"],[1,"mb-3"],[1,"d-inline-flex","flex-column","gap-2"],[3,"radioButtonName","radioButtonChecked","radioButtonCssClasses"],[3,"radioButtonChange","radioButtonName","radioButtonChecked","radioButtonCssClasses"],[1,"d-flex","align-items-center","justify-content-center","gap-3"],[1,"icon-sm",3,"svgIcon"],[1,"d-flex","flex-column"],[1,"fs-2"],[3,"ngTemplateOutlet",4,"ypProjectedFooter"],[1,"yp-bottom-buttons-wrapper"],["type","button",1,"yp-btn","yp-btn-lg","yp-btn-primary",3,"click","disabled"]],template:function(a,C){1&a&&(t.NAR($),t.j41(0,"yp-fixed-header-footer",1)(1,"div",2)(2,"div",3)(3,"h1",4),t.SdG(4),t.k0s(),t.j41(5,"div",5),t.SdG(6,1),t.j41(7,"div",6)(8,"span",7),t.EFF(9),t.nI1(10,"ypPhone"),t.k0s(),t.j41(11,"button",8),t.bIt("click",function(){return C.changePhoneNumber.emit()}),t.EFF(12),t.nI1(13,"translate"),t.k0s()()()(),t.j41(14,"div",3),t.nVh(15,b,9,4,"div",9)(16,O,7,3,"div",10),t.k0s(),t.j41(17,"div"),t.SdG(18,2),t.k0s(),t.nVh(19,H,2,1,"div",11),t.k0s(),t.nVh(20,Q,1,1,"ng-container",12),t.k0s(),t.DNE(21,mn,4,4,"ng-template",null,0,t.C5r)),2&a&&(t.Y8G("footerUnderflowEnabled",!0),t.R7$(9),t.JRh(t.bMT(10,6,C.phoneNumber())),t.R7$(3),t.SpI(" ",t.bMT(13,8,"COMMON.CHANGE")," "),t.R7$(3),t.vxM(C.appLayoutService.isDesktopLayout()?15:16),t.R7$(4),t.vxM(C.appLayoutService.isDesktopLayout()?19:-1),t.R7$(),t.vxM(C.appLayoutService.isDesktopLayout()?-1:20))},dependencies:[F.cU,V.d,N.T3,F.J0,q.An,j.VT,w.YN,w.BC,w.vS,j._g,M.D9,sn,on.X],encapsulation:2,changeDetection:0})}}return l})()},74728(_n,Z,r){r.d(Z,{a:()=>f});var N=r(49769),A=r(17705),o=r(85802),v=r(32271),w=r(99213),q=r(9183),j=r(59640),M=r(68018),R=r(68314),nn=r(73359),x=r(27198),P=r(64954),U=r(98620),tn=r(9284),Y=r(13810),F=r(48177),V=r(82749),on=r(32476),t=r(35547);let $=(()=>{class a{constructor(){this.translateService=(0,o.WQX)(M.c$),this.phonePipe=new on.X}transform(u,_,g=!1){return this.translateService.get(u,g?{phoneNumber:`<a class="text-nowrap direction-ltr" href="tel:${_}">${this.phonePipe.transform(_)}</a>`}:{phoneNumber:`<span class="text-nowrap direction-ltr disable-links">${this.phonePipe.transform(_)}</span>`})}static{this.\u0275fac=function(_){return new(_||a)}}static{this.\u0275pipe=t.EJ8({name:"ypTranslateWithPhoneNumberHtml",type:a,pure:!0})}}return a})();var en=r(66566);const J=a=>({numbersCount:a});function G(a,C){if(1&a){const u=t.RV6();t.j41(0,"h1",0),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.j41(3,"div",2)(4,"div",3)(5,"div",4),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.j41(8,"div",5)(9,"div",4),t.EFF(10),t.k0s(),t.j41(11,"div",6),t.EFF(12),t.k0s()()(),t.j41(13,"div",7),t.EFF(14),t.nI1(15,"translate"),t.k0s(),t.j41(16,"div"),t.nrm(17,"span",8),t.nI1(18,"ypTranslateWithPhoneNumberHtml"),t.nI1(19,"async"),t.j41(20,"button",9),t.bIt("click",function(){o.eBV(u);const g=t.XpG();return o.Njj(g.changePhoneNumber.emit())}),t.EFF(21),t.nI1(22,"translate"),t.k0s()()()}if(2&a){const u=t.XpG(),_=t.r8f(0);t.R7$(),t.SpI(" ",t.i5U(2,7,"CONFIRMATION.FLASH_CALL.TITLE",t.eq3(21,J,_.confirmationRequestDto.codeLength))," "),t.R7$(5),t.JRh(t.bMT(7,10,"CONFIRMATION.FLASH_CALL.EXAMPLE")),t.R7$(4),t.JRh(u.examplePhoneNumber().start),t.R7$(2),t.JRh(u.examplePhoneNumber().codePart),t.R7$(2),t.JRh(t.bMT(15,12,"CONFIRMATION.FLASH_CALL.NO_NEED_TO_ANSWER")),t.R7$(3),t.Y8G("innerHtml",t.bMT(19,17,t.i5U(18,14,"CONFIRMATION.FLASH_CALL.CALLING",u.phoneNumber())),t.npT),t.R7$(4),t.SpI(" ",t.bMT(22,19,"COMMON.CHANGE")," ")}}function k(a,C){if(1&a){const u=t.RV6();t.j41(0,"h1",0),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.j41(3,"div",2),t.nrm(4,"span",8),t.nI1(5,"ypTranslateWithPhoneNumberHtml"),t.nI1(6,"async"),t.j41(7,"button",10),t.bIt("click",function(){o.eBV(u);const g=t.XpG();return o.Njj(g.changePhoneNumber.emit())}),t.EFF(8),t.nI1(9,"translate"),t.k0s()()}if(2&a){const u=t.XpG();t.R7$(),t.SpI(" ",t.bMT(2,3,"CONFIRMATION.SMS.TITLE")," "),t.R7$(3),t.Y8G("innerHtml",t.bMT(6,8,t.i5U(5,5,"CONFIRMATION.SMS.SENT_TO",u.phoneNumber())),t.npT),t.R7$(4),t.SpI(" ",t.bMT(9,10,"COMMON.CHANGE")," ")}}function X(a,C){1&a&&(t.EFF(0),t.nI1(1,"translate")),2&a&&t.SpI(" ",t.bMT(1,1,"CONFIRMATION.TELEGRAM.TITLE.HAS_CODE")," ")}function rn(a,C){1&a&&(t.EFF(0),t.nI1(1,"translate")),2&a&&t.SpI(" ",t.bMT(1,1,"CONFIRMATION.TELEGRAM.TITLE.NO_CODE")," ")}function an(a,C){if(1&a&&t.nVh(0,X,2,3)(1,rn,2,3),2&a){const u=t.XpG(2),_=t.r8f(0);t.vxM(_.confirmationRequestDto.confirmationCheckType===u.ConfirmationCheckType.code?0:1)}}function d(a,C){1&a&&(t.EFF(0),t.nI1(1,"translate")),2&a&&t.SpI(" ",t.bMT(1,1,"CONFIRMATION.MAX.TITLE.HAS_CODE")," ")}function b(a,C){1&a&&(t.EFF(0),t.nI1(1,"translate")),2&a&&t.SpI(" ",t.bMT(1,1,"CONFIRMATION.MAX.TITLE.NO_CODE")," ")}function p(a,C){if(1&a&&t.nVh(0,d,2,3)(1,b,2,3),2&a){const u=t.XpG(2),_=t.r8f(0);t.vxM(_.confirmationRequestDto.confirmationCheckType===u.ConfirmationCheckType.code?0:1)}}function h(a,C){if(1&a&&(t.nrm(0,"span",8),t.nI1(1,"ypTranslateWithPhoneNumberHtml"),t.nI1(2,"async")),2&a){const u=t.XpG(2);t.Y8G("innerHtml",t.bMT(2,4,t.i5U(1,1,"CONFIRMATION.TELEGRAM.PHONE_NUMBER",u.phoneNumber())),t.npT)}}function n(a,C){if(1&a&&(t.nrm(0,"span",8),t.nI1(1,"ypTranslateWithPhoneNumberHtml"),t.nI1(2,"async")),2&a){const u=t.XpG(2);t.Y8G("innerHtml",t.bMT(2,4,t.i5U(1,1,"CONFIRMATION.MAX.PHONE_NUMBER",u.phoneNumber())),t.npT)}}function I(a,C){1&a&&(t.j41(0,"h4"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&a&&(t.R
17$(),t.JRh(t.bMT(2,1,"CONFIRMATION.MAX.GET_CODE.TITLE")))}function T(a,C){if(1&a&&(t.nrm(0,"mat-icon",16),t.EFF(1),t.nI1(2,"translate")),2&a){const u=t.XpG(3);t.Y8G("svgIcon",u.SvgIcon.telegram),t.R7$(),t.SpI(" ",t.bMT(2,2,"CONFIRMATION.TELEGRAM.BUTTON.GO_TO_BOT")," ")}}function O(a,C){if(1&a&&(t.nrm(0,"mat-icon",16),t.EFF(1),t.nI1(2,"translate")),2&a){const u=t.XpG(3);t.Y8G("svgIcon",u.SvgIcon.max),t.R7$(),t.SpI(" ",t.bMT(2,2,"CONFIRMATION.MAX.BUTTON.GO_TO_BOT")," ")}}function H(a,C){if(1&a&&(t.j41(0,"a",13)(1,"div",14),t.nrm(2,"mat-icon",16),t.EFF(3),t.nI1(4,"translate"),t.k0s()()),2&a){const u=t.XpG(3),_=t.r8f(0);t.Y8G("href",null==_.confirmationRequestDto.linkForCustomer?null:_.confirmationRequestDto.linkForCustomer.replace("https://max.ru","https://web.max.ru"),t.B4B),t.R7$(2),t.Y8G("svgIcon",u.SvgIcon.max),t.R7$(),t.SpI(" ",t.bMT(4,3,"CONFIRMATION.MAX.BUTTON.GO_TO_BOT_ON_WEB")," ")}}function W(a,C){if(1&a&&t.nrm(0,"img",15),2&a){const u=t.XpG(3);t.Y8G("src",u.qrCodeImageData.value(),t.B4B)}}function Q(a,C){if(1&a&&(t.j41(0,"div",11),t.nVh(1,I,3,3,"h4"),t.j41(2,"div",12)(3,"a",13)(4,"div",14),t.nVh(5,T,3,4)(6,O,3,4),t.k0s()(),t.nVh(7,H,5,5,"a",13),t.k0s(),t.nVh(8,W,1,1,"img",15),t.k0s()),2&a){let u;const _=t.XpG(2),g=t.r8f(0);t.R7$(),t.vxM(g.confirmationType===_.ConfirmationType.max?1:-1),t.R7$(2),t.Y8G("href",g.confirmationRequestDto.linkForCustomer,t.B4B),t.R7$(2),t.vxM((u=g.confirmationType)===_.ConfirmationType.telegram?5:u===_.ConfirmationType.max?6:-1),t.R7$(2),t.vxM(g.confirmationType===_.ConfirmationType.max?7:-1),t.R7$(),t.vxM(_.appLayoutService.isDesktopLayout()?8:-1)}}function mn(a,C){if(1&a){const u=t.RV6();t.j41(0,"div",17),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.j41(3,"div",18)(4,"button",19),t.bIt("click",function(){o.eBV(u);const g=t.XpG(2);return o.Njj(g.goBack.emit())}),t.EFF(5),t.nI1(6,"translate"),t.k0s()()}2&a&&(t.R7$(),t.SpI(" ",t.bMT(2,2,"CONFIRMATION.NO_CODE.ERROR.EXPIRED")," "),t.R7$(4),t.SpI(" ",t.bMT(6,4,"COMMON.BACK")," "))}function sn(a,C){if(1&a){const u=t.RV6();t.j41(0,"h1",0),t.nVh(1,an,2,1)(2,p,2,1),t.k0s(),t.j41(3,"div",2)(4,"div",7),t.nVh(5,h,3,6,"span",8)(6,n,3,6,"span",8),t.j41(7,"button",10),t.bIt("click",function(){o.eBV(u);const g=t.XpG();return o.Njj(g.changePhoneNumber.emit())}),t.EFF(8),t.nI1(9,"translate"),t.k0s()(),t.nVh(10,Q,9,5,"div",11)(11,mn,7,6),t.k0s()}if(2&a){let u,_;const g=t.XpG(),S=t.r8f(0);t.R7$(),t.vxM((u=S.confirmationType)===g.ConfirmationType.telegram?1:u===g.ConfirmationType.max?2:-1),t.R7$(4),t.vxM((_=S.confirmationType)===g.ConfirmationType.telegram?5:_===g.ConfirmationType.max?6:-1),t.R7$(3),t.SpI(" ",t.bMT(9,4,"COMMON.CHANGE")," "),t.R7$(2),t.vxM(S.isExpired?11:10)}}function un(a,C){if(1&a){const u=t.RV6();t.nrm(0,"h1",20),t.nI1(1,"ypTranslateWithPhoneNumberHtml"),t.nI1(2,"async"),t.j41(3,"div",2),t.nrm(4,"span",8),t.nI1(5,"ypTranslateWithPhoneNumberHtml"),t.nI1(6,"async"),t.j41(7,"button",10),t.bIt("click",function(){o.eBV(u);const g=t.XpG();return o.Njj(g.changePhoneNumber.emit())}),t.EFF(8),t.nI1(9,"translate"),t.k0s()()}if(2&a){const u=t.XpG(),_=t.r8f(0);t.Y8G("innerHtml",t.bMT(2,7,t.brH(1,3,"CONFIRMATION.CALL_TO_VERIFY.TITLE",_.confirmationRequestDto.phoneToCall,!0)),t.npT),t.R7$(4),t.Y8G("innerHtml",t.bMT(6,12,t.i5U(5,9,"CONFIRMATION.CALL_TO_VERIFY.CALL_FROM",u.phoneNumber())),t.npT),t.R7$(4),t.SpI(" ",t.bMT(9,14,"COMMON.CHANGE")," ")}}function l(a,C){if(1&a&&(t.j41(0,"h1",0),t.EFF(1),t.k0s()),2&a){t.XpG();const u=t.r8f(0);t.R7$(),t.SpI("Not Supported Confirmation Type ",u.confirmationType)}}function E(a,C){1&a&&(t.j41(0,"div",1),t.nrm(1,"mat-spinner",21),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&a&&(t.R7$(),t.Y8G("diameter",30),t.R7$(),t.SpI(" ",t.bMT(3,2,"CONFIRMATION.CHECKING_CONFIRMATION")," "))}let f=(()=>{class a{constructor(){this.phoneNumber=A.hFB.required(),this.requestedConfirmations=A.hFB.required(),this.changePhoneNumber=(0,A.CGW)(),this.goBack=(0,A.CGW)(),this.appLayoutService=(0,o.WQX)(U.T),this.store=(0,o.WQX)(j.il),this.phoneService=(0,o.WQX)(tn.u),this.ConfirmationCheckType=nn.w,this.ConfirmationType=x.Y,this.SvgIcon=P.h,this.initialConfirmation=(0,v.EW)(()=>(0,F.ov)(this.requestedConfirmations())),this.qrCodeImageData=(0,v.Zc)({params:()=>({customerWebSettings:this.store.selectSignal(en.gd)(),initialConfirmation:this.initialConfirmation()}),loader:({params:u})=>((0,Y.iY)(u.customerWebSettings),(0,Y.iY)(u.initialConfirmation.confirmationRequestDto.linkFor
1Customer),(0,R.dY)(u.initialConfirmation.confirmationRequestDto.linkForCustomer,{errorCorrectionLevel:"medium",color:{light:(0,V.H)((0,V.l6)(u.customerWebSettings.theme.primaryBackgroundColor)),dark:(0,V.H)((0,V.l6)(u.customerWebSettings.theme.primaryTextColor))}}))}),this.examplePhoneNumber=(0,v.EW)(()=>{const u=this.initialConfirmation();let _,g;if(u.confirmationRequestDto.codeLength){const S=this.phoneNumber();let D=this.phoneService.formatPhoneNumber(S),z=0,cn=0;for(let B=D.length-1;B>=0;B--)if(/\d/.test(D[B])&&(D=D.substring(0,B)+(u.confirmationRequestDto.codeLength-z)+D.substring(B+1),z++,z===u.confirmationRequestDto.codeLength)){cn=B;break}_=D.substring(0,cn).replace(/^(\+\d*)(.*)/g,(B,ln,pn)=>ln+pn.replace(/\d/g,"X")),g=D.substring(cn)}return{start:_??"",codePart:g??""}})}static{this.\u0275fac=function(_){return new(_||a)}}static{this.\u0275cmp=t.VBU({type:a,selectors:[["yp-action-confirmation-header"]],inputs:{phoneNumber:[1,"phoneNumber"],requestedConfirmations:[1,"requestedConfirmations"]},outputs:{changePhoneNumber:"changePhoneNumber",goBack:"goBack"},decls:8,vars:3,consts:[[1,"form-heading"],[1,"d-flex","flex-wrap","align-items-center","justify-content-center","gap-2","my-5"],[1,"form-subheading"],[1,"mb-2","d-inline-flex","align-items-center"],[1,"me-2"],[1,"d-flex","align-items-center","direction-ltr"],[1,"code-example-from-phone-number"],[1,"mb-4"],[1,"me-2",3,"innerHtml"],[1,"px-2","yp-btn","yp-btn-link","yp-btn-link-alt","yp-btn-link-no-padding",3,"click"],["type","button",1,"yp-btn","yp-btn-link","yp-btn-link-alt","yp-btn-link-no-padding",3,"click"],[1,"mb-4","d-flex","flex-column","align-items-center","gap-4"],[1,"d-inline-flex","flex-column","gap-3"],["target","_blank",1,"yp-btn","yp-btn-light","yp-btn-lg","yp-btn-mw-lg",3,"href"],[1,"d-flex","align-items-center","justify-content-center","gap-3"],[2,"border-radius","var(--yp-border-radius-sm)","max-width","15rem",3,"src"],[1,"icon-sm",3,"svgIcon"],[1,"mb-4","yp-text-danger"],[1,"mb-4","text-center"],["type","button",1,"yp-btn","yp-btn-light","yp-btn-lg","yp-btn-mw-lg",3,"click"],[1,"form-heading",3,"innerHtml"],[3,"diameter"]],template:function(_,g){if(1&_&&(t.SS7(0),t.j41(1,"div"),t.nVh(2,G,23,23)(3,k,10,12)(4,sn,12,6)(5,un,10,16)(6,l,2,1,"h1",0),t.k0s(),t.nVh(7,E,4,4,"div",1)),2&_){let S;const D=t.bH3(g.initialConfirmation());t.R7$(2),t.vxM((S=D.confirmationType)===g.ConfirmationType.flashCallThenSms?2:S===g.ConfirmationType.sms?3:S===g.ConfirmationType.telegram||S===g.ConfirmationType.max?4:S===g.ConfirmationType.callToVerify?5:6),t.R7$(5),t.vxM(D.confirmationRequestDto.confirmationCheckType!==g.ConfirmationCheckType.noCode||D.isExpired?-1:7)}},dependencies:[q.LG,w.An,N.Jj,M.D9,$],styles:[".code-example-from-phone-number[_ngcontent-%COMP%]{padding-block:.1rem;padding-inline:.25rem;border:1px solid var(--yp-body-color-shift4);border-radius:1rem}"],changeDetection:0})}}return a})()}}]);

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.