import{c,j as t,F as d,H as p}from"./app-BiexncSX.js";import{I as f}from"./input-error-BizLhD6E.js";import{T as x}from"./text-link-CyXb2ykj.js";import{B as u}from"./button-Cwvd_D5X.js";import{I as h}from"./input-C7geQw3H.js";import{L as j}from"./label-BACPLsln.js";import{A as g}from"./auth-layout-c0K9oGz2.js";import{l as _}from"./index-DDBh_SM-.js";import{e as y}from"./index-CnKF3dz0.js";import{L as b}from"./loader-circle-C36m3ppM.js";/* empty css            */import"./utils-DvRnx1Xn.js";import"./index-Dql7-O7m.js";import"./index-BLf-KPWz.js";import"./index-mwCShWhl.js";import"./createLucideIcon-CiyItOCI.js";function $(n){const e=c.c(8),{status:s}=n;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(p,{title:"Forgot password"}),e[0]=o):o=e[0];let r;e[1]!==s?(r=s&&t.jsx("div",{className:"mb-4 text-center text-sm font-medium text-green-600",children:s}),e[1]=s,e[2]=r):r=e[2];let a;e[3]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(d,{...y.form(),children:w}),e[3]=a):a=e[3];let i;e[4]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("span",{children:"Or, return to"}),e[4]=i):i=e[4];let m;e[5]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsxs("div",{className:"space-y-6",children:[a,t.jsxs("div",{className:"space-x-1 text-center text-sm text-muted-foreground",children:[i,t.jsx(x,{href:_(),children:"log in"})]})]}),e[5]=m):m=e[5];let l;return e[6]!==r?(l=t.jsxs(g,{title:"Forgot password",description:"Enter your email to receive a password reset link",children:[o,r,m]}),e[6]=r,e[7]=l):l=e[7],l}function w(n){const{processing:e,errors:s}=n;return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid gap-2",children:[t.jsx(j,{htmlFor:"email",children:"Email address"}),t.jsx(h,{id:"email",type:"email",name:"email",autoComplete:"off",autoFocus:!0,placeholder:"email@example.com"}),t.jsx(f,{message:s.email})]}),t.jsx("div",{className:"my-6 flex items-center justify-start",children:t.jsxs(u,{className:"w-full",disabled:e,"data-test":"email-password-reset-link-button",children:[e&&t.jsx(b,{className:"h-4 w-4 animate-spin"}),"Email password reset link"]})})]})}export{$ as default};
