import { jsx as e, jsxs as c } from "react/jsx-runtime";
import { Inbox as u } from "lucide-react";
function h({
  message: l,
  hint: a,
  icon: r,
  variant: n = "full",
  id: t
}) {
  return n === "compact" ? /* @__PURE__ */ e(
    "div",
    {
      id: t,
      role: "status",
      "aria-live": "polite",
      className: "flex items-center justify-center w-full h-full px-4 py-6 text-sm text-[var(--text-secondary)]",
      children: l
    }
  ) : /* @__PURE__ */ c(
    "div",
    {
      id: t,
      role: "status",
      "aria-live": "polite",
      className: "flex flex-col items-center justify-center w-full h-full px-4 py-8 gap-3 text-center",
      children: [
        /* @__PURE__ */ e("span", { className: "text-[var(--text-tertiary)]", "aria-hidden": "true", children: r ?? /* @__PURE__ */ e(u, { className: "w-10 h-10" }) }),
        /* @__PURE__ */ e("p", { className: "text-sm font-medium text-[var(--text-secondary)]", children: l }),
        a && /* @__PURE__ */ e("p", { className: "text-xs text-[var(--text-tertiary)]", children: a })
      ]
    }
  );
}
function v({
  active: l,
  payload: a,
  label: r,
  labelFormatter: n,
  valueFormatter: t
}) {
  if (!l || !a || a.length === 0) return null;
  const d = r == null ? void 0 : n ? n(r) : String(r);
  return /* @__PURE__ */ c(
    "div",
    {
      className: "rounded-[var(--radius-card)] border px-3 py-2 min-w-[160px]",
      style: {
        backgroundColor: "var(--dataviz-surface)",
        borderColor: "var(--border-color)",
        boxShadow: "var(--shadow-md)"
      },
      role: "tooltip",
      children: [
        d !== void 0 && /* @__PURE__ */ e("div", { className: "text-xs font-medium mb-1 text-[var(--text-secondary)]", children: d }),
        /* @__PURE__ */ e("ul", { className: "flex flex-col gap-1", children: a.map((o, x) => {
          const i = String(o.name ?? o.dataKey ?? ""), s = o.value ?? "", m = typeof s == "number" && t || t ? t(s, i) : typeof s == "number" ? s.toLocaleString() : String(s);
          return /* @__PURE__ */ c(
            "li",
            {
              className: "flex items-center gap-2 text-xs",
              children: [
                /* @__PURE__ */ e(
                  "span",
                  {
                    className: "inline-block w-2.5 h-2.5 rounded-full flex-shrink-0",
                    style: { backgroundColor: o.color ?? "var(--dataviz-accent)" },
                    "aria-hidden": "true"
                  }
                ),
                /* @__PURE__ */ e("span", { className: "text-[var(--text-secondary)] flex-1 truncate", children: i }),
                /* @__PURE__ */ e("span", { className: "text-[var(--text-primary)] font-medium tabular-nums", children: m })
              ]
            },
            `${i}-${x}`
          );
        }) })
      ]
    }
  );
}
const N = {
  sm: 280,
  md: 320,
  lg: 400
}, y = { top: 8, right: 24, left: 8, bottom: 8 }, b = {
  inner: 70,
  outer: 110
};
export {
  y as C,
  h as N,
  b as P,
  v as a,
  N as b
};
//# sourceMappingURL=chartConstants-Ds00dPgh.js.map
