chordia-ui 3.4.4 → 3.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/UpdatedInteractionRecording.cjs.js +1 -1
- package/dist/UpdatedInteractionRecording.cjs.js.map +1 -1
- package/dist/UpdatedInteractionRecording.es.js +100 -87
- package/dist/UpdatedInteractionRecording.es.js.map +1 -1
- package/dist/components/UpdatedInteractionDetails.cjs.js +2 -2
- package/dist/components/UpdatedInteractionDetails.cjs.js.map +1 -1
- package/dist/components/UpdatedInteractionDetails.es.js +425 -380
- package/dist/components/UpdatedInteractionDetails.es.js.map +1 -1
- package/package.json +1 -1
- package/src/components/UpdatedInteractionDetails/UpdatedCompassScore.jsx +35 -10
- package/src/components/UpdatedInteractionDetails/UpdatedInteractionContext.jsx +1 -1
- package/src/components/UpdatedInteractionDetails/UpdatedInteractionDetails.jsx +34 -15
- package/src/components/UpdatedInteractionDetails/UpdatedInteractionRecording.jsx +13 -0
- package/src/components/UpdatedInteractionDetails/UpdatedInteractionSignals.jsx +24 -21
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { ShieldCheck as
|
|
4
|
-
import { U as
|
|
2
|
+
import at, { useState as _, useRef as R } from "react";
|
|
3
|
+
import { ShieldCheck as dt, TrendingUp as ct, Lightbulb as gt, ThumbsUp as We, ExternalLink as Ce, FileSignal as De, ChevronUp as Fe, ChevronDown as ze, ScrollText as pt, PauseCircle as ft, PlayCircle as ht, Info as yt, ArrowLeft as ye, ClipboardList as ut, CalendarDays as mt, PhoneIncoming as vt, Headset as xt, Repeat as bt, CircleUser as ue, History as St, ArrowRight as kt } from "lucide-react";
|
|
4
|
+
import { U as wt } from "../UpdatedInteractionRecording.es.js";
|
|
5
5
|
const c = {
|
|
6
6
|
strong: "var(--Grey-Strong, #2E3236)",
|
|
7
7
|
muted: "var(--Grey-Muted, #808183)",
|
|
@@ -11,17 +11,17 @@ const c = {
|
|
|
11
11
|
quoteLine: "var(--border-warm, #B2AEA8)",
|
|
12
12
|
quoteText: "var(--text-subtle-warm, #767473)",
|
|
13
13
|
iconBg: "var(--surface-hover, #F3F7F7)"
|
|
14
|
-
},
|
|
14
|
+
}, Wt = {
|
|
15
15
|
effective: "Effective",
|
|
16
16
|
strong: "Strong",
|
|
17
17
|
needs_improvement: "Needs Improvement",
|
|
18
18
|
mixed: "Mixed"
|
|
19
|
-
},
|
|
20
|
-
function
|
|
21
|
-
if (typeof document > "u" || document.getElementById(
|
|
19
|
+
}, me = "updated-coaching-synthesis-keyframes";
|
|
20
|
+
function Ct() {
|
|
21
|
+
if (typeof document > "u" || document.getElementById(me))
|
|
22
22
|
return;
|
|
23
23
|
const n = document.createElement("style");
|
|
24
|
-
n.id =
|
|
24
|
+
n.id = me, n.textContent = `
|
|
25
25
|
@keyframes updated-coaching-shimmer {
|
|
26
26
|
0% { background-position: -200% 0; }
|
|
27
27
|
100% { background-position: 200% 0; }
|
|
@@ -32,8 +32,8 @@ function vt() {
|
|
|
32
32
|
}
|
|
33
33
|
`, document.head.appendChild(n);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
const i =
|
|
35
|
+
function Dt({ overall: n }) {
|
|
36
|
+
const i = Wt[n] || (n ? n.replace(/_/g, " ") : "");
|
|
37
37
|
return /* @__PURE__ */ t("div", { style: {
|
|
38
38
|
display: "flex",
|
|
39
39
|
alignItems: "center",
|
|
@@ -52,7 +52,7 @@ function mt({ overall: n }) {
|
|
|
52
52
|
alignItems: "center",
|
|
53
53
|
gap: 6
|
|
54
54
|
}, children: [
|
|
55
|
-
/* @__PURE__ */ e(
|
|
55
|
+
/* @__PURE__ */ e(We, { size: 14, color: c.strong, strokeWidth: 1.5 }),
|
|
56
56
|
/* @__PURE__ */ e("span", { style: {
|
|
57
57
|
fontSize: 13,
|
|
58
58
|
fontWeight: 600,
|
|
@@ -63,7 +63,7 @@ function mt({ overall: n }) {
|
|
|
63
63
|
] })
|
|
64
64
|
] });
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Ft({ item: n }) {
|
|
67
67
|
const i = typeof n == "string" ? n : (n == null ? void 0 : n.text) || "", r = typeof n == "object" ? n == null ? void 0 : n.quote : null;
|
|
68
68
|
return /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 14 }, children: [
|
|
69
69
|
/* @__PURE__ */ e("div", { style: {
|
|
@@ -97,7 +97,7 @@ function xt({ item: n }) {
|
|
|
97
97
|
] })
|
|
98
98
|
] });
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function ve({ icon: n, label: i, items: r }) {
|
|
101
101
|
return !r || r.length === 0 ? null : /* @__PURE__ */ t("div", { style: {
|
|
102
102
|
flex: 1,
|
|
103
103
|
display: "flex",
|
|
@@ -128,13 +128,13 @@ function ye({ icon: n, label: i, items: r }) {
|
|
|
128
128
|
lineHeight: "normal"
|
|
129
129
|
}, children: i })
|
|
130
130
|
] }),
|
|
131
|
-
/* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", gap: 24 }, children: r.map((s, p) => /* @__PURE__ */ e(
|
|
131
|
+
/* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", gap: 24 }, children: r.map((s, p) => /* @__PURE__ */ e(Ft, { item: s }, p)) })
|
|
132
132
|
] });
|
|
133
133
|
}
|
|
134
|
-
const
|
|
135
|
-
var
|
|
136
|
-
if (
|
|
137
|
-
|
|
134
|
+
const zt = ({ data: n, loading: i, error: r }) => {
|
|
135
|
+
var f, u;
|
|
136
|
+
if (at.useEffect(() => {
|
|
137
|
+
Ct();
|
|
138
138
|
}, []), i)
|
|
139
139
|
return /* @__PURE__ */ t("div", { style: {
|
|
140
140
|
display: "flex",
|
|
@@ -159,21 +159,21 @@ const bt = ({ data: n, loading: i, error: r }) => {
|
|
|
159
159
|
fontWeight: 500
|
|
160
160
|
}, children: "Synthesizing coaching summary..." })
|
|
161
161
|
] }),
|
|
162
|
-
[180, 260, 220].map((
|
|
162
|
+
[180, 260, 220].map((b, k) => /* @__PURE__ */ e(
|
|
163
163
|
"div",
|
|
164
164
|
{
|
|
165
165
|
style: {
|
|
166
166
|
height: 10,
|
|
167
|
-
width:
|
|
167
|
+
width: b,
|
|
168
168
|
maxWidth: "100%",
|
|
169
169
|
borderRadius: 4,
|
|
170
170
|
background: `linear-gradient(90deg, ${c.absent} 25%, var(--shimmer-mid, #ECECEC) 50%, ${c.absent} 75%)`,
|
|
171
171
|
backgroundSize: "200% 100%",
|
|
172
172
|
animation: "updated-coaching-shimmer 1.8s ease-in-out infinite",
|
|
173
|
-
animationDelay: `${
|
|
173
|
+
animationDelay: `${k * 0.2}s`
|
|
174
174
|
}
|
|
175
175
|
},
|
|
176
|
-
|
|
176
|
+
k
|
|
177
177
|
))
|
|
178
178
|
] });
|
|
179
179
|
if (r)
|
|
@@ -183,7 +183,7 @@ const bt = ({ data: n, loading: i, error: r }) => {
|
|
|
183
183
|
}, children: "Unable to generate coaching summary." });
|
|
184
184
|
if (!n)
|
|
185
185
|
return null;
|
|
186
|
-
const s = n.strengths || [], p = n.improvements || [],
|
|
186
|
+
const s = n.strengths || [], p = n.improvements || [], y = typeof n.one_liner == "string" ? n.one_liner : ((f = n.one_liner) == null ? void 0 : f.text) || "", v = typeof n.context == "string" ? n.context : ((u = n.context) == null ? void 0 : u.text) || "";
|
|
187
187
|
return /* @__PURE__ */ t("div", { style: {
|
|
188
188
|
display: "flex",
|
|
189
189
|
flexDirection: "column",
|
|
@@ -195,7 +195,7 @@ const bt = ({ data: n, loading: i, error: r }) => {
|
|
|
195
195
|
alignItems: "center",
|
|
196
196
|
gap: 8
|
|
197
197
|
}, children: [
|
|
198
|
-
/* @__PURE__ */ e(
|
|
198
|
+
/* @__PURE__ */ e(dt, { size: 20, color: c.accent, strokeWidth: 2 }),
|
|
199
199
|
/* @__PURE__ */ e("span", { style: {
|
|
200
200
|
fontSize: 16,
|
|
201
201
|
fontWeight: 600,
|
|
@@ -205,13 +205,13 @@ const bt = ({ data: n, loading: i, error: r }) => {
|
|
|
205
205
|
textTransform: "uppercase"
|
|
206
206
|
}, children: "Coaching Summary" })
|
|
207
207
|
] }),
|
|
208
|
-
|
|
208
|
+
y && /* @__PURE__ */ e("div", { style: {
|
|
209
209
|
fontSize: 14,
|
|
210
210
|
fontWeight: 500,
|
|
211
211
|
color: c.strong,
|
|
212
212
|
fontFamily: "var(--font-sans)",
|
|
213
213
|
lineHeight: 1.5
|
|
214
|
-
}, children:
|
|
214
|
+
}, children: y }),
|
|
215
215
|
/* @__PURE__ */ t("div", { style: {
|
|
216
216
|
display: "flex",
|
|
217
217
|
alignItems: "flex-start",
|
|
@@ -226,7 +226,7 @@ const bt = ({ data: n, loading: i, error: r }) => {
|
|
|
226
226
|
lineHeight: 1.5,
|
|
227
227
|
flex: 1
|
|
228
228
|
}, children: v }),
|
|
229
|
-
n.overall && /* @__PURE__ */ e(
|
|
229
|
+
n.overall && /* @__PURE__ */ e(Dt, { overall: n.overall })
|
|
230
230
|
] }),
|
|
231
231
|
(s.length > 0 || p.length > 0) && /* @__PURE__ */ t("div", { style: {
|
|
232
232
|
display: "flex",
|
|
@@ -235,17 +235,17 @@ const bt = ({ data: n, loading: i, error: r }) => {
|
|
|
235
235
|
borderTop: `1px solid ${c.absent}`
|
|
236
236
|
}, children: [
|
|
237
237
|
/* @__PURE__ */ e(
|
|
238
|
-
|
|
238
|
+
ve,
|
|
239
239
|
{
|
|
240
|
-
icon: /* @__PURE__ */ e(
|
|
240
|
+
icon: /* @__PURE__ */ e(ct, { size: 14, color: c.strong, strokeWidth: 1.5 }),
|
|
241
241
|
label: "Key Strengths",
|
|
242
242
|
items: s
|
|
243
243
|
}
|
|
244
244
|
),
|
|
245
245
|
/* @__PURE__ */ e(
|
|
246
|
-
|
|
246
|
+
ve,
|
|
247
247
|
{
|
|
248
|
-
icon: /* @__PURE__ */ e(
|
|
248
|
+
icon: /* @__PURE__ */ e(gt, { size: 14, color: c.strong, strokeWidth: 1.5 }),
|
|
249
249
|
label: "Improvements",
|
|
250
250
|
items: p
|
|
251
251
|
}
|
|
@@ -253,11 +253,11 @@ const bt = ({ data: n, loading: i, error: r }) => {
|
|
|
253
253
|
] })
|
|
254
254
|
] });
|
|
255
255
|
};
|
|
256
|
-
function
|
|
256
|
+
function It(n) {
|
|
257
257
|
const i = Math.floor(n / 60), r = Math.round(n % 60);
|
|
258
258
|
return `${i}:${r.toString().padStart(2, "0")}`;
|
|
259
259
|
}
|
|
260
|
-
const
|
|
260
|
+
const _t = {
|
|
261
261
|
display: "flex",
|
|
262
262
|
justifyContent: "space-between",
|
|
263
263
|
padding: "8px 8px 12px 8px",
|
|
@@ -268,34 +268,34 @@ const kt = {
|
|
|
268
268
|
fontWeight: 400,
|
|
269
269
|
lineHeight: "normal",
|
|
270
270
|
borderBottom: "1px solid var(--Grey-absent, #D9D9D9)"
|
|
271
|
-
},
|
|
271
|
+
}, xe = {
|
|
272
272
|
display: "flex",
|
|
273
273
|
flexDirection: "column",
|
|
274
274
|
flex: "1 0 0",
|
|
275
275
|
gap: 12,
|
|
276
276
|
minWidth: 0
|
|
277
|
-
},
|
|
277
|
+
}, At = ({
|
|
278
278
|
meta: n = {},
|
|
279
279
|
callPurpose: i = {},
|
|
280
280
|
classification: r = {},
|
|
281
281
|
dimensions: s = [],
|
|
282
282
|
outcomeQuality: p = "Neutral",
|
|
283
|
-
onMoreDetails:
|
|
283
|
+
onMoreDetails: y
|
|
284
284
|
}) => {
|
|
285
|
-
const v = n.duration_seconds != null ?
|
|
285
|
+
const v = n.duration_seconds != null ? It(n.duration_seconds) : null, f = n.message_count, u = i.interaction_driver, b = r.interaction_paradigm, k = [
|
|
286
286
|
v != null && { label: "Duration", value: v },
|
|
287
|
-
|
|
288
|
-
...s.filter((l,
|
|
287
|
+
u != null && { label: "Driver", value: u },
|
|
288
|
+
...s.filter((l, h) => h % 2 === 0).map((l) => ({ label: l.label || l.key, value: l.value })),
|
|
289
289
|
{ label: "Outcome Quality", value: p }
|
|
290
|
-
].filter(Boolean),
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
...s.filter((l,
|
|
294
|
-
{ label:
|
|
290
|
+
].filter(Boolean), C = [
|
|
291
|
+
f != null && { label: "Messages", value: f },
|
|
292
|
+
b != null && { label: "Paradigm", value: b },
|
|
293
|
+
...s.filter((l, h) => h % 2 === 1).map((l) => ({ label: l.label || l.key, value: l.value }))
|
|
294
|
+
// { label: 'More Details', isLink: true },
|
|
295
295
|
].filter(Boolean), d = (l) => l.isLink ? /* @__PURE__ */ t(
|
|
296
296
|
"div",
|
|
297
297
|
{
|
|
298
|
-
onClick:
|
|
298
|
+
onClick: y,
|
|
299
299
|
style: {
|
|
300
300
|
display: "flex",
|
|
301
301
|
alignItems: "center",
|
|
@@ -305,7 +305,7 @@ const kt = {
|
|
|
305
305
|
fontFamily: "var(--font-sans)"
|
|
306
306
|
},
|
|
307
307
|
children: [
|
|
308
|
-
/* @__PURE__ */ e(
|
|
308
|
+
/* @__PURE__ */ e(Ce, { size: 16, color: "#808183", strokeWidth: 1.5 }),
|
|
309
309
|
/* @__PURE__ */ e("span", { style: { color: "var(--Grey-Strong, #2E3236)", fontSize: 13, fontWeight: 400 }, children: l.label })
|
|
310
310
|
]
|
|
311
311
|
},
|
|
@@ -313,7 +313,7 @@ const kt = {
|
|
|
313
313
|
) : /* @__PURE__ */ t(
|
|
314
314
|
"div",
|
|
315
315
|
{
|
|
316
|
-
style:
|
|
316
|
+
style: _t,
|
|
317
317
|
children: [
|
|
318
318
|
/* @__PURE__ */ e("span", { style: { color: "var(--Grey-Strong, #2E3236)", whiteSpace: "nowrap", flexShrink: 0 }, children: l.label }),
|
|
319
319
|
/* @__PURE__ */ e("span", { style: { color: "var(--Grey-Muted, #808183)", textAlign: "right" }, children: l.value })
|
|
@@ -331,8 +331,8 @@ const kt = {
|
|
|
331
331
|
alignSelf: "stretch"
|
|
332
332
|
},
|
|
333
333
|
children: [
|
|
334
|
-
/* @__PURE__ */ e("div", { style:
|
|
335
|
-
/* @__PURE__ */ e("div", { style:
|
|
334
|
+
/* @__PURE__ */ e("div", { style: xe, children: k.map((l) => d(l)) }),
|
|
335
|
+
/* @__PURE__ */ e("div", { style: xe, children: C.map((l) => d(l)) })
|
|
336
336
|
]
|
|
337
337
|
}
|
|
338
338
|
);
|
|
@@ -342,16 +342,16 @@ const kt = {
|
|
|
342
342
|
absent: "var(--Grey-absent, #D9D9D9)",
|
|
343
343
|
white: "var(--Grey-White, #FFF)",
|
|
344
344
|
cardBg: "var(--surface-warm-40, rgba(243, 241, 229, 0.40))"
|
|
345
|
-
}, x = 1.2,
|
|
345
|
+
}, x = 1.2, be = 3, Se = (n) => n != null ? Math.round(n * 100) + "%" : "—", ke = (n) => {
|
|
346
346
|
if (n == null)
|
|
347
347
|
return "—";
|
|
348
348
|
const i = (n * 100).toFixed(1);
|
|
349
349
|
return n > 0 ? `+${i}pp` : `${i}pp`;
|
|
350
|
-
},
|
|
351
|
-
var
|
|
350
|
+
}, Gt = ({ outcomeLift: n, driverLabels: i = [] }) => {
|
|
351
|
+
var k;
|
|
352
352
|
if (!n || n.lift == null)
|
|
353
353
|
return null;
|
|
354
|
-
const r = n.p_expected, s = n.p_full, p = n.lift_raw ?? (s != null && r != null ? s - r : null),
|
|
354
|
+
const r = n.p_expected, s = n.p_full, p = n.lift_raw ?? (s != null && r != null ? s - r : null), y = n.lift, v = (k = n.interpretation) != null && k.lift_band ? n.interpretation.lift_band.replace(/_/g, " ") : y >= 0 ? "Positive" : "Negative", f = v.charAt(0).toUpperCase() + v.slice(1), u = i.slice(0, be), b = i.length - be;
|
|
355
355
|
return /* @__PURE__ */ t(
|
|
356
356
|
"div",
|
|
357
357
|
{
|
|
@@ -402,7 +402,7 @@ const kt = {
|
|
|
402
402
|
},
|
|
403
403
|
children: [
|
|
404
404
|
/* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: a.strong, lineHeight: x }, children: "vs. Average Agent:" }),
|
|
405
|
-
/* @__PURE__ */ e("span", { style: { fontSize: 14, fontWeight: 600, color: a.strong, lineHeight: x }, children:
|
|
405
|
+
/* @__PURE__ */ e("span", { style: { fontSize: 14, fontWeight: 600, color: a.strong, lineHeight: x }, children: ke(y) }),
|
|
406
406
|
/* @__PURE__ */ t(
|
|
407
407
|
"div",
|
|
408
408
|
{
|
|
@@ -414,8 +414,8 @@ const kt = {
|
|
|
414
414
|
borderLeft: `1px solid ${a.absent}`
|
|
415
415
|
},
|
|
416
416
|
children: [
|
|
417
|
-
/* @__PURE__ */ e(
|
|
418
|
-
/* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 600, color: a.strong, lineHeight: x }, children:
|
|
417
|
+
/* @__PURE__ */ e(We, { size: 14, color: a.strong }),
|
|
418
|
+
/* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 600, color: a.strong, lineHeight: x }, children: f })
|
|
419
419
|
]
|
|
420
420
|
}
|
|
421
421
|
)
|
|
@@ -435,7 +435,7 @@ const kt = {
|
|
|
435
435
|
},
|
|
436
436
|
children: [
|
|
437
437
|
/* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 16, alignItems: "center" }, children: [
|
|
438
|
-
/* @__PURE__ */ e("span", { style: { fontSize: 28, fontWeight: 400, color: a.muted, fontFamily: "var(--font-sans)", lineHeight: x }, children:
|
|
438
|
+
/* @__PURE__ */ e("span", { style: { fontSize: 28, fontWeight: 400, color: a.muted, fontFamily: "var(--font-sans)", lineHeight: x }, children: Se(r) }),
|
|
439
439
|
/* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
|
|
440
440
|
/* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: a.strong, fontFamily: "var(--font-sans)", lineHeight: x }, children: "Expected Outcome" }),
|
|
441
441
|
/* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: a.muted, fontFamily: "var(--font-sans)", lineHeight: x }, children: "Based on call type & difficulty" })
|
|
@@ -449,7 +449,7 @@ const kt = {
|
|
|
449
449
|
paddingLeft: 24,
|
|
450
450
|
borderLeft: `1px solid ${a.absent}`
|
|
451
451
|
}, children: [
|
|
452
|
-
/* @__PURE__ */ e("span", { style: { fontSize: 28, fontWeight: 400, color: a.muted, fontFamily: "var(--font-sans)", lineHeight: x }, children:
|
|
452
|
+
/* @__PURE__ */ e("span", { style: { fontSize: 28, fontWeight: 400, color: a.muted, fontFamily: "var(--font-sans)", lineHeight: x }, children: ke(p) }),
|
|
453
453
|
/* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
|
|
454
454
|
/* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: a.strong, fontFamily: "var(--font-sans)", lineHeight: x }, children: "Agent Impact" }),
|
|
455
455
|
/* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: a.muted, fontFamily: "var(--font-sans)", lineHeight: x }, children: "Behavior-driven change" })
|
|
@@ -463,7 +463,7 @@ const kt = {
|
|
|
463
463
|
paddingLeft: 24,
|
|
464
464
|
borderLeft: `1px solid ${a.absent}`
|
|
465
465
|
}, children: [
|
|
466
|
-
/* @__PURE__ */ e("span", { style: { fontSize: 28, fontWeight: 400, color: a.strong, fontFamily: "var(--font-sans)", lineHeight: x }, children:
|
|
466
|
+
/* @__PURE__ */ e("span", { style: { fontSize: 28, fontWeight: 400, color: a.strong, fontFamily: "var(--font-sans)", lineHeight: x }, children: Se(s) }),
|
|
467
467
|
/* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
|
|
468
468
|
/* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 600, color: a.strong, fontFamily: "var(--font-sans)", lineHeight: x }, children: "Predicted Outcome" }),
|
|
469
469
|
/* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: a.muted, fontFamily: "var(--font-sans)", lineHeight: x }, children: "With agent behaviors" })
|
|
@@ -488,7 +488,7 @@ const kt = {
|
|
|
488
488
|
}
|
|
489
489
|
),
|
|
490
490
|
/* @__PURE__ */ t("div", { style: { display: "flex", flexWrap: "wrap", gap: 4 }, children: [
|
|
491
|
-
|
|
491
|
+
u.map((C, d) => /* @__PURE__ */ e(
|
|
492
492
|
"div",
|
|
493
493
|
{
|
|
494
494
|
style: {
|
|
@@ -514,13 +514,13 @@ const kt = {
|
|
|
514
514
|
textOverflow: "ellipsis",
|
|
515
515
|
maxWidth: 200
|
|
516
516
|
},
|
|
517
|
-
children:
|
|
517
|
+
children: C
|
|
518
518
|
}
|
|
519
519
|
)
|
|
520
520
|
},
|
|
521
521
|
d
|
|
522
522
|
)),
|
|
523
|
-
|
|
523
|
+
b > 0 && /* @__PURE__ */ e(
|
|
524
524
|
"div",
|
|
525
525
|
{
|
|
526
526
|
style: {
|
|
@@ -545,7 +545,7 @@ const kt = {
|
|
|
545
545
|
},
|
|
546
546
|
children: [
|
|
547
547
|
"+ ",
|
|
548
|
-
|
|
548
|
+
b
|
|
549
549
|
]
|
|
550
550
|
}
|
|
551
551
|
)
|
|
@@ -556,15 +556,15 @@ const kt = {
|
|
|
556
556
|
]
|
|
557
557
|
}
|
|
558
558
|
);
|
|
559
|
-
},
|
|
560
|
-
const [p,
|
|
559
|
+
}, we = ({ children: n, size: i = 28, onClick: r, title: s }) => {
|
|
560
|
+
const [p, y] = _(!1);
|
|
561
561
|
return /* @__PURE__ */ e(
|
|
562
562
|
"div",
|
|
563
563
|
{
|
|
564
564
|
title: s,
|
|
565
565
|
onClick: r,
|
|
566
|
-
onMouseEnter: () =>
|
|
567
|
-
onMouseLeave: () =>
|
|
566
|
+
onMouseEnter: () => y(!0),
|
|
567
|
+
onMouseLeave: () => y(!1),
|
|
568
568
|
style: {
|
|
569
569
|
display: "flex",
|
|
570
570
|
alignItems: "center",
|
|
@@ -580,7 +580,7 @@ const kt = {
|
|
|
580
580
|
children: n
|
|
581
581
|
}
|
|
582
582
|
);
|
|
583
|
-
},
|
|
583
|
+
}, Mt = ({
|
|
584
584
|
signals: n = { signals: [], present_count: 0, total_signals_evaluated: 0 },
|
|
585
585
|
expandedSignals: i = /* @__PURE__ */ new Set(),
|
|
586
586
|
toggleSignal: r = () => {
|
|
@@ -589,15 +589,15 @@ const kt = {
|
|
|
589
589
|
},
|
|
590
590
|
highlightTurns: p = () => {
|
|
591
591
|
},
|
|
592
|
-
onShowInTranscript:
|
|
592
|
+
onShowInTranscript: y = () => {
|
|
593
593
|
},
|
|
594
594
|
timelinePlaying: v = !1,
|
|
595
|
-
currentTimeSeconds:
|
|
595
|
+
currentTimeSeconds: f = 0
|
|
596
596
|
}) => {
|
|
597
|
-
const
|
|
598
|
-
const l = Math.floor(d / 6e4),
|
|
599
|
-
return `${l.toString().padStart(2, "0")}:${
|
|
600
|
-
},
|
|
597
|
+
const u = (n == null ? void 0 : n.signals) ?? [], b = (n == null ? void 0 : n.present_count) ?? u.length, k = (d) => {
|
|
598
|
+
const l = Math.floor(d / 6e4), h = Math.floor(d % 6e4 / 1e3);
|
|
599
|
+
return `${l.toString().padStart(2, "0")}:${h.toString().padStart(2, "0")}`;
|
|
600
|
+
}, C = (d) => v && d.start_ms != null && f * 1e3 >= d.start_ms && f * 1e3 <= (d.end_ms ?? d.start_ms + 5e3);
|
|
601
601
|
return /* @__PURE__ */ t("div", { style: {
|
|
602
602
|
display: "flex",
|
|
603
603
|
flexDirection: "column",
|
|
@@ -621,7 +621,7 @@ const kt = {
|
|
|
621
621
|
borderRadius: 9999,
|
|
622
622
|
background: "var(--surface-hover, #F3F7F7)",
|
|
623
623
|
flexShrink: 0
|
|
624
|
-
}, children: /* @__PURE__ */ e(
|
|
624
|
+
}, children: /* @__PURE__ */ e(De, { size: 20, color: "#2E3236", strokeWidth: 1.5 }) }),
|
|
625
625
|
/* @__PURE__ */ t("div", { style: {
|
|
626
626
|
display: "flex",
|
|
627
627
|
alignItems: "center",
|
|
@@ -638,7 +638,7 @@ const kt = {
|
|
|
638
638
|
fontWeight: 500,
|
|
639
639
|
color: "var(--Grey-Strong, #2E3236)"
|
|
640
640
|
}, children: [
|
|
641
|
-
|
|
641
|
+
b,
|
|
642
642
|
" Signals Detected"
|
|
643
643
|
] })
|
|
644
644
|
] })
|
|
@@ -650,18 +650,18 @@ const kt = {
|
|
|
650
650
|
background: "var(--Grey-White, #FFF)",
|
|
651
651
|
gap: 8
|
|
652
652
|
}, children: [
|
|
653
|
-
|
|
653
|
+
u.length === 0 && /* @__PURE__ */ e("div", { style: {
|
|
654
654
|
padding: "8px 0",
|
|
655
655
|
fontSize: 14,
|
|
656
656
|
color: "var(--Grey-Muted, #808183)"
|
|
657
657
|
}, children: "No signals detected." }),
|
|
658
|
-
|
|
659
|
-
var
|
|
660
|
-
const
|
|
658
|
+
u.map((d, l) => {
|
|
659
|
+
var F, I, P;
|
|
660
|
+
const h = d.key ?? d.id ?? l, m = i.has(h), D = ((F = d.observations) == null ? void 0 : F.length) ?? 0;
|
|
661
661
|
return /* @__PURE__ */ t(
|
|
662
662
|
"div",
|
|
663
663
|
{
|
|
664
|
-
id: `signal-${
|
|
664
|
+
id: `signal-${h}`,
|
|
665
665
|
style: {
|
|
666
666
|
display: "flex",
|
|
667
667
|
flexDirection: "column",
|
|
@@ -672,7 +672,7 @@ const kt = {
|
|
|
672
672
|
/* @__PURE__ */ t(
|
|
673
673
|
"button",
|
|
674
674
|
{
|
|
675
|
-
onClick: () => r(
|
|
675
|
+
onClick: () => r(h),
|
|
676
676
|
style: {
|
|
677
677
|
display: "flex",
|
|
678
678
|
padding: "8px 0",
|
|
@@ -694,28 +694,28 @@ const kt = {
|
|
|
694
694
|
color: "var(--text-dark, #0B0A0A)",
|
|
695
695
|
lineHeight: 1.71
|
|
696
696
|
}, children: [
|
|
697
|
-
d.display_name || ((
|
|
698
|
-
|
|
697
|
+
d.display_name || ((I = d.key) == null ? void 0 : I.replace(/_/g, " ")),
|
|
698
|
+
D > 0 && /* @__PURE__ */ t("span", { style: {
|
|
699
699
|
fontWeight: 600,
|
|
700
700
|
color: "var(--text-dark, #0B0A0A)",
|
|
701
701
|
marginLeft: 6
|
|
702
702
|
}, children: [
|
|
703
703
|
"(",
|
|
704
|
-
|
|
704
|
+
D,
|
|
705
705
|
")"
|
|
706
706
|
] })
|
|
707
707
|
] }),
|
|
708
|
-
|
|
708
|
+
m ? /* @__PURE__ */ e(Fe, { size: 20, color: "#767473" }) : /* @__PURE__ */ e(ze, { size: 20, color: "#767473" })
|
|
709
709
|
]
|
|
710
710
|
}
|
|
711
711
|
),
|
|
712
|
-
|
|
712
|
+
m && ((P = d.observations) == null ? void 0 : P.length) > 0 && /* @__PURE__ */ e("div", { style: {
|
|
713
713
|
display: "flex",
|
|
714
714
|
flexDirection: "column",
|
|
715
715
|
alignSelf: "stretch",
|
|
716
716
|
gap: 0
|
|
717
|
-
}, children: d.observations.map((z,
|
|
718
|
-
var
|
|
717
|
+
}, children: d.observations.map((z, j) => {
|
|
718
|
+
var G, M, L;
|
|
719
719
|
return /* @__PURE__ */ t(
|
|
720
720
|
"div",
|
|
721
721
|
{
|
|
@@ -740,7 +740,7 @@ const kt = {
|
|
|
740
740
|
color: "var(--text-subtle-warm, #767473)",
|
|
741
741
|
lineHeight: 1.5
|
|
742
742
|
}, children: z.reason || z.explanation }),
|
|
743
|
-
((
|
|
743
|
+
((M = (G = z.evidence) == null ? void 0 : G[0]) == null ? void 0 : M.start_ms) != null && /* @__PURE__ */ t(
|
|
744
744
|
"div",
|
|
745
745
|
{
|
|
746
746
|
style: {
|
|
@@ -751,14 +751,14 @@ const kt = {
|
|
|
751
751
|
},
|
|
752
752
|
children: [
|
|
753
753
|
/* @__PURE__ */ e(
|
|
754
|
-
|
|
754
|
+
we,
|
|
755
755
|
{
|
|
756
756
|
size: 28,
|
|
757
757
|
title: "Show in transcript",
|
|
758
|
-
onClick: (
|
|
759
|
-
|
|
758
|
+
onClick: (W) => {
|
|
759
|
+
W.stopPropagation(), y(z.evidence[0].start_ms);
|
|
760
760
|
},
|
|
761
|
-
children: /* @__PURE__ */ e(
|
|
761
|
+
children: /* @__PURE__ */ e(pt, { size: 16, color: "#808183", strokeWidth: 1.5 })
|
|
762
762
|
}
|
|
763
763
|
),
|
|
764
764
|
/* @__PURE__ */ e("span", { style: {
|
|
@@ -767,69 +767,72 @@ const kt = {
|
|
|
767
767
|
color: "var(--Grey-Muted, #808183)",
|
|
768
768
|
lineHeight: 1.2,
|
|
769
769
|
whiteSpace: "nowrap"
|
|
770
|
-
}, children:
|
|
770
|
+
}, children: k(z.evidence[0].start_ms) })
|
|
771
771
|
]
|
|
772
772
|
}
|
|
773
773
|
)
|
|
774
774
|
] }),
|
|
775
|
-
(
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
775
|
+
(L = z.evidence) == null ? void 0 : L.map((W, O) => {
|
|
776
|
+
const A = W.start_ms != null && W.end_ms != null;
|
|
777
|
+
return W.text && /* @__PURE__ */ t(
|
|
778
|
+
"div",
|
|
779
|
+
{
|
|
780
|
+
onClick: (Y) => {
|
|
781
|
+
Y.stopPropagation(), A && s(W);
|
|
782
|
+
},
|
|
783
|
+
onMouseEnter: () => p(W.turn_ids ?? []),
|
|
784
|
+
onMouseLeave: () => p([]),
|
|
785
|
+
style: {
|
|
786
|
+
display: "flex",
|
|
787
|
+
alignItems: "center",
|
|
788
|
+
gap: 8,
|
|
789
|
+
padding: "8px 0",
|
|
790
|
+
cursor: A ? "pointer" : "default"
|
|
791
|
+
},
|
|
792
|
+
children: [
|
|
793
|
+
A && /* @__PURE__ */ e(we, { size: 28, children: C(W) ? /* @__PURE__ */ e(
|
|
794
|
+
ft,
|
|
795
|
+
{
|
|
796
|
+
size: 17,
|
|
797
|
+
color: "var(--Grey-Muted, #808183)",
|
|
798
|
+
strokeWidth: 1.5
|
|
799
|
+
}
|
|
800
|
+
) : /* @__PURE__ */ e(
|
|
801
|
+
ht,
|
|
802
|
+
{
|
|
803
|
+
size: 17,
|
|
804
|
+
color: "var(--Grey-Muted, #808183)",
|
|
805
|
+
strokeWidth: 1
|
|
806
|
+
}
|
|
807
|
+
) }),
|
|
808
|
+
/* @__PURE__ */ t("span", { style: {
|
|
809
|
+
fontSize: 13,
|
|
810
|
+
fontWeight: 400,
|
|
811
|
+
color: "var(--Grey-Strong, #2E3236)",
|
|
812
|
+
lineHeight: 1.2
|
|
813
|
+
}, children: [
|
|
814
|
+
"“",
|
|
815
|
+
W.text,
|
|
816
|
+
"”"
|
|
817
|
+
] })
|
|
818
|
+
]
|
|
789
819
|
},
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
{
|
|
794
|
-
size: 17,
|
|
795
|
-
color: "var(--Grey-Muted, #808183)",
|
|
796
|
-
strokeWidth: 1.5
|
|
797
|
-
}
|
|
798
|
-
) : /* @__PURE__ */ e(
|
|
799
|
-
lt,
|
|
800
|
-
{
|
|
801
|
-
size: 17,
|
|
802
|
-
color: "var(--Grey-Muted, #808183)",
|
|
803
|
-
strokeWidth: 1
|
|
804
|
-
}
|
|
805
|
-
) }),
|
|
806
|
-
/* @__PURE__ */ t("span", { style: {
|
|
807
|
-
fontSize: 13,
|
|
808
|
-
fontWeight: 400,
|
|
809
|
-
color: "var(--Grey-Strong, #2E3236)",
|
|
810
|
-
lineHeight: 1.2
|
|
811
|
-
}, children: [
|
|
812
|
-
"“",
|
|
813
|
-
I.text,
|
|
814
|
-
"”"
|
|
815
|
-
] })
|
|
816
|
-
]
|
|
817
|
-
},
|
|
818
|
-
B
|
|
819
|
-
))
|
|
820
|
+
O
|
|
821
|
+
);
|
|
822
|
+
})
|
|
820
823
|
]
|
|
821
824
|
},
|
|
822
|
-
z.key ??
|
|
825
|
+
z.key ?? j
|
|
823
826
|
);
|
|
824
827
|
}) })
|
|
825
828
|
]
|
|
826
829
|
},
|
|
827
|
-
|
|
830
|
+
h
|
|
828
831
|
);
|
|
829
832
|
})
|
|
830
833
|
] })
|
|
831
834
|
] });
|
|
832
|
-
},
|
|
835
|
+
}, w = {
|
|
833
836
|
strong: "var(--Grey-Strong, #2E3236)",
|
|
834
837
|
muted: "var(--Grey-Muted, #808183)",
|
|
835
838
|
absent: "var(--Grey-absent, #D9D9D9)",
|
|
@@ -837,48 +840,48 @@ const kt = {
|
|
|
837
840
|
accent: "var(--rail-orange, #C98A5A)",
|
|
838
841
|
track: "var(--rail-surface-2, #E3E1D7)",
|
|
839
842
|
infoIcon: "var(--color-input-border, #ACACAD)"
|
|
840
|
-
},
|
|
841
|
-
const
|
|
842
|
-
const
|
|
843
|
+
}, Ht = ({ score: n = 4, maxScore: i = 10 }) => {
|
|
844
|
+
const b = Math.min(Math.round(n / i * 5), 5), k = 180 / 5, C = (h) => {
|
|
845
|
+
const m = h * Math.PI / 180;
|
|
843
846
|
return {
|
|
844
|
-
x: 121.5 + 85 * Math.cos(
|
|
845
|
-
y: 123 - 85 * Math.sin(
|
|
847
|
+
x: 121.5 + 85 * Math.cos(m),
|
|
848
|
+
y: 123 - 85 * Math.sin(m)
|
|
846
849
|
};
|
|
847
|
-
}, d = (
|
|
848
|
-
const
|
|
849
|
-
return `M ${
|
|
850
|
+
}, d = (h, m) => {
|
|
851
|
+
const D = C(h), F = C(m), I = h - m > 180 ? 1 : 0;
|
|
852
|
+
return `M ${D.x} ${D.y} A 85 85 0 ${I} 1 ${F.x} ${F.y}`;
|
|
850
853
|
}, l = 2;
|
|
851
|
-
return /* @__PURE__ */ e("svg", { width:
|
|
852
|
-
const
|
|
854
|
+
return /* @__PURE__ */ e("svg", { width: "100%", viewBox: "0 0 243 130", fill: "none", style: { maxWidth: 243 }, children: Array.from({ length: 5 }, (h, m) => {
|
|
855
|
+
const D = 180 - m * k - (m > 0 ? l / 2 : 0), F = 180 - (m + 1) * k + (m < 5 - 1 ? l / 2 : 0), I = m < b;
|
|
853
856
|
return /* @__PURE__ */ e(
|
|
854
857
|
"path",
|
|
855
858
|
{
|
|
856
|
-
d: d(
|
|
857
|
-
stroke:
|
|
859
|
+
d: d(D, F),
|
|
860
|
+
stroke: I ? w.strong : w.track,
|
|
858
861
|
strokeWidth: 30,
|
|
859
862
|
strokeLinecap: "butt",
|
|
860
863
|
fill: "none"
|
|
861
864
|
},
|
|
862
|
-
|
|
865
|
+
m
|
|
863
866
|
);
|
|
864
867
|
}) });
|
|
865
|
-
},
|
|
868
|
+
}, Et = ({ value: n = 0, maxValue: i = 5 }) => /* @__PURE__ */ e("div", { style: { display: "flex", gap: 2 }, children: Array.from({ length: i }, (r, s) => /* @__PURE__ */ e(
|
|
866
869
|
"div",
|
|
867
870
|
{
|
|
868
871
|
style: {
|
|
869
872
|
width: 22,
|
|
870
873
|
height: 6,
|
|
871
874
|
borderRadius: 1,
|
|
872
|
-
background: s < n ?
|
|
875
|
+
background: s < n ? w.strong : w.track
|
|
873
876
|
}
|
|
874
877
|
},
|
|
875
878
|
s
|
|
876
|
-
)) }),
|
|
879
|
+
)) }), Tt = {
|
|
877
880
|
CSAT: "Predicted Customer Satisfaction",
|
|
878
881
|
Resolution: "Predicted Resolution: was the issue fully resolved?",
|
|
879
882
|
"Process Adherence": "Process Adherence: Did the agent follow procedures?",
|
|
880
883
|
Communication: "Predicted Communication Quality: Clarity, Empathy, Professionalism"
|
|
881
|
-
},
|
|
884
|
+
}, Rt = ({ text: n, children: i }) => {
|
|
882
885
|
const [r, s] = _(!1);
|
|
883
886
|
return /* @__PURE__ */ t(
|
|
884
887
|
"div",
|
|
@@ -915,7 +918,7 @@ const kt = {
|
|
|
915
918
|
]
|
|
916
919
|
}
|
|
917
920
|
);
|
|
918
|
-
},
|
|
921
|
+
}, Pt = ({ label: n, value: i = 0, maxValue: r = 5 }) => /* @__PURE__ */ t("div", { style: {
|
|
919
922
|
display: "flex",
|
|
920
923
|
flexDirection: "column",
|
|
921
924
|
gap: 8,
|
|
@@ -930,20 +933,20 @@ const kt = {
|
|
|
930
933
|
/* @__PURE__ */ e("span", { style: {
|
|
931
934
|
fontSize: 12,
|
|
932
935
|
fontWeight: 400,
|
|
933
|
-
color:
|
|
936
|
+
color: w.strong,
|
|
934
937
|
fontFamily: "var(--font-sans)",
|
|
935
938
|
lineHeight: "normal"
|
|
936
939
|
}, children: n }),
|
|
937
|
-
/* @__PURE__ */ e(
|
|
940
|
+
/* @__PURE__ */ e(Rt, { text: Tt[n] || n, children: /* @__PURE__ */ e(yt, { size: 14, color: w.infoIcon, strokeWidth: 1, style: { cursor: "pointer" } }) })
|
|
938
941
|
] }),
|
|
939
|
-
/* @__PURE__ */ e(
|
|
940
|
-
] }),
|
|
942
|
+
/* @__PURE__ */ e(Et, { value: i, maxValue: r })
|
|
943
|
+
] }), Lt = ({
|
|
941
944
|
score: n = 83,
|
|
942
945
|
maxScore: i = 100,
|
|
943
946
|
predictedScore: r = 4,
|
|
944
947
|
predictedLabel: s = "Predicted Objective",
|
|
945
948
|
description: p = "",
|
|
946
|
-
legends:
|
|
949
|
+
legends: y = [
|
|
947
950
|
{ label: "CSAT", value: 3 },
|
|
948
951
|
{ label: "Resolution", value: 4 },
|
|
949
952
|
{ label: "Process Adherence", value: 5 },
|
|
@@ -956,9 +959,10 @@ const kt = {
|
|
|
956
959
|
flexDirection: "column",
|
|
957
960
|
padding: 24,
|
|
958
961
|
borderRadius: 8,
|
|
959
|
-
border: `1px solid ${
|
|
960
|
-
background:
|
|
962
|
+
border: `1px solid ${w.absent}`,
|
|
963
|
+
background: w.white,
|
|
961
964
|
alignSelf: "stretch",
|
|
965
|
+
flex: 1,
|
|
962
966
|
gap: 24
|
|
963
967
|
}, children: [
|
|
964
968
|
/* @__PURE__ */ t("div", { style: {
|
|
@@ -969,14 +973,14 @@ const kt = {
|
|
|
969
973
|
/* @__PURE__ */ e("span", { style: {
|
|
970
974
|
fontSize: 15,
|
|
971
975
|
fontWeight: 600,
|
|
972
|
-
color:
|
|
976
|
+
color: w.strong,
|
|
973
977
|
fontFamily: "var(--font-sans)",
|
|
974
978
|
lineHeight: 1.2
|
|
975
979
|
}, children: "Compass Score" }),
|
|
976
980
|
/* @__PURE__ */ e("span", { style: {
|
|
977
981
|
fontSize: 14,
|
|
978
982
|
fontWeight: 400,
|
|
979
|
-
color:
|
|
983
|
+
color: w.muted,
|
|
980
984
|
fontFamily: "var(--font-sans)",
|
|
981
985
|
lineHeight: "normal"
|
|
982
986
|
}, children: p })
|
|
@@ -985,25 +989,46 @@ const kt = {
|
|
|
985
989
|
display: "flex",
|
|
986
990
|
alignItems: "center",
|
|
987
991
|
justifyContent: "center",
|
|
988
|
-
gap:
|
|
989
|
-
flex: 1
|
|
992
|
+
gap: 24,
|
|
993
|
+
flex: 1,
|
|
994
|
+
overflow: "hidden"
|
|
990
995
|
}, children: [
|
|
991
996
|
/* @__PURE__ */ t("div", { style: {
|
|
992
|
-
|
|
993
|
-
|
|
997
|
+
position: "relative",
|
|
998
|
+
maxWidth: 243,
|
|
999
|
+
minWidth: 160,
|
|
1000
|
+
flex: "0 1 243px",
|
|
994
1001
|
flexDirection: "column",
|
|
995
1002
|
alignItems: "center",
|
|
996
|
-
|
|
1003
|
+
display: "flex"
|
|
997
1004
|
}, children: [
|
|
998
|
-
/* @__PURE__ */ e(
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
/* @__PURE__ */
|
|
1002
|
-
|
|
1005
|
+
/* @__PURE__ */ e(Ht, { score: n, maxScore: i }),
|
|
1006
|
+
(() => {
|
|
1007
|
+
const b = -(180 - (i > 0 ? Math.min(n / i, 1) : 0) * 180 - 45);
|
|
1008
|
+
return /* @__PURE__ */ t(
|
|
1009
|
+
"svg",
|
|
1010
|
+
{
|
|
1011
|
+
width: "34",
|
|
1012
|
+
height: "35",
|
|
1013
|
+
viewBox: "0 0 34 35",
|
|
1014
|
+
fill: "none",
|
|
1015
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1016
|
+
style: {
|
|
1017
|
+
marginTop: -24,
|
|
1018
|
+
transform: `rotate(${b}deg)`,
|
|
1019
|
+
transformOrigin: "center center"
|
|
1020
|
+
},
|
|
1021
|
+
children: [
|
|
1022
|
+
/* @__PURE__ */ e("path", { d: "M16 25.2169C19.958 25.2169 23.1667 22.0083 23.1667 18.0503C23.1667 14.0922 19.958 10.8836 16 10.8836C12.042 10.8836 8.83334 14.0922 8.83334 18.0503C8.83334 22.0083 12.042 25.2169 16 25.2169Z", fill: "var(--rail-orange, #C98A5A)" }),
|
|
1023
|
+
/* @__PURE__ */ e("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M30.4791 11.2328L33.4351 0L21.6888 3.09113C19.9212 2.41855 18.0036 2.05025 16 2.05025C7.16344 2.05025 0 9.2137 0 18.0503C0 26.8868 7.16344 34.0503 16 34.0503C24.8366 34.0503 32 26.8868 32 18.0503C32 15.6119 31.4546 13.301 30.4791 11.2328ZM16 30.5503C22.9036 30.5503 28.5 24.9538 28.5 18.0503C28.5 11.1467 22.9036 5.55025 16 5.55025C9.09644 5.55025 3.5 11.1467 3.5 18.0503C3.5 24.9538 9.09644 30.5503 16 30.5503Z", fill: "var(--rail-orange, #C98A5A)" })
|
|
1024
|
+
]
|
|
1025
|
+
}
|
|
1026
|
+
);
|
|
1027
|
+
})(),
|
|
1003
1028
|
/* @__PURE__ */ e("div", { style: {
|
|
1004
1029
|
fontSize: 28,
|
|
1005
1030
|
fontWeight: 400,
|
|
1006
|
-
color:
|
|
1031
|
+
color: w.strong,
|
|
1007
1032
|
fontFamily: "var(--font-sans)",
|
|
1008
1033
|
lineHeight: 1,
|
|
1009
1034
|
textAlign: "center",
|
|
@@ -1026,7 +1051,7 @@ const kt = {
|
|
|
1026
1051
|
/* @__PURE__ */ e("div", { style: {
|
|
1027
1052
|
fontSize: 28,
|
|
1028
1053
|
fontWeight: 400,
|
|
1029
|
-
color:
|
|
1054
|
+
color: w.strong,
|
|
1030
1055
|
fontFamily: "var(--font-sans)",
|
|
1031
1056
|
lineHeight: 1,
|
|
1032
1057
|
textAlign: "center"
|
|
@@ -1034,7 +1059,7 @@ const kt = {
|
|
|
1034
1059
|
/* @__PURE__ */ e("div", { style: {
|
|
1035
1060
|
fontSize: 14,
|
|
1036
1061
|
fontWeight: 400,
|
|
1037
|
-
color:
|
|
1062
|
+
color: w.muted,
|
|
1038
1063
|
fontFamily: "var(--font-sans)",
|
|
1039
1064
|
lineHeight: 1.43,
|
|
1040
1065
|
textAlign: "center"
|
|
@@ -1043,25 +1068,25 @@ const kt = {
|
|
|
1043
1068
|
/* @__PURE__ */ e("div", { style: {
|
|
1044
1069
|
width: "100%",
|
|
1045
1070
|
height: 1,
|
|
1046
|
-
background:
|
|
1071
|
+
background: w.absent
|
|
1047
1072
|
} }),
|
|
1048
|
-
|
|
1049
|
-
|
|
1073
|
+
y.map((f, u) => /* @__PURE__ */ e(
|
|
1074
|
+
Pt,
|
|
1050
1075
|
{
|
|
1051
|
-
label:
|
|
1052
|
-
value:
|
|
1076
|
+
label: f.label,
|
|
1077
|
+
value: f.value
|
|
1053
1078
|
},
|
|
1054
|
-
|
|
1079
|
+
u
|
|
1055
1080
|
))
|
|
1056
1081
|
] })
|
|
1057
1082
|
] })
|
|
1058
1083
|
] });
|
|
1059
|
-
},
|
|
1084
|
+
}, Bt = [
|
|
1060
1085
|
{ key: "overview", label: "Overview" },
|
|
1061
1086
|
{ key: "coaching", label: "Coaching Summary" },
|
|
1062
1087
|
{ key: "signals", label: "Signals & Recording" },
|
|
1063
1088
|
{ key: "comments", label: "Comments" }
|
|
1064
|
-
],
|
|
1089
|
+
], Nt = ({
|
|
1065
1090
|
title: n = "Wheel Stud Replacement Enquiry",
|
|
1066
1091
|
onBack: i,
|
|
1067
1092
|
// Data props — all optional with defaults for demo
|
|
@@ -1071,82 +1096,93 @@ const kt = {
|
|
|
1071
1096
|
// Audio/playback props — pass these when the host app manages audio externally
|
|
1072
1097
|
// (like InteractionDetailPanel does). If omitted, UpdatedInteractionRecording
|
|
1073
1098
|
// manages its own audio element internally.
|
|
1074
|
-
audioRef:
|
|
1099
|
+
audioRef: y,
|
|
1075
1100
|
currentTimeSeconds: v,
|
|
1076
|
-
timelinePlaying:
|
|
1077
|
-
playbackRate:
|
|
1078
|
-
timelineSegments:
|
|
1079
|
-
onSeek:
|
|
1080
|
-
onTogglePlay:
|
|
1101
|
+
timelinePlaying: f,
|
|
1102
|
+
playbackRate: u,
|
|
1103
|
+
timelineSegments: b,
|
|
1104
|
+
onSeek: k,
|
|
1105
|
+
onTogglePlay: C,
|
|
1081
1106
|
onSeekBack: d,
|
|
1082
1107
|
onSeekForward: l,
|
|
1083
|
-
onSetPlaybackRate:
|
|
1108
|
+
onSetPlaybackRate: h,
|
|
1084
1109
|
// Speaker names
|
|
1085
|
-
agentName:
|
|
1086
|
-
customerName:
|
|
1110
|
+
agentName: m,
|
|
1111
|
+
customerName: D,
|
|
1087
1112
|
// Transcript props — pass real transcript data from the host app
|
|
1088
|
-
transcript:
|
|
1089
|
-
activeTurnIndex:
|
|
1090
|
-
turnObservations:
|
|
1113
|
+
transcript: F,
|
|
1114
|
+
activeTurnIndex: I,
|
|
1115
|
+
turnObservations: P,
|
|
1091
1116
|
highlightedTurns: z,
|
|
1092
|
-
onTurnPlayPause:
|
|
1117
|
+
onTurnPlayPause: j,
|
|
1093
1118
|
// Signal evidence playback — host app can provide to play audio segments from signals
|
|
1094
|
-
onPlayEvidence:
|
|
1095
|
-
onHighlightTurns:
|
|
1119
|
+
onPlayEvidence: G,
|
|
1120
|
+
onHighlightTurns: M,
|
|
1121
|
+
// Context props — pass from host app to override block-derived defaults
|
|
1122
|
+
callPurpose: L,
|
|
1123
|
+
classification: W,
|
|
1124
|
+
outcomeQuality: O,
|
|
1096
1125
|
// Compass score props
|
|
1097
|
-
compassScore:
|
|
1098
|
-
|
|
1126
|
+
compassScore: A,
|
|
1127
|
+
// gauge meter value (e.g. outcomeLift.p_full) — drives meter fill, range 1-10
|
|
1128
|
+
compassMaxScore: Y = 10,
|
|
1129
|
+
predictedCsat: Ie,
|
|
1130
|
+
// predicted objective number (e.g. compass_score) — shown as "03" top-right
|
|
1131
|
+
predictedLabel: _e = "Predicted Objective",
|
|
1132
|
+
compassLegends: Ae,
|
|
1099
1133
|
// Customer session dropdown
|
|
1100
|
-
customerSessions:
|
|
1101
|
-
customerSessionCount:
|
|
1102
|
-
onSessionClick:
|
|
1103
|
-
onViewAllSessions:
|
|
1134
|
+
customerSessions: Ge,
|
|
1135
|
+
customerSessionCount: Me,
|
|
1136
|
+
onSessionClick: V,
|
|
1137
|
+
onViewAllSessions: K,
|
|
1104
1138
|
// Footer navigation
|
|
1105
|
-
prevSessionTitle:
|
|
1106
|
-
prevSessionDesc:
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1139
|
+
prevSessionTitle: He,
|
|
1140
|
+
prevSessionDesc: Ee,
|
|
1141
|
+
prevSessionDisabled: H = !1,
|
|
1142
|
+
nextSessionTitle: Te,
|
|
1143
|
+
nextSessionDesc: Re,
|
|
1144
|
+
nextSessionDisabled: E = !1,
|
|
1145
|
+
onPreviousSession: Pe,
|
|
1146
|
+
onNextSession: Le
|
|
1111
1147
|
}) => {
|
|
1112
|
-
var
|
|
1113
|
-
const [
|
|
1114
|
-
|
|
1115
|
-
const g =
|
|
1148
|
+
var fe, he;
|
|
1149
|
+
const [U, Be] = _("overview"), [$e, X] = _(/* @__PURE__ */ new Set()), [Z, q] = _(!1), [J, ee] = _(null), [je, te] = _(!1), [Oe, Ue] = _(0), T = R(null), ne = R(null), ie = R(null), oe = R(null), re = R(null), qe = { overview: ne, coaching: ie, signals: oe, comments: re }, Ne = (o) => {
|
|
1150
|
+
Be(o);
|
|
1151
|
+
const g = qe[o];
|
|
1116
1152
|
g != null && g.current && g.current.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
1117
|
-
},
|
|
1118
|
-
var
|
|
1153
|
+
}, le = Ge || [], Qe = (o) => {
|
|
1154
|
+
var S;
|
|
1119
1155
|
const g = o / 1e3;
|
|
1120
|
-
(
|
|
1121
|
-
},
|
|
1156
|
+
(S = T.current) != null && S.seekTo && T.current.seekTo(g);
|
|
1157
|
+
}, Ye = (o) => {
|
|
1122
1158
|
var g;
|
|
1123
|
-
if (
|
|
1124
|
-
|
|
1159
|
+
if (G)
|
|
1160
|
+
G(o);
|
|
1125
1161
|
else {
|
|
1126
|
-
const
|
|
1127
|
-
if (
|
|
1128
|
-
|
|
1129
|
-
const
|
|
1130
|
-
setTimeout(() =>
|
|
1162
|
+
const S = o.start_ms ?? o.startMs;
|
|
1163
|
+
if (S != null && ((g = T.current) != null && g.seekTo)) {
|
|
1164
|
+
T.current.seekTo(S / 1e3), te(!0), Ue(S / 1e3);
|
|
1165
|
+
const st = (o.end_ms ?? o.endMs ?? S + 5e3) - S;
|
|
1166
|
+
setTimeout(() => te(!1), st);
|
|
1131
1167
|
}
|
|
1132
1168
|
}
|
|
1133
|
-
},
|
|
1134
|
-
|
|
1135
|
-
},
|
|
1136
|
-
|
|
1137
|
-
const
|
|
1138
|
-
return
|
|
1169
|
+
}, Ve = (o) => {
|
|
1170
|
+
M && M(o);
|
|
1171
|
+
}, Ke = (o) => {
|
|
1172
|
+
X((g) => {
|
|
1173
|
+
const S = new Set(g);
|
|
1174
|
+
return S.has(o) ? S.delete(o) : S.add(o), S;
|
|
1139
1175
|
});
|
|
1140
|
-
},
|
|
1176
|
+
}, Xe = (r == null ? void 0 : r.blocks) || [], B = (o) => {
|
|
1141
1177
|
var g;
|
|
1142
|
-
return ((g =
|
|
1143
|
-
},
|
|
1178
|
+
return ((g = Xe.find((S) => S.block_id === o)) == null ? void 0 : g.payload) || {};
|
|
1179
|
+
}, N = B("interaction-metadata"), se = B("interaction-context"), $ = B("interaction-signals"), ae = B("interaction-outcome-lift"), Ze = se.call_purpose || {}, Je = se.classification || {}, de = { duration_seconds: 156, message_count: 25, ...N }, ce = { interaction_driver: "General Information", interaction_direction: "inbound", ...Ze }, et = { interaction_paradigm: "Informational", ...Je }, tt = { p_expected: 0.94, p_full: 0.83, lift_raw: -0.11, lift: 0.043, interpretation: { lift_band: "positive" }, ...ae }, nt = ((fe = ae.driver_signal_keys) == null ? void 0 : fe.map((o) => o.replace(/^sig\./, "").replace(/_/g, " "))) || [
|
|
1144
1180
|
"customer needs fully addressed",
|
|
1145
1181
|
"call flow expectations set",
|
|
1146
1182
|
"Opening expectations set",
|
|
1147
1183
|
"Active listening demonstrated",
|
|
1148
1184
|
"Resolution confirmed"
|
|
1149
|
-
],
|
|
1185
|
+
], it = s || {
|
|
1150
1186
|
one_liner: "David provided the customer with information on wheel stud replacement and pricing, but did not secure an appointment.",
|
|
1151
1187
|
context: "The customer was seeking information on wheel stud replacement for a 2013 Chevy Bolt and was unsure about doing the repair themselves.",
|
|
1152
1188
|
strengths: [
|
|
@@ -1159,7 +1195,7 @@ const kt = {
|
|
|
1159
1195
|
{ text: "Frame solutions positively by leading with what can be done rather than limitations.", quote: "I don't have the alignment changeover the weekend." }
|
|
1160
1196
|
],
|
|
1161
1197
|
overall: "effective"
|
|
1162
|
-
},
|
|
1198
|
+
}, ot = (he = $ == null ? void 0 : $.signals) != null && he.length ? $ : {
|
|
1163
1199
|
present_count: 9,
|
|
1164
1200
|
total_signals_evaluated: 146,
|
|
1165
1201
|
signals: [
|
|
@@ -1185,68 +1221,70 @@ const kt = {
|
|
|
1185
1221
|
{ key: "prototype_developed", display_name: "Prototype Developed", observations: [{ key: "obs8a", reason: "Prototype shared." }, { key: "obs8b", reason: "Testing initiated." }, { key: "obs8c", reason: "Feedback collected." }, { key: "obs8d", reason: "Iterations completed." }, { key: "obs8e", reason: "Usability tested." }, { key: "obs8f", reason: "Design finalized." }, { key: "obs8g", reason: "Stakeholder demo done." }] },
|
|
1186
1222
|
{ key: "user_testing", display_name: "User Testing Scheduled", observations: [{ key: "obs9a", reason: "Testing sessions planned." }, { key: "obs9b", reason: "Participants recruited." }, { key: "obs9c", reason: "Test scripts prepared." }, { key: "obs9d", reason: "Environment set up." }, { key: "obs9e", reason: "Accessibility testing included." }, { key: "obs9f", reason: "Results framework defined." }, { key: "obs9g", reason: "Timeline confirmed." }, { key: "obs9h", reason: "Backup plan discussed." }] }
|
|
1187
1223
|
]
|
|
1188
|
-
},
|
|
1189
|
-
return /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", width: "100%", background: "var(--Grey-White, #FFF)" }, children: [
|
|
1190
|
-
/* @__PURE__ */ t("div", { style: {
|
|
1191
|
-
/* @__PURE__ */
|
|
1224
|
+
}, ge = m || "Agent", Q = D || "Customer", pe = Me ?? le.length, rt = N.evaluated_dt ? new Date(N.evaluated_dt).toLocaleString() : "3/29/2026, 8:30:00 AM", lt = ce.interaction_direction === "inbound" ? "Inbound" : "Outbound";
|
|
1225
|
+
return /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", width: "100%", height: "100%", background: "var(--Grey-White, #FFF)" }, children: [
|
|
1226
|
+
/* @__PURE__ */ t("div", { style: { position: "sticky", top: 0, zIndex: 20, background: "var(--Grey-White, #FFF)" }, children: [
|
|
1227
|
+
/* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", gap: 12, padding: "24px 24px 0" }, children: [
|
|
1228
|
+
/* @__PURE__ */ e(
|
|
1229
|
+
"button",
|
|
1230
|
+
{
|
|
1231
|
+
onClick: i,
|
|
1232
|
+
style: {
|
|
1233
|
+
display: "flex",
|
|
1234
|
+
alignItems: "center",
|
|
1235
|
+
justifyContent: "center",
|
|
1236
|
+
background: "none",
|
|
1237
|
+
border: "none",
|
|
1238
|
+
cursor: "pointer",
|
|
1239
|
+
padding: 0,
|
|
1240
|
+
flexShrink: 0
|
|
1241
|
+
},
|
|
1242
|
+
children: /* @__PURE__ */ e(ye, { size: 24, color: "var(--Grey-Strong, #2E3236)" })
|
|
1243
|
+
}
|
|
1244
|
+
),
|
|
1245
|
+
/* @__PURE__ */ e("div", { style: { width: 1, height: 28, background: "var(--Base-absent, #D9D9D9)" } }),
|
|
1246
|
+
/* @__PURE__ */ e("h1", { style: {
|
|
1247
|
+
color: "var(--Grey-Strong, #2E3236)",
|
|
1248
|
+
fontSize: 24,
|
|
1249
|
+
fontStyle: "normal",
|
|
1250
|
+
fontWeight: 400,
|
|
1251
|
+
lineHeight: "normal",
|
|
1252
|
+
margin: 0
|
|
1253
|
+
}, children: n })
|
|
1254
|
+
] }),
|
|
1255
|
+
/* @__PURE__ */ e("div", { style: {
|
|
1256
|
+
display: "flex",
|
|
1257
|
+
alignItems: "flex-start",
|
|
1258
|
+
background: "var(--Grey-White, #FFF)",
|
|
1259
|
+
borderBottom: "1px solid var(--Grey-Faint, #ACADAD)",
|
|
1260
|
+
padding: "0 24px",
|
|
1261
|
+
marginTop: 8
|
|
1262
|
+
}, children: Bt.map((o) => /* @__PURE__ */ e(
|
|
1192
1263
|
"button",
|
|
1193
1264
|
{
|
|
1194
|
-
onClick:
|
|
1265
|
+
onClick: () => Ne(o.key),
|
|
1195
1266
|
style: {
|
|
1196
1267
|
display: "flex",
|
|
1268
|
+
padding: 16,
|
|
1197
1269
|
alignItems: "center",
|
|
1198
|
-
|
|
1270
|
+
gap: 10,
|
|
1199
1271
|
background: "none",
|
|
1200
1272
|
border: "none",
|
|
1273
|
+
borderBottom: U === o.key ? "3px solid var(--Grey-Strong, #2E3236)" : "3px solid transparent",
|
|
1201
1274
|
cursor: "pointer",
|
|
1202
|
-
|
|
1203
|
-
|
|
1275
|
+
fontSize: 15,
|
|
1276
|
+
fontWeight: U === o.key ? 500 : 400,
|
|
1277
|
+
color: U === o.key ? "var(--Grey-Strong, #2E3236)" : "var(--Grey-Muted, #808183)",
|
|
1278
|
+
whiteSpace: "nowrap",
|
|
1279
|
+
transition: "border-color 0.2s ease, color 0.2s ease"
|
|
1204
1280
|
},
|
|
1205
|
-
children:
|
|
1206
|
-
}
|
|
1207
|
-
),
|
|
1208
|
-
/* @__PURE__ */ e("div", { style: { width: 1, height: 28, background: "var(--Base-absent, #D9D9D9)" } }),
|
|
1209
|
-
/* @__PURE__ */ e("h1", { style: {
|
|
1210
|
-
color: "var(--Grey-Strong, #2E3236)",
|
|
1211
|
-
fontSize: 24,
|
|
1212
|
-
fontStyle: "normal",
|
|
1213
|
-
fontWeight: 400,
|
|
1214
|
-
lineHeight: "normal",
|
|
1215
|
-
margin: 0
|
|
1216
|
-
}, children: n })
|
|
1217
|
-
] }),
|
|
1218
|
-
/* @__PURE__ */ e("div", { style: {
|
|
1219
|
-
display: "flex",
|
|
1220
|
-
alignItems: "flex-start",
|
|
1221
|
-
background: "var(--Grey-White, #FFF)",
|
|
1222
|
-
borderBottom: "1px solid var(--Grey-Faint, #ACADAD)",
|
|
1223
|
-
padding: "0 24px",
|
|
1224
|
-
marginTop: 8
|
|
1225
|
-
}, children: Gt.map((o) => /* @__PURE__ */ e(
|
|
1226
|
-
"button",
|
|
1227
|
-
{
|
|
1228
|
-
onClick: () => Le(o.key),
|
|
1229
|
-
style: {
|
|
1230
|
-
display: "flex",
|
|
1231
|
-
padding: 16,
|
|
1232
|
-
alignItems: "center",
|
|
1233
|
-
gap: 10,
|
|
1234
|
-
background: "none",
|
|
1235
|
-
border: "none",
|
|
1236
|
-
borderBottom: j === o.key ? "3px solid var(--Grey-Strong, #2E3236)" : "3px solid transparent",
|
|
1237
|
-
cursor: "pointer",
|
|
1238
|
-
fontSize: 15,
|
|
1239
|
-
fontWeight: j === o.key ? 500 : 400,
|
|
1240
|
-
color: j === o.key ? "var(--Grey-Strong, #2E3236)" : "var(--Grey-Muted, #808183)",
|
|
1241
|
-
whiteSpace: "nowrap",
|
|
1242
|
-
transition: "border-color 0.2s ease, color 0.2s ease"
|
|
1281
|
+
children: o.label
|
|
1243
1282
|
},
|
|
1244
|
-
|
|
1245
|
-
}
|
|
1246
|
-
|
|
1247
|
-
)) }),
|
|
1283
|
+
o.key
|
|
1284
|
+
)) })
|
|
1285
|
+
] }),
|
|
1248
1286
|
/* @__PURE__ */ t("div", { style: { padding: 24, flex: 1, overflowY: "auto" }, children: [
|
|
1249
|
-
/* @__PURE__ */ t("div", { ref:
|
|
1287
|
+
/* @__PURE__ */ t("div", { ref: ne, style: {
|
|
1250
1288
|
display: "flex",
|
|
1251
1289
|
flexDirection: "column",
|
|
1252
1290
|
justifyContent: "flex-end",
|
|
@@ -1262,7 +1300,7 @@ const kt = {
|
|
|
1262
1300
|
alignSelf: "stretch"
|
|
1263
1301
|
}, children: [
|
|
1264
1302
|
/* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", gap: 8, flex: 1 }, children: [
|
|
1265
|
-
/* @__PURE__ */ e(
|
|
1303
|
+
/* @__PURE__ */ e(ut, { size: 24, color: "var(--rail-orange, #C98A5A)", strokeWidth: 2 }),
|
|
1266
1304
|
/* @__PURE__ */ e("span", { style: {
|
|
1267
1305
|
fontSize: 16,
|
|
1268
1306
|
fontWeight: 600,
|
|
@@ -1273,12 +1311,12 @@ const kt = {
|
|
|
1273
1311
|
] }),
|
|
1274
1312
|
/* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", gap: 16, flexShrink: 0 }, children: [
|
|
1275
1313
|
/* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", gap: 6, padding: "8px 0" }, children: [
|
|
1276
|
-
/* @__PURE__ */ e(
|
|
1277
|
-
/* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", fontFamily: "var(--font-sans)", lineHeight: 1.2 }, children:
|
|
1314
|
+
/* @__PURE__ */ e(mt, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
|
|
1315
|
+
/* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", fontFamily: "var(--font-sans)", lineHeight: 1.2 }, children: rt })
|
|
1278
1316
|
] }),
|
|
1279
1317
|
/* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", gap: 6, padding: "8px 0" }, children: [
|
|
1280
|
-
/* @__PURE__ */ e(
|
|
1281
|
-
/* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", fontFamily: "var(--font-sans)", lineHeight: 1.2 }, children:
|
|
1318
|
+
/* @__PURE__ */ e(vt, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
|
|
1319
|
+
/* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", fontFamily: "var(--font-sans)", lineHeight: 1.2 }, children: lt })
|
|
1282
1320
|
] }),
|
|
1283
1321
|
/* @__PURE__ */ t("div", { style: {
|
|
1284
1322
|
display: "flex",
|
|
@@ -1288,15 +1326,15 @@ const kt = {
|
|
|
1288
1326
|
borderLeft: "1px solid var(--Grey-absent, #D9D9D9)"
|
|
1289
1327
|
}, children: [
|
|
1290
1328
|
/* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", gap: 6, padding: "8px 0" }, children: [
|
|
1291
|
-
/* @__PURE__ */ e(
|
|
1292
|
-
/* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", fontFamily: "var(--font-sans)", lineHeight: 1.2 }, children:
|
|
1329
|
+
/* @__PURE__ */ e(xt, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
|
|
1330
|
+
/* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", fontFamily: "var(--font-sans)", lineHeight: 1.2 }, children: ge })
|
|
1293
1331
|
] }),
|
|
1294
|
-
/* @__PURE__ */ e(
|
|
1332
|
+
/* @__PURE__ */ e(bt, { size: 16, color: "var(--color-input-border, #ACACAD)", strokeWidth: 1.5 }),
|
|
1295
1333
|
/* @__PURE__ */ t("div", { style: { position: "relative" }, children: [
|
|
1296
1334
|
/* @__PURE__ */ t(
|
|
1297
1335
|
"button",
|
|
1298
1336
|
{
|
|
1299
|
-
onClick: () =>
|
|
1337
|
+
onClick: () => q((o) => !o),
|
|
1300
1338
|
style: {
|
|
1301
1339
|
display: "flex",
|
|
1302
1340
|
alignItems: "center",
|
|
@@ -1307,18 +1345,18 @@ const kt = {
|
|
|
1307
1345
|
cursor: "pointer"
|
|
1308
1346
|
},
|
|
1309
1347
|
children: [
|
|
1310
|
-
/* @__PURE__ */ e(
|
|
1348
|
+
/* @__PURE__ */ e(ue, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
|
|
1311
1349
|
/* @__PURE__ */ t("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", lineHeight: 1.2 }, children: [
|
|
1312
|
-
|
|
1350
|
+
Q,
|
|
1313
1351
|
" (",
|
|
1314
|
-
|
|
1352
|
+
pe,
|
|
1315
1353
|
" Sessions)"
|
|
1316
1354
|
] }),
|
|
1317
|
-
|
|
1355
|
+
Z ? /* @__PURE__ */ e(Fe, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }) : /* @__PURE__ */ e(ze, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 })
|
|
1318
1356
|
]
|
|
1319
1357
|
}
|
|
1320
1358
|
),
|
|
1321
|
-
|
|
1359
|
+
Z && /* @__PURE__ */ t("div", { style: {
|
|
1322
1360
|
position: "absolute",
|
|
1323
1361
|
top: "100%",
|
|
1324
1362
|
right: 0,
|
|
@@ -1337,40 +1375,40 @@ const kt = {
|
|
|
1337
1375
|
gap: 8,
|
|
1338
1376
|
padding: 16
|
|
1339
1377
|
}, children: [
|
|
1340
|
-
/* @__PURE__ */ e(
|
|
1378
|
+
/* @__PURE__ */ e(ue, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5, style: { marginTop: 2, flexShrink: 0 } }),
|
|
1341
1379
|
/* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 4 }, children: [
|
|
1342
1380
|
/* @__PURE__ */ e("span", { style: {
|
|
1343
1381
|
fontSize: 16,
|
|
1344
1382
|
fontWeight: 600,
|
|
1345
1383
|
color: "var(--Grey-Strong, #2E3236)",
|
|
1346
1384
|
lineHeight: 1
|
|
1347
|
-
}, children:
|
|
1385
|
+
}, children: Q }),
|
|
1348
1386
|
/* @__PURE__ */ t("span", { style: {
|
|
1349
1387
|
fontSize: 13,
|
|
1350
1388
|
fontWeight: 400,
|
|
1351
1389
|
color: "var(--Grey-Muted, #808183)",
|
|
1352
1390
|
lineHeight: 1
|
|
1353
1391
|
}, children: [
|
|
1354
|
-
|
|
1392
|
+
pe,
|
|
1355
1393
|
" Sessions in past"
|
|
1356
1394
|
] })
|
|
1357
1395
|
] })
|
|
1358
1396
|
] }),
|
|
1359
|
-
|
|
1397
|
+
le.slice(0, 5).map((o, g) => /* @__PURE__ */ t(
|
|
1360
1398
|
"div",
|
|
1361
1399
|
{
|
|
1362
1400
|
onClick: () => {
|
|
1363
|
-
|
|
1401
|
+
V && V(o), q(!1);
|
|
1364
1402
|
},
|
|
1365
|
-
onMouseEnter: () =>
|
|
1366
|
-
onMouseLeave: () =>
|
|
1403
|
+
onMouseEnter: () => ee(g),
|
|
1404
|
+
onMouseLeave: () => ee(null),
|
|
1367
1405
|
style: {
|
|
1368
1406
|
display: "flex",
|
|
1369
1407
|
width: 264,
|
|
1370
1408
|
padding: "12px 16px",
|
|
1371
1409
|
justifyContent: "space-between",
|
|
1372
1410
|
alignItems: "center",
|
|
1373
|
-
background:
|
|
1411
|
+
background: J === g ? "var(--surface-hover, #F3F7F7)" : "var(--Grey-White, #FFF)",
|
|
1374
1412
|
borderTop: "1px solid var(--Grey-absent, #D9D9D9)",
|
|
1375
1413
|
cursor: "pointer",
|
|
1376
1414
|
boxSizing: "border-box",
|
|
@@ -1391,7 +1429,7 @@ const kt = {
|
|
|
1391
1429
|
lineHeight: 1
|
|
1392
1430
|
}, children: o.date })
|
|
1393
1431
|
] }),
|
|
1394
|
-
|
|
1432
|
+
J === g && /* @__PURE__ */ e(Ce, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1, style: { flexShrink: 0 } })
|
|
1395
1433
|
]
|
|
1396
1434
|
},
|
|
1397
1435
|
o.id || g
|
|
@@ -1405,7 +1443,7 @@ const kt = {
|
|
|
1405
1443
|
"button",
|
|
1406
1444
|
{
|
|
1407
1445
|
onClick: () => {
|
|
1408
|
-
|
|
1446
|
+
K && K(), q(!1);
|
|
1409
1447
|
},
|
|
1410
1448
|
style: {
|
|
1411
1449
|
display: "flex",
|
|
@@ -1420,7 +1458,7 @@ const kt = {
|
|
|
1420
1458
|
cursor: "pointer"
|
|
1421
1459
|
},
|
|
1422
1460
|
children: [
|
|
1423
|
-
/* @__PURE__ */ e(
|
|
1461
|
+
/* @__PURE__ */ e(St, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
|
|
1424
1462
|
/* @__PURE__ */ e("span", { style: {
|
|
1425
1463
|
fontSize: 14,
|
|
1426
1464
|
fontWeight: 600,
|
|
@@ -1436,17 +1474,18 @@ const kt = {
|
|
|
1436
1474
|
] }),
|
|
1437
1475
|
/* @__PURE__ */ t("div", { style: {
|
|
1438
1476
|
display: "flex",
|
|
1439
|
-
alignItems: "
|
|
1477
|
+
alignItems: "stretch",
|
|
1440
1478
|
gap: 24,
|
|
1441
1479
|
alignSelf: "stretch"
|
|
1442
1480
|
}, children: [
|
|
1443
|
-
/* @__PURE__ */ e("div", { style: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ e(
|
|
1444
|
-
|
|
1481
|
+
/* @__PURE__ */ e("div", { style: { flex: 1, minWidth: 0, display: "flex" }, children: /* @__PURE__ */ e(
|
|
1482
|
+
Lt,
|
|
1445
1483
|
{
|
|
1446
|
-
score:
|
|
1484
|
+
score: A != null ? Math.round(A * 100) : 0,
|
|
1447
1485
|
maxScore: 100,
|
|
1448
|
-
predictedScore:
|
|
1449
|
-
predictedLabel:
|
|
1486
|
+
predictedScore: Ie ?? 0,
|
|
1487
|
+
predictedLabel: _e,
|
|
1488
|
+
legends: Ae
|
|
1450
1489
|
}
|
|
1451
1490
|
) }),
|
|
1452
1491
|
/* @__PURE__ */ t("div", { style: {
|
|
@@ -1459,26 +1498,26 @@ const kt = {
|
|
|
1459
1498
|
minWidth: 0
|
|
1460
1499
|
}, children: [
|
|
1461
1500
|
/* @__PURE__ */ e(
|
|
1462
|
-
|
|
1501
|
+
At,
|
|
1463
1502
|
{
|
|
1464
|
-
meta:
|
|
1465
|
-
callPurpose:
|
|
1466
|
-
classification:
|
|
1467
|
-
outcomeQuality: "Neutral"
|
|
1503
|
+
meta: de,
|
|
1504
|
+
callPurpose: L || ce,
|
|
1505
|
+
classification: W || et,
|
|
1506
|
+
outcomeQuality: O || "Neutral"
|
|
1468
1507
|
}
|
|
1469
1508
|
),
|
|
1470
1509
|
/* @__PURE__ */ e(
|
|
1471
|
-
|
|
1510
|
+
Gt,
|
|
1472
1511
|
{
|
|
1473
|
-
outcomeLift:
|
|
1474
|
-
driverLabels:
|
|
1512
|
+
outcomeLift: tt,
|
|
1513
|
+
driverLabels: nt
|
|
1475
1514
|
}
|
|
1476
1515
|
)
|
|
1477
1516
|
] })
|
|
1478
1517
|
] })
|
|
1479
1518
|
] }),
|
|
1480
|
-
/* @__PURE__ */ e("div", { ref:
|
|
1481
|
-
/* @__PURE__ */ t("div", { ref:
|
|
1519
|
+
/* @__PURE__ */ e("div", { ref: ie, style: { paddingTop: 24 }, children: /* @__PURE__ */ e(zt, { data: it }) }),
|
|
1520
|
+
/* @__PURE__ */ t("div", { ref: oe, style: {
|
|
1482
1521
|
display: "flex",
|
|
1483
1522
|
flexDirection: "column",
|
|
1484
1523
|
gap: 16,
|
|
@@ -1490,7 +1529,7 @@ const kt = {
|
|
|
1490
1529
|
alignItems: "center",
|
|
1491
1530
|
gap: 8
|
|
1492
1531
|
}, children: [
|
|
1493
|
-
/* @__PURE__ */ e(
|
|
1532
|
+
/* @__PURE__ */ e(De, { size: 24, color: "#C98A5A", strokeWidth: 2 }),
|
|
1494
1533
|
/* @__PURE__ */ e("span", { style: {
|
|
1495
1534
|
fontSize: 16,
|
|
1496
1535
|
fontWeight: 600,
|
|
@@ -1508,47 +1547,47 @@ const kt = {
|
|
|
1508
1547
|
borderTop: "1px solid #D9D9D9"
|
|
1509
1548
|
}, children: [
|
|
1510
1549
|
/* @__PURE__ */ e("div", { style: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ e(
|
|
1511
|
-
|
|
1550
|
+
Mt,
|
|
1512
1551
|
{
|
|
1513
|
-
signals:
|
|
1514
|
-
expandedSignals:
|
|
1515
|
-
toggleSignal:
|
|
1516
|
-
playEvidence:
|
|
1517
|
-
highlightTurns:
|
|
1518
|
-
onShowInTranscript:
|
|
1519
|
-
timelinePlaying:
|
|
1520
|
-
currentTimeSeconds: v ??
|
|
1552
|
+
signals: ot,
|
|
1553
|
+
expandedSignals: $e,
|
|
1554
|
+
toggleSignal: Ke,
|
|
1555
|
+
playEvidence: Ye,
|
|
1556
|
+
highlightTurns: Ve,
|
|
1557
|
+
onShowInTranscript: Qe,
|
|
1558
|
+
timelinePlaying: f || je,
|
|
1559
|
+
currentTimeSeconds: v ?? Oe
|
|
1521
1560
|
}
|
|
1522
1561
|
) }),
|
|
1523
1562
|
/* @__PURE__ */ e("div", { style: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ e(
|
|
1524
|
-
|
|
1563
|
+
wt,
|
|
1525
1564
|
{
|
|
1526
|
-
ref:
|
|
1565
|
+
ref: T,
|
|
1527
1566
|
audioUrl: p,
|
|
1528
|
-
durationSeconds:
|
|
1529
|
-
audioRef:
|
|
1530
|
-
agentName:
|
|
1531
|
-
customerName:
|
|
1567
|
+
durationSeconds: de.duration_seconds,
|
|
1568
|
+
audioRef: y,
|
|
1569
|
+
agentName: ge,
|
|
1570
|
+
customerName: Q.split(" ")[0],
|
|
1532
1571
|
currentTimeSeconds: v,
|
|
1533
|
-
timelinePlaying:
|
|
1534
|
-
playbackRate:
|
|
1535
|
-
timelineSegments:
|
|
1536
|
-
onSeek:
|
|
1537
|
-
onTogglePlay:
|
|
1572
|
+
timelinePlaying: f,
|
|
1573
|
+
playbackRate: u,
|
|
1574
|
+
timelineSegments: b,
|
|
1575
|
+
onSeek: k,
|
|
1576
|
+
onTogglePlay: C,
|
|
1538
1577
|
onSeekBack: d,
|
|
1539
1578
|
onSeekForward: l,
|
|
1540
|
-
onSetPlaybackRate:
|
|
1541
|
-
transcript:
|
|
1542
|
-
activeTurnIndex:
|
|
1543
|
-
turnObservations:
|
|
1579
|
+
onSetPlaybackRate: h,
|
|
1580
|
+
transcript: F,
|
|
1581
|
+
activeTurnIndex: I,
|
|
1582
|
+
turnObservations: P,
|
|
1544
1583
|
highlightedTurns: z,
|
|
1545
|
-
onTurnPlayPause:
|
|
1546
|
-
setExpandedSignals:
|
|
1584
|
+
onTurnPlayPause: j,
|
|
1585
|
+
setExpandedSignals: X
|
|
1547
1586
|
}
|
|
1548
1587
|
) })
|
|
1549
1588
|
] })
|
|
1550
1589
|
] }),
|
|
1551
|
-
/* @__PURE__ */ e("div", { ref:
|
|
1590
|
+
/* @__PURE__ */ e("div", { ref: re, style: { paddingTop: 24 }, children: /* @__PURE__ */ e("div", { style: { fontSize: 14, color: "var(--Grey-Muted, #808183)", fontFamily: "var(--font-sans)" }, children: "No comments yet." }) })
|
|
1552
1591
|
] }),
|
|
1553
1592
|
/* @__PURE__ */ t("div", { style: {
|
|
1554
1593
|
display: "flex",
|
|
@@ -1559,7 +1598,8 @@ const kt = {
|
|
|
1559
1598
|
/* @__PURE__ */ t(
|
|
1560
1599
|
"button",
|
|
1561
1600
|
{
|
|
1562
|
-
onClick:
|
|
1601
|
+
onClick: H ? void 0 : Pe,
|
|
1602
|
+
disabled: H,
|
|
1563
1603
|
style: {
|
|
1564
1604
|
display: "flex",
|
|
1565
1605
|
alignItems: "center",
|
|
@@ -1568,10 +1608,12 @@ const kt = {
|
|
|
1568
1608
|
flex: 1,
|
|
1569
1609
|
background: "var(--Grey-White, #FFF)",
|
|
1570
1610
|
border: "1px solid var(--Grey-absent, #D9D9D9)",
|
|
1571
|
-
cursor: "pointer"
|
|
1611
|
+
cursor: H ? "default" : "pointer",
|
|
1612
|
+
opacity: H ? 0.4 : 1,
|
|
1613
|
+
pointerEvents: H ? "none" : "auto"
|
|
1572
1614
|
},
|
|
1573
1615
|
children: [
|
|
1574
|
-
/* @__PURE__ */ e(
|
|
1616
|
+
/* @__PURE__ */ e(ye, { size: 24, color: "var(--Grey-Muted, #808183)", strokeWidth: 2 }),
|
|
1575
1617
|
/* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 10 }, children: [
|
|
1576
1618
|
/* @__PURE__ */ e("span", { style: {
|
|
1577
1619
|
fontSize: 14,
|
|
@@ -1579,7 +1621,7 @@ const kt = {
|
|
|
1579
1621
|
color: "#000",
|
|
1580
1622
|
lineHeight: 1.2,
|
|
1581
1623
|
textAlign: "left"
|
|
1582
|
-
}, children:
|
|
1624
|
+
}, children: He || "Previous Session Title" }),
|
|
1583
1625
|
/* @__PURE__ */ e("span", { style: {
|
|
1584
1626
|
fontSize: 13,
|
|
1585
1627
|
fontWeight: 400,
|
|
@@ -1587,7 +1629,7 @@ const kt = {
|
|
|
1587
1629
|
lineHeight: 1.2,
|
|
1588
1630
|
opacity: 0.5,
|
|
1589
1631
|
textAlign: "left"
|
|
1590
|
-
}, children:
|
|
1632
|
+
}, children: Ee || "Short description of the session" })
|
|
1591
1633
|
] })
|
|
1592
1634
|
]
|
|
1593
1635
|
}
|
|
@@ -1595,7 +1637,8 @@ const kt = {
|
|
|
1595
1637
|
/* @__PURE__ */ t(
|
|
1596
1638
|
"button",
|
|
1597
1639
|
{
|
|
1598
|
-
onClick:
|
|
1640
|
+
onClick: E ? void 0 : Le,
|
|
1641
|
+
disabled: E,
|
|
1599
1642
|
style: {
|
|
1600
1643
|
display: "flex",
|
|
1601
1644
|
alignItems: "center",
|
|
@@ -1605,7 +1648,9 @@ const kt = {
|
|
|
1605
1648
|
flex: 1,
|
|
1606
1649
|
background: "var(--Grey-White, #FFF)",
|
|
1607
1650
|
border: "1px solid var(--Grey-absent, #D9D9D9)",
|
|
1608
|
-
cursor: "pointer"
|
|
1651
|
+
cursor: E ? "default" : "pointer",
|
|
1652
|
+
opacity: E ? 0.4 : 1,
|
|
1653
|
+
pointerEvents: E ? "none" : "auto"
|
|
1609
1654
|
},
|
|
1610
1655
|
children: [
|
|
1611
1656
|
/* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 10 }, children: [
|
|
@@ -1615,7 +1660,7 @@ const kt = {
|
|
|
1615
1660
|
color: "#000",
|
|
1616
1661
|
lineHeight: 1.2,
|
|
1617
1662
|
textAlign: "left"
|
|
1618
|
-
}, children:
|
|
1663
|
+
}, children: Te || "Next Session Title" }),
|
|
1619
1664
|
/* @__PURE__ */ e("span", { style: {
|
|
1620
1665
|
fontSize: 13,
|
|
1621
1666
|
fontWeight: 400,
|
|
@@ -1623,9 +1668,9 @@ const kt = {
|
|
|
1623
1668
|
lineHeight: 1.2,
|
|
1624
1669
|
opacity: 0.5,
|
|
1625
1670
|
textAlign: "left"
|
|
1626
|
-
}, children:
|
|
1671
|
+
}, children: Re || "Short description of the session" })
|
|
1627
1672
|
] }),
|
|
1628
|
-
/* @__PURE__ */ e(
|
|
1673
|
+
/* @__PURE__ */ e(kt, { size: 24, color: "var(--Grey-Muted, #808183)", strokeWidth: 2 })
|
|
1629
1674
|
]
|
|
1630
1675
|
}
|
|
1631
1676
|
)
|
|
@@ -1633,12 +1678,12 @@ const kt = {
|
|
|
1633
1678
|
] });
|
|
1634
1679
|
};
|
|
1635
1680
|
export {
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1681
|
+
zt as UpdatedCoachingSynthesisCard,
|
|
1682
|
+
Lt as UpdatedCompassScore,
|
|
1683
|
+
At as UpdatedInteractionContext,
|
|
1684
|
+
Nt as UpdatedInteractionDetails,
|
|
1685
|
+
wt as UpdatedInteractionRecording,
|
|
1686
|
+
Gt as UpdatedInteractionScores,
|
|
1687
|
+
Mt as UpdatedInteractionSignals
|
|
1643
1688
|
};
|
|
1644
1689
|
//# sourceMappingURL=UpdatedInteractionDetails.es.js.map
|