1import{a as V,b as q}from"./chunk-WDS4VICO.js";import{a as H}from"./chunk-TOBJBIOK.js";import{a as h}from"./chunk-SXUQMHB5.js";import{a as U}from"./chunk-VIDWUW2V.js";import{d as G}from"./chunk-YLMRQBGO.js";import"./chunk-L3D6IURT.js";import{a as N}from"./chunk-7HI25MJM.js";import"./chunk-MMJUS43E.js";import{a as R}from"./chunk-ROK66CLA.js";import"./chunk-XGZ5RT5I.js";import"./chunk-K5ILUYGA.js";import"./chunk-TXCNN3US.js";import"./chunk-LKZU5JM5.js";import"./chunk-3I73PGSK.js";import"./chunk-ELU4DU2Z.js";import{a as I}from"./chunk-MKC2L6NU.js";import"./chunk-UP7RJZB3.js";import{a as D,b as B,s as f,t as j,u as p}from"./chunk-AREJ5L6T.js";import"./chunk-XQLJJ3SA.js";import{a as u}from"./chunk-ONHMY5LF.js";import{a as M}from"./chunk-ZZ7GVNYF.js";import{d as y,e as C}from"./chunk-6DU6TUTP.js";import"./chunk-EV2SWWLL.js";import"./chunk-336T464H.js";import"./chunk-JVBWNJ7J.js";import"./chunk-YLCG7PAJ.js";import"./chunk-HNO7NSW5.js";import"./chunk-IS7FJNTQ.js";import"./chunk-ARC6O65K.js";import"./chunk-MCAGRIVH.js";import"./chunk-DRHMN45R.js";import"./chunk-W45BBYXN.js";import"./chunk-AHJFCBZQ.js";import"./chunk-ADL74TRE.js";import"./chunk-AIUE46WW.js";import"./chunk-LJB6XPPV.js";import"./chunk-JMEK3LZA.js";import"./chunk-KBLY73PU.js";import"./chunk-VZI4EQ7N.js";
1import{e as k,i as P,n as E,r as _,w as L}from"./chunk-MFBQMAUE.js";import"./chunk-7FDOIBK2.js";import"./chunk-X7TNNE74.js";import"./chunk-BFEH3BH7.js";import"./chunk-RP2DFSUW.js";import{a as T}from"./chunk-P3VSDQBX.js";import{b as x,d as A}from"./chunk-UVCY25RD.js";import"./chunk-6WIYXIL2.js";import"./chunk-YNQPX5G6.js";import"./chunk-JNF4SLCH.js";import"./chunk-4BCBJU5R.js";import"./chunk-O4566X6N.js";import"./chunk-WS2DRRA3.js";import"./chunk-IJVGNSEE.js";import"./chunk-L2DNGAEL.js";import{l as b}from"./chunk-RUAXYKUD.js";import"./chunk-LG2WT7NE.js";import{Cc as S,Dc as F,Lb as l,Mb as t,Nb as o,Ob as d,Ya as a,Zb as g,hb as m,nb as v,oc as r,qc as w}from"./chunk-HDD7CC4I.js";import"./chunk-2KJ74XIG.js";var ge=(()=>{class c{fb;titleService;masterService;router;coreService;forgotPasswordForm;forgotPasswordFormConfig;routing=u;message;messageType=h.Error;staticLink;currentDate=new Date;constructor(s,i,e,n,$){this.fb=s,this.titleService=i,this.masterService=e,this.router=n,this.coreService=$,this.titleService.setTitle("Forgot password | Nexdi")}ngOnInit(){this.buildForgotPasswordForm(),this.setForgotPasswordFormConfig(),this.setStaticUrl()}buildForgotPasswordForm=()=>{this.forgotPasswordForm=this.fb.group({email:["",[k.required,q(V.Email)]]})};setForgotPasswordFormConfig=()=>{this.forgotPasswordFormConfig={email:{label:"Email address",formControlName:"email",placeholder:"",type:I.text,maxLength:100}}};setStaticUrl=()=>{this.masterService.postData(f.Home,B.GetStaticUrls,"").subscribe(s=>{let i=s?.data;i&&(this.staticLink=i.obj[U.AppLink])})};handleForgotPasswordRequest=()=>{if(this.forgotPasswordForm?.valid){let{email:s}=this.forgotPasswordForm?.value;this.coreService.showLoader(),this.masterService.postData(f.Auth,D.ForgotPassword,s).subscribe(i=>{let{statusCode:e,message:n}=i;e===p.Success?(this.forgotPasswordForm.reset(),this.message=n,this.messageType=h.Success,setTimeout(()=>{this.router.navigateByUrl(`${u.Auth}/${u.Login}`)},5e3)):(e===p.Error||e===p.EmailSendError||e===p.NoUnreadNotification)&&(this.message=n),this.coreService.hideLoader()})}else this.forgotPasswordForm.markAllAsTouched()};handleGetTheApp=()=>{window.open(this.staticLink,"_blank")};static \u0275fac=function(i){return new(i||c)(m(L),m(b),m(j),m(y),m(N))};static \u0275cmp=v({type:c,selectors:[["app-forgot-password"]],decls:35,vars:12,consts:[[1,"login-wrapper","in-forgot-password"],[1,"left"],[1,"signup-header"],["routerLink","/","title","Nexdi",1,"logo"],["src","./assets/images/header-logo.svg","alt","Nexdi",1,"d-none","d-sm-block"],["src","./assets/images/login-logo.svg","alt","Nexdi",1,"d-block","d-sm-none"],["matIconButton","",1,"btn",3,"routerLink"],["src","./assets/images/ic-close-grey.svg","alt","Close"],[1,"login-box"],[1,"title","text-center","pb-4"],[1,"text-center","description","pb-4"],[3,"formGroup"],[3,"closed","message","type"],[1,"form-group"],[3,"config"],["matButton","filled","title","Recover password","type","button",1,"btn-primary","next",3,"click"],[1,"text-center"],["title","Help Centre",3,"routerLink"],[1,"auth-footer"],[1,"public-copyright-footer"],[1,"copyright"],[1,"right"],["matButton","outlined","color","primary","type","button","title","Get the app",1,"btn-outline-primary",3,"click"],[1,"section-images"],["src","./assets/images/ic-login-shield.png","alt","Shield",1,"shield"],["src","./assets/images/ic-login-lock.png","alt","Lock",1,"lock"]],template:function(i,e){i&1&&(t(0,"div",0)(1,"div",1)(2,"header",2)(3,"nav")(4,"a",3),d(5,"img",4)(6,"img",5),o(),t(7,"button",6)(8,"mat-icon"),d(9,"img",7),o()()()(),t(10,"div",8)(11,"h6",9),r(12,"Forgot Password?"),o(),t(13,"p",10),r(14," Just enter the email address you registered with and we'll send you a link to reset your password "),o(),t(15,"form",11)(16,"app-message-alert",12),g("closed",function(){return e.message=""}),o(),t(17,"div",13),d(18,"app-textbox",14),o(),t(19,"button",15),g("click",function(){return e.handleForgotPasswordRequest()}),r(20," Recover password "),o()(),t(21,"p",16),r(22," Need help? Visit our "),t(23,"a",17),r(24,"Help Centre"),o()()(),t(25,"div",18)(26,"div",19)(27,"p",20),r(28),o()()()(),t(29,"div",21)(30,"button",22),g("click",function(){return e.handleGetTheApp()}),r(31," Get the app "),o(),t(32,"div",23),d(33,"img",24)(34,"img",25),o()()()),i&2&&(a(7),l("routerLink",F("",e.routing.Secure,"/",e.routing.Auth,"/",e.routing.Login)),a(8),l("formGroup",e.forgotPasswordForm),a(),l("message",e.message)("type",e.messageType),a(2),l("config",e.forgotPasswordFormConfig==null?null:e.forgotPasswordFormConfig.email),a(5),l("routerLink",S("/",e.routing.Home,"/",e.routing.FAQ)),a(5),w(" \xA9 Copyrights ",e.currentDate.getFullYear()," Nexdi Ltd. "))},dependencies:[M,T,A,x,E,P,_,C,G,R,H],encapsulation:2})}return c})();export{ge as ForgotPasswordComponent};
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.