1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="167dd5c5-fc5b-5653-9f94-ad89cf483bfb")}catch(e){}}(); 3import {Y as Ye,B as Be$1}from'./chunk-C8r_ZGME.js';import {a0 as Za,a1 as _o,a2 as VO,aB as ee,c as He,bS as Rb,w as we,az as br,as as mc,fW as y0,a3 as eu,a5 as R,a6 as Re$1,aq as k,gY as ts,j as jM,aU as mO,aL as Gm,aV as Vi,A as Ai,aM as Bm,aN as Wn,E as Eo,aO as Ri,b$ as rn,d1 as Fb,d2 as Ab,aP as K_,aW as ce,aX as Eh,aY as Fh,je as f0,ad as bO,I as Ia,b1 as iD,ae as yA,p as bf,C as X_,D as TD,af as DA,dw as jD,dx as Cx,dy as wx,au as s,y,cX as $c,ah as Fe$1,cv as Wc,h as dx,Q as Qx,o as kD,an as cE,K as KS,q as _D,s as yx,ap as aE,cq as fA,F as XS,N as Af,r as Xh,t as eg,ao as eA}from'./main-CAjEjBVh.js';var Pe=["chooseNewPassword"];function Ie(t,o){if(t&1&&(Ia(0,"tg-info-box"),Qx(1),bf()),t&2){let s=yx(2);X_(),Af(" ",s.errorMessage," ");}}function Ae(t,o){if(t&1){let s=dx();Ia(0,"div")(1,"h2"),Qx(2,"Choose a new password"),bf(),Ia(3,"p"),Qx(4,"Your password must be at least 8 characters long."),bf(),Ia(5,"form",3,0),kD("ngSubmit",function(){Xh(s);let e=yx();return eg(e.resetPassword())}),Ia(7,"div")(8,"tm-password-confirm",4),cE("ngModelChange",function(e){Xh(s);let a=yx();return eA(a.passwordConfirmDetails,e)||(a.passwordConfirmDetails=e),eg(e)}),bf(),KS(),iD(9,Ie,2,1,"tg-info-box",2),Ia(10,"button",5),yA(11,"async"),Qx(12," Change password "),bf()()(),Ia(13,"p")(14,"a",6),Qx(15," Log in "),bf()()();}if(t&2){let s=yx();X_(8),aE("ngModel",s.passwordConfirmDetails),TD("emailAddress",s.emailAddress),XS(),X_(),TD("ngIf",s.errorMessage),X_(),TD("loading",DA(11,4,s.success$));}}function Re(t,o){if(t&1&&(Ia(0,"div")(1,"h2"),Qx(2,"Your password has been changed"),bf(),Ia(3,"p"),Qx(4),bf(),Ia(5,"a",7),Qx(6," Log in "),bf(),Ia(7,"p")(8,"a",8),Qx(9," Back to the home page "),bf()()()),t&2){let s=yx();X_(4),Af("",s.successDescription," We recommend using a password manager to keep your new password safe.");}}var Ee={title:"Choose a new password | Trade Me",description:"Update your password",noPostfix:true},_e=(()=>{let o=class o{constructor(i,e,a){this._store=i,this._myTradeMeService=e,this._activatedRoute=a;}ngOnInit(){let{email:i,token:e}=this._activatedRoute.snapshot.queryParams;this.emailAddress=i,this._token=e,this._store.dispatch(new s(Ee));}resetPassword(){if(this.chooseNewPasswordForm.valid){if(this.errorMessage="",!this.emailAddress||!this._token){this.errorMessage="Please use the password reset link in your email";return}let i={emailAddress:this.emailAddress,password:this.passwordConfirmDetails.password,resetToken:this._token};this.success$=this._myTradeMeService.resetPassword(i).pipe(Fe$1(e=>(this.successDescription=e.description,e.success)),Wc(e=>(this.errorMessage=e.data.errorDescription,$c(false))));}}};o.\u0275fac=function(e){return new(e||o)(R(k),R(ts),R(Re$1))},o.\u0275cmp=jM({type:o,selectors:[["ng-component"]],viewQuery:function(e,a){if(e&1&&jD(Pe,5),e&2){let v;Cx(v=wx())&&(a.chooseNewPasswordForm=v.first);}},hostAttrs:["ngSkipHydration","true"],standalone:false,decls:6,vars:6,consts:[["chooseNewPassword","ngForm"],["md","8","mdOffset","2","lg","6","lgOffset","3"],[4,"ngIf"],["method","POST",3,"ngSubmit"],["name","passwordConfirmDetails","passwordConfirmTitle","Confirm New Password","passwordTitle","New Password",3,"ngModelChange","ngModel","emailAddress"],["fullWidth","","tgButton2","","tgStyle","primary","type","submit",3,"loading"],["routerLink","/login",1,"h-link-no-visited"],["fullWidth","","routerLink","/login","tgButton2","","tgStyle","primary","type","button"],["routerLink","/",1,"h-link-no-visited"]],template:function(e,a){e&1&&(Ia(0,"tg-row")(1,"tg-col",1),iD(2,Ae,16,6,"div",2),yA(3,"async"),iD(4,Re,10,1,"div",2),yA(5,"async"),bf()()),e&2&&(X_(2),TD("ngIf",!DA(3,2,a.success$)),X_(2),TD("ngIf",DA(5,4,a.success$)));},dependencies:[mO,Gm,Ai,Bm,Eo,Ri,Be$1,rn,He,Fb,Ab,K_,bO],encapsulation:2});let t=o;return t})();var Ne=["resetPassword"],De=()=>({email:"Please enter a valid email address",required:"Please enter an email address"});function be(t,o){if(t&1&&(Ia(0,"tg-info-box"),Qx(1),bf()),t&2){let s=yx(2);X_(),Af(" ",s.errorMessage," ");}}function ke(t,o){if(t&1){let s=dx();Ia(0,"div")(1,"h1",4),Qx(2,"Forgot your password?"),bf(),Ia(3,"p"),Qx(4,"Enter your email address and we'll send you password reset instructions."),bf(),Ia(5,"form",5,0),kD("ngSubmit",function(){Xh(s);let e=yx();return eg(e.sendPasswordReset())}),Ia(7,"div")(8,"tg-input-container",6)(9,"input",7),cE("ngModelChange",function(e){Xh(s);let a=yx();return eA(a.emailAddress,e)||(a.emailAddress=e),eg(e)}),bf(),KS(),_D(10,"tg-icon-right",8),bf(),iD(11,be,2,1,"tg-info-box",3),Ia(12,"button",9),Qx(13," Send instructions "),bf()()(),Ia(14,"p")(15,"a",10),Qx(16," Log in "),bf()()();}if(t&2){let s=yx();X_(9),aE("ngModel",s.emailAddress),TD("validation",fA(3,De)),XS(),X_(2),TD("ngIf",s.errorMessage);}}function Ve(t,o){if(t&1&&(Ia(0,"div")(1,"h2"),Qx(2,"We've sent your instructions"),bf(),Ia(3,"p"),Qx(4),bf(),Ia(5,"p")(6,"a",11),Qx(7," Return to the home page "),bf()()()),t&2){let s=yx();X_(4),Af(" ",s.successDescription," ");}}var Fe={title:"Forgot your password? | Trade Me",description:"Reset your forgotten password",noPostfix:true},Ce=(()=>{let o=class o{constructor(i,e,a){this._activatedRoute=i,this._store=e,this._myTradeMeService=a;}ngOnInit(){let{email:i}=this._activatedRoute.snapshot.queryParams;this.emailAddress=i,this._store.dispatch(new s(Fe));}ngOnDestroy(){let i=y({},this._activatedRoute.snapshot.queryParams);delete i.email,this._activatedRoute.queryParams=$c(i);}sendPasswordReset(){this.resetPasswordForm.valid&&(this.errorMessage="",this.success$=this._myTradeMeService.sendPasswordResetInstru
3ctions({emailAddress:this.emailAddress}).pipe(Fe$1(i=>(this.successDescription=i.description,i.success)),Wc(i=>(this.errorMessage=i.data.errorDescription,$c(false)))));}};o.\u0275fac=function(e){return new(e||o)(R(Re$1),R(k),R(ts))},o.\u0275cmp=jM({type:o,selectors:[["tm-password-reset"]],viewQuery:function(e,a){if(e&1&&jD(Ne,5),e&2){let v;Cx(v=wx())&&(a.resetPasswordForm=v.first);}},hostAttrs:["ngSkipHydration","true"],inputs:{emailAddress:"emailAddress"},standalone:false,decls:8,vars:6,consts:[["resetPassword","ngForm"],[1,"h-spacing-page-bottom","h-spacing-page-top","l-container"],["md","8","mdOffset","2","lg","6","lgOffset","3"],[4,"ngIf"],[1,"p-h2"],["method","POST",3,"ngSubmit"],["label","Email"],["autocapitalize","off","autocorrect","off","autofocus","","name","email","required","","spellcheck","false","tgTextInput","","type","email",3,"ngModelChange","ngModel","validation"],["name","mail","role","presentation"],["fullWidth","","tgButton2","","tgStyle","primary","type","submit"],["routerLink","/login",1,"h-link-no-visited"],["routerLink","/"]],template:function(e,a){e&1&&(Ia(0,"section")(1,"div",1)(2,"tg-row")(3,"tg-col",2),iD(4,ke,17,4,"div",3),yA(5,"async"),iD(6,Ve,8,1,"div",3),yA(7,"async"),bf()()()()),e&2&&(X_(4),TD("ngIf",!DA(5,2,a.success$)),X_(2),TD("ngIf",DA(7,4,a.success$)));},dependencies:[mO,Gm,Vi,Ai,Bm,Wn,Eo,Ri,rn,He,Fb,Ab,we,K_,ce,Eh,Fh,f0,bO],encapsulation:2});let t=o;return t})();var Be=[{path:"reset",component:Ce},{path:"confirm",component:_e}],tt=(()=>{let o=class o{};o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=Za({type:o}),o.\u0275inj=_o({imports:[VO,ee,Ye,eu.forChild(Be),He,Rb,we,br,mc,y0
3]});let t=o;return t})();export{tt as PasswordModule};//# sourceMappingURL=password.module-BgzAzsQS.js.map 4 5//# debugId=167dd5c5-fc5b-5653-9f94-ad89cf483bfb
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.