PageSourceSearch

https://22r-app.netlify.app/_next/static/chunks/app/(public)/signup/page-84b26ecbe07469ea.js

js 22r-app.netlify.app collected 2026-10-03 10:24:14 UTC 6,183 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3128],{8996:(e,s,t)=>{Promise.resolve().then(t.bind(t,1745)),Promise.resolve().then(t.bind(t,5679)),Promise.resolve().then(t.t.bind(t,4839,23))},1745:(e,s,t)=>{"use strict";t.d(s,{SignupForm:()=>f});var a=t(5155),r=t(2115),i=t(7396),n=t(6046),l=t(9606),o=t(2679),c=t(6462),d=t(8686),m=t(9053),u=t(4085),x=t(2336),h=t(5785),p=t(3259),g=t(9357);function f(){var e;let s=(0,n.useRouter)(),t=!(!(e=(0,n.useSearchParams)().get("redirect"))||e.startsWith("//"))&&e.startsWith("/")&&e.startsWith("/app")?e:"/app",[f,N]=r.useState(null),[j,w]=r.useState(null),[v,b]=r.useState(!1),y=(0,l.mN)({resolver:(0,o.u)(g.I),mode:"onBlur",defaultValues:{email:"",password:""}});async function S(e){N(null),w(null);let a=(0,p.u)(),r=new URL("/api/auth/callback",window.location.origin);r.searchParams.set("redirect",t);let{data:i,error:n}=await a.auth.signUp({email:e.email,password:e.password,options:{emailRedirectTo:r.toString()}});if(n){N(n.message);return}if(!i.session){w(e.email);return}s.push(t),s.refresh()}async function k(){N(null),b(!0);let e=(0,p.u)(),s=new URL("/api/auth/callback",window.location.origin);s.searchParams.set("redirect",t);let{error:a}=await e.auth.signInWithOAuth({provider:"google",options:{redirectTo:s.toString()}});a&&(N(a.message),b(!1))}let C=y.formState.isSubmitting;return j?(0,a.jsxs)("div",{className:"mx-auto max-w-md space-y-5 text-center",children:[(0,a.jsx)("div",{"aria-hidden":!0,className:"mx-auto grid h-14 w-14 place-items-center rounded-full bg-accent/20 text-accent text-2xl font-bold",children:"22"}),(0,a.jsx)("p",{className:"text-xs uppercase tracking-[0.24em] text-accent",children:"Check your inbox"}),(0,a.jsx)("h1",{className:"text-3xl font-semibold tracking-tight md:text-4xl",children:"Confirm your email to finish signing up."}),(0,a.jsxs)("p",{className:"text-sm text-muted-foreground",children:["We sent a confirmation link to"," ",(0,a.jsx)("strong",{className:"text-foreground",children:j}),". Open it and you will land right back here, signed in. No rush — take the next 22 minutes."]}),(0,a.jsx)("p",{className:"text-sm",children:(0,a.jsx)(i.default,{href:"/login",className:"font-medium text-foreground underline underline-offset-4",children:"Back to sign in"})})]}):(0,a.jsxs)("div",{className:"mx-auto max-w-md space-y-6",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("p",{className:"text-xs uppercase tracking-[0.24em] text-accent",children:"Create your account"}),(0,a.jsx)("h1",{className:"text-3xl font-semibold tracking-tight md:text-4xl",children:"One next step. Your light is still here."}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Start free. Upgrade to Founding 22 any time to unlock the 22R AI coach ecosystem."}),(0,a.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Sign up to build your 22 reasons to rise. Free forever. Confidential. Not a replacement for professional care. If you need help right now, tap"," ",(0,a.jsx)("strong",{className:"text-foreground",children:"Need help now?"})," in the top corner."]})]}),(0,a.jsxs)("form",{onSubmit:y.handleSubmit(S),className:"space-y-5",noValidate:!0,children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(h.J,{htmlFor:"signup-email",children:"Email"}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(c.A,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground","aria-hidden":!0}),(0,a.jsx)(x.p,{id:"signup-email",type:"email",autoComplete:"email",className:"pl-9","aria-invalid":!!y.formState.errors.email,...y.register("email")})]}),y.formState.errors.email?(0,a.jsx)("p",{className:"text-sm text-crisis",children:y.formState.errors.email.message}):null]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(h.J,{htmlFor:"signup-password",children:"Password"}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(d.A,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground","aria-hidden":!0}),(0,a.jsx)(x.p,{id:"signup-password",type:"password",autoComplete:"new-password",className:"pl-9","aria-invalid":!!y.formState.errors.password,...y.register("password")})]}),(0,a.jsx)("p",{className:"text-xs text-muted-foreground",children:"At least 8 characters. Something you will remember."}),y.formState.errors.password?(0,a.jsx)("p",{className:"text-sm text-crisis",children:y.formState.errors.password.message}):null]}),f?(0,a.jsx)("div",{role:"alert",className:"rounded-lg border border-crisis/40 bg-background p-3 text-sm text-crisis",children:f}):null,(0,a.jsxs)(u.$,{type:"submit",variant:"accent",size:"lg",className:"min-h-[48px] w-full",disabled:C,children:[C?"Creating your account…":"Create account",!C&&(0,a.jsx)(m.A,{className:"h-4 w-4","aria-hidden":!0})]}),(0,a.jsxs)("p",{className:"text-xs text-muted-foreground",children:["By creating an account, you agree to the"," ",(0,a.jsx)(i.default,{href:"/terms",className:"underline underline-offset-4",children:"Terms"})," and"," ",(0,a.jsx)(i.default,{href:"/privacy",className:"underline underline-offset-4",children:"Privacy Notice"}),"."]})]}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,a.jsx)("span",{className:"w-full border-t border-border"})}),(0,a.jsx)("div",{className:"relative flex justify-center text-xs uppercase tracking-widest",children:(0,a.jsx)("span",{className:"bg-background px-3 text-muted-foreground",children:"or"})})]}),(0,a.jsx)(u.$,{type:"button",variant:"outline",size:"lg",className:"min-h-[48px] w-full",onClick:k,disabled:v,children:v?"Redirecting…":"Continue with Google"}),(0,a.jsx)("div",{className:"space-y-2 text-center text-sm text-muted-foreground",children:(0,a.jsxs)("p",{children:["Already have an account?"," ",(0,a.jsx)(i.default,{href:"/login".concat("/app"!==t?"?redirect=".concat(encodeURIComponent(t)):""),className:"font-medium text-foreground underline underline-offset-4",children:"Sign in"})]})})]})}}},e=>{var s=s=>e(e.s=s);e.O(0,[5730,4839,1181,6328,720,3690,1864,8995,8441,1517,7358],()=>
1s(8996)),_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.