1import{a as i,b as I,c as y}from"./chunk-52EFNO2Q.js";import{a as g}from"./chunk-U3BRQGNM.js";import"./chunk-LEYH4QNS.js";import{a as N}from"./chunk-CXXSOED6.js";import{g as L}from"./chunk-6LMEUQ2F.js";import"./chunk-EKTNBCSF.js";import"./chunk-2EZTRW42.js";import{a as D,l as F}from"./chunk-EMEDVJAZ.js";import{Ea as h,Fa as E,Ga as S,Gd as A,Hd as V,Ka as C,Lc as m,Mc as c,Nc as f,Sc as l,X as a,_ as R,cb as p,hc as v,jc as M,lb as k,lc as P,oa as _,ra as n,sa as w,ta as d,za as T}from"./chunk-PJFFJJEK.js";p();p();var O=(()=>{class t{constructor(e,o,s,r){this.router=e,this.notyService=o,this.activatedRoute=s,this.tokenValidatorService=r,this.forgotPasswordMode=i.LINKED_EXPIRED_PAGE,this.appConfig=R(A)}ngOnInit(){this.checkIfTokenValid(),this.queryParams=m(this.activatedRoute,"snapshot.queryParams")}checkIfTokenValid(){let e=this.activatedRoute.snapshot.paramMap.get("resetPasswordToken")||"";if(!this.tokenValidatorService.isTokenValid(e)){this.goToLogin();return}let s=this.tokenValidatorService.getTokenDecodedValues(e);if(m(s,"error")){this.goToLogin();return}this.email=m(s,"email",""),this.tokenValidatorService.isTokenExpired(e)?this.forgotPasswordMode=i.LINKED_EXPIRED_PAGE:(this.token=e,this.forgotPasswordMode=i.RESET_PASSWORD_PAGE)}goToLogin(){this.router.navigate(["/login"])}resetPasswordResponse(e){let{success:o,errorType:s}=e;o?(this.notyService.postMessage(new f(c.SUCCESS,g.RESET_PASSWORD_SUCCESS)),this.router.navigate(["/login"])):s==="INVALID_TOKEN"?this.forgotPasswordMode=i.LINKED_EXPIRED_PAGE:this.goToLogin()}get skipCaptcha(){let e=N(this.appConfig);return this.queryParams[e.SKIPCAPTCHA_KEY]==="true"&&!this.appConfig.production}resendLinkResponse(e){let{success:o}=e;o?(this.notyService.postMessage(new f(c.SUCCESS,g.EMAIL_VERIFICATION_SENT_SUCCESS)),this.forgotPasswordMode=i.EMAIL_SENT_PAGE):this.notyService.postMessage(new f(c.ERROR,g.EMAIL_VERIFICATION_SENT_FAILURE))}static{this.\u0275fac=function(o){return new(o||t)(n(M),n(l),n(v),n(L))}}static{this.\u0275cmp=w({type:t,selectors:[["app-reset-password"]],standalone:!1,decls:4,vars:4,consts:[[1,"layout"],[1,"container"],[3,"goToLogin","resendLinkResponse","resetPasswordResponse","skipCaptcha","forgotPasswordType","token","email"]],template:function(o,s){o&1&&(h(0,"div",0),S(1,"app-dn-logo"),h(2,"div",1)(3,"dn-forgot-password",2),C("goToLogin",function(){return s.goToLogin()})("resendLinkResponse",function(u){return s.resendLinkResponse(u)})("resetPasswordResponse",function(u){return s.resetPasswordResponse(u)}),E()()()),o&2&&(_(3),T("skipCaptcha",s.skipCaptcha)("forgotPasswordType",s.forgotPasswordMode)("token",s.token)("email",s.email))},dependencies:[D,I],encapsulation:2})}}return t})();p();var K=[{path:":resetPasswordToken",component:O},{path:"**",redirectTo:"/login"}],G=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275mod=d({type:t})}static{this.\u0275inj=a({imports:[P.forChild(K),P]})}}return t})();p();var fe=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275mod=d({type:t})}static{this.\u0275inj=a({providers:[l],imports:[F,k,G,y.forRoot(V.name)]})}}return t})();
1export{fe as ResetPasswordModule}; 2//# sourceMappingURL=chunk-MEAXX7QG.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.