import { a as attr, b as attr_class, c as clsx, h as head, e as escape_html, s as store_get, g as stringify, f as ensure_array_like, u as unsubscribe_stores, i as derived } from "../../chunks/index.js"; import { t } from "../../chunks/index2.js"; import { I as IconDeploy } from "../../chunks/IconDeploy.js"; import { I as IconAlert } from "../../chunks/IconAlert.js"; import { S as SkeletonCard } from "../../chunks/SkeletonCard.js"; import "clsx"; function IconServer($$renderer, $$props) { const { size = 20, class: c = "" } = $$props; $$renderer.push(``); } function IconBox($$renderer, $$props) { const { size = 20, class: c = "" } = $$props; $$renderer.push(``); } function IconClock($$renderer, $$props) { const { size = 20, class: c = "" } = $$props; $$renderer.push(``); } function SystemHealthCard($$renderer, $$props) { $$renderer.component(($$renderer2) => { { $$renderer2.push(""); } $$renderer2.push(``); }); } function _page($$renderer, $$props) { $$renderer.component(($$renderer2) => { var $$store_subs; let projects = []; let instancesByProject = {}; let staleContainers = []; const totalProjects = derived(() => projects.length); const totalRunning = derived(() => Object.values(instancesByProject).flat().filter((i) => i.status === "running").length); const totalFailed = derived(() => Object.values(instancesByProject).flat().filter((i) => i.status === "failed").length); const totalStale = derived(() => staleContainers.length); head("1uha8ag", $$renderer2, ($$renderer3) => { $$renderer3.title(($$renderer4) => { $$renderer4.push(`
${escape_html(store_get($$store_subs ??= {}, "$t", t)("dashboard.totalProjects"))}
${escape_html(totalProjects())}
${escape_html(store_get($$store_subs ??= {}, "$t", t)("dashboard.runningInstances"))}
${escape_html(totalRunning())}
${escape_html(store_get($$store_subs ??= {}, "$t", t)("dashboard.failedInstances"))}
0 ? "text-red-600" : "text-[var(--text-primary)]")}`)}>${escape_html(totalFailed())}
${escape_html(store_get($$store_subs ??= {}, "$t", t)("dashboard.staleContainers"))}
0 ? "text-amber-600" : "text-[var(--text-primary)]")}`)}>${escape_html(totalStale())}