import{j as r}from"./use-appearance-8eVZaEiS.js";import{q as m,l as d}from"./index-M-dIbJkz.js";import{H as n,F as u}from"./app-eHTawc8c.js";import{L as c,I as h,a as p}from"./label-DMnOm6sK.js";import{T as x}from"./text-link-DnpEJ7t_.js";import{B as f}from"./app-logo-icon-CtnVg_Oz.js";import{A as g,L as j}from"./auth-layout-ChasJKFE.js";/* empty css            */import"./index-CnZrQ6M-.js";import"./createLucideIcon-BBWnyfSA.js";const t=e=>({url:t.url(e),method:"get"});t.definition={methods:["get","head"],url:"/forgot-password"};t.url=e=>t.definition.url+m(e);t.get=e=>({url:t.url(e),method:"get"});t.head=e=>({url:t.url(e),method:"head"});const s=e=>({action:t.url(e),method:"get"});s.get=e=>({action:t.url(e),method:"get"});s.head=e=>({action:t.url({[e?.mergeQuery?"mergeQuery":"query"]:{_method:"HEAD",...e?.query??e?.mergeQuery??{}}}),method:"get"});t.form=s;const o=e=>({url:o.url(e),method:"post"});o.definition={methods:["post"],url:"/forgot-password"};o.url=e=>o.definition.url+m(e);o.post=e=>({url:o.url(e),method:"post"});const i=e=>({action:o.url(e),method:"post"});i.post=e=>({action:o.url(e),method:"post"});o.form=i;const y={store:o};function C({status:e}){return r.jsxs(g,{title:"Forgot password",description:"Enter your email to receive a password reset link",children:[r.jsx(n,{title:"Forgot password"}),e&&r.jsx("div",{className:"mb-4 text-center text-sm font-medium text-green-600",children:e}),r.jsxs("div",{className:"space-y-6",children:[r.jsx(u,{...y.store.form(),children:({processing:a,errors:l})=>r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"grid gap-2",children:[r.jsx(c,{htmlFor:"email",children:"Email address"}),r.jsx(h,{id:"email",type:"email",name:"email",autoComplete:"off",autoFocus:!0,placeholder:"email@example.com"}),r.jsx(p,{message:l.email})]}),r.jsx("div",{className:"my-6 flex items-center justify-start",children:r.jsxs(f,{className:"w-full",disabled:a,children:[a&&r.jsx(j,{className:"h-4 w-4 animate-spin"}),"Email password reset link"]})})]})}),r.jsxs("div",{className:"space-x-1 text-center text-sm text-muted-foreground",children:[r.jsx("span",{children:"Or, return to"}),r.jsx(x,{href:d(),children:"log in"})]})]})]})}export{C as default};
