import{$ as e,D as t,I as n,L as r,O as i,U as a,X as o,Z as s,b as c,r as l,v as u,w as d,x as f}from"./app-BdjXQvzb.js";import{t as p}from"./i18n-CeFqvAyT.js";import{t as m}from"./MarketingLayout-TgfoucK0.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=i({__name:`Status`,props:{checks:{},version:{}},setup(i){let T=i,E=c(()=>T.checks.every(e=>e.state===`ok`)),D=c(()=>T.checks.some(e=>e.state===`down`)),O=c(()=>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(c,T)=>(n(),d(u,null,[t(o(l),{title:`System status — Convoro`}),t(m,null,{default:a(()=>[f(`section`,h,[f(`span`,g,e(o(p)(`Status`)),1),f(`h1`,_,e(o(p)(`System status`)),1),f(`div`,{class:s([`mt-8 flex items-center gap-3 rounded-2xl border p-5`,O.value.c])},[f(`span`,v,[f(`span`,{class:s([`absolute inline-flex h-full w-full animate-ping rounded-full opacity-60`,O.value.dot])},null,2),f(`span`,{class:s([`relative inline-flex h-3 w-3 rounded-full`,O.value.dot])},null,2)]),f(`span`,y,e(O.value.t),1)],2),f(`ul`,b,[(n(!0),d(u,null,r(i.checks,t=>(n(),d(`li`,{key:t.name,class:`flex items-center gap-3 bg-surface px-5 py-4`},[f(`span`,{class:s([`h-2.5 w-2.5 shrink-0 rounded-full`,k(t.state)])},null,2),f(`div`,x,[f(`div`,S,e(t.name),1),f(`div`,C,e(t.detail),1)]),f(`span`,{class:s([`shrink-0 text-sm font-semibold`,t.state===`ok`?`text-emerald-500`:t.state===`down`?`text-red-500`:`text-amber-500`])},e(A(t.state)),3)]))),128))]),f(`p`,w,e(o(p)(`Checked live on each load`))+` · `+e(o(p)(`Convoro v{v}`,{v:i.version})),1)])]),_:1})],64))}});export{T as default};