import{j as e,B as s,E as d,T as m,d as x}from"./index-c1429e77.js";import{o as u}from"./yup-0d492cec.js";import{C as f,u as h}from"./index.esm-e372dd1f.js";import{F as j}from"./FormControlLabel-9a892c17.js";import{C as b}from"./Checkbox-46376d3a.js";import"./CustomDatepicker-9a80af6c.js";import{F as i}from"./FormInput-42f8fb29.js";import{P as y}from"./PasswordInput-57ca4436.js";import"./index-938f4514.js";import{P as g}from"./PageMetaData-779a2dc1.js";import"./ScrollableList-85f6c22b.js";import{c as C,b as a,f as w}from"./index.esm-85841cf7.js";import"./SectionDivider-0f38a779.js";import{A as F}from"./AuthLayout-faad24af.js";import"./useFormControl-674270c6.js";import"./SwitchBase-89be1310.js";import"./useControlled-f1a5b61d.js";import"./createSvgIcon-74b4ff5d.js";import"./floating-ui.dom-cd6c919d.js";import"./OutlinedInput-7d44f8dd.js";import"./isHostComponent-73d6e646.js";import"./InputAdornment-7b2a78bf.js";import"./index-6d8a6cf3.js";import"./index-10a98b8b.js";import"./useMediaQuery-6763b70c.js";import"./InputLabel-e729048c.js";import"./useToggle-37a1f586.js";import"./TableCell-f7ad5597.js";import"./TableRow-18e2a4e3.js";import"./resolveProps-3c56301c.js";import"./composeClasses-b42b2e69.js";import"./toPropertyKey-d8419463.js";import"./typeof-7fd5df1e.js";import"./popper-f3391c26.js";import"./styled-54544d88.js";import"./List-7dd83a15.js";import"./AuthBGLayout-da35bc30.js";import"./CardContent-195cd99b.js";import"./Avatar-9137e935.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};
