import{j as r}from"./use-appearance-8eVZaEiS.js";import{q as l,l as u}from"./index-M-dIbJkz.js";import{H as c,F as p}from"./app-eHTawc8c.js";import{L as o,I as i,a as m}from"./label-DMnOm6sK.js";import{T as h}from"./text-link-DnpEJ7t_.js";import{B as x}from"./app-logo-icon-CtnVg_Oz.js";import{A as g,L as f}from"./auth-layout-ChasJKFE.js";/* empty css            */import"./index-CnZrQ6M-.js";import"./createLucideIcon-BBWnyfSA.js";const s=e=>({url:s.url(e),method:"get"});s.definition={methods:["get","head"],url:"/register"};s.url=e=>s.definition.url+l(e);s.get=e=>({url:s.url(e),method:"get"});s.head=e=>({url:s.url(e),method:"head"});const d=e=>({action:s.url(e),method:"get"});d.get=e=>({action:s.url(e),method:"get"});d.head=e=>({action:s.url({[e?.mergeQuery?"mergeQuery":"query"]:{_method:"HEAD",...e?.query??e?.mergeQuery??{}}}),method:"get"});s.form=d;const t=e=>({url:t.url(e),method:"post"});t.definition={methods:["post"],url:"/register"};t.url=e=>t.definition.url+l(e);t.post=e=>({url:t.url(e),method:"post"});const n=e=>({action:t.url(e),method:"post"});n.post=e=>({action:t.url(e),method:"post"});t.form=n;const j={store:t};function L(){return r.jsxs(g,{title:"Create an account",description:"Enter your details below to create your account",children:[r.jsx(c,{title:"Register"}),r.jsx(p,{...j.store.form(),resetOnSuccess:["password","password_confirmation"],disableWhileProcessing:!0,className:"flex flex-col gap-6",children:({processing:e,errors:a})=>r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"grid gap-6",children:[r.jsxs("div",{className:"grid gap-2",children:[r.jsx(o,{htmlFor:"name",children:"Name"}),r.jsx(i,{id:"name",type:"text",required:!0,autoFocus:!0,tabIndex:1,autoComplete:"name",name:"name",placeholder:"Full name"}),r.jsx(m,{message:a.name,className:"mt-2"})]}),r.jsxs("div",{className:"grid gap-2",children:[r.jsx(o,{htmlFor:"email",children:"Email address"}),r.jsx(i,{id:"email",type:"email",required:!0,tabIndex:2,autoComplete:"email",name:"email",placeholder:"email@example.com"}),r.jsx(m,{message:a.email})]}),r.jsxs("div",{className:"grid gap-2",children:[r.jsx(o,{htmlFor:"password",children:"Password"}),r.jsx(i,{id:"password",type:"password",required:!0,tabIndex:3,autoComplete:"new-password",name:"password",placeholder:"Password"}),r.jsx(m,{message:a.password})]}),r.jsxs("div",{className:"grid gap-2",children:[r.jsx(o,{htmlFor:"password_confirmation",children:"Confirm password"}),r.jsx(i,{id:"password_confirmation",type:"password",required:!0,tabIndex:4,autoComplete:"new-password",name:"password_confirmation",placeholder:"Confirm password"}),r.jsx(m,{message:a.password_confirmation})]}),r.jsxs(x,{type:"submit",className:"mt-2 w-full",tabIndex:5,children:[e&&r.jsx(f,{className:"h-4 w-4 animate-spin"}),"Create account"]})]}),r.jsxs("div",{className:"text-center text-sm text-muted-foreground",children:["Already have an account?"," ",r.jsx(h,{href:u(),tabIndex:6,children:"Log in"})]})]})})]})}export{L as default};
