import{j as e,B as i,K as x,T as s,c as d}from"./index-60a3c753.js";import{o as u}from"./yup-92678dde.js";import{C as f,u as h}from"./index.esm-c494934a.js";import{F as j}from"./FormControlLabel-950ba0c7.js";import{C as b}from"./Checkbox-fe59fe9f.js";import"./componentStyles-7753bbb9.js";import{F as m}from"./FormInput-74e2c4d2.js";import{P as y}from"./PasswordInput-904f6564.js";/* empty css                   */import{P as g}from"./PageMetaData-198e143e.js";import"./ScrollableList-1962b023.js";import{c as C,b as a,f as w}from"./index.esm-62d6b2f7.js";import{A as F}from"./AuthLayout-d2381bb6.js";import"./useFormControl-e13b5747.js";import"./SwitchBase-eb3a47ff.js";import"./useControlled-194ef007.js";import"./createSvgIcon-de433e5f.js";import"./floating-ui.dom-e7d69f3b.js";import"./OutlinedInput-3a884178.js";import"./List-f567f8e4.js";import"./InputAdornment-96c40dce.js";import"./index-900fa817.js";import"./useMediaQuery-dba48e3b.js";import"./InputLabel-71dfc9d4.js";import"./TableRow-0b33776c.js";import"./useToggle-593ec652.js";import"./Loader-466ccb5e.js";import"./AuthBGLayout-01038304.js";import"./CardContent-faee3650.js";import"./Avatar-a21f41a5.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};
