import{Kt as e,Q as t,R as n,Tn as r,X as i,Y as a,Z as o,_t as s,at as c,fr as l,it as u,n as d,or as f,r as p,st as m,ur as h}from"./dist-CoD0k1Bd.js";import{t as g}from"./Label-DKn3cyeE.js";import{t as _}from"./Input-C3DwKNOf.js";import{t as v}from"./button-mN_poAXs.js";import{r as y}from"./routes-BZ4t1sNs.js";import{t as b}from"./InputError-BY5lDrFd.js";import{t as x}from"./Spinner-DSMwRdd9.js";import{t as S}from"./TextLink-DrB2D_4V.js";import{t as C}from"./password-CB_NxgQN.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=m({layout:{title:`Forgot password`,description:`Enter your email to receive a password reset link`},__name:`ForgotPassword`,props:{status:{}},setup(m){return(k,A)=>(e(),t(n,null,[c(f(p),{title:`Forgot password`}),m.status?(e(),t(`div`,w,l(m.status),1)):o(``,!0),a(`div`,T,[c(f(d),h(s(f(C).form())),{default:r(({errors:t,processing:n})=>[a(`div`,E,[c(f(g),{for:`email`},{default:r(()=>[...A[0]||=[u(`Email address`,-1)]]),_:1}),c(f(_),{id:`email`,type:`email`,name:`email`,autocomplete:`off`,autofocus:``,placeholder:`email@example.com`}),c(b,{message:t.email},null,8,[`message`])]),a(`div`,D,[c(f(v),{class:`w-full`,disabled:n,"data-test":`email-password-reset-link-button`},{default:r(()=>[n?(e(),i(f(x),{key:0})):o(``,!0),A[1]||=u(` Email password reset link `,-1)]),_:2},1032,[`disabled`])])]),_:1},16),a(`div`,O,[A[3]||=a(`span`,null,`Or, return to`,-1),c(S,{href:f(y)()},{default:r(()=>[...A[2]||=[u(`log in`,-1)]]),_:1},8,[`href`])])])],64))}});export{k as default};