import{S as c,r as x,j as s,a as p,J as u}from"./app-BZJf8lgN.js";import{G as f}from"./GuestLayout-DMmAkuUq.js";import{I as t}from"./InputError-DE3wWovO.js";import{P as h}from"./PrimaryButton-DZfTvxkJ.js";import"./TextInput-BR_8t0R7.js";import{I as m}from"./inputtext.esm-B1lZn37a.js";import"./button.esm-D_cwsnQR.js";import"./hooks.esm-UVLztt_0.js";function C(){const{data:a,setData:r,post:o,processing:i,errors:l,reset:n}=c({name:"",email:"",password:"",password_confirmation:""});x.useEffect(()=>()=>{n("password","password_confirmation")},[]);const d=e=>{e.preventDefault(),o(route("register"))};return s.jsxs(f,{children:[s.jsx(p,{title:"Register"}),s.jsxs("div",{className:"flex align-items-center justify-content-center flex-column",children:[s.jsx("img",{src:"/images/logo/-dark.svg",alt:"hyper",height:50,className:"mb-3"}),s.jsxs("div",{className:"surface-card p-6 sm:p-4 shadow-2 border-round w-full lg:w-4",children:[s.jsx("div",{className:"text-center mb-5",children:s.jsx("div",{className:"text-900 text-3xl font-medium mb-3",children:"Register"})}),s.jsx("form",{onSubmit:d,children:s.jsxs("div",{children:[s.jsxs("div",{className:"mb-3",children:[s.jsx("label",{htmlFor:"name",className:"block text-900 font-medium mb-2",children:"Name"}),s.jsx(m,{id:"name",type:"text",placeholder:"Name",className:"w-full",value:a.name,onChange:e=>r("name",e.target.value)}),s.jsx(t,{message:l.email,className:""})]}),s.jsxs("div",{className:"mb-3",children:[s.jsx("label",{htmlFor:"email",className:"block text-900 font-medium mb-2",children:"Email"}),s.jsx(m,{id:"email",type:"text",placeholder:"Email address",className:"w-full",value:a.email,onChange:e=>r("email",e.target.value)}),s.jsx(t,{message:l.email,className:""})]}),s.jsxs("div",{className:"mb-3",children:[s.jsx("label",{htmlFor:"password",className:"block text-900 font-medium mb-2",children:"Password"}),s.jsx(m,{id:"password",type:"password",placeholder:"Password",className:"w-full",value:a.password,onChange:e=>r("password",e.target.value)}),s.jsx(t,{message:l.password,className:""})]}),s.jsxs("div",{className:"mb-3",children:[s.jsx("label",{htmlFor:"password_confirmation",className:"block text-900 font-medium mb-2",children:"Confirm Password"}),s.jsx(m,{id:"password_confirmation",type:"password",placeholder:"Confirm Password",className:"w-full",value:a.password_confirmation,onChange:e=>r("password_confirmation",e.target.value)}),s.jsx(t,{message:l.password_confirmation,className:""})]}),s.jsx("div",{className:"flex align-items-center justify-content-end mb-4",children:s.jsx(u,{href:route("login"),className:"",children:"Already registered?"})}),s.jsx(h,{label:"Register",className:"w-full",disabled:i})]})})]})]})]})}export{C as default};
//# sourceMappingURL=Register-DHE7Kh76.js.map
