import{j as e,B as i,U as x,T as s,e as d}from"./index-60657852.js";import{o as u}from"./yup-75ad371b.js";import{C as f,c as h,b as a,k as j,u as b}from"./index.esm-509a598d.js";import{F as y}from"./FormControlLabel-95d4d7bb.js";import{C as g}from"./Checkbox-026acf65.js";import"./GenericThumbnailView-f8b17afa.js";import{F as m}from"./FormInput-6b018fe9.js";import{P as C}from"./PasswordInput-8778992c.js";import"./componentStyles-19763afb.js";import{P as k}from"./PageMetaData-d5633bbc.js";import"./ScrollableList-ef4c85dc.js";import"./TextArea-d897dbf9.js";import{A as w}from"./AuthLayout-db420522.js";import"./Grow-a21bdd26.js";import"./SwitchBase-3b306fc6.js";import"./index-980acb6c.js";import"./createClass-2b895736.js";import"./popper-f3391c26.js";import"./Select-7d2a5359.js";import"./InputAdornment-12fc79ce.js";import"./TextField-6b778b78.js";import"./isMuiElement-82a67859.js";import"./useToggle-04d5760d.js";import"./TableRow-0ab1e69a.js";import"./AuthBGLayout-8930e269.js";import"./Grid2-09163d35.js";import"./CardContent-f8a5d460.js";import"./Avatar-44209507.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"})})]})}),te=()=>{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{te as default};
