1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,245029,e=>{"use strict";var t=e.i(257765);e.s(["logEvent",0,(e,r)=>{try{t.default.track(e,r)}catch(e){console.error("Mixpanel tracking error:",e)}},"mixpanelIdentify",0,e=>{try{t.default.identify(e)}catch(e){console.error("Mixpanel identify error:",e)}},"mixpanelRegisterUser",0,e=>{try{t.default.register(e),t.default.people.set({firstName:e?.firstName||"",lastName:e?.lastName||"",membershipId:e?.membershipId||"",zanibalId:e?.zanibalId||"",phoneNumber:e?.phoneNumber||"",$email:e?.email||"",$name:`${e?.firstName||""} ${e?.lastName||""}`})}catch(e){console.error("Mixpanel register user error:",e)}},"mixpanelTrackTimer",0,e=>{try{t.default.time_event(e)}catch(e){console.error("Mixpanel track timer error:",e)}}])},998183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={assign:function(){return l},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return o}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});function i(e){let t={};for(let[r,a]of e.entries()){let e=t[r];void 0===e?t[r]=a:Array.isArray(e)?e.push(a):t[r]=[e,a]}return t}function s(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,a]of Object.entries(e))if(Array.isArray(a))for(let e of a)t.append(r,s(e));else t.set(r,s(a));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,a]of r.entries())e.append(t,a)}return e}},195057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={formatUrl:function(){return o},formatWithValidation:function(){return c},urlObjectKeys:function(){return l}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let i=e.r(190809)._(e.r(998183)),s=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,a=e.protocol||"",n=e.pathname||"",o=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(i.urlQueryToSearchParams(l)));let u=e.search||l&&`?${l}`||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||s.test(a))&&!1!==c?(c="//"+(c||""),n&&"/"!==n[0]&&(n="/"+n)):c||(c=""),o&&"#"!==o[0]&&(o="#"+o),u&&"?"!==u[0]&&(u="?"+u),n=n.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${a}${c}${n}${u}${o}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return o(e)}},718967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return N},NormalizeError:function(){return b},PageNotFoundError:function(){return x},SP:function(){return h},ST:function(){return g},WEB_VITALS:function(){return i},execOnce:function(){return s},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return l},isResSent:function(){return p},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return m},stringifyError:function(){return P}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function s(e){let t,r=!1;return(...a)=>(r||(r=!0,t=e(...a)),t)}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>o.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function p(e){return e.finished||e.headersSent}function m(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function f(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let a=await e.getInitialProps(t);if(r&&p(r))return a;
1if(!a)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${a}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return a}let h="u">typeof performance,g=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class b extends Error{}class x extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class N extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function P(e){return JSON.stringify({message:e.message,stack:e.stack})}},573668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return i}});let a=e.r(718967),n=e.r(652817);function i(e){if(!(0,a.isAbsoluteUrl)(e))return!0;try{let t=(0,a.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,n.hasBasePath)(r.pathname)}catch(e){return!1}}},284508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return a}});let a=e=>{}},522016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={default:function(){return y},useLinkStatus:function(){return x}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let i=e.r(190809),s=e.r(843476),o=i._(e.r(271645)),l=e.r(195057),c=e.r(8372),u=e.r(818581),d=e.r(718967),p=e.r(405550);e.r(233525);let m=e.r(91949),f=e.r(573668),h=e.r(509396);function g(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}function y(t){var r;let a,n,i,[l,y]=(0,o.useOptimistic)(m.IDLE_LINK_STATUS),x=(0,o.useRef)(null),{href:N,as:v,children:P,prefetch:S=null,passHref:C,replace:I,shallow:T,scroll:O,onClick:w,onMouseEnter:E,onTouchStart:j,legacyBehavior:A=!1,onNavigate:D,ref:_,unstable_dynamicOnHover:U,...M}=t;a=P,A&&("string"==typeof a||"number"==typeof a)&&(a=(0,s.jsx)("a",{children:a}));let R=o.default.useContext(c.AppRouterContext),k=!1!==S,F=!1!==S?null===(r=S)||"auto"===r?h.FetchStrategy.PPR:h.FetchStrategy.Full:h.FetchStrategy.PPR,{href:L,as:$}=o.default.useMemo(()=>{let e=g(N);return{href:e,as:v?g(v):e}},[N,v]);if(A){if(a?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});n=o.default.Children.only(a)}let z=A?n&&"object"==typeof n&&n.ref:_,B=o.default.useCallback(e=>(null!==R&&(x.current=(0,m.mountLinkInstance)(e,L,R,F,k,y)),()=>{x.current&&((0,m.unmountLinkForCurrentNavigation)(x.current),x.current=null),(0,m.unmountPrefetchableInstance)(e)}),[k,L,R,F,y]),H={ref:(0,u.useMergedRef)(B,z),onClick(t){A||"function"!=typeof w||w(t),A&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(t),!R||t.defaultPrevented||function(t,r,a,n,i,s,l){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,f.isLocalURL)(r)){i&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(699781);o.default.startTransition(()=>{d(a||r,i?"replace":"push",s??!0,n.current)})}}(t,L,$,x,I,O,D)},onMouseEnter(e){A||"function"!=typeof E||E(e),A&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),R&&k&&(0,m.onNavigationIntent)(e.currentTarget,!0===U)},onTouchStart:function(e){A||"function"!=typeof j||j(e),A&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),R&&k&&(0,m.onNavigationIntent)(e.currentTarget,!0===U)}};return(0,d.isAbsoluteUrl)($)?H.href=$:A&&!C&&("a"!==n.type||"href"in n.props)||(H.href=(0,p.addBasePath)($)),i=A?o.default.cloneElement(n,H):(0,s.jsx)("a",{...M,...H,children:a}),(0,s.jsx)(b.Provider,{value:l,children:i})}e.r(284508);let b=(0,o.createContext)(m.IDLE_LINK_STATUS),x=()=>(0,o.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
1dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},472064,e=>{"use strict";e.s(["ARMONE_WEB_SOURCE",0,"44","FUND_CASH_BALANCE_LOGIN_TRIGGER_KEY",0,"fundCashBalanceTriggerAfterLogin"])},624439,e=>{"use strict";var t=e.i(613555);let r=async e=>{try{let{data:r}=await t.axiosInstance.post("User/validate-user",e);return Promise.resolve(r)}catch(e){return Promise.reject(e)}},a=async e=>{try{let{data:r}=await t.axiosInstance.post("Otp/resend-otp",e);return Promise.resolve(r)}catch(e){return Promise.reject(e)}},n=async e=>{try{let{data:r}=await t.axiosInstance.post("Otp/validate-otp",e);return Promise.resolve(r)}catch(e){return Promise.reject(e)}},i=async e=>{try{let{data:r}=await t.axiosInstance.post("User/register",e);return Promise.resolve(r)}catch(e){return Promise.reject(e)}},s=async e=>{try{let{data:r}=await t.axiosInstance.post("UserPin/save",e);return Promise.resolve(r)}catch(e){return Promise.reject(e)}},o=async e=>{try{let{data:r}=await t.axiosInstance.post("auth/login",e);return Promise.resolve(r)}catch(e){return Promise.reject(e)}},l=async e=>{try{let{data:r}=await t.axiosInstance.post("/Otp/send-otp",e);return Promise.resolve(r)}catch(e){return Promise.reject(e)}},c=async e=>{try{let{data:r}=await t.axiosInstance.post("/Activation/confirm-masked-phone",e);return Promise.resolve(r)}catch(e){return Promise.reject(e)}};e.s(["createAccount",0,i,"createPin",0,s,"resendOtp",0,a,"sendOtp",0,l,"userLogin",0,o,"validateOtp",0,n,"validateUser",0,r,"verifyPhoneNumber",0,c])},963773,e=>{"use strict";let t=(0,e.i(768834).create)(e=>({currentStep:0,initiator:"profile",isOpen:!1,setStep:t=>e({currentStep:t}),nextStep:()=>e(e=>({currentStep:e.currentStep+1})),prevStep:()=>e(e=>({currentStep:Math.max(0,e.currentStep-1)})),start:(t,r)=>e({isOpen:!0,currentStep:r||0,initiator:t}),end:()=>e({isOpen:!1,currentStep:0})}));e.s(["useTourStore",0,t])},964541,e=>{"use strict";var t=e.i(613555);let r=async e=>{try{let{data:r}=await t.axiosInstance.get("Onboarding/missing-fields",{params:e});return r}catch(e){return Promise.reject(e)}},a=async e=>{try{let{data:r}=await t.axiosInstance.post("/onboarding/update-record",e);return r}catch(e){return Promise.reject(e)}};e.s(["checkForMissingFields",0,r,"updateUserRecord",0,a])},586135,e=>{"use strict";var t=e.i(8470);function r(e,r){let m,f,h=r?.additionalDigits??2,g=function(e){let t,r={},s=e.split(a);if(s.length>2)return r;if(/:/.test(s[0])?t=s[0]:(r.date=s[0],t=s[1],n.test(r.date)&&(r.date=e.split(n)[0],t=e.substr(r.date.length,e.length))),t){let e=i.exec(t);e?(r.time=t.replace(e[1],""),r.timezone=e[1]):r.time=t}return r}(e);if(g.date){let e=function(e,t){let r=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),a=e.match(r);if(!a)return{year:NaN,restDateString:""};let n=a[1]?parseInt(a[1]):null,i=a[2]?parseInt(a[2]):null;return{year:null===i?n:100*i,restDateString:e.slice((a[1]||a[2]).length)}}(g.date,h);m=function(e,t){var r,a,n,i,o,l,u,m,f,h;if(null===t)return new Date(NaN);let g=e.match(s);if(!g)return new Date(NaN);let y=!!g[4],b=c(g[1]),x=c(g[2])-1,N=c(g[3]),v=c(g[4]),P=c(g[5])-1;if(y){let e,s;return(r=v,a=P,r>=1&&r<=53&&a>=0&&a<=6)?(n=t,i=v,o=P,(e=new Date(0)).setUTCFullYear(n,0,4),s=e.getUTCDay()||7,e.setUTCDate(e.getUTCDate()+((i-1)*7+o+1-s)),e):new Date(NaN)}{let e=new Date(0);return(l=t,u=x,m=N,u>=0&&u<=11&&m>=1&&m<=(d[u]||(p(l)?29:28))&&(f=t,(h=b)>=1&&h<=(p(f)?366:365)))?(e.setUTCFullYear(t,x,Math.max(b,N)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!m||isNaN(m.getTime()))return new Date(NaN);let y=m.getTime(),b=0;if(g.time&&isNaN(b=function(e){var r,a,n;let i=e.match(o);if(!i)return NaN;let s=u(i[1]),l=u(i[2]),c=u(i[3]);return(r=s,a=l,n=c,24===r?0===a&&0===n:n>=0&&n<60&&a>=0&&a<60&&r>=0&&r<25)?s*t.millisecondsInHour+l*t.millisecondsInMinute+1e3*c:NaN}(g.time)))return new Date(NaN);if(g.timezone){if(isNaN(f=function(e){var r;if("Z"===e)return 0;let a=e.match(l);if(!a)return 0;let n="+"===a[1]?-1:1,i=parseInt(a[2]),s=a[3]&&parseInt(a[3])||0;return(r=s)>=0&&r<=59?n*(i*t.millisecondsInHour+s*t.millisecondsInMinute):NaN}(g.timezone)))return new Date(NaN)}else{let e=new Date(y+b),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return new Date(y+b+f)}let a=/[T ]/,n=/[Z ]/i,i=/([Z+-].*)$/,s=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,o=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,l=/^([+-])(\d{2})(?::?(\d{2}))?$/;function c(e){return e?parseInt(e):1}function u(e){return e&&parseFloat(e.replace(",","."))||0}let d=[31,null,31,30,31,30,31,31,30,31,30,31];function p(e){return e%400==0||e%4==0&&e%100!=0}e.s(["parseISO",()=>r])},680037,e=>{"use strict";var t=e.i(435684);function r(e){let r=(0,t.toDate)(e);return r.setHours(23,59,59,999),r}e.s(["endOfDay",()=>r])},273749,e=>{"use strict";var t=e.i(521416),r=e.i(680037),a=e.i(945919),n=e.i(586135),i=e.i(743004),s=e.i(647163),o=e.i(473297);let l=e=>!Number.isNaN((0,n.parseISO)(e).getTime()),c=i.z.object({id:i.z.string().min(1),companyName:i.z.string().min(1),offerType:i.z.union([i.z.literal("IPO"),i.z.literal("Rights Issue")]),pricePerUnit:i.z.number().positive(),minimumAmount:i.z.number().positive(),openDate:i.z.string().refine(l,"openDate must be a valid date"),closeDate:i.z.string().refine(l,"closeDate must be a valid date"),applicationsOpen:i.z.boolean()}).refine(e=>(0,n.parseISO)(e.closeDate)>=(0,n.parseISO)(e.openDate),{message:"closeDate must not be before openDate",path:["closeDate"]}),u=[{id:"dangote-refinery-2026",companyName:"Dangote Refinery",offerType:"IPO",pricePerUnit:525,minimumAmount:5250,openDate:"2026-09-09",closeDate:"2026-10-13",applicationsOpen:!0}].map(e=>c.parse(e)),d=e=>e.applicationsOpen,p={verified:e=>`You're set up to apply. Minimum ${e}.`,tier3Pending:e=>`Request a CSCS account to apply. Minimum ${e}.`,tier1:e=>`You're set up to apply. Minimum ${e}.`};e.s(["IPO_PORTAL_URL",0,"https://ngxoffers.arm.com.ng/","formatBannerBadge",0,e=>d(e)?"IPO"===e.offerType?"IPO OPEN":"RIGHTS ISSUE OPEN":"COMING SOON","formatBannerHeadline",0,e=>d(e)?`Apply for ${e.companyName} ${e.offerType}
1 â`:`${e.companyName} ${e.offerType} â coming soon`,"formatCardBadge",0,e=>d(e)?"Now open":"Coming soon","formatCardHeading",0,e=>`${e.companyName} ${e.offerType}`,"formatCloseDateLabel",0,e=>`Closes ${(0,a.format)((0,n.parseISO)(e.closeDate),"d MMM")}`,"formatCscsEmailSubject",0,e=>`${e.companyName} ${e.offerType} Offer`,"formatCtaLabel",0,(e,t)=>"verified"===t||"tier1"===t?d(e)?"Apply now":"Coming soon":"Create CSCS Account","formatCtaSubtext",0,(e,t)=>{let r=(0,s.priceFormatter)(e.minimumAmount,o.Currency.NGN,!1,!0);return"verified"!==t&&"tier1"!==t||d(e)?p[t](r):`Applications open soon. Minimum ${r}.`},"formatDaysLeftLabel",0,(e,r=new Date)=>{let a=((e,r=new Date)=>Math.max((0,t.differenceInCalendarDays)((0,n.parseISO)(e.closeDate),r),0))(e,r);return 1===a?"1 day left":`${a} days left`},"formatPricePerUnitLabel",0,e=>`From ${(0,s.priceFormatter)(e.pricePerUnit,o.Currency.NGN)}/unit`,"getActiveCampaign",0,(e,t=new Date)=>e.find(e=>((e,t=new Date)=>t<=(0,r.endOfDay)((0,n.parseISO)(e.closeDate)))(e,t)),"ipoCampaigns",0,u,"isAcceptingApplications",0,d])},453017,e=>{"use strict";var t=e.i(843476),r=e.i(245029),a=e.i(273749);e.s(["default",0,({source:e})=>{let n=(0,a.getActiveCampaign)(a.ipoCampaigns);if(!n)return null;let i=(0,a.isAcceptingApplications)(n),s=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"inline-block rounded-full bg-[#FEF3F2] text-primary-color text-11 font-extrabold tracking-wide px-2.5 py-1 mb-2",children:(0,a.formatBannerBadge)(n)}),(0,t.jsx)("p",{className:"text-white text-base md:text-lg font-extrabold leading-snug",children:(0,a.formatBannerHeadline)(n)}),(0,t.jsx)("p",{className:"text-white/75 text-sm font-medium mt-0.5",children:(0,a.formatPricePerUnitLabel)(n)})]}),o="w-full max-w-[487px] text-left rounded-[10px] bg-primary-color px-5 py-4 md:px-6 md:py-5";return i?(0,t.jsx)("button",{type:"button",onClick:()=>{(0,r.logEvent)("ipo_banner_clicked",{source:e,campaignId:n.id}),window.open(a.IPO_PORTAL_URL,"_blank")},className:o,children:s}):(0,t.jsx)("div",{className:o,children:s})}])},523426,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(743004),n=e.i(994814),i=e.i(653145),s=e.i(522016),o=e.i(954616),l=e.i(912598),c=e.i(618566),u=e.i(970065);e.i(786262);var d=e.i(310474),p=e.i(88560),m=e.i(167881),f=e.i(62770),h=e.i(624439),g=e.i(580216),y=e.i(647163),b=e.i(205559),x=e.i(91976),N=e.i(716229),v=e.i(473297),P=e.i(437173),S=e.i(964541),C=e.i(961813),I=e.i(245029),T=e.i(963773),O=e.i(472064),w=e.i(453017);let E=a.z.object({email:a.z.preprocess(e=>"string"==typeof e?e.trim().toLowerCase():e,a.z.string().min(1,{message:"Email Address must not be empty."}).max(254,{message:"Email Address cannot exceed 254 characters."}).email({message:"Please enter a valid email address (e.g., [email protected])."})),password:a.z.string().min(1,{message:"Password must not be empty."}),isPasswordEncrypted:a.z.boolean()});e.s(["default",0,()=>{let[e,a]=(0,r.useState)(!1),j=(0,c.useRouter)(),A=(0,c.useSearchParams)(),D=A.get("page"),_=A.get("email")??"",{setCreateAccountData:U,setStep:M,setIsAccountComplete:R,setActivationData:k}=(0,g.useClientStates)(),{setUser:F}=(0,b.useUser)(),{showToast:L,hideToast:$}=(0,P.useAuthToast)(),{start:z}=(0,T.useTourStore)(),B=(0,l.useQueryClient)(),{mutateAsync:H}=(0,o.useMutation)({mutationFn:S.checkForMissingFields}),{mutateAsync:G}=(0,o.useMutation)({mutationFn:h.userLogin}),K=(0,i.useForm)({resolver:(0,n.zodResolver)(E),delayError:1e3,defaultValues:{email:_,password:"",isPasswordEncrypted:!0},mode:"onChange"}),{control:V,formState:{isValid:W}}=K;return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4 pb-10 px-4 md:px-0",children:[(0,t.jsx)(w.default,{source:"login"}),(0,t.jsxs)(u.Card,{className:"md:w-[487px] w-full shadow-none border-0 xl:border",children:[(0,t.jsx)(u.CardHeader,{className:"px-0 pt-0",children:(0,t.jsx)(u.CardTitle,{children:(0,t.jsx)("span",{className:"text-24 font-bold leading-7",children:"Welcome back"})})}),(0,t.jsx)(u.CardContent,{className:"px-0 ",children:(0,t.jsx)(d.FormProvider,{methods:K,onSubmit:e=>{a(!0),y.cookieManager.clear(),y.storeManager.clear(),(0,I.mixpanelTrackTimer)("login"),(0,I.logEvent)("login",{}),$(),G({email:e?.email,pin:"",password:(0,N.encryptDataToServer)(e?.password),isPasswordEncrypted:!0}).then(t=>{if((0,I.logEvent)("login",{email:t?.data?.email||""}),y.cookieManager.set("deeplinkPage",D),(0,I.mixpanelIdentify)(t?.data?.email),(0,I.mixpanelRegisterUser)({firstName:t?.data?.f
1irstname||"",lastName:t?.data?.lastname||"",membershipId:t?.data?.membershipId||"",zanibalId:t?.data?.zanibalId||"",phoneNumber:t?.data?.phone||"",email:t?.data?.email||""}),t?.status){sessionStorage.setItem(O.FUND_CASH_BALANCE_LOGIN_TRIGGER_KEY,"1");let r=(0,v.isTier3)(t?.data?.accountTier||"")&&t?.data?.approvalStatus?.toLowerCase()==="pending"?v.AccountTier.TIER_ONE:t?.data?.accountTier;if((0,y.setTokenCookies)(t?.data?.token,t?.data?.expiresAt),F({name:t?.data?.firstname+" "+t?.data?.lastname,email:t?.data?.email,phone:t?.data?.phone,firstName:t?.data?.firstname,lastName:t?.data?.lastname,membershipId:t?.data?.membershipId,activePortfolio:t?.data?.membershipId||void 0,activePortfolioTier:r,accountTier:r,dateOfBirth:t?.data?.dateOfBirth,cscsStatus:t?.data?.cscsStatus||null,cscsNumber:t?.data?.cscsNumber,tokenExpirationTime:t?.data?.expiresAt,refreshToken:t?.data?.refreshToken,isMigratedUser:t?.data?.isMigratedUser,isBVNVerified:t?.data?.isBVNVerified,isDefault:!0,bvnStatusForMigratedUser:t?.data?.bvnStatusForMigratedUser,hasTransactionPin:t?.data?.hasPin,upgradeStatus:r===v.AccountTier.TIER_THREE?"approved":null,liveMarketInterval:t?.data?.liveMarketInterval}),t?.data?.membershipId&&!t?.data?.tourGuideStatus&&z("dashboard",0),t?.data?.isTemporaryPassword){U({email:t?.data?.email||"",phoneNumber:t?.data?.phone,firstName:t?.data?.firstname,lastName:t?.data?.lastname,dateOfBirth:t?.data?.dateOfBirth||"",temporaryPassword:e?.password||"",hasPin:t?.data?.hasPin||!1}),M(x.stepEnums.CREATE_PASSWORD),j.push(f.routePath.createPassword);return}t?.data?.activationStatus?.toLowerCase()==="pending"&&(t?.data?.maskedPhoneNumber||t?.data?.activationRemark)?(k({firstName:t?.data?.firstname||"",surname:t?.data?.lastname||"",email:t?.data?.email||"",maskedPhoneNumber:t?.data?.activationRemark?"":t?.data?.maskedPhoneNumber||"",phone:""}),M(x.stepEnums.ACTIVATE_ACCT),j.push(f.routePath.createAcctActivateAcct)):t?.data?.activationStatus?.toLowerCase()==="completed"&&t?.data?.hasActivated&&t?.data?.membershipId?H({membershipId:t?.data?.membershipId}).then(e=>{if(e?.status){let{missingDataSections:r}=e?.data||{},a=Object.entries(r).some(([e,t])=>{if(e?.toLowerCase()==="bank"&&(Object.keys(t)?.length===0||t?.[0]?.StatusDescription&&t?.[0]?.StatusDescription?.toLowerCase()!="active"))return!0}),n=Object.values(r).some(e=>{if(Object.keys(e)?.length===0||e?.[0]?.StatusDescription&&e?.[0]?.StatusDescription?.toLowerCase()!="active")return!0});e?.data?.accountTier===v.AccountTier.TIER_ONE&&a||e?.data?.accountTier===v.AccountTier.TIER_THREE&&n?(B.setQueryData([C.QueryKeys.CHECK_FOR_MISSING_FIELDS],{...e}),M(x.stepEnums.MISSING_FIELDS),R(!1),j.replace(f.routePath.activateUpdateInformation())):(y.cookieManager.remove("step"),R(!0),t?.data?.isMigratedUser&&!t?.data.isBVNVerified&&t?.data?.bvnStatusForMigratedUser===""?j.replace(f.routePath.verifyIdentity):j.push(f.routePath.dashboard))}}).catch(e=>{t?.data?.token?j.push(f.routePath.dashboard):(a(!1),e?.message&&L({message:e?.message,type:"error",position:{default:"top-center"}}))}):t.status&&(R(!0),t?.data?.isMigratedUser&&!t?.data.isBVNVerified&&t?.data?.bvnStatusForMigratedUser===""?j.replace(f.routePath.verifyIdentity):j.push(f.routePath.dashboard))}else a(!1),t?.message&&L({message:t?.message,type:"error",position:{default:"top-center"}})}).catch(e=>{a(!1),e?.message&&L({message:e?.message,type:"error",position:{default:"top-center"}})})},children:(0,t.jsxs)("div",{className:"flex flex-col gap-7",children:[(0,t.jsx)(p.RHFInput,{label:"Email Address",name:"email",control:V}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)(p.RHFInput,{control:V,label:"Password",name:"password",type:"password"}),(0,t.jsx)(s.default,{href:f.routePath.forgotPassword,className:"text-primary-color font-bold ml-auto text-right text-sm w-fit",children:"Forgot Password?"})]}),(0,t.jsx)(s.default,{href:f.routePath.activateAccount,children:(0,t.jsx)("p",{className:"text-primary-color font-bold text-center text-14 my-3",children:"Activate existing account"})}),(0,t.jsx)(m.Button,{type:"submit",loading:e,disabled:!W,className:"h-[56px] disabled:cursor-not-allowed disabled:pointer-events-auto text-sm font-semibold",children:"Continue"})]})})}),(0,t.jsx)(u.CardFooter,{className:"p-0",children:(0,t.jsxs)("span",{className:"text-sm text-text-body font-medium",children:["Don't have an account?",(0,t.jsx)(s.default,{href:f.routePath.createAccount,onClick:()=>U(null),className:"text-primary-color font-bold ml-2",children:"Sign up"})]})}),(0,t.jsx)(u.CardFooter,{className:"p-0 pt-7",children:(0,t.jsxs)("span",{className:"text-sm text-text-body font-medium",children:["Are you a Private Wealth Client?",(0,t.jsx)("a",{href:"https://armonev1.arm.com.ng/auth/login",className:"text-primary-color font-bold ml-2",target:"_blank",children:"Click here to login"})]})})]})]})})}])}]);
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.