1import{X as s,dK as m,dL as _,r as a,df as h,dg as i,dM as g,j as t,dH as p,ad as f,$ as n,dN as x,L as c}from"./main-DMm3VG1v.js";import{u as b}from"./form-CxWifqQ5.js";import{a as w}from"./zod-Dkfq-ISq.js";import{a as v,b as L,c as y,d as P}from"./auth_common_terms_of_service-Skkyib3r.js";import"./label--NM0f6nK.js";const j=()=>"Create an account",S=((r={},e={})=>(e.locale??s(),j())),R=()=>"Please enter your email",k=((r={},e={})=>(e.locale??s(),R())),C=()=>"Please enter your name",E=((r={},e={})=>(e.locale??s(),C())),N=()=>"Please enter your password",U=((r={},e={})=>(e.locale??s(),N())),q=()=>"Already have an account? Sign in",A=((r={},e={})=>(e.locale??s(),q()));function B({callbackUrl:r}){const e=typeof window<"u"?new URLSearchParams(window.location.search).get("callbackUrl"):null,l=m(_),u=r??(e||l),[D,F]=a.useState(void 0),[I,T]=a.useState(void 0),[H,O]=a.useState(!1),[G,K]=a.useState(!1),o=f.auth?.enableCredentialLogin,d=h({email:g({message:k()}),password:i().min(1,{message:U()}),name:i().min(1,{message:E()})});return b({resolver:w(d),defaultValues:{email:"",password:"",name:""}}),t.jsxs(p,{headerLabel:S(),bottomButtonLabel:A(),bottomButtonHref:n.Login,children:[o,t.jsx("div",{className:"mt-4",children:t.jsx(x,{callbackUrl:u,showDivider:o})})]})}function z(){return t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsx(B,{}),t.jsxs("div",{className:"text-balance text-center text-xs text-muted-foreground",children:[v(),t.jsx(c,{to:n.TermsOfService,className:"underline underline-offset-4 hover:text-primary",children:L()}),y(),t.jsx(c,{to:n.PrivacyPolicy,className:"underline underline-offset-4 hover:text-primary",children:P()})]})]})}export{z as component};
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.