1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="417c0f6a-67fb-b09d-032c-ee76d4b05522")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,79822,e=>{"use strict";var t=e.i(77876),s=e.i(20429),l=e.i(64081),a=e.i(61242);e.s(["default",0,function(){let[e,i]=(0,s.useState)(""),[n,r]=(0,s.useState)(""),[o,c]=(0,s.useState)(!1),[d,u]=(0,s.useState)(null),[m,x]=(0,s.useState)(null);async function h(t){t.preventDefault(),c(!0),u(null);let s=(0,l.createBrowserSupabaseClient)(),{error:a}=await s.auth.signInWithPassword({email:e,password:n});a?u(a.message):window.location.href="/",c(!1)}async function b(){c(!0),u(null);let e=(0,l.createBrowserSupabaseClient)(),{error:t}=await e.auth.signInWithOAuth({provider:"google",options:{redirectTo:`${window.location.origin}/auth/callback`}});t&&(u(t.message),c(!1))}async function p(t){t.preventDefault(),c(!0),u(null),x(null);let s=(0,l.createBrowserSupabaseClient)(),{error:a}=await s.auth.signInWithOtp({email:e,options:{emailRedirectTo:`${window.location.origin}/auth/callback`}});a?u(a.message):x("Check your email for the login link!"),c(!1)}return(0,t.jsx)("div",{className:"flex min-h-[calc(100vh-52px)] items-center justify-center px-5",children:(0,t.jsxs)("div",{className:"w-full max-w-sm",children:[(0,t.jsx)("h1",{className:"text-center text-2xl font-bold text-slate-900",children:"Sign in to CVDar"}),(0,t.jsx)("p",{className:"mt-2 text-center text-sm text-slate-500",children:"Access AI classifications, search history, and more."}),(0,t.jsxs)("button",{onClick:b,disabled:o,className:"mt-8 flex w-full items-center justify-center gap-3 rounded-xl border border-slate-300 bg-white px-4 py-2.5 text-sm font-medium text-slate-700 transition-colors hover:bg-slate-50 disabled:opacity-50",children:[(0,t.jsxs)("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 01-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z",fill:"#4285F4"}),(0,t.jsx)("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),(0,t.jsx)("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),(0,t.jsx)("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]}),"Continue with Google"]}),(0,t.jsxs)("div",{className:"relative my-6",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,t.jsx)("div",{className:"w-full border-t border-slate-200"})}),(0,t.jsx)("div",{className:"relative flex justify-center text-sm",children:(0,t.jsx)("span",{className:"bg-slate-50 px-3 text-slate-500",children:"or continue with email"})})]}),d&&(0,t.jsx)("div",{className:"mb-4 rounded-lg border border-rose-200 bg-rose-50 p-3 text-sm text-rose-700",children:d}),m&&(0,t.jsx)("div",{className:"mb-4 rounded-lg border border-emerald-200 bg-emerald-50 p-3 text-sm text-emerald-700",children:m}),(0,t.jsxs)("form",{onSubmit:h,className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-slate-700",children:"Email"}),(0,t.jsx)("input",{type:"email",required:!0,value:e,onChange:e=>i(e.target.value),className:"mt-1 w-full rounded-lg border border-slate-300 bg-white px-3 py-2 text-sm text-slate-900 placeholder-slate-400 outline-none focus:border-brand-500 focus:ring-2 focus:ring-brand-500/20",placeholder:"[email protected]"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-slate-700",children:"Password"}),(0,t.jsx)("input",{type:"password",required:!0,value:n,onChange:e=>r(e.target.value),className:"mt-1 w-full rounded-lg border border-slate-300 bg-white px-3 py-2 text-sm text-slate-900 placeholder-slate-400 outline-none focus:border-brand-500 focus:ring-2 focus:ring-brand-500/20",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢"})]}),(0,t.jsx)("button",{type:"submit",disabled:o,className:"w-full rounded-xl bg-brand-600 px-4 py-2.5 text-sm font-medium text-white transition-colors hover:bg-brand-500 disabled:opacity-50",children:o?"Signing in...":"Sign in"})]}),(0,t.jsx)("button",{onClick:p,disabled:o||!e,className:"mt-3 w-full text-center text-sm text-brand-600 hover:text-brand-500 disabled:opacity-50",children:"Send a magic link instead"}),(0,t.jsxs)("p",{className:"mt-6 text-center text-sm text-slate-500",children:["Don't have an account?"," ",(0,t.jsx)(a.default,{href:"/auth/signup",className:"font-medium text-brand-600 hover:text-brand-500",children:"Sign up"})]})]})})}])}]); 3 4//# debugId=417c0f6a-67fb-b09d-032c-ee76d4b05522
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.