chordia-ui 4.0.0 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/UpdatedInteractionDetails.cjs.js +4 -4
- package/dist/components/UpdatedInteractionDetails.cjs.js.map +1 -1
- package/dist/components/UpdatedInteractionDetails.es.js +465 -461
- package/dist/components/UpdatedInteractionDetails.es.js.map +1 -1
- package/package.json +1 -1
- package/src/components/UpdatedInteractionDetails/UpdatedInteractionDetails.jsx +9 -7
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as i, Fragment as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as i, Fragment as Le, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import Se, { useState as I, useRef as $, useEffect as Be, useMemo as We } from "react";
|
|
3
3
|
import { u as ve } from "../useMediaQuery.es.js";
|
|
4
|
-
import { ShieldCheck as
|
|
5
|
-
import { U as
|
|
6
|
-
import { A as
|
|
7
|
-
import { S as
|
|
4
|
+
import { ShieldCheck as Jn, TrendingUp as Un, Lightbulb as en, ThumbsUp as tn, ArrowLeftRight as ei, ArrowDown as Ne, ArrowUp as Pe, ChevronUp as at, ChevronDown as je, Pencil as ti, FileSignal as nn, ScrollText as rn, PauseCircle as ln, PlayCircle as on, Info as an, MessagesSquare as Tt, Check as ni, CircleCheck as ii, Ellipsis as ri, X as At, CornerDownRight as li, Target as sn, ChevronRight as dn, AudioLines as oi, Search as ai, Pause as Rt, ArrowRightLeft as si, CircleDashed as di, MicOff as ci, ClipboardCheck as fi, ArrowLeft as rt, ArrowRight as Lt, ClipboardList as pi, CalendarDays as Bt, PhoneOutgoing as Nt, PhoneIncoming as Pt, Headset as jt, CircleUser as lt, History as gi, ExternalLink as hi, ThumbsDown as ui } from "lucide-react";
|
|
5
|
+
import { U as yi } from "../UpdatedInteractionRecording.es.js";
|
|
6
|
+
import { A as mi } from "../AgentLiftAnalysisCard.es.js";
|
|
7
|
+
import { S as vi } from "../SideDrawer.es.js";
|
|
8
8
|
const O = {
|
|
9
9
|
strong: "var(--Grey-Strong, #2E3236)",
|
|
10
10
|
muted: "var(--Grey-Muted, #808183)",
|
|
@@ -14,17 +14,17 @@ const O = {
|
|
|
14
14
|
quoteLine: "var(--border-warm, #B2AEA8)",
|
|
15
15
|
quoteText: "var(--text-subtle-warm, #767473)",
|
|
16
16
|
iconBg: "var(--surface-hover, #F3F7F7)"
|
|
17
|
-
},
|
|
17
|
+
}, xi = {
|
|
18
18
|
effective: "Effective",
|
|
19
19
|
strong: "Strong",
|
|
20
20
|
needs_improvement: "Needs Improvement",
|
|
21
21
|
mixed: "Mixed"
|
|
22
|
-
},
|
|
23
|
-
function
|
|
24
|
-
if (typeof document > "u" || document.getElementById(
|
|
22
|
+
}, $t = "updated-coaching-synthesis-keyframes";
|
|
23
|
+
function bi() {
|
|
24
|
+
if (typeof document > "u" || document.getElementById($t))
|
|
25
25
|
return;
|
|
26
26
|
const e = document.createElement("style");
|
|
27
|
-
e.id =
|
|
27
|
+
e.id = $t, e.textContent = `
|
|
28
28
|
@keyframes updated-coaching-shimmer {
|
|
29
29
|
0% { background-position: -200% 0; }
|
|
30
30
|
100% { background-position: 200% 0; }
|
|
@@ -35,22 +35,22 @@ function xi() {
|
|
|
35
35
|
}
|
|
36
36
|
`, document.head.appendChild(e);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function wi({ overall: e }) {
|
|
39
39
|
const n = { size: 14, color: O.strong, strokeWidth: 1.5 };
|
|
40
40
|
switch (e) {
|
|
41
41
|
case "strong":
|
|
42
42
|
case "effective":
|
|
43
|
-
return /* @__PURE__ */ t(je, { ...n });
|
|
44
|
-
case "needs_improvement":
|
|
45
43
|
return /* @__PURE__ */ t(Pe, { ...n });
|
|
44
|
+
case "needs_improvement":
|
|
45
|
+
return /* @__PURE__ */ t(Ne, { ...n });
|
|
46
46
|
case "mixed":
|
|
47
|
-
return /* @__PURE__ */ t(
|
|
47
|
+
return /* @__PURE__ */ t(ei, { ...n });
|
|
48
48
|
default:
|
|
49
|
-
return /* @__PURE__ */ t(
|
|
49
|
+
return /* @__PURE__ */ t(tn, { ...n });
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
const n =
|
|
52
|
+
function Si({ overall: e }) {
|
|
53
|
+
const n = xi[e] || (e ? e.replace(/_/g, " ") : "");
|
|
54
54
|
return /* @__PURE__ */ i("div", { style: {
|
|
55
55
|
display: "flex",
|
|
56
56
|
alignItems: "center",
|
|
@@ -69,7 +69,7 @@ function wi({ overall: e }) {
|
|
|
69
69
|
alignItems: "center",
|
|
70
70
|
gap: 6
|
|
71
71
|
}, children: [
|
|
72
|
-
/* @__PURE__ */ t(
|
|
72
|
+
/* @__PURE__ */ t(wi, { overall: e }),
|
|
73
73
|
/* @__PURE__ */ t("span", { style: {
|
|
74
74
|
fontSize: 13,
|
|
75
75
|
fontWeight: 600,
|
|
@@ -80,14 +80,14 @@ function wi({ overall: e }) {
|
|
|
80
80
|
] })
|
|
81
81
|
] });
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function ki(e) {
|
|
84
84
|
if (e == null)
|
|
85
85
|
return null;
|
|
86
86
|
const n = String(e).trim();
|
|
87
87
|
return !n || n.toLowerCase() === "null" || n.toLowerCase() === "undefined" ? null : n;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
const n = typeof e == "string" ? e : (e == null ? void 0 : e.text) || "", r =
|
|
89
|
+
function Ci({ item: e }) {
|
|
90
|
+
const n = typeof e == "string" ? e : (e == null ? void 0 : e.text) || "", r = ki(typeof e == "object" ? e == null ? void 0 : e.quote : null);
|
|
91
91
|
return /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: 14 }, children: [
|
|
92
92
|
/* @__PURE__ */ t("div", { style: {
|
|
93
93
|
fontSize: 14,
|
|
@@ -120,7 +120,7 @@ function ki({ item: e }) {
|
|
|
120
120
|
] })
|
|
121
121
|
] });
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Ot({ icon: e, label: n, items: r }) {
|
|
124
124
|
return !r || r.length === 0 ? null : /* @__PURE__ */ i("div", { style: {
|
|
125
125
|
flex: 1,
|
|
126
126
|
display: "flex",
|
|
@@ -151,17 +151,17 @@ function $t({ icon: e, label: n, items: r }) {
|
|
|
151
151
|
lineHeight: "normal"
|
|
152
152
|
}, children: n })
|
|
153
153
|
] }),
|
|
154
|
-
/* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 24 }, children: r.map((o, a) => /* @__PURE__ */ t(
|
|
154
|
+
/* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 24 }, children: r.map((o, a) => /* @__PURE__ */ t(Ci, { item: o }, a)) })
|
|
155
155
|
] });
|
|
156
156
|
}
|
|
157
|
-
const
|
|
157
|
+
const Fi = ({ data: e, loading: n, error: r }) => {
|
|
158
158
|
var p, b;
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
Se.useEffect(() => {
|
|
160
|
+
bi();
|
|
161
161
|
}, []);
|
|
162
162
|
const o = ve("(max-width: 900px)");
|
|
163
163
|
if (n)
|
|
164
|
-
return /* @__PURE__ */ i(
|
|
164
|
+
return /* @__PURE__ */ i(Le, { children: [
|
|
165
165
|
/* @__PURE__ */ t("style", { children: `
|
|
166
166
|
@keyframes coaching-spinner-spin {
|
|
167
167
|
from { transform: rotate(0deg); }
|
|
@@ -247,7 +247,7 @@ const Ci = ({ data: e, loading: n, error: r }) => {
|
|
|
247
247
|
alignItems: "center",
|
|
248
248
|
gap: 8
|
|
249
249
|
}, children: [
|
|
250
|
-
/* @__PURE__ */ t(
|
|
250
|
+
/* @__PURE__ */ t(Jn, { size: 20, color: O.accent, strokeWidth: 2 }),
|
|
251
251
|
/* @__PURE__ */ t("span", { style: {
|
|
252
252
|
fontSize: 16,
|
|
253
253
|
fontWeight: 600,
|
|
@@ -278,7 +278,7 @@ const Ci = ({ data: e, loading: n, error: r }) => {
|
|
|
278
278
|
lineHeight: 1.5,
|
|
279
279
|
flex: 1
|
|
280
280
|
}, children: f }),
|
|
281
|
-
e.overall && /* @__PURE__ */ t(
|
|
281
|
+
e.overall && /* @__PURE__ */ t(Si, { overall: e.overall })
|
|
282
282
|
] }),
|
|
283
283
|
(a.length > 0 || l.length > 0) && /* @__PURE__ */ i("div", { style: {
|
|
284
284
|
display: "flex",
|
|
@@ -288,17 +288,17 @@ const Ci = ({ data: e, loading: n, error: r }) => {
|
|
|
288
288
|
borderTop: `1px solid ${O.absent}`
|
|
289
289
|
}, children: [
|
|
290
290
|
/* @__PURE__ */ t(
|
|
291
|
-
|
|
291
|
+
Ot,
|
|
292
292
|
{
|
|
293
|
-
icon: /* @__PURE__ */ t(
|
|
293
|
+
icon: /* @__PURE__ */ t(Un, { size: 14, color: O.strong, strokeWidth: 1.5 }),
|
|
294
294
|
label: "Key Strengths",
|
|
295
295
|
items: a
|
|
296
296
|
}
|
|
297
297
|
),
|
|
298
298
|
/* @__PURE__ */ t(
|
|
299
|
-
|
|
299
|
+
Ot,
|
|
300
300
|
{
|
|
301
|
-
icon: /* @__PURE__ */ t(
|
|
301
|
+
icon: /* @__PURE__ */ t(en, { size: 14, color: O.strong, strokeWidth: 1.5 }),
|
|
302
302
|
label: "Improvements",
|
|
303
303
|
items: l
|
|
304
304
|
}
|
|
@@ -308,11 +308,11 @@ const Ci = ({ data: e, loading: n, error: r }) => {
|
|
|
308
308
|
}
|
|
309
309
|
);
|
|
310
310
|
};
|
|
311
|
-
function
|
|
311
|
+
function Wi(e) {
|
|
312
312
|
const n = Math.floor(e / 60), r = Math.round(e % 60);
|
|
313
313
|
return `${n}:${r.toString().padStart(2, "0")}`;
|
|
314
314
|
}
|
|
315
|
-
const
|
|
315
|
+
const Ii = {
|
|
316
316
|
display: "flex",
|
|
317
317
|
justifyContent: "space-between",
|
|
318
318
|
// Extra top padding gives more breathing room between a row's bottom border
|
|
@@ -326,9 +326,9 @@ const Wi = {
|
|
|
326
326
|
lineHeight: "normal",
|
|
327
327
|
borderBottom: "1px solid var(--Grey-absent, #D9D9D9)"
|
|
328
328
|
};
|
|
329
|
-
function
|
|
329
|
+
function Di({ text: e, style: n }) {
|
|
330
330
|
const r = $(null), [o, a] = I(!1);
|
|
331
|
-
return
|
|
331
|
+
return Be(() => {
|
|
332
332
|
const l = r.current;
|
|
333
333
|
if (!l)
|
|
334
334
|
return;
|
|
@@ -347,13 +347,13 @@ function Ii({ text: e, style: n }) {
|
|
|
347
347
|
}
|
|
348
348
|
);
|
|
349
349
|
}
|
|
350
|
-
const
|
|
350
|
+
const Yt = {
|
|
351
351
|
display: "flex",
|
|
352
352
|
flexDirection: "column",
|
|
353
353
|
flex: "1 0 0",
|
|
354
354
|
gap: 0,
|
|
355
355
|
minWidth: 0
|
|
356
|
-
},
|
|
356
|
+
}, zi = ({
|
|
357
357
|
meta: e = {},
|
|
358
358
|
callPurpose: n = {},
|
|
359
359
|
classification: r = {},
|
|
@@ -365,7 +365,7 @@ const Ot = {
|
|
|
365
365
|
customerIntent: p,
|
|
366
366
|
location: b,
|
|
367
367
|
interactionId: w,
|
|
368
|
-
canShowEditButton:
|
|
368
|
+
canShowEditButton: H = !1,
|
|
369
369
|
onEditInteraction: g,
|
|
370
370
|
// Agent view (Figma node 1798-5177): show every field flat in the two-column
|
|
371
371
|
// grid with no "More Details" toggle / dropdown and no Edit button. The
|
|
@@ -373,7 +373,7 @@ const Ot = {
|
|
|
373
373
|
// Customer Intent, Paradigm) plus a "Number" (interaction id) render inline.
|
|
374
374
|
flatView: k = !1
|
|
375
375
|
}) => {
|
|
376
|
-
const [S, W] = I(!1), D = $(null), L = ve("(max-width: 640px)"), C = e.duration_seconds != null ?
|
|
376
|
+
const [S, W] = I(!1), D = $(null), L = ve("(max-width: 640px)"), C = e.duration_seconds != null ? Wi(e.duration_seconds) : null, z = e.message_count, T = n.interaction_driver, Y = r.interaction_paradigm, N = (h) => o.find((R) => (R.key || "").toLowerCase().includes(h)), q = N("resolution_outcome"), ee = N("customer_intent"), A = N("location"), y = N("outcome_quality"), m = (h) => h ? h.replace(/_/g, " ").replace(/\b\w/g, (R) => R.toUpperCase()) : null, u = a !== "Neutral" ? a : y ? m(y.value) : a, te = f ?? (q ? m(q.value) : null), re = p ?? (ee ? m(ee.value) : null), le = b ?? (A ? m(A.value) : null), ne = Y != null ? m(Y) : null, se = new Set(["resolution_outcome", "customer_intent", "location", "outcome_quality"].map((h) => `dim.${h}`)), B = o.filter((h) => !se.has(h.key)), xe = [], pe = [
|
|
377
377
|
[
|
|
378
378
|
C != null ? { label: "Duration", value: C } : null,
|
|
379
379
|
z != null ? { label: "Messages", value: z } : null
|
|
@@ -386,13 +386,13 @@ const Ot = {
|
|
|
386
386
|
];
|
|
387
387
|
for (let h = 0; h < B.length; h += 2) {
|
|
388
388
|
const R = B[h] ? { label: B[h].display_name || B[h].label || B[h].key, value: m(B[h].value) } : null, he = B[h + 1] ? { label: B[h + 1].display_name || B[h + 1].label || B[h + 1].key, value: m(B[h + 1].value) } : null;
|
|
389
|
-
|
|
389
|
+
pe.push([R, he]);
|
|
390
390
|
}
|
|
391
|
-
|
|
391
|
+
pe.push([
|
|
392
392
|
{ label: "Outcome Quality", value: u },
|
|
393
393
|
{ isMoreDetails: !0 }
|
|
394
|
-
]),
|
|
395
|
-
const
|
|
394
|
+
]), pe.forEach((h) => xe.push(h));
|
|
395
|
+
const de = [
|
|
396
396
|
te != null && { label: "Resolution Outcome", value: te },
|
|
397
397
|
re != null && { label: "Customer Intent", value: re },
|
|
398
398
|
// resolvedLocation != null && { label: 'Location', value: resolvedLocation },
|
|
@@ -420,7 +420,7 @@ const Ot = {
|
|
|
420
420
|
ge.push([h[R], h[R + 1] || null]);
|
|
421
421
|
}
|
|
422
422
|
const c = k ? ge : xe;
|
|
423
|
-
|
|
423
|
+
Be(() => {
|
|
424
424
|
if (!S)
|
|
425
425
|
return;
|
|
426
426
|
const h = (R) => {
|
|
@@ -431,11 +431,11 @@ const Ot = {
|
|
|
431
431
|
const Q = (h) => /* @__PURE__ */ i(
|
|
432
432
|
"div",
|
|
433
433
|
{
|
|
434
|
-
style:
|
|
434
|
+
style: Ii,
|
|
435
435
|
children: [
|
|
436
436
|
/* @__PURE__ */ t("span", { style: { color: "var(--Grey-Strong, #2E3236)", whiteSpace: "nowrap", flexShrink: 0 }, children: h.label }),
|
|
437
437
|
/* @__PURE__ */ t(
|
|
438
|
-
|
|
438
|
+
Di,
|
|
439
439
|
{
|
|
440
440
|
text: h.value,
|
|
441
441
|
style: {
|
|
@@ -455,7 +455,7 @@ const Ot = {
|
|
|
455
455
|
]
|
|
456
456
|
},
|
|
457
457
|
h.label
|
|
458
|
-
),
|
|
458
|
+
), Oe = () => /* @__PURE__ */ i(
|
|
459
459
|
"div",
|
|
460
460
|
{
|
|
461
461
|
style: {
|
|
@@ -495,11 +495,11 @@ const Ot = {
|
|
|
495
495
|
},
|
|
496
496
|
children: [
|
|
497
497
|
/* @__PURE__ */ t("span", { children: "More Details" }),
|
|
498
|
-
S ? /* @__PURE__ */ t(
|
|
498
|
+
S ? /* @__PURE__ */ t(at, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }) : /* @__PURE__ */ t(je, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 })
|
|
499
499
|
]
|
|
500
500
|
}
|
|
501
501
|
),
|
|
502
|
-
|
|
502
|
+
H && /* @__PURE__ */ i(
|
|
503
503
|
"button",
|
|
504
504
|
{
|
|
505
505
|
onClick: g || (() => {
|
|
@@ -521,7 +521,7 @@ const Ot = {
|
|
|
521
521
|
flexShrink: 0
|
|
522
522
|
},
|
|
523
523
|
children: [
|
|
524
|
-
/* @__PURE__ */ t(
|
|
524
|
+
/* @__PURE__ */ t(ti, { size: 15, color: "var(--Grey-Strong, #2E3236)", strokeWidth: 1.5 }),
|
|
525
525
|
/* @__PURE__ */ t("span", { style: { fontSize: 13, lineHeight: "normal" }, children: "Edit" })
|
|
526
526
|
]
|
|
527
527
|
}
|
|
@@ -557,14 +557,14 @@ const Ot = {
|
|
|
557
557
|
flexWrap: "nowrap"
|
|
558
558
|
},
|
|
559
559
|
children: [
|
|
560
|
-
/* @__PURE__ */ t("div", { style:
|
|
561
|
-
/* @__PURE__ */ t("div", { style:
|
|
560
|
+
/* @__PURE__ */ t("div", { style: Yt, children: h[0] && !h[0].isMoreDetails ? Q(h[0]) : /* @__PURE__ */ t("div", { style: { flex: 1 } }) }),
|
|
561
|
+
/* @__PURE__ */ t("div", { style: Yt, children: h[1] && !h[1].isMoreDetails ? Q(h[1]) : (he = h[1]) != null && he.isMoreDetails ? Oe() : /* @__PURE__ */ t("div", { style: { flex: 1 } }) })
|
|
562
562
|
]
|
|
563
563
|
},
|
|
564
564
|
R
|
|
565
565
|
);
|
|
566
566
|
}),
|
|
567
|
-
!k && S &&
|
|
567
|
+
!k && S && de.length > 0 && /* @__PURE__ */ i(
|
|
568
568
|
"div",
|
|
569
569
|
{
|
|
570
570
|
style: {
|
|
@@ -594,7 +594,7 @@ const Ot = {
|
|
|
594
594
|
borderBottom: "1px solid var(--Grey-absent, #D9D9D9)",
|
|
595
595
|
alignSelf: "stretch"
|
|
596
596
|
}, children: "More details" }),
|
|
597
|
-
|
|
597
|
+
de.map((h) => /* @__PURE__ */ i(
|
|
598
598
|
"div",
|
|
599
599
|
{
|
|
600
600
|
style: {
|
|
@@ -629,7 +629,7 @@ const Ot = {
|
|
|
629
629
|
]
|
|
630
630
|
}
|
|
631
631
|
);
|
|
632
|
-
},
|
|
632
|
+
}, Kt = ({ children: e, size: n = 28, onClick: r, title: o }) => {
|
|
633
633
|
const [a, l] = I(!1);
|
|
634
634
|
return /* @__PURE__ */ t(
|
|
635
635
|
"div",
|
|
@@ -653,7 +653,7 @@ const Ot = {
|
|
|
653
653
|
children: e
|
|
654
654
|
}
|
|
655
655
|
);
|
|
656
|
-
},
|
|
656
|
+
}, Mi = ({
|
|
657
657
|
signals: e = { signals: [], present_count: 0, total_signals_evaluated: 0 },
|
|
658
658
|
expandedSignals: n = /* @__PURE__ */ new Set(),
|
|
659
659
|
toggleSignal: r = () => {
|
|
@@ -670,7 +670,7 @@ const Ot = {
|
|
|
670
670
|
const p = (e == null ? void 0 : e.signals) ?? [], b = (e == null ? void 0 : e.present_count) ?? p.length, w = (g) => {
|
|
671
671
|
const k = Math.floor(g / 6e4), S = Math.floor(g % 6e4 / 1e3);
|
|
672
672
|
return `${k.toString().padStart(2, "0")}:${S.toString().padStart(2, "0")}`;
|
|
673
|
-
},
|
|
673
|
+
}, H = (g) => d && g.start_ms != null && f * 1e3 >= g.start_ms && f * 1e3 <= (g.end_ms ?? g.start_ms + 5e3);
|
|
674
674
|
return /* @__PURE__ */ i("div", { style: {
|
|
675
675
|
display: "flex",
|
|
676
676
|
flexDirection: "column",
|
|
@@ -694,7 +694,7 @@ const Ot = {
|
|
|
694
694
|
borderRadius: 9999,
|
|
695
695
|
background: "var(--surface-hover, #F3F7F7)",
|
|
696
696
|
flexShrink: 0
|
|
697
|
-
}, children: /* @__PURE__ */ t(
|
|
697
|
+
}, children: /* @__PURE__ */ t(nn, { size: 20, color: "#2E3236", strokeWidth: 1.5 }) }),
|
|
698
698
|
/* @__PURE__ */ i("div", { style: {
|
|
699
699
|
display: "flex",
|
|
700
700
|
alignItems: "center",
|
|
@@ -780,7 +780,7 @@ const Ot = {
|
|
|
780
780
|
")"
|
|
781
781
|
] })
|
|
782
782
|
] }),
|
|
783
|
-
W ? /* @__PURE__ */ t(
|
|
783
|
+
W ? /* @__PURE__ */ t(at, { size: 20, color: "#767473" }) : /* @__PURE__ */ t(je, { size: 20, color: "#767473" })
|
|
784
784
|
]
|
|
785
785
|
}
|
|
786
786
|
),
|
|
@@ -826,14 +826,14 @@ const Ot = {
|
|
|
826
826
|
},
|
|
827
827
|
children: [
|
|
828
828
|
/* @__PURE__ */ t(
|
|
829
|
-
|
|
829
|
+
Kt,
|
|
830
830
|
{
|
|
831
831
|
size: 28,
|
|
832
832
|
title: "Show in transcript",
|
|
833
833
|
onClick: (A) => {
|
|
834
834
|
A.stopPropagation(), l(T.evidence[0].start_ms);
|
|
835
835
|
},
|
|
836
|
-
children: /* @__PURE__ */ t(
|
|
836
|
+
children: /* @__PURE__ */ t(rn, { size: 16, color: "#808183", strokeWidth: 1.5 })
|
|
837
837
|
}
|
|
838
838
|
),
|
|
839
839
|
/* @__PURE__ */ t("span", { style: {
|
|
@@ -865,15 +865,15 @@ const Ot = {
|
|
|
865
865
|
cursor: m ? "pointer" : "default"
|
|
866
866
|
},
|
|
867
867
|
children: [
|
|
868
|
-
m && /* @__PURE__ */ t(
|
|
869
|
-
|
|
868
|
+
m && /* @__PURE__ */ t(Kt, { size: 28, children: H(A) ? /* @__PURE__ */ t(
|
|
869
|
+
ln,
|
|
870
870
|
{
|
|
871
871
|
size: 17,
|
|
872
872
|
color: "var(--Grey-Muted, #808183)",
|
|
873
873
|
strokeWidth: 1.5
|
|
874
874
|
}
|
|
875
875
|
) : /* @__PURE__ */ t(
|
|
876
|
-
|
|
876
|
+
on,
|
|
877
877
|
{
|
|
878
878
|
size: 17,
|
|
879
879
|
color: "var(--Grey-Muted, #808183)",
|
|
@@ -915,8 +915,8 @@ const Ot = {
|
|
|
915
915
|
accent: "var(--rail-orange, #C98A5A)",
|
|
916
916
|
track: "var(--rail-surface-2, #E3E1D7)",
|
|
917
917
|
infoIcon: "var(--color-input-border, #ACACAD)"
|
|
918
|
-
},
|
|
919
|
-
const w = Number(e),
|
|
918
|
+
}, Gi = ({ score: e = 4, minScore: n = 0, maxScore: r = 5 }) => {
|
|
919
|
+
const w = Number(e), H = Number.isFinite(w) ? Math.min(Math.max(w, n), r) : n, g = r > n ? (H - n) / (r - n) * 5 : 0, k = 180 / 5, S = (L) => {
|
|
920
920
|
const C = L * Math.PI / 180;
|
|
921
921
|
return {
|
|
922
922
|
x: 121.5 + 85 * Math.cos(C),
|
|
@@ -953,7 +953,7 @@ const Ot = {
|
|
|
953
953
|
)
|
|
954
954
|
] }, C);
|
|
955
955
|
}) });
|
|
956
|
-
},
|
|
956
|
+
}, Hi = ({ value: e = 0, maxValue: n = 5 }) => {
|
|
957
957
|
const r = Number(e), o = Number.isFinite(r) ? Math.min(Math.max(r, 0), n) : 0;
|
|
958
958
|
return /* @__PURE__ */ t("div", { style: { display: "flex", gap: 2 }, children: Array.from({ length: n }, (a, l) => {
|
|
959
959
|
const d = Math.max(0, Math.min(1, o - l));
|
|
@@ -981,12 +981,12 @@ const Ot = {
|
|
|
981
981
|
l
|
|
982
982
|
);
|
|
983
983
|
}) });
|
|
984
|
-
},
|
|
984
|
+
}, _i = {
|
|
985
985
|
CSAT: "Predicted Customer Satisfaction",
|
|
986
986
|
Resolution: "Predicted Resolution: was the issue fully resolved?",
|
|
987
987
|
"Process Adherence": "Process Adherence: Did the agent follow procedures?",
|
|
988
988
|
Communication: "Predicted Communication Quality: Clarity, Empathy, Professionalism"
|
|
989
|
-
},
|
|
989
|
+
}, Ei = ({ text: e, children: n }) => {
|
|
990
990
|
const [r, o] = I(!1), a = $(null), [l, d] = I({ top: 0, left: 0 });
|
|
991
991
|
return /* @__PURE__ */ i(
|
|
992
992
|
"div",
|
|
@@ -1030,7 +1030,7 @@ const Ot = {
|
|
|
1030
1030
|
]
|
|
1031
1031
|
}
|
|
1032
1032
|
);
|
|
1033
|
-
},
|
|
1033
|
+
}, Ti = ({ label: e, value: n = 0, maxValue: r = 5 }) => /* @__PURE__ */ i("div", { style: {
|
|
1034
1034
|
display: "flex",
|
|
1035
1035
|
flexDirection: "column",
|
|
1036
1036
|
gap: 8,
|
|
@@ -1049,10 +1049,10 @@ const Ot = {
|
|
|
1049
1049
|
fontFamily: "var(--font-sans)",
|
|
1050
1050
|
lineHeight: "normal"
|
|
1051
1051
|
}, children: e }),
|
|
1052
|
-
/* @__PURE__ */ t(
|
|
1052
|
+
/* @__PURE__ */ t(Ei, { text: _i[e] || e, children: /* @__PURE__ */ t(an, { size: 14, color: V.infoIcon, strokeWidth: 1, style: { cursor: "pointer" } }) })
|
|
1053
1053
|
] }),
|
|
1054
|
-
/* @__PURE__ */ t(
|
|
1055
|
-
] }),
|
|
1054
|
+
/* @__PURE__ */ t(Hi, { value: n, maxValue: r })
|
|
1055
|
+
] }), Ai = ({
|
|
1056
1056
|
score: e = 4,
|
|
1057
1057
|
minScore: n = 0,
|
|
1058
1058
|
maxScore: r = 5,
|
|
@@ -1069,7 +1069,7 @@ const Ot = {
|
|
|
1069
1069
|
{ label: "Communication", value: 3 }
|
|
1070
1070
|
]
|
|
1071
1071
|
}) => {
|
|
1072
|
-
const p = ve("(max-width: 640px)"), b = Number(e), w = Number.isFinite(b) ? Math.min(Math.max(b, n), r) : n,
|
|
1072
|
+
const p = ve("(max-width: 640px)"), b = Number(e), w = Number.isFinite(b) ? Math.min(Math.max(b, n), r) : n, H = w.toFixed(1), g = H.endsWith(".0") ? H.slice(0, -2) : H;
|
|
1073
1073
|
return /* @__PURE__ */ i("div", { style: {
|
|
1074
1074
|
display: "flex",
|
|
1075
1075
|
flexDirection: "column",
|
|
@@ -1120,7 +1120,7 @@ const Ot = {
|
|
|
1120
1120
|
alignItems: "center",
|
|
1121
1121
|
display: "flex"
|
|
1122
1122
|
}, children: [
|
|
1123
|
-
/* @__PURE__ */ t(
|
|
1123
|
+
/* @__PURE__ */ t(Gi, { score: e, minScore: n, maxScore: r }),
|
|
1124
1124
|
(() => {
|
|
1125
1125
|
const W = -(180 - (r > n ? (w - n) / (r - n) : 0) * 180 - 45);
|
|
1126
1126
|
return /* @__PURE__ */ i(
|
|
@@ -1196,7 +1196,7 @@ const Ot = {
|
|
|
1196
1196
|
background: V.absent
|
|
1197
1197
|
} }),
|
|
1198
1198
|
f.map((k, S) => /* @__PURE__ */ t(
|
|
1199
|
-
|
|
1199
|
+
Ti,
|
|
1200
1200
|
{
|
|
1201
1201
|
label: k.label,
|
|
1202
1202
|
value: k.value
|
|
@@ -1206,12 +1206,12 @@ const Ot = {
|
|
|
1206
1206
|
] })
|
|
1207
1207
|
] })
|
|
1208
1208
|
] });
|
|
1209
|
-
},
|
|
1209
|
+
}, cn = (e) => {
|
|
1210
1210
|
if (!e)
|
|
1211
1211
|
return null;
|
|
1212
1212
|
const r = String(e).trim().toLowerCase().split(/[^a-z]+/).filter(Boolean);
|
|
1213
1213
|
return r.includes("supervisor") ? "var(--rail-compliance, #C98A5A)" : r.includes("admin") || r.includes("administrator") || r.includes("superadmin") ? "var(--rail-discovery, #5E88B0)" : r.includes("agent") ? "var(--rail-outcome, #6B7C93)" : null;
|
|
1214
|
-
},
|
|
1214
|
+
}, Ri = (e) => {
|
|
1215
1215
|
var o, a, l, d, f, p;
|
|
1216
1216
|
if (!e)
|
|
1217
1217
|
return null;
|
|
@@ -1224,12 +1224,12 @@ const Ot = {
|
|
|
1224
1224
|
return n.name || n.value || n.label || null;
|
|
1225
1225
|
const r = ((o = e.user) == null ? void 0 : o.role) ?? ((a = e.user) == null ? void 0 : a.userRole) ?? ((l = e.user) == null ? void 0 : l.user_role) ?? ((d = e.profile) == null ? void 0 : d.role) ?? ((f = e.profile) == null ? void 0 : f.userRole) ?? ((p = e.profile) == null ? void 0 : p.user_role);
|
|
1226
1226
|
return typeof r == "string" ? r : Array.isArray(r) ? r.join(" ") : r && typeof r == "object" && (r.name || r.value || r.label) || null;
|
|
1227
|
-
},
|
|
1227
|
+
}, fn = (e) => {
|
|
1228
1228
|
if (!e)
|
|
1229
1229
|
return "#6B7C93";
|
|
1230
|
-
const n =
|
|
1231
|
-
return
|
|
1232
|
-
},
|
|
1230
|
+
const n = Ri(e);
|
|
1231
|
+
return cn(n) || e.color || "#6B7C93";
|
|
1232
|
+
}, $e = (e) => (e || "").split(" ").map((n) => n[0]).join("").toUpperCase() || "U", Li = (e) => {
|
|
1233
1233
|
if (!e || e === "Just now")
|
|
1234
1234
|
return !0;
|
|
1235
1235
|
if (/^\d{4}-\d{2}-\d{2}T/.test(e))
|
|
@@ -1241,7 +1241,7 @@ const Ot = {
|
|
|
1241
1241
|
}
|
|
1242
1242
|
const n = e.match(/^(\d+)\s*min/);
|
|
1243
1243
|
return n ? parseInt(n[1], 10) < 15 : !(/\d+\s*h/.test(e) || /\d+\s*day/.test(e));
|
|
1244
|
-
},
|
|
1244
|
+
}, Bi = (e) => {
|
|
1245
1245
|
if (!e)
|
|
1246
1246
|
return "";
|
|
1247
1247
|
if (!/^\d{4}-\d{2}-\d{2}T/.test(e))
|
|
@@ -1262,7 +1262,7 @@ const Ot = {
|
|
|
1262
1262
|
} catch {
|
|
1263
1263
|
return e;
|
|
1264
1264
|
}
|
|
1265
|
-
},
|
|
1265
|
+
}, pn = ({ name: e, initials: n, color: r, avatar: o, size: a = 36 }) => o ? /* @__PURE__ */ t(
|
|
1266
1266
|
"img",
|
|
1267
1267
|
{
|
|
1268
1268
|
src: o,
|
|
@@ -1294,9 +1294,9 @@ const Ot = {
|
|
|
1294
1294
|
letterSpacing: "0.02em"
|
|
1295
1295
|
},
|
|
1296
1296
|
title: e,
|
|
1297
|
-
children: n ||
|
|
1297
|
+
children: n || $e(e)
|
|
1298
1298
|
}
|
|
1299
|
-
),
|
|
1299
|
+
), Ni = ({
|
|
1300
1300
|
comment: e,
|
|
1301
1301
|
isReply: n = !1,
|
|
1302
1302
|
isConsecutive: r = !1,
|
|
@@ -1307,23 +1307,23 @@ const Ot = {
|
|
|
1307
1307
|
onMenuClick: f,
|
|
1308
1308
|
showReply: p = !0
|
|
1309
1309
|
}) => {
|
|
1310
|
-
var
|
|
1311
|
-
const [b, w] = I(!1), [
|
|
1312
|
-
return
|
|
1313
|
-
if (!
|
|
1310
|
+
var de, ge;
|
|
1311
|
+
const [b, w] = I(!1), [H, g] = I(!1), [k, S] = I(!1), [W, D] = I(""), [L, C] = I(!1), [z, T] = I(""), [Y, N] = I(!1), q = $(null), ee = $(null), A = $(null), y = e.author || {}, m = y.name || e.author_name || "Unknown", u = y.initials || $e(m), te = y.role || e.author_role, re = y.color || cn(te) || "#6B7C93", le = y.avatar || e.avatar, ne = e.timestamp || e.created_at, se = Bi(ne), B = Li(ne), xe = !!(e.isEdited || e.is_edited || e.edited), pe = Array.isArray(e.content) ? e.content : [e.content || e.text || ""];
|
|
1312
|
+
return Se.useEffect(() => {
|
|
1313
|
+
if (!H)
|
|
1314
1314
|
return;
|
|
1315
1315
|
const c = (Q) => {
|
|
1316
1316
|
q.current && !q.current.contains(Q.target) && g(!1);
|
|
1317
1317
|
};
|
|
1318
1318
|
return document.addEventListener("mousedown", c), () => document.removeEventListener("mousedown", c);
|
|
1319
|
-
}, [
|
|
1319
|
+
}, [H]), Se.useEffect(() => {
|
|
1320
1320
|
const c = ee.current;
|
|
1321
1321
|
if (!c)
|
|
1322
1322
|
return;
|
|
1323
1323
|
c.style.height = "auto";
|
|
1324
1324
|
const Q = 140;
|
|
1325
1325
|
c.style.height = Math.min(c.scrollHeight, Q) + "px", c.style.overflowY = c.scrollHeight > Q ? "auto" : "hidden";
|
|
1326
|
-
}, [W, k]),
|
|
1326
|
+
}, [W, k]), Se.useEffect(() => {
|
|
1327
1327
|
const c = A.current;
|
|
1328
1328
|
if (!c)
|
|
1329
1329
|
return;
|
|
@@ -1345,7 +1345,7 @@ const Ot = {
|
|
|
1345
1345
|
},
|
|
1346
1346
|
children: [
|
|
1347
1347
|
r ? /* @__PURE__ */ t("div", { style: { width: 36, flexShrink: 0 } }) : /* @__PURE__ */ t(
|
|
1348
|
-
|
|
1348
|
+
pn,
|
|
1349
1349
|
{
|
|
1350
1350
|
name: m,
|
|
1351
1351
|
initials: u,
|
|
@@ -1420,14 +1420,14 @@ const Ot = {
|
|
|
1420
1420
|
display: "flex",
|
|
1421
1421
|
alignItems: "center",
|
|
1422
1422
|
justifyContent: "center",
|
|
1423
|
-
opacity: b ||
|
|
1423
|
+
opacity: b || H ? 1 : 0,
|
|
1424
1424
|
transition: "opacity 0.15s",
|
|
1425
1425
|
flexShrink: 0
|
|
1426
1426
|
},
|
|
1427
|
-
children: /* @__PURE__ */ t(
|
|
1427
|
+
children: /* @__PURE__ */ t(ri, { size: 24, color: "var(--Grey-Muted, #808183)" })
|
|
1428
1428
|
}
|
|
1429
1429
|
),
|
|
1430
|
-
|
|
1430
|
+
H && /* @__PURE__ */ i(
|
|
1431
1431
|
"div",
|
|
1432
1432
|
{
|
|
1433
1433
|
style: {
|
|
@@ -1596,7 +1596,7 @@ const Ot = {
|
|
|
1596
1596
|
children: [
|
|
1597
1597
|
"“",
|
|
1598
1598
|
" ",
|
|
1599
|
-
((
|
|
1599
|
+
((de = e.author) == null ? void 0 : de.name) || "Unknown"
|
|
1600
1600
|
]
|
|
1601
1601
|
}
|
|
1602
1602
|
),
|
|
@@ -1614,7 +1614,7 @@ const Ot = {
|
|
|
1614
1614
|
cursor: "pointer",
|
|
1615
1615
|
padding: 0
|
|
1616
1616
|
},
|
|
1617
|
-
children: /* @__PURE__ */ t(
|
|
1617
|
+
children: /* @__PURE__ */ t(At, { size: 20, color: "var(--Grey-Muted, #808183)" })
|
|
1618
1618
|
}
|
|
1619
1619
|
)
|
|
1620
1620
|
]
|
|
@@ -1700,7 +1700,7 @@ const Ot = {
|
|
|
1700
1700
|
}
|
|
1701
1701
|
) : (
|
|
1702
1702
|
/* Message bubbles — stacked, gap: 4px, fit content */
|
|
1703
|
-
/* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 4, alignItems: "flex-start" }, children:
|
|
1703
|
+
/* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 4, alignItems: "flex-start" }, children: pe.map((c, Q) => /* @__PURE__ */ t(
|
|
1704
1704
|
"div",
|
|
1705
1705
|
{
|
|
1706
1706
|
style: {
|
|
@@ -1813,7 +1813,7 @@ const Ot = {
|
|
|
1813
1813
|
transition: "color 0.15s"
|
|
1814
1814
|
},
|
|
1815
1815
|
children: [
|
|
1816
|
-
/* @__PURE__ */ t(
|
|
1816
|
+
/* @__PURE__ */ t(li, { size: 20, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
|
|
1817
1817
|
"Reply"
|
|
1818
1818
|
]
|
|
1819
1819
|
}
|
|
@@ -1881,7 +1881,7 @@ const Ot = {
|
|
|
1881
1881
|
cursor: "pointer",
|
|
1882
1882
|
padding: 0
|
|
1883
1883
|
},
|
|
1884
|
-
children: /* @__PURE__ */ t(
|
|
1884
|
+
children: /* @__PURE__ */ t(At, { size: 20, color: "var(--Grey-Muted, #808183)" })
|
|
1885
1885
|
}
|
|
1886
1886
|
)
|
|
1887
1887
|
]
|
|
@@ -2004,9 +2004,9 @@ const Ot = {
|
|
|
2004
2004
|
]
|
|
2005
2005
|
}
|
|
2006
2006
|
);
|
|
2007
|
-
},
|
|
2007
|
+
}, Pi = ({ currentUser: e, onSubmit: n }) => {
|
|
2008
2008
|
const [r, o] = I(""), [a, l] = I(!1), d = $(null);
|
|
2009
|
-
|
|
2009
|
+
Be(() => {
|
|
2010
2010
|
const g = d.current;
|
|
2011
2011
|
if (!g)
|
|
2012
2012
|
return;
|
|
@@ -2023,15 +2023,15 @@ const Ot = {
|
|
|
2023
2023
|
return;
|
|
2024
2024
|
g.preventDefault(), f();
|
|
2025
2025
|
}
|
|
2026
|
-
}, b = (e == null ? void 0 : e.initials) ||
|
|
2026
|
+
}, b = (e == null ? void 0 : e.initials) || $e(e == null ? void 0 : e.name), w = fn(e), H = e == null ? void 0 : e.avatar;
|
|
2027
2027
|
return /* @__PURE__ */ i("div", { style: { display: "flex", gap: 16, alignItems: "flex-start" }, children: [
|
|
2028
2028
|
/* @__PURE__ */ t(
|
|
2029
|
-
|
|
2029
|
+
pn,
|
|
2030
2030
|
{
|
|
2031
2031
|
name: e == null ? void 0 : e.name,
|
|
2032
2032
|
initials: b,
|
|
2033
2033
|
color: w,
|
|
2034
|
-
avatar:
|
|
2034
|
+
avatar: H
|
|
2035
2035
|
}
|
|
2036
2036
|
),
|
|
2037
2037
|
/* @__PURE__ */ t(
|
|
@@ -2121,11 +2121,11 @@ const Ot = {
|
|
|
2121
2121
|
}
|
|
2122
2122
|
)
|
|
2123
2123
|
] });
|
|
2124
|
-
},
|
|
2124
|
+
}, gn = ({ comment: e, depth: n = 0, isConsecutive: r = !1, onReply: o, onSendReply: a, onEdit: l, onDelete: d, onMenuClick: f }) => {
|
|
2125
2125
|
const p = e.replies && e.replies.length > 0, b = !p;
|
|
2126
|
-
return /* @__PURE__ */ i(
|
|
2126
|
+
return /* @__PURE__ */ i(Se.Fragment, { children: [
|
|
2127
2127
|
/* @__PURE__ */ t("div", { style: { paddingLeft: n > 0 ? Math.min(n * 32, 128) : 0 }, children: /* @__PURE__ */ t(
|
|
2128
|
-
|
|
2128
|
+
Ni,
|
|
2129
2129
|
{
|
|
2130
2130
|
comment: e,
|
|
2131
2131
|
isReply: n > 0,
|
|
@@ -2139,7 +2139,7 @@ const Ot = {
|
|
|
2139
2139
|
}
|
|
2140
2140
|
) }),
|
|
2141
2141
|
p && e.replies.map((w) => /* @__PURE__ */ t(
|
|
2142
|
-
|
|
2142
|
+
gn,
|
|
2143
2143
|
{
|
|
2144
2144
|
comment: w,
|
|
2145
2145
|
depth: n + 1,
|
|
@@ -2152,7 +2152,7 @@ const Ot = {
|
|
|
2152
2152
|
w.id
|
|
2153
2153
|
))
|
|
2154
2154
|
] });
|
|
2155
|
-
},
|
|
2155
|
+
}, ji = ({
|
|
2156
2156
|
comments: e = [],
|
|
2157
2157
|
totalComments: n,
|
|
2158
2158
|
children: r,
|
|
@@ -2164,20 +2164,20 @@ const Ot = {
|
|
|
2164
2164
|
onMenuClick: p,
|
|
2165
2165
|
onMarkResolved: b,
|
|
2166
2166
|
currentUser: w,
|
|
2167
|
-
isResolved:
|
|
2167
|
+
isResolved: H = !1
|
|
2168
2168
|
}) => {
|
|
2169
|
-
const [g, k] = I([]), [S, W] = I(!1), D =
|
|
2169
|
+
const [g, k] = I([]), [S, W] = I(!1), D = We(() => {
|
|
2170
2170
|
const y = new Set(e.map((u) => u.id)), m = g.filter((u) => !y.has(u.id));
|
|
2171
2171
|
return [...e, ...m];
|
|
2172
2172
|
}, [e, g]);
|
|
2173
|
-
|
|
2173
|
+
Se.useEffect(() => {
|
|
2174
2174
|
const y = new Set(e.map((m) => m.id));
|
|
2175
2175
|
k((m) => m.filter((u) => !y.has(u.id)));
|
|
2176
2176
|
}, [e]);
|
|
2177
|
-
const L =
|
|
2177
|
+
const L = We(() => {
|
|
2178
2178
|
if (!w)
|
|
2179
2179
|
return { name: "You", initials: "YO", color: "#6B7C93" };
|
|
2180
|
-
const y = w.name || "You", m = w.initials ||
|
|
2180
|
+
const y = w.name || "You", m = w.initials || $e(y), u = fn(w);
|
|
2181
2181
|
return { ...w, name: y, initials: m, color: u };
|
|
2182
2182
|
}, [w]), C = async ({ content: y, parentId: m }) => {
|
|
2183
2183
|
if (l) {
|
|
@@ -2222,7 +2222,7 @@ const Ot = {
|
|
|
2222
2222
|
), d == null || d(y);
|
|
2223
2223
|
}, Y = (y) => {
|
|
2224
2224
|
k((m) => m.filter((u) => u.id !== y.id)), f == null || f(y);
|
|
2225
|
-
}, N =
|
|
2225
|
+
}, N = We(() => {
|
|
2226
2226
|
const y = {};
|
|
2227
2227
|
D.forEach((u) => {
|
|
2228
2228
|
u.parentId && (y[u.parentId] || (y[u.parentId] = []), y[u.parentId].push(u));
|
|
@@ -2257,7 +2257,7 @@ const Ot = {
|
|
|
2257
2257
|
alignSelf: "stretch"
|
|
2258
2258
|
},
|
|
2259
2259
|
children: [
|
|
2260
|
-
/* @__PURE__ */ t(
|
|
2260
|
+
/* @__PURE__ */ t(Tt, { size: 24, color: "var(--rail-orange, #C98A5A)", strokeWidth: 1.5 }),
|
|
2261
2261
|
/* @__PURE__ */ t(
|
|
2262
2262
|
"span",
|
|
2263
2263
|
{
|
|
@@ -2311,7 +2311,7 @@ const Ot = {
|
|
|
2311
2311
|
justifyContent: "center",
|
|
2312
2312
|
flexShrink: 0
|
|
2313
2313
|
},
|
|
2314
|
-
children: /* @__PURE__ */ t(
|
|
2314
|
+
children: /* @__PURE__ */ t(Tt, { style: { width: 20, height: 20, flexShrink: 0 }, color: "var(--Grey-Strong, #2E3236)", strokeWidth: 1.5 })
|
|
2315
2315
|
}
|
|
2316
2316
|
),
|
|
2317
2317
|
/* @__PURE__ */ t(
|
|
@@ -2343,7 +2343,7 @@ const Ot = {
|
|
|
2343
2343
|
]
|
|
2344
2344
|
}
|
|
2345
2345
|
),
|
|
2346
|
-
|
|
2346
|
+
H ? /* @__PURE__ */ i(
|
|
2347
2347
|
"div",
|
|
2348
2348
|
{
|
|
2349
2349
|
style: {
|
|
@@ -2358,7 +2358,7 @@ const Ot = {
|
|
|
2358
2358
|
flexShrink: 0
|
|
2359
2359
|
},
|
|
2360
2360
|
children: [
|
|
2361
|
-
/* @__PURE__ */ t(
|
|
2361
|
+
/* @__PURE__ */ t(ni, { size: 16, color: "var(--Grey-Strong, #2E3236)", strokeWidth: 2 }),
|
|
2362
2362
|
/* @__PURE__ */ t(
|
|
2363
2363
|
"span",
|
|
2364
2364
|
{
|
|
@@ -2400,7 +2400,7 @@ const Ot = {
|
|
|
2400
2400
|
...A ? { width: "100%", order: 1 } : {}
|
|
2401
2401
|
},
|
|
2402
2402
|
children: [
|
|
2403
|
-
/* @__PURE__ */ t(
|
|
2403
|
+
/* @__PURE__ */ t(ii, { size: 16, color: "var(--Grey-Strong, #2E3236)", strokeWidth: 1.5 }),
|
|
2404
2404
|
"Mark as Resolved"
|
|
2405
2405
|
]
|
|
2406
2406
|
}
|
|
@@ -2423,7 +2423,7 @@ const Ot = {
|
|
|
2423
2423
|
var ne, se;
|
|
2424
2424
|
const u = m > 0 ? N[m - 1] : null, te = ((ne = u == null ? void 0 : u.author) == null ? void 0 : ne.name) || (u == null ? void 0 : u.author_name), re = ((se = y.author) == null ? void 0 : se.name) || y.author_name, le = u && te === re && (!u.replies || u.replies.length === 0);
|
|
2425
2425
|
return /* @__PURE__ */ t(
|
|
2426
|
-
|
|
2426
|
+
gn,
|
|
2427
2427
|
{
|
|
2428
2428
|
comment: y,
|
|
2429
2429
|
depth: 0,
|
|
@@ -2450,7 +2450,7 @@ const Ot = {
|
|
|
2450
2450
|
marginLeft: 48
|
|
2451
2451
|
},
|
|
2452
2452
|
children: [
|
|
2453
|
-
/* @__PURE__ */ t(
|
|
2453
|
+
/* @__PURE__ */ t(an, { size: 16, color: "var(--Grey-Muted, #808183)" }),
|
|
2454
2454
|
/* @__PURE__ */ t(
|
|
2455
2455
|
"span",
|
|
2456
2456
|
{
|
|
@@ -2505,7 +2505,7 @@ const Ot = {
|
|
|
2505
2505
|
]
|
|
2506
2506
|
}
|
|
2507
2507
|
),
|
|
2508
|
-
/* @__PURE__ */ t(
|
|
2508
|
+
/* @__PURE__ */ t(Pi, { currentUser: L, onSubmit: z })
|
|
2509
2509
|
] }),
|
|
2510
2510
|
/* @__PURE__ */ t(
|
|
2511
2511
|
"div",
|
|
@@ -2523,7 +2523,7 @@ const Ot = {
|
|
|
2523
2523
|
]
|
|
2524
2524
|
}
|
|
2525
2525
|
);
|
|
2526
|
-
},
|
|
2526
|
+
}, G = {
|
|
2527
2527
|
strong: "var(--Grey-Strong, #2E3236)",
|
|
2528
2528
|
muted: "var(--Grey-Muted, #808183)",
|
|
2529
2529
|
border: "var(--Grey-absent, #D9D9D9)",
|
|
@@ -2541,7 +2541,7 @@ const Ot = {
|
|
|
2541
2541
|
impactPositiveInk: "var(--state-present, #25A372)",
|
|
2542
2542
|
impactNegativeBg: "rgba(208, 74, 74, 0.12)",
|
|
2543
2543
|
impactNegativeInk: "var(--color-red-strong, #D04A4A)"
|
|
2544
|
-
},
|
|
2544
|
+
}, $i = "var(--font-sans, 'Averta', ui-sans-serif, system-ui, sans-serif)", Vt = ({ children: e, size: n = 24, onClick: r, title: o }) => {
|
|
2545
2545
|
const [a, l] = I(!1);
|
|
2546
2546
|
return /* @__PURE__ */ t(
|
|
2547
2547
|
"div",
|
|
@@ -2557,7 +2557,7 @@ const Ot = {
|
|
|
2557
2557
|
width: n,
|
|
2558
2558
|
height: n,
|
|
2559
2559
|
borderRadius: 9999,
|
|
2560
|
-
background: a ?
|
|
2560
|
+
background: a ? G.surfaceHover : "transparent",
|
|
2561
2561
|
cursor: "pointer",
|
|
2562
2562
|
flexShrink: 0,
|
|
2563
2563
|
transition: "background 0.15s"
|
|
@@ -2565,19 +2565,19 @@ const Ot = {
|
|
|
2565
2565
|
children: e
|
|
2566
2566
|
}
|
|
2567
2567
|
);
|
|
2568
|
-
},
|
|
2568
|
+
}, Oi = (e) => {
|
|
2569
2569
|
const n = Math.floor(e / 6e4), r = Math.floor(e % 6e4 / 1e3);
|
|
2570
2570
|
return `${n.toString().padStart(2, "0")}:${r.toString().padStart(2, "0")}`;
|
|
2571
|
-
},
|
|
2571
|
+
}, Yi = ({
|
|
2572
2572
|
icon: e
|
|
2573
2573
|
/* tone — unused */
|
|
2574
2574
|
}) => {
|
|
2575
|
-
const n = { size: 16, color:
|
|
2576
|
-
return e === "thumbs_down" ? /* @__PURE__ */ t(
|
|
2577
|
-
},
|
|
2575
|
+
const n = { size: 16, color: G.strong, strokeWidth: 1.5 };
|
|
2576
|
+
return e === "thumbs_down" ? /* @__PURE__ */ t(Ne, { ...n }) : e === "focus" ? /* @__PURE__ */ t(sn, { ...n }) : /* @__PURE__ */ t(Pe, { ...n });
|
|
2577
|
+
}, Ki = ({ label: e, direction: n }) => {
|
|
2578
2578
|
if (!e)
|
|
2579
2579
|
return null;
|
|
2580
|
-
const r = n === "negative" ?
|
|
2580
|
+
const r = n === "negative" ? Ne : Pe;
|
|
2581
2581
|
return /* @__PURE__ */ i(
|
|
2582
2582
|
"span",
|
|
2583
2583
|
{
|
|
@@ -2585,8 +2585,8 @@ const Ot = {
|
|
|
2585
2585
|
display: "inline-flex",
|
|
2586
2586
|
alignItems: "center",
|
|
2587
2587
|
gap: 4,
|
|
2588
|
-
background:
|
|
2589
|
-
color:
|
|
2588
|
+
background: G.surfaceHover,
|
|
2589
|
+
color: G.strong,
|
|
2590
2590
|
padding: "2px 8px",
|
|
2591
2591
|
borderRadius: 9999,
|
|
2592
2592
|
fontSize: 12,
|
|
@@ -2597,11 +2597,11 @@ const Ot = {
|
|
|
2597
2597
|
},
|
|
2598
2598
|
children: [
|
|
2599
2599
|
e,
|
|
2600
|
-
/* @__PURE__ */ t(r, { size: 12, color:
|
|
2600
|
+
/* @__PURE__ */ t(r, { size: 12, color: G.strong, strokeWidth: 2 })
|
|
2601
2601
|
]
|
|
2602
2602
|
}
|
|
2603
2603
|
);
|
|
2604
|
-
},
|
|
2604
|
+
}, Vi = ({
|
|
2605
2605
|
evidence: e,
|
|
2606
2606
|
onPlayEvidence: n,
|
|
2607
2607
|
onShowInTranscript: r,
|
|
@@ -2617,7 +2617,7 @@ const Ot = {
|
|
|
2617
2617
|
flexDirection: "column",
|
|
2618
2618
|
gap: 6,
|
|
2619
2619
|
paddingLeft: 12,
|
|
2620
|
-
borderLeft: `2px solid ${
|
|
2620
|
+
borderLeft: `2px solid ${G.warmBorder}`
|
|
2621
2621
|
},
|
|
2622
2622
|
children: [
|
|
2623
2623
|
/* @__PURE__ */ i(
|
|
@@ -2626,7 +2626,7 @@ const Ot = {
|
|
|
2626
2626
|
style: {
|
|
2627
2627
|
fontSize: 13,
|
|
2628
2628
|
fontWeight: 400,
|
|
2629
|
-
color:
|
|
2629
|
+
color: G.quoteText,
|
|
2630
2630
|
lineHeight: 1.5,
|
|
2631
2631
|
fontStyle: "italic",
|
|
2632
2632
|
wordBreak: "break-word"
|
|
@@ -2654,43 +2654,43 @@ const Ot = {
|
|
|
2654
2654
|
style: {
|
|
2655
2655
|
fontSize: 12,
|
|
2656
2656
|
fontWeight: 500,
|
|
2657
|
-
color:
|
|
2657
|
+
color: G.muted,
|
|
2658
2658
|
textTransform: "capitalize"
|
|
2659
2659
|
},
|
|
2660
2660
|
children: e.actor
|
|
2661
2661
|
}
|
|
2662
2662
|
),
|
|
2663
|
-
f && /* @__PURE__ */ i(
|
|
2663
|
+
f && /* @__PURE__ */ i(Le, { children: [
|
|
2664
2664
|
/* @__PURE__ */ t(
|
|
2665
|
-
|
|
2665
|
+
Vt,
|
|
2666
2666
|
{
|
|
2667
2667
|
size: 24,
|
|
2668
2668
|
title: b ? "Pause" : "Play evidence",
|
|
2669
2669
|
onClick: () => n == null ? void 0 : n({ start_ms: l, end_ms: d }),
|
|
2670
2670
|
children: b ? /* @__PURE__ */ t(
|
|
2671
|
-
|
|
2671
|
+
ln,
|
|
2672
2672
|
{
|
|
2673
2673
|
size: 16,
|
|
2674
|
-
color:
|
|
2674
|
+
color: G.strong,
|
|
2675
2675
|
strokeWidth: 1.25
|
|
2676
2676
|
}
|
|
2677
2677
|
) : /* @__PURE__ */ t(
|
|
2678
|
-
|
|
2678
|
+
on,
|
|
2679
2679
|
{
|
|
2680
2680
|
size: 16,
|
|
2681
|
-
color:
|
|
2681
|
+
color: G.muted,
|
|
2682
2682
|
strokeWidth: 1.25
|
|
2683
2683
|
}
|
|
2684
2684
|
)
|
|
2685
2685
|
}
|
|
2686
2686
|
),
|
|
2687
2687
|
/* @__PURE__ */ t(
|
|
2688
|
-
|
|
2688
|
+
Vt,
|
|
2689
2689
|
{
|
|
2690
2690
|
size: 24,
|
|
2691
2691
|
title: "Show in transcript",
|
|
2692
2692
|
onClick: () => r == null ? void 0 : r(l),
|
|
2693
|
-
children: /* @__PURE__ */ t(
|
|
2693
|
+
children: /* @__PURE__ */ t(rn, { size: 16, color: G.muted, strokeWidth: 1.5 })
|
|
2694
2694
|
}
|
|
2695
2695
|
),
|
|
2696
2696
|
/* @__PURE__ */ t(
|
|
@@ -2699,11 +2699,11 @@ const Ot = {
|
|
|
2699
2699
|
style: {
|
|
2700
2700
|
fontSize: 12,
|
|
2701
2701
|
fontWeight: 400,
|
|
2702
|
-
color:
|
|
2702
|
+
color: G.muted,
|
|
2703
2703
|
lineHeight: 1.2,
|
|
2704
2704
|
whiteSpace: "nowrap"
|
|
2705
2705
|
},
|
|
2706
|
-
children:
|
|
2706
|
+
children: Oi(l)
|
|
2707
2707
|
}
|
|
2708
2708
|
)
|
|
2709
2709
|
] })
|
|
@@ -2713,7 +2713,7 @@ const Ot = {
|
|
|
2713
2713
|
]
|
|
2714
2714
|
}
|
|
2715
2715
|
);
|
|
2716
|
-
},
|
|
2716
|
+
}, qi = ({
|
|
2717
2717
|
signal: e,
|
|
2718
2718
|
onPlayEvidence: n,
|
|
2719
2719
|
onShowInTranscript: r,
|
|
@@ -2741,7 +2741,7 @@ const Ot = {
|
|
|
2741
2741
|
},
|
|
2742
2742
|
children: [
|
|
2743
2743
|
/* @__PURE__ */ t(
|
|
2744
|
-
|
|
2744
|
+
Ki,
|
|
2745
2745
|
{
|
|
2746
2746
|
label: e.impact_label,
|
|
2747
2747
|
direction: e.impact_direction
|
|
@@ -2762,11 +2762,11 @@ const Ot = {
|
|
|
2762
2762
|
cursor: "pointer",
|
|
2763
2763
|
fontSize: 12,
|
|
2764
2764
|
fontWeight: 500,
|
|
2765
|
-
color:
|
|
2765
|
+
color: G.muted,
|
|
2766
2766
|
fontFamily: "inherit"
|
|
2767
2767
|
},
|
|
2768
2768
|
children: [
|
|
2769
|
-
f ? /* @__PURE__ */ t(
|
|
2769
|
+
f ? /* @__PURE__ */ t(je, { size: 14, color: G.muted, strokeWidth: 1.5 }) : /* @__PURE__ */ t(dn, { size: 14, color: G.muted, strokeWidth: 1.5 }),
|
|
2770
2770
|
l.length,
|
|
2771
2771
|
" ",
|
|
2772
2772
|
l.length === 1 ? "quote" : "quotes"
|
|
@@ -2786,7 +2786,7 @@ const Ot = {
|
|
|
2786
2786
|
paddingTop: 4
|
|
2787
2787
|
},
|
|
2788
2788
|
children: l.map((b, w) => /* @__PURE__ */ t(
|
|
2789
|
-
|
|
2789
|
+
Vi,
|
|
2790
2790
|
{
|
|
2791
2791
|
evidence: b,
|
|
2792
2792
|
onPlayEvidence: n,
|
|
@@ -2801,7 +2801,7 @@ const Ot = {
|
|
|
2801
2801
|
]
|
|
2802
2802
|
}
|
|
2803
2803
|
);
|
|
2804
|
-
},
|
|
2804
|
+
}, Qi = ({
|
|
2805
2805
|
item: e,
|
|
2806
2806
|
isLast: n,
|
|
2807
2807
|
onPlayEvidence: r,
|
|
@@ -2818,7 +2818,7 @@ const Ot = {
|
|
|
2818
2818
|
alignItems: "flex-start",
|
|
2819
2819
|
gap: 12,
|
|
2820
2820
|
padding: "16px 16px",
|
|
2821
|
-
borderBottom: n ? "none" : `1px solid ${
|
|
2821
|
+
borderBottom: n ? "none" : `1px solid ${G.border}`
|
|
2822
2822
|
},
|
|
2823
2823
|
children: [
|
|
2824
2824
|
/* @__PURE__ */ t(
|
|
@@ -2833,7 +2833,7 @@ const Ot = {
|
|
|
2833
2833
|
flexShrink: 0,
|
|
2834
2834
|
marginTop: 2
|
|
2835
2835
|
},
|
|
2836
|
-
children: /* @__PURE__ */ t(
|
|
2836
|
+
children: /* @__PURE__ */ t(Yi, { icon: e.icon, tone: e.tone })
|
|
2837
2837
|
}
|
|
2838
2838
|
),
|
|
2839
2839
|
/* @__PURE__ */ i(
|
|
@@ -2851,10 +2851,10 @@ const Ot = {
|
|
|
2851
2851
|
"span",
|
|
2852
2852
|
{
|
|
2853
2853
|
style: {
|
|
2854
|
-
fontFamily:
|
|
2854
|
+
fontFamily: $i,
|
|
2855
2855
|
fontSize: 14,
|
|
2856
2856
|
fontWeight: 400,
|
|
2857
|
-
color:
|
|
2857
|
+
color: G.strong,
|
|
2858
2858
|
lineHeight: "normal",
|
|
2859
2859
|
wordBreak: "break-word"
|
|
2860
2860
|
},
|
|
@@ -2870,7 +2870,7 @@ const Ot = {
|
|
|
2870
2870
|
gap: 12
|
|
2871
2871
|
},
|
|
2872
2872
|
children: d.map((f, p) => /* @__PURE__ */ t(
|
|
2873
|
-
|
|
2873
|
+
qi,
|
|
2874
2874
|
{
|
|
2875
2875
|
signal: f,
|
|
2876
2876
|
onPlayEvidence: r,
|
|
@@ -2888,7 +2888,7 @@ const Ot = {
|
|
|
2888
2888
|
]
|
|
2889
2889
|
}
|
|
2890
2890
|
);
|
|
2891
|
-
},
|
|
2891
|
+
}, Zi = ({ summary: e }) => {
|
|
2892
2892
|
if (!e || typeof e != "object")
|
|
2893
2893
|
return null;
|
|
2894
2894
|
const n = Number(e.focus_count) || 0, r = Number(e.opportunity_count) || 0, o = Number(e.excellence_count) || 0;
|
|
@@ -2899,22 +2899,22 @@ const Ot = {
|
|
|
2899
2899
|
key: "excellence",
|
|
2900
2900
|
label: "Excellence",
|
|
2901
2901
|
count: o,
|
|
2902
|
-
Icon:
|
|
2903
|
-
color:
|
|
2902
|
+
Icon: Pe,
|
|
2903
|
+
color: G.strong
|
|
2904
2904
|
},
|
|
2905
2905
|
{
|
|
2906
2906
|
key: "opportunity",
|
|
2907
2907
|
label: "Opportunity",
|
|
2908
2908
|
count: r,
|
|
2909
|
-
Icon:
|
|
2910
|
-
color:
|
|
2909
|
+
Icon: Ne,
|
|
2910
|
+
color: G.strong
|
|
2911
2911
|
},
|
|
2912
2912
|
{
|
|
2913
2913
|
key: "focus",
|
|
2914
2914
|
label: "Focus",
|
|
2915
2915
|
count: n,
|
|
2916
|
-
Icon:
|
|
2917
|
-
color:
|
|
2916
|
+
Icon: sn,
|
|
2917
|
+
color: G.strong
|
|
2918
2918
|
}
|
|
2919
2919
|
].filter((l) => l.count > 0);
|
|
2920
2920
|
return /* @__PURE__ */ t(
|
|
@@ -2925,7 +2925,7 @@ const Ot = {
|
|
|
2925
2925
|
alignItems: "center",
|
|
2926
2926
|
gap: 16,
|
|
2927
2927
|
padding: "8px 16px",
|
|
2928
|
-
background:
|
|
2928
|
+
background: G.surfaceHover,
|
|
2929
2929
|
borderRadius: 8
|
|
2930
2930
|
},
|
|
2931
2931
|
children: a.map(({ key: l, label: d, count: f, Icon: p, color: b }) => /* @__PURE__ */ i(
|
|
@@ -2940,7 +2940,7 @@ const Ot = {
|
|
|
2940
2940
|
style: {
|
|
2941
2941
|
fontSize: 13,
|
|
2942
2942
|
fontWeight: 600,
|
|
2943
|
-
color:
|
|
2943
|
+
color: G.strong,
|
|
2944
2944
|
lineHeight: 1.2
|
|
2945
2945
|
},
|
|
2946
2946
|
children: f
|
|
@@ -2952,7 +2952,7 @@ const Ot = {
|
|
|
2952
2952
|
style: {
|
|
2953
2953
|
fontSize: 13,
|
|
2954
2954
|
fontWeight: 400,
|
|
2955
|
-
color:
|
|
2955
|
+
color: G.muted,
|
|
2956
2956
|
lineHeight: 1.2
|
|
2957
2957
|
},
|
|
2958
2958
|
children: d
|
|
@@ -2964,7 +2964,7 @@ const Ot = {
|
|
|
2964
2964
|
))
|
|
2965
2965
|
}
|
|
2966
2966
|
);
|
|
2967
|
-
},
|
|
2967
|
+
}, Xi = 5, Ji = ({
|
|
2968
2968
|
items: e = [],
|
|
2969
2969
|
summary: n,
|
|
2970
2970
|
guidanceCount: r,
|
|
@@ -2974,7 +2974,7 @@ const Ot = {
|
|
|
2974
2974
|
timelinePlaying: d = !1,
|
|
2975
2975
|
currentTimeSeconds: f = 0
|
|
2976
2976
|
}) => {
|
|
2977
|
-
const p = Array.isArray(e) ? e.filter(Boolean).slice(0,
|
|
2977
|
+
const p = Array.isArray(e) ? e.filter(Boolean).slice(0, Xi) : [], b = r ?? p.length;
|
|
2978
2978
|
return /* @__PURE__ */ i(
|
|
2979
2979
|
"div",
|
|
2980
2980
|
{
|
|
@@ -3003,17 +3003,17 @@ const Ot = {
|
|
|
3003
3003
|
width: 34,
|
|
3004
3004
|
height: 34,
|
|
3005
3005
|
borderRadius: 9999,
|
|
3006
|
-
background:
|
|
3006
|
+
background: G.surfaceHover,
|
|
3007
3007
|
display: "flex",
|
|
3008
3008
|
alignItems: "center",
|
|
3009
3009
|
justifyContent: "center",
|
|
3010
3010
|
flexShrink: 0
|
|
3011
3011
|
},
|
|
3012
3012
|
children: /* @__PURE__ */ t(
|
|
3013
|
-
|
|
3013
|
+
en,
|
|
3014
3014
|
{
|
|
3015
3015
|
style: { width: 20, height: 20, flexShrink: 0 },
|
|
3016
|
-
color:
|
|
3016
|
+
color: G.strong,
|
|
3017
3017
|
strokeWidth: 1.5
|
|
3018
3018
|
}
|
|
3019
3019
|
)
|
|
@@ -3026,7 +3026,7 @@ const Ot = {
|
|
|
3026
3026
|
flex: 1,
|
|
3027
3027
|
fontSize: 16,
|
|
3028
3028
|
fontWeight: 500,
|
|
3029
|
-
color:
|
|
3029
|
+
color: G.strong,
|
|
3030
3030
|
lineHeight: 1.2
|
|
3031
3031
|
},
|
|
3032
3032
|
children: "Guidance"
|
|
@@ -3038,7 +3038,7 @@ const Ot = {
|
|
|
3038
3038
|
style: {
|
|
3039
3039
|
fontSize: 14,
|
|
3040
3040
|
fontWeight: 500,
|
|
3041
|
-
color:
|
|
3041
|
+
color: G.strong,
|
|
3042
3042
|
lineHeight: 1.5,
|
|
3043
3043
|
whiteSpace: "nowrap"
|
|
3044
3044
|
},
|
|
@@ -3052,18 +3052,18 @@ const Ot = {
|
|
|
3052
3052
|
]
|
|
3053
3053
|
}
|
|
3054
3054
|
),
|
|
3055
|
-
/* @__PURE__ */ t(
|
|
3056
|
-
p.map((w,
|
|
3057
|
-
|
|
3055
|
+
/* @__PURE__ */ t(Zi, { summary: n }),
|
|
3056
|
+
p.map((w, H) => /* @__PURE__ */ t(
|
|
3057
|
+
Qi,
|
|
3058
3058
|
{
|
|
3059
3059
|
item: w,
|
|
3060
|
-
isLast:
|
|
3060
|
+
isLast: H === p.length - 1,
|
|
3061
3061
|
onPlayEvidence: a,
|
|
3062
3062
|
onShowInTranscript: l,
|
|
3063
3063
|
timelinePlaying: d,
|
|
3064
3064
|
currentTimeSeconds: f
|
|
3065
3065
|
},
|
|
3066
|
-
|
|
3066
|
+
H
|
|
3067
3067
|
))
|
|
3068
3068
|
]
|
|
3069
3069
|
}
|
|
@@ -3074,32 +3074,32 @@ const Ot = {
|
|
|
3074
3074
|
border: "var(--Grey-absent, #D9D9D9)",
|
|
3075
3075
|
surface: "var(--Grey-White, #FFF)",
|
|
3076
3076
|
surfaceHover: "var(--surface-hover, #F3F7F7)"
|
|
3077
|
-
},
|
|
3078
|
-
{ key: "lookup_hold", label: "Lookup", Icon:
|
|
3079
|
-
{ key: "formal_hold", label: "Hold", Icon:
|
|
3080
|
-
{ key: "extended_hold", label: "Extended", Icon:
|
|
3081
|
-
{ key: "transfer_hold", label: "Transfer", Icon:
|
|
3082
|
-
{ key: "probable_hold", label: "Possible", Icon:
|
|
3083
|
-
{ key: "dead_air", label: "Dead air", Icon:
|
|
3084
|
-
],
|
|
3077
|
+
}, Re = "var(--font-sans, 'Averta', ui-sans-serif, system-ui, sans-serif)", Ui = [
|
|
3078
|
+
{ key: "lookup_hold", label: "Lookup", Icon: ai },
|
|
3079
|
+
{ key: "formal_hold", label: "Hold", Icon: Rt },
|
|
3080
|
+
{ key: "extended_hold", label: "Extended", Icon: Rt },
|
|
3081
|
+
{ key: "transfer_hold", label: "Transfer", Icon: si },
|
|
3082
|
+
{ key: "probable_hold", label: "Possible", Icon: di },
|
|
3083
|
+
{ key: "dead_air", label: "Dead air", Icon: ci }
|
|
3084
|
+
], er = (e) => {
|
|
3085
3085
|
if (e == null || Number.isNaN(e))
|
|
3086
3086
|
return "—";
|
|
3087
3087
|
const n = Number(e);
|
|
3088
3088
|
return Number.isFinite(n) ? n >= 1e3 ? `${(n / 1e3).toFixed(1)}s` : `${Math.round(n)}ms` : "—";
|
|
3089
|
-
},
|
|
3089
|
+
}, tr = (e) => {
|
|
3090
3090
|
if (e == null || Number.isNaN(e))
|
|
3091
3091
|
return null;
|
|
3092
3092
|
const n = Number(e);
|
|
3093
3093
|
return Number.isFinite(n) ? `${(n * 100).toFixed(1)}%` : null;
|
|
3094
|
-
},
|
|
3094
|
+
}, ot = (e) => {
|
|
3095
3095
|
if (e == null || Number.isNaN(e))
|
|
3096
3096
|
return null;
|
|
3097
3097
|
const n = Number(e);
|
|
3098
3098
|
return Number.isFinite(n) ? n.toLocaleString() : null;
|
|
3099
|
-
},
|
|
3099
|
+
}, nr = ({ holdTypeCounts: e }) => {
|
|
3100
3100
|
if (!e || typeof e != "object")
|
|
3101
3101
|
return null;
|
|
3102
|
-
const n =
|
|
3102
|
+
const n = Ui.map((r) => ({
|
|
3103
3103
|
...r,
|
|
3104
3104
|
count: Number(e[r.key]) || 0
|
|
3105
3105
|
})).filter((r) => r.count > 0);
|
|
@@ -3125,7 +3125,7 @@ const Ot = {
|
|
|
3125
3125
|
"span",
|
|
3126
3126
|
{
|
|
3127
3127
|
style: {
|
|
3128
|
-
fontFamily:
|
|
3128
|
+
fontFamily: Re,
|
|
3129
3129
|
fontSize: 13,
|
|
3130
3130
|
fontWeight: 600,
|
|
3131
3131
|
color: U.strong,
|
|
@@ -3138,7 +3138,7 @@ const Ot = {
|
|
|
3138
3138
|
"span",
|
|
3139
3139
|
{
|
|
3140
3140
|
style: {
|
|
3141
|
-
fontFamily:
|
|
3141
|
+
fontFamily: Re,
|
|
3142
3142
|
fontSize: 13,
|
|
3143
3143
|
fontWeight: 400,
|
|
3144
3144
|
color: U.muted,
|
|
@@ -3153,11 +3153,11 @@ const Ot = {
|
|
|
3153
3153
|
))
|
|
3154
3154
|
}
|
|
3155
3155
|
);
|
|
3156
|
-
},
|
|
3157
|
-
const n =
|
|
3156
|
+
}, ir = ({ summary: e }) => {
|
|
3157
|
+
const n = ot(e == null ? void 0 : e.stall_count);
|
|
3158
3158
|
if (!n)
|
|
3159
3159
|
return null;
|
|
3160
|
-
const r =
|
|
3160
|
+
const r = tr(e == null ? void 0 : e.stall_rate), o = ot(e == null ? void 0 : e.stall_filler_count), a = ot(e == null ? void 0 : e.stall_buying_time_count), l = [];
|
|
3161
3161
|
return o && l.push(`filler ${o}`), a && l.push(`buying time ${a}`), /* @__PURE__ */ i(
|
|
3162
3162
|
"div",
|
|
3163
3163
|
{
|
|
@@ -3166,7 +3166,7 @@ const Ot = {
|
|
|
3166
3166
|
alignItems: "center",
|
|
3167
3167
|
gap: 8,
|
|
3168
3168
|
flexWrap: "wrap",
|
|
3169
|
-
fontFamily:
|
|
3169
|
+
fontFamily: Re,
|
|
3170
3170
|
fontSize: 13,
|
|
3171
3171
|
lineHeight: 1.4
|
|
3172
3172
|
},
|
|
@@ -3183,7 +3183,7 @@ const Ot = {
|
|
|
3183
3183
|
]
|
|
3184
3184
|
}
|
|
3185
3185
|
);
|
|
3186
|
-
},
|
|
3186
|
+
}, qt = ({ label: e, percentiles: n }) => {
|
|
3187
3187
|
if (!n || typeof n != "object")
|
|
3188
3188
|
return null;
|
|
3189
3189
|
const r = [
|
|
@@ -3200,7 +3200,7 @@ const Ot = {
|
|
|
3200
3200
|
alignItems: "baseline",
|
|
3201
3201
|
gap: 12,
|
|
3202
3202
|
flexWrap: "wrap",
|
|
3203
|
-
fontFamily:
|
|
3203
|
+
fontFamily: Re,
|
|
3204
3204
|
fontSize: 13,
|
|
3205
3205
|
lineHeight: 1.4
|
|
3206
3206
|
},
|
|
@@ -3219,12 +3219,12 @@ const Ot = {
|
|
|
3219
3219
|
r.map((o) => /* @__PURE__ */ i("span", { style: { color: U.muted }, children: [
|
|
3220
3220
|
/* @__PURE__ */ t("span", { style: { fontWeight: 500, color: U.strong }, children: o.label }),
|
|
3221
3221
|
" ",
|
|
3222
|
-
|
|
3222
|
+
er(o.value)
|
|
3223
3223
|
] }, o.key))
|
|
3224
3224
|
]
|
|
3225
3225
|
}
|
|
3226
3226
|
);
|
|
3227
|
-
},
|
|
3227
|
+
}, rr = ({ summary: e }) => {
|
|
3228
3228
|
if (!e || typeof e != "object")
|
|
3229
3229
|
return null;
|
|
3230
3230
|
const n = !!e.hold_type_counts && Object.values(e.hold_type_counts).some((d) => Number(d) > 0), r = (Number(e.stall_count) || 0) > 0, o = e.agent_response_percentiles_ms, a = e.customer_response_percentiles_ms, l = o && Object.values(o).some((d) => d != null) || a && Object.values(a).some((d) => d != null);
|
|
@@ -3263,7 +3263,7 @@ const Ot = {
|
|
|
3263
3263
|
justifyContent: "center",
|
|
3264
3264
|
flexShrink: 0
|
|
3265
3265
|
},
|
|
3266
|
-
children: /* @__PURE__ */ t(
|
|
3266
|
+
children: /* @__PURE__ */ t(oi, { size: 20, color: U.strong, strokeWidth: 1.5 })
|
|
3267
3267
|
}
|
|
3268
3268
|
),
|
|
3269
3269
|
/* @__PURE__ */ t(
|
|
@@ -3284,7 +3284,7 @@ const Ot = {
|
|
|
3284
3284
|
]
|
|
3285
3285
|
}
|
|
3286
3286
|
),
|
|
3287
|
-
n && /* @__PURE__ */ t(
|
|
3287
|
+
n && /* @__PURE__ */ t(nr, { holdTypeCounts: e.hold_type_counts }),
|
|
3288
3288
|
(r || l) && /* @__PURE__ */ i(
|
|
3289
3289
|
"div",
|
|
3290
3290
|
{
|
|
@@ -3297,10 +3297,10 @@ const Ot = {
|
|
|
3297
3297
|
borderRadius: 8
|
|
3298
3298
|
},
|
|
3299
3299
|
children: [
|
|
3300
|
-
r && /* @__PURE__ */ t(
|
|
3301
|
-
l && /* @__PURE__ */ i(
|
|
3302
|
-
/* @__PURE__ */ t(
|
|
3303
|
-
/* @__PURE__ */ t(
|
|
3300
|
+
r && /* @__PURE__ */ t(ir, { summary: e }),
|
|
3301
|
+
l && /* @__PURE__ */ i(Le, { children: [
|
|
3302
|
+
/* @__PURE__ */ t(qt, { label: "Agent", percentiles: o }),
|
|
3303
|
+
/* @__PURE__ */ t(qt, { label: "Customer", percentiles: a })
|
|
3304
3304
|
] })
|
|
3305
3305
|
]
|
|
3306
3306
|
}
|
|
@@ -3316,7 +3316,7 @@ const Ot = {
|
|
|
3316
3316
|
// Section header icon — Figma uses the warm orange accent used for other
|
|
3317
3317
|
// section markers (clipboard, compass) across the interaction details.
|
|
3318
3318
|
iconAccent: "var(--rail-orange, #C98A5A)"
|
|
3319
|
-
},
|
|
3319
|
+
}, Ie = "var(--font-sans, 'Averta', ui-sans-serif, system-ui, sans-serif)", Qt = (e) => {
|
|
3320
3320
|
if (e == null)
|
|
3321
3321
|
return null;
|
|
3322
3322
|
if (typeof e == "string")
|
|
@@ -3326,12 +3326,12 @@ const Ot = {
|
|
|
3326
3326
|
name: n,
|
|
3327
3327
|
percent: e.percent != null ? e.percent : e.percentage != null ? e.percentage : null
|
|
3328
3328
|
} : null;
|
|
3329
|
-
},
|
|
3329
|
+
}, lr = (e) => {
|
|
3330
3330
|
if (e == null)
|
|
3331
3331
|
return null;
|
|
3332
3332
|
const n = Number(e);
|
|
3333
3333
|
return Number.isFinite(n) ? `${(Math.abs(n) <= 1 ? n * 100 : n).toFixed(1)} %` : null;
|
|
3334
|
-
},
|
|
3334
|
+
}, or = ({ name: e, percent: n }) => /* @__PURE__ */ i(
|
|
3335
3335
|
"div",
|
|
3336
3336
|
{
|
|
3337
3337
|
style: {
|
|
@@ -3349,7 +3349,7 @@ const Ot = {
|
|
|
3349
3349
|
style: {
|
|
3350
3350
|
flex: 1,
|
|
3351
3351
|
minWidth: 0,
|
|
3352
|
-
fontFamily:
|
|
3352
|
+
fontFamily: Ie,
|
|
3353
3353
|
fontSize: 13,
|
|
3354
3354
|
fontWeight: 400,
|
|
3355
3355
|
color: oe.strong,
|
|
@@ -3363,7 +3363,7 @@ const Ot = {
|
|
|
3363
3363
|
"span",
|
|
3364
3364
|
{
|
|
3365
3365
|
style: {
|
|
3366
|
-
fontFamily:
|
|
3366
|
+
fontFamily: Ie,
|
|
3367
3367
|
fontSize: 13,
|
|
3368
3368
|
fontWeight: 400,
|
|
3369
3369
|
color: oe.muted,
|
|
@@ -3371,12 +3371,12 @@ const Ot = {
|
|
|
3371
3371
|
whiteSpace: "nowrap",
|
|
3372
3372
|
flexShrink: 0
|
|
3373
3373
|
},
|
|
3374
|
-
children:
|
|
3374
|
+
children: lr(n)
|
|
3375
3375
|
}
|
|
3376
3376
|
)
|
|
3377
3377
|
]
|
|
3378
3378
|
}
|
|
3379
|
-
),
|
|
3379
|
+
), Zt = ({ title: e, items: n, initialVisibleCount: r }) => {
|
|
3380
3380
|
const [o, a] = I(!1);
|
|
3381
3381
|
if (!n.length)
|
|
3382
3382
|
return null;
|
|
@@ -3409,7 +3409,7 @@ const Ot = {
|
|
|
3409
3409
|
style: {
|
|
3410
3410
|
flex: 1,
|
|
3411
3411
|
minWidth: 0,
|
|
3412
|
-
fontFamily:
|
|
3412
|
+
fontFamily: Ie,
|
|
3413
3413
|
fontSize: 15,
|
|
3414
3414
|
fontWeight: 600,
|
|
3415
3415
|
color: oe.strong,
|
|
@@ -3430,7 +3430,7 @@ const Ot = {
|
|
|
3430
3430
|
alignItems: "flex-start",
|
|
3431
3431
|
width: "100%"
|
|
3432
3432
|
},
|
|
3433
|
-
children: d.map((f, p) => /* @__PURE__ */ t(
|
|
3433
|
+
children: d.map((f, p) => /* @__PURE__ */ t(or, { name: f.name, percent: f.percent }, p))
|
|
3434
3434
|
}
|
|
3435
3435
|
),
|
|
3436
3436
|
l > 0 && /* @__PURE__ */ i(
|
|
@@ -3447,7 +3447,7 @@ const Ot = {
|
|
|
3447
3447
|
background: "transparent",
|
|
3448
3448
|
border: "none",
|
|
3449
3449
|
cursor: "pointer",
|
|
3450
|
-
fontFamily:
|
|
3450
|
+
fontFamily: Ie,
|
|
3451
3451
|
fontSize: 13,
|
|
3452
3452
|
fontWeight: 600,
|
|
3453
3453
|
color: oe.strong,
|
|
@@ -3456,14 +3456,14 @@ const Ot = {
|
|
|
3456
3456
|
},
|
|
3457
3457
|
children: [
|
|
3458
3458
|
o ? "Show Less" : `${l} More`,
|
|
3459
|
-
o ? /* @__PURE__ */ t(
|
|
3459
|
+
o ? /* @__PURE__ */ t(at, { size: 16, color: oe.strong, strokeWidth: 1.75 }) : /* @__PURE__ */ t(je, { size: 16, color: oe.strong, strokeWidth: 1.75 })
|
|
3460
3460
|
]
|
|
3461
3461
|
}
|
|
3462
3462
|
)
|
|
3463
3463
|
]
|
|
3464
3464
|
}
|
|
3465
3465
|
);
|
|
3466
|
-
},
|
|
3466
|
+
}, ar = ({
|
|
3467
3467
|
products: e = [],
|
|
3468
3468
|
services: n = [],
|
|
3469
3469
|
title: r = "Products & Services",
|
|
@@ -3471,7 +3471,7 @@ const Ot = {
|
|
|
3471
3471
|
servicesTitle: a = "Services Discussed",
|
|
3472
3472
|
initialVisibleCount: l = 4
|
|
3473
3473
|
}) => {
|
|
3474
|
-
const d = (e || []).map(
|
|
3474
|
+
const d = (e || []).map(Qt).filter(Boolean), f = (n || []).map(Qt).filter(Boolean);
|
|
3475
3475
|
return !d.length && !f.length ? null : /* @__PURE__ */ i(
|
|
3476
3476
|
"div",
|
|
3477
3477
|
{
|
|
@@ -3506,12 +3506,12 @@ const Ot = {
|
|
|
3506
3506
|
minWidth: 0
|
|
3507
3507
|
},
|
|
3508
3508
|
children: [
|
|
3509
|
-
/* @__PURE__ */ t(
|
|
3509
|
+
/* @__PURE__ */ t(fi, { size: 24, color: oe.iconAccent, strokeWidth: 1.5 }),
|
|
3510
3510
|
/* @__PURE__ */ t(
|
|
3511
3511
|
"span",
|
|
3512
3512
|
{
|
|
3513
3513
|
style: {
|
|
3514
|
-
fontFamily:
|
|
3514
|
+
fontFamily: Ie,
|
|
3515
3515
|
fontSize: 16,
|
|
3516
3516
|
fontWeight: 600,
|
|
3517
3517
|
color: oe.strong,
|
|
@@ -3539,7 +3539,7 @@ const Ot = {
|
|
|
3539
3539
|
},
|
|
3540
3540
|
children: [
|
|
3541
3541
|
/* @__PURE__ */ t(
|
|
3542
|
-
|
|
3542
|
+
Zt,
|
|
3543
3543
|
{
|
|
3544
3544
|
title: o,
|
|
3545
3545
|
items: d,
|
|
@@ -3547,7 +3547,7 @@ const Ot = {
|
|
|
3547
3547
|
}
|
|
3548
3548
|
),
|
|
3549
3549
|
/* @__PURE__ */ t(
|
|
3550
|
-
|
|
3550
|
+
Zt,
|
|
3551
3551
|
{
|
|
3552
3552
|
title: a,
|
|
3553
3553
|
items: f,
|
|
@@ -3603,26 +3603,26 @@ const Ot = {
|
|
|
3603
3603
|
]
|
|
3604
3604
|
}
|
|
3605
3605
|
) : n;
|
|
3606
|
-
},
|
|
3606
|
+
}, Xt = [
|
|
3607
3607
|
{ key: "overview", label: "Overview" },
|
|
3608
3608
|
{ key: "coaching", label: "Coaching Summary" },
|
|
3609
3609
|
{ key: "signals", label: "Signals & Recording" },
|
|
3610
3610
|
{ key: "comments", label: "Feedback" }
|
|
3611
3611
|
];
|
|
3612
|
-
function
|
|
3612
|
+
function sr(e) {
|
|
3613
3613
|
return /\bagent\b/.test(String(e ?? "").toLowerCase());
|
|
3614
3614
|
}
|
|
3615
|
-
function
|
|
3615
|
+
function dr(e) {
|
|
3616
3616
|
return /(admin|superadmin|administrator)/.test(String(e ?? "").toLowerCase());
|
|
3617
3617
|
}
|
|
3618
|
-
function
|
|
3618
|
+
function cr(e, n) {
|
|
3619
3619
|
const r = (e == null ? void 0 : e.direction) ?? (e == null ? void 0 : e.interaction_direction) ?? (e == null ? void 0 : e.call_direction) ?? n;
|
|
3620
3620
|
if (r == null || r === "")
|
|
3621
3621
|
return null;
|
|
3622
3622
|
const o = String(r).toLowerCase().trim();
|
|
3623
3623
|
return o === "outbound" || o.startsWith("outbound") ? "outbound" : o === "inbound" || o.startsWith("inbound") ? "inbound" : null;
|
|
3624
3624
|
}
|
|
3625
|
-
const
|
|
3625
|
+
const br = ({
|
|
3626
3626
|
title: e = "Wheel Stud Replacement Enquiry",
|
|
3627
3627
|
onBack: n,
|
|
3628
3628
|
// Data props — all optional with defaults for demo
|
|
@@ -3638,7 +3638,7 @@ const xr = ({
|
|
|
3638
3638
|
timelinePlaying: p,
|
|
3639
3639
|
playbackRate: b,
|
|
3640
3640
|
timelineSegments: w,
|
|
3641
|
-
onSeek:
|
|
3641
|
+
onSeek: H,
|
|
3642
3642
|
onTogglePlay: g,
|
|
3643
3643
|
onSeekBack: k,
|
|
3644
3644
|
onSeekForward: S,
|
|
@@ -3670,112 +3670,116 @@ const xr = ({
|
|
|
3670
3670
|
// Compass score props
|
|
3671
3671
|
compassScore: xe,
|
|
3672
3672
|
// gauge meter value — compass_score, range 0.5-5
|
|
3673
|
-
compassMaxScore:
|
|
3674
|
-
|
|
3673
|
+
compassMaxScore: pe = 5,
|
|
3674
|
+
// Compass score as a backend-computed percentage (0–100), shown in the
|
|
3675
|
+
// bracket next to the score, e.g. "3.5 (62.5%)". Prefer this over any local
|
|
3676
|
+
// score→percent conversion; null hides the bracket.
|
|
3677
|
+
compassScorePct: de = null,
|
|
3678
|
+
predictedCsat: ge,
|
|
3675
3679
|
// predicted objective number (e.g. compass_score) — shown as "03" top-right
|
|
3676
|
-
predictedLabel:
|
|
3677
|
-
compassLegends:
|
|
3680
|
+
predictedLabel: c = "Predicted Objective",
|
|
3681
|
+
compassLegends: Q,
|
|
3678
3682
|
// Customer session history drawer
|
|
3679
|
-
customerSessions:
|
|
3680
|
-
customerSessionCount:
|
|
3681
|
-
onSessionClick:
|
|
3682
|
-
onViewAllSessions:
|
|
3683
|
+
customerSessions: Oe,
|
|
3684
|
+
customerSessionCount: h,
|
|
3685
|
+
onSessionClick: R,
|
|
3686
|
+
onViewAllSessions: he,
|
|
3683
3687
|
// Footer navigation
|
|
3684
|
-
prevSessionDesc:
|
|
3685
|
-
prevSessionDisabled:
|
|
3688
|
+
prevSessionDesc: st,
|
|
3689
|
+
prevSessionDisabled: ce = !1,
|
|
3686
3690
|
nextSessionDesc: dt,
|
|
3687
|
-
nextSessionDisabled:
|
|
3688
|
-
onPreviousSession:
|
|
3689
|
-
onNextSession:
|
|
3691
|
+
nextSessionDisabled: fe = !1,
|
|
3692
|
+
onPreviousSession: De,
|
|
3693
|
+
onNextSession: ze,
|
|
3690
3694
|
// Comments
|
|
3691
3695
|
comments: ct = [],
|
|
3692
|
-
guidance:
|
|
3696
|
+
guidance: hn = [],
|
|
3693
3697
|
// Optional count summary for the Guidance section: { focus_count,
|
|
3694
3698
|
// opportunity_count, excellence_count } — drives the small count bar above
|
|
3695
3699
|
// the items.
|
|
3696
|
-
guidanceSummary:
|
|
3700
|
+
guidanceSummary: un,
|
|
3697
3701
|
// Optional `components.talk_patterns.summary` from the API — surfaces
|
|
3698
3702
|
// hold_type_counts, stall metrics, and response-time percentiles. Renders
|
|
3699
3703
|
// a "Talk Patterns" card next to the Guidance section. When absent the
|
|
3700
3704
|
// card is suppressed entirely.
|
|
3701
|
-
talkPatterns:
|
|
3705
|
+
talkPatterns: yn,
|
|
3702
3706
|
// Optional "PRODUCTS & SERVICES" section. Accepts the resolved lists from
|
|
3703
3707
|
// the API ({ products: [...], services: [...] }, or two separate arrays).
|
|
3704
3708
|
// Items may be raw strings or { name, percent } objects. When both lists
|
|
3705
3709
|
// are empty the entire section is suppressed.
|
|
3706
3710
|
productsServices: X,
|
|
3707
|
-
productsDiscussed:
|
|
3708
|
-
servicesDiscussed:
|
|
3711
|
+
productsDiscussed: Ye,
|
|
3712
|
+
servicesDiscussed: Ke,
|
|
3709
3713
|
currentUser: K,
|
|
3710
|
-
onSendComment:
|
|
3711
|
-
onSendReply:
|
|
3712
|
-
onReply:
|
|
3713
|
-
onEdit:
|
|
3714
|
-
onEditInteraction:
|
|
3715
|
-
onDelete:
|
|
3716
|
-
onMenuClick:
|
|
3717
|
-
onMarkResolved:
|
|
3718
|
-
commentsResolved:
|
|
3714
|
+
onSendComment: mn,
|
|
3715
|
+
onSendReply: vn,
|
|
3716
|
+
onReply: xn,
|
|
3717
|
+
onEdit: bn,
|
|
3718
|
+
onEditInteraction: wn,
|
|
3719
|
+
onDelete: Sn,
|
|
3720
|
+
onMenuClick: kn,
|
|
3721
|
+
onMarkResolved: Cn,
|
|
3722
|
+
commentsResolved: Fn
|
|
3719
3723
|
}) => {
|
|
3720
|
-
var
|
|
3721
|
-
const [
|
|
3722
|
-
overview:
|
|
3724
|
+
var Mt;
|
|
3725
|
+
const [Ve, Me] = I("overview"), [Wn, ft] = I(/* @__PURE__ */ new Set()), [In, Ge] = I(!1), [Dn, pt] = I(null), [gt, ht] = I(!1), [ut, zn] = I(0), [yt, Mn] = I(!1), _ = ve("(max-width: 640px)"), ue = $(null), qe = $(null), mt = $(null), He = $(null), vt = $(null), xt = $(null), bt = {
|
|
3726
|
+
overview: qe,
|
|
3723
3727
|
coaching: mt,
|
|
3724
3728
|
signals: He,
|
|
3725
3729
|
products: vt,
|
|
3726
3730
|
comments: xt
|
|
3727
|
-
},
|
|
3728
|
-
const s = (X == null ? void 0 : X.products) ??
|
|
3731
|
+
}, ke = $(null), Qe = $(!1), wt = We(() => {
|
|
3732
|
+
const s = (X == null ? void 0 : X.products) ?? Ye ?? [], v = (X == null ? void 0 : X.services) ?? Ke ?? [];
|
|
3729
3733
|
return s.length > 0 || v.length > 0;
|
|
3730
|
-
}, [X,
|
|
3734
|
+
}, [X, Ye, Ke]), Ze = We(() => {
|
|
3731
3735
|
if (!wt)
|
|
3732
|
-
return
|
|
3736
|
+
return Xt;
|
|
3733
3737
|
const s = [];
|
|
3734
|
-
for (const v of
|
|
3738
|
+
for (const v of Xt)
|
|
3735
3739
|
v.key === "comments" && s.push({ key: "products", label: "Products & Services" }), s.push(v);
|
|
3736
3740
|
return s;
|
|
3737
3741
|
}, [wt]);
|
|
3738
|
-
|
|
3739
|
-
const s =
|
|
3742
|
+
Be(() => {
|
|
3743
|
+
const s = ke.current;
|
|
3740
3744
|
if (!s)
|
|
3741
3745
|
return;
|
|
3742
|
-
const v =
|
|
3746
|
+
const v = Ze.map((j) => j.key), x = v.map((j) => bt[j]), M = ((j) => {
|
|
3743
3747
|
let ie = j.parentElement;
|
|
3744
3748
|
for (; ie; ) {
|
|
3745
|
-
const { overflow:
|
|
3746
|
-
if (/(auto|scroll)/.test(
|
|
3749
|
+
const { overflow: we, overflowY: ae } = window.getComputedStyle(ie);
|
|
3750
|
+
if (/(auto|scroll)/.test(we + ae))
|
|
3747
3751
|
return ie;
|
|
3748
3752
|
ie = ie.parentElement;
|
|
3749
3753
|
}
|
|
3750
3754
|
return null;
|
|
3751
3755
|
})(s), P = () => {
|
|
3752
|
-
var
|
|
3753
|
-
if (
|
|
3756
|
+
var we;
|
|
3757
|
+
if (Qe.current)
|
|
3754
3758
|
return;
|
|
3755
3759
|
let j = v[0];
|
|
3756
3760
|
for (let ae = x.length - 1; ae >= 0; ae--) {
|
|
3757
|
-
const
|
|
3758
|
-
if (!
|
|
3761
|
+
const nt = x[ae].current;
|
|
3762
|
+
if (!nt)
|
|
3759
3763
|
continue;
|
|
3760
|
-
if (
|
|
3764
|
+
if (nt.getBoundingClientRect().top <= 150) {
|
|
3761
3765
|
j = v[ae];
|
|
3762
3766
|
break;
|
|
3763
3767
|
}
|
|
3764
3768
|
}
|
|
3765
|
-
|
|
3766
|
-
const ie = ((
|
|
3767
|
-
|
|
3769
|
+
Me(j);
|
|
3770
|
+
const ie = ((we = qe.current) == null ? void 0 : we.getBoundingClientRect().top) ?? Number.POSITIVE_INFINITY;
|
|
3771
|
+
Mn(ie <= 150);
|
|
3768
3772
|
};
|
|
3769
3773
|
return s.addEventListener("scroll", P, { passive: !0 }), M && M !== s && M.addEventListener("scroll", P, { passive: !0 }), window.addEventListener("scroll", P, { passive: !0, capture: !0 }), P(), () => {
|
|
3770
3774
|
s.removeEventListener("scroll", P), M && M !== s && M.removeEventListener("scroll", P), window.removeEventListener("scroll", P, { capture: !0 });
|
|
3771
3775
|
};
|
|
3772
|
-
}, [
|
|
3773
|
-
const St = $(null),
|
|
3776
|
+
}, [Ze]);
|
|
3777
|
+
const St = $(null), Gn = (s) => {
|
|
3774
3778
|
var x;
|
|
3775
|
-
|
|
3779
|
+
Me(s), Qe.current = !0, St.current = s;
|
|
3776
3780
|
const v = (x = bt[s]) == null ? void 0 : x.current;
|
|
3777
3781
|
if (v) {
|
|
3778
|
-
const F =
|
|
3782
|
+
const F = ke.current;
|
|
3779
3783
|
if (F && F.scrollHeight > F.clientHeight) {
|
|
3780
3784
|
const M = F.getBoundingClientRect().top, j = v.getBoundingClientRect().top - M + F.scrollTop - 16;
|
|
3781
3785
|
F.scrollTo({ top: j, behavior: "smooth" });
|
|
@@ -3785,13 +3789,13 @@ const xr = ({
|
|
|
3785
3789
|
}
|
|
3786
3790
|
}
|
|
3787
3791
|
setTimeout(() => {
|
|
3788
|
-
|
|
3792
|
+
Qe.current = !1, St.current = null;
|
|
3789
3793
|
}, 1200);
|
|
3790
|
-
},
|
|
3791
|
-
|
|
3794
|
+
}, Xe = Oe || [], Je = Xe.length > 1, kt = (s) => {
|
|
3795
|
+
Me("signals");
|
|
3792
3796
|
const v = He.current;
|
|
3793
3797
|
if (v) {
|
|
3794
|
-
const F =
|
|
3798
|
+
const F = ke.current;
|
|
3795
3799
|
if (F && F.scrollHeight > F.clientHeight) {
|
|
3796
3800
|
const M = F.getBoundingClientRect().top, j = v.getBoundingClientRect().top - M + F.scrollTop - 16;
|
|
3797
3801
|
F.scrollTo({ top: j, behavior: "smooth" });
|
|
@@ -3806,10 +3810,10 @@ const xr = ({
|
|
|
3806
3810
|
(F = ue.current) != null && F.scrollToTranscript && ue.current.scrollToTranscript(x);
|
|
3807
3811
|
}, 220);
|
|
3808
3812
|
}, Ct = (s) => {
|
|
3809
|
-
|
|
3813
|
+
Me("signals");
|
|
3810
3814
|
const v = He.current;
|
|
3811
3815
|
if (v) {
|
|
3812
|
-
const F =
|
|
3816
|
+
const F = ke.current;
|
|
3813
3817
|
if (F && F.scrollHeight > F.clientHeight) {
|
|
3814
3818
|
const M = F.getBoundingClientRect().top, j = v.getBoundingClientRect().top - M + F.scrollTop - 16;
|
|
3815
3819
|
F.scrollTo({ top: j, behavior: "smooth" });
|
|
@@ -3824,29 +3828,29 @@ const xr = ({
|
|
|
3824
3828
|
if (x != null && ((F = ue.current) != null && F.scrollToTranscript) && ue.current.scrollToTranscript(x / 1e3), A)
|
|
3825
3829
|
A(s);
|
|
3826
3830
|
else if (x != null && ((M = ue.current) != null && M.seekTo)) {
|
|
3827
|
-
ue.current.seekTo(x / 1e3), ht(!0),
|
|
3831
|
+
ue.current.seekTo(x / 1e3), ht(!0), zn(x / 1e3);
|
|
3828
3832
|
const j = (s.end_ms ?? s.endMs ?? x + 5e3) - x;
|
|
3829
3833
|
setTimeout(() => ht(!1), j);
|
|
3830
3834
|
}
|
|
3831
3835
|
}, 220);
|
|
3832
|
-
},
|
|
3836
|
+
}, Hn = (s) => {
|
|
3833
3837
|
y && y(s);
|
|
3834
|
-
},
|
|
3838
|
+
}, _n = (s) => {
|
|
3835
3839
|
ft((v) => {
|
|
3836
3840
|
const x = new Set(v);
|
|
3837
3841
|
return x.has(s) ? x.delete(s) : x.add(s), x;
|
|
3838
3842
|
});
|
|
3839
|
-
},
|
|
3843
|
+
}, En = (r == null ? void 0 : r.blocks) || [], Ce = (s) => {
|
|
3840
3844
|
var v;
|
|
3841
|
-
return ((v =
|
|
3842
|
-
}, J =
|
|
3843
|
-
(
|
|
3844
|
-
const
|
|
3845
|
+
return ((v = En.find((x) => x.block_id === s)) == null ? void 0 : v.payload) || {};
|
|
3846
|
+
}, J = Ce("interaction-metadata"), be = Ce("interaction-context"), _e = Ce("interaction-signals"), Tn = Ce("interaction-outcome-lift"), An = Ce("interaction-dimensions").dimensions || [], Rn = be.call_purpose || {}, Ln = be.classification || {}, Ft = J || {}, Ee = m || Rn || {}, Bn = u || Ln || {}, Wt = Tn || {};
|
|
3847
|
+
(Wt.driver_signal_keys || []).map((s) => s.replace(/^sig\./, "").replace(/_/g, " "));
|
|
3848
|
+
const Nn = o || null, Pn = (Mt = _e == null ? void 0 : _e.signals) != null && Mt.length ? _e : { present_count: 0, total_signals_evaluated: 0, signals: [] }, It = hn || [], Ue = D || J.agent_name || J.agent || be.agent_name || "Agent", jn = L || J.agent_full_name || J.agent_name || Ue, Fe = C || J.customer_name || J.customer || be.customer_name || "Customer", Dt = z || J.customer_full_name || J.customer_name || Fe, zt = String(
|
|
3845
3849
|
(K == null ? void 0 : K.role) ?? (K == null ? void 0 : K.userRole) ?? (K == null ? void 0 : K.user_role) ?? (K == null ? void 0 : K.roleName) ?? (K == null ? void 0 : K.role_name) ?? ""
|
|
3846
|
-
).toLowerCase(),
|
|
3847
|
-
return /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", width: "100%", maxWidth: "100%", height: "100%", background: "var(--Grey-White, #FFF)", overflowX:
|
|
3848
|
-
/* @__PURE__ */ i("div", { style: { display: "flex", flexDirection:
|
|
3849
|
-
/* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "center", gap: 12, minWidth: 0, ...
|
|
3850
|
+
).toLowerCase(), $n = dr(zt), et = sr(zt), tt = h ?? Xe.length, Te = J.created_dt || (r == null ? void 0 : r.created_dt) || be.created_dt || "", On = Te ? new Date(/Z$|[+-]\d{2}:\d{2}$/.test(Te) ? Te : Te + "Z").toLocaleString() : "", Yn = Ee.interaction_direction === "inbound" ? "Inbound" : "Outbound";
|
|
3851
|
+
return /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", width: "100%", maxWidth: "100%", height: "100%", background: "var(--Grey-White, #FFF)", overflowX: _ ? "clip" : void 0 }, children: [
|
|
3852
|
+
/* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: _ ? "column" : "row", alignItems: _ ? "stretch" : "center", gap: 12, padding: _ ? "16px 16px 0" : "18px 24px 0" }, children: [
|
|
3853
|
+
/* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "center", gap: 12, minWidth: 0, ..._ ? { order: 2, width: "100%" } : { flex: 1 } }, children: [
|
|
3850
3854
|
/* @__PURE__ */ t(
|
|
3851
3855
|
"button",
|
|
3852
3856
|
{
|
|
@@ -3861,7 +3865,7 @@ const xr = ({
|
|
|
3861
3865
|
padding: 0,
|
|
3862
3866
|
flexShrink: 0
|
|
3863
3867
|
},
|
|
3864
|
-
children: /* @__PURE__ */ t(
|
|
3868
|
+
children: /* @__PURE__ */ t(rt, { size: 24, color: "var(--Grey-Strong, #2E3236)" })
|
|
3865
3869
|
}
|
|
3866
3870
|
),
|
|
3867
3871
|
/* @__PURE__ */ t("div", { style: { width: 1, height: 28, background: "var(--Base-absent, #D9D9D9)" } }),
|
|
@@ -3875,17 +3879,17 @@ const xr = ({
|
|
|
3875
3879
|
flex: 1
|
|
3876
3880
|
}, children: e })
|
|
3877
3881
|
] }),
|
|
3878
|
-
(
|
|
3882
|
+
(De || ze) && (_ || !yt) && /* @__PURE__ */ i("div", { style: {
|
|
3879
3883
|
display: "flex",
|
|
3880
3884
|
alignItems: "center",
|
|
3881
3885
|
flexShrink: 0,
|
|
3882
|
-
...
|
|
3886
|
+
..._ ? { width: "100%", justifyContent: "space-between", order: 1 } : {}
|
|
3883
3887
|
}, children: [
|
|
3884
|
-
/* @__PURE__ */ t(me, { text:
|
|
3888
|
+
/* @__PURE__ */ t(me, { text: st, children: /* @__PURE__ */ i(
|
|
3885
3889
|
"button",
|
|
3886
3890
|
{
|
|
3887
|
-
onClick:
|
|
3888
|
-
disabled:
|
|
3891
|
+
onClick: ce ? void 0 : De,
|
|
3892
|
+
disabled: ce,
|
|
3889
3893
|
style: {
|
|
3890
3894
|
display: "flex",
|
|
3891
3895
|
alignItems: "center",
|
|
@@ -3893,11 +3897,11 @@ const xr = ({
|
|
|
3893
3897
|
padding: "4px 12px",
|
|
3894
3898
|
background: "none",
|
|
3895
3899
|
border: "none",
|
|
3896
|
-
cursor:
|
|
3897
|
-
opacity:
|
|
3900
|
+
cursor: ce ? "default" : "pointer",
|
|
3901
|
+
opacity: ce ? 0.4 : 1
|
|
3898
3902
|
},
|
|
3899
3903
|
children: [
|
|
3900
|
-
/* @__PURE__ */ t(
|
|
3904
|
+
/* @__PURE__ */ t(rt, { size: 16, color: "var(--Neutral-800, #323232)", strokeWidth: 1.5 }),
|
|
3901
3905
|
/* @__PURE__ */ t("span", { style: {
|
|
3902
3906
|
color: "var(--Neutral-800, #323232)",
|
|
3903
3907
|
fontSize: 13,
|
|
@@ -3918,8 +3922,8 @@ const xr = ({
|
|
|
3918
3922
|
/* @__PURE__ */ t(me, { text: dt, children: /* @__PURE__ */ i(
|
|
3919
3923
|
"button",
|
|
3920
3924
|
{
|
|
3921
|
-
onClick:
|
|
3922
|
-
disabled:
|
|
3925
|
+
onClick: fe ? void 0 : ze,
|
|
3926
|
+
disabled: fe,
|
|
3923
3927
|
style: {
|
|
3924
3928
|
display: "flex",
|
|
3925
3929
|
alignItems: "center",
|
|
@@ -3927,8 +3931,8 @@ const xr = ({
|
|
|
3927
3931
|
padding: "4px 12px",
|
|
3928
3932
|
background: "none",
|
|
3929
3933
|
border: "none",
|
|
3930
|
-
cursor:
|
|
3931
|
-
opacity:
|
|
3934
|
+
cursor: fe ? "default" : "pointer",
|
|
3935
|
+
opacity: fe ? 0.4 : 1
|
|
3932
3936
|
},
|
|
3933
3937
|
children: [
|
|
3934
3938
|
/* @__PURE__ */ t("span", { style: {
|
|
@@ -3939,13 +3943,13 @@ const xr = ({
|
|
|
3939
3943
|
fontFamily: "var(--default-font-family)",
|
|
3940
3944
|
whiteSpace: "nowrap"
|
|
3941
3945
|
}, children: "Next Interaction" }),
|
|
3942
|
-
/* @__PURE__ */ t(
|
|
3946
|
+
/* @__PURE__ */ t(Lt, { size: 16, color: "var(--Neutral-800, #323232)", strokeWidth: 1.5 })
|
|
3943
3947
|
]
|
|
3944
3948
|
}
|
|
3945
3949
|
) })
|
|
3946
3950
|
] })
|
|
3947
3951
|
] }),
|
|
3948
|
-
!
|
|
3952
|
+
!_ && /* @__PURE__ */ t("div", { style: {
|
|
3949
3953
|
position: "sticky",
|
|
3950
3954
|
top: 0,
|
|
3951
3955
|
zIndex: 30,
|
|
@@ -3962,17 +3966,17 @@ const xr = ({
|
|
|
3962
3966
|
gap: 16,
|
|
3963
3967
|
background: "#FFFFFF",
|
|
3964
3968
|
borderBottom: "1px solid var(--Grey-Faint, #ACADAD)",
|
|
3965
|
-
padding:
|
|
3969
|
+
padding: _ ? "0 16px" : "0 24px"
|
|
3966
3970
|
}, children: [
|
|
3967
3971
|
/* @__PURE__ */ t(
|
|
3968
3972
|
"div",
|
|
3969
3973
|
{
|
|
3970
3974
|
className: "custom-thin-scrollbar-hidden",
|
|
3971
|
-
style: { display: "flex", alignItems: "flex-start", minWidth: 0, overflowX:
|
|
3972
|
-
children:
|
|
3975
|
+
style: { display: "flex", alignItems: "flex-start", minWidth: 0, overflowX: _ ? "auto" : "visible" },
|
|
3976
|
+
children: Ze.map((s) => /* @__PURE__ */ t(
|
|
3973
3977
|
"button",
|
|
3974
3978
|
{
|
|
3975
|
-
onClick: () =>
|
|
3979
|
+
onClick: () => Gn(s.key),
|
|
3976
3980
|
style: {
|
|
3977
3981
|
display: "flex",
|
|
3978
3982
|
padding: 16,
|
|
@@ -3981,11 +3985,11 @@ const xr = ({
|
|
|
3981
3985
|
flexShrink: 0,
|
|
3982
3986
|
background: "none",
|
|
3983
3987
|
border: "none",
|
|
3984
|
-
borderBottom:
|
|
3988
|
+
borderBottom: Ve === s.key ? "3px solid var(--Grey-Strong, #2E3236)" : "3px solid transparent",
|
|
3985
3989
|
cursor: "pointer",
|
|
3986
3990
|
fontSize: 15,
|
|
3987
|
-
fontWeight:
|
|
3988
|
-
color:
|
|
3991
|
+
fontWeight: Ve === s.key ? 500 : 400,
|
|
3992
|
+
color: Ve === s.key ? "var(--Grey-Strong, #2E3236)" : "var(--Grey-Muted, #808183)",
|
|
3989
3993
|
whiteSpace: "nowrap",
|
|
3990
3994
|
transition: "border-color 0.2s ease, color 0.2s ease"
|
|
3991
3995
|
},
|
|
@@ -3995,12 +3999,12 @@ const xr = ({
|
|
|
3995
3999
|
))
|
|
3996
4000
|
}
|
|
3997
4001
|
),
|
|
3998
|
-
(
|
|
3999
|
-
/* @__PURE__ */ t(me, { text:
|
|
4002
|
+
(De || ze) && yt && /* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "center", flexShrink: 0 }, children: [
|
|
4003
|
+
/* @__PURE__ */ t(me, { text: st, children: /* @__PURE__ */ i(
|
|
4000
4004
|
"button",
|
|
4001
4005
|
{
|
|
4002
|
-
onClick:
|
|
4003
|
-
disabled:
|
|
4006
|
+
onClick: ce ? void 0 : De,
|
|
4007
|
+
disabled: ce,
|
|
4004
4008
|
style: {
|
|
4005
4009
|
display: "flex",
|
|
4006
4010
|
alignItems: "center",
|
|
@@ -4008,11 +4012,11 @@ const xr = ({
|
|
|
4008
4012
|
padding: "4px 12px",
|
|
4009
4013
|
background: "none",
|
|
4010
4014
|
border: "none",
|
|
4011
|
-
cursor:
|
|
4012
|
-
opacity:
|
|
4015
|
+
cursor: ce ? "default" : "pointer",
|
|
4016
|
+
opacity: ce ? 0.4 : 1
|
|
4013
4017
|
},
|
|
4014
4018
|
children: [
|
|
4015
|
-
/* @__PURE__ */ t(
|
|
4019
|
+
/* @__PURE__ */ t(rt, { size: 16, color: "var(--Neutral-800, #323232)", strokeWidth: 1.5 }),
|
|
4016
4020
|
/* @__PURE__ */ t("span", { style: {
|
|
4017
4021
|
color: "var(--Neutral-800, #323232)",
|
|
4018
4022
|
fontSize: 13,
|
|
@@ -4033,8 +4037,8 @@ const xr = ({
|
|
|
4033
4037
|
/* @__PURE__ */ t(me, { text: dt, children: /* @__PURE__ */ i(
|
|
4034
4038
|
"button",
|
|
4035
4039
|
{
|
|
4036
|
-
onClick:
|
|
4037
|
-
disabled:
|
|
4040
|
+
onClick: fe ? void 0 : ze,
|
|
4041
|
+
disabled: fe,
|
|
4038
4042
|
style: {
|
|
4039
4043
|
display: "flex",
|
|
4040
4044
|
alignItems: "center",
|
|
@@ -4042,8 +4046,8 @@ const xr = ({
|
|
|
4042
4046
|
padding: "4px 12px",
|
|
4043
4047
|
background: "none",
|
|
4044
4048
|
border: "none",
|
|
4045
|
-
cursor:
|
|
4046
|
-
opacity:
|
|
4049
|
+
cursor: fe ? "default" : "pointer",
|
|
4050
|
+
opacity: fe ? 0.4 : 1
|
|
4047
4051
|
},
|
|
4048
4052
|
children: [
|
|
4049
4053
|
/* @__PURE__ */ t("span", { style: {
|
|
@@ -4054,14 +4058,14 @@ const xr = ({
|
|
|
4054
4058
|
fontFamily: "var(--default-font-family)",
|
|
4055
4059
|
whiteSpace: "nowrap"
|
|
4056
4060
|
}, children: "Next Interaction" }),
|
|
4057
|
-
/* @__PURE__ */ t(
|
|
4061
|
+
/* @__PURE__ */ t(Lt, { size: 16, color: "var(--Neutral-800, #323232)", strokeWidth: 1.5 })
|
|
4058
4062
|
]
|
|
4059
4063
|
}
|
|
4060
4064
|
) })
|
|
4061
4065
|
] })
|
|
4062
4066
|
] }) }),
|
|
4063
|
-
/* @__PURE__ */ i("div", { ref:
|
|
4064
|
-
/* @__PURE__ */ i("div", { ref:
|
|
4067
|
+
/* @__PURE__ */ i("div", { ref: ke, style: { padding: _ ? 16 : 24, flex: 1, overflowY: "auto", ..._ ? { minWidth: 0, overflowX: "hidden" } : {} }, children: [
|
|
4068
|
+
/* @__PURE__ */ i("div", { ref: qe, style: {
|
|
4065
4069
|
display: "flex",
|
|
4066
4070
|
flexDirection: "column",
|
|
4067
4071
|
justifyContent: "flex-end",
|
|
@@ -4071,14 +4075,14 @@ const xr = ({
|
|
|
4071
4075
|
}, children: [
|
|
4072
4076
|
/* @__PURE__ */ i("div", { style: {
|
|
4073
4077
|
display: "flex",
|
|
4074
|
-
flexWrap:
|
|
4075
|
-
height:
|
|
4076
|
-
alignItems:
|
|
4077
|
-
gap:
|
|
4078
|
+
flexWrap: _ ? "wrap" : "nowrap",
|
|
4079
|
+
height: _ ? "auto" : 40,
|
|
4080
|
+
alignItems: _ ? "flex-start" : "center",
|
|
4081
|
+
gap: _ ? 8 : 16,
|
|
4078
4082
|
alignSelf: "stretch"
|
|
4079
4083
|
}, children: [
|
|
4080
4084
|
/* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "center", gap: 8, flex: 1 }, children: [
|
|
4081
|
-
/* @__PURE__ */ t(
|
|
4085
|
+
/* @__PURE__ */ t(pi, { size: 24, color: "var(--rail-orange, #C98A5A)", strokeWidth: 2 }),
|
|
4082
4086
|
/* @__PURE__ */ t("span", { style: {
|
|
4083
4087
|
fontSize: 16,
|
|
4084
4088
|
fontWeight: 600,
|
|
@@ -4087,30 +4091,30 @@ const xr = ({
|
|
|
4087
4091
|
textTransform: "uppercase"
|
|
4088
4092
|
}, children: "Overview" })
|
|
4089
4093
|
] }),
|
|
4090
|
-
/* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "row", flexWrap:
|
|
4094
|
+
/* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "row", flexWrap: _ ? "wrap" : "nowrap", alignItems: "center", gap: _ ? "8px 16px" : 16, flexShrink: 0, ..._ ? { width: "100%" } : {} }, children: [
|
|
4091
4095
|
/* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "center", gap: 6, padding: "8px 0" }, children: [
|
|
4092
|
-
/* @__PURE__ */ t(
|
|
4093
|
-
/* @__PURE__ */ t("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", fontFamily: "var(--font-sans)", lineHeight: 1.2 }, children:
|
|
4096
|
+
/* @__PURE__ */ t(Bt, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
|
|
4097
|
+
/* @__PURE__ */ t("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", fontFamily: "var(--font-sans)", lineHeight: 1.2 }, children: On })
|
|
4094
4098
|
] }),
|
|
4095
4099
|
(() => {
|
|
4096
|
-
const s =
|
|
4100
|
+
const s = Ee.interaction_direction === "outbound" ? Nt : Pt;
|
|
4097
4101
|
return /* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "center", gap: 6, padding: "8px 0" }, children: [
|
|
4098
4102
|
/* @__PURE__ */ t(s, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
|
|
4099
|
-
/* @__PURE__ */ t("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", fontFamily: "var(--font-sans)", lineHeight: 1.2 }, children:
|
|
4103
|
+
/* @__PURE__ */ t("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", fontFamily: "var(--font-sans)", lineHeight: 1.2 }, children: Yn })
|
|
4100
4104
|
] });
|
|
4101
4105
|
})(),
|
|
4102
4106
|
/* @__PURE__ */ i("div", { style: {
|
|
4103
4107
|
display: "flex",
|
|
4104
|
-
flexWrap:
|
|
4108
|
+
flexWrap: _ ? "wrap" : "nowrap",
|
|
4105
4109
|
alignItems: "center",
|
|
4106
|
-
gap:
|
|
4107
|
-
...
|
|
4110
|
+
gap: _ ? 12 : 16,
|
|
4111
|
+
..._ ? { flexBasis: "100%", width: "100%" } : { paddingLeft: 16, borderLeft: "1px solid var(--Grey-absent, #D9D9D9)" }
|
|
4108
4112
|
}, children: [
|
|
4109
|
-
/* @__PURE__ */ t(me, { text:
|
|
4110
|
-
/* @__PURE__ */ t(
|
|
4111
|
-
/* @__PURE__ */ t("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", fontFamily: "var(--font-sans)", lineHeight: 1.2 }, children:
|
|
4113
|
+
/* @__PURE__ */ t(me, { text: jn, children: /* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "center", gap: 6, padding: "8px 0", cursor: "pointer" }, children: [
|
|
4114
|
+
/* @__PURE__ */ t(jt, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
|
|
4115
|
+
/* @__PURE__ */ t("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", fontFamily: "var(--font-sans)", lineHeight: 1.2 }, children: Ue })
|
|
4112
4116
|
] }) }),
|
|
4113
|
-
|
|
4117
|
+
tt > 1 ? /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(me, { text: Dt, children: /* @__PURE__ */ i(
|
|
4114
4118
|
"button",
|
|
4115
4119
|
{
|
|
4116
4120
|
onClick: () => Ge(!0),
|
|
@@ -4127,84 +4131,84 @@ const xr = ({
|
|
|
4127
4131
|
},
|
|
4128
4132
|
children: [
|
|
4129
4133
|
/* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "center", gap: 4, minWidth: 0 }, children: [
|
|
4130
|
-
/* @__PURE__ */ t(
|
|
4134
|
+
/* @__PURE__ */ t(lt, { size: 16, color: "var(--Grey-Strong, #2E3236)", strokeWidth: 1.5 }),
|
|
4131
4135
|
/* @__PURE__ */ i("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", lineHeight: 1.2, whiteSpace: "nowrap" }, children: [
|
|
4132
|
-
/* @__PURE__ */ t("span", { style: { fontWeight: 600 }, children:
|
|
4136
|
+
/* @__PURE__ */ t("span", { style: { fontWeight: 600 }, children: Fe }),
|
|
4133
4137
|
" ",
|
|
4134
4138
|
/* @__PURE__ */ i("span", { children: [
|
|
4135
4139
|
"(",
|
|
4136
|
-
|
|
4140
|
+
tt,
|
|
4137
4141
|
" Interactions)"
|
|
4138
4142
|
] })
|
|
4139
4143
|
] })
|
|
4140
4144
|
] }),
|
|
4141
|
-
/* @__PURE__ */ t(
|
|
4145
|
+
/* @__PURE__ */ t(dn, { size: 16, color: "var(--Grey-Strong, #2E3236)", strokeWidth: 1.7 })
|
|
4142
4146
|
]
|
|
4143
4147
|
}
|
|
4144
|
-
) }) }) : /* @__PURE__ */ t(me, { text:
|
|
4145
|
-
/* @__PURE__ */ t(
|
|
4146
|
-
/* @__PURE__ */ t("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", lineHeight: 1.2 }, children:
|
|
4148
|
+
) }) }) : /* @__PURE__ */ t(me, { text: Dt, children: /* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "center", gap: 4, padding: "8px 0", cursor: "pointer" }, children: [
|
|
4149
|
+
/* @__PURE__ */ t(lt, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
|
|
4150
|
+
/* @__PURE__ */ t("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", lineHeight: 1.2 }, children: Fe })
|
|
4147
4151
|
] }) })
|
|
4148
4152
|
] })
|
|
4149
4153
|
] })
|
|
4150
4154
|
] }),
|
|
4151
4155
|
/* @__PURE__ */ i("div", { style: {
|
|
4152
4156
|
display: "flex",
|
|
4153
|
-
flexDirection:
|
|
4157
|
+
flexDirection: _ ? "column" : "row",
|
|
4154
4158
|
alignItems: "stretch",
|
|
4155
4159
|
gap: 24,
|
|
4156
4160
|
alignSelf: "stretch"
|
|
4157
4161
|
}, children: [
|
|
4158
4162
|
/* @__PURE__ */ t("div", { style: { flex: 1, minWidth: 0, display: "flex" }, children: /* @__PURE__ */ t(
|
|
4159
|
-
|
|
4163
|
+
Ai,
|
|
4160
4164
|
{
|
|
4161
4165
|
score: xe ?? 0.5,
|
|
4162
4166
|
minScore: 0,
|
|
4163
|
-
maxScore:
|
|
4164
|
-
predictedScore:
|
|
4165
|
-
predictedLabel:
|
|
4166
|
-
legends:
|
|
4167
|
-
outcomePercent:
|
|
4167
|
+
maxScore: pe,
|
|
4168
|
+
predictedScore: ge ?? 0.5,
|
|
4169
|
+
predictedLabel: c,
|
|
4170
|
+
legends: Q,
|
|
4171
|
+
outcomePercent: de ?? null
|
|
4168
4172
|
}
|
|
4169
4173
|
) }),
|
|
4170
4174
|
/* @__PURE__ */ i("div", { style: {
|
|
4171
4175
|
display: "flex",
|
|
4172
4176
|
flexDirection: "column",
|
|
4173
4177
|
alignItems: "stretch",
|
|
4174
|
-
justifyContent:
|
|
4178
|
+
justifyContent: et ? "flex-start" : "flex-end",
|
|
4175
4179
|
gap: 24,
|
|
4176
4180
|
flex: 1,
|
|
4177
4181
|
minWidth: 0
|
|
4178
4182
|
}, children: [
|
|
4179
4183
|
/* @__PURE__ */ t(
|
|
4180
|
-
|
|
4184
|
+
zi,
|
|
4181
4185
|
{
|
|
4182
4186
|
meta: Ft,
|
|
4183
|
-
callPurpose:
|
|
4184
|
-
classification:
|
|
4187
|
+
callPurpose: Ee,
|
|
4188
|
+
classification: Bn,
|
|
4185
4189
|
outcomeQuality: te || "Neutral",
|
|
4186
|
-
dimensions:
|
|
4190
|
+
dimensions: An,
|
|
4187
4191
|
resolutionOutcome: re,
|
|
4188
4192
|
customerIntent: le,
|
|
4189
4193
|
location: ne ?? J.location ?? J.location_name ?? be.location,
|
|
4190
4194
|
interactionId: se ?? J.interaction_id,
|
|
4191
4195
|
moreDetails: B,
|
|
4192
|
-
canShowEditButton:
|
|
4193
|
-
onEditInteraction:
|
|
4194
|
-
flatView:
|
|
4196
|
+
canShowEditButton: $n,
|
|
4197
|
+
onEditInteraction: wn,
|
|
4198
|
+
flatView: et
|
|
4195
4199
|
}
|
|
4196
4200
|
),
|
|
4197
|
-
!
|
|
4198
|
-
var
|
|
4199
|
-
const s =
|
|
4200
|
-
if (!(v != null || x != null || P != null || ie != null ||
|
|
4201
|
+
!et && (() => {
|
|
4202
|
+
var _t, Et;
|
|
4203
|
+
const s = Wt || {}, v = s.difficulty, x = s.difficulty_band, F = s.p_expected, M = s.score_impact ?? F, P = s.lift_raw, j = s.lift_display, ie = (_t = s.interpretation) == null ? void 0 : _t.lift_band, we = s.p_full, ae = (Et = s.interpretation) == null ? void 0 : Et.description;
|
|
4204
|
+
if (!(v != null || x != null || P != null || ie != null || we != null || ae != null))
|
|
4201
4205
|
return null;
|
|
4202
|
-
const
|
|
4206
|
+
const it = (ye, Ae, Xn) => Math.max(Ae, Math.min(Xn, ye)), Kn = v != null ? it((v - 50) / 50, -1, 1) : 0, Vn = P != null ? it(P * 3, -1, 1) : 0, Gt = M != null ? Math.round(M * 100) : null, Ht = (ye) => {
|
|
4203
4207
|
if (ye)
|
|
4204
4208
|
return String(ye).split("_").map(
|
|
4205
|
-
(
|
|
4209
|
+
(Ae) => Ae.charAt(0).toUpperCase() + Ae.slice(1).toLowerCase()
|
|
4206
4210
|
).join(" ");
|
|
4207
|
-
},
|
|
4211
|
+
}, qn = Ht(x), Qn = Ht(ie), Zn = (() => {
|
|
4208
4212
|
if (typeof j == "string") {
|
|
4209
4213
|
const ye = parseFloat(j.replace("%", ""));
|
|
4210
4214
|
if (Number.isFinite(ye))
|
|
@@ -4213,23 +4217,23 @@ const xr = ({
|
|
|
4213
4217
|
return P != null ? Math.round(P * 100) : null;
|
|
4214
4218
|
})();
|
|
4215
4219
|
return /* @__PURE__ */ t(
|
|
4216
|
-
|
|
4220
|
+
mi,
|
|
4217
4221
|
{
|
|
4218
4222
|
title: "Agent Lift Analysis",
|
|
4219
4223
|
interactionDifficulty: {
|
|
4220
|
-
value: v != null ?
|
|
4221
|
-
label:
|
|
4224
|
+
value: v != null ? Kn : null,
|
|
4225
|
+
label: qn,
|
|
4222
4226
|
sublabel: "Based on interaction type",
|
|
4223
|
-
footer:
|
|
4227
|
+
footer: Gt != null ? `${Gt}% Score impact` : void 0
|
|
4224
4228
|
},
|
|
4225
4229
|
agentImpact: {
|
|
4226
|
-
value: P != null ?
|
|
4227
|
-
label:
|
|
4230
|
+
value: P != null ? Vn : null,
|
|
4231
|
+
label: Qn,
|
|
4228
4232
|
// Sublabel slot (rendered immediately below the
|
|
4229
4233
|
// lift-band label) carries the API's
|
|
4230
4234
|
// `interpretation.description`.
|
|
4231
4235
|
sublabel: ae,
|
|
4232
|
-
impactPercent:
|
|
4236
|
+
impactPercent: Zn,
|
|
4233
4237
|
// When the API ships `lift_band: "learning"` the model
|
|
4234
4238
|
// doesn't have enough signal for this interaction type
|
|
4235
4239
|
// yet. The card swaps the gauge for a "Compass is
|
|
@@ -4242,7 +4246,7 @@ const xr = ({
|
|
|
4242
4246
|
] })
|
|
4243
4247
|
] })
|
|
4244
4248
|
] }),
|
|
4245
|
-
/* @__PURE__ */ t("div", { ref: mt, style: { paddingTop: 24 }, children: /* @__PURE__ */ t(
|
|
4249
|
+
/* @__PURE__ */ t("div", { ref: mt, style: { paddingTop: 24 }, children: /* @__PURE__ */ t(Fi, { data: a ? null : Nn, loading: a }) }),
|
|
4246
4250
|
/* @__PURE__ */ i("div", { ref: He, style: {
|
|
4247
4251
|
display: "flex",
|
|
4248
4252
|
flexDirection: "column",
|
|
@@ -4255,7 +4259,7 @@ const xr = ({
|
|
|
4255
4259
|
alignItems: "center",
|
|
4256
4260
|
gap: 8
|
|
4257
4261
|
}, children: [
|
|
4258
|
-
/* @__PURE__ */ t(
|
|
4262
|
+
/* @__PURE__ */ t(nn, { size: 24, color: "#C98A5A", strokeWidth: 2 }),
|
|
4259
4263
|
/* @__PURE__ */ t("span", { style: {
|
|
4260
4264
|
fontSize: 16,
|
|
4261
4265
|
fontWeight: 600,
|
|
@@ -4266,40 +4270,40 @@ const xr = ({
|
|
|
4266
4270
|
] }),
|
|
4267
4271
|
/* @__PURE__ */ i("div", { style: {
|
|
4268
4272
|
display: "flex",
|
|
4269
|
-
flexDirection:
|
|
4270
|
-
alignItems:
|
|
4273
|
+
flexDirection: _ ? "column" : "row",
|
|
4274
|
+
alignItems: _ ? "stretch" : "flex-start",
|
|
4271
4275
|
gap: 24,
|
|
4272
4276
|
alignSelf: "stretch",
|
|
4273
4277
|
paddingTop: 16,
|
|
4274
4278
|
borderTop: "1px solid #D9D9D9"
|
|
4275
4279
|
}, children: [
|
|
4276
4280
|
/* @__PURE__ */ t("div", { style: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ t(
|
|
4277
|
-
|
|
4281
|
+
Mi,
|
|
4278
4282
|
{
|
|
4279
|
-
signals:
|
|
4280
|
-
expandedSignals:
|
|
4281
|
-
toggleSignal:
|
|
4283
|
+
signals: Pn,
|
|
4284
|
+
expandedSignals: Wn,
|
|
4285
|
+
toggleSignal: _n,
|
|
4282
4286
|
playEvidence: Ct,
|
|
4283
|
-
highlightTurns:
|
|
4287
|
+
highlightTurns: Hn,
|
|
4284
4288
|
onShowInTranscript: kt,
|
|
4285
4289
|
timelinePlaying: p || gt,
|
|
4286
4290
|
currentTimeSeconds: f ?? ut
|
|
4287
4291
|
}
|
|
4288
4292
|
) }),
|
|
4289
4293
|
/* @__PURE__ */ t("div", { style: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ t(
|
|
4290
|
-
|
|
4294
|
+
yi,
|
|
4291
4295
|
{
|
|
4292
4296
|
ref: ue,
|
|
4293
4297
|
audioUrl: l,
|
|
4294
4298
|
durationSeconds: Ft.duration_seconds,
|
|
4295
4299
|
audioRef: d,
|
|
4296
|
-
agentName:
|
|
4297
|
-
customerName:
|
|
4300
|
+
agentName: Ue,
|
|
4301
|
+
customerName: Fe,
|
|
4298
4302
|
currentTimeSeconds: f,
|
|
4299
4303
|
timelinePlaying: p,
|
|
4300
4304
|
playbackRate: b,
|
|
4301
4305
|
timelineSegments: w,
|
|
4302
|
-
onSeek:
|
|
4306
|
+
onSeek: H,
|
|
4303
4307
|
onTogglePlay: g,
|
|
4304
4308
|
onSeekBack: k,
|
|
4305
4309
|
onSeekForward: S,
|
|
@@ -4315,13 +4319,13 @@ const xr = ({
|
|
|
4315
4319
|
] })
|
|
4316
4320
|
] }),
|
|
4317
4321
|
(() => {
|
|
4318
|
-
const s = (X == null ? void 0 : X.products) ??
|
|
4322
|
+
const s = (X == null ? void 0 : X.products) ?? Ye ?? [], v = (X == null ? void 0 : X.services) ?? Ke ?? [];
|
|
4319
4323
|
return !s.length && !v.length ? null : (
|
|
4320
4324
|
// ref={productsRef} so the "Products & Services" tab's click
|
|
4321
4325
|
// handler and the scroll-spy can target this section like the
|
|
4322
4326
|
// other top-level sections.
|
|
4323
4327
|
/* @__PURE__ */ t("div", { ref: vt, style: { paddingTop: 24 }, children: /* @__PURE__ */ t(
|
|
4324
|
-
|
|
4328
|
+
ar,
|
|
4325
4329
|
{
|
|
4326
4330
|
products: s,
|
|
4327
4331
|
services: v
|
|
@@ -4330,48 +4334,48 @@ const xr = ({
|
|
|
4330
4334
|
);
|
|
4331
4335
|
})(),
|
|
4332
4336
|
/* @__PURE__ */ t("div", { ref: xt, style: { paddingTop: 24 }, children: /* @__PURE__ */ i(
|
|
4333
|
-
|
|
4337
|
+
ji,
|
|
4334
4338
|
{
|
|
4335
4339
|
comments: ct,
|
|
4336
4340
|
totalComments: ct.length,
|
|
4337
4341
|
currentUser: K,
|
|
4338
|
-
onSendComment:
|
|
4342
|
+
onSendComment: mn || (() => {
|
|
4339
4343
|
}),
|
|
4340
|
-
onSendReply:
|
|
4344
|
+
onSendReply: vn || (() => {
|
|
4341
4345
|
}),
|
|
4342
|
-
onReply:
|
|
4346
|
+
onReply: xn || (() => {
|
|
4343
4347
|
}),
|
|
4344
|
-
onEdit:
|
|
4348
|
+
onEdit: bn || (() => {
|
|
4345
4349
|
}),
|
|
4346
|
-
onDelete:
|
|
4350
|
+
onDelete: Sn || (() => {
|
|
4347
4351
|
}),
|
|
4348
|
-
onMenuClick:
|
|
4352
|
+
onMenuClick: kn || (() => {
|
|
4349
4353
|
}),
|
|
4350
|
-
onMarkResolved:
|
|
4354
|
+
onMarkResolved: Cn || (() => {
|
|
4351
4355
|
}),
|
|
4352
|
-
isResolved:
|
|
4356
|
+
isResolved: Fn,
|
|
4353
4357
|
children: [
|
|
4354
4358
|
/* @__PURE__ */ t(
|
|
4355
|
-
|
|
4359
|
+
Ji,
|
|
4356
4360
|
{
|
|
4357
|
-
items:
|
|
4358
|
-
summary:
|
|
4359
|
-
guidanceCount:
|
|
4361
|
+
items: It,
|
|
4362
|
+
summary: un,
|
|
4363
|
+
guidanceCount: It.length,
|
|
4360
4364
|
onPlayEvidence: Ct,
|
|
4361
4365
|
onShowInTranscript: kt,
|
|
4362
4366
|
timelinePlaying: p || gt,
|
|
4363
4367
|
currentTimeSeconds: f ?? ut
|
|
4364
4368
|
}
|
|
4365
4369
|
),
|
|
4366
|
-
/* @__PURE__ */ t(
|
|
4370
|
+
/* @__PURE__ */ t(rr, { summary: yn })
|
|
4367
4371
|
]
|
|
4368
4372
|
}
|
|
4369
4373
|
) })
|
|
4370
4374
|
] }),
|
|
4371
4375
|
/* @__PURE__ */ t(
|
|
4372
|
-
|
|
4376
|
+
vi,
|
|
4373
4377
|
{
|
|
4374
|
-
open:
|
|
4378
|
+
open: In,
|
|
4375
4379
|
onClose: () => Ge(!1),
|
|
4376
4380
|
title: /* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "center", gap: 10, minWidth: 0 }, children: [
|
|
4377
4381
|
/* @__PURE__ */ t("div", { style: {
|
|
@@ -4383,7 +4387,7 @@ const xr = ({
|
|
|
4383
4387
|
alignItems: "center",
|
|
4384
4388
|
justifyContent: "center",
|
|
4385
4389
|
flexShrink: 0
|
|
4386
|
-
}, children: /* @__PURE__ */ t(
|
|
4390
|
+
}, children: /* @__PURE__ */ t(lt, { size: 20, color: "var(--Grey-Strong, #2E3236)", strokeWidth: 1.7 }) }),
|
|
4387
4391
|
/* @__PURE__ */ t("div", { style: { minWidth: 0 }, children: /* @__PURE__ */ t("div", { style: {
|
|
4388
4392
|
fontSize: 16,
|
|
4389
4393
|
fontWeight: 600,
|
|
@@ -4392,25 +4396,25 @@ const xr = ({
|
|
|
4392
4396
|
whiteSpace: "nowrap",
|
|
4393
4397
|
overflow: "hidden",
|
|
4394
4398
|
textOverflow: "ellipsis"
|
|
4395
|
-
}, children:
|
|
4399
|
+
}, children: Fe }) })
|
|
4396
4400
|
] }),
|
|
4397
|
-
subtitle:
|
|
4401
|
+
subtitle: Je ? /* @__PURE__ */ i("span", { style: {
|
|
4398
4402
|
fontSize: 13,
|
|
4399
4403
|
fontWeight: 400,
|
|
4400
4404
|
color: "var(--Grey-Muted, #808183)",
|
|
4401
4405
|
lineHeight: 1.5
|
|
4402
4406
|
}, children: [
|
|
4403
|
-
|
|
4407
|
+
tt,
|
|
4404
4408
|
" Interactions"
|
|
4405
4409
|
] }) : null,
|
|
4406
4410
|
width: 470,
|
|
4407
4411
|
height: "100vh",
|
|
4408
4412
|
topOffset: 70,
|
|
4409
|
-
footer:
|
|
4413
|
+
footer: Je ? /* @__PURE__ */ t("div", { style: { width: "100%", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ i(
|
|
4410
4414
|
"button",
|
|
4411
4415
|
{
|
|
4412
4416
|
onClick: () => {
|
|
4413
|
-
|
|
4417
|
+
he && he(), Ge(!1);
|
|
4414
4418
|
},
|
|
4415
4419
|
style: {
|
|
4416
4420
|
display: "flex",
|
|
@@ -4425,7 +4429,7 @@ const xr = ({
|
|
|
4425
4429
|
cursor: "pointer"
|
|
4426
4430
|
},
|
|
4427
4431
|
children: [
|
|
4428
|
-
/* @__PURE__ */ t(
|
|
4432
|
+
/* @__PURE__ */ t(gi, { size: 18, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
|
|
4429
4433
|
/* @__PURE__ */ t("span", { style: { fontSize: 15, fontWeight: 600, color: "var(--Grey-Strong, #2E3236)" }, children: "View All Interactions" })
|
|
4430
4434
|
]
|
|
4431
4435
|
}
|
|
@@ -4438,16 +4442,16 @@ const xr = ({
|
|
|
4438
4442
|
maxHeight: "100%",
|
|
4439
4443
|
overflowY: "auto"
|
|
4440
4444
|
},
|
|
4441
|
-
children:
|
|
4442
|
-
const x = !!s.isCurrent, F = !x &&
|
|
4445
|
+
children: Je ? Xe.map((s, v) => {
|
|
4446
|
+
const x = !!s.isCurrent, F = !x && Dn === v, M = cr(
|
|
4443
4447
|
s,
|
|
4444
|
-
|
|
4448
|
+
Ee.interaction_direction
|
|
4445
4449
|
);
|
|
4446
4450
|
return /* @__PURE__ */ i(
|
|
4447
4451
|
"div",
|
|
4448
4452
|
{
|
|
4449
4453
|
onClick: x ? void 0 : () => {
|
|
4450
|
-
|
|
4454
|
+
R && R(s), Ge(!1);
|
|
4451
4455
|
},
|
|
4452
4456
|
onMouseEnter: x ? void 0 : () => pt(v),
|
|
4453
4457
|
onMouseLeave: x ? void 0 : () => pt(null),
|
|
@@ -4483,7 +4487,7 @@ const xr = ({
|
|
|
4483
4487
|
},
|
|
4484
4488
|
children: [
|
|
4485
4489
|
M && /* @__PURE__ */ t(
|
|
4486
|
-
M === "outbound" ?
|
|
4490
|
+
M === "outbound" ? Nt : Pt,
|
|
4487
4491
|
{
|
|
4488
4492
|
size: 16,
|
|
4489
4493
|
color: "var(--Grey-Muted, #808183)",
|
|
@@ -4512,16 +4516,16 @@ const xr = ({
|
|
|
4512
4516
|
] }),
|
|
4513
4517
|
/* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "center", gap: 14, flexWrap: "wrap" }, children: [
|
|
4514
4518
|
/* @__PURE__ */ i("span", { style: { display: "inline-flex", alignItems: "center", gap: 6, fontSize: 13, fontWeight: 400, color: "var(--Grey-Muted, #808183)", lineHeight: 1.1 }, children: [
|
|
4515
|
-
/* @__PURE__ */ t(
|
|
4519
|
+
/* @__PURE__ */ t(Bt, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.8 }),
|
|
4516
4520
|
s.date
|
|
4517
4521
|
] }),
|
|
4518
4522
|
(s.agent || s.agent_name) && /* @__PURE__ */ i("span", { style: { display: "inline-flex", alignItems: "center", gap: 6, fontSize: 13, fontWeight: 400, color: "var(--Grey-Muted, #808183)", lineHeight: 1.1 }, children: [
|
|
4519
|
-
/* @__PURE__ */ t(
|
|
4523
|
+
/* @__PURE__ */ t(jt, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.8 }),
|
|
4520
4524
|
s.agent || s.agent_name
|
|
4521
4525
|
] })
|
|
4522
4526
|
] })
|
|
4523
4527
|
] }),
|
|
4524
|
-
!x && F && /* @__PURE__ */ t(
|
|
4528
|
+
!x && F && /* @__PURE__ */ t(hi, { size: 20, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.7, style: { flexShrink: 0 } })
|
|
4525
4529
|
]
|
|
4526
4530
|
},
|
|
4527
4531
|
s.id || v
|
|
@@ -4554,17 +4558,17 @@ const xr = ({
|
|
|
4554
4558
|
absent: "var(--Grey-absent, #D9D9D9)",
|
|
4555
4559
|
white: "var(--Grey-White, #FFF)",
|
|
4556
4560
|
cardBg: "var(--surface-warm-40, rgba(243, 241, 229, 0.40))"
|
|
4557
|
-
}, Z = 1.2,
|
|
4561
|
+
}, Z = 1.2, Jt = 3, Ut = (e) => e != null ? Math.round(e * 100) + "%" : "—", fr = (e) => {
|
|
4558
4562
|
if (e == null)
|
|
4559
4563
|
return "—";
|
|
4560
4564
|
const n = (e * 100).toFixed(1);
|
|
4561
4565
|
return e > 0 ? `+${n}pp` : `${n}pp`;
|
|
4562
|
-
},
|
|
4566
|
+
}, wr = ({ outcomeLift: e, driverLabels: n = [], showOutcomeOnly: r = !1 }) => {
|
|
4563
4567
|
var S;
|
|
4564
4568
|
const o = ve("(max-width: 640px)");
|
|
4565
4569
|
if (!e || e.lift == null)
|
|
4566
4570
|
return null;
|
|
4567
|
-
const a = e.p_expected, l = e.p_full, d = e.lift_raw ?? (l != null && a != null ? l - a : null), f = e.lift, p = (S = e.interpretation) != null && S.lift_band ? e.interpretation.lift_band.replace(/_/g, " ") : f >= 0 ? "Positive" : "Negative", b = p.charAt(0).toUpperCase() + p.slice(1),
|
|
4571
|
+
const a = e.p_expected, l = e.p_full, d = e.lift_raw ?? (l != null && a != null ? l - a : null), f = e.lift, p = (S = e.interpretation) != null && S.lift_band ? e.interpretation.lift_band.replace(/_/g, " ") : f >= 0 ? "Positive" : "Negative", b = p.charAt(0).toUpperCase() + p.slice(1), H = /negative/i.test(p) ? ui : tn, g = n.slice(0, Jt), k = n.length - Jt;
|
|
4568
4572
|
return /* @__PURE__ */ i(
|
|
4569
4573
|
"div",
|
|
4570
4574
|
{
|
|
@@ -4624,7 +4628,7 @@ const xr = ({
|
|
|
4624
4628
|
// borderLeft: `1px solid ${COLORS.absent}`,
|
|
4625
4629
|
},
|
|
4626
4630
|
children: [
|
|
4627
|
-
/* @__PURE__ */ t(
|
|
4631
|
+
/* @__PURE__ */ t(H, { size: 14, color: E.strong }),
|
|
4628
4632
|
/* @__PURE__ */ t("span", { style: { fontSize: 13, fontWeight: 600, color: E.strong, lineHeight: Z }, children: b })
|
|
4629
4633
|
]
|
|
4630
4634
|
}
|
|
@@ -4645,9 +4649,9 @@ const xr = ({
|
|
|
4645
4649
|
...r ? { justifyContent: "center", width: "100%" } : {}
|
|
4646
4650
|
},
|
|
4647
4651
|
children: [
|
|
4648
|
-
!r && /* @__PURE__ */ i(
|
|
4652
|
+
!r && /* @__PURE__ */ i(Le, { children: [
|
|
4649
4653
|
/* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: 16, alignItems: "flex-start", flex: 1, minWidth: 0 }, children: [
|
|
4650
|
-
/* @__PURE__ */ t("span", { style: { fontSize: 28, fontWeight: 400, color: E.muted, fontFamily: "var(--font-sans)", lineHeight: Z }, children:
|
|
4654
|
+
/* @__PURE__ */ t("span", { style: { fontSize: 28, fontWeight: 400, color: E.muted, fontFamily: "var(--font-sans)", lineHeight: Z }, children: Ut(a) }),
|
|
4651
4655
|
/* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: 8, alignItems: "flex-start", minHeight: 48 }, children: [
|
|
4652
4656
|
/* @__PURE__ */ t("span", { style: { fontSize: 13, fontWeight: 400, color: E.strong, fontFamily: "var(--font-sans)", lineHeight: Z, whiteSpace: "nowrap" }, children: "Expected Outcome" }),
|
|
4653
4657
|
/* @__PURE__ */ t("span", { style: { fontSize: 13, fontWeight: 400, color: E.muted, fontFamily: "var(--font-sans)", lineHeight: Z, textAlign: "left" }, children: "Based on call type & difficulty" })
|
|
@@ -4660,7 +4664,7 @@ const xr = ({
|
|
|
4660
4664
|
alignItems: "flex-start",
|
|
4661
4665
|
...o ? { paddingTop: 16, borderTop: `1px solid ${E.absent}`, width: "100%" } : { paddingLeft: 24, borderLeft: `1px solid ${E.absent}`, flex: 1, minWidth: 0 }
|
|
4662
4666
|
}, children: [
|
|
4663
|
-
/* @__PURE__ */ t("span", { style: { fontSize: 28, fontWeight: 400, color: E.muted, fontFamily: "var(--font-sans)", lineHeight: Z }, children:
|
|
4667
|
+
/* @__PURE__ */ t("span", { style: { fontSize: 28, fontWeight: 400, color: E.muted, fontFamily: "var(--font-sans)", lineHeight: Z }, children: fr(d) }),
|
|
4664
4668
|
/* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: 8, alignItems: "flex-start", minHeight: 48 }, children: [
|
|
4665
4669
|
/* @__PURE__ */ t("span", { style: { fontSize: 13, fontWeight: 400, color: E.strong, fontFamily: "var(--font-sans)", lineHeight: Z, whiteSpace: "nowrap" }, children: "Agent Impact" }),
|
|
4666
4670
|
/* @__PURE__ */ t("span", { style: { fontSize: 13, fontWeight: 400, color: E.muted, fontFamily: "var(--font-sans)", lineHeight: Z, textAlign: "left" }, children: "Behavior-driven change" })
|
|
@@ -4675,7 +4679,7 @@ const xr = ({
|
|
|
4675
4679
|
justifyContent: r ? "center" : void 0,
|
|
4676
4680
|
...r ? {} : o ? { paddingTop: 16, borderTop: `1px solid ${E.absent}`, width: "100%" } : { paddingLeft: 24, borderLeft: `1px solid ${E.absent}`, flex: 1, minWidth: 0 }
|
|
4677
4681
|
}, children: [
|
|
4678
|
-
/* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", gap: 4 }, children: /* @__PURE__ */ t("span", { style: { fontSize: 28, fontWeight: 400, color: E.strong, fontFamily: "var(--font-sans)", lineHeight: Z }, children:
|
|
4682
|
+
/* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", gap: 4 }, children: /* @__PURE__ */ t("span", { style: { fontSize: 28, fontWeight: 400, color: E.strong, fontFamily: "var(--font-sans)", lineHeight: Z }, children: Ut(l) }) }),
|
|
4679
4683
|
/* @__PURE__ */ i("div", { style: {
|
|
4680
4684
|
display: "flex",
|
|
4681
4685
|
flexDirection: "column",
|
|
@@ -4783,15 +4787,15 @@ const xr = ({
|
|
|
4783
4787
|
);
|
|
4784
4788
|
};
|
|
4785
4789
|
export {
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4790
|
+
Fi as UpdatedCoachingSynthesisCard,
|
|
4791
|
+
Ai as UpdatedCompassScore,
|
|
4792
|
+
Ji as UpdatedGuidance,
|
|
4793
|
+
zi as UpdatedInteractionContext,
|
|
4794
|
+
br as UpdatedInteractionDetails,
|
|
4795
|
+
yi as UpdatedInteractionRecording,
|
|
4796
|
+
wr as UpdatedInteractionScores,
|
|
4797
|
+
Mi as UpdatedInteractionSignals,
|
|
4798
|
+
ar as UpdatedProductsServices,
|
|
4799
|
+
ji as UpdatedThreads
|
|
4796
4800
|
};
|
|
4797
4801
|
//# sourceMappingURL=UpdatedInteractionDetails.es.js.map
|