PageSourceSearch

https://good-bi.vercel.app/_next/static/chunks/app/signup/page-5796ddbde9bb070f.js

js good-bi.vercel.app collected 2026-10-03 07:01:48 UTC 4,947 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4966],{23771:function(e,s,a){Promise.resolve().then(a.bind(a,78920))},78920:function(e,s,a){"use strict";a.r(s),a.d(s,{default:function(){return N}});var t=a(57437),r=a(87138),n=a(97114),l=a(39343),o=a(59772),i=a(31014),c=a(77209),d=a(89733),m=a(66648),x=a(70518),u=a(75733),h=a(47019),g=a(29466),f=a(16463),p=a(2265),b=a(49354),j=a(27776);let y=o.z.object({name:o.z.string().min(1,{message:"Please enter a name."}),email:o.z.string().min(1,{message:"Please enter an email."}).email({message:"Invalid email."}),password:o.z.string().min(1,{message:"Please enter a password."}).refine(e=>e.length>=8&&/[0-9]/.test(e),{message:"Password should be at least 8 characters long, and contain a number."})});function N(){let e=(0,f.useRouter)(),[s,a]=(0,p.useState)(!1);(0,p.useEffect)(()=>{(0,b.i)().then(s=>{s&&e.replace("/dashboard")})},[e]);let o=(0,l.cI)({defaultValues:{name:"",email:"",password:""},resolver:(0,i.F)(y)});async function N(e){j.Am.loading("Signing you up...",{id:"signup-toast"});try{let s=await (0,g.signUp)({formFields:[{id:"email",value:e.email},{id:"password",value:e.password},{id:"name",value:e.name}]});j.Am.dismiss("signup-toast"),"FIELD_ERROR"===s.status?s.formFields.forEach(e=>{"email"===e.id?j.Am.error(e.error):"password"===e.id&&j.Am.error(e.error)}):"SIGN_UP_NOT_ALLOWED"===s.status?j.Am.error(s.reason):window.location.href="/dashboard"}catch(e){!0===e.isSuperTokensGeneralError?j.Am.error(e.message):j.Am.error("Oops! Something went wrong.")}}return(0,t.jsxs)("main",{className:"min-h-[600px] h-svh bg-gray-100 grid w-full",children:[(0,t.jsxs)(r.default,{href:"/",className:"fixed top-4 left-4 sm:top-12 sm:left-12 inline-flex items-center gap-1 text-gray-500 \n                    transition-colors duration-100 hover:text-primary-700",children:[(0,t.jsx)(x.Z,{className:"h-4.5 w-4.5"}),"Back to GoodBI"]}),(0,t.jsxs)("div",{className:"max-w-lg px-4 w-full place-self-center",children:[(0,t.jsxs)(r.default,{href:"/",className:"flex items-center gap-2 text-4xl text-primary-500 font-logo font-extrabold w-fit mx-auto",children:[(0,t.jsx)(m.default,{src:"/icons/goodbi-logo.svg",alt:"GoodBI",className:"h-12 w-10",width:"28",height:"28"}),"GoodBI",(0,t.jsx)("span",{className:"sr-only",children:"GoodBI"})]}),(0,t.jsx)("h1",{className:"font-bold text-2xl text-center mt-4 tracking-tight md:text-3xl",children:"Join the ultimate AI business intelligence platform."}),(0,t.jsxs)("p",{className:"mt-2 text-center text-gray-500",children:["Already have an account? "," ",(0,t.jsx)(r.default,{className:"transition-colors duration-100 text-primary-700 hover:text-primary-500",href:"/login",children:"Login"}),"."]}),(0,t.jsx)(n.l0,{...o,children:(0,t.jsxs)("form",{onSubmit:o.handleSubmit(N),className:"max-w-sm mx-auto flex flex-col gap-y-5 w-full mt-8",children:[(0,t.jsx)(n.Wi,{control:o.control,name:"name",render:e=>{let{field:s}=e;return(0,t.jsxs)(n.xJ,{className:"space-y-1",children:[(0,t.jsx)(n.lX,{className:"font-normal text-base text-gray-800",children:"Name"}),(0,t.jsx)(c.I,{type:"text",className:"rounded-xl text-base border border-gray-200/70 bg-white shadow-none",...s}),(0,t.jsx)(n.zG,{})]})}}),(0,t.jsx)(n.Wi,{control:o.control,name:"email",render:e=>{let{field:s}=e;return(0,t.jsxs)(n.xJ,{className:"space-y-1",children:[(0,t.jsx)(n.lX,{className:"font-normal text-base text-gray-800",children:"Email"}),(0,t.jsx)(c.I,{type:"text",className:"rounded-xl text-base border border-gray-200/70 bg-white shadow-none",...s}),(0,t.jsx)(n.zG,{})]})}}),(0,t.jsx)(n.Wi,{control:o.control,name:"password",render:e=>{let{field:r}=e;return(0,t.jsxs)(n.xJ,{className:"space-y-1",children:[(0,t.jsx)(n.lX,{className:"font-normal text-base text-gray-800",children:"Password"}),(0,t.jsx)(n.NI,{children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(c.I,{type:s?"text":"password",className:"rounded-xl text-base border border-gray-200/70 bg-white shadow-none pr-10 relative",...r}),(0,t.jsx)(d.z,{type:"button",size:"icon",variant:"outline",onClick:()=>a(!s),className:"absolute text-muted-foreground bottom-0 right-1 border-0 bg-transparent hover:bg-transparent z-50",children:s?(0,t.jsx)(u.Z,{className:"size-[20px]"}):(0,t.jsx)(h.Z,{className:"size-[20px]"})})]})}),(0,t.jsx)(n.zG,{})]})}}),(0,t.jsx)(d.z,{type:"submit",children:"Sign up"})]})}),(0,t.jsxs)("p",{className:"mt-8 text-center text-sm text-gray-500 max-w-64 mx-auto",children:["By proceeding, you agree to our"," ",(0,t.jsx)(r.default,{href:"/privacy-policy",target:"_blank",className:"underline transition-colors duration-100 hover:text-gray-700",children:"Privacy Policy"})," ","and"," ",(0,t.jsx)(r.default,{href:"/terms-of-service",target:"_blank",className:"underline transition-colors duration-100 hover:text-gray-700",children:"Terms of Service"}),"."]})]})]})}}},function(e){e.O(0,[9877,8742,7776,1336,9466,4612,2971,7023,1744],function(){return e(e.s=23771)}),_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.