import{j as e,B as s,E as d,T as m,d as x}from"./index-6fe66247.js";import{o as u}from"./yup-ef931f05.js";import{C as f,u as h}from"./index.esm-8dc7c617.js";import{F as j}from"./FormControlLabel-27833f01.js";import{C as b}from"./Checkbox-bd35830c.js";import"./CustomDatepicker-8082706c.js";import{F as i}from"./FormInput-ee3759f9.js";import{P as y}from"./PasswordInput-862c7ca6.js";import"./index-b6aec95e.js";import{P as g}from"./PageMetaData-4821a42d.js";import"./ScrollableList-0f8e556e.js";import{c as C,b as a,f as w}from"./index.esm-34c2a639.js";import"./SectionDivider-ea552de1.js";import{A as F}from"./AuthLayout-99b62b66.js";import"./useFormControl-35c6f1af.js";import"./SwitchBase-c727f62d.js";import"./useControlled-e803b382.js";import"./createSvgIcon-00102b53.js";import"./floating-ui.dom-cd6c919d.js";import"./OutlinedInput-982baeac.js";import"./isHostComponent-73d6e646.js";import"./InputAdornment-33eb10d0.js";import"./index-25f54021.js";import"./index-b6605ad3.js";import"./useMediaQuery-0f3d61e0.js";import"./InputLabel-76d7f8cb.js";import"./useToggle-2579195d.js";import"./TableCell-1aea1cc4.js";import"./TableRow-3949f515.js";import"./resolveProps-d8ef25a0.js";import"./composeClasses-b42b2e69.js";import"./toPropertyKey-d8419463.js";import"./typeof-7fd5df1e.js";import"./popper-f3391c26.js";import"./styled-a478ed92.js";import"./List-11a0d6f8.js";import"./AuthBGLayout-a56ab887.js";import"./CardContent-6b060104.js";import"./Avatar-711191fc.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};
