import{j as e,B as i,R as x,T as s,e as d}from"./index-e6164346.js";import{o as u}from"./yup-5fd5d57b.js";import{C as f,c as h,b as a,k as j,u as b}from"./index.esm-0a041314.js";import{F as y}from"./FormControlLabel-ee192a98.js";import{C as g}from"./Checkbox-70f568c2.js";import"./GenericThumbnailView-80c6fd98.js";import{F as m}from"./FormInput-859198ec.js";import{P as C}from"./PasswordInput-3b5d4833.js";import"./componentStyles-00385170.js";import{P as k}from"./PageMetaData-3ca96413.js";import"./ScrollableList-5a17e8f4.js";import"./TextArea-f5c200de.js";import{A as w}from"./AuthLayout-7da4cf74.js";import"./Grow-306e2fd0.js";import"./SwitchBase-e1f0b96b.js";import"./index-ce90e1a7.js";import"./createClass-ad55a3ca.js";import"./popper-f3391c26.js";import"./Select-9c2d8cd2.js";import"./index-e5978b8b.js";import"./InputAdornment-59975edf.js";import"./TextField-db9cff08.js";import"./isMuiElement-5779af4f.js";import"./useToggle-0addaaea.js";import"./TableRow-bf4e60a0.js";import"./CircularProgress-7d99d864.js";import"./AuthBGLayout-4680c359.js";import"./Grid2-c9c87842.js";import"./CardContent-f8fb4397.js";import"./Avatar-6ecb8317.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"})})]})}),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(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{oe as default};
