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