import{u as p,c,a as n,d as o,e,B as w,b as r,j as _,l as g,f as d,n as V,o as v}from"./app-BJF24m-a.js";import{_ as y}from"./GuestLayout-UifdBsij.js";import{_ as t}from"./InputError-96UgAvVt.js";import{_ as m,a as i}from"./TextInput-O1sjt4fZ.js";import{P as b}from"./PrimaryButton-5AnCxPpY.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const x={class:"mt-4"},k={class:"mt-4"},B={class:"mt-4"},q={class:"mt-4 flex items-center justify-end"},F={__name:"Register",setup(N){const s=p({name:"",email:"",password:"",password_confirmation:""}),u=()=>{s.post(route("register"),{onFinish:()=>s.reset("password","password_confirmation")})};return(f,a)=>(v(),c(y,null,{default:n(()=>[o(e(w),{title:"Register"}),r("form",{onSubmit:_(u,["prevent"])},[r("div",null,[o(m,{for:"name",value:"Name"}),o(i,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:e(s).name,"onUpdate:modelValue":a[0]||(a[0]=l=>e(s).name=l),required:"",autofocus:"",autocomplete:"name"},null,8,["modelValue"]),o(t,{class:"mt-2",message:e(s).errors.name},null,8,["message"])]),r("div",x,[o(m,{for:"email",value:"Email"}),o(i,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:e(s).email,"onUpdate:modelValue":a[1]||(a[1]=l=>e(s).email=l),required:"",autocomplete:"username"},null,8,["modelValue"]),o(t,{class:"mt-2",message:e(s).errors.email},null,8,["message"])]),r("div",k,[o(m,{for:"password",value:"Password"}),o(i,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:e(s).password,"onUpdate:modelValue":a[2]||(a[2]=l=>e(s).password=l),required:"",autocomplete:"new-password"},null,8,["modelValue"]),o(t,{class:"mt-2",message:e(s).errors.password},null,8,["message"])]),r("div",B,[o(m,{for:"password_confirmation",value:"Confirm Password"}),o(i,{id:"password_confirmation",type:"password",class:"mt-1 block w-full",modelValue:e(s).password_confirmation,"onUpdate:modelValue":a[3]||(a[3]=l=>e(s).password_confirmation=l),required:"",autocomplete:"new-password"},null,8,["modelValue"]),o(t,{class:"mt-2",message:e(s).errors.password_confirmation},null,8,["message"])]),r("div",q,[o(e(g),{href:f.route("login"),class:"rounded-md text-sm text-gray-600 underline hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},{default:n(()=>[...a[4]||(a[4]=[d(" Already registered? ",-1)])]),_:1},8,["href"]),o(b,{class:V(["ms-4",{"opacity-25":e(s).processing}]),disabled:e(s).processing},{default:n(()=>[...a[5]||(a[5]=[d(" Register ",-1)])]),_:1},8,["class","disabled"])])],32)]),_:1}))}};export{F as default};
