1import{i as h,t as b}from"./react-C6JdJxIB.js";import{i as j,n as g,o as v}from"./index.esm-DxXUb9DD.js";import{t as y}from"./jsx-runtime-CGXBp6bb.js";import{t as a}from"./trans-PZ_OsZUf.js";import{t as _}from"./CentralLayout-B7lm4y_K.js";var l=h(b(),1),e=y();function C({context:x}){const{props:i}=v(),[m,n]=(0,l.useState)(!1),[o,s]=(0,l.useState)(!1),[u,d]=(0,l.useState)(""),p=i.errors??{},c=[i.flash?.error??"",u].filter(Boolean).concat(Object.values(p).flatMap(t=>Array.isArray(t)?t:[t])),f=t=>{t.preventDefault(),d(""),s(!0),j.post("/email/verification-notification",{},{onError:r=>{d(r?.message||"Unable to resend verification link. Please try again later."),s(!1)},onFinish:()=>{s(!1)},onSuccess:()=>{n(!0),setTimeout(()=>n(!1),5e3)}})};return(0,e.jsxs)(_,{mode:"auth",title:"Verify your email",context:x,pageKey:"verifyEmail",children:[(0,e.jsx)("div",{className:"mb-6 flex justify-center",children:(0,e.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-slate-100 text-3xl shadow-inner",children:"âï¸"})}),(0,e.jsx)("h2",{className:"mb-2 text-center text-lg font-bold text-slate-800",children:"Check your inbox"}),(0,e.jsx)("p",{className:"mb-6 text-center text-sm text-slate-500 leading-relaxed",children:"We've sent a verification link to your email address. Click the link to activate your account and create your personal workspace."}),c.length>0?(0,e.jsx)("div",{className:"mb-4 rounded-2xl border border-rose-200 bg-rose-50 px-4 py-3 text-sm text-rose-700",role:"alert","aria-live":"polite",children:(0,e.jsx)("ul",{className:"mt-2 list-disc space-y-1 pl-5",children:c.map((t,r)=>(0,e.jsx)("li",{children:t},`${t}-${r}`))})}):null,m&&(0,e.jsxs)("div",{className:"mb-4 flex items-center gap-2 rounded-xl bg-emerald-50 border border-emerald-200 px-4 py-3 text-sm text-emerald-700",children:[(0,e.jsx)("span",{children:"â
"}),(0,e.jsx)("span",{children:"A new verification link has been sent!"})]}),(0,e.jsxs)("div",{className:"mb-6 rounded-2xl bg-slate-50 border border-slate-200 p-4 text-xs text-slate-500 space-y-2",children:[(0,e.jsxs)("div",{className:"flex items-start gap-2",children:[(0,e.jsx)("span",{children:"ð"}),(0,e.jsx)("span",{children:"Once verified, your personal workspace will be created automatically."})]}),(0,e.jsxs)("div",{className:"flex items-start gap-2",children:[(0,e.jsx)("span",{children:"ð"}),(0,e.jsx)("span",{children:"Didn't receive it? Check your spam/junk folder."})]})]}),(0,e.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,e.jsx)("button",{onClick:f,disabled:o,className:"w-full rounded-2xl bg-slate-900 px-4 py-3 text-sm font-semibold text-white shadow-lg transition hover:-translate-y-0.5 hover:bg-slate-800 disabled:cursor-not-allowed disabled:opacity-60",children:o?a("sending"):a("resend_verification_email")}),(0,e.jsx)(g,{href:"/logout",method:"post",as:"button",className:"w-full rounded-2xl border border-slate-200 bg-white px-4 py-3 text-center text-sm font-semibold text-slate-700 shadow-sm transition hover:bg-slate-50",children:a("sign_out_and_use_different_account")})]})]})}export{C as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.