import{D as e,E as t,F as n,H as r,T as i,X as a,Y as o,b as s,g as c,i as l,n as u,r as d,x as f}from"./app-C984PpLk.js";import{t as p}from"./GuestLayout-B6zMjRkV.js";import{n as m,t as h}from"./TextInput-DO32Kzti.js";import{t as g}from"./InputLabel-DeeDzuTa.js";import{t as _}from"./PrimaryButton-DE0mqlca.js";var v={class:`mt-4`},y={class:`mt-4`},b={class:`mt-4`},x={class:`mt-4 flex items-center justify-end`},S=e({__name:`Register`,setup(e){let S=l({name:``,email:``,password:``,password_confirmation:``}),C=()=>{S.post(route(`register`),{onFinish:()=>{S.reset(`password`,`password_confirmation`)}})};return(e,l)=>(n(),f(p,null,{default:r(()=>[t(o(u),{title:`Register`}),s(`form`,{onSubmit:c(C,[`prevent`])},[s(`div`,null,[t(g,{for:`name`,value:`Name`}),t(h,{id:`name`,type:`text`,class:`mt-1 block w-full`,modelValue:o(S).name,"onUpdate:modelValue":l[0]||=e=>o(S).name=e,required:``,autofocus:``,autocomplete:`name`},null,8,[`modelValue`]),t(m,{class:`mt-2`,message:o(S).errors.name},null,8,[`message`])]),s(`div`,v,[t(g,{for:`email`,value:`Email`}),t(h,{id:`email`,type:`email`,class:`mt-1 block w-full`,modelValue:o(S).email,"onUpdate:modelValue":l[1]||=e=>o(S).email=e,required:``,autocomplete:`username`},null,8,[`modelValue`]),t(m,{class:`mt-2`,message:o(S).errors.email},null,8,[`message`])]),s(`div`,y,[t(g,{for:`password`,value:`Password`}),t(h,{id:`password`,type:`password`,class:`mt-1 block w-full`,modelValue:o(S).password,"onUpdate:modelValue":l[2]||=e=>o(S).password=e,required:``,autocomplete:`new-password`},null,8,[`modelValue`]),t(m,{class:`mt-2`,message:o(S).errors.password},null,8,[`message`])]),s(`div`,b,[t(g,{for:`password_confirmation`,value:`Confirm Password`}),t(h,{id:`password_confirmation`,type:`password`,class:`mt-1 block w-full`,modelValue:o(S).password_confirmation,"onUpdate:modelValue":l[3]||=e=>o(S).password_confirmation=e,required:``,autocomplete:`new-password`},null,8,[`modelValue`]),t(m,{class:`mt-2`,message:o(S).errors.password_confirmation},null,8,[`message`])]),s(`div`,x,[t(o(d),{href:e.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 dark:text-gray-400 dark:hover:text-gray-100 dark:focus:ring-offset-gray-800`},{default:r(()=>[...l[4]||=[i(` Already registered? `,-1)]]),_:1},8,[`href`]),t(_,{class:a([`ms-4`,{"opacity-25":o(S).processing}]),disabled:o(S).processing},{default:r(()=>[...l[5]||=[i(` Register `,-1)]]),_:1},8,[`class`,`disabled`])])],32)]),_:1}))}});export{S as default};