import{j as e,B as i,R as x,T as s,e as d}from"./index-458d5762.js";import{o as u}from"./yup-536c503d.js";import{C as f,c as h,b as a,j,u as b}from"./index.esm-b1b14098.js";import{F as y}from"./FormControlLabel-c2b32a8e.js";import{C as g}from"./Checkbox-2fec2521.js";import"./GenericThumbnailView-3cd8dbb5.js";import{F as m}from"./FormInput-3d74947b.js";import{P as C}from"./PasswordInput-0b33c2ea.js";import"./componentStyles-56425874.js";import{P as w}from"./PageMetaData-98466a56.js";import"./ScrollableList-ba92364a.js";import"./TextArea-233680fc.js";import{A as F}from"./AuthLayout-3fd4c276.js";import"./Grow-1b19ccc0.js";import"./SwitchBase-1c31939b.js";import"./index-3b6e321a.js";import"./createClass-9305c513.js";import"./popper-f3391c26.js";import"./Select-1c8a1710.js";import"./index-e5978b8b.js";import"./InputAdornment-84b43ef6.js";import"./TextField-e297d925.js";import"./isMuiElement-6ed6867f.js";import"./useToggle-20bdd0d1.js";import"./TableRow-804f1ca0.js";import"./CircularProgress-cad31cee.js";import"./AuthBGLayout-c4f279a2.js";import"./Grid2-e3c9383e.js";import"./CardContent-1c45d18d.js";import"./Avatar-1668c365.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};
