1import{F as j,r as f,j as s,U as g,B as w,c as P,ap as y,at as F,au as C,av as v,aw as S,aq as b,ax as N}from"./index-8qrbfbuT.js";import{A as I}from"./auth-layout-CIkO1pjp.js";import{c as L}from"./index.esm-R5aZxdz-.js";import{a as A}from"./zod-iQk3xHfd.js";import{a as E,b as o,c as n,d as t,F as i,e as m}from"./form-DXiGoved.js";import{P as d}from"./password-input-BUX9ultP.js";import{o as T,s as c}from"./schemas-C3rUNQQu.js";import"./language-switch-BJmmmXlm.js";import"./dropdown-menu-DdiFcb-s.js";import"./index-CzWS5cpN.js";import"./index-BeCzrEAu.js";import"./index-BhK8MCBt.js";import"./index-DqAhwG2J.js";import"./check-plHkF2p1.js";import"./chevron-right-CLCaVSxY.js";import"./label-hOI6E7oM.js";import"./IconEye-BCfxnRU-.js";import"./IconEyeOff-CWuO-fA0.js";const B=T({email:c().min(1,{message:"Please enter your email"}).email({message:"Invalid email address"}),password:c().min(1,{message:"Please enter your password"}).min(7,{message:"Password must be at least 7 characters long"}),confirmPassword:c()}).refine(a=>a.password===a.confirmPassword,{message:"Passwords don't match.",path:["confirmPassword"]});function U({className:a,...p}){const{t:x}=j(),[u,l]=f.useState(!1),e=L({resolver:A(B),defaultValues:{email:"",password:"",confirmPassword:""}});function h(r){l(!0),setTimeout(()=>{l(!1)},3e3)}return s.jsx(E,{...e,children:s.jsxs("form",{onSubmit:e.handleSubmit(h),className:P("grid gap-3",a),...p,children:[s.jsx(o,{control:e.control,name:"email",render:({field:r})=>s.jsxs(n,{children:[s.jsx(t,{children:"Email"}),s.jsx(i,{children:s.jsx(g,{placeholder:"[email protected]",...r})}),s.jsx(m,{})]})}),s.jsx(o,{control:e.control,name:"password",render:({field:r})=>s.jsxs(n,{children:[s.jsx(t,{children:"Password"}),s.jsx(i,{children:s.jsx(d,{placeholder:"********",...r})}),s.jsx(m,{})]})}),s.jsx(o,{control:e.control,name:"confirmPassword",render:({field:r})=>s.jsxs(n,{children:[s.jsx(t,{children:x("users.form.confirmPassword")}),s.jsx(i,{children:s.jsx(d,{placeholder:"********",...r})}),s.jsx(m,{})]})}),s.jsx(w,{className:"mt-2",disabled:u,children:"Create Account"})]})})}function k(){return s.jsx(I,{children:s.jsxs(y,{className:"gap-4",children:[s.jsxs(F,{children:[s.jsx(C,{className:"text-lg tracking-tight",children:"Create an account"}),s.jsxs(v,{children:["Enter your email and password to create an account. ",s.jsx("br",{}),"Already have an account?"," ",s.jsx(S,{to:"/sign-in",className:"hover:text-primary underline underline-offset-4",children:"Sign In"})]})]}),s.jsx(b,{children:s.jsx(U,{})}),s.jsx(N,{children:s.jsxs("p",{className:"text-muted-foreground px-8 text-center text-sm",children:["By creating an account, you agree to our"," ",s.jsx("a",{href:"/terms",className:"hover:text-primary underline underline-offset-4",children:"Terms of Service"})," ","and"," ",s.jsx("a",{href:"/privacy",className:"hover:text-primary underline underline-offset-4",children:"Privacy Policy"}),"."]})})]})})}const ss=k;export{ss 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.