1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4878,6618],{21232:(e,a,r)=>{"use strict";r.d(a,{A:()=>d});var t=r(95155),s=r(41855);r(12115);var l=r(52619),n=r.n(l);let i=e=>{let{text:a="Click Me",onClick:r,type:s="button",Icon:l,className:i="",link:o,disabled:c=!1}=e,d="\n ".concat(i,"\n relative overflow-hidden w-fit\n after:absolute after:w-full after:h-full\n after:bg-[var(--rv-bg-secondary)]\n after:-bottom-full after:hover:bottom-0\n after:-z-10 z-10\n after:transition-all after:duration-300\n bg-[var(--rv-bg-primary)]\n border border-[var(--rv-primary)]\n text-[var(--rv-secondary)]\n hover:text-[var(--rv-white)]\n px-5 py-2 rounded-lg\n transition-all duration-300\n flex items-center justify-center\n ").concat(c?"opacity-50 cursor-not-allowed pointer-events-none bg-[var(--rv-gray-light)] border-[var(--rv-gray-light)] text-[var(--rv-gray-dark)]":"","\n "),m=(0,t.jsxs)(t.Fragment,{children:[a,l&&(0,t.jsx)(l,{className:"ml-2 w-4 h-4"})]});return o?c?(0,t.jsx)("span",{className:d,"aria-disabled":"true",children:m}):(0,t.jsx)(n(),{href:o,className:d,"aria-label":a,children:m}):(0,t.jsx)("button",{type:s,onClick:c?void 0:r,disabled:c,className:d,"aria-label":a,children:m})};var o=r(33828);let c={theme1:i,theme2:e=>{let{text:a="Click Me",onClick:r,type:s="button",className:l="",link:i,disabled:c=!1,variant:d}=e,m="choice"===d||"choice-active"===d,v="\n relative overflow-hidden\n flex items-center justify-center gap-4\n font-medium border\n transition-all duration-500\n ".concat(c?"opacity-40 cursor-not-allowed pointer-events-none bg-[var(--rv-primary)] text-[var(--rv-black)]":m?"".concat("choice-active"===d?"bg-[var(--rv-primary)] text-[var(--rv-black)] border-[var(--rv-primary)]":"bg-[var(--rv-bg-secondary-light)] text-[var(--rv-text)] border-[var(--rv-border)] hover:border-[var(--rv-primary)] hover:text-[var(--rv-primary)]"):"bg-[var(--rv-primary)] text-[var(--rv-black)] hover:text-[var(--rv-white)] border-[var(--rv-primary)]","\n \n ").concat(!c&&"\n z-10\n after:content-[''] after:absolute after:top-1/2 after:right-0\n after:translate-x-1/2 after:-translate-y-1/2\n after:w-0 after:h-0 after:bg-[var(--rv-bg-black)] after:-z-10\n after:transition-all after:duration-500\n hover:after:w-[1000px] hover:after:h-[300px] after:rounded-full\n ","\n \n ").concat(m?"rounded-xl":"rounded-full","\n ").concat(l,"\n "),u=m?(0,t.jsx)("span",{className:"px-5 py-2 text-center",children:a}):(0,t.jsxs)("div",{className:"flex items-center gap-3 pl-5",children:[(0,t.jsx)("p",{className:"p-1",children:a}),(0,t.jsx)("div",{className:"w-10 h-10 bg-[var(--rv-bg-black)] text-[var(--rv-white)] rounded-full flex items-center justify-center",children:(0,t.jsx)(o.j6T,{className:c?"":"animate-bounce1"})})]}),x=m?{clipPath:"polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%, 20px 50%)"}:void 0;return i?c?(0,t.jsx)("span",{className:v,style:x,"aria-disabled":"true",children:u}):(0,t.jsx)(n(),{href:i,className:v,style:x,"aria-label":a,children:u}):(0,t.jsx)("button",{type:s,onClick:c?void 0:r,disabled:c,className:v,style:x,"aria-label":a,children:u})},theme3:e=>{let{text:a="Click Me",onClick:r,type:s="button",Icon:l="",className:i="",link:o,disabled:c=!1}=e,d="w-fit\n ".concat(i,"\n bg-gradient-to-r from-[var(--rv-bg-primary)] to-[var(--rv-bg-primary-dark)]\n hover:to-[var(--rv-bg-primary)] hover:from-[var(--rv-bg-primary-dark)]\n text-[var(--rv-white)]\n px-4 py-2.5 rounded-lg\n duration-300 transition-all\n flex items-center justify-center gap-2\n ").concat(c?"opacity-40 cursor-not-allowed pointer-events-none":"","\n "),m=(0,t.jsxs)(t.Fragment,{children:[a,l]});return o?c?(0,t.jsx)("span",{className:d,"aria-disabled":"true",children:m}):(0,t.jsx)(n(),{href:o,className:d,"aria-label":a,children:m}):(0,t.jsx)("button",{type:s,onClick:c?void 0:r,disabled:c,className:d,"aria-label":a,children:m})},theme4:e=>{let{text:a="Click Me",onClick:r,type:s="button",className:l="",link:i,disabled:c=!1}=e,d="w-fit\n relative overflow-hidden\n flex items-center justify-center gap-4\n font-medium rounded-full group\n transition-all duration-500 \n ".concat(c?"opacity-40 cursor-not-allowed pointer-events-none bg-[var(--rv-primary)] text-[var(--rv-black)]":"bg-[var(--rv-primary)] text-[var(--rv-white)] hover:text-[var(--rv-black)] hover:bg-[var(--rv-white)] border border-[var(--rv-primary)] hover:border-[var(--rv-black)]","\n ").concat(l,"\n "),m=(0,t.jsxs)("div",{className:"flex items-center gap-3 pl-5 p-1",children:[(0,t.jsx)("p",{className:"",children:a}),(0,t.jsx)("div",{className:"w-9 h-9 bg-[var(--rv-bg-white)] group-hover:bg-[var(--rv-bg-black)] group-hover:text-[var(--rv-white)] text-[var(--rv-black)] rounded-full flex items-center justify-center",children:(0,t.jsx)(o.j6T,{className:c?"":"animate-bounce1"})})]});return i?c?(0,t.jsx)("span",{className:d,"aria-disabled":"true",children:m}):(0,t.jsx)(n(),{href:i,className:d,"aria-label":a,children:m}
1):(0,t.jsx)("button",{type:s,onClick:c?void 0:r,disabled:c,className:d,"aria-label":a,children:m})},theme5:e=>{let{text:a="Click Me",onClick:r,type:s="button",Icon:l,className:i,link:o,variant:c="dark",disabled:d=!1}=e,m=(0,t.jsxs)(t.Fragment,{children:[a,l&&(0,t.jsx)(l,{className:"ml-2"})]}),v="".concat(i," ").concat("light"===c?"after:bg-[var(--rv-bg-secondary-light)] hover:text-[var(--rv-black)] ":"after:bg-[var(--rv-bg-secondary)]"," after:w-full after:h-full after:absolute relative after:bg-[var(--rv-bg-secondary)] after:-bottom-full after:hover:bottom-0 after:-z-10 z-10 after:duration-300 after:transition-all overflow-hidden bg-[var(--rv-bg-primary)] text-[var(--rv-white)] px-8 py-2.5 rounded-full duration-300 transition-all flex items-center justify-center w-fit ").concat(d?"opacity-50 cursor-not-allowed pointer-events-none bg-[var(--rv-gray-light)] text-[var(--rv-gray-dark)]":"");return o?d?(0,t.jsx)("span",{className:v,"aria-disabled":"true",children:m}):(0,t.jsx)(n(),{href:o,className:v,children:m}):(0,t.jsx)("button",{type:s,onClick:d?void 0:r,disabled:d,className:v,children:m})}};function d(e){let{text:a,onClick:r,type:l,Icon:n,className:o,link:d,disabled:m,variant:v}=e,{theme:u}=(0,s.D)(),x=c[u]||i;return(0,t.jsx)(x,{text:a,onClick:r,type:l,Icon:n,link:d,className:o,disabled:m,variant:v})}},41085:(e,a,r)=>{"use strict";r.d(a,{Cf:()=>m,Es:()=>u,L3:()=>x,c7:()=>v,lG:()=>o,rr:()=>g});var t=r(95155),s=r(12115),l=r(89511),n=r(65229),i=r(49498);let o=l.bL;l.l9;let c=l.ZL;l.bm;let d=s.forwardRef((e,a)=>{let{className:r,...s}=e;return(0,t.jsx)(l.hJ,{ref:a,className:(0,i.cn)("fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...s})});d.displayName=l.hJ.displayName;let m=s.forwardRef((e,a)=>{let{className:r,children:s,hideClose:o=!1,...m}=e;return(0,t.jsxs)(c,{children:[(0,t.jsx)(d,{}),(0,t.jsxs)(l.UC,{ref:a,className:(0,i.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",r),...m,children:[s,!o&&(0,t.jsxs)(l.bm,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,t.jsx)(n.A,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});m.displayName=l.UC.displayName;let v=e=>{let{className:a,...r}=e;return(0,t.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-1.5 text-center sm:text-left",a),...r})};v.displayName="DialogHeader";let u=e=>{let{className:a,...r}=e;return(0,t.jsx)("div",{className:(0,i.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...r})};u.displayName="DialogFooter";let x=s.forwardRef((e,a)=>{let{className:r,...s}=e;return(0,t.jsx)(l.hE,{ref:a,className:(0,i.cn)("text-lg font-semibold leading-none tracking-tight",r),...s})});x.displayName=l.hE.displayName;let g=s.forwardRef((e,a)=>{let{className:r,...s}=e;return(0,t.jsx)(l.VY,{ref:a,className:(0,i.cn)("text-sm text-muted-foreground",r),...s})});g.displayName=l.VY.displayName},41855:(e,a,r)=>{"use strict";r.d(a,{D:()=>o,ThemeProvider:()=>c});var t=r(95155),s=r(12115),l=r(20063);let n=(0,s.createContext)(null),i="theme3",o=()=>{let e=(0,s.useContext)(n);return e||{theme:i,isDark:!1}},c=e=>{let{children:a}
1=e,[r]=(0,s.useState)(i),[o]=(0,s.useState)(!1),c=(0,l.usePathname)();return(0,s.useLayoutEffect)(()=>{((e,a,r)=>{if("undefined"==typeof document)return;let t=document.querySelector("link[data-theme]");t||((t=document.createElement("link")).rel="stylesheet",document.head.appendChild(t)),t.setAttribute("data-theme",e),t.setAttribute("href","/themes/".concat(e,".css"));let s=document.body,l=document.documentElement;s&&(s.className="",s.classList.add(e),((null==a?void 0:a.startsWith("/admin"))||(null==a?void 0:a.startsWith("/devadmin")))&&s.classList.add("admin-layout"),r?(s.classList.add("theme-dark"),null==l||l.classList.add("dark")):(s.classList.add("theme-light"),null==l||l.classList.remove("dark")))})(r,c,o)},[r,c,o]),(0,t.jsx)(n.Provider,{value:{theme:r,isDark:o},children:a})}},44937:(e,a,r)=>{"use strict";r.d(a,{default:()=>u});var t=r(95155),s=r(41855),l=r(52619),n=r.n(l);r(12115);var i=r(70898),o=r(57830);let c=e=>{let{title:a}=e;return(0,t.jsx)("section",{className:"bg-[var(--rv-bg-secondary)] md:p-16 px-6 py-16 w-full z-10 relative before:content-[''] before:absolute before:inset-0 before:bg-[url('/images/footer-vector.png')] before:bg-cover before:bg-center before:brightness-0 before:invert before:opacity-[0.05] before:-z-10",children:(0,t.jsx)("div",{className:"w-full main-section text-center text-[var(--rv-white)] flex items-center justify-center",children:(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("h3",{children:a}),(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,t.jsx)(n(),{href:"/",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(i.rQ8,{}),(0,t.jsx)("p",{className:"",children:"Home"})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(o.ree,{}),(0,t.jsx)("p",{className:" ",children:a})]})]})]})})})};var d=r(88661),m=r.n(d);let v={theme1:c,theme2:e=>{let{title:a}=e;return(0,t.jsx)("section",{className:"bg-[var(--rv-bg-black)] p-2 md:p-4 text-[var(--rv-white)] overflow-hidden",children:(0,t.jsx)("div",{className:"bg-[var(--rv-bg-secondary)] rounded-xl overflow-hidden relative z-10 before:content-[''] before:absolute before:inset-0 before:bg-[url('/images/innerpage.webp')] before:bg-cover before:bg-center before:-z-10",children:(0,t.jsxs)("div",{className:"w-full h-full bg-black/70 px-4 relative",children:[(0,t.jsx)("div",{className:"absolute -bottom-72 right-1/4 w-96 h-96 rounded-full bg-[var(--rv-bg-primary)] blur-[100px]"}),(0,t.jsx)("div",{className:"w-full md:p-28 px-4 py-20 text-center text-[var(--rv-white)] flex items-center justify-center",children:(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center text-center gap-2",children:[(0,t.jsx)("h1",{children:a}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-2 bg-[var(--rv-bg-white-light)] w-fit px-2 p-1 rounded-full",children:[(0,t.jsx)(n(),{href:"/",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(i.rQ8,{}),(0,t.jsx)("p",{className:" ",children:"Home"}),(0,t.jsx)(o.ree,{})]})}),(0,t.jsx)("div",{className:"flex items-center gap-2",children:(0,t.jsx)("p",{className:" ",children:a})})]})]})})]})})})},theme3:e=>{let{title:a}=e;return(0,t.jsx)("section",{className:"bg-gradient-to-b from-[var(--rv-bg-white)] to-[var(--rv-bg-primary)] text-[var(--rv-black)]] md:p-16 px-6 py-16 w-full z-10 relative",children:(0,t.jsx)("div",{className:"w-full main-section text-center flex items-center justify-center",children:(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("h3",{children:a}),(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,t.jsx)(n(),{href:"/",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(i.rQ8,{}),(0,t.jsx)("p",{className:"",children:"Home"})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(o.ree,{}),(0,t.jsx)("p",{className:" ",children:a})]})]})]})})})},theme4:e=>{let{title:a}=e;return(0,t.jsx)("div",{className:"lg:px-3 lg:rounded-xl overflow-hidden",children:(0,t.jsx)("section",{className:"w-full flex items-center px-4 lg:rounded-xl overflow-hidden text-[var(--rv-white)] relative z-10 bg-gradient-to-tl from-[var(--rv-bg-secondary)] via-[var(--rv-bg-secondary)] to-[var(--rv-bg-primary)]",children:(0,t.jsx)("div",{className:"w-full md:p-28 px-6 py-20 text-center text-[var(--rv-white)] flex items-center justify-center",children:(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("h1",{children:a}),(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,t.jsx)(n(),{href:"/",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(i.rQ8,{}),(0,t.jsx)("p",{className:" ",children:"Home"})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(o.ree,{}),(0,t.jsx)("p",{className:" ",children:a})]})]})]})})})})},theme5:e=>{let{title:a}=e;
1return(0,t.jsxs)("section",{className:"jsx-d40d27b01ab20daa main-section-top bg-[var(--rv-bg-white)] relative overflow-hidden",children:[(0,t.jsxs)("div",{className:"jsx-d40d27b01ab20daa absolute inset-0 pointer-events-none",children:[(0,t.jsx)("span",{className:"jsx-d40d27b01ab20daa circle circle-1 bg-[var(--rv-blue)]"}),(0,t.jsx)("span",{className:"jsx-d40d27b01ab20daa circle circle-2 bg-[var(--rv-blue)]"}),(0,t.jsx)("span",{className:"jsx-d40d27b01ab20daa circle circle-3 bg-[var(--rv-pink)]"}),(0,t.jsx)("span",{className:"jsx-d40d27b01ab20daa circle circle-4 bg-[var(--rv-yellow)]"}),(0,t.jsx)("span",{className:"jsx-d40d27b01ab20daa circle circle-5 bg-[var(--rv-green)]"}),(0,t.jsx)("span",{className:"jsx-d40d27b01ab20daa circle circle-6 bg-[var(--rv-purple)]"})]}),(0,t.jsx)("div",{className:"jsx-d40d27b01ab20daa w-full md:p-20 px-6 py-20 text-center text-[var(--rv-black)] flex items-center justify-center",children:(0,t.jsxs)("div",{className:"jsx-d40d27b01ab20daa flex flex-col gap-2",children:[(0,t.jsx)("h1",{className:"jsx-d40d27b01ab20daa",children:a}),(0,t.jsxs)("div",{className:"jsx-d40d27b01ab20daa flex flex-wrap items-center justify-center gap-2",children:[(0,t.jsx)(n(),{href:"/",children:(0,t.jsxs)("div",{className:"jsx-d40d27b01ab20daa flex items-center gap-2",children:[(0,t.jsx)(i.rQ8,{}),(0,t.jsx)("p",{className:"jsx-d40d27b01ab20daa ",children:"Home"})]})}),(0,t.jsx)(o.ree,{}),(0,t.jsx)("div",{className:"jsx-d40d27b01ab20daa flex items-center gap-2",children:(0,t.jsx)("p",{className:"jsx-d40d27b01ab20daa ",children:a})})]})]})}),(0,t.jsx)(m(),{id:"d40d27b01ab20daa",children:".circle.jsx-d40d27b01ab20daa{position:absolute;width:200px;height:200px;border-radius:50%;filter:blur(140px);opacity:.8}.circle-1.jsx-d40d27b01ab20daa{top:10%;left:5%;animation:move1 28s infinite alternate}.circle-2.jsx-d40d27b01ab20daa{top:15%;right:5%;animation:move2 30s infinite alternate}.circle-3.jsx-d40d27b01ab20daa{bottom:15%;left:30%;
1animation:move3 26s infinite alternate}.circle-4.jsx-d40d27b01ab20daa{bottom:10%;right:25%;animation:move4 32s infinite alternate}.circle-5.jsx-d40d27b01ab20daa{top:20%;left:10%;animation:move5 28s infinite alternate}.circle-6.jsx-d40d27b01ab20daa{top:20%;right:10%;animation:move6 28s infinite alternate}@keyframes move1{to{transform:translate(20vw,20vh)}}@keyframes move2{to{transform:translate(-20vw,20vh)}}@keyframes move3{to{transform:translate(20vw,-20vh)}}@keyframes move4{to{transform:translate(-20vw,-20vh)}}@keyframes move3{to{transform:translate(20vw,20vh)}}@keyframes move4{to{transform:translate(-20vw,20vh)}}"})]})}};function u(e){let{title:a}=e,{theme:r}=(0,s.D)(),l=v[r]||c;return(0,t.jsx)(l,{title:a})}},45427:(e,a,r)=>{"use strict";r.d(a,{default:()=>k});var t=r(95155),s=r(41855),l=r(12115),n=r(70898),i=r(28122),o=r(91694),c=r(20063),d=r(12870),m=r(74744),v=r(44937),u=r(9342);let x={name:"ARN",loginitems:[{login_value:"CLIENT",login_name:"Client",login_desk:"ARN",login_status:!0,isstatus:!0,_id:"68cbfac52547fde5c5706383"},{login_value:"EMPLOYEE",login_name:"Employee",login_desk:"ARN",login_status:!0,isstatus:!0,_id:"68cbfafa2547fde5c570638c"},{login_value:"ARN",login_name:"Admin",login_desk:"ARN",login_status:!0,isstatus:!0,_id:"68cbfb4d2547fde5c5706397"},{login_value:"BROKER",login_name:"Broker",login_desk:"ARN",login_status:!0,isstatus:!0,_id:"68cbfc662547fde5c57063ba"},{login_value:"BRANCH",login_name:"Branch",login_desk:"ARN",login_status:!0,isstatus:!0,_id:"68cbfc842547fde5c57063d1"},{login_value:"RM",login_name:"RM",login_desk:"ARN",login_status:!0,isstatus:!1,_id:"68cbfc992547fde5c57063e2"}]},g=e=>{let{roboUser:a,sitedata:r,login:s}=e,g=(0,c.useRouter)(),[p,b]=(0,l.useState)(x.name),[h,f]=(0,l.useState)(x.loginitems),[j,y]=(0,l.useState)(x.loginitems[0].login_value),[N,w]=(0,l.useState)({username:"",password:""}),[k,S]=(0,l.useState)({username:"",password:"",loginFor:x.loginitems[0].login_value,siteUrl:null==r?void 0:r.siteurl,callbackUrl:null==r?void 0:r.callbackurl,pcode:[],amount:[],arn_no:""}),[_,C]=(0,l.useState)(!1),[R,E]=(0,l.useState)(!1),[P,A]=(0,l.useState)(!1),[z,F]=(0,l.useState)(""),[L,D]=(0,l.useState)(!1);(0,l.useEffect)(()=>{let e=localStorage.getItem("investmentData");if(e){let a=JSON.parse(e),r=a.funds.map(e=>null==e?void 0:e.pcode),t=a.funds.map(e=>null==e?void 0:e.allocationAmount);S(e=>({...e,arn_no:a.arnnumber,pcode:r,amount:t}))}},[]),(0,l.useEffect)(()=>{S(e=>({...e,loginFor:"ADMIN"===j?"ADVISOR":j}))},[j]),(0,l.useEffect)(()=>{S(e=>({...e,username:N.username,password:N.password}))},[N]);let U=async()=>{D(!0);try{let e=await d.A.post("".concat("https://mundadafinserve.com").concat("ARN"===p?"/api/login/arn-login":"/api/login/ifa-login"),k);!0===e.data.status?(m.oR.success("Login successful \uD83C\uDF89"),g.push(e.data.url)):m.oR.error(e.data.msg||"Login failed")}catch(e){m.oR.error(e.message||"Something went wrong")}finally{D(!1)}},I=async()=>{if(!z)return void alert("Please enter your email address.");alert("Password reset link sent to ".concat(z)),A(!1),F("")};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v.default,{title:"Login"}),(0,t.jsx)(m.N9,{}),(0,t.jsx)("div",{className:"flex items-center justify-center p-4",children:(0,t.jsx)(u.P.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6},className:"w-full max-w-7xl flex items-center justify-center main-section",children:(0,t.jsx)(u.P.div,{initial:{scale:.95},animate:{scale:1},transition:{duration:.5},className:"bg-[var(--rv-bg-white)] rounded-xl p-4 md:p-8 flex flex-col justify-center w-full max-w-xl border border-[var(--rv-gray)]",children:(0,t.jsxs)("div",{className:"w-full flex flex-col gap-6",children:[(0,t.jsxs)(u.P.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.2},children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-2 px-5 py-2.5 bg-[var(--rv-primary)] text-[var(--rv-white)] rounded-full font-semibold mb-5 shadow-lg",children:[(0,t.jsx)("span",{className:"w-2.5 h-2.5 bg-[var(--rv-bg-white)] rounded-full animate-pulse"}),"Welcome Back"]}),(0,t.jsx)("h6",{className:"font-bold mb-2 text-[var(--rv-primary)]",children:"Sign In"}),(0,t.jsx)("p",{className:"",children:"Enter your credentials to access your account"})]}),(0,t.jsx)(u.P.div,{initial:{opacity:0,y:10}
1,animate:{opacity:1,y:0},transition:{delay:.3},children:h&&(0,t.jsx)("div",{className:"grid sm:grid-cols-2 md:grid-cols-3 gap-3 w-full",children:null==h?void 0:h.map((e,a)=>(0,t.jsx)(u.P.button,{type:"button",whileHover:{scale:1.03},whileTap:{scale:.97},initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.4+.1*a},onClick:()=>y(e.login_value),className:"px-4 py-3 rounded-xl font-semibold transition-all duration-300 border-2\n ".concat(j===e.login_value?"bg-[var(--rv-primary)] text-[var(--rv-white)] shadow-lg":"text-[var(--rv-primary)] border-[var(--rv-primary)]"),children:e.login_name},e._id))})}),(0,t.jsxs)(u.P.div,{className:"space-y-5",initial:{opacity:0},animate:{opacity:1},transition:{delay:.5},children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block font-semibold text-[var(--rv-primary)] mb-2.5",children:"Username"}),(0,t.jsxs)("div",{className:"relative group",children:[(0,t.jsx)("div",{className:"absolute left-4 top-1/2 -translate-y-1/2 text-[var(--rv-primary)]",children:(0,t.jsx)(n.l7z,{size:20})}),(0,t.jsx)("input",{type:"text",name:"username",placeholder:"Enter your username",value:N.username,onChange:e=>w({...N,username:e.target.value}),className:"w-full pl-12 pr-4 py-3.5 rounded-xl border bg-[var(--rv-white)] outline-none border-[var(--rv-gray)]"})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block font-semibold text-[var(--rv-primary)] mb-2.5",children:"Password"}),(0,t.jsxs)("div",{className:"relative group",children:[(0,t.jsx)("div",{className:"absolute left-4 top-1/2 -translate-y-1/2 text-[var(--rv-primary)]",children:(0,t.jsx)(n.JhU,{size:20})}),(0,t.jsx)("input",{type:_?"text":"password",name:"password",placeholder:"Enter your password",value:N.password,onChange:e=>w({...N,password:e.target.value}),className:"w-full pl-12 pr-12 py-3.5 rounded-xl border bg-[var(--rv-white)] outline-none border-[var(--rv-gray)]"}),(0,t.jsx)(u.P.button,{type:"button",whileHover:{scale:1.1},whileTap:{scale:.9},onClick:()=>C(!_),className:"absolute right-4 top-4 -translate-y-1/2 text-[var(--rv-primary)] hover:text-[var(--rv-secondary)] transition-colors",children:_?(0,t.jsx)(i._NO,{size:20}):(0,t.jsx)(n.Ny1,{size:20})})]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("label",{className:"flex items-center gap-2.5 cursor-pointer group",children:[(0,t.jsx)("input",{type:"checkbox",checked:R,onChange:e=>E(e.target.checked),className:"w-5 h-5 rounded-md accent-[var(--rv-primary)] cursor-pointer"}),(0,t.jsx)("span",{className:"text-[var(--rv-gray-dark)] group-hover:text-[var(--rv-primary)] transition-colors font-medium",children:"Remember me"})]}),(0,t.jsx)(u.P.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>A(!0),className:"text-[var(--rv-primary)] font-semibold hover:text-[var(--rv-secondary)] transition-colors",children:"Forgot Password?"})]}),(0,t.jsx)(u.P.button,{whileHover:{scale:L?1:1.01},whileTap:{scale:1},onClick:U,disabled:L,className:"w-full font-bold py-4 rounded-xl flex items-center justify-center gap-2\n ".concat(L?"bg-[var(--rv-bg-gray)] cursor-not-allowed opacity-70":"bg-[var(--rv-primary)] hover:bg-[var(--rv-secondary)] hover:shadow-xl text-[var(--rv-white)]"),children:L?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.hW,{className:"animate-spin h-5 w-5"}),"Logging in..."]}):"Login"}),a&&(0,t.jsxs)(u.P.div,{initial:{opacity:0}
1,animate:{opacity:1},transition:{delay:.6},className:"text-center mt-4 pt-4 border-t border-[var(--rv-gray-light)]",children:[(0,t.jsx)("p",{className:"text-[var(--rv-gray-dark)] mb-2",children:"Don't have an account?"}),(0,t.jsx)("a",{href:"/registration",children:(0,t.jsx)(u.P.button,{whileHover:{scale:1.05},whileTap:{scale:.95},className:"bg-[var(--rv-bg-white)] border-2 border-[var(--rv-primary)] text-[var(--rv-primary)] px-8 py-2.5 rounded-xl font-semibold hover:bg-[var(--rv-primary)] hover:text-[var(--rv-white)] transition-all",children:"Sign Up"})})]})]})]})})})}),P&&(0,t.jsx)(u.P.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 flex items-center justify-center bg-[var(--rv-bg-black)] backdrop-blur-sm p-4",children:(0,t.jsxs)(u.P.div,{initial:{scale:.9,y:20},animate:{scale:1,y:0},exit:{scale:.9,y:20},className:"bg-[var(--rv-bg-white)] p-8 rounded-3xl w-[90%] max-w-md relative flex flex-col gap-5 shadow-2xl",children:[(0,t.jsx)(u.P.div,{whileHover:{scale:1.1,rotate:90},whileTap:{scale:.9},onClick:()=>A(!1),className:"absolute top-4 right-4 bg-[var(--rv-bg-red)] w-8 h-8 rounded-full flex items-center justify-center text-[var(--rv-white)] cursor-pointer hover:bg-[var(--rv-bg-red-dark)] transition-colors",children:(0,t.jsx)(o.iCo,{})}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"w-16 h-16 bg-[var(--rv-primary)] rounded-full flex items-center justify-center mx-auto mb-4",children:(0,t.jsx)(n.JhU,{className:"text-[var(--rv-white)] text-2xl"})}),(0,t.jsx)("h5",{className:"font-bold text-2xl text-[var(--rv-primary)] mb-2",children:"Forgot Password?"}),(0,t.jsx)("p",{className:"",children:"Enter your email below to receive a password reset link."})]}),(0,t.jsx)("input",{type:"email",value:z,onChange:e=>F(e.target.value),placeholder:"Enter your email",className:"w-full border-2 border-[var(--rv-gray)] outline-none rounded-xl px-4 py-3.5 text-[var(--rv-primary)] bg-[var(--rv-white)]"}),(0,t.jsx)(u.P.button,{whileHover:{scale:1.02},whileTap:{scale:.98},onClick:I,className:"bg-[var(--rv-bg-primary)] text-[var(--rv-white)] py-3.5 rounded-xl font-bold shadow-lg hover:shadow-xl transition-all",children:"Send Reset Link"})]})})]})};var p=r(50742),b=r(33828),h=r(21232),f=r(52619),j=r.n(f),y=r(77227);r(33262);var N=r(75120);let w={theme1:g,theme2:e=>{let{roboUser:a,sitedata:r,login:s}=e,u=(0,c.useRouter)(),[g,h]=(0,l.useState)(x.name),[f,j]=(0,l.useState)(x.loginitems),[y,N]=(0,l.useState)(x.loginitems[0].login_value),[w,k]=(0,l.useState)({username:"",password:""}),[S,_]=(0,l.useState)({username:"",password:"",loginFor:x.loginitems[0].login_value,siteUrl:null==r?void 0:r.siteurl,callbackUrl:null==r?void 0:r.callbackurl,pcode:[],amount:[],arn_no:""}),[C,R]=(0,l.useState)(!1),[E,P]=(0,l.useState)(!1),[A,z]=(0,l.useState)(!1),[F,L]=(0,l.useState)(""),[D,U]=(0,l.useState)(!1);(0,l.useEffect)(()=>{let e=localStorage.getItem("investmentData");if(e){let a=JSON.parse(e),r=a.funds.map(e=>null==e?void 0:e.pcode),t=a.funds.map(e=>null==e?void 0:e.allocationAmount);_(e=>({...e,arn_no:a.arnnumber,pcode:r,amount:t}))}},[]),(0,l.useEffect)(()=>{_(e=>({...e,loginFor:"ADMIN"===y?"ADVISOR":y}))},[y]),(0,l.useEffect)(()=>{_(e=>({...e,username:w.username,password:w.password}))},[w]);let I=async()=>{U(!0);try{let e=await d.A.post("".concat("https://mundadafinserve.com").concat("ARN"===g?"/api/login/arn-login":"/api/login/ifa-login"),S);!0===e.data.status?(m.oR.success("Login successful \uD83C\uDF89"),u.push(e.data.url)):m.oR.error(e.data.msg||"Login failed")}catch(e){m.oR.error(e.message||"Something went wrong")}finally{U(!1)}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v.default,{title:"Login"}),(0,t.jsx)(m.N9,{}),(0,t.jsx)("div",{className:"bg-[var(--rv-bg-secondary)] text-[var(--rv-white)] flex items-center justify-center p-4",children:(0,t.jsxs)("div",{className:"w-full max-w-7xl grid grid-cols-1 lg:grid-cols-2 gap-5 main-section",children:[(0,t.jsx)("div",{className:"w-full",children:(0,t.jsxs)("div",{className:"border border-[var(--rv-white-light)] rounded-xl p-6 flex flex-col gap-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"font-bold",children:"Sign In"}),(0,t.jsx)("p",{children:"Choose your role & enter your credentials"})]}),(0,t.jsx)("div",{className:"grid grid-cols-2 lg:grid-cols-3 gap-2",children:null==f?void 0:f.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>N(e.login_value),className:"px-4 py-3 font-semibold rounded-lg transition-all\n ".concat(y===e.login_value?"bg-[var(--rv-bg-primary)] text-[var(--rv-black)]":"border border-[var(--rv-white-light)]"),children:e.login_name},e._id))}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block font-semibold mb-2",children:"Username"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(i.pHD,{
1className:"absolute left-4 top-1/2 -translate-y-1/2 text-[var(--rv-gray)]"}),(0,t.jsx)("input",{type:"text",name:"username",placeholder:"Enter username",value:w.username,onChange:e=>k({...w,username:e.target.value}),className:"w-full pl-12 pr-4 py-3 rounded-xl border border-[var(--rv-white-light)] bg-transparent outline-none"})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block font-semibold mb-2",children:"Password"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(b.JhU,{className:"absolute left-4 top-1/2 -translate-y-1/2 text-[var(--rv-gray)]"}),(0,t.jsx)("input",{type:C?"text":"password",name:"password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",value:w.password,onChange:e=>k({...w,password:e.target.value}),className:"w-full pl-12 pr-4 py-3 rounded-xl border border-[var(--rv-white-light)] bg-transparent outline-none"}),(0,t.jsx)("button",{type:"button",onClick:()=>R(!C),className:"absolute right-4 top-1/2 -translate-y-1/2 text-[var(--rv-gray)]",children:C?(0,t.jsx)(n.Ny1,{}):(0,t.jsx)(i._NO,{})})]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer",children:[(0,t.jsx)("input",{type:"checkbox",checked:E,onChange:e=>P(e.target.checked),className:"w-4 h-4"}),(0,t.jsx)("span",{className:"text-[var(--rv-gray-dark)]",children:"Remember me"})]}),(0,t.jsx)("button",{onClick:()=>z(!0),className:"text-[var(--rv-primary)] font-semibold",children:"Forgot Password?"})]}),(0,t.jsxs)("button",{onClick:I,disabled:D,className:"w-full bg-[var(--rv-bg-primary)] text-[var(--rv-black)] font-bold py-3 rounded-xl flex items-center justify-center gap-2\n ".concat(D?"opacity-70 cursor-not-allowed":"hover:scale-[1.02] transition","\n "),children:[D?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(b.hW,{className:"animate-spin"})," Proccessing..."]}):"Sign In to Dashboard",!D&&(0,t.jsx)(n.Z0P,{})]}),a&&(0,t.jsxs)("p",{className:"text-center",children:["Don't have an account?"," ",(0,t.jsx)("a",{href:"/registration",className:"text-[var(--rv-primary)] font-semibold",children:"Sign Up"})]})]})}),(0,t.jsx)("div",{className:"hidden lg:block w-full h-full",children:(0,t.jsxs)("div",{className:"relative h-full rounded-xl overflow-hidden shadow-xl",children:[(0,t.jsx)("img",{src:"https://images.unsplash.com/photo-1551434678-e076c223a692?q=80",className:"w-full h-full object-cover"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-[var(--rv-bg-black)] to-transparent"}),(0,t.jsxs)("div",{className:"absolute bottom-0 p-6 text-[var(--rv-white)]",children:[(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-[var(--rv-bg-white-light)] rounded-full backdrop-blur-sm",children:[(0,t.jsx)(p.t6Z,{}),"Trusted by 10,000+ Users"]}),(0,t.jsx)("h2",{className:"font-bold",children:"Manage Your Business with Confidence"}),(0,t.jsx)("p",{className:"",children:"Secure, fast, and reliable access anytime, anywhere."})]})]})})]})}),A&&(0,t.jsx)("div",{className:"fixed inset-0 z-50 bg-[var(--rv-bg-black)] backdrop-blur-sm flex items-center justify-center p-2",children:(0,t.jsxs)("div",{className:"bg-[var(--rv-bg-white)] rounded-2xl p-6 w-[90%] max-w-md relative",children:[(0,t.jsx)("div",{onClick:()=>z(!1),className:"absolute top-2 right-2 w-6 h-6 bg-[var(--rv-bg-red)] text-[var(--rv-white)] rounded-full flex items-center justify-center cursor-pointer",children:(0,t.jsx)(o.iCo,{})}),(0,t.jsx)("h5",{className:"text-center font-bold text-[var(--rv-primary)]",children:"Forgot Password"}),(0,t.jsx)("p",{className:"text-center mt-2",children:"Enter your email to receive a password reset link."}),(0,t.jsx)("input",{type:"email",value:F,onChange:e=>L(e.target.value),placeholder:"Enter email",className:"w-full border rounded-md px-4 py-3 mt-3"}),(0,t.jsx)("button",{onClick:()=>{if(!F)return alert("Please enter your email");alert("Password reset link sent to ".concat(F)),z(!1),L("")},className:"bg-[var(--rv-bg-primary)] text-[var(--rv-white)] w-full py-3 rounded-md mt-4",children:"Send Reset Link"})]})})]})},theme3:e=>{let{roboUser:a,sitedata:r,login:s}=e,u=(0,c.useRouter)(),[g,p]=(0,l.useState)(x.name),[b,f]=(0,l.useState)(x.loginitems),[j,N]=(0,l.useState)(x.loginitems[0].login_value),[w,k]=(0,l.useState)({username:"",password:""}),[S,_]=(0,l.useState)({username:"",password:"",loginFor:x.loginitems[0].login_value,siteUrl:null==r?void 0:r.siteurl,callbackUrl:null==r?void 0:r.callbackurl,pcode:[],amount:[],arn_no:""}),[C,R]=(0,l.useState)(!1),[E,P]=(0,l.useState)(""),[A,z]=(0,l.useState)(""),[F,L]=(0,l.useState)(""),[D,U]=(0,l.useState)(!1),[I,O]=(0,l.useState)(!1),[H,M]=(0,l.useState)(""),[T,J]=(0,l.useState)(!1),W={OtpMobileNo:E,mobileOtp:A},[B,V]=(0,l.useState)({userName:"",type:x.loginitems[0].login_value,source:"link"});(0,l.useEffect)(()=>{let e=localStorage.getItem("investmentData");if(e){let a=JSON.parse(e),r=a.funds.map(e=>null==e?void 0:e.pcode),t=a.funds.map(e=>null==e?void 0:e.allocationAmount);_(e=>({...e,arn_no:a.arnnumber,pcode:r,amount:t}))}},[]),(0,l.useEffect)(()=>{_(e=>({...e,loginFor:"ADMIN"===j?"ADVISOR":j}))},[j]),(0,l.useEffect)(()=>{_(e=>({...e,username:w.username,password:w.password}))},[w]);let Q=async()=>{R(!0);try{let e=await d.A.post("".concat("https://mundadafinserve.com").concat("ARN"===g?"/api/login/arn-login":"/api/login/ifa-login"),S);!0===e.data.status?(m.oR.success("Login successful \uD83C\uDF89"),u.push(e.data.url)):m.oR.error(e.data.msg||"Login failed")}catch(e){m.oR.error(e.message||"Something went wrong")}finally{R(!1)}},Y=async e=>{e.preventDefault();try{if(T){let e=await d.A.post("".concat("https://mundadafinserve.com","/api/login/submit-forget-password"),W);e.data.msgType,L(e.data.msg)}
1else{let e=await d.A.post("".concat("https://mundadafinserve.com","/api/login/forget-password"),B);"success"===e.data.msgType?(J(!0),L("OTP sent to ******".concat(e.data.mobileLastFourDigit," and ").concat(e.data.email)),P(e.data.encryptedMobileNo)):L(e.data.msg)}}catch(e){console.error("Error:",e),L("An error occurred. Please try again.")}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v.default,{title:"Login / Sign Up"}),(0,t.jsx)(m.N9,{}),(0,t.jsx)("div",{className:"bg-[var(--rv-bg-white)] flex items-center justify-center",children:(0,t.jsxs)("div",{className:"w-full max-w-7xl grid grid-cols-1 lg:grid-cols-2 main-section overflow-hidden",children:[(0,t.jsxs)("div",{className:"bg-[var(--rv-bg-white)] border rounded-xl lg:rounded-r-none lg:rounded-l-xl p-5 lg:p-10 flex flex-col gap-5 justify-center",children:[(0,t.jsxs)("div",{className:"",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-2 px-4 py-2 bg-[var(--rv-bg-primary-light)] text-[var(--rv-primary)] rounded-full font-medium mb-4",children:[(0,t.jsx)("span",{className:"w-2 h-2 bg-[var(--rv-bg-primary)] rounded-full"}),"For Existing Clients"]}),(0,t.jsx)("h1",{className:"text-4xl font-bold text-[var(--rv-gray-dark)] mb-2",children:"Sign In"}),(0,t.jsx)("p",{className:"text-[var(--rv-gray-dark)]",children:"Enter your credentials"})]}),(0,t.jsx)("div",{className:"grid sm:grid-cols-2 md:grid-cols-3 gap-3 ",children:null==b?void 0:b.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>N(e.login_value),className:"px-3 py-2 rounded-md font-medium border transition-all duration-300\n ".concat(j===e.login_value?"bg-[var(--rv-bg-primary)] text-[var(--rv-white)] border-[var(--rv-bg-primary)]":"text-[var(--rv-black)] border-[var(--rv-bg-primary)] hover:bg-[var(--rv-bg-gray-light)]"),children:e.login_name},e._id))}),(0,t.jsxs)("div",{className:"",children:[(0,t.jsx)("label",{className:"block font-medium text-[var(--rv-secondary)] mb-2",children:"Username"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(n.l7z,{className:"absolute left-4 top-1/2 -translate-y-1/2 text-[var(--rv-secondary)]",size:20}),(0,t.jsx)("input",{type:"text",name:"username",placeholder:"Enter your username",value:w.username,onChange:e=>k({...w,username:e.target.value}),className:"w-full pl-12 pr-4 py-3 rounded-md border bg-[var(--rv-bg-white)] border-[var(--rv-gray)] focus:ring-2 focus:ring-[var(--rv-primary)] outline-none"})]})]}),(0,t.jsxs)("div",{className:"",children:[(0,t.jsx)("label",{className:"block font-medium text-[var(--rv-secondary)] mb-2",children:"Password"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(n.JhU,{className:"absolute left-4 top-1/2 -translate-y-1/2 text-[var(--rv-secondary)]",size:20}),(0,t.jsx)("input",{type:D?"text":"password",name:"password",placeholder:"Enter your password",value:w.password,onChange:e=>k({...w,password:e.target.value}),className:"w-full pl-12 pr-12 py-3 rounded-md border bg-[var(--rv-bg-white)] border-[var(--rv-gray)] focus:ring-2 focus:ring-[var(--rv-primary)] outline-none"}),(0,t.jsx)("button",{onClick:()=>U(!D),className:"absolute right-4 top-1/2 -translate-y-1/2 text-[var(--rv-gray)]",children:D?(0,t.jsx)(n.Ny1,{size:20}):(0,t.jsx)(i._NO,{size:20})})]})]}),(0,t.jsx)("div",{className:"flex justify-end items-center",children:(0,t.jsx)("button",{onClick:()=>O(!0),className:"text-[var(--rv-primary-dark)] font-medium hover:underline",children:"Forgot Password?"})}),(0,t.jsx)(h.A,{onClick:Q,disabled:C,className:" py-3\n ".concat(C?"bg-[var(--rv-bg-gray)] cursor-not-allowed opacity-70":""),text:C?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.hW,{className:"animate-spin"})," Logging In..."]}):"Sign In"})]}),(0,t.jsx)(y.A,{roboUser:a,sitedata:r,login:s})]})}),I&&(0,t.jsx)("form",{onSubmit:Y,children:(0,t.jsx)("div",{className:"fixed inset-0 bg-black/40 backdrop-blur-sm flex items-center justify-center z-50 p-2",children:(0,t.jsxs)("div",{className:"bg-[var(--rv-bg-white)] p-6 rounded-2xl w-[90%] max-w-md relative",children:[(0,t.jsx)("div",{onClick:()=>O(!1),className:"absolute top-2 right-2 bg-[var(--rv-bg-red)] w-6 h-6 flex items-center justify-center text-[var(--rv-white)] rounded-full cursor-pointer",children:(0,t.jsx)(o.iCo,{})}),(0,t.jsx)("h5",{className:"font-bold text-center text-[var(--rv-primary)]",children:"Forgot Password"}),(0,t.jsx)("p",{className:"text-center mb-3",children:"Enter your email to receive a reset link."}),(0,t.jsx)("input",{type:"text",value:B.userName,onChange:e=>V({...B,userName:e.target.value}),className:"w-full border rounded-md px-4 py-3 mb-4",placeholder:"Enter you Username/Email"}),T&&(0,t.jsx)("input",{type:"text",placeholder:"Enter OTP",value:A,onChange:e=>z(e.target.value),className:"w-full border rounded-md px-4 py-3 mb-4"}),F&&(0,t.jsx)("p",{className:"text-red-500",children:F}),(0,t.jsx)("button",{type:"submit",className:"bg-[var(--rv-bg-primary)] text-[var(--rv-white)] py-3 rounded-md w-full",children:"Submit"})]})})})]})},theme4:e=>{let{roboUser:a,sitedata:r,login:s}=e,u=(0,c.useRouter)(),[g,p]=(0,l.useState)(x.name),[b,h]=(0,l.useState)(x.loginitems),[f,y]=(0,l.useState)(x.loginitems[0].login_value),[w,k]=(0,l.useState)({username:"",password:""}),[S,_]=(0,l.useState)({username:"",password:"",loginFor:x.loginitems[0].login_value,siteUrl:(null==r?void 0:r.siteurl)||"",callbackUrl:(null==r?void 0:r.callbackurl)||"",pcode:[],amount:[],arn_no:""}),[C,R]=(0,l.useState)(!1),[E,P]=(0,l.useState)(!1),[A,z]=(0,l.useState)(!1),[F,L]=(0,l.useState)(""),[D,U]=(0,l.useState)(!1);(0,l.useEffect)(()=>{try{let e=localStorage.getItem("investmentData");if(e){let a=JSON.parse(e),r=(a.funds||[]).map(e=>null==e?void 0:e.pcode),t=(a.funds||[]).map(e=>null==e?void 0:e.allocationAmount);_(e=>({...e,arn_no:a.arnnumber||e.arn_no,pcode:r,amount:t}))}}catch(e){console.warn("investmentData parse failed",e)}},[]),(0,l.useEffect)(()=>{_(e=>({...e,loginFor:"ADMIN"===f?"ADVISOR":f}))},[f]),(0,l.useEffect)(()=>{_(e=>({...e,username:w.username,password:w.password}))},[w]);let I=async()=>{var e,a,r,t;if(!w.username||!w.password)return void m.oR.error("Please enter username and password");U(!0);try{let r="".concat("https://mundadafinserve.com").concat("ARN"===g?"/api/login/arn-login":"/api/login/ifa-login"),t=await d.A.post(r,S);(null==t||null==(e=t.data)?void 0:e.status)===!0?(m.oR.success("Login successful \uD83C\uDF89"),t.data.url&&u.push(t.data.url)):m.oR.error((null==t||null==(a=t.data)?void 0:a.msg)||"Login failed")}catch(e){console.error("login err",e),m.oR.error((null==e||null==(t=e.response)||null==(r=t.data)?void 0:r.msg)||e.message||"Something went wrong")}finally{U(!1)}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v.default,{title:"Login"}),(0,t.jsx)(m.N9,{}),(0,t.jsx)("section",{className:"bg-[var(--rv-bg-white)] px-4 text-[var(--rv-white)]",children:(0,t.jsx)("div",{className:"max-w-7xl mx-auto main-section",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-5 ga
1p-8 items-stretch",children:[(0,t.jsx)("div",{className:"lg:col-span-3 hidden lg:block rounded-xl overflow-hidden shadow-2xl relative border bg-[var(--rv-bg-secondary)] border-[var(--rv-border)] text-[var(--rv-white)]",children:(0,t.jsx)("img",{src:"/images/login.jpg",className:"w-full h-full object-cover",alt:""})}),(0,t.jsxs)("main",{className:"lg:col-span-2 flex border border-[var(--rv-border)] overflow-hidden rounded-xl bg-gradient-to-tl from-[var(--rv-bg-primary)] via-[var(--rv-bg-secondary)] to-[var(--rv-bg-secondary)] flex-col p-6 md:p-8 relative z-10",children:[(0,t.jsx)(N.A,{align:"start",variant:"light",title:"Sign In",heading:"Sign In",description:"Choose role and enter credentials"}),(0,t.jsx)("div",{className:"mt-5 grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-2",children:null==b?void 0:b.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>y(e.login_value),className:"px-3 py-2 rounded-full text-sm font-medium border transition ".concat(f===e.login_value?"bg-[var(--rv-bg-primary)] text-[var(--rv-white)] border-transparent":"bg-[var(--rv-bg-white)] border-[var(--rv-border)] text-[var(--rv-primary)]"),children:e.login_name},e._id||e.login_value))}),(0,t.jsxs)("div",{className:"mt-5",children:[(0,t.jsx)("label",{className:"block text-sm font-medium mb-2",children:"Username"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(i.pHD,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-[var(--rv-gray)]"}),(0,t.jsx)("input",{type:"text",placeholder:"Enter username",value:w.username,onChange:e=>k({...w,username:e.target.value}),className:"w-full pl-10 pr-4 py-3 rounded-xl border border-[var(--rv-border)] bg-transparent outline-none"})]})]}),(0,t.jsxs)("div",{className:"mt-4",children:[(0,t.jsx)("label",{className:"block text-sm font-medium mb-2",children:"Password"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(n.JhU,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-[var(--rv-gray)]"}),(0,t.jsx)("input",{type:C?"text":"password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",value:w.password,onChange:e=>k({...w,password:e.target.value}),className:"w-full pl-10 pr-12 py-3 rounded-xl border border-[var(--rv-border)] bg-transparent outline-none"}),(0,t.jsx)("button",{type:"button",onClick:()=>R(!C),className:"absolute right-3 top-1/2 -translate-y-1/2 text-[var(--rv-gray)]","aria-label":"toggle password",children:C?(0,t.jsx)(i._NO,{}):(0,t.jsx)(n.Ny1,{})})]})]}),(0,t.jsxs)("div",{className:"mt-4 flex items-center justify-between",children:[(0,t.jsxs)("label",{className:"flex items-center gap-2 text-sm cursor-pointer",children:[(0,t.jsx)("input",{type:"checkbox",checked:E,onChange:e=>P(e.target.checked),className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Remember me"})]}),(0,t.jsx)("button",{onClick:()=>z(!0),className:"text-sm text-[var(--rv-bg-primary)] font-medium",children:"Forgot Password?"})]}),(0,t.jsx)("div",{className:"mt-6",children:(0,t.jsx)("button",{onClick:I,disabled:D,className:"w-full py-3 rounded-xl text-[var(--rv-white)] font-semibold flex items-center justify-center gap-3 ".concat(D?"bg-[var(--rv-bg-gray)] cursor-not-allowed":"bg-[var(--rv-bg-primary)] hover:brightness-95"),children:D?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.hW,{className:"animate-spin"})," Processing..."]}):(0,t.jsxs)(t.Fragment,{children:["Sign In ",(0,t.jsx)(n.Z0P,{})]})})}),a&&(0,t.jsxs)("p",{className:"text-center mt-4",children:["Don't have an account? "," ",(0,t.jsx)(j(),{href:"/registration",className:"text-[var(--rv-primary)] font-semibold",children:"Sign Up"})]})]})]})})}),A&&(0,t.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-[var(--rv-bg-black)] backdrop-blur-sm p-4",children:(0,t.jsxs)("div",{className:"bg-[var(--rv-bg-white)] rounded-2xl w-full max-w-md p-6 relative shadow-xl",children:[(0,t.jsx)("button",{onClick:()=>z(!1),className:"absolute top-3 right-3 text-sm rounded-full w-8 h-8 grid place-items-center bg-[var(--rv-bg-red)] text-[var(--rv-white)]",children:(0,t.jsx)(o.iCo,{})}),(0,t.jsx)("h4",{className:"ont-bold text-[var(--rv-bg-primary)] text-center",children:"Forgot Password"}),(0,t.jsx)("p",{className:"text-center mt-2",children:"Enter your email to receive a password reset link."}),(0,t.jsx)("input",{type:"email",className:"w-full mt-4 border border-[var(--rv-border)] outline-none rounded-lg px-4 py-2",value:F,onChange:e=>L(e.target.value),placeholder:"[email protected]"}),(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)("button",{onClick:()=>
1{if(!F)return void m.oR.warn("Please enter your email");m.oR.success("Password reset link sent to ".concat(F)),z(!1),L("")},className:"w-full bg-[var(--rv-bg-primary)] text-[var(--rv-white)] py-2 rounded-lg",children:"Send Reset Link"})})]})})]})},theme5:e=>{let{roboUser:a,sitedata:r,login:s}=e,u=(0,c.useRouter)(),[g,p]=(0,l.useState)(x.name),[b,f]=(0,l.useState)(x.loginitems),[y,N]=(0,l.useState)(x.loginitems[0].login_value),[w,k]=(0,l.useState)({username:"",password:""}),[S,_]=(0,l.useState)({username:"",password:"",loginFor:x.loginitems[0].login_value,siteUrl:null==r?void 0:r.siteurl,callbackUrl:null==r?void 0:r.callbackurl,pcode:[],amount:[],arn_no:""}),[C,R]=(0,l.useState)(!1),[E,P]=(0,l.useState)(!1),[A,z]=(0,l.useState)(!1),[F,L]=(0,l.useState)(""),[D,U]=(0,l.useState)(!1);(0,l.useEffect)(()=>{let e=localStorage.getItem("investmentData");if(e){let a=JSON.parse(e),r=a.funds.map(e=>null==e?void 0:e.pcode),t=a.funds.map(e=>null==e?void 0:e.allocationAmount);_(e=>({...e,arn_no:a.arnnumber,pcode:r,amount:t}))}},[]),(0,l.useEffect)(()=>{_(e=>({...e,loginFor:"ADMIN"===y?"ADVISOR":y}))},[y]),(0,l.useEffect)(()=>{_(e=>({...e,username:w.username,password:w.password}))},[w]);let I=async()=>{U(!0);try{let e=await d.A.post("".concat("https://mundadafinserve.com").concat("ARN"===g?"/api/login/arn-login":"/api/login/ifa-login"),S);!0===e.data.status?(m.oR.success("Login successful \uD83C\uDF89"),u.push(e.data.url)):m.oR.error(e.data.msg||"Login failed")}catch(e){m.oR.error(e.message||"Something went wrong")}finally{U(!1)}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v.default,{title:"Login"}),(0,t.jsx)(m.N9,{}),(0,t.jsx)("div",{className:"bg-[var(--rv-bg-white)] flex items-center justify-center p-4",children:(0,t.jsx)("div",{className:"w-full max-w-7xl flex items-center justify-center main-section",children:(0,t.jsxs)("div",{className:"bg-[var(--rv-bg-white)] md:w-1/2 rounded-xl shadow-md border p-5 lg:p-10 flex flex-col justify-center",children:[(0,t.jsxs)("div",{className:"mb-8",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-2 px-4 py-2 bg-[var(--rv-bg-primary-light)] text-[var(--rv-primary)] rounded-full font-medium mb-4",children:[(0,t.jsx)("span",{className:"w-2 h-2 bg-[var(--rv-bg-primary)] rounded-full"}),"Welcome Back"]}),(0,t.jsx)("h1",{className:"text-4xl font-bold text-[var(--rv-gray-dark)] mb-2",children:"Sign In"}),(0,t.jsx)("p",{className:"text-[var(--rv-gray-dark)]",children:"Enter your credentials"})]}),(0,t.jsx)("div",{className:"grid sm:grid-cols-2 md:grid-cols-3 gap-3 mb-5",children:null==b?void 0:b.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>N(e.login_value),className:"px-3 py-2 rounded-md font-medium border transition-all duration-300\n ".concat(y===e.login_value?"bg-[var(--rv-bg-primary)] text-[var(--rv-white)] border-[var(--rv-bg-primary)]":"text-[var(--rv-black)] border-[var(--rv-bg-primary)] hover:bg-[var(--rv-bg-gray-light)]"),children:e.login_name},e._id))}),(0,t.jsxs)("div",{className:"mb-5",children:[(0,t.jsx)("label",{className:"block font-medium text-[var(--rv-secondary)] mb-2",children:"Username"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(n.l7z,{className:"absolute left-4 top-1/2 -translate-y-1/2 text-[var(--rv-secondary)]",size:20}),(0,t.jsx)("input",{type:"text",name:"username",placeholder:"Enter your username",value:w.username,onChange:e=>k({...w,username:e.target.value}),className:"w-full pl-12 pr-4 py-3 rounded-md border bg-[var(--rv-bg-white)] border-[var(--rv-gray)] focus:ring-2 focus:ring-[var(--rv-primary)] outline-none"})]})]}),(0,t.jsxs)("div",{className:"mb-5",children:[(0,t.jsx)("label",{className:"block font-medium text-[var(--rv-secondary)] mb-2",children:"Password"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(n.JhU,{className:"absolute left-4 top-1/2 -translate-y-1/2 text-[var(--rv-secondary)]",size:20}),(0,t.jsx)("input",{type:C?"text":"password",name:"password",placeholder:"Enter your password",value:w.password,onChange:e=>k({...w,password:e.target.value}),className:"w-full pl-12 pr-12 py-3 rounded-md border bg-[var(--rv-bg-white)] border-[var(--rv-gray)] focus:ring-2 focus:ring-[var(--rv-primary)] outline-none"}),(0,t.jsx)("button",{onClick:()=>R(!C),className:"absolute right-4 top-1/2 -translate-y-1/2 text-[var(--rv-gray)]",children:C?(0,t.jsx)(i._NO,{size:20}):(0,t.jsx)(n.Ny1,{size:20})})]})]}),(0,t.jsxs)("div",{className:"flex justify-between items-center mb-6",children:[(0,t.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer",children:[(0,t.jsx)("input",{type:"checkbox",checked:E,onChange:e=>P(e.target.checked),className:"w-4 h-4"}),(0,t.jsx)("span",{className:"text-[var(--rv-gray-dark)]",children:"Remember me"})]}),(0,t.jsx)("button",{onClick:()=>z(!0),className:"text-[var(--rv-primary-dark)] font-medium hover:underline",children:"Forgot Password?"})]}),(0,t.jsx)(h.A,{onClick:I,disabled:D,className:"rounded-lg py-3 font-semibold\n ".concat(D?"bg-[var(--rv-bg-gray)] curs
1or-not-allowed opacity-70":""),text:D?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.hW,{className:"animate-spin"})," Logging In..."]}):"Sign In"}),a&&(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsxs)("p",{className:"text-center",children:["Don't have an account?"," ",(0,t.jsx)(j(),{href:"/registration",className:"text-[var(--rv-primary)] font-semibold",children:"Sign Up"})]})})]})})}),A&&(0,t.jsx)("div",{className:"fixed inset-0 bg-black/40 backdrop-blur-sm flex items-center justify-center z-50 p-2",children:(0,t.jsxs)("div",{className:"bg-[var(--rv-bg-white)] p-6 rounded-2xl w-[90%] max-w-md relative",children:[(0,t.jsx)("div",{onClick:()=>z(!1),className:"absolute top-2 right-2 bg-[var(--rv-bg-red)] w-6 h-6 flex items-center justify-center text-[var(--rv-white)] rounded-full cursor-pointer",children:(0,t.jsx)(o.iCo,{})}),(0,t.jsx)("h5",{className:"font-bold text-center text-[var(--rv-primary)]",children:"Forgot Password"}),(0,t.jsx)("p",{className:"text-center mb-3",children:"Enter your email to receive a reset link."}),(0,t.jsx)("input",{type:"email",value:F,onChange:e=>L(e.target.value),className:"w-full border rounded-md px-4 py-3 mb-4 border-[var(--rv-black)] outline-none",placeholder:"Email"}),(0,t.jsx)("button",{onClick:()=>{if(!F)return alert("Enter your email");alert("Password reset link sent to ".concat(F)),z(!1)},className:"bg-[var(--rv-bg-primary)] text-[var(--rv-white)] py-3 rounded-md w-full",children:"Send Reset Link"})]})})]})}};function k(e){let{roboUser:a,sitedata:r,login:l}=e,{theme:n}=(0,s.D)(),i=w[n]||g;return(0,t.jsx)(i,{roboUser:a,sitedata:r,login:l})}},49498:(e,a,r)=>{"use strict";r.d(a,{cn:()=>l});var t=r(2821),s=r(75889);function l(){for(var e=arguments.length,a=Array(e),r=0;r<e;r++)a[r]=arguments[r];return(0,s.QP)((0,t.$)(a))}r(95704)},54422:(e,a,r)=>{Promise.resolve().then(r.bind(r,45427))}},e=>{e.O(0,[7125,3038,6711,6446,5479,844,9204,3873,585,5579,2545,5376,4909,754,2870,4744,3901,6699,2626,316,9511,9881,6290,6541,8881,6397,8441,1255,7358],()=>e(e.s=54422)),_N_E=e.O()}]);
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.