import{j as e,B as i,R as x,T as s,e as d}from"./index-e79f7aad.js";import{o as u}from"./yup-96f14780.js";import{C as f,c as h,b as a,k as j,u as b}from"./index.esm-1ca67d65.js";import{F as y}from"./FormControlLabel-bfeefc5c.js";import{C as g}from"./Checkbox-b895334d.js";import"./GenericThumbnailView-8a83a30c.js";import{F as m}from"./FormInput-07daa19d.js";import{P as C}from"./PasswordInput-3ba32a37.js";import"./componentStyles-7718fc5e.js";import{P as k}from"./PageMetaData-8b0c63da.js";import"./ScrollableList-5929779e.js";import"./TextArea-ec29d1d5.js";import{A as w}from"./AuthLayout-17aef8e6.js";import"./Select-8a61e5a6.js";import"./index-e5978b8b.js";import"./SwitchBase-e7cea42d.js";import"./index-310d07a1.js";import"./createClass-b86a4c8d.js";import"./popper-f3391c26.js";import"./InputAdornment-d42c17cd.js";import"./TextField-21e22d39.js";import"./isMuiElement-db2b7d4c.js";import"./useToggle-e7e97db4.js";import"./TableRow-0ea91e40.js";import"./CircularProgress-8c35778c.js";import"./AuthBGLayout-4bf770d4.js";import"./Grid2-7786e458.js";import"./CardContent-f9f46bc4.js";import"./Avatar-b1f10e62.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};
