import { jsxs as r, jsx as e } from "react/jsx-runtime";
import { useMemo as v } from "react";
import { Link as c } from "react-router-dom";
import { useTranslation as u } from "react-i18next";
import { LayoutDashboard as N, ArrowRight as i, RefreshCw as b, Clock as h, AlertTriangle as d, TrendingUp as x, Headphones as f, CheckCircle as g, Star as n, XCircle as y, Users as w, Info as k } from "lucide-react";
const T = [
  { title: "Total Tickets", value: "125", color: "blue", icon: f },
  { title: "New Tickets", value: "23", color: "green", icon: x, subtitle: "Last 30 days" },
  { title: "Open Tickets", value: "45", color: "yellow", icon: h },
  { title: "Resolved", value: "67", color: "green", icon: g, subtitle: "Last 30 days" },
  { title: "SLA Compliance", value: "89.6%", color: "green", icon: d },
  { title: "Avg. Satisfaction", value: "4.2/5", color: "yellow", icon: n }
], m = [
  { name: "Jean Dupont", email: "jean@example.com", total: 12, open: 3, inProgress: 5, onHold: 2 },
  { name: "Marie Martin", email: "marie@example.com", total: 8, open: 2, inProgress: 4, onHold: 1 },
  { name: "Pierre Bernard", email: "pierre@example.com", total: 15, open: 5, inProgress: 6, onHold: 3 }
];
function z() {
  const { t: s } = u("docs"), o = v(
    () => Array.from({ length: 30 }, () => ({
      blue: Math.random() * 80 + 20,
      // eslint-disable-line react-hooks/purity -- decorative random values for documentation chart
      green: Math.random() * 80 + 20
      // eslint-disable-line react-hooks/purity
    })),
    []
  );
  return /* @__PURE__ */ r("div", { className: "space-y-8", children: [
    /* @__PURE__ */ r("div", { className: "flex items-center gap-2 text-sm text-[var(--text-secondary)]", children: [
      /* @__PURE__ */ e(c, { to: "/system/docs", className: "hover:text-[var(--color-primary-600)]", children: s("breadcrumb.documentation") }),
      /* @__PURE__ */ e("span", { children: "/" }),
      /* @__PURE__ */ e(c, { to: "/system/docs/user", className: "hover:text-[var(--color-primary-600)]", children: s("breadcrumb.user") }),
      /* @__PURE__ */ e("span", { children: "/" }),
      /* @__PURE__ */ e(c, { to: "/system/docs/user/support", className: "hover:text-[var(--color-primary-600)]", children: s("breadcrumb.support") }),
      /* @__PURE__ */ e("span", { children: "/" }),
      /* @__PURE__ */ e("span", { children: "Dashboard" })
    ] }),
    /* @__PURE__ */ r("div", { children: [
      /* @__PURE__ */ r("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)]" }),
        s("support.dashboard.title")
      ] }),
      /* @__PURE__ */ e("p", { className: "text-lg text-[var(--text-secondary)]", children: s("support.dashboard.subtitle") })
    ] }),
    /* @__PURE__ */ r("div", { className: "card p-4 bg-[var(--bg-secondary)]", children: [
      /* @__PURE__ */ e("h3", { className: "font-semibold mb-3", children: "Table des matieres" }),
      /* @__PURE__ */ r("div", { className: "grid grid-cols-2 md:grid-cols-4 gap-2 text-sm", children: [
        /* @__PURE__ */ e("a", { href: "#overview", className: "text-[var(--color-primary-600)] hover:underline", children: "1. Vue d'ensemble" }),
        /* @__PURE__ */ e("a", { href: "#kpis", className: "text-[var(--color-primary-600)] hover:underline", children: "2. Indicateurs KPI" }),
        /* @__PURE__ */ e("a", { href: "#alerts", className: "text-[var(--color-primary-600)] hover:underline", children: "3. Alertes SLA" }),
        /* @__PURE__ */ e("a", { href: "#charts", className: "text-[var(--color-primary-600)] hover:underline", children: "4. Graphiques" }),
        /* @__PURE__ */ e("a", { href: "#workload", className: "text-[var(--color-primary-600)] hover:underline", children: "5. Charge agents" }),
        /* @__PURE__ */ e("a", { href: "#satisfaction", className: "text-[var(--color-primary-600)] hover:underline", children: "6. Satisfaction" })
      ] })
    ] }),
    /* @__PURE__ */ r("section", { id: "overview", className: "space-y-4", children: [
      /* @__PURE__ */ r("h2", { className: "text-2xl font-bold 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" }),
        "Vue d'ensemble"
      ] }),
      /* @__PURE__ */ r("div", { className: "card p-6", children: [
        /* @__PURE__ */ e("h3", { className: "font-semibold mb-3", children: "Acces" }),
        /* @__PURE__ */ r("div", { className: "flex items-center gap-2 p-3 bg-[var(--bg-secondary)] rounded-lg font-mono text-sm mb-4", children: [
          /* @__PURE__ */ e("span", { className: "text-[var(--text-tertiary)]", children: "Support" }),
          /* @__PURE__ */ e(i, { className: "w-4 h-4 text-[var(--text-tertiary)]" }),
          /* @__PURE__ */ e("span", { className: "text-[var(--color-primary-600)] font-semibold", children: "Dashboard" })
        ] }),
        /* @__PURE__ */ e("p", { className: "text-[var(--text-secondary)]", children: "Le dashboard Support offre une vue complete des operations de support, incluant les KPIs, les alertes SLA, la distribution des tickets et la charge de travail des agents." })
      ] }),
      /* @__PURE__ */ r("div", { className: "card p-6", children: [
        /* @__PURE__ */ e("h3", { className: "font-semibold mb-4", children: "Fonctionnalites principales" }),
        /* @__PURE__ */ r("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
          /* @__PURE__ */ r("div", { className: "flex items-start gap-3", children: [
            /* @__PURE__ */ e("div", { className: "w-8 h-8 rounded-full bg-[var(--dataviz-cat-1)]/10 flex items-center justify-center flex-shrink-0", children: /* @__PURE__ */ e(b, { className: "w-4 h-4 text-[var(--dataviz-cat-1)]" }) }),
            /* @__PURE__ */ r("div", { children: [
              /* @__PURE__ */ e("div", { className: "font-medium", children: "Donnees temps reel" }),
              /* @__PURE__ */ e("div", { className: "text-sm text-[var(--text-secondary)]", children: "Actualisation automatique et manuelle" })
            ] })
          ] }),
          /* @__PURE__ */ r("div", { className: "flex items-start gap-3", children: [
            /* @__PURE__ */ e("div", { className: "w-8 h-8 rounded-full bg-[var(--dataviz-cat-4)]/10 flex items-center justify-center flex-shrink-0", children: /* @__PURE__ */ e(h, { className: "w-4 h-4 text-[var(--dataviz-cat-4)]" }) }),
            /* @__PURE__ */ r("div", { children: [
              /* @__PURE__ */ e("div", { className: "font-medium", children: "Selection de periode" }),
              /* @__PURE__ */ e("div", { className: "text-sm text-[var(--text-secondary)]", children: "7, 30 ou 90 derniers jours" })
            ] })
          ] }),
          /* @__PURE__ */ r("div", { className: "flex items-start gap-3", children: [
            /* @__PURE__ */ e("div", { className: "w-8 h-8 rounded-full bg-[var(--error-bg)] flex items-center justify-center flex-shrink-0", children: /* @__PURE__ */ e(d, { className: "w-4 h-4 text-[var(--error-text)]" }) }),
            /* @__PURE__ */ r("div", { children: [
              /* @__PURE__ */ e("div", { className: "font-medium", children: "Alertes proactives" }),
              /* @__PURE__ */ e("div", { className: "text-sm text-[var(--text-secondary)]", children: "Tickets en depassement ou a risque" })
            ] })
          ] }),
          /* @__PURE__ */ r("div", { className: "flex items-start gap-3", children: [
            /* @__PURE__ */ e("div", { className: "w-8 h-8 rounded-full bg-[var(--success-bg)] flex items-center justify-center flex-shrink-0", children: /* @__PURE__ */ e(x, { className: "w-4 h-4 text-[var(--success-text)]" }) }),
            /* @__PURE__ */ r("div", { children: [
              /* @__PURE__ */ e("div", { className: "font-medium", children: "Tendances" }),
              /* @__PURE__ */ e("div", { className: "text-sm text-[var(--text-secondary)]", children: "Evolution des tickets crees/resolus" })
            ] })
          ] })
        ] })
      ] })
    ] }),
    /* @__PURE__ */ r("section", { id: "kpis", className: "space-y-4", children: [
      /* @__PURE__ */ r("h2", { className: "text-2xl font-bold 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" }),
        "Indicateurs KPI"
      ] }),
      /* @__PURE__ */ r("div", { className: "card p-6", children: [
        /* @__PURE__ */ e("h3", { className: "font-semibold mb-4", children: "Cartes KPI" }),
        /* @__PURE__ */ e("div", { className: "grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-3", children: T.map((t) => /* @__PURE__ */ r("div", { className: `p-3 rounded-lg border ${{
          blue: "bg-[var(--dataviz-cat-1)]/10 text-[var(--dataviz-cat-1)] border-[var(--dataviz-cat-1)]/20",
          green: "bg-[var(--success-bg)] text-[var(--success-text)] border-[var(--success-border)]",
          yellow: "bg-[var(--warning-bg)] text-[var(--warning-text)] border-[var(--warning-border)]",
          red: "bg-[var(--error-bg)] text-[var(--error-text)] border-[var(--error-border)]"
        }[t.color]}`, children: [
          /* @__PURE__ */ r("div", { className: "flex items-center justify-between mb-2", children: [
            /* @__PURE__ */ e("span", { className: "text-xs font-medium opacity-80", children: t.title }),
            /* @__PURE__ */ e(t.icon, { className: "w-4 h-4" })
          ] }),
          /* @__PURE__ */ e("div", { className: "text-xl font-bold", children: t.value }),
          t.subtitle && /* @__PURE__ */ e("div", { className: "text-xs opacity-70", children: t.subtitle })
        ] }, t.title)) })
      ] }),
      /* @__PURE__ */ r("div", { className: "card p-6", children: [
        /* @__PURE__ */ e("h3", { className: "font-semibold mb-3", children: "Description des KPIs" }),
        /* @__PURE__ */ r("table", { className: "w-full text-sm", children: [
          /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ r("tr", { className: "border-b border-[var(--border-color)]", children: [
            /* @__PURE__ */ e("th", { className: "text-left py-2", children: "KPI" }),
            /* @__PURE__ */ e("th", { className: "text-left py-2", children: "Description" }),
            /* @__PURE__ */ e("th", { className: "text-left py-2", children: "Objectif" })
          ] }) }),
          /* @__PURE__ */ r("tbody", { children: [
            /* @__PURE__ */ r("tr", { className: "border-b border-[var(--border-color)]", children: [
              /* @__PURE__ */ e("td", { className: "py-2 font-medium", children: "Total Tickets" }),
              /* @__PURE__ */ e("td", { className: "py-2 text-[var(--text-secondary)]", children: "Nombre total de tickets dans le systeme" }),
              /* @__PURE__ */ e("td", { className: "py-2", children: "Information" })
            ] }),
            /* @__PURE__ */ r("tr", { className: "border-b border-[var(--border-color)]", children: [
              /* @__PURE__ */ e("td", { className: "py-2 font-medium", children: "New Tickets" }),
              /* @__PURE__ */ e("td", { className: "py-2 text-[var(--text-secondary)]", children: "Tickets crees sur la periode selectionnee" }),
              /* @__PURE__ */ e("td", { className: "py-2", children: "Suivi volume" })
            ] }),
            /* @__PURE__ */ r("tr", { className: "border-b border-[var(--border-color)]", children: [
              /* @__PURE__ */ e("td", { className: "py-2 font-medium", children: "Open Tickets" }),
              /* @__PURE__ */ e("td", { className: "py-2 text-[var(--text-secondary)]", children: "Tickets actuellement ouverts (backlog)" }),
              /* @__PURE__ */ e("td", { className: "py-2", children: "< 50" })
            ] }),
            /* @__PURE__ */ r("tr", { className: "border-b border-[var(--border-color)]", children: [
              /* @__PURE__ */ e("td", { className: "py-2 font-medium", children: "Resolved" }),
              /* @__PURE__ */ e("td", { className: "py-2 text-[var(--text-secondary)]", children: "Tickets resolus sur la periode" }),
              /* @__PURE__ */ e("td", { className: "py-2", children: "≥ New Tickets" })
            ] }),
            /* @__PURE__ */ r("tr", { className: "border-b border-[var(--border-color)]", children: [
              /* @__PURE__ */ e("td", { className: "py-2 font-medium", children: "SLA Compliance" }),
              /* @__PURE__ */ e("td", { className: "py-2 text-[var(--text-secondary)]", children: "Pourcentage de tickets dans les delais" }),
              /* @__PURE__ */ e("td", { className: "py-2", children: "≥ 90%" })
            ] }),
            /* @__PURE__ */ r("tr", { children: [
              /* @__PURE__ */ e("td", { className: "py-2 font-medium", children: "Avg. Satisfaction" }),
              /* @__PURE__ */ e("td", { className: "py-2 text-[var(--text-secondary)]", children: "Note moyenne des utilisateurs (1-5)" }),
              /* @__PURE__ */ e("td", { className: "py-2", children: "≥ 4.0" })
            ] })
          ] })
        ] })
      ] })
    ] }),
    /* @__PURE__ */ r("section", { id: "alerts", className: "space-y-4", children: [
      /* @__PURE__ */ r("h2", { className: "text-2xl font-bold 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" }),
        "Alertes SLA"
      ] }),
      /* @__PURE__ */ r("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-4", children: [
        /* @__PURE__ */ r("div", { className: "card p-4 border-l-4 border-[var(--error-text)]", children: [
          /* @__PURE__ */ r("h3", { className: "font-semibold text-[var(--error-text)] flex items-center gap-2 mb-3", children: [
            /* @__PURE__ */ e(y, { className: "w-5 h-5" }),
            "SLA Breached (3)"
          ] }),
          /* @__PURE__ */ r("div", { className: "space-y-2", children: [
            /* @__PURE__ */ r("div", { className: "flex items-center justify-between p-2 bg-[var(--error-bg)] rounded", children: [
              /* @__PURE__ */ r("div", { children: [
                /* @__PURE__ */ e("span", { className: "font-mono text-sm", children: "#TK-1234" }),
                /* @__PURE__ */ e("span", { className: "ml-2 text-sm", children: "Probleme critique serveur" })
              ] }),
              /* @__PURE__ */ e("span", { className: "text-xs text-[var(--error-text)] font-medium", children: "Response + Resolution" })
            ] }),
            /* @__PURE__ */ r("div", { className: "flex items-center justify-between p-2 bg-[var(--error-bg)] rounded", children: [
              /* @__PURE__ */ r("div", { children: [
                /* @__PURE__ */ e("span", { className: "font-mono text-sm", children: "#TK-1235" }),
                /* @__PURE__ */ e("span", { className: "ml-2 text-sm", children: "Bug application mobile" })
              ] }),
              /* @__PURE__ */ e("span", { className: "text-xs text-[var(--error-text)] font-medium", children: "Resolution" })
            ] })
          ] }),
          /* @__PURE__ */ e("p", { className: "text-xs text-[var(--text-secondary)] mt-3", children: "Cliquez sur un ticket pour voir les details et prendre action." })
        ] }),
        /* @__PURE__ */ r("div", { className: "card p-4 border-l-4 border-[var(--warning-text)]", children: [
          /* @__PURE__ */ r("h3", { className: "font-semibold text-[var(--warning-text)] flex items-center gap-2 mb-3", children: [
            /* @__PURE__ */ e(d, { className: "w-5 h-5" }),
            "Approaching Breach (5)"
          ] }),
          /* @__PURE__ */ r("div", { className: "space-y-2", children: [
            /* @__PURE__ */ r("div", { className: "flex items-center justify-between p-2 bg-[var(--warning-bg)] rounded", children: [
              /* @__PURE__ */ r("div", { children: [
                /* @__PURE__ */ e("span", { className: "font-mono text-sm", children: "#TK-1240" }),
                /* @__PURE__ */ e("span", { className: "ml-2 text-sm", children: "Demande de fonctionnalite" })
              ] }),
              /* @__PURE__ */ e("span", { className: "text-xs text-[var(--warning-text)] font-medium", children: "85% Response" })
            ] }),
            /* @__PURE__ */ r("div", { className: "flex items-center justify-between p-2 bg-[var(--warning-bg)] rounded", children: [
              /* @__PURE__ */ r("div", { children: [
                /* @__PURE__ */ e("span", { className: "font-mono text-sm", children: "#TK-1241" }),
                /* @__PURE__ */ e("span", { className: "ml-2 text-sm", children: "Question facturation" })
              ] }),
              /* @__PURE__ */ e("span", { className: "text-xs text-[var(--warning-text)] font-medium", children: "78% Response" })
            ] })
          ] }),
          /* @__PURE__ */ e("p", { className: "text-xs text-[var(--text-secondary)] mt-3", children: "Tickets dont le SLA depasse 75% du temps alloue." })
        ] })
      ] })
    ] }),
    /* @__PURE__ */ r("section", { id: "charts", className: "space-y-4", children: [
      /* @__PURE__ */ r("h2", { className: "text-2xl font-bold 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" }),
        "Graphiques"
      ] }),
      /* @__PURE__ */ r("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-4", children: [
        /* @__PURE__ */ r("div", { className: "card p-4", children: [
          /* @__PURE__ */ e("h3", { className: "font-semibold mb-4", children: "Tickets par Statut" }),
          /* @__PURE__ */ e("div", { className: "space-y-3", children: [
            { status: "Open", count: 45, color: "#eab308" },
            { status: "In Progress", count: 32, color: "#3b82f6" },
            { status: "On Hold", count: 12, color: "#f97316" },
            { status: "Resolved", count: 67, color: "#22c55e" },
            { status: "Closed", count: 89, color: "#6b7280" }
          ].map((t) => {
            const l = t.count / 245 * 100;
            return /* @__PURE__ */ r("div", { className: "flex items-center gap-3", children: [
              /* @__PURE__ */ e("div", { className: "w-24 text-sm", children: t.status }),
              /* @__PURE__ */ e("div", { className: "flex-1 h-6 bg-[var(--bg-secondary)] rounded-full overflow-hidden", children: /* @__PURE__ */ e(
                "div",
                {
                  className: "h-full rounded-full",
                  style: { width: `${l}%`, backgroundColor: t.color }
                }
              ) }),
              /* @__PURE__ */ e("div", { className: "w-12 text-right text-sm font-medium", children: t.count })
            ] }, t.status);
          }) })
        ] }),
        /* @__PURE__ */ r("div", { className: "card p-4", children: [
          /* @__PURE__ */ e("h3", { className: "font-semibold mb-4", children: "Tickets actifs par Priorite" }),
          /* @__PURE__ */ e("div", { className: "space-y-3", children: [
            { priority: "Critical", count: 5, color: "#dc2626" },
            { priority: "High", count: 18, color: "#f97316" },
            { priority: "Medium", count: 42, color: "#eab308" },
            { priority: "Low", count: 24, color: "#3b82f6" }
          ].map((t) => {
            const l = t.count / 89 * 100;
            return /* @__PURE__ */ r("div", { className: "flex items-center gap-3", children: [
              /* @__PURE__ */ e("div", { className: "w-24 text-sm", children: t.priority }),
              /* @__PURE__ */ e("div", { className: "flex-1 h-6 bg-[var(--bg-secondary)] rounded-full overflow-hidden", children: /* @__PURE__ */ e(
                "div",
                {
                  className: "h-full rounded-full",
                  style: { width: `${l}%`, backgroundColor: t.color }
                }
              ) }),
              /* @__PURE__ */ e("div", { className: "w-12 text-right text-sm font-medium", children: t.count })
            ] }, t.priority);
          }) })
        ] })
      ] }),
      /* @__PURE__ */ r("div", { className: "card p-4", children: [
        /* @__PURE__ */ e("h3", { className: "font-semibold mb-4", children: "Tendances (30 derniers jours)" }),
        /* @__PURE__ */ r("div", { className: "flex items-center gap-4 mb-4", children: [
          /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
            /* @__PURE__ */ e("div", { className: "w-3 h-3 rounded bg-blue-500" }),
            /* @__PURE__ */ e("span", { className: "text-sm", children: "Crees" })
          ] }),
          /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
            /* @__PURE__ */ e("div", { className: "w-3 h-3 rounded bg-green-500" }),
            /* @__PURE__ */ e("span", { className: "text-sm", children: "Resolus" })
          ] })
        ] }),
        /* @__PURE__ */ e("div", { className: "h-32 flex items-end gap-1", children: Array.from({ length: 30 }, (t, a) => /* @__PURE__ */ r("div", { className: "flex-1 flex gap-0.5", children: [
          /* @__PURE__ */ e(
            "div",
            {
              className: "flex-1 bg-blue-500 rounded-t",
              style: { height: `${o[a].blue}%` }
            }
          ),
          /* @__PURE__ */ e(
            "div",
            {
              className: "flex-1 bg-green-500 rounded-t",
              style: { height: `${o[a].green}%` }
            }
          )
        ] }, `bar-${a}`)) }),
        /* @__PURE__ */ r("div", { className: "flex justify-between text-xs text-[var(--text-secondary)] mt-2", children: [
          /* @__PURE__ */ e("span", { children: "Il y a 30 jours" }),
          /* @__PURE__ */ e("span", { children: "Aujourd'hui" })
        ] })
      ] })
    ] }),
    /* @__PURE__ */ r("section", { id: "workload", className: "space-y-4", children: [
      /* @__PURE__ */ r("h2", { className: "text-2xl font-bold 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" }),
        "Charge des agents"
      ] }),
      /* @__PURE__ */ r("div", { className: "card p-4", children: [
        /* @__PURE__ */ r("h3", { className: "font-semibold mb-4 flex items-center gap-2", children: [
          /* @__PURE__ */ e(w, { className: "w-5 h-5" }),
          "Agent Workload"
        ] }),
        /* @__PURE__ */ e("div", { className: "overflow-x-auto", children: /* @__PURE__ */ r("table", { className: "w-full text-sm", children: [
          /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ r("tr", { className: "border-b border-[var(--border-color)]", children: [
            /* @__PURE__ */ e("th", { className: "text-left p-3 font-medium", children: "Agent" }),
            /* @__PURE__ */ e("th", { className: "text-center p-3 font-medium", children: "Total" }),
            /* @__PURE__ */ e("th", { className: "text-center p-3 font-medium", children: "Open" }),
            /* @__PURE__ */ e("th", { className: "text-center p-3 font-medium", children: "In Progress" }),
            /* @__PURE__ */ e("th", { className: "text-center p-3 font-medium", children: "On Hold" }),
            /* @__PURE__ */ e("th", { className: "text-left p-3 font-medium", children: "Load" })
          ] }) }),
          /* @__PURE__ */ e("tbody", { children: m.map((t) => {
            const a = Math.max(...m.map((p) => p.total)), l = t.total / a * 100;
            return /* @__PURE__ */ r("tr", { className: "border-b border-[var(--border-color)]", children: [
              /* @__PURE__ */ r("td", { className: "p-3", children: [
                /* @__PURE__ */ e("div", { className: "font-medium", children: t.name }),
                /* @__PURE__ */ e("div", { className: "text-xs text-[var(--text-secondary)]", children: t.email })
              ] }),
              /* @__PURE__ */ e("td", { className: "text-center p-3 font-semibold", children: t.total }),
              /* @__PURE__ */ e("td", { className: "text-center p-3", children: /* @__PURE__ */ e("span", { className: "px-2 py-1 bg-[var(--warning-bg)] text-[var(--warning-text)] rounded text-xs", children: t.open }) }),
              /* @__PURE__ */ e("td", { className: "text-center p-3", children: /* @__PURE__ */ e("span", { className: "px-2 py-1 bg-[var(--dataviz-cat-1)]/10 text-[var(--dataviz-cat-1)] rounded text-xs", children: t.inProgress }) }),
              /* @__PURE__ */ e("td", { className: "text-center p-3", children: /* @__PURE__ */ e("span", { className: "px-2 py-1 bg-[var(--dataviz-cat-3)]/10 text-[var(--dataviz-cat-3)] rounded text-xs", children: t.onHold }) }),
              /* @__PURE__ */ e("td", { className: "p-3 w-32", children: /* @__PURE__ */ e("div", { className: "h-2 bg-[var(--bg-secondary)] rounded-full overflow-hidden", children: /* @__PURE__ */ e(
                "div",
                {
                  className: "h-full bg-[var(--dataviz-cat-1)] rounded-full",
                  style: { width: `${l}%` }
                }
              ) }) })
            ] }, t.email);
          }) })
        ] }) })
      ] })
    ] }),
    /* @__PURE__ */ r("section", { id: "satisfaction", className: "space-y-4", children: [
      /* @__PURE__ */ r("h2", { className: "text-2xl font-bold 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" }),
        "Satisfaction client"
      ] }),
      /* @__PURE__ */ r("div", { className: "card p-6", children: [
        /* @__PURE__ */ r("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-6", children: [
          /* @__PURE__ */ r("div", { className: "text-center p-4 bg-[var(--bg-secondary)] rounded-lg", children: [
            /* @__PURE__ */ e("div", { className: "text-4xl font-bold text-[var(--success-text)]", children: "4.2" }),
            /* @__PURE__ */ e("div", { className: "text-sm text-[var(--text-secondary)]", children: "Note moyenne" }),
            /* @__PURE__ */ e("div", { className: "flex justify-center mt-2", children: [1, 2, 3, 4, 5].map((t) => /* @__PURE__ */ e(
              n,
              {
                className: `w-5 h-5 ${t <= 4 ? "text-[var(--warning-text)] fill-[var(--warning-text)]" : "text-[var(--text-muted)]"}`
              },
              t
            )) })
          ] }),
          /* @__PURE__ */ r("div", { className: "text-center p-4 bg-[var(--bg-secondary)] rounded-lg", children: [
            /* @__PURE__ */ e("div", { className: "text-4xl font-bold", children: "156" }),
            /* @__PURE__ */ e("div", { className: "text-sm text-[var(--text-secondary)]", children: "Reponses totales" })
          ] })
        ] }),
        /* @__PURE__ */ r("div", { className: "mt-6", children: [
          /* @__PURE__ */ e("h4", { className: "font-medium mb-3", children: "Distribution des notes" }),
          /* @__PURE__ */ e("div", { className: "space-y-2", children: [
            { rating: 5, count: 78 },
            { rating: 4, count: 45 },
            { rating: 3, count: 20 },
            { rating: 2, count: 8 },
            { rating: 1, count: 5 }
          ].map((t) => {
            const a = t.count / 156 * 100;
            return /* @__PURE__ */ r("div", { className: "flex items-center gap-2 text-sm", children: [
              /* @__PURE__ */ e("span", { className: "w-4", children: t.rating }),
              /* @__PURE__ */ e(n, { className: "w-3 h-3 text-[var(--warning-text)] fill-[var(--warning-text)]" }),
              /* @__PURE__ */ e("div", { className: "flex-1 h-3 bg-[var(--bg-secondary)] rounded-full overflow-hidden", children: /* @__PURE__ */ e(
                "div",
                {
                  className: "h-full bg-[var(--warning-text)] rounded-full",
                  style: { width: `${a}%` }
                }
              ) }),
              /* @__PURE__ */ e("span", { className: "w-8 text-right text-xs", children: t.count })
            ] }, t.rating);
          }) })
        ] })
      ] })
    ] }),
    /* @__PURE__ */ r("div", { className: "p-4 rounded-lg bg-[var(--info-bg)] border border-[var(--info-border)] flex items-start gap-3", children: [
      /* @__PURE__ */ e(k, { className: "w-5 h-5 text-[var(--info-text)] flex-shrink-0 mt-0.5" }),
      /* @__PURE__ */ r("div", { children: [
        /* @__PURE__ */ e("div", { className: "font-medium text-[var(--info-text)]", children: "Conseils d'utilisation" }),
        /* @__PURE__ */ r("ul", { className: "text-sm text-[var(--text-secondary)] mt-1 space-y-1", children: [
          /* @__PURE__ */ e("li", { children: "Consultez le dashboard en debut de journee pour prioriser les actions" }),
          /* @__PURE__ */ e("li", { children: "Surveillez les alertes SLA pour eviter les depassements" }),
          /* @__PURE__ */ e("li", { children: "Equilibrez la charge entre les agents pour optimiser le traitement" }),
          /* @__PURE__ */ e("li", { children: "Analysez les tendances pour anticiper les pics de demande" })
        ] })
      ] })
    ] }),
    /* @__PURE__ */ r("div", { className: "flex justify-between pt-6 border-t border-[var(--border-color)]", children: [
      /* @__PURE__ */ r(
        c,
        {
          to: "/system/docs/user/support",
          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 rotate-180" }),
            s("support.dashboard.nav.supportIndex")
          ]
        }
      ),
      /* @__PURE__ */ r(
        c,
        {
          to: "/system/docs/user/support-tickets",
          className: "flex items-center gap-2 text-[var(--color-primary-600)] hover:underline",
          children: [
            s("support.dashboard.nav.nextTickets"),
            /* @__PURE__ */ e(i, { className: "w-4 h-4" })
          ]
        }
      )
    ] })
  ] });
}
export {
  z as SupportDashboardDocPage
};
//# sourceMappingURL=SupportDashboardDocPage-DnP32amN.js.map
