import{j as e,B as i,R as x,T as s,e as d}from"./index-6f149d0c.js";import{o as u}from"./yup-7ebcc99d.js";import{C as f,c as h,b as a,k as j,u as b}from"./index.esm-88773116.js";import{F as y}from"./FormControlLabel-5b331de0.js";import{C as g}from"./Checkbox-541bacdb.js";import"./GenericThumbnailView-01fef5a2.js";import{F as m}from"./FormInput-d3efc191.js";import{P as C}from"./PasswordInput-283d206c.js";import"./componentStyles-d6393a0a.js";import{P as k}from"./PageMetaData-456ccb42.js";import"./ScrollableList-e382be10.js";import"./TextArea-eb0beb3a.js";import{A as w}from"./AuthLayout-08081ed5.js";import"./Grow-aea427ae.js";import"./SwitchBase-2c6e76be.js";import"./index-a88b83d7.js";import"./createClass-925b8ab0.js";import"./popper-f3391c26.js";import"./Select-70a66099.js";import"./index-e5978b8b.js";import"./InputAdornment-ca5e29e7.js";import"./TextField-a5af71e6.js";import"./isMuiElement-36ccba67.js";import"./useToggle-ba9f06b3.js";import"./TableRow-1e254c97.js";import"./CircularProgress-49299c74.js";import"./AuthBGLayout-6cacc009.js";import"./Grid2-3d1a13f9.js";import"./CardContent-6c6a9bd2.js";import"./Avatar-51e26ab7.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};
