chordia-ui 3.9.7 → 3.9.8
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 +517 -531
- package/dist/PerformancePanel.es.js.map +1 -1
- package/dist/components/policies.cjs.js +1 -1
- package/dist/components/policies.cjs.js.map +1 -1
- package/dist/components/policies.es.js +39 -39
- package/dist/components/policies.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 +238 -254
- package/dist/components/reports.es.js.map +1 -1
- package/package.json +1 -1
- package/src/components/performance/PerformancePanel.jsx +31 -41
- package/src/components/policies/PoliciesPage.jsx +3 -3
- package/src/components/reports/ReportsList.jsx +5 -17
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as l, jsx as e, Fragment 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 Xe } from "react/jsx-runtime";
|
|
2
|
+
import L from "react";
|
|
3
|
+
import { createPortal as pt } from "react-dom";
|
|
4
|
+
import { ArrowLeft as ht, Download as Ge, CalendarDays as be, ArrowRight as yt, Phone as fe, ShieldCheck as Ke, Lightbulb as Je, FolderKanban as Ze, Layers as qe, ChevronDown as ze, TrendingDown as mt, TrendingUp as Qe, Check as gt, Signal as xt, ChevronLeft as bt, ChevronRight as vt } from "lucide-react";
|
|
5
|
+
import { D as et } from "./DataTable2.es.js";
|
|
6
|
+
const Fe = {
|
|
7
7
|
"8h": 8 * 60 * 60 * 1e3,
|
|
8
8
|
"1d": 24 * 60 * 60 * 1e3,
|
|
9
9
|
"7d": 7 * 24 * 60 * 60 * 1e3,
|
|
10
10
|
"30d": 30 * 24 * 60 * 60 * 1e3
|
|
11
|
-
},
|
|
12
|
-
function
|
|
11
|
+
}, tt = void 0, kt = { month: "2-digit", day: "2-digit", year: "numeric" }, wt = { hour: "numeric", minute: "2-digit", hour12: !0 };
|
|
12
|
+
function pe(t) {
|
|
13
13
|
if (!t)
|
|
14
14
|
return null;
|
|
15
15
|
if (t instanceof Date)
|
|
@@ -22,95 +22,95 @@ function me(t) {
|
|
|
22
22
|
const o = new Date(n);
|
|
23
23
|
return Number.isNaN(o.getTime()) ? null : o;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function nt(t, n) {
|
|
26
26
|
return t.getFullYear() === n.getFullYear() && t.getMonth() === n.getMonth() && t.getDate() === n.getDate();
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
const n = t instanceof Date ? t :
|
|
30
|
-
return n ? n.toLocaleDateString(
|
|
28
|
+
function Q(t) {
|
|
29
|
+
const n = t instanceof Date ? t : pe(t);
|
|
30
|
+
return n ? n.toLocaleDateString(tt, kt) : "";
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
return t.toLocaleTimeString(
|
|
32
|
+
function Ae(t) {
|
|
33
|
+
return t.toLocaleTimeString(tt, wt);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
return `${
|
|
35
|
+
function ie(t) {
|
|
36
|
+
return `${Q(t)} ${Ae(t)}`;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
const i =
|
|
40
|
-
return !i || !o ? "" :
|
|
38
|
+
function St(t, n) {
|
|
39
|
+
const i = pe(t), o = pe(n);
|
|
40
|
+
return !i || !o ? "" : nt(i, o) ? `${ie(i)} – ${Ae(o)}` : `${ie(i)} – ${ie(o)}`;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
const i =
|
|
44
|
-
return !i || !o ? null :
|
|
42
|
+
function Dt(t, n) {
|
|
43
|
+
const i = pe(t), o = pe(n);
|
|
44
|
+
return !i || !o ? null : nt(i, o) ? { from: ie(i), to: Ae(o) } : { from: ie(i), to: ie(o) };
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
const n =
|
|
46
|
+
function Le(t) {
|
|
47
|
+
const n = Fe[t];
|
|
48
48
|
if (!n)
|
|
49
49
|
return null;
|
|
50
50
|
const i = /* @__PURE__ */ new Date();
|
|
51
51
|
return { from: new Date(i.getTime() - n), to: i };
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
if (!
|
|
53
|
+
function Lt(t) {
|
|
54
|
+
if (!Fe[t])
|
|
55
55
|
return "";
|
|
56
|
-
const i =
|
|
57
|
-
return i ? t === "8h" ?
|
|
56
|
+
const i = Le(t);
|
|
57
|
+
return i ? t === "8h" ? St(i.from, i.to) : `${Q(i.from)} – ${Q(i.to)}` : "";
|
|
58
58
|
}
|
|
59
|
-
const
|
|
60
|
-
function
|
|
59
|
+
const zt = "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", Ft = "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 it(t) {
|
|
61
61
|
if (!Array.isArray(t))
|
|
62
62
|
return null;
|
|
63
63
|
const n = t.map((i) => Array.isArray(i) ? Number(i[1]) : i == null || i === "" ? NaN : Number(i)).filter((i) => Number.isFinite(i));
|
|
64
64
|
return n.length >= 2 ? n : null;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
const o =
|
|
66
|
+
function At(t, n = 52, i = 36) {
|
|
67
|
+
const o = it(t);
|
|
68
68
|
if (!o)
|
|
69
69
|
return null;
|
|
70
|
-
const d = Math.min(...o), s = Math.max(...o), c = 4, y = s - d || 1, w = i - c * 2 - 4, u = (
|
|
71
|
-
let
|
|
72
|
-
for (let
|
|
73
|
-
|
|
74
|
-
const
|
|
75
|
-
return { line:
|
|
70
|
+
const d = Math.min(...o), s = Math.max(...o), c = 4, y = s - d || 1, w = i - c * 2 - 4, u = (S) => (o.length === 1 ? 0 : S / (o.length - 1) * (n - 2)) + 1, g = (S) => c + (1 - (S - d) / y) * w;
|
|
71
|
+
let x = "";
|
|
72
|
+
for (let S = 0; S < o.length; S++)
|
|
73
|
+
x += `${S === 0 ? "M" : "L"}${u(S).toFixed(2)},${g(o[S]).toFixed(2)}`;
|
|
74
|
+
const b = u(o.length - 1), v = u(0), M = `${x} L${b.toFixed(2)},${i} L${v.toFixed(2)},${i} Z`;
|
|
75
|
+
return { line: x, area: M };
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
const n =
|
|
77
|
+
function Te(t) {
|
|
78
|
+
const n = it(t);
|
|
79
79
|
if (!n)
|
|
80
80
|
return null;
|
|
81
81
|
const i = n[0], o = n[n.length - 1];
|
|
82
82
|
return o > i ? "up" : o < i ? "down" : "up";
|
|
83
83
|
}
|
|
84
|
-
const
|
|
85
|
-
function
|
|
84
|
+
const lt = "—";
|
|
85
|
+
function We(t) {
|
|
86
86
|
if (t == null)
|
|
87
87
|
return !0;
|
|
88
88
|
const n = String(t).trim();
|
|
89
89
|
return !!(!n || /^[-−–—]$/.test(n) || /^(n\/a|null|undefined)$/i.test(n));
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
return
|
|
91
|
+
function $e(t) {
|
|
92
|
+
return !We(t);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
return
|
|
94
|
+
function Tt(t, n = lt) {
|
|
95
|
+
return We(t) ? n : String(t);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function Re(t) {
|
|
98
98
|
return t != null && String(t).trim() !== "";
|
|
99
99
|
}
|
|
100
100
|
function U(t) {
|
|
101
|
-
return t ?
|
|
101
|
+
return t ? Re(t.value) || Re(t.delta) ? !0 : Array.isArray(t.points) && t.points.length > 0 : !1;
|
|
102
102
|
}
|
|
103
|
-
function
|
|
104
|
-
if (
|
|
103
|
+
function Wt(t) {
|
|
104
|
+
if (We(t))
|
|
105
105
|
return null;
|
|
106
106
|
const n = String(t).trim(), i = n.match(/\(\s*([+-])?\s*([\d.]+)/);
|
|
107
107
|
return i ? i[1] === "-" ? "down" : i[1] === "+" ? "up" : parseFloat(i[2]) < 0 ? "down" : "up" : /^[-−]/.test(n) ? "down" : /^\+/.test(n) ? "up" : /-\d/.test(n) ? "down" : null;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
return
|
|
109
|
+
function Ie(t, n) {
|
|
110
|
+
return Wt(n) ?? (t === "down" ? "down" : "up");
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
return
|
|
112
|
+
function Kt(t, n, i) {
|
|
113
|
+
return Te(i) ?? ($e(n) ? Ie(t, n) : t === "down" ? "down" : "up");
|
|
114
114
|
}
|
|
115
115
|
const a = {
|
|
116
116
|
ink: "var(--color-text)",
|
|
@@ -133,8 +133,8 @@ const a = {
|
|
|
133
133
|
// Section accent colors are passed to SectionHeading via `iconColor`.
|
|
134
134
|
railCompliance: "var(--rail-compliance)",
|
|
135
135
|
accentYellow: "var(--accent-yellow)"
|
|
136
|
-
},
|
|
137
|
-
function
|
|
136
|
+
}, le = "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 $t({ direction: t = "up", color: n = a.muted }) {
|
|
138
138
|
return /* @__PURE__ */ e("svg", { width: 18, height: 9.5, viewBox: "0 0 19 10", fill: "none", style: { flexShrink: 0 }, children: /* @__PURE__ */ e(
|
|
139
139
|
"path",
|
|
140
140
|
{
|
|
@@ -146,7 +146,7 @@ function It({ direction: t = "up", color: n = a.muted }) {
|
|
|
146
146
|
}
|
|
147
147
|
) });
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Be(t) {
|
|
150
150
|
if (!t)
|
|
151
151
|
return "";
|
|
152
152
|
const n = { month: "2-digit", day: "2-digit", year: "numeric" };
|
|
@@ -158,7 +158,7 @@ function Ee(t) {
|
|
|
158
158
|
const d = new Date(i);
|
|
159
159
|
return Number.isNaN(d.getTime()) ? i : d.toLocaleDateString(void 0, n);
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function It({ label: t, active: n = !1, onClick: i }) {
|
|
162
162
|
return /* @__PURE__ */ e(
|
|
163
163
|
"button",
|
|
164
164
|
{
|
|
@@ -172,7 +172,7 @@ function Mt({ label: t, active: n = !1, onClick: i }) {
|
|
|
172
172
|
border: n ? "none" : `1px solid ${a.borderSubtle}`,
|
|
173
173
|
background: n ? a.black : a.white,
|
|
174
174
|
color: n ? a.white : a.black,
|
|
175
|
-
fontFamily:
|
|
175
|
+
fontFamily: W,
|
|
176
176
|
fontSize: 14,
|
|
177
177
|
cursor: "pointer"
|
|
178
178
|
},
|
|
@@ -180,7 +180,7 @@ function Mt({ label: t, active: n = !1, onClick: i }) {
|
|
|
180
180
|
}
|
|
181
181
|
);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function se({
|
|
184
184
|
// When omitted, y-axis labels are auto-derived from `points` (5 evenly-spaced
|
|
185
185
|
// ticks from max → min). Pass a custom array to override the formatting.
|
|
186
186
|
yLabels: t,
|
|
@@ -196,11 +196,11 @@ function ue({
|
|
|
196
196
|
xAxisLabel: d = "",
|
|
197
197
|
yAxisLabel: s = ""
|
|
198
198
|
}) {
|
|
199
|
-
const [c, y] =
|
|
200
|
-
{ length:
|
|
201
|
-
(
|
|
202
|
-
),
|
|
203
|
-
if (!
|
|
199
|
+
const [c, y] = L.useState(null), w = 460, u = 110, g = Array.isArray(i) && i.length > 0, x = L.useId(), b = 6, v = Array.isArray(n) ? n : [], M = v.length <= b ? v : Array.from(
|
|
200
|
+
{ length: b },
|
|
201
|
+
(p, m) => v[Math.round(m * (v.length - 1) / (b - 1))]
|
|
202
|
+
), S = Math.max(2, M.length || b), R = Array.from({ length: S }, (p, m) => m / (S - 1) * w);
|
|
203
|
+
if (!g)
|
|
204
204
|
return /* @__PURE__ */ l("div", { style: { display: "flex", gap: 8, height: 133, width: "100%" }, children: [
|
|
205
205
|
/* @__PURE__ */ e("div", { style: { width: 24, flexShrink: 0 } }),
|
|
206
206
|
/* @__PURE__ */ e("div", { style: { flex: 1, position: "relative", minWidth: 0 }, children: /* @__PURE__ */ e(
|
|
@@ -210,33 +210,33 @@ function ue({
|
|
|
210
210
|
height: u + 14,
|
|
211
211
|
viewBox: `0 0 ${w} ${u + 14}`,
|
|
212
212
|
preserveAspectRatio: "none",
|
|
213
|
-
children:
|
|
213
|
+
children: R.map((p, m) => /* @__PURE__ */ e(
|
|
214
214
|
"line",
|
|
215
215
|
{
|
|
216
|
-
x1:
|
|
216
|
+
x1: p,
|
|
217
217
|
y1: "0",
|
|
218
|
-
x2:
|
|
218
|
+
x2: p,
|
|
219
219
|
y2: u,
|
|
220
220
|
stroke: a.borderSubtle,
|
|
221
221
|
strokeDasharray: "2 3",
|
|
222
222
|
strokeWidth: "1",
|
|
223
223
|
vectorEffect: "non-scaling-stroke"
|
|
224
224
|
},
|
|
225
|
-
`grid-${
|
|
225
|
+
`grid-${m}`
|
|
226
226
|
))
|
|
227
227
|
}
|
|
228
228
|
) })
|
|
229
229
|
] });
|
|
230
|
-
const
|
|
231
|
-
const
|
|
232
|
-
return
|
|
233
|
-
}),
|
|
234
|
-
const
|
|
235
|
-
if (!Number.isFinite(
|
|
236
|
-
return String(
|
|
237
|
-
const
|
|
238
|
-
return
|
|
239
|
-
},
|
|
230
|
+
const H = Array.isArray(i[0]) ? i : i.map((p, m) => [m, p]), X = H.map(([, p]) => p), O = Math.min(...X), B = Math.max(...X), K = B === O ? Math.max(Math.abs(B) * 0.1, 1) : (B - O) * 0.1, J = O - K, h = B + K, A = h - J || 1, P = (p) => (h - p) / A * u, T = H.map(([p, m]) => [p, P(m)]), j = t && t.length ? t : Array.from({ length: 5 }, (p, m) => {
|
|
231
|
+
const $ = h - m / 4 * (h - J), I = Math.abs($), _ = I >= 100 ? 0 : I >= 10 ? 1 : 2;
|
|
232
|
+
return $.toFixed(_);
|
|
233
|
+
}), N = T[0][0], oe = T[T.length - 1][0] - N || 1, ee = 8, Z = Math.max(1, w - ee * 2), E = (p) => ee + (p - N) / oe * Z, C = (p) => {
|
|
234
|
+
const m = Number(p);
|
|
235
|
+
if (!Number.isFinite(m))
|
|
236
|
+
return String(p ?? "");
|
|
237
|
+
const $ = Math.abs(m), I = $ >= 100 ? 0 : $ >= 10 ? 1 : 2;
|
|
238
|
+
return m.toFixed(I);
|
|
239
|
+
}, q = T.map(([p, m], $) => `${$ === 0 ? "M" : "L"}${E(p)},${m}`).join(" "), te = `${q} L${E(T[T.length - 1][0])},${u} L${E(T[0][0])},${u} Z`, ne = o ?? T.length - 1;
|
|
240
240
|
return /* @__PURE__ */ l("div", { style: { display: "flex", gap: 8, height: d ? 151 : 133, width: "100%" }, children: [
|
|
241
241
|
s ? /* @__PURE__ */ e("div", { style: { display: "flex", alignItems: "center", flexShrink: 0 }, children: /* @__PURE__ */ e(
|
|
242
242
|
"span",
|
|
@@ -244,7 +244,7 @@ function ue({
|
|
|
244
244
|
style: {
|
|
245
245
|
writingMode: "vertical-rl",
|
|
246
246
|
transform: "rotate(180deg)",
|
|
247
|
-
fontFamily:
|
|
247
|
+
fontFamily: W,
|
|
248
248
|
fontSize: 10,
|
|
249
249
|
fontWeight: 500,
|
|
250
250
|
color: a.neutral800,
|
|
@@ -261,12 +261,12 @@ function ue({
|
|
|
261
261
|
flexDirection: "column",
|
|
262
262
|
justifyContent: "space-between",
|
|
263
263
|
padding: "14px 0",
|
|
264
|
-
fontFamily:
|
|
264
|
+
fontFamily: W,
|
|
265
265
|
fontSize: 10,
|
|
266
266
|
color: a.neutral800,
|
|
267
267
|
flexShrink: 0
|
|
268
268
|
},
|
|
269
|
-
children: j.map((
|
|
269
|
+
children: j.map((p) => /* @__PURE__ */ e("span", { children: p }, p))
|
|
270
270
|
}
|
|
271
271
|
),
|
|
272
272
|
/* @__PURE__ */ l("div", { style: { flex: 1, position: "relative", minWidth: 0 }, children: [
|
|
@@ -286,7 +286,7 @@ function ue({
|
|
|
286
286
|
minWidth: 60,
|
|
287
287
|
padding: "8px 10px",
|
|
288
288
|
boxShadow: "0 6px 16px rgba(0,0,0,0.18)",
|
|
289
|
-
fontFamily:
|
|
289
|
+
fontFamily: W,
|
|
290
290
|
fontSize: 11,
|
|
291
291
|
lineHeight: 1.25,
|
|
292
292
|
whiteSpace: "nowrap",
|
|
@@ -322,29 +322,29 @@ function ue({
|
|
|
322
322
|
preserveAspectRatio: "none",
|
|
323
323
|
onMouseLeave: () => y(null),
|
|
324
324
|
children: [
|
|
325
|
-
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ l("linearGradient", { id: `area-${
|
|
325
|
+
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ l("linearGradient", { id: `area-${x}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
326
326
|
/* @__PURE__ */ e("stop", { offset: "0%", style: { stopColor: a.black, stopOpacity: 0.08 } }),
|
|
327
327
|
/* @__PURE__ */ e("stop", { offset: "100%", style: { stopColor: a.black, stopOpacity: 0 } })
|
|
328
328
|
] }) }),
|
|
329
|
-
|
|
329
|
+
R.map((p, m) => /* @__PURE__ */ e(
|
|
330
330
|
"line",
|
|
331
331
|
{
|
|
332
|
-
x1:
|
|
332
|
+
x1: p,
|
|
333
333
|
y1: "0",
|
|
334
|
-
x2:
|
|
334
|
+
x2: p,
|
|
335
335
|
y2: u,
|
|
336
336
|
stroke: a.borderSubtle,
|
|
337
337
|
strokeDasharray: "2 3",
|
|
338
338
|
strokeWidth: "1",
|
|
339
339
|
vectorEffect: "non-scaling-stroke"
|
|
340
340
|
},
|
|
341
|
-
`grid-${
|
|
341
|
+
`grid-${m}`
|
|
342
342
|
)),
|
|
343
|
-
/* @__PURE__ */ e("path", { d:
|
|
343
|
+
/* @__PURE__ */ e("path", { d: te, fill: `url(#area-${x})` }),
|
|
344
344
|
/* @__PURE__ */ e(
|
|
345
345
|
"path",
|
|
346
346
|
{
|
|
347
|
-
d:
|
|
347
|
+
d: q,
|
|
348
348
|
stroke: a.black,
|
|
349
349
|
strokeWidth: "1.5",
|
|
350
350
|
fill: "none",
|
|
@@ -353,29 +353,29 @@ function ue({
|
|
|
353
353
|
vectorEffect: "non-scaling-stroke"
|
|
354
354
|
}
|
|
355
355
|
),
|
|
356
|
-
|
|
357
|
-
const
|
|
356
|
+
T.map(([p, m], $) => {
|
|
357
|
+
const I = $ === ne;
|
|
358
358
|
return /* @__PURE__ */ e(
|
|
359
359
|
"circle",
|
|
360
360
|
{
|
|
361
|
-
cx:
|
|
362
|
-
cy:
|
|
363
|
-
r:
|
|
364
|
-
fill:
|
|
361
|
+
cx: E(p),
|
|
362
|
+
cy: m,
|
|
363
|
+
r: I ? 4 : 3,
|
|
364
|
+
fill: I ? a.black : a.white,
|
|
365
365
|
stroke: a.black,
|
|
366
366
|
strokeWidth: "1.5",
|
|
367
367
|
vectorEffect: "non-scaling-stroke",
|
|
368
368
|
onMouseEnter: () => {
|
|
369
|
-
var
|
|
369
|
+
var _;
|
|
370
370
|
y({
|
|
371
|
-
xPct:
|
|
372
|
-
yPct:
|
|
373
|
-
label:
|
|
374
|
-
value:
|
|
371
|
+
xPct: E(p) / w * 100,
|
|
372
|
+
yPct: m / (u + 28) * 100,
|
|
373
|
+
label: v[$] || `Point ${$ + 1}`,
|
|
374
|
+
value: C((_ = H[$]) == null ? void 0 : _[1])
|
|
375
375
|
});
|
|
376
376
|
}
|
|
377
377
|
},
|
|
378
|
-
|
|
378
|
+
$
|
|
379
379
|
);
|
|
380
380
|
})
|
|
381
381
|
]
|
|
@@ -388,14 +388,14 @@ function ue({
|
|
|
388
388
|
display: "flex",
|
|
389
389
|
justifyContent: "space-between",
|
|
390
390
|
paddingRight: 6,
|
|
391
|
-
fontFamily:
|
|
391
|
+
fontFamily: W,
|
|
392
392
|
fontSize: 10,
|
|
393
393
|
color: a.neutral800,
|
|
394
394
|
marginTop: 8,
|
|
395
395
|
marginBottom: 4,
|
|
396
396
|
overflow: "hidden"
|
|
397
397
|
},
|
|
398
|
-
children:
|
|
398
|
+
children: M.map((p, m) => /* @__PURE__ */ e("span", { style: { whiteSpace: "nowrap" }, children: p }, m))
|
|
399
399
|
}
|
|
400
400
|
),
|
|
401
401
|
d ? /* @__PURE__ */ e(
|
|
@@ -403,7 +403,7 @@ function ue({
|
|
|
403
403
|
{
|
|
404
404
|
style: {
|
|
405
405
|
textAlign: "center",
|
|
406
|
-
fontFamily:
|
|
406
|
+
fontFamily: W,
|
|
407
407
|
fontSize: 10,
|
|
408
408
|
fontWeight: 500,
|
|
409
409
|
color: a.neutral800
|
|
@@ -414,8 +414,8 @@ function ue({
|
|
|
414
414
|
] })
|
|
415
415
|
] });
|
|
416
416
|
}
|
|
417
|
-
function
|
|
418
|
-
const d =
|
|
417
|
+
function de({ title: t, value: n, delta: i, children: o }) {
|
|
418
|
+
const d = Tt(n), s = $e(i), c = s ? Ie("up", i) : "up";
|
|
419
419
|
return /* @__PURE__ */ l(
|
|
420
420
|
"div",
|
|
421
421
|
{
|
|
@@ -437,7 +437,7 @@ function fe({ title: t, value: n, delta: i, children: o }) {
|
|
|
437
437
|
"span",
|
|
438
438
|
{
|
|
439
439
|
style: {
|
|
440
|
-
fontFamily:
|
|
440
|
+
fontFamily: le,
|
|
441
441
|
fontWeight: 600,
|
|
442
442
|
fontSize: 15,
|
|
443
443
|
color: a.ink,
|
|
@@ -453,7 +453,7 @@ function fe({ title: t, value: n, delta: i, children: o }) {
|
|
|
453
453
|
display: "inline-flex",
|
|
454
454
|
alignItems: "flex-end",
|
|
455
455
|
gap: 4,
|
|
456
|
-
fontFamily:
|
|
456
|
+
fontFamily: le,
|
|
457
457
|
fontWeight: 600
|
|
458
458
|
},
|
|
459
459
|
children: [
|
|
@@ -470,7 +470,7 @@ function fe({ title: t, value: n, delta: i, children: o }) {
|
|
|
470
470
|
lineHeight: 1
|
|
471
471
|
},
|
|
472
472
|
children: [
|
|
473
|
-
/* @__PURE__ */ e(
|
|
473
|
+
/* @__PURE__ */ e($t, { direction: c, color: a.neutral300 }),
|
|
474
474
|
i
|
|
475
475
|
]
|
|
476
476
|
}
|
|
@@ -484,7 +484,7 @@ function fe({ title: t, value: n, delta: i, children: o }) {
|
|
|
484
484
|
}
|
|
485
485
|
);
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function Se({ icon: t, title: n, trailing: i, iconColor: o = a.ink, bordered: d = !1 }) {
|
|
488
488
|
return /* @__PURE__ */ l(
|
|
489
489
|
"div",
|
|
490
490
|
{
|
|
@@ -516,7 +516,7 @@ function De({ icon: t, title: n, trailing: i, iconColor: o = a.ink, bordered: d
|
|
|
516
516
|
{
|
|
517
517
|
style: {
|
|
518
518
|
flex: 1,
|
|
519
|
-
fontFamily:
|
|
519
|
+
fontFamily: le,
|
|
520
520
|
fontWeight: 600,
|
|
521
521
|
fontSize: 16,
|
|
522
522
|
color: a.ink,
|
|
@@ -527,12 +527,12 @@ function De({ icon: t, title: n, trailing: i, iconColor: o = a.ink, bordered: d
|
|
|
527
527
|
children: n
|
|
528
528
|
}
|
|
529
529
|
),
|
|
530
|
-
i && /* @__PURE__ */ e("div", { style: { fontFamily:
|
|
530
|
+
i && /* @__PURE__ */ e("div", { style: { fontFamily: W, fontSize: 14, color: a.ink }, children: i })
|
|
531
531
|
]
|
|
532
532
|
}
|
|
533
533
|
);
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function Mt({ text: t, bullet: n, citation: i, date: o, href: d }) {
|
|
536
536
|
const s = t ?? n ?? "";
|
|
537
537
|
return /* @__PURE__ */ l(
|
|
538
538
|
"div",
|
|
@@ -541,7 +541,7 @@ function Pt({ text: t, bullet: n, citation: i, date: o, href: d }) {
|
|
|
541
541
|
display: "flex",
|
|
542
542
|
justifyContent: "space-between",
|
|
543
543
|
alignItems: "center",
|
|
544
|
-
fontFamily:
|
|
544
|
+
fontFamily: W,
|
|
545
545
|
fontSize: 14,
|
|
546
546
|
color: a.ink,
|
|
547
547
|
lineHeight: "24px",
|
|
@@ -579,7 +579,7 @@ function Pt({ text: t, bullet: n, citation: i, date: o, href: d }) {
|
|
|
579
579
|
}
|
|
580
580
|
);
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function Ee({
|
|
583
583
|
title: t,
|
|
584
584
|
summary: n,
|
|
585
585
|
calls: i,
|
|
@@ -590,13 +590,13 @@ function _e({
|
|
|
590
590
|
bullets: s,
|
|
591
591
|
defaultExpanded: c = !1
|
|
592
592
|
}) {
|
|
593
|
-
const [y, w] =
|
|
593
|
+
const [y, w] = L.useState(c), u = o ?? d, g = $e(u), x = g ? String(u) : lt, v = (g ? Ie("up", x) : "up") === "down" ? mt : Qe, M = Array.isArray(s) ? s : [];
|
|
594
594
|
return /* @__PURE__ */ l("div", { style: { borderTop: `1px solid ${a.border}` }, children: [
|
|
595
595
|
/* @__PURE__ */ l(
|
|
596
596
|
"button",
|
|
597
597
|
{
|
|
598
598
|
type: "button",
|
|
599
|
-
onClick: () => w((
|
|
599
|
+
onClick: () => w((S) => !S),
|
|
600
600
|
"aria-expanded": y,
|
|
601
601
|
style: {
|
|
602
602
|
border: "none",
|
|
@@ -608,7 +608,7 @@ function _e({
|
|
|
608
608
|
cursor: "pointer",
|
|
609
609
|
width: "100%",
|
|
610
610
|
textAlign: "left",
|
|
611
|
-
fontFamily:
|
|
611
|
+
fontFamily: W
|
|
612
612
|
},
|
|
613
613
|
children: [
|
|
614
614
|
/* @__PURE__ */ l("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 12, minWidth: 0 }, children: [
|
|
@@ -617,7 +617,7 @@ function _e({
|
|
|
617
617
|
"span",
|
|
618
618
|
{
|
|
619
619
|
style: {
|
|
620
|
-
fontFamily:
|
|
620
|
+
fontFamily: W,
|
|
621
621
|
fontWeight: 500,
|
|
622
622
|
fontSize: 14,
|
|
623
623
|
color: a.black,
|
|
@@ -626,34 +626,34 @@ function _e({
|
|
|
626
626
|
children: t
|
|
627
627
|
}
|
|
628
628
|
),
|
|
629
|
-
/* @__PURE__ */ e("span", { style: { fontFamily:
|
|
629
|
+
/* @__PURE__ */ e("span", { style: { fontFamily: W, fontSize: 14, color: a.muted, lineHeight: "24px" }, children: n })
|
|
630
630
|
] }),
|
|
631
631
|
/* @__PURE__ */ l("div", { style: { display: "flex", gap: 16 }, children: [
|
|
632
632
|
/* @__PURE__ */ l("div", { style: { display: "flex", alignItems: "center", gap: 4 }, children: [
|
|
633
|
-
/* @__PURE__ */ e(
|
|
634
|
-
/* @__PURE__ */ l("span", { style: { fontFamily:
|
|
633
|
+
/* @__PURE__ */ e(fe, { size: 12, color: a.ink, strokeWidth: 1.75 }),
|
|
634
|
+
/* @__PURE__ */ l("span", { style: { fontFamily: W, fontSize: 12, color: a.ink }, children: [
|
|
635
635
|
i,
|
|
636
636
|
" Interactions"
|
|
637
637
|
] })
|
|
638
638
|
] }),
|
|
639
639
|
/* @__PURE__ */ l("div", { style: { display: "flex", alignItems: "center", gap: 4 }, children: [
|
|
640
|
-
|
|
640
|
+
g ? /* @__PURE__ */ e(v, { size: 12, color: a.ink, strokeWidth: 1.75 }) : null,
|
|
641
641
|
/* @__PURE__ */ e(
|
|
642
642
|
"span",
|
|
643
643
|
{
|
|
644
644
|
style: {
|
|
645
|
-
fontFamily:
|
|
645
|
+
fontFamily: W,
|
|
646
646
|
fontSize: 12,
|
|
647
|
-
color:
|
|
647
|
+
color: g ? a.ink : a.muted
|
|
648
648
|
},
|
|
649
|
-
children:
|
|
649
|
+
children: x
|
|
650
650
|
}
|
|
651
651
|
)
|
|
652
652
|
] })
|
|
653
653
|
] })
|
|
654
654
|
] }),
|
|
655
655
|
/* @__PURE__ */ e(
|
|
656
|
-
|
|
656
|
+
ze,
|
|
657
657
|
{
|
|
658
658
|
size: 20,
|
|
659
659
|
color: a.ink,
|
|
@@ -668,7 +668,7 @@ function _e({
|
|
|
668
668
|
]
|
|
669
669
|
}
|
|
670
670
|
),
|
|
671
|
-
y &&
|
|
671
|
+
y && M.length > 0 && /* @__PURE__ */ e(
|
|
672
672
|
"div",
|
|
673
673
|
{
|
|
674
674
|
style: {
|
|
@@ -677,12 +677,12 @@ function _e({
|
|
|
677
677
|
gap: 12,
|
|
678
678
|
padding: "0 16px 16px"
|
|
679
679
|
},
|
|
680
|
-
children:
|
|
680
|
+
children: M.map((S, R) => /* @__PURE__ */ e(Mt, { ...S }, R))
|
|
681
681
|
}
|
|
682
682
|
)
|
|
683
683
|
] });
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function _e({ label: t, value: n }) {
|
|
686
686
|
return /* @__PURE__ */ l(
|
|
687
687
|
"div",
|
|
688
688
|
{
|
|
@@ -692,7 +692,7 @@ function Oe({ label: t, value: n }) {
|
|
|
692
692
|
alignItems: "center",
|
|
693
693
|
padding: "8px 8px 12px",
|
|
694
694
|
borderBottom: `1px solid ${a.border}`,
|
|
695
|
-
fontFamily:
|
|
695
|
+
fontFamily: W,
|
|
696
696
|
fontSize: 13,
|
|
697
697
|
lineHeight: "1.2"
|
|
698
698
|
},
|
|
@@ -703,7 +703,7 @@ function Oe({ label: t, value: n }) {
|
|
|
703
703
|
}
|
|
704
704
|
);
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function Pt({ value: t = 0, max: n = 5 }) {
|
|
707
707
|
const i = typeof t == "number" ? t : parseFloat(t) || 0, o = Math.floor(i), d = i % 1 > 0 && o < n;
|
|
708
708
|
return /* @__PURE__ */ e("div", { style: { display: "flex", gap: 4 }, children: Array.from({ length: n }).map((s, c) => c < o ? /* @__PURE__ */ e(
|
|
709
709
|
"span",
|
|
@@ -758,7 +758,7 @@ function Ct({ value: t = 0, max: n = 5 }) {
|
|
|
758
758
|
c
|
|
759
759
|
)) });
|
|
760
760
|
}
|
|
761
|
-
const
|
|
761
|
+
const Jt = [
|
|
762
762
|
{ id: "title", label: "Title", width: 220, sortable: !0, filterable: !0 },
|
|
763
763
|
{ id: "date", label: "Date", width: 170, sortable: !0 },
|
|
764
764
|
{ id: "duration", label: "Duration", width: 170, sortable: !0 },
|
|
@@ -772,12 +772,12 @@ const Zt = [
|
|
|
772
772
|
const n = typeof t == "number" ? t : parseFloat(t) || 0;
|
|
773
773
|
return /* @__PURE__ */ l("span", { style: { display: "inline-flex", alignItems: "center", gap: 12 }, children: [
|
|
774
774
|
/* @__PURE__ */ e("span", { style: { minWidth: 32 }, children: t }),
|
|
775
|
-
/* @__PURE__ */ e(
|
|
775
|
+
/* @__PURE__ */ e(Pt, { value: n })
|
|
776
776
|
] });
|
|
777
777
|
}
|
|
778
778
|
}
|
|
779
779
|
];
|
|
780
|
-
function
|
|
780
|
+
function Oe({ icon: t, title: n }) {
|
|
781
781
|
return /* @__PURE__ */ l("div", { style: { display: "flex", alignItems: "center", gap: 16, width: "100%" }, children: [
|
|
782
782
|
/* @__PURE__ */ e(
|
|
783
783
|
"div",
|
|
@@ -799,7 +799,7 @@ function je({ icon: t, title: n }) {
|
|
|
799
799
|
"span",
|
|
800
800
|
{
|
|
801
801
|
style: {
|
|
802
|
-
fontFamily:
|
|
802
|
+
fontFamily: le,
|
|
803
803
|
fontWeight: 600,
|
|
804
804
|
fontSize: 16,
|
|
805
805
|
color: a.ink,
|
|
@@ -810,7 +810,7 @@ function je({ icon: t, title: n }) {
|
|
|
810
810
|
)
|
|
811
811
|
] });
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function Ct({
|
|
814
814
|
agentName: t = "",
|
|
815
815
|
startDate: n = "",
|
|
816
816
|
endDate: i = "",
|
|
@@ -825,76 +825,76 @@ function Ht({
|
|
|
825
825
|
// Each takes { value, delta, yLabels?, xLabels?, points? }.
|
|
826
826
|
// points is an array of [x, y] pairs OR a flat array of y-numbers.
|
|
827
827
|
baselineChart: u = { value: "", delta: "" },
|
|
828
|
-
agentLiftChart:
|
|
829
|
-
scoreChart:
|
|
830
|
-
csatChart:
|
|
831
|
-
volumeChart:
|
|
828
|
+
agentLiftChart: g = { value: "", delta: "" },
|
|
829
|
+
scoreChart: x = { value: "", delta: "" },
|
|
830
|
+
csatChart: b = { value: "", delta: "" },
|
|
831
|
+
volumeChart: v = { value: "", delta: "" },
|
|
832
832
|
// Insight sections — titles and chart-card labels stay empty by default
|
|
833
833
|
// so the library doesn't ship demo copy.
|
|
834
|
-
guidanceItems:
|
|
835
|
-
strengthItems:
|
|
836
|
-
callDrivers:
|
|
837
|
-
callParadigms:
|
|
834
|
+
guidanceItems: M = [],
|
|
835
|
+
strengthItems: S = [],
|
|
836
|
+
callDrivers: R = [],
|
|
837
|
+
callParadigms: H = [],
|
|
838
838
|
strengthsTitle: X = "",
|
|
839
839
|
guidanceTitle: O = "",
|
|
840
|
-
callMixTitle:
|
|
841
|
-
driversTitle:
|
|
842
|
-
paradigmsTitle:
|
|
843
|
-
sessionsTitle:
|
|
844
|
-
baselineChartTitle:
|
|
845
|
-
agentLiftChartTitle:
|
|
846
|
-
scoreChartTitle:
|
|
840
|
+
callMixTitle: B = "",
|
|
841
|
+
driversTitle: K = "",
|
|
842
|
+
paradigmsTitle: J = "",
|
|
843
|
+
sessionsTitle: h = "",
|
|
844
|
+
baselineChartTitle: A = "",
|
|
845
|
+
agentLiftChartTitle: P = "",
|
|
846
|
+
scoreChartTitle: T = "",
|
|
847
847
|
csatChartTitle: j = "",
|
|
848
|
-
volumeChartTitle:
|
|
848
|
+
volumeChartTitle: N = "",
|
|
849
849
|
// Sessions table
|
|
850
|
-
sessions:
|
|
851
|
-
sessionColumns:
|
|
852
|
-
initialPageSize:
|
|
850
|
+
sessions: he = [],
|
|
851
|
+
sessionColumns: oe = [],
|
|
852
|
+
initialPageSize: ee = 10,
|
|
853
853
|
// Time-range chips state — mirrors PerformancePanel so the active chip /
|
|
854
854
|
// Date Range highlight survives the navigation into the details page.
|
|
855
855
|
// Callbacks are optional; when omitted the controls are display-only.
|
|
856
|
-
selectedWindow:
|
|
857
|
-
onWindowChange:
|
|
858
|
-
dateRange:
|
|
859
|
-
onDateRangeChange:
|
|
856
|
+
selectedWindow: Z = "30d",
|
|
857
|
+
onWindowChange: E,
|
|
858
|
+
dateRange: C,
|
|
859
|
+
onDateRangeChange: q,
|
|
860
860
|
// Server-side pagination for the sessions table. When all four are provided
|
|
861
861
|
// the table switches to controlled / server-paginated mode and the host is
|
|
862
862
|
// expected to refetch when the user changes page or page size.
|
|
863
|
-
sessionsTotal:
|
|
864
|
-
sessionsPage:
|
|
865
|
-
sessionsPageSize:
|
|
866
|
-
onSessionsPageChange:
|
|
867
|
-
onSessionsPageSizeChange:
|
|
863
|
+
sessionsTotal: te = null,
|
|
864
|
+
sessionsPage: ne = null,
|
|
865
|
+
sessionsPageSize: p = null,
|
|
866
|
+
onSessionsPageChange: m,
|
|
867
|
+
onSessionsPageSizeChange: $,
|
|
868
868
|
// Fires when the user clicks the Export CSV button in the header. Disabled
|
|
869
869
|
// if no handler is provided.
|
|
870
|
-
onExport:
|
|
870
|
+
onExport: I,
|
|
871
871
|
// Fires when the user clicks a row in the sessions table.
|
|
872
|
-
onSessionClick:
|
|
872
|
+
onSessionClick: _,
|
|
873
873
|
// Fires whenever the user toggles columns in the sessions table's column
|
|
874
874
|
// picker — hosts can scope their CSV export to whatever the user has visible.
|
|
875
|
-
onSessionsVisibleColumnsChange:
|
|
875
|
+
onSessionsVisibleColumnsChange: ye
|
|
876
876
|
}) {
|
|
877
|
-
const
|
|
878
|
-
if (
|
|
877
|
+
const G = !!(C != null && C.from && (C != null && C.to)), Y = (() => {
|
|
878
|
+
if (G || Z !== "8h")
|
|
879
879
|
return null;
|
|
880
|
-
const
|
|
881
|
-
return
|
|
882
|
-
})(),
|
|
883
|
-
if (
|
|
880
|
+
const D = Le("8h");
|
|
881
|
+
return D ? Dt(D.from, D.to) : null;
|
|
882
|
+
})(), V = (() => {
|
|
883
|
+
if (G || Z === "8h")
|
|
884
884
|
return null;
|
|
885
|
-
const
|
|
886
|
-
return
|
|
887
|
-
from:
|
|
888
|
-
to:
|
|
885
|
+
const D = Le(Z);
|
|
886
|
+
return D ? {
|
|
887
|
+
from: Q(D.from),
|
|
888
|
+
to: Q(D.to)
|
|
889
889
|
} : null;
|
|
890
|
-
})(),
|
|
890
|
+
})(), ve = U(u) || U(g) || U(x), ke = U(b) || U(v);
|
|
891
891
|
return /* @__PURE__ */ l(
|
|
892
892
|
"div",
|
|
893
893
|
{
|
|
894
894
|
className: s,
|
|
895
895
|
style: {
|
|
896
896
|
background: a.white,
|
|
897
|
-
fontFamily:
|
|
897
|
+
fontFamily: W,
|
|
898
898
|
color: a.ink,
|
|
899
899
|
width: "100%",
|
|
900
900
|
minWidth: 1192,
|
|
@@ -934,7 +934,7 @@ function Ht({
|
|
|
934
934
|
padding: 0,
|
|
935
935
|
flexShrink: 0
|
|
936
936
|
},
|
|
937
|
-
children: /* @__PURE__ */ e(
|
|
937
|
+
children: /* @__PURE__ */ e(ht, { size: 20, strokeWidth: 1.75 })
|
|
938
938
|
}
|
|
939
939
|
),
|
|
940
940
|
/* @__PURE__ */ e(
|
|
@@ -953,7 +953,7 @@ function Ht({
|
|
|
953
953
|
"h1",
|
|
954
954
|
{
|
|
955
955
|
style: {
|
|
956
|
-
fontFamily:
|
|
956
|
+
fontFamily: le,
|
|
957
957
|
fontSize: 24,
|
|
958
958
|
fontWeight: 400,
|
|
959
959
|
color: a.ink,
|
|
@@ -970,8 +970,8 @@ function Ht({
|
|
|
970
970
|
"button",
|
|
971
971
|
{
|
|
972
972
|
type: "button",
|
|
973
|
-
onClick: () =>
|
|
974
|
-
disabled: !
|
|
973
|
+
onClick: () => I == null ? void 0 : I(),
|
|
974
|
+
disabled: !I,
|
|
975
975
|
style: {
|
|
976
976
|
display: "inline-flex",
|
|
977
977
|
alignItems: "center",
|
|
@@ -981,16 +981,16 @@ function Ht({
|
|
|
981
981
|
borderRadius: 10,
|
|
982
982
|
border: `1px solid ${a.neutralBorder}`,
|
|
983
983
|
background: a.white,
|
|
984
|
-
cursor:
|
|
985
|
-
opacity:
|
|
986
|
-
fontFamily:
|
|
984
|
+
cursor: I ? "pointer" : "not-allowed",
|
|
985
|
+
opacity: I ? 1 : 0.5,
|
|
986
|
+
fontFamily: W,
|
|
987
987
|
fontSize: 14,
|
|
988
988
|
lineHeight: "24px",
|
|
989
989
|
color: a.neutral800,
|
|
990
990
|
flexShrink: 0
|
|
991
991
|
},
|
|
992
992
|
children: [
|
|
993
|
-
/* @__PURE__ */ e(
|
|
993
|
+
/* @__PURE__ */ e(Ge, { size: 18, strokeWidth: 1.75 }),
|
|
994
994
|
"Export CSV"
|
|
995
995
|
]
|
|
996
996
|
}
|
|
@@ -1021,40 +1021,40 @@ function Ht({
|
|
|
1021
1021
|
children: [
|
|
1022
1022
|
/* @__PURE__ */ l("div", { style: { display: "flex", gap: 16, alignItems: "center" }, children: [
|
|
1023
1023
|
/* @__PURE__ */ l("div", { style: { display: "inline-flex", alignItems: "center", gap: 6 }, children: [
|
|
1024
|
-
/* @__PURE__ */ e(
|
|
1024
|
+
/* @__PURE__ */ e(be, { size: 14, color: a.ink, strokeWidth: 1.75, style: { flexShrink: 0 } }),
|
|
1025
1025
|
/* @__PURE__ */ e(
|
|
1026
1026
|
"span",
|
|
1027
1027
|
{
|
|
1028
1028
|
style: {
|
|
1029
|
-
fontFamily:
|
|
1029
|
+
fontFamily: W,
|
|
1030
1030
|
fontSize: 12,
|
|
1031
1031
|
color: a.ink,
|
|
1032
1032
|
lineHeight: 1.5
|
|
1033
1033
|
},
|
|
1034
|
-
children: (
|
|
1034
|
+
children: (Y == null ? void 0 : Y.from) ?? (V == null ? void 0 : V.from) ?? Be(n)
|
|
1035
1035
|
}
|
|
1036
1036
|
),
|
|
1037
|
-
/* @__PURE__ */ e(
|
|
1037
|
+
/* @__PURE__ */ e(yt, { size: 12, color: a.ink, strokeWidth: 1.75, style: { flexShrink: 0 } }),
|
|
1038
1038
|
/* @__PURE__ */ e(
|
|
1039
1039
|
"span",
|
|
1040
1040
|
{
|
|
1041
1041
|
style: {
|
|
1042
|
-
fontFamily:
|
|
1042
|
+
fontFamily: W,
|
|
1043
1043
|
fontSize: 12,
|
|
1044
1044
|
color: a.ink,
|
|
1045
1045
|
lineHeight: 1.5
|
|
1046
1046
|
},
|
|
1047
|
-
children: (
|
|
1047
|
+
children: (Y == null ? void 0 : Y.to) ?? (V == null ? void 0 : V.to) ?? Be(i)
|
|
1048
1048
|
}
|
|
1049
1049
|
)
|
|
1050
1050
|
] }),
|
|
1051
1051
|
/* @__PURE__ */ l("div", { style: { display: "inline-flex", alignItems: "center", gap: 6 }, children: [
|
|
1052
|
-
/* @__PURE__ */ e(
|
|
1052
|
+
/* @__PURE__ */ e(fe, { size: 14, color: a.ink, strokeWidth: 1.75, style: { flexShrink: 0 } }),
|
|
1053
1053
|
/* @__PURE__ */ e(
|
|
1054
1054
|
"span",
|
|
1055
1055
|
{
|
|
1056
1056
|
style: {
|
|
1057
|
-
fontFamily:
|
|
1057
|
+
fontFamily: W,
|
|
1058
1058
|
fontSize: 12,
|
|
1059
1059
|
color: a.ink,
|
|
1060
1060
|
lineHeight: 1.5
|
|
@@ -1070,23 +1070,23 @@ function Ht({
|
|
|
1070
1070
|
{ id: "1d", label: "1d" },
|
|
1071
1071
|
{ id: "7d", label: "7d" },
|
|
1072
1072
|
{ id: "30d", label: "30d" }
|
|
1073
|
-
].map((
|
|
1074
|
-
|
|
1073
|
+
].map((D) => /* @__PURE__ */ e(
|
|
1074
|
+
It,
|
|
1075
1075
|
{
|
|
1076
|
-
label:
|
|
1077
|
-
active: !
|
|
1078
|
-
onClick: () =>
|
|
1076
|
+
label: D.label,
|
|
1077
|
+
active: !G && D.id === Z,
|
|
1078
|
+
onClick: () => E == null ? void 0 : E(D.id)
|
|
1079
1079
|
},
|
|
1080
|
-
|
|
1080
|
+
D.id
|
|
1081
1081
|
)),
|
|
1082
|
-
/* @__PURE__ */ e(
|
|
1082
|
+
/* @__PURE__ */ e(st, { value: C, onChange: q })
|
|
1083
1083
|
] })
|
|
1084
1084
|
]
|
|
1085
1085
|
}
|
|
1086
1086
|
),
|
|
1087
|
-
|
|
1088
|
-
U(u) && /* @__PURE__ */ e(
|
|
1089
|
-
|
|
1087
|
+
ve && /* @__PURE__ */ l("div", { style: { display: "flex", gap: 24 }, children: [
|
|
1088
|
+
U(u) && /* @__PURE__ */ e(de, { title: A, value: u.value, delta: u.delta, children: /* @__PURE__ */ e(
|
|
1089
|
+
se,
|
|
1090
1090
|
{
|
|
1091
1091
|
yLabels: u.yLabels,
|
|
1092
1092
|
xLabels: u.xLabels,
|
|
@@ -1095,30 +1095,8 @@ function Ht({
|
|
|
1095
1095
|
yAxisLabel: u.yAxisLabel
|
|
1096
1096
|
}
|
|
1097
1097
|
) }),
|
|
1098
|
-
U(
|
|
1099
|
-
|
|
1100
|
-
{
|
|
1101
|
-
yLabels: m.yLabels,
|
|
1102
|
-
xLabels: m.xLabels,
|
|
1103
|
-
points: m.points,
|
|
1104
|
-
xAxisLabel: m.xAxisLabel,
|
|
1105
|
-
yAxisLabel: m.yAxisLabel
|
|
1106
|
-
}
|
|
1107
|
-
) }),
|
|
1108
|
-
U(v) && /* @__PURE__ */ e(fe, { title: W, value: v.value, delta: v.delta, children: /* @__PURE__ */ e(
|
|
1109
|
-
ue,
|
|
1110
|
-
{
|
|
1111
|
-
yLabels: v.yLabels,
|
|
1112
|
-
xLabels: v.xLabels,
|
|
1113
|
-
points: v.points,
|
|
1114
|
-
xAxisLabel: v.xAxisLabel,
|
|
1115
|
-
yAxisLabel: v.yAxisLabel
|
|
1116
|
-
}
|
|
1117
|
-
) })
|
|
1118
|
-
] }),
|
|
1119
|
-
we && /* @__PURE__ */ l("div", { style: { display: "flex", gap: 24 }, children: [
|
|
1120
|
-
U(g) && /* @__PURE__ */ e(fe, { title: j, value: g.value, delta: g.delta, children: /* @__PURE__ */ e(
|
|
1121
|
-
ue,
|
|
1098
|
+
U(g) && /* @__PURE__ */ e(de, { title: P, value: g.value, delta: g.delta, children: /* @__PURE__ */ e(
|
|
1099
|
+
se,
|
|
1122
1100
|
{
|
|
1123
1101
|
yLabels: g.yLabels,
|
|
1124
1102
|
xLabels: g.xLabels,
|
|
@@ -1127,8 +1105,8 @@ function Ht({
|
|
|
1127
1105
|
yAxisLabel: g.yAxisLabel
|
|
1128
1106
|
}
|
|
1129
1107
|
) }),
|
|
1130
|
-
U(x) && /* @__PURE__ */ e(
|
|
1131
|
-
|
|
1108
|
+
U(x) && /* @__PURE__ */ e(de, { title: T, value: x.value, delta: x.delta, children: /* @__PURE__ */ e(
|
|
1109
|
+
se,
|
|
1132
1110
|
{
|
|
1133
1111
|
yLabels: x.yLabels,
|
|
1134
1112
|
xLabels: x.xLabels,
|
|
@@ -1138,56 +1116,78 @@ function Ht({
|
|
|
1138
1116
|
}
|
|
1139
1117
|
) })
|
|
1140
1118
|
] }),
|
|
1119
|
+
ke && /* @__PURE__ */ l("div", { style: { display: "flex", gap: 24 }, children: [
|
|
1120
|
+
U(b) && /* @__PURE__ */ e(de, { title: j, value: b.value, delta: b.delta, children: /* @__PURE__ */ e(
|
|
1121
|
+
se,
|
|
1122
|
+
{
|
|
1123
|
+
yLabels: b.yLabels,
|
|
1124
|
+
xLabels: b.xLabels,
|
|
1125
|
+
points: b.points,
|
|
1126
|
+
xAxisLabel: b.xAxisLabel,
|
|
1127
|
+
yAxisLabel: b.yAxisLabel
|
|
1128
|
+
}
|
|
1129
|
+
) }),
|
|
1130
|
+
U(v) && /* @__PURE__ */ e(de, { title: N, value: v.value, delta: v.delta, children: /* @__PURE__ */ e(
|
|
1131
|
+
se,
|
|
1132
|
+
{
|
|
1133
|
+
yLabels: v.yLabels,
|
|
1134
|
+
xLabels: v.xLabels,
|
|
1135
|
+
points: v.points,
|
|
1136
|
+
xAxisLabel: v.xAxisLabel,
|
|
1137
|
+
yAxisLabel: v.yAxisLabel
|
|
1138
|
+
}
|
|
1139
|
+
) })
|
|
1140
|
+
] }),
|
|
1141
1141
|
/* @__PURE__ */ l("div", { style: { display: "flex", gap: 24, marginTop: 8, alignItems: "flex-start" }, children: [
|
|
1142
1142
|
/* @__PURE__ */ l("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 16, minWidth: 0 }, children: [
|
|
1143
|
-
/* @__PURE__ */ e(
|
|
1144
|
-
/* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", maxHeight: 480, overflowY: "auto" }, children:
|
|
1143
|
+
/* @__PURE__ */ e(Se, { icon: Ke, title: X, iconColor: a.railCompliance }),
|
|
1144
|
+
/* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", maxHeight: 480, overflowY: "auto" }, children: S.map((D, F) => /* @__PURE__ */ e(Ee, { ...D }, F)) })
|
|
1145
1145
|
] }),
|
|
1146
1146
|
/* @__PURE__ */ l("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 16, minWidth: 0 }, children: [
|
|
1147
|
-
/* @__PURE__ */ e(
|
|
1148
|
-
/* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", maxHeight: 480, overflowY: "auto" }, children:
|
|
1147
|
+
/* @__PURE__ */ e(Se, { icon: Je, title: O, iconColor: a.railCompliance }),
|
|
1148
|
+
/* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", maxHeight: 480, overflowY: "auto" }, children: M.map((D, F) => /* @__PURE__ */ e(Ee, { ...D }, F)) })
|
|
1149
1149
|
] })
|
|
1150
1150
|
] }),
|
|
1151
1151
|
/* @__PURE__ */ l("div", { style: { display: "flex", flexDirection: "column", gap: 16, marginTop: 8 }, children: [
|
|
1152
|
-
/* @__PURE__ */ e(
|
|
1152
|
+
/* @__PURE__ */ e(Se, { icon: fe, title: B, iconColor: a.railCompliance }),
|
|
1153
1153
|
/* @__PURE__ */ l("div", { style: { display: "flex", gap: 24, alignItems: "flex-start" }, children: [
|
|
1154
1154
|
/* @__PURE__ */ l("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 8, minWidth: 0 }, children: [
|
|
1155
|
-
/* @__PURE__ */ e(
|
|
1156
|
-
/* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", maxHeight: 480, overflowY: "auto" }, children:
|
|
1155
|
+
/* @__PURE__ */ e(Oe, { icon: Ze, title: K }),
|
|
1156
|
+
/* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", maxHeight: 480, overflowY: "auto" }, children: R.map((D, F) => /* @__PURE__ */ e(_e, { ...D }, F)) })
|
|
1157
1157
|
] }),
|
|
1158
1158
|
/* @__PURE__ */ l("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 8, minWidth: 0 }, children: [
|
|
1159
|
-
/* @__PURE__ */ e(
|
|
1160
|
-
/* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", maxHeight: 480, overflowY: "auto" }, children:
|
|
1159
|
+
/* @__PURE__ */ e(Oe, { icon: qe, title: J }),
|
|
1160
|
+
/* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", maxHeight: 480, overflowY: "auto" }, children: H.map((D, F) => /* @__PURE__ */ e(_e, { ...D }, F)) })
|
|
1161
1161
|
] })
|
|
1162
1162
|
] })
|
|
1163
1163
|
] }),
|
|
1164
1164
|
/* @__PURE__ */ l("div", { style: { display: "flex", flexDirection: "column", gap: 16, marginTop: 8 }, children: [
|
|
1165
|
-
|
|
1165
|
+
h && /* @__PURE__ */ e(
|
|
1166
1166
|
"span",
|
|
1167
1167
|
{
|
|
1168
1168
|
style: {
|
|
1169
|
-
fontFamily:
|
|
1169
|
+
fontFamily: le,
|
|
1170
1170
|
fontWeight: 600,
|
|
1171
1171
|
fontSize: 16,
|
|
1172
1172
|
color: a.ink,
|
|
1173
1173
|
lineHeight: 1.2
|
|
1174
1174
|
},
|
|
1175
|
-
children:
|
|
1175
|
+
children: h
|
|
1176
1176
|
}
|
|
1177
1177
|
),
|
|
1178
1178
|
/* @__PURE__ */ e(
|
|
1179
|
-
|
|
1179
|
+
et,
|
|
1180
1180
|
{
|
|
1181
|
-
data:
|
|
1182
|
-
columns:
|
|
1183
|
-
initialPageSize:
|
|
1184
|
-
totalCount:
|
|
1185
|
-
page:
|
|
1186
|
-
pageSize:
|
|
1187
|
-
onPageChange:
|
|
1188
|
-
onPageSizeChange:
|
|
1189
|
-
onRowClick:
|
|
1190
|
-
onVisibleColumnsChange:
|
|
1181
|
+
data: he,
|
|
1182
|
+
columns: oe,
|
|
1183
|
+
initialPageSize: ee,
|
|
1184
|
+
totalCount: te,
|
|
1185
|
+
page: ne,
|
|
1186
|
+
pageSize: p,
|
|
1187
|
+
onPageChange: m,
|
|
1188
|
+
onPageSizeChange: $,
|
|
1189
|
+
onRowClick: _,
|
|
1190
|
+
onVisibleColumnsChange: ye
|
|
1191
1191
|
}
|
|
1192
1192
|
)
|
|
1193
1193
|
] })
|
|
@@ -1198,7 +1198,7 @@ function Ht({
|
|
|
1198
1198
|
}
|
|
1199
1199
|
);
|
|
1200
1200
|
}
|
|
1201
|
-
const
|
|
1201
|
+
const ce = { value: "", label: "", trend: "up" }, r = {
|
|
1202
1202
|
ink: "var(--color-text)",
|
|
1203
1203
|
muted: "var(--color-text-secondary)",
|
|
1204
1204
|
border: "var(--grey-absent)",
|
|
@@ -1224,9 +1224,9 @@ const pe = { value: "", label: "", trend: "up" }, r = {
|
|
|
1224
1224
|
shadowDropdown: "var(--shadow-dropdown)",
|
|
1225
1225
|
railCompliance: "var(--rail-compliance)"
|
|
1226
1226
|
// section icon accent
|
|
1227
|
-
},
|
|
1228
|
-
function
|
|
1229
|
-
const d =
|
|
1227
|
+
}, re = "var(--font-sans, 'Averta', ui-sans-serif, system-ui, sans-serif)", z = "var(--font-sans, 'Averta', ui-sans-serif, system-ui, sans-serif)";
|
|
1228
|
+
function rt({ trend: t = "up", points: n, width: i = 49.618, height: o = 35 }) {
|
|
1229
|
+
const d = L.useId(), s = At(n), c = s ? s.line : zt, y = s ? s.area : Ft, w = Te(n) ?? t;
|
|
1230
1230
|
return /* @__PURE__ */ l(
|
|
1231
1231
|
"svg",
|
|
1232
1232
|
{
|
|
@@ -1280,10 +1280,10 @@ function ot({ trend: t = "up", points: n, width: i = 49.618, height: o = 35 }) {
|
|
|
1280
1280
|
}
|
|
1281
1281
|
);
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1284
|
-
return
|
|
1283
|
+
function ot(t, n) {
|
|
1284
|
+
return Te(n) ?? (t === "down" ? "down" : "up");
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1286
|
+
function at({ direction: t = "up", color: n = r.muted }) {
|
|
1287
1287
|
return /* @__PURE__ */ e("svg", { width: 18, height: 9.5, viewBox: "0 0 19 10", fill: "none", style: { flexShrink: 0 }, children: /* @__PURE__ */ e(
|
|
1288
1288
|
"path",
|
|
1289
1289
|
{
|
|
@@ -1295,8 +1295,8 @@ function st({ direction: t = "up", color: n = r.muted }) {
|
|
|
1295
1295
|
}
|
|
1296
1296
|
) });
|
|
1297
1297
|
}
|
|
1298
|
-
function
|
|
1299
|
-
const y =
|
|
1298
|
+
function je({ value: t, label: n, trend: i = "up", points: o, muted: d = !1, beigeBg: s = !1, style: c = {} }) {
|
|
1299
|
+
const y = ot(i, o);
|
|
1300
1300
|
return /* @__PURE__ */ l(
|
|
1301
1301
|
"div",
|
|
1302
1302
|
{
|
|
@@ -1313,15 +1313,15 @@ function Ye({ value: t, label: n, trend: i = "up", points: o, muted: d = !1, bei
|
|
|
1313
1313
|
},
|
|
1314
1314
|
children: [
|
|
1315
1315
|
/* @__PURE__ */ l("div", { style: { display: "flex", alignItems: "flex-start", justifyContent: "space-between" }, children: [
|
|
1316
|
-
/* @__PURE__ */ e(
|
|
1317
|
-
/* @__PURE__ */ e(
|
|
1316
|
+
/* @__PURE__ */ e(rt, { trend: y, points: o }),
|
|
1317
|
+
/* @__PURE__ */ e(at, { direction: y })
|
|
1318
1318
|
] }),
|
|
1319
1319
|
/* @__PURE__ */ l("div", { style: { display: "flex", flexDirection: "column", gap: 8, marginTop: 8 }, children: [
|
|
1320
1320
|
/* @__PURE__ */ e(
|
|
1321
1321
|
"div",
|
|
1322
1322
|
{
|
|
1323
1323
|
style: {
|
|
1324
|
-
fontFamily:
|
|
1324
|
+
fontFamily: re,
|
|
1325
1325
|
fontSize: 28,
|
|
1326
1326
|
fontWeight: 500,
|
|
1327
1327
|
lineHeight: "1.2",
|
|
@@ -1331,14 +1331,14 @@ function Ye({ value: t, label: n, trend: i = "up", points: o, muted: d = !1, bei
|
|
|
1331
1331
|
children: t
|
|
1332
1332
|
}
|
|
1333
1333
|
),
|
|
1334
|
-
/* @__PURE__ */ e("div", { style: { fontFamily:
|
|
1334
|
+
/* @__PURE__ */ e("div", { style: { fontFamily: z, fontSize: 13, color: r.ink, lineHeight: "1.2" }, children: n })
|
|
1335
1335
|
] })
|
|
1336
1336
|
]
|
|
1337
1337
|
}
|
|
1338
1338
|
);
|
|
1339
1339
|
}
|
|
1340
|
-
function
|
|
1341
|
-
const s =
|
|
1340
|
+
function De({ value: t, label: n, trend: i = "up", points: o, withDivider: d = !1 }) {
|
|
1341
|
+
const s = ot(i, o);
|
|
1342
1342
|
return /* @__PURE__ */ l(
|
|
1343
1343
|
"div",
|
|
1344
1344
|
{
|
|
@@ -1353,15 +1353,15 @@ function Le({ value: t, label: n, trend: i = "up", points: o, withDivider: d = !
|
|
|
1353
1353
|
},
|
|
1354
1354
|
children: [
|
|
1355
1355
|
/* @__PURE__ */ l("div", { style: { display: "flex", alignItems: "flex-start", justifyContent: "space-between" }, children: [
|
|
1356
|
-
/* @__PURE__ */ e(
|
|
1357
|
-
/* @__PURE__ */ e(
|
|
1356
|
+
/* @__PURE__ */ e(rt, { trend: s, points: o }),
|
|
1357
|
+
/* @__PURE__ */ e(at, { direction: s })
|
|
1358
1358
|
] }),
|
|
1359
1359
|
/* @__PURE__ */ l("div", { style: { display: "flex", flexDirection: "column", gap: 8, marginTop: 8 }, children: [
|
|
1360
1360
|
/* @__PURE__ */ e(
|
|
1361
1361
|
"div",
|
|
1362
1362
|
{
|
|
1363
1363
|
style: {
|
|
1364
|
-
fontFamily:
|
|
1364
|
+
fontFamily: re,
|
|
1365
1365
|
fontSize: 28,
|
|
1366
1366
|
fontWeight: 500,
|
|
1367
1367
|
lineHeight: "1.2",
|
|
@@ -1371,13 +1371,13 @@ function Le({ value: t, label: n, trend: i = "up", points: o, withDivider: d = !
|
|
|
1371
1371
|
children: t
|
|
1372
1372
|
}
|
|
1373
1373
|
),
|
|
1374
|
-
/* @__PURE__ */ e("div", { style: { fontFamily:
|
|
1374
|
+
/* @__PURE__ */ e("div", { style: { fontFamily: z, fontSize: 13, color: r.ink, lineHeight: "1.2" }, children: n })
|
|
1375
1375
|
] })
|
|
1376
1376
|
]
|
|
1377
1377
|
}
|
|
1378
1378
|
);
|
|
1379
1379
|
}
|
|
1380
|
-
function
|
|
1380
|
+
function Ht({ icon: t, children: n, trailing: i }) {
|
|
1381
1381
|
return /* @__PURE__ */ l(
|
|
1382
1382
|
"button",
|
|
1383
1383
|
{
|
|
@@ -1392,7 +1392,7 @@ function Nt({ icon: t, children: n, trailing: i }) {
|
|
|
1392
1392
|
border: `1px solid ${r.neutralBorder}`,
|
|
1393
1393
|
background: r.white,
|
|
1394
1394
|
cursor: "pointer",
|
|
1395
|
-
fontFamily:
|
|
1395
|
+
fontFamily: z,
|
|
1396
1396
|
fontSize: 14,
|
|
1397
1397
|
color: r.neutral800,
|
|
1398
1398
|
whiteSpace: "nowrap"
|
|
@@ -1405,7 +1405,7 @@ function Nt({ icon: t, children: n, trailing: i }) {
|
|
|
1405
1405
|
}
|
|
1406
1406
|
);
|
|
1407
1407
|
}
|
|
1408
|
-
const
|
|
1408
|
+
const Nt = [
|
|
1409
1409
|
"January",
|
|
1410
1410
|
"February",
|
|
1411
1411
|
"March",
|
|
@@ -1418,61 +1418,61 @@ const Rt = [
|
|
|
1418
1418
|
"October",
|
|
1419
1419
|
"November",
|
|
1420
1420
|
"December"
|
|
1421
|
-
],
|
|
1422
|
-
function
|
|
1421
|
+
], Rt = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
|
|
1422
|
+
function me(t) {
|
|
1423
1423
|
const n = new Date(t);
|
|
1424
1424
|
return n.setHours(0, 0, 0, 0), n;
|
|
1425
1425
|
}
|
|
1426
|
-
function
|
|
1426
|
+
function Bt(t, n) {
|
|
1427
1427
|
const o = new Date(t, n, 1).getDay(), d = new Date(t, n, 1 - o);
|
|
1428
1428
|
return Array.from({ length: 42 }, (s, c) => {
|
|
1429
1429
|
const y = new Date(d);
|
|
1430
1430
|
return y.setDate(d.getDate() + c), y;
|
|
1431
1431
|
});
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1434
|
-
const d =
|
|
1435
|
-
|
|
1436
|
-
const
|
|
1433
|
+
function Et({ value: t, onApply: n, onClose: i, anchorRef: o }) {
|
|
1434
|
+
const d = L.useRef(null), [s, c] = L.useState(t != null && t.from ? me(t.from) : null), [y, w] = L.useState(t != null && t.to ? me(t.to) : null), u = s || /* @__PURE__ */ new Date(), [g, x] = L.useState(u.getFullYear()), [b, v] = L.useState(u.getMonth()), [M, S] = L.useState({ top: 0, left: 0 });
|
|
1435
|
+
L.useLayoutEffect(() => {
|
|
1436
|
+
const h = () => {
|
|
1437
1437
|
if (!(o != null && o.current))
|
|
1438
1438
|
return;
|
|
1439
|
-
const
|
|
1440
|
-
|
|
1441
|
-
top:
|
|
1442
|
-
left: Math.max(8,
|
|
1439
|
+
const A = o.current.getBoundingClientRect(), P = 320;
|
|
1440
|
+
S({
|
|
1441
|
+
top: A.bottom + 6,
|
|
1442
|
+
left: Math.max(8, A.right - P)
|
|
1443
1443
|
});
|
|
1444
1444
|
};
|
|
1445
|
-
return
|
|
1446
|
-
window.removeEventListener("scroll",
|
|
1445
|
+
return h(), window.addEventListener("scroll", h, !0), window.addEventListener("resize", h), () => {
|
|
1446
|
+
window.removeEventListener("scroll", h, !0), window.removeEventListener("resize", h);
|
|
1447
1447
|
};
|
|
1448
|
-
}, [o]),
|
|
1449
|
-
const
|
|
1450
|
-
var
|
|
1451
|
-
(
|
|
1452
|
-
},
|
|
1453
|
-
|
|
1448
|
+
}, [o]), L.useEffect(() => {
|
|
1449
|
+
const h = (P) => {
|
|
1450
|
+
var T, j;
|
|
1451
|
+
(T = d.current) != null && T.contains(P.target) || (j = o == null ? void 0 : o.current) != null && j.contains(P.target) || i();
|
|
1452
|
+
}, A = (P) => {
|
|
1453
|
+
P.key === "Escape" && i();
|
|
1454
1454
|
};
|
|
1455
|
-
return document.addEventListener("mousedown",
|
|
1456
|
-
document.removeEventListener("mousedown",
|
|
1455
|
+
return document.addEventListener("mousedown", h), document.addEventListener("keydown", A), () => {
|
|
1456
|
+
document.removeEventListener("mousedown", h), document.removeEventListener("keydown", A);
|
|
1457
1457
|
};
|
|
1458
1458
|
}, [i, o]);
|
|
1459
|
-
const
|
|
1460
|
-
const
|
|
1461
|
-
|
|
1459
|
+
const R = Bt(g, b), H = me(/* @__PURE__ */ new Date()), X = (h) => {
|
|
1460
|
+
const A = me(h);
|
|
1461
|
+
A > H || (!s || s && y ? (c(A), w(null)) : A < s ? c(A) : w(A));
|
|
1462
1462
|
}, O = () => {
|
|
1463
|
-
|
|
1464
|
-
},
|
|
1465
|
-
|
|
1466
|
-
},
|
|
1467
|
-
return
|
|
1463
|
+
b === 0 ? (v(11), x(g - 1)) : v(b - 1);
|
|
1464
|
+
}, B = () => {
|
|
1465
|
+
b === 11 ? (v(0), x(g + 1)) : v(b + 1);
|
|
1466
|
+
}, K = (h) => s && y && h >= s && h <= y, J = (h) => s && h.getTime() === s.getTime() || y && h.getTime() === y.getTime();
|
|
1467
|
+
return pt(
|
|
1468
1468
|
/* @__PURE__ */ l(
|
|
1469
1469
|
"div",
|
|
1470
1470
|
{
|
|
1471
1471
|
ref: d,
|
|
1472
1472
|
style: {
|
|
1473
1473
|
position: "fixed",
|
|
1474
|
-
top:
|
|
1475
|
-
left:
|
|
1474
|
+
top: M.top,
|
|
1475
|
+
left: M.left,
|
|
1476
1476
|
width: 320,
|
|
1477
1477
|
background: r.white,
|
|
1478
1478
|
border: `1px solid ${r.borderSubtle}`,
|
|
@@ -1480,43 +1480,43 @@ function _t({ value: t, onApply: n, onClose: i, anchorRef: o }) {
|
|
|
1480
1480
|
boxShadow: r.shadowPopover,
|
|
1481
1481
|
padding: 16,
|
|
1482
1482
|
zIndex: 9999,
|
|
1483
|
-
fontFamily:
|
|
1483
|
+
fontFamily: z
|
|
1484
1484
|
},
|
|
1485
1485
|
children: [
|
|
1486
1486
|
/* @__PURE__ */ l("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: 12 }, children: [
|
|
1487
|
-
/* @__PURE__ */ e("button", { type: "button", onClick: O, style:
|
|
1487
|
+
/* @__PURE__ */ e("button", { type: "button", onClick: O, style: Ye, "aria-label": "Previous month", children: /* @__PURE__ */ e(bt, { size: 18, strokeWidth: 1.75 }) }),
|
|
1488
1488
|
/* @__PURE__ */ l("div", { style: { fontSize: 14, fontWeight: 600, color: r.ink }, children: [
|
|
1489
|
-
|
|
1489
|
+
Nt[b],
|
|
1490
1490
|
" ",
|
|
1491
|
-
|
|
1491
|
+
g
|
|
1492
1492
|
] }),
|
|
1493
|
-
/* @__PURE__ */ e("button", { type: "button", onClick:
|
|
1493
|
+
/* @__PURE__ */ e("button", { type: "button", onClick: B, style: Ye, "aria-label": "Next month", children: /* @__PURE__ */ e(vt, { size: 18, strokeWidth: 1.75 }) })
|
|
1494
1494
|
] }),
|
|
1495
|
-
/* @__PURE__ */ e("div", { style: { display: "grid", gridTemplateColumns: "repeat(7, 1fr)", gap: 2, marginBottom: 4 }, children:
|
|
1496
|
-
/* @__PURE__ */ e("div", { style: { display: "grid", gridTemplateColumns: "repeat(7, 1fr)", gap: 2 }, children:
|
|
1497
|
-
const
|
|
1495
|
+
/* @__PURE__ */ e("div", { style: { display: "grid", gridTemplateColumns: "repeat(7, 1fr)", gap: 2, marginBottom: 4 }, children: Rt.map((h) => /* @__PURE__ */ e("div", { style: { textAlign: "center", fontSize: 12, color: r.muted, padding: "4px 0" }, children: h }, h)) }),
|
|
1496
|
+
/* @__PURE__ */ e("div", { style: { display: "grid", gridTemplateColumns: "repeat(7, 1fr)", gap: 2 }, children: R.map((h) => {
|
|
1497
|
+
const A = h.getMonth() === b, P = K(h), T = J(h), j = h.getTime() === H.getTime(), N = h > H;
|
|
1498
1498
|
return /* @__PURE__ */ e(
|
|
1499
1499
|
"button",
|
|
1500
1500
|
{
|
|
1501
1501
|
type: "button",
|
|
1502
|
-
onClick: () => X(
|
|
1503
|
-
disabled:
|
|
1504
|
-
"aria-disabled":
|
|
1502
|
+
onClick: () => X(h),
|
|
1503
|
+
disabled: N,
|
|
1504
|
+
"aria-disabled": N,
|
|
1505
1505
|
style: {
|
|
1506
1506
|
height: 36,
|
|
1507
1507
|
border: "none",
|
|
1508
1508
|
borderRadius: 8,
|
|
1509
|
-
background:
|
|
1510
|
-
color:
|
|
1511
|
-
fontFamily:
|
|
1509
|
+
background: T ? r.black : P ? r.hoverWarm40 : "transparent",
|
|
1510
|
+
color: T ? r.white : N ? r.textFaintGrey : A ? r.ink : r.muted,
|
|
1511
|
+
fontFamily: z,
|
|
1512
1512
|
fontSize: 13,
|
|
1513
1513
|
fontWeight: j ? 500 : 400,
|
|
1514
|
-
cursor:
|
|
1515
|
-
opacity:
|
|
1514
|
+
cursor: N ? "not-allowed" : "pointer",
|
|
1515
|
+
opacity: N ? 0.6 : 1
|
|
1516
1516
|
},
|
|
1517
|
-
children:
|
|
1517
|
+
children: h.getDate()
|
|
1518
1518
|
},
|
|
1519
|
-
|
|
1519
|
+
h.toISOString()
|
|
1520
1520
|
);
|
|
1521
1521
|
}) }),
|
|
1522
1522
|
/* @__PURE__ */ l("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center", marginTop: 12, paddingTop: 12, borderTop: `1px solid ${r.borderSubtle}` }, children: [
|
|
@@ -1546,7 +1546,7 @@ function _t({ value: t, onApply: n, onClose: i, anchorRef: o }) {
|
|
|
1546
1546
|
borderRadius: 10,
|
|
1547
1547
|
height: 30,
|
|
1548
1548
|
padding: "0 16px",
|
|
1549
|
-
fontFamily:
|
|
1549
|
+
fontFamily: z,
|
|
1550
1550
|
fontSize: 14,
|
|
1551
1551
|
fontWeight: 600,
|
|
1552
1552
|
cursor: !s || !y ? "not-allowed" : "pointer"
|
|
@@ -1561,7 +1561,7 @@ function _t({ value: t, onApply: n, onClose: i, anchorRef: o }) {
|
|
|
1561
1561
|
document.body
|
|
1562
1562
|
);
|
|
1563
1563
|
}
|
|
1564
|
-
const
|
|
1564
|
+
const Ye = {
|
|
1565
1565
|
display: "inline-flex",
|
|
1566
1566
|
alignItems: "center",
|
|
1567
1567
|
justifyContent: "center",
|
|
@@ -1573,9 +1573,9 @@ const Ve = {
|
|
|
1573
1573
|
cursor: "pointer",
|
|
1574
1574
|
color: r.ink
|
|
1575
1575
|
};
|
|
1576
|
-
function
|
|
1577
|
-
const [i, o] =
|
|
1578
|
-
return /* @__PURE__ */ l(
|
|
1576
|
+
function st({ value: t, onChange: n }) {
|
|
1577
|
+
const [i, o] = L.useState(!1), d = L.useRef(null), s = !!(t != null && t.from && (t != null && t.to));
|
|
1578
|
+
return /* @__PURE__ */ l(Xe, { children: [
|
|
1579
1579
|
/* @__PURE__ */ l(
|
|
1580
1580
|
"button",
|
|
1581
1581
|
{
|
|
@@ -1592,20 +1592,20 @@ function dt({ value: t, onChange: n }) {
|
|
|
1592
1592
|
border: s ? "none" : `1px solid ${r.neutralBorder}`,
|
|
1593
1593
|
background: s ? r.black : r.white,
|
|
1594
1594
|
cursor: "pointer",
|
|
1595
|
-
fontFamily:
|
|
1595
|
+
fontFamily: z,
|
|
1596
1596
|
fontSize: 14,
|
|
1597
1597
|
color: s ? r.white : r.neutral800,
|
|
1598
1598
|
fontWeight: s ? 600 : 400,
|
|
1599
1599
|
whiteSpace: "nowrap"
|
|
1600
1600
|
},
|
|
1601
1601
|
children: [
|
|
1602
|
-
/* @__PURE__ */ e(
|
|
1602
|
+
/* @__PURE__ */ e(be, { size: 18, strokeWidth: 1.75 }),
|
|
1603
1603
|
"Date Range"
|
|
1604
1604
|
]
|
|
1605
1605
|
}
|
|
1606
1606
|
),
|
|
1607
1607
|
i && /* @__PURE__ */ e(
|
|
1608
|
-
|
|
1608
|
+
Et,
|
|
1609
1609
|
{
|
|
1610
1610
|
value: t,
|
|
1611
1611
|
anchorRef: d,
|
|
@@ -1615,7 +1615,7 @@ function dt({ value: t, onChange: n }) {
|
|
|
1615
1615
|
)
|
|
1616
1616
|
] });
|
|
1617
1617
|
}
|
|
1618
|
-
function
|
|
1618
|
+
function _t({ label: t, active: n = !1, onClick: i }) {
|
|
1619
1619
|
return /* @__PURE__ */ e(
|
|
1620
1620
|
"button",
|
|
1621
1621
|
{
|
|
@@ -1629,7 +1629,7 @@ function Ot({ label: t, active: n = !1, onClick: i }) {
|
|
|
1629
1629
|
border: n ? "none" : `1px solid ${r.borderSubtle}`,
|
|
1630
1630
|
background: n ? r.black : r.white,
|
|
1631
1631
|
color: n ? r.white : r.black,
|
|
1632
|
-
fontFamily:
|
|
1632
|
+
fontFamily: z,
|
|
1633
1633
|
fontSize: 14,
|
|
1634
1634
|
cursor: "pointer"
|
|
1635
1635
|
},
|
|
@@ -1637,13 +1637,13 @@ function Ot({ label: t, active: n = !1, onClick: i }) {
|
|
|
1637
1637
|
}
|
|
1638
1638
|
);
|
|
1639
1639
|
}
|
|
1640
|
-
const
|
|
1640
|
+
const Ot = [
|
|
1641
1641
|
{ id: "8h", label: "8h" },
|
|
1642
1642
|
{ id: "1d", label: "1d" },
|
|
1643
1643
|
{ id: "7d", label: "7d" },
|
|
1644
1644
|
{ id: "30d", label: "30d" }
|
|
1645
1645
|
];
|
|
1646
|
-
function
|
|
1646
|
+
function jt({ value: t = 0, max: n = 5 }) {
|
|
1647
1647
|
const i = typeof t == "number" ? t : parseFloat(t) || 0, o = Math.floor(i), d = i % 1 > 0 && o < n;
|
|
1648
1648
|
return /* @__PURE__ */ e("div", { style: { display: "flex", gap: 4 }, children: Array.from({ length: n }).map((s, c) => c < o ? /* @__PURE__ */ e(
|
|
1649
1649
|
"span",
|
|
@@ -1698,7 +1698,7 @@ function Yt({ value: t = 0, max: n = 5 }) {
|
|
|
1698
1698
|
c
|
|
1699
1699
|
)) });
|
|
1700
1700
|
}
|
|
1701
|
-
const
|
|
1701
|
+
const Zt = [
|
|
1702
1702
|
{ id: "agent", label: "Agent", width: 180, sortable: !0, filterable: !0 },
|
|
1703
1703
|
{ id: "supervisor", label: "Supervisor", width: 170, sortable: !0, filterable: !0 },
|
|
1704
1704
|
{ id: "calls", label: "Calls", width: 100, sortable: !0 },
|
|
@@ -1714,13 +1714,13 @@ const qt = [
|
|
|
1714
1714
|
filterType: "number",
|
|
1715
1715
|
render: (t) => /* @__PURE__ */ l("span", { style: { display: "inline-flex", alignItems: "center", gap: 12 }, children: [
|
|
1716
1716
|
/* @__PURE__ */ e("span", { style: { minWidth: 32 }, children: t }),
|
|
1717
|
-
/* @__PURE__ */ e(
|
|
1717
|
+
/* @__PURE__ */ e(jt, { value: typeof t == "number" ? t : 0 })
|
|
1718
1718
|
] })
|
|
1719
1719
|
},
|
|
1720
1720
|
{ id: "totalDuration", label: "Total Duration", width: 150, sortable: !0, filterable: !0, filterType: "duration", filterShowPresets: !1 },
|
|
1721
1721
|
{ id: "avgDuration", label: "Average Duration", width: 170, sortable: !0, filterable: !0, filterType: "duration", filterShowPresets: !1 }
|
|
1722
1722
|
];
|
|
1723
|
-
function
|
|
1723
|
+
function ge({ icon: t, title: n, trailing: i, iconColor: o = r.ink, bordered: d = !1 }) {
|
|
1724
1724
|
return /* @__PURE__ */ l(
|
|
1725
1725
|
"div",
|
|
1726
1726
|
{
|
|
@@ -1752,7 +1752,7 @@ function be({ icon: t, title: n, trailing: i, iconColor: o = r.ink, bordered: d
|
|
|
1752
1752
|
{
|
|
1753
1753
|
style: {
|
|
1754
1754
|
flex: 1,
|
|
1755
|
-
fontFamily:
|
|
1755
|
+
fontFamily: re,
|
|
1756
1756
|
fontWeight: 600,
|
|
1757
1757
|
fontSize: 16,
|
|
1758
1758
|
color: r.ink,
|
|
@@ -1763,12 +1763,12 @@ function be({ icon: t, title: n, trailing: i, iconColor: o = r.ink, bordered: d
|
|
|
1763
1763
|
children: n
|
|
1764
1764
|
}
|
|
1765
1765
|
),
|
|
1766
|
-
i && /* @__PURE__ */ e("div", { style: { fontFamily:
|
|
1766
|
+
i && /* @__PURE__ */ e("div", { style: { fontFamily: z, fontSize: 14, color: r.ink }, children: i })
|
|
1767
1767
|
]
|
|
1768
1768
|
}
|
|
1769
1769
|
);
|
|
1770
1770
|
}
|
|
1771
|
-
function
|
|
1771
|
+
function Ve({ icon: t, title: n }) {
|
|
1772
1772
|
return /* @__PURE__ */ l("div", { style: { display: "flex", alignItems: "center", gap: 16, width: "100%" }, children: [
|
|
1773
1773
|
/* @__PURE__ */ e(
|
|
1774
1774
|
"div",
|
|
@@ -1790,7 +1790,7 @@ function Ue({ icon: t, title: n }) {
|
|
|
1790
1790
|
"span",
|
|
1791
1791
|
{
|
|
1792
1792
|
style: {
|
|
1793
|
-
fontFamily:
|
|
1793
|
+
fontFamily: re,
|
|
1794
1794
|
fontWeight: 600,
|
|
1795
1795
|
fontSize: 16,
|
|
1796
1796
|
color: r.ink,
|
|
@@ -1801,8 +1801,8 @@ function Ue({ icon: t, title: n }) {
|
|
|
1801
1801
|
)
|
|
1802
1802
|
] });
|
|
1803
1803
|
}
|
|
1804
|
-
function
|
|
1805
|
-
const [c, y] =
|
|
1804
|
+
function Ue({ title: t, summary: n, calls: i, percent: o, bullets: d, defaultExpanded: s = !1 }) {
|
|
1805
|
+
const [c, y] = L.useState(s), w = Array.isArray(d) ? d : [];
|
|
1806
1806
|
return /* @__PURE__ */ l("div", { style: { borderTop: `1px solid ${r.border}` }, children: [
|
|
1807
1807
|
/* @__PURE__ */ l(
|
|
1808
1808
|
"button",
|
|
@@ -1820,7 +1820,7 @@ function Xe({ title: t, summary: n, calls: i, percent: o, bullets: d, defaultExp
|
|
|
1820
1820
|
cursor: "pointer",
|
|
1821
1821
|
width: "100%",
|
|
1822
1822
|
textAlign: "left",
|
|
1823
|
-
fontFamily:
|
|
1823
|
+
fontFamily: z
|
|
1824
1824
|
},
|
|
1825
1825
|
children: [
|
|
1826
1826
|
/* @__PURE__ */ l(
|
|
@@ -1839,7 +1839,7 @@ function Xe({ title: t, summary: n, calls: i, percent: o, bullets: d, defaultExp
|
|
|
1839
1839
|
"div",
|
|
1840
1840
|
{
|
|
1841
1841
|
style: {
|
|
1842
|
-
fontFamily:
|
|
1842
|
+
fontFamily: re,
|
|
1843
1843
|
fontWeight: 600,
|
|
1844
1844
|
fontSize: 14,
|
|
1845
1845
|
color: r.black,
|
|
@@ -1848,23 +1848,23 @@ function Xe({ title: t, summary: n, calls: i, percent: o, bullets: d, defaultExp
|
|
|
1848
1848
|
children: t
|
|
1849
1849
|
}
|
|
1850
1850
|
),
|
|
1851
|
-
/* @__PURE__ */ e("div", { style: { fontFamily:
|
|
1851
|
+
/* @__PURE__ */ e("div", { style: { fontFamily: z, fontSize: 14, color: r.muted, lineHeight: "24px" }, children: n })
|
|
1852
1852
|
] }),
|
|
1853
1853
|
/* @__PURE__ */ l("div", { style: { display: "flex", gap: 16 }, children: [
|
|
1854
1854
|
/* @__PURE__ */ l("div", { style: { display: "flex", alignItems: "center", gap: 4 }, children: [
|
|
1855
|
-
/* @__PURE__ */ e(
|
|
1856
|
-
/* @__PURE__ */ e("span", { style: { fontFamily:
|
|
1855
|
+
/* @__PURE__ */ e(fe, { size: 14, color: r.ink, strokeWidth: 1.75 }),
|
|
1856
|
+
/* @__PURE__ */ e("span", { style: { fontFamily: z, fontSize: 12, color: r.ink, lineHeight: 1.5 }, children: i })
|
|
1857
1857
|
] }),
|
|
1858
1858
|
/* @__PURE__ */ l("div", { style: { display: "flex", alignItems: "center", gap: 4 }, children: [
|
|
1859
|
-
/* @__PURE__ */ e(
|
|
1860
|
-
/* @__PURE__ */ e("span", { style: { fontFamily:
|
|
1859
|
+
/* @__PURE__ */ e(Qe, { size: 14, color: r.ink, strokeWidth: 1.75 }),
|
|
1860
|
+
/* @__PURE__ */ e("span", { style: { fontFamily: z, fontSize: 12, color: r.ink, lineHeight: 1.5 }, children: o })
|
|
1861
1861
|
] })
|
|
1862
1862
|
] })
|
|
1863
1863
|
]
|
|
1864
1864
|
}
|
|
1865
1865
|
),
|
|
1866
1866
|
/* @__PURE__ */ e(
|
|
1867
|
-
|
|
1867
|
+
ze,
|
|
1868
1868
|
{
|
|
1869
1869
|
size: 20,
|
|
1870
1870
|
color: r.ink,
|
|
@@ -1888,14 +1888,14 @@ function Xe({ title: t, summary: n, calls: i, percent: o, bullets: d, defaultExp
|
|
|
1888
1888
|
gap: 12,
|
|
1889
1889
|
padding: "0 16px 16px"
|
|
1890
1890
|
},
|
|
1891
|
-
children: w.map((u,
|
|
1891
|
+
children: w.map((u, g) => /* @__PURE__ */ l(
|
|
1892
1892
|
"div",
|
|
1893
1893
|
{
|
|
1894
1894
|
style: {
|
|
1895
1895
|
display: "flex",
|
|
1896
1896
|
alignItems: "center",
|
|
1897
1897
|
justifyContent: "space-between",
|
|
1898
|
-
fontFamily:
|
|
1898
|
+
fontFamily: z,
|
|
1899
1899
|
fontSize: 14,
|
|
1900
1900
|
color: r.ink,
|
|
1901
1901
|
lineHeight: "24px",
|
|
@@ -1942,13 +1942,13 @@ function Xe({ title: t, summary: n, calls: i, percent: o, bullets: d, defaultExp
|
|
|
1942
1942
|
] })
|
|
1943
1943
|
]
|
|
1944
1944
|
},
|
|
1945
|
-
|
|
1945
|
+
g
|
|
1946
1946
|
))
|
|
1947
1947
|
}
|
|
1948
1948
|
)
|
|
1949
1949
|
] });
|
|
1950
1950
|
}
|
|
1951
|
-
function
|
|
1951
|
+
function xe({ label: t, value: n }) {
|
|
1952
1952
|
return /* @__PURE__ */ l(
|
|
1953
1953
|
"div",
|
|
1954
1954
|
{
|
|
@@ -1958,7 +1958,7 @@ function ve({ label: t, value: n }) {
|
|
|
1958
1958
|
alignItems: "center",
|
|
1959
1959
|
padding: "12px 0",
|
|
1960
1960
|
borderBottom: `1px solid ${r.border}`,
|
|
1961
|
-
fontFamily:
|
|
1961
|
+
fontFamily: z,
|
|
1962
1962
|
fontSize: 13,
|
|
1963
1963
|
lineHeight: "24px"
|
|
1964
1964
|
},
|
|
@@ -1969,13 +1969,13 @@ function ve({ label: t, value: n }) {
|
|
|
1969
1969
|
}
|
|
1970
1970
|
);
|
|
1971
1971
|
}
|
|
1972
|
-
function
|
|
1972
|
+
function ue({ message: t = "" }) {
|
|
1973
1973
|
return t ? /* @__PURE__ */ e(
|
|
1974
1974
|
"div",
|
|
1975
1975
|
{
|
|
1976
1976
|
style: {
|
|
1977
1977
|
padding: "16px 0",
|
|
1978
|
-
fontFamily:
|
|
1978
|
+
fontFamily: z,
|
|
1979
1979
|
fontSize: 13,
|
|
1980
1980
|
color: r.muted,
|
|
1981
1981
|
lineHeight: 1.5
|
|
@@ -1984,116 +1984,119 @@ function he({ message: t = "" }) {
|
|
|
1984
1984
|
}
|
|
1985
1985
|
) : null;
|
|
1986
1986
|
}
|
|
1987
|
-
function
|
|
1987
|
+
function qt({
|
|
1988
1988
|
className: t = "",
|
|
1989
1989
|
onAgentClick: n,
|
|
1990
1990
|
// Header text — empty defaults so host apps don't see demo copy. Hosts pass
|
|
1991
1991
|
// their own page title / subtitle (the gallery in dev/App.jsx demonstrates
|
|
1992
1992
|
// the intended "Performance" / "Agent performance metrics..." wording).
|
|
1993
|
-
title
|
|
1994
|
-
|
|
1995
|
-
dateRangeLabel:
|
|
1993
|
+
// Header — the host app renders the page title/subtitle (via its PageHeader
|
|
1994
|
+
// component); this component only owns the control row + content.
|
|
1995
|
+
dateRangeLabel: i = "",
|
|
1996
1996
|
// View-by dropdown. `initialViewBy` seeds internal state on mount;
|
|
1997
1997
|
// `onViewByChange(id)` fires when the user selects a different option.
|
|
1998
|
-
viewByOptions:
|
|
1999
|
-
initialViewBy:
|
|
2000
|
-
onViewByChange:
|
|
1998
|
+
viewByOptions: o = [],
|
|
1999
|
+
initialViewBy: d = "",
|
|
2000
|
+
onViewByChange: s,
|
|
2001
2001
|
// Label rendered above the View-by option list inside the popover. Empty by
|
|
2002
2002
|
// default; the gallery passes "Aggregated By" to reproduce the Figma copy.
|
|
2003
|
-
aggregatedByLabel:
|
|
2003
|
+
aggregatedByLabel: c = "",
|
|
2004
2004
|
// KPI strip
|
|
2005
|
-
volumeStat:
|
|
2006
|
-
compassStat:
|
|
2007
|
-
baselineSubStat:
|
|
2008
|
-
agentLiftSubStat: g =
|
|
2009
|
-
scoreSubStat: x =
|
|
2005
|
+
volumeStat: y = ce,
|
|
2006
|
+
compassStat: w = ce,
|
|
2007
|
+
baselineSubStat: u = ce,
|
|
2008
|
+
agentLiftSubStat: g = ce,
|
|
2009
|
+
scoreSubStat: x = ce,
|
|
2010
2010
|
// Agent table
|
|
2011
|
-
agentRows:
|
|
2012
|
-
agentColumns:
|
|
2013
|
-
initialPageSize:
|
|
2011
|
+
agentRows: b = [],
|
|
2012
|
+
agentColumns: v = [],
|
|
2013
|
+
initialPageSize: M = 10,
|
|
2014
2014
|
// Insight sections — all titles, empty-state copy, and the section icons /
|
|
2015
2015
|
// colors are host-driven so the library renders nothing concrete by default.
|
|
2016
|
-
guidanceItems:
|
|
2017
|
-
strengthItems:
|
|
2018
|
-
callDrivers:
|
|
2019
|
-
callParadigms:
|
|
2020
|
-
topSignalsLeft:
|
|
2021
|
-
topSignalsRight:
|
|
2022
|
-
topSignalsTrailing:
|
|
2023
|
-
strengthsTitle:
|
|
2024
|
-
guidanceTitle:
|
|
2025
|
-
callMixTitle:
|
|
2026
|
-
driversTitle:
|
|
2027
|
-
paradigmsTitle:
|
|
2028
|
-
topSignalsTitle:
|
|
2029
|
-
emptyStrengthsMessage:
|
|
2030
|
-
emptyGuidanceMessage:
|
|
2031
|
-
emptyDriversMessage:
|
|
2032
|
-
emptyParadigmsMessage:
|
|
2033
|
-
emptyTopSignalsMessage:
|
|
2016
|
+
guidanceItems: S = [],
|
|
2017
|
+
strengthItems: R = [],
|
|
2018
|
+
callDrivers: H = [],
|
|
2019
|
+
callParadigms: X = [],
|
|
2020
|
+
topSignalsLeft: O = [],
|
|
2021
|
+
topSignalsRight: B = [],
|
|
2022
|
+
topSignalsTrailing: K = "",
|
|
2023
|
+
strengthsTitle: J = "",
|
|
2024
|
+
guidanceTitle: h = "",
|
|
2025
|
+
callMixTitle: A = "",
|
|
2026
|
+
driversTitle: P = "",
|
|
2027
|
+
paradigmsTitle: T = "",
|
|
2028
|
+
topSignalsTitle: j = "",
|
|
2029
|
+
emptyStrengthsMessage: N = "",
|
|
2030
|
+
emptyGuidanceMessage: he = "",
|
|
2031
|
+
emptyDriversMessage: oe = "",
|
|
2032
|
+
emptyParadigmsMessage: ee = "",
|
|
2033
|
+
emptyTopSignalsMessage: Z = "",
|
|
2034
2034
|
// Time-range chips (8h / 1d / 7d / 30d). Override `rangeOptions` to customize.
|
|
2035
2035
|
// `selectedWindow` is the currently-active option id; `onWindowChange(id)` fires
|
|
2036
2036
|
// when the user picks a new chip.
|
|
2037
|
-
rangeOptions:
|
|
2038
|
-
selectedWindow:
|
|
2039
|
-
onWindowChange:
|
|
2037
|
+
rangeOptions: E = Ot,
|
|
2038
|
+
selectedWindow: C = "30d",
|
|
2039
|
+
onWindowChange: q,
|
|
2040
2040
|
// Host-provided date-range picker node. Should render its own trigger button
|
|
2041
2041
|
// and popover. When provided, replaces the built-in default picker.
|
|
2042
2042
|
// (Same slot pattern as DataTableFilters2's `dateRangePicker` prop.)
|
|
2043
|
-
dateRangePicker:
|
|
2043
|
+
dateRangePicker: te,
|
|
2044
2044
|
// Used by the built-in default picker when `dateRangePicker` is not provided.
|
|
2045
2045
|
// `dateRange` is `{ from, to }` (Date objects); `onDateRangeChange` receives
|
|
2046
2046
|
// the same shape when the user clicks Apply.
|
|
2047
|
-
dateRange:
|
|
2048
|
-
onDateRangeChange:
|
|
2047
|
+
dateRange: ne,
|
|
2048
|
+
onDateRangeChange: p,
|
|
2049
2049
|
// Fires when the user clicks the Export CSV button in the header.
|
|
2050
|
-
onExport:
|
|
2050
|
+
onExport: m,
|
|
2051
|
+
// When true the panel does NOT render its own Export CSV row — the host app
|
|
2052
|
+
// renders Export in its page header instead (keeping it on the title row).
|
|
2053
|
+
hideExport: $ = !1,
|
|
2051
2054
|
// Fires whenever the user toggles columns in the table's column picker —
|
|
2052
2055
|
// hosts can scope their CSV export to whatever the user has visible.
|
|
2053
|
-
onVisibleColumnsChange:
|
|
2056
|
+
onVisibleColumnsChange: I
|
|
2054
2057
|
}) {
|
|
2055
|
-
var
|
|
2056
|
-
const [
|
|
2057
|
-
|
|
2058
|
-
},
|
|
2059
|
-
|
|
2060
|
-
},
|
|
2061
|
-
|
|
2062
|
-
if (!
|
|
2058
|
+
var Ce, He;
|
|
2059
|
+
const [_, ye] = L.useState(null), [G, Y] = L.useState(!1), [V, ve] = L.useState(d), [ke, D] = L.useState(null), F = ne !== void 0 ? ne : ke, we = !!(F != null && F.from && (F != null && F.to)), dt = (f) => {
|
|
2060
|
+
D(f), p == null || p(f);
|
|
2061
|
+
}, ct = (f) => {
|
|
2062
|
+
D(null), p == null || p(null), q == null || q(f);
|
|
2063
|
+
}, Me = L.useRef(null), Pe = L.useRef(null);
|
|
2064
|
+
L.useEffect(() => {
|
|
2065
|
+
if (!G)
|
|
2063
2066
|
return;
|
|
2064
2067
|
const f = (k) => {
|
|
2065
|
-
var
|
|
2066
|
-
(
|
|
2068
|
+
var ae, Ne;
|
|
2069
|
+
(ae = Pe.current) != null && ae.contains(k.target) || (Ne = Me.current) != null && Ne.contains(k.target) || Y(!1);
|
|
2067
2070
|
};
|
|
2068
2071
|
return document.addEventListener("mousedown", f), () => document.removeEventListener("mousedown", f);
|
|
2069
|
-
}, [
|
|
2070
|
-
const
|
|
2072
|
+
}, [G]);
|
|
2073
|
+
const ut = ((Ce = o.find((f) => f.id === V)) == null ? void 0 : Ce.label) || (((He = o[0]) == null ? void 0 : He.label) ?? ""), ft = (f) => {
|
|
2071
2074
|
if (n) {
|
|
2072
2075
|
n(f);
|
|
2073
2076
|
return;
|
|
2074
2077
|
}
|
|
2075
|
-
|
|
2078
|
+
ye(f);
|
|
2076
2079
|
};
|
|
2077
|
-
return /* @__PURE__ */ l(
|
|
2078
|
-
|
|
2080
|
+
return /* @__PURE__ */ l(Xe, { children: [
|
|
2081
|
+
_ && (() => {
|
|
2079
2082
|
let f = null, k = null;
|
|
2080
|
-
if (
|
|
2081
|
-
f =
|
|
2083
|
+
if (we)
|
|
2084
|
+
f = F.from, k = F.to;
|
|
2082
2085
|
else {
|
|
2083
|
-
const
|
|
2084
|
-
|
|
2086
|
+
const ae = Fe[C];
|
|
2087
|
+
ae && (k = /* @__PURE__ */ new Date(), f = new Date(k.getTime() - ae));
|
|
2085
2088
|
}
|
|
2086
2089
|
return /* @__PURE__ */ e(
|
|
2087
|
-
|
|
2090
|
+
Ct,
|
|
2088
2091
|
{
|
|
2089
2092
|
className: t,
|
|
2090
|
-
agentName:
|
|
2093
|
+
agentName: _.agent,
|
|
2091
2094
|
startDate: f || "",
|
|
2092
2095
|
endDate: k || "",
|
|
2093
|
-
totalCalls: `${
|
|
2094
|
-
onBack: () =>
|
|
2095
|
-
selectedWindow:
|
|
2096
|
-
dateRange:
|
|
2096
|
+
totalCalls: `${_.calls} Calls`,
|
|
2097
|
+
onBack: () => ye(null),
|
|
2098
|
+
selectedWindow: C,
|
|
2099
|
+
dateRange: F
|
|
2097
2100
|
}
|
|
2098
2101
|
);
|
|
2099
2102
|
})(),
|
|
@@ -2103,7 +2106,7 @@ function Qt({
|
|
|
2103
2106
|
className: t,
|
|
2104
2107
|
style: {
|
|
2105
2108
|
background: r.white,
|
|
2106
|
-
fontFamily:
|
|
2109
|
+
fontFamily: z,
|
|
2107
2110
|
color: r.ink,
|
|
2108
2111
|
width: "100%",
|
|
2109
2112
|
minWidth: 1192,
|
|
@@ -2113,34 +2116,17 @@ function Qt({
|
|
|
2113
2116
|
gap: 24,
|
|
2114
2117
|
// Hide (don't unmount) when drilling into agent details so DataTable2's
|
|
2115
2118
|
// internal filter / sort / pagination state survives the round trip.
|
|
2116
|
-
display:
|
|
2119
|
+
display: _ ? "none" : "flex"
|
|
2117
2120
|
},
|
|
2118
2121
|
children: [
|
|
2119
|
-
/* @__PURE__ */ l("div", { style: { display: "flex", alignItems: "flex-start", gap: 8, paddingTop: 12 }, children: [
|
|
2120
|
-
/* @__PURE__ */
|
|
2121
|
-
/* @__PURE__ */ e(
|
|
2122
|
-
"h1",
|
|
2123
|
-
{
|
|
2124
|
-
style: {
|
|
2125
|
-
fontFamily: te,
|
|
2126
|
-
fontSize: 24,
|
|
2127
|
-
fontWeight: 500,
|
|
2128
|
-
color: r.ink,
|
|
2129
|
-
margin: 0,
|
|
2130
|
-
lineHeight: "1.2",
|
|
2131
|
-
letterSpacing: "-0.01em"
|
|
2132
|
-
},
|
|
2133
|
-
children: i
|
|
2134
|
-
}
|
|
2135
|
-
),
|
|
2136
|
-
/* @__PURE__ */ e("p", { style: { fontFamily: D, fontSize: 14, color: "var(--neutral-950)", margin: 0, lineHeight: "1.4" }, children: o })
|
|
2137
|
-
] }),
|
|
2122
|
+
!$ && /* @__PURE__ */ l("div", { style: { display: "flex", alignItems: "flex-start", gap: 8, paddingTop: 12 }, children: [
|
|
2123
|
+
/* @__PURE__ */ e("div", { style: { flex: 1, minWidth: 0 } }),
|
|
2138
2124
|
/* @__PURE__ */ l(
|
|
2139
2125
|
"button",
|
|
2140
2126
|
{
|
|
2141
2127
|
type: "button",
|
|
2142
|
-
onClick: () =>
|
|
2143
|
-
disabled: !
|
|
2128
|
+
onClick: () => m == null ? void 0 : m(),
|
|
2129
|
+
disabled: !m,
|
|
2144
2130
|
style: {
|
|
2145
2131
|
display: "inline-flex",
|
|
2146
2132
|
alignItems: "center",
|
|
@@ -2150,14 +2136,14 @@ function Qt({
|
|
|
2150
2136
|
borderRadius: 10,
|
|
2151
2137
|
border: `1px solid ${r.neutralBorder}`,
|
|
2152
2138
|
background: r.white,
|
|
2153
|
-
cursor:
|
|
2154
|
-
opacity:
|
|
2155
|
-
fontFamily:
|
|
2139
|
+
cursor: m ? "pointer" : "not-allowed",
|
|
2140
|
+
opacity: m ? 1 : 0.5,
|
|
2141
|
+
fontFamily: z,
|
|
2156
2142
|
fontSize: 14,
|
|
2157
2143
|
color: r.neutral800
|
|
2158
2144
|
},
|
|
2159
2145
|
children: [
|
|
2160
|
-
/* @__PURE__ */ e(
|
|
2146
|
+
/* @__PURE__ */ e(Ge, { size: 18, strokeWidth: 1.75 }),
|
|
2161
2147
|
"Export CSV"
|
|
2162
2148
|
]
|
|
2163
2149
|
}
|
|
@@ -2169,10 +2155,10 @@ function Qt({
|
|
|
2169
2155
|
"button",
|
|
2170
2156
|
{
|
|
2171
2157
|
type: "button",
|
|
2172
|
-
ref:
|
|
2158
|
+
ref: Me,
|
|
2173
2159
|
onClick: () => Y((f) => !f),
|
|
2174
2160
|
"aria-haspopup": "listbox",
|
|
2175
|
-
"aria-expanded":
|
|
2161
|
+
"aria-expanded": G,
|
|
2176
2162
|
style: {
|
|
2177
2163
|
display: "inline-flex",
|
|
2178
2164
|
alignItems: "center",
|
|
@@ -2183,21 +2169,21 @@ function Qt({
|
|
|
2183
2169
|
border: `1px solid ${r.neutralBorder}`,
|
|
2184
2170
|
background: r.white,
|
|
2185
2171
|
cursor: "pointer",
|
|
2186
|
-
fontFamily:
|
|
2172
|
+
fontFamily: z,
|
|
2187
2173
|
fontSize: 14,
|
|
2188
2174
|
lineHeight: "24px",
|
|
2189
2175
|
color: r.neutral800,
|
|
2190
2176
|
whiteSpace: "nowrap"
|
|
2191
2177
|
},
|
|
2192
2178
|
children: [
|
|
2193
|
-
|
|
2179
|
+
ut,
|
|
2194
2180
|
/* @__PURE__ */ e(
|
|
2195
|
-
|
|
2181
|
+
ze,
|
|
2196
2182
|
{
|
|
2197
2183
|
size: 20,
|
|
2198
2184
|
strokeWidth: 1.75,
|
|
2199
2185
|
style: {
|
|
2200
|
-
transform:
|
|
2186
|
+
transform: G ? "rotate(180deg)" : "none",
|
|
2201
2187
|
transition: "transform 120ms ease"
|
|
2202
2188
|
}
|
|
2203
2189
|
}
|
|
@@ -2205,10 +2191,10 @@ function Qt({
|
|
|
2205
2191
|
]
|
|
2206
2192
|
}
|
|
2207
2193
|
),
|
|
2208
|
-
|
|
2194
|
+
G && /* @__PURE__ */ l(
|
|
2209
2195
|
"div",
|
|
2210
2196
|
{
|
|
2211
|
-
ref:
|
|
2197
|
+
ref: Pe,
|
|
2212
2198
|
role: "listbox",
|
|
2213
2199
|
style: {
|
|
2214
2200
|
position: "absolute",
|
|
@@ -2222,25 +2208,25 @@ function Qt({
|
|
|
2222
2208
|
display: "flex",
|
|
2223
2209
|
flexDirection: "column",
|
|
2224
2210
|
minWidth: 144,
|
|
2225
|
-
fontFamily:
|
|
2211
|
+
fontFamily: z
|
|
2226
2212
|
},
|
|
2227
2213
|
children: [
|
|
2228
|
-
|
|
2214
|
+
c && /* @__PURE__ */ e(
|
|
2229
2215
|
"div",
|
|
2230
2216
|
{
|
|
2231
2217
|
style: {
|
|
2232
2218
|
padding: 12,
|
|
2233
|
-
fontFamily:
|
|
2219
|
+
fontFamily: re,
|
|
2234
2220
|
fontWeight: 600,
|
|
2235
2221
|
fontSize: 13,
|
|
2236
2222
|
color: r.ink,
|
|
2237
2223
|
lineHeight: 1.2
|
|
2238
2224
|
},
|
|
2239
|
-
children:
|
|
2225
|
+
children: c
|
|
2240
2226
|
}
|
|
2241
2227
|
),
|
|
2242
|
-
|
|
2243
|
-
const k =
|
|
2228
|
+
o.map((f) => {
|
|
2229
|
+
const k = V === f.id;
|
|
2244
2230
|
return /* @__PURE__ */ l(
|
|
2245
2231
|
"button",
|
|
2246
2232
|
{
|
|
@@ -2248,7 +2234,7 @@ function Qt({
|
|
|
2248
2234
|
role: "option",
|
|
2249
2235
|
"aria-selected": k,
|
|
2250
2236
|
onClick: () => {
|
|
2251
|
-
f.id !==
|
|
2237
|
+
f.id !== V && (ve(f.id), s == null || s(f.id)), Y(!1);
|
|
2252
2238
|
},
|
|
2253
2239
|
style: {
|
|
2254
2240
|
display: "flex",
|
|
@@ -2262,14 +2248,14 @@ function Qt({
|
|
|
2262
2248
|
background: "transparent",
|
|
2263
2249
|
cursor: "pointer",
|
|
2264
2250
|
textAlign: "left",
|
|
2265
|
-
fontFamily:
|
|
2251
|
+
fontFamily: z,
|
|
2266
2252
|
fontSize: 13,
|
|
2267
2253
|
lineHeight: 1.2,
|
|
2268
2254
|
color: r.ink,
|
|
2269
2255
|
width: "100%"
|
|
2270
2256
|
},
|
|
2271
2257
|
children: [
|
|
2272
|
-
k && /* @__PURE__ */ e(
|
|
2258
|
+
k && /* @__PURE__ */ e(gt, { size: 20, color: r.ink, strokeWidth: 1.75, style: { flexShrink: 0 } }),
|
|
2273
2259
|
/* @__PURE__ */ e("span", { children: f.label })
|
|
2274
2260
|
]
|
|
2275
2261
|
},
|
|
@@ -2282,7 +2268,7 @@ function Qt({
|
|
|
2282
2268
|
] }),
|
|
2283
2269
|
/* @__PURE__ */ l("div", { style: { display: "flex", gap: 10, alignItems: "center" }, children: [
|
|
2284
2270
|
(() => {
|
|
2285
|
-
const k = (
|
|
2271
|
+
const k = (we ? `${Q(F.from)} – ${Q(F.to)}` : "") || Lt(C) || i;
|
|
2286
2272
|
return k ? /* @__PURE__ */ l(
|
|
2287
2273
|
"span",
|
|
2288
2274
|
{
|
|
@@ -2290,38 +2276,38 @@ function Qt({
|
|
|
2290
2276
|
display: "inline-flex",
|
|
2291
2277
|
alignItems: "center",
|
|
2292
2278
|
gap: 6,
|
|
2293
|
-
fontFamily:
|
|
2279
|
+
fontFamily: z,
|
|
2294
2280
|
fontSize: 13,
|
|
2295
2281
|
color: r.ink
|
|
2296
2282
|
},
|
|
2297
2283
|
children: [
|
|
2298
|
-
/* @__PURE__ */ e(
|
|
2284
|
+
/* @__PURE__ */ e(be, { size: 16, strokeWidth: 1.75, color: r.muted }),
|
|
2299
2285
|
k
|
|
2300
2286
|
]
|
|
2301
2287
|
}
|
|
2302
2288
|
) : null;
|
|
2303
2289
|
})(),
|
|
2304
|
-
|
|
2305
|
-
|
|
2290
|
+
E.map((f) => /* @__PURE__ */ e(
|
|
2291
|
+
_t,
|
|
2306
2292
|
{
|
|
2307
2293
|
label: f.label,
|
|
2308
|
-
active: !
|
|
2309
|
-
onClick: () =>
|
|
2294
|
+
active: !we && f.id === C,
|
|
2295
|
+
onClick: () => ct(f.id)
|
|
2310
2296
|
},
|
|
2311
2297
|
f.id
|
|
2312
2298
|
)),
|
|
2313
|
-
|
|
2314
|
-
|
|
2299
|
+
te ? /* @__PURE__ */ e(
|
|
2300
|
+
L.Suspense,
|
|
2315
2301
|
{
|
|
2316
|
-
fallback: /* @__PURE__ */ e(
|
|
2317
|
-
children:
|
|
2302
|
+
fallback: /* @__PURE__ */ e(Ht, { icon: be, children: "Date Range" }),
|
|
2303
|
+
children: te
|
|
2318
2304
|
}
|
|
2319
|
-
) : /* @__PURE__ */ e(
|
|
2305
|
+
) : /* @__PURE__ */ e(st, { value: F, onChange: dt })
|
|
2320
2306
|
] })
|
|
2321
2307
|
] }),
|
|
2322
2308
|
/* @__PURE__ */ l("div", { style: { display: "flex", gap: 24 }, children: [
|
|
2323
|
-
/* @__PURE__ */ e(
|
|
2324
|
-
/* @__PURE__ */ e(
|
|
2309
|
+
/* @__PURE__ */ e(je, { value: y.value, label: y.label, trend: y.trend, points: y.points, style: { width: 264, flexShrink: 0 } }),
|
|
2310
|
+
/* @__PURE__ */ e(je, { value: w.value, label: w.label, trend: w.trend, points: w.points, style: { width: 264, flexShrink: 0 } }),
|
|
2325
2311
|
/* @__PURE__ */ l(
|
|
2326
2312
|
"div",
|
|
2327
2313
|
{
|
|
@@ -2337,26 +2323,26 @@ function Qt({
|
|
|
2337
2323
|
boxSizing: "border-box"
|
|
2338
2324
|
},
|
|
2339
2325
|
children: [
|
|
2340
|
-
/* @__PURE__ */ e(
|
|
2341
|
-
/* @__PURE__ */ e(
|
|
2342
|
-
/* @__PURE__ */ e(
|
|
2326
|
+
/* @__PURE__ */ e(De, { value: u.value, label: u.label, trend: u.trend, points: u.points }),
|
|
2327
|
+
/* @__PURE__ */ e(De, { value: g.value, label: g.label, trend: g.trend, points: g.points, withDivider: !0 }),
|
|
2328
|
+
/* @__PURE__ */ e(De, { value: x.value, label: x.label, trend: x.trend, points: x.points, withDivider: !0 })
|
|
2343
2329
|
]
|
|
2344
2330
|
}
|
|
2345
2331
|
)
|
|
2346
2332
|
] }),
|
|
2347
2333
|
/* @__PURE__ */ e(
|
|
2348
|
-
|
|
2334
|
+
et,
|
|
2349
2335
|
{
|
|
2350
|
-
data:
|
|
2351
|
-
columns:
|
|
2352
|
-
initialPageSize:
|
|
2353
|
-
onRowClick:
|
|
2354
|
-
onVisibleColumnsChange:
|
|
2336
|
+
data: b,
|
|
2337
|
+
columns: v,
|
|
2338
|
+
initialPageSize: M,
|
|
2339
|
+
onRowClick: ft,
|
|
2340
|
+
onVisibleColumnsChange: I
|
|
2355
2341
|
}
|
|
2356
2342
|
),
|
|
2357
2343
|
/* @__PURE__ */ l("div", { style: { display: "flex", gap: 24, alignItems: "flex-start" }, children: [
|
|
2358
2344
|
/* @__PURE__ */ l("div", { style: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column", gap: 16 }, children: [
|
|
2359
|
-
/* @__PURE__ */ e(
|
|
2345
|
+
/* @__PURE__ */ e(ge, { icon: Ke, title: J, iconColor: "var(--rail-compliance)" }),
|
|
2360
2346
|
/* @__PURE__ */ e(
|
|
2361
2347
|
"div",
|
|
2362
2348
|
{
|
|
@@ -2367,12 +2353,12 @@ function Qt({
|
|
|
2367
2353
|
maxHeight: 480,
|
|
2368
2354
|
overflowY: "auto"
|
|
2369
2355
|
},
|
|
2370
|
-
children:
|
|
2356
|
+
children: R.length === 0 ? /* @__PURE__ */ e(ue, { message: N }) : R.map((f, k) => /* @__PURE__ */ e(Ue, { ...f }, k))
|
|
2371
2357
|
}
|
|
2372
2358
|
)
|
|
2373
2359
|
] }),
|
|
2374
2360
|
/* @__PURE__ */ l("div", { style: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column", gap: 16 }, children: [
|
|
2375
|
-
/* @__PURE__ */ e(
|
|
2361
|
+
/* @__PURE__ */ e(ge, { icon: Je, title: h, iconColor: "var(--rail-compliance)" }),
|
|
2376
2362
|
/* @__PURE__ */ e(
|
|
2377
2363
|
"div",
|
|
2378
2364
|
{
|
|
@@ -2383,29 +2369,29 @@ function Qt({
|
|
|
2383
2369
|
maxHeight: 480,
|
|
2384
2370
|
overflowY: "auto"
|
|
2385
2371
|
},
|
|
2386
|
-
children:
|
|
2372
|
+
children: S.length === 0 ? /* @__PURE__ */ e(ue, { message: he }) : S.map((f, k) => /* @__PURE__ */ e(Ue, { ...f }, k))
|
|
2387
2373
|
}
|
|
2388
2374
|
)
|
|
2389
2375
|
] })
|
|
2390
2376
|
] }),
|
|
2391
2377
|
/* @__PURE__ */ l("div", { style: { display: "flex", flexDirection: "column", gap: 16 }, children: [
|
|
2392
|
-
/* @__PURE__ */ e(
|
|
2378
|
+
/* @__PURE__ */ e(ge, { icon: fe, title: A, iconColor: "var(--rail-compliance)" }),
|
|
2393
2379
|
/* @__PURE__ */ l("div", { style: { display: "flex", gap: 24, alignItems: "flex-start" }, children: [
|
|
2394
2380
|
/* @__PURE__ */ l("div", { style: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column", gap: 8 }, children: [
|
|
2395
|
-
/* @__PURE__ */ e(
|
|
2396
|
-
/* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", maxHeight: 480, overflowY: "auto" }, children:
|
|
2381
|
+
/* @__PURE__ */ e(Ve, { icon: Ze, title: P }),
|
|
2382
|
+
/* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", maxHeight: 480, overflowY: "auto" }, children: H.length === 0 ? /* @__PURE__ */ e(ue, { message: oe }) : H.map((f, k) => /* @__PURE__ */ e(xe, { ...f }, k)) })
|
|
2397
2383
|
] }),
|
|
2398
2384
|
/* @__PURE__ */ l("div", { style: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column", gap: 8 }, children: [
|
|
2399
|
-
/* @__PURE__ */ e(
|
|
2400
|
-
/* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", maxHeight: 480, overflowY: "auto" }, children:
|
|
2385
|
+
/* @__PURE__ */ e(Ve, { icon: qe, title: T }),
|
|
2386
|
+
/* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", maxHeight: 480, overflowY: "auto" }, children: X.length === 0 ? /* @__PURE__ */ e(ue, { message: ee }) : X.map((f, k) => /* @__PURE__ */ e(xe, { ...f }, k)) })
|
|
2401
2387
|
] })
|
|
2402
2388
|
] })
|
|
2403
2389
|
] }),
|
|
2404
2390
|
/* @__PURE__ */ l("div", { style: { display: "flex", flexDirection: "column", gap: 16 }, children: [
|
|
2405
|
-
/* @__PURE__ */ e(
|
|
2406
|
-
|
|
2407
|
-
/* @__PURE__ */ e("div", { style: { flex: 1, display: "flex", flexDirection: "column" }, children:
|
|
2408
|
-
/* @__PURE__ */ e("div", { style: { flex: 1, display: "flex", flexDirection: "column" }, children:
|
|
2391
|
+
/* @__PURE__ */ e(ge, { icon: xt, title: j, iconColor: "var(--rail-compliance)", trailing: K, bordered: !0 }),
|
|
2392
|
+
O.length === 0 && B.length === 0 ? /* @__PURE__ */ e(ue, { message: Z }) : /* @__PURE__ */ l("div", { style: { display: "flex", gap: 24 }, children: [
|
|
2393
|
+
/* @__PURE__ */ e("div", { style: { flex: 1, display: "flex", flexDirection: "column" }, children: O.map((f, k) => /* @__PURE__ */ e(xe, { ...f }, k)) }),
|
|
2394
|
+
/* @__PURE__ */ e("div", { style: { flex: 1, display: "flex", flexDirection: "column" }, children: B.map((f, k) => /* @__PURE__ */ e(xe, { ...f }, k)) })
|
|
2409
2395
|
] })
|
|
2410
2396
|
] })
|
|
2411
2397
|
]
|
|
@@ -2414,27 +2400,27 @@ function Qt({
|
|
|
2414
2400
|
] });
|
|
2415
2401
|
}
|
|
2416
2402
|
export {
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2403
|
+
Zt as D,
|
|
2404
|
+
lt as M,
|
|
2405
|
+
qt as P,
|
|
2406
|
+
Fe as R,
|
|
2407
|
+
Ct as a,
|
|
2408
|
+
Jt as b,
|
|
2409
|
+
Lt as c,
|
|
2410
|
+
Dt as d,
|
|
2411
|
+
Q as e,
|
|
2412
|
+
St as f,
|
|
2413
|
+
Le as g,
|
|
2414
|
+
At as h,
|
|
2415
|
+
Tt as i,
|
|
2430
2416
|
U as j,
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2417
|
+
$e as k,
|
|
2418
|
+
We as l,
|
|
2419
|
+
Ie as m,
|
|
2420
|
+
it as n,
|
|
2421
|
+
Wt as o,
|
|
2422
|
+
st as p,
|
|
2423
|
+
Kt as r,
|
|
2424
|
+
Te as t
|
|
2439
2425
|
};
|
|
2440
2426
|
//# sourceMappingURL=PerformancePanel.es.js.map
|