import{a as l,b as d,c as a,d as s,e as u,f as c,g as p,h as f}from"/build/_shared/chunk-QN4JRZFN.js";import"/build/_shared/chunk-BJHIMWSO.js";import"/build/_shared/chunk-D46IZROQ.js";import"/build/_shared/chunk-LW3GITQZ.js";import"/build/_shared/chunk-GYJW4R24.js";import"/build/_shared/chunk-4W6Q3ICG.js";import"/build/_shared/chunk-ZH5DBAIE.js";import{u as n,z as o}from"/build/_shared/chunk-SYLZIOTS.js";import{a as F,b as E,c as N}from"/build/_shared/chunk-25GQKOZQ.js";import{a as b}from"/build/_shared/chunk-VWINT4H3.js";import{a as m}from"/build/_shared/chunk-WMXOFRMM.js";import{d as e}from"/build/_shared/chunk-G5WX4PPA.js";var v=e(F(),1);var R=e(E(),1);var t=e(o(),1),y=a.object({firstName:a.string().min(1,{message:"Required"}),lastName:a.string().min(1,{message:"Required"}),email:a.string().min(1,{message:"Required"}).email({message:"Invalid email"}),password:a.string().min(8,{message:"At least 8 characters required"}).refine(r=>/\d/.test(r),{message:"At least one number required"}).refine(r=>/[A-Z]/.test(r),{message:"At least one uppercase letter required"}).refine(r=>/[a-z]/.test(r),{message:"At least one lowercase letter required"})}),L=d(y),g=()=>{let r=n();return(0,t.jsxs)(l,{validator:L,method:"post",className:"w-full",children:[(0,t.jsx)(s,{name:"firstName",label:"First Name",placeholder:"First Name"}),(0,t.jsx)(s,{name:"lastName",label:"Last Name",placeholder:"Last Name"}),(0,t.jsx)(s,{name:"email",label:"Email",placeholder:"Email"}),(0,t.jsx)(s,{name:"password",label:"Password",placeholder:"Password",type:"password"}),(0,t.jsx)(u,{content:"Register"}),r?.error&&(0,t.jsx)("p",{className:"text-red-500 mt-1",children:r.error})]})};var x=e(N(),1),P=e(b(),1);var i=e(o(),1),h=()=>(0,i.jsxs)(p,{children:[(0,i.jsx)(c,{title:"Register",children:(0,i.jsx)(g,{})}),(0,i.jsx)(f,{to:m.auth.login,children:"Already have an account?"})]});var w=e(o(),1);function A(){return(0,w.jsx)(h,{})}export{A as default};
