1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,114363,e=>{"use strict";var s=e.i(843476),t=e.i(522016),r=e.i(657688),a=e.i(489676);e.s(["AuthPageWrapper",0,function({children:e}){return(0,s.jsxs)("div",{className:"auth-page scrollbar-hide relative h-screen overflow-hidden bg-[var(--ac-bg)]",children:[(0,s.jsxs)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 z-0",children:[(0,s.jsx)("div",{className:"absolute inset-0 auth-grid"}),(0,s.jsx)("div",{className:"auth-blob auth-blob-cyan"}),(0,s.jsx)("div",{className:"auth-blob auth-blob-orange"}),(0,s.jsx)("div",{className:"absolute left-1/2 top-1/2 size-[clamp(360px,85vw,680px)] -translate-x-1/2 -translate-y-1/2 rounded-full bg-[radial-gradient(circle,rgba(0,174,198,0.15),transparent_62%)] blur-3xl"})]}),(0,s.jsxs)("header",{className:"absolute inset-x-0 top-0 z-[3] flex items-center justify-between px-5 py-4 sm:px-6",children:[(0,s.jsxs)(t.default,{href:"/","aria-label":"Go to SOL AI home",className:"flex items-center rounded-md transition-opacity hover:opacity-80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sol-cyan/50",children:[(0,s.jsx)(r.default,{src:"/logo/logo-light.png",alt:"SOL AI",width:500,height:500,sizes:"140px",priority:!0,className:"-my-4 h-16 w-auto object-contain sm:h-20 dark:hidden"}),(0,s.jsx)(r.default,{src:"/logo/logo-dark.png",alt:"SOL AI",width:500,height:500,sizes:"140px",priority:!0,className:"-my-4 hidden h-16 w-auto object-contain sm:h-20 dark:block"})]}),(0,s.jsx)(a.ThemeToggle,{className:"border-sol-cyan/30 bg-sol-cyan/5 text-sol-cyan backdrop-blur hover:bg-sol-cyan/10"})]}),(0,s.jsx)("main",{className:"scrollbar-hide relative z-[2] h-full overflow-y-auto",children:(0,s.jsx)("div",{className:"flex min-h-full items-center justify-center px-4 py-8",children:(0,s.jsx)("div",{className:"w-full max-w-md rounded-2xl border border-border bg-card/80 p-4 shadow-[0_20px_60px_-20px_rgba(0,0,0,0.3)] backdrop-blur-xl sm:p-5",children:e})})})]})}])},371826,e=>{"use strict";var s=e.i(843476),t=e.i(271645),r=e.i(897250),a=e.i(39312),i=e.i(595468),o=e.i(327225),n=e.i(370561),l=e.i(877377),c=e.i(480223),d=e.i(7244),u=e.i(763648);function m({children:e,viewKey:t}){return(0,s.jsx)("div",{className:"auth-fade",children:e},t)}function x(){let{authView:e}=(0,o.useAppStore)(),[x,p]=t.useState(!1);return t.useEffect(()=>{function e(){p(window.innerWidth<1024)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,s.jsxs)("div",{className:"h-screen flex relative overflow-hidden",children:[(0,s.jsx)(n.ParticleBackground,{}),(0,s.jsxs)("div",{className:"relative z-10 flex w-full h-full",children:[!x&&(0,s.jsx)("div",{className:"hidden lg:flex lg:w-[45%] flex-col items-center justify-center p-12",children:(0,s.jsxs)("div",{className:"auth-slide-left text-center max-w-sm",children:[(0,s.jsx)("div",{className:"auth-pop mb-8",children:(0,s.jsxs)("div",{className:"relative inline-flex items-center justify-center size-24 rounded-2xl bg-primary/15 border border-primary/20 mx-auto",children:[(0,s.jsx)(r.Sun,{className:"size-12 text-primary"}),(0,s.jsx)("div",{className:"absolute inset-0 rounded-2xl bg-primary/10 blur-xl -z-10"})]})}),(0,s.jsx)("h1",{className:"auth-rise text-5xl font-extrabold tracking-tight text-foreground mb-3",style:{animationDelay:"0.15s"},children:"SolAI"}),(0,s.jsx)("p",{className:"auth-rise text-base text-muted-foreground mb-8 leading-relaxed",style:{animationDelay:"0.25s"},children:"AI-powered solar plant monitoring, management, and analytics platform"}),(0,s.jsxs)("div",{className:"auth-rise space-y-3 text-sm text-muted-foreground text-left",style:{animationDelay:"0.35s"},children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"flex items-center justify-center size-8 rounded-lg bg-primary/10 border border-primary/15 shrink-0",children:(0,s.jsx)(a.Zap,{className:"size-4 text-primary"})}),(0,s.jsx)("span",{children:"Real-time plant monitoring"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"flex items-center justify-center size-8 rounded-lg bg-primary/10 border border-primary/15 shrink-0",children:(0,s.jsx)(r.Sun,{className:"size-4 text-primary"})}),(0,s.jsx)("span",{children:"Advanced analytics & insights"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"flex items-center justify-center size-8 rounded-lg bg-eco/10 border border-eco/15 shrink-0",children:(0,s.jsx)(i.CheckCircle2,{className:"size-4 text-eco"})}),(0,s.jsx)("span",{children:"Smart alerts & notifications"})]})]}),(0,s.jsx)("div",{className:"auth-rise mt-8 h-px w-32 mx-auto bg-gradient-to-r from-transparent via-primary/40 to-transparent",style:{animationDelay:"0.5s"}})]})}),(0,s.jsx)("div",{className:"flex-1 overflow-y-auto",children:(0,s.jsx)("div",{className:"flex min-h-full items-center justify-center px-6 py-8 sm:py-10",children:(0,s.jsxs)("div",{className:"w-full max-w-[420px]",children:[x&&(0,s.jsxs)("div",{className:"auth-rise flex items-center gap-2 mb-8",children:[(0,s.jsx)("div",{className:"flex items-center justify-center size-9 rounded-lg bg-primary/15 border border-primary/20",children:(0,s.jsx)(r.Sun,{className:"size-4 text-primary"})}),(0,s.jsx)("span",{className:"text-lg font-bold text-foreground",children:"SolAI"})]}),(0,s.jsx)("div",{className:"auth-rise rounded-2xl p-6 sm:p-8 glass",children:(0,s.jsx)(m,{viewKey:e,children:(()=>
1{switch(e){case"login":default:return(0,s.jsx)(l.LoginForm,{});case"register":return(0,s.jsx)(c.RegisterForm,{});case"forgot-password":return(0,s.jsx)(d.ForgotPasswordForm,{});case"reset-password":return(0,s.jsx)(u.ResetPasswordForm,{})}})()})})]})})})]})]})}e.s(["AuthShell",0,x,"default",0,x])},385882,e=>{"use strict";var s=e.i(843476);e.s(["AuthSubmitButton",0,function({children:e,loading:t,loadingText:r}){return(0,s.jsx)("button",{type:"submit",disabled:t,className:"auth-submit mt-1 h-10 w-full rounded-[10px] bg-sol-cyan font-orbitron text-sm font-bold uppercase text-sol-navy shadow-[0_0_30px_rgba(0,229,255,0.25)] transition-all duration-300 hover:-translate-y-0.5 hover:brightness-110 focus:outline-none disabled:translate-y-0 disabled:opacity-70",style:{letterSpacing:"2px"},children:t?(0,s.jsxs)("span",{className:"flex items-center justify-center gap-2",children:[(0,s.jsx)("span",{className:"size-4 animate-spin rounded-full border-2 border-sol-navy border-t-transparent"}),r??"Please wait..."]}):e})}])},828899,e=>{"use strict";var s=e.i(843476),t=e.i(271645),r=e.i(522016),a=e.i(618566),i=e.i(284614),o=e.i(607486),n=e.i(871689),l=e.i(877377),c=e.i(480223),d=e.i(114174),u=e.i(785886);let m={login:{title:"Welcome back",subtitle:"Sign in to your SOL AI command center"},register:{title:"Create account",subtitle:"Start managing solar energy, intelligently"}},x={login:"/login",register:"/register"},p=[{key:"individual",label:"Individual",desc:"For home solar owners",icon:i.User},{key:"enterprise",label:"Enterprise",desc:"For installers & companies",icon:o.Building2}];e.s(["AuthTabs",0,function({mode:e}){let i=(0,a.useRouter)(),o=m[e],[h,g]=t.useState(!1),[f,b]=t.useState(null),[j,y]=t.useState(e);j!==e&&(y(e),b(null));let v=s=>{s!==e&&i.push(x[s])},w="register"===e&&!f,N=f?p.find(e=>e.key===f):null;return(0,s.jsxs)("div",{className:"w-full max-w-[420px]",children:["login"===e&&!h&&(0,s.jsxs)(r.default,{href:"/",className:"mb-3 inline-flex items-center gap-1 text-xs font-medium text-muted-foreground transition-colors hover:text-sol-cyan",children:[(0,s.jsx)(n.ArrowLeft,{className:"size-3.5"}),"Back to home"]}),(0,s.jsxs)("div",{className:"mb-2.5",children:[(0,s.jsx)("h1",{className:"font-orbitron text-[22px] font-bold leading-tight text-foreground",children:o.title}),(0,s.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:w?"How will you use SOL AI?":o.subtitle})]}),w?(0,s.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:p.map(({key:e,label:t,desc:r,icon:a})=>(0,s.jsxs)("button",{type:"button",onClick:()=>{b(e),(0,u.setSignupAccountType)(e)},className:"group flex flex-col items-start gap-2 rounded-xl border border-sol-cyan/20 bg-sol-cyan/[0.04] p-4 text-left transition-all hover:-translate-y-0.5 hover:border-sol-cyan hover:bg-sol-cyan/10",children:[(0,s.jsx)("span",{className:"flex size-9 items-center justify-center rounded-lg bg-sol-cyan/15 text-sol-cyan transition-colors group-hover:bg-sol-cyan/20",children:(0,s.jsx)(a,{className:"size-5"})}),(0,s.jsx)("span",{className:"text-sm font-semibold text-foreground",children:t}),(0,s.jsx)("span",{className:"text-xs text-muted-foreground",children:r})]},e))}):(0,s.jsxs)(s.Fragment,{children:[N&&!h&&(0,s.jsxs)("button",{type:"button",onClick:()=>b(null),className:"mb-3 inline-flex items-center gap-1 text-xs font-medium text-muted-foreground transition-colors hover:text-sol-cyan",children:[(0,s.jsx)(n.ArrowLeft,{className:"size-3.5"}),N.label]}),!h&&(0,s.jsx)(d.SocialButtons,{}),!h&&(0,s.jsxs)("div",{className:"my-2.5 flex items-center gap-3 text-xs text-muted-foreground",children:[(0,s.jsx)("span",{className:"h-px flex-1 bg-sol-cyan/15"}),"or continue with email",(0,s.jsx)("span",{className:"h-px flex-1 bg-sol-cyan/15"})]}),"login"===e?(0,s.jsx)(l.LoginForm,{onOtpStep:g}):(0,s.jsx)(c.RegisterForm,{onSwitchToLogin:()=>v("login"),onOtpStep:g})]}),(0,s.jsx)("p",{className:"mt-2.5 text-center text-sm text-muted-foreground",children:"login"===e?(0,s.jsxs)(s.Fragment,{children:["Don't have an account?"," ",(0,s.jsx)("button",{type:"button",onClick:()=>v("register"),className:"font-medium text-sol-cyan hover:brightness-110 focus:outline-none",children:"Sign up"})]}):(0,s.jsxs)(s.Fragment,{children:["Already have an account?"," ",(0,s.jsx)("button",{type:"button",onClick:()=>v("login"),className:"font-medium text-sol-cyan hover:brightness-110 focus:outline-none",children:"Sign in"})]})})]})}])},683847,e=>{"use strict";
1var s=e.i(843476),t=e.i(21218),r=e.i(273705),a=e.i(252754),i=e.i(686220),o=e.i(975157);function n({className:e}){return(0,s.jsxs)("div",{className:(0,o.cn)("relative grid place-items-center",e),children:[(0,s.jsx)("div",{className:"hero-glow absolute inset-0 rounded-full bg-[radial-gradient(circle,rgba(0,174,198,0.4),transparent_65%)] blur-2xl"}),(0,s.jsx)("div",{className:"hero-ring absolute inset-[2%] rounded-full border border-dashed border-sol-cyan/30"}),(0,s.jsx)("div",{className:"hero-ring hero-ring-2 absolute inset-[18%] rounded-full border border-dashed border-sol-cyan/25"}),(0,s.jsx)("div",{className:"hero-orb absolute inset-[28%] rounded-full bg-[radial-gradient(circle_at_35%_30%,#e6f8ff,#00aec6_72%)] shadow-[0_0_50px_-4px_rgba(0,174,198,0.7)]"})]})}e.i(716475),e.i(912575),Array.from({length:14},(e,s)=>{let t=(s+1)/14;return{z:-(2.7*t),scale:1-t*t*.16,brightness:.72-.46*t}}),e.i(529996),e.i(92234),e.i(31376),e.i(664064),e.i(29690),e.i(942947),e.i(861351),e.i(172179),e.i(842141),e.i(927764),e.i(527642),e.i(776685),e.i(522016);var l=e.i(657688);function c({light:e=!1,size:t=34,markOnly:r=!1,className:a}){return(0,s.jsxs)("span",{className:(0,o.cn)("flex select-none items-center gap-2.5",a),children:[(0,s.jsx)(l.default,{src:"/icon/main_logo.png",alt:"SOL AI",width:t,height:t,className:"object-contain",priority:!0}),!r&&(0,s.jsxs)("span",{className:(0,o.cn)("font-extrabold transition-colors",e?"text-white":"text-foreground"),style:{letterSpacing:"0.18em"},children:["SOL ",(0,s.jsx)("span",{className:"text-sol-orange",children:"AI"})]})]})}function d({icon:e,title:t,subtitle:r}){return(0,s.jsxs)("div",{className:"group flex items-center gap-3 rounded-xl border border-sol-cyan/15 bg-sol-cyan/[0.04] px-4 py-3 transition-all duration-300 hover:translate-x-1 hover:border-sol-cyan/40",children:[(0,s.jsx)("div",{className:"flex size-9 shrink-0 items-center justify-center rounded-lg border border-sol-cyan/25 bg-sol-cyan/10",children:(0,s.jsx)(e,{className:"size-4 text-sol-cyan"})}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("p",{className:"text-sm font-medium leading-tight text-foreground",children:t}),(0,s.jsx)("p",{className:"mt-0.5 text-xs text-muted-foreground",children:r})]})]})}e.i(213063),e.i(847645),e.i(126526),e.i(293492),e.s(["BrandingPanel",0,function(){return(0,s.jsxs)("div",{className:"relative hidden h-full flex-col justify-between overflow-hidden p-10 min-[960px]:flex xl:p-14",children:[(0,s.jsx)("div",{className:"flex items-center",children:(0,s.jsx)(c,{size:38})}),(0,s.jsxs)("div",{className:"relative flex min-h-[220px] flex-1 items-center justify-center py-4",children:[(0,s.jsx)(n,{className:"size-44 xl:size-52"}),(0,s.jsx)(i.GenerationChip,{className:"left-0 top-[8%]"}),(0,s.jsx)(i.SavingsChip,{className:"right-0 top-[16%]"}),(0,s.jsx)(i.HealthChip,{className:"bottom-[14%] left-[6%]"})]}),(0,s.jsxs)("div",{className:"space-y-5",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("h2",{className:"text-3xl font-bold leading-tight text-foreground xl:text-4xl",children:["Your solar,"," ",(0,s.jsx)("span",{className:"bg-gradient-to-r from-sol-cyan to-sol-orange bg-clip-text text-transparent",children:"monitored."})]}),(0,s.jsx)("p",{className:"mt-3 max-w-sm text-sm leading-relaxed text-muted-foreground",children:"Connect your existing inverter and let AI watch your system â savings, health, and alerts, all in plain language."})]}),(0,s.jsxs)("div",{className:"space-y-2.5",children:[(0,s.jsx)(d,{icon:t.Activity,title:"Smart monitoring",subtitle:"Your whole system, checked automatically"}),(0,s.jsx)(d,{icon:r.BellRing,title:"WhatsApp alerts",subtitle:"Know when a fault is detected"}),(0,s.jsx)(d,{icon:a.Wallet,title:"Savings in rupees",subtitle:"Clear numbers, no kilowatt jargon"})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 pt-2 text-xs text-muted-foreground",children:[(0,s.jsx)("span",{className:"auth-live-dot size-2 rounded-full bg-sol-cyan shadow-[0_0_8px_2px_rgba(0,229,255,0.6)]"}),(0,s.jsx)("span",{children:"Built for home solar owners across Pakistan"})]})]})}],683847)},278240,e=>{"use strict";var s=e.i(843476),t=e.i(271645);let r="w-full h-9 rounded-[10px] border bg-sol-cyan/[0.04] text-sm text-foreground placeholder-muted-foreground focus:outline-none focus:shadow-[0_0_0_4px_rgba(0,229,255,0.08)] transition-all duration-300";function a(e){return e?"border-red-400 focus:border-red-400":"border-sol-cyan/20 focus:border-sol-cyan"}function i({htmlFor:e,children:t}){return t?(0,s.jsx)("label",{htmlFor:e,className:"mb-0.5 block text-[11px] font-medium uppercase text-muted-foreground",style:{letterSpacing:"1.5px"},children:t}):null}function o({message:e}){return e?(0,s.jsx)("p",{className:"mt-1.5 text-xs text-red-400",children:e}):null}function n({icon:e}){return e?(0,s.jsx)("span",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground transition-colors duration-300 group-focus-within:text-sol-cyan",children:e}):null}function l(){return(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"size-[18px]",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:[(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]})}function c(){return(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"size-[18px]",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"})})}let d=t.forwardRef(({error:e,label:t,icon:l,className:c,id:d,...u},m)=>(0,s.jsxs)("div",{children:[(0,s.jsx)(i,{htmlFor:d,children:t}),(0,s.jsxs)("div",{className:"group relative",children:[(0,s.jsx)(n,{icon:l}),(0,s.jsx)("input",{ref:m,id:d,className:`${r} ${a(!!e)} ${l?"pl-10 pr-4":"px-4"} ${c??""}`,...u})]}),(0,s.jsx)(o,{message:e})]}));d.displayName="CyanInput";let u=t.forwardRef(({error:e,label:d,icon:u,className:m,id:x,...p},h)=>{let[g,f]=t.useState(!1);return(0,s.jsxs)("div",{children:[(0,s.jsx)(i,{htmlFor:x,children:d}),(0,s.jsxs)("div",{className:"group relative",children:[(0,s.jsx)(n,{icon:u}),(0,s.jsx)("input",{ref:h,id:x,type:g?"text":"password",className:`${r} ${a(!!e)} ${u?"pl-10":"pl-4"} pr-11 ${m??""}`,...p}),(0,s.jsx)("button",{type:"button",onClick:()=>f(e=>
1!e),"aria-label":g?"Hide password":"Show password",tabIndex:-1,className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-sol-cyan focus:outline-none transition-colors",children:g?(0,s.jsx)(c,{}):(0,s.jsx)(l,{})})]}),(0,s.jsx)(o,{message:e})]})});u.displayName="CyanPasswordInput",e.s(["CyanInput",0,d,"CyanPasswordInput",0,u])},7244,e=>{"use strict";var s=e.i(843476),t=e.i(271645),r=e.i(653145),a=e.i(994814),i=e.i(618566),o=e.i(871689),n=e.i(263488),l=e.i(595468),c=e.i(919351),d=e.i(188397),u=e.i(998289),m=e.i(908406),x=e.i(278240),p=e.i(385882);e.s(["ForgotPasswordForm",0,function(){let e=(0,i.useRouter)(),h=(0,c.useForgotPassword)(),[g,f]=t.useState(!1),{register:b,handleSubmit:j,formState:{errors:y}}=(0,r.useForm)({resolver:(0,a.zodResolver)(d.forgotPasswordSchema),defaultValues:{email:""}});async function v(e){try{let s=await h.mutateAsync({email:e.email});(0,m.toast)({variant:"success",title:"Email sent!",description:s.message??"If this email is registered, a reset link has been sent."}),f(!0)}catch(s){let e=(0,u.getAxiosErrorMessage)(s,"Failed to send reset email. Please try again.");(0,m.toast)({variant:"destructive",title:"Request Failed",description:e})}}return(0,s.jsxs)("div",{className:"w-full max-w-[420px]",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>e.push("/login"),className:"mb-6 flex items-center gap-1.5 text-sm text-sol-cyan hover:brightness-110 focus:outline-none transition-colors",children:[(0,s.jsx)(o.ArrowLeft,{className:"size-4"}),"Back to sign in"]}),g?(0,s.jsxs)("div",{className:"flex flex-col items-center gap-5 text-center",children:[(0,s.jsx)("div",{className:"flex size-16 items-center justify-center rounded-full border-2 border-sol-cyan bg-sol-cyan/10",children:(0,s.jsx)(l.CheckCircle2,{className:"size-8 text-sol-cyan"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"font-orbitron text-[22px] font-bold text-foreground",children:"Check your email"}),(0,s.jsx)("p",{className:"mt-1.5 text-sm text-muted-foreground",children:"We've sent a password reset link to your email address."})]}),(0,s.jsx)("button",{type:"button",onClick:()=>e.push("/login"),className:"auth-submit h-11 w-full rounded-[10px] bg-sol-cyan text-sm font-bold uppercase text-sol-navy shadow-[0_0_30px_rgba(0,229,255,0.25)] transition-all duration-300 hover:-translate-y-0.5 hover:brightness-110 focus:outline-none",style:{letterSpacing:"2px"},children:"Back to Sign in"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"mb-6",children:[(0,s.jsx)("h1",{className:"font-orbitron text-[26px] font-bold leading-tight text-foreground",children:"Forgot password?"}),(0,s.jsx)("p",{className:"mt-1.5 text-sm text-muted-foreground",children:"Enter your email and we'll send you a reset link."})]}),(0,s.jsxs)("form",{className:"flex flex-col gap-4",onSubmit:j(v),children:[(0,s.jsx)(x.CyanInput,{...b("email"),id:"forgot-email",type:"text",label:"Email",placeholder:"[email protected]",autoComplete:"email",icon:(0,s.jsx)(n.Mail,{className:"size-4"}),error:y.email?.message}),(0,s.jsx)(p.AuthSubmitButton,{loading:h.isPending,loadingText:"Sending...",children:"Send reset link"})]})]})]})}])},877377,e=>{"use strict";var s=e.i(843476),t=e.i(271645),r=e.i(653145),a=e.i(994814),i=e.i(681307),o=e.i(618566),n=e.i(263488),l=e.i(270756),c=e.i(908406),d=e.i(919351),u=e.i(998289),m=e.i(39485),x=e.i(278240),p=e.i(385882),h=e.i(863013);let g=i.z.object({email:i.z.string().min(1,"Email is required").email("Invalid email address"),password:i.z.string().min(1,"Password is required"),rememberMe:i.z.boolean().optional().default(!1)});e.s(["LoginForm",0,function({onOtpStep:e}={}){let i=(0,o.useRouter)(),{toast:f}=(0,c.useToast)(),b=(0,d.useLogin)(),[j,y]=t.useState(null);t.useEffect(()=>{e?.(null!==j)},[j,e]);let{register:v,handleSubmit:w,formState:{errors:N,isSubmitting:_},reset:P}=(0,r.useForm)({resolver:(0,a.zodResolver)(g),mode:"onSubmit"}),z=async e=>{try{let s=await b.mutateAsync({email:e.email,password:e.password});f({variant:"success",title:"Welcome back!",description:"Signed in successfully."}),i.push((0,h.homeRouteForBackendRole)(s?.data?.user?.role))}catch(r){let s=(0,u.getAxiosErrorCode)(r),t=(0,u.getAxiosErrorMessage)(r,"Sign in failed. Please try again.");if("EMAIL_NOT_VERIFIED"===s){P(),y((0,u.getAxiosErrorEmail)(r)??e.email),f({variant:"warning",title:"Email not verified",de
1scription:t});return}f({variant:"destructive",title:"Sign In Failed",description:t})}};if(j)return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(m.OtpForm,{email:j,onBack:()=>y(null),onSuccess:()=>i.push("/onboarding")})});let k=_||b.isPending;return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("form",{className:"flex flex-col gap-2.5",onSubmit:w(z),children:[(0,s.jsx)(x.CyanInput,{...v("email"),id:"login-email",type:"text",label:"Email",placeholder:"[email protected]",autoComplete:"email",icon:(0,s.jsx)(n.Mail,{className:"size-4"}),error:N.email?.message}),(0,s.jsx)(x.CyanPasswordInput,{...v("password"),id:"login-password",label:"Password",placeholder:"Enter your password",autoComplete:"current-password",icon:(0,s.jsx)(l.Lock,{className:"size-4"}),error:N.password?.message}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("label",{className:"flex items-center gap-2 text-sm text-muted-foreground cursor-pointer",children:[(0,s.jsx)("input",{...v("rememberMe"),type:"checkbox",className:"size-4 rounded border-sol-cyan/30 bg-transparent accent-sol-cyan"}),"Remember me"]}),(0,s.jsx)("button",{type:"button",onClick:()=>i.push("/forgot-password"),className:"text-sm font-medium text-sol-cyan transition hover:brightness-110 focus:outline-none",children:"Forgot password?"})]}),(0,s.jsx)(p.AuthSubmitButton,{loading:k,loadingText:"Signing in...",children:"Sign in"})]})})}])},39485,e=>{"use strict";var s=e.i(843476),t=e.i(271645),r=e.i(653145),a=e.i(994814),i=e.i(919351),o=e.i(188397),n=e.i(998289),l=e.i(908406);e.s(["OtpForm",0,function({email:e,onBack:c,onSuccess:d}){let u=(0,i.useVerifyOtp)(),m=(0,i.useResendOtp)(),[x,p]=t.useState(60),[h,g]=t.useState(""),{register:f,handleSubmit:b,formState:{errors:j},setError:y}=(0,r.useForm)({resolver:(0,a.zodResolver)(o.otpSchema),defaultValues:{otp:""}}),{onChange:v,...w}=f("otp");async function N(s){g("");try{await u.mutateAsync({email:e,otp:s.otp}),(0,l.toast)({variant:"success",title:"Email verified!",description:"Welcome! You're now signed in."}),d()}catch(s){let e=(0,n.getAxiosErrorMessage)(s,"Invalid OTP. Please try again.");y("otp",{message:e}),(0,l.toast)({variant:"destructive",title:"Verification Failed",description:e})}}async function _(){if(!(x>0)){g("");try{let s=await m.mutateAsync({email:e});(0,l.toast)({variant:"success",title:"Code sent!",description:s.message??"A new OTP has been sent to your email."}),p(60)}catch(s){let e=(0,n.getAxiosErrorMessage)(s,"Failed to resend OTP.");g(e),(0,l.toast)({variant:"destructive",title:"Resend Failed",description:e})}}}return t.useEffect(()=>{if(x<=0)return;let e=setInterval(()=>p(e=>e-1),1e3);return()=>clearInterval(e)},[x]),(0,s.jsxs)("div",{className:"flex flex-col gap-4 items-center w-full",children:[(0,s.jsx)("div",{className:"w-full md:w-[280px]",children:(0,s.jsxs)("button",{type:"button",onClick:c,className:"flex items-center gap-1.5 text-sm text-sol-cyan hover:text-sol-cyan/80 transition-colors",children:[(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"size-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"})}),"Back"]})}),(0,s.jsxs)("div",{className:"w-full md:w-[280px] mb-1",children:[(0,s.jsx)("p",{className:"text-foreground font-semibold text-base",children:"Verify your email"}),(0,s.jsxs)("p",{className:"text-muted-foreground text-sm mt-0.5",children:["Enter the 6-digit code sent to ",(0,s.jsx)("span",{className:"text-sol-cyan",children:e})]})]}),(0,s.jsxs)("form",{onSubmit:b(N),className:"flex flex-col gap-4 items-center w-full",children:[(0,s.jsxs)("div",{className:"relative w-full md:w-[280px]",children:[(0,s.jsx)("input",{...w,onChange:e=>{e.target.value=e.target.value.replace(/[^0-9]/g,""),v(e)},type:"text",inputMode:"numeric",maxLength:6,className:`w-full px-5 h-11 border-2 ${j.otp?"border-red-400":"border-sol-cyan"} bg-transparent focus:outline-none placeholder-muted-foreground text-foreground text-sm font-normal rounded-xl tracking-[0.4em] text-center`,placeholder:"000000",autoComplete:"one-time-code"}),j.otp&&(0,s.jsx)("p",{className:"mt-2 text-sm text-red-400 ml-1",children:j.otp.message})]}),h&&(0,s.jsx)("div",{className:"p-3 border border-destructive/30 bg-destructive/10 text-destructive text-sm w-full md:w-[280px] flex items-start rounded-xl",children:(0,s.jsx)("p",{children:h})}),(0,s.jsx)("div",{className:"w-full md:w-[280px]",children:(0,s.jsx)("button",{type:"submit",disabled:u.isPending,className:`w-full h-11 text-sm font-semibold ${u.isPending?"bg-sol-cyan/70 text-sol-navy":"bg-sol-cyan text-sol-navy hover:bg-sol-cyan/90"} focus:outline-none uppercase rounded-xl transition-all duration-200`,children:u.isPending?(0,s.jsxs)("div",{className:"flex items-center justify-center",children:[(0,s.jsx)("div",{className:"h-5 w-5 mr-2 border-2 border-white border-t-transparent roun
1ded-full animate-spin"}),(0,s.jsx)("span",{children:"VERIFYING..."})]}):"VERIFY"})}),(0,s.jsx)("div",{className:"w-full md:w-[280px] text-center",children:x>0?(0,s.jsxs)("p",{className:"text-muted-foreground text-sm",children:["Resend code in ",(0,s.jsxs)("span",{className:"text-sol-cyan",children:[x,"s"]})]}):(0,s.jsx)("button",{type:"button",onClick:_,disabled:m.isPending,className:"text-sol-cyan hover:text-sol-cyan/80 text-sm font-medium underline focus:outline-none disabled:opacity-50",children:m.isPending?"Sending...":"Resend code"})})]})]})}])},370561,e=>{"use strict";var s=e.i(843476),t=e.i(271645);e.s(["ParticleBackground",0,function(){let[e,r]=t.useState([]);return t.useEffect(()=>{r(Array.from({length:50},(e,s)=>({id:s,x:100*Math.random(),size:3*Math.random()+1,duration:15*Math.random()+10,delay:10*Math.random(),opacity:.5*Math.random()+.1})))},[]),(0,s.jsxs)("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-[#0a0a12]"}),(0,s.jsx)("div",{className:"absolute inset-0 energy-grid"}),(0,s.jsx)("div",{className:"auth-orb-1 absolute -top-1/4 -left-1/4 h-[600px] w-[600px] rounded-full",style:{background:"radial-gradient(circle, oklch(0.72 0.19 210 / 15%), transparent 70%)"}}),(0,s.jsx)("div",{className:"auth-orb-2 absolute -bottom-1/4 -right-1/4 h-[500px] w-[500px] rounded-full",style:{background:"radial-gradient(circle, oklch(0.7 0.2 155 / 12%), transparent 70%)"}}),(0,s.jsx)("div",{className:"auth-orb-3 absolute left-1/2 top-1/2 h-[400px] w-[400px] rounded-full",style:{background:"radial-gradient(circle, oklch(0.72 0.19 210 / 8%), transparent 70%)"}}),e.map(e=>(0,s.jsx)("div",{className:"auth-particle absolute rounded-full bg-primary",style:{left:`${e.x}%`,width:`${e.size}px`,height:`${e.size}px`,"--op":e.opacity,animationDuration:`${e.duration}s`,animationDelay:`${e.delay}s`}},e.id)),(0,s.jsxs)("svg",{className:"absolute inset-0 w-full h-full opacity-[0.03]",children:[(0,s.jsx)("pattern",{id:"grid",width:"80",height:"80",patternUnits:"userSpaceOnUse",children:(0,s.jsx)("path",{d:"M 80 0 L 0 0 0 80",fill:"none",stroke:"oklch(0.76 0.19 210)",strokeWidth:"0.5"})}),(0,s.jsx)("rect",{width:"100%",height:"100%",fill:"url(#grid)"})]})]})}])},611021,e=>{"use strict";var s=e.i(843476),t=e.i(271645),r=e.i(286536),a=e.i(77705),i=e.i(519455),o=e.i(793479);e.s(["PasswordInput",0,function({value:e,onChange:n,placeholder:l,disabled:c,...d}){let[u,m]=t.useState(!1);return(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(o.Input,{type:u?"text":"password",placeholder:l,value:e,onChange:n?e=>n(e.target.value):void 0,disabled:c,className:"pr-10",...d}),(0,s.jsx)(i.Button,{type:"button",variant:"ghost",size:"icon",className:"absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent",onClick:()=>m(!u),tabIndex:-1,children:u?(0,s.jsx)(a.EyeOff,{className:"size-4 text-muted-foreground"}):(0,s.jsx)(r.Eye,{className:"size-4 text-muted-foreground"})})]})}])},760856,e=>{"use strict";var s=e.i(843476);function t(e){if(!e)return 0;let s=0;return e.length>=6&&(s=1),e.length>=8&&/[A-Z]/.test(e)&&/[0-9]/.test(e)&&(s=2),e.length>=10&&/[^A-Za-z0-9]/.test(e)&&(s=3),s}let r={1:{color:"#ff4d4f",label:"Weak"},2:{color:"#ff8a3d",label:"Medium"},3:{color:"#00e5ff",label:"Strong"}};e.s(["PasswordStrength",0,function({value:e}){let a=t(e);if(!e||0===a)return null;let i=r[a];return(0,s.jsxs)("div",{className:"mt-2 flex items-center gap-2",children:[(0,s.jsx)("div",{className:"flex flex-1 gap-1.5",children:[1,2,3].map(e=>(0,s.jsx)("div",{className:"h-1 flex-1 rounded-full transition-colors duration-300",style:{backgroundColor:a>=e?i.color:"rgba(0,229,255,0.12)"}},e))}),(0,s.jsx)("span",{className:"w-12 text-right text-[10px] font-medium uppercase tracking-wider",style:{color:i.color},children:i.label})]})},"getPasswordStrength",0,t])},480223,e=>{"use strict";var s=e.i(843476),t=e.i(271645),r=e.i(653145),a=e.i(994814),i=e.i(681307),o=e.i(618566),n=e.i(284614),l=e.i(263488),c=e.i(343432),d=e.i(270756),u=e.i(919351),m=e.i(785886),x=e.i(39485),p=e.i(998289),h=e.i(908406),g=e.i(278240),f=e.i(385882);let b=i.z.object({name:i.z.string().min(2,"Name must be at least 2 characters"),email:i.z.string().min(1,"Email is required").email("Please enter a valid email address"),phone:i.z.string().optional(),password:i.z.string().min(6,"Password must be at least 6 characters"),confirmPassword:i.z.string(),agreeTerms:i.z.boolean().refine(e=>!0===e,{message:"Please accept the Terms to continue"})}).refine(e=>e.password===e.confirmPassword,{message:"Passwords do not match",path:["confirmPassword"]});e.s(["RegisterForm",0,function({onSwitchToLogin:e,onOtpStep:i}={}){let j=(0,o.useRouter)(),y=(0,u.useRegister)(),[v,w]=t.useState(null);t.useEffect(()=>{i?.(null!==v)},[v,i]);let{register:N,handleSubmit:_,formState:{errors:P},reset:z}=(0,r.useForm)({resolver:(0,a.zodResolver)(b),defaultValues:{name:"",email:"",ph
1one:"",password:"",confirmPassword:"",agreeTerms:!1}});async function k(e){try{let s=(0,m.getSignupAccountType)(),t=await y.mutateAsync({name:e.name,email:e.email,password:e.password,phone:e.phone||void 0,account_type:"enterprise"===s?"ENTERPRISE":"INDIVIDUAL"});t.success&&t.data.requiresVerification&&((0,h.toast)({variant:"success",title:"Account created!",description:t.message??"Please verify your email with the OTP we just sent."}),z(),w(t.data.email))}catch(s){let e=(0,p.getAxiosErrorMessage)(s,"Registration failed. Please try again.");(0,h.toast)({variant:"destructive",title:"Registration Failed",description:e})}}return v?(0,s.jsx)(x.OtpForm,{email:v,onBack:()=>w(null),onSuccess:()=>j.push("/onboarding")}):(0,s.jsxs)("form",{className:"flex flex-col gap-2",onSubmit:_(k),children:[(0,s.jsx)(g.CyanInput,{...N("name"),id:"register-name",type:"text",label:"Full Name",placeholder:"Ahmed Khan",autoComplete:"name",icon:(0,s.jsx)(n.User,{className:"size-4"}),error:P.name?.message}),(0,s.jsx)(g.CyanInput,{...N("email"),id:"register-email",type:"text",label:"Email",placeholder:"[email protected]",autoComplete:"email",icon:(0,s.jsx)(l.Mail,{className:"size-4"}),error:P.email?.message}),(0,s.jsx)(g.CyanInput,{...N("phone"),id:"register-phone",type:"tel",label:"Phone (optional)",placeholder:"+92 300 0000000",autoComplete:"tel",icon:(0,s.jsx)(c.Phone,{className:"size-4"}),error:P.phone?.message}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-2.5",children:[(0,s.jsx)(g.CyanPasswordInput,{...N("password"),id:"register-password",label:"Password",placeholder:"Min. 6 characters",autoComplete:"new-password",icon:(0,s.jsx)(d.Lock,{className:"size-4"}),error:P.password?.message}),(0,s.jsx)(g.CyanPasswordInput,{...N("confirmPassword"),id:"register-confirm-password",label:"Confirm",placeholder:"Re-enter",autoComplete:"new-password",icon:(0,s.jsx)(d.Lock,{className:"size-4"}),error:P.confirmPassword?.message})]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("label",{className:"flex items-start gap-2.5 text-sm text-muted-foreground cursor-pointer",children:[(0,s.jsx)("input",{...N("agreeTerms"),type:"checkbox",className:"mt-0.5 size-4 shrink-0 rounded border-sol-cyan/30 bg-transparent accent-sol-cyan"}),(0,s.jsxs)("span",{children:["I agree to the"," ",(0,s.jsx)("a",{href:"/terms",target:"_blank",rel:"noopener noreferrer",className:"text-sol-cyan hover:brightness-110 underline",children:"Terms & Conditions"})," ","and"," ",(0,s.jsx)("a",{href:"/privacy",target:"_blank",rel:"noopener noreferrer",className:"text-sol-cyan hover:brightness-110 underline",children:"Privacy Policy"})]})]}),P.agreeTerms&&(0,s.jsx)("p",{className:"mt-1.5 text-xs text-red-400",children:P.agreeTerms.message})]}),(0,s.jsx)(f.AuthSubmitButton,{loading:y.isPending,loadingText:"Creating account...",children:"Create account"})]})}])},763648,e=>{"use strict";var s=e.i(843476),t=e.i(271645),r=e.i(653145),a=e.i(994814),i=e.i(618566),o=e.i(871689),n=e.i(595468),l=e.i(270756),c=e.i(919351),d=e.i(188397),u=e.i(998289),m=e.i(908406),x=e.i(278240),p=e.i(385882);e.s(["ResetPasswordForm",0,function(){let e=(0,i.useRouter)(),h=(0,i.useSearchParams)(),g=(0,c.useResetPassword)(),f=h.get("token")??"",[b,j]=t.useState(!1),{register:y,handleSubmit:v,formState:{errors:w}}=(0,r.useForm)({resolver:(0,a.zodResolver)(d.resetPasswordSchema),defaultValues:{newPassword:"",confirmPassword:""}});async function N(s){if(!f)return void(0,m.toast)({variant:"destructive",title:"Invalid Link",description:"Reset link is invalid or has expired. Please request a new one."});try{let t=await g.mutateAsync({token:f,newPassword:s.newPassword});(0,m.toast)({variant:"success",title:"Password reset!",description:t.message??"Your password has been reset successfully."}),j(!0),setTimeout(()=>e.push("/login"),2e3)}catch(s){let e=(0,u.getAxiosErrorMessage)(s,"Failed to reset password. The link may have expired.");(0,m.toast)({variant:"destructive",title:"Reset Failed",description:e})}}return(0,s.jsxs)("div",{className:"w-full max-w-[420px]",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>e.push("/login"),className:"mb-6 flex items-center gap-1.5 text-sm text-sol-cyan hover:brightness-110 focus:outline-none transition-colors",children:[(0,s.jsx)(o.ArrowLeft,{className:"size-4"}),"Back to sign in"]}),b?(0,s.jsxs)("div",{className:"flex flex-col items-center gap-5 text-center",children:[(0,s.jsx)("div",{className:"flex size-16 items-center justify-center rounded-full border-2 border-sol-cyan bg-sol-cyan/10",children:(0,s.jsx)(n.CheckCircle2,{className:"size-8 text-sol-cyan"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"font-orbitron text-[22px] font-bold text-foreground",children:"Password reset!"}),(0,s.jsx)("p",{className:"mt-1.5 text-sm text-muted-foreground",children:"Your password has been successfully reset. Redirecting to sign in..."})]}),(0,s.jsx)("button",{type:"button",onClick:()=>
1e.push("/login"),className:"auth-submit h-10 w-full rounded-[10px] bg-sol-cyan font-orbitron text-sm font-bold uppercase text-sol-navy shadow-[0_0_30px_rgba(0,229,255,0.25)] transition-all duration-300 hover:-translate-y-0.5 hover:brightness-110 focus:outline-none",style:{letterSpacing:"2px"},children:"Go to Sign In"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"mb-6",children:[(0,s.jsx)("h1",{className:"font-orbitron text-[26px] font-bold leading-tight text-foreground",children:"Reset password"}),(0,s.jsx)("p",{className:"mt-1.5 text-sm text-muted-foreground",children:"Enter your new password below."})]}),!f&&(0,s.jsxs)("div",{className:"mb-4 rounded-[10px] border border-destructive/30 bg-destructive/10 p-3 text-sm text-destructive",children:["This reset link is invalid or has expired."," ",(0,s.jsx)("button",{type:"button",onClick:()=>e.push("/forgot-password"),className:"underline text-sol-cyan",children:"Request a new one"}),"."]}),(0,s.jsxs)("form",{className:"flex flex-col gap-4",onSubmit:v(N),children:[(0,s.jsx)(x.CyanPasswordInput,{...y("newPassword"),id:"new-password",label:"New Password",placeholder:"New password",autoComplete:"new-password",icon:(0,s.jsx)(l.Lock,{className:"size-4"}),error:w.newPassword?.message}),(0,s.jsx)(x.CyanPasswordInput,{...y("confirmPassword"),id:"confirm-password",label:"Confirm Password",placeholder:"Confirm new password",autoComplete:"new-password",icon:(0,s.jsx)(l.Lock,{className:"size-4"}),error:w.confirmPassword?.message}),(0,s.jsx)(p.AuthSubmitButton,{loading:g.isPending,loadingText:"Resetting...",children:"Reset Password"})]})]})]})}])},188397,e=>{"use strict";var s=e.i(681307);s.z.object({email:s.z.string().email("Please enter a valid email address")}),s.z.object({email:s.z.string().email(),password:s.z.string().min(6,"Password must be at least 6 characters")}),s.z.object({name:s.z.string().min(2,"Name must be at least 2 characters"),email:s.z.string().email("Please enter a valid email address"),phone:s.z.string().optional(),password:s.z.string().min(6,"Password must be at least 6 characters"),confirmPassword:s.z.string()}).refine(e=>e.password===e.confirmPassword,{message:"Passwords do not match",path:["confirmPassword"]});let t=s.z.object({otp:s.z.string().length(6,"OTP must be 6 digits").regex(/^\d{6}$/,"OTP must contain only digits")}),r=s.z.object({email:s.z.string().min(1,"Email is required").email("Invalid email address")}),a=s.z.object({newPassword:s.z.string().min(8,"Password must be at least 8 characters").regex(/[A-Z]/,"Must contain at least one uppercase letter").regex(/[a-z]/,"Must contain at least one lowercase letter").regex(/[0-9]/,"Must contain at least one number").regex(/[^A-Za-z0-9]/,"Must contain at least one special character"),confirmPassword:s.z.string()}).refine(e=>e.newPassword===e.confirmPassword,{message:"Passwords do not match",path:["confirmPassword"]});e.s(["forgotPasswordSchema",0,r,"otpSchema",0,t,"resetPasswordSchema",0,a])},114174,e=>{"use strict";var s=e.i(843476),t=e.i(531278),r=e.i(436209),a=e.i(764010);let i={google:(0,s.jsx)(function(){return(0,s.jsxs)("svg",{viewBox:"0 0 24 24",className:"size-4","aria-hidden":"true",children:[(0,s.jsx)("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.27-4.74 3.27-8.1Z"}),(0,s.jsx)("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.99.66-2.26 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84A11 11 0 0 0 12 23Z"}),(0,s.jsx)("path",{fill:"#FBBC05",d:"M5.84 14.1a6.6 6.6 0 0 1 0-4.2V7.06H2.18a11 11 0 0 0 0 9.88l3.66-2.84Z"}),(0,s.jsx)("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1A11 11 0 0 0 2.18 7.06l3.66 2.84C6.71 7.3 9.14 5.38 12 5.38Z"})]})},{})};function o({label:e,icon:r,loading:a,disabled:i,onClick:n}){return(0,s.jsxs)("button",{type:"button",onClick:n,disabled:i,"aria-label":`Continue with ${e}`,"aria-busy":a,className:"flex w-full items-center justify-center gap-3 rounded-[10px] border border-sol-cyan/20 bg-sol-cyan/[0.04] px-6 h-12 text-base font-medium text-foreground transition-all duration-300 hover:border-sol-cyan/50 hover:bg-sol-cyan/10 focus:outline-none disabled:cursor-not-allowed disabled:opacity-60",children:[a?(0,s.jsx)(t.Loader2,{className:"size-4 animate-spin"}):r,(0,s.jsx)("span",{children:e})]})}e.s(["SocialButtons",0,function(){let{start:e,pending:t}=(0,a.useOAuthPopup)();return(0,s.jsx)("div",{className:"flex justify-center",children:r.OAUTH_PROVIDERS.map(r=>(0,s.jsx)(o,{label:r.label,icon:i[r.id],loading:t===r.id,disabled:null!==t,onClick:()=>e(r.id)},r.id))})}])},998289,e=>{"use strict";var s=e.i(191476);e.s(["getAxiosErrorCode",0,function(e){if((0,s.isAxiosError)(e))return e.response?.data?.code},"getAxiosErrorEmail",0,function(e){if((0,s.isAxiosError)(e))return e.response?.data?.email},"getAxiosErrorMessage",0,function(e,t){return(0,s.isAxiosError)(e)?e.response?.data?.message??t:t}])},912575,e=>{e.v({ant:"robot-icon-module__cWPOfG__ant",antL:"robot-icon-module__cWPOfG__antL",antR:"robot-icon-module__cWPOfG__antR",b1:"robot-icon-module__cWPOfG__b1",b2:"robot-icon-module__cWPOfG__b2",b3:"robot-icon-module__cWPOfG__b3",b4:"robot-icon-module__cWPOfG__b4",b5:"robot-icon-module__cWPOfG__b5",b6:"robot-icon-module__cWPOfG__b6","body-sway":"robot-icon-module__cWPOfG__body-sway",bolt:"robot-icon-module__cWPOfG__bolt",box:"robot-icon-module__cWPOfG__box",eye:"robot-icon-module__cWPOfG__eye",eyes:"robot-icon-module__cWPOfG__eyes",float:"robot-icon-module__cWPOfG__float",gloss:"robot-icon-module__cWPOfG__gloss",glow:"robot-icon-module__cWPOfG__glow",head:"robot-icon-module__cWPOfG__head",layer:"robot-icon-module__cWPOfG__layer",rim:"robot-icon-module__cWPOfG__rim",robot:"robot-icon-module__cWPOfG__robot","robot-blink":"robot-icon-module__cWPOfG__robot-blink","robot-eye":"robot-icon-module__cWPOfG__robot-eye","robot-float":"robot-icon-module__cWPOfG__robot-float","robot-glow":"robot-icon-module__cWPOfG__robot-glow","robot-shadow":"robot-icon-module__cWPOfG__robot-shadow",screen:"robot-icon-module__cWPOfG__screen",screenGloss:"robot-icon-module__cWPOfG__screenGloss",shadow:"robot-icon-module__cWPOfG__shadow"})}]);
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.