import{j as e,B as i,K as x,T as s,c as d}from"./index-76d4793e.js";import{o as u}from"./yup-688ec4f6.js";import{C as f,u as h}from"./index.esm-3adfd9f7.js";import{F as j}from"./FormControlLabel-77c65f77.js";import{C as b}from"./Checkbox-ce15672a.js";import"./componentStyles-0803b39e.js";import{F as m}from"./FormInput-8f40ded1.js";import{P as y}from"./PasswordInput-491df837.js";/* empty css                   */import{P as g}from"./PageMetaData-e5080ba8.js";import"./ScrollableList-4dae3697.js";import{c as C,b as a,e as w}from"./index.esm-ad8a7c9f.js";import{A as F}from"./AuthLayout-8df7f0ca.js";import"./useFormControl-c8d490e1.js";import"./SwitchBase-25e1ee17.js";import"./useControlled-e03384de.js";import"./createSvgIcon-01ec10fc.js";import"./floating-ui.dom-e7d69f3b.js";import"./OutlinedInput-ac933786.js";import"./List-4c24b3e8.js";import"./InputAdornment-b99403ce.js";import"./index-ecea5cfc.js";import"./useMediaQuery-8cb39c65.js";import"./InputLabel-5ed57f0e.js";import"./TableRow-736f36bd.js";import"./useToggle-025d2f61.js";import"./Loader-9f443a4c.js";import"./AuthBGLayout-d207207c.js";import"./CardContent-2f10f9e9.js";import"./Avatar-ff1026d1.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(i,{sx:{my:"16px",display:"flex",justifyContent:"center"},children:e.jsxs(s,{variant:"body2",color:"text.secondary",sx:{display:"flex",flexWrap:"nowrap",gap:.5},children:["Already have account?",e.jsx(d,{to:"/auth/login",children:e.jsx(s,{variant:"subtitle2",component:"span",children:"Log In"})})]})}),oe=()=>{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(m,{name:"fullName",type:"text",label:"Full Name",control:r}),e.jsx(m,{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(i,{sx:{display:"flex",justifyContent:"center",mt:2},children:e.jsx(x,{variant:"contained",color:"primary",type:"submit",size:"large",children:"Login"})})]})})]})};export{oe as default};
