1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,75254,e=>{"use strict";var r=e.i(71645);let t=e=>{let r=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,r,t)=>t?t.toUpperCase():r.toLowerCase());return r.charAt(0).toUpperCase()+r.slice(1)},s=(...e)=>e.filter((e,r,t)=>!!e&&""!==e.trim()&&t.indexOf(e)===r).join(" ").trim();var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,r.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:a="",children:o,iconNode:d,...c},u)=>(0,r.createElement)("svg",{ref:u,...n,width:t,height:t,stroke:e,strokeWidth:l?24*Number(i)/Number(t):i,className:s("lucide",a),...!o&&!(e=>{for(let r in e)if(r.startsWith("aria-")||"role"===r||"title"===r)return!0})(c)&&{"aria-hidden":"true"},...c},[...d.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(o)?o:[o]]));e.s(["default",0,(e,n)=>{let l=(0,r.forwardRef)(({className:l,...a},o)=>(0,r.createElement)(i,{ref:o,iconNode:n,className:s(`lucide-${t(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,l),...a}));return l.displayName=t(e),l}],75254)},95187,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s={callServer:function(){return i.callServer},createServerReference:function(){return a.createServerReference},findSourceMapURL:function(){return l.findSourceMapURL}};for(var n in s)Object.defineProperty(t,n,{enumerable:!0,get:s[n]});let i=e.r(32120),l=e.r(92245),a=e.r(35326)},94542,e=>{"use strict";var r=e.i(43476),t=e.i(71645),s=e.i(18566),n=e.i(95187);let i=(0,n.createServerReference)("601ad9f882c1770bd86f15c2cf6be9320df8814863",n.callServer,void 0,n.findSourceMapURL,"login");var l=e.i(47167);let a="cf-turnstile-script";function o({className:e,resetKey:s}){let n="0x4AAAAAAFH584208QCBhb4M",i=(0,t.useRef)(null),l=(0,t.useRef)(null),[d,c]=(0,t.useState)("");return(0,t.useEffect)(()=>{if(!n||!i.current)return;let e=!1,r=i.current;return new Promise((e,r)=>{if("u"<typeof document)return r();if(window.turnstile)return e();let t=document.getElementById(a);if(t){t.addEventListener("load",()=>e()),t.addEventListener("error",()=>r());return}let s=document.createElement("script");s.id=a,s.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",s.async=!0,s.defer=!0,s.onload=()=>e(),s.onerror=()=>r(),document.head.appendChild(s)}).then(()=>{e||!window.turnstile||l.current||(l.current=window.turnstile.render(r,{sitekey:n,callback:e=>c(e),"error-callback":()=>c(""),"expired-callback":()=>c(""),theme:"auto"}))}).catch(()=>{}),()=>{e=!0;let r=l.current;if(r&&window.turnstile)try{window.turnstile.remove(r)}catch{}l.current=null}},[n]),(0,t.useEffect)(()=>{if(void 0===s)return;let e=l.current;if(e&&window.turnstile){c("");try{window.turnstile.reset(e)}catch{}}},[s]),(0,r.jsxs)("div",{className:e,children:[(0,r.jsx)("div",{ref:i}),(0,r.jsx)("input",{type:"hidden",name:"captchaToken",value:d})]})}var d=e.i(90615);function c(e){if(e.startsWith("/")&&!e.startsWith("//"))return!0;try{let r=new URL(e),t=window.location.origin;if(r.origin===t)return!0;let s=l.default.env.NEXT_PUBLIC_ALLOWED_REDIRECT_DOMAINS?.split(",").map(e=>e.trim())||[],n=".pixelengine.ai";{let e=n.startsWith(".")?n.slice(1):n;if(r.hostname===e||r.hostname.endsWith(`.${e}`))return!0}if(s.includes(r.hostname))return!0;return!1}catch{return!1}}function u({redirectUrl:e}){let t=async()=>{let r=`${window.location.origin}/api/auth/callback`;if(e&&c(e)){let t=new URLSearchParams({redirect:e});r=`${r}?${t.toString()}`}let{error:t}=await d.supabase.auth.signInWithOAuth({provider:"google",options:{redirectTo:r}});t&&console.error(t)};return(0,r.jsxs)("button",{onClick:t,type:"button",className:"w-full py-2 px-4 bg-input rounded-md border-1 border-border hover:border-border-hover transition-colors inline-flex items-center justify-center gap-3 cursor-pointer font-semibold",children:[(0,r.jsx)("svg",{className:"ak-AuthButtonIcon",xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",children:(0,r.jsxs)("g",{children:[(0,r.jsx)("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),(0,r.jsx)("path",{fill:"#34A853",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"}),(0,r.jsx)("path",{fill:"#FBBC05",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"}),(0,r.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 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"}),(0,r.jsx)("path",{fill:"none",d:"M1 1h22v22H1z"})]})}),(0,r.jsx)("span",{children:"Continue with Google"})]})}var m=e.i(91901);function x({onSwitchView:e,redirectUrl:n}){let l=(0,s.useRouter)(),[a,d]=(0,t.useState)(""),[f,h]=(0,t.useState)(""),[p,b,g]=(0,t.useActionState)(i,{ok:!1,fieldErrors:{}}
1),j=p.ok?void 0:p.fieldErrors;return(0,t.useEffect)(()=>{p.ok&&(n&&c(n)?window.location.href=n:l.replace("/create"))},[p.ok,l,n]),(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-2xl font-bold mb-6 text-center",children:"Login"}),(0,r.jsxs)("form",{className:"space-y-4",action:b,children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium mb-1",children:"Email"}),(0,r.jsx)("input",{id:"email",name:"email",type:"email",value:a,onChange:e=>d(e.target.value),className:"w-full p-2 rounded-md border border-border bg-input",required:!0}),j?.email&&(0,r.jsx)("p",{className:"mt-1 text-xs text-red-500",children:j.email})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"password",className:"block text-sm font-medium mb-1",children:"Password"}),(0,r.jsx)("input",{id:"password",name:"password",type:"password",value:f,onChange:e=>h(e.target.value),className:"w-full p-2 rounded-md border border-border bg-input",required:!0}),j?.password&&(0,r.jsx)("p",{className:"mt-1 text-xs text-red-500",children:j.password})]}),(0,r.jsx)(o,{className:"flex justify-center",resetKey:j}),(0,r.jsx)("button",{className:"w-full bg-primary py-2 px-4 rounded-md hover:bg-primary/90 transition-colors disabled:opacity-70 disabled:cursor-not-allowed inline-flex items-center justify-center cursor-pointer",type:"submit",disabled:g,children:g?(0,r.jsxs)("span",{className:"inline-flex items-center",children:[(0,r.jsx)(m.LoadingIndicator,{size:"sm",className:"mr-2"}),"Signing in..."]}):"Sign In"})]}),(0,r.jsxs)("div",{className:"flex items-center my-6",children:[(0,r.jsx)("div",{className:"flex-grow border-t border-border"}),(0,r.jsx)("span",{className:"mx-3 text-sm text-muted-foreground",children:"or"}),(0,r.jsx)("div",{className:"flex-grow border-t border-border"})]}),(0,r.jsx)(u,{redirectUrl:n}),(0,r.jsx)("button",{className:"mt-4 block w-full text-center text-sm underline text-muted-foreground hover:text-foreground cursor-pointer",onClick:()=>e("forgot"),type:"button",children:"Forgot your password?"}),(0,r.jsx)("button",{className:"mt-2 block w-full text-center text-sm underline text-muted-foreground hover:text-foreground cursor-pointer",onClick:()=>e("signup"),type:"button",children:"Don't have an account? Sign up"})]})}let f=(0,n.createServerReference)("60c32de0dc04525e2e1443b44f5cc75bb5af6f5710",n.callServer,void 0,n.findSourceMapURL,"signup");function h({onSwitchView:e,redirectUrl:s}){let[n,i]=(0,t.useState)(""),[l,a]=(0,t.useState)(""),[d,c]=(0,t.useState)(""),[x,p]=(0,t.useState)(""),[b,g,j]=(0,t.useActionState)(f,{ok:!1,fieldErrors:{}});return b.ok?(0,r.jsxs)("div",{className:"space-y-4 text-center",children:[(0,r.jsx)("h2",{className:"text-lg mb-4 font-semibold",children:"Check your email"}),(0,r.jsxs)("p",{className:"text-sm text-muted-foreground",children:["We sent you a confirmation link. Please check your inbox to verify your account.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"You may need to check your spam folder."]}),(0,r.jsx)("button",{className:"block w-full text-center text-sm underline text-muted-foreground hover:text-foreground",onClick:()=>e("signin"),type:"button",children:"Back to sign in"})]}):(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-2xl font-bold mb-6 text-center",children:"Create account"}),(0,r.jsxs)("form",{className:"space-y-4",action:g,children:[(0,r.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"firstName",className:"block text-sm font-medium mb-1",children:"First name"}),(0,r.jsx)("input",{id:"firstName",name:"firstName",type:"text",value:d,onChange:e=>c(e.target.value),className:"w-full p-2 rounded-md border border-border bg-input",required:!0}),b.fieldErrors?.firstName&&(0,r.jsx)("p",{className:"mt-1 text-xs text-red-500",children:b.fieldErrors.firstName})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"lastName",className:"block text-sm font-medium mb-1",children:"Last name"}),(0,r.jsx)("input",{id:"lastName",name:"lastName",type:"text",value:x,onChange:e=>p(e.target.value),className:"w-full p-2 rounded-md border border-border bg-input",required:!0}),b.fieldErrors?.lastName&&(0,r.jsx)("p",{className:"mt-1 text-xs text-red-500",children:b.fieldErrors.lastName})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium mb-1",children:"Email"}),(0,r.jsx)("input",{id:"email",name:"email",type:"email",value:n,onChange:e=>i(e.target.value),className:"w-full p-2 rounded-md border border-border bg-input",required:!0}),b.fieldErrors?.email&&(0,r.jsx)("p",{className:"mt-1 text-xs text-red-500",children:b.fieldErrors.email})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"password",className:"block text-sm font-medium mb-1",children:"Password"}),(0,r.jsx)("input",{id:"password",name:"password",type:"password",value:l,onCh
1ange:e=>a(e.target.value),className:"w-full p-2 rounded-md border border-border bg-input",required:!0}),b.fieldErrors?.password&&(0,r.jsx)("p",{className:"mt-1 text-xs text-red-500",children:b.fieldErrors.password})]}),(0,r.jsx)(o,{className:"flex justify-center",resetKey:b.ok?void 0:b.fieldErrors}),(0,r.jsx)("button",{type:"submit",disabled:j,className:"w-full bg-primary py-2 px-4 rounded-md hover:bg-primary/90 transition-colors disabled:opacity-70 disabled:cursor-not-allowed inline-flex items-center justify-center cursor-pointer",children:j?(0,r.jsxs)("span",{className:"inline-flex items-center",children:[(0,r.jsx)(m.LoadingIndicator,{size:"sm",className:"mr-2"}),"Creating account..."]}):"Sign Up"})]}),(0,r.jsxs)("div",{className:"flex items-center my-6",children:[(0,r.jsx)("div",{className:"flex-grow border-t border-border"}),(0,r.jsx)("span",{className:"mx-3 text-sm text-muted-foreground",children:"or"}),(0,r.jsx)("div",{className:"flex-grow border-t border-border"})]}),(0,r.jsx)(u,{redirectUrl:s}),(0,r.jsx)("button",{className:"mt-4 block w-full text-center text-sm underline text-muted-foreground hover:text-foreground cursor-pointer",onClick:()=>e("signin"),type:"button",children:"Already have an account? Sign in"})]})}let p=(0,n.createServerReference)("60b2e2a34f0953e65d0b17f191a90d3a8bbdb9a764",n.callServer,void 0,n.findSourceMapURL,"resetPassword");function b({onSwitchView:e}){let[s,n]=(0,t.useState)(""),[i,l,a]=(0,t.useActionState)(p,{ok:!1,fieldErrors:{}});return i.ok?(0,r.jsxs)("div",{className:"space-y-4 text-center",children:[(0,r.jsx)("h2",{className:"text-lg font-semibold",children:"Check your email"}),(0,r.jsxs)("p",{className:"text-sm text-muted-foreground",children:["If an account exists for ",s||"that address",", you'll receive a link to reset your password.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"You may need to check your spam folder."]}),(0,r.jsx)("button",{className:"block w-full text-center text-sm underline text-muted-foreground hover:text-foreground",onClick:()=>e("signin"),type:"button",children:"Back to sign in"})]}):(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-2xl font-bold mb-6 text-center",children:"Reset password"}),(0,r.jsxs)("form",{className:"space-y-4",action:l,children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium mb-1",children:"Email"}),(0,r.jsx)("input",{id:"email",name:"email",type:"email",value:s,onChange:e=>n(e.target.value),className:"w-full p-2 rounded-md border border-border bg-input",required:!0}),i.fieldErrors?.email&&(0,r.jsx)("p",{className:"mt-1 text-xs text-red-500",children:i.fieldErrors.email})]}),(0,r.jsx)(o,{className:"flex justify-center",resetKey:i.ok?void 0:i.fieldErrors}),(0,r.jsx)("button",{type:"submit",disabled:a,className:"w-full bg-primary py-2 px-4 rounded-md hover:bg-primary/90 transition-colors disabled:opacity-70 disabled:cursor-not-allowed inline-flex items-center justify-center",children:a?(0,r.jsxs)("span",{className:"inline-flex items-center",children:[(0,r.jsx)(m.LoadingIndicator,{size:"sm",className:"mr-2"}),"Sending..."]}):"Send reset email"})]}),(0,r.jsx)("button",{className:"mt-4 block w-full text-center text-sm underline text-muted-foreground hover:text-foreground",onClick:()=>e("signin"),type:"button",children:"Back to sign in"})]})}function g(){let[e,n]=(0,t.useState)("signin"),i=(0,s.useSearchParams)().get("redirect");return(0,r.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-background",children:(0,r.jsxs)("div",{className:"w-full max-w-md p-8 bg-secondary rounded-lg",children:["signin"===e&&(0,r.jsx)(x,{onSwitchView:n,redirectUrl:i}),"signup"===e&&(0,r.jsx)(h,{onSwitchView:n,redirectUrl:i}),"forgot"===e&&(0,r.jsx)(b,{onSwitchView:n})]})})}e.s(["default",0,function(){return(0,r.jsx)(t.Suspense,{fallback:(0,r.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-background",children:(0,r.jsx)("div",{className:"w-full max-w-md p-8 bg-secondary rounded-lg animate-pulse"})}),children:(0,r.jsx)(g,{})})}],94542)},91901,31278,e=>{"use strict";var r=e.i(43476);
1let t=(0,e.i(75254).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",0,t],31278);var s=e.i(75157);let n={sm:"h-3.5 w-3.5",md:"h-4 w-4",lg:"h-5 w-5",xl:"h-12 w-12"};e.s(["LoadingIndicator",0,function({size:e="md",label:i,className:l,iconClassName:a,...o}){let d=n[e]??n.md;return(0,r.jsxs)("span",{className:(0,s.cn)("inline-flex shrink-0 items-center justify-center",l),role:i?"status":void 0,"aria-live":i?"polite":void 0,"aria-label":i,...o,children:[(0,r.jsx)(t,{"aria-hidden":!0,className:(0,s.cn)("animate-spin text-current",d,a)}),i?(0,r.jsx)("span",{className:"sr-only",children:i}):null]})}],91901)}]);
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.