import{j as e,B as i,R as x,T as s,e as d}from"./index-aa25c5ff.js";import{o as u}from"./yup-72cc4918.js";import{C as f,c as h,b as a,k as j,u as b}from"./index.esm-a7f661dc.js";import{F as y}from"./FormControlLabel-56777c7d.js";import{C as g}from"./Checkbox-d917a1e2.js";import"./GenericThumbnailView-e0343bac.js";import{F as m}from"./FormInput-dc74a5d8.js";import{P as C}from"./PasswordInput-8c8a79f9.js";import"./componentStyles-e32842f3.js";import{P as k}from"./PageMetaData-ba7cb151.js";import"./ScrollableList-9498bc37.js";import"./TextArea-d1a16eb1.js";import{A as w}from"./AuthLayout-5e1bd99b.js";import"./Grow-53c7e965.js";import"./SwitchBase-f1314509.js";import"./index-d4b36417.js";import"./createClass-d1bae5ec.js";import"./popper-f3391c26.js";import"./Select-b8388c2f.js";import"./index-e5978b8b.js";import"./InputAdornment-1e7eea92.js";import"./TextField-55b66d20.js";import"./isMuiElement-1b254892.js";import"./useToggle-167172a0.js";import"./TableRow-ee82d902.js";import"./CircularProgress-d6cfca6d.js";import"./AuthBGLayout-dc24271f.js";import"./Grid2-d00e0f6a.js";import"./CardContent-879d5aba.js";import"./Avatar-06b03234.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};
