1import{x as j,an as I,ao as N,a4 as S,aa as V,av as $,a2 as D,P as p,s as _,p as d,a0 as e,v as s,_ as E,aw as o,u as n,$ as r,c as R,d as T,o as y}from"./DQIkdDWl.js";import{_ as q}from"./BdIzqLJq.js";import{u as z}from"./B3bp7SI6.js";const H={class:"flex flex-1 w-full items-start lg:items-center justify-center bg-brand-navy pt-[88px] sm:pt-[96px] xl:pt-[118px]"},L={class:"w-full max-w-[1094px] md:h-[700px] flex flex-col md:flex-row bg-white shadow-2xl relative z-10 overflow-hidden"},M={class:"w-full md:w-1/2 p-8 md:px-[20px] lg:p-14 h-full flex flex-col justify-center"},P={key:0,class:"text-center space-y-6"},F={key:1,class:"text-center space-y-6"},Q=j({__name:"index",async setup(G){let c,f;z(void 0,{noIndex:!0});const h=I(),m=N(),{verify:w}=S(),{t,locale:b}=V(),u=h.query.token,{data:k,error:x}=([c,f]=$(async()=>D("verifyAccount",async()=>{if(!u)throw new Error(t("pages.verify.failed_desc"));return await w(u,b.value)})),c=await c,f(),c),B=y(()=>k.value?.success===!0),A=y(()=>{if(!u)return t("pages.verify.failed_desc");if(x.value){const l=x.value;return l.data?.message||l.cause?.data?.message||l.message||t("pages.verify.failed_desc")}return""});return(l,a)=>{const v=E,i=R,g=T;return p(),_("div",H,[d("div",L,[a[2]||(a[2]=d("div",{class:"aspect-[375/200] md:aspect-auto md:w-1/2 relative bg-gray-100"},[d("img",{src:q,alt:"Login Hero",class:"absolute inset-0 w-full h-full object-cover"})],-1)),d("div",M,[e(B)?(p(),_("div",P,[s(v,{name:"lucide:check-circle",class:"!w-16 !h-16 text-green-500 mx-auto"}),s(i,{as:"h1",variant:"h2",family:"condensed",weight:"bold",color:"brand-navy"},{default:o(()=>[n(r(e(t)("pages.verify.success")),1)]),_:1}),s(i,{variant:"body-lg",weight:"bold",color:"default",class:"!text-brand-text mb-[32px]"},{default:o(()=>[n(r(e(t)("pages.verify.success_desc")),1)]),_:1}),s(g,{block:"",variant:"red-solid",onClick:a[0]||(a[0]=C=>e(m).push("/login"))},{default:o(()=>[n(r(e(t)("pages.verify.proceed_to_login")),1)]),_:1})])):(p(),_("div",F,[s(v,{name:"lucide:x-circle",class:"!w-16 !h-16 text-brand-red mx-auto"}),s(i,{as:"h1",variant:"h2",family:"condensed",weight:"bold",color:"brand-navy"},{default:o(()=>[n(r(e(t)("pages.verify.failed")),1)]),_:1}),s(i,{variant:"body-lg",weight:"bold",color:"brand-red",class:"mb-[32px]"},{default:o(()=>[n(r(e(A)),1)]),_:1}),s(g,{block:"",variant:"ghost",onClick:a[1]||(a[1]=C=>e(m).push("/login"))},{default:o(()=>[n(r(e(t)("pages.registration.back_to_login")),1)]),_:1})]))])])])}}});export{Q 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.