1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,25913,e=>{"use strict";var t=e.i(7670);let r=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,s=t.clsx;e.s(["cva",0,(e,t)=>a=>{var i;if((null==t?void 0:t.variants)==null)return s(e,null==a?void 0:a.class,null==a?void 0:a.className);let{variants:n,defaultVariants:l}=t,o=Object.keys(n).map(e=>{let t=null==a?void 0:a[e],s=null==l?void 0:l[e];if(null===t)return null;let i=r(t)||r(s);return n[e][i]}),d=a&&Object.entries(a).reduce((e,t)=>{let[r,s]=t;return void 0===s||(e[r]=s),e},{});return s(e,o,null==t||null==(i=t.compoundVariants)?void 0:i.reduce((e,t)=>{let{class:r,className:s,...a}=t;return Object.entries(a).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...l,...d}[t]):({...l,...d})[t]===r})?[...e,r,s]:e},[]),null==a?void 0:a.class,null==a?void 0:a.className)}])},67881,e=>{"use strict";var t=e.i(43476),r=e.i(91918),s=e.i(25913),a=e.i(47163);let i=(0,s.cva)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function n({className:e,variant:s,size:n,asChild:l=!1,...o}){let d=l?r.Slot:"button";return(0,t.jsx)(d,{"data-slot":"button",className:(0,a.cn)(i({variant:s,size:n,className:e})),...o})}e.s(["Button",()=>n,"buttonVariants",()=>i])},70065,e=>{"use strict";var t=e.i(43476),r=e.i(47163);function s({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"card",className:(0,r.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl py-6 shadow-sm",e),...s})}function a({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...s})}function i({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("leading-none font-semibold",e),...s})}function n({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-muted-foreground text-sm",e),...s})}function l({className:e,...s}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-6",e),...s})}e.s(["Card",()=>s,"CardContent",()=>l,"CardDescription",()=>n,"CardHeader",()=>a,"CardTitle",()=>i])},6085,e=>{"use strict";var t="undefined"!=typeof self?self:"undefined"!=typeof window?window:e.g;let r=t.fetch,s=t.fetch.bind(t),a=t.Headers,i=t.Request,n=t.Response;e.s(["Headers",0,a,"Request",0,i,"Response",0,n,"default",0,s,"fetch",0,r])},23750,e=>{"use strict";var t=e.i(43476),r=e.i(47163);function s({className:e,type:s,...a}){return(0,t.jsx)("input",{type:s,"data-slot":"input",className:(0,r.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...a})}e.s(["Input",()=>s])},10708,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(48425),a=r.forwardRef((e,r)=>(0,t.jsx)(s.Primitive.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));a.displayName="Label";var i=e.i(47163);function n({className:e,...r}){return(0,t.jsx)(a,{"data-slot":"label",className:(0,i.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...r})}e.s(["Label",()=>
1n],10708)},17994,e=>{"use strict";var t=e.i(43476),r=e.i(47163),s=e.i(20755),a=e.i(67881),i=e.i(70065),n=e.i(23750),l=e.i(10708),o=e.i(22016),d=e.i(18566),c=e.i(71645);function u({className:e,...u}){let[v,f]=(0,c.useState)(""),[p,g]=(0,c.useState)(""),[x,m]=(0,c.useState)(null),[h,b]=(0,c.useState)(!1),y=(0,d.useRouter)(),j=async e=>{e.preventDefault();let t=(0,s.createClient)();b(!0),m(null);try{let{error:e}=await t.auth.signInWithPassword({email:v,password:p});if(e)throw e;y.push("/dashboard")}catch(e){m(e instanceof Error?e.message:"An error occurred")}finally{b(!1)}};return(0,t.jsx)("div",{className:(0,r.cn)("flex flex-col gap-6",e),...u,children:(0,t.jsxs)(i.Card,{children:[(0,t.jsxs)(i.CardHeader,{children:[(0,t.jsx)(i.CardTitle,{className:"text-2xl",children:"IFlytics Login"}),(0,t.jsx)(i.CardDescription,{children:"Enter your email below to login to your account"})]}),(0,t.jsx)(i.CardContent,{children:(0,t.jsxs)("form",{onSubmit:j,children:[(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)(l.Label,{htmlFor:"email",children:"Email"}),(0,t.jsx)(n.Input,{id:"email",type:"email",placeholder:"[email protected]",required:!0,value:v,onChange:e=>f(e.target.value)})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)(l.Label,{htmlFor:"password",children:"Password"}),(0,t.jsx)(o.default,{href:"/auth/forgot-password",className:"ml-auto inline-block text-sm underline-offset-4 hover:underline",children:"Forgot your password?"})]}),(0,t.jsx)(n.Input,{id:"password",type:"password",required:!0,value:p,onChange:e=>g(e.target.value)})]}),x&&(0,t.jsx)("p",{className:"text-sm text-red-500",children:x}),(0,t.jsx)(a.Button,{type:"submit",className:"w-full",disabled:h,children:h?"Logging in...":"Login"})]}),(0,t.jsxs)("div",{className:"mt-4 text-center text-sm",children:["Don't have an account?"," ",(0,t.jsx)(o.default,{href:"/auth/sign-up",className:"underline underline-offset-4",children:"Sign up"})]})]})})]})})}e.s(["LoginForm",()=>u])},11737,e=>{e.v(e=>Promise.resolve().then(()=>e(6085)))},56555,e=>{e.v(t=>Promise.all(["static/chunks/7e3ccbfef6193239.js"].map(t=>e.l(t))).then(()=>t(12442)))}]);
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.