import{j as e,B as s,E as d,T as m,d as x}from"./index-c910e189.js";import{o as u}from"./yup-e6171339.js";import{C as f,u as h}from"./index.esm-cb7a914e.js";import{F as j}from"./FormControlLabel-ef037a46.js";import{C as b}from"./Checkbox-9660f964.js";import"./CustomDatepicker-fa2ab383.js";import{F as i}from"./FormInput-a4f22564.js";import{P as y}from"./PasswordInput-e66c20d7.js";import"./index-f58a077c.js";import{P as g}from"./PageMetaData-1d38d5f3.js";import"./ScrollableList-4f192da2.js";import{c as C,b as a,f as w}from"./index.esm-4b824583.js";import"./SectionDivider-782acfa4.js";import{A as F}from"./AuthLayout-5c296379.js";import"./useFormControl-2acc5484.js";import"./SwitchBase-7c59984b.js";import"./useControlled-e4156ecd.js";import"./createSvgIcon-482c4579.js";import"./floating-ui.dom-cd6c919d.js";import"./OutlinedInput-5e0321ba.js";import"./isHostComponent-73d6e646.js";import"./InputAdornment-9bf084ba.js";import"./index-3e499916.js";import"./index-eec67340.js";import"./useMediaQuery-f2cfdb18.js";import"./InputLabel-8a73326d.js";import"./useToggle-22184636.js";import"./TableCell-f4de0f25.js";import"./TableRow-778e2904.js";import"./resolveProps-d3929786.js";import"./composeClasses-b42b2e69.js";import"./toPropertyKey-d8419463.js";import"./typeof-7fd5df1e.js";import"./popper-f3391c26.js";import"./styled-015539db.js";import"./List-5ca02ce5.js";import"./AuthBGLayout-fb156280.js";import"./CardContent-66856645.js";import"./Avatar-4bda1c81.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};
