import{j as e,B as i,J as x,T as s,c as d}from"./index-d2b25495.js";import{o as u}from"./yup-267e586f.js";import{C as f,u as h}from"./index.esm-ce3c2c20.js";import{F as j}from"./FormControlLabel-78be0abe.js";import{C as b}from"./Checkbox-d1c5682c.js";import"./componentStyles-0e851d91.js";import{F as m}from"./FormInput-d202e905.js";import{P as y}from"./PasswordInput-f6b096e1.js";/* empty css                   */import{P as g}from"./PageMetaData-7797a3b7.js";import"./ScrollableList-fc1de312.js";import{c as C,b as a,e as w}from"./index.esm-3043d6d4.js";import{A as F}from"./AuthLayout-e26f9f59.js";import"./useFormControl-2b068664.js";import"./SwitchBase-8b4bccce.js";import"./useControlled-8d737f13.js";import"./createSvgIcon-e39ae511.js";import"./index-709861af.js";import"./popper-f3391c26.js";import"./OutlinedInput-86f3ec98.js";import"./InputAdornment-d0c3ebef.js";import"./index-38f860bc.js";import"./useMediaQuery-b1fbc166.js";import"./InputLabel-bb6ab40e.js";import"./TableRow-74f9cf3b.js";import"./useToggle-4d859601.js";import"./Loader-1b927baf.js";import"./List-863f013e.js";import"./AuthBGLayout-d80e2aaa.js";import"./CardContent-be810fe0.js";import"./Avatar-9337c33f.js";const k=({control:o,id:r,name:t,label:n,labelSx:l,...p})=>e.jsx(f,{control:o,render:({field:c,fieldState:v})=>e.jsx(j,{control:e.jsx(b,{id:r??t,...p,...c}),sx:l,label:n}),name:t}),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"})})]})}),ae=()=>{const o=C({fullName:a().required("Name is required"),email:a().email("Please enter valid email").required("Please enter email"),password:a().required("Please enter password"),rememberMe:w().oneOf([!0],"Checkbox must be checked").optional()}),{control:r,handleSubmit:t}=h({resolver:u(o),defaultValues:{fullName:"Attex Demo",email:"demo@demo.com",password:"password"}});return e.jsxs(e.Fragment,{children:[e.jsx(g,{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:t(()=>null),children:[e.jsx(m,{name:"fullName",type:"text",label:"Full Name",control:r}),e.jsx(m,{name:"email",type:"email",label:"Email Address",containerSx:{mt:2},control:r}),e.jsx(y,{name:"password",type:"password",label:"Password",containerSx:{mt:2},control:r}),e.jsx(k,{name:"rememberMe",label:"Remember me",control:r,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{ae as default};
