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