import{_ as e,a as t,i as n,o as r,s as i}from"./i18n-DfIivedY.js";import{t as a}from"./loader-circle-BPAS5yzR.js";import{Dt as o,Et as s,Z as c}from"./app-BUWZBqJJ.js";import{t as l}from"./label-DKp4ZT7r.js";import{t as u}from"./input-error-DINAq-Y-.js";import{a as d,c as f,i as p,n as m,r as h}from"./styles-CjVbMPwe.js";import{t as g}from"./text-link-CVuHBE-P.js";import{t as _}from"./password-B146a-dj.js";var v=e(),y=t();function b(e){let t=(0,v.c)(28),{status:b}=e,{t:x}=n(),S;t[0]===x?S=t[1]:(S=x(`Forgot password`),t[0]=x,t[1]=S);let C;t[2]===S?C=t[3]:(C=(0,y.jsx)(i,{title:S}),t[2]=S,t[3]=C);let w;t[4]===b?w=t[5]:(w=b&&(0,y.jsx)(`div`,{className:`rounded-lg border border-[#d5ddca] bg-[#eef2e8] px-4 py-3 text-sm font-medium text-[#315f42] mb-4`,children:b}),t[4]=b,t[5]=w);let T;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(T=_.form(),t[6]=T):T=t[6];let E;t[7]===x?E=t[8]:(E=(0,y.jsx)(r,{...T,className:`grid gap-5`,children:e=>{let{processing:t,errors:n}=e;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(`div`,{className:`grid gap-2`,children:[(0,y.jsx)(l,{htmlFor:`email`,className:p,children:x(`Email address`)}),(0,y.jsx)(s,{id:`email`,type:`email`,name:`email`,autoComplete:`off`,autoFocus:!0,placeholder:`email@example.com`,className:h}),(0,y.jsx)(u,{message:n.email})]}),(0,y.jsx)(`div`,{className:`mt-4 flex items-center justify-start`,children:(0,y.jsxs)(o,{className:`${f} w-full`,disabled:t,"data-test":`email-password-reset-link-button`,children:[t&&(0,y.jsx)(a,{className:`h-4 w-4 animate-spin`}),x(`Email password reset link`)]})})]})}}),t[7]=x,t[8]=E);let D;t[9]===x?D=t[10]:(D=x(`Or, return to`),t[9]=x,t[10]=D);let O;t[11]===D?O=t[12]:(O=(0,y.jsx)(`span`,{children:D}),t[11]=D,t[12]=O);let k;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(k=c(),t[13]=k):k=t[13];let A;t[14]===x?A=t[15]:(A=x(`log in`),t[14]=x,t[15]=A);let j;t[16]===A?j=t[17]:(j=(0,y.jsx)(g,{href:k,className:d,children:A}),t[16]=A,t[17]=j);let M;t[18]!==j||t[19]!==O?(M=(0,y.jsxs)(`div`,{className:`space-x-1 text-center ${m}`,children:[O,j]}),t[18]=j,t[19]=O,t[20]=M):M=t[20];let N;t[21]!==M||t[22]!==E?(N=(0,y.jsxs)(`div`,{className:`space-y-6`,children:[E,M]}),t[21]=M,t[22]=E,t[23]=N):N=t[23];let P;return t[24]!==N||t[25]!==C||t[26]!==w?(P=(0,y.jsxs)(y.Fragment,{children:[C,w,N]}),t[24]=N,t[25]=C,t[26]=w,t[27]=P):P=t[27],P}b.layout={title:`Forgot password`,description:`Enter your email to receive a password reset link`};export{b as default};