import{j as e,B as i,R as x,T as s,e as d}from"./index-952e178b.js";import{o as u}from"./yup-d92565dd.js";import{C as f,c as h,b as a,k as j,u as b}from"./index.esm-6feddb16.js";import{F as y}from"./FormControlLabel-973be654.js";import{C as g}from"./Checkbox-6c7c4dc0.js";import"./GenericThumbnailView-4e535459.js";import{F as m}from"./FormInput-8320115a.js";import{P as C}from"./PasswordInput-54ff1495.js";import"./componentStyles-00160cc0.js";import{P as k}from"./PageMetaData-7c78dec7.js";import"./ScrollableList-cd5816a8.js";import"./TextArea-ce7716c9.js";import{A as w}from"./AuthLayout-ee90ef4c.js";import"./Select-41d78585.js";import"./index-e5978b8b.js";import"./SwitchBase-bd5cc4c6.js";import"./index-22eb3e7f.js";import"./createClass-5a32667f.js";import"./popper-f3391c26.js";import"./InputAdornment-020147de.js";import"./TextField-d1a887ff.js";import"./isMuiElement-f03a71e4.js";import"./useToggle-471b6d1d.js";import"./TableRow-6a27d7f4.js";import"./CircularProgress-3b605689.js";import"./AuthBGLayout-904dec44.js";import"./Grid2-7b742c2a.js";import"./CardContent-f79f90af.js";import"./Avatar-d2c68597.js";const F=({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"})})]})}),re=()=>{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(k,{title:"Register"}),e.jsx(w,{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(F,{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{re as default};
