import{W as h,a as x,j as s,b as p}from"./BulkImageUpload-DGPbX05r.js";import{U as j}from"./User-DMCQU0ZG.js";import{I as d}from"./Input-CR3dcIBA.js";import"./bootstrap.esm-e_F80uXB.js";const b=({status:w,canResetPassword:N})=>{const{data:r,setData:o,post:c,processing:i,errors:a,reset:n,clearErrors:m}=h({name:"",email:"",password:"",password_confirmation:""});x.useEffect(()=>()=>{n("password")},[]);const l=e=>{o(e.target.name,e.target.type==="checkbox"?e.target.checked:e.target.value),m(e.target.name)},t=e=>{e.preventDefault(),c(route("register"))};return s.jsx(j,{children:s.jsx("div",{className:"authbg",children:s.jsx("div",{className:"container auth-container",children:s.jsx("div",{className:"row",children:s.jsxs("div",{className:"col-xl-6 col-lg-7 col-md-10 mx-auto shadow authcard",children:[s.jsx("div",{className:"titlecover",children:s.jsx("h2",{children:"User Registration"})}),s.jsxs("form",{onSubmit:t,children:[s.jsxs("div",{className:"row form-row",children:[s.jsxs("div",{className:"col-md-4",children:[s.jsx("label",{children:" Full Name"}),s.jsx("span",{className:"spcol",children:":"})]}),s.jsxs("div",{className:"col-md-8",children:[s.jsx(d,{type:"text",name:"name",value:r.name,className:a.name&&"inerror",autoComplete:"name",placeholder:"Enter Full Name",isFocused:!0,handleChange:l}),a.name&&s.jsx("div",{className:"smart-valid",children:a.name})]})]}),s.jsxs("div",{className:"row form-row",children:[s.jsxs("div",{className:"col-md-4",children:[s.jsx("label",{children:" Email Address"}),s.jsx("span",{className:"spcol",children:":"})]}),s.jsxs("div",{className:"col-md-8",children:[s.jsx(d,{type:"email",name:"email",value:r.email,className:a.email&&"inerror",autoComplete:"username",placeholder:"Enter Email Address",handleChange:l}),a.email&&s.jsx("div",{className:"smart-valid",children:a.email})]})]}),s.jsxs("div",{className:"row form-row",children:[s.jsxs("div",{className:"col-md-4",children:[s.jsx("label",{children:"Password"}),s.jsx("span",{className:"spcol",children:":"})]}),s.jsxs("div",{className:"col-md-8",children:[s.jsx(d,{type:"password",name:"password",value:r.password,className:a.password&&"inerror",autoComplete:"new-password",placeholder:"Enter Password",handleChange:l}),a.password&&s.jsx("div",{className:"smart-valid",children:a.password})]})]}),s.jsxs("div",{className:"row form-row",children:[s.jsxs("div",{className:"col-md-4",children:[s.jsx("label",{children:"Confirm Password"}),s.jsx("span",{className:"spcol",children:":"})]}),s.jsxs("div",{className:"col-md-8",children:[s.jsx(d,{type:"password",name:"password_confirmation",value:r.password_confirmation,className:a.password_confirmation&&"inerror",placeholder:"Enter Confirm Password",handleChange:l}),a.password_confirmation&&s.jsx("div",{className:"smart-valid",children:a.password_confirmation})]})]}),s.jsxs("div",{className:"row form-row",children:[s.jsx("div",{className:"col-md-4"}),s.jsxs("div",{className:"col-md-8 fpswd",children:[s.jsx("button",{disabled:i,className:"btn px-4 btn-primary",children:" Sign Up "}),s.jsx("a",{href:route("password.request"),children:"Forget Password ?"})]})]}),s.jsx("div",{className:"row mt-5 text-center form-row",children:s.jsxs("p",{children:["Already have an account ",s.jsxs(p,{className:"text-primary",href:route("login"),children:[s.jsx("b",{children:"Click to Login"})," "]})]})})]})]})})})})})};export{b as default};
