PageSourceSearch

https://www.governmentjobs.com/chunk-KIYP4P4K.js

js governmentjobs.com collected 2026-10-09 22:42:28 UTC 14,725 bytes, 1 lines download raw bytes

1import{a as le,b as ce}from"./chunk-CQPUGOWS.js";import{a as de}from"./chunk-4OVKATVZ.js";import{a as ae,d as se,f as k}from"./chunk-6AAQMWA5.js";import{a as T,b as ne}from"./chunk-4KFEKOMB.js";import{a as oe,b as ie}from"./chunk-7P55SE7J.js";import{a as H,b as O,e as J,f as X,i as Z,j as $,k as ee,l as te,n as re}from"./chunk-2BUKBHR4.js";import{b as K,h as Q,j as W,k as U}from"./chunk-IATIYDOH.js";import{b as R}from"./chunk-IR3IXP4R.js";import{c as Y}from"./chunk-KKTVKEJB.js";import{a as j}from"./chunk-OFPOYJTS.js";import{j as S}from"./chunk-DGVY3FNH.js";import{Db as x,Fb as l,Ib as A,Jb as D,Kb as G,Lb as z,Mb as L,Pb as y,Ra as i,Rb as s,S as c,Tb as C,Ua as b,Va as M,X as f,Y as _,Z as h,ab as F,ba as V,ia as u,ic as B,la as N,lb as v,mb as p,nb as m,oa as I,sb as w,tb as o,ua as q,ub as n,vb as g,zb as E}from"./chunk-IIXPTABD.js";import"./chunk-7CGTOI24.js";var me=["invalidMessage"];function ue(r,t){r&1&&(o(0,"div",1)(1,"p"),s(2,"Validating reset code..."),n()())}function ge(r,t){r&1&&(o(0,"div",2)(1,"h1",3),s(2,"Invalid or Expired Link"),n(),o(3,"p",4,0),s(5," This password reset link is invalid or has expired. Please request a new password reset link. "),n(),o(6,"a",5),s(7,"Request New Link"),n(),o(8,"p",6)(9,"a",7),s(10,"Back to Sign In"),n()()())}function we(r,t){r&1&&(h(),o(0,"svg",18),g(1,"path",30)(2,"path",31)(3,"path",32)(4,"path",33),n())}function fe(r,t){r&1&&(h(),o(0,"svg",18),g(1,"path",34)(2,"circle",35),n())}function _e(r,t){if(r&1&&(o(0,"p",19),s(1),n()),r&2){let e=l(2);i(),C(" ",e.getError("newPassword")," ")}}function he(r,t){r&1&&(h(),o(0,"svg",18),g(1,"path",30)(2,"path",31)(3,"path",32)(4,"path",33),n())}function ve(r,t){r&1&&(h(),o(0,"svg",18),g(1,"path",34)(2,"circle",35),n())}function Ce(r,t){if(r&1&&(o(0,"p",24),s(1),n()),r&2){let e=l(2);i(),C(" ",e.getError("confirmPassword")," ")}}function Pe(r,t){if(r&1&&(o(0,"p",26),s(1),n()),r&2){let e=l(2);i(),C(" ",e.errorMessage()," ")}}function xe(r,t){if(r&1&&(o(0,"p",37),s(1),n()),r&2){let e=l(3);i(),C(" ",e.captchaError()," ")}}function ye(r,t){if(r&1){let e=E();o(0,"app-turnstile-widget",36),x("tokenReceived",function(d){f(e);let P=l(2);return _(P.onTurnstileToken(d))})("expired",function(){f(e);let d=l(2);return _(d.onTurnstileExpired())}),n(),p(1,xe,2,1,"p",37)}if(r&2){let e=l(2);w("siteKey",e.turnstileSiteKey()),i(),m(e.captchaError()?1:-1)}}function be(r,t){r&1&&s(0," Resetting Password... ")}function Me(r,t){r&1&&s(0," Reset Password ")}function Ee(r,t){if(r&1){let e=E();o(0,"h1",8),s(1,"Reset Your Password"),n(),o(2,"p",9),s(3,"Please enter and confirm your new password below."),n(),o(4,"p",10)(5,"span",11),s(6,"*"),n(),s(7," indicates a required field"),n(),o(8,"form",12),x("ngSubmit",function(){f(e);let d=l();return _(d.onSubmit())}),o(9,"div",13)(10,"label",14),s(11," New Password "),o(12,"span",11),s(13,"*"),n()(),o(14,"div",15),g(15,"input",16),b(),o(16,"button",17),x("click",function(){f(e);let d=l();return _(d.showNewPassword.update(P=>!P))}),p(17,we,5,0,":svg:svg",18)(18,fe,3,0,":svg:svg",18),n()(),p(19,_e,2,1,"p",19),n(),o(20,"div",20),g(21,"app-password-requirements",21),n(),o(22,"div",13)(23,"label",22),s(24," Confirm Password "),o(25,"span",11),s(26,"*"),n()(),o(27,"div",15),g(28,"input",23),b(),o(29,"button",17),x("click",function(){f(e);let d=l();return _(d.showConfirmPassword.update(P=>!P))}),p(30,he,5,0,":svg:svg",18)(31,ve,3,0,":svg:svg",18),n()(),p(32,Ce,2,1,"p",24),o(33,"p",25),s(34),n()(),p(35,Pe,2,1,"p",26),p(36,ye,2,2),o(37,"button",27),p(38,be,1,0)(39,Me,1,0),n()(),o(40,"p",6)(41,"a",7),h(),o(42,"svg",18),g(43,"path",28)(44,"path",29),n(),s(45," Back to Sign In "),n()()}if(r&2){let e=l();i(8),w("formGroup",e.resetPasswordForm),i(2),y("error-label",e.hasError("newPassword")),i(5),y("input-error",e.hasError("newPassword")),w("type",e.showNewPassword()?"text":"password"),v("aria-invalid",e.hasError("newPassword"))("aria-describedby",e.hasError("newPassword")?"new-password-error password-requirements":"password-requirements"),M(),i(),v("aria-pressed",e.showNewPassword()),i(),m(e.showNewPassword()?17:18),i(2),m(e.hasError("newPassword")?19:-1),i(2),w("password",e.resetPasswordForm.get("newPassword")?.value||""),i(2),y("error-label",e.hasError("confirmPassword")),i(5),y("input-error",e.hasError("confirmPassword")),w("type",e.showConfirmPassword()?"text":"password"),v("aria-invalid",e.hasError("confirmPassword"))("aria-describedby",e.hasError("confirmPassword")?"confirm-password-error":null),M(),i(),v("aria-pressed",e.showConfirmPassword()),i(),m(e.showConfirmPassword()?30:31),i(2),m(e.hasError("confirmPassword")?32:-1),i(2),C(" ",e.passwordsMatchMessage()," "),i(),m(e.showError()?35:-1),i(),m(e.captchaEnabled()&&e.turnstileSiteKey()?36:-1),i(),w("disabled",e.isSubmitting()),v("aria-busy",e.isSubmitting()),i(),m(e.isSubmitting()?38:39)}}var pe=class r{fb=c(te);router=c(W);route=c(Q);identityApi=c(ne);destroyRef=c(V);configService=c(j);platformId=c(N);titleService=c(K);brandService=c(Y);elementRef=c(q);turnstileWidget;turnstileToken="";resetPasswordForm=this.fb.group({newPassword:["",[O.required,this.passwordValidator]],confirmPassword:["",[O.required]]},{validators:this.passwordMatchValidator});showNewPassword=u(!1);showConfirmPassword=u(!1);isSubmitting=u(!1);showError=u(!1);errorMessage=u("");captchaError=u("");codeInvalid=u(!1);codeValidating=u(!0);resetCode=null;invalidMessage=B("invalidMessage");constructor(){I(()=>{S(this.platformId)&&this.invalidMessage()?.nativeElement.focus()})}captchaEnabled(){return this.configService.isCaptchaEnabled()}turnstileSiteKey(){return this.configService.getCloudflareSiteKey()}onTurnstileToken(t){this.turnstileToken=t,this.captchaError.set("")}onTurnstileExpired(){this.turnstileToken=""}resetTurnstile(){this.turnstileToken="",this.turnstileWidget?.reset()}ngOnInit(){if(ie(this.titleService,this.brandService,"Reset Your Password"),!!S(this.platformId)){if(this.resetCode=this.route.
1snapshot.queryParamMap.get("code"),!this.resetCode){this.codeInvalid.set(!0),this.codeValidating.set(!1);return}this.identityApi.validateResetCode(this.resetCode).pipe(R(this.destroyRef)).subscribe({next:t=>{this.codeInvalid.set(!t.valid),this.codeValidating.set(!1)},error:()=>{this.codeInvalid.set(!0),this.codeValidating.set(!1)}})}}passwordValidator(t){let e=t.value;return e?le.filter(d=>!d.serverOnly).every(d=>d.validator(e))?null:{passwordStrength:!0}:null}passwordMatchValidator(t){let e=t.get("newPassword")?.value,a=t.get("confirmPassword")?.value;return!e||!a||e===a?null:{mismatch:!0}}onSubmit(){if(this.resetPasswordForm.invalid||!this.resetCode){this.resetPasswordForm.markAllAsTouched();let a=this.resetPasswordForm.errors?.mismatch?"#confirm-password":ae;se(this.elementRef.nativeElement,a);return}if(this.captchaEnabled()&&this.turnstileSiteKey()&&!this.turnstileToken){this.captchaError.set("Please complete the verification challenge.");return}this.isSubmitting.set(!0),this.showError.set(!1),this.captchaError.set("");let{newPassword:t,confirmPassword:e}=this.resetPasswordForm.value;this.identityApi.resetPassword(this.resetCode,t,e).pipe(R(this.destroyRef)).subscribe({next:a=>{this.isSubmitting.set(!1),a.success?this.router.navigate(["/signin"],{queryParams:{resetSuccess:"true"}}):(this.showError.set(!0),this.errorMessage.set(a.message||"An error occurred. Please try again."),this.resetTurnstile(),k(this.elementRef.nativeElement,a.message||"",{password:"#new-password",email:"#new-password"}))},error:a=>{this.isSubmitting.set(!1),this.showError.set(!0);let d=a.error?.errorMessage||"An error occurred. Please try again.";this.errorMessage.set(d),this.resetTurnstile(),k(this.elementRef.nativeElement,d,{password:"#new-password",email:"#new-password"})}})}passwordsMatchMessage(){let{newPassword:t,confirmPassword:e}=this.resetPasswordForm.value;return t&&e&&t===e?"Passwords match!":""}hasError(t){let e=this.resetPasswordForm.get(t);return e?.touched?t==="confirmPassword"&&this.resetPasswordForm.errors?.mismatch?!0:!!e.errors:!1}getError(t){let e=this.resetPasswordForm.get(t);if(!e?.touched)return"";if(t==="confirmPassword"){if(e.errors?.required)return"Please confirm your password";if(this.resetPasswordForm.errors?.mismatch)return"Passwords do not match"}if(t==="newPassword"){if(e.errors?.required)return"Please enter a password";if(e.errors?.passwordStrength)return de}return""}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=F({type:r,selectors:[["app-reset-password"]],viewQuery:function(e,a){if(e&1&&(z(a.invalidMessage,me,5),A(T,5)),e&2){L();let d;D(d=G())&&(a.turnstileWidget=d.first)}},decls:4,vars:1,consts:[["invalidMessage",""],[1,"loading-state"],[1,"invalid-code"],[1,"heading","heading-error"],["tabindex","-1","data-automation-id","reset-password-invalid-message",1,"subtitle"],["routerLink","/forgot-password",1,"btn-primary"],[1,"footer-text"],["routerLink","/signin",1,"footer-link"],[1,"heading"],[1,"subtitle"],[1,"required-instruction"],[1,"required"],["novalidate","",3,"ngSubmit","formGroup"],[1,"form-group"],["for","new-password"],[1,"password-wrapper"],["id","new-password","formControlName","newPassword","aria-required","true","autocomplete","off",3,"type"],["type","button","aria-label","Show password",1,"password-toggle",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round","aria-hidden","true"],["id","new-password-error",1,"error-message"],["id","password-requirements"],[3,"password"],["for","confirm-password"],["id","confirm-password","formControlName","confirmPassword","aria-required","true","autocomplete","off",3,"type"],["id","confirm-password-error",1,"error-message"],["aria-live","polite","aria-atomic","true",1,"sr-only"],["role","alert","data-automation-id","reset-password-error",1,"error-message"],["type","submit","data-automation-id","reset-password-submit",1,"btn-primary",3,"disabled"],["d","m12 19-7-7 7-7"],["d","M19 12H5"],["d","M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"],["d","M14.084 14.158a3 3 0 0 1-4.242-4.242"],["d","M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"],["d","m2 2 20 20"],["d","M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"],["cx","12","cy","12","r","3"],["data-automation-id","reset-password-turnstile",3,"tokenReceived","expired","siteKey"],["role","alert","data-automation-id","reset-password-captcha-error",1,"captcha-error"]],template:function(e,a){e&1&&(o(0,"app-auth-layout"),p(1,ue,3,0,"div",1)(2,ge,11,0,"div",2)(3,Ee,46,28),n()),e&2&&(i(),m(
1a.codeValidating()?1:a.codeInvalid()?2:3))},dependencies:[re,Z,H,J,X,ee,$,U,oe,ce,T],styles:[".loading-state[_ngcontent-%COMP%]{text-align:center;padding:40px 0;color:var(--color-text-secondary)}.invalid-code[_ngcontent-%COMP%]{text-align:center}.invalid-code[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]:focus{outline:2px solid var(--color-primary);outline-offset:2px;border-radius:2px}.heading[_ngcontent-%COMP%]{font-size:24px;font-weight:600;line-height:1.2;text-align:center;margin:0 0 12px;color:var(--color-text-dark)}.heading.heading-error[_ngcontent-%COMP%]{color:var(--color-error)}.subtitle[_ngcontent-%COMP%]{font-size:14px;line-height:1.5;text-align:center;color:var(--color-text-secondary);margin:0 0 16px}.required-instruction[_ngcontent-%COMP%]{font-size:13px;color:var(--color-text-dark);margin-bottom:16px;text-align:left}.required[_ngcontent-%COMP%]{color:var(--color-error)}.form-group[_ngcontent-%COMP%]{margin-bottom:24px}.form-group[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:block;font-size:14px;font-weight:500;margin-bottom:8px;color:var(--color-text-dark)}.form-group[_ngcontent-%COMP%]   label.error-label[_ngcontent-%COMP%], .form-group[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   .required[_ngcontent-%COMP%]{color:var(--color-error)}.form-group[_ngcontent-%COMP%]   .password-wrapper[_ngcontent-%COMP%]{position:relative}.form-group[_ngcontent-%COMP%]   .password-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;padding:8px 40px 8px 12px;font-size:14px;height:36px;border:1px solid #737373;border-radius:var(--radius-input);background-color:var(--color-card-bg);transition:border-color .2s}.form-group[_ngcontent-%COMP%]   .password-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus{outline:none;border-color:var(--color-primary);box-shadow:0 0 0 2px var(--color-primary)}.form-group[_ngcontent-%COMP%]   .password-wrapper[_ngcontent-%COMP%]   input.input-error[_ngcontent-%COMP%]{border-color:var(--color-error)}.form-group[_ngcontent-%COMP%]   .password-wrapper[_ngcontent-%COMP%]   input.input-error[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 2px var(--color-error)}.form-group[_ngcontent-%COMP%]   .password-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder{color:#737373}.form-group[_ngcontent-%COMP%]   .password-wrapper[_ngcontent-%COMP%]   .password-toggle[_ngcontent-%COMP%]{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:none;border:none;padding:4px;cursor:pointer;color:var(--color-toggle);display:flex;align-items:center;justify-content:center}.form-group[_ngcontent-%COMP%]   .password-wrapper[_ngcontent-%COMP%]   .password-toggle[_ngcontent-%COMP%]:hover{color:var(--color-toggle-hover)}.form-group[_ngcontent-%COMP%]   .error-message[_ngcontent-%COMP%]{margin-top:8px;font-size:13px;color:var(--color-error)}#password-requirements[_ngcontent-%COMP%]{margin-bottom:24px}.error-message[_ngcontent-%COMP%]{font-size:13px;color:var(--color-error);margin-bottom:12px}.captcha-error[_ngcontent-%COMP%]{font-size:13px;color:var(--color-error);margin:4px 0 0;line-height:1.5}.btn-primary[_ngcontent-%COMP%]{width:100%;padding:12px 24px;font-size:14px;font-weight:600;color:#fff;background-color:var(--color-primary);border:none;border-radius:6px;cursor:pointer;transition:background-color .2s;margin-bottom:24px;text-decoration:none;display:inline-block;text-align:center}.btn-primary[_ngcontent-%COMP%]:hover:not(:disabled){background-color:var(--color-primary-hover)}.btn-primary[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.footer-text[_ngcontent-%COMP%]{text-align:center;font-size:14px;color:var(--color-text-secondary);margin:0}.footer-text[_ngcontent-%COMP%]   .footer-link[_ngcontent-%COMP%]{color:var(--color-primary);text-decoration:underline;font-weight:500;display:inline-flex;align-items:center;gap:8px}.footer-text[_ngcontent-%COMP%]   .footer-link[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{flex-shrink:0}"]})};export{pe 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.