chordia-ui 3.4.2 → 3.4.4

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.
Files changed (37) hide show
  1. package/dist/Timeline.cjs.js +6 -1
  2. package/dist/Timeline.cjs.js.map +1 -1
  3. package/dist/Timeline.es.js +597 -129
  4. package/dist/Timeline.es.js.map +1 -1
  5. package/dist/UpdatedInteractionRecording.cjs.js +1 -1
  6. package/dist/UpdatedInteractionRecording.cjs.js.map +1 -1
  7. package/dist/UpdatedInteractionRecording.es.js +233 -241
  8. package/dist/UpdatedInteractionRecording.es.js.map +1 -1
  9. package/dist/components/UpdatedInteractionDetails.cjs.js +2 -2
  10. package/dist/components/UpdatedInteractionDetails.cjs.js.map +1 -1
  11. package/dist/components/UpdatedInteractionDetails.es.js +451 -360
  12. package/dist/components/UpdatedInteractionDetails.es.js.map +1 -1
  13. package/dist/components/media.cjs.js +1 -1
  14. package/dist/components/media.cjs.js.map +1 -1
  15. package/dist/components/media.es.js +8 -9
  16. package/dist/components/media.es.js.map +1 -1
  17. package/dist/index.cjs.js +1 -1
  18. package/dist/index.cjs2.js +1 -1
  19. package/dist/index.cjs2.js.map +1 -1
  20. package/dist/index.es.js +52 -53
  21. package/dist/index.es.js.map +1 -1
  22. package/dist/index.es2.js +596 -587
  23. package/dist/index.es2.js.map +1 -1
  24. package/dist/pages/interactionDetails.cjs.js +2 -2
  25. package/dist/pages/interactionDetails.cjs.js.map +1 -1
  26. package/dist/pages/interactionDetails.es.js +16 -17
  27. package/dist/pages/interactionDetails.es.js.map +1 -1
  28. package/package.json +1 -1
  29. package/src/components/UpdatedInteractionDetails/UpdatedCompassScore.jsx +54 -2
  30. package/src/components/UpdatedInteractionDetails/UpdatedInteractionDetails.jsx +58 -14
  31. package/src/components/UpdatedInteractionDetails/UpdatedInteractionRecording.jsx +132 -126
  32. package/src/components/UpdatedInteractionDetails/UpdatedInteractionSignals.jsx +14 -6
  33. package/src/components/login/LoginPage.jsx +18 -3
  34. package/dist/TranscriptCard.cjs.js +0 -7
  35. package/dist/TranscriptCard.cjs.js.map +0 -1
  36. package/dist/TranscriptCard.es.js +0 -474
  37. package/dist/TranscriptCard.es.js.map +0 -1
@@ -1,8 +1,7 @@
1
1
  import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
- import Be, { useState as A, useRef as _ } from "react";
3
- import { ShieldCheck as $e, TrendingUp as Pe, Lightbulb as je, ThumbsUp as ue, ExternalLink as ve, FileSignal as me, ChevronUp as xe, ChevronDown as be, ScrollText as Oe, PlayCircle as Ue, Info as qe, ArrowLeft as se, ClipboardList as Ne, CalendarDays as Ve, PhoneIncoming as Ye, Headset as Qe, Repeat as Ke, CircleUser as ae, History as Ze, ArrowRight as Xe } from "lucide-react";
4
- import { U as Je } from "../UpdatedInteractionRecording.es.js";
5
- import "../Timeline.es.js";
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";
6
5
  const c = {
7
6
  strong: "var(--Grey-Strong, #2E3236)",
8
7
  muted: "var(--Grey-Muted, #808183)",
@@ -12,17 +11,17 @@ const c = {
12
11
  quoteLine: "var(--border-warm, #B2AEA8)",
13
12
  quoteText: "var(--text-subtle-warm, #767473)",
14
13
  iconBg: "var(--surface-hover, #F3F7F7)"
15
- }, et = {
14
+ }, ut = {
16
15
  effective: "Effective",
17
16
  strong: "Strong",
18
17
  needs_improvement: "Needs Improvement",
19
18
  mixed: "Mixed"
20
- }, de = "updated-coaching-synthesis-keyframes";
21
- function tt() {
22
- if (typeof document > "u" || document.getElementById(de))
19
+ }, he = "updated-coaching-synthesis-keyframes";
20
+ function vt() {
21
+ if (typeof document > "u" || document.getElementById(he))
23
22
  return;
24
23
  const n = document.createElement("style");
25
- n.id = de, n.textContent = `
24
+ n.id = he, n.textContent = `
26
25
  @keyframes updated-coaching-shimmer {
27
26
  0% { background-position: -200% 0; }
28
27
  100% { background-position: 200% 0; }
@@ -33,8 +32,8 @@ function tt() {
33
32
  }
34
33
  `, document.head.appendChild(n);
35
34
  }
36
- function nt({ overall: n }) {
37
- const i = et[n] || (n ? n.replace(/_/g, " ") : "");
35
+ function mt({ overall: n }) {
36
+ const i = ut[n] || (n ? n.replace(/_/g, " ") : "");
38
37
  return /* @__PURE__ */ t("div", { style: {
39
38
  display: "flex",
40
39
  alignItems: "center",
@@ -53,7 +52,7 @@ function nt({ overall: n }) {
53
52
  alignItems: "center",
54
53
  gap: 6
55
54
  }, children: [
56
- /* @__PURE__ */ e(ue, { size: 14, color: c.strong, strokeWidth: 1.5 }),
55
+ /* @__PURE__ */ e(Se, { size: 14, color: c.strong, strokeWidth: 1.5 }),
57
56
  /* @__PURE__ */ e("span", { style: {
58
57
  fontSize: 13,
59
58
  fontWeight: 600,
@@ -64,8 +63,8 @@ function nt({ overall: n }) {
64
63
  ] })
65
64
  ] });
66
65
  }
67
- function it({ item: n }) {
68
- const i = typeof n == "string" ? n : (n == null ? void 0 : n.text) || "", o = typeof n == "object" ? n == null ? void 0 : n.quote : null;
66
+ function xt({ item: n }) {
67
+ const i = typeof n == "string" ? n : (n == null ? void 0 : n.text) || "", r = typeof n == "object" ? n == null ? void 0 : n.quote : null;
69
68
  return /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 14 }, children: [
70
69
  /* @__PURE__ */ e("div", { style: {
71
70
  fontSize: 14,
@@ -74,7 +73,7 @@ function it({ item: n }) {
74
73
  fontFamily: "var(--font-sans)",
75
74
  lineHeight: 1.5
76
75
  }, children: i }),
77
- o && /* @__PURE__ */ t("div", { style: {
76
+ r && /* @__PURE__ */ t("div", { style: {
78
77
  display: "flex",
79
78
  gap: 10
80
79
  }, children: [
@@ -92,14 +91,14 @@ function it({ item: n }) {
92
91
  lineHeight: 1.5
93
92
  }, children: [
94
93
  "“",
95
- o,
94
+ r,
96
95
  "”"
97
96
  ] })
98
97
  ] })
99
98
  ] });
100
99
  }
101
- function ce({ icon: n, label: i, items: o }) {
102
- return !o || o.length === 0 ? null : /* @__PURE__ */ t("div", { style: {
100
+ function ye({ icon: n, label: i, items: r }) {
101
+ return !r || r.length === 0 ? null : /* @__PURE__ */ t("div", { style: {
103
102
  flex: 1,
104
103
  display: "flex",
105
104
  flexDirection: "column",
@@ -129,13 +128,13 @@ function ce({ icon: n, label: i, items: o }) {
129
128
  lineHeight: "normal"
130
129
  }, children: i })
131
130
  ] }),
132
- /* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", gap: 24 }, children: o.map((d, g) => /* @__PURE__ */ e(it, { item: d }, g)) })
131
+ /* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", gap: 24 }, children: r.map((s, p) => /* @__PURE__ */ e(xt, { item: s }, p)) })
133
132
  ] });
134
133
  }
135
- const ot = ({ data: n, loading: i, error: o }) => {
136
- var y, u;
137
- if (Be.useEffect(() => {
138
- tt();
134
+ const bt = ({ data: n, loading: i, error: r }) => {
135
+ var y, m;
136
+ if (et.useEffect(() => {
137
+ vt();
139
138
  }, []), i)
140
139
  return /* @__PURE__ */ t("div", { style: {
141
140
  display: "flex",
@@ -160,31 +159,31 @@ const ot = ({ data: n, loading: i, error: o }) => {
160
159
  fontWeight: 500
161
160
  }, children: "Synthesizing coaching summary..." })
162
161
  ] }),
163
- [180, 260, 220].map((k, b) => /* @__PURE__ */ e(
162
+ [180, 260, 220].map((w, S) => /* @__PURE__ */ e(
164
163
  "div",
165
164
  {
166
165
  style: {
167
166
  height: 10,
168
- width: k,
167
+ width: w,
169
168
  maxWidth: "100%",
170
169
  borderRadius: 4,
171
170
  background: `linear-gradient(90deg, ${c.absent} 25%, var(--shimmer-mid, #ECECEC) 50%, ${c.absent} 75%)`,
172
171
  backgroundSize: "200% 100%",
173
172
  animation: "updated-coaching-shimmer 1.8s ease-in-out infinite",
174
- animationDelay: `${b * 0.2}s`
173
+ animationDelay: `${S * 0.2}s`
175
174
  }
176
175
  },
177
- b
176
+ S
178
177
  ))
179
178
  ] });
180
- if (o)
179
+ if (r)
181
180
  return /* @__PURE__ */ e("div", { style: {
182
181
  fontSize: 14,
183
182
  color: c.muted
184
183
  }, children: "Unable to generate coaching summary." });
185
184
  if (!n)
186
185
  return null;
187
- const d = n.strengths || [], g = n.improvements || [], f = typeof n.one_liner == "string" ? n.one_liner : ((y = n.one_liner) == null ? void 0 : y.text) || "", x = typeof n.context == "string" ? n.context : ((u = n.context) == null ? void 0 : u.text) || "";
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) || "";
188
187
  return /* @__PURE__ */ t("div", { style: {
189
188
  display: "flex",
190
189
  flexDirection: "column",
@@ -196,7 +195,7 @@ const ot = ({ data: n, loading: i, error: o }) => {
196
195
  alignItems: "center",
197
196
  gap: 8
198
197
  }, children: [
199
- /* @__PURE__ */ e($e, { size: 20, color: c.accent, strokeWidth: 2 }),
198
+ /* @__PURE__ */ e(tt, { size: 20, color: c.accent, strokeWidth: 2 }),
200
199
  /* @__PURE__ */ e("span", { style: {
201
200
  fontSize: 16,
202
201
  fontWeight: 600,
@@ -206,59 +205,59 @@ const ot = ({ data: n, loading: i, error: o }) => {
206
205
  textTransform: "uppercase"
207
206
  }, children: "Coaching Summary" })
208
207
  ] }),
209
- f && /* @__PURE__ */ e("div", { style: {
208
+ h && /* @__PURE__ */ e("div", { style: {
210
209
  fontSize: 14,
211
210
  fontWeight: 500,
212
211
  color: c.strong,
213
212
  fontFamily: "var(--font-sans)",
214
213
  lineHeight: 1.5
215
- }, children: f }),
214
+ }, children: h }),
216
215
  /* @__PURE__ */ t("div", { style: {
217
216
  display: "flex",
218
217
  alignItems: "flex-start",
219
218
  gap: 16,
220
219
  justifyContent: "space-between"
221
220
  }, children: [
222
- x && /* @__PURE__ */ e("div", { style: {
221
+ v && /* @__PURE__ */ e("div", { style: {
223
222
  fontSize: 14,
224
223
  fontWeight: 400,
225
224
  color: c.muted,
226
225
  fontFamily: "var(--font-sans)",
227
226
  lineHeight: 1.5,
228
227
  flex: 1
229
- }, children: x }),
230
- n.overall && /* @__PURE__ */ e(nt, { overall: n.overall })
228
+ }, children: v }),
229
+ n.overall && /* @__PURE__ */ e(mt, { overall: n.overall })
231
230
  ] }),
232
- (d.length > 0 || g.length > 0) && /* @__PURE__ */ t("div", { style: {
231
+ (s.length > 0 || p.length > 0) && /* @__PURE__ */ t("div", { style: {
233
232
  display: "flex",
234
233
  gap: 24,
235
234
  paddingTop: 24,
236
235
  borderTop: `1px solid ${c.absent}`
237
236
  }, children: [
238
237
  /* @__PURE__ */ e(
239
- ce,
238
+ ye,
240
239
  {
241
- icon: /* @__PURE__ */ e(Pe, { size: 14, color: c.strong, strokeWidth: 1.5 }),
240
+ icon: /* @__PURE__ */ e(nt, { size: 14, color: c.strong, strokeWidth: 1.5 }),
242
241
  label: "Key Strengths",
243
- items: d
242
+ items: s
244
243
  }
245
244
  ),
246
245
  /* @__PURE__ */ e(
247
- ce,
246
+ ye,
248
247
  {
249
- icon: /* @__PURE__ */ e(je, { size: 14, color: c.strong, strokeWidth: 1.5 }),
248
+ icon: /* @__PURE__ */ e(it, { size: 14, color: c.strong, strokeWidth: 1.5 }),
250
249
  label: "Improvements",
251
- items: g
250
+ items: p
252
251
  }
253
252
  )
254
253
  ] })
255
254
  ] });
256
255
  };
257
- function rt(n) {
258
- const i = Math.floor(n / 60), o = Math.round(n % 60);
259
- return `${i}:${o.toString().padStart(2, "0")}`;
256
+ function St(n) {
257
+ const i = Math.floor(n / 60), r = Math.round(n % 60);
258
+ return `${i}:${r.toString().padStart(2, "0")}`;
260
259
  }
261
- const lt = {
260
+ const kt = {
262
261
  display: "flex",
263
262
  justifyContent: "space-between",
264
263
  padding: "8px 8px 12px 8px",
@@ -269,34 +268,34 @@ const lt = {
269
268
  fontWeight: 400,
270
269
  lineHeight: "normal",
271
270
  borderBottom: "1px solid var(--Grey-absent, #D9D9D9)"
272
- }, ge = {
271
+ }, ue = {
273
272
  display: "flex",
274
273
  flexDirection: "column",
275
274
  flex: "1 0 0",
276
275
  gap: 12,
277
276
  minWidth: 0
278
- }, st = ({
277
+ }, wt = ({
279
278
  meta: n = {},
280
279
  callPurpose: i = {},
281
- classification: o = {},
282
- dimensions: d = [],
283
- outcomeQuality: g = "Neutral",
284
- onMoreDetails: f
280
+ classification: r = {},
281
+ dimensions: s = [],
282
+ outcomeQuality: p = "Neutral",
283
+ onMoreDetails: h
285
284
  }) => {
286
- const x = n.duration_seconds != null ? rt(n.duration_seconds) : null, y = n.message_count, u = i.interaction_driver, k = o.interaction_paradigm, b = [
287
- x != null && { label: "Duration", value: x },
288
- u != null && { label: "Driver", value: u },
289
- ...d.filter((r, p) => p % 2 === 0).map((r) => ({ label: r.label || r.key, value: r.value })),
290
- { label: "Outcome Quality", value: g }
291
- ].filter(Boolean), w = [
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 = [
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 })),
289
+ { label: "Outcome Quality", value: p }
290
+ ].filter(Boolean), D = [
292
291
  y != null && { label: "Messages", value: y },
293
- k != null && { label: "Paradigm", value: k },
294
- ...d.filter((r, p) => p % 2 === 1).map((r) => ({ label: r.label || r.key, value: r.value })),
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 })),
295
294
  { label: "More Details", isLink: !0 }
296
- ].filter(Boolean), s = (r) => r.isLink ? /* @__PURE__ */ t(
295
+ ].filter(Boolean), d = (l) => l.isLink ? /* @__PURE__ */ t(
297
296
  "div",
298
297
  {
299
- onClick: f,
298
+ onClick: h,
300
299
  style: {
301
300
  display: "flex",
302
301
  alignItems: "center",
@@ -306,21 +305,21 @@ const lt = {
306
305
  fontFamily: "var(--font-sans)"
307
306
  },
308
307
  children: [
309
- /* @__PURE__ */ e(ve, { size: 16, color: "#808183", strokeWidth: 1.5 }),
310
- /* @__PURE__ */ e("span", { style: { color: "var(--Grey-Strong, #2E3236)", fontSize: 13, fontWeight: 400 }, children: r.label })
308
+ /* @__PURE__ */ e(ke, { size: 16, color: "#808183", strokeWidth: 1.5 }),
309
+ /* @__PURE__ */ e("span", { style: { color: "var(--Grey-Strong, #2E3236)", fontSize: 13, fontWeight: 400 }, children: l.label })
311
310
  ]
312
311
  },
313
- r.label
312
+ l.label
314
313
  ) : /* @__PURE__ */ t(
315
314
  "div",
316
315
  {
317
- style: lt,
316
+ style: kt,
318
317
  children: [
319
- /* @__PURE__ */ e("span", { style: { color: "var(--Grey-Strong, #2E3236)", whiteSpace: "nowrap", flexShrink: 0 }, children: r.label }),
320
- /* @__PURE__ */ e("span", { style: { color: "var(--Grey-Muted, #808183)", textAlign: "right" }, children: r.value })
318
+ /* @__PURE__ */ e("span", { style: { color: "var(--Grey-Strong, #2E3236)", whiteSpace: "nowrap", flexShrink: 0 }, children: l.label }),
319
+ /* @__PURE__ */ e("span", { style: { color: "var(--Grey-Muted, #808183)", textAlign: "right" }, children: l.value })
321
320
  ]
322
321
  },
323
- r.label
322
+ l.label
324
323
  );
325
324
  return /* @__PURE__ */ t(
326
325
  "div",
@@ -332,27 +331,27 @@ const lt = {
332
331
  alignSelf: "stretch"
333
332
  },
334
333
  children: [
335
- /* @__PURE__ */ e("div", { style: ge, children: b.map((r) => s(r)) }),
336
- /* @__PURE__ */ e("div", { style: ge, children: w.map((r) => s(r)) })
334
+ /* @__PURE__ */ e("div", { style: ue, children: S.map((l) => d(l)) }),
335
+ /* @__PURE__ */ e("div", { style: ue, children: D.map((l) => d(l)) })
337
336
  ]
338
337
  }
339
338
  );
340
- }, l = {
339
+ }, a = {
341
340
  strong: "var(--Grey-Strong, #2E3236)",
342
341
  muted: "var(--Grey-Muted, #808183)",
343
342
  absent: "var(--Grey-absent, #D9D9D9)",
344
343
  white: "var(--Grey-White, #FFF)",
345
344
  cardBg: "var(--surface-warm-40, rgba(243, 241, 229, 0.40))"
346
- }, m = 1.2, pe = 3, fe = (n) => n != null ? Math.round(n * 100) + "%" : "—", he = (n) => {
345
+ }, x = 1.2, ve = 3, me = (n) => n != null ? Math.round(n * 100) + "%" : "—", xe = (n) => {
347
346
  if (n == null)
348
347
  return "—";
349
348
  const i = (n * 100).toFixed(1);
350
349
  return n > 0 ? `+${i}pp` : `${i}pp`;
351
- }, at = ({ outcomeLift: n, driverLabels: i = [] }) => {
352
- var b;
350
+ }, Dt = ({ outcomeLift: n, driverLabels: i = [] }) => {
351
+ var S;
353
352
  if (!n || n.lift == null)
354
353
  return null;
355
- const o = n.p_expected, d = n.p_full, g = n.lift_raw ?? (d != null && o != null ? d - o : null), f = n.lift, x = (b = n.interpretation) != null && b.lift_band ? n.interpretation.lift_band.replace(/_/g, " ") : f >= 0 ? "Positive" : "Negative", y = x.charAt(0).toUpperCase() + x.slice(1), u = i.slice(0, pe), k = i.length - pe;
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;
356
355
  return /* @__PURE__ */ t(
357
356
  "div",
358
357
  {
@@ -362,8 +361,8 @@ const lt = {
362
361
  padding: 24,
363
362
  gap: 24,
364
363
  borderRadius: 8,
365
- border: `1px solid ${l.absent}`,
366
- background: l.cardBg,
364
+ border: `1px solid ${a.absent}`,
365
+ background: a.cardBg,
367
366
  alignSelf: "stretch"
368
367
  },
369
368
  children: [
@@ -385,9 +384,9 @@ const lt = {
385
384
  style: {
386
385
  fontSize: 15,
387
386
  fontWeight: 600,
388
- color: l.strong,
387
+ color: a.strong,
389
388
  fontFamily: "var(--font-sans)",
390
- lineHeight: m
389
+ lineHeight: x
391
390
  },
392
391
  children: "Agent Lift Analysis"
393
392
  }
@@ -402,8 +401,8 @@ const lt = {
402
401
  fontFamily: "var(--font-sans)"
403
402
  },
404
403
  children: [
405
- /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: l.strong, lineHeight: m }, children: "vs. Average Agent:" }),
406
- /* @__PURE__ */ e("span", { style: { fontSize: 14, fontWeight: 600, color: l.strong, lineHeight: m }, children: he(f) }),
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) }),
407
406
  /* @__PURE__ */ t(
408
407
  "div",
409
408
  {
@@ -412,11 +411,11 @@ const lt = {
412
411
  alignItems: "center",
413
412
  gap: 6,
414
413
  paddingLeft: 8,
415
- borderLeft: `1px solid ${l.absent}`
414
+ borderLeft: `1px solid ${a.absent}`
416
415
  },
417
416
  children: [
418
- /* @__PURE__ */ e(ue, { size: 14, color: l.strong }),
419
- /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 600, color: l.strong, lineHeight: m }, children: y })
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 })
420
419
  ]
421
420
  }
422
421
  )
@@ -436,10 +435,10 @@ const lt = {
436
435
  },
437
436
  children: [
438
437
  /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 16, alignItems: "center" }, children: [
439
- /* @__PURE__ */ e("span", { style: { fontSize: 28, fontWeight: 400, color: l.muted, fontFamily: "var(--font-sans)", lineHeight: m }, children: fe(o) }),
438
+ /* @__PURE__ */ e("span", { style: { fontSize: 28, fontWeight: 400, color: a.muted, fontFamily: "var(--font-sans)", lineHeight: x }, children: me(r) }),
440
439
  /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
441
- /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: l.strong, fontFamily: "var(--font-sans)", lineHeight: m }, children: "Expected Outcome" }),
442
- /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: l.muted, fontFamily: "var(--font-sans)", lineHeight: m }, children: "Based on call type & difficulty" })
440
+ /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: a.strong, fontFamily: "var(--font-sans)", lineHeight: x }, children: "Expected Outcome" }),
441
+ /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: a.muted, fontFamily: "var(--font-sans)", lineHeight: x }, children: "Based on call type & difficulty" })
443
442
  ] })
444
443
  ] }),
445
444
  /* @__PURE__ */ t("div", { style: {
@@ -448,12 +447,12 @@ const lt = {
448
447
  gap: 16,
449
448
  alignItems: "center",
450
449
  paddingLeft: 24,
451
- borderLeft: `1px solid ${l.absent}`
450
+ borderLeft: `1px solid ${a.absent}`
452
451
  }, children: [
453
- /* @__PURE__ */ e("span", { style: { fontSize: 28, fontWeight: 400, color: l.muted, fontFamily: "var(--font-sans)", lineHeight: m }, children: he(g) }),
452
+ /* @__PURE__ */ e("span", { style: { fontSize: 28, fontWeight: 400, color: a.muted, fontFamily: "var(--font-sans)", lineHeight: x }, children: xe(p) }),
454
453
  /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
455
- /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: l.strong, fontFamily: "var(--font-sans)", lineHeight: m }, children: "Agent Impact" }),
456
- /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: l.muted, fontFamily: "var(--font-sans)", lineHeight: m }, children: "Behavior-driven change" })
454
+ /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: a.strong, fontFamily: "var(--font-sans)", lineHeight: x }, children: "Agent Impact" }),
455
+ /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: a.muted, fontFamily: "var(--font-sans)", lineHeight: x }, children: "Behavior-driven change" })
457
456
  ] })
458
457
  ] }),
459
458
  /* @__PURE__ */ t("div", { style: {
@@ -462,12 +461,12 @@ const lt = {
462
461
  gap: 16,
463
462
  alignItems: "center",
464
463
  paddingLeft: 24,
465
- borderLeft: `1px solid ${l.absent}`
464
+ borderLeft: `1px solid ${a.absent}`
466
465
  }, children: [
467
- /* @__PURE__ */ e("span", { style: { fontSize: 28, fontWeight: 400, color: l.strong, fontFamily: "var(--font-sans)", lineHeight: m }, children: fe(d) }),
466
+ /* @__PURE__ */ e("span", { style: { fontSize: 28, fontWeight: 400, color: a.strong, fontFamily: "var(--font-sans)", lineHeight: x }, children: me(s) }),
468
467
  /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
469
- /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 600, color: l.strong, fontFamily: "var(--font-sans)", lineHeight: m }, children: "Predicted Outcome" }),
470
- /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: l.muted, fontFamily: "var(--font-sans)", lineHeight: m }, children: "With agent behaviors" })
468
+ /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 600, color: a.strong, fontFamily: "var(--font-sans)", lineHeight: x }, children: "Predicted Outcome" }),
469
+ /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: a.muted, fontFamily: "var(--font-sans)", lineHeight: x }, children: "With agent behaviors" })
471
470
  ] })
472
471
  ] })
473
472
  ]
@@ -481,15 +480,15 @@ const lt = {
481
480
  style: {
482
481
  fontSize: 12,
483
482
  fontWeight: 600,
484
- color: l.strong,
483
+ color: a.strong,
485
484
  fontFamily: "var(--font-sans)",
486
- lineHeight: m
485
+ lineHeight: x
487
486
  },
488
487
  children: "Key Drivers"
489
488
  }
490
489
  ),
491
490
  /* @__PURE__ */ t("div", { style: { display: "flex", flexWrap: "wrap", gap: 4 }, children: [
492
- u.map((w, s) => /* @__PURE__ */ e(
491
+ m.map((D, d) => /* @__PURE__ */ e(
493
492
  "div",
494
493
  {
495
494
  style: {
@@ -498,8 +497,8 @@ const lt = {
498
497
  alignItems: "center",
499
498
  justifyContent: "center",
500
499
  borderRadius: 4,
501
- border: `1px solid ${l.absent}`,
502
- background: l.white
500
+ border: `1px solid ${a.absent}`,
501
+ background: a.white
503
502
  },
504
503
  children: /* @__PURE__ */ e(
505
504
  "span",
@@ -507,21 +506,21 @@ const lt = {
507
506
  style: {
508
507
  fontSize: 12,
509
508
  fontWeight: 400,
510
- color: l.strong,
509
+ color: a.strong,
511
510
  fontFamily: "var(--font-sans)",
512
- lineHeight: m,
511
+ lineHeight: x,
513
512
  whiteSpace: "nowrap",
514
513
  overflow: "hidden",
515
514
  textOverflow: "ellipsis",
516
515
  maxWidth: 200
517
516
  },
518
- children: w
517
+ children: D
519
518
  }
520
519
  )
521
520
  },
522
- s
521
+ d
523
522
  )),
524
- k > 0 && /* @__PURE__ */ e(
523
+ w > 0 && /* @__PURE__ */ e(
525
524
  "div",
526
525
  {
527
526
  style: {
@@ -530,8 +529,8 @@ const lt = {
530
529
  alignItems: "center",
531
530
  justifyContent: "center",
532
531
  borderRadius: 4,
533
- border: `1px solid ${l.absent}`,
534
- background: l.white
532
+ border: `1px solid ${a.absent}`,
533
+ background: a.white
535
534
  },
536
535
  children: /* @__PURE__ */ t(
537
536
  "span",
@@ -539,14 +538,14 @@ const lt = {
539
538
  style: {
540
539
  fontSize: 12,
541
540
  fontWeight: 400,
542
- color: l.strong,
541
+ color: a.strong,
543
542
  fontFamily: "var(--font-sans)",
544
- lineHeight: m,
543
+ lineHeight: x,
545
544
  whiteSpace: "nowrap"
546
545
  },
547
546
  children: [
548
547
  "+ ",
549
- k
548
+ w
550
549
  ]
551
550
  }
552
551
  )
@@ -557,15 +556,15 @@ const lt = {
557
556
  ]
558
557
  }
559
558
  );
560
- }, ye = ({ children: n, size: i = 28, onClick: o, title: d }) => {
561
- const [g, f] = A(!1);
559
+ }, be = ({ children: n, size: i = 28, onClick: r, title: s }) => {
560
+ const [p, h] = _(!1);
562
561
  return /* @__PURE__ */ e(
563
562
  "div",
564
563
  {
565
- title: d,
566
- onClick: o,
567
- onMouseEnter: () => f(!0),
568
- onMouseLeave: () => f(!1),
564
+ title: s,
565
+ onClick: r,
566
+ onMouseEnter: () => h(!0),
567
+ onMouseLeave: () => h(!1),
569
568
  style: {
570
569
  display: "flex",
571
570
  alignItems: "center",
@@ -573,7 +572,7 @@ const lt = {
573
572
  width: i,
574
573
  height: i,
575
574
  borderRadius: 9999,
576
- background: g ? "var(--surface-hover, #F3F7F7)" : "transparent",
575
+ background: p ? "var(--surface-hover, #F3F7F7)" : "transparent",
577
576
  cursor: "pointer",
578
577
  flexShrink: 0,
579
578
  transition: "background 0.15s"
@@ -581,24 +580,24 @@ const lt = {
581
580
  children: n
582
581
  }
583
582
  );
584
- }, dt = ({
583
+ }, Ct = ({
585
584
  signals: n = { signals: [], present_count: 0, total_signals_evaluated: 0 },
586
585
  expandedSignals: i = /* @__PURE__ */ new Set(),
587
- toggleSignal: o = () => {
586
+ toggleSignal: r = () => {
588
587
  },
589
- playEvidence: d = () => {
588
+ playEvidence: s = () => {
590
589
  },
591
- highlightTurns: g = () => {
590
+ highlightTurns: p = () => {
592
591
  },
593
- onShowInTranscript: f = () => {
592
+ onShowInTranscript: h = () => {
594
593
  },
595
- timelinePlaying: x = !1,
594
+ timelinePlaying: v = !1,
596
595
  currentTimeSeconds: y = 0
597
596
  }) => {
598
- const u = (n == null ? void 0 : n.signals) ?? [], k = (n == null ? void 0 : n.present_count) ?? u.length, b = (s) => {
599
- const r = Math.floor(s / 6e4), p = Math.floor(s % 6e4 / 1e3);
600
- return `${r.toString().padStart(2, "0")}:${p.toString().padStart(2, "0")}`;
601
- }, w = (s) => x && s.start_ms != null && y * 1e3 >= s.start_ms && y * 1e3 <= (s.end_ms ?? s.start_ms + 5e3);
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);
602
601
  return /* @__PURE__ */ t("div", { style: {
603
602
  display: "flex",
604
603
  flexDirection: "column",
@@ -622,7 +621,7 @@ const lt = {
622
621
  borderRadius: 9999,
623
622
  background: "var(--surface-hover, #F3F7F7)",
624
623
  flexShrink: 0
625
- }, children: /* @__PURE__ */ e(me, { size: 20, color: "#2E3236", strokeWidth: 1.5 }) }),
624
+ }, children: /* @__PURE__ */ e(we, { size: 20, color: "#2E3236", strokeWidth: 1.5 }) }),
626
625
  /* @__PURE__ */ t("div", { style: {
627
626
  display: "flex",
628
627
  alignItems: "center",
@@ -639,7 +638,7 @@ const lt = {
639
638
  fontWeight: 500,
640
639
  color: "var(--Grey-Strong, #2E3236)"
641
640
  }, children: [
642
- k,
641
+ w,
643
642
  " Signals Detected"
644
643
  ] })
645
644
  ] })
@@ -651,18 +650,18 @@ const lt = {
651
650
  background: "var(--Grey-White, #FFF)",
652
651
  gap: 8
653
652
  }, children: [
654
- u.length === 0 && /* @__PURE__ */ e("div", { style: {
653
+ m.length === 0 && /* @__PURE__ */ e("div", { style: {
655
654
  padding: "8px 0",
656
655
  fontSize: 14,
657
656
  color: "var(--Grey-Muted, #808183)"
658
657
  }, children: "No signals detected." }),
659
- u.map((s, r) => {
660
- var W, I, G;
661
- const p = s.key ?? s.id ?? r, h = i.has(p), D = ((W = s.observations) == null ? void 0 : W.length) ?? 0;
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;
662
661
  return /* @__PURE__ */ t(
663
662
  "div",
664
663
  {
665
- id: `signal-${p}`,
664
+ id: `signal-${f}`,
666
665
  style: {
667
666
  display: "flex",
668
667
  flexDirection: "column",
@@ -673,7 +672,7 @@ const lt = {
673
672
  /* @__PURE__ */ t(
674
673
  "button",
675
674
  {
676
- onClick: () => o(p),
675
+ onClick: () => r(f),
677
676
  style: {
678
677
  display: "flex",
679
678
  padding: "8px 0",
@@ -695,28 +694,28 @@ const lt = {
695
694
  color: "var(--text-dark, #0B0A0A)",
696
695
  lineHeight: 1.71
697
696
  }, children: [
698
- s.display_name || ((I = s.key) == null ? void 0 : I.replace(/_/g, " ")),
699
- D > 0 && /* @__PURE__ */ t("span", { style: {
697
+ d.display_name || ((F = d.key) == null ? void 0 : F.replace(/_/g, " ")),
698
+ C > 0 && /* @__PURE__ */ t("span", { style: {
700
699
  fontWeight: 600,
701
700
  color: "var(--text-dark, #0B0A0A)",
702
701
  marginLeft: 6
703
702
  }, children: [
704
703
  "(",
705
- D,
704
+ C,
706
705
  ")"
707
706
  ] })
708
707
  ] }),
709
- h ? /* @__PURE__ */ e(xe, { size: 20, color: "#767473" }) : /* @__PURE__ */ e(be, { size: 20, color: "#767473" })
708
+ u ? /* @__PURE__ */ e(De, { size: 20, color: "#767473" }) : /* @__PURE__ */ e(Ce, { size: 20, color: "#767473" })
710
709
  ]
711
710
  }
712
711
  ),
713
- h && ((G = s.observations) == null ? void 0 : G.length) > 0 && /* @__PURE__ */ e("div", { style: {
712
+ u && ((E = d.observations) == null ? void 0 : E.length) > 0 && /* @__PURE__ */ e("div", { style: {
714
713
  display: "flex",
715
714
  flexDirection: "column",
716
715
  alignSelf: "stretch",
717
716
  gap: 0
718
- }, children: s.observations.map((C, L) => {
719
- var H, M, R;
717
+ }, children: d.observations.map((z, P) => {
718
+ var A, G, T;
720
719
  return /* @__PURE__ */ t(
721
720
  "div",
722
721
  {
@@ -740,8 +739,8 @@ const lt = {
740
739
  fontWeight: 400,
741
740
  color: "var(--text-subtle-warm, #767473)",
742
741
  lineHeight: 1.5
743
- }, children: C.reason || C.explanation }),
744
- ((M = (H = C.evidence) == null ? void 0 : H[0]) == null ? void 0 : M.start_ms) != null && /* @__PURE__ */ t(
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(
745
744
  "div",
746
745
  {
747
746
  style: {
@@ -752,14 +751,14 @@ const lt = {
752
751
  },
753
752
  children: [
754
753
  /* @__PURE__ */ e(
755
- ye,
754
+ be,
756
755
  {
757
756
  size: 28,
758
757
  title: "Show in transcript",
759
- onClick: (z) => {
760
- z.stopPropagation(), f(C.evidence[0].start_ms);
758
+ onClick: (I) => {
759
+ I.stopPropagation(), h(z.evidence[0].start_ms);
761
760
  },
762
- children: /* @__PURE__ */ e(Oe, { size: 16, color: "#808183", strokeWidth: 1.5 })
761
+ children: /* @__PURE__ */ e(ot, { size: 16, color: "#808183", strokeWidth: 1.5 })
763
762
  }
764
763
  ),
765
764
  /* @__PURE__ */ e("span", { style: {
@@ -768,19 +767,19 @@ const lt = {
768
767
  color: "var(--Grey-Muted, #808183)",
769
768
  lineHeight: 1.2,
770
769
  whiteSpace: "nowrap"
771
- }, children: b(C.evidence[0].start_ms) })
770
+ }, children: S(z.evidence[0].start_ms) })
772
771
  ]
773
772
  }
774
773
  )
775
774
  ] }),
776
- (R = C.evidence) == null ? void 0 : R.map((z, B) => z.text && /* @__PURE__ */ t(
775
+ (T = z.evidence) == null ? void 0 : T.map((I, B) => I.text && /* @__PURE__ */ t(
777
776
  "div",
778
777
  {
779
778
  onClick: ($) => {
780
- $.stopPropagation(), d(z);
779
+ $.stopPropagation(), s(I);
781
780
  },
782
- onMouseEnter: () => g(z.turn_ids ?? []),
783
- onMouseLeave: () => g([]),
781
+ onMouseEnter: () => p(I.turn_ids ?? []),
782
+ onMouseLeave: () => p([]),
784
783
  style: {
785
784
  display: "flex",
786
785
  alignItems: "center",
@@ -789,11 +788,18 @@ const lt = {
789
788
  cursor: "pointer"
790
789
  },
791
790
  children: [
792
- /* @__PURE__ */ e(ye, { size: 28, children: /* @__PURE__ */ e(
793
- Ue,
791
+ /* @__PURE__ */ e(be, { size: 28, children: D(I) ? /* @__PURE__ */ e(
792
+ rt,
794
793
  {
795
794
  size: 17,
796
- color: w(z) ? "var(--rail-orange, #C98A5A)" : "var(--Grey-Muted, #808183)",
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)",
797
803
  strokeWidth: 1
798
804
  }
799
805
  ) }),
@@ -804,7 +810,7 @@ const lt = {
804
810
  lineHeight: 1.2
805
811
  }, children: [
806
812
  "“",
807
- z.text,
813
+ I.text,
808
814
  "”"
809
815
  ] })
810
816
  ]
@@ -813,17 +819,17 @@ const lt = {
813
819
  ))
814
820
  ]
815
821
  },
816
- C.key ?? L
822
+ z.key ?? P
817
823
  );
818
824
  }) })
819
825
  ]
820
826
  },
821
- p
827
+ f
822
828
  );
823
829
  })
824
830
  ] })
825
831
  ] });
826
- }, S = {
832
+ }, k = {
827
833
  strong: "var(--Grey-Strong, #2E3236)",
828
834
  muted: "var(--Grey-Muted, #808183)",
829
835
  absent: "var(--Grey-absent, #D9D9D9)",
@@ -831,43 +837,85 @@ const lt = {
831
837
  accent: "var(--rail-orange, #C98A5A)",
832
838
  track: "var(--rail-surface-2, #E3E1D7)",
833
839
  infoIcon: "var(--color-input-border, #ACACAD)"
834
- }, ct = ({ score: n = 4, maxScore: i = 10 }) => {
835
- const k = Math.min(Math.round(n / i * 5), 5), b = 180 / 5, w = (p) => {
836
- const h = p * Math.PI / 180;
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;
837
843
  return {
838
- x: 121.5 + 85 * Math.cos(h),
839
- y: 123 - 85 * Math.sin(h)
844
+ x: 121.5 + 85 * Math.cos(u),
845
+ y: 123 - 85 * Math.sin(u)
840
846
  };
841
- }, s = (p, h) => {
842
- const D = w(p), W = w(h), I = p - h > 180 ? 1 : 0;
843
- return `M ${D.x} ${D.y} A 85 85 0 ${I} 1 ${W.x} ${W.y}`;
844
- }, r = 2;
845
- return /* @__PURE__ */ e("svg", { width: 243, height: 130, viewBox: "0 0 243 130", fill: "none", children: Array.from({ length: 5 }, (p, h) => {
846
- const D = 180 - h * b - (h > 0 ? r / 2 : 0), W = 180 - (h + 1) * b + (h < 5 - 1 ? r / 2 : 0), I = h < k;
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
+ }, 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;
847
853
  return /* @__PURE__ */ e(
848
854
  "path",
849
855
  {
850
- d: s(D, W),
851
- stroke: I ? S.strong : S.track,
856
+ d: d(C, W),
857
+ stroke: F ? k.strong : k.track,
852
858
  strokeWidth: 30,
853
859
  strokeLinecap: "butt",
854
860
  fill: "none"
855
861
  },
856
- h
862
+ u
857
863
  );
858
864
  }) });
859
- }, gt = ({ value: n = 0, maxValue: i = 5 }) => /* @__PURE__ */ e("div", { style: { display: "flex", gap: 2 }, children: Array.from({ length: i }, (o, d) => /* @__PURE__ */ e(
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(
860
866
  "div",
861
867
  {
862
868
  style: {
863
869
  width: 22,
864
870
  height: 6,
865
871
  borderRadius: 1,
866
- background: d < n ? S.strong : S.track
872
+ background: s < n ? k.strong : k.track
867
873
  }
868
874
  },
869
- d
870
- )) }), pt = ({ label: n, value: i = 0, maxValue: o = 5 }) => /* @__PURE__ */ t("div", { style: {
875
+ s
876
+ )) }), It = {
877
+ CSAT: "Predicted Customer Satisfaction",
878
+ Resolution: "Predicted Resolution: was the issue fully resolved?",
879
+ "Process Adherence": "Process Adherence: Did the agent follow procedures?",
880
+ Communication: "Predicted Communication Quality: Clarity, Empathy, Professionalism"
881
+ }, Ft = ({ text: n, children: i }) => {
882
+ const [r, s] = _(!1);
883
+ return /* @__PURE__ */ t(
884
+ "div",
885
+ {
886
+ style: { position: "relative", display: "inline-flex" },
887
+ onMouseEnter: () => s(!0),
888
+ onMouseLeave: () => s(!1),
889
+ children: [
890
+ i,
891
+ r && /* @__PURE__ */ e("div", { style: {
892
+ position: "absolute",
893
+ bottom: "100%",
894
+ left: "50%",
895
+ transform: "translateX(-50%)",
896
+ marginBottom: 6,
897
+ display: "flex",
898
+ width: 160,
899
+ padding: 10,
900
+ alignItems: "center",
901
+ gap: 10,
902
+ borderRadius: 4,
903
+ border: "1px solid var(--Grey-absent, #D9D9D9)",
904
+ background: "var(--Grey-Strong, #2E3236)",
905
+ zIndex: 20,
906
+ pointerEvents: "none"
907
+ }, children: /* @__PURE__ */ e("span", { style: {
908
+ width: 140,
909
+ flexShrink: 0,
910
+ color: "#FFF",
911
+ fontSize: 12,
912
+ fontWeight: 400,
913
+ lineHeight: "normal"
914
+ }, children: n }) })
915
+ ]
916
+ }
917
+ );
918
+ }, _t = ({ label: n, value: i = 0, maxValue: r = 5 }) => /* @__PURE__ */ t("div", { style: {
871
919
  display: "flex",
872
920
  flexDirection: "column",
873
921
  gap: 8,
@@ -882,34 +930,34 @@ const lt = {
882
930
  /* @__PURE__ */ e("span", { style: {
883
931
  fontSize: 12,
884
932
  fontWeight: 400,
885
- color: S.strong,
933
+ color: k.strong,
886
934
  fontFamily: "var(--font-sans)",
887
935
  lineHeight: "normal"
888
936
  }, children: n }),
889
- /* @__PURE__ */ e(qe, { size: 14, color: S.infoIcon, strokeWidth: 1 })
937
+ /* @__PURE__ */ e(Ft, { text: It[n] || n, children: /* @__PURE__ */ e(st, { size: 14, color: k.infoIcon, strokeWidth: 1, style: { cursor: "pointer" } }) })
890
938
  ] }),
891
- /* @__PURE__ */ e(gt, { value: i, maxValue: o })
892
- ] }), ft = ({
939
+ /* @__PURE__ */ e(zt, { value: i, maxValue: r })
940
+ ] }), At = ({
893
941
  score: n = 83,
894
942
  maxScore: i = 100,
895
- predictedScore: o = 4,
896
- predictedLabel: d = "Predicted Objective",
897
- description: g = "",
898
- legends: f = [
943
+ predictedScore: r = 4,
944
+ predictedLabel: s = "Predicted Objective",
945
+ description: p = "",
946
+ legends: h = [
899
947
  { label: "CSAT", value: 3 },
900
948
  { label: "Resolution", value: 4 },
901
949
  { label: "Process Adherence", value: 5 },
902
950
  { label: "Communication", value: 3 }
903
951
  ]
904
952
  }) => {
905
- const x = String(o).padStart(2, "0");
953
+ const v = String(r).padStart(2, "0");
906
954
  return /* @__PURE__ */ t("div", { style: {
907
955
  display: "flex",
908
956
  flexDirection: "column",
909
957
  padding: 24,
910
958
  borderRadius: 8,
911
- border: `1px solid ${S.absent}`,
912
- background: S.white,
959
+ border: `1px solid ${k.absent}`,
960
+ background: k.white,
913
961
  alignSelf: "stretch",
914
962
  gap: 24
915
963
  }, children: [
@@ -921,17 +969,17 @@ const lt = {
921
969
  /* @__PURE__ */ e("span", { style: {
922
970
  fontSize: 15,
923
971
  fontWeight: 600,
924
- color: S.strong,
972
+ color: k.strong,
925
973
  fontFamily: "var(--font-sans)",
926
974
  lineHeight: 1.2
927
975
  }, children: "Compass Score" }),
928
976
  /* @__PURE__ */ e("span", { style: {
929
977
  fontSize: 14,
930
978
  fontWeight: 400,
931
- color: S.muted,
979
+ color: k.muted,
932
980
  fontFamily: "var(--font-sans)",
933
981
  lineHeight: "normal"
934
- }, children: g })
982
+ }, children: p })
935
983
  ] }),
936
984
  /* @__PURE__ */ t("div", { style: {
937
985
  display: "flex",
@@ -947,7 +995,7 @@ const lt = {
947
995
  alignItems: "center",
948
996
  flexShrink: 0
949
997
  }, children: [
950
- /* @__PURE__ */ e(ct, { score: n, maxScore: i }),
998
+ /* @__PURE__ */ e(Wt, { score: n, maxScore: i }),
951
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: [
952
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)" }),
953
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)" })
@@ -955,7 +1003,7 @@ const lt = {
955
1003
  /* @__PURE__ */ e("div", { style: {
956
1004
  fontSize: 28,
957
1005
  fontWeight: 400,
958
- color: S.strong,
1006
+ color: k.strong,
959
1007
  fontFamily: "var(--font-sans)",
960
1008
  lineHeight: 1,
961
1009
  textAlign: "center",
@@ -978,108 +1026,127 @@ const lt = {
978
1026
  /* @__PURE__ */ e("div", { style: {
979
1027
  fontSize: 28,
980
1028
  fontWeight: 400,
981
- color: S.strong,
1029
+ color: k.strong,
982
1030
  fontFamily: "var(--font-sans)",
983
1031
  lineHeight: 1,
984
1032
  textAlign: "center"
985
- }, children: x }),
1033
+ }, children: v }),
986
1034
  /* @__PURE__ */ e("div", { style: {
987
1035
  fontSize: 14,
988
1036
  fontWeight: 400,
989
- color: S.muted,
1037
+ color: k.muted,
990
1038
  fontFamily: "var(--font-sans)",
991
1039
  lineHeight: 1.43,
992
1040
  textAlign: "center"
993
- }, children: d })
1041
+ }, children: s })
994
1042
  ] }),
995
1043
  /* @__PURE__ */ e("div", { style: {
996
1044
  width: "100%",
997
1045
  height: 1,
998
- background: S.absent
1046
+ background: k.absent
999
1047
  } }),
1000
- f.map((y, u) => /* @__PURE__ */ e(
1001
- pt,
1048
+ h.map((y, m) => /* @__PURE__ */ e(
1049
+ _t,
1002
1050
  {
1003
1051
  label: y.label,
1004
1052
  value: y.value
1005
1053
  },
1006
- u
1054
+ m
1007
1055
  ))
1008
1056
  ] })
1009
1057
  ] })
1010
1058
  ] });
1011
- }, ht = [
1059
+ }, Gt = [
1012
1060
  { key: "overview", label: "Overview" },
1013
1061
  { key: "coaching", label: "Coaching Summary" },
1014
1062
  { key: "signals", label: "Signals & Recording" },
1015
1063
  { key: "comments", label: "Comments" }
1016
- ], bt = ({
1064
+ ], Lt = ({
1017
1065
  title: n = "Wheel Stud Replacement Enquiry",
1018
1066
  onBack: i,
1019
1067
  // Data props — all optional with defaults for demo
1020
- data: o,
1021
- coachingData: d,
1022
- audioUrl: g,
1068
+ data: r,
1069
+ coachingData: s,
1070
+ audioUrl: p,
1023
1071
  // Audio/playback props — pass these when the host app manages audio externally
1024
1072
  // (like InteractionDetailPanel does). If omitted, UpdatedInteractionRecording
1025
1073
  // manages its own audio element internally.
1026
- audioRef: f,
1027
- currentTimeSeconds: x,
1074
+ audioRef: h,
1075
+ currentTimeSeconds: v,
1028
1076
  timelinePlaying: y,
1029
- playbackRate: u,
1030
- timelineSegments: k,
1031
- onSeek: b,
1032
- onTogglePlay: w,
1033
- onSeekBack: s,
1034
- onSeekForward: r,
1035
- onSetPlaybackRate: p,
1077
+ playbackRate: m,
1078
+ timelineSegments: w,
1079
+ onSeek: S,
1080
+ onTogglePlay: D,
1081
+ onSeekBack: d,
1082
+ onSeekForward: l,
1083
+ onSetPlaybackRate: f,
1036
1084
  // Speaker names
1037
- agentName: h,
1038
- customerName: D,
1085
+ agentName: u,
1086
+ customerName: C,
1039
1087
  // Transcript props — pass real transcript data from the host app
1040
1088
  transcript: W,
1041
- activeTurnIndex: I,
1042
- turnObservations: G,
1043
- highlightedTurns: C,
1044
- onTurnPlayPause: L,
1089
+ activeTurnIndex: F,
1090
+ turnObservations: E,
1091
+ highlightedTurns: z,
1092
+ onTurnPlayPause: P,
1093
+ // Signal evidence playback — host app can provide to play audio segments from signals
1094
+ onPlayEvidence: A,
1095
+ onHighlightTurns: G,
1096
+ // Compass score props
1097
+ compassScore: T,
1098
+ predictedCsat: I,
1099
+ // Customer session dropdown
1100
+ customerSessions: B,
1101
+ customerSessionCount: $,
1102
+ onSessionClick: N,
1103
+ onViewAllSessions: Y,
1045
1104
  // Footer navigation
1046
- prevSessionTitle: H,
1047
- prevSessionDesc: M,
1048
- nextSessionTitle: R,
1049
- nextSessionDesc: z,
1050
- onPreviousSession: B,
1051
- onNextSession: $
1105
+ prevSessionTitle: We,
1106
+ prevSessionDesc: ze,
1107
+ nextSessionTitle: Ie,
1108
+ nextSessionDesc: Fe,
1109
+ onPreviousSession: _e,
1110
+ onNextSession: Ae
1052
1111
  }) => {
1053
- var re, le;
1054
- const [P, Se] = A("overview"), [ke, q] = A(/* @__PURE__ */ new Set()), [N, we] = A(!1), [V, Y] = A(null), j = _(null), Q = _(null), K = _(null), Z = _(null), X = _(null), De = { overview: Q, coaching: K, signals: Z, comments: X }, We = (a) => {
1055
- Se(a);
1056
- const v = De[a];
1057
- v != null && v.current && v.current.scrollIntoView({ behavior: "smooth", block: "start" });
1058
- }, Ce = [
1059
- { title: "Tire Repair Appointment", date: "11/12/2025, 2:30:00 PM" },
1060
- { title: "Quote Confirmation", date: "10/1/2025, 9:00:00 AM" },
1061
- { title: "Automative Repair Enquiry", date: "09/15/2025, 11:45:00 AM" },
1062
- { title: "Vehicle Inspection Reminder", date: "07/20/2025, 1:00:00 PM" },
1063
- { title: "Oil Change Service", date: "05/5/2025, 10:00:00 AM" }
1064
- ], ze = (a) => {
1065
- var F;
1066
- const v = a / 1e3;
1067
- (F = j.current) != null && F.seekTo && j.current.seekTo(v);
1068
- }, Fe = (a) => {
1069
- q((v) => {
1070
- const F = new Set(v);
1071
- return F.has(a) ? F.delete(a) : F.add(a), F;
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];
1116
+ g != null && g.current && g.current.scrollIntoView({ behavior: "smooth", block: "start" });
1117
+ }, ie = B || [], Pe = (o) => {
1118
+ var b;
1119
+ const g = o / 1e3;
1120
+ (b = H.current) != null && b.seekTo && H.current.seekTo(g);
1121
+ }, Be = (o) => {
1122
+ var g;
1123
+ if (A)
1124
+ A(o);
1125
+ 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);
1131
+ }
1132
+ }
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;
1072
1139
  });
1073
- }, Ie = (o == null ? void 0 : o.blocks) || [], E = (a) => {
1074
- var v;
1075
- return ((v = Ie.find((F) => F.block_id === a)) == null ? void 0 : v.payload) || {};
1076
- }, O = E("interaction-metadata"), J = E("interaction-context"), T = E("interaction-signals"), ee = E("interaction-outcome-lift"), _e = J.call_purpose || {}, Ae = J.classification || {}, te = { duration_seconds: 156, message_count: 25, ...O }, ne = { interaction_driver: "General Information", interaction_direction: "inbound", ..._e }, Ge = { interaction_paradigm: "Informational", ...Ae }, He = { p_expected: 0.94, p_full: 0.83, lift_raw: -0.11, lift: 0.043, interpretation: { lift_band: "positive" }, ...ee }, Me = ((re = ee.driver_signal_keys) == null ? void 0 : re.map((a) => a.replace(/^sig\./, "").replace(/_/g, " "))) || [
1140
+ }, Oe = (r == null ? void 0 : r.blocks) || [], R = (o) => {
1141
+ 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, " "))) || [
1077
1144
  "customer needs fully addressed",
1078
1145
  "call flow expectations set",
1079
1146
  "Opening expectations set",
1080
1147
  "Active listening demonstrated",
1081
1148
  "Resolution confirmed"
1082
- ], Re = d || {
1149
+ ], Ve = s || {
1083
1150
  one_liner: "David provided the customer with information on wheel stud replacement and pricing, but did not secure an appointment.",
1084
1151
  context: "The customer was seeking information on wheel stud replacement for a 2013 Chevy Bolt and was unsure about doing the repair themselves.",
1085
1152
  strengths: [
@@ -1092,7 +1159,7 @@ const lt = {
1092
1159
  { text: "Frame solutions positively by leading with what can be done rather than limitations.", quote: "I don't have the alignment changeover the weekend." }
1093
1160
  ],
1094
1161
  overall: "effective"
1095
- }, Ee = (le = T == null ? void 0 : T.signals) != null && le.length ? T : {
1162
+ }, Ke = (ge = L == null ? void 0 : L.signals) != null && ge.length ? L : {
1096
1163
  present_count: 9,
1097
1164
  total_signals_evaluated: 146,
1098
1165
  signals: [
@@ -1118,7 +1185,7 @@ const lt = {
1118
1185
  { 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." }] },
1119
1186
  { 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." }] }
1120
1187
  ]
1121
- }, ie = h || "Agent", U = D || "Customer", oe = 8, Te = O.evaluated_dt ? new Date(O.evaluated_dt).toLocaleString() : "3/29/2026, 8:30:00 AM", Le = ne.interaction_direction === "inbound" ? "Inbound" : "Outbound";
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";
1122
1189
  return /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", width: "100%", background: "var(--Grey-White, #FFF)" }, children: [
1123
1190
  /* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", gap: 12, padding: "24px 24px 0" }, children: [
1124
1191
  /* @__PURE__ */ e(
@@ -1135,7 +1202,7 @@ const lt = {
1135
1202
  padding: 0,
1136
1203
  flexShrink: 0
1137
1204
  },
1138
- children: /* @__PURE__ */ e(se, { size: 24, color: "var(--Grey-Strong, #2E3236)" })
1205
+ children: /* @__PURE__ */ e(pe, { size: 24, color: "var(--Grey-Strong, #2E3236)" })
1139
1206
  }
1140
1207
  ),
1141
1208
  /* @__PURE__ */ e("div", { style: { width: 1, height: 28, background: "var(--Base-absent, #D9D9D9)" } }),
@@ -1155,10 +1222,10 @@ const lt = {
1155
1222
  borderBottom: "1px solid var(--Grey-Faint, #ACADAD)",
1156
1223
  padding: "0 24px",
1157
1224
  marginTop: 8
1158
- }, children: ht.map((a) => /* @__PURE__ */ e(
1225
+ }, children: Gt.map((o) => /* @__PURE__ */ e(
1159
1226
  "button",
1160
1227
  {
1161
- onClick: () => We(a.key),
1228
+ onClick: () => Le(o.key),
1162
1229
  style: {
1163
1230
  display: "flex",
1164
1231
  padding: 16,
@@ -1166,20 +1233,20 @@ const lt = {
1166
1233
  gap: 10,
1167
1234
  background: "none",
1168
1235
  border: "none",
1169
- borderBottom: P === a.key ? "3px solid var(--Grey-Strong, #2E3236)" : "3px solid transparent",
1236
+ borderBottom: j === o.key ? "3px solid var(--Grey-Strong, #2E3236)" : "3px solid transparent",
1170
1237
  cursor: "pointer",
1171
1238
  fontSize: 15,
1172
- fontWeight: P === a.key ? 500 : 400,
1173
- color: P === a.key ? "var(--Grey-Strong, #2E3236)" : "var(--Grey-Muted, #808183)",
1239
+ fontWeight: j === o.key ? 500 : 400,
1240
+ color: j === o.key ? "var(--Grey-Strong, #2E3236)" : "var(--Grey-Muted, #808183)",
1174
1241
  whiteSpace: "nowrap",
1175
1242
  transition: "border-color 0.2s ease, color 0.2s ease"
1176
1243
  },
1177
- children: a.label
1244
+ children: o.label
1178
1245
  },
1179
- a.key
1246
+ o.key
1180
1247
  )) }),
1181
1248
  /* @__PURE__ */ t("div", { style: { padding: 24, flex: 1, overflowY: "auto" }, children: [
1182
- /* @__PURE__ */ t("div", { ref: Q, style: {
1249
+ /* @__PURE__ */ t("div", { ref: J, style: {
1183
1250
  display: "flex",
1184
1251
  flexDirection: "column",
1185
1252
  justifyContent: "flex-end",
@@ -1195,7 +1262,7 @@ const lt = {
1195
1262
  alignSelf: "stretch"
1196
1263
  }, children: [
1197
1264
  /* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", gap: 8, flex: 1 }, children: [
1198
- /* @__PURE__ */ e(Ne, { size: 24, color: "var(--rail-orange, #C98A5A)", strokeWidth: 2 }),
1265
+ /* @__PURE__ */ e(at, { size: 24, color: "var(--rail-orange, #C98A5A)", strokeWidth: 2 }),
1199
1266
  /* @__PURE__ */ e("span", { style: {
1200
1267
  fontSize: 16,
1201
1268
  fontWeight: 600,
@@ -1206,12 +1273,12 @@ const lt = {
1206
1273
  ] }),
1207
1274
  /* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", gap: 16, flexShrink: 0 }, children: [
1208
1275
  /* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", gap: 6, padding: "8px 0" }, children: [
1209
- /* @__PURE__ */ e(Ve, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
1210
- /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", fontFamily: "var(--font-sans)", lineHeight: 1.2 }, children: Te })
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 })
1211
1278
  ] }),
1212
1279
  /* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", gap: 6, padding: "8px 0" }, children: [
1213
- /* @__PURE__ */ e(Ye, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
1214
- /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", fontFamily: "var(--font-sans)", lineHeight: 1.2 }, children: Le })
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 })
1215
1282
  ] }),
1216
1283
  /* @__PURE__ */ t("div", { style: {
1217
1284
  display: "flex",
@@ -1221,15 +1288,15 @@ const lt = {
1221
1288
  borderLeft: "1px solid var(--Grey-absent, #D9D9D9)"
1222
1289
  }, children: [
1223
1290
  /* @__PURE__ */ t("div", { style: { display: "flex", alignItems: "center", gap: 6, padding: "8px 0" }, children: [
1224
- /* @__PURE__ */ e(Qe, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
1225
- /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", fontFamily: "var(--font-sans)", lineHeight: 1.2 }, children: ie })
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 })
1226
1293
  ] }),
1227
- /* @__PURE__ */ e(Ke, { size: 16, color: "var(--color-input-border, #ACACAD)", strokeWidth: 1.5 }),
1294
+ /* @__PURE__ */ e(pt, { size: 16, color: "var(--color-input-border, #ACACAD)", strokeWidth: 1.5 }),
1228
1295
  /* @__PURE__ */ t("div", { style: { position: "relative" }, children: [
1229
1296
  /* @__PURE__ */ t(
1230
1297
  "button",
1231
1298
  {
1232
- onClick: () => we((a) => !a),
1299
+ onClick: () => O((o) => !o),
1233
1300
  style: {
1234
1301
  display: "flex",
1235
1302
  alignItems: "center",
@@ -1240,18 +1307,18 @@ const lt = {
1240
1307
  cursor: "pointer"
1241
1308
  },
1242
1309
  children: [
1243
- /* @__PURE__ */ e(ae, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
1310
+ /* @__PURE__ */ e(fe, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
1244
1311
  /* @__PURE__ */ t("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", lineHeight: 1.2 }, children: [
1245
- U,
1312
+ q,
1246
1313
  " (",
1247
- oe,
1314
+ de,
1248
1315
  " Sessions)"
1249
1316
  ] }),
1250
- N ? /* @__PURE__ */ e(xe, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }) : /* @__PURE__ */ e(be, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 })
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 })
1251
1318
  ]
1252
1319
  }
1253
1320
  ),
1254
- N && /* @__PURE__ */ t("div", { style: {
1321
+ V && /* @__PURE__ */ t("div", { style: {
1255
1322
  position: "absolute",
1256
1323
  top: "100%",
1257
1324
  right: 0,
@@ -1270,37 +1337,40 @@ const lt = {
1270
1337
  gap: 8,
1271
1338
  padding: 16
1272
1339
  }, children: [
1273
- /* @__PURE__ */ e(ae, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5, style: { marginTop: 2, flexShrink: 0 } }),
1340
+ /* @__PURE__ */ e(fe, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5, style: { marginTop: 2, flexShrink: 0 } }),
1274
1341
  /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 4 }, children: [
1275
1342
  /* @__PURE__ */ e("span", { style: {
1276
1343
  fontSize: 16,
1277
1344
  fontWeight: 600,
1278
1345
  color: "var(--Grey-Strong, #2E3236)",
1279
1346
  lineHeight: 1
1280
- }, children: U }),
1347
+ }, children: q }),
1281
1348
  /* @__PURE__ */ t("span", { style: {
1282
1349
  fontSize: 13,
1283
1350
  fontWeight: 400,
1284
1351
  color: "var(--Grey-Muted, #808183)",
1285
1352
  lineHeight: 1
1286
1353
  }, children: [
1287
- oe,
1354
+ de,
1288
1355
  " Sessions in past"
1289
1356
  ] })
1290
1357
  ] })
1291
1358
  ] }),
1292
- Ce.map((a, v) => /* @__PURE__ */ t(
1359
+ ie.map((o, g) => /* @__PURE__ */ t(
1293
1360
  "div",
1294
1361
  {
1295
- onMouseEnter: () => Y(v),
1296
- onMouseLeave: () => Y(null),
1362
+ onClick: () => {
1363
+ N && N(o), O(!1);
1364
+ },
1365
+ onMouseEnter: () => X(g),
1366
+ onMouseLeave: () => X(null),
1297
1367
  style: {
1298
1368
  display: "flex",
1299
1369
  width: 264,
1300
1370
  padding: "12px 16px",
1301
1371
  justifyContent: "space-between",
1302
1372
  alignItems: "center",
1303
- background: V === v ? "var(--surface-hover, #F3F7F7)" : "var(--Grey-White, #FFF)",
1373
+ background: K === g ? "var(--surface-hover, #F3F7F7)" : "var(--Grey-White, #FFF)",
1304
1374
  borderTop: "1px solid var(--Grey-absent, #D9D9D9)",
1305
1375
  cursor: "pointer",
1306
1376
  boxSizing: "border-box",
@@ -1313,43 +1383,52 @@ const lt = {
1313
1383
  fontWeight: 400,
1314
1384
  color: "var(--Grey-Strong, #2E3236)",
1315
1385
  lineHeight: 1
1316
- }, children: a.title }),
1386
+ }, children: o.title }),
1317
1387
  /* @__PURE__ */ e("span", { style: {
1318
1388
  fontSize: 12,
1319
1389
  fontWeight: 400,
1320
1390
  color: "var(--Grey-Muted, #808183)",
1321
1391
  lineHeight: 1
1322
- }, children: a.date })
1392
+ }, children: o.date })
1323
1393
  ] }),
1324
- V === v && /* @__PURE__ */ e(ve, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1, style: { flexShrink: 0 } })
1394
+ K === g && /* @__PURE__ */ e(ke, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1, style: { flexShrink: 0 } })
1325
1395
  ]
1326
1396
  },
1327
- v
1397
+ o.id || g
1328
1398
  )),
1329
1399
  /* @__PURE__ */ e("div", { style: {
1330
1400
  padding: 16,
1331
1401
  borderTop: "1px solid var(--Grey-absent, #D9D9D9)",
1332
1402
  display: "flex",
1333
1403
  justifyContent: "center"
1334
- }, children: /* @__PURE__ */ t("button", { style: {
1335
- display: "flex",
1336
- height: 32,
1337
- padding: "16px 16px 16px 12px",
1338
- justifyContent: "center",
1339
- alignItems: "center",
1340
- gap: 6,
1341
- background: "var(--Grey-White, #FFF)",
1342
- border: "1px solid var(--Grey-absent, #D9D9D9)",
1343
- borderRadius: 10,
1344
- cursor: "pointer"
1345
- }, children: [
1346
- /* @__PURE__ */ e(Ze, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
1347
- /* @__PURE__ */ e("span", { style: {
1348
- fontSize: 14,
1349
- fontWeight: 600,
1350
- color: "var(--Grey-Strong, #2E3236)"
1351
- }, children: "View All Sessions" })
1352
- ] }) })
1404
+ }, children: /* @__PURE__ */ t(
1405
+ "button",
1406
+ {
1407
+ onClick: () => {
1408
+ Y && Y(), O(!1);
1409
+ },
1410
+ style: {
1411
+ display: "flex",
1412
+ height: 32,
1413
+ padding: "16px 16px 16px 12px",
1414
+ justifyContent: "center",
1415
+ alignItems: "center",
1416
+ gap: 6,
1417
+ background: "var(--Grey-White, #FFF)",
1418
+ border: "1px solid var(--Grey-absent, #D9D9D9)",
1419
+ borderRadius: 10,
1420
+ cursor: "pointer"
1421
+ },
1422
+ children: [
1423
+ /* @__PURE__ */ e(ft, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
1424
+ /* @__PURE__ */ e("span", { style: {
1425
+ fontSize: 14,
1426
+ fontWeight: 600,
1427
+ color: "var(--Grey-Strong, #2E3236)"
1428
+ }, children: "View All Sessions" })
1429
+ ]
1430
+ }
1431
+ ) })
1353
1432
  ] })
1354
1433
  ] })
1355
1434
  ] })
@@ -1361,7 +1440,15 @@ const lt = {
1361
1440
  gap: 24,
1362
1441
  alignSelf: "stretch"
1363
1442
  }, children: [
1364
- /* @__PURE__ */ e("div", { style: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ e(ft, {}) }),
1443
+ /* @__PURE__ */ e("div", { style: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ e(
1444
+ At,
1445
+ {
1446
+ score: T ?? 0,
1447
+ maxScore: 100,
1448
+ predictedScore: I ?? 0,
1449
+ predictedLabel: "Predicted Objective"
1450
+ }
1451
+ ) }),
1365
1452
  /* @__PURE__ */ t("div", { style: {
1366
1453
  display: "flex",
1367
1454
  flexDirection: "column",
@@ -1372,26 +1459,26 @@ const lt = {
1372
1459
  minWidth: 0
1373
1460
  }, children: [
1374
1461
  /* @__PURE__ */ e(
1375
- st,
1462
+ wt,
1376
1463
  {
1377
- meta: te,
1378
- callPurpose: ne,
1379
- classification: Ge,
1464
+ meta: le,
1465
+ callPurpose: se,
1466
+ classification: Ne,
1380
1467
  outcomeQuality: "Neutral"
1381
1468
  }
1382
1469
  ),
1383
1470
  /* @__PURE__ */ e(
1384
- at,
1471
+ Dt,
1385
1472
  {
1386
- outcomeLift: He,
1387
- driverLabels: Me
1473
+ outcomeLift: Ye,
1474
+ driverLabels: Qe
1388
1475
  }
1389
1476
  )
1390
1477
  ] })
1391
1478
  ] })
1392
1479
  ] }),
1393
- /* @__PURE__ */ e("div", { ref: K, style: { paddingTop: 24 }, children: /* @__PURE__ */ e(ot, { data: Re }) }),
1394
- /* @__PURE__ */ t("div", { ref: Z, style: {
1480
+ /* @__PURE__ */ e("div", { ref: ee, style: { paddingTop: 24 }, children: /* @__PURE__ */ e(bt, { data: Ve }) }),
1481
+ /* @__PURE__ */ t("div", { ref: te, style: {
1395
1482
  display: "flex",
1396
1483
  flexDirection: "column",
1397
1484
  gap: 16,
@@ -1403,7 +1490,7 @@ const lt = {
1403
1490
  alignItems: "center",
1404
1491
  gap: 8
1405
1492
  }, children: [
1406
- /* @__PURE__ */ e(me, { size: 24, color: "#C98A5A", strokeWidth: 2 }),
1493
+ /* @__PURE__ */ e(we, { size: 24, color: "#C98A5A", strokeWidth: 2 }),
1407
1494
  /* @__PURE__ */ e("span", { style: {
1408
1495
  fontSize: 16,
1409
1496
  fontWeight: 600,
@@ -1421,43 +1508,47 @@ const lt = {
1421
1508
  borderTop: "1px solid #D9D9D9"
1422
1509
  }, children: [
1423
1510
  /* @__PURE__ */ e("div", { style: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ e(
1424
- dt,
1511
+ Ct,
1425
1512
  {
1426
- signals: Ee,
1427
- expandedSignals: ke,
1428
- toggleSignal: Fe,
1429
- onShowInTranscript: ze
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
1430
1521
  }
1431
1522
  ) }),
1432
1523
  /* @__PURE__ */ e("div", { style: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ e(
1433
- Je,
1524
+ yt,
1434
1525
  {
1435
- ref: j,
1436
- audioUrl: g,
1437
- durationSeconds: te.duration_seconds,
1438
- audioRef: f,
1439
- agentName: ie,
1440
- customerName: U.split(" ")[0],
1441
- currentTimeSeconds: x,
1526
+ ref: H,
1527
+ audioUrl: p,
1528
+ durationSeconds: le.duration_seconds,
1529
+ audioRef: h,
1530
+ agentName: ae,
1531
+ customerName: q.split(" ")[0],
1532
+ currentTimeSeconds: v,
1442
1533
  timelinePlaying: y,
1443
- playbackRate: u,
1444
- timelineSegments: k,
1445
- onSeek: b,
1446
- onTogglePlay: w,
1447
- onSeekBack: s,
1448
- onSeekForward: r,
1449
- onSetPlaybackRate: p,
1534
+ playbackRate: m,
1535
+ timelineSegments: w,
1536
+ onSeek: S,
1537
+ onTogglePlay: D,
1538
+ onSeekBack: d,
1539
+ onSeekForward: l,
1540
+ onSetPlaybackRate: f,
1450
1541
  transcript: W,
1451
- activeTurnIndex: I,
1452
- turnObservations: G,
1453
- highlightedTurns: C,
1454
- onTurnPlayPause: L,
1455
- setExpandedSignals: q
1542
+ activeTurnIndex: F,
1543
+ turnObservations: E,
1544
+ highlightedTurns: z,
1545
+ onTurnPlayPause: P,
1546
+ setExpandedSignals: Q
1456
1547
  }
1457
1548
  ) })
1458
1549
  ] })
1459
1550
  ] }),
1460
- /* @__PURE__ */ e("div", { ref: X, style: { paddingTop: 24 }, children: /* @__PURE__ */ e("div", { style: { fontSize: 14, color: "var(--Grey-Muted, #808183)", fontFamily: "var(--font-sans)" }, children: "No comments yet." }) })
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." }) })
1461
1552
  ] }),
1462
1553
  /* @__PURE__ */ t("div", { style: {
1463
1554
  display: "flex",
@@ -1468,7 +1559,7 @@ const lt = {
1468
1559
  /* @__PURE__ */ t(
1469
1560
  "button",
1470
1561
  {
1471
- onClick: B,
1562
+ onClick: _e,
1472
1563
  style: {
1473
1564
  display: "flex",
1474
1565
  alignItems: "center",
@@ -1480,7 +1571,7 @@ const lt = {
1480
1571
  cursor: "pointer"
1481
1572
  },
1482
1573
  children: [
1483
- /* @__PURE__ */ e(se, { size: 24, color: "var(--Grey-Muted, #808183)", strokeWidth: 2 }),
1574
+ /* @__PURE__ */ e(pe, { size: 24, color: "var(--Grey-Muted, #808183)", strokeWidth: 2 }),
1484
1575
  /* @__PURE__ */ t("div", { style: { display: "flex", flexDirection: "column", gap: 10 }, children: [
1485
1576
  /* @__PURE__ */ e("span", { style: {
1486
1577
  fontSize: 14,
@@ -1488,7 +1579,7 @@ const lt = {
1488
1579
  color: "#000",
1489
1580
  lineHeight: 1.2,
1490
1581
  textAlign: "left"
1491
- }, children: H || "Previous Session Title" }),
1582
+ }, children: We || "Previous Session Title" }),
1492
1583
  /* @__PURE__ */ e("span", { style: {
1493
1584
  fontSize: 13,
1494
1585
  fontWeight: 400,
@@ -1496,7 +1587,7 @@ const lt = {
1496
1587
  lineHeight: 1.2,
1497
1588
  opacity: 0.5,
1498
1589
  textAlign: "left"
1499
- }, children: M || "Short description of the session" })
1590
+ }, children: ze || "Short description of the session" })
1500
1591
  ] })
1501
1592
  ]
1502
1593
  }
@@ -1504,7 +1595,7 @@ const lt = {
1504
1595
  /* @__PURE__ */ t(
1505
1596
  "button",
1506
1597
  {
1507
- onClick: $,
1598
+ onClick: Ae,
1508
1599
  style: {
1509
1600
  display: "flex",
1510
1601
  alignItems: "center",
@@ -1524,7 +1615,7 @@ const lt = {
1524
1615
  color: "#000",
1525
1616
  lineHeight: 1.2,
1526
1617
  textAlign: "left"
1527
- }, children: R || "Next Session Title" }),
1618
+ }, children: Ie || "Next Session Title" }),
1528
1619
  /* @__PURE__ */ e("span", { style: {
1529
1620
  fontSize: 13,
1530
1621
  fontWeight: 400,
@@ -1532,9 +1623,9 @@ const lt = {
1532
1623
  lineHeight: 1.2,
1533
1624
  opacity: 0.5,
1534
1625
  textAlign: "left"
1535
- }, children: z || "Short description of the session" })
1626
+ }, children: Fe || "Short description of the session" })
1536
1627
  ] }),
1537
- /* @__PURE__ */ e(Xe, { size: 24, color: "var(--Grey-Muted, #808183)", strokeWidth: 2 })
1628
+ /* @__PURE__ */ e(ht, { size: 24, color: "var(--Grey-Muted, #808183)", strokeWidth: 2 })
1538
1629
  ]
1539
1630
  }
1540
1631
  )
@@ -1542,12 +1633,12 @@ const lt = {
1542
1633
  ] });
1543
1634
  };
1544
1635
  export {
1545
- ot as UpdatedCoachingSynthesisCard,
1546
- ft as UpdatedCompassScore,
1547
- st as UpdatedInteractionContext,
1548
- bt as UpdatedInteractionDetails,
1549
- Je as UpdatedInteractionRecording,
1550
- at as UpdatedInteractionScores,
1551
- dt as UpdatedInteractionSignals
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
1552
1643
  };
1553
1644
  //# sourceMappingURL=UpdatedInteractionDetails.es.js.map