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