import{j as e,B as s,E as d,T as m,d as x}from"./index-d9e0bbb9.js";import{o as u}from"./yup-267c2267.js";import{C as f,u as h}from"./index.esm-97139da9.js";import{F as j}from"./FormControlLabel-685586a9.js";import{C as b}from"./Checkbox-74feb846.js";import"./CustomDatepicker-9495774a.js";import{F as i}from"./FormInput-44ad439a.js";import{P as y}from"./PasswordInput-f1f4f54b.js";import"./index-e61c8ded.js";import{P as g}from"./PageMetaData-c80444e2.js";import"./ScrollableList-03cda798.js";import{c as C,b as a,f as w}from"./index.esm-65c50bc3.js";import"./SectionDivider-95fcfa90.js";import{A as F}from"./AuthLayout-888464a6.js";import"./useFormControl-8bb67ca0.js";import"./SwitchBase-8b88dd2c.js";import"./useControlled-ba6710bb.js";import"./createSvgIcon-c99d086f.js";import"./floating-ui.dom-cd6c919d.js";import"./OutlinedInput-8f17518b.js";import"./isHostComponent-73d6e646.js";import"./InputAdornment-978b4608.js";import"./index-3bec8271.js";import"./index-1253245b.js";import"./useMediaQuery-1b7ae287.js";import"./InputLabel-8c8abfdd.js";import"./useToggle-b6ab51df.js";import"./TableCell-643437b4.js";import"./TableRow-113a14fe.js";import"./resolveProps-ba55e2df.js";import"./composeClasses-b42b2e69.js";import"./toPropertyKey-720374c3.js";import"./popper-f3391c26.js";import"./styled-8fd62552.js";import"./List-c3ed6b04.js";import"./AuthBGLayout-07506df1.js";import"./CardContent-0df4f94a.js";import"./Avatar-1439ea34.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"})})]})}),ce=()=>{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{ce as default};
