import{j as e,B as i,R as x,T as s,e as d}from"./index-3141de2d.js";import{o as u}from"./yup-c2fea6fa.js";import{C as f,c as h,b as a,j,u as b}from"./index.esm-8b0c9a99.js";import{F as y}from"./FormControlLabel-c4983ca8.js";import{C as g}from"./Checkbox-8808455f.js";import"./GenericThumbnailView-c2621934.js";import{F as m}from"./FormInput-abff9e70.js";import{P as C}from"./PasswordInput-d4242756.js";import"./componentStyles-24f97919.js";import{P as w}from"./PageMetaData-2b8c2cd7.js";import"./ScrollableList-fa62971d.js";import"./TextArea-ceaff311.js";import{A as F}from"./AuthLayout-ca2c85de.js";import"./Grow-e0aea29d.js";import"./SwitchBase-416973c8.js";import"./index-a3f870f6.js";import"./popper-f3391c26.js";import"./Select-369b8a03.js";import"./index-e5978b8b.js";import"./InputAdornment-1680248d.js";import"./TextField-ec161c03.js";import"./isMuiElement-2bebf9f1.js";import"./useToggle-c087b809.js";import"./TableRow-e26106d8.js";import"./CircularProgress-a64e9e1b.js";import"./AuthBGLayout-6252070b.js";import"./Grid2-488bb30d.js";import"./CardContent-97006932.js";import"./Avatar-ceef0f33.js";const k=({control:o,id:t,name:r,label:n,labelSx:l,...p})=>e.jsx(f,{control:o,render:({field:c,fieldState:v})=>e.jsx(y,{control:e.jsx(g,{id:t??r,...p,...c}),sx:l,label:n}),name:r}),P=()=>e.jsx(i,{sx:{my:"16px",display:"flex",justifyContent:"center"},children:e.jsxs(s,{variant:"body2",color:"text.secondary",sx:{display:"flex",flexWrap:"nowrap",gap:.5},children:["Already have account?",e.jsx(d,{to:"/auth/login",children:e.jsx(s,{variant:"subtitle2",component:"span",children:"Log In"})})]})}),re=()=>{const o=h({fullName:a().required("Name is required"),email:a().email("Please enter valid email").required("Please enter email"),password:a().required("Please enter password"),rememberMe:j().oneOf([!0],"Checkbox must be checked").optional()}),{control:t,handleSubmit:r}=b({resolver:u(o),defaultValues:{fullName:"Attex Demo",email:"demo@demo.com",password:"password"}});return e.jsxs(e.Fragment,{children:[e.jsx(w,{title:"Register"}),e.jsx(F,{authTitle:"Free Register",helpText:"Don't have an account? Create your account, it takes less than a minute.",bottomLinks:e.jsx(P,{}),children:e.jsxs("form",{onSubmit:r(()=>null),children:[e.jsx(m,{name:"fullName",type:"text",label:"Full Name",control:t}),e.jsx(m,{name:"email",type:"email",label:"Email Address",containerSx:{mt:2},control:t}),e.jsx(C,{name:"password",type:"password",label:"Password",containerSx:{mt:2},control:t}),e.jsx(k,{name:"rememberMe",label:"Remember me",control:t,labelSx:{mt:1}}),e.jsx(i,{sx:{display:"flex",justifyContent:"center",mt:2},children:e.jsx(x,{variant:"contained",color:"primary",type:"submit",size:"large",children:"Login"})})]})})]})};export{re as default};
