import{j as e,B as i,R as x,T as s,e as d}from"./index-6c48ebe4.js";import{o as u}from"./yup-75ac0470.js";import{C as f,c as h,b as a,j,u as b}from"./index.esm-fd3369ba.js";import{F as y}from"./FormControlLabel-122a731f.js";import{C as g}from"./Checkbox-f9887e1d.js";import"./GenericThumbnailView-e18774c4.js";import{F as m}from"./FormInput-345d040e.js";import{P as C}from"./PasswordInput-d988daad.js";import"./componentStyles-1dd5fe29.js";import{P as w}from"./PageMetaData-80da715a.js";import"./ScrollableList-e9cb113e.js";import"./TextArea-4432195b.js";import{A as F}from"./AuthLayout-9d82ed2e.js";import"./Grow-3d640bff.js";import"./SwitchBase-8951f097.js";import"./index-84485105.js";import"./createClass-8ad09c76.js";import"./popper-f3391c26.js";import"./Select-c5c274bb.js";import"./index-e5978b8b.js";import"./InputAdornment-42748b9a.js";import"./TextField-3876249c.js";import"./isMuiElement-447b74a0.js";import"./useToggle-67f35d17.js";import"./TableRow-31f0a4a1.js";import"./CircularProgress-7b4c6820.js";import"./AuthBGLayout-4df679c8.js";import"./Grid2-70d79e93.js";import"./CardContent-ef96b4db.js";import"./Avatar-8d21d83f.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"})})]})}),oe=()=>{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{oe as default};
