1import{g as M,i as P}from"./chunk-5BDXR3XH.js";import"./chunk-EKDLYJZQ.js";import"./chunk-AFPMMNJP.js";import"./chunk-OJGMQSUL.js";import"./chunk-O5HCWBCF.js";import"./chunk-QAG7JBNO.js";import"./chunk-T2WABVKX.js";import"./chunk-JGDPWCGM.js";import"./chunk-HN3KB2T3.js";import"./chunk-EY4AAQ5E.js";import"./chunk-WCEGWZMB.js";import"./chunk-REOJONF4.js";import"./chunk-LWERUNCB.js";import"./chunk-FUIVMMC7.js";import"./chunk-L3HX4SZF.js";import"./chunk-WDDGA74L.js";import"./chunk-YBHZG67L.js";import"./chunk-PYL6SNY4.js";import"./chunk-GJRLM36O.js";import"./chunk-L3I4B4SV.js";import"./chunk-SSQ5HSWI.js";import"./chunk-XVFG7TCI.js";import"./chunk-FOCAIKHG.js";import"./chunk-KNA2SUUJ.js";import"./chunk-OZY77U3I.js";import"./chunk-KXVPLRJO.js";import"./chunk-YOWSFPMA.js";import"./chunk-JLE74NMM.js";import{Ac as v,Ca as L,Da as W,Db as w,Ea as Q,Eb as R,Ga as e,Gb as E,Hc as j,I as N,J as V,La as y,Ma as x,N as S,Na as _,O as U,Pc as G,Qb as O,Z as p,aa as a,ba as f,ca as q,gc as d,ia as c,jc as z,na as o,oa as s,pb as k,qe as H,sa as B,ta as b,xa as D,yc as I,zc as h}from"./chunk-ZB7A6YNV.js";var g=class{};var l=(()=>{class r{constructor(){this.submitSuccess=!1}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275prov=N({token:r,factory:r.\u0275fac})}}return r})();var ne=["captchaComponent"],X=(()=>{class r{constructor(n,i,t,m){this.router=n,this.utilService=i,this.state=t,this.loginAssistanceService=m,this.forgotUsername=new g}submit(){this.forgotUsername.errors={},this.loginAssistanceService.getRandomChallenge(this.forgotUsername).subscribe(n=>{if(!this.utilService.objectHasErrors(n)){this.state.question=n.question,this.state.email=this.forgotUsername.email,this.state.submitSuccess=!0,this.router.navigate(["/recoverusername/authenticate"]);return}this.forgotUsername.errors=n.errors,this.captchaElement.resetCaptcha()})}static{this.\u0275fac=function(i){return new(i||r)(a(d),a(I),a(l),a(M))}}static{this.\u0275cmp=f({type:r,selectors:[["ap-recover-username-index"]],viewQuery:function(i,t){if(i&1&&L(ne,5),i&2){let m;W(m=Q())&&(t.captchaElement=m.first)}},standalone:!1,decls:23,vars:4,consts:[["captchaComponent",""],[3,"subscriptions"],[1,"form-horizontal",3,"submit"],["header","Forgot Username?"],[1,"instructions"],["id","email","label","Email",3,"valueChange","value","errors"],[3,"verifyToken","errors"],[1,"text-end"],["id","submit","type","submit",1,"btn","btn-primary"]],template:function(i,t){if(i&1){let m=B();o(0,"ap-busy",1),e(1,` 2 `),o(2,"form",2),b("submit",function(){return S(m),U(t.submit())}),e(3,` 3 `),o(4,"ap-section-container",3),e(5,` 4 `),o(6,"p",4),e(7,"Enter the email address associated with your user account."),s(),e(8,` 5 `),o(9,"ap-form-control-base",5),_("valueChange",function(C){return S(m),x(t.forgotUsername.email,C)||(t.forgotUsername.email=C),U(C)}),s(),e(10,` 6 7 `),o(11,"ap-captcha",6,0),b("verifyToken",function(C){return S(m),U(t.forgotUsername.captcha=C)}),s(),e(13,` 8 9 `),o(14,"div",7),e(15,` 10 `),o(16,"button",8),e(17,"Continue"),s(),e(18,` 11 `),s(),e(19,` 12 `),s(),e(20,` 13 `),s(),e(21,` 14`),s(),e(22,` 15`)}i&2&&(c("subscriptions",t.submitSubscription),p(9),y("value",t.forgotUsername.email),c("errors",t.forgotUsername.errors==null?null:t.forgotUsername.errors.email),p(2),c("errors",t.forgotUsername.errors==null?null:t.forgotUsername.errors.captcha))},dependencies:[j,v,h,G,E,w,R],encapsulation:2})}}return r})();var Z=(()=>{class r{constructor(n,i,t,m){this.router=n,this.utilService=i,this.state=t,this.loginAssistanceService=m,this.forgotUsername=new g}ngOnInit(){if(!this.state.submitSuccess){this.router.navigate(["recoverusername"]);return}this.forgotUsername.email=this.state.email,this.forgotUsername.question=this.state.question,this.state.email=null,this.state.submitSuccess=!1}submit(){this.forgotUsername.errors={},this.loginAssistanceService.sendForgotUsernameEmail(this.forgotUsername).subscribe(n=>{if(!this.utilService.objectHasErrors(n)){this.state.submitSuccess=!0,this.router.navigate(["recoverusername/confirm"]);return}this.forgotUsername.errors=n.errors})}static{this.\u0275fac=function(i){return new(i||r)(a(d),a(I),a(l),a(M))}}static{this.\u0275cmp=f({type:r,selectors:[["ap-recover-username-authenticate"]],standalone:!1,decls:20,vars:7,consts:[[3,"subscriptions"],[1,"form-horizontal",3,"submit"],["header","Challenge Question"],["id","challenge-question",3,"valueChange","wrapLabel","label","value","errors","autoFocus"],[1,"text-end"],["id","challenge-submit","type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(i,t){i&1&&(o(0,"ap-busy",0),e(1,` 16 `),o(2,"form",1),b("submit",function(){return t.submit()}),e(3,` 17 `),o(4,"ap-section-container",2),e(5,` 18 `),o(6,"p"),e(7,"Correctly answer the challenge question to recover your username. (Not case sensitive)"),s(),e(8,` 19 `),o(9,"ap-form-control-base",3),_("valueChange",function(u){return x(t.forgotUsername.answer,u)||(t.forgotUsername.answer=u),u}),s(),e(10,` 20 `),o(11,"div",4),e(12,` 21 `),o(13,"button",5),e(14,"Continue"),s(),e(15,` 22 `),s(),e(16,` 23 `),s(),e(17,` 24 `),s(),e(18,` 25`),s(),e(19,` 26`)),i&2&&(c("subscriptions",t.submitSubscription),p(9),D("label",t.forgotUsername.question),c("wrapLabel",!0),y("value",t.forgotUsername.answer),c("errors",t.forgotUsername.errors==null?null:t.forgotUsername.errors.answer)("autoFocus",!0),p(4),c("disabled",!t.forgotUsername.answer))},dependencies:[j,v,h,E,w,R],encapsulation:2})}}return r})();var $=(()=>
26{class r{constructor(n,i){this.router=n,this.state=i}ngOnInit(){if(!this.state.submitSuccess){this.router.navigate(["/recoverusername"]);return}this.state.submitSuccess=!1}static{this.\u0275fac=function(i){return new(i||r)(a(d),a(l))}}static{this.\u0275cmp=f({type:r,selectors:[["ap-recover-username-confirm"]],standalone:!1,decls:9,vars:0,consts:[["header","Username Email Sent!"]],template:function(i,t){i&1&&(o(0,"ap-busy"),e(1,` 27 `),o(2,"ap-section-container",0),e(3,` 28 `),o(4,"p"),e(5,"You will be sent an email with instructions to access your user account."),s(),e(6,` 29 `),s(),e(7,` 30`),s(),e(8,` 31`))},dependencies:[v,h],encapsulation:2})}}return r})();var A={title:"Recover Username"},oe=[{path:"",component:X,data:A},{path:"authenticate",component:Z,data:A},{path:"authenticate.xhtml",redirectTo:"authenticate"},{path:"confirm",component:$,data:A},{path:"confirm.xhtml",redirectTo:"confirm"},{path:"**",redirectTo:""}],ye=(()=>{class r{static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275mod=q({type:r})}static{this.\u0275inj=V({providers:[l],imports:[k,H,O,P,z.forChild(oe)]})}}return r})();export{ye as RecoverUsernameModule};
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.