import { jsxs as t, jsx as e } from "react/jsx-runtime";
import { Link as m } from "react-router-dom";
import { useTranslation as g } from "react-i18next";
import { ArrowLeft as i, Server as n, Target as N, Lightbulb as f, PauseCircle as x, Users as p, Clock as h, Search as b, Filter as y, Layers as o, MoreHorizontal as w, ShieldAlert as T, PlayCircle as d, Archive as v, RefreshCw as S, Zap as C, Info as k } from "lucide-react";
const A = [
  { name: "SmartStack System", slug: "smartstack-system", status: "Active", template: "", members: 0, requests: 0 },
  { name: "Notification Engine", slug: "notification-engine", status: "Active", template: "", members: 0, requests: 0 },
  { name: "Audit Platform", slug: "audit-platform", status: "Active", template: "system-default", members: 2, requests: 0 },
  { name: "Integration Services", slug: "integration-services", status: "Pending", template: "", members: 1, requests: 0 },
  { name: "Scheduled Tasks", slug: "scheduled-tasks", status: "Suspended", template: "", members: 0, requests: 1 }
], c = {
  active: 3,
  suspended: 1,
  members: 3,
  pendingRequests: 1
}, $ = ["overview", "members", "groups", "roles", "applications", "entra", "requests"], q = [
  { method: "GET", path: "/api/administration/tenants", handler: "GetAllTenants", permission: "administration.tenants.read" },
  { method: "GET", path: "/api/administration/tenants/{id}", handler: "GetTenant", permission: "authenticated" },
  { method: "GET", path: "/api/administration/tenants/by-slug/{slug}", handler: "GetTenantBySlug", permission: "authenticated" },
  { method: "GET", path: "/api/administration/tenants/config", handler: "GetConfig", permission: "authenticated" },
  { method: "PUT", path: "/api/administration/tenants/{id}", handler: "UpdateTenant", permission: "owner or admin" },
  { method: "POST", path: "/api/administration/tenants/{id}/activate", handler: "ActivateTenant", permission: "administration.tenants.activate" },
  { method: "POST", path: "/api/administration/tenants/{id}/suspend", handler: "SuspendTenant", permission: "administration.tenants.suspend" },
  { method: "DELETE", path: "/api/administration/tenants/{id}", handler: "ArchiveTenant", permission: "administration.tenants.delete" },
  { method: "POST", path: "/api/administration/tenants/{id}/template", handler: "AssignTemplate", permission: "administration.tenants.update" },
  { method: "DELETE", path: "/api/administration/tenants/{id}/template", handler: "RemoveTemplate", permission: "administration.tenants.update" }
], j = {
  Active: { bg: "bg-green-500/10", text: "text-green-700", border: "border-green-500/20" },
  Pending: { bg: "bg-blue-500/10", text: "text-blue-700", border: "border-blue-500/20" },
  Suspended: { bg: "bg-amber-500/10", text: "text-amber-700", border: "border-amber-500/20" },
  Archived: { bg: "bg-gray-500/10", text: "text-gray-600", border: "border-gray-500/20" }
}, E = ({ status: a }) => a === "Active" ? /* @__PURE__ */ e(d, { className: "w-3 h-3" }) : a === "Suspended" ? /* @__PURE__ */ e(x, { className: "w-3 h-3" }) : a === "Archived" ? /* @__PURE__ */ e(v, { className: "w-3 h-3" }) : /* @__PURE__ */ e(h, { className: "w-3 h-3" });
function r({ text: a }) {
  return /* @__PURE__ */ t("div", { className: "flex items-start gap-2 p-2.5 rounded-lg bg-blue-500/5 border border-blue-500/15 text-sm text-blue-700 dark:text-blue-400", children: [
    /* @__PURE__ */ e(k, { className: "w-4 h-4 mt-0.5 flex-shrink-0" }),
    /* @__PURE__ */ e("span", { children: a })
  ] });
}
function D() {
  const { t: a } = g("docsAdministrationTenantsOther");
  return /* @__PURE__ */ t("div", { className: "space-y-8", children: [
    /* @__PURE__ */ t(
      m,
      {
        to: "/docs/business/administration/tenants",
        className: "inline-flex items-center gap-2 text-[var(--text-secondary)] hover:text-[var(--color-primary-600)] transition-colors",
        children: [
          /* @__PURE__ */ e(i, { className: "w-4 h-4" }),
          a("nav.backToTenants")
        ]
      }
    ),
    /* @__PURE__ */ t("div", { children: [
      /* @__PURE__ */ t("h1", { className: "text-3xl font-bold mb-4 flex items-center gap-3", children: [
        /* @__PURE__ */ e(n, { className: "w-8 h-8 text-[var(--color-primary-600)]" }),
        a("title")
      ] }),
      /* @__PURE__ */ e("p", { className: "text-xl text-[var(--color-primary-600)] font-medium mb-2", children: a("valueProposition") }),
      /* @__PURE__ */ e("p", { className: "text-lg text-[var(--text-secondary)]", children: a("subtitle") }),
      /* @__PURE__ */ t("div", { className: "flex gap-4 mt-3 text-sm text-[var(--text-secondary)]", children: [
        /* @__PURE__ */ t("span", { children: [
          "5 ",
          a("header.businessRules")
        ] }),
        /* @__PURE__ */ t("span", { children: [
          "10 ",
          a("header.apiEndpoints")
        ] }),
        /* @__PURE__ */ t("span", { children: [
          "4 ",
          a("header.statuses")
        ] })
      ] })
    ] }),
    /* @__PURE__ */ t("section", { id: "valeur", className: "scroll-mt-4", children: [
      /* @__PURE__ */ t("h2", { className: "text-2xl font-bold mb-4 flex items-center gap-2", children: [
        /* @__PURE__ */ e("span", { className: "w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm", children: "1" }),
        a("sections.businessValue")
      ] }),
      /* @__PURE__ */ t("div", { className: "card p-6", children: [
        /* @__PURE__ */ t("div", { className: "mb-6", children: [
          /* @__PURE__ */ t("h3", { className: "font-semibold mb-3 flex items-center gap-2", children: [
            /* @__PURE__ */ e(N, { className: "w-5 h-5 text-red-500" }),
            a("sections.problem")
          ] }),
          /* @__PURE__ */ e("p", { className: "text-[var(--text-secondary)]", children: a("problem") })
        ] }),
        /* @__PURE__ */ t("div", { className: "p-4 rounded-lg bg-green-500/10 border border-green-500/20", children: [
          /* @__PURE__ */ t("h3", { className: "font-semibold mb-2 flex items-center gap-2 text-green-700", children: [
            /* @__PURE__ */ e(f, { className: "w-5 h-5" }),
            a("sections.solution")
          ] }),
          /* @__PURE__ */ e("p", { className: "text-[var(--text-secondary)]", children: a("solution") })
        ] })
      ] })
    ] }),
    /* @__PURE__ */ t("section", { id: "acces", className: "scroll-mt-4", children: [
      /* @__PURE__ */ t("h2", { className: "text-2xl font-bold mb-4 flex items-center gap-2", children: [
        /* @__PURE__ */ e("span", { className: "w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm", children: "2" }),
        a("sections.access")
      ] }),
      /* @__PURE__ */ t("div", { className: "card p-6 space-y-4", children: [
        /* @__PURE__ */ t("div", { children: [
          /* @__PURE__ */ e("div", { className: "text-sm font-medium text-[var(--text-secondary)] mb-2", children: a("access.navigation") }),
          /* @__PURE__ */ t("div", { className: "flex items-center gap-2 text-sm flex-wrap", children: [
            /* @__PURE__ */ e("span", { className: "px-3 py-1.5 rounded-lg bg-purple-500/10 text-purple-600 font-medium", children: "Platform" }),
            /* @__PURE__ */ e("span", { className: "text-[var(--text-tertiary)]", children: "›" }),
            /* @__PURE__ */ e("span", { className: "px-3 py-1.5 rounded-lg bg-blue-500/10 text-blue-600 font-medium", children: "Administration" }),
            /* @__PURE__ */ e("span", { className: "text-[var(--text-tertiary)]", children: "›" }),
            /* @__PURE__ */ e("span", { className: "px-3 py-1.5 rounded-lg bg-green-500/10 text-green-600 font-medium", children: "Tenants" }),
            /* @__PURE__ */ e("span", { className: "text-[var(--text-tertiary)]", children: "›" }),
            /* @__PURE__ */ e("span", { className: "px-3 py-1.5 rounded-lg bg-slate-500/10 text-slate-700 font-medium", children: "Autres" })
          ] })
        ] }),
        /* @__PURE__ */ t("div", { children: [
          /* @__PURE__ */ e("div", { className: "text-sm font-medium text-[var(--text-secondary)] mb-1", children: "URL" }),
          /* @__PURE__ */ e("code", { className: "text-sm px-3 py-1.5 bg-[var(--bg-secondary)] rounded-lg", children: "/administration/tenants/list/other" })
        ] }),
        /* @__PURE__ */ t("div", { children: [
          /* @__PURE__ */ e("div", { className: "text-sm font-medium text-[var(--text-secondary)] mb-1", children: a("access.permission") }),
          /* @__PURE__ */ e("code", { className: "text-sm px-3 py-1.5 bg-[var(--bg-secondary)] rounded-lg", children: "administration.tenants.read" })
        ] })
      ] })
    ] }),
    /* @__PURE__ */ t("section", { id: "interface", className: "scroll-mt-4", children: [
      /* @__PURE__ */ t("h2", { className: "text-2xl font-bold mb-4 flex items-center gap-2", children: [
        /* @__PURE__ */ e("span", { className: "w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm", children: "3" }),
        a("sections.interface")
      ] }),
      /* @__PURE__ */ e("p", { className: "text-[var(--text-secondary)] mb-4", children: a("interface.desc") }),
      /* @__PURE__ */ t("div", { className: "card overflow-hidden mb-4", children: [
        /* @__PURE__ */ t("div", { className: "p-4 border-b border-[var(--border-color)] bg-[var(--bg-secondary)]", children: [
          /* @__PURE__ */ t("div", { className: "flex items-center gap-2 text-xs text-[var(--text-secondary)] mb-3", children: [
            /* @__PURE__ */ e("span", { children: "Administration" }),
            /* @__PURE__ */ e("span", { children: "›" }),
            /* @__PURE__ */ e("span", { children: "Tenants" }),
            /* @__PURE__ */ e("span", { children: "›" }),
            /* @__PURE__ */ e("span", { className: "text-[var(--text-primary)]", children: a("title") })
          ] }),
          /* @__PURE__ */ e("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ t("div", { className: "flex items-center gap-3", children: [
            /* @__PURE__ */ e(n, { className: "w-6 h-6 text-[var(--color-primary-600)]" }),
            /* @__PURE__ */ t("div", { children: [
              /* @__PURE__ */ e("h3", { className: "text-lg font-semibold", children: a("title") }),
              /* @__PURE__ */ e("p", { className: "text-sm text-[var(--text-secondary)]", children: a("subtitle") })
            ] })
          ] }) })
        ] }),
        /* @__PURE__ */ t("div", { className: "grid grid-cols-2 md:grid-cols-4 gap-4 p-4", children: [
          /* @__PURE__ */ e("div", { className: "p-3 rounded-lg bg-green-500/10 border border-green-500/20", children: /* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
            /* @__PURE__ */ e(n, { className: "w-6 h-6 text-green-700" }),
            /* @__PURE__ */ t("div", { children: [
              /* @__PURE__ */ e("div", { className: "text-xl font-bold text-green-700", children: c.active }),
              /* @__PURE__ */ e("div", { className: "text-xs text-green-700", children: a("interface.stats.active") })
            ] })
          ] }) }),
          /* @__PURE__ */ e("div", { className: "p-3 rounded-lg bg-amber-500/10 border border-amber-500/20", children: /* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
            /* @__PURE__ */ e(x, { className: "w-6 h-6 text-amber-700" }),
            /* @__PURE__ */ t("div", { children: [
              /* @__PURE__ */ e("div", { className: "text-xl font-bold text-amber-700", children: c.suspended }),
              /* @__PURE__ */ e("div", { className: "text-xs text-amber-700", children: a("interface.stats.suspended") })
            ] })
          ] }) }),
          /* @__PURE__ */ e("div", { className: "p-3 rounded-lg bg-[var(--bg-secondary)] border border-[var(--border-color)]", children: /* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
            /* @__PURE__ */ e(p, { className: "w-6 h-6 text-[var(--text-secondary)]" }),
            /* @__PURE__ */ t("div", { children: [
              /* @__PURE__ */ e("div", { className: "text-xl font-bold text-[var(--text-primary)]", children: c.members }),
              /* @__PURE__ */ e("div", { className: "text-xs text-[var(--text-secondary)]", children: a("interface.stats.members") })
            ] })
          ] }) }),
          /* @__PURE__ */ e("div", { className: "p-3 rounded-lg bg-amber-500/10 border border-amber-500/20", children: /* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
            /* @__PURE__ */ e(h, { className: "w-6 h-6 text-amber-700" }),
            /* @__PURE__ */ t("div", { children: [
              /* @__PURE__ */ e("div", { className: "text-xl font-bold text-amber-700", children: c.pendingRequests }),
              /* @__PURE__ */ e("div", { className: "text-xs text-amber-700", children: a("interface.stats.requests") })
            ] })
          ] }) })
        ] }),
        /* @__PURE__ */ e("div", { className: "px-4 pb-3", children: /* @__PURE__ */ t("div", { className: "flex items-center gap-3 p-3 border border-[var(--border-color)] rounded-lg bg-[var(--bg-secondary)]", children: [
          /* @__PURE__ */ t("div", { className: "flex items-center gap-2 flex-1 px-3 py-1.5 bg-[var(--bg-primary)] border border-[var(--border-color)] rounded-lg", children: [
            /* @__PURE__ */ e(b, { className: "w-4 h-4 text-[var(--text-tertiary)]" }),
            /* @__PURE__ */ e("span", { className: "text-sm text-[var(--text-tertiary)]", children: a("interface.searchPlaceholder") })
          ] }),
          /* @__PURE__ */ t("div", { className: "relative", children: [
            /* @__PURE__ */ t("select", { className: "appearance-none px-3 py-1.5 pr-8 bg-[var(--bg-primary)] border border-[var(--border-color)] rounded-lg text-sm text-[var(--text-secondary)]", children: [
              /* @__PURE__ */ t("option", { children: [
                a("interface.columns.status"),
                ": ",
                a("interface.statusAll")
              ] }),
              /* @__PURE__ */ e("option", { children: a("interface.status.active") }),
              /* @__PURE__ */ e("option", { children: a("interface.status.pending") }),
              /* @__PURE__ */ e("option", { children: a("interface.status.suspended") }),
              /* @__PURE__ */ e("option", { children: a("interface.status.archived") })
            ] }),
            /* @__PURE__ */ e(y, { className: "absolute right-2 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-[var(--text-tertiary)] pointer-events-none" })
          ] })
        ] }) }),
        /* @__PURE__ */ e("div", { className: "px-4 pb-4", children: /* @__PURE__ */ e("div", { className: "border border-[var(--border-color)] rounded-lg overflow-hidden", children: /* @__PURE__ */ t("table", { className: "w-full text-sm", children: [
          /* @__PURE__ */ e("thead", { className: "bg-[var(--bg-secondary)]", children: /* @__PURE__ */ t("tr", { children: [
            /* @__PURE__ */ e("th", { className: "text-left px-4 py-3 text-xs font-semibold text-[var(--text-tertiary)] uppercase tracking-wider", children: a("interface.columns.name") }),
            /* @__PURE__ */ e("th", { className: "text-left px-4 py-3 text-xs font-semibold text-[var(--text-tertiary)] uppercase tracking-wider", children: a("interface.columns.status") }),
            /* @__PURE__ */ e("th", { className: "text-left px-4 py-3 text-xs font-semibold text-[var(--text-tertiary)] uppercase tracking-wider hidden md:table-cell", children: a("interface.columns.template") }),
            /* @__PURE__ */ e("th", { className: "text-center px-4 py-3 text-xs font-semibold text-[var(--text-tertiary)] uppercase tracking-wider hidden lg:table-cell", children: a("interface.columns.members") }),
            /* @__PURE__ */ e("th", { className: "text-center px-4 py-3 text-xs font-semibold text-[var(--text-tertiary)] uppercase tracking-wider hidden lg:table-cell", children: a("interface.columns.requests") }),
            /* @__PURE__ */ e("th", { className: "w-12 px-4 py-3" })
          ] }) }),
          /* @__PURE__ */ e("tbody", { className: "divide-y divide-[var(--border-color)]", children: A.map((s) => {
            const l = j[s.status];
            return /* @__PURE__ */ t("tr", { className: "hover:bg-[var(--bg-hover)] transition-colors", children: [
              /* @__PURE__ */ e("td", { className: "px-4 py-3", children: /* @__PURE__ */ t("div", { className: "flex items-center gap-3", children: [
                /* @__PURE__ */ e("div", { className: "w-9 h-9 rounded-lg bg-[var(--bg-tertiary)] flex items-center justify-center", children: /* @__PURE__ */ e(n, { className: "w-4 h-4 text-[var(--text-secondary)]" }) }),
                /* @__PURE__ */ t("div", { children: [
                  /* @__PURE__ */ e("div", { className: "font-medium text-[var(--text-primary)]", children: s.name }),
                  /* @__PURE__ */ e("div", { className: "text-xs text-[var(--text-tertiary)] font-mono", children: s.slug })
                ] })
              ] }) }),
              /* @__PURE__ */ e("td", { className: "px-4 py-3", children: /* @__PURE__ */ t("span", { className: `inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium border ${l.bg} ${l.text} ${l.border}`, children: [
                /* @__PURE__ */ e(E, { status: s.status }),
                a(`interface.status.${s.status.toLowerCase()}`)
              ] }) }),
              /* @__PURE__ */ e("td", { className: "px-4 py-3 hidden md:table-cell", children: s.template ? /* @__PURE__ */ t("div", { className: "flex items-center gap-1.5", children: [
                /* @__PURE__ */ e(o, { className: "w-4 h-4 text-[var(--color-primary-600)]" }),
                /* @__PURE__ */ e("span", { className: "text-sm", children: s.template })
              ] }) : /* @__PURE__ */ e("span", { className: "text-[var(--text-tertiary)]", children: "-" }) }),
              /* @__PURE__ */ e("td", { className: "px-4 py-3 text-center hidden lg:table-cell text-[var(--text-primary)]", children: s.members > 0 ? s.members : "-" }),
              /* @__PURE__ */ e("td", { className: "px-4 py-3 text-center hidden lg:table-cell", children: s.requests > 0 ? /* @__PURE__ */ t("span", { className: "inline-flex items-center gap-1 px-2 py-0.5 text-xs rounded-full bg-amber-500/10 text-amber-700 border border-amber-500/20", children: [
                /* @__PURE__ */ e(h, { className: "w-3 h-3" }),
                s.requests
              ] }) : /* @__PURE__ */ e("span", { className: "text-[var(--text-tertiary)]", children: "-" }) }),
              /* @__PURE__ */ e("td", { className: "px-4 py-3 text-center", children: /* @__PURE__ */ e("button", { className: "p-1.5 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors", children: /* @__PURE__ */ e(w, { className: "w-4 h-4 text-[var(--text-tertiary)]" }) }) })
            ] }, s.slug);
          }) })
        ] }) }) })
      ] }),
      /* @__PURE__ */ t("div", { className: "space-y-2", children: [
        /* @__PURE__ */ e(r, { text: a("interface.annotations.header") }),
        /* @__PURE__ */ e(r, { text: a("interface.annotations.stats") }),
        /* @__PURE__ */ e(r, { text: a("interface.annotations.toolbar") }),
        /* @__PURE__ */ e(r, { text: a("interface.annotations.nameCol") }),
        /* @__PURE__ */ e(r, { text: a("interface.annotations.statusCol") }),
        /* @__PURE__ */ e(r, { text: a("interface.annotations.templateCol") }),
        /* @__PURE__ */ e(r, { text: a("interface.annotations.membersCol") }),
        /* @__PURE__ */ e(r, { text: a("interface.annotations.requestsCol") }),
        /* @__PURE__ */ e(r, { text: a("interface.annotations.actionsCol") })
      ] })
    ] }),
    /* @__PURE__ */ t("section", { id: "cycle-de-vie", className: "scroll-mt-4", children: [
      /* @__PURE__ */ t("h2", { className: "text-2xl font-bold mb-4 flex items-center gap-2", children: [
        /* @__PURE__ */ e("span", { className: "w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm", children: "4" }),
        a("sections.lifecycle")
      ] }),
      /* @__PURE__ */ e("p", { className: "text-[var(--text-secondary)] mb-4", children: a("lifecycle.desc") }),
      /* @__PURE__ */ t("div", { className: "p-4 mb-4 rounded-lg bg-slate-500/5 border border-slate-500/20 flex items-start gap-3", children: [
        /* @__PURE__ */ e(T, { className: "w-5 h-5 text-slate-600 flex-shrink-0 mt-0.5" }),
        /* @__PURE__ */ t("div", { children: [
          /* @__PURE__ */ e("div", { className: "font-medium text-[var(--text-primary)] mb-1", children: a("lifecycle.noCreateTitle") }),
          /* @__PURE__ */ e("p", { className: "text-sm text-[var(--text-secondary)]", children: a("lifecycle.noCreateDesc") })
        ] })
      ] }),
      /* @__PURE__ */ t("div", { className: "card p-6 space-y-4", children: [
        /* @__PURE__ */ e("div", { className: "text-sm font-semibold text-[var(--text-primary)] mb-3", children: a("lifecycle.actionsTitle") }),
        /* @__PURE__ */ t("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-3", children: [
          /* @__PURE__ */ t("div", { className: "p-4 border border-green-500/30 rounded-lg bg-green-500/5", children: [
            /* @__PURE__ */ t("div", { className: "flex items-center gap-2 mb-2", children: [
              /* @__PURE__ */ e(d, { className: "w-5 h-5 text-green-600" }),
              /* @__PURE__ */ e("span", { className: "font-medium text-green-700", children: a("lifecycle.activate") })
            ] }),
            /* @__PURE__ */ e("p", { className: "text-xs text-[var(--text-secondary)]", children: a("lifecycle.activateDesc") })
          ] }),
          /* @__PURE__ */ t("div", { className: "p-4 border border-amber-500/30 rounded-lg bg-amber-500/5", children: [
            /* @__PURE__ */ t("div", { className: "flex items-center gap-2 mb-2", children: [
              /* @__PURE__ */ e(x, { className: "w-5 h-5 text-amber-600" }),
              /* @__PURE__ */ e("span", { className: "font-medium text-amber-700", children: a("lifecycle.suspend") })
            ] }),
            /* @__PURE__ */ e("p", { className: "text-xs text-[var(--text-secondary)]", children: a("lifecycle.suspendDesc") })
          ] }),
          /* @__PURE__ */ t("div", { className: "p-4 border border-red-500/30 rounded-lg bg-red-500/5", children: [
            /* @__PURE__ */ t("div", { className: "flex items-center gap-2 mb-2", children: [
              /* @__PURE__ */ e(v, { className: "w-5 h-5 text-red-600" }),
              /* @__PURE__ */ e("span", { className: "font-medium text-red-700", children: a("lifecycle.archive") })
            ] }),
            /* @__PURE__ */ e("p", { className: "text-xs text-[var(--text-secondary)]", children: a("lifecycle.archiveDesc") })
          ] })
        ] })
      ] }),
      /* @__PURE__ */ t("div", { className: "space-y-2 mt-4", children: [
        /* @__PURE__ */ e(r, { text: a("lifecycle.annotations.noCreate") }),
        /* @__PURE__ */ e(r, { text: a("lifecycle.annotations.actions") }),
        /* @__PURE__ */ e(r, { text: a("lifecycle.annotations.systemTenants") })
      ] })
    ] }),
    /* @__PURE__ */ t("section", { id: "detail", className: "scroll-mt-4", children: [
      /* @__PURE__ */ t("h2", { className: "text-2xl font-bold mb-4 flex items-center gap-2", children: [
        /* @__PURE__ */ e("span", { className: "w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm", children: "5" }),
        a("sections.detailView")
      ] }),
      /* @__PURE__ */ e("p", { className: "text-[var(--text-secondary)] mb-4", children: a("detail.desc") }),
      /* @__PURE__ */ t("div", { className: "card overflow-hidden", children: [
        /* @__PURE__ */ t("div", { className: "p-4 border-b border-[var(--border-color)] flex items-center justify-between", children: [
          /* @__PURE__ */ t("div", { className: "flex items-center gap-3", children: [
            /* @__PURE__ */ e(i, { className: "w-5 h-5 text-[var(--text-secondary)]" }),
            /* @__PURE__ */ e(n, { className: "w-6 h-6 text-[var(--color-primary-600)]" }),
            /* @__PURE__ */ t("div", { children: [
              /* @__PURE__ */ e("h3", { className: "text-lg font-semibold text-[var(--text-primary)]", children: "SmartStack System" }),
              /* @__PURE__ */ e("p", { className: "text-sm text-[var(--text-secondary)]", children: "smartstack-system" })
            ] })
          ] }),
          /* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
            /* @__PURE__ */ t("span", { className: "inline-flex items-center gap-1 px-2.5 py-1 rounded-full text-sm bg-green-500/10 text-green-700 border border-green-500/20", children: [
              /* @__PURE__ */ e(d, { className: "w-4 h-4" }),
              a("detail.statusActive")
            ] }),
            /* @__PURE__ */ e("span", { className: "px-2.5 py-1 rounded-full text-sm bg-slate-500/10 text-slate-700", children: "System" }),
            /* @__PURE__ */ e("button", { className: "p-2 rounded-lg hover:bg-[var(--bg-hover)]", children: /* @__PURE__ */ e(S, { className: "w-4 h-4 text-[var(--text-secondary)]" }) })
          ] })
        ] }),
        /* @__PURE__ */ e("div", { className: "border-b border-[var(--border-color)] flex overflow-x-auto", children: $.map((s, l) => /* @__PURE__ */ e(
          "button",
          {
            className: `px-4 py-3 text-sm font-medium border-b-2 whitespace-nowrap ${l === 0 ? "border-[var(--color-primary-600)] text-[var(--color-primary-600)]" : "border-transparent text-[var(--text-secondary)]"}`,
            children: a(`detail.tabs.${s}`)
          },
          s
        )) }),
        /* @__PURE__ */ e("div", { className: "p-4", children: /* @__PURE__ */ t("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
          /* @__PURE__ */ t("div", { className: "space-y-3", children: [
            /* @__PURE__ */ t("div", { className: "p-3 rounded-lg bg-[var(--bg-secondary)]", children: [
              /* @__PURE__ */ e("div", { className: "text-xs text-[var(--text-secondary)] mb-1", children: a("detail.overview.template") }),
              /* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
                /* @__PURE__ */ e(o, { className: "w-4 h-4 text-[var(--color-primary-600)]" }),
                /* @__PURE__ */ e("span", { className: "font-medium text-[var(--text-tertiary)] italic", children: "—" })
              ] })
            ] }),
            /* @__PURE__ */ t("div", { className: "p-3 rounded-lg bg-[var(--bg-secondary)]", children: [
              /* @__PURE__ */ e("div", { className: "text-xs text-[var(--text-secondary)] mb-1", children: a("detail.overview.members") }),
              /* @__PURE__ */ e("div", { className: "text-2xl font-bold text-[var(--color-primary-600)]", children: "0" })
            ] })
          ] }),
          /* @__PURE__ */ e("div", { className: "space-y-3", children: /* @__PURE__ */ t("div", { className: "p-3 rounded-lg bg-[var(--bg-secondary)]", children: [
            /* @__PURE__ */ e("div", { className: "text-xs text-[var(--text-secondary)] mb-1", children: a("detail.overview.created") }),
            /* @__PURE__ */ e("div", { className: "text-sm text-[var(--text-primary)]", children: "2024-01-01" })
          ] }) })
        ] }) })
      ] }),
      /* @__PURE__ */ t("div", { className: "space-y-2 mt-4", children: [
        /* @__PURE__ */ e(r, { text: a("detail.annotations.header") }),
        /* @__PURE__ */ e(r, { text: a("detail.annotations.statusBadge") }),
        /* @__PURE__ */ e(r, { text: a("detail.annotations.tabs") }),
        /* @__PURE__ */ e(r, { text: a("detail.annotations.overview") })
      ] })
    ] }),
    /* @__PURE__ */ t("section", { id: "cas-usage", className: "scroll-mt-4", children: [
      /* @__PURE__ */ t("h2", { className: "text-2xl font-bold mb-4 flex items-center gap-2", children: [
        /* @__PURE__ */ e("span", { className: "w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm", children: "6" }),
        a("sections.useCases")
      ] }),
      /* @__PURE__ */ e("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-4", children: [1, 2, 3].map((s) => /* @__PURE__ */ t("div", { className: "card p-6", children: [
        /* @__PURE__ */ t("div", { className: "flex items-center gap-3 mb-4", children: [
          /* @__PURE__ */ e("div", { className: `w-12 h-12 rounded-full flex items-center justify-center ${s === 1 ? "bg-blue-500/10" : s === 2 ? "bg-amber-500/10" : "bg-purple-500/10"}`, children: /* @__PURE__ */ e(p, { className: `w-6 h-6 ${s === 1 ? "text-blue-600" : s === 2 ? "text-amber-600" : "text-purple-600"}` }) }),
          /* @__PURE__ */ t("div", { children: [
            /* @__PURE__ */ e("div", { className: "font-semibold", children: a(`useCases.${s}.persona`) }),
            /* @__PURE__ */ e("div", { className: "text-sm text-[var(--text-secondary)]", children: a(`useCases.${s}.role`) })
          ] })
        ] }),
        /* @__PURE__ */ t("div", { className: "space-y-3 text-sm", children: [
          /* @__PURE__ */ t("div", { children: [
            /* @__PURE__ */ t("span", { className: "font-medium text-[var(--text-secondary)]", children: [
              a("useCases.situationLabel"),
              " "
            ] }),
            /* @__PURE__ */ e("span", { children: a(`useCases.${s}.situation`) })
          ] }),
          /* @__PURE__ */ t("div", { children: [
            /* @__PURE__ */ t("span", { className: "font-medium text-green-600", children: [
              a("useCases.withFeatureLabel"),
              " "
            ] }),
            /* @__PURE__ */ e("span", { children: a(`useCases.${s}.withFeature`) })
          ] })
        ] })
      ] }, s)) })
    ] }),
    /* @__PURE__ */ t("section", { id: "fonctionnalites", className: "scroll-mt-4", children: [
      /* @__PURE__ */ t("h2", { className: "text-2xl font-bold mb-4 flex items-center gap-2", children: [
        /* @__PURE__ */ e("span", { className: "w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm", children: "7" }),
        a("sections.features")
      ] }),
      /* @__PURE__ */ e("div", { className: "space-y-4", children: [1, 2, 3, 4, 5].map((s) => {
        const u = [b, d, n, o, C][s - 1];
        return /* @__PURE__ */ e("div", { className: "card p-6", children: /* @__PURE__ */ t("div", { className: "flex items-start gap-4", children: [
          /* @__PURE__ */ e("div", { className: "w-12 h-12 rounded-lg bg-[var(--color-primary-600)]/10 flex items-center justify-center flex-shrink-0", children: /* @__PURE__ */ e(u, { className: "w-6 h-6 text-[var(--color-primary-600)]" }) }),
          /* @__PURE__ */ t("div", { className: "flex-1", children: [
            /* @__PURE__ */ e("h3", { className: "font-semibold mb-2", children: a(`features.${s}.title`) }),
            /* @__PURE__ */ e("p", { className: "text-[var(--text-secondary)] mb-3", children: a(`features.${s}.description`) }),
            /* @__PURE__ */ t("div", { className: "p-3 rounded-lg bg-[var(--bg-secondary)] text-sm", children: [
              /* @__PURE__ */ t("span", { className: "font-medium text-[var(--color-primary-600)]", children: [
                a("features.exampleLabel"),
                " "
              ] }),
              a(`features.${s}.example`)
            ] })
          ] })
        ] }) }, s);
      }) })
    ] }),
    /* @__PURE__ */ t("section", { id: "faq", className: "scroll-mt-4", children: [
      /* @__PURE__ */ t("h2", { className: "text-2xl font-bold mb-4 flex items-center gap-2", children: [
        /* @__PURE__ */ e("span", { className: "w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm", children: "8" }),
        a("sections.faq")
      ] }),
      /* @__PURE__ */ e("div", { className: "space-y-4", children: [1, 2, 3, 4, 5].map((s) => /* @__PURE__ */ t("div", { className: "card p-4", children: [
        /* @__PURE__ */ e("h3", { className: "font-medium mb-2", children: a(`faq.${s}.question`) }),
        /* @__PURE__ */ e("p", { className: "text-sm text-[var(--text-secondary)]", children: a(`faq.${s}.answer`) })
      ] }, s)) })
    ] }),
    /* @__PURE__ */ e("section", { id: "reference", className: "scroll-mt-4", children: /* @__PURE__ */ t("details", { className: "card", children: [
      /* @__PURE__ */ t("summary", { className: "p-4 cursor-pointer hover:bg-[var(--bg-secondary)] rounded-lg font-semibold flex items-center gap-2", children: [
        /* @__PURE__ */ e("span", { className: "w-8 h-8 rounded-full bg-gray-500/10 text-gray-600 flex items-center justify-center text-sm", children: "9" }),
        a("sections.technicalRef")
      ] }),
      /* @__PURE__ */ t("div", { className: "p-4 pt-0 space-y-6", children: [
        /* @__PURE__ */ t("div", { children: [
          /* @__PURE__ */ e("h3", { className: "font-semibold mb-3", children: a("techRef.businessRules") }),
          /* @__PURE__ */ e("div", { className: "space-y-2", children: [
            { id: "BR-001", category: "Validation" },
            { id: "BR-002", category: "Security" },
            { id: "BR-003", category: "Lifecycle" },
            { id: "BR-004", category: "Lifecycle" },
            { id: "BR-005", category: "Filter" }
          ].map((s) => /* @__PURE__ */ t("div", { className: "p-3 rounded-lg bg-[var(--bg-secondary)]", children: [
            /* @__PURE__ */ t("div", { className: "flex items-center gap-2 mb-1", children: [
              /* @__PURE__ */ e("span", { className: "text-xs font-mono text-[var(--color-primary-600)]", children: s.id }),
              /* @__PURE__ */ e("span", { className: "text-xs px-2 py-0.5 rounded bg-[var(--color-primary-600)]/10", children: s.category })
            ] }),
            /* @__PURE__ */ e("p", { className: "text-xs text-[var(--text-secondary)] mt-1", children: a(`techRef.rules.${s.id}`) })
          ] }, s.id)) })
        ] }),
        /* @__PURE__ */ t("div", { children: [
          /* @__PURE__ */ e("h3", { className: "font-semibold mb-3", children: a("techRef.apiEndpoints") }),
          /* @__PURE__ */ e("div", { className: "overflow-x-auto", children: /* @__PURE__ */ t("table", { className: "w-full text-sm", children: [
            /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ t("tr", { className: "bg-[var(--bg-secondary)]", children: [
              /* @__PURE__ */ e("th", { className: "text-left py-2 px-3", children: "Method" }),
              /* @__PURE__ */ e("th", { className: "text-left py-2 px-3", children: "Endpoint" }),
              /* @__PURE__ */ e("th", { className: "text-left py-2 px-3", children: "Handler" })
            ] }) }),
            /* @__PURE__ */ e("tbody", { children: q.map((s, l) => /* @__PURE__ */ t("tr", { className: "border-b border-[var(--border-color)]", children: [
              /* @__PURE__ */ e("td", { className: "py-2 px-3", children: /* @__PURE__ */ e("span", { className: `px-2 py-0.5 rounded text-xs font-medium ${s.method === "GET" ? "bg-blue-500/10 text-blue-600" : s.method === "POST" ? "bg-green-500/10 text-green-600" : s.method === "PUT" ? "bg-orange-500/10 text-orange-600" : "bg-red-500/10 text-red-600"}`, children: s.method }) }),
              /* @__PURE__ */ e("td", { className: "py-2 px-3 font-mono text-xs", children: s.path }),
              /* @__PURE__ */ e("td", { className: "py-2 px-3 text-[var(--text-secondary)]", children: s.handler })
            ] }, l)) })
          ] }) })
        ] })
      ] })
    ] }) }),
    /* @__PURE__ */ t("div", { className: "flex justify-between pt-6 border-t border-[var(--border-color)]", children: [
      /* @__PURE__ */ t(
        m,
        {
          to: "/docs/business/administration/tenants",
          className: "flex items-center gap-2 text-[var(--text-secondary)] hover:text-[var(--color-primary-600)]",
          children: [
            /* @__PURE__ */ e(i, { className: "w-4 h-4" }),
            a("nav.backToTenants")
          ]
        }
      ),
      /* @__PURE__ */ t(
        m,
        {
          to: "/docs/business/administration/tenants/template",
          className: "flex items-center gap-2 text-[var(--color-primary-600)] hover:underline",
          children: [
            a("nav.toTemplates"),
            /* @__PURE__ */ e(i, { className: "w-4 h-4 rotate-180" })
          ]
        }
      )
    ] })
  ] });
}
export {
  D as default
};
//# sourceMappingURL=index-BlHDI4zj.js.map
