1"use strict";(self.webpackChunkweb_front_end_angular_cli=self.webpackChunkweb_front_end_angular_cli||[]).push([[6746,9735],{9724:(I,c,e)=>{e.d(c,{d:()=>a});var t=e(12481),o=e(77146),p=e(11249),d=e(85240),i=e(34456);const m=["passwordFormDirective"];let a=(()=>{var u;class h{constructor(){this.isLoading=!1,this.onSubmitPassword=new t.bkB,this.alive=!0}ngOnInit(){this.resetPasswordSubj.pipe((0,p.v)(()=>this.alive)).subscribe({next:()=>this.resetPassword()})}ngOnDestroy(){this.alive=!1}resetPassword(){this.passwordFormDirective?.resetForm(),this.passwordInputComponent?.passwordElement?.nativeElement?.value&&(this.passwordInputComponent.passwordElement.nativeElement.value=""),this.passwordInputComponent?.confirmPasswordElement?.nativeElement?.value&&(this.passwordInputComponent.confirmPasswordElement.nativeElement.value="")}}return(u=h).\u0275fac=function(P){return new(P||u)},u.\u0275cmp=t.VBU({type:u,selectors:[["app-create-password"]],viewQuery:function(P,v){if(1&P&&(t.GBs(m,5),t.GBs(o.H,5)),2&P){let R;t.mGM(R=t.lsd())&&(v.passwordFormDirective=R.first),t.mGM(R=t.lsd())&&(v.passwordInputComponent=R.first)}},inputs:{isLoading:"isLoading",form:"form",formErrors:"formErrors",resetPasswordSubj:"resetPasswordSubj"},outputs:{onSubmitPassword:"onSubmitPassword"},standalone:!1,decls:3,vars:4,consts:[["passwordFormDirective","ngForm"],[1,"registration_password",3,"ngSubmit","formGroup"],[3,"form","formErrors","isLoading"]],template:function(P,v){if(1&P){const R=t.RV6();t.j41(0,"form",1,0),t.bIt("ngSubmit",function(){return d.eBV(R),d.Njj(v.onSubmitPassword.emit())}),t.nrm(2,"app-password-input",2),t.k0s()}2&P&&(t.Y8G("formGroup",v.form),t.R7$(2),t.Y8G("form",v.form)("formErrors",v.formErrors)("isLoading",v.isLoading))},dependencies:[i.qT,i.cb,i.j4,o.H],styles:[".registration_password[_ngcontent-%COMP%] .auth-button[_ngcontent-%COMP%]{margin-top:24px}"],changeDetection:0}),h})()},13899:(I,c,e)=>{e.d(c,{D:()=>i});var t=e(93683),o=e(48503),p=e(12481),d=e(85240);let i=(()=>{var m;class a{}return(m=a).\u0275fac=function(h){return new(h||m)},m.\u0275mod=p.$C({type:m}),m.\u0275inj=d.G2t({imports:[t.MD,o.h]}),a})()},28184:(I,c,e)=>{e.d(c,{K:()=>_});var t=e(12481),o=e(85240),p=e(68010),d=e(68036),i=e(11249),m=e(34487),a=e(34456),u=e(16929),h=e(88036),g=e(86521),P=e(98461),v=e(48503),R=e(68071),D=e(60247);const B=["regPhoneFormDirective"],F=["phone"],w=s=>[s];function x(s,E){1&s&&(t.nrm(0,"p",11),t.nI1(1,"translate"),t.nI1(2,"safeHtml")),2&s&&t.Y8G("innerHTML",t.bMT(2,3,t.bMT(1,1,"auth.registration.agreement")),t.npT)}function j(s,E){1&s&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&s&&(t.R7$(),t.JRh(t.bMT(2,1,"auth.registration.info.btn-registration")))}function y(s,E){1&s&&t.nrm(0,"div",13)}function b(s,E){1&s&&(t.nrm(0,"p",15),t.nI1(1,"translate"),t.nI1(2,"safeHtml")),2&s&&t.Y8G("innerHTML",t.bMT(2,3,t.bMT(1,1,"auth.registration.agreement")),t.npT)}function A(s,E){1&s&&(t.j41(0,"a",17),t.nI1(1,"localize"),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&s&&(t.Y8G("routerLink",t.eq3(6,w,t.bMT(1,2,"/auth/login"))),t.R7$(2),t.SpI(" ",t.bMT(3,4,"auth.registration.already-registered")," "))}function M(s,E){if(1&s){const T=t.RV6();t.j41(0,"a",19),t.bIt("click",function(l){o.eBV(T);const S=t.XpG(2);return o.Njj(S.changeTab(l))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&s&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"auth.registration.already-registered")," "))}function O(s,E){if(1&s&&(t.nrm(0,"app-external-auth-providers",14),t.nVh(1,b,3,5,"p",15),t.j41(2,"p",16),t.nVh(3,A,4,8,"a",17)(4,M,3,3,"a",18),t.k0s()),2&s){const T=t.XpG();t.Y8G("isAuthPage",T.isAuthPage),t.R7$(),t.vxM(null!=T.authService.externalProviders&&T.authService.externalProviders.length?1:-1),t.R7$(2),t.vxM(T.isAuthPage?3:4)}}let _=(()=>{var s;class E{constructor(){this.onPhoneSubmit=new t.bkB,this.onChangeTab=new t.bkB,this.authService=(0,o.WQX)(p.u),this.alive=!0,this.mask=new d.p}ngOnInit(){this.resetPhoneSubj.pipe((0,i.v)(()=>this.alive)).subscribe({next:()=>this.resetPhone()})}ngOnDestroy(){this.alive=!1}resetPhone(){this.regPhoneFormDirective?.resetForm(),this.phoneElement?.nativeElement?.value&&(this.phoneElement.nativeElement.value="")}changeTab(U){U?.preventDefault(),this.onChangeTab.emit()}}return(s=E).\u0275fac=function(U){return new(U||s)},s.\u0275cmp=t.VBU({type:s,selectors:[["app-enter-phone"]],viewQuery:function(U,l){if(1&U&&(t.GBs(B,5),t.GBs(F,5)),2&U){let S;t.mGM(S=t.lsd())&&(l.regPhoneFormDirective=S.first),t.mGM(S=t.lsd())&&(l.phoneElement=S.first)}},inputs:{form:"form",formErrors:"formErrors",isLoading:"isLoading",isAuthPage:"isAuthPage",isExternalAuthFLow:"isExternalAuthFLow",resetPhoneSubj:"resetPhoneSubj"},outputs:{onPhoneSubmit:"onPhoneSubmit",onChangeTab:"onChangeTab"},standalone:!1,decls:19,vars:16,consts:[["regPhoneFormDirective","ngForm"],["phone",""],[3,"hidden"],[1,"registration_phone","full-height","flex-container","flex-dir-column",3,"ngSubmit","formGroup"],[1,"ph
1one-field"],[1,"phone-field_prefix"],["src","https://cdn.easypay.ua/images/svg/auth/operator.svg","alt","phone"],[1,"phone-field_prefix-code"],["type","tel","formControlName","Phone","autocomplete","tel","placeholder","00 000 00 00","input-mask","",1,"auth-input","phone-field_input",3,"inputMask","specialCharacters","authPhoneMask"],[1,"phone-field_error","absolute",3,"mainForm","fieldName","formErrors"],[1,"auth-button_block"],[1,"auth-home_info","text-center",3,"innerHTML"],["mat-ripple","","type","submit",1,"button","auth-button",3,"disabled"],[1,"loading-spinner"],[3,"isAuthPage"],[1,"auth-home_info","mt-24",3,"innerHTML"],[1,"registration_phone_registered","text-center"],["queryParamsHandling","preserve",1,"log-in__link","regular",3,"routerLink"],[1,"log-in__link","regular"],[1,"log-in__link","regular",3,"click"]],template:function(U,l){if(1&U){const S=t.RV6();t.j41(0,"h1",2),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.j41(3,"form",3,0),t.bIt("ngSubmit",function(){return o.eBV(S),o.Njj(l.onPhoneSubmit.emit())}),t.j41(5,"div",4)(6,"div",5),t.nrm(7,"img",6),t.j41(8,"span",7),t.EFF(9),t.k0s()(),t.nrm(10,"input",8,1)(12,"app-control-validation-messages",9),t.k0s(),t.j41(13,"div",10),t.nVh(14,x,3,5,"p",11),t.j41(15,"button",12),t.nVh(16,j,3,3,"span")(17,y,1,0,"div",13),t.k0s()(),t.nVh(18,O,5,3),t.k0s()}2&U&&(t.Y8G("hidden",!l.isAuthPage),t.R7$(),t.JRh(t.bMT(2,14,"auth.registration.register.title")),t.R7$(2),t.Y8G("formGroup",l.form),t.R7$(6),t.SpI("+",null==l.authService?null:l.authService.phonePrefix),t.R7$(),t.Y8G("inputMask",null==l.mask?null:l.mask.authPhoneMaskPattern)("specialCharacters",!1)("authPhoneMask",!0),t.R7$(2),t.Y8G("mainForm",l.form)("fieldName","Phone")("formErrors",l.formErrors),t.R7$(2),t.vxM(l.isExternalAuthFLow||null!=l.authService.externalProviders&&l.authService.externalProviders.length?-1:14),t.R7$(),t.Y8G("disabled",l.form.get("Phone").invalid),t.R7$(),t.vxM(l.isLoading?17:16),t.R7$(2),t.vxM(l.isExternalAuthFLow?-1:18))},dependencies:[m.Wk,a.qT,a.me,a.BC,a.cb,a.j4,a.JD,u.I,h.M,g.g,P.j,v.D9,R.t,D.$],styles:[".log-in__link[_ngcontent-%COMP%]{font-size:13px;line-height:15px;color:#1f83fe}.log-in__link[_ngcontent-%COMP%]:hover, .log-in__link[_ngcontent-%COMP%]:focus{color:#529ffe}.registration_phone_registered[_ngcontent-%COMP%]{margin:80px 0 0}.phone-field[_ngcontent-%COMP%]{padding-bottom:32px}"],changeDetection:0}),E})()},31674:(I,c,e)=>{e.d(c,{S:()=>u});var t=e(12481),o=e(59452),p=e(92183),d=e(88036),i=e(93683),m=e(48503);function a(h,g){if(1&h&&(t.j41(0,"a",5),t.nI1(1,"translate"),t.nrm(2,"img",9),t.k0s()),2&h){const P=g.$implicit;t.Y8G("href",t.bMT(1,4,P.href),t.B4B),t.BMQ("aria-label",P.ariaLabel),t.R7$(2),t.Y8G("src",P.img,t.B4B)("alt",P.alt)}}let u=(()=>{var h;class g{constructor(){this.onRegister=new t.bkB,this.imgFolder="https://cdn.easypay.ua/images//home-page/",this.links$=this.links}get links(){return(0,o.of)([new p.v("auth.registration.restore-acc.quick-link","Google play market",this.imgFolder+"/googleplay.svg","google-play button",{w:139,h:40}),new p.v("auth.registration.restore-acc.quick-link","Apple store",this.imgFolder+"applestore.svg","app-store button",{w:139,h:40})])}}return(h=g).\u0275fac=function(v){return new(v||h)},h.\u0275cmp=t.VBU({type:h,selectors:[["app-bank-id-required"]],inputs:{phone:"phone"},outputs:{onRegister:"onRegister"},standalone:!1,decls:18,vars:12,consts:[[1,"registration-restore_id","text-center"],[1,"registration-restore_account"],[1,"registration-restore_text"],["src","https://cdn.easypay.ua/images/svg/auth/restore-qr-link.svg","alt","qr-link",1,"registration-restore_img"],[1,"registration-restore_id-apps","flex-container","align-center"],["target","_blank","rel","nofollow noopener",1,"registration-restore_id-apps-link",3,"href"],[1,"registration-or","relative","text-center"],[1,"relative"],["mat-ripple","","type","button",1,"button","auth-button",3,"click"],[3,"src","alt"]],template:function(v,R){1&v&&(t.j41(0,"section",0)(1,"p",1),t.EFF(2),t.k0s(),t.j41(3,"p",2),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.nrm(6,"img",3),t.j41(7,"div",4),t.Z7z(8,a,3,6,"a",5,t.fX1),t.nI1(10,"async"),t.k0s(),t.j41(11,"div",6)(12,"span",7),t.EFF(13),t.nI1(14,"translate"),t.k0s()(),t.j41(15,"button",8),t.bIt("click",function(){return R.onRegister.emit()}),t.EFF(16),t.nI1(17,"translate"),t.k0s()()),2&v&&(t.R7$(2),t.JRh(R.phone),t.R7$(2),t.JRh(t.bMT(5,4,"auth.registration.restore-acc.bank-id-needed")),t.R7$(4),t.Dyx(t.bMT(10,6,R.links$)),t.R7$(5),t.JRh(t.bMT(14,8,"intertelecom.or")),t.R7$(3),t.SpI(" ",t.bMT(17,10,"auth.registration-info.btn-registration")," "))},dependencies:[d.M,i.Jj,m.D9],styles:[".registration-restore_id[_ngcontent-%COMP%] .registration-restore_account[_ngcontent-%COMP%]{margin-bottom:16px}.registration-restore_id-apps[_ngcontent-%COMP%]{margin:16px 0}.registration-restore_id-apps-link[_ngcontent-%COMP%]:first-child{margin-right:16px}.registration-restore_id-apps-link[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:139px}"],changeDetection:0}),g})()},35373:(I,c,e)=>{e.d(c,{o:()=>u});var t=e(93887),o=e(25004),p=e(80769),d=e(79864),i=e(15456),m=e(12481),a=e(85240);let u=(()=>{var h;class g{}return(h=g).\u0275fac=function(v){return new(v||h)},h.\u0275mod=m.$C({type:h}),h.\u0275inj=a.G2t({imports:[t.G,o.d,p.M,d.fS,i.M]}),g})()},35796:(I,c,e)=>{e.d(c,{x:()=>h});var t=e(12481),o=e(34456),p=e(46679),d=e(79864),i=e(88036),m=e(86521),a=e(57363),u=e(48503);let h=(()=>{var g;class P{constructor(){this.onUserDataSubmit=new t.bkB}}return(g=P).\u0275fac=function(R){return new(R||g)},g.\u0275cmp=t.VBU({type:g,selectors:[["app-user-data"]],inputs:{form:"form",formErrors:"formErrors"},outputs:{onUserDataSubmit:"onUserDataSubmit"},standalone:!1,decls:19,vars:17,consts:[[1,"registration-email_title","regular","text-center"],[1,"registration-user",3,"ngSubmit","formGroup"],["appearance","outline",1,"registration-user_field"],["matInput","","type","email","autocomplete","email","formControlName","Email","placeholder","[email protected]",1,"auth-input"],[3,"mainForm","fieldName","formErrors"],[1,"registration-user_button-block"],["mat-ripple","","type","submit",1,"button","auth-button",3,"disabled"]],template:function(R,D){1&R&&(t.nrm(0,"app-check-animated"),t.j41(1,"p",0),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"form",1),t.bIt("ngSubmit",function(){return D.onUserDataSubmit.emit()}),t.j41(5,"mat-form-field",2)(6,"mat-label"),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.nrm(9,"input",3),t.j41(10,"mat-hint"),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.j41(13,"mat-error"),t.nrm(14,"app-control-validation-messages",4),t.k0s()(),t.j41(15,"div",5)(16,"button",6),t.EFF(17),t.nI1(18,"translate"),t.k0s()()()),2&R&&(t.R
17$(2),t.JRh(t.bMT(3,9,"auth.registration.success")),t.R7$(2),t.Y8G("formGroup",D.form),t.R7$(3),t.JRh(t.bMT(8,11,"payments.settings.main.email")),t.R7$(4),t.SpI(" ",t.bMT(12,13,"auth.registration.email.title")," "),t.R7$(3),t.Y8G("mainForm",D.form)("fieldName","Email")("formErrors",D.formErrors),t.R7$(2),t.Y8G("disabled",D.form.invalid),t.R7$(),t.SpI(" ",t.bMT(18,15,"auth.logIn.title")," "))},dependencies:[o.qT,o.me,o.BC,o.cb,o.j4,o.JD,p.j,p.M,p.c,p.b,d.fg,i.M,m.g,a.Z,u.D9],styles:[".registration-email_title[_ngcontent-%COMP%]{font-size:16px;line-height:16px;margin:16px 0 41px;letter-spacing:.4;color:#202020}@media only screen and (min-width: 1024px){.registration-email_title.email-title-mt[_ngcontent-%COMP%]{margin-top:56px}}.registration-user[_ngcontent-%COMP%] .auth-button[_ngcontent-%COMP%]{margin-top:2px}"],changeDetection:0}),P})()},38560:(I,c,e)=>{e.d(c,{u:()=>m});var t=e(93683),o=e(48503),p=e(21445),d=e(12481),i=e(85240);let m=(()=>{var a;class u{}return(a=u).\u0275fac=function(g){return new(g||a)},a.\u0275mod=d.$C({type:a}),a.\u0275inj=i.G2t({imports:[t.MD,o.h,p.h]}),u})()},48344:(I,c,e)=>{e.d(c,{F:()=>d});var t=e(12481),o=e(88036),p=e(48503);let d=(()=>{var i;class m{constructor(){this.onNavigateAfterRestore=new t.bkB}}return(i=m).\u0275fac=function(u){return new(u||i)},i.\u0275cmp=t.VBU({type:i,selectors:[["app-restore-success"]],outputs:{onNavigateAfterRestore:"onNavigateAfterRestore"},standalone:!1,decls:8,vars:6,consts:[[1,"registration-restore_status","flex-container","flex-dir-column","align-center-middle","text-center"],["src","https://cdn.easypay.ua/images/svg/auth/restore-success.svg","alt","restore-success",1,"registration-restore_status-img"],[1,"registration-restore_status-text"],["mat-ripple","","type","button",1,"button","auth-button",3,"click"]],template:function(u,h){1&u&&(t.j41(0,"section",0),t.nrm(1,"img",1),t.j41(2,"p",2),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"button",3),t.bIt("click",function(){return h.onNavigateAfterRestore.emit()}),t.EFF(6),t.nI1(7,"translate"),t.k0s()()),2&u&&(t.R7$(3),t.JRh(t.bMT(4,2,"auth.registration.restore-acc.status-ok")),t.R7$(3),t.JRh(t.bMT(7,4,"auth.registration.restore-acc.clear")))},dependencies:[o.M,p.D9],encapsulation:2,changeDetection:0}),m})()},51940:(I,c,e)=>{function t(o,p="_self",d=""){return"_blank"===p&&(d="noopener"),window.open(o,p,d)}e.d(c,{j:()=>t})},73750:(I,c,e)=>{e.d(c,{W:()=>d});var t=e(12481),o=e(88036),p=e(48503);let d=(()=>{var i;class m{constructor(){this.onCreateAccount=new t.bkB}}return(i=m).\u0275fac=function(u){return new(u||i)},i.\u0275cmp=t.VBU({type:i,selectors:[["app-restore-unavailable"]],outputs:{onCreateAccount:"onCreateAccount"},standalone:!1,decls:8,vars:6,consts:[[1,"registration-restore_status","flex-container","flex-dir-column","align-center-middle","failed"],["src","https://cdn.easypay.ua/images/svg/auth/restore-failed.svg","alt","restore-failed",1,"registration-restore_status-img"],[1,"registration-restore_status-text"],["mat-ripple","","type","button",1,"button","auth-button",3,"click"]],template:function(u,h){1&u&&(t.j41(0,"section",0),t.nrm(1,"img",1),t.j41(2,"p",2),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"button",3),t.bIt("click",function(){return h.onCreateAccount.emit()}),t.EFF(6),t.nI1(7,"translate"),t.k0s()()),2&u&&(t.R7$(3),t.JRh(t.bMT(4,2,"auth.registration.restore-acc.status-unavaliable")),t.R7$(3),t.JRh(t.bMT(7,4,"auth.registration.restore-acc.create-acc")))},dependencies:[o.M,p.D9],encapsulation:2,changeDetection:0}),m})()},77146:(I,c,e)=>{e.d(c,{H:()=>b});var t=e(12481),o=e(11249),p=e(91817),d=e(60316),i=e(34456),m=e(86521),a=e(46679),u=e(79864),h=e(91120),g=e(88036),P=e(48503);const v=["passwordLength"],R=["passwordHighReg"],D=["passwordLowReg"],B=["passwordDigits"],F=["password"],w=["passwordNonWiteSpace"],x=["confirmPassword"];function j(A,M){1&A&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&A&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"auth.registration.info.btn-registration")," "))}function y(A,M){1&A&&t.nrm(0,"div",16)}let b=(()=>{var A;class M{constructor(_,s){this.platformId=_,this.renderer=s,this.isLoading=!1,this.alive=!0,this.isBrowser=(0,d.UE)(this.platformId)}ngOnInit(){this.isBrowser&&this.createFormChangeSubscription()}ngOnDestroy(){this.alive=!1}createFormChangeSubscription(){this.form.get("Password").valueChanges.pipe((0,o.v)(()=>this.alive),(0,p.F)()).subscribe(()=>{this.passwordValidator()})}passwordValidator(){let _=this.form.get("Password").value;_&&_?.length>2?(_.search("[A-Z\u0410-\u042f\u0401]")>-1?this.addRemoveClass(this.passwordHighReg.nativeElement):this.addRemoveClass(this.passwordHighReg.nativeElement,!1),_.search("[a-z\u0430-\u044f\u0451]")>-1?this.addRemoveClass(this.passwordLowReg.nativeElement):this.addRemoveClass(this.passwordLowReg.nativeElement,!1),_.search("[0-9]")>-1?this.addRemoveClass(this.passwordDigits.nativeElement):this.addRemoveClass(this.passwordDigits.nativeElement,!1),_.length>=8?this.addRemoveClass(this.passwordLength.nativeElement):this.addRemoveClass(this.passwordLength.nativeElement,!1),_.search(/^[^;:\`',\\.\/\|\[\]{}~"()_+=<>\s]+$/)>-1?this.addRemoveClass(this.passwordNonWiteSpace.nativeElement):this.addRemoveClass(this.passwordNonWiteSpace.nativeElement,!1)):(this.passwordHighReg.nativeElement.classList="",this.passwordDigits.nativeElement.classList="",this.passwordLength.nativeElement.classList="",this.passwordLowReg.nativeElement.classList="",this.passwordNonWiteSpace.nativeElement.classList="")}addRemoveClass(_,s=!0,E="warn",T="success"){this.renderer.addClass(_,s?T:E),this.renderer.removeClass(_,s?E:T)}}return(A=M).\u0275fac=function(_){return new(_||A)(t.rXU(t.Agw),t.rXU(t.sFG))},A.\u0275cmp=t.VBU({type:A,selectors:[["app-password-input"]],viewQuery:function(_,s){if(1&_&&(t.GBs(v,5),t.GBs(R,5),t.GBs(D,5),t.GBs(B,5),t.GBs(F,5),t.GBs(w,5),t.GBs(x,5)),2&_){let E;t.mGM(E=t.lsd())&&(s.passwordLength=E.first),t.mGM(E=t.lsd())&&(s.passwordHighReg=E.first),t.mGM(E=t.lsd())&&(s.passwordLowReg=E.first),t.mGM(E=t.lsd())&&(s.passwordDigits=E.first),t.mGM(E=t.lsd())&&(s.passwordElement=E.first),t.mGM(E=t.lsd())&&(s.passwordNonWiteSpace=E.first),t.mGM(E=t.lsd())&&(s.confirmPasswordElement=E.first)}},inputs:{form:"form",formErrors:"formErrors",isLoading:"isLoading"},standalone:!1,decls:51,vars:46,consts:[["password",""],["confirmPassword",""],["passwordLength",""],["passwordHighReg",""],["passwordLowReg",""],["passwordDigits",""],["passwordNonWiteSpace",""],["appearance","outline",1,"password-input"],["type","password","name","password","aria-hidden","true","tabindex","-1",1,"hidden-autocomplete-input"],["matInput","","name","new-password","autocomplete","new-password","minlength","8",1,"auth-input",3,"type","formControl"],[1,"psw-in
1put-toggle",3,"passwordInput","id"],[3,"mainForm","fieldName","formErrors"],["type","tel","name","username","aria-hidden","true","tabindex","-1",1,"hidden-autocomplete-input"],["matInput","","name","confirm-password","autocomplete","off",1,"auth-input",3,"type","formControl"],[1,"registration_password-button"],["mat-ripple","","type","submit",1,"button","auth-button",3,"disabled"],[1,"loading-spinner"],[1,"registration_validation"],[1,"registration_validation-title","regular"],[1,"registration_validation-list"]],template:function(_,s){if(1&_&&(t.j41(0,"mat-form-field",7)(1,"mat-label"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"input",8)(5,"input",9,0),t.nI1(7,"translate"),t.nrm(8,"app-password-toggle",10),t.j41(9,"mat-error"),t.nrm(10,"app-control-validation-messages",11),t.k0s()(),t.j41(11,"mat-form-field",7)(12,"mat-label"),t.EFF(13),t.nI1(14,"translate"),t.k0s(),t.nrm(15,"input",12)(16,"input",13,1),t.nI1(18,"translate"),t.nrm(19,"app-password-toggle",10),t.j41(20,"mat-error"),t.nrm(21,"app-control-validation-messages",11),t.k0s()(),t.j41(22,"div",14)(23,"button",15),t.nVh(24,j,3,3,"span")(25,y,1,0,"div",16),t.k0s()(),t.j41(26,"div",17)(27,"div",18),t.EFF(28),t.nI1(29,"translate"),t.k0s(),t.j41(30,"ul",19)(31,"li",null,2),t.EFF(33),t.nI1(34,"translate"),t.k0s(),t.j41(35,"li",null,3),t.EFF(37),t.nI1(38,"translate"),t.k0s(),t.j41(39,"li",null,4),t.EFF(41),t.nI1(42,"translate"),t.k0s(),t.j41(43,"li",null,5),t.EFF(45),t.nI1(46,"translate"),t.k0s(),t.j41(47,"li",null,6),t.EFF(49),t.nI1(50,"translate"),t.k0s()()()),2&_){const E=t.sdS(6),T=t.sdS(17);t.R7$(2),t.JRh(t.bMT(3,26,"auth.registration.restore.new-password-label")),t.R7$(3),t.Y8G("type","password")("formControl",s.form.get("Password")),t.BMQ("aria-label",t.bMT(7,28,"auth.registration.restore.new-password-label")),t.R7$(3),t.Y8G("passwordInput",E)("id","new-password"),t.R7$(2),t.Y8G("mainForm",s.form)("fieldName","Password")("formErrors",s.formErrors),t.R7$(3),t.JRh(t.bMT(14,30,"auth.registration.restore.confirm-new-password-title")),t.R7$(3),t.Y8G("type","password")("formControl",s.form.get("ConfirmPassword")),t.BMQ("aria-label",t.bMT(18,32,"auth.registration.restore.confirm-new-password-title")),t.R7$(3),t.Y8G("passwordInput",T)("id","new-password-confirm"),t.R7$(2),t.Y8G("mainForm",s.form)("fieldName","ConfirmPassword")("formErrors",s.formErrors),t.R7$(2),t.Y8G("disabled",null==s.form?null:s.form.invalid),t.R7$(),t.vxM(s.isLoading?25:24),t.R7$(4),t.SpI("",t.bMT(29,34,"auth.registration.register.should-have"),":"),t.R7$(5),t.JRh(t.bMT(34,36,"auth.registration.register.min-length")),t.R7$(4),t.JRh(t.bMT(38,38,"auth.registration.register.upper-reg")),t.R7$(4),t.JRh(t.bMT(42,40,"auth.registration.register.lower
1-reg")),t.R7$(4),t.JRh(t.bMT(46,42,"auth.registration.register.digits")),t.R7$(4),t.JRh(t.bMT(50,44,"auth.registration.register.no-whitespace"))}},dependencies:[i.me,i.BC,i.xh,i.l_,m.g,a.j,a.M,a.b,u.fg,h.p,g.M,P.D9],styles:['@charset "UTF-8";.registration_validation[_ngcontent-%COMP%]{font-size:13px;line-height:15px;color:#4b4e56;margin:32px 0}.registration_validation[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-bottom:0}.registration_validation[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;display:block;font-weight:300;font-size:13px;line-height:15px;color:#4b4e56;margin-top:12px;padding-left:14px}.registration_validation[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:first-child{margin-top:16px}.registration_validation[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{content:"\\2022";color:#a7aaac;display:block;position:absolute;left:0;top:0;height:8px;width:8px;background-position:center;background-repeat:no-repeat}.registration_validation[_ngcontent-%COMP%] li.success[_ngcontent-%COMP%]{color:#54b56f}.registration_validation[_ngcontent-%COMP%] li.success[_ngcontent-%COMP%]:before{content:"";display:block;top:4px;background-image:url(https://cdn.easypay.ua/images/svg/success.svg)}.registration_validation[_ngcontent-%COMP%] li.warn[_ngcontent-%COMP%]{color:#fa4b4b}.registration_validation[_ngcontent-%COMP%] li.warn[_ngcontent-%COMP%]:before{content:"";display:block;top:4px;background-image:url(https://cdn.easypay.ua/images/svg/warning.svg)}']}),M})()},79735:(I,c,e)=>{e.d(c,{_:()=>p});var t=e(36732),o=e(12481);let p=(()=>{var d;class i{}return d=i,(0,t.A)(i,"\u0275fac",function(a){return new(a||d)}),(0,t.A)(i,"\u0275cmp",o.VBU({type:d,selectors:[["structural-styles"]],decls:0,vars:0,template:function(a,u){},styles:['.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}\n'],encapsulation:2,changeDetection:0})),i})()},86707:(I,c,e)=>{e.d(c,{o:()=>R});var t=e(93887),o=e(68366),p=e(80769),d=e(25004),i=e(79864),m=e(15456),a=e(42519),u=e(35373),h=e(13899),g=e(38560),P=e(12481),v=e(85240);let R=(()=>{var D;class B{}return(D=B).\u0275fac=function(w){return new(w||D)},D.\u0275mod=P.$C({type:D}),D.\u0275inj=v.G2t({imports:[t.G,o.aP,p.M,i.fS,m.M,d.d,a.O,u.o,h.D,g.u]}),B})()},88588:(I,c,e)=>{e.d(c,{v:()=>et});var t=e(12481),o=e(34456),p=e(68010),d=e(9496),i=e(26368),m=e(11249),a=e(89475),u=e(61318),h=e(98764),g=e(2435),P=e(51567),v=e(19838),R=e(1522),D=e(54223),B=e(2145),F=e(84205),w=e(77919),x=e(47697),j=e(20079),y=e(23928),b=e(82982),A=e(80318),M=e(777),O=e(46679),_=e(30034),s=function(C){return C[C.enterPhone=0]="enterPhone",C[C.confirmCode=1]="confirmCode",C[C.createPassword=2]="createPassword",C[C.userData=3]="userData",C[C.restoreAvailable=4]="restoreAvailable",C[C.restoreAccount=5]="restoreAccount",C[C.restoreSuccess=6]="restoreSuccess",C[C.restoreUnavailable=7]="restoreUnavailable",C[C.identification=8]="identification",C}(s||{}),E=e(28732),T=e(48700),U=e(64976),l=e(85240),S=e(98509),k=e(48503),$=e(68366),K=e(88036),N=e(31674),V=e(73750),Y=e(48344),z=e(93576),J=e(9724),X=e(28184),H=e(35796);const Q=["stepper"],Z=()=>["RegConfirm","ConfirmCode"];function q(C,W){1&C&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&C&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"auth.registration.restore.confirm-new-password")," "))}function tt(C,W){1&C&&t.nrm(0,"div",9)}let et=(()=>{var C;class W extends i.I{constructor(r,n,f,L,rt,nt,ot,st,at,it,lt,ut,ht,mt){super(r),this.fb=n,this.authService=f,this.router=L,this.localize=rt,this.translateService=nt,this.sessionStateService=ot,this.profileService=st,this.userDataService=at,this.activatedRoute=it,this.errorService=lt,this.ecomService=ut,this.returnUrlService=ht,this.esPayPaymentFormProvider=mt,this.isAuthPage=!1,this.isExternalAuthFLow=!1,this.tabsHeaderState=new t.bkB,this.onChangeTab=new t.bkB,this.onAuthClose=new t.bkB,this.onError=ne
1w t.bkB,this.alive=!0,this.isLoading=!1,this.userWithoutPassword=!1,this.userProfileData=new M.T,this.registrationFlowSteps=s,this.resetPassword$=new F.B,this.resetPhone$=new F.B,this.initForms(),this.isBrowser&&(this.initFormErrors(),this.createFormChangeSubscription())}ngOnInit(){this.isBrowser&&(this.getBaseValidationMessages(),this.populatePhone())}ngOnDestroy(){this.alive=!1}createFormChangeSubscription(){this.registrationForm.valueChanges.pipe((0,m.v)(()=>this.alive)).subscribe(()=>{this.error.isNoErrors||this.onError.emit(new D.f),this.onValueChanged(this.registrationForm)})}populatePhone(){const r=this.activatedRoute.snapshot.queryParams.phone;r&&(this.registrationForm.get(["RegPhone","Phone"]).setValue(r.slice(-9)),setTimeout(()=>{this.stepperGoTo(this.registrationFlowSteps.confirmCode),this.confirmCodeElement?.focus(),this.confirmCodeInputComponent?.initTimer()},0))}authClose(){this.onAuthClose.emit()}initForms(){const r=new RegExp(v.D5.PASSWORD_PATTERN),n=new o.hs("",o.k0.compose([o.k0.required,o.k0.pattern(r)]));this.registrationForm=this.fb.group({RegPhone:this.fb.group({Phone:["",o.k0.compose([o.k0.required,o.k0.pattern(v.D5.AUTH_PHONE_MASK_PATTERN)])]}),RegConfirm:this.fb.group({ConfirmCode:["",o.k0.compose([o.k0.required,o.k0.minLength(6),o.k0.maxLength(6)])]}),RegPassword:this.fb.group({Password:n,ConfirmPassword:["",o.k0.compose([o.k0.required,o.k0.pattern(r),B.N.match(n)])]}),RegUserData:this.fb.group({Email:["",o.k0.compose([o.k0.required,o.k0.pattern(v.D5.EMAIL_VALIDATION_PATTERN)])]})})}initFormErrors(){this.formErrors={Phone:new R.b,Password:new R.b,ConfirmPassword:new R.b,ConfirmCode:new R.b,Email:new R.b}}getBaseValidationMessages(){this.translateService.get("validate-messages.required").subscribe(r=>{this.setBaseValidationMessages(r,"required")}),this.translateService.get("validate-messages.pattern").subscribe(r=>{this.setBaseValidationMessages(r,"pattern")}),this.translateService.get("validate-messages.minimal-length").subscribe(r=>{this.setBaseValidationMessages(r+"6","minlength","ConfirmCode")}),this.translateService.get("validate-messages.maximum-length").subscribe(r=>{this.setBaseValidationMessages(r+"6","maxlength","ConfirmCode")}),this.translateService.get("validate-messages.password-not-equal").subscribe(r=>{this.setBaseValidationMessages(r,"match","ConfirmPassword")})}setTabsHeaderState(r){this.tabsHeaderState.emit(r)}loginNavigate(r){r?.preventDefault(),this.authClose(),this.router.navigate([this.localize.translateRoute("/auth/login")],{queryParamsHandling:"preserve"})}changeTab(r,n){n?.preventDefault(),this.resetPhone(!0),this.userWithoutPassword=!1,this.onChangeTab.emit(r)}checkPhone(){!this.registrationForm.get(["RegPhone","Phone"]).valid||this.isLoading||(this.setTabsHeaderState(!0),this.isLoading=!0,this.checkAndClearError(),this.sendPhone())}sendPhone(){this.authService.check(this.userLoginPhone).pipe((0,a.j)(()=>this.isLoading=!1)).subscribe({next:r=>this.onPhoneChecked(r?.data?.codeType),error:r=>this.setAndEmitError(r)})}onPhoneChecked(r){switch(r){case"ALREADY_REGISTERED":this.isAuthPage?this.loginNavigate():this.changeTab(0),this.resetPhone();break;case"SMS_CODE_SENT":this.stepperGoTo(this.registrationFlowSteps.confirmCode),setTimeout(()=>{this.confirmCodeElement?.focus(),this.confirmCodeInputComponent?.initTimer()},0)}}sendAgain(){!this.registrationForm.get(["RegPhone","Phone"]).valid||this.isLoading||(setTimeout(()=>this.confirmCodeElement?.focus(),0),this.registrationForm.get(["RegConfirm","ConfirmCode"]).reset(""),this.authService.check(this.userLoginPhone).subscribe({error:n=>this.setAndEmitError(n)}))}resetPhone(r=!1){this.resetPhone$.next(),r&&this.registrationForm.get(["RegPhone","Phone"]).reset("")}resetPassword(){this.resetPassword$.next(),this.registrationForm.get("RegPassword").reset(),this.registrationForm.get("RegPassword").markAsUntouched()}setAnotherPhone(){this.confirmCodeInputComponent?.stopTimer(),this.setTabsHeaderState(!0),this.resetPhone(),this.registrationForm.get(["RegConfirm","ConfirmCode"]).reset(""),this.registrationForm.get(["RegConfirm","ConfirmCode"]).markAsUntouched(),this.userWithoutPassword=!1,this.matStepper?.previous()}confirmOtp(){const r=this.registrationForm.get(["RegPhone","Phone"]),n=this.registrationForm.get(["RegConfirm","ConfirmCode"]);!r.valid||!n.valid||this.isLoading||(this.isLoading=!0,this.checkAndClearError(),this.authService.confirmCheck(this.userLoginPhone,n.value).pipe((0,a.j)(()=>{this.isLoading=!1,n.reset("")}),(0,u.W)(f=>(setTimeout(()=>
1this.confirmCodeElement?.focus(),0),this.setAndEmitError(f),(0,w.$)(f)))).subscribe(this.confirmOtpNext))}get confirmOtpNext(){return{next:r=>{switch(r?.data){case"CREATE_PASSWORD_CONFIRMATION_CONFIRMED":this.userWithoutPassword=!0,this.stepperGoTo(this.registrationFlowSteps.createPassword);break;case"REGISTRATION_OR_RESTORE_CONFIRMATION_CONFIRMED":this.stepperGoTo(this.registrationFlowSteps.restoreAvailable);break;default:this.stepperGoTo(this.registrationFlowSteps.createPassword)}}}}checkPhonePwdValidity(){const r=this.registrationForm.get(["RegPhone","Phone"]),n=this.registrationForm.get(["RegPassword","Password"]);return!(!r.valid||!n.valid||this.isLoading||(this.isLoading=!0,this.checkAndClearError(),0))}register(){this.checkPhonePwdValidity()&&(0,x.T)(()=>this.userWithoutPassword,this.authService.restorePassword(this.userLoginPhone,this.password),this.authService.signup(this.userLoginPhone,this.password).pipe((0,h.M)(()=>this.ecomService.pushSignUpEvent("direct")))).subscribe({next:()=>this.getTokenAccess(this.password),error:r=>this.onRestoreOrRegisterError(r)})}restoreAccount(){this.checkPhonePwdValidity()&&this.authService.restoreAccount(this.userLoginPhone,this.password).subscribe({next:()=>this.onRestoreAccountNext(),error:r=>this.onRestoreOrRegisterError(r)})}onRestoreAccountNext(){this.subscribeOnEventProfileData("restoreAcc"),this.stepperGoTo(this.registrationFlowSteps.restoreSuccess)}onRestoreOrRegisterError(r){this.isLoading=!1,"VERIFICATION_CODE_ALREADY_EXPIRED"===r.error.errorCode&&(this.stepperGoTo(this.registrationFlowSteps.enterPhone),this.registrationForm.get(["RegConfirm","ConfirmCode"]).reset(""),this.resetPassword()),this.setAndEmitError(r)}checkRestore(){this.isLoading=!0,this.authService.restoreCheck(this.userLoginPhone).pipe((0,g.$)(),(0,a.j)(()=>this.isLoading=!1),(0,u.W)(r=>(this.setAndEmitError(r),(0,w.$)(r)))).subscribe({next:({data:r})=>this.onRestoreChecked(r?.codeType)})}onRestoreChecked(r){switch(r){case"RESTORE_AVAILABLE":this.stepperGoTo(this.registrationFlowSteps.restoreAccount);break;case"RESTORE_NOT_AVAILABLE":this.stepperGoTo(this.registrationFlowSteps.restoreUnavailable);break;case"REQUIRED_IDENTIFICATION":this.stepperGoTo(this.registrationFlowSteps.identification);break;default:this.stepperGoTo(this.registrationFlowSteps.enterPhone)}}getTokenAccess(r){this.authService.login(this.userLoginPhone,r).pipe((0,a.j)(()=>this.isLoading=!1)).subscribe({next:()=>this.subscribeOnEventProfileData("registration"),error:n=>this.setAndEmitError(n)})}subscribeOnEventProfileData(r){this.profileDataSubscription=this.userDataService?.eventProfileAuthData$.pipe((0,P.p)(n=>!!n)).subscribe({next:n=>{this.userProfileData=n,this.onReceiveProfileData(r),this.profileDataSubscription?.unsubscribe()}})}onReceiveProfileData(r){switch(r){case"registration":this.handleDataAfterSignUp();break;case"externalAuth":this.handleDataAfterExternalAuth();break;case"restoreAcc":this.handleDataAfterRestoreAcc()}}handleDataAfterSignUp(){this.isNewLang&&this.translateRoutes(),this.returnUrlService.announceAuthEvents(),this.userWithoutPassword?this.onDataSubmitted():this.stepperGoTo(this.registrationFlowSteps.userData)}handleDataAfterRestoreAcc(){this.isNewLang&&(this.translateRoutes(),this.returnUrlService.localizeWithoutNavigation(this.router.url)),this.isAuthRoute||this.returnUrlService.announceAuthEvents()}handleDataAfterExternalAuth(){const r=this.externalAuthReturnUrl;this.userProfileData.locale.value&&this.translateRoutes(),r?this.handleExternalAuthReturnUrl(r):this.navigateAfterExternalAuth()}get externalAuthReturnUrl(){const r=this.esPayPaymentFormProvider.getEsPayExternalAuthStorageData();return r?.path&&r?.saveDate&&!this.esPayPaymentFormProvider.isDataExpired(r?.saveDate)?decodeURIComponent(r.path):void 0}submitUserData(){const r=this.registrationForm.get("RegUserData");if(!r.valid||this.isLoading)return;this.isLoading=!0,this.checkAndClearError();const n={email:r.get("Email").value};this.profileService.updateUserProfile(n).pipe((0,a.j)(()=>this.isLoading=!1)).subscribe({next:()=>this.onDataSubmitted(n.email),error:f=>this.setAndEmitError(f)})}onDataSubmitted(r){this.userWithoutPassword=!1,this.resetForm(),r&&this.updateUserEmail(r),this.isAuthRoute?this.navigateFromAuthPage():this.redirectToCurrentRoute()}updateUserEmail(r){this.userDataService.emitAuthProfile(Object.assign(this.userProfileData,{email:{confirmed:this.userProfileData.email.confirmed,unConfirmed:r}}))}redirectToCurrentRoute(){this.authClose(),this.state?.redirectUrl?this.returnUrlService.localizeAndNavigate(this.state?.redirectUrl):this.returnUrlService.localizeWithoutNavigation(this.router.url)}resetForm(){this.authClose(),this.setTabsHeaderState(!0),this.confirmCodeInputComponent?.stopTimer(),this.resetPhone(!0),this.resetPassword(),this.registrationForm.reset(),this.matStepper?.reset()}
1get userLoginPhone(){return this.authService.phonePrefix+this.getPurePhone(this.registrationForm.get(["RegPhone","Phone"]))}get password(){return this.registrationForm.get(["RegPassword","Password"]).value}get confirmCodeElement(){return this.confirmCodeInputComponent?.confirmCode?.nativeElement}stepperGoTo(r){this.matStepper.selectedIndex=r}setAndEmitError(r){this.setError(r),this.onError.emit(r)}checkAndClearError(){this.error.isNoErrors||this.onError.emit(new D.f)}onNavigateAfterRestore(){this.isAuthRoute?this.navigateFromAuthPage():this.authClose()}translateRoutes(){this.localize.changeLanguage(this.userProfileData?.locale?.value,{},!1,!1)}navigateFromAuthPage(){const r=this.authService?.registrationContext?.returnUrl?this.localize.unLocalizeRoute(this.authService?.registrationContext?.returnUrl):null;this.router.navigate([this.localize.translateRoute((()=>{const f=this.returnUrlService.returnUrl;return f&&"/"!==f?f:null})()||r||"/profile/payments")])}navigateAfterExternalAuth(){this.router.navigate([this.localize.translateRoute("/profile/payments")])}handleExternalAuthReturnUrl(r){const n=this.esPayPaymentFormProvider.getDefaultEsPayForm()?.path?.url,f=this.userProfileData.locale.value;r.split("?")?.[0]===n&&(this.authService.shouldRestoreData=!0),this.router.navigateByUrl(f?this.localize.localizeRoute(r,f):r).then(()=>this.esPayPaymentFormProvider.removeEsPayExternalAuthStorageData())}get isNewLang(){const r=this.userProfileData?.locale?.value;return r&&r!==this.localize.parser.currentLang}get isAuthRoute(){return this.authService.isAuthRoute}}return(C=W).\u0275fac=function(r){return new(r||C)(t.rXU(t.Agw),t.rXU(o.ze),t.rXU(p.u),t.rXU(S.Ix),t.rXU(d.Q),t.rXU(k.c$),t.rXU(A.v),t.rXU(j.p),t.rXU(b.J),t.rXU(S.nX),t.rXU(_.I),t.rXU(E.K),t.rXU(T.l),t.rXU(U.IQ))},C.\u0275cmp=t.VBU({type:C,selectors:[["app-registration"]],viewQuery:function(r,n){if(1&r&&(t.GBs(Q,5),t.GBs(y.x,5)),2&r){let f;t.mGM(f=t.lsd())&&(n.matStepper=f.first),t.mGM(f=t.lsd())&&(n.confirmCodeInputComponent=f.first)}},hostAttrs:["ngSkipHydration","true"],inputs:{state:"state",isAuthPage:"isAuthPage",isExternalAuthFLow:"isExternalAuthFLow"},outputs:{tabsHeaderState:"tabsHeaderState",onChangeTab:"onChangeTab",onAuthClose:"onAuthClose",onError:"onError"},standalone:!1,features:[t.Jv_([{provide:O.i,useValue:{appearance:"outline"}}]),t.Vt3],decls:37,vars:37,consts:[["stepper",""],[1,"full-height",3,"formGroup"],[3,"onPhoneSubmit","onChangeTab","form","formErrors","isLoading","isAuthPage","isExternalAuthFLow","resetPhoneSubj"],["formGroupName","RegConfirm",1,"confirm-code-step",3,"ngSubmit"],[1,"registration_user-phone"],["type","tel","readonly","","autocomplete","one-time-code",1,"auth-input","regular",3,"value"],["type","button",1,"registration_change-phone",3,"click"],[3,"submitCode","onSendAgain","form","formErrors","controlName"],["mat-ripple","","type","submit",1,"button","auth-button",3,"disabled"],[1,"loading-spinner"],[1,"confirm-code-info","regular"],[3,"onSubmitPassword","form","formErrors","isLoading","resetPasswordSubj"],[3,"onUserDataSubmit","form","formErrors"],[3,"onRestore","onContinueRegistration","phone"],[3,"onNavigateAfterRestore"],[3,"onCreateAccount"],[3,"onRegister","phone"]],template:function(r,n){if(1&r){const f=t.RV6();t.j41(0,"form",1)(1,"mat-horizontal-stepper",null,0)(3,"mat-step")(4,"app-enter-phone",2),t.bIt("onPhoneSubmit",function(){return l.eBV(f),l.Njj(n.checkPhone())})("onChangeTab",function(){return l.eBV(f),l.Njj(n.changeTab(0))}),t.k0s()(),t.j41(5,"mat-step")(6,"form",3),t.bIt("ngSubmit",function(){return l.eBV(f),l.Njj(n.confirmOtp())}),t.j41(7,"div",4)(8,"label"),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.nrm(11,"input",5),t.j41(12,"button",6),t.bIt("click",function(){return l.eBV(f),l.Njj(n.setAnotherPhone())}),t.EFF(13),t.nI1(14,"translate"),t.k0s()(),t.j41(15,"app-confirm-code-input",7),t.bIt("submitCode",function(){return l.eBV(f),l.Njj(n.confirmOtp())})("onSendAgain",function(){return l.eBV(f),l.Njj(n.sendAgain())}),t.k0s(),t.j41(16,"div")(17,"button",8),t.nVh(18,q,3,3,"span"),t.nVh(19,tt,1,0,"div",9),t.k0s()(),t.j41(20,"p",10),t.EFF(21),t.nI1(22,"translate"),t.k0s()()(),t.j41(23,"mat-step")(24,"a
1pp-create-password",11),t.bIt("onSubmitPassword",function(){return l.eBV(f),l.Njj(n.register())}),t.k0s()(),t.j41(25,"mat-step")(26,"app-user-data",12),t.bIt("onUserDataSubmit",function(){return l.eBV(f),l.Njj(n.submitUserData())}),t.k0s()(),t.j41(27,"mat-step")(28,"app-restore-available",13),t.bIt("onRestore",function(){return l.eBV(f),l.Njj(n.checkRestore())})("onContinueRegistration",function(){return l.eBV(f),l.Njj(n.stepperGoTo(n.registrationFlowSteps.createPassword))}),t.k0s()(),t.j41(29,"mat-step")(30,"app-create-password",11),t.bIt("onSubmitPassword",function(){return l.eBV(f),l.Njj(n.restoreAccount())}),t.k0s()(),t.j41(31,"mat-step")(32,"app-restore-success",14),t.bIt("onNavigateAfterRestore",function(){return l.eBV(f),l.Njj(n.onNavigateAfterRestore())}),t.k0s()(),t.j41(33,"mat-step")(34,"app-restore-unavailable",15),t.bIt("onCreateAccount",function(){return l.eBV(f),l.Njj(n.stepperGoTo(n.registrationFlowSteps.createPassword))}),t.k0s()(),t.j41(35,"mat-step")(36,"app-bank-id-required",16),t.bIt("onRegister",function(){return l.eBV(f),l.Njj(n.stepperGoTo(n.registrationFlowSteps.createPassword))}),t.k0s()()()()}2&r&&(t.Y8G("formGroup",n.registrationForm),t.R7$(),t.Y8G("@.disabled",n.isAuthPage),t.R7$(3),t.Y8G("form",n.registrationForm.get("RegPhone"))("formErrors",n.formErrors)("isLoading",n.isLoading)("isAuthPage",n.isAuthPage)("isExternalAuthFLow",n.isExternalAuthFLow)("resetPhoneSubj",n.resetPhone$),t.R7$(5),t.JRh(t.bMT(10,30,"auth.logIn.phone")),t.R7$(2),t.Y8G("value",n.userLoginPhone),t.R7$(2),t.SpI(" ",t.bMT(14,32,"auth.registration.confirm.other-phone")," "),t.R7$(2),t.Y8G("form",n.registrationForm.get("RegConfirm"))("formErrors",n.formErrors)("controlName","ConfirmCode"),t.R7$(2),t.Y8G("disabled",n.registrationForm.get(t.lJ4(36,Z)).invalid),t.R7$(),t.vxM(n.isLoading?-1:18),t.R7$(),t.vxM(n.isLoading?19:-1),t.R7$(2),t.JRh(t.bMT(22,34,"auth.registration.confirm.description")),t.R7$(3),t.Y8G("form",n.registrationForm.get("RegPassword"))("formErrors",n.formErrors)("isLoading",n.isLoading)("resetPasswordSubj",n.resetPassword$),t.R7$(2),t.Y8G("form",n.registrationForm.get("RegUserData"))("formErrors",n.formErrors),t.R7$(2),t.Y8G("phone",n.userLoginPhone),t.R7$(2),t.Y8G("form",n.registrationForm.get("RegPassword"))("formErrors",n.formErrors)("isLoading",n.isLoading)("resetPasswordSubj",n.resetPassword$),t.R7$(6),t.Y8G("phone",n.userLoginPhone))},dependencies:[o.qT,o.cb,o.cV,o.j4,o.$R,$.V5,$.M6,K.M,y.x,N.S,V.W,Y.F,z.N,J.d,X.K,H.x,k.D9],styles:[".registration_user-phone label{margin-bottom:4px;line-height:16px;color:#9e9e9e}.registration_user-phone .auth-input{padding:0;color:#202020}.auth-home_info{font-size:12px;line-height:16px;mix-blend-mode:normal;color:#4b4e56;font-weight:400;margin-bottom:32px}.auth-home_info.mt-24{margin:24px 0 0}.registration_change-phone{color:#1f83fe;cursor:pointer;margin-top:16px;font-weight:400;font-size:13px;line-height:16px}.registration_change-phone:hover,.registration_change-phone:focus{color:#0f70e9}.confirm-code-step .auth-button{margin-top:18px}.registration-restore_text{color:#202020;text-align:center;font-size:18px;font-weight:400;line-height:25px;margin-bottom:7px;opacity:.5}.registration-restore_account{color:#4b4e56;font-size:20px;font-weight:400;line-height:normal;margin-bottom:24px}.registration-restore_img{margin-top:9px;width:160px}.registration-restore .auth-button{margin-top:56px}.registration-restore_status{min-height:467px;padding-bottom:24px}.registration-restore_status-img{width:58px}.registration-restore_status-text{color:#4b4e56;text-align:center;font-size:16px;font-weight:400;line-height:24px;margin:16px 0 55px}.failed .registration-restore_status-text{margin-bottom:79px}.registration-restore_status .auth-button{line-height:38px}\n"],encapsulation:2}),W})()},92183:(I,c,e)=>{e.d(c,{v:()=>t});class t{constructor(p,d,i,m,a,u,h){this.href=p,this.ariaLabel=d,this.img=i,this.alt=m,this.size=a,this.loads=u,this.rating=h,this.aspectRatio=`${a.w}/${a.h}`}}},93576:(I,c,e)=>{e.d(c,{N:()=>d});var t=e(12481),o=e(88036),p=e(48503);let d=(()=>{var i;class m{constructor(){this.onRestore=new t.bkB,this.onContinueRegistration=new t.bkB}}return(i=m).\u0275fac=function(u){return new(u||i)},i.\u0275cmp=t.VBU({type:i,selectors:[["app-restore-available"]],inputs:{phone:"phone"},outputs:{onRestore:"onRestore",onContinueRegistration:"onContinueRegistration"},standalone:!1,decls:16,vars:13,consts:[[1,"registration-restore","text-center"],[1,"registration-restore_text"],[1,"registration-restore_account"],["src","https://cdn.easypay.ua/images/svg/auth/restore-available.svg",1,"registration-restore_img"],["mat-ripple","","type","button",1,"button","auth-button",3,"click"],["mat-ripple","","type","button",1,"simple-register",3,"click"]],template:function(u,h){1&u&&(t.j41(0,"section",0)(1,"p",1),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"p",2),t.EFF(5),t.k0s(),t.j41(6,"p",1),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.nrm(9,"img",3),t.j41(10,"button",4),t.bIt("click",function(){return h.onRestore.emit()}),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.j41(13,"button",5),t.bIt("click",function(){return h.onContinueRegistration.emit()}),t.EFF(14),t.nI1(15,"translate"),t.k0s()()),2&u&&(t.R7$(2),t.JRh(t.bMT(3,5,"auth.registration.restore-acc.found-account")),t.R7$(3),t.JRh(h.phone),t.R7$(2),t.JRh(t.bMT(8,7,"auth.registration.restore-acc.want-restore")),t.R7$(4),t.SpI(" ",t.bMT(12,9,"auth.registration.restore-acc.restore")," "),t.R7$(3),t.SpI(" ",t.bMT(15,11,"auth.registration-info.btn-registration")," "))},dependencies:[o.M,p.D9],styles:[".simple-register[_ngcontent-%COMP%]{color:#1f83fe;font-size:13px;font-weight:400;line-height:15px;margin-top:16px}"],changeDetection:0}),m})()},98461:(I,c,e)=>{e.d(c,{j:()=>y});var t=e(12481),o=e(2435),p=e(70271),d=e(51567),i=e(98764),m=e(61318),a=e(51940),u=e(77919),h=e(68010),g=e(64976),P=e(48700),v=e(85240),R=e(97887),D=e(93683),B=e(48503);function F(b,A){if(1&b){const M=t.RV6();t.j41(0,"div")(1,"button",4),t.bIt("click",function(){v.eBV(M);const _=t.XpG().$implicit,s=t.XpG(3);return v.Njj(s.externalLogin(_.name))}),t.nrm(2,"img",5),t.j41(3,"span"),t.EFF(4),t.nI1(5,"translate"),t.k0s()()()}
1if(2&b){const M=t.XpG().$implicit,O=t.XpG(3);t.R7$(2),t.Y8G("src",O.providerImgPath+(null==M?null:M.icon),t.B4B)("alt",null==M?null:M.icon),t.R7$(2),t.JRh(t.bMT(5,3,"auth.external.providers."+M.name.toLowerCase()+"-sign-in"))}}function w(b,A){if(1&b&&t.nVh(0,F,6,5,"div"),2&b){let M;const O=A.$implicit;t.vxM("Google"===(M=null==O?null:O.name)?0:-1)}}function x(b,A){if(1&b&&(t.j41(0,"section",1)(1,"div",2)(2,"span",3),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.Z7z(5,w,1,1,null,null,t.fX1),t.k0s()),2&b){const M=t.XpG().ngLet;t.R7$(3),t.JRh(t.bMT(4,1,"intertelecom.or")),t.R7$(2),t.Dyx(M)}}function j(b,A){if(1&b&&(t.qex(0),t.nVh(1,x,7,3,"section",1),t.bVm()),2&b){const M=A.ngLet;t.R7$(),t.vxM(M.length?1:-1)}}let y=(()=>{var b;class A{constructor(O,_,s){this.authService=O,this.esPayPaymentFormProvider=_,this.returnUrlService=s,this.onError=new t.bkB,this.externalAuthProviders$=this.authService.authProviders$,this.providerImgPath="https://cdn.easypay.ua/images/svg/auth/external-providers/"}externalLogin(O){this.emitExternalAuthEventAndSaveUrl(),this.authService.getExternalAuthProviderUrl(O).pipe((0,o.$)(),(0,p.T)(_=>_?.data?.url),(0,d.p)(_=>!!_),(0,i.M)(_=>(0,a.j)(_)),(0,m.W)(_=>(this.onError.emit(_),this.removeSavedData(),(0,u.$)(_)))).subscribe()}emitExternalAuthEventAndSaveUrl(){this.isAuthPage&&"/"!==this.returnUrlService.returnUrl&&this.esPayPaymentFormProvider.saveEsPayExternalAuthData(this.returnUrlService.returnUrl),this.isAuthPage||(this.authService.externalAuthAnnouncedSource.next(),this.esPayPaymentFormProvider.saveEsPayExternalAuthData(this.stateReturnUrl))}removeSavedData(){this.isAuthPage||(this.esPayPaymentFormProvider.removeEsPayForm(),this.esPayPaymentFormProvider.removeEsPayExternalAuthStorageData())}}return(b=A).\u0275fac=function(O){return new(O||b)(t.rXU(h.u),t.rXU(g.IQ),t.rXU(P.l))},b.\u0275cmp=t.VBU({type:b,selectors:[["app-external-auth-providers"]],inputs:{isAuthPage:"isAuthPage",stateReturnUrl:"stateReturnUrl"},outputs:{onError:"onError"},standalone:!1,decls:2,vars:3,consts:[[4,"ngLet"],[1,"external-providers"],[1,"registration-or","relative","text-center"],[1,"relative"],["type","button",1,"button","button-white","google-auth-btn","small-16",3,"click"],[3,"src","alt"]],template:function(O,_){1&O&&(t.DNE(0,j,2,1,"ng-container",0),t.nI1(1,"async")),2&O&&t.Y8G("ngLet",t.bMT(1,1,_.externalAuthProviders$))},dependencies:[R.N,D.Jj,B.D9],styles:['.google-auth-btn[_ngcontent-%COMP%]{color:#4b4e56;border:1px solid #ccc;box-shadow:0 2px 4px #d9d9d980;height:40px;font-size:13px}.google-auth-btn[_ngcontent-%COMP%]:hover, .google-auth-btn[_ngcontent-%COMP%]:focus{background-color:#f6f5f5}.google-auth-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:12px}.registration-or[_ngcontent-%COMP%]{font-weight:400;font-size:11px;line-height:20px;margin-bottom:27px;margin-top:33px;color:#9e9e9e}.registration-or[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{background-color:#fff;padding:0 6px;display:inline-block;z-index:1}.registration-or[_ngcontent-%COMP%]:after, .registration-or[_ngcontent-%COMP%]:before{content:"";width:calc(50% - 15px);height:1px;background-color:#e0e0e0;position:absolute;top:50%;transform:translateY(-50%)}.registration-or[_ngcontent-%COMP%]:before{left:0}.registration-or[_ngcontent-%COMP%]:after{right:0}']}),A})()}}]); 2//# sourceMappingURL=6746.92f43363db354caf.js.map
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.