1import{a as v}from"./chunk-5O5YFGVC.js";import{c as G}from"./chunk-WTW27ATQ.js";import{a as O}from"./chunk-74QXIXOR.js";import{L,y as I,z}from"./chunk-UWPN3ANA.js";import"./chunk-URZACWAH.js";import{a as S}from"./chunk-WYWQVVYV.js";import{e as f,g as F,h as R,k as M,m as D,p as N,s as V,t as A,v as B}from"./chunk-OSCIAXER.js";import{oc as k}from"./chunk-3MZHKN66.js";import"./chunk-LWGF47UP.js";import"./chunk-CGXKU5IM.js";import"./chunk-KPTJW7ID.js";import"./chunk-KQCPDZJS.js";import{e as C}from"./chunk-Q3T7WDEA.js";import{a as T}from"./chunk-WKJHVILU.js";import"./chunk-3IIZIPSQ.js";import{Ab as w,Ec as n,Fb as x,Rc as _,Xb as r,Yb as t,Zb as o,_b as l,aa as p,f as y,gc as P,ib as m,na as c,oc as h,qc as b,ta as g,ua as u,zc as E}from"./chunk-4P6GBCAD.js";import"./chunk-MG3ERZGY.js";function U(s,i){if(s&1&&l(0,"kendo-svgicon",23),s&2){let e=b();r("icon",e.icons.evelopeOutlined)}}var $=class s{icons=O;router=c(C);fb=c(A);service=c(v);$destroy=new y;emailRegex=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;resetPasswordFrom=this.fb.group({email:new M("",[f.required,f.pattern(this.emailRegex)])});navigateToLogin(){this.router.navigate(["/login"])}checkEmailIsRegistered(){if(this.resetPasswordFrom.invalid){this.resetPasswordFrom.markAllAsTouched();return}let i=this.resetPasswordFrom.getRawValue().email;this.service.checkEmailIsRegistered(i).pipe(p(this.$destroy)).subscribe({next:e=>{e.isRegistered?this.sendOtp():console.error("Email is not registered.")},error:e=>{console.error("Error checking email registration:",e)}})}sendOtp(){if(this.resetPasswordFrom.invalid){this.resetPasswordFrom.markAllAsTouched();return}let i=this.resetPasswordFrom.getRawValue().email;this.service.sendOtp({email:i}).pipe(p(this.$destroy)).subscribe({next:()=>{this.router.navigate(["/reset-password/otp"],{queryParams:{email:i}})},error:e=>{console.error("Error sending OTP:",e)}})}ngOnDestroy(){this.$destroy.next(),this.$destroy.complete()}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=w({type:s,selectors:[["app-reset-password-enter-email"]],features:[_([v])],decls:30,vars:5,consts:[["textboxEmail",""],[1,"container-fluid","px-0"],[1,"row","mx-0"],[1,"col-lg-5","col-md-5","d-none","d-md-block","px-0"],[1,"bg-cover-img"],[1,"d-flex","flex-column","justify-content-end","h-100"],[1,"mx-auto"],["src","assets/images/login-text.svg","alt","Rugged Reliable Innovative"],[1,"col-lg-7","col-md-7"],[1,"auth-layout"],["src","../../../assets/images/app-logo.svg","alt","app logo"],["kendoTypography","","fontSize","lg","fontWeight","bold",1,"text-default"],["kendoTypography","","fontSize","md","themeColor","light"],[1,"auth-form"],["autocomplete","off",3,"formGroup"],[1,"mb-3"],["text","Email",1,"k-display-block",3,"for"],["placeholder","Enter your email","formControlName","email",1,"w-100"],["kendoTextBoxPrefixTemplate",""],["kendoButton","","themeColor","primary","type","button",1,"w-100","mt-2",3,"click","disabled"],["kendoButton","","type","button","fillMode","outline","themeColor","primary",1,"w-100","mt-2",3,"click","disabled","svgIcon"],[1,"text-center"],["kendoTypography","","fontSize","md","themeColor","secondary"],[3,"icon"]],template:function(e,a){if(e&1){let d=P();t(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"section",5)(5,"div",6),l(6,"img",7),o()()()(),t(7,"div",8)(8,"div",9)(9,"section"),l(10,"img",10),o(),t(11,"section")(12,"h4",11),n(13,"Enter email ID"),o(),t(14,"p",12),n(15,"Enter your registered email address, an email will be sent to you with instructions how to reset your password."),o()(),t(16,"section",13)(17,"form",14)(18,"div",15),l(19,"kendo-label",16),t(20,"kendo-textbox",17,0),x(22,U,1,1,"ng-template",18),o()(),t(23,"button",19),h("click",function(){return g(d),u(a.sendOtp())}),n(24," Send OTP "),o(),t(25,"button",20),h("click",function(){return g(d),u(a.navigateToLogin())}),n(26," Back to Login "),o()()(),t(27,"section",21)(28,"p",22),n(29,"Powered by DriveLynx \xA9 2026. All Rights Reserved. Version 1.0.0"),o()()()()()()}if(e&2){let d=E(21);m(17),r("formGroup",a.resetPasswordFrom),m(2),r("for",d),m(4),r("disabled",!a.resetPasswordFrom.valid),m(2),r("disabled",!1)("svgIcon",a.icons.backOutlined)}},dependencies:[T,G,z,k,I,S,L,B,D,F,R,N,V],styles:['.auth-layout[_ngcontent-%COMP%]{width:35rem;margin:0 auto}.auth-layout[_ngcontent-%COMP%] section[_ngcontent-%COMP%]:first-child{margin-top:3.6rem;margin-bottom:3.6rem}.auth-layout[_ngcontent-%COMP%] section[_ngcontent-%COMP%]:nth-child(2){margin-bottom:1.75rem}.auth-layout[_ngcontent-%COMP%] section[_ngcontent-%COMP%]:nth-child(3){min-height:calc(100vh - 310px)}.bg-cover-img[_ngcontent-%COMP%]{background-image:url("./media/auth-bg-cover-J747UFJS.svg");min-height:100vh;height:100%;background-position:center;background-repeat:no-repeat;background-size:cover;width:100%}@media (min-width: 576px) and (max-width: 1024px){.auth-layout[_ngcontent-%COMP%]{width:100%}}@media (max-width: 575px){.auth-layout[_ngcontent-%COMP%]{width:100%}.auth-layout[_ngcontent-%COMP%] section[_ngcontent-%COMP%]:nth-child(3){min-height:calc(100vh - 336px)}.auth-layout[_ngcontent-%COMP%] section[_ngcontent-%COMP%]:first-child{text-align:center}}']})};export{$ as ResetPasswordEnterEmail};
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.