import{j as e,B as m,R as x,T as s,e as d}from"./index-dc933734.js";import{o as u}from"./yup-5b2e0cf9.js";import{C as h,c as j,b as a,j as f,u as b}from"./index.esm-288e984c.js";import{F as y}from"./FormControlLabel-476fd96c.js";import{C as g,F as i}from"./FormInput-58d4b01b.js";import"./GenericThumbnailView-69a8725b.js";import{P as C}from"./PasswordInput-a7d425c5.js";import"./componentStyles-4df963a1.js";import{P as w}from"./PageMetaData-7ff53e2b.js";import"./ScrollableList-c8354e44.js";import"./TextArea-80ac5c9b.js";import{A as F}from"./AuthLayout-c1ed38f0.js";import"./Grow-3459ea54.js";import"./TextField-a8016ff3.js";import"./Select-e75c6695.js";import"./index-e5978b8b.js";import"./isMuiElement-f75ebb7c.js";import"./index-9b86adbc.js";import"./popper-f3391c26.js";import"./InputAdornment-a4d846b9.js";import"./useToggle-ac777176.js";import"./TableRow-f425a931.js";import"./CircularProgress-b8ef250f.js";import"./AuthBGLayout-c5966b13.js";import"./Grid2-9337452f.js";import"./CardContent-06dac9b3.js";import"./Avatar-95a09ff6.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"})})]})}),ee=()=>{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{ee as default};
