import{j as e,B as i,R as x,T as s,e as d}from"./index-7b9530f9.js";import{o as u}from"./yup-07ccc04e.js";import{C as f,c as h,b as a,j,u as b}from"./index.esm-9b014892.js";import{F as y}from"./FormControlLabel-2a2ee176.js";import{C as g}from"./Checkbox-635c9303.js";import"./GenericThumbnailView-c4b26278.js";import{F as m}from"./FormInput-61b47e5c.js";import{P as C}from"./PasswordInput-538a00f8.js";import"./componentStyles-32cc6bb2.js";import{P as w}from"./PageMetaData-5d44fb3f.js";import"./ScrollableList-a1f8f012.js";import"./TextArea-d5cded1f.js";import{A as F}from"./AuthLayout-8b101d39.js";import"./Grow-ac96e569.js";import"./SwitchBase-d816118b.js";import"./index-1f83e1d2.js";import"./createClass-b83ea73b.js";import"./popper-f3391c26.js";import"./Select-71d7c76c.js";import"./index-e5978b8b.js";import"./InputAdornment-e3017a11.js";import"./TextField-a16050c5.js";import"./isMuiElement-a5b21fef.js";import"./useToggle-6da56f14.js";import"./TableRow-18101d9c.js";import"./CircularProgress-ad60dd95.js";import"./AuthBGLayout-10e5532c.js";import"./Grid2-e0ccfa46.js";import"./CardContent-9515eacc.js";import"./Avatar-c3796022.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};
