import{D as e,E as t,L as n,Q as r,S as i,W as a,Z as o,_ as s,a as c,et as l,i as u,k as d,r as f,x as p}from"./app-ae3zsclI.js";import{t as m}from"./i18n-M94zPSoE.js";import{t as h}from"./GuestLayout-Bzx0WaWs.js";import{n as g,t as _}from"./TextInput-xkDfV0eL.js";import{t as v}from"./InputLabel-C-Jt_66V.js";import{t as y}from"./PrimaryButton-BodMvIRI.js";var b={class:`mt-4`},x={class:`mt-4`},S={class:`mt-4`},C={class:`mt-4 flex items-center justify-end`},w=d({__name:`Register`,setup(d){let w=c({name:``,email:``,password:``,password_confirmation:``}),T=()=>{w.post(route(`register`),{onFinish:()=>{w.reset(`password`,`password_confirmation`)}})};return(c,d)=>(n(),i(h,null,{default:a(()=>[e(o(f),{title:o(m)(`Register`)},null,8,[`title`]),p(`form`,{onSubmit:s(T,[`prevent`])},[p(`div`,null,[e(v,{for:`name`,value:o(m)(`Name`)},null,8,[`value`]),e(_,{id:`name`,type:`text`,class:`mt-1 block w-full`,modelValue:o(w).name,"onUpdate:modelValue":d[0]||=e=>o(w).name=e,required:``,autofocus:``,autocomplete:`name`},null,8,[`modelValue`]),e(g,{class:`mt-2`,message:o(w).errors.name},null,8,[`message`])]),p(`div`,b,[e(v,{for:`email`,value:o(m)(`Email`)},null,8,[`value`]),e(_,{id:`email`,type:`email`,class:`mt-1 block w-full`,modelValue:o(w).email,"onUpdate:modelValue":d[1]||=e=>o(w).email=e,required:``,autocomplete:`username`},null,8,[`modelValue`]),e(g,{class:`mt-2`,message:o(w).errors.email},null,8,[`message`])]),p(`div`,x,[e(v,{for:`password`,value:o(m)(`Password`)},null,8,[`value`]),e(_,{id:`password`,type:`password`,class:`mt-1 block w-full`,modelValue:o(w).password,"onUpdate:modelValue":d[2]||=e=>o(w).password=e,required:``,autocomplete:`new-password`},null,8,[`modelValue`]),e(g,{class:`mt-2`,message:o(w).errors.password},null,8,[`message`])]),p(`div`,S,[e(v,{for:`password_confirmation`,value:o(m)(`Confirm Password`)},null,8,[`value`]),e(_,{id:`password_confirmation`,type:`password`,class:`mt-1 block w-full`,modelValue:o(w).password_confirmation,"onUpdate:modelValue":d[3]||=e=>o(w).password_confirmation=e,required:``,autocomplete:`new-password`},null,8,[`modelValue`]),e(g,{class:`mt-2`,message:o(w).errors.password_confirmation},null,8,[`message`])]),p(`div`,C,[e(o(u),{href:c.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:a(()=>[t(l(o(m)(`Already registered?`)),1)]),_:1},8,[`href`]),e(y,{class:r([`ms-4`,{"opacity-25":o(w).processing}]),disabled:o(w).processing},{default:a(()=>[t(l(o(m)(`Register`)),1)]),_:1},8,[`class`,`disabled`])])],32)]),_:1}))}});export{w as default};