chordia-ui 3.9.0 → 3.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/DataTable2.cjs.js +1 -1
  2. package/dist/DataTable2.cjs.js.map +1 -1
  3. package/dist/DataTable2.es.js +611 -604
  4. package/dist/DataTable2.es.js.map +1 -1
  5. package/dist/PerformancePanel.cjs.js +1 -1
  6. package/dist/PerformancePanel.cjs.js.map +1 -1
  7. package/dist/PerformancePanel.es.js +1068 -816
  8. package/dist/PerformancePanel.es.js.map +1 -1
  9. package/dist/SupervisorSelect.cjs.js +2 -0
  10. package/dist/SupervisorSelect.cjs.js.map +1 -0
  11. package/dist/SupervisorSelect.es.js +352 -0
  12. package/dist/SupervisorSelect.es.js.map +1 -0
  13. package/dist/components/Signals.cjs.js +1 -1
  14. package/dist/components/Signals.cjs.js.map +1 -1
  15. package/dist/components/Signals.es.js +273 -318
  16. package/dist/components/Signals.es.js.map +1 -1
  17. package/dist/components/UpdatedInteractionDetails.cjs.js +3 -3
  18. package/dist/components/UpdatedInteractionDetails.cjs.js.map +1 -1
  19. package/dist/components/UpdatedInteractionDetails.es.js +98 -92
  20. package/dist/components/UpdatedInteractionDetails.es.js.map +1 -1
  21. package/dist/components/performance.cjs.js +1 -1
  22. package/dist/components/performance.cjs.js.map +1 -1
  23. package/dist/components/performance.es.js +116 -349
  24. package/dist/components/performance.es.js.map +1 -1
  25. package/dist/components/reports.cjs.js +2 -2
  26. package/dist/components/reports.cjs.js.map +1 -1
  27. package/dist/components/reports.es.js +122 -141
  28. package/dist/components/reports.es.js.map +1 -1
  29. package/dist/index.cjs.js +1 -1
  30. package/dist/index.es.js +1 -1
  31. package/dist/pages/interactionDetails.cjs.js +2 -2
  32. package/dist/pages/interactionDetails.cjs.js.map +1 -1
  33. package/dist/pages/interactionDetails.es.js +130 -124
  34. package/dist/pages/interactionDetails.es.js.map +1 -1
  35. package/package.json +1 -1
  36. package/src/components/Signals/SignalDetailsPage.jsx +2 -29
  37. package/src/components/Signals/SignalsListPage.jsx +2 -24
  38. package/src/components/UpdatedInteractionDetails/UpdatedCoachingSynthesisCard.jsx +8 -1
  39. package/src/components/data/DataTable2.jsx +19 -5
  40. package/src/components/pages/interactionDetails/CoachingSynthesisCard.jsx +8 -1
  41. package/src/components/performance/PerformanceDetailsPage.jsx +230 -75
  42. package/src/components/performance/PerformancePanel.jsx +42 -45
  43. package/src/components/performance/index.js +27 -0
  44. package/src/components/performance/performanceApiMap.js +133 -0
  45. package/src/components/performance/performanceMetrics.js +63 -0
  46. package/src/components/performance/performanceRangeFormat.js +92 -0
  47. package/src/components/performance/performanceSparkline.js +52 -0
  48. package/src/components/reports/ReportsList.jsx +2 -25
@@ -1,9 +1,118 @@
1
- import { jsxs as i, jsx as e, Fragment as _e } from "react/jsx-runtime";
1
+ import { jsxs as l, jsx as e, Fragment as Je } from "react/jsx-runtime";
2
2
  import S from "react";
3
- import { createPortal as tt } from "react-dom";
4
- import { ArrowLeft as it, Download as Be, CalendarDays as ge, ArrowRight as ve, Phone as de, ShieldCheck as je, Lightbulb as Ne, FolderKanban as Ee, Layers as Ye, TrendingUp as Ue, ChevronDown as De, Check as nt, Signal as lt, ChevronLeft as rt, ChevronRight as ot } from "lucide-react";
5
- import { D as Xe } from "./DataTable2.es.js";
6
- const r = {
3
+ import { createPortal as vt } from "react-dom";
4
+ import { ArrowLeft as kt, Download as Ze, CalendarDays as ve, ArrowRight as Ee, Phone as ye, ShieldCheck as qe, Lightbulb as Qe, FolderKanban as et, Layers as tt, ChevronDown as We, TrendingDown as wt, TrendingUp as nt, Check as St, Signal as Dt, ChevronLeft as Lt, ChevronRight as zt } from "lucide-react";
5
+ import { D as it } from "./DataTable2.es.js";
6
+ const Te = {
7
+ "8h": 8 * 60 * 60 * 1e3,
8
+ "1d": 24 * 60 * 60 * 1e3,
9
+ "7d": 7 * 24 * 60 * 60 * 1e3,
10
+ "30d": 30 * 24 * 60 * 60 * 1e3
11
+ }, lt = "en-US", Ft = { month: "2-digit", day: "2-digit", year: "numeric" }, Wt = { hour: "numeric", minute: "2-digit", hour12: !0 };
12
+ function me(t) {
13
+ if (!t)
14
+ return null;
15
+ if (t instanceof Date)
16
+ return Number.isNaN(t.getTime()) ? null : t;
17
+ const n = String(t).trim(), i = n.match(/^(\d{4})-(\d{1,2})-(\d{1,2})/);
18
+ if (i) {
19
+ const s = new Date(Number(i[1]), Number(i[2]) - 1, Number(i[3]));
20
+ return Number.isNaN(s.getTime()) ? null : s;
21
+ }
22
+ const o = new Date(n);
23
+ return Number.isNaN(o.getTime()) ? null : o;
24
+ }
25
+ function rt(t, n) {
26
+ return t.getFullYear() === n.getFullYear() && t.getMonth() === n.getMonth() && t.getDate() === n.getDate();
27
+ }
28
+ function ee(t) {
29
+ const n = t instanceof Date ? t : me(t);
30
+ return n ? n.toLocaleDateString(lt, Ft) : "";
31
+ }
32
+ function $e(t) {
33
+ return t.toLocaleTimeString(lt, Wt);
34
+ }
35
+ function oe(t) {
36
+ return `${ee(t)} ${$e(t)}`;
37
+ }
38
+ function Tt(t, n) {
39
+ const i = me(t), o = me(n);
40
+ return !i || !o ? "" : rt(i, o) ? `${oe(i)} – ${$e(o)}` : `${oe(i)} – ${oe(o)}`;
41
+ }
42
+ function $t(t, n) {
43
+ const i = me(t), o = me(n);
44
+ return !i || !o ? null : rt(i, o) ? { from: oe(i), to: $e(o) } : { from: oe(i), to: oe(o) };
45
+ }
46
+ function Fe(t) {
47
+ const n = Te[t];
48
+ if (!n)
49
+ return null;
50
+ const i = /* @__PURE__ */ new Date();
51
+ return { from: new Date(i.getTime() - n), to: i };
52
+ }
53
+ function It(t) {
54
+ if (!Te[t])
55
+ return "";
56
+ const i = Fe(t);
57
+ return i ? t === "8h" ? Tt(i.from, i.to) : `${ee(i.from)} – ${ee(i.to)}` : "";
58
+ }
59
+ const ot = "M1.00049 13.5213C7.85975 11.7032 8.88149 4.73912 13.7838 4.73912C19.8344 4.73912 23.6237 17.166 29.1281 17.166C34.5998 17.166 37.4149 4.88121 43.4004 8.61051C47.9764 11.4616 50.6186 1.00024 50.6186 1.00024", at = "M1.00049 16.692C8.88149 15.6975 8.88149 7.79403 13.7838 7.79403C19.8344 7.79403 23.6237 21.4034 29.1281 21.4034C34.5998 21.4034 37.4149 8.93821 43.4004 12.7223C47.9764 15.6152 50.6186 5.00024 50.6186 5.00024V36.0002C50.6186 36.0002 10.8223 36.0002 1.00049 36.0002C1.00049 28.8653 1.00049 19.4871 1.00049 16.692Z";
60
+ function Ie(t) {
61
+ if (!Array.isArray(t))
62
+ return null;
63
+ const n = t.map((i) => Array.isArray(i) ? Number(i[1]) : i == null || i === "" ? NaN : Number(i)).filter((i) => Number.isFinite(i));
64
+ return n.length >= 2 ? n : null;
65
+ }
66
+ function st(t, n = 52, i = 36) {
67
+ const o = Ie(t);
68
+ if (!o)
69
+ return null;
70
+ const s = Math.min(...o), d = Math.max(...o), c = 4, u = d - s || 1, F = i - c * 2 - 4, y = (L) => (o.length === 1 ? 0 : L / (o.length - 1) * (n - 2)) + 1, m = (L) => c + (1 - (L - s) / u) * F;
71
+ let b = "";
72
+ for (let L = 0; L < o.length; L++)
73
+ b += `${L === 0 ? "M" : "L"}${y(L).toFixed(2)},${m(o[L]).toFixed(2)}`;
74
+ const k = y(o.length - 1), D = y(0), $ = `${b} L${k.toFixed(2)},${i} L${D.toFixed(2)},${i} Z`;
75
+ return { line: b, area: $ };
76
+ }
77
+ function Ce(t) {
78
+ const n = Ie(t);
79
+ if (!n)
80
+ return null;
81
+ const i = n[0], o = n[n.length - 1];
82
+ return o > i ? "up" : o < i ? "down" : "up";
83
+ }
84
+ const dt = "—";
85
+ function Ae(t) {
86
+ if (t == null)
87
+ return !0;
88
+ const n = String(t).trim();
89
+ return !!(!n || /^[-−–—]$/.test(n) || /^(n\/a|null|undefined)$/i.test(n));
90
+ }
91
+ function ke(t) {
92
+ return !Ae(t);
93
+ }
94
+ function ct(t, n = dt) {
95
+ return Ae(t) ? n : String(t);
96
+ }
97
+ function Oe(t) {
98
+ return t != null && String(t).trim() !== "";
99
+ }
100
+ function V(t) {
101
+ return t ? Oe(t.value) || Oe(t.delta) ? !0 : Array.isArray(t.points) && t.points.length > 0 : !1;
102
+ }
103
+ function Ct(t) {
104
+ if (Ae(t))
105
+ return null;
106
+ const n = String(t).trim(), i = n.match(/\(\s*([+-])?\s*([\d.]+)/);
107
+ return i ? i[1] === "-" ? "down" : i[1] === "+" ? "up" : parseFloat(i[2]) < 0 ? "down" : "up" : /^[-−]/.test(n) ? "down" : /^\+/.test(n) ? "up" : /-\d/.test(n) ? "down" : null;
108
+ }
109
+ function Me(t, n) {
110
+ return Ct(n) ?? (t === "down" ? "down" : "up");
111
+ }
112
+ function At(t, n, i) {
113
+ return Ce(i) ?? (ke(n) ? Me(t, n) : t === "down" ? "down" : "up");
114
+ }
115
+ const a = {
7
116
  ink: "var(--color-text)",
8
117
  muted: "var(--color-text-secondary)",
9
118
  border: "var(--grey-absent)",
@@ -24,50 +133,69 @@ const r = {
24
133
  // Section accent colors are passed to SectionHeading via `iconColor`.
25
134
  railCompliance: "var(--rail-compliance)",
26
135
  accentYellow: "var(--accent-yellow)"
27
- }, V = "var(--font-sans, 'Averta', ui-sans-serif, system-ui, sans-serif)", C = "var(--font-sans, 'Averta', ui-sans-serif, system-ui, sans-serif)";
28
- function $e(t) {
136
+ }, te = "var(--font-sans, 'Averta', ui-sans-serif, system-ui, sans-serif)", W = "var(--font-sans, 'Averta', ui-sans-serif, system-ui, sans-serif)";
137
+ function ut({ direction: t = "up", color: n = a.muted }) {
138
+ return /* @__PURE__ */ e("svg", { width: 18, height: 9.5, viewBox: "0 0 19 10", fill: "none", style: { flexShrink: 0 }, children: /* @__PURE__ */ e(
139
+ "path",
140
+ {
141
+ d: t === "up" ? "M12.4167 0.75H17.4167M17.4167 0.75V5.75M17.4167 0.75L10.3333 7.83333L6.16667 3.66667L0.75 9.08333" : "M12.4167 9.25H17.4167M17.4167 9.25V4.25M17.4167 9.25L10.3333 2.16667L6.16667 6.33333L0.75 0.91667",
142
+ stroke: n,
143
+ strokeWidth: "1.5",
144
+ strokeLinecap: "round",
145
+ strokeLinejoin: "round"
146
+ }
147
+ ) });
148
+ }
149
+ function _e(t) {
29
150
  if (!t)
30
151
  return "";
31
- const l = { month: "2-digit", day: "2-digit", year: "numeric" };
152
+ const n = { month: "2-digit", day: "2-digit", year: "numeric" };
32
153
  if (t instanceof Date)
33
- return Number.isNaN(t.getTime()) ? "" : t.toLocaleDateString("en-US", l);
34
- const a = String(t).trim(), o = a.match(/^(\d{4})-(\d{1,2})-(\d{1,2})/);
154
+ return Number.isNaN(t.getTime()) ? "" : t.toLocaleDateString("en-US", n);
155
+ const i = String(t).trim(), o = i.match(/^(\d{4})-(\d{1,2})-(\d{1,2})/);
35
156
  if (o)
36
- return new Date(Number(o[1]), Number(o[2]) - 1, Number(o[3])).toLocaleDateString("en-US", l);
37
- const d = new Date(a);
38
- return Number.isNaN(d.getTime()) ? a : d.toLocaleDateString("en-US", l);
157
+ return new Date(Number(o[1]), Number(o[2]) - 1, Number(o[3])).toLocaleDateString("en-US", n);
158
+ const s = new Date(i);
159
+ return Number.isNaN(s.getTime()) ? i : s.toLocaleDateString("en-US", n);
39
160
  }
40
- const at = "M1.00049 13.5213C7.85975 11.7032 8.88149 4.73912 13.7838 4.73912C19.8344 4.73912 23.6237 17.166 29.1281 17.166C34.5998 17.166 37.4149 4.88121 43.4004 8.61051C47.9764 11.4616 50.6186 1.00024 50.6186 1.00024", st = "M1.00049 16.692C8.88149 15.6975 8.88149 7.79403 13.7838 7.79403C19.8344 7.79403 23.6237 21.4034 29.1281 21.4034C34.5998 21.4034 37.4149 8.93821 43.4004 12.7223C47.9764 15.6152 50.6186 5.00024 50.6186 5.00024V36.0002C50.6186 36.0002 10.8223 36.0002 1.00049 36.0002C1.00049 28.8653 1.00049 19.4871 1.00049 16.692Z";
41
- function dt(t, l = 52, a = 36) {
42
- if (!Array.isArray(t))
43
- return null;
44
- const o = t.map((k) => Number(k)).filter((k) => Number.isFinite(k));
45
- if (o.length < 2)
46
- return null;
47
- const d = Math.min(...o), s = Math.max(...o), p = 4, h = s - d || 1, v = a - p * 2 - 4, u = (k) => (o.length === 1 ? 0 : k / (o.length - 1) * (l - 2)) + 1, g = (k) => p + (1 - (k - d) / h) * v;
48
- let x = "";
49
- for (let k = 0; k < o.length; k++)
50
- x += `${k === 0 ? "M" : "L"}${u(k).toFixed(2)},${g(o[k]).toFixed(2)}`;
51
- const m = u(o.length - 1), z = u(0), O = `${x} L${m.toFixed(2)},${a} L${z.toFixed(2)},${a} Z`;
52
- return { line: x, area: O };
53
- }
54
- function ct({ trend: t = "up", points: l, width: a = 49.618, height: o = 35 }) {
55
- const d = S.useId(), s = dt(l), p = s ? s.line : at, h = s ? s.area : st;
56
- return /* @__PURE__ */ i(
161
+ function Mt({ trend: t = "up", points: n, empty: i = !1, width: o = 49.618, height: s = 35 }) {
162
+ const d = S.useId();
163
+ if (i)
164
+ return /* @__PURE__ */ e(
165
+ "svg",
166
+ {
167
+ width: o,
168
+ height: s,
169
+ viewBox: "0 0 52 36",
170
+ fill: "none",
171
+ style: { flexShrink: 0 },
172
+ children: /* @__PURE__ */ e(
173
+ "path",
174
+ {
175
+ d: "M2,18 L50,18",
176
+ stroke: a.ink,
177
+ strokeWidth: "2",
178
+ strokeLinecap: "round"
179
+ }
180
+ )
181
+ }
182
+ );
183
+ const c = st(n), u = c ? c.line : ot, F = c ? c.area : at;
184
+ return /* @__PURE__ */ l(
57
185
  "svg",
58
186
  {
59
- width: a,
60
- height: o,
187
+ width: o,
188
+ height: s,
61
189
  viewBox: "0 0 52 36",
62
190
  fill: "none",
63
191
  style: {
64
192
  flexShrink: 0,
65
193
  // Only mirror the canned curve. When real points are supplied the
66
194
  // shape already reflects direction, so no mirror needed.
67
- transform: !s && t === "down" ? "scaleX(-1)" : void 0
195
+ transform: !c && t === "down" ? "scaleX(-1)" : void 0
68
196
  },
69
197
  children: [
70
- /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ i(
198
+ /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ l(
71
199
  "linearGradient",
72
200
  {
73
201
  id: `spark-${d}`,
@@ -77,15 +205,15 @@ function ct({ trend: t = "up", points: l, width: a = 49.618, height: o = 35 }) {
77
205
  y2: "36.0002",
78
206
  gradientUnits: "userSpaceOnUse",
79
207
  children: [
80
- /* @__PURE__ */ e("stop", { stopColor: r.ink }),
81
- /* @__PURE__ */ e("stop", { offset: "1", stopColor: r.white, stopOpacity: "0.01" })
208
+ /* @__PURE__ */ e("stop", { stopColor: a.ink }),
209
+ /* @__PURE__ */ e("stop", { offset: "1", stopColor: a.white, stopOpacity: "0.01" })
82
210
  ]
83
211
  }
84
212
  ) }),
85
213
  /* @__PURE__ */ e(
86
214
  "path",
87
215
  {
88
- d: h,
216
+ d: F,
89
217
  fill: `url(#spark-${d})`,
90
218
  fillRule: "evenodd",
91
219
  clipRule: "evenodd",
@@ -95,71 +223,87 @@ function ct({ trend: t = "up", points: l, width: a = 49.618, height: o = 35 }) {
95
223
  /* @__PURE__ */ e(
96
224
  "path",
97
225
  {
98
- d: p,
99
- stroke: r.ink,
226
+ d: u,
227
+ stroke: a.ink,
100
228
  strokeWidth: "2",
101
229
  fill: "none",
102
230
  strokeLinecap: "round",
103
231
  strokeLinejoin: "round",
104
- strokeDasharray: !s && t === "down" ? "2 4" : void 0
232
+ strokeDasharray: !c && t === "down" ? "2 4" : void 0
105
233
  }
106
234
  )
107
235
  ]
108
236
  }
109
237
  );
110
238
  }
111
- function ke({ value: t, label: l, sub: a, trend: o = "up", points: d }) {
112
- return /* @__PURE__ */ i(
239
+ function Ht({ value: t, label: n, sub: i, trend: o = "up", points: s }) {
240
+ const d = ct(t), c = ke(t) || Ie(s) != null, u = At(o, t, s);
241
+ return /* @__PURE__ */ l(
113
242
  "div",
114
243
  {
115
244
  style: {
116
- flex: 1,
117
245
  display: "flex",
118
246
  alignItems: "center",
247
+ justifyContent: "center",
119
248
  gap: 16,
120
249
  minWidth: 0
121
250
  },
122
251
  children: [
123
- /* @__PURE__ */ e(ct, { trend: o, points: d }),
124
- /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: 6, minWidth: 0 }, children: [
252
+ /* @__PURE__ */ l(
253
+ "div",
254
+ {
255
+ style: {
256
+ display: "flex",
257
+ flexDirection: "column",
258
+ gap: 4,
259
+ flexShrink: 0,
260
+ alignItems: "flex-end"
261
+ },
262
+ children: [
263
+ /* @__PURE__ */ e(Mt, { trend: u, points: s, empty: !c }),
264
+ c ? /* @__PURE__ */ e(ut, { direction: u }) : null
265
+ ]
266
+ }
267
+ ),
268
+ /* @__PURE__ */ l("div", { style: { display: "flex", flexDirection: "column", gap: 6, minWidth: 0 }, children: [
125
269
  /* @__PURE__ */ e(
126
270
  "div",
127
271
  {
128
272
  style: {
129
- fontFamily: V,
273
+ fontFamily: te,
130
274
  fontSize: 28,
131
275
  fontWeight: 400,
132
276
  lineHeight: "1.2",
133
- color: r.muted,
277
+ color: a.muted,
134
278
  letterSpacing: "-0.01em",
135
279
  whiteSpace: "nowrap"
136
280
  },
137
- children: t
281
+ children: d
138
282
  }
139
283
  ),
140
- /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: 2 }, children: [
284
+ /* @__PURE__ */ l("div", { style: { display: "flex", flexDirection: "column", gap: 2 }, children: [
141
285
  /* @__PURE__ */ e(
142
286
  "span",
143
287
  {
144
288
  style: {
145
- fontFamily: C,
289
+ fontFamily: W,
146
290
  fontSize: 13,
147
- color: r.ink,
291
+ color: a.ink,
148
292
  lineHeight: "1.2"
149
293
  },
150
- children: l
294
+ children: n
151
295
  }
152
296
  ),
153
297
  /* @__PURE__ */ e(
154
298
  "span",
155
299
  {
156
300
  style: {
157
- fontFamily: C,
301
+ fontFamily: W,
158
302
  fontSize: 13,
159
- color: r.neutral600,
303
+ color: a.neutral600,
160
304
  lineHeight: "1.2"
161
305
  },
162
- children: a
306
+ children: i
163
307
  }
164
308
  )
165
309
  ] })
@@ -168,21 +312,21 @@ function ke({ value: t, label: l, sub: a, trend: o = "up", points: d }) {
168
312
  }
169
313
  );
170
314
  }
171
- function pt({ label: t, active: l = !1, onClick: a }) {
315
+ function Pt({ label: t, active: n = !1, onClick: i }) {
172
316
  return /* @__PURE__ */ e(
173
317
  "button",
174
318
  {
175
319
  type: "button",
176
- onClick: a,
320
+ onClick: i,
177
321
  style: {
178
322
  height: 32,
179
323
  minWidth: 31,
180
324
  padding: "0 12px",
181
325
  borderRadius: 10,
182
- border: l ? "none" : `1px solid ${r.borderSubtle}`,
183
- background: l ? r.black : r.white,
184
- color: l ? r.white : r.black,
185
- fontFamily: C,
326
+ border: n ? "none" : `1px solid ${a.borderSubtle}`,
327
+ background: n ? a.black : a.white,
328
+ color: n ? a.white : a.black,
329
+ fontFamily: W,
186
330
  fontSize: 14,
187
331
  cursor: "pointer"
188
332
  },
@@ -190,54 +334,60 @@ function pt({ label: t, active: l = !1, onClick: a }) {
190
334
  }
191
335
  );
192
336
  }
193
- function re({
337
+ function ue({
194
338
  // When omitted, y-axis labels are auto-derived from `points` (5 evenly-spaced
195
339
  // ticks from max → min). Pass a custom array to override the formatting.
196
340
  yLabels: t,
197
- xLabels: l = [],
341
+ xLabels: n = [],
198
342
  // points: array of [x, y] pairs OR array of y-numbers (auto-distributed in x).
199
343
  // y is in DATA space — the chart auto-scales it to pixel space using the
200
344
  // points' own min/max (with a small padding).
201
- points: a,
345
+ points: i,
202
346
  // index of the marker to render filled (defaults to the last point)
203
347
  highlightIndex: o
204
348
  }) {
205
- const p = Array.isArray(a) && a.length > 0, h = S.useId(), v = 6, u = Array.isArray(l) ? l : [], g = u.length <= v ? u : Array.from(
206
- { length: v },
207
- (y, w) => u[Math.round(w * (u.length - 1) / (v - 1))]
208
- ), x = Math.max(2, g.length || v), m = Array.from({ length: x }, (y, w) => w / (x - 1) * 460);
209
- if (!p)
210
- return /* @__PURE__ */ i("div", { style: { display: "flex", gap: 8, height: 133, width: "100%" }, children: [
349
+ const [s, d] = S.useState(null), c = 460, u = 110, F = Array.isArray(i) && i.length > 0, y = S.useId(), m = 6, b = Array.isArray(n) ? n : [], k = b.length <= m ? b : Array.from(
350
+ { length: m },
351
+ (p, g) => b[Math.round(g * (b.length - 1) / (m - 1))]
352
+ ), D = Math.max(2, k.length || m), $ = Array.from({ length: D }, (p, g) => g / (D - 1) * c);
353
+ if (!F)
354
+ return /* @__PURE__ */ l("div", { style: { display: "flex", gap: 8, height: 133, width: "100%" }, children: [
211
355
  /* @__PURE__ */ e("div", { style: { width: 24, flexShrink: 0 } }),
212
356
  /* @__PURE__ */ e("div", { style: { flex: 1, position: "relative", minWidth: 0 }, children: /* @__PURE__ */ e(
213
357
  "svg",
214
358
  {
215
359
  width: "100%",
216
- height: 110 + 14,
217
- viewBox: `0 0 460 ${110 + 14}`,
360
+ height: u + 14,
361
+ viewBox: `0 0 ${c} ${u + 14}`,
218
362
  preserveAspectRatio: "none",
219
- children: m.map((y, w) => /* @__PURE__ */ e(
363
+ children: $.map((p, g) => /* @__PURE__ */ e(
220
364
  "line",
221
365
  {
222
- x1: y,
366
+ x1: p,
223
367
  y1: "0",
224
- x2: y,
225
- y2: 110,
226
- stroke: r.borderSubtle,
368
+ x2: p,
369
+ y2: u,
370
+ stroke: a.borderSubtle,
227
371
  strokeDasharray: "2 3",
228
372
  strokeWidth: "1",
229
373
  vectorEffect: "non-scaling-stroke"
230
374
  },
231
- `grid-${w}`
375
+ `grid-${g}`
232
376
  ))
233
377
  }
234
378
  ) })
235
379
  ] });
236
- const z = Array.isArray(a[0]) ? a : a.map((y, w) => [w, y]), O = z.map(([, y]) => y), k = Math.min(...O), N = Math.max(...O), _ = N === k ? Math.max(Math.abs(N) * 0.1, 1) : (N - k) * 0.1, E = k - _, B = N + _, U = B - E || 1, X = (y) => (B - y) / U * 110, L = z.map(([y, w]) => [y, X(w)]), f = t && t.length ? t : Array.from({ length: 5 }, (y, w) => {
237
- const H = B - w / 4 * (B - E), $ = Math.abs(H), ee = $ >= 100 ? 0 : $ >= 10 ? 1 : 2;
238
- return H.toFixed(ee);
239
- }), F = L[0][0], j = L[L.length - 1][0] - F || 1, T = (y) => (y - F) / j * 460, P = L.map(([y, w], H) => `${H === 0 ? "M" : "L"}${T(y)},${w}`).join(" "), q = `${P} L${T(L[L.length - 1][0])},110 L${T(L[0][0])},110 Z`, Q = o ?? L.length - 1;
240
- return /* @__PURE__ */ i("div", { style: { display: "flex", gap: 8, height: 133, width: "100%" }, children: [
380
+ const L = Array.isArray(i[0]) ? i : i.map((p, g) => [g, p]), Y = L.map(([, p]) => p), M = Math.min(...Y), E = Math.max(...Y), X = E === M ? Math.max(Math.abs(E) * 0.1, 1) : (E - M) * 0.1, G = M - X, O = E + X, Z = O - G || 1, h = (p) => (O - p) / Z * u, v = L.map(([p, g]) => [p, h(g)]), I = t && t.length ? t : Array.from({ length: 5 }, (p, g) => {
381
+ const T = O - g / 4 * (O - G), P = Math.abs(T), C = P >= 100 ? 0 : P >= 10 ? 1 : 2;
382
+ return T.toFixed(C);
383
+ }), H = v[0][0], _ = v[v.length - 1][0] - H || 1, ie = 8, ae = Math.max(1, c - ie * 2), J = (p) => ie + (p - H) / _ * ae, q = (p) => {
384
+ const g = Number(p);
385
+ if (!Number.isFinite(g))
386
+ return String(p ?? "");
387
+ const T = Math.abs(g), P = T >= 100 ? 0 : T >= 10 ? 1 : 2;
388
+ return g.toFixed(P);
389
+ }, Q = v.map(([p, g], T) => `${T === 0 ? "M" : "L"}${J(p)},${g}`).join(" "), j = `${Q} L${J(v[v.length - 1][0])},${u} L${J(v[0][0])},${u} Z`, se = o ?? v.length - 1;
390
+ return /* @__PURE__ */ l("div", { style: { display: "flex", gap: 8, height: 133, width: "100%" }, children: [
241
391
  /* @__PURE__ */ e(
242
392
  "div",
243
393
  {
@@ -246,47 +396,91 @@ function re({
246
396
  flexDirection: "column",
247
397
  justifyContent: "space-between",
248
398
  padding: "14px 0",
249
- fontFamily: C,
399
+ fontFamily: W,
250
400
  fontSize: 10,
251
- color: r.neutral800,
401
+ color: a.neutral800,
252
402
  flexShrink: 0
253
403
  },
254
- children: f.map((y) => /* @__PURE__ */ e("span", { children: y }, y))
404
+ children: I.map((p) => /* @__PURE__ */ e("span", { children: p }, p))
255
405
  }
256
406
  ),
257
- /* @__PURE__ */ i("div", { style: { flex: 1, position: "relative", minWidth: 0 }, children: [
258
- /* @__PURE__ */ i(
407
+ /* @__PURE__ */ l("div", { style: { flex: 1, position: "relative", minWidth: 0 }, children: [
408
+ s && /* @__PURE__ */ l(
409
+ "div",
410
+ {
411
+ style: {
412
+ position: "absolute",
413
+ left: `${s.xPct}%`,
414
+ top: `${s.yPct}%`,
415
+ transform: "translate(-50%, calc(-100% - 10px))",
416
+ pointerEvents: "none",
417
+ zIndex: 2,
418
+ background: a.black,
419
+ color: a.white,
420
+ borderRadius: 6,
421
+ minWidth: 60,
422
+ padding: "8px 10px",
423
+ boxShadow: "0 6px 16px rgba(0,0,0,0.18)",
424
+ fontFamily: W,
425
+ fontSize: 11,
426
+ lineHeight: 1.25,
427
+ whiteSpace: "nowrap",
428
+ textAlign: "left"
429
+ },
430
+ children: [
431
+ /* @__PURE__ */ e("div", { children: s.label }),
432
+ /* @__PURE__ */ e("div", { style: { fontWeight: 600 }, children: s.value }),
433
+ /* @__PURE__ */ e(
434
+ "div",
435
+ {
436
+ style: {
437
+ position: "absolute",
438
+ left: "50%",
439
+ bottom: -5,
440
+ width: 10,
441
+ height: 10,
442
+ background: a.black,
443
+ transform: "translateX(-50%) rotate(45deg)",
444
+ borderRadius: 2
445
+ }
446
+ }
447
+ )
448
+ ]
449
+ }
450
+ ),
451
+ /* @__PURE__ */ l(
259
452
  "svg",
260
453
  {
261
454
  width: "100%",
262
- height: 110 + 14,
263
- viewBox: `0 0 460 ${110 + 14}`,
455
+ height: u + 14,
456
+ viewBox: `0 0 ${c} ${u + 14}`,
264
457
  preserveAspectRatio: "none",
458
+ onMouseLeave: () => d(null),
265
459
  children: [
266
- /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ i("linearGradient", { id: `area-${h}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
267
- /* @__PURE__ */ e("stop", { offset: "0%", style: { stopColor: r.black, stopOpacity: 0.08 } }),
268
- /* @__PURE__ */ e("stop", { offset: "100%", style: { stopColor: r.black, stopOpacity: 0 } })
460
+ /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ l("linearGradient", { id: `area-${y}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
461
+ /* @__PURE__ */ e("stop", { offset: "0%", style: { stopColor: a.black, stopOpacity: 0.08 } }),
462
+ /* @__PURE__ */ e("stop", { offset: "100%", style: { stopColor: a.black, stopOpacity: 0 } })
269
463
  ] }) }),
270
- m.map((y, w) => /* @__PURE__ */ e(
464
+ $.map((p, g) => /* @__PURE__ */ e(
271
465
  "line",
272
466
  {
273
- x1: y,
467
+ x1: p,
274
468
  y1: "0",
275
- x2: y,
276
- y2: 110,
277
- stroke: r.borderSubtle,
469
+ x2: p,
470
+ y2: u,
471
+ stroke: a.borderSubtle,
278
472
  strokeDasharray: "2 3",
279
473
  strokeWidth: "1",
280
474
  vectorEffect: "non-scaling-stroke"
281
475
  },
282
- `grid-${w}`
476
+ `grid-${g}`
283
477
  )),
284
- /* @__PURE__ */ e("path", { d: q, fill: `url(#area-${h})` }),
478
+ /* @__PURE__ */ e("path", { d: j, fill: `url(#area-${y})` }),
285
479
  /* @__PURE__ */ e(
286
480
  "path",
287
481
  {
288
- d: P,
289
- stroke: r.black,
482
+ d: Q,
483
+ stroke: a.black,
290
484
  strokeWidth: "1.5",
291
485
  fill: "none",
292
486
  strokeLinecap: "round",
@@ -294,20 +488,29 @@ function re({
294
488
  vectorEffect: "non-scaling-stroke"
295
489
  }
296
490
  ),
297
- L.map(([y, w], H) => {
298
- const $ = H === Q;
491
+ v.map(([p, g], T) => {
492
+ const P = T === se;
299
493
  return /* @__PURE__ */ e(
300
494
  "circle",
301
495
  {
302
- cx: T(y),
303
- cy: w,
304
- r: $ ? 4 : 3,
305
- fill: $ ? r.black : r.white,
306
- stroke: r.black,
496
+ cx: J(p),
497
+ cy: g,
498
+ r: P ? 4 : 3,
499
+ fill: P ? a.black : a.white,
500
+ stroke: a.black,
307
501
  strokeWidth: "1.5",
308
- vectorEffect: "non-scaling-stroke"
502
+ vectorEffect: "non-scaling-stroke",
503
+ onMouseEnter: () => {
504
+ var C;
505
+ d({
506
+ xPct: J(p) / c * 100,
507
+ yPct: g / (u + 28) * 100,
508
+ label: b[T] || `Point ${T + 1}`,
509
+ value: q((C = L[T]) == null ? void 0 : C[1])
510
+ });
511
+ }
309
512
  },
310
- H
513
+ T
311
514
  );
312
515
  })
313
516
  ]
@@ -320,62 +523,80 @@ function re({
320
523
  display: "flex",
321
524
  justifyContent: "space-between",
322
525
  paddingRight: 6,
323
- fontFamily: C,
526
+ fontFamily: W,
324
527
  fontSize: 10,
325
- color: r.neutral800,
326
- marginTop: 6,
528
+ color: a.neutral800,
529
+ marginTop: 8,
530
+ marginBottom: 4,
327
531
  overflow: "hidden"
328
532
  },
329
- children: g.map((y, w) => /* @__PURE__ */ e("span", { style: { whiteSpace: "nowrap" }, children: y }, w))
533
+ children: k.map((p, g) => /* @__PURE__ */ e("span", { style: { whiteSpace: "nowrap" }, children: p }, g))
330
534
  }
331
535
  )
332
536
  ] })
333
537
  ] });
334
538
  }
335
- function oe({ title: t, value: l, delta: a, children: o }) {
336
- return /* @__PURE__ */ i(
539
+ function fe({ title: t, value: n, delta: i, children: o }) {
540
+ const s = ct(n), d = ke(i), c = d ? Me("up", i) : "up";
541
+ return /* @__PURE__ */ l(
337
542
  "div",
338
543
  {
339
544
  style: {
340
545
  flex: 1,
341
- background: r.white,
342
- border: `1px solid ${r.border}`,
546
+ background: a.white,
547
+ border: `1px solid ${a.border}`,
343
548
  borderRadius: 8,
344
549
  padding: 24,
345
550
  display: "flex",
346
551
  flexDirection: "column",
347
552
  gap: 24,
348
553
  minWidth: 0,
349
- boxShadow: r.shadowCard
554
+ boxShadow: a.shadowCard
350
555
  },
351
556
  children: [
352
- /* @__PURE__ */ i("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "flex-end" }, children: [
557
+ /* @__PURE__ */ l("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "flex-end" }, children: [
353
558
  /* @__PURE__ */ e(
354
559
  "span",
355
560
  {
356
561
  style: {
357
- fontFamily: V,
562
+ fontFamily: te,
358
563
  fontWeight: 600,
359
564
  fontSize: 15,
360
- color: r.ink,
565
+ color: a.ink,
361
566
  lineHeight: 1.2
362
567
  },
363
568
  children: t
364
569
  }
365
570
  ),
366
- /* @__PURE__ */ i(
571
+ /* @__PURE__ */ l(
367
572
  "span",
368
573
  {
369
574
  style: {
370
575
  display: "inline-flex",
371
576
  alignItems: "flex-end",
372
577
  gap: 4,
373
- fontFamily: V,
578
+ fontFamily: te,
374
579
  fontWeight: 600
375
580
  },
376
581
  children: [
377
- /* @__PURE__ */ e("span", { style: { fontSize: 20, color: r.black, lineHeight: 1 }, children: l }),
378
- /* @__PURE__ */ e("span", { style: { fontSize: 10, color: r.neutral300, lineHeight: 1 }, children: a })
582
+ /* @__PURE__ */ e("span", { style: { fontSize: 20, color: a.black, lineHeight: 1 }, children: s }),
583
+ d ? /* @__PURE__ */ l(
584
+ "span",
585
+ {
586
+ style: {
587
+ display: "inline-flex",
588
+ alignItems: "center",
589
+ gap: 3,
590
+ fontSize: 10,
591
+ color: a.neutral300,
592
+ lineHeight: 1
593
+ },
594
+ children: [
595
+ /* @__PURE__ */ e(ut, { direction: c, color: a.neutral300 }),
596
+ i
597
+ ]
598
+ }
599
+ ) : null
379
600
  ]
380
601
  }
381
602
  )
@@ -385,8 +606,8 @@ function oe({ title: t, value: l, delta: a, children: o }) {
385
606
  }
386
607
  );
387
608
  }
388
- function we({ icon: t, title: l, trailing: a, iconColor: o = r.ink, bordered: d = !1 }) {
389
- return /* @__PURE__ */ i(
609
+ function Le({ icon: t, title: n, trailing: i, iconColor: o = a.ink, bordered: s = !1 }) {
610
+ return /* @__PURE__ */ l(
390
611
  "div",
391
612
  {
392
613
  style: {
@@ -394,8 +615,8 @@ function we({ icon: t, title: l, trailing: a, iconColor: o = r.ink, bordered: d
394
615
  alignItems: "center",
395
616
  gap: 8,
396
617
  width: "100%",
397
- paddingBottom: d ? 12 : 0,
398
- borderBottom: d ? `1px solid ${r.border}` : "none"
618
+ paddingBottom: s ? 12 : 0,
619
+ borderBottom: s ? `1px solid ${a.border}` : "none"
399
620
  },
400
621
  children: [
401
622
  /* @__PURE__ */ e(
@@ -417,60 +638,60 @@ function we({ icon: t, title: l, trailing: a, iconColor: o = r.ink, bordered: d
417
638
  {
418
639
  style: {
419
640
  flex: 1,
420
- fontFamily: V,
641
+ fontFamily: te,
421
642
  fontWeight: 600,
422
643
  fontSize: 16,
423
- color: r.ink,
644
+ color: a.ink,
424
645
  lineHeight: 1.2,
425
646
  textTransform: "uppercase",
426
647
  letterSpacing: "0.02em"
427
648
  },
428
- children: l
649
+ children: n
429
650
  }
430
651
  ),
431
- a && /* @__PURE__ */ e("div", { style: { fontFamily: C, fontSize: 14, color: r.ink }, children: a })
652
+ i && /* @__PURE__ */ e("div", { style: { fontFamily: W, fontSize: 14, color: a.ink }, children: i })
432
653
  ]
433
654
  }
434
655
  );
435
656
  }
436
- function ht({ text: t, bullet: l, citation: a, date: o, href: d }) {
437
- const s = t ?? l ?? "";
438
- return /* @__PURE__ */ i(
657
+ function Nt({ text: t, bullet: n, citation: i, date: o, href: s }) {
658
+ const d = t ?? n ?? "";
659
+ return /* @__PURE__ */ l(
439
660
  "div",
440
661
  {
441
662
  style: {
442
663
  display: "flex",
443
664
  justifyContent: "space-between",
444
665
  alignItems: "center",
445
- fontFamily: C,
666
+ fontFamily: W,
446
667
  fontSize: 14,
447
- color: r.ink,
668
+ color: a.ink,
448
669
  lineHeight: "24px",
449
670
  gap: 16
450
671
  },
451
672
  children: [
452
- d ? /* @__PURE__ */ e(
673
+ s ? /* @__PURE__ */ e(
453
674
  "a",
454
675
  {
455
- href: d,
676
+ href: s,
456
677
  target: "_blank",
457
678
  rel: "noopener noreferrer",
458
679
  style: {
459
- color: r.ink,
680
+ color: a.ink,
460
681
  textDecoration: "underline",
461
682
  textUnderlineOffset: 2,
462
- textDecorationColor: r.border,
683
+ textDecorationColor: a.border,
463
684
  minWidth: 0,
464
685
  overflow: "hidden",
465
686
  textOverflow: "ellipsis",
466
687
  whiteSpace: "nowrap"
467
688
  },
468
- children: s
689
+ children: d
469
690
  }
470
- ) : /* @__PURE__ */ e("span", { style: { minWidth: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: s }),
471
- /* @__PURE__ */ i("span", { style: { display: "inline-flex", gap: 4, whiteSpace: "nowrap" }, children: [
472
- /* @__PURE__ */ e("span", { style: { color: r.ink }, children: a }),
473
- o ? /* @__PURE__ */ i("span", { style: { color: r.muted }, children: [
691
+ ) : /* @__PURE__ */ e("span", { style: { minWidth: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: d }),
692
+ /* @__PURE__ */ l("span", { style: { display: "inline-flex", gap: 4, whiteSpace: "nowrap" }, children: [
693
+ /* @__PURE__ */ e("span", { style: { color: a.ink }, children: i }),
694
+ o ? /* @__PURE__ */ l("span", { style: { color: a.muted }, children: [
474
695
  "(",
475
696
  o,
476
697
  ")"
@@ -480,25 +701,25 @@ function ht({ text: t, bullet: l, citation: a, date: o, href: d }) {
480
701
  }
481
702
  );
482
703
  }
483
- function Ae({
704
+ function je({
484
705
  title: t,
485
- summary: l,
486
- calls: a,
706
+ summary: n,
707
+ calls: i,
487
708
  // Hosts emit `percent` (matches PerformancePanel's accordion); legacy
488
709
  // callers may still send `delta`. Accept either.
489
710
  percent: o,
490
- delta: d,
491
- bullets: s,
492
- defaultExpanded: p = !1
711
+ delta: s,
712
+ bullets: d,
713
+ defaultExpanded: c = !1
493
714
  }) {
494
- const [h, v] = S.useState(p), u = o ?? d ?? "", g = Array.isArray(s) ? s : [];
495
- return /* @__PURE__ */ i("div", { style: { borderTop: `1px solid ${r.border}` }, children: [
496
- /* @__PURE__ */ i(
715
+ const [u, F] = S.useState(c), y = o ?? s, m = ke(y), b = m ? String(y) : dt, D = (m ? Me("up", b) : "up") === "down" ? wt : nt, $ = Array.isArray(d) ? d : [];
716
+ return /* @__PURE__ */ l("div", { style: { borderTop: `1px solid ${a.border}` }, children: [
717
+ /* @__PURE__ */ l(
497
718
  "button",
498
719
  {
499
720
  type: "button",
500
- onClick: () => v((x) => !x),
501
- "aria-expanded": h,
721
+ onClick: () => F((L) => !L),
722
+ "aria-expanded": u,
502
723
  style: {
503
724
  border: "none",
504
725
  background: "transparent",
@@ -509,46 +730,59 @@ function Ae({
509
730
  cursor: "pointer",
510
731
  width: "100%",
511
732
  textAlign: "left",
512
- fontFamily: C
733
+ fontFamily: W
513
734
  },
514
735
  children: [
515
- /* @__PURE__ */ i("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 12, minWidth: 0 }, children: [
516
- /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: 12 }, children: [
736
+ /* @__PURE__ */ l("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 12, minWidth: 0 }, children: [
737
+ /* @__PURE__ */ l("div", { style: { display: "flex", flexDirection: "column", gap: 12 }, children: [
517
738
  /* @__PURE__ */ e(
518
739
  "span",
519
740
  {
520
741
  style: {
521
- fontFamily: C,
742
+ fontFamily: W,
522
743
  fontWeight: 500,
523
744
  fontSize: 14,
524
- color: r.black,
745
+ color: a.black,
525
746
  lineHeight: "24px"
526
747
  },
527
748
  children: t
528
749
  }
529
750
  ),
530
- /* @__PURE__ */ e("span", { style: { fontFamily: C, fontSize: 14, color: r.muted, lineHeight: "24px" }, children: l })
751
+ /* @__PURE__ */ e("span", { style: { fontFamily: W, fontSize: 14, color: a.muted, lineHeight: "24px" }, children: n })
531
752
  ] }),
532
- /* @__PURE__ */ i("div", { style: { display: "flex", gap: 16 }, children: [
533
- /* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "center", gap: 4 }, children: [
534
- /* @__PURE__ */ e(de, { size: 12, color: r.ink, strokeWidth: 1.75 }),
535
- /* @__PURE__ */ e("span", { style: { fontFamily: C, fontSize: 12, color: r.ink }, children: a })
753
+ /* @__PURE__ */ l("div", { style: { display: "flex", gap: 16 }, children: [
754
+ /* @__PURE__ */ l("div", { style: { display: "flex", alignItems: "center", gap: 4 }, children: [
755
+ /* @__PURE__ */ e(ye, { size: 12, color: a.ink, strokeWidth: 1.75 }),
756
+ /* @__PURE__ */ l("span", { style: { fontFamily: W, fontSize: 12, color: a.ink }, children: [
757
+ i,
758
+ " calls"
759
+ ] })
536
760
  ] }),
537
- /* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "center", gap: 4 }, children: [
538
- /* @__PURE__ */ e(Ue, { size: 12, color: r.ink, strokeWidth: 1.75 }),
539
- /* @__PURE__ */ e("span", { style: { fontFamily: C, fontSize: 12, color: r.ink }, children: u })
761
+ /* @__PURE__ */ l("div", { style: { display: "flex", alignItems: "center", gap: 4 }, children: [
762
+ m ? /* @__PURE__ */ e(D, { size: 12, color: a.ink, strokeWidth: 1.75 }) : null,
763
+ /* @__PURE__ */ e(
764
+ "span",
765
+ {
766
+ style: {
767
+ fontFamily: W,
768
+ fontSize: 12,
769
+ color: m ? a.ink : a.muted
770
+ },
771
+ children: b
772
+ }
773
+ )
540
774
  ] })
541
775
  ] })
542
776
  ] }),
543
777
  /* @__PURE__ */ e(
544
- De,
778
+ We,
545
779
  {
546
780
  size: 20,
547
- color: r.ink,
781
+ color: a.ink,
548
782
  strokeWidth: 2,
549
783
  style: {
550
784
  flexShrink: 0,
551
- transform: h ? "rotate(180deg)" : "none",
785
+ transform: u ? "rotate(180deg)" : "none",
552
786
  transition: "transform 150ms ease"
553
787
  }
554
788
  }
@@ -556,7 +790,7 @@ function Ae({
556
790
  ]
557
791
  }
558
792
  ),
559
- h && g.length > 0 && /* @__PURE__ */ e(
793
+ u && $.length > 0 && /* @__PURE__ */ e(
560
794
  "div",
561
795
  {
562
796
  style: {
@@ -565,13 +799,13 @@ function Ae({
565
799
  gap: 12,
566
800
  padding: "0 16px 16px"
567
801
  },
568
- children: g.map((x, m) => /* @__PURE__ */ e(ht, { ...x }, m))
802
+ children: $.map((L, Y) => /* @__PURE__ */ e(Nt, { ...L }, Y))
569
803
  }
570
804
  )
571
805
  ] });
572
806
  }
573
- function Te({ label: t, value: l }) {
574
- return /* @__PURE__ */ i(
807
+ function Ye({ label: t, value: n }) {
808
+ return /* @__PURE__ */ l(
575
809
  "div",
576
810
  {
577
811
  style: {
@@ -579,33 +813,33 @@ function Te({ label: t, value: l }) {
579
813
  justifyContent: "space-between",
580
814
  alignItems: "center",
581
815
  padding: "8px 8px 12px",
582
- borderBottom: `1px solid ${r.border}`,
583
- fontFamily: C,
816
+ borderBottom: `1px solid ${a.border}`,
817
+ fontFamily: W,
584
818
  fontSize: 13,
585
819
  lineHeight: "1.2"
586
820
  },
587
821
  children: [
588
- /* @__PURE__ */ e("span", { style: { color: r.ink }, children: t }),
589
- /* @__PURE__ */ e("span", { style: { color: r.muted }, children: l })
822
+ /* @__PURE__ */ e("span", { style: { color: a.ink }, children: t }),
823
+ /* @__PURE__ */ e("span", { style: { color: a.muted }, children: n })
590
824
  ]
591
825
  }
592
826
  );
593
827
  }
594
- function ft({ value: t = 0, max: l = 5 }) {
595
- const a = typeof t == "number" ? t : parseFloat(t) || 0, o = Math.floor(a), d = a % 1 > 0 && o < l;
596
- return /* @__PURE__ */ e("div", { style: { display: "flex", gap: 4 }, children: Array.from({ length: l }).map((s, p) => p < o ? /* @__PURE__ */ e(
828
+ function Rt({ value: t = 0, max: n = 5 }) {
829
+ const i = typeof t == "number" ? t : parseFloat(t) || 0, o = Math.floor(i), s = i % 1 > 0 && o < n;
830
+ return /* @__PURE__ */ e("div", { style: { display: "flex", gap: 4 }, children: Array.from({ length: n }).map((d, c) => c < o ? /* @__PURE__ */ e(
597
831
  "span",
598
832
  {
599
833
  style: {
600
834
  width: 10,
601
835
  height: 10,
602
836
  borderRadius: "50%",
603
- background: r.black,
837
+ background: a.black,
604
838
  display: "inline-block"
605
839
  }
606
840
  },
607
- p
608
- ) : p === o && d ? /* @__PURE__ */ e(
841
+ c
842
+ ) : c === o && s ? /* @__PURE__ */ e(
609
843
  "span",
610
844
  {
611
845
  style: {
@@ -623,13 +857,13 @@ function ft({ value: t = 0, max: l = 5 }) {
623
857
  width: 6,
624
858
  height: 6,
625
859
  borderRadius: "50%",
626
- background: r.black,
860
+ background: a.black,
627
861
  display: "inline-block"
628
862
  }
629
863
  }
630
864
  )
631
865
  },
632
- p
866
+ c
633
867
  ) : /* @__PURE__ */ e(
634
868
  "span",
635
869
  {
@@ -637,16 +871,16 @@ function ft({ value: t = 0, max: l = 5 }) {
637
871
  width: 10,
638
872
  height: 10,
639
873
  borderRadius: "50%",
640
- background: r.white,
641
- border: `1px solid ${r.border}`,
874
+ background: a.white,
875
+ border: `1px solid ${a.border}`,
642
876
  display: "inline-block",
643
877
  boxSizing: "border-box"
644
878
  }
645
879
  },
646
- p
880
+ c
647
881
  )) });
648
882
  }
649
- const Lt = [
883
+ const Qt = [
650
884
  { id: "title", label: "Title", width: 220, sortable: !0, filterable: !0 },
651
885
  { id: "date", label: "Date", width: 170, sortable: !0 },
652
886
  { id: "duration", label: "Duration", width: 170, sortable: !0 },
@@ -657,16 +891,16 @@ const Lt = [
657
891
  width: 220,
658
892
  sortable: !0,
659
893
  render: (t) => {
660
- const l = typeof t == "number" ? t : parseFloat(t) || 0;
661
- return /* @__PURE__ */ i("span", { style: { display: "inline-flex", alignItems: "center", gap: 12 }, children: [
894
+ const n = typeof t == "number" ? t : parseFloat(t) || 0;
895
+ return /* @__PURE__ */ l("span", { style: { display: "inline-flex", alignItems: "center", gap: 12 }, children: [
662
896
  /* @__PURE__ */ e("span", { style: { minWidth: 32 }, children: t }),
663
- /* @__PURE__ */ e(ft, { value: l })
897
+ /* @__PURE__ */ e(Rt, { value: n })
664
898
  ] });
665
899
  }
666
900
  }
667
901
  ];
668
- function He({ icon: t, title: l }) {
669
- return /* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "center", gap: 16, width: "100%" }, children: [
902
+ function Ue({ icon: t, title: n }) {
903
+ return /* @__PURE__ */ l("div", { style: { display: "flex", alignItems: "center", gap: 16, width: "100%" }, children: [
670
904
  /* @__PURE__ */ e(
671
905
  "div",
672
906
  {
@@ -674,103 +908,116 @@ function He({ icon: t, title: l }) {
674
908
  width: 34,
675
909
  height: 34,
676
910
  borderRadius: 9999,
677
- background: r.iconCircle,
911
+ background: a.iconCircle,
678
912
  display: "flex",
679
913
  alignItems: "center",
680
914
  justifyContent: "center",
681
915
  flexShrink: 0
682
916
  },
683
- children: /* @__PURE__ */ e(t, { size: 20, color: r.ink, strokeWidth: 1.75 })
917
+ children: /* @__PURE__ */ e(t, { size: 20, color: a.ink, strokeWidth: 1.75 })
684
918
  }
685
919
  ),
686
920
  /* @__PURE__ */ e(
687
921
  "span",
688
922
  {
689
923
  style: {
690
- fontFamily: V,
924
+ fontFamily: te,
691
925
  fontWeight: 600,
692
926
  fontSize: 16,
693
- color: r.ink,
927
+ color: a.ink,
694
928
  lineHeight: 1.2
695
929
  },
696
- children: l
930
+ children: n
697
931
  }
698
932
  )
699
933
  ] });
700
934
  }
701
- function ut({
935
+ function Bt({
702
936
  agentName: t = "",
703
- startDate: l = "",
704
- endDate: a = "",
937
+ startDate: n = "",
938
+ endDate: i = "",
705
939
  totalCalls: o = "",
706
- onBack: d,
707
- className: s = "",
940
+ onBack: s,
941
+ className: d = "",
708
942
  // KPI strip
709
- kpiBaseline: p = { value: "", label: "", sub: "", trend: "up" },
710
- kpiAgentLift: h = { value: "", label: "", sub: "", trend: "down" },
711
- kpiScore: v = { value: "", label: "", sub: "", trend: "up" },
943
+ kpiBaseline: c = { value: "", label: "", sub: "", trend: "up" },
944
+ kpiAgentLift: u = { value: "", label: "", sub: "", trend: "down" },
945
+ kpiScore: F = { value: "", label: "", sub: "", trend: "up" },
712
946
  // Chart cards (Baseline / Agent Lift / Score / CSAT / Volume)
713
947
  // Each takes { value, delta, yLabels?, xLabels?, points? }.
714
948
  // points is an array of [x, y] pairs OR a flat array of y-numbers.
715
- baselineChart: u = { value: "", delta: "" },
716
- agentLiftChart: g = { value: "", delta: "" },
717
- scoreChart: x = { value: "", delta: "" },
718
- csatChart: m = { value: "", delta: "" },
719
- volumeChart: z = { value: "", delta: "" },
949
+ baselineChart: y = { value: "", delta: "" },
950
+ agentLiftChart: m = { value: "", delta: "" },
951
+ scoreChart: b = { value: "", delta: "" },
952
+ csatChart: k = { value: "", delta: "" },
953
+ volumeChart: D = { value: "", delta: "" },
720
954
  // Insight sections — titles and chart-card labels stay empty by default
721
955
  // so the library doesn't ship demo copy.
722
- guidanceItems: O = [],
723
- strengthItems: k = [],
724
- callDrivers: N = [],
725
- callParadigms: _ = [],
956
+ guidanceItems: $ = [],
957
+ strengthItems: L = [],
958
+ callDrivers: Y = [],
959
+ callParadigms: M = [],
726
960
  strengthsTitle: E = "",
727
- guidanceTitle: B = "",
728
- callMixTitle: U = "",
729
- driversTitle: X = "",
730
- paradigmsTitle: L = "",
731
- sessionsTitle: f = "",
732
- baselineChartTitle: F = "",
733
- agentLiftChartTitle: A = "",
734
- scoreChartTitle: j = "",
735
- csatChartTitle: T = "",
736
- volumeChartTitle: P = "",
961
+ guidanceTitle: X = "",
962
+ callMixTitle: G = "",
963
+ driversTitle: O = "",
964
+ paradigmsTitle: Z = "",
965
+ sessionsTitle: h = "",
966
+ baselineChartTitle: v = "",
967
+ agentLiftChartTitle: I = "",
968
+ scoreChartTitle: H = "",
969
+ csatChartTitle: K = "",
970
+ volumeChartTitle: _ = "",
737
971
  // Sessions table
738
- sessions: q = [],
739
- sessionColumns: Q = [],
740
- initialPageSize: y = 10,
972
+ sessions: ie = [],
973
+ sessionColumns: ae = [],
974
+ initialPageSize: J = 10,
741
975
  // Time-range chips state — mirrors PerformancePanel so the active chip /
742
976
  // Date Range highlight survives the navigation into the details page.
743
977
  // Callbacks are optional; when omitted the controls are display-only.
744
- selectedWindow: w = "30d",
745
- onWindowChange: H,
746
- dateRange: $,
747
- onDateRangeChange: ee,
978
+ selectedWindow: q = "30d",
979
+ onWindowChange: Q,
980
+ dateRange: j,
981
+ onDateRangeChange: se,
748
982
  // Server-side pagination for the sessions table. When all four are provided
749
983
  // the table switches to controlled / server-paginated mode and the host is
750
984
  // expected to refetch when the user changes page or page size.
751
- sessionsTotal: Z = null,
752
- sessionsPage: te = null,
753
- sessionsPageSize: ce = null,
754
- onSessionsPageChange: pe,
755
- onSessionsPageSizeChange: G,
985
+ sessionsTotal: p = null,
986
+ sessionsPage: g = null,
987
+ sessionsPageSize: T = null,
988
+ onSessionsPageChange: P,
989
+ onSessionsPageSizeChange: C,
756
990
  // Fires when the user clicks the Export CSV button in the header. Disabled
757
991
  // if no handler is provided.
758
- onExport: M,
992
+ onExport: A,
759
993
  // Fires when the user clicks a row in the sessions table.
760
- onSessionClick: be,
994
+ onSessionClick: we,
761
995
  // Fires whenever the user toggles columns in the sessions table's column
762
996
  // picker — hosts can scope their CSV export to whatever the user has visible.
763
- onSessionsVisibleColumnsChange: J
997
+ onSessionsVisibleColumnsChange: le
764
998
  }) {
765
- const he = !!($ != null && $.from && ($ != null && $.to)), I = (W) => !!(W && (W.value || W.delta || Array.isArray(W.points) && W.points.length > 0)), ie = I(u) || I(g) || I(x), ne = I(m) || I(z);
766
- return /* @__PURE__ */ i(
999
+ const re = !!(j != null && j.from && (j != null && j.to)), N = (() => {
1000
+ if (re || q !== "8h")
1001
+ return null;
1002
+ const x = Fe("8h");
1003
+ return x ? $t(x.from, x.to) : null;
1004
+ })(), U = (() => {
1005
+ if (re || q === "8h")
1006
+ return null;
1007
+ const x = Fe(q);
1008
+ return x ? {
1009
+ from: ee(x.from),
1010
+ to: ee(x.to)
1011
+ } : null;
1012
+ })(), de = V(y) || V(m) || V(b), Se = V(k) || V(D);
1013
+ return /* @__PURE__ */ l(
767
1014
  "div",
768
1015
  {
769
- className: s,
1016
+ className: d,
770
1017
  style: {
771
- background: r.white,
772
- fontFamily: C,
773
- color: r.ink,
1018
+ background: a.white,
1019
+ fontFamily: W,
1020
+ color: a.ink,
774
1021
  width: "100%",
775
1022
  minWidth: 1192,
776
1023
  boxSizing: "border-box",
@@ -778,7 +1025,7 @@ function ut({
778
1025
  flexDirection: "column"
779
1026
  },
780
1027
  children: [
781
- /* @__PURE__ */ i(
1028
+ /* @__PURE__ */ l(
782
1029
  "div",
783
1030
  {
784
1031
  style: {
@@ -795,7 +1042,7 @@ function ut({
795
1042
  {
796
1043
  type: "button",
797
1044
  "aria-label": "Back",
798
- onClick: d,
1045
+ onClick: s,
799
1046
  style: {
800
1047
  display: "inline-flex",
801
1048
  alignItems: "center",
@@ -805,11 +1052,11 @@ function ut({
805
1052
  background: "transparent",
806
1053
  border: "none",
807
1054
  cursor: "pointer",
808
- color: r.ink,
1055
+ color: a.ink,
809
1056
  padding: 0,
810
1057
  flexShrink: 0
811
1058
  },
812
- children: /* @__PURE__ */ e(it, { size: 20, strokeWidth: 1.75 })
1059
+ children: /* @__PURE__ */ e(kt, { size: 20, strokeWidth: 1.75 })
813
1060
  }
814
1061
  ),
815
1062
  /* @__PURE__ */ e(
@@ -817,7 +1064,7 @@ function ut({
817
1064
  {
818
1065
  style: {
819
1066
  paddingLeft: 16,
820
- borderLeft: `1px solid ${r.border}`,
1067
+ borderLeft: `1px solid ${a.border}`,
821
1068
  flex: 1,
822
1069
  minWidth: 0,
823
1070
  alignSelf: "stretch",
@@ -828,10 +1075,10 @@ function ut({
828
1075
  "h1",
829
1076
  {
830
1077
  style: {
831
- fontFamily: V,
1078
+ fontFamily: te,
832
1079
  fontSize: 24,
833
1080
  fontWeight: 400,
834
- color: r.ink,
1081
+ color: a.ink,
835
1082
  margin: 0,
836
1083
  lineHeight: 1,
837
1084
  whiteSpace: "nowrap"
@@ -841,12 +1088,12 @@ function ut({
841
1088
  )
842
1089
  }
843
1090
  ),
844
- /* @__PURE__ */ i(
1091
+ /* @__PURE__ */ l(
845
1092
  "button",
846
1093
  {
847
1094
  type: "button",
848
- onClick: () => M == null ? void 0 : M(),
849
- disabled: !M,
1095
+ onClick: () => A == null ? void 0 : A(),
1096
+ disabled: !A,
850
1097
  style: {
851
1098
  display: "inline-flex",
852
1099
  alignItems: "center",
@@ -854,18 +1101,18 @@ function ut({
854
1101
  height: 32,
855
1102
  padding: "0 16px",
856
1103
  borderRadius: 10,
857
- border: `1px solid ${r.neutralBorder}`,
858
- background: r.white,
859
- cursor: M ? "pointer" : "not-allowed",
860
- opacity: M ? 1 : 0.5,
861
- fontFamily: C,
1104
+ border: `1px solid ${a.neutralBorder}`,
1105
+ background: a.white,
1106
+ cursor: A ? "pointer" : "not-allowed",
1107
+ opacity: A ? 1 : 0.5,
1108
+ fontFamily: W,
862
1109
  fontSize: 14,
863
1110
  lineHeight: "24px",
864
- color: r.neutral800,
1111
+ color: a.neutral800,
865
1112
  flexShrink: 0
866
1113
  },
867
1114
  children: [
868
- /* @__PURE__ */ e(Be, { size: 18, strokeWidth: 1.75 }),
1115
+ /* @__PURE__ */ e(Ze, { size: 18, strokeWidth: 1.75 }),
869
1116
  "Export CSV"
870
1117
  ]
871
1118
  }
@@ -873,7 +1120,7 @@ function ut({
873
1120
  ]
874
1121
  }
875
1122
  ),
876
- /* @__PURE__ */ i(
1123
+ /* @__PURE__ */ l(
877
1124
  "div",
878
1125
  {
879
1126
  style: {
@@ -883,7 +1130,7 @@ function ut({
883
1130
  gap: 16
884
1131
  },
885
1132
  children: [
886
- /* @__PURE__ */ i(
1133
+ /* @__PURE__ */ l(
887
1134
  "div",
888
1135
  {
889
1136
  style: {
@@ -894,44 +1141,44 @@ function ut({
894
1141
  paddingLeft: 49
895
1142
  },
896
1143
  children: [
897
- /* @__PURE__ */ i("div", { style: { display: "flex", gap: 16, alignItems: "center" }, children: [
898
- /* @__PURE__ */ i("div", { style: { display: "inline-flex", alignItems: "center", gap: 6 }, children: [
899
- /* @__PURE__ */ e(ge, { size: 14, color: r.ink, strokeWidth: 1.75, style: { flexShrink: 0 } }),
1144
+ /* @__PURE__ */ l("div", { style: { display: "flex", gap: 16, alignItems: "center" }, children: [
1145
+ /* @__PURE__ */ l("div", { style: { display: "inline-flex", alignItems: "center", gap: 6 }, children: [
1146
+ /* @__PURE__ */ e(ve, { size: 14, color: a.ink, strokeWidth: 1.75, style: { flexShrink: 0 } }),
900
1147
  /* @__PURE__ */ e(
901
1148
  "span",
902
1149
  {
903
1150
  style: {
904
- fontFamily: C,
1151
+ fontFamily: W,
905
1152
  fontSize: 12,
906
- color: r.ink,
1153
+ color: a.ink,
907
1154
  lineHeight: 1.5
908
1155
  },
909
- children: $e(l)
1156
+ children: (N == null ? void 0 : N.from) ?? (U == null ? void 0 : U.from) ?? _e(n)
910
1157
  }
911
1158
  ),
912
- /* @__PURE__ */ e(ve, { size: 12, color: r.ink, strokeWidth: 1.75, style: { flexShrink: 0 } }),
1159
+ /* @__PURE__ */ e(Ee, { size: 12, color: a.ink, strokeWidth: 1.75, style: { flexShrink: 0 } }),
913
1160
  /* @__PURE__ */ e(
914
1161
  "span",
915
1162
  {
916
1163
  style: {
917
- fontFamily: C,
1164
+ fontFamily: W,
918
1165
  fontSize: 12,
919
- color: r.ink,
1166
+ color: a.ink,
920
1167
  lineHeight: 1.5
921
1168
  },
922
- children: $e(a)
1169
+ children: (N == null ? void 0 : N.to) ?? (U == null ? void 0 : U.to) ?? _e(i)
923
1170
  }
924
1171
  )
925
1172
  ] }),
926
- /* @__PURE__ */ i("div", { style: { display: "inline-flex", alignItems: "center", gap: 6 }, children: [
927
- /* @__PURE__ */ e(de, { size: 14, color: r.ink, strokeWidth: 1.75, style: { flexShrink: 0 } }),
1173
+ /* @__PURE__ */ l("div", { style: { display: "inline-flex", alignItems: "center", gap: 6 }, children: [
1174
+ /* @__PURE__ */ e(ye, { size: 14, color: a.ink, strokeWidth: 1.75, style: { flexShrink: 0 } }),
928
1175
  /* @__PURE__ */ e(
929
1176
  "span",
930
1177
  {
931
1178
  style: {
932
- fontFamily: C,
1179
+ fontFamily: W,
933
1180
  fontSize: 12,
934
- color: r.ink,
1181
+ color: a.ink,
935
1182
  lineHeight: 1.5
936
1183
  },
937
1184
  children: o
@@ -939,168 +1186,170 @@ function ut({
939
1186
  )
940
1187
  ] })
941
1188
  ] }),
942
- /* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "center", gap: 10 }, children: [
1189
+ /* @__PURE__ */ l("div", { style: { display: "flex", alignItems: "center", gap: 10 }, children: [
943
1190
  [
944
1191
  { id: "8h", label: "8h" },
945
1192
  { id: "1d", label: "1d" },
946
1193
  { id: "7d", label: "7d" },
947
1194
  { id: "30d", label: "30d" }
948
- ].map((W) => /* @__PURE__ */ e(
949
- pt,
1195
+ ].map((x) => /* @__PURE__ */ e(
1196
+ Pt,
950
1197
  {
951
- label: W.label,
952
- active: !he && W.id === w,
953
- onClick: () => H == null ? void 0 : H(W.id)
1198
+ label: x.label,
1199
+ active: !re && x.id === q,
1200
+ onClick: () => Q == null ? void 0 : Q(x.id)
954
1201
  },
955
- W.id
1202
+ x.id
956
1203
  )),
957
- /* @__PURE__ */ e(Ke, { value: $, onChange: ee })
1204
+ /* @__PURE__ */ e(yt, { value: j, onChange: se })
958
1205
  ] })
959
1206
  ]
960
1207
  }
961
1208
  ),
962
- /* @__PURE__ */ i(
1209
+ /* @__PURE__ */ e(
963
1210
  "div",
964
1211
  {
965
1212
  style: {
966
- background: r.beige,
967
- border: `1px solid ${r.border}`,
1213
+ background: a.beige,
1214
+ border: `1px solid ${a.border}`,
968
1215
  borderRadius: 8,
969
1216
  padding: 16,
970
1217
  display: "flex",
971
- gap: 24,
972
1218
  alignItems: "center"
973
1219
  },
974
1220
  children: [
975
- /* @__PURE__ */ e(
976
- ke,
1221
+ { key: "baseline", kpi: c },
1222
+ { key: "agent-lift", kpi: u },
1223
+ { key: "score", kpi: F }
1224
+ ].map((x, R) => /* @__PURE__ */ l(S.Fragment, { children: [
1225
+ R > 0 ? /* @__PURE__ */ e(
1226
+ Ee,
977
1227
  {
978
- value: p.value,
979
- label: p.label,
980
- sub: p.sub,
981
- trend: p.trend,
982
- points: p.points
983
- }
984
- ),
985
- /* @__PURE__ */ e(ve, { size: 20, color: r.ink, strokeWidth: 1.75, style: { flexShrink: 0 } }),
986
- /* @__PURE__ */ e(
987
- ke,
988
- {
989
- value: h.value,
990
- label: h.label,
991
- sub: h.sub,
992
- trend: h.trend,
993
- points: h.points
1228
+ size: 20,
1229
+ color: a.ink,
1230
+ strokeWidth: 1.75,
1231
+ style: { flexShrink: 0, margin: "0 24px" }
994
1232
  }
995
- ),
996
- /* @__PURE__ */ e(ve, { size: 20, color: r.ink, strokeWidth: 1.75, style: { flexShrink: 0 } }),
1233
+ ) : null,
997
1234
  /* @__PURE__ */ e(
998
- ke,
1235
+ "div",
999
1236
  {
1000
- value: v.value,
1001
- label: v.label,
1002
- sub: v.sub,
1003
- trend: v.trend,
1004
- points: v.points
1237
+ style: {
1238
+ flex: 1,
1239
+ display: "flex",
1240
+ justifyContent: "center",
1241
+ alignItems: "center",
1242
+ minWidth: 0
1243
+ },
1244
+ children: /* @__PURE__ */ e(
1245
+ Ht,
1246
+ {
1247
+ value: x.kpi.value,
1248
+ label: x.kpi.label,
1249
+ sub: x.kpi.sub,
1250
+ trend: x.kpi.trend,
1251
+ points: x.kpi.points
1252
+ }
1253
+ )
1005
1254
  }
1006
1255
  )
1007
- ]
1256
+ ] }, x.key))
1008
1257
  }
1009
1258
  ),
1010
- ie && /* @__PURE__ */ i("div", { style: { display: "flex", gap: 24 }, children: [
1011
- I(u) && /* @__PURE__ */ e(oe, { title: F, value: u.value, delta: u.delta, children: /* @__PURE__ */ e(
1012
- re,
1259
+ de && /* @__PURE__ */ l("div", { style: { display: "flex", gap: 24 }, children: [
1260
+ V(y) && /* @__PURE__ */ e(fe, { title: v, value: y.value, delta: y.delta, children: /* @__PURE__ */ e(
1261
+ ue,
1013
1262
  {
1014
- yLabels: u.yLabels,
1015
- xLabels: u.xLabels,
1016
- points: u.points
1263
+ yLabels: y.yLabels,
1264
+ xLabels: y.xLabels,
1265
+ points: y.points
1017
1266
  }
1018
1267
  ) }),
1019
- I(g) && /* @__PURE__ */ e(oe, { title: A, value: g.value, delta: g.delta, children: /* @__PURE__ */ e(
1020
- re,
1268
+ V(m) && /* @__PURE__ */ e(fe, { title: I, value: m.value, delta: m.delta, children: /* @__PURE__ */ e(
1269
+ ue,
1021
1270
  {
1022
- yLabels: g.yLabels,
1023
- xLabels: g.xLabels,
1024
- points: g.points
1271
+ yLabels: m.yLabels,
1272
+ xLabels: m.xLabels,
1273
+ points: m.points
1025
1274
  }
1026
1275
  ) }),
1027
- I(x) && /* @__PURE__ */ e(oe, { title: j, value: x.value, delta: x.delta, children: /* @__PURE__ */ e(
1028
- re,
1276
+ V(b) && /* @__PURE__ */ e(fe, { title: H, value: b.value, delta: b.delta, children: /* @__PURE__ */ e(
1277
+ ue,
1029
1278
  {
1030
- yLabels: x.yLabels,
1031
- xLabels: x.xLabels,
1032
- points: x.points
1279
+ yLabels: b.yLabels,
1280
+ xLabels: b.xLabels,
1281
+ points: b.points
1033
1282
  }
1034
1283
  ) })
1035
1284
  ] }),
1036
- ne && /* @__PURE__ */ i("div", { style: { display: "flex", gap: 24 }, children: [
1037
- I(m) && /* @__PURE__ */ e(oe, { title: T, value: m.value, delta: m.delta, children: /* @__PURE__ */ e(
1038
- re,
1285
+ Se && /* @__PURE__ */ l("div", { style: { display: "flex", gap: 24 }, children: [
1286
+ V(k) && /* @__PURE__ */ e(fe, { title: K, value: k.value, delta: k.delta, children: /* @__PURE__ */ e(
1287
+ ue,
1039
1288
  {
1040
- yLabels: m.yLabels,
1041
- xLabels: m.xLabels,
1042
- points: m.points
1289
+ yLabels: k.yLabels,
1290
+ xLabels: k.xLabels,
1291
+ points: k.points
1043
1292
  }
1044
1293
  ) }),
1045
- I(z) && /* @__PURE__ */ e(oe, { title: P, value: z.value, delta: z.delta, children: /* @__PURE__ */ e(
1046
- re,
1294
+ V(D) && /* @__PURE__ */ e(fe, { title: _, value: D.value, delta: D.delta, children: /* @__PURE__ */ e(
1295
+ ue,
1047
1296
  {
1048
- yLabels: z.yLabels,
1049
- xLabels: z.xLabels,
1050
- points: z.points
1297
+ yLabels: D.yLabels,
1298
+ xLabels: D.xLabels,
1299
+ points: D.points
1051
1300
  }
1052
1301
  ) })
1053
1302
  ] }),
1054
- /* @__PURE__ */ i("div", { style: { display: "flex", gap: 24, marginTop: 8, alignItems: "flex-start" }, children: [
1055
- /* @__PURE__ */ i("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 16, minWidth: 0 }, children: [
1056
- /* @__PURE__ */ e(we, { icon: je, title: E, iconColor: r.railCompliance }),
1057
- /* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", maxHeight: 480, overflowY: "auto" }, children: k.map((W, Y) => /* @__PURE__ */ e(Ae, { ...W }, Y)) })
1303
+ /* @__PURE__ */ l("div", { style: { display: "flex", gap: 24, marginTop: 8, alignItems: "flex-start" }, children: [
1304
+ /* @__PURE__ */ l("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 16, minWidth: 0 }, children: [
1305
+ /* @__PURE__ */ e(Le, { icon: qe, title: E, iconColor: a.railCompliance }),
1306
+ /* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", maxHeight: 480, overflowY: "auto" }, children: L.map((x, R) => /* @__PURE__ */ e(je, { ...x }, R)) })
1058
1307
  ] }),
1059
- /* @__PURE__ */ i("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 16, minWidth: 0 }, children: [
1060
- /* @__PURE__ */ e(we, { icon: Ne, title: B, iconColor: r.accentYellow }),
1061
- /* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", maxHeight: 480, overflowY: "auto" }, children: O.map((W, Y) => /* @__PURE__ */ e(Ae, { ...W }, Y)) })
1308
+ /* @__PURE__ */ l("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 16, minWidth: 0 }, children: [
1309
+ /* @__PURE__ */ e(Le, { icon: Qe, title: X, iconColor: a.railCompliance }),
1310
+ /* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", maxHeight: 480, overflowY: "auto" }, children: $.map((x, R) => /* @__PURE__ */ e(je, { ...x }, R)) })
1062
1311
  ] })
1063
1312
  ] }),
1064
- /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: 16, marginTop: 8 }, children: [
1065
- /* @__PURE__ */ e(we, { icon: de, title: U, iconColor: r.railCompliance }),
1066
- /* @__PURE__ */ i("div", { style: { display: "flex", gap: 24, alignItems: "flex-start" }, children: [
1067
- /* @__PURE__ */ i("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 8, minWidth: 0 }, children: [
1068
- /* @__PURE__ */ e(He, { icon: Ee, title: X }),
1069
- /* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", maxHeight: 480, overflowY: "auto" }, children: N.map((W, Y) => /* @__PURE__ */ e(Te, { ...W }, Y)) })
1313
+ /* @__PURE__ */ l("div", { style: { display: "flex", flexDirection: "column", gap: 16, marginTop: 8 }, children: [
1314
+ /* @__PURE__ */ e(Le, { icon: ye, title: G, iconColor: a.railCompliance }),
1315
+ /* @__PURE__ */ l("div", { style: { display: "flex", gap: 24, alignItems: "flex-start" }, children: [
1316
+ /* @__PURE__ */ l("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 8, minWidth: 0 }, children: [
1317
+ /* @__PURE__ */ e(Ue, { icon: et, title: O }),
1318
+ /* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", maxHeight: 480, overflowY: "auto" }, children: Y.map((x, R) => /* @__PURE__ */ e(Ye, { ...x }, R)) })
1070
1319
  ] }),
1071
- /* @__PURE__ */ i("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 8, minWidth: 0 }, children: [
1072
- /* @__PURE__ */ e(He, { icon: Ye, title: L }),
1073
- /* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", maxHeight: 480, overflowY: "auto" }, children: _.map((W, Y) => /* @__PURE__ */ e(Te, { ...W }, Y)) })
1320
+ /* @__PURE__ */ l("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 8, minWidth: 0 }, children: [
1321
+ /* @__PURE__ */ e(Ue, { icon: tt, title: Z }),
1322
+ /* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", maxHeight: 480, overflowY: "auto" }, children: M.map((x, R) => /* @__PURE__ */ e(Ye, { ...x }, R)) })
1074
1323
  ] })
1075
1324
  ] })
1076
1325
  ] }),
1077
- /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: 16, marginTop: 8 }, children: [
1078
- f && /* @__PURE__ */ e(
1326
+ /* @__PURE__ */ l("div", { style: { display: "flex", flexDirection: "column", gap: 16, marginTop: 8 }, children: [
1327
+ h && /* @__PURE__ */ e(
1079
1328
  "span",
1080
1329
  {
1081
1330
  style: {
1082
- fontFamily: V,
1331
+ fontFamily: te,
1083
1332
  fontWeight: 600,
1084
1333
  fontSize: 16,
1085
- color: r.ink,
1334
+ color: a.ink,
1086
1335
  lineHeight: 1.2
1087
1336
  },
1088
- children: f
1337
+ children: h
1089
1338
  }
1090
1339
  ),
1091
1340
  /* @__PURE__ */ e(
1092
- Xe,
1341
+ it,
1093
1342
  {
1094
- data: q,
1095
- columns: Q,
1096
- initialPageSize: y,
1097
- totalCount: Z,
1098
- page: te,
1099
- pageSize: ce,
1100
- onPageChange: pe,
1101
- onPageSizeChange: G,
1102
- onRowClick: be,
1103
- onVisibleColumnsChange: J
1343
+ data: ie,
1344
+ columns: ae,
1345
+ initialPageSize: J,
1346
+ totalCount: p,
1347
+ page: g,
1348
+ pageSize: T,
1349
+ onPageChange: P,
1350
+ onPageSizeChange: C,
1351
+ onRowClick: we,
1352
+ onVisibleColumnsChange: le
1104
1353
  }
1105
1354
  )
1106
1355
  ] })
@@ -1111,7 +1360,7 @@ function ut({
1111
1360
  }
1112
1361
  );
1113
1362
  }
1114
- const ae = { value: "", label: "", trend: "up" }, n = {
1363
+ const pe = { value: "", label: "", trend: "up" }, r = {
1115
1364
  ink: "var(--color-text)",
1116
1365
  muted: "var(--color-text-secondary)",
1117
1366
  border: "var(--grey-absent)",
@@ -1137,41 +1386,41 @@ const ae = { value: "", label: "", trend: "up" }, n = {
1137
1386
  shadowDropdown: "var(--shadow-dropdown)",
1138
1387
  railCompliance: "var(--rail-compliance)"
1139
1388
  // section icon accent
1140
- }, K = "var(--font-sans, 'Averta', ui-sans-serif, system-ui, sans-serif)", D = "var(--font-sans, 'Averta', ui-sans-serif, system-ui, sans-serif)";
1141
- function Ge({ trend: t = "up", width: l = 49.618, height: a = 35 }) {
1142
- const o = S.useId(), d = "M1.00049 13.5213C7.85975 11.7032 8.88149 4.73912 13.7838 4.73912C19.8344 4.73912 23.6237 17.166 29.1281 17.166C34.5998 17.166 37.4149 4.88121 43.4004 8.61051C47.9764 11.4616 50.6186 1.00024 50.6186 1.00024", s = "M1.00049 16.692C8.88149 15.6975 8.88149 7.79403 13.7838 7.79403C19.8344 7.79403 23.6237 21.4034 29.1281 21.4034C34.5998 21.4034 37.4149 8.93821 43.4004 12.7223C47.9764 15.6152 50.6186 5.00024 50.6186 5.00024V36.0002C50.6186 36.0002 10.8223 36.0002 1.00049 36.0002C1.00049 28.8653 1.00049 19.4871 1.00049 16.692Z";
1143
- return /* @__PURE__ */ i(
1389
+ }, ne = "var(--font-sans, 'Averta', ui-sans-serif, system-ui, sans-serif)", z = "var(--font-sans, 'Averta', ui-sans-serif, system-ui, sans-serif)";
1390
+ function ft({ trend: t = "up", points: n, width: i = 49.618, height: o = 35 }) {
1391
+ const s = S.useId(), d = st(n), c = d ? d.line : ot, u = d ? d.area : at, F = Ce(n) ?? t;
1392
+ return /* @__PURE__ */ l(
1144
1393
  "svg",
1145
1394
  {
1146
- width: l,
1147
- height: a,
1395
+ width: i,
1396
+ height: o,
1148
1397
  viewBox: "0 0 52 36",
1149
1398
  fill: "none",
1150
1399
  style: {
1151
1400
  flexShrink: 0,
1152
- transform: t === "down" ? "scaleX(-1)" : void 0
1401
+ transform: !d && F === "down" ? "scaleX(-1)" : void 0
1153
1402
  },
1154
1403
  children: [
1155
- /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ i(
1404
+ /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ l(
1156
1405
  "linearGradient",
1157
1406
  {
1158
- id: `spark-${o}`,
1407
+ id: `spark-${s}`,
1159
1408
  x1: "9.96776",
1160
1409
  y1: "16.2053",
1161
1410
  x2: "9.96776",
1162
1411
  y2: "36.0002",
1163
1412
  gradientUnits: "userSpaceOnUse",
1164
1413
  children: [
1165
- /* @__PURE__ */ e("stop", { stopColor: n.ink }),
1166
- /* @__PURE__ */ e("stop", { offset: "1", stopColor: n.white, stopOpacity: "0.01" })
1414
+ /* @__PURE__ */ e("stop", { stopColor: r.ink }),
1415
+ /* @__PURE__ */ e("stop", { offset: "1", stopColor: r.white, stopOpacity: "0.01" })
1167
1416
  ]
1168
1417
  }
1169
1418
  ) }),
1170
1419
  /* @__PURE__ */ e(
1171
1420
  "path",
1172
1421
  {
1173
- d: s,
1174
- fill: `url(#spark-${o})`,
1422
+ d: u,
1423
+ fill: `url(#spark-${s})`,
1175
1424
  fillRule: "evenodd",
1176
1425
  clipRule: "evenodd",
1177
1426
  opacity: "0.1"
@@ -1180,74 +1429,79 @@ function Ge({ trend: t = "up", width: l = 49.618, height: a = 35 }) {
1180
1429
  /* @__PURE__ */ e(
1181
1430
  "path",
1182
1431
  {
1183
- d,
1184
- stroke: n.ink,
1432
+ d: c,
1433
+ stroke: r.ink,
1185
1434
  strokeWidth: "2",
1186
1435
  fill: "none",
1187
1436
  strokeLinecap: "round",
1188
1437
  strokeLinejoin: "round",
1189
- strokeDasharray: t === "down" ? "2 4" : void 0
1438
+ strokeDasharray: !d && F === "down" ? "2 4" : void 0
1190
1439
  }
1191
1440
  )
1192
1441
  ]
1193
1442
  }
1194
1443
  );
1195
1444
  }
1196
- function Ve({ direction: t = "up", color: l = n.muted }) {
1445
+ function pt(t, n) {
1446
+ return Ce(n) ?? (t === "down" ? "down" : "up");
1447
+ }
1448
+ function ht({ direction: t = "up", color: n = r.muted }) {
1197
1449
  return /* @__PURE__ */ e("svg", { width: 18, height: 9.5, viewBox: "0 0 19 10", fill: "none", style: { flexShrink: 0 }, children: /* @__PURE__ */ e(
1198
1450
  "path",
1199
1451
  {
1200
1452
  d: t === "up" ? "M12.4167 0.75H17.4167M17.4167 0.75V5.75M17.4167 0.75L10.3333 7.83333L6.16667 3.66667L0.75 9.08333" : "M12.4167 9.25H17.4167M17.4167 9.25V4.25M17.4167 9.25L10.3333 2.16667L6.16667 6.33333L0.75 0.91667",
1201
- stroke: l,
1453
+ stroke: n,
1202
1454
  strokeWidth: "1.5",
1203
1455
  strokeLinecap: "round",
1204
1456
  strokeLinejoin: "round"
1205
1457
  }
1206
1458
  ) });
1207
1459
  }
1208
- function Me({ value: t, label: l, trend: a = "up", muted: o = !1, beigeBg: d = !1, style: s = {} }) {
1209
- return /* @__PURE__ */ i(
1460
+ function Ve({ value: t, label: n, trend: i = "up", points: o, muted: s = !1, beigeBg: d = !1, style: c = {} }) {
1461
+ const u = pt(i, o);
1462
+ return /* @__PURE__ */ l(
1210
1463
  "div",
1211
1464
  {
1212
1465
  style: {
1213
- background: d ? n.beige : n.white,
1214
- border: `1px solid ${n.border}`,
1466
+ background: d ? r.beige : r.white,
1467
+ border: `1px solid ${r.border}`,
1215
1468
  borderRadius: 8,
1216
1469
  padding: 16,
1217
1470
  display: "flex",
1218
1471
  flexDirection: "column",
1219
1472
  gap: 8,
1220
1473
  boxSizing: "border-box",
1221
- ...s
1474
+ ...c
1222
1475
  },
1223
1476
  children: [
1224
- /* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "flex-start", justifyContent: "space-between" }, children: [
1225
- /* @__PURE__ */ e(Ge, { trend: a }),
1226
- /* @__PURE__ */ e(Ve, { direction: a })
1477
+ /* @__PURE__ */ l("div", { style: { display: "flex", alignItems: "flex-start", justifyContent: "space-between" }, children: [
1478
+ /* @__PURE__ */ e(ft, { trend: u, points: o }),
1479
+ /* @__PURE__ */ e(ht, { direction: u })
1227
1480
  ] }),
1228
- /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: 8, marginTop: 8 }, children: [
1481
+ /* @__PURE__ */ l("div", { style: { display: "flex", flexDirection: "column", gap: 8, marginTop: 8 }, children: [
1229
1482
  /* @__PURE__ */ e(
1230
1483
  "div",
1231
1484
  {
1232
1485
  style: {
1233
- fontFamily: K,
1486
+ fontFamily: ne,
1234
1487
  fontSize: 28,
1235
1488
  fontWeight: 500,
1236
1489
  lineHeight: "1.2",
1237
- color: o ? n.muted : n.ink,
1490
+ color: s ? r.muted : r.ink,
1238
1491
  letterSpacing: "-0.01em"
1239
1492
  },
1240
1493
  children: t
1241
1494
  }
1242
1495
  ),
1243
- /* @__PURE__ */ e("div", { style: { fontFamily: D, fontSize: 13, color: n.ink, lineHeight: "1.2" }, children: l })
1496
+ /* @__PURE__ */ e("div", { style: { fontFamily: z, fontSize: 13, color: r.ink, lineHeight: "1.2" }, children: n })
1244
1497
  ] })
1245
1498
  ]
1246
1499
  }
1247
1500
  );
1248
1501
  }
1249
- function Se({ value: t, label: l, trend: a = "up", withDivider: o = !1 }) {
1250
- return /* @__PURE__ */ i(
1502
+ function ze({ value: t, label: n, trend: i = "up", points: o, withDivider: s = !1 }) {
1503
+ const d = pt(i, o);
1504
+ return /* @__PURE__ */ l(
1251
1505
  "div",
1252
1506
  {
1253
1507
  style: {
@@ -1255,38 +1509,38 @@ function Se({ value: t, label: l, trend: a = "up", withDivider: o = !1 }) {
1255
1509
  display: "flex",
1256
1510
  flexDirection: "column",
1257
1511
  gap: 8,
1258
- paddingLeft: o ? 24 : 0,
1259
- borderLeft: o ? `1px solid ${n.border}` : "none",
1512
+ paddingLeft: s ? 24 : 0,
1513
+ borderLeft: s ? `1px solid ${r.border}` : "none",
1260
1514
  minWidth: 0
1261
1515
  },
1262
1516
  children: [
1263
- /* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "flex-start", justifyContent: "space-between" }, children: [
1264
- /* @__PURE__ */ e(Ge, { trend: a }),
1265
- /* @__PURE__ */ e(Ve, { direction: a })
1517
+ /* @__PURE__ */ l("div", { style: { display: "flex", alignItems: "flex-start", justifyContent: "space-between" }, children: [
1518
+ /* @__PURE__ */ e(ft, { trend: d, points: o }),
1519
+ /* @__PURE__ */ e(ht, { direction: d })
1266
1520
  ] }),
1267
- /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: 8, marginTop: 8 }, children: [
1521
+ /* @__PURE__ */ l("div", { style: { display: "flex", flexDirection: "column", gap: 8, marginTop: 8 }, children: [
1268
1522
  /* @__PURE__ */ e(
1269
1523
  "div",
1270
1524
  {
1271
1525
  style: {
1272
- fontFamily: K,
1526
+ fontFamily: ne,
1273
1527
  fontSize: 28,
1274
1528
  fontWeight: 500,
1275
1529
  lineHeight: "1.2",
1276
- color: n.muted,
1530
+ color: r.muted,
1277
1531
  letterSpacing: "-0.01em"
1278
1532
  },
1279
1533
  children: t
1280
1534
  }
1281
1535
  ),
1282
- /* @__PURE__ */ e("div", { style: { fontFamily: D, fontSize: 13, color: n.ink, lineHeight: "1.2" }, children: l })
1536
+ /* @__PURE__ */ e("div", { style: { fontFamily: z, fontSize: 13, color: r.ink, lineHeight: "1.2" }, children: n })
1283
1537
  ] })
1284
1538
  ]
1285
1539
  }
1286
1540
  );
1287
1541
  }
1288
- function yt({ icon: t, children: l, trailing: a }) {
1289
- return /* @__PURE__ */ i(
1542
+ function Et({ icon: t, children: n, trailing: i }) {
1543
+ return /* @__PURE__ */ l(
1290
1544
  "button",
1291
1545
  {
1292
1546
  type: "button",
@@ -1297,23 +1551,23 @@ function yt({ icon: t, children: l, trailing: a }) {
1297
1551
  height: 32,
1298
1552
  padding: "0 16px",
1299
1553
  borderRadius: 10,
1300
- border: `1px solid ${n.neutralBorder}`,
1301
- background: n.white,
1554
+ border: `1px solid ${r.neutralBorder}`,
1555
+ background: r.white,
1302
1556
  cursor: "pointer",
1303
- fontFamily: D,
1557
+ fontFamily: z,
1304
1558
  fontSize: 14,
1305
- color: n.neutral800,
1559
+ color: r.neutral800,
1306
1560
  whiteSpace: "nowrap"
1307
1561
  },
1308
1562
  children: [
1309
1563
  t && /* @__PURE__ */ e(t, { size: 18, strokeWidth: 1.75 }),
1310
- l,
1311
- a && /* @__PURE__ */ e(a, { size: 16, strokeWidth: 2 })
1564
+ n,
1565
+ i && /* @__PURE__ */ e(i, { size: 16, strokeWidth: 2 })
1312
1566
  ]
1313
1567
  }
1314
1568
  );
1315
1569
  }
1316
- const gt = [
1570
+ const Ot = [
1317
1571
  "January",
1318
1572
  "February",
1319
1573
  "March",
@@ -1326,116 +1580,116 @@ const gt = [
1326
1580
  "October",
1327
1581
  "November",
1328
1582
  "December"
1329
- ], mt = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
1330
- function fe(t) {
1331
- const l = new Date(t);
1332
- return l.setHours(0, 0, 0, 0), l;
1583
+ ], _t = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
1584
+ function ge(t) {
1585
+ const n = new Date(t);
1586
+ return n.setHours(0, 0, 0, 0), n;
1333
1587
  }
1334
- function bt(t, l) {
1335
- const o = new Date(t, l, 1).getDay(), d = new Date(t, l, 1 - o);
1336
- return Array.from({ length: 42 }, (s, p) => {
1337
- const h = new Date(d);
1338
- return h.setDate(d.getDate() + p), h;
1588
+ function jt(t, n) {
1589
+ const o = new Date(t, n, 1).getDay(), s = new Date(t, n, 1 - o);
1590
+ return Array.from({ length: 42 }, (d, c) => {
1591
+ const u = new Date(s);
1592
+ return u.setDate(s.getDate() + c), u;
1339
1593
  });
1340
1594
  }
1341
- function xt({ value: t, onApply: l, onClose: a, anchorRef: o }) {
1342
- const d = S.useRef(null), [s, p] = S.useState(t != null && t.from ? fe(t.from) : null), [h, v] = S.useState(t != null && t.to ? fe(t.to) : null), u = s || /* @__PURE__ */ new Date(), [g, x] = S.useState(u.getFullYear()), [m, z] = S.useState(u.getMonth()), [O, k] = S.useState({ top: 0, left: 0 });
1595
+ function Yt({ value: t, onApply: n, onClose: i, anchorRef: o }) {
1596
+ const s = S.useRef(null), [d, c] = S.useState(t != null && t.from ? ge(t.from) : null), [u, F] = S.useState(t != null && t.to ? ge(t.to) : null), y = d || /* @__PURE__ */ new Date(), [m, b] = S.useState(y.getFullYear()), [k, D] = S.useState(y.getMonth()), [$, L] = S.useState({ top: 0, left: 0 });
1343
1597
  S.useLayoutEffect(() => {
1344
- const f = () => {
1598
+ const h = () => {
1345
1599
  if (!(o != null && o.current))
1346
1600
  return;
1347
- const F = o.current.getBoundingClientRect(), A = 320;
1348
- k({
1349
- top: F.bottom + 6,
1350
- left: Math.max(8, F.right - A)
1601
+ const v = o.current.getBoundingClientRect(), I = 320;
1602
+ L({
1603
+ top: v.bottom + 6,
1604
+ left: Math.max(8, v.right - I)
1351
1605
  });
1352
1606
  };
1353
- return f(), window.addEventListener("scroll", f, !0), window.addEventListener("resize", f), () => {
1354
- window.removeEventListener("scroll", f, !0), window.removeEventListener("resize", f);
1607
+ return h(), window.addEventListener("scroll", h, !0), window.addEventListener("resize", h), () => {
1608
+ window.removeEventListener("scroll", h, !0), window.removeEventListener("resize", h);
1355
1609
  };
1356
1610
  }, [o]), S.useEffect(() => {
1357
- const f = (A) => {
1358
- var j, T;
1359
- (j = d.current) != null && j.contains(A.target) || (T = o == null ? void 0 : o.current) != null && T.contains(A.target) || a();
1360
- }, F = (A) => {
1361
- A.key === "Escape" && a();
1611
+ const h = (I) => {
1612
+ var H, K;
1613
+ (H = s.current) != null && H.contains(I.target) || (K = o == null ? void 0 : o.current) != null && K.contains(I.target) || i();
1614
+ }, v = (I) => {
1615
+ I.key === "Escape" && i();
1362
1616
  };
1363
- return document.addEventListener("mousedown", f), document.addEventListener("keydown", F), () => {
1364
- document.removeEventListener("mousedown", f), document.removeEventListener("keydown", F);
1617
+ return document.addEventListener("mousedown", h), document.addEventListener("keydown", v), () => {
1618
+ document.removeEventListener("mousedown", h), document.removeEventListener("keydown", v);
1365
1619
  };
1366
- }, [a, o]);
1367
- const N = bt(g, m), _ = fe(/* @__PURE__ */ new Date()), E = (f) => {
1368
- const F = fe(f);
1369
- F > _ || (!s || s && h ? (p(F), v(null)) : F < s ? p(F) : v(F));
1370
- }, B = () => {
1371
- m === 0 ? (z(11), x(g - 1)) : z(m - 1);
1372
- }, U = () => {
1373
- m === 11 ? (z(0), x(g + 1)) : z(m + 1);
1374
- }, X = (f) => s && h && f >= s && f <= h, L = (f) => s && f.getTime() === s.getTime() || h && f.getTime() === h.getTime();
1375
- return tt(
1376
- /* @__PURE__ */ i(
1620
+ }, [i, o]);
1621
+ const Y = jt(m, k), M = ge(/* @__PURE__ */ new Date()), E = (h) => {
1622
+ const v = ge(h);
1623
+ v > M || (!d || d && u ? (c(v), F(null)) : v < d ? c(v) : F(v));
1624
+ }, X = () => {
1625
+ k === 0 ? (D(11), b(m - 1)) : D(k - 1);
1626
+ }, G = () => {
1627
+ k === 11 ? (D(0), b(m + 1)) : D(k + 1);
1628
+ }, O = (h) => d && u && h >= d && h <= u, Z = (h) => d && h.getTime() === d.getTime() || u && h.getTime() === u.getTime();
1629
+ return vt(
1630
+ /* @__PURE__ */ l(
1377
1631
  "div",
1378
1632
  {
1379
- ref: d,
1633
+ ref: s,
1380
1634
  style: {
1381
1635
  position: "fixed",
1382
- top: O.top,
1383
- left: O.left,
1636
+ top: $.top,
1637
+ left: $.left,
1384
1638
  width: 320,
1385
- background: n.white,
1386
- border: `1px solid ${n.borderSubtle}`,
1639
+ background: r.white,
1640
+ border: `1px solid ${r.borderSubtle}`,
1387
1641
  borderRadius: 12,
1388
- boxShadow: n.shadowPopover,
1642
+ boxShadow: r.shadowPopover,
1389
1643
  padding: 16,
1390
1644
  zIndex: 9999,
1391
- fontFamily: D
1645
+ fontFamily: z
1392
1646
  },
1393
1647
  children: [
1394
- /* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: 12 }, children: [
1395
- /* @__PURE__ */ e("button", { type: "button", onClick: B, style: Pe, "aria-label": "Previous month", children: /* @__PURE__ */ e(rt, { size: 18, strokeWidth: 1.75 }) }),
1396
- /* @__PURE__ */ i("div", { style: { fontSize: 14, fontWeight: 600, color: n.ink }, children: [
1397
- gt[m],
1648
+ /* @__PURE__ */ l("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: 12 }, children: [
1649
+ /* @__PURE__ */ e("button", { type: "button", onClick: X, style: Xe, "aria-label": "Previous month", children: /* @__PURE__ */ e(Lt, { size: 18, strokeWidth: 1.75 }) }),
1650
+ /* @__PURE__ */ l("div", { style: { fontSize: 14, fontWeight: 600, color: r.ink }, children: [
1651
+ Ot[k],
1398
1652
  " ",
1399
- g
1653
+ m
1400
1654
  ] }),
1401
- /* @__PURE__ */ e("button", { type: "button", onClick: U, style: Pe, "aria-label": "Next month", children: /* @__PURE__ */ e(ot, { size: 18, strokeWidth: 1.75 }) })
1655
+ /* @__PURE__ */ e("button", { type: "button", onClick: G, style: Xe, "aria-label": "Next month", children: /* @__PURE__ */ e(zt, { size: 18, strokeWidth: 1.75 }) })
1402
1656
  ] }),
1403
- /* @__PURE__ */ e("div", { style: { display: "grid", gridTemplateColumns: "repeat(7, 1fr)", gap: 2, marginBottom: 4 }, children: mt.map((f) => /* @__PURE__ */ e("div", { style: { textAlign: "center", fontSize: 12, color: n.muted, padding: "4px 0" }, children: f }, f)) }),
1404
- /* @__PURE__ */ e("div", { style: { display: "grid", gridTemplateColumns: "repeat(7, 1fr)", gap: 2 }, children: N.map((f) => {
1405
- const F = f.getMonth() === m, A = X(f), j = L(f), T = f.getTime() === _.getTime(), P = f > _;
1657
+ /* @__PURE__ */ e("div", { style: { display: "grid", gridTemplateColumns: "repeat(7, 1fr)", gap: 2, marginBottom: 4 }, children: _t.map((h) => /* @__PURE__ */ e("div", { style: { textAlign: "center", fontSize: 12, color: r.muted, padding: "4px 0" }, children: h }, h)) }),
1658
+ /* @__PURE__ */ e("div", { style: { display: "grid", gridTemplateColumns: "repeat(7, 1fr)", gap: 2 }, children: Y.map((h) => {
1659
+ const v = h.getMonth() === k, I = O(h), H = Z(h), K = h.getTime() === M.getTime(), _ = h > M;
1406
1660
  return /* @__PURE__ */ e(
1407
1661
  "button",
1408
1662
  {
1409
1663
  type: "button",
1410
- onClick: () => E(f),
1411
- disabled: P,
1412
- "aria-disabled": P,
1664
+ onClick: () => E(h),
1665
+ disabled: _,
1666
+ "aria-disabled": _,
1413
1667
  style: {
1414
1668
  height: 36,
1415
1669
  border: "none",
1416
1670
  borderRadius: 8,
1417
- background: j ? n.black : A ? n.hoverWarm40 : "transparent",
1418
- color: j ? n.white : P ? n.textFaintGrey : F ? n.ink : n.muted,
1419
- fontFamily: D,
1671
+ background: H ? r.black : I ? r.hoverWarm40 : "transparent",
1672
+ color: H ? r.white : _ ? r.textFaintGrey : v ? r.ink : r.muted,
1673
+ fontFamily: z,
1420
1674
  fontSize: 13,
1421
- fontWeight: T ? 500 : 400,
1422
- cursor: P ? "not-allowed" : "pointer",
1423
- opacity: P ? 0.6 : 1
1675
+ fontWeight: K ? 500 : 400,
1676
+ cursor: _ ? "not-allowed" : "pointer",
1677
+ opacity: _ ? 0.6 : 1
1424
1678
  },
1425
- children: f.getDate()
1679
+ children: h.getDate()
1426
1680
  },
1427
- f.toISOString()
1681
+ h.toISOString()
1428
1682
  );
1429
1683
  }) }),
1430
- /* @__PURE__ */ i("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center", marginTop: 12, paddingTop: 12, borderTop: `1px solid ${n.borderSubtle}` }, children: [
1684
+ /* @__PURE__ */ l("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center", marginTop: 12, paddingTop: 12, borderTop: `1px solid ${r.borderSubtle}` }, children: [
1431
1685
  /* @__PURE__ */ e(
1432
1686
  "button",
1433
1687
  {
1434
1688
  type: "button",
1435
1689
  onClick: () => {
1436
- p(null), v(null);
1690
+ c(null), F(null);
1437
1691
  },
1438
- style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", fontSize: 14, fontWeight: 500, color: n.ink },
1692
+ style: { background: "transparent", border: "none", padding: 0, cursor: "pointer", fontSize: 14, fontWeight: 500, color: r.ink },
1439
1693
  children: "Clear"
1440
1694
  }
1441
1695
  ),
@@ -1443,21 +1697,21 @@ function xt({ value: t, onApply: l, onClose: a, anchorRef: o }) {
1443
1697
  "button",
1444
1698
  {
1445
1699
  type: "button",
1446
- disabled: !s || !h,
1700
+ disabled: !d || !u,
1447
1701
  onClick: () => {
1448
- l({ from: s, to: h }), a();
1702
+ n({ from: d, to: u }), i();
1449
1703
  },
1450
1704
  style: {
1451
- background: !s || !h ? n.neutralBorder : n.black,
1452
- color: n.white,
1705
+ background: !d || !u ? r.neutralBorder : r.black,
1706
+ color: r.white,
1453
1707
  border: "none",
1454
1708
  borderRadius: 10,
1455
1709
  height: 30,
1456
1710
  padding: "0 16px",
1457
- fontFamily: D,
1711
+ fontFamily: z,
1458
1712
  fontSize: 14,
1459
1713
  fontWeight: 600,
1460
- cursor: !s || !h ? "not-allowed" : "pointer"
1714
+ cursor: !d || !u ? "not-allowed" : "pointer"
1461
1715
  },
1462
1716
  children: "Apply"
1463
1717
  }
@@ -1469,7 +1723,7 @@ function xt({ value: t, onApply: l, onClose: a, anchorRef: o }) {
1469
1723
  document.body
1470
1724
  );
1471
1725
  }
1472
- const Pe = {
1726
+ const Xe = {
1473
1727
  display: "inline-flex",
1474
1728
  alignItems: "center",
1475
1729
  justifyContent: "center",
@@ -1479,17 +1733,17 @@ const Pe = {
1479
1733
  background: "transparent",
1480
1734
  borderRadius: 6,
1481
1735
  cursor: "pointer",
1482
- color: n.ink
1736
+ color: r.ink
1483
1737
  };
1484
- function Ke({ value: t, onChange: l }) {
1485
- const [a, o] = S.useState(!1), d = S.useRef(null), s = !!(t != null && t.from && (t != null && t.to));
1486
- return /* @__PURE__ */ i(_e, { children: [
1487
- /* @__PURE__ */ i(
1738
+ function yt({ value: t, onChange: n }) {
1739
+ const [i, o] = S.useState(!1), s = S.useRef(null), d = !!(t != null && t.from && (t != null && t.to));
1740
+ return /* @__PURE__ */ l(Je, { children: [
1741
+ /* @__PURE__ */ l(
1488
1742
  "button",
1489
1743
  {
1490
- ref: d,
1744
+ ref: s,
1491
1745
  type: "button",
1492
- onClick: () => o((p) => !p),
1746
+ onClick: () => o((c) => !c),
1493
1747
  style: {
1494
1748
  display: "inline-flex",
1495
1749
  alignItems: "center",
@@ -1497,47 +1751,47 @@ function Ke({ value: t, onChange: l }) {
1497
1751
  height: 32,
1498
1752
  padding: "0 16px",
1499
1753
  borderRadius: 10,
1500
- border: s ? "none" : `1px solid ${n.neutralBorder}`,
1501
- background: s ? n.black : n.white,
1754
+ border: d ? "none" : `1px solid ${r.neutralBorder}`,
1755
+ background: d ? r.black : r.white,
1502
1756
  cursor: "pointer",
1503
- fontFamily: D,
1757
+ fontFamily: z,
1504
1758
  fontSize: 14,
1505
- color: s ? n.white : n.neutral800,
1506
- fontWeight: s ? 600 : 400,
1759
+ color: d ? r.white : r.neutral800,
1760
+ fontWeight: d ? 600 : 400,
1507
1761
  whiteSpace: "nowrap"
1508
1762
  },
1509
1763
  children: [
1510
- /* @__PURE__ */ e(ge, { size: 18, strokeWidth: 1.75 }),
1764
+ /* @__PURE__ */ e(ve, { size: 18, strokeWidth: 1.75 }),
1511
1765
  "Date Range"
1512
1766
  ]
1513
1767
  }
1514
1768
  ),
1515
- a && /* @__PURE__ */ e(
1516
- xt,
1769
+ i && /* @__PURE__ */ e(
1770
+ Yt,
1517
1771
  {
1518
1772
  value: t,
1519
- anchorRef: d,
1773
+ anchorRef: s,
1520
1774
  onClose: () => o(!1),
1521
- onApply: (p) => l == null ? void 0 : l(p)
1775
+ onApply: (c) => n == null ? void 0 : n(c)
1522
1776
  }
1523
1777
  )
1524
1778
  ] });
1525
1779
  }
1526
- function vt({ label: t, active: l = !1, onClick: a }) {
1780
+ function Ut({ label: t, active: n = !1, onClick: i }) {
1527
1781
  return /* @__PURE__ */ e(
1528
1782
  "button",
1529
1783
  {
1530
1784
  type: "button",
1531
- onClick: a,
1785
+ onClick: i,
1532
1786
  style: {
1533
1787
  height: 32,
1534
1788
  minWidth: 31,
1535
1789
  padding: "0 12px",
1536
1790
  borderRadius: 10,
1537
- border: l ? "none" : `1px solid ${n.borderSubtle}`,
1538
- background: l ? n.black : n.white,
1539
- color: l ? n.white : n.black,
1540
- fontFamily: D,
1791
+ border: n ? "none" : `1px solid ${r.borderSubtle}`,
1792
+ background: n ? r.black : r.white,
1793
+ color: n ? r.white : r.black,
1794
+ fontFamily: z,
1541
1795
  fontSize: 14,
1542
1796
  cursor: "pointer"
1543
1797
  },
@@ -1545,46 +1799,27 @@ function vt({ label: t, active: l = !1, onClick: a }) {
1545
1799
  }
1546
1800
  );
1547
1801
  }
1548
- const kt = [
1802
+ const Vt = [
1549
1803
  { id: "8h", label: "8h" },
1550
1804
  { id: "1d", label: "1d" },
1551
1805
  { id: "7d", label: "7d" },
1552
1806
  { id: "30d", label: "30d" }
1553
- ], Ze = {
1554
- "8h": 8 * 60 * 60 * 1e3,
1555
- "1d": 24 * 60 * 60 * 1e3,
1556
- "7d": 7 * 24 * 60 * 60 * 1e3,
1557
- "30d": 30 * 24 * 60 * 60 * 1e3
1558
- };
1559
- function me(t) {
1560
- return t.toLocaleDateString("en-US", {
1561
- month: "2-digit",
1562
- day: "2-digit",
1563
- year: "numeric"
1564
- });
1565
- }
1566
- function wt(t) {
1567
- const l = Ze[t];
1568
- if (!l)
1569
- return "";
1570
- const a = /* @__PURE__ */ new Date(), o = new Date(a.getTime() - l);
1571
- return `${me(o)} – ${me(a)}`;
1572
- }
1573
- function St({ value: t = 0, max: l = 5 }) {
1574
- const a = typeof t == "number" ? t : parseFloat(t) || 0, o = Math.floor(a), d = a % 1 > 0 && o < l;
1575
- return /* @__PURE__ */ e("div", { style: { display: "flex", gap: 4 }, children: Array.from({ length: l }).map((s, p) => p < o ? /* @__PURE__ */ e(
1807
+ ];
1808
+ function Xt({ value: t = 0, max: n = 5 }) {
1809
+ const i = typeof t == "number" ? t : parseFloat(t) || 0, o = Math.floor(i), s = i % 1 > 0 && o < n;
1810
+ return /* @__PURE__ */ e("div", { style: { display: "flex", gap: 4 }, children: Array.from({ length: n }).map((d, c) => c < o ? /* @__PURE__ */ e(
1576
1811
  "span",
1577
1812
  {
1578
1813
  style: {
1579
1814
  width: 10,
1580
1815
  height: 10,
1581
1816
  borderRadius: "50%",
1582
- background: n.black,
1817
+ background: r.black,
1583
1818
  display: "inline-block"
1584
1819
  }
1585
1820
  },
1586
- p
1587
- ) : p === o && d ? /* @__PURE__ */ e(
1821
+ c
1822
+ ) : c === o && s ? /* @__PURE__ */ e(
1588
1823
  "span",
1589
1824
  {
1590
1825
  style: {
@@ -1602,13 +1837,13 @@ function St({ value: t = 0, max: l = 5 }) {
1602
1837
  width: 6,
1603
1838
  height: 6,
1604
1839
  borderRadius: "50%",
1605
- background: n.black,
1840
+ background: r.black,
1606
1841
  display: "inline-block"
1607
1842
  }
1608
1843
  }
1609
1844
  )
1610
1845
  },
1611
- p
1846
+ c
1612
1847
  ) : /* @__PURE__ */ e(
1613
1848
  "span",
1614
1849
  {
@@ -1616,16 +1851,16 @@ function St({ value: t = 0, max: l = 5 }) {
1616
1851
  width: 10,
1617
1852
  height: 10,
1618
1853
  borderRadius: "50%",
1619
- background: n.white,
1620
- border: `1px solid ${n.border}`,
1854
+ background: r.white,
1855
+ border: `1px solid ${r.border}`,
1621
1856
  display: "inline-block",
1622
1857
  boxSizing: "border-box"
1623
1858
  }
1624
1859
  },
1625
- p
1860
+ c
1626
1861
  )) });
1627
1862
  }
1628
- const It = [
1863
+ const en = [
1629
1864
  { id: "agent", label: "Agent", width: 180, sortable: !0, filterable: !0 },
1630
1865
  { id: "supervisor", label: "Supervisor", width: 170, sortable: !0, filterable: !0 },
1631
1866
  { id: "calls", label: "Calls", width: 100, sortable: !0 },
@@ -1639,16 +1874,16 @@ const It = [
1639
1874
  sortable: !0,
1640
1875
  filterable: !0,
1641
1876
  filterType: "number",
1642
- render: (t) => /* @__PURE__ */ i("span", { style: { display: "inline-flex", alignItems: "center", gap: 12 }, children: [
1877
+ render: (t) => /* @__PURE__ */ l("span", { style: { display: "inline-flex", alignItems: "center", gap: 12 }, children: [
1643
1878
  /* @__PURE__ */ e("span", { style: { minWidth: 32 }, children: t }),
1644
- /* @__PURE__ */ e(St, { value: typeof t == "number" ? t : 0 })
1879
+ /* @__PURE__ */ e(Xt, { value: typeof t == "number" ? t : 0 })
1645
1880
  ] })
1646
1881
  },
1647
1882
  { id: "totalDuration", label: "Total Duration", width: 150, sortable: !0, filterable: !0, filterType: "duration", filterShowPresets: !1 },
1648
1883
  { id: "avgDuration", label: "Average Duration", width: 170, sortable: !0, filterable: !0, filterType: "duration", filterShowPresets: !1 }
1649
1884
  ];
1650
- function ue({ icon: t, title: l, trailing: a, iconColor: o = n.ink, bordered: d = !1 }) {
1651
- return /* @__PURE__ */ i(
1885
+ function xe({ icon: t, title: n, trailing: i, iconColor: o = r.ink, bordered: s = !1 }) {
1886
+ return /* @__PURE__ */ l(
1652
1887
  "div",
1653
1888
  {
1654
1889
  style: {
@@ -1656,8 +1891,8 @@ function ue({ icon: t, title: l, trailing: a, iconColor: o = n.ink, bordered: d
1656
1891
  alignItems: "center",
1657
1892
  gap: 8,
1658
1893
  width: "100%",
1659
- paddingBottom: d ? 12 : 0,
1660
- borderBottom: d ? `1px solid ${n.border}` : "none"
1894
+ paddingBottom: s ? 12 : 0,
1895
+ borderBottom: s ? `1px solid ${r.border}` : "none"
1661
1896
  },
1662
1897
  children: [
1663
1898
  /* @__PURE__ */ e(
@@ -1679,24 +1914,24 @@ function ue({ icon: t, title: l, trailing: a, iconColor: o = n.ink, bordered: d
1679
1914
  {
1680
1915
  style: {
1681
1916
  flex: 1,
1682
- fontFamily: K,
1917
+ fontFamily: ne,
1683
1918
  fontWeight: 600,
1684
1919
  fontSize: 16,
1685
- color: n.ink,
1920
+ color: r.ink,
1686
1921
  lineHeight: "1.2",
1687
1922
  textTransform: "uppercase",
1688
1923
  letterSpacing: "0.02em"
1689
1924
  },
1690
- children: l
1925
+ children: n
1691
1926
  }
1692
1927
  ),
1693
- a && /* @__PURE__ */ e("div", { style: { fontFamily: D, fontSize: 14, color: n.ink }, children: a })
1928
+ i && /* @__PURE__ */ e("div", { style: { fontFamily: z, fontSize: 14, color: r.ink }, children: i })
1694
1929
  ]
1695
1930
  }
1696
1931
  );
1697
1932
  }
1698
- function Re({ icon: t, title: l }) {
1699
- return /* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "center", gap: 16, width: "100%" }, children: [
1933
+ function Ge({ icon: t, title: n }) {
1934
+ return /* @__PURE__ */ l("div", { style: { display: "flex", alignItems: "center", gap: 16, width: "100%" }, children: [
1700
1935
  /* @__PURE__ */ e(
1701
1936
  "div",
1702
1937
  {
@@ -1704,39 +1939,39 @@ function Re({ icon: t, title: l }) {
1704
1939
  width: 34,
1705
1940
  height: 34,
1706
1941
  borderRadius: 9999,
1707
- background: n.iconCircle,
1942
+ background: r.iconCircle,
1708
1943
  display: "flex",
1709
1944
  alignItems: "center",
1710
1945
  justifyContent: "center",
1711
1946
  flexShrink: 0
1712
1947
  },
1713
- children: /* @__PURE__ */ e(t, { size: 20, color: n.ink, strokeWidth: 1.75 })
1948
+ children: /* @__PURE__ */ e(t, { size: 20, color: r.ink, strokeWidth: 1.75 })
1714
1949
  }
1715
1950
  ),
1716
1951
  /* @__PURE__ */ e(
1717
1952
  "span",
1718
1953
  {
1719
1954
  style: {
1720
- fontFamily: K,
1955
+ fontFamily: ne,
1721
1956
  fontWeight: 600,
1722
1957
  fontSize: 16,
1723
- color: n.ink,
1958
+ color: r.ink,
1724
1959
  lineHeight: "24px"
1725
1960
  },
1726
- children: l
1961
+ children: n
1727
1962
  }
1728
1963
  )
1729
1964
  ] });
1730
1965
  }
1731
- function Oe({ title: t, summary: l, calls: a, percent: o, bullets: d, defaultExpanded: s = !1 }) {
1732
- const [p, h] = S.useState(s), v = Array.isArray(d) ? d : [];
1733
- return /* @__PURE__ */ i("div", { style: { borderTop: `1px solid ${n.border}` }, children: [
1734
- /* @__PURE__ */ i(
1966
+ function Ke({ title: t, summary: n, calls: i, percent: o, bullets: s, defaultExpanded: d = !1 }) {
1967
+ const [c, u] = S.useState(d), F = Array.isArray(s) ? s : [];
1968
+ return /* @__PURE__ */ l("div", { style: { borderTop: `1px solid ${r.border}` }, children: [
1969
+ /* @__PURE__ */ l(
1735
1970
  "button",
1736
1971
  {
1737
1972
  type: "button",
1738
- onClick: () => h((u) => !u),
1739
- "aria-expanded": p,
1973
+ onClick: () => u((y) => !y),
1974
+ "aria-expanded": c,
1740
1975
  style: {
1741
1976
  border: "none",
1742
1977
  background: "transparent",
@@ -1747,10 +1982,10 @@ function Oe({ title: t, summary: l, calls: a, percent: o, bullets: d, defaultExp
1747
1982
  cursor: "pointer",
1748
1983
  width: "100%",
1749
1984
  textAlign: "left",
1750
- fontFamily: D
1985
+ fontFamily: z
1751
1986
  },
1752
1987
  children: [
1753
- /* @__PURE__ */ i(
1988
+ /* @__PURE__ */ l(
1754
1989
  "div",
1755
1990
  {
1756
1991
  style: {
@@ -1761,44 +1996,44 @@ function Oe({ title: t, summary: l, calls: a, percent: o, bullets: d, defaultExp
1761
1996
  minWidth: 0
1762
1997
  },
1763
1998
  children: [
1764
- /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: 12 }, children: [
1999
+ /* @__PURE__ */ l("div", { style: { display: "flex", flexDirection: "column", gap: 12 }, children: [
1765
2000
  /* @__PURE__ */ e(
1766
2001
  "div",
1767
2002
  {
1768
2003
  style: {
1769
- fontFamily: K,
2004
+ fontFamily: ne,
1770
2005
  fontWeight: 600,
1771
2006
  fontSize: 14,
1772
- color: n.black,
2007
+ color: r.black,
1773
2008
  lineHeight: "24px"
1774
2009
  },
1775
2010
  children: t
1776
2011
  }
1777
2012
  ),
1778
- /* @__PURE__ */ e("div", { style: { fontFamily: D, fontSize: 14, color: n.muted, lineHeight: "24px" }, children: l })
2013
+ /* @__PURE__ */ e("div", { style: { fontFamily: z, fontSize: 14, color: r.muted, lineHeight: "24px" }, children: n })
1779
2014
  ] }),
1780
- /* @__PURE__ */ i("div", { style: { display: "flex", gap: 16 }, children: [
1781
- /* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "center", gap: 4 }, children: [
1782
- /* @__PURE__ */ e(de, { size: 14, color: n.ink, strokeWidth: 1.75 }),
1783
- /* @__PURE__ */ e("span", { style: { fontFamily: D, fontSize: 12, color: n.ink, lineHeight: 1.5 }, children: a })
2015
+ /* @__PURE__ */ l("div", { style: { display: "flex", gap: 16 }, children: [
2016
+ /* @__PURE__ */ l("div", { style: { display: "flex", alignItems: "center", gap: 4 }, children: [
2017
+ /* @__PURE__ */ e(ye, { size: 14, color: r.ink, strokeWidth: 1.75 }),
2018
+ /* @__PURE__ */ e("span", { style: { fontFamily: z, fontSize: 12, color: r.ink, lineHeight: 1.5 }, children: i })
1784
2019
  ] }),
1785
- /* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "center", gap: 4 }, children: [
1786
- /* @__PURE__ */ e(Ue, { size: 14, color: n.ink, strokeWidth: 1.75 }),
1787
- /* @__PURE__ */ e("span", { style: { fontFamily: D, fontSize: 12, color: n.ink, lineHeight: 1.5 }, children: o })
2020
+ /* @__PURE__ */ l("div", { style: { display: "flex", alignItems: "center", gap: 4 }, children: [
2021
+ /* @__PURE__ */ e(nt, { size: 14, color: r.ink, strokeWidth: 1.75 }),
2022
+ /* @__PURE__ */ e("span", { style: { fontFamily: z, fontSize: 12, color: r.ink, lineHeight: 1.5 }, children: o })
1788
2023
  ] })
1789
2024
  ] })
1790
2025
  ]
1791
2026
  }
1792
2027
  ),
1793
2028
  /* @__PURE__ */ e(
1794
- De,
2029
+ We,
1795
2030
  {
1796
2031
  size: 20,
1797
- color: n.ink,
2032
+ color: r.ink,
1798
2033
  strokeWidth: 2,
1799
2034
  style: {
1800
2035
  flexShrink: 0,
1801
- transform: p ? "rotate(180deg)" : "none",
2036
+ transform: c ? "rotate(180deg)" : "none",
1802
2037
  transition: "transform 150ms ease"
1803
2038
  }
1804
2039
  }
@@ -1806,7 +2041,7 @@ function Oe({ title: t, summary: l, calls: a, percent: o, bullets: d, defaultExp
1806
2041
  ]
1807
2042
  }
1808
2043
  ),
1809
- p && v.length > 0 && /* @__PURE__ */ e(
2044
+ c && F.length > 0 && /* @__PURE__ */ e(
1810
2045
  "div",
1811
2046
  {
1812
2047
  style: {
@@ -1815,37 +2050,37 @@ function Oe({ title: t, summary: l, calls: a, percent: o, bullets: d, defaultExp
1815
2050
  gap: 12,
1816
2051
  padding: "0 16px 16px"
1817
2052
  },
1818
- children: v.map((u, g) => /* @__PURE__ */ i(
2053
+ children: F.map((y, m) => /* @__PURE__ */ l(
1819
2054
  "div",
1820
2055
  {
1821
2056
  style: {
1822
2057
  display: "flex",
1823
2058
  alignItems: "center",
1824
2059
  justifyContent: "space-between",
1825
- fontFamily: D,
2060
+ fontFamily: z,
1826
2061
  fontSize: 14,
1827
- color: n.ink,
2062
+ color: r.ink,
1828
2063
  lineHeight: "24px",
1829
2064
  gap: 16
1830
2065
  },
1831
2066
  children: [
1832
- u.href ? /* @__PURE__ */ e(
2067
+ y.href ? /* @__PURE__ */ e(
1833
2068
  "a",
1834
2069
  {
1835
- href: u.href,
2070
+ href: y.href,
1836
2071
  target: "_blank",
1837
2072
  rel: "noopener noreferrer",
1838
2073
  style: {
1839
- color: n.ink,
2074
+ color: r.ink,
1840
2075
  textDecoration: "underline",
1841
2076
  textUnderlineOffset: 2,
1842
- textDecorationColor: n.border,
2077
+ textDecorationColor: r.border,
1843
2078
  minWidth: 0,
1844
2079
  overflow: "hidden",
1845
2080
  textOverflow: "ellipsis",
1846
2081
  whiteSpace: "nowrap"
1847
2082
  },
1848
- children: u.text
2083
+ children: y.text
1849
2084
  }
1850
2085
  ) : /* @__PURE__ */ e(
1851
2086
  "span",
@@ -1856,27 +2091,27 @@ function Oe({ title: t, summary: l, calls: a, percent: o, bullets: d, defaultExp
1856
2091
  textOverflow: "ellipsis",
1857
2092
  whiteSpace: "nowrap"
1858
2093
  },
1859
- children: u.text
2094
+ children: y.text
1860
2095
  }
1861
2096
  ),
1862
- /* @__PURE__ */ i("span", { style: { display: "inline-flex", gap: 4, whiteSpace: "nowrap" }, children: [
1863
- /* @__PURE__ */ e("span", { style: { color: n.ink }, children: u.citation }),
1864
- /* @__PURE__ */ i("span", { style: { color: n.muted }, children: [
2097
+ /* @__PURE__ */ l("span", { style: { display: "inline-flex", gap: 4, whiteSpace: "nowrap" }, children: [
2098
+ /* @__PURE__ */ e("span", { style: { color: r.ink }, children: y.citation }),
2099
+ /* @__PURE__ */ l("span", { style: { color: r.muted }, children: [
1865
2100
  "(",
1866
- u.date,
2101
+ y.date,
1867
2102
  ")"
1868
2103
  ] })
1869
2104
  ] })
1870
2105
  ]
1871
2106
  },
1872
- g
2107
+ m
1873
2108
  ))
1874
2109
  }
1875
2110
  )
1876
2111
  ] });
1877
2112
  }
1878
- function ye({ label: t, value: l }) {
1879
- return /* @__PURE__ */ i(
2113
+ function be({ label: t, value: n }) {
2114
+ return /* @__PURE__ */ l(
1880
2115
  "div",
1881
2116
  {
1882
2117
  style: {
@@ -1884,154 +2119,154 @@ function ye({ label: t, value: l }) {
1884
2119
  justifyContent: "space-between",
1885
2120
  alignItems: "center",
1886
2121
  padding: "12px 0",
1887
- borderBottom: `1px solid ${n.border}`,
1888
- fontFamily: D,
2122
+ borderBottom: `1px solid ${r.border}`,
2123
+ fontFamily: z,
1889
2124
  fontSize: 13,
1890
2125
  lineHeight: "24px"
1891
2126
  },
1892
2127
  children: [
1893
- /* @__PURE__ */ e("span", { style: { color: n.ink }, children: t }),
1894
- /* @__PURE__ */ e("span", { style: { color: n.muted }, children: l })
2128
+ /* @__PURE__ */ e("span", { style: { color: r.ink }, children: t }),
2129
+ /* @__PURE__ */ e("span", { style: { color: r.muted }, children: n })
1895
2130
  ]
1896
2131
  }
1897
2132
  );
1898
2133
  }
1899
- function se({ message: t = "" }) {
2134
+ function he({ message: t = "" }) {
1900
2135
  return t ? /* @__PURE__ */ e(
1901
2136
  "div",
1902
2137
  {
1903
2138
  style: {
1904
2139
  padding: "16px 0",
1905
- fontFamily: D,
2140
+ fontFamily: z,
1906
2141
  fontSize: 13,
1907
- color: n.muted,
2142
+ color: r.muted,
1908
2143
  lineHeight: 1.5
1909
2144
  },
1910
2145
  children: t
1911
2146
  }
1912
2147
  ) : null;
1913
2148
  }
1914
- function $t({
2149
+ function tn({
1915
2150
  className: t = "",
1916
- onAgentClick: l,
2151
+ onAgentClick: n,
1917
2152
  // Header text — empty defaults so host apps don't see demo copy. Hosts pass
1918
2153
  // their own page title / subtitle (the gallery in dev/App.jsx demonstrates
1919
2154
  // the intended "Performance" / "Agent performance metrics..." wording).
1920
- title: a = "",
2155
+ title: i = "",
1921
2156
  subtitle: o = "",
1922
- dateRangeLabel: d = "",
2157
+ dateRangeLabel: s = "",
1923
2158
  // View-by dropdown. `initialViewBy` seeds internal state on mount;
1924
2159
  // `onViewByChange(id)` fires when the user selects a different option.
1925
- viewByOptions: s = [],
1926
- initialViewBy: p = "",
1927
- onViewByChange: h,
2160
+ viewByOptions: d = [],
2161
+ initialViewBy: c = "",
2162
+ onViewByChange: u,
1928
2163
  // Label rendered above the View-by option list inside the popover. Empty by
1929
2164
  // default; the gallery passes "Aggregated By" to reproduce the Figma copy.
1930
- aggregatedByLabel: v = "",
2165
+ aggregatedByLabel: F = "",
1931
2166
  // KPI strip
1932
- volumeStat: u = ae,
1933
- compassStat: g = ae,
1934
- baselineSubStat: x = ae,
1935
- agentLiftSubStat: m = ae,
1936
- scoreSubStat: z = ae,
2167
+ volumeStat: y = pe,
2168
+ compassStat: m = pe,
2169
+ baselineSubStat: b = pe,
2170
+ agentLiftSubStat: k = pe,
2171
+ scoreSubStat: D = pe,
1937
2172
  // Agent table
1938
- agentRows: O = [],
1939
- agentColumns: k = [],
1940
- initialPageSize: N = 10,
2173
+ agentRows: $ = [],
2174
+ agentColumns: L = [],
2175
+ initialPageSize: Y = 10,
1941
2176
  // Insight sections — all titles, empty-state copy, and the section icons /
1942
2177
  // colors are host-driven so the library renders nothing concrete by default.
1943
- guidanceItems: _ = [],
2178
+ guidanceItems: M = [],
1944
2179
  strengthItems: E = [],
1945
- callDrivers: B = [],
1946
- callParadigms: U = [],
1947
- topSignalsLeft: X = [],
1948
- topSignalsRight: L = [],
1949
- topSignalsTrailing: f = "",
1950
- strengthsTitle: F = "",
1951
- guidanceTitle: A = "",
1952
- callMixTitle: j = "",
1953
- driversTitle: T = "",
1954
- paradigmsTitle: P = "",
1955
- topSignalsTitle: q = "",
1956
- emptyStrengthsMessage: Q = "",
1957
- emptyGuidanceMessage: y = "",
1958
- emptyDriversMessage: w = "",
1959
- emptyParadigmsMessage: H = "",
1960
- emptyTopSignalsMessage: $ = "",
2180
+ callDrivers: X = [],
2181
+ callParadigms: G = [],
2182
+ topSignalsLeft: O = [],
2183
+ topSignalsRight: Z = [],
2184
+ topSignalsTrailing: h = "",
2185
+ strengthsTitle: v = "",
2186
+ guidanceTitle: I = "",
2187
+ callMixTitle: H = "",
2188
+ driversTitle: K = "",
2189
+ paradigmsTitle: _ = "",
2190
+ topSignalsTitle: ie = "",
2191
+ emptyStrengthsMessage: ae = "",
2192
+ emptyGuidanceMessage: J = "",
2193
+ emptyDriversMessage: q = "",
2194
+ emptyParadigmsMessage: Q = "",
2195
+ emptyTopSignalsMessage: j = "",
1961
2196
  // Time-range chips (8h / 1d / 7d / 30d). Override `rangeOptions` to customize.
1962
2197
  // `selectedWindow` is the currently-active option id; `onWindowChange(id)` fires
1963
2198
  // when the user picks a new chip.
1964
- rangeOptions: ee = kt,
1965
- selectedWindow: Z = "30d",
1966
- onWindowChange: te,
2199
+ rangeOptions: se = Vt,
2200
+ selectedWindow: p = "30d",
2201
+ onWindowChange: g,
1967
2202
  // Host-provided date-range picker node. Should render its own trigger button
1968
2203
  // and popover. When provided, replaces the built-in default picker.
1969
2204
  // (Same slot pattern as DataTableFilters2's `dateRangePicker` prop.)
1970
- dateRangePicker: ce,
2205
+ dateRangePicker: T,
1971
2206
  // Used by the built-in default picker when `dateRangePicker` is not provided.
1972
2207
  // `dateRange` is `{ from, to }` (Date objects); `onDateRangeChange` receives
1973
2208
  // the same shape when the user clicks Apply.
1974
- dateRange: pe,
1975
- onDateRangeChange: G,
2209
+ dateRange: P,
2210
+ onDateRangeChange: C,
1976
2211
  // Fires when the user clicks the Export CSV button in the header.
1977
- onExport: M,
2212
+ onExport: A,
1978
2213
  // Fires whenever the user toggles columns in the table's column picker —
1979
2214
  // hosts can scope their CSV export to whatever the user has visible.
1980
- onVisibleColumnsChange: be
2215
+ onVisibleColumnsChange: we
1981
2216
  }) {
1982
- var Ce, Le;
1983
- const [J, he] = S.useState(null), [I, ie] = S.useState(!1), [ne, W] = S.useState(p), [Y, ze] = S.useState(null), R = pe !== void 0 ? pe : Y, xe = !!(R != null && R.from && (R != null && R.to)), Je = (c) => {
1984
- ze(c), G == null || G(c);
1985
- }, qe = (c) => {
1986
- ze(null), G == null || G(null), te == null || te(c);
1987
- }, Fe = S.useRef(null), We = S.useRef(null);
2217
+ var Ne, Re;
2218
+ const [le, re] = S.useState(null), [N, U] = S.useState(!1), [de, Se] = S.useState(c), [x, R] = S.useState(null), B = P !== void 0 ? P : x, De = !!(B != null && B.from && (B != null && B.to)), mt = (f) => {
2219
+ R(f), C == null || C(f);
2220
+ }, gt = (f) => {
2221
+ R(null), C == null || C(null), g == null || g(f);
2222
+ }, He = S.useRef(null), Pe = S.useRef(null);
1988
2223
  S.useEffect(() => {
1989
- if (!I)
2224
+ if (!N)
1990
2225
  return;
1991
- const c = (b) => {
1992
- var le, Ie;
1993
- (le = We.current) != null && le.contains(b.target) || (Ie = Fe.current) != null && Ie.contains(b.target) || ie(!1);
2226
+ const f = (w) => {
2227
+ var ce, Be;
2228
+ (ce = Pe.current) != null && ce.contains(w.target) || (Be = He.current) != null && Be.contains(w.target) || U(!1);
1994
2229
  };
1995
- return document.addEventListener("mousedown", c), () => document.removeEventListener("mousedown", c);
1996
- }, [I]);
1997
- const Qe = ((Ce = s.find((c) => c.id === ne)) == null ? void 0 : Ce.label) || (((Le = s[0]) == null ? void 0 : Le.label) ?? ""), et = (c) => {
1998
- if (l) {
1999
- l(c);
2230
+ return document.addEventListener("mousedown", f), () => document.removeEventListener("mousedown", f);
2231
+ }, [N]);
2232
+ const xt = ((Ne = d.find((f) => f.id === de)) == null ? void 0 : Ne.label) || (((Re = d[0]) == null ? void 0 : Re.label) ?? ""), bt = (f) => {
2233
+ if (n) {
2234
+ n(f);
2000
2235
  return;
2001
2236
  }
2002
- he(c);
2237
+ re(f);
2003
2238
  };
2004
- return /* @__PURE__ */ i(_e, { children: [
2005
- J && (() => {
2006
- let c = null, b = null;
2007
- if (xe)
2008
- c = R.from, b = R.to;
2239
+ return /* @__PURE__ */ l(Je, { children: [
2240
+ le && (() => {
2241
+ let f = null, w = null;
2242
+ if (De)
2243
+ f = B.from, w = B.to;
2009
2244
  else {
2010
- const le = Ze[Z];
2011
- le && (b = /* @__PURE__ */ new Date(), c = new Date(b.getTime() - le));
2245
+ const ce = Te[p];
2246
+ ce && (w = /* @__PURE__ */ new Date(), f = new Date(w.getTime() - ce));
2012
2247
  }
2013
2248
  return /* @__PURE__ */ e(
2014
- ut,
2249
+ Bt,
2015
2250
  {
2016
2251
  className: t,
2017
- agentName: J.agent,
2018
- startDate: c || "",
2019
- endDate: b || "",
2020
- totalCalls: `${J.calls} Calls`,
2021
- onBack: () => he(null),
2022
- selectedWindow: Z,
2023
- dateRange: R
2252
+ agentName: le.agent,
2253
+ startDate: f || "",
2254
+ endDate: w || "",
2255
+ totalCalls: `${le.calls} Calls`,
2256
+ onBack: () => re(null),
2257
+ selectedWindow: p,
2258
+ dateRange: B
2024
2259
  }
2025
2260
  );
2026
2261
  })(),
2027
- /* @__PURE__ */ i(
2262
+ /* @__PURE__ */ l(
2028
2263
  "div",
2029
2264
  {
2030
2265
  className: t,
2031
2266
  style: {
2032
- background: n.white,
2033
- fontFamily: D,
2034
- color: n.ink,
2267
+ background: r.white,
2268
+ fontFamily: z,
2269
+ color: r.ink,
2035
2270
  width: "100%",
2036
2271
  minWidth: 1192,
2037
2272
  boxSizing: "border-box",
@@ -2040,34 +2275,34 @@ function $t({
2040
2275
  gap: 24,
2041
2276
  // Hide (don't unmount) when drilling into agent details so DataTable2's
2042
2277
  // internal filter / sort / pagination state survives the round trip.
2043
- display: J ? "none" : "flex"
2278
+ display: le ? "none" : "flex"
2044
2279
  },
2045
2280
  children: [
2046
- /* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "flex-start", gap: 8, paddingTop: 12 }, children: [
2047
- /* @__PURE__ */ i("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 4 }, children: [
2281
+ /* @__PURE__ */ l("div", { style: { display: "flex", alignItems: "flex-start", gap: 8, paddingTop: 12 }, children: [
2282
+ /* @__PURE__ */ l("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 4 }, children: [
2048
2283
  /* @__PURE__ */ e(
2049
2284
  "h1",
2050
2285
  {
2051
2286
  style: {
2052
- fontFamily: K,
2287
+ fontFamily: ne,
2053
2288
  fontSize: 24,
2054
2289
  fontWeight: 500,
2055
- color: n.ink,
2290
+ color: r.ink,
2056
2291
  margin: 0,
2057
2292
  lineHeight: "1.2",
2058
2293
  letterSpacing: "-0.01em"
2059
2294
  },
2060
- children: a
2295
+ children: i
2061
2296
  }
2062
2297
  ),
2063
- /* @__PURE__ */ e("p", { style: { fontFamily: D, fontSize: 14, color: "var(--neutral-950)", margin: 0, lineHeight: "1.4" }, children: o })
2298
+ /* @__PURE__ */ e("p", { style: { fontFamily: z, fontSize: 14, color: "var(--neutral-950)", margin: 0, lineHeight: "1.4" }, children: o })
2064
2299
  ] }),
2065
- /* @__PURE__ */ i(
2300
+ /* @__PURE__ */ l(
2066
2301
  "button",
2067
2302
  {
2068
2303
  type: "button",
2069
- onClick: () => M == null ? void 0 : M(),
2070
- disabled: !M,
2304
+ onClick: () => A == null ? void 0 : A(),
2305
+ disabled: !A,
2071
2306
  style: {
2072
2307
  display: "inline-flex",
2073
2308
  alignItems: "center",
@@ -2075,31 +2310,31 @@ function $t({
2075
2310
  height: 32,
2076
2311
  padding: "0 16px",
2077
2312
  borderRadius: 10,
2078
- border: `1px solid ${n.neutralBorder}`,
2079
- background: n.white,
2080
- cursor: M ? "pointer" : "not-allowed",
2081
- opacity: M ? 1 : 0.5,
2082
- fontFamily: D,
2313
+ border: `1px solid ${r.neutralBorder}`,
2314
+ background: r.white,
2315
+ cursor: A ? "pointer" : "not-allowed",
2316
+ opacity: A ? 1 : 0.5,
2317
+ fontFamily: z,
2083
2318
  fontSize: 14,
2084
- color: n.neutral800
2319
+ color: r.neutral800
2085
2320
  },
2086
2321
  children: [
2087
- /* @__PURE__ */ e(Be, { size: 18, strokeWidth: 1.75 }),
2322
+ /* @__PURE__ */ e(Ze, { size: 18, strokeWidth: 1.75 }),
2088
2323
  "Export CSV"
2089
2324
  ]
2090
2325
  }
2091
2326
  )
2092
2327
  ] }),
2093
- /* @__PURE__ */ i("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
2094
- /* @__PURE__ */ i("div", { style: { position: "relative" }, children: [
2095
- /* @__PURE__ */ i(
2328
+ /* @__PURE__ */ l("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
2329
+ /* @__PURE__ */ l("div", { style: { position: "relative" }, children: [
2330
+ /* @__PURE__ */ l(
2096
2331
  "button",
2097
2332
  {
2098
2333
  type: "button",
2099
- ref: Fe,
2100
- onClick: () => ie((c) => !c),
2334
+ ref: He,
2335
+ onClick: () => U((f) => !f),
2101
2336
  "aria-haspopup": "listbox",
2102
- "aria-expanded": I,
2337
+ "aria-expanded": N,
2103
2338
  style: {
2104
2339
  display: "inline-flex",
2105
2340
  alignItems: "center",
@@ -2107,24 +2342,24 @@ function $t({
2107
2342
  height: 32,
2108
2343
  padding: "0 16px",
2109
2344
  borderRadius: 10,
2110
- border: `1px solid ${n.neutralBorder}`,
2111
- background: n.white,
2345
+ border: `1px solid ${r.neutralBorder}`,
2346
+ background: r.white,
2112
2347
  cursor: "pointer",
2113
- fontFamily: D,
2348
+ fontFamily: z,
2114
2349
  fontSize: 14,
2115
2350
  lineHeight: "24px",
2116
- color: n.neutral800,
2351
+ color: r.neutral800,
2117
2352
  whiteSpace: "nowrap"
2118
2353
  },
2119
2354
  children: [
2120
- Qe,
2355
+ xt,
2121
2356
  /* @__PURE__ */ e(
2122
- De,
2357
+ We,
2123
2358
  {
2124
2359
  size: 20,
2125
2360
  strokeWidth: 1.75,
2126
2361
  style: {
2127
- transform: I ? "rotate(180deg)" : "none",
2362
+ transform: N ? "rotate(180deg)" : "none",
2128
2363
  transition: "transform 120ms ease"
2129
2364
  }
2130
2365
  }
@@ -2132,130 +2367,130 @@ function $t({
2132
2367
  ]
2133
2368
  }
2134
2369
  ),
2135
- I && /* @__PURE__ */ i(
2370
+ N && /* @__PURE__ */ l(
2136
2371
  "div",
2137
2372
  {
2138
- ref: We,
2373
+ ref: Pe,
2139
2374
  role: "listbox",
2140
2375
  style: {
2141
2376
  position: "absolute",
2142
2377
  top: 36,
2143
2378
  left: 0,
2144
2379
  zIndex: 20,
2145
- background: n.white,
2146
- border: `1px solid ${n.border}`,
2380
+ background: r.white,
2381
+ border: `1px solid ${r.border}`,
2147
2382
  borderRadius: 4,
2148
- boxShadow: n.shadowDropdown,
2383
+ boxShadow: r.shadowDropdown,
2149
2384
  display: "flex",
2150
2385
  flexDirection: "column",
2151
2386
  minWidth: 144,
2152
- fontFamily: D
2387
+ fontFamily: z
2153
2388
  },
2154
2389
  children: [
2155
- v && /* @__PURE__ */ e(
2390
+ F && /* @__PURE__ */ e(
2156
2391
  "div",
2157
2392
  {
2158
2393
  style: {
2159
2394
  padding: 12,
2160
- fontFamily: K,
2395
+ fontFamily: ne,
2161
2396
  fontWeight: 600,
2162
2397
  fontSize: 13,
2163
- color: n.ink,
2398
+ color: r.ink,
2164
2399
  lineHeight: 1.2
2165
2400
  },
2166
- children: v
2401
+ children: F
2167
2402
  }
2168
2403
  ),
2169
- s.map((c) => {
2170
- const b = ne === c.id;
2171
- return /* @__PURE__ */ i(
2404
+ d.map((f) => {
2405
+ const w = de === f.id;
2406
+ return /* @__PURE__ */ l(
2172
2407
  "button",
2173
2408
  {
2174
2409
  type: "button",
2175
2410
  role: "option",
2176
- "aria-selected": b,
2411
+ "aria-selected": w,
2177
2412
  onClick: () => {
2178
- c.id !== ne && (W(c.id), h == null || h(c.id)), ie(!1);
2413
+ f.id !== de && (Se(f.id), u == null || u(f.id)), U(!1);
2179
2414
  },
2180
2415
  style: {
2181
2416
  display: "flex",
2182
2417
  alignItems: "center",
2183
2418
  gap: 8,
2184
- padding: b ? 12 : "12px 12px 12px 40px",
2185
- borderTop: `1px solid ${n.border}`,
2419
+ padding: w ? 12 : "12px 12px 12px 40px",
2420
+ borderTop: `1px solid ${r.border}`,
2186
2421
  borderLeft: "none",
2187
2422
  borderRight: "none",
2188
2423
  borderBottom: "none",
2189
2424
  background: "transparent",
2190
2425
  cursor: "pointer",
2191
2426
  textAlign: "left",
2192
- fontFamily: D,
2427
+ fontFamily: z,
2193
2428
  fontSize: 13,
2194
2429
  lineHeight: 1.2,
2195
- color: n.ink,
2430
+ color: r.ink,
2196
2431
  width: "100%"
2197
2432
  },
2198
2433
  children: [
2199
- b && /* @__PURE__ */ e(nt, { size: 20, color: n.ink, strokeWidth: 1.75, style: { flexShrink: 0 } }),
2200
- /* @__PURE__ */ e("span", { children: c.label })
2434
+ w && /* @__PURE__ */ e(St, { size: 20, color: r.ink, strokeWidth: 1.75, style: { flexShrink: 0 } }),
2435
+ /* @__PURE__ */ e("span", { children: f.label })
2201
2436
  ]
2202
2437
  },
2203
- c.id
2438
+ f.id
2204
2439
  );
2205
2440
  })
2206
2441
  ]
2207
2442
  }
2208
2443
  )
2209
2444
  ] }),
2210
- /* @__PURE__ */ i("div", { style: { display: "flex", gap: 10, alignItems: "center" }, children: [
2445
+ /* @__PURE__ */ l("div", { style: { display: "flex", gap: 10, alignItems: "center" }, children: [
2211
2446
  (() => {
2212
- const b = (xe ? `${me(R.from)} – ${me(R.to)}` : "") || d || wt(Z);
2213
- return b ? /* @__PURE__ */ i(
2447
+ const w = (De ? `${ee(B.from)} – ${ee(B.to)}` : "") || It(p) || s;
2448
+ return w ? /* @__PURE__ */ l(
2214
2449
  "span",
2215
2450
  {
2216
2451
  style: {
2217
2452
  display: "inline-flex",
2218
2453
  alignItems: "center",
2219
2454
  gap: 6,
2220
- fontFamily: D,
2455
+ fontFamily: z,
2221
2456
  fontSize: 13,
2222
- color: n.ink
2457
+ color: r.ink
2223
2458
  },
2224
2459
  children: [
2225
- /* @__PURE__ */ e(ge, { size: 16, strokeWidth: 1.75, color: n.muted }),
2226
- b
2460
+ /* @__PURE__ */ e(ve, { size: 16, strokeWidth: 1.75, color: r.muted }),
2461
+ w
2227
2462
  ]
2228
2463
  }
2229
2464
  ) : null;
2230
2465
  })(),
2231
- ee.map((c) => /* @__PURE__ */ e(
2232
- vt,
2466
+ se.map((f) => /* @__PURE__ */ e(
2467
+ Ut,
2233
2468
  {
2234
- label: c.label,
2235
- active: !xe && c.id === Z,
2236
- onClick: () => qe(c.id)
2469
+ label: f.label,
2470
+ active: !De && f.id === p,
2471
+ onClick: () => gt(f.id)
2237
2472
  },
2238
- c.id
2473
+ f.id
2239
2474
  )),
2240
- ce ? /* @__PURE__ */ e(
2475
+ T ? /* @__PURE__ */ e(
2241
2476
  S.Suspense,
2242
2477
  {
2243
- fallback: /* @__PURE__ */ e(yt, { icon: ge, children: "Date Range" }),
2244
- children: ce
2478
+ fallback: /* @__PURE__ */ e(Et, { icon: ve, children: "Date Range" }),
2479
+ children: T
2245
2480
  }
2246
- ) : /* @__PURE__ */ e(Ke, { value: R, onChange: Je })
2481
+ ) : /* @__PURE__ */ e(yt, { value: B, onChange: mt })
2247
2482
  ] })
2248
2483
  ] }),
2249
- /* @__PURE__ */ i("div", { style: { display: "flex", gap: 24 }, children: [
2250
- /* @__PURE__ */ e(Me, { value: u.value, label: u.label, trend: u.trend, style: { width: 264, flexShrink: 0 } }),
2251
- /* @__PURE__ */ e(Me, { value: g.value, label: g.label, trend: g.trend, style: { width: 264, flexShrink: 0 } }),
2252
- /* @__PURE__ */ i(
2484
+ /* @__PURE__ */ l("div", { style: { display: "flex", gap: 24 }, children: [
2485
+ /* @__PURE__ */ e(Ve, { value: y.value, label: y.label, trend: y.trend, points: y.points, style: { width: 264, flexShrink: 0 } }),
2486
+ /* @__PURE__ */ e(Ve, { value: m.value, label: m.label, trend: m.trend, points: m.points, style: { width: 264, flexShrink: 0 } }),
2487
+ /* @__PURE__ */ l(
2253
2488
  "div",
2254
2489
  {
2255
2490
  style: {
2256
2491
  flex: 1,
2257
- background: n.beige,
2258
- border: `1px solid ${n.border}`,
2492
+ background: r.beige,
2493
+ border: `1px solid ${r.border}`,
2259
2494
  borderRadius: 8,
2260
2495
  padding: 16,
2261
2496
  display: "flex",
@@ -2264,75 +2499,75 @@ function $t({
2264
2499
  boxSizing: "border-box"
2265
2500
  },
2266
2501
  children: [
2267
- /* @__PURE__ */ e(Se, { value: x.value, label: x.label, trend: x.trend }),
2268
- /* @__PURE__ */ e(Se, { value: m.value, label: m.label, trend: m.trend, withDivider: !0 }),
2269
- /* @__PURE__ */ e(Se, { value: z.value, label: z.label, trend: z.trend, withDivider: !0 })
2502
+ /* @__PURE__ */ e(ze, { value: b.value, label: b.label, trend: b.trend, points: b.points }),
2503
+ /* @__PURE__ */ e(ze, { value: k.value, label: k.label, trend: k.trend, points: k.points, withDivider: !0 }),
2504
+ /* @__PURE__ */ e(ze, { value: D.value, label: D.label, trend: D.trend, points: D.points, withDivider: !0 })
2270
2505
  ]
2271
2506
  }
2272
2507
  )
2273
2508
  ] }),
2274
2509
  /* @__PURE__ */ e(
2275
- Xe,
2510
+ it,
2276
2511
  {
2277
- data: O,
2278
- columns: k,
2279
- initialPageSize: N,
2280
- onRowClick: et,
2281
- onVisibleColumnsChange: be
2512
+ data: $,
2513
+ columns: L,
2514
+ initialPageSize: Y,
2515
+ onRowClick: bt,
2516
+ onVisibleColumnsChange: we
2282
2517
  }
2283
2518
  ),
2284
- /* @__PURE__ */ i("div", { style: { display: "flex", gap: 24, alignItems: "flex-start" }, children: [
2285
- /* @__PURE__ */ i("div", { style: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column", gap: 16 }, children: [
2286
- /* @__PURE__ */ e(ue, { icon: je, title: F, iconColor: "var(--rail-compliance)" }),
2519
+ /* @__PURE__ */ l("div", { style: { display: "flex", gap: 24, alignItems: "flex-start" }, children: [
2520
+ /* @__PURE__ */ l("div", { style: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column", gap: 16 }, children: [
2521
+ /* @__PURE__ */ e(xe, { icon: qe, title: v, iconColor: "var(--rail-compliance)" }),
2287
2522
  /* @__PURE__ */ e(
2288
2523
  "div",
2289
2524
  {
2290
2525
  style: {
2291
2526
  display: "flex",
2292
2527
  flexDirection: "column",
2293
- borderBottom: `1px solid ${n.border}`,
2528
+ borderBottom: `1px solid ${r.border}`,
2294
2529
  maxHeight: 480,
2295
2530
  overflowY: "auto"
2296
2531
  },
2297
- children: E.length === 0 ? /* @__PURE__ */ e(se, { message: Q }) : E.map((c, b) => /* @__PURE__ */ e(Oe, { ...c }, b))
2532
+ children: E.length === 0 ? /* @__PURE__ */ e(he, { message: ae }) : E.map((f, w) => /* @__PURE__ */ e(Ke, { ...f }, w))
2298
2533
  }
2299
2534
  )
2300
2535
  ] }),
2301
- /* @__PURE__ */ i("div", { style: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column", gap: 16 }, children: [
2302
- /* @__PURE__ */ e(ue, { icon: Ne, title: A, iconColor: "var(--rail-compliance)" }),
2536
+ /* @__PURE__ */ l("div", { style: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column", gap: 16 }, children: [
2537
+ /* @__PURE__ */ e(xe, { icon: Qe, title: I, iconColor: "var(--rail-compliance)" }),
2303
2538
  /* @__PURE__ */ e(
2304
2539
  "div",
2305
2540
  {
2306
2541
  style: {
2307
2542
  display: "flex",
2308
2543
  flexDirection: "column",
2309
- borderBottom: `1px solid ${n.border}`,
2544
+ borderBottom: `1px solid ${r.border}`,
2310
2545
  maxHeight: 480,
2311
2546
  overflowY: "auto"
2312
2547
  },
2313
- children: _.length === 0 ? /* @__PURE__ */ e(se, { message: y }) : _.map((c, b) => /* @__PURE__ */ e(Oe, { ...c }, b))
2548
+ children: M.length === 0 ? /* @__PURE__ */ e(he, { message: J }) : M.map((f, w) => /* @__PURE__ */ e(Ke, { ...f }, w))
2314
2549
  }
2315
2550
  )
2316
2551
  ] })
2317
2552
  ] }),
2318
- /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: 16 }, children: [
2319
- /* @__PURE__ */ e(ue, { icon: de, title: j, iconColor: "var(--rail-compliance)" }),
2320
- /* @__PURE__ */ i("div", { style: { display: "flex", gap: 24, alignItems: "flex-start" }, children: [
2321
- /* @__PURE__ */ i("div", { style: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column", gap: 8 }, children: [
2322
- /* @__PURE__ */ e(Re, { icon: Ee, title: T }),
2323
- /* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", maxHeight: 480, overflowY: "auto" }, children: B.length === 0 ? /* @__PURE__ */ e(se, { message: w }) : B.map((c, b) => /* @__PURE__ */ e(ye, { ...c }, b)) })
2553
+ /* @__PURE__ */ l("div", { style: { display: "flex", flexDirection: "column", gap: 16 }, children: [
2554
+ /* @__PURE__ */ e(xe, { icon: ye, title: H, iconColor: "var(--rail-compliance)" }),
2555
+ /* @__PURE__ */ l("div", { style: { display: "flex", gap: 24, alignItems: "flex-start" }, children: [
2556
+ /* @__PURE__ */ l("div", { style: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column", gap: 8 }, children: [
2557
+ /* @__PURE__ */ e(Ge, { icon: et, title: K }),
2558
+ /* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", maxHeight: 480, overflowY: "auto" }, children: X.length === 0 ? /* @__PURE__ */ e(he, { message: q }) : X.map((f, w) => /* @__PURE__ */ e(be, { ...f }, w)) })
2324
2559
  ] }),
2325
- /* @__PURE__ */ i("div", { style: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column", gap: 8 }, children: [
2326
- /* @__PURE__ */ e(Re, { icon: Ye, title: P }),
2327
- /* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", maxHeight: 480, overflowY: "auto" }, children: U.length === 0 ? /* @__PURE__ */ e(se, { message: H }) : U.map((c, b) => /* @__PURE__ */ e(ye, { ...c }, b)) })
2560
+ /* @__PURE__ */ l("div", { style: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column", gap: 8 }, children: [
2561
+ /* @__PURE__ */ e(Ge, { icon: tt, title: _ }),
2562
+ /* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", maxHeight: 480, overflowY: "auto" }, children: G.length === 0 ? /* @__PURE__ */ e(he, { message: Q }) : G.map((f, w) => /* @__PURE__ */ e(be, { ...f }, w)) })
2328
2563
  ] })
2329
2564
  ] })
2330
2565
  ] }),
2331
- /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: 16 }, children: [
2332
- /* @__PURE__ */ e(ue, { icon: lt, title: q, iconColor: "var(--rail-compliance)", trailing: f, bordered: !0 }),
2333
- X.length === 0 && L.length === 0 ? /* @__PURE__ */ e(se, { message: $ }) : /* @__PURE__ */ i("div", { style: { display: "flex", gap: 24 }, children: [
2334
- /* @__PURE__ */ e("div", { style: { flex: 1, display: "flex", flexDirection: "column" }, children: X.map((c, b) => /* @__PURE__ */ e(ye, { ...c }, b)) }),
2335
- /* @__PURE__ */ e("div", { style: { flex: 1, display: "flex", flexDirection: "column" }, children: L.map((c, b) => /* @__PURE__ */ e(ye, { ...c }, b)) })
2566
+ /* @__PURE__ */ l("div", { style: { display: "flex", flexDirection: "column", gap: 16 }, children: [
2567
+ /* @__PURE__ */ e(xe, { icon: Dt, title: ie, iconColor: "var(--rail-compliance)", trailing: h, bordered: !0 }),
2568
+ O.length === 0 && Z.length === 0 ? /* @__PURE__ */ e(he, { message: j }) : /* @__PURE__ */ l("div", { style: { display: "flex", gap: 24 }, children: [
2569
+ /* @__PURE__ */ e("div", { style: { flex: 1, display: "flex", flexDirection: "column" }, children: O.map((f, w) => /* @__PURE__ */ e(be, { ...f }, w)) }),
2570
+ /* @__PURE__ */ e("div", { style: { flex: 1, display: "flex", flexDirection: "column" }, children: Z.map((f, w) => /* @__PURE__ */ e(be, { ...f }, w)) })
2336
2571
  ] })
2337
2572
  ] })
2338
2573
  ]
@@ -2341,10 +2576,27 @@ function $t({
2341
2576
  ] });
2342
2577
  }
2343
2578
  export {
2344
- It as D,
2345
- $t as P,
2346
- ut as a,
2347
- Lt as b,
2348
- Ke as c
2579
+ en as D,
2580
+ dt as M,
2581
+ tn as P,
2582
+ Te as R,
2583
+ Bt as a,
2584
+ Qt as b,
2585
+ It as c,
2586
+ $t as d,
2587
+ ee as e,
2588
+ Tt as f,
2589
+ Fe as g,
2590
+ st as h,
2591
+ ct as i,
2592
+ V as j,
2593
+ ke as k,
2594
+ Ae as l,
2595
+ Me as m,
2596
+ Ie as n,
2597
+ Ct as o,
2598
+ yt as p,
2599
+ At as r,
2600
+ Ce as t
2349
2601
  };
2350
2602
  //# sourceMappingURL=PerformancePanel.es.js.map