1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,515256,e=>{"use strict";var t=e.i(843476),a=e.i(271645),n=e.i(522016),s=e.i(618566),l=e.i(167881),r=e.i(23750),i=e.i(10708),o=e.i(906817),c=e.i(95187);let d=(0,c.createServerReference)("4093dca4b6e26e16914d724722c3d736264864042d",c.callServer,void 0,c.findSourceMapURL,"signUp");var u=e.i(772340),m=e.i(905808);let p={utmSource:null,utmMedium:null,utmCampaign:null,utmContent:null,leadToken:null};var x=e.i(375602),f=e.i(680463);e.s(["SignupForm",0,function({showGoogle:e=!1,initialEmail:c="",attribution:h=p}){let g=(0,s.useRouter)(),v=new URLSearchParams({next:"/billing"});h.utmSource&&v.set("utm_source",h.utmSource),h.utmMedium&&v.set("utm_medium",h.utmMedium),h.utmCampaign&&v.set("utm_campaign",h.utmCampaign),h.utmContent&&v.set("utm_content",h.utmContent),h.leadToken&&v.set("lt",h.leadToken);let b=v.size?`/auth/google?${v.toString()}`:"/auth/google",[j,S]=a.useState("signup"),[w,C]=a.useState(""),[N,y]=a.useState(c),[L,R]=a.useState(""),[M,A]=a.useState(""),[B,U]=a.useState(null),[F,T]=a.useState(null),[P,k]=a.useTransition();return"confirm"===j?(0,t.jsxs)("form",{onSubmit:function(e){e.preventDefault(),T(null),k(async()=>{let e=await (0,u.confirmSignUp)({name:w,email:N,password:L,code:M,attribution:h});e?.success===!1?T(e.error??"Something went wrong"):((0,x.track)("sign_up",{method:"cognito"}),g.replace(e.checkoutUrl??"/billing"))})},className:"space-y-4",children:[B&&(0,t.jsx)("p",{className:"rounded-md border border-info/30 bg-info/10 p-2.5 text-sm text-muted-foreground",children:B}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(i.Label,{htmlFor:"code",children:"Verification code"}),(0,t.jsx)(r.Input,{id:"code",inputMode:"numeric",autoComplete:"one-time-code",autoFocus:!0,required:!0,value:M,onChange:e=>A(e.target.value),placeholder:"123456"})]}),F&&(0,t.jsx)("p",{className:"text-sm text-negative",children:F}),(0,t.jsx)(l.Button,{type:"submit",className:"w-full",disabled:P,children:P?"Verifyingâ¦":"Confirm and continue"}),(0,t.jsxs)("p",{className:"text-center text-sm text-muted-foreground",children:["Didn't get it?"," ",(0,t.jsx)("button",{type:"button",onClick:function(){T(null),U(null),k(async()=>{let e=await (0,m.resendCode)({email:N});e?.success===!1?T(e.error??"Could not resend the code."):U(`We sent a new code to ${N}.`)})},disabled:P,className:"font-medium text-foreground underline underline-offset-4 disabled:opacity-50",children:"Resend code"})]})]}):(0,t.jsxs)("div",{className:"space-y-4",children:[e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.GoogleButton,{label:"Sign up with Google",href:b}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("span",{className:"h-px flex-1 bg-border"}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:"or"}),(0,t.jsx)("span",{className:"h-px flex-1 bg-border"})]})]}),(0,t.jsxs)("form",{onSubmit:function(e){e.preventDefault(),T(null),U(null),k(async()=>{let e=await d({name:w,email:N,password:L});if(e?.needsConfirmation){S("confirm"),U(`We emailed a 6-digit code to ${e.email??N}.`);return}e?.success===!1&&T(e.error??"Something went wrong")})},className:"space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(i.Label,{htmlFor:"email",children:"Email"}),(0,t.jsx)(r.Input,{id:"email",type:"email",autoComplete:"email",autoFocus:!0,required:!0,value:N,onChange:e=>y(e.target.value),placeholder:"[email protected]"})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(i.Label,{htmlFor:"password",children:"Password"}),(0,t.jsx)(r.Input,{id:"password",type:"password",autoComplete:"new-password",required:!0,minLength:8,value:L,onChange:e=>R(e.target.value),placeholder:"At least 8 characters"})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsxs)(i.Label,{htmlFor:"name",children:["Name ",(0,t.jsx)("span",{className:"text-muted-foreground",children:"(optional)"})]}),(0,t.jsx)(r.Input,{id:"name",type:"text",autoComplete:"name",value:w,onChange:e=>C(e.target.value),placeholder:"Jane Landlord"})]}),F&&(0,t.jsx)("p",{className:"text-sm text-negative",children:F}),(0,t.jsx)(l.Button,{type:"submit",className:"w-full",disabled:P,children:P?"Creating accountâ¦":"Continue to plan selection"}),(0,t.jsxs)("p",{className:"text-center text-xs text-muted-foreground",children:["Next, pick Basic or Pro and your ",f.TRIAL_DAYS,"-day free trial starts. No credit card, and nothing bills on its own."]}),(0,t.jsxs)("p",{className:"text-center text-sm text-muted-foreground",children:["Already have an account?"," ",(0,t.jsx)(n.default,{href:"/login",className:"font-medium text-foreground underline underline-offset-4",children:"Sign in"})]})]})]})}],515256)},906817,772340,905808,e=>{"use strict";var t=e.i(843476),a=e.i(167881),n=e.i(647163);function s(){return(0,t.jsxs)("svg",{className:"size-4",viewBox:"0 0 18 18","aria-hidden":"true",children:[(0,t.jsx)("path",{fill:"#4285F4",d:"M17.64 9.2c0-.637-.057-1.251-.164-1.84H9v3.481h4.844a4.14 4.14 0 0 1-1.796 2.716v2.259h2.908c1.702-1.567 2.684-3.875 2.684-6.615Z"}),(0,t.jsx)("path",{fill:"#34A853",d:"M9 18c2.43 0 4.467-.806 5.956-2.184l-2.908-2.259c-.806.54-1.837.86-3.048.86-2.344 0-4.328-1.584-5.036-3.711H.957v2.332A8.997 8.997 0 0 0 9 18Z"}),(0,t.jsx)("path",{fill:"#FBBC05",d:"M3.964 10.706A5.41 5.41 0 0 1 3.682 9c0-.593.102-1.17.282-1.706V4.962H.957A8.997 8.997 0 0 0 0 9c0 1.452.348 2.826.957 4.038l3.007-2.332Z"}),(0,t.jsx)("path",{fill:"#EA4335",d:"M9 3.583c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.463.891 11.426 0 9 0A8.997 8.997 0 0 0 .957 4.962L3.964 7.294C4.672 5.167 6.656 3.583 9 3.583Z"})]})}e.s(["GoogleButton",0,function({label:e="Continue with Google",href:l="/auth/google",className:r}){return(0,t.jsx)(a.Button,{asChild:!0,variant:"outline",className:(0,n.cn)("w-full",r),children:(0,t.jsxs)("a",{href:l,children:[(0,t.jsx)(s,{}),e]})})}],906817);var l=e.i(95187);let r=(0,l.createServerReference)("40b6911d14e5c86ff52e4bd2cae84cbf8c30cac78b",l.callServer,void 0,l.findSourceMapURL,"confirmSignUp");e.s(["confirmSignUp",0,r],772340);let i=(0,l.createServerReference)("40be0e83ee08920521a1e780035c00eacaec7fa284",l.callServer,void 0,l.findSourceMapURL,"resendCode");e.s(["resendCode",0,i],905808)},10708,e=>{"use strict";var t=e.i(843476),a=e.i(271645);e.i(174080);var n=e.i(991918),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,s)=>{let l=(0,n.createSlot)(`Primitive.${s}`),r=a.forwardRef((e,a)=>{let{asChild:n,...r}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(n?l:s,{...r,ref:a})});return r.displayName=`Primitive.${s}`,{...e,[s]:r}},{}),l=a.forwardRef((e,a)=>(0,t.jsx)(s.label,{...e,ref:a,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));l.displayName="Label";var r=e.i(647163);e.s(["Label",0,function({className:e,...a}){return(0,t.jsx)(l,{"data-slot":"label",className:(0,r.cn)("flex items-center gap-2 text-sm font-medium leading-none select-none","group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...a})}],10708)}]);
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.