import{j as e,B as s,E as d,T as m,d as x}from"./index-7d3dbb9c.js";import{o as u}from"./yup-55e79238.js";import{C as f,u as h}from"./index.esm-12cc9f7b.js";import{F as j}from"./FormControlLabel-4a3a4313.js";import{C as b}from"./Checkbox-4b8e4bb1.js";import"./CustomDatepicker-6d5ad1ab.js";import{F as i}from"./FormInput-602ae51d.js";import{P as y}from"./PasswordInput-03f34751.js";import"./index-b5c17d61.js";import{P as g}from"./PageMetaData-69209ade.js";import"./ScrollableList-ffeab0b0.js";import{c as C,b as a,f as w}from"./index.esm-9d396c5f.js";import"./SectionDivider-be0a23cf.js";import{A as F}from"./AuthLayout-7008e480.js";import"./useFormControl-7314cc67.js";import"./SwitchBase-d834be30.js";import"./useControlled-338e346b.js";import"./createSvgIcon-25cfe1a8.js";import"./floating-ui.dom-cd6c919d.js";import"./OutlinedInput-e6d419ce.js";import"./isHostComponent-73d6e646.js";import"./InputAdornment-bbfa18ee.js";import"./index-7976e00d.js";import"./index-e9cb9551.js";import"./useMediaQuery-77b67f07.js";import"./InputLabel-ade41a0b.js";import"./useToggle-5f2db218.js";import"./TableCell-26014f2c.js";import"./TableRow-23a8435a.js";import"./resolveProps-4b8623f7.js";import"./composeClasses-b42b2e69.js";import"./toPropertyKey-720374c3.js";import"./popper-f3391c26.js";import"./styled-446e5583.js";import"./List-d7c020ab.js";import"./AuthBGLayout-7ff33852.js";import"./CardContent-184f4e92.js";import"./Avatar-4afe3b6a.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};
