import{j as e,B as s,E as d,T as m,d as x}from"./index-1350aa97.js";import{o as u}from"./yup-eafdc449.js";import{C as f,u as h}from"./index.esm-e43efa83.js";import{F as j}from"./FormControlLabel-bb108ea8.js";import{C as b}from"./Checkbox-31f55eb3.js";import"./CustomDatepicker-9019a583.js";import{F as i}from"./FormInput-ae738dd5.js";import{P as y}from"./PasswordInput-fc43aaaa.js";import"./index-bd875dae.js";import{P as g}from"./PageMetaData-88e17dcb.js";import"./ScrollableList-3f260516.js";import{c as C,b as a,f as w}from"./index.esm-74444d29.js";import"./SectionDivider-474af95d.js";import{A as F}from"./AuthLayout-390a2daf.js";import"./useFormControl-dd6168e4.js";import"./SwitchBase-5c5bade7.js";import"./useControlled-39301d68.js";import"./createSvgIcon-2e83c7e0.js";import"./floating-ui.dom-cd6c919d.js";import"./OutlinedInput-8de92ced.js";import"./isHostComponent-73d6e646.js";import"./InputAdornment-0139a25d.js";import"./index-dd1e751c.js";import"./index-8daffd3f.js";import"./useMediaQuery-a3126238.js";import"./InputLabel-13efa73d.js";import"./useToggle-562795a7.js";import"./TableCell-a6f79ef2.js";import"./TableRow-c7fca392.js";import"./resolveProps-d26bdf8f.js";import"./composeClasses-b42b2e69.js";import"./toPropertyKey-d8419463.js";import"./typeof-7fd5df1e.js";import"./popper-f3391c26.js";import"./styled-a7d7cd46.js";import"./List-538d4780.js";import"./AuthBGLayout-14fd74d1.js";import"./CardContent-ded20b1f.js";import"./Avatar-cb5b344c.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};
