chordia-ui 3.9.4 → 3.9.6
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/AgentLiftAnalysisCard.cjs.js +2 -2
- package/dist/AgentLiftAnalysisCard.cjs.js.map +1 -1
- package/dist/AgentLiftAnalysisCard.es.js +105 -97
- package/dist/AgentLiftAnalysisCard.es.js.map +1 -1
- package/dist/CustomFilterChips.cjs.js +1 -1
- package/dist/CustomFilterChips.cjs.js.map +1 -1
- package/dist/CustomFilterChips.es.js +22 -20
- package/dist/CustomFilterChips.es.js.map +1 -1
- package/dist/SideDrawer.cjs.js +1 -1
- package/dist/SideDrawer.cjs.js.map +1 -1
- package/dist/SideDrawer.es.js +81 -74
- package/dist/SideDrawer.es.js.map +1 -1
- package/dist/components/Signals.cjs.js +1 -1
- package/dist/components/Signals.cjs.js.map +1 -1
- package/dist/components/Signals.es.js +3 -2
- package/dist/components/Signals.es.js.map +1 -1
- package/dist/components/UpdatedInteractionDetails.cjs.js +4 -4
- package/dist/components/UpdatedInteractionDetails.cjs.js.map +1 -1
- package/dist/components/UpdatedInteractionDetails.es.js +1128 -1091
- package/dist/components/UpdatedInteractionDetails.es.js.map +1 -1
- package/dist/components/common.cjs.js +1 -1
- package/dist/components/common.es.js +34 -33
- package/dist/components/common.es.js.map +1 -1
- package/dist/components/data.cjs.js +1 -1
- package/dist/components/data.cjs.js.map +1 -1
- package/dist/components/data.es.js +582 -435
- package/dist/components/data.es.js.map +1 -1
- package/dist/components/login.cjs.js +1 -1
- package/dist/components/login.cjs.js.map +1 -1
- package/dist/components/login.es.js +282 -254
- package/dist/components/login.es.js.map +1 -1
- package/dist/components/navigation.cjs.js +1 -1
- package/dist/components/navigation.cjs.js.map +1 -1
- package/dist/components/navigation.es.js +227 -197
- package/dist/components/navigation.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 +48 -47
- package/dist/components/performance.es.js.map +1 -1
- package/dist/components/policies.cjs.js +2 -0
- package/dist/components/policies.cjs.js.map +1 -0
- package/dist/components/policies.es.js +1046 -0
- package/dist/components/policies.es.js.map +1 -0
- package/dist/components/reports.cjs.js +2 -2
- package/dist/components/reports.cjs.js.map +1 -1
- package/dist/components/reports.es.js +39 -38
- package/dist/components/reports.es.js.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +126 -120
- package/dist/index.es.js.map +1 -1
- package/dist/pages/interactionDetails.cjs.js +1 -1
- package/dist/pages/interactionDetails.cjs.js.map +1 -1
- package/dist/pages/interactionDetails.es.js +16 -15
- package/dist/pages/interactionDetails.es.js.map +1 -1
- package/dist/useMediaQuery.cjs.js +2 -0
- package/dist/useMediaQuery.cjs.js.map +1 -0
- package/dist/useMediaQuery.es.js +14 -0
- package/dist/useMediaQuery.es.js.map +1 -0
- package/package.json +5 -1
- package/src/components/UpdatedInteractionDetails/UpdatedCoachingSynthesisCard.jsx +18 -6
- package/src/components/UpdatedInteractionDetails/UpdatedCompassScore.jsx +13 -5
- package/src/components/UpdatedInteractionDetails/UpdatedInteractionContext.jsx +6 -2
- package/src/components/UpdatedInteractionDetails/UpdatedInteractionDetails.jsx +53 -19
- package/src/components/UpdatedInteractionDetails/UpdatedInteractionScores.jsx +13 -6
- package/src/components/UpdatedInteractionDetails/UpdatedThreads.jsx +17 -2
- package/src/components/common/AgentLiftAnalysisCard.jsx +25 -10
- package/src/components/common/Pagination.jsx +3 -1
- package/src/components/common/SideDrawer.jsx +14 -6
- package/src/components/data/DataTable.jsx +193 -6
- package/src/components/index.js +3 -0
- package/src/components/login/LoginPage.jsx +38 -6
- package/src/components/navigation/NavigationBar.jsx +37 -2
- package/src/components/policies/FilterDropdown.jsx +103 -0
- package/src/components/policies/PoliciesPage.jsx +423 -0
- package/src/components/policies/PolicyCard.jsx +387 -0
- package/src/components/policies/PolicyDetailsDrawer.jsx +372 -0
- package/src/components/policies/index.js +4 -0
- package/src/utils/index.js +1 -0
- package/src/utils/useMediaQuery.js +37 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as E, useRef as _ } from "react";
|
|
3
3
|
import { Info as W, Settings as z } from "lucide-react";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import { u as $ } from "./useMediaQuery.es.js";
|
|
5
|
+
const A = "chordia-cog-spin-style";
|
|
6
|
+
if (typeof document < "u" && !document.getElementById(A)) {
|
|
7
|
+
const l = document.createElement("style");
|
|
8
|
+
l.id = A, l.textContent = `
|
|
8
9
|
@keyframes chordia-cog-spin {
|
|
9
10
|
from { transform: rotate(0deg); }
|
|
10
11
|
to { transform: rotate(360deg); }
|
|
@@ -12,9 +13,9 @@ if (typeof document < "u" && !document.getElementById(E)) {
|
|
|
12
13
|
@media (prefers-reduced-motion: reduce) {
|
|
13
14
|
.chordia-cog-spin { animation: none !important; }
|
|
14
15
|
}
|
|
15
|
-
`, document.head.appendChild(
|
|
16
|
+
`, document.head.appendChild(l);
|
|
16
17
|
}
|
|
17
|
-
const
|
|
18
|
+
const i = {
|
|
18
19
|
strong: "var(--Grey-Strong, #2E3236)",
|
|
19
20
|
muted: "var(--Grey-Muted, #808183)",
|
|
20
21
|
faint: "var(--Grey-Faint, #ACADAD)",
|
|
@@ -25,32 +26,32 @@ const n = {
|
|
|
25
26
|
surface: "#FAF9F5",
|
|
26
27
|
// Gauge ring (background semicircle)
|
|
27
28
|
gaugeTrack: "#E3E1D7"
|
|
28
|
-
}, s = "var(--font-sans, 'Averta', ui-sans-serif, system-ui, sans-serif)",
|
|
29
|
-
const
|
|
30
|
-
return
|
|
31
|
-
},
|
|
32
|
-
const
|
|
33
|
-
return !Number.isFinite(
|
|
34
|
-
},
|
|
35
|
-
const [t, o] =
|
|
36
|
-
return
|
|
29
|
+
}, s = "var(--font-sans, 'Averta', ui-sans-serif, system-ui, sans-serif)", R = (l, n, r) => Math.max(n, Math.min(r, l)), w = (l) => {
|
|
30
|
+
const n = R(Number(l) || 0, -1, 1);
|
|
31
|
+
return n >= 0.6 ? "High" : n >= 0.15 ? "Above Average" : n <= -0.6 ? "Low" : n <= -0.15 ? "Below Average" : "Average";
|
|
32
|
+
}, k = (l) => {
|
|
33
|
+
const n = Number(l);
|
|
34
|
+
return !Number.isFinite(n) || Math.abs(n) < 0.05 ? "neutral" : n > 0 ? "positive" : "negative";
|
|
35
|
+
}, H = ({ text: l, children: n, maxWidth: r = 280 }) => {
|
|
36
|
+
const [t, o] = E(!1), a = _(null), [c, h] = E({ top: 0, left: 0 });
|
|
37
|
+
return l ? /* @__PURE__ */ d(
|
|
37
38
|
"div",
|
|
38
39
|
{
|
|
39
40
|
ref: a,
|
|
40
41
|
style: { position: "relative", display: "inline-flex" },
|
|
41
42
|
onMouseEnter: () => {
|
|
42
43
|
if (a.current) {
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
top:
|
|
46
|
-
left:
|
|
44
|
+
const f = a.current.getBoundingClientRect();
|
|
45
|
+
h({
|
|
46
|
+
top: f.bottom + 6,
|
|
47
|
+
left: f.left + f.width / 2
|
|
47
48
|
});
|
|
48
49
|
}
|
|
49
50
|
o(!0);
|
|
50
51
|
},
|
|
51
52
|
onMouseLeave: () => o(!1),
|
|
52
53
|
children: [
|
|
53
|
-
|
|
54
|
+
n,
|
|
54
55
|
t && /* @__PURE__ */ e(
|
|
55
56
|
"div",
|
|
56
57
|
{
|
|
@@ -75,20 +76,20 @@ const n = {
|
|
|
75
76
|
whiteSpace: "normal",
|
|
76
77
|
textAlign: "left"
|
|
77
78
|
},
|
|
78
|
-
children:
|
|
79
|
+
children: l
|
|
79
80
|
}
|
|
80
81
|
)
|
|
81
82
|
]
|
|
82
83
|
}
|
|
83
|
-
) :
|
|
84
|
-
},
|
|
85
|
-
const
|
|
84
|
+
) : n;
|
|
85
|
+
}, M = ({ value: l = 0, highlight: n = null }) => {
|
|
86
|
+
const g = R(Number(l) || 0, -1, 1) * (Math.PI / 2), b = 60 + 38 * Math.sin(g), v = 56 - 38 * Math.cos(g);
|
|
86
87
|
let u = null;
|
|
87
|
-
if (
|
|
88
|
-
const
|
|
89
|
-
if (
|
|
90
|
-
const
|
|
91
|
-
u = `M ${
|
|
88
|
+
if (n != null) {
|
|
89
|
+
const m = R(Number(n) || 0, -1, 1);
|
|
90
|
+
if (m !== 0) {
|
|
91
|
+
const x = m * (Math.PI / 2), y = 60, T = 56 - 26.65, L = 60 + 26.65 * Math.sin(x), N = 56 - 26.65 * Math.cos(x), F = m > 0 ? 1 : 0;
|
|
92
|
+
u = `M ${y} ${T} A ${26.65} ${26.65} 0 0 ${F} ${L} ${N}`;
|
|
92
93
|
}
|
|
93
94
|
}
|
|
94
95
|
return (
|
|
@@ -113,7 +114,7 @@ const n = {
|
|
|
113
114
|
{
|
|
114
115
|
d: `M ${60 - 26.65} 56 A ${26.65} ${26.65} 0 0 1 ${60 + 26.65} 56`,
|
|
115
116
|
fill: "none",
|
|
116
|
-
stroke:
|
|
117
|
+
stroke: i.gaugeTrack,
|
|
117
118
|
strokeWidth: 28.7,
|
|
118
119
|
strokeLinecap: "butt"
|
|
119
120
|
}
|
|
@@ -123,7 +124,7 @@ const n = {
|
|
|
123
124
|
{
|
|
124
125
|
d: u,
|
|
125
126
|
fill: "none",
|
|
126
|
-
stroke:
|
|
127
|
+
stroke: i.strong,
|
|
127
128
|
strokeWidth: 28.7,
|
|
128
129
|
strokeLinecap: "butt"
|
|
129
130
|
}
|
|
@@ -136,7 +137,7 @@ const n = {
|
|
|
136
137
|
textAnchor: "middle",
|
|
137
138
|
fontSize: "13",
|
|
138
139
|
fontFamily: s,
|
|
139
|
-
fill:
|
|
140
|
+
fill: i.orange,
|
|
140
141
|
children: "0"
|
|
141
142
|
}
|
|
142
143
|
),
|
|
@@ -148,7 +149,7 @@ const n = {
|
|
|
148
149
|
textAnchor: "middle",
|
|
149
150
|
fontSize: "14",
|
|
150
151
|
fontFamily: s,
|
|
151
|
-
fill:
|
|
152
|
+
fill: i.strong,
|
|
152
153
|
children: "−"
|
|
153
154
|
}
|
|
154
155
|
),
|
|
@@ -160,7 +161,7 @@ const n = {
|
|
|
160
161
|
textAnchor: "middle",
|
|
161
162
|
fontSize: "14",
|
|
162
163
|
fontFamily: s,
|
|
163
|
-
fill:
|
|
164
|
+
fill: i.strong,
|
|
164
165
|
children: "+"
|
|
165
166
|
}
|
|
166
167
|
),
|
|
@@ -170,26 +171,26 @@ const n = {
|
|
|
170
171
|
x1: 60,
|
|
171
172
|
y1: 56,
|
|
172
173
|
x2: b,
|
|
173
|
-
y2:
|
|
174
|
-
stroke:
|
|
174
|
+
y2: v,
|
|
175
|
+
stroke: i.orange,
|
|
175
176
|
strokeWidth: 2,
|
|
176
177
|
strokeLinecap: "round"
|
|
177
178
|
}
|
|
178
179
|
),
|
|
179
|
-
/* @__PURE__ */ e("circle", { cx: 60, cy: 56, r: 2.5, fill:
|
|
180
|
+
/* @__PURE__ */ e("circle", { cx: 60, cy: 56, r: 2.5, fill: i.orange })
|
|
180
181
|
]
|
|
181
182
|
}
|
|
182
183
|
)
|
|
183
184
|
);
|
|
184
185
|
}, S = ({
|
|
185
|
-
title:
|
|
186
|
-
value:
|
|
186
|
+
title: l,
|
|
187
|
+
value: n,
|
|
187
188
|
highlight: r,
|
|
188
189
|
centerLabel: t,
|
|
189
190
|
centerLabelColor: o,
|
|
190
191
|
sublabel: a,
|
|
191
192
|
footer: c,
|
|
192
|
-
description:
|
|
193
|
+
description: h
|
|
193
194
|
}) => /* @__PURE__ */ d(
|
|
194
195
|
"div",
|
|
195
196
|
{
|
|
@@ -219,17 +220,17 @@ const n = {
|
|
|
219
220
|
fontFamily: s,
|
|
220
221
|
fontSize: 14,
|
|
221
222
|
fontWeight: 400,
|
|
222
|
-
color:
|
|
223
|
+
color: i.strong,
|
|
223
224
|
lineHeight: "20px",
|
|
224
225
|
textAlign: "center",
|
|
225
226
|
width: "100%"
|
|
226
227
|
},
|
|
227
|
-
children:
|
|
228
|
+
children: l
|
|
228
229
|
}
|
|
229
230
|
)
|
|
230
231
|
}
|
|
231
232
|
),
|
|
232
|
-
|
|
233
|
+
n == null ? (
|
|
233
234
|
// Gauge swapped for an em-dash placeholder when the API ships no
|
|
234
235
|
// numeric value for this column. Same 60px height as the gauge SVG
|
|
235
236
|
// (after its -20 negative margin) so the columns stay aligned.
|
|
@@ -251,7 +252,7 @@ const n = {
|
|
|
251
252
|
fontFamily: s,
|
|
252
253
|
fontSize: 28,
|
|
253
254
|
fontWeight: 400,
|
|
254
|
-
color:
|
|
255
|
+
color: i.muted,
|
|
255
256
|
lineHeight: 1
|
|
256
257
|
},
|
|
257
258
|
children: "—"
|
|
@@ -259,7 +260,7 @@ const n = {
|
|
|
259
260
|
)
|
|
260
261
|
}
|
|
261
262
|
)
|
|
262
|
-
) : /* @__PURE__ */ e(
|
|
263
|
+
) : /* @__PURE__ */ e(M, { value: n, highlight: r }),
|
|
263
264
|
/* @__PURE__ */ d(
|
|
264
265
|
"div",
|
|
265
266
|
{
|
|
@@ -280,7 +281,7 @@ const n = {
|
|
|
280
281
|
// (#272727) for both "Average" and "Above Average".
|
|
281
282
|
fontSize: 14,
|
|
282
283
|
fontWeight: 600,
|
|
283
|
-
color: t ? o || "#272727" :
|
|
284
|
+
color: t ? o || "#272727" : i.muted,
|
|
284
285
|
lineHeight: "normal",
|
|
285
286
|
textAlign: "center"
|
|
286
287
|
},
|
|
@@ -294,7 +295,7 @@ const n = {
|
|
|
294
295
|
fontFamily: s,
|
|
295
296
|
fontSize: 13,
|
|
296
297
|
fontWeight: 400,
|
|
297
|
-
color:
|
|
298
|
+
color: i.muted,
|
|
298
299
|
lineHeight: "normal",
|
|
299
300
|
textAlign: "center",
|
|
300
301
|
width: "100%"
|
|
@@ -309,7 +310,7 @@ const n = {
|
|
|
309
310
|
fontFamily: s,
|
|
310
311
|
fontSize: 13,
|
|
311
312
|
fontWeight: 400,
|
|
312
|
-
color: c ?
|
|
313
|
+
color: c ? i.strong : i.muted,
|
|
313
314
|
lineHeight: "normal",
|
|
314
315
|
textAlign: "center",
|
|
315
316
|
width: "100%"
|
|
@@ -317,20 +318,20 @@ const n = {
|
|
|
317
318
|
children: c || "—"
|
|
318
319
|
}
|
|
319
320
|
),
|
|
320
|
-
|
|
321
|
+
h && /* @__PURE__ */ e(
|
|
321
322
|
"span",
|
|
322
323
|
{
|
|
323
324
|
style: {
|
|
324
325
|
fontFamily: s,
|
|
325
326
|
fontSize: 13,
|
|
326
327
|
fontWeight: 400,
|
|
327
|
-
color:
|
|
328
|
+
color: i.muted,
|
|
328
329
|
lineHeight: "normal",
|
|
329
330
|
textAlign: "center",
|
|
330
331
|
width: "100%",
|
|
331
332
|
marginTop: 4
|
|
332
333
|
},
|
|
333
|
-
children:
|
|
334
|
+
children: h
|
|
334
335
|
}
|
|
335
336
|
)
|
|
336
337
|
]
|
|
@@ -338,14 +339,14 @@ const n = {
|
|
|
338
339
|
)
|
|
339
340
|
]
|
|
340
341
|
}
|
|
341
|
-
),
|
|
342
|
-
percent:
|
|
343
|
-
label:
|
|
342
|
+
), O = ({
|
|
343
|
+
percent: l,
|
|
344
|
+
label: n,
|
|
344
345
|
totalLabel: r = "Total",
|
|
345
346
|
description: t,
|
|
346
347
|
status: o
|
|
347
348
|
}) => {
|
|
348
|
-
const a = (o == null ? void 0 : o.label) ??
|
|
349
|
+
const a = (o == null ? void 0 : o.label) ?? n;
|
|
349
350
|
return (
|
|
350
351
|
// Top-aligned stack — pill → percent → Total / description, all hugging
|
|
351
352
|
// the top of the column with the root `gap: 16` between them. The row
|
|
@@ -385,7 +386,7 @@ const n = {
|
|
|
385
386
|
fontFamily: s,
|
|
386
387
|
fontSize: 14,
|
|
387
388
|
fontWeight: 600,
|
|
388
|
-
color:
|
|
389
|
+
color: i.strong,
|
|
389
390
|
lineHeight: "normal",
|
|
390
391
|
whiteSpace: "nowrap"
|
|
391
392
|
},
|
|
@@ -412,12 +413,12 @@ const n = {
|
|
|
412
413
|
fontFamily: s,
|
|
413
414
|
fontSize: 34,
|
|
414
415
|
fontWeight: 400,
|
|
415
|
-
color:
|
|
416
|
+
color: i.strong,
|
|
416
417
|
lineHeight: 1.2,
|
|
417
418
|
textAlign: "center",
|
|
418
419
|
whiteSpace: "nowrap"
|
|
419
420
|
},
|
|
420
|
-
children:
|
|
421
|
+
children: l != null ? `${l}%` : "—"
|
|
421
422
|
}
|
|
422
423
|
),
|
|
423
424
|
/* @__PURE__ */ d(
|
|
@@ -453,7 +454,7 @@ const n = {
|
|
|
453
454
|
fontFamily: s,
|
|
454
455
|
fontSize: 13,
|
|
455
456
|
fontWeight: 400,
|
|
456
|
-
color:
|
|
457
|
+
color: i.muted,
|
|
457
458
|
lineHeight: "normal",
|
|
458
459
|
textAlign: "center",
|
|
459
460
|
width: "100%"
|
|
@@ -471,18 +472,24 @@ const n = {
|
|
|
471
472
|
}
|
|
472
473
|
)
|
|
473
474
|
);
|
|
474
|
-
},
|
|
475
|
+
}, C = ({ variant: l = "dashed", horizontal: n = !1 }) => /* @__PURE__ */ e(
|
|
475
476
|
"div",
|
|
476
477
|
{
|
|
477
478
|
"aria-hidden": "true",
|
|
478
|
-
style: {
|
|
479
|
+
style: n ? {
|
|
480
|
+
// Stacked (mobile) layout: a full-width horizontal rule between gauges.
|
|
481
|
+
height: 0,
|
|
482
|
+
width: "100%",
|
|
483
|
+
borderTop: `1px ${l} ${i.border}`,
|
|
484
|
+
flexShrink: 0
|
|
485
|
+
} : {
|
|
479
486
|
width: 0,
|
|
480
487
|
alignSelf: "stretch",
|
|
481
|
-
borderLeft: `1px ${
|
|
488
|
+
borderLeft: `1px ${l} ${i.border}`,
|
|
482
489
|
flexShrink: 0
|
|
483
490
|
}
|
|
484
491
|
}
|
|
485
|
-
),
|
|
492
|
+
), D = () => /* @__PURE__ */ d(
|
|
486
493
|
"div",
|
|
487
494
|
{
|
|
488
495
|
style: {
|
|
@@ -500,7 +507,7 @@ const n = {
|
|
|
500
507
|
z,
|
|
501
508
|
{
|
|
502
509
|
size: 28,
|
|
503
|
-
color:
|
|
510
|
+
color: i.orange,
|
|
504
511
|
strokeWidth: 2,
|
|
505
512
|
className: "chordia-cog-spin",
|
|
506
513
|
"aria-hidden": "true",
|
|
@@ -518,7 +525,7 @@ const n = {
|
|
|
518
525
|
fontFamily: s,
|
|
519
526
|
fontSize: 14,
|
|
520
527
|
fontWeight: 400,
|
|
521
|
-
color:
|
|
528
|
+
color: i.strong,
|
|
522
529
|
lineHeight: 1.2,
|
|
523
530
|
textAlign: "center",
|
|
524
531
|
maxWidth: 120
|
|
@@ -528,9 +535,9 @@ const n = {
|
|
|
528
535
|
)
|
|
529
536
|
]
|
|
530
537
|
}
|
|
531
|
-
),
|
|
532
|
-
title:
|
|
533
|
-
status:
|
|
538
|
+
), U = ({
|
|
539
|
+
title: l = "Agent Lift Analysis",
|
|
540
|
+
status: n,
|
|
534
541
|
interactionDifficulty: r,
|
|
535
542
|
agentImpact: t,
|
|
536
543
|
outcome: o,
|
|
@@ -539,17 +546,17 @@ const n = {
|
|
|
539
546
|
// Tooltip text rendered on hover of the (i) icon next to the card
|
|
540
547
|
// title. The default explains what this section measures; hosts can
|
|
541
548
|
// override per-context if needed.
|
|
542
|
-
infoTooltip:
|
|
549
|
+
infoTooltip: h = "Measures the agent's contribution to the call outcome by comparing actual performance against the expected result for similar calls."
|
|
543
550
|
}) => {
|
|
544
|
-
const
|
|
551
|
+
const p = $("(max-width: 640px)"), f = Number(r == null ? void 0 : r.value) || 0, g = Number(t == null ? void 0 : t.value) || 0, b = (r == null ? void 0 : r.label) ?? w(f), v = (t == null ? void 0 : t.label) ?? w(g), u = "#272727", m = (() => {
|
|
545
552
|
if ((t == null ? void 0 : t.impactPercent) == null)
|
|
546
553
|
return;
|
|
547
|
-
const
|
|
548
|
-
if (Number.isFinite(
|
|
549
|
-
return `${
|
|
550
|
-
})(),
|
|
554
|
+
const y = Number(t.impactPercent);
|
|
555
|
+
if (Number.isFinite(y))
|
|
556
|
+
return `${y < 0 ? "-" : ""}${Math.abs(y)}% Score impact`;
|
|
557
|
+
})(), x = n ?? {
|
|
551
558
|
label: o == null ? void 0 : o.label,
|
|
552
|
-
direction: t != null ?
|
|
559
|
+
direction: t != null ? k(g) : "positive"
|
|
553
560
|
};
|
|
554
561
|
return /* @__PURE__ */ d(
|
|
555
562
|
"div",
|
|
@@ -559,8 +566,8 @@ const n = {
|
|
|
559
566
|
flexDirection: "column",
|
|
560
567
|
gap: 16,
|
|
561
568
|
padding: "24px 16px",
|
|
562
|
-
background:
|
|
563
|
-
border: `1px solid ${
|
|
569
|
+
background: i.surface,
|
|
570
|
+
border: `1px solid ${i.border}`,
|
|
564
571
|
borderRadius: 8,
|
|
565
572
|
width: "100%",
|
|
566
573
|
boxSizing: "border-box"
|
|
@@ -583,14 +590,14 @@ const n = {
|
|
|
583
590
|
fontFamily: s,
|
|
584
591
|
fontSize: 15,
|
|
585
592
|
fontWeight: 700,
|
|
586
|
-
color:
|
|
593
|
+
color: i.strong,
|
|
587
594
|
lineHeight: 1.2,
|
|
588
595
|
whiteSpace: "nowrap"
|
|
589
596
|
},
|
|
590
|
-
children:
|
|
597
|
+
children: l
|
|
591
598
|
}
|
|
592
599
|
),
|
|
593
|
-
a && /* @__PURE__ */ e(
|
|
600
|
+
a && /* @__PURE__ */ e(H, { text: h, children: /* @__PURE__ */ e(
|
|
594
601
|
"button",
|
|
595
602
|
{
|
|
596
603
|
type: "button",
|
|
@@ -609,8 +616,8 @@ const n = {
|
|
|
609
616
|
// a tooltip on hover or a click handler. Since `infoTooltip`
|
|
610
617
|
// defaults to a non-empty string, the icon almost always
|
|
611
618
|
// reads as interactive.
|
|
612
|
-
cursor:
|
|
613
|
-
color:
|
|
619
|
+
cursor: h || c ? "pointer" : "default",
|
|
620
|
+
color: i.muted
|
|
614
621
|
},
|
|
615
622
|
children: /* @__PURE__ */ e(W, { size: 16, strokeWidth: 1.75 })
|
|
616
623
|
}
|
|
@@ -623,6 +630,7 @@ const n = {
|
|
|
623
630
|
{
|
|
624
631
|
style: {
|
|
625
632
|
display: "flex",
|
|
633
|
+
flexDirection: p ? "column" : "row",
|
|
626
634
|
alignItems: "stretch",
|
|
627
635
|
gap: 16,
|
|
628
636
|
width: "100%"
|
|
@@ -632,37 +640,37 @@ const n = {
|
|
|
632
640
|
S,
|
|
633
641
|
{
|
|
634
642
|
title: "Interaction Difficulty",
|
|
635
|
-
value:
|
|
643
|
+
value: f,
|
|
636
644
|
highlight: null,
|
|
637
|
-
centerLabel:
|
|
638
|
-
centerLabelColor:
|
|
645
|
+
centerLabel: b,
|
|
646
|
+
centerLabelColor: u,
|
|
639
647
|
sublabel: r.sublabel,
|
|
640
648
|
footer: r.footer
|
|
641
649
|
}
|
|
642
650
|
),
|
|
643
|
-
r && t && /* @__PURE__ */ e(
|
|
644
|
-
t && (t.isLearning ? /* @__PURE__ */ e(
|
|
651
|
+
r && t && /* @__PURE__ */ e(C, { variant: "dashed", horizontal: p }),
|
|
652
|
+
t && (t.isLearning ? /* @__PURE__ */ e(D, {}) : /* @__PURE__ */ e(
|
|
645
653
|
S,
|
|
646
654
|
{
|
|
647
655
|
title: "Agent Impact",
|
|
648
|
-
value:
|
|
649
|
-
highlight:
|
|
650
|
-
centerLabel:
|
|
651
|
-
centerLabelColor:
|
|
656
|
+
value: g,
|
|
657
|
+
highlight: g,
|
|
658
|
+
centerLabel: v,
|
|
659
|
+
centerLabelColor: u,
|
|
652
660
|
sublabel: t.sublabel,
|
|
653
|
-
footer:
|
|
661
|
+
footer: m,
|
|
654
662
|
description: t.description
|
|
655
663
|
}
|
|
656
664
|
)),
|
|
657
|
-
(r || t) && o && /* @__PURE__ */ e(
|
|
665
|
+
(r || t) && o && /* @__PURE__ */ e(C, { variant: "solid", horizontal: p }),
|
|
658
666
|
o && /* @__PURE__ */ e(
|
|
659
|
-
|
|
667
|
+
O,
|
|
660
668
|
{
|
|
661
669
|
percent: o.percent,
|
|
662
670
|
label: o.label,
|
|
663
671
|
totalLabel: o.totalLabel ?? "Total",
|
|
664
672
|
description: o.description,
|
|
665
|
-
status:
|
|
673
|
+
status: x
|
|
666
674
|
}
|
|
667
675
|
)
|
|
668
676
|
]
|
|
@@ -673,6 +681,6 @@ const n = {
|
|
|
673
681
|
);
|
|
674
682
|
};
|
|
675
683
|
export {
|
|
676
|
-
|
|
684
|
+
U as A
|
|
677
685
|
};
|
|
678
686
|
//# sourceMappingURL=AgentLiftAnalysisCard.es.js.map
|