PageSourceSearch

https://tapeapp.com/1694.be371920a092691a.js

js tapeapp.com collected 2026-09-24 13:14:30 UTC 30,257 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkweb_client=self.webpackChunkweb_client||[]).push([[1694],{1694:($e,st,r)=>{r.r(st),r.d(st,{ForgotPasswordModule:()=>U});var h=r(63866),Y=r(9983),d=r(55853),nt=r(35532),a=r(54520),Et=r(52678),G=r(45179),m=r(82372),xt=r(52979),C=r(93591),Tt=r(70103),M=r(41655),It=r(5372),at=r(96656),F=r(42866),w=r(74434),rt=r(66233),J=r(92114),Q=r(93511);const g="[client-store-forgot-password]",i={reset:(0,a.PH)(`${g} Reset feature`),resetInput:(0,a.PH)(`${g} Reset feature email input`),loadOrganizationViaSlug:(0,a.PH)(`${g} Load organization via slug`,(0,a.Ky)()),loadOrganizationViaSlugError:(0,C.bR)(`${g} Error loading organization via slug`),loadOrganizationViaSlugSuccess:(0,a.PH)(`${g} Loaded organization via slug`,(0,a.Ky)()),upsertEmail:(0,a.PH)(`${g} Upsert email`,(0,a.Ky)()),requestForgotPasswordEmail:(0,a.PH)(`${g} Request forgot password email`,(0,a.Ky)()),requestForgotPasswordEmailSuccess:(0,a.PH)(`${g} Requested forgot password email successfully`),setToken:(0,a.PH)(`${g} Set token`,(0,a.Ky)()),getForgotPasswordMultiFactorAuthenticationData:(0,a.PH)(`${g} Load forgot password MFA data`),getForgotPasswordMultiFactorAuthenticationDataError:(0,C.bR)(`${g} Error loading forgot password MFA data`),getForgotPasswordMultiFactorAuthenticationDataSuccess:(0,a.PH)(`${g} Loaded forgot password MFA data`,(0,a.Ky)()),performMfaVerification:(0,a.PH)(`${g} Perform MFA verification`,(0,a.Ky)()),performMfaVerificationSuccess:(0,a.PH)(`${g} Performed MFA verification successfully`,(0,a.Ky)()),performMfaVerificationRejection:(0,a.PH)(`${g} Rejected performing MFA verification`,(0,a.Ky)()),performMfaVerificationError:(0,C.bR)(`${g} Error performing MFA verification`),clearMfaErrorState:(0,a.PH)(`${g} Clear MFA error state`),changePasswordWithForgotPasswordToken:(0,a.PH)(`${g} Reset password with forgot password token.`),changePasswordWithForgotPasswordTokenSuccess:(0,a.PH)(`${g} Succesfully Reset password with forgot password token.`,(0,a.Ky)()),changePasswordWithForgotPasswordTokenRejected:(0,a.PH)(`${g} Resetting password with forgot password token rejected.`),upsertNewPassword:(0,a.PH)(`${g} Upsert new password`,(0,a.Ky)()),upsertNewPasswordRepetition:(0,a.PH)(`${g} Upsert new password repetition`,(0,a.Ky)()),passwordValidationResult:(0,a.PH)(`${g} Validated new password`,(0,a.Ky)())};var it=r(87537),Mt=r(39955);const b={email:"",emailSubmitted:!1,mfaLoadingState:"PENDING",newPassword:"",newPasswordValidity:null,newPasswordRepetition:"",newPasswordSubmitted:!1},Ot=(0,a.Lq)(b,(0,a.on)(i.reset,()=>b),(0,a.on)(i.resetInput,({organization:s})=>({...b,organization:s})),(0,a.on)(i.setToken,(s,{token:e})=>({...s,token:e})),(0,a.on)(i.upsertEmail,(s,{email:e})=>({...s,email:e})),(0,a.on)(i.requestForgotPasswordEmail,s=>({...s,emailSubmitted:!0})),(0,a.on)(i.loadOrganizationViaSlugSuccess,(s,{organization:e})=>({...s,organization:e})),(0,a.on)(i.upsertNewPassword,(s,{newPassword:e})=>({...s,newPassword:e})),(0,a.on)(i.upsertNewPasswordRepetition,(s,{newPasswordRepetition:e})=>({...s,newPasswordRepetition:e})),(0,a.on)(i.passwordValidationResult,(s,{newPasswordValidity:e})=>({...s,newPasswordValidity:e})),(0,a.on)(i.getForgotPasswordMultiFactorAuthenticationData,s=>({...s,mfaLoadingState:"LOADING"})),(0,a.on)(i.getForgotPasswordMultiFactorAuthenticationDataSuccess,(s,{data:e})=>({...s,mfaData:e,mfaLoadingState:"LOADED"})),(0,a.on)(i.performMfaVerification,s=>({...s,peformMfaRejection:void 0,performMfaLoadingState:"LOADING"})),(0,a.on)(i.performMfaVerificationSuccess,(s,{sessionJwt:e})=>({...s,mfaSuccessSessionJwt:e,performMfaLoadingState:"SUCCESS"})),(0,a.on)(i.performMfaVerificationError,(s,{})=>({...s,peformMfaRejection:"INVALID_OTP_OR_RECOVERY_CODE",performMfaLoadingState:void 0})),(0,a.on)(i.performMfaVerificationRejection,(s,{})=>({...s,peformMfaRejection:"INVALID_OTP_OR_RECOVERY_CODE",performMfaLoadingState:void 0})),(0,a.on)(i.clearMfaErrorState,s=>({...s,peformMfaRejection:void 0,performMfaLoadingState:void 0})),(0,a.on)(i.changePasswordWithForgotPasswordToken,s=>({...s,newPasswordSubmitted:!0}))),ct=s=>s.email,St=(0,a.P1)(ct,Mt.wV.validateEmail),Nt=(0,a.P1)(St,s=>s.emailSubmitted,(s,e)=>!s&&e),At=(0,a.P1)(Nt,s=>!s),j=s=>s.newPasswordSubmitted,lt=s=>s.newPassword,dt=({newPassword:s,newPasswordRepetition:e})=>!!s&&s===e,gt=(0,a.P1)(j,s=>s.newPasswordValidity,lt,(s,e,o)=>{if(s)return o?e??void 0:"none"}),Kt=(0,a.P1)(j,dt,(s,e)=>s&&!e),Ht=(0,a.P1)(Kt,s=>!s),{userPasswordValid:Dt}=it.V,Zt=(0,a.P1)(j,dt,gt,(s,e,o)=>{let n=!0;return n="none"!==o&&Dt(o),s&&(!e||!n)}),zt=(0,a.P1)(Zt,s=>!s),pt="forgotPassword",u=(0,a.ZF)(pt),wt=(0,a.P1)(u,s=>s.organization),Wt=(0,a.P1)(u,ct),Yt=(0,a.P1)(u,At),B=(0,a.P1)(u,lt),Gt=(0,a.P1)(u,s=>s.newPasswordRepetition),Jt=(0,a.P1)(u,gt),Qt=(0,a.P1)(u,Ht),ut=(0,a.P1)(u,zt),X=(0,a.P1)(u,s=>s.token),ft=(0,a.P1)(u,s=>s.mfaData),bt=(0,a.P1)(u,s=>s.peformMfaRejection),jt=(0,a.P1)(u,s=>s.mfaSuccessSessionJwt),Bt=(0,a.P1)(u,s=>!!s.mfaSuccessSessionJwt),Xt=(0,a.P1)(u,s=>s.performMfaLoadingState);var t=r(91052);class O{constructor(e,o,n,c,l,_){this.actions$=e,this.store$=o,this.forgotPasswordService=n,this.userPasswordService=c,this.orgProfileService=l,this.userSettingsMfaApiService=_,this.loadOrganizationViaSlug$=(0,d.GW)(()=>this.actions$.pipe((0,d.l4)(i.loadOrganizationViaSlug),(0,F.w)(({slug:p})=>this.orgProfileService.getOrganizationProfileBySlug(p).pipe((0,w.U)(f=>{if(!Tt.j.isOrganizationProfileDto(f))throw new Error("Invalid organization slug for forgot pw");return i.loadOrganizationViaSlugSuccess({organization:f})}),(0,C.Mr)(i.loadOrganizationViaSlugError))))),this.requestForgotPasswordEmail$=(0,d.GW)(()=>this.actions$.pipe((0,d.l4)(i.requestForgotPasswordEmail),(0,d.IC)(()=>this.store$.select(Wt)),(0,rt.zg)(([{organizationId:p},f])=>this.forgotPasswordService.requestForgotPasswordEmail({organizationId:p,email:f}).pipe((0,w.U)(i.requestForgotPasswordEmailSuccess),(0,C.Mr)())))),this.validateNewPassword$=(0,d.GW)(()=>this.actions$.pipe((0,d.l4)(i.upsertNewPassword),(0,J.c)(this.store$.select(B).pipe((0,Q.P)())),(0,xt.s)(),(0,F.w)(p=>this.userPasswordService.checkUserPasswordValidity({password:p}).pipe((0,w.U)(({result:f})=>i.passwordValidationResult({newPasswordValidity:f})),(0,C.Mr)())))),this.getForgotPasswordMultiFactorAuthenticationData$=(0,d.GW)(()=>this.actions$.pipe((0,d.l4)(i.getForgotPasswordMultiFactorAuthenticationData),(0,d.IC)(()=>this.store$.select(X).pipe((0,M.M3)())),(0,F.w)(([p,f])=>this.userSettingsMfaApiService.getForgotPasswordMultiFactorAuthenticationData({forgotPasswordToken:f}).pipe((0,w.U)(y=>i.getForgotPasswordMultiFactorAuthenticationDataSuccess({data:y})),(0,C.Mr)(i.getForgotPasswordMultiFactorAuthenticationDataError))))),this.performMfaVerification$=(0,d.GW)(()=>this.actions$.pipe((0,d.l4)(i.performMfaVerification),(0,d.IC)(()=>[this.store$.select(X).pipe((0,M.M3)())]),(0,F.w)(([{mfa:p},f])=>this.userSettingsMfaApiService.forgotPasswordPerformMultiFactorAuthentication({forgotPasswordToken:f,mfaToken:p.mfaToken,mfaMethodId:p.mfaMethodId,recoveryCode:p.recoveryCode}).pipe((0,w.U)(({sessionJwt:y,resultType:W})=>"SUCCESS"===W?i.performMfaVerificationSuccess({sessionJwt:y}):i.performMfaVerificationRejection({resultType:W})),(0,C.Mr)(i.performMfaVerificationError))))),this.changePasswordWithForgotPasswordToken$=(0,d.GW)(()=>
1this.actions$.pipe((0,d.l4)(i.changePasswordWithForgotPasswordToken),(0,J.c)(this.store$.select(ut).pipe((0,Q.P)())),(0,It.V)(),(0,J.c)(this.store$.select(B).pipe((0,Q.P)())),(0,d.IC)(()=>[this.store$.select(X),this.store$.select(jt)]),(0,w.U)(([p,f,y])=>({newPassword:p,token:f,mfaVerifiedJwt:y})),(0,rt.zg)(({newPassword:p,token:f,mfaVerifiedJwt:y})=>this.forgotPasswordService.changePasswordWithForgotPasswordToken(f,p,{preserveExistingSessions:!0,mfaVerifiedJwt:y}).pipe((0,w.U)(W=>i.changePasswordWithForgotPasswordTokenSuccess({userSession:W})),(0,C.Mr)(i.changePasswordWithForgotPasswordTokenRejected))))),this.changePasswordWithForgotPasswordTokenSuccess$=(0,d.GW)(()=>this.actions$.pipe((0,d.l4)(i.changePasswordWithForgotPasswordTokenSuccess),(0,w.U)(({userSession:p})=>at.nF.addAndSwitchToSession({session:p}))))}static#t=this.\u0275fac=function(o){return new(o||O)(t.LFG(d.eX),t.LFG(a.yh),t.LFG(m.Hc),t.LFG(m.JP),t.LFG(m.I5),t.LFG(G.a))};static#e=this.\u0275prov=t.Yz7({token:O,factory:O.\u0275fac})}class N{static#t=this.\u0275fac=function(o){return new(o||N)};static#e=this.\u0275mod=t.oAB({type:N});static#o=this.\u0275inj=t.cJS({providers:[{provide:G.a,useFactory:e=>new G.a(e),deps:[Et.s]},{provide:m.Hc,useFactory:e=>new m.Hc(e),deps:[m.RZ]},{provide:m.I5,useFactory:e=>new m.I5(e),deps:[m.RZ]},{provide:m.JP,useFactory:e=>new m.JP(e),deps:[m.RZ]}],imports:[a.Aw.forFeature(pt,Ot),d.sQ.forFeature([O])]})}var P=r(70322),qt=r(65192),te=r(57921),ee=r(44409),q=r(79710),tt=r(25157),ht=r(83336),mt=r(75398),_t=r(49429),Pt=r(19208),Ct=r(25518),vt=r(817),et=r(66049);function oe(s,e){if(1&s&&(t.ynx(0),t._UZ(1,"t5s-divider-4px"),t.TgZ(2,"t5s-error-text-13px",6),t._uU(3),t.qZA(),t.BQk()),2&s){const o=t.oxw().ngIf,n=t.oxw();t.xp6(3),t.hij(" ",n.translate(o,n.WebClientI18nKeys.fm.forgotPassword.enterEmail.invalidEmailError)," ")}}const se=function(s){return{orgSlug:s}},ne=function(s,e){return{key:s,params:e}};function ae(s,e){if(1&s){const o=t.EpF();t.ynx(0),t.TgZ(1,"t5s-public-page-template",1),t.NdJ("languageChange",function(c){t.CHM(o);const l=t.oxw();return t.KtG(l.languageChange.emit(c))}),t.ynx(2,2),t._uU(3),t.BQk(),t.ynx(4,3),t._uU(5),t.BQk(),t.TgZ(6,"div")(7,"t5s-dark-input-43px",4),t.NdJ("valueChange",function(c){t.CHM(o);const l=t.oxw();return t.KtG(l.emailValueChange.emit({email:c}))})("inputReturnPressed",function(){t.CHM(o);const c=t.oxw();return t.KtG(c.returnKeyPressed.emit())}),t.qZA(),t.YNc(8,oe,4,1,"ng-container",0),t.qZA(),t._UZ(9,"t5s-divider-24px"),t.TgZ(10,"t5s-filled-full-width-primary-text-button-43px",5),t.NdJ("btnClick",function(){t.CHM(o);const c=t.oxw();return t.KtG(c.confirmClick.emit())}),t.qZA()(),t.BQk()}if(2&s){const o=e.ngIf,n=t.oxw();t.xp6(3),t.hij(" ",n.translate(o,n.WebClientI18nKeys.fm.forgotPassword.enterEmail.title)," "),t.xp6(2),t.hij(" ",n.translate(o,t.WLB(11,ne,n.WebClientI18nKeys.fm.forgotPassword.enterEmail.subtitle,t.VKq(9,se,o.orgSlug)))," "),t.xp6(2),t.Q6J("type","email")("value",o.email)("errored",!o.inputValid)("placeholder",n.translate(o,n.WebClientI18nKeys.fm.forgotPassword.enterEmail.inputPlaceholder)),t.xp6(1),t.Q6J("ngIf",!o.inputValid),t.xp6(2),t.Q6J("label",n.translate(o,n.WebClientI18nKeys.fm.forgotPassword.enterEmail.btnLabel))("disabled",!o.inputValid)}}class V extends tt.Hr{constructor(){super(...arguments),this.WebClientI18nKeys=q.n,this.confirmClick=new t.vpe,this.returnKeyPressed=new t.vpe,this.emailValueChange=new t.vpe,this.languageChange=new t.vpe}set orgSlug(e){this.set({orgSlug:e})}set email(e){this.set({email:e})}set inputValid(e){this.set({inputValid:e})}static#t=this.\u0275fac=function(){let e;return function(n){return(e||(e=t.n5z(V)))(n||V)}}();static#e=this.\u0275cmp=t.Xpm({type:V,selectors:[["t5s-forgot-password-enter-email-view"]],inputs:{orgSlug:"orgSlug",email:"email",inputValid:"inputValid"},outputs:{confirmClick:"confirmClick",returnKeyPressed:"returnKeyPressed",emailValueChange:"emailValueChange",languageChange:"languageChange"},features:[t.qOj],decls:2,vars:3,consts:[[4,"ngIf"],[3,"languageChange"],["page-title",""],["page-info",""],["data-cy","t5s-wc-forgot-password-enter-email-input","t5sAutofocus","",3,"type","value","errored","placeholder","valueChange","inputReturnPressed"],["data-cy","t5s-wc-forgot-password-enter-email-confirm-btn",3,"label","disabled","btnClick"],["data-cy","t5s-wc-forgot-password-invalid-email-error"]],template:function(o,n){1&o&&(t.YNc(0,ae,11,14,"ng-container",0),t.ALo(1,"async")),2&o&&t.Q6J("ngIf",t.lcZ(1,1,n.state$))},dependencies:[ht.U,h.O5,mt.I,_t.s,Pt.L,Ct.z,vt.$,et.H,h.Ov],encapsulation:2,changeDetection:0})}var re=r(3683),ie=r(33121),ce=r(88050);function le(s,e){if(1&s&&(t.ynx(0),t.TgZ(1,"t5s-error-text-13px",8),t._uU(2),t.qZA(),t.BQk()),2&s){const o=t.oxw(2).ngIf,n=t.oxw();
1t.xp6(2),t.hij(" ",n.translate(o,n.WebClientI18nKeys.fm.forgotPassword.enterNew.invalidNewPasswordError.none)," ")}}function de(s,e){if(1&s&&(t.ynx(0),t.TgZ(1,"t5s-error-text-13px",8),t._uU(2),t.qZA(),t.BQk()),2&s){const o=t.oxw(2).ngIf,n=t.oxw();t.xp6(2),t.hij(" ",n.translate(o,n.WebClientI18nKeys.fm.forgotPassword.enterNew.invalidNewPasswordError.TOO_COMMON)," ")}}function ge(s,e){if(1&s&&(t.ynx(0),t.TgZ(1,"t5s-error-text-13px",9),t._uU(2),t.qZA(),t.BQk()),2&s){const o=t.oxw(2).ngIf,n=t.oxw();t.xp6(2),t.hij(" ",n.translate(o,n.WebClientI18nKeys.fm.forgotPassword.enterNew.invalidNewPasswordError.TOO_SHORT)," ")}}function pe(s,e){if(1&s&&(t.ynx(0),t._UZ(1,"t5s-divider-4px"),t.YNc(2,le,3,1,"ng-container",0),t.YNc(3,de,3,1,"ng-container",0),t.YNc(4,ge,3,1,"ng-container",0),t.BQk()),2&s){const o=t.oxw().ngIf,n=t.oxw();t.xp6(2),t.Q6J("ngIf","none"===o.newPasswordValidity),t.xp6(1),t.Q6J("ngIf",o.newPasswordValidity===n.UserPasswordValidityResultType.TOO_COMMON),t.xp6(1),t.Q6J("ngIf",o.newPasswordValidity===n.UserPasswordValidityResultType.TOO_SHORT)}}function we(s,e){if(1&s&&(t.ynx(0),t._UZ(1,"t5s-divider-4px"),t.TgZ(2,"t5s-error-text-13px",10),t._uU(3),t.qZA(),t.BQk()),2&s){const o=t.oxw().ngIf,n=t.oxw();t.xp6(3),t.hij(" ",n.translate(o,n.WebClientI18nKeys.fm.forgotPassword.enterNew.invalidNewPasswordConfirmError)," ")}}function ue(s,e){if(1&s){const o=t.EpF();t.ynx(0),t.TgZ(1,"t5s-public-page-template",1),t.NdJ("languageChange",function(c){t.CHM(o);const l=t.oxw();return t.KtG(l.languageChange.emit(c))}),t.ynx(2,2),t._uU(3),t.BQk(),t.ynx(4,3),t._uU(5),t.BQk(),t.TgZ(6,"div")(7,"t5s-form-field-public-pages",4)(8,"t5s-dark-input-43px",5),t.NdJ("valueChange",function(c){t.CHM(o);const l=t.oxw();return t.KtG(l.newPasswordValueChange.emit({newPassword:c}))})("inputReturnPressed",function(){t.CHM(o);const c=t.oxw();return t.KtG(c.confirmClick.emit())}),t.qZA()(),t.YNc(9,pe,5,3,"ng-container",0),t._UZ(10,"t5s-divider-18px"),t.TgZ(11,"t5s-form-field-public-pages",4)(12,"t5s-dark-input-43px",6),t.NdJ("valueChange",function(c){t.CHM(o);const l=t.oxw();return t.KtG(l.newPasswordConfirmValueChange.emit({newPasswordConfirm:c}))})("inputReturnPressed",function(){t.CHM(o);const c=t.oxw();return t.KtG(c.confirmClick.emit())}),t.qZA()(),t.YNc(13,we,4,1,"ng-container",0),t.qZA(),t._UZ(14,"t5s-divider-24px"),t.TgZ(15,"t5s-filled-full-width-primary-text-button-43px",7),t.NdJ("btnClick",function(){t.CHM(o);const c=t.oxw();return t.KtG(c.confirmClick.emit())}),t.qZA()(),t.BQk()}if(2&s){const o=e.ngIf,n=t.oxw();t.xp6(3),t.hij(" ",n.translate(o,n.WebClientI18nKeys.fm.forgotPassword.enterNew.title)," "),t.xp6(2),t.hij(" ",n.translate(o,n.WebClientI18nKeys.fm.forgotPassword.enterNew.subtitle)," "),t.xp6(2),t.Q6J("label",n.translate(o,n.WebClientI18nKeys.fm.forgotPassword.enterNew.newPassword)),t.xp6(1),t.Q6J("errored",!n.newPasswordValid(o))("type","password")("value",o.newPassword)("placeholder",n.translate(o,n.WebClientI18nKeys.fm.forgotPassword.enterNew.newPasswordPlaceholder)),t.xp6(1),t.Q6J("ngIf",!n.newPasswordValid(o)),t.xp6(2),t.Q6J("label",n.translate(o,n.WebClientI18nKeys.fm.forgotPassword.enterNew.newPasswordConfirm)),t.xp6(1),t.Q6J("type","password")("value",o.newPasswordConfirm)("errored",!o.newPasswordConfirmValid)("placeholder",n.translate(o,n.WebClientI18nKeys.fm.forgotPassword.enterNew.newPasswordConfirmPlaceholder)),t.xp6(1),t.Q6J("ngIf",!o.newPasswordConfirmValid),t.xp6(2),t.Q6J("label",n.translate(o,n.WebClientI18nKeys.fm.forgotPassword.enterNew.btnLabel))("disabled",!o.inputValid)}}class E extends tt.Hr{constructor(){super(...arguments),this.WebClientI18nKeys=q.n,this.UserPasswordValidityResultType=re.t79,this.newPasswordValueChange=new t.vpe,this.newPasswordConfirmValueChange=new t.vpe,this.confirmClick=new t.vpe,this.languageChange=new t.vpe}set newPassword(e){this.set({newPassword:e})}set newPasswordConfirm(e){this.set({newPasswordConfirm:e})}set inputValid(e){this.set({inputValid:e})}set newPasswordValidity(e){this.set({newPasswordValidity:e})}set newPasswordConfirmValid(e){this.set({newPasswordConfirmValid:e})}newPasswordValid({newPasswordValidity:e}){return"none"!==e&&it.V.userPasswordValid(e)}static#t=this.\u0275fac=function(){let e;return function(n){return(e||(e=t.n5z(E)))(n||E)}}();static#e=this.\u0275cmp=t.Xpm({type:E,selectors:[["t5s-forgot-password-enter-new-view"]],inputs:{newPassword:"newPassword",newPasswordConfirm:"newPasswordConfirm",inputValid:"inputValid",newPasswordValidity:"newPasswordValidity",newPasswordConfirmValid:"newPasswordConfirmValid"},outputs:{newPasswordValueChange:"newPasswordValueChange",newPasswordConfirmValueChange:"newPasswordConfirmValueChange",confirmClick:"confirmClick",languageChange:"languageChange"},features:[t.qOj],decls:2,vars:3,consts:[[4,"ngIf"],[3,"languageChange"],["page-title",""],["page-info",""],[3,"label"],["t5sAutofocus","","data-cy","t5s-wc-forgot-password-password-input",3,"errored","type","value","placeholder","valueChange","inputReturnPressed"],["data-cy","t5s-wc-forgot-password-repeat-input",3,"type","value","errored","placeholder","valueChange","inputReturnPressed"],["data-cy","t5s-wc-forgot-password-enter-confirm-btn",3,"label","disabled","btnClick"],["data-cy","t5s-wc-forgot-password-invalid-password-error-common"],["data-cy","t5s-wc-forgot-password-invalid-password-error-short"],["data-cy","t5s-wc-forgot-password-invalid-password-confirm-error"]],template:function(o,n){1&o&&(t.YNc(0,ue,16,16,"ng-container",0),t.ALo(1,"async")),2&o&&t.Q6J("ngIf",t.lcZ(1,1,n.state$))},dependencies:[ht.U,h.O5,mt.I,_t.s,Pt.L,ie.Z,Ct.z,ce.r,vt.$,et.H,h.Ov],encapsulation:2,changeDetection:0})}var yt=r(3982),fe=r(61316),he=r(4367);const me=function(s){return{email:s}},_e=function(s,e){return{key:s,params:e}};
1function Pe(s,e){if(1&s){const o=t.EpF();t.ynx(0),t.TgZ(1,"t5s-public-page-template",1),t.NdJ("languageChange",function(c){t.CHM(o);const l=t.oxw();return t.KtG(l.languageChange.emit(c))}),t.ynx(2,2),t._uU(3),t.BQk(),t.ynx(4,3),t._uU(5),t.BQk(),t.TgZ(6,"div")(7,"t5s-link-12px-medium",4),t.NdJ("linkClick",function(){t.CHM(o);const c=t.oxw();return t.KtG(c.tryOtherEmailClick.emit())}),t._uU(8),t.qZA()()(),t.BQk()}if(2&s){const o=e.ngIf,n=t.oxw();t.xp6(3),t.hij(" ",n.translate(o,n.WebClientI18nKeys.fm.forgotPassword.linkInfo.title)," "),t.xp6(2),t.hij(" ",n.translate(o,t.WLB(7,_e,n.WebClientI18nKeys.fm.forgotPassword.linkInfo.subtitle,t.VKq(5,me,o.email)))," "),t.xp6(1),t.Tol(n.centerClass),t.xp6(2),t.hij(" ",n.translate(o,n.WebClientI18nKeys.fm.forgotPassword.linkInfo.linkLabel)," ")}}class x extends tt.Hr{constructor(){super(...arguments),this.WebClientI18nKeys=q.n,this.centerClass=(0,fe.I)({...yt.yD,...yt.Kz}),this.tryOtherEmailClick=new t.vpe,this.languageChange=new t.vpe}set email(e){this.set({email:e})}static#t=this.\u0275fac=function(){let e;return function(n){return(e||(e=t.n5z(x)))(n||x)}}();static#e=this.\u0275cmp=t.Xpm({type:x,selectors:[["t5s-forgot-password-link-info-view"]],inputs:{email:"email"},outputs:{tryOtherEmailClick:"tryOtherEmailClick",languageChange:"languageChange"},features:[t.qOj],decls:2,vars:3,consts:[[4,"ngIf"],[3,"languageChange"],["page-title",""],["page-info",""],["data-cy","t5s-forgot-password-link-info-try-other-link",3,"linkClick"]],template:function(o,n){1&o&&(t.YNc(0,Pe,9,10,"ng-container",0),t.ALo(1,"async")),2&o&&t.Q6J("ngIf",t.lcZ(1,1,n.state$))},dependencies:[h.O5,he.y,et.H,h.Ov],encapsulation:2,changeDetection:0})}class A{static#t=this.\u0275fac=function(o){return new(o||A)};static#e=this.\u0275mod=t.oAB({type:A});static#o=this.\u0275inj=t.cJS({imports:[qt.r,te.TI,ee.g]})}var Ce=r(94336),ve=r(53464),Ft=r(56367),k=r(48335),ot=r(14068);class L{static#t=this.check="check";static#e=this.reset="reset"}const Fe=(0,a.P1)(ot.Vu,s=>s[k.F_.organizationSlug]);class R{constructor(e,o){this.actions$=e,this.store$=o,this.requestedForgotPasswordEmail$=(0,d.GW)(()=>this.actions$.pipe((0,d.l4)(i.requestForgotPasswordEmailSuccess),(0,F.w)(()=>this.store$.select(Fe)),(0,ve.h)(n=>!!n),(0,w.U)(n=>ot.yt.routerNavigationAction({commands:[n,k._3.forgotPassword,L.check]})))),this.passwordResetSuccess$=(0,d.GW)(()=>this.actions$.pipe((0,d.l4)(i.changePasswordWithForgotPasswordTokenSuccess),(0,w.U)(({userSession:n})=>Ft._.navigateToOrganizationHome(n.user.organization)))),this.getForgotPasswordMultiFactorAuthenticationDataSuccess$=(0,d.GW)(()=>this.actions$.pipe((0,d.l4)(i.getForgotPasswordMultiFactorAuthenticationDataSuccess),(0,F.w)(({data:{activeMethods:n,user:c}})=>c?[P.z7.getUserLoginMultiFactorAuthenticationDataSuccess({activeMethods:n,user:c})]:[]))),this.passwordResetError$=(0,d.GW)(()=>this.actions$.pipe((0,d.l4)(i.changePasswordWithForgotPasswordTokenRejected),(0,w.U)(()=>Ft._.invalidLink()))),this.passwordResetSuccessLoadSessions$=(0,d.GW)(()=>this.actions$.pipe((0,d.l4)(i.changePasswordWithForgotPasswordTokenSuccess),(0,w.U)(at.nF.loadSessions)))}static#t=this.\u0275fac=function(o){return new(o||R)(t.LFG(d.eX),t.LFG(a.yh))};static#e=this.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac})}class T{constructor(e){this.store$=e}canActivate({params:e}){const o=e[k.F_.organizationSlug];return!!o&&(this.store$.dispatch(i.loadOrganizationViaSlug({slug:o})),!0)}static#t=this.\u0275fac=function(o){return new(o||T)(t.LFG(a.yh))};static#e=this.\u0275prov=t.Yz7({token:T,factory:T.\u0275fac})}var K=r(31624),Vt=r(26853);function Ve(s,e){if(1&s){const o=t.EpF();t.ynx(0),t.TgZ(1,"t5s-forgot-password-link-info-view",1),t.NdJ("tryOtherEmailClick",function(){const l=t.CHM(o).ngIf,_=t.oxw();return t.KtG(_.tryOtherEmailClick(l))})("languageChange",function(c){t.CHM(o);const l=t.oxw();return t.KtG(l.languageChange(c))}),t.ALo(2,"async"),t.qZA(),t.BQk()}if(2&s){const o=t.oxw();t.xp6(1),t.Q6J("email",t.lcZ(2,1,o.email$))}}class H{constructor(e){this.store$=e,this.organization$=e.select(wt)}tryOtherEmailClick(e){if(!e)throw new Error("Cannot redirect, organization unavailable");
1this.store$.dispatch(Vt.V.navigateToForgotPassword(e.slug))}languageChange({language:e}){this.store$.dispatch(K.py.changeLanguage({language:e}))}static#t=this.\u0275fac=function(o){return new(o||H)(t.Y36(a.yh))};static#e=this.\u0275cmp=t.Xpm({type:H,selectors:[["t5s-forgot-password-check-page"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"email","tryOtherEmailClick","languageChange"]],template:function(o,n){1&o&&(t.YNc(0,Ve,3,3,"ng-container",0),t.ALo(1,"async")),2&o&&t.Q6J("ngIf",t.lcZ(1,1,n.organization$))},dependencies:[h.O5,x,h.Ov],styles:["[_nghost-%COMP%]{height:100%;width:100%}"],changeDetection:0})}function Ee(s,e){if(1&s){const o=t.EpF();t.ynx(0),t.TgZ(1,"t5s-forgot-password-enter-email-view",1),t.NdJ("confirmClick",function(){const l=t.CHM(o).ngIf,_=t.oxw();return t.KtG(_.confirmClick(l))})("returnKeyPressed",function(){const l=t.CHM(o).ngIf,_=t.oxw();return t.KtG(_.confirmClick(l))})("emailValueChange",function(c){t.CHM(o);const l=t.oxw();return t.KtG(l.emailValueChange(c))})("languageChange",function(c){t.CHM(o);const l=t.oxw();return t.KtG(l.languageChange(c))}),t.ALo(2,"async"),t.qZA(),t.BQk()}if(2&s){const o=e.ngIf,n=t.oxw();t.xp6(1),t.Q6J("orgSlug",null==o?null:o.slug)("inputValid",t.lcZ(2,2,n.inputValid$))}}class D{constructor(e){this.store$=e,this.organization$=e.select(wt),this.inputValid$=e.select(Yt),e.dispatch(i.resetInput())}emailValueChange({email:e}){this.store$.dispatch(i.upsertEmail({email:e}))}confirmClick(e){if(!e)throw new Error("Unable to request forgot password email, no organization");this.store$.dispatch(i.requestForgotPasswordEmail({organizationId:e.id}))}languageChange({language:e}){this.store$.dispatch(K.py.changeLanguage({language:e}))}static#t=this.\u0275fac=function(o){return new(o||D)(t.Y36(a.yh))};static#e=this.\u0275cmp=t.Xpm({type:D,selectors:[["t5s-forgot-password-input-page"]],decls:2,vars:3,consts:[[4,"ngIf"],[3,"orgSlug","inputValid","confirmClick","returnKeyPressed","emailValueChange","languageChange"]],template:function(o,n){1&o&&(t.YNc(0,Ee,3,4,"ng-container",0),t.ALo(1,"async")),2&o&&t.Q6J("ngIf",t.lcZ(1,1,n.organization$))},dependencies:[h.O5,V,h.Ov],styles:["[_nghost-%COMP%]{height:100%;width:100%}"],changeDetection:0})}class Z{constructor(e){this.store$=e,this.newPassword$=e.select(B),this.newPasswordRepetition$=e.select(Gt),this.inputValid$=e.select(ut),this.newPasswordValidity$=e.select(Jt),this.newPasswordConfirmValid$=e.select(Qt)}newPasswordConfirmValueChange({newPasswordConfirm:e}){this.store$.dispatch(i.upsertNewPasswordRepetition({newPasswordRepetition:e}))}newPasswordValueChange({newPassword:e}){this.store$.dispatch(i.upsertNewPassword({newPassword:e}))}confirmReset(){this.store$.dispatch(i.changePasswordWithForgotPasswordToken())}languageChange({language:e}){this.store$.dispatch(K.py.changeLanguage({language:e}))}static#t=this.\u0275fac=function(o){return new(o||Z)(t.Y36(a.yh))};static#e=this.\u0275cmp=t.Xpm({type:Z,selectors:[["t5s-forgot-password-reset-page"]],decls:6,vars:15,consts:[[3,"inputValid","newPassword","newPasswordConfirm","newPasswordValidity","newPasswordConfirmValid","confirmClick","newPasswordValueChange","newPasswordConfirmValueChange","languageChange"]],template:function(o,n){1&o&&(t.TgZ(0,"t5s-forgot-password-enter-new-view",0),t.NdJ("confirmClick",function(){return n.confirmReset()})("newPasswordValueChange",function(l){return n.newPasswordValueChange(l)})("newPasswordConfirmValueChange",function(l){return n.newPasswordConfirmValueChange(l)})("languageChange",function(l){return n.languageChange(l)}),t.ALo(1,"async"),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.ALo(5,"async"),t.qZA()),2&o&&t.Q6J("inputValid",t.lcZ(1,5,n.inputValid$))("newPassword",t.lcZ(2,7,n.newPassword$))("newPasswordConfirm",t.lcZ(3,9,n.newPasswordRepetition$))("newPasswordValidity",t.lcZ(4,11,n.newPasswordValidity$))("newPasswordConfirmValid",t.lcZ(5,13,n.newPasswordConfirmValid$))},dependencies:[E,h.Ov],styles:["[_nghost-%COMP%]{height:100%;width:100%}"],changeDetection:0})}var $=(()=>{return(s=$||($={})).MFA_REQUIRED="MFA_REQUIRED",s.MFA_NOT_REQUIRED="MFA_NOT_REQUIRED",s.INVALID_TOKEN="INVALID_TOKEN",$;var s})(),S=r(24074),xe=r(48727);class I{constructor(e,o){this.store$=e,this.router=o}canActivate({fragment:e}
1){return!!e&&(this.store$.dispatch(i.setToken({token:e})),this.store$.dispatch(i.getForgotPasswordMultiFactorAuthenticationData()),this.store$.select(ft).pipe((0,M.M3)(),(0,xe.q)(1),(0,d.IC)(()=>this.store$.select(Bt)),(0,w.U)(([{organizationSlug:o,resultType:n,activeMethods:c},l])=>!!l||(n===$.INVALID_TOKEN?this.router.createUrlTree(["/invalid-link"]):n!==$.MFA_REQUIRED||!o||(1===c.length?(this.store$.dispatch(P.z7.navigate({navigation:S.F.VERIFY_IDENTITY_MFA_TOTP})),this.store$.dispatch(P.z7.setMethodId({methodId:c[0].id}))):this.store$.dispatch(P.z7.navigate({navigation:S.F.VERIFY_IDENTITY_MFA_CHOOSE_METHOD})),this.router.createUrlTree(["/",o,"forgot-password","verify-mfa"],{fragment:e}))))))}static#t=this.\u0275fac=function(o){return new(o||I)(t.LFG(a.yh),t.LFG(Y.F0))};static#e=this.\u0275prov=t.Yz7({token:I,factory:I.\u0275fac})}var Te=r(10607),v=r(85),Ie=r(84388),Me=r(72702),Oe=r(54960);class z extends Te.R{constructor(e,o,n,c){super(),this.store$=e,this.actions$=o,this.router=n,this.ngZone=c,this.lookup$=(0,Ie.aj)([this.store$.select(bt),this.store$.select(Xt),this.store$.select(P.qJ).pipe((0,M.M3)())]).pipe((0,w.U)(([l,_,p])=>({...p,isSubmittingMfa:"LOADING"===_,verifyResultType:l?"INVALID_OTP_OR_RECOVERY_CODE":void 0}))),this.navigation$=this.store$.select(P.Re),this.isMobile=(0,Me.s2)(),this.hold(this.actions$.pipe((0,d.l4)(i.performMfaVerificationSuccess),(0,d.IC)(()=>this.store$.select(ft).pipe((0,M.M3)()))),([l,{organizationSlug:_}])=>{_&&this.ngZone.run(()=>{this.router.navigate(["/",_,"forgot-password","reset"],{preserveFragment:!0}).then().catch(()=>{})})})}handleOutput(e){switch(e.type){case v.h.VERIFY_OTP_SELECT_METHOD_CLICK:this.store$.dispatch(P.z7.setMethodId({methodId:e.methodId})),this.store$.dispatch(P.z7.navigate({navigation:S.F.VERIFY_IDENTITY_MFA_TOTP}));break;case v.h.VERIFY_OTP_SELECT_METHOD_RECOVERY_CODES_CLICK:this.store$.dispatch(P.z7.navigate({navigation:S.F.VERIFY_IDENTITY_MFA_RECOVERY_CODE}));break;case v.h.VERIFY_MFA_RECOVERY_CODE_CHANGE:case v.h.VERIFY_OTP_METHOD_CHANGE_OTP:this.store$.dispatch(i.clearMfaErrorState());break;case v.h.VERIFY_OTP_METHOD_CONFIRM_OTP:this.store$.dispatch(i.performMfaVerification({mfa:{mfaToken:e.authToken,mfaMethodId:e.methodId}}));break;case v.h.VERIFY_MFA_RECOVERY_CODE_CONFIRM:this.store$.dispatch(i.performMfaVerification({mfa:{recoveryCode:e.recoveryCode}}));break;case v.h.VERIFY_OTP_METHOD_TRY_ANOTHER_METHOD:case v.h.VERIFY_MFA_RECOVERY_CODE_TRY_ANOTHER_METHOD:this.store$.dispatch(i.clearMfaErrorState()),this.store$.dispatch(P.z7.navigate({navigation:S.F.VERIFY_IDENTITY_MFA_CHOOSE_METHOD}));break;case v.h.CHOOSE_METHOD_SIGN_INTO_ANOTHER_ACCOUNT_CLICK:this.store$.dispatch(Vt.V.navigateToSignin())}}languageChange({language:e}){this.store$.dispatch(K.py.changeLanguage({language:e}))}ngOnDestroy(){super.ngOnDestroy()}static#t=this.\u0275fac=function(o){return new(o||z)(t.Y36(a.yh),t.Y36(d.eX),t.Y36(Y.F0),t.Y36(t.R0b))};static#e=this.\u0275cmp=t.Xpm({type:z,selectors:[["t5s-forgot-password-reset-verify-mfa-page"]],features:[t.qOj],decls:3,vars:11,consts:[[3,"isMobile","lookup","navigation","languageChange","output"]],template:function(o,n){1&o&&(t.TgZ(0,"t5s-organization-signin-verify-mfa-root-view",0),t.NdJ("languageChange",function(l){return n.languageChange(l)})("output",function(l){return n.handleOutput(l)}),t.ALo(1,"push"),t.ALo(2,"push"),t.qZA()),2&o&&(t.Udp("height",100,"%")("width",100,"%"),t.Q6J("isMobile",n.isMobile)("lookup",t.lcZ(1,7,n.lookup$))("navigation",t.lcZ(2,9,n.navigation$)))},dependencies:[Oe.E,nt.f],styles:["[_nghost-%COMP%]{height:100%;width:100%}"]})}const Re=[{path:"",canActivate:[T],children:[{path:"",component:D},{path:`${L.check}`,component:H}]},{path:`${L.reset}`,component:Z,canActivate:[I]},{path:"verify-mfa",component:z},{path:"**",redirectTo:""}];class U{static#t=this.\u0275fac=function(o){return new(o||U)};static#e=this.\u0275mod=t.oAB({type:U});static#o=this.\u0275inj=t.cJS({providers:[I,T],imports:[h.ez,nt.p,A,Ce.Ym,N,P.Zq,d.sQ.forFeature([R]),Y.Bz.forChild(Re)]})}}}]);

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.