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.
@@ -1,7 +1,7 @@
1
1
  import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
- import et, { useState as _, useRef as M } from "react";
3
- import { ShieldCheck as tt, TrendingUp as nt, Lightbulb as it, ThumbsUp as Se, ExternalLink as ke, FileSignal as we, ChevronUp as De, ChevronDown as Ce, ScrollText as ot, PauseCircle as rt, PlayCircle as lt, Info as st, ArrowLeft as pe, ClipboardList as at, CalendarDays as dt, PhoneIncoming as ct, Headset as gt, Repeat as pt, CircleUser as fe, History as ft, ArrowRight as ht } from "lucide-react";
4
- import { U as yt } from "../UpdatedInteractionRecording.es.js";
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
- }, ut = {
14
+ }, Wt = {
15
15
  effective: "Effective",
16
16
  strong: "Strong",
17
17
  needs_improvement: "Needs Improvement",
18
18
  mixed: "Mixed"
19
- }, he = "updated-coaching-synthesis-keyframes";
20
- function vt() {
21
- if (typeof document > "u" || document.getElementById(he))
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 = he, n.textContent = `
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 mt({ overall: n }) {
36
- const i = ut[n] || (n ? n.replace(/_/g, " ") : "");
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(Se, { size: 14, color: c.strong, strokeWidth: 1.5 }),
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 xt({ item: n }) {
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 ye({ icon: n, label: i, items: r }) {
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(xt, { item: s }, p)) })
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 bt = ({ data: n, loading: i, error: r }) => {
135
- var y, m;
136
- if (et.useEffect(() => {
137
- vt();
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((w, S) => /* @__PURE__ */ e(
162
+ [180, 260, 220].map((b, k) => /* @__PURE__ */ e(
163
163
  "div",
164
164
  {
165
165
  style: {
166
166
  height: 10,
167
- width: w,
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: `${S * 0.2}s`
173
+ animationDelay: `${k * 0.2}s`
174
174
  }
175
175
  },
176
- S
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 || [], h = typeof n.one_liner == "string" ? n.one_liner : ((y = n.one_liner) == null ? void 0 : y.text) || "", v = typeof n.context == "string" ? n.context : ((m = n.context) == null ? void 0 : m.text) || "";
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(tt, { size: 20, color: c.accent, strokeWidth: 2 }),
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
- h && /* @__PURE__ */ e("div", { style: {
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: h }),
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(mt, { overall: n.overall })
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
- ye,
238
+ ve,
239
239
  {
240
- icon: /* @__PURE__ */ e(nt, { size: 14, color: c.strong, strokeWidth: 1.5 }),
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
- ye,
246
+ ve,
247
247
  {
248
- icon: /* @__PURE__ */ e(it, { size: 14, color: c.strong, strokeWidth: 1.5 }),
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 St(n) {
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 kt = {
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
- }, ue = {
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
- }, wt = ({
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: h
283
+ onMoreDetails: y
284
284
  }) => {
285
- const v = n.duration_seconds != null ? St(n.duration_seconds) : null, y = n.message_count, m = i.interaction_driver, w = r.interaction_paradigm, S = [
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
- m != null && { label: "Driver", value: m },
288
- ...s.filter((l, f) => f % 2 === 0).map((l) => ({ label: l.label || l.key, value: l.value })),
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), D = [
291
- y != null && { label: "Messages", value: y },
292
- w != null && { label: "Paradigm", value: w },
293
- ...s.filter((l, f) => f % 2 === 1).map((l) => ({ label: l.label || l.key, value: l.value })),
294
- { label: "More Details", isLink: !0 }
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: h,
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(ke, { size: 16, color: "#808183", strokeWidth: 1.5 }),
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: kt,
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: ue, children: S.map((l) => d(l)) }),
335
- /* @__PURE__ */ e("div", { style: ue, children: D.map((l) => d(l)) })
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, ve = 3, me = (n) => n != null ? Math.round(n * 100) + "%" : "—", xe = (n) => {
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
- }, Dt = ({ outcomeLift: n, driverLabels: i = [] }) => {
351
- var S;
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), h = n.lift, v = (S = n.interpretation) != null && S.lift_band ? n.interpretation.lift_band.replace(/_/g, " ") : h >= 0 ? "Positive" : "Negative", y = v.charAt(0).toUpperCase() + v.slice(1), m = i.slice(0, ve), w = i.length - ve;
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: xe(h) }),
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(Se, { size: 14, color: a.strong }),
418
- /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 600, color: a.strong, lineHeight: x }, children: y })
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: me(r) }),
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: xe(p) }),
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: me(s) }),
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
- m.map((D, d) => /* @__PURE__ */ e(
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: D
517
+ children: C
518
518
  }
519
519
  )
520
520
  },
521
521
  d
522
522
  )),
523
- w > 0 && /* @__PURE__ */ e(
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
- w
548
+ b
549
549
  ]
550
550
  }
551
551
  )
@@ -556,15 +556,15 @@ const kt = {
556
556
  ]
557
557
  }
558
558
  );
559
- }, be = ({ children: n, size: i = 28, onClick: r, title: s }) => {
560
- const [p, h] = _(!1);
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: () => h(!0),
567
- onMouseLeave: () => h(!1),
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
- }, Ct = ({
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: h = () => {
592
+ onShowInTranscript: y = () => {
593
593
  },
594
594
  timelinePlaying: v = !1,
595
- currentTimeSeconds: y = 0
595
+ currentTimeSeconds: f = 0
596
596
  }) => {
597
- const m = (n == null ? void 0 : n.signals) ?? [], w = (n == null ? void 0 : n.present_count) ?? m.length, S = (d) => {
598
- const l = Math.floor(d / 6e4), f = Math.floor(d % 6e4 / 1e3);
599
- return `${l.toString().padStart(2, "0")}:${f.toString().padStart(2, "0")}`;
600
- }, D = (d) => v && d.start_ms != null && y * 1e3 >= d.start_ms && y * 1e3 <= (d.end_ms ?? d.start_ms + 5e3);
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(we, { size: 20, color: "#2E3236", strokeWidth: 1.5 }) }),
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
- w,
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
- m.length === 0 && /* @__PURE__ */ e("div", { style: {
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
- m.map((d, l) => {
659
- var W, F, E;
660
- const f = d.key ?? d.id ?? l, u = i.has(f), C = ((W = d.observations) == null ? void 0 : W.length) ?? 0;
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-${f}`,
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(f),
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 || ((F = d.key) == null ? void 0 : F.replace(/_/g, " ")),
698
- C > 0 && /* @__PURE__ */ t("span", { style: {
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
- C,
704
+ D,
705
705
  ")"
706
706
  ] })
707
707
  ] }),
708
- u ? /* @__PURE__ */ e(De, { size: 20, color: "#767473" }) : /* @__PURE__ */ e(Ce, { size: 20, color: "#767473" })
708
+ m ? /* @__PURE__ */ e(Fe, { size: 20, color: "#767473" }) : /* @__PURE__ */ e(ze, { size: 20, color: "#767473" })
709
709
  ]
710
710
  }
711
711
  ),
712
- u && ((E = d.observations) == null ? void 0 : E.length) > 0 && /* @__PURE__ */ e("div", { style: {
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, P) => {
718
- var A, G, T;
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
- ((G = (A = z.evidence) == null ? void 0 : A[0]) == null ? void 0 : G.start_ms) != null && /* @__PURE__ */ t(
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
- be,
754
+ we,
755
755
  {
756
756
  size: 28,
757
757
  title: "Show in transcript",
758
- onClick: (I) => {
759
- I.stopPropagation(), h(z.evidence[0].start_ms);
758
+ onClick: (W) => {
759
+ W.stopPropagation(), y(z.evidence[0].start_ms);
760
760
  },
761
- children: /* @__PURE__ */ e(ot, { size: 16, color: "#808183", strokeWidth: 1.5 })
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: S(z.evidence[0].start_ms) })
770
+ }, children: k(z.evidence[0].start_ms) })
771
771
  ]
772
772
  }
773
773
  )
774
774
  ] }),
775
- (T = z.evidence) == null ? void 0 : T.map((I, B) => I.text && /* @__PURE__ */ t(
776
- "div",
777
- {
778
- onClick: ($) => {
779
- $.stopPropagation(), s(I);
780
- },
781
- onMouseEnter: () => p(I.turn_ids ?? []),
782
- onMouseLeave: () => p([]),
783
- style: {
784
- display: "flex",
785
- alignItems: "center",
786
- gap: 8,
787
- padding: "8px 0",
788
- cursor: "pointer"
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
- children: [
791
- /* @__PURE__ */ e(be, { size: 28, children: D(I) ? /* @__PURE__ */ e(
792
- rt,
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 ?? P
825
+ z.key ?? j
823
826
  );
824
827
  }) })
825
828
  ]
826
829
  },
827
- f
830
+ h
828
831
  );
829
832
  })
830
833
  ] })
831
834
  ] });
832
- }, k = {
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
- }, Wt = ({ score: n = 4, maxScore: i = 10 }) => {
841
- const w = Math.min(Math.round(n / i * 5), 5), S = 180 / 5, D = (f) => {
842
- const u = f * Math.PI / 180;
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(u),
845
- y: 123 - 85 * Math.sin(u)
847
+ x: 121.5 + 85 * Math.cos(m),
848
+ y: 123 - 85 * Math.sin(m)
846
849
  };
847
- }, d = (f, u) => {
848
- const C = D(f), W = D(u), F = f - u > 180 ? 1 : 0;
849
- return `M ${C.x} ${C.y} A 85 85 0 ${F} 1 ${W.x} ${W.y}`;
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: 243, height: 130, viewBox: "0 0 243 130", fill: "none", children: Array.from({ length: 5 }, (f, u) => {
852
- const C = 180 - u * S - (u > 0 ? l / 2 : 0), W = 180 - (u + 1) * S + (u < 5 - 1 ? l / 2 : 0), F = u < w;
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(C, W),
857
- stroke: F ? k.strong : k.track,
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
- u
865
+ m
863
866
  );
864
867
  }) });
865
- }, zt = ({ value: n = 0, maxValue: i = 5 }) => /* @__PURE__ */ e("div", { style: { display: "flex", gap: 2 }, children: Array.from({ length: i }, (r, s) => /* @__PURE__ */ e(
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 ? k.strong : k.track
875
+ background: s < n ? w.strong : w.track
873
876
  }
874
877
  },
875
878
  s
876
- )) }), It = {
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
- }, Ft = ({ text: n, children: i }) => {
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
- }, _t = ({ label: n, value: i = 0, maxValue: r = 5 }) => /* @__PURE__ */ t("div", { style: {
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: k.strong,
936
+ color: w.strong,
934
937
  fontFamily: "var(--font-sans)",
935
938
  lineHeight: "normal"
936
939
  }, children: n }),
937
- /* @__PURE__ */ e(Ft, { text: It[n] || n, children: /* @__PURE__ */ e(st, { size: 14, color: k.infoIcon, strokeWidth: 1, style: { cursor: "pointer" } }) })
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(zt, { value: i, maxValue: r })
940
- ] }), At = ({
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: h = [
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 ${k.absent}`,
960
- background: k.white,
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: k.strong,
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: k.muted,
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: 48,
989
- flex: 1
992
+ gap: 24,
993
+ flex: 1,
994
+ overflow: "hidden"
990
995
  }, children: [
991
996
  /* @__PURE__ */ t("div", { style: {
992
- display: "flex",
993
- width: 243,
997
+ position: "relative",
998
+ maxWidth: 243,
999
+ minWidth: 160,
1000
+ flex: "0 1 243px",
994
1001
  flexDirection: "column",
995
1002
  alignItems: "center",
996
- flexShrink: 0
1003
+ display: "flex"
997
1004
  }, children: [
998
- /* @__PURE__ */ e(Wt, { score: n, maxScore: i }),
999
- /* @__PURE__ */ t("svg", { width: "34", height: "35", viewBox: "0 0 34 35", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { marginTop: -24 }, children: [
1000
- /* @__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)" }),
1001
- /* @__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)" })
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: k.strong,
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: k.strong,
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: k.muted,
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: k.absent
1071
+ background: w.absent
1047
1072
  } }),
1048
- h.map((y, m) => /* @__PURE__ */ e(
1049
- _t,
1073
+ y.map((f, u) => /* @__PURE__ */ e(
1074
+ Pt,
1050
1075
  {
1051
- label: y.label,
1052
- value: y.value
1076
+ label: f.label,
1077
+ value: f.value
1053
1078
  },
1054
- m
1079
+ u
1055
1080
  ))
1056
1081
  ] })
1057
1082
  ] })
1058
1083
  ] });
1059
- }, Gt = [
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
- ], Lt = ({
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: h,
1099
+ audioRef: y,
1075
1100
  currentTimeSeconds: v,
1076
- timelinePlaying: y,
1077
- playbackRate: m,
1078
- timelineSegments: w,
1079
- onSeek: S,
1080
- onTogglePlay: D,
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: f,
1108
+ onSetPlaybackRate: h,
1084
1109
  // Speaker names
1085
- agentName: u,
1086
- customerName: C,
1110
+ agentName: m,
1111
+ customerName: D,
1087
1112
  // Transcript props — pass real transcript data from the host app
1088
- transcript: W,
1089
- activeTurnIndex: F,
1090
- turnObservations: E,
1113
+ transcript: F,
1114
+ activeTurnIndex: I,
1115
+ turnObservations: P,
1091
1116
  highlightedTurns: z,
1092
- onTurnPlayPause: P,
1117
+ onTurnPlayPause: j,
1093
1118
  // Signal evidence playback — host app can provide to play audio segments from signals
1094
- onPlayEvidence: A,
1095
- onHighlightTurns: G,
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: T,
1098
- predictedCsat: I,
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: B,
1101
- customerSessionCount: $,
1102
- onSessionClick: N,
1103
- onViewAllSessions: Y,
1134
+ customerSessions: Ge,
1135
+ customerSessionCount: Me,
1136
+ onSessionClick: V,
1137
+ onViewAllSessions: K,
1104
1138
  // Footer navigation
1105
- prevSessionTitle: We,
1106
- prevSessionDesc: ze,
1107
- nextSessionTitle: Ie,
1108
- nextSessionDesc: Fe,
1109
- onPreviousSession: _e,
1110
- onNextSession: Ae
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 ce, ge;
1113
- const [j, Ge] = _("overview"), [He, Q] = _(/* @__PURE__ */ new Set()), [V, O] = _(!1), [K, X] = _(null), [Me, Z] = _(!1), [Ee, Te] = _(0), H = M(null), J = M(null), ee = M(null), te = M(null), ne = M(null), Re = { overview: J, coaching: ee, signals: te, comments: ne }, Le = (o) => {
1114
- Ge(o);
1115
- const g = Re[o];
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
- }, ie = B || [], Pe = (o) => {
1118
- var b;
1153
+ }, le = Ge || [], Qe = (o) => {
1154
+ var S;
1119
1155
  const g = o / 1e3;
1120
- (b = H.current) != null && b.seekTo && H.current.seekTo(g);
1121
- }, Be = (o) => {
1156
+ (S = T.current) != null && S.seekTo && T.current.seekTo(g);
1157
+ }, Ye = (o) => {
1122
1158
  var g;
1123
- if (A)
1124
- A(o);
1159
+ if (G)
1160
+ G(o);
1125
1161
  else {
1126
- const b = o.start_ms ?? o.startMs;
1127
- if (b != null && ((g = H.current) != null && g.seekTo)) {
1128
- H.current.seekTo(b / 1e3), Z(!0), Te(b / 1e3);
1129
- const Je = (o.end_ms ?? o.endMs ?? b + 5e3) - b;
1130
- setTimeout(() => Z(!1), Je);
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
- }, $e = (o) => {
1134
- G && G(o);
1135
- }, je = (o) => {
1136
- Q((g) => {
1137
- const b = new Set(g);
1138
- return b.has(o) ? b.delete(o) : b.add(o), b;
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
- }, Oe = (r == null ? void 0 : r.blocks) || [], R = (o) => {
1176
+ }, Xe = (r == null ? void 0 : r.blocks) || [], B = (o) => {
1141
1177
  var g;
1142
- return ((g = Oe.find((b) => b.block_id === o)) == null ? void 0 : g.payload) || {};
1143
- }, U = R("interaction-metadata"), oe = R("interaction-context"), L = R("interaction-signals"), re = R("interaction-outcome-lift"), Ue = oe.call_purpose || {}, qe = oe.classification || {}, le = { duration_seconds: 156, message_count: 25, ...U }, se = { interaction_driver: "General Information", interaction_direction: "inbound", ...Ue }, Ne = { interaction_paradigm: "Informational", ...qe }, Ye = { p_expected: 0.94, p_full: 0.83, lift_raw: -0.11, lift: 0.043, interpretation: { lift_band: "positive" }, ...re }, Qe = ((ce = re.driver_signal_keys) == null ? void 0 : ce.map((o) => o.replace(/^sig\./, "").replace(/_/g, " "))) || [
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
- ], Ve = s || {
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
- }, Ke = (ge = L == null ? void 0 : L.signals) != null && ge.length ? L : {
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
- }, ae = u || "Agent", q = C || "Customer", de = $ ?? ie.length, Xe = U.evaluated_dt ? new Date(U.evaluated_dt).toLocaleString() : "3/29/2026, 8:30:00 AM", Ze = se.interaction_direction === "inbound" ? "Inbound" : "Outbound";
1189
- return /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", width: "100%", background: "var(--Grey-White, #FFF)" }, children: [
1190
- /* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", gap: 12, padding: "24px 24px 0" }, children: [
1191
- /* @__PURE__ */ e(
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: i,
1265
+ onClick: () => Ne(o.key),
1195
1266
  style: {
1196
1267
  display: "flex",
1268
+ padding: 16,
1197
1269
  alignItems: "center",
1198
- justifyContent: "center",
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
- padding: 0,
1203
- flexShrink: 0
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: /* @__PURE__ */ e(pe, { size: 24, color: "var(--Grey-Strong, #2E3236)" })
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
- children: o.label
1245
- },
1246
- o.key
1247
- )) }),
1283
+ o.key
1284
+ )) })
1285
+ ] }),
1248
1286
  /* @__PURE__ */ t("div", { style: { padding: 24, flex: 1, overflowY: "auto" }, children: [
1249
- /* @__PURE__ */ t("div", { ref: J, style: {
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(at, { size: 24, color: "var(--rail-orange, #C98A5A)", strokeWidth: 2 }),
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(dt, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
1277
- /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", fontFamily: "var(--font-sans)", lineHeight: 1.2 }, children: Xe })
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(ct, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
1281
- /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", fontFamily: "var(--font-sans)", lineHeight: 1.2 }, children: Ze })
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(gt, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
1292
- /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", fontFamily: "var(--font-sans)", lineHeight: 1.2 }, children: ae })
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(pt, { size: 16, color: "var(--color-input-border, #ACACAD)", strokeWidth: 1.5 }),
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: () => O((o) => !o),
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(fe, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
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
- q,
1350
+ Q,
1313
1351
  " (",
1314
- de,
1352
+ pe,
1315
1353
  " Sessions)"
1316
1354
  ] }),
1317
- V ? /* @__PURE__ */ e(De, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }) : /* @__PURE__ */ e(Ce, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 })
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
- V && /* @__PURE__ */ t("div", { style: {
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(fe, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5, style: { marginTop: 2, flexShrink: 0 } }),
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: q }),
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
- de,
1392
+ pe,
1355
1393
  " Sessions in past"
1356
1394
  ] })
1357
1395
  ] })
1358
1396
  ] }),
1359
- ie.map((o, g) => /* @__PURE__ */ t(
1397
+ le.slice(0, 5).map((o, g) => /* @__PURE__ */ t(
1360
1398
  "div",
1361
1399
  {
1362
1400
  onClick: () => {
1363
- N && N(o), O(!1);
1401
+ V && V(o), q(!1);
1364
1402
  },
1365
- onMouseEnter: () => X(g),
1366
- onMouseLeave: () => X(null),
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: K === g ? "var(--surface-hover, #F3F7F7)" : "var(--Grey-White, #FFF)",
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
- K === g && /* @__PURE__ */ e(ke, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1, style: { flexShrink: 0 } })
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
- Y && Y(), O(!1);
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(ft, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
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: "flex-start",
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
- At,
1481
+ /* @__PURE__ */ e("div", { style: { flex: 1, minWidth: 0, display: "flex" }, children: /* @__PURE__ */ e(
1482
+ Lt,
1445
1483
  {
1446
- score: T ?? 0,
1484
+ score: A != null ? Math.round(A * 100) : 0,
1447
1485
  maxScore: 100,
1448
- predictedScore: I ?? 0,
1449
- predictedLabel: "Predicted Objective"
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
- wt,
1501
+ At,
1463
1502
  {
1464
- meta: le,
1465
- callPurpose: se,
1466
- classification: Ne,
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
- Dt,
1510
+ Gt,
1472
1511
  {
1473
- outcomeLift: Ye,
1474
- driverLabels: Qe
1512
+ outcomeLift: tt,
1513
+ driverLabels: nt
1475
1514
  }
1476
1515
  )
1477
1516
  ] })
1478
1517
  ] })
1479
1518
  ] }),
1480
- /* @__PURE__ */ e("div", { ref: ee, style: { paddingTop: 24 }, children: /* @__PURE__ */ e(bt, { data: Ve }) }),
1481
- /* @__PURE__ */ t("div", { ref: te, style: {
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(we, { size: 24, color: "#C98A5A", strokeWidth: 2 }),
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
- Ct,
1550
+ Mt,
1512
1551
  {
1513
- signals: Ke,
1514
- expandedSignals: He,
1515
- toggleSignal: je,
1516
- playEvidence: Be,
1517
- highlightTurns: $e,
1518
- onShowInTranscript: Pe,
1519
- timelinePlaying: y || Me,
1520
- currentTimeSeconds: v ?? Ee
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
- yt,
1563
+ wt,
1525
1564
  {
1526
- ref: H,
1565
+ ref: T,
1527
1566
  audioUrl: p,
1528
- durationSeconds: le.duration_seconds,
1529
- audioRef: h,
1530
- agentName: ae,
1531
- customerName: q.split(" ")[0],
1567
+ durationSeconds: de.duration_seconds,
1568
+ audioRef: y,
1569
+ agentName: ge,
1570
+ customerName: Q.split(" ")[0],
1532
1571
  currentTimeSeconds: v,
1533
- timelinePlaying: y,
1534
- playbackRate: m,
1535
- timelineSegments: w,
1536
- onSeek: S,
1537
- onTogglePlay: D,
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: f,
1541
- transcript: W,
1542
- activeTurnIndex: F,
1543
- turnObservations: E,
1579
+ onSetPlaybackRate: h,
1580
+ transcript: F,
1581
+ activeTurnIndex: I,
1582
+ turnObservations: P,
1544
1583
  highlightedTurns: z,
1545
- onTurnPlayPause: P,
1546
- setExpandedSignals: Q
1584
+ onTurnPlayPause: j,
1585
+ setExpandedSignals: X
1547
1586
  }
1548
1587
  ) })
1549
1588
  ] })
1550
1589
  ] }),
1551
- /* @__PURE__ */ e("div", { ref: ne, style: { paddingTop: 24 }, children: /* @__PURE__ */ e("div", { style: { fontSize: 14, color: "var(--Grey-Muted, #808183)", fontFamily: "var(--font-sans)" }, children: "No comments yet." }) })
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: _e,
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(pe, { size: 24, color: "var(--Grey-Muted, #808183)", strokeWidth: 2 }),
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: We || "Previous Session Title" }),
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: ze || "Short description of the session" })
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: Ae,
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: Ie || "Next Session Title" }),
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: Fe || "Short description of the session" })
1671
+ }, children: Re || "Short description of the session" })
1627
1672
  ] }),
1628
- /* @__PURE__ */ e(ht, { size: 24, color: "var(--Grey-Muted, #808183)", strokeWidth: 2 })
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
- bt as UpdatedCoachingSynthesisCard,
1637
- At as UpdatedCompassScore,
1638
- wt as UpdatedInteractionContext,
1639
- Lt as UpdatedInteractionDetails,
1640
- yt as UpdatedInteractionRecording,
1641
- Dt as UpdatedInteractionScores,
1642
- Ct as UpdatedInteractionSignals
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