import{d as g,r as c,i as x,b as s,o as a,e as n,t as o,f as l,g as v,_ as h,w as y,j as k,k as w}from"./index-DGnN4tUo.js";import{_ as b}from"./Space-CL0I_Xfq.js";import"./get-slot-Bk_rJcZu.js";const $={class:"min-h-screen flex items-center justify-center px-3"},j={class:"p-6 rounded-xl shadow-lg w-full max-w-md bg-white dark:bg-gray-800 text-center"},A={class:"text-2xl font-bold mb-4"},N={key:0,class:"text-gray-500 flex items-center gap-2 justify-center"},S={key:1,class:"text-green-600 font-semibold flex items-center justify-center gap-2 flex-wrap text-center"},B={class:"flex-shrink-0"},V={class:"max-w-[240px] break-words leading-snug text-left"},C={key:2,class:"text-red-600 font-semibold"},D=g({name:"email_verify",__name:"[token]",props:{token:{}},setup(_){const p=_,r=c(!0),d=c(!1),m=c(""),f=async()=>{const e=`/email/verify/${p.token}`,{data:i,error:t}=await k(e);t||(d.value=i.isOk,m.value=i.email),r.value=!1};return x(()=>{f()}),(e,i)=>{const t=h,u=b;return a(),s("div",$,[n("div",j,[n("h1",A,o(e.$t("page.email.emailActivation")),1),r.value?(a(),s("div",N,[l(t,{"local-icon":"svg-spinners--ring-resize",class:"text-[22px]"}),v(o(e.$t("page.email.emailActivating")),1)])):d.value?(a(),s("div",S,[l(u,{align:"center",class:"flex items-center justify-center gap-2"},{default:y(()=>[n("div",B,[l(t,{"local-icon":"clarity--success-standard-solid",class:"text-[22px]"})]),n("div",V,o(e.$t("page.email.emailActivationSuccess",{email:m.value})),1)]),_:1})])):(a(),s("div",C," ❌ "+o(e.$t("page.email.emailActivationFailed")),1))])])}}}),F=w(D,[["__scopeId","data-v-c6d3cf00"]]);export{F as default};
