PageSourceSearch

https://ats.talos360.com/chunk-DuQkPoiC.js

js talos360.com collected 2026-10-05 23:13:31 UTC 7,179 bytes, 1 lines download raw bytes

1import {s}from'./chunk-Q-_GYv3o.js';import {w as w$1}from'./chunk-CaEBpT-5.js';import {x}from'./chunk-DFVepJQn.js';import {t}from'./chunk-DnWf7Wen.js';import {w}from'./chunk-GxbcyZlD.js';import {v,a as vr,F,b as W,bb as f,bz as Vo,w as wt,L as Le,H as H$1,h as hI,i as kr,j as jl,o as on,M as Ml,y as yr,n as br,d as Fo,k as kn,P as Ps,b4 as Ik,N as Nk,by as Wk,x as vi,C as jp,B as qp,E as jI,O as OD,z as Vc,G as bE,K as pv,Q as Fp,T as VI,R as ME,aY as Af}from'./main-5URASTRX.js';function H(r,o){r&1&&jp(0,"talos-auth-error-banner",2),r&2&&Fp("type",o);}function J(r,o){r&1&&jp(0,"talos-forms-error",9),r&2&&Fp("testingId","recovery-email-required-error");}function K(r,o){r&1&&jp(0,"talos-forms-error",10),r&2&&Fp("testingId","recovery-email-format-error");}function Q(r,o){r&1&&jp(0,"talos-forms-error",13),r&2&&Fp("testingId","recovery-new-password-required-error");}function X(r,o){r&1&&jp(0,"talos-forms-error",14),r&2&&Fp("testingId","recovery-new-password-length-error");}function Y(r,o){r&1&&jp(0,"talos-forms-error",17),r&2&&Fp("testingId","recovery-confirm-password-required-error");}function Z(r,o){r&1&&jp(0,"talos-forms-error",18),r&2&&Fp("testingId","recovery-passwords-match-error");}var z=class r{fb=v(vr);router=v(F);route=v(W);navigationService=v(f);window=v(Vo);store=v(x);supportUrl=t;returnUrl;form=this.fb.nonNullable.group({email:["",[wt.required,wt.email]],newPassword:["",[wt.required,wt.minLength(8)]],confirmPassword:["",[wt.required]]},{validators:s("newPassword")});submitted=Le(false);constructor(){let o=this.route.snapshot.queryParamMap.get("linkId");if(this.returnUrl=this.route.snapshot.queryParamMap.get("returnUrl"),!o){this.router.navigate(["/auth/link-expired"]);return}this.store.setLinkId(o);}get passwordsMatch(){return !this.form.hasError("passwordMismatch")}get emailControl(){return this.form.controls.email}get newPasswordControl(){return this.form.controls.newPassword}get confirmPasswordControl(){return this.form.controls.confirmPassword}showEmailError(){return (this.submitted()||this.emailControl.touched)&&this.emailControl.invalid}showNewPasswordError(){return this.submitted()&&this.newPasswordControl.invalid}showConfirmPasswordError(){return this.submitted()||this.confirmPasswordControl.touched?this.confirmPasswordControl.invalid||this.form.hasError("passwordMismatch"):false}onSubmit(){return H$1(this,null,function*(){if(this.submitted.set(true),this.form.invalid)return;let{email:o,newPassword:m,confirmPassword:e}=this.form.getRawValue(),p=this.store.linkId();if(!p){yield this.router.navigate(["/auth/link-expired"]);return}if(this.store.setEmail(o),!(yield this.store.setNewPassword(p,o,m,e))){this.store.errorBanner()==="password-reset-did-not-complete"&&(this.store.clearError(),yield this.router.navigate(["/auth/link-expired"]));return}let y=yield this.store.login(o,m);if(y.kind==="success"){this.returnUrl&&this.window?this.window.location.href=this.returnUrl:this.navigationService.navigate("/vacancies","MvcAngular");return}y.kind==="2fa"&&(yield this.router.navigate(["/auth/two-factor-auth"]));})}static \u0275fac=function(m){return new(m||r)};static \u0275cmp=hI({type:r,selectors:[["talos-auth-password-recovery"]],decls:28,vars:24,consts:[[1,"flex","w-full","max-w-180","flex-col","items-center","gap-6","lg:gap-12"],[1,"flex","w-full","max-w-[332px]","flex-col","gap-8",3,"ngSubmit","formGroup"],[3,"type"],[1,"flex","w-full","flex-col","gap-2"],[1,"paragragh-02-medium","text-dark"],[1,"paragragh-01","text-secondary"],[1,"flex","w-full","flex-col","gap-1"],["text","Email Address","forIdentifer","recovery-email",3,"testingId"],["formControlName","email","htmlIdentifier","recovery-email","placeholder","Enter your email address",3,"icon","hasError","testingId"],["errorMessage","Please enter your email address",3,"testingId"],["errorMessage","This isn't a valid email address",3,"testingId"],["text","New Password","forIdentifer","recovery-new-password",3,"testingId"],["formControlName","newPassword","htmlIdentifier","recovery-new-password","placeholder","Enter your password",3,"hasError","showStrength","testingId"],["slot","error","errorMessage","Please enter your password",3,"testingId"],["slot","error","errorMessage","Password must be at least 8 characters",3,"testingId"],["text","Confirm New Password","forIdentifer","recovery-confirm-password",3,"testingId"],["formControlName","confirmPassword","htmlIdentifier","recovery-confirm-password","placeholder","Confirm your password",3,"hasError","testingId"],["slot","error","errorMessage","Please re-enter your password",3,"testingId"],["slot","error","errorMessage","Passwords must match",3,"testingId"],[1,"flex","w-full","flex-col","gap-5"],["type","primary","text","Set Password",3,"buttonClick","inline","loading","disabled","testingId"],[1,"caption-1","text-link","underline","lg:no-underline","lg:hover:underline","self-center",3,"href"]],template:function(m,e){if(m&1&&
1(vi(0,"div",0),jp(1,"talos-auth-top"),vi(2,"form",1),qp("ngSubmit",function(){return e.onSubmit()}),jI(3,H,1,1,"talos-auth-error-banner",2),vi(4,"div",3)(5,"p",4),OD(6,"Change your password"),Vc(),vi(7,"p",5),OD(8," Enter a new password for your Talos account "),Vc()(),vi(9,"div",6),jp(10,"talos-forms-label",7)(11,"talos-forms-text",8),bE(),jI(12,J,1,1,"talos-forms-error",9),jI(13,K,1,1,"talos-forms-error",10),Vc(),vi(14,"div",3),jp(15,"talos-forms-label",11),vi(16,"talos-forms-password",12),jI(17,Q,1,1,"talos-forms-error",13),jI(18,X,1,1,"talos-forms-error",14),Vc(),bE(),Vc(),vi(19,"div",6),jp(20,"talos-forms-label",15),vi(21,"talos-forms-password",16),jI(22,Y,1,1,"talos-forms-error",17),jI(23,Z,1,1,"talos-forms-error",18),Vc(),bE(),Vc(),vi(24,"div",19)(25,"talos-forms-button",20),qp("buttonClick",function(){return e.onSubmit()}),Vc(),vi(26,"a",21),OD(27," Contact Support "),Vc()()()()),m&2){let p;pv(2),Fp("formGroup",e.form),pv(),VI((p=e.store.errorBanner())?3:-1,p),pv(7),Fp("testingId","recovery-email-label"),pv(),Fp("icon","fa-kit fa-talos-email-alt")("hasError",e.showEmailError())("testingId","recovery-email-input"),ME(),pv(),VI(e.showEmailError()&&e.emailControl.hasError("required")?12:-1),pv(),VI(e.showEmailError()&&e.emailControl.hasError("email")?13:-1),pv(2),Fp("testingId","recovery-new-password-label"),pv(),Fp("hasError",e.showNewPasswordError())("showStrength",true)("testingId","recovery-new-password-input"),ME(),pv(),VI(e.showNewPasswordError()&&e.newPasswordControl.hasError("required")?17:-1),pv(),VI(e.showNewPasswordError()&&e.newPasswordControl.hasError("minlength")?18:-1),pv(2),Fp("testingId","recovery-confirm-password-label"),pv(),Fp("hasError",e.showConfirmPasswordError())("testingId","recovery-confirm-password-input"),ME(),pv(),VI(e.showConfirmPasswordError()&&e.confirmPasswordControl.hasError("required")?22:-1),pv(),VI((e.submitted()||e.confirmPasswordControl.touched)&&e.form.hasError("passwordMismatch")?23:-1),pv(2),Fp("inline",false)("loading",e.store.isLoading())("disabled",e.store.isLoading()||e.form.invalid)("testingId","recovery-submit-button"),pv(),Fp("href",e.supportUrl,Af);}},dependencies:[kr,jl,on,Ml,yr,br,Fo,kn,Ps,Ik,Nk,Wk,w,w$1],encapsulation:2})};export{z as PasswordRecoveryComponent};

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.