1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];if(null!=r)for(var s in r)r.hasOwnProperty(s)&&(e[s]=r[s])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:sl8-app":!0})}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2678],{881:(e,t,r)=>{"use strict";r.d(t,{RegisterForm:()=>W});var s=r(68987),a=r(37866),n=r.n(a),i=r(2315),o=r(1343),l=r(84984),d=r(90117),c=r(52615),u=r(71519),m=r(52928),f=r(18476),p=r(95114),h=r(43841),x=r(18133),g=r(33397),y=r(72529),v=r(39595),w=r(63471),b=r(46205),N=r(29971),j="Checkbox",[P,k]=(0,x.A)(j),[S,C]=P(j);function E(e){let{__scopeCheckbox:t,checked:r,children:a,defaultChecked:n,disabled:o,form:l,name:d,onCheckedChange:c,required:u,value:m="on",internal_do_not_use_render:f}=e,[p,h]=(0,y.i)({prop:r,defaultProp:n??!1,onChange:c,caller:j}),[x,g]=i.useState(null),[v,w]=i.useState(null),b=i.useRef(!1),N=!x||!!l||!!x.closest("form"),P={checked:p,disabled:o,setChecked:h,control:x,setControl:g,name:d,form:l,value:m,hasConsumerStoppedPropagationRef:b,required:u,defaultChecked:!F(n)&&n,isFormControl:N,bubbleInput:v,setBubbleInput:w};return(0,s.jsx)(S,{scope:t,...P,children:"function"==typeof f?f(P):a})}var M="CheckboxTrigger",O=i.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...a},n)=>{let{control:o,value:l,disabled:d,checked:c,required:u,setControl:m,setChecked:f,hasConsumerStoppedPropagationRef:p,isFormControl:x,bubbleInput:y}=C(M,e),v=(0,h.s)(n,m),w=i.useRef(c);return i.useEffect(()=>{let e=o?.form;if(e){let t=()=>f(w.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[o,f]),(0,s.jsx)(N.sG.button,{type:"button",role:"checkbox","aria-checked":F(c)?"mixed":c,"aria-required":u,"data-state":z(c),"data-disabled":d?"":void 0,disabled:d,value:l,...a,ref:v,onKeyDown:(0,g.mK)(t,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,g.mK)(r,e=>{f(e=>!!F(e)||!e),y&&x&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())})})});O.displayName=M;var R=i.forwardRef((e,t)=>{let{__scopeCheckbox:r,name:a,checked:n,defaultChecked:i,required:o,disabled:l,value:d,onCheckedChange:c,form:u,...m}=e;return(0,s.jsx)(E,{__scopeCheckbox:r,checked:n,defaultChecked:i,disabled:l,required:o,onCheckedChange:c,name:a,form:u,value:d,internal_do_not_use_render:({isFormControl:e})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(O,{...m,ref:t,__scopeCheckbox:r}),e&&(0,s.jsx)(I,{__scopeCheckbox:r})]})})});R.displayName=j;var T="CheckboxIndicator",A=i.forwardRef((e,t)=>{let{__scopeCheckbox:r,forceMount:a,...n}=e,i=C(T,r);return(0,s.jsx)(b.C,{present:a||F(i.checked)||!0===i.checked,children:(0,s.jsx)(N.sG.span,{"data-state":z(i.checked),"data-disabled":i.disabled?"":void 0,...n,ref:t,style:{pointerEvents:"none",...e.style}})})});A.displayName=T;var _="CheckboxBubbleInput",I=i.forwardRef(({__scopeCheckbox:e,...t},r)=>{let{control:a,hasConsumerStoppedPropagationRef:n,checked:o,defaultChecked:l,required:d,disabled:c,name:u,value:m,form:f,bubbleInput:p,setBubbleInput:x}=C(_,e),g=(0,h.s)(r,x),y=(0,v.Z)(o),b=(0,w.X)(a);i.useEffect(()=>{if(!p)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!n.current;if(y!==o&&e){let r=new Event("click",{bubbles:t});p.indeterminate=F(o),e.call(p,!F(o)&&o),p.dispatchEvent(r)}},[p,y,o,n]);let j=i.useRef(!F(o)&&o);return(0,s.jsx)(N.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:l??j.current,required:d,disabled:c,name:u,value:m,form:f,...t,tabIndex:-1,ref:g,style:{...t.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function F(e){return"indeterminate"===e}function z(e){return F(e)?"indeterminate":e?"checked":"unchecked"}I.displayName=_;var U=r(14808);let L=i.forwardRef(({className:e,...t},r)=>(0,s.jsx)(R,{ref:r,className:(0,u.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:(0,s.jsx)(A,{className:(0,u.cn)("flex items-center justify-center text-current"),children:(0,s.jsx)(U.Srz,{className:"h-4 w-4"})})}));L.displayName=R.displayName;var D=r(85597),J=r(9405),B=r(27752);let K=c.Ik({email:c.Yj().email({message:"Please enter a valid email address."}),password:c.Yj().min(8,{message:"Password must be at least 8 characters."}),confirmPassword:c.Yj(),terms:c.zM().refine(e=>!0===e,{message:"You must accept the terms and conditions."})}).refine(e=>e.password===e.confirmPassword,{message:"Passwords don't match",path:["confirmPassword"]});function W({className:e,...t}){let[r,a]=(0,i.useState)(!1),c=(0,o.useRouter)(),h=(0,d.mN)({resolver:(0,l.u)(K),defaultValues:{email:"",password:"",confirmPassword:"",terms:!1}});async function x(e){a(!0);try{let t=await B.yK.signUp.email({email:e.email,password:e.password,name:e.email.split("@")[0]});if(t.error){t.error.message?.includes("already")||t.error.message?.includes("exists")?h.setError("email",{message:"An account with this email already exists."}):h.setError("root",{message:"Failed to create account. Please try again."}),a(!1);return}c.push("/")}catch(e){h.setError("root",{message:"Failed to create account. Please try again."}),a(!1)}}async function g(){a(!0);try{await B.yK.signIn.social({provider:"google",callbackURL:"/"})}catch(e){h.setError("root",{message:"Failed to sign in with Google. Please try again."}),a(!1)}}return(0,s.jsxs)("div",{className:(0,u.cn)("flex flex-col gap-6",e),...t,children:[(0,s.jsx)(J.q,{onSubmit:h.handleSubmit(x),children:(0,s.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,s.jsxs)("div",{className:"flex flex-col items-center text-center",children:[(0,s.jsx)(D.F,{size:"lg",showText:!1,
1className:"mb-6"}),(0,s.jsx)("h1",{className:"text-2xl font-bold",children:"Create your account"}),(0,s.jsx)("p",{className:"text-muted-foreground text-balance",children:"Join thousands building with AI"})]}),(0,s.jsxs)("div",{className:"grid gap-3",children:[(0,s.jsx)(p.J,{htmlFor:"email",children:"Email"}),(0,s.jsx)(f.p,{id:"email",type:"email",placeholder:"[email protected]",autoCapitalize:"none",autoComplete:"email",autoCorrect:"off",disabled:r,...h.register("email")}),h.formState.errors.email&&(0,s.jsx)("p",{"data-testid":"email-error",className:"text-sm text-red-500",children:h.formState.errors.email.message})]}),(0,s.jsxs)("div",{className:"grid gap-3",children:[(0,s.jsx)(p.J,{htmlFor:"password",children:"Password"}),(0,s.jsx)(f.p,{id:"password",type:"password",disabled:r,...h.register("password")}),h.formState.errors.password&&(0,s.jsx)("p",{"data-testid":"password-error",className:"text-sm text-red-500",children:h.formState.errors.password.message})]}),(0,s.jsxs)("div",{className:"grid gap-3",children:[(0,s.jsx)(p.J,{htmlFor:"confirmPassword",children:"Confirm Password"}),(0,s.jsx)(f.p,{id:"confirmPassword",type:"password",disabled:r,...h.register("confirmPassword")}),h.formState.errors.confirmPassword&&(0,s.jsx)("p",{"data-testid":"confirm-password-error",className:"text-sm text-red-500",children:h.formState.errors.confirmPassword.message})]}),(0,s.jsxs)("div",{className:"flex items-start space-x-3",children:[(0,s.jsx)(L,{id:"terms",checked:h.watch("terms"),onCheckedChange:e=>h.setValue("terms",e),disabled:r}),(0,s.jsxs)("div",{className:"grid gap-1.5 leading-none",children:[(0,s.jsxs)(p.J,{htmlFor:"terms",className:"text-sm font-normal cursor-pointer",children:["I agree to Slate's"," ",(0,s.jsx)(n(),{href:"#",className:"text-primary underline underline-offset-2",children:"Terms of Service"})]}),h.formState.errors.terms&&(0,s.jsx)("p",{className:"text-sm text-red-500",children:h.formState.errors.terms.message})]})]}),h.formState.errors.root&&(0,s.jsx)("p",{"data-testid":"auth-error",className:"text-sm text-red-500",children:h.formState.errors.root.message}),(0,s.jsx)(m.$,{type:"submit",className:"w-full",disabled:r,children:r?"Creating account...":"Create account"}),(0,s.jsx)("div",{className:"after:border-border relative text-center text-sm after:absolute after:inset-0 after:top-1/2 after:z-0 after:flex after:items-center after:border-t",children:(0,s.jsx)("span",{className:"bg-card text-muted-foreground relative z-10 px-2",children:"Or continue with"})}),(0,s.jsxs)(m.$,{variant:"outline",type:"button",className:"w-full",onClick:g,disabled:r,children:[(0,s.jsx)("svg",{className:"mr-2 size-4","aria-hidden":"true",focusable:"false","data-prefix":"fab","data-icon":"google",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 488 512",children:(0,s.jsx)("path",{fill:"currentColor",d:"M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z"})}),"Continue with Google"]}),(0,s.jsxs)("div",{className:"text-center text-sm",children:["Already have an account?"," ",(0,s.jsx)(n(),{href:"/login",className:"underline underline-offset-4",children:"Sign in"})]})]})}),(0,s.jsxs)("div",{className:"text-muted-foreground text-center text-xs text-balance",children:["By creating an account, you agree to Slate's"," ",(0,s.jsx)(n(),{href:"#",className:"underline underline-offset-4 hover:text-primary",children:"Terms of Service"})," ","and"," ",(0,s.jsx)(n(),{href:"#",className:"underline underline-offset-4 hover:text-primary",children:"Privacy Policy"}),"."]})]})}},39595:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var s=r(2315);function a(e){let t=s.useRef({value:e,previous:e});return s.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},46205:(e,t,r)=>{"use strict";r.d(t,{C:()=>n});var s=r(2315),a=r(49212),n=e=>{var t;let r,n,{present:l,children:d}=e,c=function(e){var t,r;let[n,i]=s.useState(),l=s.useRef(null),d=s.useRef(e),c=s.useRef("none"),u=s.useRef(void 0),[m,f]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},s.useReducer((e,t)=>
1r[e][t]??e,t));return s.useEffect(()=>{"mounted"===m?(c.current=u.current??o(l.current),u.current=void 0):c.current="none"},[m]),(0,a.N)(()=>{let t=l.current,r=d.current;if(r!==e){let s=c.current,a=o(t);e?(u.current=a,f("MOUNT")):"none"===a||t?.display==="none"?f("UNMOUNT"):r&&s!==a?f("ANIMATION_OUT"):f("UNMOUNT"),d.current=e}},[e,f]),(0,a.N)(()=>{if(n){let e,t=n.ownerDocument.defaultView??window,r=r=>{let s=o(l.current).includes(CSS.escape(r.animationName));if(r.target===n&&s&&(f("ANIMATION_END"),!d.current)){let r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},s=e=>{e.target===n&&(c.current=o(l.current))};return n.addEventListener("animationstart",s),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",s),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}f("ANIMATION_END")},[n,f]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:s.useCallback(e=>{if(e){let t=getComputedStyle(e);l.current=t,u.current=o(t)}else l.current=null;i(e)},[])}}(l),u="function"==typeof d?d({present:c.isPresent}):s.Children.only(d),m=function(...e){let t=s.useRef(e);return t.current=e,s.useCallback(e=>{let r=t.current,s=!1,a=r.map(t=>{let r=i(t,e);return s||"function"!=typeof r||(s=!0),r});if(s)return()=>{for(let e=0;e<a.length;e++){let t=a[e];"function"==typeof t?t():i(r[e],null)}}},[])}(c.ref,(t=u,(n=(r=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?t.ref:(n=(r=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof d||c.isPresent?s.cloneElement(u,{ref:m}):null};function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(e){return e?.animationName||"none"}n.displayName="Presence"},63471:(e,t,r)=>{"use strict";r.d(t,{X:()=>n});var s=r(2315),a=r(49212);function n(e){let[t,r]=s.useState(void 0);return(0,a.N)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let s,a;if(!Array.isArray(t)||!t.length)return;let n=t[0];if("borderBoxSize"in n){let e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;s=t.inlineSize,a=t.blockSize}else s=e.offsetWidth,a=e.offsetHeight;r({width:s,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},72065:(e,t,r)=>{Promise.resolve().then(r.bind(r,29825)),Promise.resolve().then(r.bind(r,74110)),Promise.resolve().then(r.bind(r,881))},74110:(e,t,r)=>{"use strict";r.d(t,{RegisterPanelContent:()=>n});var s=r(68987),a=r(66014);function n(){return(0,s.jsxs)("div",{className:"text-left max-w-2xl",children:[(0,s.jsx)(a.P.p,{className:"text-tag-sm md:text-tag uppercase text-white/70 font-semibold mb-3",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.3},children:"Join Slate"}),(0,s.jsx)(a.P.h2,{className:"text-hero-sm md:text-hero lg:text-hero-lg xl:text-hero-xl font-semibold text-white font-display",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.4},children:"Start building smarter today"}),(0,s.jsx)(a.P.p,{className:"mt-4 text-body-sm md:text-body lg:text-body-lg text-white/70 font-normal font-body",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.5},children:"Join thousands of teams transforming how they work with AI"})]})}}},e=>{e.O(0,[1453,2826,5105,5306,7866,6014,8884,7182,2615,7527,8088,1519,670,3717,5449,9793,8441,2265,7358],()=>e(e.s=72065)),_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.