PageSourceSearch

https://www.thefoundervoice.com/_next/static/chunks/app/(auth)/login/page-60f1a23a51e9f4e9.js

js thefoundervoice.com collected 2026-10-02 01:46:15 UTC 9,146 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[72],{25016:(e,r,t)=>{"use strict";t.d(r,{cn:()=>n});var s=t(2821),a=t(75889);function n(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return(0,a.QP)((0,s.$)(r))}},33789:(e,r,t)=>{"use strict";t.d(r,{p:()=>i});var s=t(95155),a=t(12115),n=t(25016);let i=a.forwardRef((e,r)=>{let{className:t,type:a,...i}=e;return(0,s.jsx)("input",{type:a,className:(0,n.cn)("flex h-9 w-full rounded-xl border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),ref:r,...i})});i.displayName="Input"},34063:(e,r,t)=>{Promise.resolve().then(t.bind(t,37303))},37303:(e,r,t)=>{"use strict";t.d(r,{LoginForm:()=>p});var s=t(95155),a=t(12115),n=t(20063),i=t(52619),o=t.n(i),l=t(66968),d=t(97003),c=t(33789),u=t(90235),f=t(83209);function p(e){let{redirectTo:r,error:t}=e,i=(0,n.useRouter)(),[p,m]=(0,a.useState)(""),[x,_]=(0,a.useState)(""),[h,N]=(0,a.useState)("auth_callback_failed"===t?"Authentication failed. Please try again.":""),[v,g]=(0,a.useState)(!1),b=r||"/dashboard";async function S(e){e.preventDefault(),N(""),g(!0);let r=(0,l.u)(),{error:t}=await r.auth.signInWithPassword({email:p,password:x});if(t){N("Invalid email or password"),g(!1);return}i.push(b),i.refresh()}async function T(){N(""),g(!0);let e=(0,l.u)(),{error:r}=await e.auth.signInWithOAuth({provider:"google",options:{redirectTo:"".concat(window.location.origin,"/callback?next=").concat(encodeURIComponent(b))}});r&&(N("Authentication failed. Please try again."),g(!1))}return(0,s.jsxs)(f.Zp,{children:[(0,s.jsxs)(f.aR,{className:"text-center",children:[(0,s.jsx)(f.ZB,{className:"text-2xl",children:"Welcome back"}),(0,s.jsx)(f.BT,{children:"Sign in to your account"})]}),(0,s.jsxs)(f.Wu,{children:[(0,s.jsxs)("form",{onSubmit:S,className:"space-y-4",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(u.J,{htmlFor:"email",children:"Email"}),(0,s.jsx)(c.p,{id:"email",type:"email",placeholder:"[email protected]",value:p,onChange:e=>m(e.target.value),required:!0,autoComplete:"email"})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(u.J,{htmlFor:"password",children:"Password"}),(0,s.jsx)(c.p,{id:"password",type:"password",placeholder:"••••••••",value:x,onChange:e=>_(e.target.value),required:!0,autoComplete:"current-password"})]}),h&&(0,s.jsx)("p",{className:"text-sm text-destructive",role:"alert",children:h}),(0,s.jsx)(d.$,{type:"submit",className:"w-full",disabled:v,children:v?"Signing in…":"Sign in"})]}),(0,s.jsxs)("div",{className:"relative my-4",children:[(0,s.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,s.jsx)("span",{className:"w-full border-t"})}),(0,s.jsx)("div",{className:"relative flex justify-center text-xs uppercase",children:(0,s.jsx)("span",{className:"bg-card px-2 text-muted-foreground",children:"or"})})]}),(0,s.jsxs)(d.$,{variant:"outline",className:"w-full",onClick:T,disabled:v,type:"button",children:[(0,s.jsxs)("svg",{className:"mr-2 h-4 w-4",viewBox:"0 0 24 24","aria-hidden":"true",children:[(0,s.jsx)("path",{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",fill:"#4285F4"}),(0,s.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,s.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,s.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"})]}),"Sign in with Google"]})]}),(0,s.jsxs)(f.wL,{className:"flex flex-col space-y-2 text-center text-sm",children:[(0,s.jsx)(o(),{href:"/reset",className:"text-muted-foreground hover:text-foreground transition-colors",children:"Forgot your password?"}),(0,s.jsxs)("p",{className:"text-muted-foreground text-xs",children:["Access is invite-only."," ",(0,s.jsx)(o(),{href:"/#waitlist",className:"text-foreground hover:underline",children:"Join the waitlist"})]})]})]})}},66968:(e,r,t)=>{"use strict";t.d(r,{u:()=>
1o});var s=t(24359),a=t(55653);let n=a.Ik({NEXT_PUBLIC_SUPABASE_URL:a.OZ("NEXT_PUBLIC_SUPABASE_URL must be a valid URL"),NEXT_PUBLIC_SUPABASE_ANON_KEY:a.Yj().min(1,"NEXT_PUBLIC_SUPABASE_ANON_KEY is required"),NEXT_PUBLIC_SUPABASE_FUNCTIONS_URL:a.OZ("NEXT_PUBLIC_SUPABASE_FUNCTIONS_URL must be a valid URL"),NEXT_PUBLIC_POSTHOG_KEY:a.Yj().min(1,"NEXT_PUBLIC_POSTHOG_KEY is required"),NEXT_PUBLIC_POSTHOG_HOST:a.OZ("NEXT_PUBLIC_POSTHOG_HOST must be a valid URL"),NEXT_PUBLIC_LS_VARIANT_STARTER:a.Yj().optional(),NEXT_PUBLIC_LS_VARIANT_PRO:a.Yj().optional(),NEXT_PUBLIC_LS_VARIANT_AGENCY:a.Yj().optional()}),i=null;function o(){if(i)return i;let e=function(){let e=n.safeParse({NEXT_PUBLIC_SUPABASE_URL:"https://yspmeydxmvykpknxpvhp.supabase.co",NEXT_PUBLIC_SUPABASE_ANON_KEY:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InlzcG1leWR4bXZ5a3BrbnhwdmhwIiwicm9sZSI6ImFub24iLCJpYXQiOjE3Nzg0NDUzMTgsImV4cCI6MjA5NDAyMTMxOH0.AWj3tJApNJbDAjPeTdv9iSF-etvPGPzfC-Td-WpS4HU",NEXT_PUBLIC_SUPABASE_FUNCTIONS_URL:"https://yspmeydxmvykpknxpvhp.supabase.co/functions/v1",NEXT_PUBLIC_POSTHOG_KEY:"phc_oQpTmCH8NwVQztTUWaHNmmhBu6n7ZRzovBK2NXsJ2USX",NEXT_PUBLIC_POSTHOG_HOST:"https://us.i.posthog.com",NEXT_PUBLIC_LS_VARIANT_STARTER:"1649463",NEXT_PUBLIC_LS_VARIANT_PRO:"1649482",NEXT_PUBLIC_LS_VARIANT_AGENCY:"1649483"});if(!e.success)throw Error(function(e){let r=e.issues.map(e=>"  ✗ ".concat(e.path.join("."),": ").concat(e.message));return"\n❌ Invalid environment variables:\n".concat(r.join("\n"),"\n")}(e.error));return e.data}();return i=(0,s.k)(e.NEXT_PUBLIC_SUPABASE_URL,e.NEXT_PUBLIC_SUPABASE_ANON_KEY)}},83209:(e,r,t)=>{"use strict";t.d(r,{BT:()=>d,Wu:()=>c,ZB:()=>l,Zp:()=>i,aR:()=>o,wL:()=>u});var s=t(95155),a=t(12115),n=t(25016);let i=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,n.cn)("rounded-2xl border border-border bg-card text-card-foreground transition-colors duration-200",t),...a})});i.displayName="Card";let o=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",t),...a})});o.displayName="CardHeader";let l=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,n.cn)("font-semibold leading-none tracking-tight",t),...a})});l.displayName="CardTitle";let d=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,n.cn)("text-sm text-muted-foreground",t),...a})});d.displayName="CardDescription";let c=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,n.cn)("p-6 pt-0",t),...a})});c.displayName="CardContent";let u=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,n.cn)("flex items-center p-6 pt-0",t),...a})});u.displayName="CardFooter"},90235:(e,r,t)=>{"use strict";t.d(r,{J:()=>d});var s=t(95155),a=t(12115),n=t(32894),i=t(83101),o=t(25016);let l=(0,i.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)(n.b,{ref:r,className:(0,o.cn)(l(),t),...a})});d.displayName=n.b.displayName},97003:(e,r,t)=>{"use strict";t.d(r,{$:()=>d});var s=t(95155),a=t(12115),n=t(32467),i=t(83101),o=t(25016);let l=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-full text-sm font-semibold transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 active:scale-[0.98]",{variants:{variant:{default:"bg-gradient-to-br from-orange-500 to-orange-600 text-white hover:from-orange-500 hover:to-orange-500",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-border bg-card hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-full px-3 text-xs",lg:"h-10 rounded-full px-8",icon:"h-9 w-9 rounded-full"}},defaultVariants:{variant:"default",size:"default"}}),d=a.forwardRef((e,r)=>{let{className:t,variant:a,size:i,asChild:d=!1,...c}=e,u=d?n.DX:"button";return(0,s.jsx)(u,{suppressHydrationWarning:!0,className:(0,o.cn)(l({variant:a,size:i,className:t})),ref:r,...c})});d.displayName="Button"}},e=>{e.O(0,[5730,4909,2619,3777,1462,8441,1255,7358],()=>e(e.s=34063)),_N_E=e.O()}]);

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.