1import{a as W}from"./chunk-LNFP7NAG.js";import{a as E}from"./chunk-7E7RADPL.js";import{a as Q}from"./chunk-ZDRBJHQI.js";import"./chunk-QQ46FBEU.js";import"./chunk-SRWREFJT.js";import{a as O}from"./chunk-DSFBTTI2.js";import"./chunk-TM7SNWQH.js";import{k as z,m as J,q as K}from"./chunk-A3364LFD.js";import"./chunk-4O4ZC76I.js";import{e as _,h as D,i as k,l as G,n as x,q as R,u as U}from"./chunk-GF52ZLA4.js";import"./chunk-KCQQPDMT.js";import{a as g,d as B,e as H}from"./chunk-7OK4HWXF.js";import"./chunk-3TGTSPZJ.js";import{a as j,b as q}from"./chunk-MNYHBXZY.js";import"./chunk-7UKIXG2M.js";import{g as N,i as T}from"./chunk-XVV3EBMI.js";import{$b as L,Ea as v,Fa as h,Fb as r,Gb as s,Hb as b,Ib as C,Jb as y,Lb as I,Ob as S,Pc as M,ab as t,ac as d,bb as p,bc as A,cc as F,jc as V,mc as c,nc as u,vb as m,wa as P}from"./chunk-Y7SJDQ4B.js";var f=class{constructor(){this.password=new G(""),this.repeatPassword=new G("")}};var Ae=(()=>{let i=class i{constructor(n,a,e,o){this.router=n,this.translocoService=a,this.route=e,this.onboardingFacadeService=o,this.LANGUAGES_NAMES=B,this.LANGUAGE_IMAGE_PATH=H,this.errorStateMatcher=new z,this.resetPasswordForm=new k(new f),this.Errors=J,this.route.queryParams.subscribe(w=>{this.token=w.token}),this.setValidators()}submit(){if(this.resetPasswordForm.invalid)return;let n=this.resetPasswordForm.getRawValue();n.password&&this.token&&this.onboardingFacadeService.resetPassword(n.password,this.token)}get activeLanguage(){return this.translocoService.getActiveLang()}toggleLanguage(){if(this.activeLanguage===g.en){this.translocoService.setActiveLang(g.pl);return}this.translocoService.setActiveLang(g.en)}setValidators(){this.resetPasswordForm.controls.password.setValidators([_.required,E()]),this.resetPasswordForm.controls.repeatPassword.setValidators([_.required,E(),W(this.resetPasswordForm.controls.password)])}};i.\u0275fac=function(a){return new(a||i)(p(T),p(j),p(N),p(Q))},i.\u0275cmp=P({type:i,selectors:[["app-reset-password"]],standalone:!0,features:[V],decls:22,vars:21,consts:[["parentForm","ngForm"],["right-box",""],[1,"top-shelf"],[1,"language-button"],["type","button",1,"language-selector",3,"click"],["alt","","height","25","width","25",1,"language-image",3,"ngSrc"],[1,"language-name"],[1,"form-box"],[1,"form",3,"ngSubmit","formGroup"],[3,"formGroupDirective","control","label","inputType","description"],[3,"formGroupDirective","control","label","inputType"],["type","submit",1,"btn","btn-primary"]],template:function(a,e){if(a&1){let o=I();r(0,"app-double-column-view"),C(1,1),r(2,"div",2)(3,"div",3)(4,"button",4),S("click",function(){return v(o),h(e.toggleLanguage())}),b(5,"img",5),r(6,"span",6),d(7),s()()()(),r(8,"div",7)(9,"h1"),d(10),c(11,"transloco"),s(),r(12,"p"),d(13),c(14,"transloco"),s(),r(15,"form",8,0),S("ngSubmit",function(){return v(o),h(e.submit())}),b(17,"app-issuer-input",9)(18,"app-issuer-input",10),r(19,"button",11),d(20),c(21,"transloco"),s()()(),y(),s()}if(a&2){let o=L(16);t(5),m("ngSrc",e.LANGUAGE_IMAGE_PATH[e.activeLanguage]),t(2),A(e.LANGUAGES_NAMES[e.activeLanguage]),t(3),F(" ",u(11,15,"onboarding.change_password"),""),t(3),A(u(14,17,"onboarding.password_subtitle")),t(2),m("formGroup",e.resetPasswordForm),t(2),m("formGroupDirective",o)("control",e.resetPasswordForm.controls.password)("label","login_page.password")("inputType","password")("description","onboarding.password_description"),t(),m("formGroupDirective",o)("control",e.resetPasswordForm.controls.repeatPassword)("label","onboarding.repeat_password")("inputType","password"),t(2),F(" ",u(21,19,"shared.save"),"")}},dependencies:[O,M,U,x,D,R,q,K],styles:["@media (max-width: 740px){.btn-primary[_ngcontent-%COMP%]{align-items:center;width:100%;margin-bottom:1rem}}"]});let l=i;return l})();export{Ae as ResetPasswordComponent};
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.