import{j as e,B as i,R as x,T as s,e as d}from"./index-0698dbe6.js";import{o as u}from"./yup-7a53beb8.js";import{C as f,c as h,b as a,j,u as b}from"./index.esm-85d015f3.js";import{F as y}from"./FormControlLabel-5da20c5e.js";import{C as g}from"./Checkbox-987be799.js";import"./GenericThumbnailView-dca658f3.js";import{F as m}from"./FormInput-98c39817.js";import{P as C}from"./PasswordInput-72cfeedd.js";import"./componentStyles-91278318.js";import{P as w}from"./PageMetaData-cd33e3c3.js";import"./ScrollableList-fc87149c.js";import"./TextArea-91c96faf.js";import{A as F}from"./AuthLayout-f0dadaed.js";import"./Grow-ea87e600.js";import"./SwitchBase-6519d4d3.js";import"./index-c9a9ee7a.js";import"./createClass-61c32f27.js";import"./popper-f3391c26.js";import"./Select-371fc2c6.js";import"./index-e5978b8b.js";import"./InputAdornment-0c2174b6.js";import"./TextField-4222c766.js";import"./isMuiElement-d179539f.js";import"./useToggle-e2dc2782.js";import"./TableRow-2848b050.js";import"./CircularProgress-4f55e66c.js";import"./AuthBGLayout-321e3c6d.js";import"./Grid2-a3850bef.js";import"./CardContent-da6ab0f2.js";import"./Avatar-ee0f38ce.js";const k=({control:o,id:t,name:r,label:n,labelSx:l,...p})=>e.jsx(f,{control:o,render:({field:c,fieldState:v})=>e.jsx(y,{control:e.jsx(g,{id:t??r,...p,...c}),sx:l,label:n}),name:r}),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=h({fullName:a().required("Name is required"),email:a().email("Please enter valid email").required("Please enter email"),password:a().required("Please enter password"),rememberMe:j().oneOf([!0],"Checkbox must be checked").optional()}),{control:t,handleSubmit:r}=b({resolver:u(o),defaultValues:{fullName:"Attex Demo",email:"demo@demo.com",password:"password"}});return e.jsxs(e.Fragment,{children:[e.jsx(w,{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:r(()=>null),children:[e.jsx(m,{name:"fullName",type:"text",label:"Full Name",control:t}),e.jsx(m,{name:"email",type:"email",label:"Email Address",containerSx:{mt:2},control:t}),e.jsx(C,{name:"password",type:"password",label:"Password",containerSx:{mt:2},control:t}),e.jsx(k,{name:"rememberMe",label:"Remember me",control:t,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};
