import{j as e,B as s,E as d,T as m,d as x}from"./index-55b8aeb0.js";import{o as u}from"./yup-21078b88.js";import{C as f,u as h}from"./index.esm-31587b9b.js";import{F as j}from"./FormControlLabel-7f4c5338.js";import{C as b}from"./Checkbox-7944a976.js";import"./CustomDatepicker-9892b2ee.js";import{F as i}from"./FormInput-6413815f.js";import{P as y}from"./PasswordInput-b3a041ac.js";import"./index-7c560a47.js";import{P as g}from"./PageMetaData-7be90250.js";import"./ScrollableList-a069ff95.js";import{c as C,b as a,f as w}from"./index.esm-8f37a121.js";import"./SectionDivider-0fcc86df.js";import{A as F}from"./AuthLayout-c99973d4.js";import"./useFormControl-0fae9ee7.js";import"./SwitchBase-02f489c2.js";import"./useControlled-dc1d5a3a.js";import"./createSvgIcon-61f1439a.js";import"./floating-ui.dom-cd6c919d.js";import"./OutlinedInput-113a096e.js";import"./isHostComponent-73d6e646.js";import"./InputAdornment-a1329ca0.js";import"./index-b46d078b.js";import"./index-3c3af0a2.js";import"./useMediaQuery-74f5c38e.js";import"./InputLabel-0efc058b.js";import"./useToggle-24d42bce.js";import"./TableCell-53983040.js";import"./TableRow-abb96e14.js";import"./resolveProps-950d970c.js";import"./composeClasses-b42b2e69.js";import"./toPropertyKey-d8419463.js";import"./typeof-7fd5df1e.js";import"./popper-f3391c26.js";import"./styled-ea700eba.js";import"./List-131a37dd.js";import"./AuthBGLayout-e8044dcb.js";import"./CardContent-5d45e66d.js";import"./Avatar-81057b61.js";const k=({control:o,id:r,name:t,label:n,labelSx:l,...p})=>e.jsx(f,{control:o,render:({field:c,fieldState:v})=>e.jsx(j,{control:e.jsx(b,{id:r??t,...p,...c}),sx:l,label:n}),name:t}),P=()=>e.jsx(s,{sx:{my:"16px",display:"flex",justifyContent:"center"},children:e.jsxs(m,{variant:"body2",color:"text.secondary",sx:{display:"flex",flexWrap:"nowrap",gap:.5},children:["Already have account?",e.jsx(x,{to:"/auth/login",children:e.jsx(m,{variant:"subtitle2",component:"span",children:"Log In"})})]})}),de=()=>{const o=C({fullName:a().required("Name is required"),email:a().email("Please enter valid email").required("Please enter email"),password:a().required("Please enter password"),rememberMe:w().oneOf([!0],"Checkbox must be checked").optional()}),{control:r,handleSubmit:t}=h({resolver:u(o),defaultValues:{fullName:"Attex Demo",email:"demo@demo.com",password:"password"}});return e.jsxs(e.Fragment,{children:[e.jsx(g,{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:t(()=>null),children:[e.jsx(i,{name:"fullName",type:"text",label:"Full Name",control:r}),e.jsx(i,{name:"email",type:"email",label:"Email Address",containerSx:{mt:2},control:r}),e.jsx(y,{name:"password",type:"password",label:"Password",containerSx:{mt:2},control:r}),e.jsx(k,{name:"rememberMe",label:"Remember me",control:r,labelSx:{mt:1}}),e.jsx(s,{sx:{display:"flex",justifyContent:"center",mt:2},children:e.jsx(d,{variant:"contained",color:"primary",type:"submit",size:"large",children:"Login"})})]})})]})};export{de as default};
