import{A as e,D as t,Dt as n,E as r,K as i,M as a,P as o,T as s,b as c,j as l,kt as u,n as d,ot as f,r as p,w as m,wt as h}from"./dist-B4ulKgpj.js";import{t as g}from"./Label-CFnMyEie.js";import{t as _}from"./Spinner-CPbipFa_.js";import{t as v}from"./Input-DUc0hUPv.js";import{l as y,o as b}from"./app-DUC9tg6Z.js";import{t as x}from"./InputError-whMZ-BCS.js";import{t as S}from"./TextLink-Bp1JICDi.js";import{t as C}from"./password-pg9PxKYi.js";var w={key:0,class:`mb-4 text-center text-sm font-medium text-green-600`},T={class:`space-y-6`},E={class:`grid gap-2`},D={class:`my-6 flex items-center justify-start`},O={class:`space-x-1 text-center text-sm text-muted-foreground`},k=a({layout:{title:`Forgot password`,description:`Enter your email to receive a password reset link`},__name:`ForgotPassword`,props:{status:{}},setup(a){return(k,A)=>(i(),t(c,null,[l(h(p),{title:`Forgot password`}),a.status?(i(),t(`div`,w,u(a.status),1)):r(``,!0),m(`div`,T,[l(h(d),n(o(h(C).form())),{default:f(({errors:t,processing:n})=>[m(`div`,E,[l(h(g),{for:`email`},{default:f(()=>[...A[0]||=[e(`Email address`,-1)]]),_:1}),l(h(v),{id:`email`,type:`email`,name:`email`,autocomplete:`off`,autofocus:``,placeholder:`email@example.com`}),l(x,{message:t.email},null,8,[`message`])]),m(`div`,D,[l(h(y),{class:`w-full`,disabled:n,"data-test":`email-password-reset-link-button`},{default:f(()=>[n?(i(),s(h(_),{key:0})):r(``,!0),A[1]||=e(` Email password reset link `,-1)]),_:2},1032,[`disabled`])])]),_:1},16),m(`div`,O,[A[3]||=m(`span`,null,`Or, return to`,-1),l(S,{href:h(b)()},{default:f(()=>[...A[2]||=[e(`log in`,-1)]]),_:1},8,[`href`])])])],64))}});export{k as default};