import{j as e,B as m,z as x,T as s,e as d}from"./index-4dfc510b.js";import{o as u}from"./yup-80def618.js";import{C as h,c as j,b as a,j as f,u as b}from"./index.esm-0a454763.js";import{F as y}from"./FormControlLabel-e49dd1e5.js";import{C as g,F as i}from"./FormInput-f887e69c.js";import"./GenericThumbnailView-6256cad7.js";import{P as C}from"./PasswordInput-27b1d2c2.js";import"./componentStyles-df94248d.js";import{P as w}from"./PageMetaData-9d85e469.js";import"./ScrollableList-bef4a518.js";import"./TextArea-a0cc14f3.js";import{A as F}from"./AuthLayout-90c7915e.js";import"./Grow-a7315f12.js";import"./TextField-c0d4022e.js";import"./Menu-0f556e12.js";import"./index-e5978b8b.js";import"./isMuiElement-7be61a21.js";import"./Select-c8503f85.js";import"./index-9a385720.js";import"./popper-f3391c26.js";import"./InputAdornment-ccd6e8ff.js";import"./useToggle-4d390b1e.js";import"./TableRow-bee40746.js";import"./CircularProgress-d36b5e75.js";import"./AuthBGLayout-779e18b6.js";import"./Grid2-713975b3.js";import"./CardContent-afcdca5e.js";import"./Avatar-dec2611f.js";const k=({control:o,id:t,name:r,label:n,labelSx:l,...p})=>e.jsx(h,{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(m,{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=j({fullName:a().required("Name is required"),email:a().email("Please enter valid email").required("Please enter email"),password:a().required("Please enter password"),rememberMe:f().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(i,{name:"fullName",type:"text",label:"Full Name",control:t}),e.jsx(i,{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(m,{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};
