import{_ as e,a as t,i as n,o as r,s as i}from"./i18n-DfIivedY.js";import{Dt as a,Q as o}from"./app-BUWZBqJJ.js";import{a as s,c}from"./styles-CjVbMPwe.js";import{t as l}from"./spinner-zY0Cj43D.js";import{t as u}from"./text-link-CVuHBE-P.js";import{t as d}from"./verification-Tyx7U0ct.js";var f=e(),p=t();function m(e){let t=(0,f.c)(14),{status:m}=e,{t:h}=n(),g;t[0]===h?g=t[1]:(g=h(`Email verification`),t[0]=h,t[1]=g);let _;t[2]===g?_=t[3]:(_=(0,p.jsx)(i,{title:g}),t[2]=g,t[3]=_);let v;t[4]!==m||t[5]!==h?(v=m===`verification-link-sent`&&(0,p.jsx)(`div`,{className:`rounded-lg border border-[#d5ddca] bg-[#eef2e8] px-4 py-3 text-sm font-medium text-[#315f42] mb-4`,children:h(`A new verification link has been sent to the email address you provided during registration.`)}),t[4]=m,t[5]=h,t[6]=v):v=t[6];let y;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(y=d.form(),t[7]=y):y=t[7];let b;t[8]===h?b=t[9]:(b=(0,p.jsx)(r,{...y,className:`grid gap-4 text-center`,children:e=>{let{processing:t}=e;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(a,{disabled:t,className:c,children:[t&&(0,p.jsx)(l,{}),h(`Resend verification email`)]}),(0,p.jsx)(u,{href:o(),className:`${s} mx-auto block text-sm`,children:h(`Log out`)})]})}}),t[8]=h,t[9]=b);let x;return t[10]!==_||t[11]!==v||t[12]!==b?(x=(0,p.jsxs)(p.Fragment,{children:[_,v,b]}),t[10]=_,t[11]=v,t[12]=b,t[13]=x):x=t[13],x}m.layout={title:`Verify email`,description:`Please verify your email address by clicking on the link we just emailed to you.`};export{m as default};