chordia-ui 3.9.2 → 3.9.4

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