import{j as e,B as s,E as d,T as m,d as x}from"./index-aa586041.js";import{o as u}from"./yup-75085264.js";import{C as f,u as h}from"./index.esm-c1bef48d.js";import{F as j}from"./FormControlLabel-ab2ab32c.js";import{C as b}from"./Checkbox-da19fcfe.js";import"./CustomDatepicker-26155063.js";import{F as i}from"./FormInput-7412b024.js";import{P as y}from"./PasswordInput-16184f69.js";import"./index-e3cd0864.js";import{P as g}from"./PageMetaData-1d7ce7c7.js";import"./ScrollableList-fcc6a14c.js";import{c as C,b as a,f as w}from"./index.esm-5d8102a7.js";import"./SectionDivider-2f9208fa.js";import{A as F}from"./AuthLayout-75ecf559.js";import"./useFormControl-1a7e7d92.js";import"./SwitchBase-8c9d77fa.js";import"./useControlled-e0c526ba.js";import"./createSvgIcon-26e7576d.js";import"./floating-ui.dom-cd6c919d.js";import"./OutlinedInput-8f0d0162.js";import"./isHostComponent-73d6e646.js";import"./InputAdornment-2dac8dca.js";import"./index-c5e91153.js";import"./index-1d230708.js";import"./useMediaQuery-64e46ff0.js";import"./InputLabel-fa135afd.js";import"./useToggle-a84956f9.js";import"./TableCell-171b9885.js";import"./TableRow-6b2aeb5d.js";import"./resolveProps-185f0451.js";import"./composeClasses-b42b2e69.js";import"./toPropertyKey-d8419463.js";import"./typeof-7fd5df1e.js";import"./popper-f3391c26.js";import"./styled-a6efd9c3.js";import"./List-d99f3a17.js";import"./AuthBGLayout-27c00a4b.js";import"./CardContent-c0781282.js";import"./Avatar-7233b687.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};
