PageSourceSearch

https://www.careersinthemilitary.com/chunk-IRUCYF3V.js

js careersinthemilitary.com collected 2026-10-01 12:15:59 UTC 7,476 bytes, 1 lines download raw bytes

1import{a as p,b as u}from"./chunk-LOISZLXM.js";import{a as m}from"./chunk-MLQT2HSG.js";import{a as c}from"./chunk-OFP5S4CM.js";import{e as d}from"./chunk-26FORJ3B.js";import"./chunk-NCEQPEJE.js";import{CommonModule as g}from"@angular/common";import"@angular/core";import{ReactiveFormsModule as h,Validators as l}from"@angular/forms";import*as e from"@angular/core";import*as f from"@angular/common";import*as o from"@angular/forms";var M=(()=>{class a{constructor(i,t,r,s,n){this.location=i,this._httpHelper=t,this._utility=r,this.localAsset=s,this._formBuilder=n,this.loginBaseUrl="auth/",this.registrationLabel="",this._utility.setShowHeaderFooter(!1),this.resetPasswordForm=this._formBuilder.group({username:[{value:"",disabled:!0},l.required],password1:["",l.required],password2:["",l.required],resetId:["",l.required]},{validators:[p()]})}ngOnInit(){let i=this.getParameterByName("resetId"),t=this.getParameterByName("username");this.resetPasswordForm.controls.resetId.setValue(i),this.resetPasswordForm.controls.username.setValue(t),i||(this.registrationLabel="Error: Invalid Link",this.resetPasswordForm.disable())}ResetPassword(){if(this.resetPasswordForm.invalid)return;this.resetPasswordForm.disable();let i={email:this.resetPasswordForm.controls.username.getRawValue(),password:this.resetPasswordForm.controls.password2.getRawValue(),resetKey:this.resetPasswordForm.controls.resetId.getRawValue()};this._httpHelper.httpHelper("POST",this.loginBaseUrl+"passwordReset",null,i,!0).then(t=>{this.registrationLoginStatus=t,this.registrationLoginStatus.statusNumber===0?window.location.replace("/"):(this.registrationLabel=this.registrationLoginStatus.status,this.resetPasswordForm.enable(),this.resetPasswordForm.controls.username.disable())}).catch(t=>{console.log(t),this.registrationLabel="An unexpected error occurred. Please try again later.",this.resetPasswordForm.enable(),this.resetPasswordForm.controls.username.disable()})}getParameterByName(i){let t=this.location._platformLocation._location.href;t=t.replaceAll("%20","+").replaceAll("%3D","=").replace("+username","&username"),t=t.substr(t.indexOf("?")),t=t.replace("?",",").replace("&",",");let r=t.split(",");for(let s=0;s<r.length;s++){let n=r[s].split("=");if(n[0]===i)return decodeURIComponent(n[1])}}clearRegistrationLabel(){this.registrationLabel=""}static{this.\u0275fac=function(t){return new(t||a)(e.\u0275\u0275directiveInject(f.LocationStrategy),e.\u0275\u0275directiveInject(m),e.\u0275\u0275directiveInject(d),e.\u0275\u0275directiveInject(c),e.\u0275\u0275directiveInject(o.FormBuilder))}}static{this.\u0275cmp=e.\u0275\u0275defineComponent({type:a,selectors:[["app-password-reset"]],decls:59,vars:9,consts:[["id","password-reset"],[1,"title-bar",2,"background-color","#e8e8e8"],[1,"title-bar-title"],["href",""],["alt","ASVAB logo",3,"src"],["id","content-wrap"],[1,"modal-body","center"],[2,"font-weight","100","color","#ffffff"],[3,"ngSubmit","formGroup"],[1,"center"],[2,"border","none","background-color","#ffffff"],[1,"col-sm-10"],["color","red"],[1,"form-group"],["type","email","id","registerEmail","placeholder","Email","formControlName","username","readonly","readonly",1,"form-control"],["type","password","id","Password1","placeholder","Password","autocomplete","off","formControlName","password1",1,"form-control"],["type","password","id","Password2","placeholder","Retype Password","autocomplete","off","formControlName","password2",1,"form-control"],[3,"formToValidate","validationType"],[1,"btn","button",3,"disabled"],["id","footer",2,"background-color","#e8e8e8"],[1,"row"],[1,"medium-7","columns"],[1,"medium-5","large-offset-2","columns","text-center"],[1,"medium-5","columns","text-right"],[1,"sponsor",2,"color","#9ea9a9"],["id","footer-menu",1,"menu","right-align","no-margin-right"],["href","",2,"color","#9ea9a9"]],template:function(t,r){t&1&&(e.\u0275\u0275elementStart(0,"div",0)(1,"header")(2,"div",1)(3,"div",2)(4,"a",3),e.\u0275\u0275element(5,"img",4),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(6,"section",5)(7,"div",6)(8,"h3",7),e.\u0275\u0275text(9,"UPDATE YOUR ACCOUNT"),e.\u0275\u0275elementEnd(),e.\u0275\u0275text(10," Please update your password for your Careers in the Military account. "),e.\u0275\u0275elementStart(11,"form",8),e.\u0275\u0275listener("ngSubmit",function(){return r.ResetPassword()}),e.\u0275\u0275elementStart(12,"table",9)(13,"tr")(14,"td",10)(15,"div",11)(16,"label")(17,"span",12),e.\u0275\u0275text(18),e.\u0275\u0275elementEnd()()()()(),e.\u0275\u0275elementStart(19,"tr")(20,"td",10)(21,"div",13),e.\u0275\u0275element(22,"input",14),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(23,"tr")(24,"td",10)(25,"div",13),e.\u0275\u0275element(26,"input",15),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(27,"tr")(28,"td",10)(29,"div",13),e.\u0275\u0275element(30,"input",16),e.\u0275\u0275elementEnd()()(),e.\u0275\u0275elementStart(31,"tr")(32,"td",10),e.\u0275\u0275element(33,"app-password-validation",17)(34,"app-password-validation",17),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(35,"tr")(36,"td",10)(37,"button",18),e.\u0275\u0275text(38,"Reset Password"),e.\u0275\u0275elementEnd()()()()()()(),e.\u0275\u0275elementStart(39,"footer",19)(40,"div",20)(41,"div",21)(42,"div",20)(43,"div",22),e.\u0275\u0275element(44,"img",4),e.\u0275\u0275elementEnd(),e.\u0275\u0275elementStart(45,"div",23)(46,"p",24),e.\u0275\u0275text(47,"Careers In the Military is sponsored by the Department of Defense"),e.\u0275\u0275elementEnd()()()(),e.\u0275\u0275elementStart(48,"div",21)(49,"ul",25)(50,"li")(51,"a",26),e.\u0275\u0275text(52,"Home"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(53,"li")(54,"a",26),e.\u0275\u0275text(55,"Help"),e.\u0275\u0275elementEnd()(),e.\u0275\u0275elementStart(56,"li")(57,"a",26),e.\u0275\u0275text(58,"Link to Us"),e.\u0275\u0275elementEnd()()()()()()()),t&2&&(e.\u0275\u0275advance(5),e.\u0275\u0275property("src",r.localAsset.getAssetImage("logo.png"),e.\u0275\u0275sanitizeUrl),e.\u0275\u0275advance(6),e.\u0275\u0275property("formGroup",r.resetPasswordForm),e.\u0275\u0275advance(7),e.\u0275\u0275textInterpolate1("",r.registrationLabel," \xA0"),e.\u0275\u0275advance(15),e.\u0275\u0275property("formToValidate",r.resetPasswordForm)("validationType","security"),e.\u0275\u0275advance(),e.\u0275\u0275property("formToValidate",r.resetPasswordForm)("validationType","match"),e.\u0275\u0275advance(3),e.\u0275\u0275property("disabled",r.resetPasswordForm.invali
1d||r.resetPasswordForm.disabled),e.\u0275\u0275advance(7),e.\u0275\u0275property("src",r.localAsset.getAssetImage("logo.png"),e.\u0275\u0275sanitizeUrl))},dependencies:[g,h,o.\u0275NgNoValidate,o.DefaultValueAccessor,o.NgControlStatus,o.NgControlStatusGroup,o.FormGroupDirective,o.FormControlName,u],styles:["table[_ngcontent-%COMP%], th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{border:1px solid grey;border-collapse:collapse;padding:5px}table.center[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}header[_ngcontent-%COMP%]   .title-bar[_ngcontent-%COMP%]{background-color:#3c3f44}header[_ngcontent-%COMP%]{margin-bottom:100px;text-align:right}section[_ngcontent-%COMP%]{margin:auto;width:98%}footer[_ngcontent-%COMP%]{background:#4c4c4c;padding:60px;color:#fff}footer[_ngcontent-%COMP%]   .sponsor[_ngcontent-%COMP%], footer[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:.8em;color:#fff}"]})}}return a})();export{M as PasswordResetComponent};

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.