import{C as e,D as t,E as n,F as r,H as i,I as a,Q as o,X as s,Y as c,_ as l,b as u,n as d,y as f}from"./app-CIgm2_XN.js";import{t as p}from"./i18n-C2S9um2t.js";import{t as m}from"./MarketingLayout-JmXDaeGs.js";var h={class:`mx-auto max-w-3xl px-6 py-16`},g={class:`text-sm font-bold uppercase tracking-wide text-primary`},_={class:`mt-2 text-4xl font-black tracking-tight`},v={class:`relative flex h-3 w-3`},y={class:`text-lg font-bold`},b={class:`mt-6 divide-y divide-line overflow-hidden rounded-2xl border border-line`},x={class:`min-w-0 flex-1`},S={class:`font-semibold text-ink`},C={class:`text-sm text-ink-muted`},w={class:`mt-6 text-center text-xs text-ink-muted`},T=t({__name:`Status`,props:{checks:{},version:{}},setup(t){let T=t,E=f(()=>T.checks.every(e=>e.state===`ok`)),D=f(()=>T.checks.some(e=>e.state===`down`)),O=f(()=>D.value?{t:p(`Partial outage`),c:`bg-red-500/10 border-red-500/40 text-red-600 dark:text-red-400`,dot:`bg-red-500`}:E.value?{t:p(`All systems operational`),c:`bg-emerald-500/10 border-emerald-500/40 text-emerald-600 dark:text-emerald-400`,dot:`bg-emerald-500`}:{t:p(`Degraded performance`),c:`bg-amber-500/10 border-amber-500/40 text-amber-600 dark:text-amber-400`,dot:`bg-amber-500`}),k=e=>({ok:`bg-emerald-500`,degraded:`bg-amber-500`,down:`bg-red-500`})[e]||`bg-ink-muted`,A=e=>({ok:p(`Operational`),degraded:p(`Degraded`),down:p(`Down`)})[e]||e;return(f,T)=>(r(),e(l,null,[n(c(d),{title:`System status — Convoro`}),n(m,null,{default:i(()=>[u(`section`,h,[u(`span`,g,o(c(p)(`Status`)),1),u(`h1`,_,o(c(p)(`System status`)),1),u(`div`,{class:s([`mt-8 flex items-center gap-3 rounded-2xl border p-5`,O.value.c])},[u(`span`,v,[u(`span`,{class:s([`absolute inline-flex h-full w-full animate-ping rounded-full opacity-60`,O.value.dot])},null,2),u(`span`,{class:s([`relative inline-flex h-3 w-3 rounded-full`,O.value.dot])},null,2)]),u(`span`,y,o(O.value.t),1)],2),u(`ul`,b,[(r(!0),e(l,null,a(t.checks,t=>(r(),e(`li`,{key:t.name,class:`flex items-center gap-3 bg-surface px-5 py-4`},[u(`span`,{class:s([`h-2.5 w-2.5 shrink-0 rounded-full`,k(t.state)])},null,2),u(`div`,x,[u(`div`,S,o(t.name),1),u(`div`,C,o(t.detail),1)]),u(`span`,{class:s([`shrink-0 text-sm font-semibold`,t.state===`ok`?`text-emerald-500`:t.state===`down`?`text-red-500`:`text-amber-500`])},o(A(t.state)),3)]))),128))]),u(`p`,w,o(c(p)(`Checked live on each load`))+` · `+o(c(p)(`Convoro v{v}`,{v:t.version})),1)])]),_:1})],64))}});export{T as default};