PageSourceSearch

https://online.tatamutualfund.com/mf/chunk-2IY2PTJX.js

js tatamutualfund.com collected 2026-09-25 02:40:08 UTC 72,122 bytes, 1 lines download raw bytes

1import{a as Ze,b as Ke,c as Xe,e as et,f as tt,h as it}from"./chunk-73D7JLHF.js";import"./chunk-XDWHBFRU.js";import"./chunk-AUN4KWLQ.js";import{a as ze,b as Ge,d as $e,e as Je,f as We,i as Qe,j as Ye}from"./chunk-PBIBMCZO.js";import"./chunk-BTAZV5WL.js";import{D as Ae,E as Ue,F as qe,H as Re,I as je,c as Be}from"./chunk-EGHWZXZS.js";import"./chunk-UXWSPOKW.js";import"./chunk-XH3YUMYZ.js";import"./chunk-EOV3A63U.js";import"./chunk-WSMZOUWY.js";import{a as le}from"./chunk-ZCJFAMEI.js";import{b as He}from"./chunk-XKOUGLIG.js";import"./chunk-PT6TLS4H.js";import{c as j,e as Se}from"./chunk-BDMMN6R2.js";import"./chunk-CHVHU6AC.js";import"./chunk-SYL67YTI.js";import{Bd as M,D as W,E as Q,Hb as U,Ib as T,K as Y,Kb as Te,N as ke,O as Pe,P as Z,Pb as Me,R as xt,S as re,Wb as Ie,Wc as te,Xc as se,Zb as Ne,aa as ue,ac as K,ea as Oe,ed as ie,ga as N,l as A,o as z,p as P,q as G,r as H,s as $,tc as ae,u as O,uc as Le,w as J}from"./chunk-NKC33HJT.js";import{b as ee}from"./chunk-L6VUSLXR.js";import{c as L,e as Fe,f as Ee,h as F,k as X,l as De,n as Ve}from"./chunk-QNFSNR4C.js";import{Aa as s,Eb as m,Fb as be,Gb as y,Ia as h,Ic as R,Ka as I,La as Ce,Ua as k,Uc as ve,Wa as d,Y as _e,Ya as p,Zb as b,b as q,bb as u,cb as a,d as ge,da as _,db as r,ea as C,eb as v,gc as V,hc as B,ka as S,kd as ye,lb as w,md as we,ob as g,qb as l,qd as xe,wa as D}from"./chunk-ZWOZPEX4.js";import{a as oe,g as wt}from"./chunk-IUWJPDSS.js";var mt=wt(xt());var nt=i=>({"is-off":i}),de=i=>({"invalid-border":i}),pe=i=>({"invalid-label":i}),Pt=i=>({"progress-btn":i}),Ot=i=>({"eye-icon":i});function Tt(i,c){i&1&&(a(0,"button",22),v(1,"img",37),r())}function Mt(i,c){if(i&1&&m(0),i&2){let e=l(3);y(" ",e.message.validationError.emailmobile.required," ")}}function It(i,c){if(i&1&&m(0),i&2){let e=l(3);y(" ",e.message.validationError.emailmobile.valid," ")}}function Nt(i,c){if(i&1&&(a(0,"div",36),d(1,Mt,1,1),d(2,It,1,1),r()),i&2){let e=l(2);s(),p(e.form.emailmobile!=null&&e.form.emailmobile.touched&&(e.form.emailmobile!=null&&e.form.emailmobile.touched||e.form.emailmobile!=null&&e.form.emailmobile.dirty||e.submitted)&&(!(e.form.emailmobile==null||e.form.emailmobile.errors==null)&&e.form.emailmobile.errors.required)?1:-1),s(),p(e.form.emailmobile!=null&&e.form.emailmobile.touched&&(e.form.emailmobile!=null&&e.form.emailmobile.touched||e.form.emailmobile!=null&&e.form.emailmobile.dirty||e.submitted)&&(!(e.form.emailmobile==null||e.form.emailmobile.errors==null)&&e.form.emailmobile.errors.emailmobile)?2:-1)}}function Lt(i,c){if(i&1){let e=w();a(0,"div",16)(1,"div",19)(2,"input",34),g("keypress",function(t){_(e);let o=l();return o.emailonly(t),C(o.max64Char())}),r(),a(3,"label",35),m(4,"Mobile/Email"),r(),d(5,Tt,2,0,"button",22),r(),d(6,Nt,3,2,"div",36),r()}if(i&2){let e=l();s(2),u("placeholder",e.isDesktopView?"Mobile/Email":"")("ngClass",b(6,de,(e.form.emailmobile==null?null:e.form.emailmobile.touched)&&((e.form.emailmobile==null?null:e.form.emailmobile.touched)||(e.form.emailmobile==null?null:e.form.emailmobile.dirty)||e.submitted)&&(e.form.emailmobile==null?null:e.form.emailmobile.errors))),k("aria-invalid",e.form.emailmobile!=null&&e.form.emailmobile.touched&&(e.form.emailmobile!=null&&e.form.emailmobile.errors)?!0:null),s(),u("ngClass",b(8,pe,(e.form.emailmobile==null?null:e.form.emailmobile.touched)&&((e.form.emailmobile==null?null:e.form.emailmobile.touched)||(e.form.emailmobile==null?null:e.form.emailmobile.dirty)||e.submitted)&&(e.form.emailmobile==null?null:e.form.emailmobile.errors))),s(2),p(e.form.emailmobile!=null&&e.form.emailmobile.touched&&(e.form.emailmobile!=null&&e.form.emailmobile.touched||e.form.emailmobile!=null&&e.form.emailmobile.dirty||e.submitted)&&(e.form.emailmobile!=null&&e.form.emailmobile.errors)?5:-1),s(),p(e.form.emailmobile!=null&&e.form.emailmobile.touched&&(e.form.emailmobile!=null&&e.form.emailmobile.touched||e.form.emailmobile!=null&&e.form.emailmobile.dirty||e.submitted)&&(e.form.emailmobile!=null&&e.form.emailmobile.errors)?6:-1)}}function Ft(i,c){i&1&&(a(0,"button",22),v(1,"img",37),r())}function Et(i,c){if(i&1&&m(0),i&2){let e=l(3);y(" ",e.message.validationError.anyuserid.required," ")}}function Dt(i,c){if(i&1&&m(0),i&2){let e=l(3);y(" ",e.message.validationError.anyuserid.valid," ")}}function Vt(i,c){if(i&1&&m(0),i&2){let e=l(3);y(" ",e.message.validationError.anyuserid.multiplePAN," ")}}function Bt(i,c){if(i&1&&(a(0,"div",40),d(1,Et,1,1),d(2,Dt,1,1),d(3,Vt,1,1),r()),i&2){let e=l(2);s(),p(e.form.anyuserid!=null&&e.form.anyuserid.touched&&(e.form.anyuserid!=null&&e.form.anyuserid.touched||e.form.anyuserid!=null&&e.form.anyuserid.dirty||e.submitted)&&(!(e.form.anyuserid==null||e.form.anyuserid.errors==null)&&e.form.anyuserid.errors.required)?1:-1),s(),p(e.form.anyuserid!=null&&e.form.anyuserid.touched&&(e.form.anyuserid!=null&&e.form.anyuserid.touched||e.form.anyuserid!=null&&e.form.anyuserid.dirty||e.submitted)&&(!(e.form.anyuserid==null||e.form.anyuserid.errors==null)&&e.form.anyuserid.errors.anyuserid)?2:-1),s(),p(e.form.anyuserid!=null&&e.form.anyuserid.touched&&(e.form.anyuserid!=null&&e.form.anyuserid.touched||e.form.anyuserid!=null&&e.form.anyuserid.dirty||e.submitted)&&(!(e.form.anyuserid==null||e.form.anyuserid.errors==null)&&e.form.anyuserid.errors.multiplePAN)?3:-1)}}function At(i,c){if(i&1){let e=w();a(0,"div",17)(1,"div",19)(2,"input",38),g("focusout",function(t){_(e);let o=l();return C(o.checkisEmail(t))}),r(),a(3,"label",39),m(4,"Email/Mobile/Username"),r(),d(5,Ft,2,0,"button",22),r(),d(6,Bt,4,3,"div",40),r()}if(i&2){let e=l();s(2),u("placeholder",e.isDesktopView?"Email/Mobile/Username":"")("ngClass",b(6,de,(e.form.anyuserid==null?null:e.form.anyuserid.touched)&&((e.form.anyuserid==null?null:e.form.anyuserid.touched)||(e.form.anyuserid==null?null:e.form.anyuserid.dirty)||e.submitted)&&(e.form.anyuserid==null?null:e.form.anyuserid.errors))),k("aria-invalid",e.form.anyuserid!=null&&e.form.anyuserid.touched&&(e.form.anyuserid!=null&&e.form.anyuserid.errors)?!0:null),s(),u("ngClass",b(8,pe,(e.form.anyuserid==null?null:e.form.anyuserid.touched)&&((e.form.anyuserid==null?null:e.form.anyuserid.touched)||(e.form.anyuserid==null?null:e.form.anyuserid.dirty)||e.submitted)&&(e.form.anyuserid==null?null:e.form.anyuserid.errors))),s(2),p(e.form.anyuserid!=null&&e.form.anyuserid.touched&&(e.form.anyuserid!=null&&e.form.anyuserid.touched||e.form.anyuserid!=null&&e.form.anyuserid.dirty||e.submitted)&&(e.form.anyuserid!=null&&e.form.anyuserid.errors)?5:-1),s(),p(e.form.anyuserid!=null&&e.form.anyuserid.touched&&(e.form.anyuserid!=null&&e.form.anyuserid.touched||e.form.anyuserid!=null&&e.form.anyuserid.dirty||e.submitted)&&(e.form.anyuserid!=null&&e.form.anyuserid.errors)?6:-1)}}function Ut(i,c){if(i&1){let e=w();a(0,"div",18)(1,"div")(2,"input",41),g("change",function(t){_(e);let o=l();return C(o.saveUserName(t))}),r(),a(3,"label",42),m(4,"Remember Me"),r()(),a(5,"button",43),g("click",function(){_(e);let t=l();return C(t.onForgotUserName())}),m(6," Forgot Username? "),r()()}if(i&2){let e=l();s(2),u("checked",e.checkRememberMe)}}function qt(i,c){i&1&&(a(0,"button",22),v(1,"img",37),r())}function Rt(i,c){if(i&1&&m(0),i&2){let e=l(2);y(" ",e.message.validationError.pan.required," ")}}function jt(i,c){if(i&1&&m(0),i&2){let e=l(2);y(" ",e.message.validationError.pan.valid," ")}}function zt(i,c){if(i&1&&(a(0,"div",23),d(1,Rt,1,1),d(2,jt,1,1),r()),i&2){let e=l();s(),p(e.form.pan!=null&&e.form.pan.touched&&(e.form.pan!=null&&e.form.pan.touched||e.form.pan!=null&&e.form.pan.dirty||e.submitted)&&(!(e.form.pan==null||e.form.pan.errors==null)&&e.form.pan.errors.required)?1:-1),s(),p(e.form.pan!=null&&e.form.pan.touched&&(e.form.pan!=null&&e.form.pan.touched||e.form.pan!=null&&e.form.pan.dirty||e.submitted)&&(!(e.form.pan==null||e.form.pan.errors==null)&&e.form.pan.errors.pan)?2:-1)}}function Gt(i,c){i&1&&(a(0,"button",22),v(1,"img",37),r())}function Ht(i,c){i&1&&m(0," Please enter password ")}function $t(i,c){i&1&&m(0," Password Minimum 8 characters ")}function Jt(i,c){i&1&&m(0," Password Maximum 25 characters ")}
1function Wt(i,c){if(i&1&&(a(0,"div",48),d(1,Ht,1,0),d(2,$t,1,0),d(3,Jt,1,0),r()),i&2){let e=l(2);s(),p(e.form.password!=null&&e.form.password.touched&&(e.form.password!=null&&e.form.password.touched||e.form.password!=null&&e.form.password.dirty||e.submitted)&&(!(e.form.password==null||e.form.password.errors==null)&&e.form.password.errors.required)?1:-1),s(),p(e.form.password!=null&&e.form.password.touched&&(e.form.password!=null&&e.form.password.touched||e.form.password!=null&&e.form.password.dirty||e.submitted)&&(!(e.form.password==null||e.form.password.errors==null)&&e.form.password.errors.minlength)?2:-1),s(),p(e.form.password!=null&&e.form.password.touched&&(e.form.password!=null&&e.form.password.touched||e.form.password!=null&&e.form.password.dirty||e.submitted)&&(!(e.form.password==null||e.form.password.errors==null)&&e.form.password.errors.maxlength)?3:-1)}}function Qt(i,c){if(i&1){let e=w();a(0,"div",17)(1,"div",19),v(2,"input",44),a(3,"label",45),m(4,"Password"),r(),a(5,"button",46),g("click",function(){_(e);let t=l();return C(t.changePasswordType())}),v(6,"img",47),r(),d(7,Gt,2,0,"button",22),r(),d(8,Wt,4,3,"div",48),r()}if(i&2){let e=l();s(2),u("type",e.passwordType)("placeholder",e.isDesktopView?"Password":"")("ngClass",b(10,de,(e.form.password==null?null:e.form.password.touched)&&((e.form.password==null?null:e.form.password.touched)||(e.form.password==null?null:e.form.password.dirty)||e.submitted)&&(e.form.password==null?null:e.form.password.errors))),k("aria-invalid",e.form.password!=null&&e.form.password.touched&&(e.form.password!=null&&e.form.password.errors)?!0:null),s(),u("ngClass",b(12,pe,(e.form.password==null?null:e.form.password.touched)&&((e.form.password==null?null:e.form.password.touched)||(e.form.password==null?null:e.form.password.dirty)||e.submitted)&&(e.form.password==null?null:e.form.password.errors))),s(2),k("aria-label",e.passwordType==="password"?"Show password":"Hide password"),s(),u("src",e.eyeIconType,D)("ngClass",b(14,Ot,(e.form.password==null?null:e.form.password.touched)&&((e.form.password==null?null:e.form.password.touched)||(e.form.password==null?null:e.form.password.dirty)||e.submitted)&&(e.form.password==null?null:e.form.password.errors))),s(),p(e.form.password!=null&&e.form.password.touched&&(e.form.password!=null&&e.form.password.touched||e.form.password!=null&&e.form.password.dirty||e.submitted)&&(e.form.password!=null&&e.form.password.errors)?7:-1),s(),p(e.form.password!=null&&e.form.password.touched&&(e.form.password!=null&&e.form.password.touched||e.form.password!=null&&e.form.password.dirty||e.submitted)&&(e.form.password!=null&&e.form.password.errors)?8:-1)}}function Yt(i,c){if(i&1){let e=w();a(0,"div",24)(1,"button",49),g("click",function(){_(e);let t=l();return C(t.onForgotPassword())}),m(2," Forgot Password? "),r()()}}function Zt(i,c){i&1&&(a(0,"span"),m(1," Login "),r())}function Kt(i,c){i&1&&(a(0,"span"),m(1," Generate OTP "),r())}var ct=(()=>{class i{constructor(e,n,t,o,f,x,E,ne,gt,_t,Ct,bt,vt,yt){this.authenticationService=e,this.toastr=n,this.sharedVariables=t,this.router=o,this.jwtlocalStorageservice=f,this.localstorageService=x,this.cookies=E,this.ngxService=ne,this.encryptService=gt,this.breakpointObserver=_t,this.familyInvestorPanService=Ct,this.transactionService=bt,this.webengageService=vt,this.sessionSyncManager=yt,this.forgotPassword=new S,this.forgotUserName=new S,this.enterOTPNavigation=new S,this.quickInvestNavigation=new S,this.loginForm=new $({pan:new O("",[P.required,M.panValidator()]),emailmobile:new O("",[P.required,M.mobileOrEmailValidator()]),anyuserid:new O("",[P.required,M.anyUserIdValidator()]),password:new O("",[P.required,P.minLength(8)])}),this.passwordType="password",this.eyeIconType="./assets/icons/eye-slash.svg",this.submitted=!1,this.message=N,this.isLoading=!1,this.isToggleOtp=!0,this.isDistributorValidated=!1,this.isPassword=!1,this.isMultiplePAN=!1,this.toggleBtn=!1,this.investorMobileNo="",this.investorEmail="",this.checkRememberMe=!1,this.validateForMultiplePan=!1,this.isLoginClicked=!1,this.investorName=new ge(""),this.schemeListData=[],this.ischeckisEmail=!1,this.form.password.disable(),this.form.anyuserid.disable()}ngOnInit(){this.subscribes(),this.descriptionConstant=oe({},N?.componentMsg?.loginCard)}subscribes(){this.breakpointObserver.observe(["(min-width: 1024px)"]).subscribe(e=>{this.isDesktopView=!!e.matches})}changePasswordType(){this.passwordType=this.passwordType==="password"?"text":"password",this.eyeIconType=this.passwordType==="password"?"./assets/icons/eye-slash.svg":"./assets/icons/eye.svg"}get form(){return this.loginForm.controls}goToQuickInvest(){this.quickInvestNavigation.emit(),this.webengageService.trackEvent("Quick Invest Initiated",{})}alphaNumericOnly(e){te(e)}emailonly(e){se(e)}max64Char(){return this.form.emailmobile.value?.length<64||this.form.emailmobile.value==null}saveUserName(e){e.target.checked?this.checkRememberMe=!0:this.checkRememberMe=!1}onLogin(){this.isPassword?this.form.password.enable():this.form.password.disable(),this.submitted=!0,this.isPassword?this.loginForm.valid&&this.preLogin().subscribe({complete:()=>{this.isMultiplePAN?this.preLogin().subscribe({complete:()=>{let e={pan:this.form.pan.value.toUpperCase(),emailId:this.form.anyuserid.value,mobileNo:""};this.authenticationService.validateLogin(e).subscribe({next:n=>{n?.resultInfo?.status=="S"?this.loginPassword():(this.ngxService.stop(),this.isLoading=!1,n?.resultInfo?.codeId===this.descriptionConstant?.error?.pan?.code?this.toastr.error("",this.descriptionConstant?.error?.pan?.msg):this.toastr.error("",n?.resultInfo?.message))},error:n=>{this.isLoading=!1,this.ngxService.stop(),this.toastr.error("","Invalid Response",{closeButton:!1})}})}}):this.loginPassword()}}):(this.sharedVariables.loggedInThrough="",isNaN(this.form.emailmobile.value)?this.form.emailmobile.value.includes("@")&&(this.sharedVariables.loggedInThrough="email"):this.sharedVariables.loggedInThrough="mobile",this.loginWithOtp(this.isToggleOtp))}checkUserId(){this.investorEmail="",this.investorMobileNo="",new RegExp(/^([A-Za-z]{5}[0-9]{4}[A-Za-z]{1})|(\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3}))$/).test(this.form.emailmobile.value)?this.investorEmail=this.form.emailmobile.value:this.investorMobileNo=this.form.emailmobile.value}checkisEmail(e){e.relatedTarget&&e.relatedTarget.id=="loginButton"&&(this.isLoginClicked=!0),this.form.anyuserid.value.includes("@")?(this.validateForMultiplePan=!0,this.ischeckisEmail=!0,this.preLogin().subscribe({complete:()=>{this.validateEmail()}})):(this.isMultiplePAN=!1,this.ischeckisEmail=!1,this.isLoginClicked&&this.onLogin())}validateEmail(){let e={email:this.form.anyuserid.value,mobile:""};this.ischeckisEmail=!1,this.authenticationService.validateEmailMobile(e).subscribe({next:n=>{n?.resultInfo?.status=="S"?(this.isLoading=!1,this.ngxService.stop(),this.isMultiplePAN=!1,this.isLoginClicked&&this.loginForm.valid&&this.onLogin()):n?.resultInfo?.status=="F"&&n?.resultInfo?.codeId==="100153"&&(this.isLoading=!1,this.ngxService.stop(),this.isMultiplePAN=!0,(this.form.pan.invalid||this.form.pan.value=="")&&this.form.anyuserid.setErrors({multiplePAN:!0}),this.form.pan.enable(),document.getElementById("pan").focus())},error:n=>{this.isLoading=!1,this.ngxService.stop(),this.toastr.error("","Invalid Response")}}),this.isLoading=!1,this.ngxService.stop()}ismultiplePanAssociated(){this.isMultiplePAN&&this.form.pan.valid&&this.form.pan.value!=""&&(this.form.anyuserid.setErrors({multiplePAN:!1}),this.form.anyuserid.setErrors(null))}loginPassword(){let t=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(this.form.anyuserid.value)?this.form.anyuserid.value.toLowerCase():this.form.anyuserid.value,o={pan:this.form.pan.value?this.form.pan.value:"",userName:t,password:this.form.password.value,otp:"",otpReferenceId:""};this.loginForm.valid&&(this.isLoading=!0,this.authenticationService.loginWithPassword(o).subscribe({next:f=>{f?.resultInfo?.status=="S"?f?.data?.tokenResponse?this.checkNewInvestor(f.data.token
1Response.userId,f):(this.ngxService.stop(),this.toastr.error("","Empty response from Server")):(this.ngxService.stop(),this.isLoading=!1,f.resultInfo.code==="INVESTOR_NOT_REGISTER"?this.toastr.error("",f.resultInfo.message):this.toastr.error("",f.resultInfo.message))},error:f=>{this.ngxService.stop(),this.isLoading=!1,this.toastr.error("","Invalid Response")}}),this.isLoading=!1)}toggoleButton(e){this.loginForm.reset();let n=e.target.checked;this.toggleBtn=n,this.submitted=!0,this.isPassword=n,n?(this.isToggleOtp=!e.target.checked,this.form.pan.enable(),this.form.emailmobile.disable(),this.form.anyuserid.enable(),this.form.password.enable(),this.cookies.check("Username")&&(this.checkRememberMe=!0),this.cookies.check("Username")&&this.form.anyuserid.setValue(this.cookies.get("Username")),this.cookies.check("password")&&this.form.password.setValue(this.cookies.get("password")),this.cookies.check("pan")&&this.form.pan.setValue(this.cookies.get("pan")),this.cookies.check("pan")&&this.form.pan.enable(),this.cookies.check("multiplePan")&&(this.cookies.get("multiplePan")=="true"?this.isMultiplePAN=!0:this.isMultiplePAN=!1)):(this.form.pan.enable(),this.form.emailmobile.enable(),this.form.anyuserid.disable(),this.form.password.disable(),this.isMultiplePAN=!1)}loginWithOtp(e){this.submitted=!0,this.loginForm.valid&&this.preLogin().subscribe({complete:()=>{let n={pan:this.form.pan.value?this.form.pan.value.toUpperCase():"",emailId:this.sharedVariables.loggedInThrough==="email"?this.form.emailmobile.value:"",mobileNo:this.sharedVariables.loggedInThrough==="mobile"?this.form.emailmobile.value:""};this.authenticationService.validateLogin(n).subscribe({next:t=>{t?.resultInfo?.status=="S"?(this.isLoading=!1,this.checkUserId(),this.checkNewInvestor(this.form.pan.value,null),this.investorName.subscribe(o=>{o&&this.callinvestorGenOtp(e,o)})):(this.ngxService.stop(),this.isLoading=!1,this.toastr.error("",t?.resultInfo?.message))},error:t=>{this.ngxService.stop(),this.isLoading=!1,this.toastr.error("","Invalid Response")}})}})}onForgotPassword(){this.submitted=!0,this.forgotPassword.emit()}preLogin(){return new q(e=>{this.ischeckisEmail||this.ngxService.start();let n=this.encryptService.decryptData(A.collect,!0);(this.loginForm.valid||this.validateForMultiplePan)&&this.authenticationService.getPreLoginToken(n).subscribe({next:t=>{if(this.isLoading=!1,t?.resultInfo?.status=="S"){let o=t?.data?.tokenResponse;this.jwtlocalStorageservice.setPreloginSession(o),this.sessionSyncManager.setPreloginSessionSync(o).subscribe({complete:()=>e.complete(),error:()=>e.complete()})}else this.ngxService.stop(),this.toastr.error("",t?.resultInfo?.message);e.complete()},error:t=>{this.ngxService.stop(),this.toastr.error("","Invalid Response")}})})}onForgotUserName(){this.forgotUserName.emit()}callinvestorGenOtp(e,n){let t={source:this.descriptionConstant?.payload?.source,activityType:this.descriptionConstant?.payload?.activityType?.case1,countryCode:this.descriptionConstant?.payload?.countryCode,investorPan:this.form.pan.value.toUpperCase(),investorName:n,mobileNumber:this.sharedVariables.loggedInThrough==="mobile"?this.investorMobileNo:"",emailId:this.sharedVariables.loggedInThrough==="email"?this.investorEmail:"",sameOtp:!0,mobileReferenceNumber:null,emailReferenceNumber:null};this.authenticationService.investorGenOtp(t).subscribe({next:o=>{o?.resultInfo?.status=="S"?(this.isLoading=!1,this.loginInfo=o?.data,this.loginInfo.pan=this.form.pan.value,this.sharedVariables.investorDetails=this.loginInfo,this.sharedVariables.investorDetails$.next(this.loginInfo),this.enterOTPNavigation.emit()):(this.isLoading=!1,this.toastr.error("",o?.resultInfo?.message))},error:o=>{this.isLoading=!1,this.toastr.error("",o?.message)}})}goToRegistration(){this.router.navigate(["/registration"])}checkNewInvestor(e,n){let t={pan:e.toUpperCase()};this.authenticationService.validateInvestor(t).subscribe({next:o=>{o?.resultInfo?.status=="S"?(this.ngxService.stop(),this.familyInvestorPanService?.fetchFamilyTrackerMode?.next(!1),n&&(this.isLoading=!1,this.checkRememberMe?(this.cookies.set("Username",this.form.anyuserid.value,{secure:!0}),this.cookies.set("password",this.form.password.value,{secure:!0}),this.cookies.set("pan",this.form.pan.value,{secure:!0}),this.isMultiplePAN?this.cookies.set("multiplePan","true",{secure:!0}):this.cookies.delete("multiplePan")):(this.cookies.check("Username")&&this.cookies.delete("Username"),this.cookies.check("password")&&this.cookies.delete("password"),this.cookies.check("pan")&&this.cookies.delete("pan"),this.cookies.check("multiplePan")&&this.cookies.delete("multiplePan")),this.sharedVariables.investorDetails=n.data,this.sharedVariables.investorDetails$.next(n.data),this.authenticationService.startRefreshTokenTimer(),this.localstorageService.saveData("investorLogInDetails",JSON.stringify(n.data)),this.sessionSyncManager.setSession(o?.data,"masterPan"),this.sessionSyncManager.setSlidingSession(o?.data,"session_auth_container",A?.cacheDurations?.tokenExpiry?.longLived),sessionStorage.removeItem("isRetryJourney")),o?.data?.userData&&this.sessionSyncManager.setSession(o?.data?.userData,"UserData"),o?.data?.isExistingUser=="Y"&&(this.sessionSyncManager.setSession(JSON.stringify(!0),"isExistingUser"),this.localstorageService.saveData("isMFexistingUser",JSON.stringify(!0)),this.investorName.next(o?.data?.userData[0].investorName)),o?.data?.isExistingUser=="N"&&(this.sessionSyncManager.setSession(JSON.stringify(!1),"isExistingUser"),this.localstorageService.saveData("isMFexistingUser",JSON.stringify(!1)),this.investorName.next(o?.data?.investorName)),this.hashValue?this.chekDropLumpsumSipTransaction():this.router.navigateByUrl("/home")):(this.ngxService.stop(),this.toastr.error("",o?.resultInfo?.message))},error:o=>{this.ngxService.stop(),this.toastr.error(this.descriptionConstant?.error?.failed,this.descriptionConstant?.error?.serverError,{closeButton:!0})}})}chekDropLumpsumSipTransaction(){if(this.hashValue){let e={hash:this.hashValue};this.ngxService.start(),this.transactionService.getHashValueForLumpsumSip(e).subscribe({next:n=>
1{if(n&&n.resultInfo.status===ue.S){let o={refNo:n?.data};this.transactionService.getIncompleteLumpsumSipDataByRefNo(o).subscribe({next:f=>{if(f&&f.resultInfo.status===ue.S){let x=f?.data;x?.status==this.descriptionConstant?.error?.completed?.status?(this.toastr.error(this.descriptionConstant?.error?.completed?.msg),this.router.navigateByUrl("/home")):this.dropTransaction(x)}},error:f=>{this.ngxService.stop(),this.toastr.error("",this.descriptionConstant?.error?.msg)}})}this.ngxService.stop()},error:n=>{this.ngxService.stop(),this.toastr.error("",this.descriptionConstant?.error?.msg)}})}}dropTransaction(e){this.sharedVariables.setMutliSchemeList(null),this.sharedVariables.folioDetails$.next(null),this.sharedVariables.fromDashBoardToPaymentMode$.next(null),this.sharedVariables.fromDashboadToAddNewinvestment$.next(null),this.sharedVariables.incompleteLumpsumSip$.next({incompleteData:e});let n={type:"lumpsumSip",title:"Lumpsum/SIP Transaction"};this.localstorageService.saveData("newTransaction",JSON.stringify(n)),this.sharedVariables.incompleteLumpsumSipReferenceNumber=e?.referenceNo,this.folioDetailsStructure(e),this.schemeListData=[],e?.transactionDetails.forEach(t=>{t?.transactionType=="Lumpsum"||t?.transactionType=="LUMPSUM"?this.lumpsumSchemeStructure(t):(t?.transactionType=="SIP"||t?.transactionType=="sip"||t?.transactionType=="Sip")&&this.sipSchemeStructure(t)}),setTimeout(()=>{this.sharedVariables.setMutliSchemeList(this.schemeListData),e?.screenId=="2"?(this.sharedVariables.fromDashboadToAddNewinvestment$.next("dashboard"),this.router.navigate(["transactions/add-new-investment"],{queryParams:{from:"dashboard"}})):e?.screenId=="3"?(this.sharedVariables.distributorARNcode=e?.arnCode,this.sharedVariables.euinCode=e?.euin,e?.euin&&(this.sharedVariables.checkForEuin=!0),this.sharedVariables.selectedInvestmentMode=e?.investmentMode,this.sharedVariables.fromDashBoardToPaymentMode$.next("dashboard"),this.router.navigate(["transactions/payment-mode"],{queryParams:{from:"dashboard"}})):e?.screenId=="4"?this.router.navigate(["transactions/review"],{queryParams:{from:"dashboard"}}):e?.screenId=="1"&&(this.sharedVariables.fromDashboadToAddNewinvestment$.next("dashboard"),this.router.navigate(["transactions/add-scheme"],{queryParams:{from:"dashboard"}}))},1e3)}lumpsumSchemeStructure(e){let n={id:e?.id?e?.id:null,schemeCode:e?.schemeCode,scheme:e?.schemeName,optionName:e?.optionName,optionCode:e?.optionCode,planName:e?.planName,planCode:e?.planCode},t={sipCheckBoxTopUpFrequency:this.descriptionConstant?.frequency?.halfYearly?.code,topUpContinueTopUpUntillAfterCheckBox:"TILL_SIP_AMOUNT_REACHES",sipCheckboxAmountReachesDate:null,updatedSipCheckBoxDate:null,sipCheckboxAmountReachesMinimumAmount:0},o={transactionType:e?.transactionType,scheme:n,option:"",noOfInstallments:null,topUpSip:!1,topUpAmount:0,tillAmountReach:0,sipFrequency:this.descriptionConstant?.frequency?.monthly?.code,hideDropDownAndOptionSectionOrExistingScheme:!1,investAmount:e?.amount,hideExistingSchemeInSip:!0,updatedAmount:0,multiplyAmount:1,sipCheckboxCheckedData:t},f=oe({},o);this.schemeListData.push(f)}sipSchemeStructure(e){let n={id:e?.id?e?.id:null,schemeCode:e?.schemeCode,scheme:e?.schemeName,optionName:e?.optionName,optionCode:e?.optionCode,planName:e?.planName,planCode:e?.planCode},t={sipCheckBoxTopUpFrequency:this.descriptionConstant?.frequency?.halfYearly?.code,topUpContinueTopUpUntillAfterCheckBox:"TILL_SIP_AMOUNT_REACHES",sipCheckboxAmountReachesDate:null,updatedSipCheckBoxDate:null,sipCheckboxAmountReachesMinimumAmount:0},o=[{frequency:"Monthly",frequencyCode:this.descriptionConstant?.frequency?.monthly?.code,cycles:this.descriptionConstant?.frequency?.cycle,minAmount:this.descriptionConstant?.frequency?.monthly?.minAmount,multiplesOf:this.descriptionConstant?.frequency?.monthly?.multiplesOf,aggregateAmount:"",minInstallments:this.descriptionConstant?.frequency?.monthly?.minInstallments},{frequency:"Quarterly",frequencyCode:this.descriptionConstant?.frequency?.quarterly?.code,cycles:this.descriptionConstant?.frequency?.cycle,minAmount:this.descriptionConstant?.frequency?.quarterly?.minAmount,multiplesOf:this.descriptionConstant?.frequency?.quarterly?.multiplesOf,aggregateAmount:"",minInstallments:this.descriptionConstant?.frequency?.quarterly?.minInstallments},{frequency:"Weekly",frequencyCode:this.descriptionConstant?.frequency?.weekly?.code,cycles:this.descriptionConstant?.frequency?.cycle,minAmount:this.descriptionConstant?.frequency?.weekly?.minAmount,multiplesOf:this.descriptionConstant?.frequency?.weekly?.multiplesOf,aggregateAmount:"",minInstallments:this.descriptionConstant?.frequency?.weekly?.minInstallments},{frequency:"Daily",frequencyCode:this.descriptionConstant?.frequency?.daily,cycles:this.descriptionConstant?.frequency?.cycle,minAmount:this.descriptionConstant?.frequency?.daily?.minAmount,multiplesOf:this.descriptionConstant?.frequency?.daily?.multiplesOf,aggregateAmount:"",minInstallments:this.descriptionConstant?.frequency?.daily?.minInstallments}],f={frequency:"Monthly",frequencyCode:e?.frequency,cycles:this.descriptionConstant?.frequency?.cycle,minAmount:e?.minAmount,multiplesOf:e?.minMultipleAmount,aggregateAmount:"",minInstallments:this.descriptionConstant?.frequency?.monthly?.minInstallments},x={sipEndDate:e?.endDate,selectedTenure:e?.sipTenure,selectedTenureMinimumNorInst:"12",selectedSingleSipFrequency:f,sipStartDate:e?.startDate,noOfInstallment:913}
1,E={transactionType:e?.transactionType,schemeType:e?.schemeType?e?.schemeType:null,scheme:n,category:e?.category?e?.category:null,option:e?.option?e?.option:"",noOfInstallments:null,topUpSip:e?.isOptedTopUp?e?.isOptedTopUp:!1,topUpAmount:e?.topUpAmount?e?.topUpAmount:0,tillAmountReach:0,continueTopUpUntil:"TILL_SIP_AMOUNT_REACHES",topUpFrequency:this.descriptionConstant?.frequency?.halfYearly?.code,tillNoOfInsailmentsUpdated:null,hideExistingSchemeInSip:!0,hideDropDownAndOptionSectionOrExistingScheme:!1,investAmount:e?.amount,updatedAmount:0,multiplyAmount:1,sipUpdatedData:x,sipCheckboxCheckedData:t,sipFrequencyBasedOnScheme:o},ne=oe({},E);this.schemeListData.push(ne)}folioDetailsStructure(e){let n={folioNo:e?.folioNo,investorName:e?.investorName,pan:e?.investorPan,holding:e?.holding,email:e?.investorEmail,mobile:e?.investorMobile,status:"Individual",kyc:"Y",fatcaCompliance:"Y",dematFlag:"N",minorBankWhitelistflag:"Y",otmRegisteredFlag:"YES",taxStatusCode:"01"},t={id:e?.transactionDetails[0].id?e?.transactionDetails[0].id:null,
1schemeCode:e?.transactionDetails[0]?.schemeCode,scheme:e?.transactionDetails[0]?.schemeName,optionName:e?.transactionDetails[0]?.optionName,optionCode:e?.transactionDetails[0]?.optionCode,planName:e?.transactionDetails[0]?.planName,planCode:e?.transactionDetails[0]?.planCode},o={sipCheckBoxTopUpFrequency:this.descriptionConstant?.frequency?.halfYearly?.code,topUpContinueTopUpUntillAfterCheckBox:"TILL_SIP_AMOUNT_REACHES",sipCheckboxAmountReachesDate:null,updatedSipCheckBoxDate:null,sipCheckboxAmountReachesMinimumAmount:0},f={transactionType:e?.transactionDetails[0].transactionType,scheme:t,option:"",noOfInstallments:null,topUpSip:!1,topUpAmount:0,tillAmountReach:0,sipFrequency:"",hideDropDownAndOptionSectionOrExistingScheme:!1,investAmount:e?.transactionDetails[0]?.amount,hideExistingSchemeInSip:!0,updatedAmount:0,multiplyAmount:1,sipCheckboxCheckedData:o},x={folio:n,scheme:t};this.sharedVariables.folioDetails$.next(x)}folioDetailsSipStructure(e){let n={folioNo:e?.folioNo,investorName:e?.investorName,pan:e?.investorPan,holding:e?.holding,email:e?.investorEmail,mobile:e?.investorMobile,status:"Individual",kyc:"Y",fatcaCompliance:"Y",dematFlag:"N",minorBankWhitelistflag:"Y",otmRegisteredFlag:"YES",taxStatusCode:"01"},t={id:e?.transactionDetails[0].id?e?.transactionDetails[0].id:null,
1schemeCode:e?.transactionDetails[0]?.schemeCode,scheme:e?.transactionDetails[0]?.schemeName,optionName:e?.transactionDetails[0]?.optionName,optionCode:e?.transactionDetails[0]?.optionCode,planName:e?.transactionDetails[0]?.planName,planCode:e?.transactionDetails[0]?.planCode},o={sipCheckBoxTopUpFrequency:this.descriptionConstant?.frequency?.halfYearly?.code,topUpContinueTopUpUntillAfterCheckBox:"TILL_SIP_AMOUNT_REACHES",sipCheckboxAmountReachesDate:null,updatedSipCheckBoxDate:null,sipCheckboxAmountReachesMinimumAmount:0},f={transactionType:e?.transactionDetails[0]?.transactionType,scheme:t,option:"",noOfInstallments:null,topUpSip:!1,topUpAmount:0,tillAmountReach:0,sipFrequency:"",hideDropDownAndOptionSectionOrExistingScheme:!1,investAmount:e?.transactionDetails[0]?.amount,hideExistingSchemeInSip:!0,updatedAmount:0,multiplyAmount:1,sipCheckboxCheckedData:o},x={folio:n,scheme:t};this.sharedVariables.folioDetails$.next(x)}migratedUserAlert(e){mt.default.fire({title:e,showCancelButton:!1,confirmButtonText:"Continue",scrollbarPadding:!1,customClass:{title:"swal-title",actions:"swal-actions",popup:"swal-popup",confirmButton:"swal-confirm"},reverseButtons:!0}).then(n=>{n.isConfirmed&&this.forgotPassword.emit()})}static{this.\u0275fac=function(n){return new(n||i)(h(U),h(Z),h(T),h(we),h(K),h(Ne),h(tt),h(re),h(ie),h(ee),h(Me),h(Te),h(Oe),h(Le))}}static{this.\u0275cmp=I({type:i,selectors:[["nextgenmf-investor-login-card"]],inputs:{hashValue:"hashValue"},outputs:{forgotPassword:"forgotPassword",forgotUserName:"forgotUserName",enterOTPNavigation:"enterOTPNavigation",quickInvestNavigation:"quickInvestNavigation"},standalone:!1,decls:50,vars:38,consts:[[1,"login-card"],[1,"sr-only"],[1,"login-card-body"],["fxLayout","row","fxLayoutAlign","left center",1,"bottom-space","d-flex","align-center"],[1,"login-card-body-title"],["type","button",1,"quick-invest-button","clear-btn",3,"click"],["src","./assets/icons/invest-vector.svg","alt","","aria-hidden","true"],[1,"primary-color","quick-invest-link"],[1,"login-types"],["fxLayout","row","fxLayoutAlign","left center",1,"title-control","align-items-center"],["aria-hidden","true",1,"form-check-label",3,"ngClass"],[1,"switch"],["type","checkbox","role","switch",3,"change","checked"],["aria-hidden","true",1,"slider","round"],["aria-hidden","true",1,"h3","m-0",3,"ngClass"],[3,"ngSubmit","formGroup"],[1,"form-group","feild-bottom-sp
1acing"],[1,"form-group","feild-distance"],["fxLayout","row","fxFlexFill","","fxLayoutAlign","left center",1,"feild-bottom-spacing","forgotusername"],[1,"form-control"],["type","text","id","pan","formControlName","pan","maxlength","10","aria-describedby","pan-error",1,"form-input","font-dm-sans","uppercase",3,"focusout","keypress","placeholder","ngClass"],["for","pan",1,"form-label",3,"ngClass"],["type","button","aria-label","Validation error",1,"form-input-icon","btn-icon"],["id","pan-error","role","alert",1,"input-error"],["fxLayout","row","fxFlexFill","","fxLayoutAlign","end center",1,"feild-bottom-spacing"],["fxLayout","row","fxFlexFill","",1,"mb-2rem","mb-2rem-xs"],["type","submit","id","loginButton",1,"fill-btn","text-white",3,"disabled","ngClass"],["fxLayout","row","fxFlexFill","","fxLayoutAlign","center center",1,"mb-2rem"],[1,"text"],["type","submit",1,"link-btn","boldtxt","primary-color",3,"click"],[1,"login-card-footer"],[1,"need-help-text"],["src","./assets/icons/call.svg","alt","","aria-hidden","true",1,"call-icon","me-2"],[1,"call-number","primary-color",3,"href"],["type","text","id","emailmobile","formControlName","emailmobile","aria-describedby","emailmobile-error",1,"form-input","font-dm-sans","right-seperator",3,"keypress","placeholder","ngClass"],["for","emailmobile",1,"form-label",3,"ngClass"],["id","emailmobile-error","role","alert",1,"input-error"],["src","./assets/icons/error.svg","alt","","aria-hidden","true"],["type","text","id","anyuserid","formControlName","anyuserid","aria-describedby","anyuserid-error",1,"form-input","font-dm-sans","right-seperator",3,"focusout","placeholder","ngClass"],["for","anyuserid",1,"form-label",3,"ngClass"],["id","anyuserid-error","role","alert",1,"input-error"],["type","checkbox","name","remember","id","remember",1,"check",3,"change","checked"],["for","remember"],["type","button",1,"link-btn","quick-invest-button","primary-color",3,"click"],["id","password","name","password","formControlName","password","maxlength","25","aria-describedby","password-error",1,"form-input","font-dm-sans",3,"type","placeholder","ngClass"],["for","password",1,"form-label",3,"ngClass"],["type","button",1,"form-input-icon","btn-icon",3,"click"],["alt","","aria-hidden","true",3,"src","ngClass"],["id","password-error","role","alert",1,"input-error"],["type","button",1,"link-btn","primary-color",3,"click"]],template:function(n,t){n&1&&(a(0,"div",0)(1,"h1",1),m(2,"Investor Login"),r(),a(3,"div",2)(4,"div",3)(5,"h2",4),m(6),V(7,"translate"),r(),a(8,"button",5),g("click",function(){return t.goToQuickInvest()}),v(9,"img",6),a(10,"span",7),m(11,"\xA0\xA0Quick Invest"),r()()(),a(12,"div",8)(13,"div",9)(14,"label",10),m(15,"OTP"),r(),a(16,"label",11)(17,"input",12),g("change",function(f){return t.toggoleButton(f)}),r(),v(18,"span",13),r(),a(19,"h3",14),m(20,"Password"),r()()(),a(21,"form",15),g("ngSubmit",function(){return t.onLogin()}),d(22,Lt,7,10,"div",16),d(23,At,7,10,"div",17),d(24,Ut,7,1,"div",18),a(25,"div",16)(26,"div",19)(27,"input",20),g("focusout",function(){return t.ismultiplePanAssociated()})("keypress",function(f){return t.alphaNumericOnly(f)}),r(),a(28,"label",21),m(29,"PAN"),r(),d(30,qt,2,0,"button",22),r(),d(31,zt,3,2,"div",23),r(),d(32,Qt,9,16,"div",17),d(33,Yt,3,0,"div",24),a(34,"div",25)(35,"button",26),d(36,Zt,2,0,"span"),d(37,Kt,2,0,"span"),r()(),a(38,"div",27)(39,"span",28),m(40," Don't have an account? "),r(),a(41,"button",29),g("click",function(){return t.goToRegistration()}),m(42,"Register now"),r()()(),a(43,"div",30)(44,"span",31),m(45),V(46,"translate"),r(),v(47,"img",32),a(48,"a",33),m(49," 022 6282 7777"),r()()()()),n&2&&(s(6),be(B(7,24,"login.heading")),s(8),u("ngClass",b(28,nt,t.toggleBtn)),s(3),u("checked",t.toggleBtn),k("aria-checked",t.toggleBtn)("aria-label",t.toggleBtn?"Login method: Password. Switch to OTP":"Login method: OTP. Switch to Password"),s(2),u("ngClass",b(30,nt,!t.toggleBtn)),s(2),u("formGroup",t.loginForm),s(),p(t.isPassword?-1:22),s(),p(t.isPassword?23:-1),s(),p(t.isPassword?24:-1),s(3),u("placeholder",t.isDesktopView?"PAN":"")("ngClass",b(32,de,(t.form.pan==null?null:t.form.pan.touched)&&((t.form.pan==null?null:t.form.pan.touched)||(t.form.pan==null?null:t.form.pan.dirty)||t.submitted)&&(t.form.pan==null?null:t.form.pan.errors))),k("aria-invalid",t.form.pan!=null&&t.form.pan.touched&&(t.form.pan!=null&&t.form.pan.errors)?!0:null),s(),u("ngClass",b(34,pe,(t.form.pan==null?null:t.form.pan.touched)&&((t.form.pan==null?null:t.form.pan.touched)||(t.form.pan==null?null:t.form.pan.dirty)||t.submitted)&&(t.form.pan==null?null:t.form.pan.errors))),s(2),p(t.form.pan!=null&&t.form.pan.touched&&(t.form.pan!=null&&t.form.pan.touched||t.form.pan!=null&&t.form.pan.dirty||t.submitted)&&(t.form.pan!=null&&t.form.pan.errors)?30:-1),s(),p(t.form.pan!=null&&t.form.pan.touched&&(t.form.pan!=null&&t.form.pan.touched||t.form.pan!=null&&t.form.pan.dirty||t.submitted)&&(t.form.pan!=null&&t.form.pan.errors)?31:-1),s(),p(t.isPassword?32:-1),s(),p(t.isPassword?33:-1),s(2),u("disabled",t.loginForm.invali
1d)("ngClass",b(36,Pt,t.isLoading)),s(),p(t.isPassword?36:-1),s(),p(t.isPassword?-1:37),s(8),y("",B(46,26,"login.needHelp")," "),s(3),u("href","tel: 0226282777",D))},dependencies:[R,F,Ee,L,X,J,z,G,H,Y,Q,W,j],styles:[".login-card-body-title[_ngcontent-%COMP%]{font-style:normal;font-weight:600;font-size:1.953rem;color:var(--primary-shade-color);margin:0}.login-card-body-description[_ngcontent-%COMP%]{font-family:Roboto;font-style:normal;font-weight:400;font-size:16px;color:var(--antarctic-blue)}.login-card-body[_ngcontent-%COMP%]   .link-btn[_ngcontent-%COMP%]{text-decoration:none}.login-card-body[_ngcontent-%COMP%]   .login-types[_ngcontent-%COMP%]{margin-bottom:1.5rem;width:100%;max-width:420px}.login-card-body[_ngcontent-%COMP%]   .title-control[_ngcontent-%COMP%]{margin-bottom:30px}.login-card-body[_ngcontent-%COMP%]   .title-control[_ngcontent-%COMP%]   .h6[_ngcontent-%COMP%]{font-family:Roboto;font-style:normal;font-weight:600;font-size:16px;line-height:19px}.login-card-body[_ngcontent-%COMP%]   .title-control[_ngcontent-%COMP%]   .switch[_ngcontent-%COMP%]{margin:0 15px}.login-card-body[_ngcontent-%COMP%]   .title-control[_ngcontent-%COMP%]   .form-check-label[_ngcontent-%COMP%]{font-size:16px;line-height:19px;font-weight:600;text-transform:uppercase;color:var(--antarctic-blue);height:32px;display:flex;align-items:center;font-family:Roboto}.login-card-body[_ngcontent-%COMP%]   .title-control[_ngcontent-%COMP%]   .is-off[_ngcontent-%COMP%]{opacity:.6}.login-card-body[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-size:16px;line-height:24px;text-align:center;color:var(--primary-rgba-color);font-family:DM Sans}.login-card-body[_ngcontent-%COMP%]   .eye-icon[_ngcontent-%COMP%]{margin-right:25px}.login-card-body[_ngcontent-%COMP%]   .need-help-text[_ngcontent-%COMP%]{font-family:DM Sans;font-style:normal;font-weight:400;font-size:1.125rem;line-height:23px;color:#4d4d4d}.login-card-body[_ngcontent-%COMP%]   i.fa-solid.fa-phone[_ngcontent-%COMP%]{color:#0040a0;margin:10px}.login-card-footer[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{color:var(--dark-gray);font-size:1.125rem;bottom:0}.login-card-footer[_ngcontent-%COMP%]   .call-icon[_ngcontent-%COMP%]{margin-left:.594rem}.login-card-footer[_ngcontent-%COMP%]   .call-number[_ngcontent-%COMP%]{font-size:1rem;text-decoration:none}.login-card[_ngcontent-%COMP%]   .quick-invest-button[_ngcontent-%COMP%]{margin-left:auto;cursor:pointer}.login-card[_ngcontent-%COMP%]   .quick-invest-link[_ngcontent-%COMP%]{vertical-align:top;font-weight:700}.login-card-footer[_ngcontent-%COMP%]{position:absolute;left:12%;bottom:0;height:40px;width:80%;display:flex;align-items:center;justify-content:center;background-color:var(--white);padding-top:1rem;padding-bottom:2rem}.input-error[_ngcontent-%COMP%]{position:relative!important}.bottom-space[_ngcontent-%COMP%]{margin-bottom:40px}
1.feild-bottom-spacing[_ngcontent-%COMP%]{margin-bottom:32px}.feild-distance[_ngcontent-%COMP%]{margin-bottom:.5rem}.check[_ngcontent-%COMP%]{accent-color:var(--primary-color);width:15px;vertical-align:bottom}.check-text[_ngcontent-%COMP%]{vertical-align:super}.right-seperator[_ngcontent-%COMP%]{padding-right:4rem}@media(max-width:480px){.login-card-footer[_ngcontent-%COMP%]{left:10%}.form-input[_ngcontent-%COMP%]{background:transparent!important}.bottom-space[_ngcontent-%COMP%]{margin-bottom:10px}.mb-2rem-xs[_ngcontent-%COMP%]{margin-bottom:20px}}input[_ngcontent-%COMP%]:-webkit-autofill, input[_ngcontent-%COMP%]:-webkit-autofill:active{-webkit-box-shadow:0 0 0 40px white inset!important}.form-input[_ngcontent-%COMP%]:focus{border:2px solid #0040A0!important}button.quick-invest-button[class*=quick-invest][_ngcontent-%COMP%]{font-size:1rem!important;font-weight:600!important;line-height:1.5!important;padding:0 1rem!important;height:auto!important;white-space:nowrap!important;display:flex!important;align-items:center!important;gap:.5rem!important;background-color:#ff00001a!important}"]})}}return i})();var dt=i=>({"invalid-border":i}),pt=i=>({"invalid-label":i}),ei=i=>({"progress-btn":i});function ti(i,c){i&1&&(a(0,"button",12),v(1,"img",23),r())}function ii(i,c){if(i&1&&m(0),i&2){let e=l(2);y(" ",e.message.validationError.pan.required," ")}}function ni(i,c){if(i&1&&m(0),i&2){let e=l(2);y(" ",e.message.validationError.pan.valid," ")}}function oi(i,c){if(i&1&&(a(0,"div",13),d(1,ii,1,1),d(2,ni,1,1),r()),i&2){let e=l();s(),p((e.form.pan!=null&&e.form.pan.touched||e.form.pan!=null&&e.form.pan.dirty||e.submitted)&&(!(e.form.pan==null||e.form.pan.errors==null)&&e.form.pan.errors.required)?1:-1),s(),p((e.form.pan!=null&&e.form.pan.touched||e.form.pan!=null&&e.form.pan.dirty||e.submitted)&&(!(e.form.pan==null||e.form.pan.errors==null)&&e.form.pan.errors.pan)?2:-1)}}function ri(i,c){i&1&&(a(0,"button",12),v(1,"img",23),r())}function ai(i,c){if(i&1&&m(0),i&2){let e=l(2);y(" ",e.message.validationError.emailmobile.required," ")}}function si(i,c){if(i&1&&m(0),i&2){let e=l(2);y(" ",e.message.validationError.emailmobile.valid," ")}}function li(i,c){if(i&1&&(a(0,"div",16),d(1,ai,1,1),d(2,si,1,1),r()),i&2){let e=l();s(),p((e.form.emailmobile!=null&&e.form.emailmobile.touched||e.form.emailmobile!=null&&e.form.emailmobile.dirty||e.submitted)&&(!(e.form.emailmobile==null||e.form.emailmobile.errors==null)&&e.form.emailmobile.errors.required)?1:-1),s(),p(e.form.emailmobile!=null&&e.form.emailmobile.touched&&(e.form.emailmobile!=null&&e.form.emailmobile.touched||e.form.emailmobile!=null&&e.form.emailmobile.dirty||e.submitted)&&(!(e.form.emailmobile==null||e.form.emailmobile.errors==null)&&e.form.emailmobile.errors.emailmobile)?2:-1)}}var ut=(()=>{class i{constructor(e,n,t,o,f,x,E,ne){this.authenticationService=e,this.toastr=n,this.sharedVariables=t,this.jwtlocalStorageservice=o,this.ngxService=f,this.breakpointObserver=x,this.jwtService=E,this.encryptService=ne,this.forgotPassword=new S,this.enterOTPNavigation=new S,this.clickOnBackBtn=new S,this.forgotPasswordForm=new $({pan:new O("",[P.required,M.panValidator()]),emailmobile:new O("",[P.required,M.mobileOrEmailValidator()])}),this.passwordType="password",this.eyeIconType="./assets/icons/eye-slash.svg",this.submitted=!1,this.message=N,this.isLoading=!1,this.isToggleOtp=!1,this.isDistributorValidated=!1,this.isPassword=!0,this.isMultiplePAN=!1,this.toggleBtn=!1}ngOnInit(){this.subscribes()}get form(){return this.forgotPasswordForm.controls}alphaNumericOnly(e){te(e)}subscribes(){this.breakpointObserver.observe(["(min-width: 1024px)"]).subscribe(e=>{this.isDesktopView=!!e.matches})}emailonly(e){se(e)}max64Char(){return this.form.emailmobile.value.length<64}onSubmit(){this.submitted=!0,this.forgotPasswordForm.valid&&(this.sharedVariables.loggedInThrough="",isNaN(this.form.emailmobile.value)?this.form.emailmobile.value.includes("@")&&(this.sharedVariables.loggedInThrough="email"):this.sharedVariables.loggedInThrough="mobile",this.preLogin().subscribe({complete:()=>{let e={pan:this.form.pan.value.toUpperCase(),emailId:this.sharedVariables.loggedInThrough==="email"?this.form.emailmobile.value:"",mobileNo:this.sharedVariables.loggedInThrough==="mobile"?this.form.emailmobile.value:""};this.authenticationService.validateLogin(e).subscribe({next:n=>{n?.resultInfo?.status=="S"?(this.isLoading=!1,this.investorOtpMobile="",this.investorOtpEmail="",new RegExp(/^([A-Za-z]{5}[0-9]{4}[A-Za-z]{1})|(\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3}))$/).test(this.form.emailmobile.value)?this.investorOtpEmail=this.form.emailmobile.value:this.investorOtpMobile=this.form.emailmobile.value,this.callinvestorGenOtp()):n?.resultInfo?.codeId=="100126"?this.toastr.error('<font color="red">There is no Username associated with this PAN, <a color="red" href="https://inv.tatamfdev.com/registration" target="_blank">
1click here</a> if you wish to register.</red></font>',"",{enableHtml:!0,timeOut:1e5,closeButton:!1}):(this.isLoading=!1,this.toastr.error("",n?.resultInfo?.message))},error:n=>{this.isLoading=!1,this.toastr.error("","Invalid Response")}})}}))}preLogin(){return new q(e=>{this.ngxService.start();let n=this.encryptService.decryptData(A.collect,!0);this.forgotPasswordForm.valid&&this.authenticationService.getPreLoginToken(n).subscribe({next:t=>{if(this.isLoading=!1,this.ngxService.stop(),t?.resultInfo?.status=="S"){let o=t?.data?.tokenResponse;this.jwtlocalStorageservice.setPreloginSession(o),this.jwtService.setPreloginSessionSync(o).subscribe({complete:()=>e.complete(),error:()=>e.complete()})}else this.toastr.error("",t?.resultInfo?.message)},error:t=>{this.ngxService.stop(),this.toastr.error("","Invalid Response",null)}})})}back(){this.clickOnBackBtn.emit(!0)}callinvestorGenOtp(){let e={source:"WEB",activityType:"OTP_FOR_INVESTOR_FORGOT_PASSWORD",countryCode:"91",investorPan:this.form.pan.value.toUpperCase(),mobileNumber:this.investorOtpMobile,emailId:this.investorOtpEmail,mobileReferenceNumber:null,emailReferenceNumber:null,sameOtp:!0}
1;this.authenticationService.investorGenOtp(e).subscribe({next:n=>{n?.resultInfo?.status=="S"?(this.isLoading=!1,this.loginInfo=n?.data,this.loginInfo.pan=this.form.pan.value,this.sharedVariables.investorDetails=this.loginInfo,this.enterOTPNavigation.emit()):(this.isLoading=!1,this.toastr.error("",n?.resultInfo?.message,{closeButton:!0}))},error:n=>{this.isLoading=!1,this.toastr.error("","Invalid Response")}})}static{this.\u0275fac=function(n){return new(n||i)(h(U),h(Z),h(T),h(K),h(re),h(ee),h(ae),h(ie))}}static{this.\u0275cmp=I({type:i,selectors:[["nextgenmf-investor-forgot-password-card"]],outputs:{forgotPassword:"forgotPassword",enterOTPNavigation:"enterOTPNavigation",clickOnBackBtn:"clickOnBackBtn"},standalone:!1,decls:35,vars:29,consts:[[1,"forgot-password-card"],[1,"sr-only"],["fxLayout","column",1,"forgot-password-card-body"],[1,"mb-1rem"],["type","button","aria-label","Go Back",1,"clear-btn",3,"click"],["src","./assets/icons/arrow-left.svg","alt","","aria-hidden","true",1,"me-2","back-arrow"],[1,"forgot-password-card-body-title","m-0"],[3,"ngSubmit","formGroup"],[1,"form-group","mb-2rem"],[1,"form-control"],["type","text","id","fp-pan","formControlName","pan","maxlength","10","aria-describedby","fp-pan-error",1,"form-input","font-dm-sans","uppercase",3,"keypress","placeholder","ngClass"],["for","fp-pan",1,"form-label",3,"ngClass"],["type","button","aria-label","Validation error",1,"form-input-icon","btn-icon"],["id","fp-pan-error","role","alert",1,"input-error"],["type","text","id","fp-emailmobile","formControlName","emailmobile","aria-describedby","fp-emailmobile-error",1,"form-input","font-dm-sans","right-seperator",3,"keypress","placeholder","ngClass"],["for","fp-emailmobile",1,"form-label",3,"ngClass"],["id","fp-emailmobile-error","role","alert",1,"input-error"],["fxLayout","row","fxFlexFill","",1,"mb-2rem"],["type","submit",1,"fill-btn","text-white",3,"disabled","ngClass"],[1,"forgot-password-card-footer"],[1,"need-help-text"],["src","./assets/icons/call.svg","alt","","aria-hidden","true",1,"call-icon","me-2"],[1,"call-number","primary-color",3,"href"],["src","./assets/icons/error.svg","alt","","aria-hidden","true"]],template:function(n,t){n&1&&(a(0,"div",0)(1,"h1",1),m(2,"Forgot Password"),r(),a(3,"div",2)(4,"div",3)(5,"button",4),g("click",function(){return t.back()}),v(6,"img",5),r(),a(7,"h2",6),m(8," Forgot Password "),r()(),a(9,"form",7),g("ngSubmit",function(){return t.onSubmit()}),a(10,"div",8)(11,"div",9)(12,"input",10),g("keypress",function(f){return t.alphaNumericOnly(f)}),r(),a(13,"label",11),m(14,"PAN"),r(),d(15,ti,2,0,"button",12),r(),d(16,oi,3,2,"div",13),r(),a(17,"div",8)(18,"div",9)(19,"input",14),g("keypress",function(f){return t.emailonly(f),t.max64Char()}),r(),a(20,"label",15),m(21,"Mobile/Email"),r(),d(22,ri,2,0,"button",12),r(),d(23,li,3,2,"div",16),r(),a(24,"div",17)(25,"button",18)(26,"span"),m(27," Generate OTP "),r()()()(),a(28,"div",19)(29,"span",20),m(30),V(31,"translate"),r(),v(32,"img",21),a(33,"a",22),m(34," 022 6282 7777"),r()()()()),n&2&&(s(9),u("formGroup",t.forgotPasswordForm),s(3),u("placeholder",t.isDesktopView?"PAN":"")("ngClass",b(19,dt,((t.form.pan==null?null:t.form.pan.touched)||(t.form.pan==null?null:t.form.pan.dirty)||t.submitted)&&(t.form.pan==null?null:t.form.pan.errors))),k("aria-invalid",(t.form.pan!=null&&t.form.pan.touched||t.form.pan!=null&&t.form.pan.dirty||t.submitted)&&(t.form.pan!=null&&t.form.pan.errors)?!0:null),s(),u("ngClass",b(21,pt,((t.form.pan==null?null:t.form.pan.touched)||(t.form.pan==null?null:t.form.pan.dirty)||t.submitted)&&(t.form.pan==null?null:t.form.pan.errors))),s(2),p((t.form.pan!=null&&t.form.pan.touched||t.form.pan!=null&&t.form.pan.dirty||t.submitted)&&(t.form.pan!=null&&t.form.pan.errors)?15:-1),s(),p((t.form.pan!=null&&t.form.pan.touched||t.form.pan!=null&&t.form.pan.dirty||t.submitted)&&(t.form.pan!=null&&t.form.pan.errors)?16:-1),s(3),u("placeholder",t.isDesktopView?"Mobile/Email":"")("ngClass",b(23,dt,((t.form.emailmobile==null?null:t.form.emailmobile.touched)||(t.form.emailmobile==null?null:t.form.emailmobile.dirty)||t.submitted)&&(t.form.emailmobile==null?null:t.form.emailmobile.errors))),k("aria-invalid",(t.form.emailmobile!=null&&t.form.emailmobile.touched||t.form.emailmobile!=null&&t.form.emailmobile.dirty||t.submitted)&&(t.form.emailmobile!=null&&t.form.emailmobile.errors)?!0:null),s(),u("ngClass",b(25,pt,((t.form.emailmobile==null?null:t.form.emailmobile.touched)||(t.form.emailmobile==null?null:t.form.emailmobile.dirty)||t.submitted)&&(t.form.emailmobile==null?null:t.form.emailmobile.errors))),s(2),p((t.form.emailmobile!=null&&t.form.emailmobile.touched||t.form.emailmobile!=null&&t.form.emailmobile.dirty||t.submitted)&&(t.form.emailmobile!=null&&t.form.emailmobile.errors)?22:-1),s(),p((t.form.emailmobile!=null&&t.form.emailmobile.touched||t.form.emailmobile!=null&&t.form.emailmobile.dirty||t.submitted)&&(t.form.emailmobile!=null&&t.form.emailmobile.errors)?23:-1),s(2),u("disabled",t.forgotPasswordForm.invali
1d)("ngClass",b(27,ei,t.isLoading)),s(5),y("",B(31,17,"login.needHelp")," "),s(3),u("href","tel: 0226282777",D))},dependencies:[R,F,L,X,J,z,G,H,Y,Q,W,j],styles:[".forgot-password-card-body[_ngcontent-%COMP%]{width:420px}.forgot-password-card-body[_ngcontent-%COMP%]   .back-arrow[_ngcontent-%COMP%]{cursor:pointer;height:3rem;width:3rem}.forgot-password-card-body-title[_ngcontent-%COMP%]{font-style:normal;font-weight:600;font-size:1.8rem;line-height:3.125rem;color:var(--primary-shade-color)}.forgot-password-card-body[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-size:16px;line-height:24px;text-align:center;color:var(--primary-rgba-color);font-family:DM Sans}.forgot-password-card-body[_ngcontent-%COMP%]   .eye-icon[_ngcontent-%COMP%]{margin-right:25px}.forgot-password-card-body[_ngcontent-%COMP%]   .need-help-text[_ngcontent-%COMP%]{font-family:DM Sans;font-style:normal;font-weight:400;font-size:1.125rem;line-height:23px;color:#4d4d4d}.forgot-password-card-footer[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{color:var(--dark-gray);font-size:1.125rem;bottom:0}.forgot-password-card-footer[_ngcontent-%COMP%]   .call-icon[_ngcontent-%COMP%]{margin-left:.594rem}.forgot-password-card-footer[_ngcontent-%COMP%]   .call-number[_ngcontent-%COMP%]{font-size:1rem;text-decoration:none}.forgot-password-card-footer[_ngcontent-%COMP%]{position:absolute;bottom:0;height:40px;width:80%;left:10%;display:flex;align-items:center;justify-content:center;background-color:var(--white);padding-top:1rem;padding-bottom:2rem}@media(min-width:320px)and (max-width:480px){.forgot-password-card-body[_ngcontent-%COMP%]{width:100%}}.input-error[_ngcontent-%COMP%]{position:relative!important}  .toast-message a{color:#0040a0}.right-seperator[_ngcontent-%COMP%]{padding-right:4rem}input[_ngcontent-%COMP%]:-webkit-autofill, input[_ngcontent-%COMP%]:-webkit-autofill:active{-webkit-box-shadow:0 0 0 40px white inset!important}.form-input[_ngcontent-%COMP%]:focus{border:2px solid #0040A0!important}"]})}}return i})();var ci=i=>({"invalid-border":i}),di=i=>({"invalid-label":i}),pi=i=>({"progress-btn":i});function ui(i,c){i&1&&(a(0,"button",12),v(1,"img",25),r())}function fi(i,c){if(i&1&&m(0),i&2){let e=l(2);y(" ",e.message.validationError.pan.required," ")}}function hi(i,c){if(i&1&&m(0),i&2){let e=l(2);y(" ",e.message.validationError.pan.valid," ")}}function gi(i,c){if(i&1&&(a(0,"div",13),d(1,fi,1,1),d(2,hi,1,1),r()),i&2){let e=l();s(),p((e.form.pan!=null&&e.form.pan.touched||e.form.pan!=null&&e.form.pan.dirty||e.submitted)&&(!(e.form.pan==null||e.form.pan.errors==null)&&e.form.pan.errors.required)?1:-1),s(),p((e.form.pan!=null&&e.form.pan.touched||e.form.pan!=null&&e.form.pan.dirty||e.submitted)&&(!(e.form.pan==null||e.form.pan.errors==null)&&e.form.pan.errors.pan)?2:-1)}}var ft=(()=>{class i{constructor(e,n,t,o,f,x,E){this.authenticationService=e,this.toastr=n,this.sharedVariables=t,this.jwtlocalStorageservice=o,this.encryptService=f,this.breakpointObserver=x,this.jwtService=E,this.enterOTPNavigation=new S,this.clickOnBackBtn=new S,this.forgotUsernameForm=new $({pan:new O("",[P.required,M.panValidator()])}),this.passwordType="password",this.eyeIconType="./assets/icons/eye-slash.svg",this.submitted=!1,this.minStartDate=le().year(1900),this.maxFromDate=le(),this.numberArray=[],this.message=N,this.isLoading=!1,this.isToggleOtp=!1,this.isDistributorValidated=!1,this.isPassword=!0,this.isMultiplePAN=!1,this.toggleBtn=!1}ngOnit(){this.subscribes(),this.defaultSelectedStartDate={startDate:le().add(1,"days").set("hours",0).set("minutes",0)}}subscribes(){this.breakpointObserver.observe(["(min-width: 1024px)"]).subscribe(e=>{this.isDesktopView=!!e.matches})}get form(){return this.forgotUsernameForm.controls}alphaNumericOnly(e){te(e)}preLogin(){return new q(e=>{let n=this.encryptService.decryptData(A.collect,!0);this.forgotUsernameForm.valid&&this.authenticationService.getPreLoginToken(n).subscribe({next:t=>{if(this.isLoading=!1,t?.resultInfo?.status=="S"){let o=t?.data?.tokenResponse;this.jwtlocalStorageservice.setPreloginSession(o),this.jwtService.setPreloginSessionSync(o).subscribe({complete:()=>e.complete(),error:()=>e.complete()})}else this.toastr.error("",t?.resultInfo?.message)},error:t=>{this.isLoading=!1,this.toastr.error("Failure","Invalid Response")}})})}onSubmit(){this.submitted=!0,this.forgotUsernameForm.valid&&this.preLogin().subscribe({complete:()=>{let e={pan:this.form.pan.value.toUpperCase(),dob:this.selectedDob};this.authenticationService.forgotUsername(e).subscribe({next:n=>{n?.resultInfo?.status=="S"?(this.isLoading=!1,this.loginInfo=n?.data,this.loginInfo.pan=this.form.pan.value,this.loginInfo.dob=this.selectedDob,this.sharedVariables.investorDetails=this.loginInfo,this.callinvestorGenOtp()):n?.resultInfo?.codeId=="100126"?this.toastr.error('<font color="red">There is no Username associated with this PAN, <a color="red" href="https://inv.tatamfdev.com/registration" target="_blank">
1click here</a> if you wish to register.</red></font>',"",{enableHtml:!0,timeOut:1e5,closeButton:!1}):(this.isLoading=!1,this.toastr.error("",n?.resultInfo?.message))},error:n=>{this.isLoading=!1,this.toastr.error("","Invalid Response")}})}})}back(){this.clickOnBackBtn.emit(!0)}callinvestorGenOtp(){let e={source:"WEB",activityType:"OTP_FOR_INVESTOR_FORGOT_USER_NAME",countryCode:"91",investorPan:this.form.pan.value,mobileNumber:this.loginInfo.mobileNo,emailId:this.loginInfo.emailId,mobileReferenceNumber:null,emailReferenceNumber:null,sameOtp:!0,dob:this.selectedDob};this.authenticationService.investorGenOtp(e).subscribe({next:n=>{n?.resultInfo?.status=="S"?(this.isLoading=!1,this.loginInfo=n?.data,this.loginInfo.pan=this.form.pan.value,this.loginInfo.dob=this.selectedDob,this.sharedVariables.investorDetails=this.loginInfo,this.enterOTPNavigation.emit()):(this.isLoading=!1,this.toastr.error("",n?.resultInfo?.message))},error:n=>{this.isLoading=!1,this.toastr.error("","Invalid Response")}})}dateChanged(e){let n=new Date(e);this.selectedDob=n.toISOString().slice(0,10)}static{this.\u0275fac=function(n){return new(n||i)(h(U),h(Z),h(T),h(K),h(ie),h(ee),h(ae))}}static{this.\u0275cmp=I({type:i,selectors:[["nextgenmf-investor-forgot-username-form"]],outputs:{enterOTPNavigation:"enterOTPNavigation",clickOnBackBtn:"clickOnBackBtn"},standalone:!1,decls:36,vars:23,consts:[[1,"forgot-password-card"],[1,"sr-only"],["fxLayout","column",1,"forgot-password-card-body"],[1,"mb-1rem"],["type","button","aria-label","Go Back",1,"clear-btn",3,"click"],["src","./assets/icons/arrow-left.svg","alt","","aria-hidden","true",1,"me-2","back-arrow"],[1,"forgot-password-card-body-title","m-0"],[3,"ngSubmit","formGroup"],[1,"form-group","mb-2rem"],[1,"form-control"],["type","text","id","fu-pan","formControlName","pan","maxlength","10","aria-describedby","fu-pan-error",1,"form-input","font-dm-sans","uppercase",3,"keypress","placeholder","ngClass"],["for","fu-pan",1,"form-label",3,"ngClass"],["type","button","aria-label","Validation error",1,"form-input-icon","btn-icon"],["id","fu-pan-error","role","alert",1,"input-error"],[1,"custom-date-picker"],[1,"form-label"],[1,"date-picker-component",3,"selectedDateEmitted","minDate","maxDate","selected","disableIndividualDate"],[1,"calendar-icon"],["src","assets/icons/date.svg","alt","","aria-hidden","true"],["fxLayout","row","fxFlexFill","",1,"mb-2rem"],["type","submit",1,"fill-btn","text-white",3,"disabled","ngClass"],[1,"forgot-password-card-footer"],[1,"need-help-text"],["src","./assets/icons/call.svg","alt","","aria-hidden","true",1,"call-icon","me-2"],[1,"call-number","primary-color",3,"href"],["src","./assets/icons/error.svg","alt","","aria-hidden","true"]],template:function(n,t){n&1&&(a(0,"div",0)(1,"h1",1),m(2,"Forgot Username"),r(),a(3,"div",2)(4,"div",3)(5,"button",4),g("click",function(){return t.back()}),v(6,"img",5),r(),a(7,"h3",6),m(8," Forgot Username "),r()(),a(9,"form",7),g("ngSubmit",function(){return t.onSubmit()}),a(10,"div",8)(11,"div",9)(12,"input",10),g("keypress",function(f){return t.alphaNumericOnly(f)}),r(),a(13,"label",11),m(14,"PAN"),r(),d(15,ui,2,0,"button",12),r(),d(16,gi,3,2,"div",13),r(),a(17,"div",8)(18,"div",9)(19,"div",14)(20,"label",15),m(21,"Date Of Birth"),r(),a(22,"nextgenmf-apps-date-picker-new-mat",16),g("selectedDateEmitted",function(f){return t.dateChanged(f)}),r(),a(23,"div",17),v(24,"img",18),r()()()(),a(25,"div",19)(26,"button",20)(27,"span"),m(28," Submit "),r()()()(),a(29,"div",21)(30,"span",22),m(31),V(32,"translate"),r(),v(33,"img",23),a(34,"a",24),m(35," 022 6282 7777"),r()()()()),n&2&&(s(9),u("formGroup",t.forgotUsernameForm),s(3),u("placeholder",t.isDesktopView?"PAN":"")("ngClass",b(17,ci,((t.form.pan==null?null:t.form.pan.touched)||(t.form.pan==null?null:t.form.pan.dirty)||t.submitted)&&(t.form.pan==null?null:t.form.pan.errors))),k("aria-invalid",(t.form.pan!=null&&t.form.pan.touched||t.form.pan!=null&&t.form.pan.dirty||t.submitted)&&(t.form.pan!=null&&t.form.pan.errors)?!0:null),s(),u("ngClass",b(19,di,((t.form.pan==null?null:t.form.pan.touched)||(t.form.pan==null?null:t.form.pan.dirty)||t.submitted)&&(t.form.pan==null?null:t.form.pan.errors))),s(2),p((t.form.pan!=null&&t.form.pan.touched||t.form.pan!=null&&t.form.pan.dirty||t.submitted)&&(t.form.pan!=null&&t.form.pan.errors)?15:-1),s(),p((t.form.pan!=null&&t.form.pan.touched||t.form.pan!=null&&t.form.pan.dirty||t.submitted)&&(t.form.pan!=null&&t.form.pan.errors)?16:-1),s(6),u("minDate",t.minStartDate)("maxDate",t.maxFromDate)("selected",t.defaultSelectedStartDate)("disableIndividualDate",t.numberArray),s(4),u("disabled",t.forgotUsernameForm.invali
1d)("ngClass",b(21,pi,t.isLoading)),s(5),y("",B(32,15,"login.needHelp")," "),s(3),u("href","tel: 0226282777",D))},dependencies:[R,F,L,X,J,z,G,H,Y,Q,W,Be,j],styles:[".forgot-password-card-body[_ngcontent-%COMP%]{width:420px}.forgot-password-card-body[_ngcontent-%COMP%]   .date-picker-component[_ngcontent-%COMP%]{width:100%!important}.forgot-password-card-body[_ngcontent-%COMP%]   .back-arrow[_ngcontent-%COMP%]{cursor:pointer;height:3rem;width:3rem}.forgot-password-card-body-title[_ngcontent-%COMP%]{font-style:normal;font-weight:600;font-size:1.8rem;line-height:3.125rem;color:var(--primary-shade-color)}.forgot-password-card-body[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-size:16px;line-height:24px;text-align:center;color:var(--primary-rgba-color);font-family:DM Sans}.forgot-password-card-body[_ngcontent-%COMP%]   .eye-icon[_ngcontent-%COMP%]{margin-right:25px}.forgot-password-card-body[_ngcontent-%COMP%]   .need-help-text[_ngcontent-%COMP%]{font-family:DM Sans;font-style:normal;font-weight:400;font-size:1.125rem;line-height:23px;color:#4d4d4d}.forgot-password-card-footer[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{color:var(--dark-gray);font-size:1.125rem;bottom:0}.forgot-password-card-footer[_ngcontent-%COMP%]   .call-icon[_ngcontent-%COMP%]{margin-left:.594rem}.forgot-password-card-footer[_ngcontent-%COMP%]   .call-number[_ngcontent-%COMP%]{font-size:1rem;text-decoration:none}@media(min-width:320px)and (max-width:480px){.forgot-password-card-body[_ngcontent-%COMP%]{width:100%}}[_nghost-%COMP%]     .md-drppicker{font-size:18px!important}[_nghost-%COMP%]     .md-drppicker .dropdowns{width:70px!important}  .custom-date-picker{max-height:56px!important;padding:0;outline:none!important;font-family:DM Sans;max-width:100%}  .date-picker-component{z-index:100!important;width:100%!important}  .date-picker-component input{width:100%!important;background:transparent;outline:none!important;border:none!important;font-size:16px!important;padding:1.3rem!important;font-family:DM Sans!important;color:#1c1b1f}.calendar-icon[_ngcontent-%COMP%]{position:absolute;right:13px}  .calendar-icon{margin-left:-1rem}.form-label[_ngcontent-%COMP%]{top:-.4rem!important;font-size:13.6px!important}.zero-padding[_ngcontent-%COMP%]{padding:0}.forgot-password-card-footer[_ngcontent-%COMP%]{position:absolute;bottom:0;height:40px;width:80%;display:flex;align-items:center;justify-content:center;background-color:var(--white);padding-top:1rem;padding-bottom:2rem}.input-error[_ngcontent-%COMP%]{position:relative!important}  .toast-message a{color:#0040a0}input[_ngcontent-%COMP%]:-webkit-autofill, input[_ngcontent-%COMP%]:-webkit-autofill:active{-webkit-box-shadow:0 0 0 40px white inset!important}.form-input[_ngcontent-%COMP%]:focus{border:2px solid #0040A0!important}"]})}}return i})();function Ci(i,c){if(i&1){let e=w();a(0,"nextgenmf-investor-login-card",13),g("forgotPassword",function(){_(e);let t=l();return C(t.onForgotPassword())})("forgotUserName",function(){_(e);let t=l();return C(t.onforgotUserName())})("enterOTPNavigation",function(){_(e);let t=l();return C(t.onOTPNavigation())})("quickInvestNavigation",function(){_(e);let t=l();return C(t.goToQuickInvest())}),r()}if(i&2){let e=l();u("hashValue",e.hashCode)}}function bi(i,c){if(i&1){let e=w();a(0,"nextgenmf-app-enter-otp-card",14),g("clickOnBackBtn",function(t){_(e);let o=l();return C(o.onBackBtnHandler(t))})("afterOtpEntered",function(){_(e);let t=l();return C(t.afterOtpHasEnteredHandler())}),r()}if(i&2){let e=l();u("title",e.otpPageTitle)("otpRequestedFrom","login")}}function vi(i,c){if(i&1){let e=w();a(0,"nextgenmf-app-enter-otp-card",14),g("clickOnBackBtn",function(t){_(e);let o=l();return C(o.onBackBtnHandler(t))})("afterOtpEntered",function(){_(e);let t=l();return C(t.afterOtpHasEnteredHandler())}),r()}if(i&2){let e=l();u("title",e.otpPageTitle)("otpRequestedFrom","forgotPassword")}}function yi(i,c){if(i&1){let e=w();a(0,"nextgenmf-investor-forgot-password-card",15),g("enterOTPNavigation",function(){_(e);let t=l();return C(t.enterOtp())})("clickOnBackBtn",function(t){_(e);let o=l();return C(o.onBackBtnHandler(t))}),r()}}function wi(i,c){if(i&1){let e=w();a(0,"nextgenmf-investor-forgot-username-form",15),g("enterOTPNavigation",function(){_(e);let t=l();return C(t.forgotUsrForm())})("clickOnBackBtn",function(t){_(e);let o=l();return C(o.onBackBtnHandler(t))}),r()}}function xi(i,c){if(i&1){let e=w();a(0,"nextgenmf-app-enter-otp-card",16),g("clickOnBackBtn",function(t){_(e);let o=l();return C(o.onBackBtnHandler(t))}),r()}if(i&2){let e=l();u("title",e.otpPageTitle)("otpRequestedFrom","forgotUserName")}}function Si(i,c){if(i&1){let e=w();a(0,"nextgenmf-app-set-new-pass-card",17),g("changeNavigation",function(t){_(e);let o=l();return C(o.onChangeNavigation(t,"setNewPassword"))}),r()}i&2&&u("setPasswordFrom","login")}function ki(i,c){if(i&1){let e=w();a(0,"nextgenmf-app-quick-invest-card",18),g("clickOnBackBtn",function(t){_(e);let o=l();return C(o.onBackBtnHandler(t))})("selectFolioNavigation",function(t){_(e);let o=l();return C(o.onSelectFolio(t))})("captureLeadInfo",function(t){_(e);let o=l();return C(o.captureLeadInfo(t))}),r()}}function Pi(i,c){if(i&1){let e=w();a(0,"nextgenmf-app-quick-invest-lead-capture",19),g("clickOnBackBtn",function(t){_(e);let o=l();return C(o.onBackToQI(t))}),r()}if(i&2){let e=l();u("invPan",e.invPan)}}function Oi(i,c){if(i&1){let e=w();a(0,"nextgenmf-quick-invest-select-folio",20),g("clickOnBackBtn",function(){_(e);let t=l();return C(t.goToQuickInvest())})("verifyOtpNavigation",function(t){_(e);let o=l();return C(o.onQuickInvestOTPNavigation(t))}),r()}if(i&2){let e=l();u("folioData",e.folioData)("title",e.otpPageTitle)}}function Ti(i,c){if(i&1){let e=w();a(0,"nextgenmf-quick-invest-otp-card",21),g("selectFolioNavigation",function(t){_(e);let o=l();return C(o.onSelectFolio(t))}),r()}if(i&2){let e=l();u("otpData",e.otpData)}}var ht=(()=>{class i{constructor(e,n,t){this.sharedVariable=e,this.router=n,this.helperService=t,this.viewT
1ype="login",this.otpPageTitle="Forgot Password",this.router.queryParams.subscribe(o=>{this.hashCode=this.router.snapshot.paramMap.get("id")})}ngOnInit(){(this.sharedVariable.external||this.helperService.getValueResearchDetails()||this.helperService.getOriginatedFromCPData())&&this.goToQuickInvest()}onChangeNavigation(e,n){n==="setNewPassword"?this.viewType=e==="back"?"otpView":"setNewPassword":this.viewType=e==="back"?"login":"setNewPassword"}onBackBtnHandler(e){e&&(this.viewType="login")}onBackToQI(e){e&&(this.viewType="quickInvest")}onBackBtnHandlerUsername(e){e&&(this.viewType="forgotUsernameForm")}afterOtpHasEnteredHandler(){this.viewType="setNewPassword"}onOTPNavigation(){this.viewType="otpView",this.sharedVariable.loggedInThrough==="mobile"&&(this.otpPageTitle="Verify your Mobile Number"),this.sharedVariable.loggedInThrough==="email"&&(this.otpPageTitle="Verify your Email ID")}enterOtp(){this.viewType="forgotPasswordOtpGeneration",this.otpPageTitle="Forgot Password"}onForgotPassword(){this.viewType="forgotPassword",this.otpPageTitle="Forgot Password"}onforgotUserName(){this.viewType="forgotUsernameForm"}forgotUsrForm(){this.viewType="forgotUsernameOtpGeneration",this.otpPageTitle="Enter OTP"}goToQuickInvest(){this.viewType="quickInvest"}onSelectFolio(e){this.folioData=e,this.viewType="selectFolio"}captureLeadInfo(e){this.viewType="leadCapture",this.invPan=e}onQuickInvestOTPNavigation(e){this.otpData=e,this.viewType="quickInvestOtp"}static{this.\u0275fac=function(n){return new(n||i)(h(T),h(ye),h(Ie))}}static{this.\u0275cmp=I({type:i,selectors:[["nextgenmf-investor-login"]],standalone:!1,decls:20,vars:1,consts:[[1,"login","container"],[1,"sr-only"],["fxLayout","column",1,"login-container"],["fxLayout","row","fxLayout.sm","column","fxLayout.xs","column","fxFlexFill","",1,"login-layout-wrapper"],["fxLayout","column","fxFlex","50","fxFlex.xs","10","fxFlex.sm","10"],["fxLayout","row","fxHide.xs","true","fxHide.sm","true","fxHide.md","true"],["id","main-content","tabindex","-1","role","main","fxFlex","50","fxFlex.xs","5000",1,"login-auth-card"],[3,"hashValue"],[3,"title","otpRequestedFrom"],[3,"setPasswordFrom"],[3,"invPan"],[3,"folioData","title"],[3,"otpData"],[3,"forgotPassword","forgotUserName","enterOTPNavigation","quickInvestNavigation","hashValue"],[3,"clickOnBackBtn","afterOtpEntered","title","otpRequestedFrom"],[3,"enterOTPNavigation","clickOnBackBtn"],[3,"clickOnBackBtn","title","otpRequestedFrom"],[3,"changeNavigation","setPasswordFrom"],[3,"clickOnBackBtn","selectFolioNavigation","captureLeadInfo"],[3,"clickOnBackBtn","invPan"],[3,"clickOnBackBtn","verifyOtpNavigation","folioData","title"],[3,"selectFolioNavigation","otpData"]],template:function(n,t){if(n&1&&(a(0,"div",0)(1,"h1",1),m(2,"Investor Login"),r(),a(3,"div",2)(4,"div",3)(5,"div",4),v(6,"nextgenmf-app-logo")(7,"nextgenmf-app-market-ups-downs-text",5),r(),a(8,"nextgenmf-app-auth-card",6),d(9,Ci,1,1,"nextgenmf-investor-login-card",7)(10,bi,1,2,"nextgenmf-app-enter-otp-card",8)(11,vi,1,2,"nextgenmf-app-enter-otp-card",8)(12,yi,1,0,"nextgenmf-investor-forgot-password-card")(13,wi,1,0,"nextgenmf-investor-forgot-username-form")(14,xi,1,2,"nextgenmf-app-enter-otp-card",8)(15,Si,1,1,"nextgenmf-app-set-new-pass-card",9)(16,ki,1,0,"nextgenmf-app-quick-invest-card")(17,Pi,1,1,"nextgenmf-app-quick-invest-lead-capture",10)(18,Oi,1,2,"nextgenmf-quick-invest-select-folio",11)(19,Ti,1,1,"nextgenmf-quick-invest-otp-card",12),r()()()()),n&2){let o;s(9),p((o=t.viewType)==="login"?9:o==="otpView"?10:o==="forgotPasswordOtpGeneration"?11:o==="forgotPassword"?12:o==="forgotUsernameForm"?13:o==="forgotUsernameOtpGeneration"?14:o==="setNewPassword"?15:o==="quickInvest"?16:o==="leadCapture"?17:o==="selectFolio"?18:o==="quickInvestOtp"?19:-1)}},dependencies:[Ue,qe,ze,F,L,Fe,De,$e,Qe,Ze,Ke,Xe,et,ct,ut,ft],styles:[".login[_ngcontent-%COMP%]{padding:4% 4% 1%!important}.login[_ngcontent-%COMP%]   .login-container[_ngcontent-%COMP%]{display:flex}.credBox[_ngcontent-%COMP%]{width:50%;display:grid;gap:1rem;grid-template-columns:repeat(3,1fr)}.credBox[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{padding:1rem}
1.credBox[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]{background-color:var(--primary-color);color:#fff;padding:5px 10px}.credBox[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-left:5px}.credBox[_ngcontent-%COMP%]   .lock[_ngcontent-%COMP%]{position:absolute;top:0;right:10px;mix-blend-mode:multiply}.credBox[_ngcontent-%COMP%]   .col[_ngcontent-%COMP%]{position:relative;cursor:pointer;border-radius:4px;width:250px;height:120px;background:#fff;display:flex;flex-direction:column;justify-content:space-between;box-shadow:#00000059 0 5px 15px}.credBox[_ngcontent-%COMP%]   .col[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{font-weight:600;color:var(--primary-color)}.credBox[_ngcontent-%COMP%]   .col[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;font-size:16px}"]})}}return i})();var Mi=[{path:"",component:ht}],ao=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=Ce({type:i})}static{this.\u0275inj=_e({imports:[ve,xe.forChild(Mi),Re,je,Ge,Ve,He,We,Ye,ke,Pe,Se,Ae,it,Je]})}}return i})();export{ao as LoginModule};

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.