import{n as e,t}from"./jsx-runtime-BrKkGzFB.js";import{B as n,Et as r,O as i,Tt as a,g as o,l as s,mt as c}from"./app-KzKSswgw.js";import{t as l}from"./input-error-B1iqlu2_.js";import{t as u}from"./label-1JB2VirV.js";import{t as d}from"./password-BTPIYPD6.js";var f=e(),p=t();function m(e){let t=(0,f.c)(8),{status:n}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,p.jsx)(r,{title:`Forgot password`}),t[0]=i):i=t[0];let c;t[1]===n?c=t[2]:(c=n&&(0,p.jsx)(`div`,{className:`mb-4 text-center text-sm font-medium text-green-600`,children:n}),t[1]=n,t[2]=c);let l;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,p.jsx)(a,{...d.form(),children:h}),t[3]=l):l=t[3];let u;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,p.jsx)(`span`,{children:`Or, return to`}),t[4]=u):u=t[4];let m;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,p.jsxs)(`div`,{className:`space-y-6`,children:[l,(0,p.jsxs)(`div`,{className:`space-x-1 text-center text-sm text-muted-foreground`,children:[u,(0,p.jsx)(s,{href:o(),children:`log in`})]})]}),t[5]=m):m=t[5];let g;return t[6]===c?g=t[7]:(g=(0,p.jsxs)(p.Fragment,{children:[i,c,m]}),t[6]=c,t[7]=g),g}function h(e){let{processing:t,errors:r}=e;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(`div`,{className:`grid gap-2`,children:[(0,p.jsx)(u,{htmlFor:`email`,children:`Email address`}),(0,p.jsx)(i,{id:`email`,type:`email`,name:`email`,autoComplete:`off`,autoFocus:!0,placeholder:`email@example.com`}),(0,p.jsx)(l,{message:r.email})]}),(0,p.jsx)(`div`,{className:`my-6 flex items-center justify-start`,children:(0,p.jsxs)(n,{className:`w-full`,disabled:t,"data-test":`email-password-reset-link-button`,children:[t&&(0,p.jsx)(c,{className:`h-4 w-4 animate-spin`}),`Email password reset link`]})})]})}m.layout={title:`Forgot password`,description:`Enter your email to receive a password reset link`};export{m as default};