chordia-ui 3.5.0 → 3.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- import { jsxs as n, Fragment as Bt, jsx as e } from "react/jsx-runtime";
2
- import me, { useState as F, useRef as L, useMemo as Be, useEffect as Pt } from "react";
3
- import { ShieldCheck as jt, TrendingUp as Ot, Lightbulb as $t, ThumbsUp as Qe, ChevronUp as ve, ChevronDown as xe, ThumbsDown as Nt, FileSignal as Ze, ScrollText as qt, PauseCircle as Kt, PlayCircle as Yt, Info as Vt, MessagesSquare as Qt, Check as Zt, CircleCheck as Xt, Ellipsis as Jt, CornerDownRight as Ut, ArrowLeft as Pe, ArrowRight as en, ClipboardList as tn, CalendarDays as nn, PhoneIncoming as on, Headset as rn, Repeat as ln, CircleUser as ue, ExternalLink as an, History as sn } from "lucide-react";
4
- import { U as dn } from "../UpdatedInteractionRecording.es.js";
5
- const z = {
1
+ import { jsxs as n, Fragment as $t, jsx as e } from "react/jsx-runtime";
2
+ import de, { useState as F, useRef as P, useMemo as we, useEffect as Nt } from "react";
3
+ import { ShieldCheck as qt, TrendingUp as Kt, Lightbulb as Yt, ThumbsUp as nt, ChevronUp as Fe, ChevronDown as De, ThumbsDown as Vt, FileSignal as it, ScrollText as Zt, PauseCircle as Qt, PlayCircle as Jt, Info as rt, MessagesSquare as Xt, Check as Ut, CircleCheck as en, Ellipsis as tn, X as Ye, CornerDownRight as nn, ArrowLeft as Ve, ArrowRight as rn, ClipboardList as on, CalendarDays as ln, PhoneIncoming as an, Headset as sn, Repeat as dn, CircleUser as Ce, ExternalLink as cn, History as fn } from "lucide-react";
4
+ import { U as pn } from "../UpdatedInteractionRecording.es.js";
5
+ const M = {
6
6
  strong: "var(--Grey-Strong, #2E3236)",
7
7
  muted: "var(--Grey-Muted, #808183)",
8
8
  absent: "var(--Grey-absent, #D9D9D9)",
@@ -11,17 +11,17 @@ const z = {
11
11
  quoteLine: "var(--border-warm, #B2AEA8)",
12
12
  quoteText: "var(--text-subtle-warm, #767473)",
13
13
  iconBg: "var(--surface-hover, #F3F7F7)"
14
- }, cn = {
14
+ }, gn = {
15
15
  effective: "Effective",
16
16
  strong: "Strong",
17
17
  needs_improvement: "Needs Improvement",
18
18
  mixed: "Mixed"
19
- }, je = "updated-coaching-synthesis-keyframes";
20
- function fn() {
21
- if (typeof document > "u" || document.getElementById(je))
19
+ }, Ze = "updated-coaching-synthesis-keyframes";
20
+ function hn() {
21
+ if (typeof document > "u" || document.getElementById(Ze))
22
22
  return;
23
23
  const t = document.createElement("style");
24
- t.id = je, t.textContent = `
24
+ t.id = Ze, t.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 fn() {
32
32
  }
33
33
  `, document.head.appendChild(t);
34
34
  }
35
- function pn({ overall: t }) {
36
- const o = cn[t] || (t ? t.replace(/_/g, " ") : "");
35
+ function yn({ overall: t }) {
36
+ const i = gn[t] || (t ? t.replace(/_/g, " ") : "");
37
37
  return /* @__PURE__ */ n("div", { style: {
38
38
  display: "flex",
39
39
  alignItems: "center",
@@ -43,7 +43,7 @@ function pn({ overall: t }) {
43
43
  /* @__PURE__ */ e("span", { style: {
44
44
  fontSize: 13,
45
45
  fontWeight: 400,
46
- color: z.strong,
46
+ color: M.strong,
47
47
  fontFamily: "var(--font-sans)",
48
48
  lineHeight: 1.2
49
49
  }, children: "Overall:" }),
@@ -52,28 +52,28 @@ function pn({ overall: t }) {
52
52
  alignItems: "center",
53
53
  gap: 6
54
54
  }, children: [
55
- /* @__PURE__ */ e(Qe, { size: 14, color: z.strong, strokeWidth: 1.5 }),
55
+ /* @__PURE__ */ e(nt, { size: 14, color: M.strong, strokeWidth: 1.5 }),
56
56
  /* @__PURE__ */ e("span", { style: {
57
57
  fontSize: 13,
58
58
  fontWeight: 600,
59
- color: z.strong,
59
+ color: M.strong,
60
60
  fontFamily: "var(--font-sans)",
61
61
  lineHeight: 1.2
62
- }, children: o })
62
+ }, children: i })
63
63
  ] })
64
64
  ] });
65
65
  }
66
- function gn({ item: t }) {
67
- const o = typeof t == "string" ? t : (t == null ? void 0 : t.text) || "", l = typeof t == "object" ? t == null ? void 0 : t.quote : null;
66
+ function un({ item: t }) {
67
+ const i = typeof t == "string" ? t : (t == null ? void 0 : t.text) || "", r = typeof t == "object" ? t == null ? void 0 : t.quote : null;
68
68
  return /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", gap: 14 }, children: [
69
69
  /* @__PURE__ */ e("div", { style: {
70
70
  fontSize: 14,
71
71
  fontWeight: 600,
72
- color: z.itemText,
72
+ color: M.itemText,
73
73
  fontFamily: "var(--font-sans)",
74
74
  lineHeight: 1.5
75
- }, children: o }),
76
- l && /* @__PURE__ */ n("div", { style: {
75
+ }, children: i }),
76
+ r && /* @__PURE__ */ n("div", { style: {
77
77
  display: "flex",
78
78
  gap: 10
79
79
  }, children: [
@@ -81,24 +81,24 @@ function gn({ item: t }) {
81
81
  width: 1,
82
82
  flexShrink: 0,
83
83
  alignSelf: "stretch",
84
- background: z.quoteLine
84
+ background: M.quoteLine
85
85
  } }),
86
86
  /* @__PURE__ */ n("div", { style: {
87
87
  fontSize: 14,
88
88
  fontWeight: 400,
89
- color: z.quoteText,
89
+ color: M.quoteText,
90
90
  fontFamily: "var(--font-sans)",
91
91
  lineHeight: 1.5
92
92
  }, children: [
93
93
  "“",
94
- l,
94
+ r,
95
95
  "”"
96
96
  ] })
97
97
  ] })
98
98
  ] });
99
99
  }
100
- function Oe({ icon: t, label: o, items: l }) {
101
- return !l || l.length === 0 ? null : /* @__PURE__ */ n("div", { style: {
100
+ function Qe({ icon: t, label: i, items: r }) {
101
+ return !r || r.length === 0 ? null : /* @__PURE__ */ n("div", { style: {
102
102
  flex: 1,
103
103
  display: "flex",
104
104
  flexDirection: "column",
@@ -117,26 +117,26 @@ function Oe({ icon: t, label: o, items: l }) {
117
117
  width: 24,
118
118
  height: 24,
119
119
  borderRadius: 9999,
120
- background: z.iconBg,
120
+ background: M.iconBg,
121
121
  flexShrink: 0
122
122
  }, children: t }),
123
123
  /* @__PURE__ */ e("span", { style: {
124
124
  fontSize: 16,
125
125
  fontWeight: 600,
126
- color: z.strong,
126
+ color: M.strong,
127
127
  fontFamily: "var(--font-sans)",
128
128
  lineHeight: "normal"
129
- }, children: o })
129
+ }, children: i })
130
130
  ] }),
131
- /* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", gap: 24 }, children: l.map((a, r) => /* @__PURE__ */ e(gn, { item: a }, r)) })
131
+ /* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", gap: 24 }, children: r.map((l, o) => /* @__PURE__ */ e(un, { item: l }, o)) })
132
132
  ] });
133
133
  }
134
- const hn = ({ data: t, loading: o, error: l }) => {
135
- var u, g;
136
- if (me.useEffect(() => {
137
- fn();
138
- }, []), o)
139
- return /* @__PURE__ */ n(Bt, { children: [
134
+ const mn = ({ data: t, loading: i, error: r }) => {
135
+ var x, v;
136
+ if (de.useEffect(() => {
137
+ hn();
138
+ }, []), i)
139
+ return /* @__PURE__ */ n($t, { children: [
140
140
  /* @__PURE__ */ e("style", { children: `
141
141
  @keyframes coaching-spinner-spin {
142
142
  from { transform: rotate(0deg); }
@@ -193,20 +193,20 @@ const hn = ({ data: t, loading: o, error: l }) => {
193
193
  ),
194
194
  /* @__PURE__ */ e("span", { style: {
195
195
  fontSize: 14,
196
- color: z.muted,
196
+ color: M.muted,
197
197
  fontWeight: 500,
198
198
  textAlign: "center"
199
199
  }, children: "Synthesizing coaching summary..." })
200
200
  ] })
201
201
  ] });
202
- if (l)
202
+ if (r)
203
203
  return /* @__PURE__ */ e("div", { style: {
204
204
  fontSize: 14,
205
- color: z.muted
205
+ color: M.muted
206
206
  }, children: "Unable to generate coaching summary." });
207
207
  if (!t)
208
208
  return null;
209
- const a = t.strengths || [], r = t.improvements || [], f = typeof t.one_liner == "string" ? t.one_liner : ((u = t.one_liner) == null ? void 0 : u.text) || "", y = typeof t.context == "string" ? t.context : ((g = t.context) == null ? void 0 : g.text) || "";
209
+ const l = t.strengths || [], o = t.improvements || [], c = typeof t.one_liner == "string" ? t.one_liner : ((x = t.one_liner) == null ? void 0 : x.text) || "", y = typeof t.context == "string" ? t.context : ((v = t.context) == null ? void 0 : v.text) || "";
210
210
  return /* @__PURE__ */ n("div", { style: {
211
211
  display: "flex",
212
212
  flexDirection: "column",
@@ -218,23 +218,23 @@ const hn = ({ data: t, loading: o, error: l }) => {
218
218
  alignItems: "center",
219
219
  gap: 8
220
220
  }, children: [
221
- /* @__PURE__ */ e(jt, { size: 20, color: z.accent, strokeWidth: 2 }),
221
+ /* @__PURE__ */ e(qt, { size: 20, color: M.accent, strokeWidth: 2 }),
222
222
  /* @__PURE__ */ e("span", { style: {
223
223
  fontSize: 16,
224
224
  fontWeight: 600,
225
- color: z.strong,
225
+ color: M.strong,
226
226
  fontFamily: "var(--font-sans)",
227
227
  lineHeight: 1.2,
228
228
  textTransform: "uppercase"
229
229
  }, children: "Coaching Summary" })
230
230
  ] }),
231
- f && /* @__PURE__ */ e("div", { style: {
231
+ c && /* @__PURE__ */ e("div", { style: {
232
232
  fontSize: 14,
233
233
  fontWeight: 500,
234
- color: z.strong,
234
+ color: M.strong,
235
235
  fontFamily: "var(--font-sans)",
236
236
  lineHeight: 1.5
237
- }, children: f }),
237
+ }, children: c }),
238
238
  /* @__PURE__ */ n("div", { style: {
239
239
  display: "flex",
240
240
  alignItems: "flex-start",
@@ -244,43 +244,43 @@ const hn = ({ data: t, loading: o, error: l }) => {
244
244
  y && /* @__PURE__ */ e("div", { style: {
245
245
  fontSize: 14,
246
246
  fontWeight: 400,
247
- color: z.muted,
247
+ color: M.muted,
248
248
  fontFamily: "var(--font-sans)",
249
249
  lineHeight: 1.5,
250
250
  flex: 1
251
251
  }, children: y }),
252
- t.overall && /* @__PURE__ */ e(pn, { overall: t.overall })
252
+ t.overall && /* @__PURE__ */ e(yn, { overall: t.overall })
253
253
  ] }),
254
- (a.length > 0 || r.length > 0) && /* @__PURE__ */ n("div", { style: {
254
+ (l.length > 0 || o.length > 0) && /* @__PURE__ */ n("div", { style: {
255
255
  display: "flex",
256
256
  gap: 24,
257
257
  paddingTop: 24,
258
- borderTop: `1px solid ${z.absent}`
258
+ borderTop: `1px solid ${M.absent}`
259
259
  }, children: [
260
260
  /* @__PURE__ */ e(
261
- Oe,
261
+ Qe,
262
262
  {
263
- icon: /* @__PURE__ */ e(Ot, { size: 14, color: z.strong, strokeWidth: 1.5 }),
263
+ icon: /* @__PURE__ */ e(Kt, { size: 14, color: M.strong, strokeWidth: 1.5 }),
264
264
  label: "Key Strengths",
265
- items: a
265
+ items: l
266
266
  }
267
267
  ),
268
268
  /* @__PURE__ */ e(
269
- Oe,
269
+ Qe,
270
270
  {
271
- icon: /* @__PURE__ */ e($t, { size: 14, color: z.strong, strokeWidth: 1.5 }),
271
+ icon: /* @__PURE__ */ e(Yt, { size: 14, color: M.strong, strokeWidth: 1.5 }),
272
272
  label: "Improvements",
273
- items: r
273
+ items: o
274
274
  }
275
275
  )
276
276
  ] })
277
277
  ] });
278
278
  };
279
- function yn(t) {
280
- const o = Math.floor(t / 60), l = Math.round(t % 60);
281
- return `${o}:${l.toString().padStart(2, "0")}`;
279
+ function vn(t) {
280
+ const i = Math.floor(t / 60), r = Math.round(t % 60);
281
+ return `${i}:${r.toString().padStart(2, "0")}`;
282
282
  }
283
- const un = {
283
+ const xn = {
284
284
  display: "flex",
285
285
  justifyContent: "space-between",
286
286
  padding: "8px 8px 12px 8px",
@@ -291,51 +291,51 @@ const un = {
291
291
  fontWeight: 400,
292
292
  lineHeight: "normal",
293
293
  borderBottom: "1px solid var(--Grey-absent, #D9D9D9)"
294
- }, $e = {
294
+ }, Je = {
295
295
  display: "flex",
296
296
  flexDirection: "column",
297
297
  flex: "1 0 0",
298
298
  gap: 0,
299
299
  minWidth: 0
300
- }, mn = ({
300
+ }, bn = ({
301
301
  meta: t = {},
302
- callPurpose: o = {},
303
- classification: l = {},
304
- dimensions: a = [],
305
- outcomeQuality: r = "Neutral",
306
- onMoreDetails: f,
302
+ callPurpose: i = {},
303
+ classification: r = {},
304
+ dimensions: l = [],
305
+ outcomeQuality: o = "Neutral",
306
+ onMoreDetails: c,
307
307
  moreDetails: y = [],
308
- resolutionOutcome: u,
309
- customerIntent: g
308
+ resolutionOutcome: x,
309
+ customerIntent: v
310
310
  }) => {
311
- const [m, D] = F(!1), b = t.duration_seconds != null ? yn(t.duration_seconds) : null, c = t.message_count, x = o.interaction_driver, d = l.interaction_paradigm, p = (i) => a.find((T) => (T.key || "").toLowerCase().includes(i)), h = p("resolution_outcome"), C = p("customer_intent"), k = p("outcome_quality"), M = (i) => i ? i.replace(/_/g, " ").replace(/\b\w/g, (T) => T.toUpperCase()) : null, _ = r !== "Neutral" ? r : k ? M(k.value) : r, $ = u ?? (h ? M(h.value) : null), A = g ?? (C ? M(C.value) : null), B = new Set(["resolution_outcome", "customer_intent", "outcome_quality"].map((i) => `dim.${i}`)), W = a.filter((i) => !B.has(i.key)), I = [], P = [
311
+ const [b, z] = F(!1), S = t.duration_seconds != null ? vn(t.duration_seconds) : null, f = t.message_count, w = i.interaction_driver, m = r.interaction_paradigm, u = (s) => l.find((O) => (O.key || "").toLowerCase().includes(s)), G = u("resolution_outcome"), D = u("customer_intent"), C = u("outcome_quality"), T = (s) => s ? s.replace(/_/g, " ").replace(/\b\w/g, (O) => O.toUpperCase()) : null, E = o !== "Neutral" ? o : C ? T(C.value) : o, B = x ?? (G ? T(G.value) : null), H = v ?? (D ? T(D.value) : null), h = new Set(["resolution_outcome", "customer_intent", "outcome_quality"].map((s) => `dim.${s}`)), p = l.filter((s) => !h.has(s.key)), a = [], A = [
312
312
  [
313
- b != null ? { label: "Duration", value: b } : null,
314
- c != null ? { label: "Messages", value: c } : null
313
+ S != null ? { label: "Duration", value: S } : null,
314
+ f != null ? { label: "Messages", value: f } : null
315
315
  ],
316
316
  [
317
- x != null ? { label: "Driver", value: x } : null,
318
- d != null ? { label: "Paradigm", value: d } : null
317
+ w != null ? { label: "Driver", value: w } : null,
318
+ m != null ? { label: "Paradigm", value: m } : null
319
319
  ]
320
320
  ];
321
- for (let i = 0; i < W.length; i += 2) {
322
- const T = W[i] ? { label: W[i].display_name || W[i].label || W[i].key, value: M(W[i].value) } : null, Y = W[i + 1] ? { label: W[i + 1].display_name || W[i + 1].label || W[i + 1].key, value: M(W[i + 1].value) } : null;
323
- P.push([T, Y]);
321
+ for (let s = 0; s < p.length; s += 2) {
322
+ const O = p[s] ? { label: p[s].display_name || p[s].label || p[s].key, value: T(p[s].value) } : null, R = p[s + 1] ? { label: p[s + 1].display_name || p[s + 1].label || p[s + 1].key, value: T(p[s + 1].value) } : null;
323
+ A.push([O, R]);
324
324
  }
325
- P.push([
326
- { label: "Outcome Quality", value: _ },
325
+ A.push([
326
+ { label: "Outcome Quality", value: E },
327
327
  { isMoreDetails: !0 }
328
- ]), P.forEach((i) => I.push(i));
329
- const j = [
330
- $ != null && { label: "Resolution Outcome", value: $ },
331
- A != null && { label: "Customer Intent", value: A },
328
+ ]), A.forEach((s) => a.push(s));
329
+ const N = [
330
+ B != null && { label: "Resolution Outcome", value: B },
331
+ H != null && { label: "Customer Intent", value: H },
332
332
  ...y || []
333
- ].filter(Boolean), N = (i) => /* @__PURE__ */ n(
333
+ ].filter(Boolean), K = (s) => /* @__PURE__ */ n(
334
334
  "div",
335
335
  {
336
- style: un,
336
+ style: xn,
337
337
  children: [
338
- /* @__PURE__ */ e("span", { style: { color: "var(--Grey-Strong, #2E3236)", whiteSpace: "nowrap", flexShrink: 0 }, children: i.label }),
338
+ /* @__PURE__ */ e("span", { style: { color: "var(--Grey-Strong, #2E3236)", whiteSpace: "nowrap", flexShrink: 0 }, children: s.label }),
339
339
  /* @__PURE__ */ e("span", { style: {
340
340
  color: "var(--Grey-Muted, #808183)",
341
341
  textAlign: "right",
@@ -343,15 +343,15 @@ const un = {
343
343
  textOverflow: "ellipsis",
344
344
  whiteSpace: "nowrap",
345
345
  minWidth: 0
346
- }, children: i.value })
346
+ }, children: s.value })
347
347
  ]
348
348
  },
349
- i.label
349
+ s.label
350
350
  ), Q = () => /* @__PURE__ */ n(
351
351
  "div",
352
352
  {
353
353
  onClick: () => {
354
- D((i) => !i), f && !m && f();
354
+ z((s) => !s), c && !b && c();
355
355
  },
356
356
  style: {
357
357
  display: "flex",
@@ -369,7 +369,7 @@ const un = {
369
369
  fontWeight: 500,
370
370
  lineHeight: "normal"
371
371
  }, children: "More Details" }),
372
- m ? /* @__PURE__ */ e(ve, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }) : /* @__PURE__ */ e(xe, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 })
372
+ b ? /* @__PURE__ */ e(Fe, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }) : /* @__PURE__ */ e(De, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 })
373
373
  ]
374
374
  },
375
375
  "more-details"
@@ -386,8 +386,8 @@ const un = {
386
386
  overflow: "visible"
387
387
  },
388
388
  children: [
389
- I.map((i, T) => {
390
- var Y;
389
+ a.map((s, O) => {
390
+ var R;
391
391
  return /* @__PURE__ */ n(
392
392
  "div",
393
393
  {
@@ -398,14 +398,14 @@ const un = {
398
398
  alignSelf: "stretch"
399
399
  },
400
400
  children: [
401
- /* @__PURE__ */ e("div", { style: $e, children: i[0] && !i[0].isMoreDetails ? N(i[0]) : /* @__PURE__ */ e("div", { style: { flex: 1 } }) }),
402
- /* @__PURE__ */ e("div", { style: $e, children: i[1] && !i[1].isMoreDetails ? N(i[1]) : (Y = i[1]) != null && Y.isMoreDetails ? Q() : /* @__PURE__ */ e("div", { style: { flex: 1 } }) })
401
+ /* @__PURE__ */ e("div", { style: Je, children: s[0] && !s[0].isMoreDetails ? K(s[0]) : /* @__PURE__ */ e("div", { style: { flex: 1 } }) }),
402
+ /* @__PURE__ */ e("div", { style: Je, children: s[1] && !s[1].isMoreDetails ? K(s[1]) : (R = s[1]) != null && R.isMoreDetails ? Q() : /* @__PURE__ */ e("div", { style: { flex: 1 } }) })
403
403
  ]
404
404
  },
405
- T
405
+ O
406
406
  );
407
407
  }),
408
- m && j.length > 0 && /* @__PURE__ */ n(
408
+ b && N.length > 0 && /* @__PURE__ */ n(
409
409
  "div",
410
410
  {
411
411
  style: {
@@ -434,7 +434,7 @@ const un = {
434
434
  borderBottom: "1px solid var(--Grey-absent, #D9D9D9)",
435
435
  alignSelf: "stretch"
436
436
  }, children: "More details" }),
437
- j.map((i) => /* @__PURE__ */ n(
437
+ N.map((s) => /* @__PURE__ */ n(
438
438
  "div",
439
439
  {
440
440
  style: {
@@ -450,7 +450,7 @@ const un = {
450
450
  alignSelf: "stretch"
451
451
  },
452
452
  children: [
453
- /* @__PURE__ */ e("span", { style: { color: "var(--Grey-Strong, #2E3236)", whiteSpace: "nowrap", flexShrink: 0 }, children: i.label }),
453
+ /* @__PURE__ */ e("span", { style: { color: "var(--Grey-Strong, #2E3236)", whiteSpace: "nowrap", flexShrink: 0 }, children: s.label }),
454
454
  /* @__PURE__ */ e("span", { style: {
455
455
  color: "var(--Grey-Muted, #808183)",
456
456
  fontSize: 13,
@@ -458,10 +458,10 @@ const un = {
458
458
  fontWeight: 400,
459
459
  lineHeight: "120%",
460
460
  textAlign: "right"
461
- }, children: i.value })
461
+ }, children: s.value })
462
462
  ]
463
463
  },
464
- i.label
464
+ s.label
465
465
  ))
466
466
  ]
467
467
  }
@@ -469,22 +469,22 @@ const un = {
469
469
  ]
470
470
  }
471
471
  );
472
- }, v = {
472
+ }, k = {
473
473
  strong: "var(--Grey-Strong, #2E3236)",
474
474
  muted: "var(--Grey-Muted, #808183)",
475
475
  absent: "var(--Grey-absent, #D9D9D9)",
476
476
  white: "var(--Grey-White, #FFF)",
477
477
  cardBg: "var(--surface-warm-40, rgba(243, 241, 229, 0.40))"
478
- }, G = 1.2, Ne = 3, qe = (t) => t != null ? Math.round(t * 100) + "%" : "—", Ke = (t) => {
478
+ }, _ = 1.2, Xe = 3, Ue = (t) => t != null ? Math.round(t * 100) + "%" : "—", et = (t) => {
479
479
  if (t == null)
480
480
  return "—";
481
- const o = (t * 100).toFixed(1);
482
- return t > 0 ? `+${o}pp` : `${o}pp`;
483
- }, vn = ({ outcomeLift: t, driverLabels: o = [] }) => {
484
- var c;
481
+ const i = (t * 100).toFixed(1);
482
+ return t > 0 ? `+${i}pp` : `${i}pp`;
483
+ }, kn = ({ outcomeLift: t, driverLabels: i = [] }) => {
484
+ var f;
485
485
  if (!t || t.lift == null)
486
486
  return null;
487
- const l = t.p_expected, a = t.p_full, r = t.lift_raw ?? (a != null && l != null ? a - l : null), f = t.lift, y = (c = t.interpretation) != null && c.lift_band ? t.interpretation.lift_band.replace(/_/g, " ") : f >= 0 ? "Positive" : "Negative", u = y.charAt(0).toUpperCase() + y.slice(1), m = /negative/i.test(y) ? Nt : Qe, D = o.slice(0, Ne), b = o.length - Ne;
487
+ const r = t.p_expected, l = t.p_full, o = t.lift_raw ?? (l != null && r != null ? l - r : null), c = t.lift, y = (f = t.interpretation) != null && f.lift_band ? t.interpretation.lift_band.replace(/_/g, " ") : c >= 0 ? "Positive" : "Negative", x = y.charAt(0).toUpperCase() + y.slice(1), b = /negative/i.test(y) ? Vt : nt, z = i.slice(0, Xe), S = i.length - Xe;
488
488
  return /* @__PURE__ */ n(
489
489
  "div",
490
490
  {
@@ -494,8 +494,8 @@ const un = {
494
494
  padding: 24,
495
495
  gap: 24,
496
496
  borderRadius: 8,
497
- border: `1px solid ${v.absent}`,
498
- background: v.cardBg,
497
+ border: `1px solid ${k.absent}`,
498
+ background: k.cardBg,
499
499
  alignSelf: "stretch"
500
500
  },
501
501
  children: [
@@ -517,9 +517,9 @@ const un = {
517
517
  style: {
518
518
  fontSize: 15,
519
519
  fontWeight: 600,
520
- color: v.strong,
520
+ color: k.strong,
521
521
  fontFamily: "var(--font-sans)",
522
- lineHeight: G
522
+ lineHeight: _
523
523
  },
524
524
  children: "Agent Lift Analysis"
525
525
  }
@@ -534,8 +534,8 @@ const un = {
534
534
  fontFamily: "var(--font-sans)"
535
535
  },
536
536
  children: [
537
- /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: v.strong, lineHeight: G }, children: "vs. Average Agent:" }),
538
- /* @__PURE__ */ e("span", { style: { fontSize: 14, fontWeight: 600, color: v.strong, lineHeight: G }, children: Ke(f) }),
537
+ /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: k.strong, lineHeight: _ }, children: "vs. Average Agent:" }),
538
+ /* @__PURE__ */ e("span", { style: { fontSize: 14, fontWeight: 600, color: k.strong, lineHeight: _ }, children: et(c) }),
539
539
  /* @__PURE__ */ n(
540
540
  "div",
541
541
  {
@@ -544,11 +544,11 @@ const un = {
544
544
  alignItems: "center",
545
545
  gap: 6,
546
546
  paddingLeft: 8,
547
- borderLeft: `1px solid ${v.absent}`
547
+ borderLeft: `1px solid ${k.absent}`
548
548
  },
549
549
  children: [
550
- /* @__PURE__ */ e(m, { size: 14, color: v.strong }),
551
- /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 600, color: v.strong, lineHeight: G }, children: u })
550
+ /* @__PURE__ */ e(b, { size: 14, color: k.strong }),
551
+ /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 600, color: k.strong, lineHeight: _ }, children: x })
552
552
  ]
553
553
  }
554
554
  )
@@ -567,10 +567,10 @@ const un = {
567
567
  },
568
568
  children: [
569
569
  /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", gap: 16, alignItems: "center", flex: 1, minWidth: 0 }, children: [
570
- /* @__PURE__ */ e("span", { style: { fontSize: 28, fontWeight: 400, color: v.muted, fontFamily: "var(--font-sans)", lineHeight: G }, children: qe(l) }),
570
+ /* @__PURE__ */ e("span", { style: { fontSize: 28, fontWeight: 400, color: k.muted, fontFamily: "var(--font-sans)", lineHeight: _ }, children: Ue(r) }),
571
571
  /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", gap: 8, alignItems: "center", minHeight: 48 }, children: [
572
- /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: v.strong, fontFamily: "var(--font-sans)", lineHeight: G, whiteSpace: "nowrap" }, children: "Expected Outcome" }),
573
- /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: v.muted, fontFamily: "var(--font-sans)", lineHeight: G, textAlign: "center" }, children: "Based on call type & difficulty" })
572
+ /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: k.strong, fontFamily: "var(--font-sans)", lineHeight: _, whiteSpace: "nowrap" }, children: "Expected Outcome" }),
573
+ /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: k.muted, fontFamily: "var(--font-sans)", lineHeight: _, textAlign: "center" }, children: "Based on call type & difficulty" })
574
574
  ] })
575
575
  ] }),
576
576
  /* @__PURE__ */ n("div", { style: {
@@ -579,14 +579,14 @@ const un = {
579
579
  gap: 16,
580
580
  alignItems: "center",
581
581
  paddingLeft: 24,
582
- borderLeft: `1px solid ${v.absent}`,
582
+ borderLeft: `1px solid ${k.absent}`,
583
583
  flex: 1,
584
584
  minWidth: 0
585
585
  }, children: [
586
- /* @__PURE__ */ e("span", { style: { fontSize: 28, fontWeight: 400, color: v.muted, fontFamily: "var(--font-sans)", lineHeight: G }, children: Ke(r) }),
586
+ /* @__PURE__ */ e("span", { style: { fontSize: 28, fontWeight: 400, color: k.muted, fontFamily: "var(--font-sans)", lineHeight: _ }, children: et(o) }),
587
587
  /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", gap: 8, alignItems: "center", minHeight: 48 }, children: [
588
- /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: v.strong, fontFamily: "var(--font-sans)", lineHeight: G, whiteSpace: "nowrap" }, children: "Agent Impact" }),
589
- /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: v.muted, fontFamily: "var(--font-sans)", lineHeight: G, textAlign: "center" }, children: "Behavior-driven change" })
588
+ /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: k.strong, fontFamily: "var(--font-sans)", lineHeight: _, whiteSpace: "nowrap" }, children: "Agent Impact" }),
589
+ /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: k.muted, fontFamily: "var(--font-sans)", lineHeight: _, textAlign: "center" }, children: "Behavior-driven change" })
590
590
  ] })
591
591
  ] }),
592
592
  /* @__PURE__ */ n("div", { style: {
@@ -595,36 +595,36 @@ const un = {
595
595
  gap: 16,
596
596
  alignItems: "center",
597
597
  paddingLeft: 24,
598
- borderLeft: `1px solid ${v.absent}`,
598
+ borderLeft: `1px solid ${k.absent}`,
599
599
  flex: 1,
600
600
  minWidth: 0
601
601
  }, children: [
602
- /* @__PURE__ */ e("span", { style: { fontSize: 28, fontWeight: 400, color: v.strong, fontFamily: "var(--font-sans)", lineHeight: G }, children: qe(a) }),
602
+ /* @__PURE__ */ e("span", { style: { fontSize: 28, fontWeight: 400, color: k.strong, fontFamily: "var(--font-sans)", lineHeight: _ }, children: Ue(l) }),
603
603
  /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", gap: 8, alignItems: "center", minHeight: 48 }, children: [
604
- /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 600, color: v.strong, fontFamily: "var(--font-sans)", lineHeight: G, whiteSpace: "nowrap" }, children: "Predicted Outcome" }),
605
- /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: v.muted, fontFamily: "var(--font-sans)", lineHeight: G, textAlign: "center" }, children: "With agent behaviors" })
604
+ /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 600, color: k.strong, fontFamily: "var(--font-sans)", lineHeight: _, whiteSpace: "nowrap" }, children: "Predicted Outcome" }),
605
+ /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: k.muted, fontFamily: "var(--font-sans)", lineHeight: _, textAlign: "center" }, children: "With agent behaviors" })
606
606
  ] })
607
607
  ] })
608
608
  ]
609
609
  }
610
610
  )
611
611
  ] }),
612
- o.length > 0 && /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", gap: 4, alignSelf: "stretch" }, children: [
612
+ i.length > 0 && /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", gap: 4, alignSelf: "stretch" }, children: [
613
613
  /* @__PURE__ */ e(
614
614
  "span",
615
615
  {
616
616
  style: {
617
617
  fontSize: 12,
618
618
  fontWeight: 600,
619
- color: v.strong,
619
+ color: k.strong,
620
620
  fontFamily: "var(--font-sans)",
621
- lineHeight: G
621
+ lineHeight: _
622
622
  },
623
623
  children: "Key Drivers"
624
624
  }
625
625
  ),
626
626
  /* @__PURE__ */ n("div", { style: { display: "flex", flexWrap: "wrap", gap: 4 }, children: [
627
- D.map((x, d) => /* @__PURE__ */ e(
627
+ z.map((w, m) => /* @__PURE__ */ e(
628
628
  "div",
629
629
  {
630
630
  style: {
@@ -633,8 +633,8 @@ const un = {
633
633
  alignItems: "center",
634
634
  justifyContent: "center",
635
635
  borderRadius: 4,
636
- border: `1px solid ${v.absent}`,
637
- background: v.white
636
+ border: `1px solid ${k.absent}`,
637
+ background: k.white
638
638
  },
639
639
  children: /* @__PURE__ */ e(
640
640
  "span",
@@ -642,21 +642,21 @@ const un = {
642
642
  style: {
643
643
  fontSize: 12,
644
644
  fontWeight: 400,
645
- color: v.strong,
645
+ color: k.strong,
646
646
  fontFamily: "var(--font-sans)",
647
- lineHeight: G,
647
+ lineHeight: _,
648
648
  whiteSpace: "nowrap",
649
649
  overflow: "hidden",
650
650
  textOverflow: "ellipsis",
651
651
  maxWidth: 200
652
652
  },
653
- children: x
653
+ children: w
654
654
  }
655
655
  )
656
656
  },
657
- d
657
+ m
658
658
  )),
659
- b > 0 && /* @__PURE__ */ e(
659
+ S > 0 && /* @__PURE__ */ e(
660
660
  "div",
661
661
  {
662
662
  style: {
@@ -665,8 +665,8 @@ const un = {
665
665
  alignItems: "center",
666
666
  justifyContent: "center",
667
667
  borderRadius: 4,
668
- border: `1px solid ${v.absent}`,
669
- background: v.white
668
+ border: `1px solid ${k.absent}`,
669
+ background: k.white
670
670
  },
671
671
  children: /* @__PURE__ */ n(
672
672
  "span",
@@ -674,14 +674,14 @@ const un = {
674
674
  style: {
675
675
  fontSize: 12,
676
676
  fontWeight: 400,
677
- color: v.strong,
677
+ color: k.strong,
678
678
  fontFamily: "var(--font-sans)",
679
- lineHeight: G,
679
+ lineHeight: _,
680
680
  whiteSpace: "nowrap"
681
681
  },
682
682
  children: [
683
683
  "+ ",
684
- b
684
+ S
685
685
  ]
686
686
  }
687
687
  )
@@ -692,23 +692,23 @@ const un = {
692
692
  ]
693
693
  }
694
694
  );
695
- }, Ye = ({ children: t, size: o = 28, onClick: l, title: a }) => {
696
- const [r, f] = F(!1);
695
+ }, tt = ({ children: t, size: i = 28, onClick: r, title: l }) => {
696
+ const [o, c] = F(!1);
697
697
  return /* @__PURE__ */ e(
698
698
  "div",
699
699
  {
700
- title: a,
701
- onClick: l,
702
- onMouseEnter: () => f(!0),
703
- onMouseLeave: () => f(!1),
700
+ title: l,
701
+ onClick: r,
702
+ onMouseEnter: () => c(!0),
703
+ onMouseLeave: () => c(!1),
704
704
  style: {
705
705
  display: "flex",
706
706
  alignItems: "center",
707
707
  justifyContent: "center",
708
- width: o,
709
- height: o,
708
+ width: i,
709
+ height: i,
710
710
  borderRadius: 9999,
711
- background: r ? "var(--surface-hover, #F3F7F7)" : "transparent",
711
+ background: o ? "var(--surface-hover, #F3F7F7)" : "transparent",
712
712
  cursor: "pointer",
713
713
  flexShrink: 0,
714
714
  transition: "background 0.15s"
@@ -716,24 +716,24 @@ const un = {
716
716
  children: t
717
717
  }
718
718
  );
719
- }, xn = ({
719
+ }, Sn = ({
720
720
  signals: t = { signals: [], present_count: 0, total_signals_evaluated: 0 },
721
- expandedSignals: o = /* @__PURE__ */ new Set(),
722
- toggleSignal: l = () => {
721
+ expandedSignals: i = /* @__PURE__ */ new Set(),
722
+ toggleSignal: r = () => {
723
723
  },
724
- playEvidence: a = () => {
724
+ playEvidence: l = () => {
725
725
  },
726
- highlightTurns: r = () => {
726
+ highlightTurns: o = () => {
727
727
  },
728
- onShowInTranscript: f = () => {
728
+ onShowInTranscript: c = () => {
729
729
  },
730
730
  timelinePlaying: y = !1,
731
- currentTimeSeconds: u = 0
731
+ currentTimeSeconds: x = 0
732
732
  }) => {
733
- const g = (t == null ? void 0 : t.signals) ?? [], m = (t == null ? void 0 : t.present_count) ?? g.length, D = (c) => {
734
- const x = Math.floor(c / 6e4), d = Math.floor(c % 6e4 / 1e3);
735
- return `${x.toString().padStart(2, "0")}:${d.toString().padStart(2, "0")}`;
736
- }, b = (c) => y && c.start_ms != null && u * 1e3 >= c.start_ms && u * 1e3 <= (c.end_ms ?? c.start_ms + 5e3);
733
+ const v = (t == null ? void 0 : t.signals) ?? [], b = (t == null ? void 0 : t.present_count) ?? v.length, z = (f) => {
734
+ const w = Math.floor(f / 6e4), m = Math.floor(f % 6e4 / 1e3);
735
+ return `${w.toString().padStart(2, "0")}:${m.toString().padStart(2, "0")}`;
736
+ }, S = (f) => y && f.start_ms != null && x * 1e3 >= f.start_ms && x * 1e3 <= (f.end_ms ?? f.start_ms + 5e3);
737
737
  return /* @__PURE__ */ n("div", { style: {
738
738
  display: "flex",
739
739
  flexDirection: "column",
@@ -757,7 +757,7 @@ const un = {
757
757
  borderRadius: 9999,
758
758
  background: "var(--surface-hover, #F3F7F7)",
759
759
  flexShrink: 0
760
- }, children: /* @__PURE__ */ e(Ze, { size: 20, color: "#2E3236", strokeWidth: 1.5 }) }),
760
+ }, children: /* @__PURE__ */ e(it, { size: 20, color: "#2E3236", strokeWidth: 1.5 }) }),
761
761
  /* @__PURE__ */ n("div", { style: {
762
762
  display: "flex",
763
763
  alignItems: "center",
@@ -774,7 +774,7 @@ const un = {
774
774
  fontWeight: 500,
775
775
  color: "var(--Grey-Strong, #2E3236)"
776
776
  }, children: [
777
- m,
777
+ b,
778
778
  " Signals Detected"
779
779
  ] })
780
780
  ] })
@@ -786,18 +786,18 @@ const un = {
786
786
  background: "var(--Grey-White, #FFF)",
787
787
  gap: 8
788
788
  }, children: [
789
- g.length === 0 && /* @__PURE__ */ e("div", { style: {
789
+ v.length === 0 && /* @__PURE__ */ e("div", { style: {
790
790
  padding: "8px 0",
791
791
  fontSize: 14,
792
792
  color: "var(--Grey-Muted, #808183)"
793
793
  }, children: "No signals detected." }),
794
- g.map((c, x) => {
795
- var C, k, M;
796
- const d = c.key ?? c.id ?? x, p = o.has(d), h = ((C = c.observations) == null ? void 0 : C.length) ?? 0;
794
+ v.map((f, w) => {
795
+ var D, C, T;
796
+ const m = f.key ?? f.id ?? w, u = i.has(m), G = ((D = f.observations) == null ? void 0 : D.length) ?? 0;
797
797
  return /* @__PURE__ */ n(
798
798
  "div",
799
799
  {
800
- id: `signal-${d}`,
800
+ id: `signal-${m}`,
801
801
  style: {
802
802
  display: "flex",
803
803
  flexDirection: "column",
@@ -808,7 +808,7 @@ const un = {
808
808
  /* @__PURE__ */ n(
809
809
  "button",
810
810
  {
811
- onClick: () => l(d),
811
+ onClick: () => r(m),
812
812
  style: {
813
813
  display: "flex",
814
814
  padding: "8px 0",
@@ -830,28 +830,28 @@ const un = {
830
830
  color: "var(--text-dark, #0B0A0A)",
831
831
  lineHeight: 1.71
832
832
  }, children: [
833
- c.display_name || ((k = c.key) == null ? void 0 : k.replace(/_/g, " ")),
834
- h > 0 && /* @__PURE__ */ n("span", { style: {
833
+ f.display_name || ((C = f.key) == null ? void 0 : C.replace(/_/g, " ")),
834
+ G > 0 && /* @__PURE__ */ n("span", { style: {
835
835
  fontWeight: 600,
836
836
  color: "var(--text-dark, #0B0A0A)",
837
837
  marginLeft: 6
838
838
  }, children: [
839
839
  "(",
840
- h,
840
+ G,
841
841
  ")"
842
842
  ] })
843
843
  ] }),
844
- p ? /* @__PURE__ */ e(ve, { size: 20, color: "#767473" }) : /* @__PURE__ */ e(xe, { size: 20, color: "#767473" })
844
+ u ? /* @__PURE__ */ e(Fe, { size: 20, color: "#767473" }) : /* @__PURE__ */ e(De, { size: 20, color: "#767473" })
845
845
  ]
846
846
  }
847
847
  ),
848
- p && ((M = c.observations) == null ? void 0 : M.length) > 0 && /* @__PURE__ */ e("div", { style: {
848
+ u && ((T = f.observations) == null ? void 0 : T.length) > 0 && /* @__PURE__ */ e("div", { style: {
849
849
  display: "flex",
850
850
  flexDirection: "column",
851
851
  alignSelf: "stretch",
852
852
  gap: 0
853
- }, children: c.observations.map((_, $) => {
854
- var A, B, W;
853
+ }, children: f.observations.map((E, B) => {
854
+ var H, h, p;
855
855
  return /* @__PURE__ */ n(
856
856
  "div",
857
857
  {
@@ -875,8 +875,8 @@ const un = {
875
875
  fontWeight: 400,
876
876
  color: "var(--text-subtle-warm, #767473)",
877
877
  lineHeight: 1.5
878
- }, children: _.reason || _.explanation }),
879
- ((B = (A = _.evidence) == null ? void 0 : A[0]) == null ? void 0 : B.start_ms) != null && /* @__PURE__ */ n(
878
+ }, children: E.reason || E.explanation }),
879
+ ((h = (H = E.evidence) == null ? void 0 : H[0]) == null ? void 0 : h.start_ms) != null && /* @__PURE__ */ n(
880
880
  "div",
881
881
  {
882
882
  style: {
@@ -887,14 +887,14 @@ const un = {
887
887
  },
888
888
  children: [
889
889
  /* @__PURE__ */ e(
890
- Ye,
890
+ tt,
891
891
  {
892
892
  size: 28,
893
893
  title: "Show in transcript",
894
- onClick: (I) => {
895
- I.stopPropagation(), f(_.evidence[0].start_ms);
894
+ onClick: (a) => {
895
+ a.stopPropagation(), c(E.evidence[0].start_ms);
896
896
  },
897
- children: /* @__PURE__ */ e(qt, { size: 16, color: "#808183", strokeWidth: 1.5 })
897
+ children: /* @__PURE__ */ e(Zt, { size: 16, color: "#808183", strokeWidth: 1.5 })
898
898
  }
899
899
  ),
900
900
  /* @__PURE__ */ e("span", { style: {
@@ -903,38 +903,38 @@ const un = {
903
903
  color: "var(--Grey-Muted, #808183)",
904
904
  lineHeight: 1.2,
905
905
  whiteSpace: "nowrap"
906
- }, children: D(_.evidence[0].start_ms) })
906
+ }, children: z(E.evidence[0].start_ms) })
907
907
  ]
908
908
  }
909
909
  )
910
910
  ] }),
911
- (W = _.evidence) == null ? void 0 : W.map((I, P) => {
912
- const j = I.start_ms != null && I.end_ms != null;
913
- return I.text && /* @__PURE__ */ n(
911
+ (p = E.evidence) == null ? void 0 : p.map((a, A) => {
912
+ const N = a.start_ms != null && a.end_ms != null;
913
+ return a.text && /* @__PURE__ */ n(
914
914
  "div",
915
915
  {
916
- onClick: (N) => {
917
- N.stopPropagation(), j && a(I);
916
+ onClick: (K) => {
917
+ K.stopPropagation(), N && l(a);
918
918
  },
919
- onMouseEnter: () => r(I.turn_ids ?? []),
920
- onMouseLeave: () => r([]),
919
+ onMouseEnter: () => o(a.turn_ids ?? []),
920
+ onMouseLeave: () => o([]),
921
921
  style: {
922
922
  display: "flex",
923
923
  alignItems: "center",
924
924
  gap: 8,
925
925
  padding: "8px 0",
926
- cursor: j ? "pointer" : "default"
926
+ cursor: N ? "pointer" : "default"
927
927
  },
928
928
  children: [
929
- j && /* @__PURE__ */ e(Ye, { size: 28, children: b(I) ? /* @__PURE__ */ e(
930
- Kt,
929
+ N && /* @__PURE__ */ e(tt, { size: 28, children: S(a) ? /* @__PURE__ */ e(
930
+ Qt,
931
931
  {
932
932
  size: 17,
933
933
  color: "var(--Grey-Muted, #808183)",
934
934
  strokeWidth: 1.5
935
935
  }
936
936
  ) : /* @__PURE__ */ e(
937
- Yt,
937
+ Jt,
938
938
  {
939
939
  size: 17,
940
940
  color: "var(--Grey-Muted, #808183)",
@@ -948,27 +948,27 @@ const un = {
948
948
  lineHeight: 1.2
949
949
  }, children: [
950
950
  "“",
951
- I.text,
951
+ a.text,
952
952
  "”"
953
953
  ] })
954
954
  ]
955
955
  },
956
- P
956
+ A
957
957
  );
958
958
  })
959
959
  ]
960
960
  },
961
- _.key ?? $
961
+ E.key ?? B
962
962
  );
963
963
  }) })
964
964
  ]
965
965
  },
966
- d
966
+ m
967
967
  );
968
968
  })
969
969
  ] })
970
970
  ] });
971
- }, E = {
971
+ }, L = {
972
972
  strong: "var(--Grey-Strong, #2E3236)",
973
973
  muted: "var(--Grey-Muted, #808183)",
974
974
  absent: "var(--Grey-absent, #D9D9D9)",
@@ -976,71 +976,71 @@ const un = {
976
976
  accent: "var(--rail-orange, #C98A5A)",
977
977
  track: "var(--rail-surface-2, #E3E1D7)",
978
978
  infoIcon: "var(--color-input-border, #ACACAD)"
979
- }, bn = ({ score: t = 4, maxScore: o = 10 }) => {
980
- const m = Math.min(Math.round(t / o * 5), 5), D = 180 / 5, b = (d) => {
981
- const p = d * Math.PI / 180;
979
+ }, wn = ({ score: t = 4, maxScore: i = 10 }) => {
980
+ const b = Math.min(Math.round(t / i * 5), 5), z = 180 / 5, S = (m) => {
981
+ const u = m * Math.PI / 180;
982
982
  return {
983
- x: 121.5 + 85 * Math.cos(p),
984
- y: 123 - 85 * Math.sin(p)
983
+ x: 121.5 + 85 * Math.cos(u),
984
+ y: 123 - 85 * Math.sin(u)
985
985
  };
986
- }, c = (d, p) => {
987
- const h = b(d), C = b(p), k = d - p > 180 ? 1 : 0;
988
- return `M ${h.x} ${h.y} A 85 85 0 ${k} 1 ${C.x} ${C.y}`;
989
- }, x = 2;
990
- return /* @__PURE__ */ e("svg", { width: "100%", viewBox: "0 0 243 130", fill: "none", style: { maxWidth: 243 }, children: Array.from({ length: 5 }, (d, p) => {
991
- const h = 180 - p * D - (p > 0 ? x / 2 : 0), C = 180 - (p + 1) * D + (p < 5 - 1 ? x / 2 : 0), k = p < m;
986
+ }, f = (m, u) => {
987
+ const G = S(m), D = S(u), C = m - u > 180 ? 1 : 0;
988
+ return `M ${G.x} ${G.y} A 85 85 0 ${C} 1 ${D.x} ${D.y}`;
989
+ }, w = 2;
990
+ return /* @__PURE__ */ e("svg", { width: "100%", viewBox: "0 0 243 130", fill: "none", style: { maxWidth: 243 }, children: Array.from({ length: 5 }, (m, u) => {
991
+ const G = 180 - u * z - (u > 0 ? w / 2 : 0), D = 180 - (u + 1) * z + (u < 5 - 1 ? w / 2 : 0), C = u < b;
992
992
  return /* @__PURE__ */ e(
993
993
  "path",
994
994
  {
995
- d: c(h, C),
996
- stroke: k ? E.strong : E.track,
995
+ d: f(G, D),
996
+ stroke: C ? L.strong : L.track,
997
997
  strokeWidth: 30,
998
998
  strokeLinecap: "butt",
999
999
  fill: "none"
1000
1000
  },
1001
- p
1001
+ u
1002
1002
  );
1003
1003
  }) });
1004
- }, kn = ({ value: t = 0, maxValue: o = 5 }) => /* @__PURE__ */ e("div", { style: { display: "flex", gap: 2 }, children: Array.from({ length: o }, (l, a) => /* @__PURE__ */ e(
1004
+ }, Cn = ({ value: t = 0, maxValue: i = 5 }) => /* @__PURE__ */ e("div", { style: { display: "flex", gap: 2 }, children: Array.from({ length: i }, (r, l) => /* @__PURE__ */ e(
1005
1005
  "div",
1006
1006
  {
1007
1007
  style: {
1008
1008
  width: 22,
1009
1009
  height: 6,
1010
1010
  borderRadius: 1,
1011
- background: a < t ? E.strong : E.track
1011
+ background: l < t ? L.strong : L.track
1012
1012
  }
1013
1013
  },
1014
- a
1015
- )) }), Sn = {
1014
+ l
1015
+ )) }), Fn = {
1016
1016
  CSAT: "Predicted Customer Satisfaction",
1017
1017
  Resolution: "Predicted Resolution: was the issue fully resolved?",
1018
1018
  "Process Adherence": "Process Adherence: Did the agent follow procedures?",
1019
1019
  Communication: "Predicted Communication Quality: Clarity, Empathy, Professionalism"
1020
- }, wn = ({ text: t, children: o }) => {
1021
- const [l, a] = F(!1), r = L(null), [f, y] = F({ top: 0, left: 0 });
1020
+ }, Dn = ({ text: t, children: i }) => {
1021
+ const [r, l] = F(!1), o = P(null), [c, y] = F({ top: 0, left: 0 });
1022
1022
  return /* @__PURE__ */ n(
1023
1023
  "div",
1024
1024
  {
1025
- ref: r,
1025
+ ref: o,
1026
1026
  style: { position: "relative", display: "inline-flex" },
1027
1027
  onMouseEnter: () => {
1028
- if (r.current) {
1029
- const g = r.current.getBoundingClientRect();
1028
+ if (o.current) {
1029
+ const v = o.current.getBoundingClientRect();
1030
1030
  y({
1031
- top: g.top - 8,
1032
- left: g.left + g.width / 2
1031
+ top: v.top - 8,
1032
+ left: v.left + v.width / 2
1033
1033
  });
1034
1034
  }
1035
- a(!0);
1035
+ l(!0);
1036
1036
  },
1037
- onMouseLeave: () => a(!1),
1037
+ onMouseLeave: () => l(!1),
1038
1038
  children: [
1039
- o,
1040
- l && /* @__PURE__ */ e("div", { style: {
1039
+ i,
1040
+ r && /* @__PURE__ */ e("div", { style: {
1041
1041
  position: "fixed",
1042
- top: f.top,
1043
- left: f.left,
1042
+ top: c.top,
1043
+ left: c.left,
1044
1044
  transform: "translate(-50%, -100%)",
1045
1045
  display: "flex",
1046
1046
  width: "max-content",
@@ -1061,7 +1061,7 @@ const un = {
1061
1061
  ]
1062
1062
  }
1063
1063
  );
1064
- }, Cn = ({ label: t, value: o = 0, maxValue: l = 5 }) => /* @__PURE__ */ n("div", { style: {
1064
+ }, Wn = ({ label: t, value: i = 0, maxValue: r = 5 }) => /* @__PURE__ */ n("div", { style: {
1065
1065
  display: "flex",
1066
1066
  flexDirection: "column",
1067
1067
  gap: 8,
@@ -1076,188 +1076,183 @@ const un = {
1076
1076
  /* @__PURE__ */ e("span", { style: {
1077
1077
  fontSize: 12,
1078
1078
  fontWeight: 400,
1079
- color: E.strong,
1079
+ color: L.strong,
1080
1080
  fontFamily: "var(--font-sans)",
1081
1081
  lineHeight: "normal"
1082
1082
  }, children: t }),
1083
- /* @__PURE__ */ e(wn, { text: Sn[t] || t, children: /* @__PURE__ */ e(Vt, { size: 14, color: E.infoIcon, strokeWidth: 1, style: { cursor: "pointer" } }) })
1083
+ /* @__PURE__ */ e(Dn, { text: Fn[t] || t, children: /* @__PURE__ */ e(rt, { size: 14, color: L.infoIcon, strokeWidth: 1, style: { cursor: "pointer" } }) })
1084
1084
  ] }),
1085
- /* @__PURE__ */ e(kn, { value: o, maxValue: l })
1086
- ] }), Fn = ({
1085
+ /* @__PURE__ */ e(Cn, { value: i, maxValue: r })
1086
+ ] }), In = ({
1087
1087
  score: t = 83,
1088
- maxScore: o = 100,
1089
- predictedScore: l = 4,
1090
- predictedLabel: a = "Predicted Objective",
1091
- description: r = "",
1092
- legends: f = [
1088
+ maxScore: i = 100,
1089
+ predictedScore: r = 4,
1090
+ predictedLabel: l = "Predicted Objective",
1091
+ description: o = "",
1092
+ legends: c = [
1093
1093
  { label: "CSAT", value: 3 },
1094
1094
  { label: "Resolution", value: 4 },
1095
1095
  { label: "Process Adherence", value: 5 },
1096
1096
  { label: "Communication", value: 3 }
1097
1097
  ]
1098
- }) => {
1099
- const y = String(l).padStart(2, "0");
1100
- return /* @__PURE__ */ n("div", { style: {
1098
+ }) => (String(r).padStart(2, "0"), /* @__PURE__ */ n("div", { style: {
1099
+ display: "flex",
1100
+ flexDirection: "column",
1101
+ padding: 24,
1102
+ borderRadius: 8,
1103
+ border: `1px solid ${L.absent}`,
1104
+ background: L.white,
1105
+ alignSelf: "stretch",
1106
+ flex: 1,
1107
+ gap: 24
1108
+ }, children: [
1109
+ /* @__PURE__ */ n("div", { style: {
1101
1110
  display: "flex",
1102
1111
  flexDirection: "column",
1103
- padding: 24,
1104
- borderRadius: 8,
1105
- border: `1px solid ${E.absent}`,
1106
- background: E.white,
1107
- alignSelf: "stretch",
1112
+ gap: 8
1113
+ }, children: [
1114
+ /* @__PURE__ */ e("span", { style: {
1115
+ fontSize: 15,
1116
+ fontWeight: 600,
1117
+ color: L.strong,
1118
+ fontFamily: "var(--font-sans)",
1119
+ lineHeight: 1.2
1120
+ }, children: "Compass Score" }),
1121
+ /* @__PURE__ */ e("span", { style: {
1122
+ fontSize: 14,
1123
+ fontWeight: 400,
1124
+ color: L.muted,
1125
+ fontFamily: "var(--font-sans)",
1126
+ lineHeight: "normal"
1127
+ }, children: o })
1128
+ ] }),
1129
+ /* @__PURE__ */ n("div", { style: {
1130
+ display: "flex",
1131
+ alignItems: "center",
1132
+ justifyContent: "center",
1133
+ gap: 24,
1108
1134
  flex: 1,
1109
- gap: 24
1135
+ overflow: "hidden"
1110
1136
  }, children: [
1111
1137
  /* @__PURE__ */ n("div", { style: {
1112
- display: "flex",
1138
+ position: "relative",
1139
+ maxWidth: 243,
1140
+ minWidth: 160,
1141
+ flex: "0 1 243px",
1113
1142
  flexDirection: "column",
1114
- gap: 8
1143
+ alignItems: "center",
1144
+ display: "flex"
1115
1145
  }, children: [
1116
- /* @__PURE__ */ e("span", { style: {
1117
- fontSize: 15,
1118
- fontWeight: 600,
1119
- color: E.strong,
1120
- fontFamily: "var(--font-sans)",
1121
- lineHeight: 1.2
1122
- }, children: "Compass Score" }),
1123
- /* @__PURE__ */ e("span", { style: {
1124
- fontSize: 14,
1146
+ /* @__PURE__ */ e(wn, { score: t, maxScore: i }),
1147
+ (() => {
1148
+ const v = -(180 - (i > 0 ? Math.min(t / i, 1) : 0) * 180 - 45);
1149
+ return /* @__PURE__ */ n(
1150
+ "svg",
1151
+ {
1152
+ width: "34",
1153
+ height: "35",
1154
+ viewBox: "0 0 34 35",
1155
+ fill: "none",
1156
+ xmlns: "http://www.w3.org/2000/svg",
1157
+ style: {
1158
+ marginTop: -24,
1159
+ transform: `rotate(${v}deg)`,
1160
+ transformOrigin: "center center"
1161
+ },
1162
+ children: [
1163
+ /* @__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)" }),
1164
+ /* @__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)" })
1165
+ ]
1166
+ }
1167
+ );
1168
+ })(),
1169
+ /* @__PURE__ */ e("div", { style: {
1170
+ fontSize: 28,
1125
1171
  fontWeight: 400,
1126
- color: E.muted,
1172
+ color: L.strong,
1127
1173
  fontFamily: "var(--font-sans)",
1128
- lineHeight: "normal"
1129
- }, children: r })
1174
+ lineHeight: 1,
1175
+ textAlign: "center",
1176
+ marginTop: 8
1177
+ }, children: t })
1130
1178
  ] }),
1131
1179
  /* @__PURE__ */ n("div", { style: {
1132
1180
  display: "flex",
1181
+ flexDirection: "column",
1182
+ gap: 8,
1133
1183
  alignItems: "center",
1134
1184
  justifyContent: "center",
1135
- gap: 24,
1136
- flex: 1,
1137
- overflow: "hidden"
1185
+ flex: 1
1138
1186
  }, children: [
1139
- /* @__PURE__ */ n("div", { style: {
1140
- position: "relative",
1141
- maxWidth: 243,
1142
- minWidth: 160,
1143
- flex: "0 1 243px",
1144
- flexDirection: "column",
1145
- alignItems: "center",
1146
- display: "flex"
1147
- }, children: [
1148
- /* @__PURE__ */ e(bn, { score: t, maxScore: o }),
1149
- (() => {
1150
- const m = -(180 - (o > 0 ? Math.min(t / o, 1) : 0) * 180 - 45);
1151
- return /* @__PURE__ */ n(
1152
- "svg",
1153
- {
1154
- width: "34",
1155
- height: "35",
1156
- viewBox: "0 0 34 35",
1157
- fill: "none",
1158
- xmlns: "http://www.w3.org/2000/svg",
1159
- style: {
1160
- marginTop: -24,
1161
- transform: `rotate(${m}deg)`,
1162
- transformOrigin: "center center"
1163
- },
1164
- children: [
1165
- /* @__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)" }),
1166
- /* @__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)" })
1167
- ]
1168
- }
1169
- );
1170
- })(),
1171
- /* @__PURE__ */ e("div", { style: {
1172
- fontSize: 28,
1173
- fontWeight: 400,
1174
- color: E.strong,
1175
- fontFamily: "var(--font-sans)",
1176
- lineHeight: 1,
1177
- textAlign: "center",
1178
- marginTop: 8
1179
- }, children: t })
1180
- ] }),
1181
- /* @__PURE__ */ n("div", { style: {
1182
- display: "flex",
1183
- flexDirection: "column",
1184
- gap: 8,
1185
- alignItems: "center",
1186
- justifyContent: "center",
1187
- flex: 1
1188
- }, children: [
1189
- /* @__PURE__ */ n("div", { style: {
1190
- display: "flex",
1191
- flexDirection: "column",
1192
- alignItems: "center"
1193
- }, children: [
1194
- /* @__PURE__ */ e("div", { style: {
1195
- fontSize: 28,
1196
- fontWeight: 400,
1197
- color: E.strong,
1198
- fontFamily: "var(--font-sans)",
1199
- lineHeight: 1,
1200
- textAlign: "center"
1201
- }, children: y }),
1202
- /* @__PURE__ */ e("div", { style: {
1203
- fontSize: 14,
1204
- fontWeight: 400,
1205
- color: E.muted,
1206
- fontFamily: "var(--font-sans)",
1207
- lineHeight: 1.43,
1208
- textAlign: "center"
1209
- }, children: a })
1210
- ] }),
1211
- /* @__PURE__ */ e("div", { style: {
1212
- width: "100%",
1213
- height: 1,
1214
- background: E.absent
1215
- } }),
1216
- f.map((u, g) => /* @__PURE__ */ e(
1217
- Cn,
1218
- {
1219
- label: u.label,
1220
- value: u.value
1221
- },
1222
- g
1223
- ))
1224
- ] })
1187
+ /* @__PURE__ */ e("div", { style: {
1188
+ fontSize: 15,
1189
+ fontWeight: 500,
1190
+ color: L.strong,
1191
+ fontFamily: "var(--font-sans)",
1192
+ lineHeight: 1.2,
1193
+ textAlign: "center"
1194
+ }, children: "Overall Score" }),
1195
+ /* @__PURE__ */ e("div", { style: {
1196
+ width: "100%",
1197
+ height: 1,
1198
+ background: L.absent
1199
+ } }),
1200
+ c.map((y, x) => /* @__PURE__ */ e(
1201
+ Wn,
1202
+ {
1203
+ label: y.label,
1204
+ value: y.value
1205
+ },
1206
+ x
1207
+ ))
1225
1208
  ] })
1226
- ] });
1227
- }, be = (t) => {
1209
+ ] })
1210
+ ] })), We = (t) => {
1228
1211
  if (!t)
1229
1212
  return null;
1230
- const o = String(t).toLowerCase();
1231
- return o === "supervisor" ? "var(--rail-compliance, #C98A5A)" : o === "admin" || o === "administrator" ? "var(--rail-discovery, #5E88B0)" : o === "agent" ? "var(--rail-outcome, #6B7C93)" : null;
1232
- }, re = (t) => (t || "").split(" ").map((o) => o[0]).join("").toUpperCase() || "U", Dn = (t) => {
1213
+ const i = String(t).toLowerCase();
1214
+ return i === "supervisor" ? "var(--rail-compliance, #C98A5A)" : i === "admin" || i === "administrator" ? "var(--rail-discovery, #5E88B0)" : i === "agent" ? "var(--rail-outcome, #6B7C93)" : null;
1215
+ }, ce = (t) => (t || "").split(" ").map((i) => i[0]).join("").toUpperCase() || "U", zn = (t) => {
1216
+ if (!t || t === "Just now")
1217
+ return !0;
1218
+ if (/^\d{4}-\d{2}-\d{2}T/.test(t))
1219
+ try {
1220
+ const r = /Z$|[+-]\d{2}:\d{2}$/.test(t) ? t : t + "Z", l = new Date(r);
1221
+ return Number.isNaN(l.getTime()) ? !1 : Date.now() - l.getTime() < 15 * 60 * 1e3;
1222
+ } catch {
1223
+ return !1;
1224
+ }
1225
+ const i = t.match(/^(\d+)\s*min/);
1226
+ return i ? parseInt(i[1], 10) < 15 : !(/\d+\s*h/.test(t) || /\d+\s*day/.test(t));
1227
+ }, Gn = (t) => {
1233
1228
  if (!t)
1234
1229
  return "";
1235
1230
  if (!/^\d{4}-\d{2}-\d{2}T/.test(t))
1236
1231
  return t;
1237
1232
  try {
1238
- const o = new Date(t);
1239
- if (Number.isNaN(o.getTime()))
1233
+ const i = /Z$|[+-]\d{2}:\d{2}$/.test(t) ? t : t + "Z", r = new Date(i);
1234
+ if (Number.isNaN(r.getTime()))
1240
1235
  return t;
1241
- const a = (/* @__PURE__ */ new Date()).getTime() - o.getTime(), r = Math.floor(a / 6e4), f = Math.floor(a / 36e5);
1242
- if (r < 1)
1236
+ const o = (/* @__PURE__ */ new Date()).getTime() - r.getTime(), c = Math.floor(o / 6e4), y = Math.floor(o / 36e5);
1237
+ if (c < 1)
1243
1238
  return "Just now";
1244
- if (r < 60)
1245
- return `${r} min`;
1246
- if (f < 24)
1247
- return `${f} h`;
1248
- const y = Math.floor(f / 24);
1249
- return y === 1 ? "1 day" : `${y} days`;
1239
+ if (c < 60)
1240
+ return `${c} min`;
1241
+ if (y < 24)
1242
+ return `${y} h`;
1243
+ const x = Math.floor(y / 24);
1244
+ return x === 1 ? "1 day" : `${x} days`;
1250
1245
  } catch {
1251
1246
  return t;
1252
1247
  }
1253
- }, Xe = ({ name: t, initials: o, color: l, avatar: a, size: r = 36 }) => a ? /* @__PURE__ */ e(
1248
+ }, ot = ({ name: t, initials: i, color: r, avatar: l, size: o = 36 }) => l ? /* @__PURE__ */ e(
1254
1249
  "img",
1255
1250
  {
1256
- src: a,
1251
+ src: l,
1257
1252
  alt: t,
1258
1253
  style: {
1259
- width: r,
1260
- height: r,
1254
+ width: o,
1255
+ height: o,
1261
1256
  borderRadius: "50%",
1262
1257
  objectFit: "cover",
1263
1258
  flexShrink: 0
@@ -1267,49 +1262,50 @@ const un = {
1267
1262
  "div",
1268
1263
  {
1269
1264
  style: {
1270
- width: r,
1271
- height: r,
1265
+ width: o,
1266
+ height: o,
1272
1267
  borderRadius: "50%",
1273
- background: l || "#6B7C93",
1268
+ background: r || "#6B7C93",
1274
1269
  color: "#FFF",
1275
1270
  display: "flex",
1276
1271
  alignItems: "center",
1277
1272
  justifyContent: "center",
1278
- fontSize: r <= 32 ? "10px" : "11px",
1273
+ fontSize: o <= 32 ? "10px" : "11px",
1279
1274
  fontWeight: 650,
1280
1275
  flexShrink: 0,
1281
1276
  fontFamily: "var(--default-font-family)",
1282
1277
  letterSpacing: "0.02em"
1283
1278
  },
1284
1279
  title: t,
1285
- children: o || re(t)
1280
+ children: i || ce(t)
1286
1281
  }
1287
- ), Ve = ({
1282
+ ), Mn = ({
1288
1283
  comment: t,
1289
- isReply: o = !1,
1290
- onReply: l,
1291
- onSendReply: a,
1292
- onEdit: r,
1293
- onDelete: f,
1284
+ isReply: i = !1,
1285
+ onReply: r,
1286
+ onSendReply: l,
1287
+ onEdit: o,
1288
+ onDelete: c,
1294
1289
  onMenuClick: y,
1295
- showReply: u = !0
1290
+ showReply: x = !0
1296
1291
  }) => {
1297
- const [g, m] = F(!1), [D, b] = F(!1), [c, x] = F(!1), [d, p] = F(""), [h, C] = F(!1), [k, M] = F(""), _ = L(null), $ = L(null), A = t.author || {}, B = A.name || t.author_name || "Unknown", W = A.initials || re(B), I = A.role || t.author_role, P = A.color || be(I) || "#6B7C93", j = A.avatar || t.avatar, N = Dn(t.timestamp || t.created_at), Q = Array.isArray(t.content) ? t.content : [t.content || t.text || ""];
1298
- return me.useEffect(() => {
1299
- if (!D)
1292
+ var ie, pe;
1293
+ const [v, b] = F(!1), [z, S] = F(!1), [f, w] = F(!1), [m, u] = F(""), [G, D] = F(!1), [C, T] = F(""), [E, B] = F(!1), H = P(null), h = P(null), p = t.author || {}, a = p.name || t.author_name || "Unknown", A = p.initials || ce(a), N = p.role || t.author_role, K = p.color || We(N) || "#6B7C93", Q = p.avatar || t.avatar, s = t.timestamp || t.created_at, O = Gn(s), R = zn(s), fe = Array.isArray(t.content) ? t.content : [t.content || t.text || ""];
1294
+ return de.useEffect(() => {
1295
+ if (!z)
1300
1296
  return;
1301
- const i = (T) => {
1302
- _.current && !_.current.contains(T.target) && b(!1);
1297
+ const d = (J) => {
1298
+ H.current && !H.current.contains(J.target) && S(!1);
1303
1299
  };
1304
- return document.addEventListener("mousedown", i), () => document.removeEventListener("mousedown", i);
1305
- }, [D]), /* @__PURE__ */ n(
1300
+ return document.addEventListener("mousedown", d), () => document.removeEventListener("mousedown", d);
1301
+ }, [z]), /* @__PURE__ */ n(
1306
1302
  "div",
1307
1303
  {
1308
- onMouseEnter: () => m(!0),
1309
- onMouseLeave: () => m(!1),
1304
+ onMouseEnter: () => b(!0),
1305
+ onMouseLeave: () => b(!1),
1310
1306
  style: {
1311
1307
  display: "flex",
1312
- paddingLeft: o ? 48 : 0,
1308
+ paddingLeft: i ? 48 : 0,
1313
1309
  alignItems: "flex-start",
1314
1310
  gap: 16,
1315
1311
  paddingTop: 8,
@@ -1317,12 +1313,12 @@ const un = {
1317
1313
  },
1318
1314
  children: [
1319
1315
  /* @__PURE__ */ e(
1320
- Xe,
1316
+ ot,
1321
1317
  {
1322
- name: B,
1323
- initials: W,
1324
- color: P,
1325
- avatar: j
1318
+ name: a,
1319
+ initials: A,
1320
+ color: K,
1321
+ avatar: Q
1326
1322
  }
1327
1323
  ),
1328
1324
  /* @__PURE__ */ n("div", { style: { flex: 1, minWidth: 0 }, children: [
@@ -1347,7 +1343,7 @@ const un = {
1347
1343
  lineHeight: "150%",
1348
1344
  fontFamily: "var(--default-font-family)"
1349
1345
  },
1350
- children: B
1346
+ children: a
1351
1347
  }
1352
1348
  ),
1353
1349
  /* @__PURE__ */ e(
@@ -1360,16 +1356,29 @@ const un = {
1360
1356
  lineHeight: "150%",
1361
1357
  fontFamily: "var(--default-font-family)"
1362
1358
  },
1363
- children: N
1359
+ children: O
1360
+ }
1361
+ ),
1362
+ (t.isEdited || t.is_edited) && /* @__PURE__ */ e(
1363
+ "span",
1364
+ {
1365
+ style: {
1366
+ fontSize: 12,
1367
+ fontWeight: 400,
1368
+ color: "var(--Grey-Muted, #808183)",
1369
+ lineHeight: "150%",
1370
+ fontFamily: "var(--default-font-family)"
1371
+ },
1372
+ children: "(Edited)"
1364
1373
  }
1365
1374
  )
1366
1375
  ] }),
1367
- /* @__PURE__ */ n("div", { style: { position: "relative" }, ref: _, children: [
1376
+ /* @__PURE__ */ n("div", { style: { position: "relative" }, ref: H, children: [
1368
1377
  /* @__PURE__ */ e(
1369
1378
  "button",
1370
1379
  {
1371
1380
  type: "button",
1372
- onClick: () => b((i) => !i),
1381
+ onClick: () => S((d) => !d),
1373
1382
  style: {
1374
1383
  padding: 2,
1375
1384
  border: "none",
@@ -1379,14 +1388,14 @@ const un = {
1379
1388
  display: "flex",
1380
1389
  alignItems: "center",
1381
1390
  justifyContent: "center",
1382
- opacity: g || D ? 1 : 0,
1391
+ opacity: v || z ? 1 : 0,
1383
1392
  transition: "opacity 0.15s",
1384
1393
  flexShrink: 0
1385
1394
  },
1386
- children: /* @__PURE__ */ e(Jt, { size: 24, color: "var(--Grey-Muted, #808183)" })
1395
+ children: /* @__PURE__ */ e(tn, { size: 24, color: "var(--Grey-Muted, #808183)" })
1387
1396
  }
1388
1397
  ),
1389
- D && /* @__PURE__ */ n(
1398
+ z && /* @__PURE__ */ n(
1390
1399
  "div",
1391
1400
  {
1392
1401
  style: {
@@ -1406,12 +1415,12 @@ const un = {
1406
1415
  overflow: "hidden"
1407
1416
  },
1408
1417
  children: [
1409
- l && /* @__PURE__ */ e(
1418
+ r && /* @__PURE__ */ e(
1410
1419
  "button",
1411
1420
  {
1412
1421
  type: "button",
1413
1422
  onClick: () => {
1414
- b(!1), x(!0);
1423
+ S(!1), D(!1), w(!0);
1415
1424
  },
1416
1425
  style: {
1417
1426
  display: "flex",
@@ -1428,24 +1437,27 @@ const un = {
1428
1437
  lineHeight: "150%",
1429
1438
  textAlign: "left"
1430
1439
  },
1431
- onMouseEnter: (i) => {
1432
- i.currentTarget.style.background = "var(--surface-hover, #F3F7F7)";
1440
+ onMouseEnter: (d) => {
1441
+ d.currentTarget.style.background = "var(--surface-hover, #F3F7F7)";
1433
1442
  },
1434
- onMouseLeave: (i) => {
1435
- i.currentTarget.style.background = "transparent";
1443
+ onMouseLeave: (d) => {
1444
+ d.currentTarget.style.background = "transparent";
1436
1445
  },
1437
1446
  children: "Reply"
1438
1447
  }
1439
1448
  ),
1440
- r && /* @__PURE__ */ e(
1449
+ o && /* @__PURE__ */ e(
1441
1450
  "button",
1442
1451
  {
1443
1452
  type: "button",
1453
+ disabled: !R,
1444
1454
  onClick: () => {
1445
- b(!1);
1446
- const i = Array.isArray(t.content) ? t.content.join(`
1455
+ if (!R)
1456
+ return;
1457
+ S(!1);
1458
+ const d = Array.isArray(t.content) ? t.content.join(`
1447
1459
  `) : t.content || t.text || "";
1448
- M(i), C(!0), x(!1);
1460
+ T(d), D(!0), w(!1);
1449
1461
  },
1450
1462
  style: {
1451
1463
  display: "flex",
@@ -1454,29 +1466,30 @@ const un = {
1454
1466
  alignItems: "center",
1455
1467
  border: "none",
1456
1468
  background: "transparent",
1457
- cursor: "pointer",
1469
+ cursor: R ? "pointer" : "not-allowed",
1458
1470
  fontSize: 13,
1459
1471
  fontWeight: 400,
1460
- color: "var(--Grey-Strong, #2E3236)",
1472
+ color: R ? "var(--Grey-Strong, #2E3236)" : "var(--Grey-Muted, #808183)",
1461
1473
  fontFamily: "var(--default-font-family)",
1462
1474
  lineHeight: "150%",
1463
- textAlign: "left"
1475
+ textAlign: "left",
1476
+ opacity: R ? 1 : 0.5
1464
1477
  },
1465
- onMouseEnter: (i) => {
1466
- i.currentTarget.style.background = "var(--surface-hover, #F3F7F7)";
1478
+ onMouseEnter: (d) => {
1479
+ R && (d.currentTarget.style.background = "var(--surface-hover, #F3F7F7)");
1467
1480
  },
1468
- onMouseLeave: (i) => {
1469
- i.currentTarget.style.background = "transparent";
1481
+ onMouseLeave: (d) => {
1482
+ d.currentTarget.style.background = "transparent";
1470
1483
  },
1471
1484
  children: "Edit"
1472
1485
  }
1473
1486
  ),
1474
- f && /* @__PURE__ */ e(
1487
+ c && /* @__PURE__ */ e(
1475
1488
  "button",
1476
1489
  {
1477
1490
  type: "button",
1478
1491
  onClick: () => {
1479
- b(!1), f(t);
1492
+ S(!1), B(!0);
1480
1493
  },
1481
1494
  style: {
1482
1495
  display: "flex",
@@ -1493,11 +1506,11 @@ const un = {
1493
1506
  lineHeight: "150%",
1494
1507
  textAlign: "left"
1495
1508
  },
1496
- onMouseEnter: (i) => {
1497
- i.currentTarget.style.background = "var(--surface-hover, #F3F7F7)";
1509
+ onMouseEnter: (d) => {
1510
+ d.currentTarget.style.background = "var(--surface-hover, #F3F7F7)";
1498
1511
  },
1499
- onMouseLeave: (i) => {
1500
- i.currentTarget.style.background = "transparent";
1512
+ onMouseLeave: (d) => {
1513
+ d.currentTarget.style.background = "transparent";
1501
1514
  },
1502
1515
  children: "Delete"
1503
1516
  }
@@ -1509,88 +1522,142 @@ const un = {
1509
1522
  ]
1510
1523
  }
1511
1524
  ),
1512
- h ? /* @__PURE__ */ n("div", { style: { marginTop: 4, display: "flex", flexDirection: "column", gap: 8, width: "100%" }, children: [
1513
- /* @__PURE__ */ e(
1514
- "textarea",
1515
- {
1516
- value: k,
1517
- onChange: (i) => M(i.target.value),
1518
- onKeyDown: (i) => {
1519
- i.key === "Enter" && !i.shiftKey && (i.preventDefault(), k.trim() && (r == null || r({ ...t, content: k.trim() }), C(!1))), i.key === "Escape" && C(!1);
1520
- },
1521
- autoFocus: !0,
1522
- rows: 3,
1523
- style: {
1524
- width: "100%",
1525
- padding: "10px 12px",
1526
- fontSize: 13,
1527
- fontWeight: 400,
1528
- color: "var(--text-ink, #1E2125)",
1529
- fontFamily: "var(--default-font-family)",
1530
- lineHeight: "160%",
1531
- border: "1px solid var(--Grey-absent, #D9D9D9)",
1532
- borderRadius: 8,
1533
- background: "var(--Grey-White, #FFF)",
1534
- outline: "none",
1535
- resize: "vertical",
1536
- boxSizing: "border-box"
1537
- }
1538
- }
1539
- ),
1540
- /* @__PURE__ */ n("div", { style: { display: "flex", gap: 8, justifyContent: "flex-end" }, children: [
1541
- /* @__PURE__ */ e(
1542
- "button",
1543
- {
1544
- type: "button",
1545
- onClick: () => C(!1),
1546
- style: {
1547
- display: "flex",
1548
- padding: "6px 16px",
1549
- justifyContent: "center",
1550
- alignItems: "center",
1551
- fontSize: 13,
1552
- fontWeight: 600,
1553
- color: "var(--Grey-Muted, #808183)",
1554
- background: "var(--grey-light, #e9e8e8a1)",
1555
- border: "none",
1556
- borderRadius: 6,
1557
- cursor: "pointer",
1558
- fontFamily: "var(--default-font-family)",
1559
- lineHeight: "150%"
1560
- },
1561
- children: "Cancel"
1562
- }
1563
- ),
1564
- /* @__PURE__ */ e(
1565
- "button",
1566
- {
1567
- type: "button",
1568
- onClick: () => {
1569
- k.trim() && (r == null || r({ ...t, content: k.trim() }), C(!1));
1570
- },
1571
- disabled: !k.trim(),
1572
- style: {
1573
- display: "flex",
1574
- padding: "6px 16px",
1575
- justifyContent: "center",
1576
- alignItems: "center",
1577
- fontSize: 13,
1578
- fontWeight: 600,
1579
- color: k.trim() ? "var(--Grey-White, #FFF)" : "var(--Grey-Muted, #808183)",
1580
- background: k.trim() ? "var(--Grey-Strong, #2E3236)" : "var(--grey-light, #e9e8e8a1)",
1581
- border: "none",
1582
- borderRadius: 6,
1583
- cursor: k.trim() ? "pointer" : "not-allowed",
1584
- fontFamily: "var(--default-font-family)",
1585
- lineHeight: "150%"
1586
- },
1587
- children: "Save"
1588
- }
1589
- )
1590
- ] })
1591
- ] }) : (
1525
+ G ? /* @__PURE__ */ n(
1526
+ "div",
1527
+ {
1528
+ style: {
1529
+ display: "flex",
1530
+ width: 662,
1531
+ maxWidth: "100%",
1532
+ padding: "8px 12px 12px 12px",
1533
+ flexDirection: "column",
1534
+ justifyContent: "center",
1535
+ alignItems: "flex-start",
1536
+ gap: 24,
1537
+ borderRadius: 8,
1538
+ border: "1px solid var(--Grey-absent, #D9D9D9)",
1539
+ background: "var(--Grey-White, #FFF)",
1540
+ boxSizing: "border-box",
1541
+ marginTop: 4
1542
+ },
1543
+ children: [
1544
+ /* @__PURE__ */ n(
1545
+ "div",
1546
+ {
1547
+ style: {
1548
+ display: "flex",
1549
+ alignItems: "center",
1550
+ justifyContent: "space-between",
1551
+ width: "100%"
1552
+ },
1553
+ children: [
1554
+ /* @__PURE__ */ n(
1555
+ "span",
1556
+ {
1557
+ style: {
1558
+ fontSize: 13,
1559
+ fontWeight: 600,
1560
+ color: "var(--Grey-Muted, #808183)",
1561
+ fontFamily: "var(--default-font-family)",
1562
+ lineHeight: "normal"
1563
+ },
1564
+ children: [
1565
+ "“",
1566
+ " ",
1567
+ ((ie = t.author) == null ? void 0 : ie.name) || "Unknown"
1568
+ ]
1569
+ }
1570
+ ),
1571
+ /* @__PURE__ */ e(
1572
+ "button",
1573
+ {
1574
+ type: "button",
1575
+ onClick: () => D(!1),
1576
+ style: {
1577
+ display: "flex",
1578
+ alignItems: "center",
1579
+ justifyContent: "center",
1580
+ background: "none",
1581
+ border: "none",
1582
+ cursor: "pointer",
1583
+ padding: 0
1584
+ },
1585
+ children: /* @__PURE__ */ e(Ye, { size: 20, color: "var(--Grey-Muted, #808183)" })
1586
+ }
1587
+ )
1588
+ ]
1589
+ }
1590
+ ),
1591
+ /* @__PURE__ */ n(
1592
+ "div",
1593
+ {
1594
+ style: {
1595
+ display: "flex",
1596
+ alignItems: "center",
1597
+ gap: 8,
1598
+ width: "100%"
1599
+ },
1600
+ children: [
1601
+ /* @__PURE__ */ e(
1602
+ "input",
1603
+ {
1604
+ value: C,
1605
+ onChange: (d) => T(d.target.value),
1606
+ onKeyDown: (d) => {
1607
+ d.key === "Enter" && !d.shiftKey && (d.preventDefault(), C.trim() && (o == null || o({ ...t, content: C.trim(), isEdited: !0 }), D(!1))), d.key === "Escape" && D(!1);
1608
+ },
1609
+ autoFocus: !0,
1610
+ style: {
1611
+ flex: 1,
1612
+ padding: "10px 12px",
1613
+ fontSize: 13,
1614
+ fontWeight: 400,
1615
+ color: "var(--text-ink, #1E2125)",
1616
+ fontFamily: "var(--default-font-family)",
1617
+ lineHeight: "160%",
1618
+ border: "none",
1619
+ background: "transparent",
1620
+ outline: "none",
1621
+ boxSizing: "border-box"
1622
+ }
1623
+ }
1624
+ ),
1625
+ /* @__PURE__ */ e(
1626
+ "button",
1627
+ {
1628
+ type: "button",
1629
+ onClick: () => {
1630
+ C.trim() && (o == null || o({ ...t, content: C.trim(), isEdited: !0 }), D(!1));
1631
+ },
1632
+ disabled: !C.trim(),
1633
+ style: {
1634
+ display: "flex",
1635
+ padding: "6px 16px",
1636
+ justifyContent: "center",
1637
+ alignItems: "center",
1638
+ fontSize: 13,
1639
+ fontWeight: 600,
1640
+ color: C.trim() ? "var(--Grey-White, #FFF)" : "var(--Grey-Muted, #808183)",
1641
+ background: C.trim() ? "var(--Grey-Strong, #2E3236)" : "var(--grey-light, #e9e8e8a1)",
1642
+ border: "none",
1643
+ borderRadius: 6,
1644
+ cursor: C.trim() ? "pointer" : "not-allowed",
1645
+ fontFamily: "var(--default-font-family)",
1646
+ flexShrink: 0,
1647
+ transition: "all 0.15s",
1648
+ lineHeight: "150%"
1649
+ },
1650
+ children: "Save"
1651
+ }
1652
+ )
1653
+ ]
1654
+ }
1655
+ )
1656
+ ]
1657
+ }
1658
+ ) : (
1592
1659
  /* Message bubbles — stacked, gap: 4px, fit content */
1593
- /* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", gap: 4, alignItems: "flex-start" }, children: Q.map((i, T) => /* @__PURE__ */ e(
1660
+ /* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", gap: 4, alignItems: "flex-start" }, children: fe.map((d, J) => /* @__PURE__ */ e(
1594
1661
  "div",
1595
1662
  {
1596
1663
  style: {
@@ -1600,20 +1667,92 @@ const un = {
1600
1667
  lineHeight: "160%",
1601
1668
  fontFamily: "var(--default-font-family)",
1602
1669
  padding: "8px 12px",
1603
- background: o ? "var(--surface-hover, #F3F7F7)" : "var(--surface-warm-40, rgba(243, 241, 229, 0.40))",
1670
+ background: i ? "var(--surface-hover, #F3F7F7)" : "var(--surface-warm-40, rgba(243, 241, 229, 0.40))",
1604
1671
  borderRadius: 8,
1605
1672
  wordBreak: "break-word"
1606
1673
  },
1607
- children: i
1674
+ children: d
1608
1675
  },
1609
- T
1676
+ J
1610
1677
  )) })
1611
1678
  ),
1612
- u && l && !c && /* @__PURE__ */ n(
1679
+ E && /* @__PURE__ */ n(
1680
+ "div",
1681
+ {
1682
+ style: {
1683
+ display: "inline-flex",
1684
+ alignItems: "center",
1685
+ gap: 8,
1686
+ marginTop: 8,
1687
+ fontSize: 13,
1688
+ fontFamily: "var(--default-font-family)"
1689
+ },
1690
+ children: [
1691
+ /* @__PURE__ */ e("span", { style: { color: "var(--Grey-Muted, #808183)", fontWeight: 400 }, children: "Confirm: delete this comment?" }),
1692
+ /* @__PURE__ */ e(
1693
+ "button",
1694
+ {
1695
+ type: "button",
1696
+ onClick: () => {
1697
+ B(!1), c == null || c(t);
1698
+ },
1699
+ style: {
1700
+ background: "var(--grey-light, #e9e8e8a1)",
1701
+ border: "none",
1702
+ cursor: "pointer",
1703
+ fontSize: 13,
1704
+ fontWeight: 600,
1705
+ color: "var(--text-ink, #1E2125)",
1706
+ fontFamily: "var(--default-font-family)",
1707
+ padding: "4px 10px",
1708
+ borderRadius: 6,
1709
+ transition: "background 0.15s"
1710
+ },
1711
+ onMouseEnter: (d) => {
1712
+ d.currentTarget.style.background = "var(--Grey-absent, #D9D9D9)";
1713
+ },
1714
+ onMouseLeave: (d) => {
1715
+ d.currentTarget.style.background = "var(--grey-light, #e9e8e8a1)";
1716
+ },
1717
+ children: "Yes"
1718
+ }
1719
+ ),
1720
+ /* @__PURE__ */ e(
1721
+ "button",
1722
+ {
1723
+ type: "button",
1724
+ onClick: () => B(!1),
1725
+ style: {
1726
+ background: "none",
1727
+ border: "none",
1728
+ cursor: "pointer",
1729
+ fontSize: 13,
1730
+ fontWeight: 400,
1731
+ color: "var(--Grey-Muted, #808183)",
1732
+ fontFamily: "var(--default-font-family)",
1733
+ padding: "4px 10px",
1734
+ borderRadius: 6,
1735
+ transition: "background 0.15s"
1736
+ },
1737
+ onMouseEnter: (d) => {
1738
+ d.currentTarget.style.background = "var(--grey-light, #e9e8e8a1)";
1739
+ },
1740
+ onMouseLeave: (d) => {
1741
+ d.currentTarget.style.background = "none";
1742
+ },
1743
+ children: "No"
1744
+ }
1745
+ )
1746
+ ]
1747
+ }
1748
+ ),
1749
+ x && r && !f && !E && /* @__PURE__ */ n(
1613
1750
  "button",
1614
1751
  {
1615
1752
  type: "button",
1616
- onClick: () => x(!0),
1753
+ onClick: () => {
1754
+ D(!1), w(!0);
1755
+ },
1617
1756
  style: {
1618
1757
  display: "flex",
1619
1758
  alignItems: "center",
@@ -1630,114 +1769,202 @@ const un = {
1630
1769
  transition: "color 0.15s"
1631
1770
  },
1632
1771
  children: [
1633
- /* @__PURE__ */ e(Ut, { size: 20, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
1772
+ /* @__PURE__ */ e(nn, { size: 20, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
1634
1773
  "Reply"
1635
1774
  ]
1636
1775
  }
1637
1776
  ),
1638
- c && /* @__PURE__ */ n("div", { style: { marginTop: 12, display: "flex", flexDirection: "column", gap: 8 }, children: [
1639
- /* @__PURE__ */ e(
1640
- "textarea",
1641
- {
1642
- ref: $,
1643
- value: d,
1644
- onChange: (i) => p(i.target.value),
1645
- onKeyDown: (i) => {
1646
- i.key === "Enter" && !i.shiftKey && (i.preventDefault(), d.trim() && (a == null || a({ content: d.trim(), parentId: t.id }), p(""), x(!1))), i.key === "Escape" && (p(""), x(!1));
1647
- },
1648
- autoFocus: !0,
1649
- placeholder: "Type your reply...",
1650
- rows: 3,
1651
- style: {
1652
- width: "100%",
1653
- padding: "10px 12px",
1654
- fontSize: 13,
1655
- fontWeight: 400,
1656
- color: "var(--text-ink, #1E2125)",
1657
- fontFamily: "var(--default-font-family)",
1658
- lineHeight: "160%",
1659
- border: "1px solid var(--Grey-absent, #D9D9D9)",
1660
- borderRadius: 8,
1661
- background: "var(--Grey-White, #FFF)",
1662
- outline: "none",
1663
- resize: "vertical",
1664
- boxSizing: "border-box"
1665
- }
1666
- }
1667
- ),
1668
- /* @__PURE__ */ n("div", { style: { display: "flex", gap: 8, justifyContent: "flex-end" }, children: [
1669
- /* @__PURE__ */ e(
1670
- "button",
1671
- {
1672
- type: "button",
1673
- onClick: () => {
1674
- p(""), x(!1);
1675
- },
1676
- style: {
1677
- display: "flex",
1678
- padding: "6px 16px",
1679
- justifyContent: "center",
1680
- alignItems: "center",
1681
- fontSize: 13,
1682
- fontWeight: 600,
1683
- color: "var(--Grey-Muted, #808183)",
1684
- background: "var(--grey-light, #e9e8e8a1)",
1685
- border: "none",
1686
- borderRadius: 6,
1687
- cursor: "pointer",
1688
- fontFamily: "var(--default-font-family)",
1689
- lineHeight: "150%"
1690
- },
1691
- children: "Cancel"
1692
- }
1693
- ),
1694
- /* @__PURE__ */ e(
1695
- "button",
1696
- {
1697
- type: "button",
1698
- onClick: () => {
1699
- d.trim() && (a == null || a({ content: d.trim(), parentId: t.id }), p(""), x(!1));
1700
- },
1701
- disabled: !d.trim(),
1702
- style: {
1703
- display: "flex",
1704
- padding: "6px 16px",
1705
- justifyContent: "center",
1706
- alignItems: "center",
1707
- fontSize: 13,
1708
- fontWeight: 600,
1709
- color: d.trim() ? "var(--Grey-White, #FFF)" : "var(--Grey-Muted, #808183)",
1710
- background: d.trim() ? "var(--Grey-Strong, #2E3236)" : "var(--grey-light, #e9e8e8a1)",
1711
- border: "none",
1712
- borderRadius: 6,
1713
- cursor: d.trim() ? "pointer" : "not-allowed",
1714
- fontFamily: "var(--default-font-family)",
1715
- lineHeight: "150%"
1716
- },
1717
- children: "Reply"
1718
- }
1719
- )
1720
- ] })
1721
- ] })
1777
+ f && /* @__PURE__ */ n(
1778
+ "div",
1779
+ {
1780
+ style: {
1781
+ display: "flex",
1782
+ width: 662,
1783
+ maxWidth: "100%",
1784
+ padding: "8px 12px 12px 12px",
1785
+ flexDirection: "column",
1786
+ justifyContent: "center",
1787
+ alignItems: "flex-start",
1788
+ gap: 24,
1789
+ borderRadius: 8,
1790
+ border: "1px solid var(--Grey-absent, #D9D9D9)",
1791
+ background: "var(--Grey-White, #FFF)",
1792
+ boxSizing: "border-box",
1793
+ marginTop: 12
1794
+ },
1795
+ children: [
1796
+ /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", gap: 8, width: "100%" }, children: [
1797
+ /* @__PURE__ */ n(
1798
+ "div",
1799
+ {
1800
+ style: {
1801
+ display: "flex",
1802
+ alignItems: "center",
1803
+ justifyContent: "space-between",
1804
+ width: "100%"
1805
+ },
1806
+ children: [
1807
+ /* @__PURE__ */ n(
1808
+ "span",
1809
+ {
1810
+ style: {
1811
+ fontSize: 13,
1812
+ fontWeight: 600,
1813
+ color: "var(--Grey-Muted, #808183)",
1814
+ fontFamily: "var(--default-font-family)",
1815
+ lineHeight: "normal"
1816
+ },
1817
+ children: [
1818
+ "",
1819
+ " ",
1820
+ ((pe = t.author) == null ? void 0 : pe.name) || "Unknown"
1821
+ ]
1822
+ }
1823
+ ),
1824
+ /* @__PURE__ */ e(
1825
+ "button",
1826
+ {
1827
+ type: "button",
1828
+ onClick: () => {
1829
+ u(""), w(!1);
1830
+ },
1831
+ style: {
1832
+ display: "flex",
1833
+ alignItems: "center",
1834
+ justifyContent: "center",
1835
+ background: "none",
1836
+ border: "none",
1837
+ cursor: "pointer",
1838
+ padding: 0
1839
+ },
1840
+ children: /* @__PURE__ */ e(Ye, { size: 20, color: "var(--Grey-Muted, #808183)" })
1841
+ }
1842
+ )
1843
+ ]
1844
+ }
1845
+ ),
1846
+ /* @__PURE__ */ e(
1847
+ "div",
1848
+ {
1849
+ style: {
1850
+ display: "flex",
1851
+ height: 36,
1852
+ padding: 16,
1853
+ alignItems: "center",
1854
+ gap: 5,
1855
+ borderRadius: "0 8px 8px 8px",
1856
+ background: "var(--Grey-Strong, #2E3236)",
1857
+ boxSizing: "border-box",
1858
+ width: "100%"
1859
+ },
1860
+ children: /* @__PURE__ */ e(
1861
+ "span",
1862
+ {
1863
+ style: {
1864
+ color: "var(--Grey-White, #FFF)",
1865
+ fontSize: 13,
1866
+ fontWeight: 400,
1867
+ fontFamily: "var(--default-font-family)",
1868
+ lineHeight: "normal",
1869
+ overflow: "hidden",
1870
+ textOverflow: "ellipsis",
1871
+ whiteSpace: "nowrap"
1872
+ },
1873
+ children: Array.isArray(t.content) ? t.content[0] : t.content
1874
+ }
1875
+ )
1876
+ }
1877
+ )
1878
+ ] }),
1879
+ /* @__PURE__ */ n(
1880
+ "div",
1881
+ {
1882
+ style: {
1883
+ display: "flex",
1884
+ alignItems: "center",
1885
+ gap: 8,
1886
+ width: "100%"
1887
+ },
1888
+ children: [
1889
+ /* @__PURE__ */ e(
1890
+ "input",
1891
+ {
1892
+ ref: h,
1893
+ value: m,
1894
+ onChange: (d) => u(d.target.value),
1895
+ onKeyDown: (d) => {
1896
+ d.key === "Enter" && !d.shiftKey && (d.preventDefault(), m.trim() && (l == null || l({ content: m.trim(), parentId: t.id }), u(""), w(!1))), d.key === "Escape" && (u(""), w(!1));
1897
+ },
1898
+ autoFocus: !0,
1899
+ placeholder: "Add a reply",
1900
+ style: {
1901
+ flex: 1,
1902
+ padding: "10px 12px",
1903
+ fontSize: 13,
1904
+ fontWeight: 400,
1905
+ color: "var(--text-ink, #1E2125)",
1906
+ fontFamily: "var(--default-font-family)",
1907
+ lineHeight: "160%",
1908
+ border: "none",
1909
+ background: "transparent",
1910
+ outline: "none",
1911
+ boxSizing: "border-box"
1912
+ }
1913
+ }
1914
+ ),
1915
+ /* @__PURE__ */ e(
1916
+ "button",
1917
+ {
1918
+ type: "button",
1919
+ onClick: () => {
1920
+ m.trim() && (l == null || l({ content: m.trim(), parentId: t.id }), u(""), w(!1));
1921
+ },
1922
+ disabled: !m.trim(),
1923
+ style: {
1924
+ display: "flex",
1925
+ height: 28,
1926
+ padding: "8px 12px",
1927
+ justifyContent: "center",
1928
+ alignItems: "center",
1929
+ gap: 8,
1930
+ fontSize: 13,
1931
+ fontWeight: 600,
1932
+ color: m.trim() ? "var(--Grey-White, #FFF)" : "var(--Grey-Muted, #808183)",
1933
+ background: m.trim() ? "var(--Neutral-850, #272727)" : "var(--grey-light, #e9e8e8a1)",
1934
+ border: "none",
1935
+ borderRadius: 10,
1936
+ cursor: m.trim() ? "pointer" : "not-allowed",
1937
+ fontFamily: "var(--default-font-family)",
1938
+ lineHeight: "150%"
1939
+ },
1940
+ children: "Post"
1941
+ }
1942
+ )
1943
+ ]
1944
+ }
1945
+ )
1946
+ ]
1947
+ }
1948
+ )
1722
1949
  ] })
1723
1950
  ]
1724
1951
  }
1725
1952
  );
1726
- }, Wn = ({ currentUser: t, onSubmit: o }) => {
1727
- const [l, a] = F(""), [r, f] = F(!1), y = L(null), u = () => {
1728
- const c = l.trim();
1729
- c && (o == null || o(c), a(""));
1730
- }, g = (c) => {
1731
- c.key === "Enter" && !c.shiftKey && (c.preventDefault(), u());
1732
- }, m = (t == null ? void 0 : t.initials) || re(t == null ? void 0 : t.name), D = (t == null ? void 0 : t.color) || be(t == null ? void 0 : t.role) || "#6B7C93", b = t == null ? void 0 : t.avatar;
1953
+ }, En = ({ currentUser: t, onSubmit: i }) => {
1954
+ const [r, l] = F(""), [o, c] = F(!1), y = P(null), x = () => {
1955
+ const f = r.trim();
1956
+ f && (i == null || i(f), l(""));
1957
+ }, v = (f) => {
1958
+ f.key === "Enter" && !f.shiftKey && (f.preventDefault(), x());
1959
+ }, b = (t == null ? void 0 : t.initials) || ce(t == null ? void 0 : t.name), z = (t == null ? void 0 : t.color) || We(t == null ? void 0 : t.role) || "#6B7C93", S = t == null ? void 0 : t.avatar;
1733
1960
  return /* @__PURE__ */ n("div", { style: { display: "flex", gap: 16, alignItems: "flex-start" }, children: [
1734
1961
  /* @__PURE__ */ e(
1735
- Xe,
1962
+ ot,
1736
1963
  {
1737
1964
  name: t == null ? void 0 : t.name,
1738
- initials: m,
1739
- color: D,
1740
- avatar: b
1965
+ initials: b,
1966
+ color: z,
1967
+ avatar: S
1741
1968
  }
1742
1969
  ),
1743
1970
  /* @__PURE__ */ e(
@@ -1752,7 +1979,7 @@ const un = {
1752
1979
  alignItems: "flex-start",
1753
1980
  gap: 24,
1754
1981
  borderRadius: 8,
1755
- border: r ? "1px solid var(--Grey-Strong, #2E3236)" : "1px solid var(--Grey-absent, #D9D9D9)",
1982
+ border: o ? "1px solid var(--Grey-Strong, #2E3236)" : "1px solid var(--Grey-absent, #D9D9D9)",
1756
1983
  background: "var(--Grey-White, #FFF)",
1757
1984
  transition: "border-color 0.15s"
1758
1985
  },
@@ -1770,11 +1997,11 @@ const un = {
1770
1997
  "textarea",
1771
1998
  {
1772
1999
  ref: y,
1773
- value: l,
1774
- onChange: (c) => a(c.target.value),
1775
- onFocus: () => f(!0),
1776
- onBlur: () => f(!1),
1777
- onKeyDown: g,
2000
+ value: r,
2001
+ onChange: (f) => l(f.target.value),
2002
+ onFocus: () => c(!0),
2003
+ onBlur: () => c(!1),
2004
+ onKeyDown: v,
1778
2005
  placeholder: "Add a comment",
1779
2006
  rows: 1,
1780
2007
  style: {
@@ -1797,8 +2024,8 @@ const un = {
1797
2024
  "button",
1798
2025
  {
1799
2026
  type: "button",
1800
- onClick: u,
1801
- disabled: !l.trim(),
2027
+ onClick: x,
2028
+ disabled: !r.trim(),
1802
2029
  style: {
1803
2030
  display: "flex",
1804
2031
  padding: "6px 16px",
@@ -1806,11 +2033,11 @@ const un = {
1806
2033
  alignItems: "center",
1807
2034
  fontSize: 13,
1808
2035
  fontWeight: 600,
1809
- color: l.trim() ? "var(--Grey-White, #FFF)" : "var(--Grey-Muted, #808183)",
1810
- background: l.trim() ? "var(--Grey-Strong, #2E3236)" : "var(--grey-light, #e9e8e8a1)",
2036
+ color: r.trim() ? "var(--Grey-White, #FFF)" : "var(--Grey-Muted, #808183)",
2037
+ background: r.trim() ? "var(--Grey-Strong, #2E3236)" : "var(--grey-light, #e9e8e8a1)",
1811
2038
  border: "none",
1812
2039
  borderRadius: 6,
1813
- cursor: l.trim() ? "pointer" : "not-allowed",
2040
+ cursor: r.trim() ? "pointer" : "not-allowed",
1814
2041
  fontFamily: "var(--default-font-family)",
1815
2042
  transition: "all 0.15s",
1816
2043
  flexShrink: 0,
@@ -1825,33 +2052,116 @@ const un = {
1825
2052
  }
1826
2053
  )
1827
2054
  ] });
1828
- }, In = ({
2055
+ }, lt = ({ comment: t, depth: i = 0, onReply: r, onSendReply: l, onEdit: o, onDelete: c, onMenuClick: y }) => {
2056
+ const x = t.replies && t.replies.length > 0, v = !x;
2057
+ return /* @__PURE__ */ n(de.Fragment, { children: [
2058
+ /* @__PURE__ */ e("div", { style: { paddingLeft: i > 0 ? Math.min(i * 32, 128) : 0 }, children: /* @__PURE__ */ e(
2059
+ Mn,
2060
+ {
2061
+ comment: t,
2062
+ isReply: i > 0,
2063
+ onReply: r,
2064
+ onSendReply: l,
2065
+ onEdit: o,
2066
+ onDelete: c,
2067
+ onMenuClick: y,
2068
+ showReply: v
2069
+ }
2070
+ ) }),
2071
+ x && t.replies.map((b) => /* @__PURE__ */ e(
2072
+ lt,
2073
+ {
2074
+ comment: b,
2075
+ depth: i + 1,
2076
+ onReply: r,
2077
+ onSendReply: l,
2078
+ onEdit: o,
2079
+ onDelete: c,
2080
+ onMenuClick: y
2081
+ },
2082
+ b.id
2083
+ ))
2084
+ ] });
2085
+ }, _n = ({
1829
2086
  comments: t = [],
1830
- totalComments: o,
1831
- onSendComment: l,
1832
- onReply: a,
1833
- onSendReply: r,
1834
- onEdit: f,
2087
+ totalComments: i,
2088
+ onSendComment: r,
2089
+ onReply: l,
2090
+ onSendReply: o,
2091
+ onEdit: c,
1835
2092
  onDelete: y,
1836
- onMenuClick: u,
1837
- onMarkResolved: g,
1838
- currentUser: m,
1839
- isResolved: D = !1
2093
+ onMenuClick: x,
2094
+ onMarkResolved: v,
2095
+ currentUser: b,
2096
+ isResolved: z = !1
1840
2097
  }) => {
1841
- const b = Be(() => {
1842
- const d = t.filter((h) => !h.parentId), p = {};
1843
- return t.forEach((h) => {
1844
- h.parentId && (p[h.parentId] || (p[h.parentId] = []), p[h.parentId].push(h));
1845
- }), d.map((h) => ({
1846
- ...h,
1847
- replies: p[h.id] || []
1848
- }));
1849
- }, [t]), c = Be(() => {
1850
- if (!m)
2098
+ const [S, f] = F([]), [w, m] = F(!1), u = we(() => {
2099
+ const h = new Set(t.map((a) => a.id)), p = S.filter((a) => !h.has(a.id));
2100
+ return [...t, ...p];
2101
+ }, [t, S]);
2102
+ de.useEffect(() => {
2103
+ const h = new Set(t.map((p) => p.id));
2104
+ f((p) => p.filter((a) => !h.has(a.id)));
2105
+ }, [t]);
2106
+ const G = we(() => {
2107
+ if (!b)
1851
2108
  return { name: "You", initials: "YO", color: "#6B7C93" };
1852
- const d = m.name || "You", p = m.initials || re(d), h = m.role && String(m.role).toLowerCase(), C = m.color || be(h) || "#6B7C93";
1853
- return { ...m, name: d, initials: p, color: C };
1854
- }, [m]), x = o ?? t.length;
2109
+ const h = b.name || "You", p = b.initials || ce(h), a = b.role && String(b.role).toLowerCase(), A = b.color || We(a) || "#6B7C93";
2110
+ return { ...b, name: h, initials: p, color: A };
2111
+ }, [b]), D = async ({ content: h, parentId: p }) => {
2112
+ if (o) {
2113
+ m(!0);
2114
+ try {
2115
+ await o({ content: h, parentId: p });
2116
+ } finally {
2117
+ m(!1);
2118
+ }
2119
+ } else {
2120
+ const a = {
2121
+ id: `temp-${Date.now()}`,
2122
+ author: G,
2123
+ content: h,
2124
+ timestamp: "Just now",
2125
+ parentId: p,
2126
+ isOptimistic: !0
2127
+ };
2128
+ f((A) => [...A, a]);
2129
+ }
2130
+ }, C = async (h) => {
2131
+ if (r) {
2132
+ m(!0);
2133
+ try {
2134
+ await r(h);
2135
+ } finally {
2136
+ m(!1);
2137
+ }
2138
+ } else {
2139
+ const p = {
2140
+ id: `temp-${Date.now()}`,
2141
+ author: G,
2142
+ content: h,
2143
+ timestamp: "Just now",
2144
+ isOptimistic: !0
2145
+ };
2146
+ f((a) => [...a, p]);
2147
+ }
2148
+ }, T = (h) => {
2149
+ f(
2150
+ (p) => p.map((a) => a.id === h.id ? { ...a, content: h.content, isEdited: !0 } : a)
2151
+ ), c == null || c(h);
2152
+ }, E = (h) => {
2153
+ f((p) => p.filter((a) => a.id !== h.id)), y == null || y(h);
2154
+ }, B = we(() => {
2155
+ const h = {};
2156
+ u.forEach((a) => {
2157
+ a.parentId && (h[a.parentId] || (h[a.parentId] = []), h[a.parentId].push(a));
2158
+ });
2159
+ const p = (a) => ({
2160
+ ...a,
2161
+ replies: (h[a.id] || []).map(p)
2162
+ });
2163
+ return u.filter((a) => !a.parentId).map(p);
2164
+ }, [u]), H = i ?? u.length;
1855
2165
  return /* @__PURE__ */ n(
1856
2166
  "div",
1857
2167
  {
@@ -1879,7 +2189,7 @@ const un = {
1879
2189
  },
1880
2190
  children: [
1881
2191
  /* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
1882
- /* @__PURE__ */ e(Qt, { size: 24, color: "var(--rail-orange, #C98A5A)", strokeWidth: 1.5 }),
2192
+ /* @__PURE__ */ e(Xt, { size: 24, color: "var(--rail-orange, #C98A5A)", strokeWidth: 1.5 }),
1883
2193
  /* @__PURE__ */ n(
1884
2194
  "span",
1885
2195
  {
@@ -1893,12 +2203,12 @@ const un = {
1893
2203
  },
1894
2204
  children: [
1895
2205
  "COMMENTS",
1896
- x > 0 ? ` (${x < 10 ? "0" : ""}${x})` : ""
2206
+ H > 0 ? ` (${H < 10 ? "0" : ""}${H})` : ""
1897
2207
  ]
1898
2208
  }
1899
2209
  )
1900
2210
  ] }),
1901
- D ? /* @__PURE__ */ n(
2211
+ z ? /* @__PURE__ */ n(
1902
2212
  "div",
1903
2213
  {
1904
2214
  style: {
@@ -1913,7 +2223,7 @@ const un = {
1913
2223
  flexShrink: 0
1914
2224
  },
1915
2225
  children: [
1916
- /* @__PURE__ */ e(Zt, { size: 16, color: "var(--Grey-Strong, #2E3236)", strokeWidth: 2 }),
2226
+ /* @__PURE__ */ e(Ut, { size: 16, color: "var(--Grey-Strong, #2E3236)", strokeWidth: 2 }),
1917
2227
  /* @__PURE__ */ e(
1918
2228
  "span",
1919
2229
  {
@@ -1929,11 +2239,11 @@ const un = {
1929
2239
  )
1930
2240
  ]
1931
2241
  }
1932
- ) : g ? /* @__PURE__ */ n(
2242
+ ) : v ? /* @__PURE__ */ n(
1933
2243
  "button",
1934
2244
  {
1935
2245
  type: "button",
1936
- onClick: g,
2246
+ onClick: v,
1937
2247
  style: {
1938
2248
  display: "flex",
1939
2249
  alignItems: "center",
@@ -1952,7 +2262,7 @@ const un = {
1952
2262
  flexShrink: 0
1953
2263
  },
1954
2264
  children: [
1955
- /* @__PURE__ */ e(Xt, { size: 16, color: "var(--Grey-Strong, #2E3236)", strokeWidth: 1.5 }),
2265
+ /* @__PURE__ */ e(en, { size: 16, color: "var(--Grey-Strong, #2E3236)", strokeWidth: 1.5 }),
1956
2266
  "Mark as Resolved"
1957
2267
  ]
1958
2268
  }
@@ -1972,78 +2282,130 @@ const un = {
1972
2282
  alignSelf: "stretch",
1973
2283
  borderTop: "1px solid var(--Grey-absent, #D9D9D9)"
1974
2284
  },
1975
- children: /* @__PURE__ */ n("div", { style: { width: 552, maxWidth: "100%" }, children: [
1976
- t.length > 0 && /* @__PURE__ */ e(
2285
+ children: /* @__PURE__ */ n("div", { style: { width: 662, maxWidth: "100%" }, children: [
2286
+ u.length > 0 && /* @__PURE__ */ e(
1977
2287
  "div",
1978
2288
  {
1979
2289
  style: {
1980
2290
  display: "flex",
1981
2291
  flexDirection: "column",
1982
2292
  gap: 0,
1983
- marginBottom: 24
2293
+ marginBottom: 24,
2294
+ maxHeight: 600,
2295
+ overflowY: u.length > 6 ? "auto" : "visible"
2296
+ },
2297
+ children: B.map((h) => /* @__PURE__ */ e(
2298
+ lt,
2299
+ {
2300
+ comment: h,
2301
+ depth: 0,
2302
+ onReply: l,
2303
+ onSendReply: D,
2304
+ onEdit: T,
2305
+ onDelete: E,
2306
+ onMenuClick: x
2307
+ },
2308
+ h.id
2309
+ ))
2310
+ }
2311
+ ),
2312
+ u.length > 0 && /* @__PURE__ */ n(
2313
+ "div",
2314
+ {
2315
+ style: {
2316
+ display: "flex",
2317
+ alignItems: "center",
2318
+ gap: 6,
2319
+ marginBottom: 16,
2320
+ marginLeft: 48
1984
2321
  },
1985
- children: b.map((d) => /* @__PURE__ */ n(me.Fragment, { children: [
2322
+ children: [
2323
+ /* @__PURE__ */ e(rt, { size: 16, color: "var(--Grey-Muted, #808183)" }),
1986
2324
  /* @__PURE__ */ e(
1987
- Ve,
2325
+ "span",
1988
2326
  {
1989
- comment: d,
1990
- isReply: !1,
1991
- onReply: a,
1992
- onSendReply: r,
1993
- onEdit: f,
1994
- onDelete: y,
1995
- onMenuClick: u,
1996
- showReply: d.replies.length === 0
2327
+ style: {
2328
+ color: "var(--Grey-Muted, #808183)",
2329
+ fontSize: 13,
2330
+ fontStyle: "normal",
2331
+ fontWeight: 400,
2332
+ lineHeight: "normal"
2333
+ },
2334
+ children: "Comments can be edited within 15 minutes."
2335
+ }
2336
+ )
2337
+ ]
2338
+ }
2339
+ ),
2340
+ w && /* @__PURE__ */ n(
2341
+ "div",
2342
+ {
2343
+ style: {
2344
+ display: "flex",
2345
+ alignItems: "center",
2346
+ gap: 8,
2347
+ padding: "8px 0"
2348
+ },
2349
+ children: [
2350
+ /* @__PURE__ */ e(
2351
+ "div",
2352
+ {
2353
+ style: {
2354
+ width: 16,
2355
+ height: 16,
2356
+ border: "2px solid var(--Grey-absent, #D9D9D9)",
2357
+ borderTopColor: "var(--Grey-Strong, #2E3236)",
2358
+ borderRadius: "50%",
2359
+ animation: "spin 0.8s linear infinite"
2360
+ }
1997
2361
  }
1998
2362
  ),
1999
- d.replies.map((p, h) => /* @__PURE__ */ e(
2000
- Ve,
2363
+ /* @__PURE__ */ e(
2364
+ "span",
2001
2365
  {
2002
- comment: p,
2003
- isReply: !0,
2004
- onReply: a,
2005
- onSendReply: r,
2006
- onEdit: f,
2007
- onDelete: y,
2008
- onMenuClick: u,
2009
- showReply: h === d.replies.length - 1
2010
- },
2011
- p.id
2012
- ))
2013
- ] }, d.id))
2366
+ style: {
2367
+ fontSize: 13,
2368
+ color: "var(--Grey-Muted, #808183)",
2369
+ fontFamily: "var(--default-font-family)"
2370
+ },
2371
+ children: "Sending..."
2372
+ }
2373
+ ),
2374
+ /* @__PURE__ */ e("style", { children: "@keyframes spin { to { transform: rotate(360deg); } }" })
2375
+ ]
2014
2376
  }
2015
2377
  ),
2016
- /* @__PURE__ */ e(Wn, { currentUser: c, onSubmit: l })
2378
+ /* @__PURE__ */ e(En, { currentUser: G, onSubmit: C })
2017
2379
  ] })
2018
2380
  }
2019
2381
  )
2020
2382
  ]
2021
2383
  }
2022
2384
  );
2023
- }, U = ({ text: t, children: o }) => {
2024
- const [l, a] = F(!1), r = L(null), [f, y] = F({ top: 0, left: 0 });
2385
+ }, ne = ({ text: t, children: i }) => {
2386
+ const [r, l] = F(!1), o = P(null), [c, y] = F({ top: 0, left: 0 });
2025
2387
  return t ? /* @__PURE__ */ n(
2026
2388
  "div",
2027
2389
  {
2028
- ref: r,
2390
+ ref: o,
2029
2391
  style: { position: "relative", display: "inline-flex" },
2030
2392
  onMouseEnter: () => {
2031
- if (r.current) {
2032
- const g = r.current.getBoundingClientRect();
2393
+ if (o.current) {
2394
+ const v = o.current.getBoundingClientRect();
2033
2395
  y({
2034
- top: g.top - 2,
2035
- left: g.left + g.width / 2
2396
+ top: v.top - 2,
2397
+ left: v.left + v.width / 2
2036
2398
  });
2037
2399
  }
2038
- a(!0);
2400
+ l(!0);
2039
2401
  },
2040
- onMouseLeave: () => a(!1),
2402
+ onMouseLeave: () => l(!1),
2041
2403
  children: [
2042
- o,
2043
- l && /* @__PURE__ */ e("div", { style: {
2404
+ i,
2405
+ r && /* @__PURE__ */ e("div", { style: {
2044
2406
  position: "fixed",
2045
- top: f.top,
2046
- left: f.left,
2407
+ top: c.top,
2408
+ left: c.left,
2047
2409
  transform: "translate(-50%, -100%)",
2048
2410
  display: "flex",
2049
2411
  padding: 10,
@@ -2062,172 +2424,172 @@ const un = {
2062
2424
  }, children: t }) })
2063
2425
  ]
2064
2426
  }
2065
- ) : o;
2066
- }, zn = [
2427
+ ) : i;
2428
+ }, Tn = [
2067
2429
  { key: "overview", label: "Overview" },
2068
2430
  { key: "coaching", label: "Coaching Summary" },
2069
2431
  { key: "signals", label: "Signals & Recording" },
2070
2432
  { key: "comments", label: "Comments" }
2071
- ], Hn = ({
2433
+ ], jn = ({
2072
2434
  title: t = "Wheel Stud Replacement Enquiry",
2073
- onBack: o,
2435
+ onBack: i,
2074
2436
  // Data props — all optional with defaults for demo
2075
- data: l,
2076
- coachingData: a,
2077
- coachingLoading: r = !1,
2078
- audioUrl: f,
2437
+ data: r,
2438
+ coachingData: l,
2439
+ coachingLoading: o = !1,
2440
+ audioUrl: c,
2079
2441
  // Audio/playback props — pass these when the host app manages audio externally
2080
2442
  // (like InteractionDetailPanel does). If omitted, UpdatedInteractionRecording
2081
2443
  // manages its own audio element internally.
2082
2444
  audioRef: y,
2083
- currentTimeSeconds: u,
2084
- timelinePlaying: g,
2085
- playbackRate: m,
2086
- timelineSegments: D,
2087
- onSeek: b,
2088
- onTogglePlay: c,
2089
- onSeekBack: x,
2090
- onSeekForward: d,
2091
- onSetPlaybackRate: p,
2445
+ currentTimeSeconds: x,
2446
+ timelinePlaying: v,
2447
+ playbackRate: b,
2448
+ timelineSegments: z,
2449
+ onSeek: S,
2450
+ onTogglePlay: f,
2451
+ onSeekBack: w,
2452
+ onSeekForward: m,
2453
+ onSetPlaybackRate: u,
2092
2454
  // Speaker names
2093
- agentName: h,
2094
- agentFullName: C,
2095
- customerName: k,
2096
- customerFullName: M,
2455
+ agentName: G,
2456
+ agentFullName: D,
2457
+ customerName: C,
2458
+ customerFullName: T,
2097
2459
  // Transcript props — pass real transcript data from the host app
2098
- transcript: _,
2099
- activeTurnIndex: $,
2100
- turnObservations: A,
2101
- highlightedTurns: B,
2102
- onTurnPlayPause: W,
2460
+ transcript: E,
2461
+ activeTurnIndex: B,
2462
+ turnObservations: H,
2463
+ highlightedTurns: h,
2464
+ onTurnPlayPause: p,
2103
2465
  // Signal evidence playback — host app can provide to play audio segments from signals
2104
- onPlayEvidence: I,
2105
- onHighlightTurns: P,
2466
+ onPlayEvidence: a,
2467
+ onHighlightTurns: A,
2106
2468
  // Context props — pass from host app to override block-derived defaults
2107
- callPurpose: j,
2108
- classification: N,
2469
+ callPurpose: N,
2470
+ classification: K,
2109
2471
  outcomeQuality: Q,
2110
2472
  // Context "More Details" expandable section
2111
- resolutionOutcome: i,
2112
- customerIntent: T,
2113
- interactionId: Y,
2114
- moreDetails: Je,
2473
+ resolutionOutcome: s,
2474
+ customerIntent: O,
2475
+ interactionId: R,
2476
+ moreDetails: fe,
2115
2477
  // Compass score props
2116
- compassScore: Ue,
2478
+ compassScore: ie,
2117
2479
  // gauge meter value — compass_score, range 1-5
2118
- compassMaxScore: Gn = 10,
2119
- predictedCsat: et,
2480
+ compassMaxScore: pe = 10,
2481
+ predictedCsat: d,
2120
2482
  // predicted objective number (e.g. compass_score) — shown as "03" top-right
2121
- predictedLabel: tt = "Predicted Objective",
2122
- compassLegends: nt,
2483
+ predictedLabel: J = "Predicted Objective",
2484
+ compassLegends: at,
2123
2485
  // Customer session dropdown
2124
- customerSessions: it,
2125
- customerSessionCount: ot,
2126
- onSessionClick: ke,
2127
- onViewAllSessions: Se,
2486
+ customerSessions: st,
2487
+ customerSessionCount: dt,
2488
+ onSessionClick: Ie,
2489
+ onViewAllSessions: ze,
2128
2490
  // Footer navigation
2129
- prevSessionDesc: rt,
2130
- prevSessionDisabled: ee = !1,
2131
- nextSessionDesc: lt,
2132
- nextSessionDisabled: te = !1,
2133
- onPreviousSession: we,
2134
- onNextSession: Ce,
2491
+ prevSessionDesc: ct,
2492
+ prevSessionDisabled: re = !1,
2493
+ nextSessionDesc: ft,
2494
+ nextSessionDisabled: oe = !1,
2495
+ onPreviousSession: Ge,
2496
+ onNextSession: Me,
2135
2497
  // Comments
2136
- comments: at,
2137
- currentUser: st,
2138
- onSendComment: dt,
2139
- onSendReply: ct,
2140
- onReply: ft,
2141
- onEdit: pt,
2142
- onDelete: gt,
2143
- onMenuClick: ht,
2144
- onMarkResolved: yt,
2145
- commentsResolved: ut
2498
+ comments: Ee = [],
2499
+ currentUser: pt,
2500
+ onSendComment: gt,
2501
+ onSendReply: ht,
2502
+ onReply: yt,
2503
+ onEdit: ut,
2504
+ onDelete: mt,
2505
+ onMenuClick: vt,
2506
+ onMarkResolved: xt,
2507
+ commentsResolved: bt
2146
2508
  }) => {
2147
- var He, Re;
2148
- const [le, Fe] = F("overview"), [mt, De] = F(/* @__PURE__ */ new Set()), [We, ae] = F(!1), [Ie, ze] = F(null), [vt, Ge] = F(!1), [xt, bt] = F(0), Z = L(null), se = L(null), de = L(null), ce = L(null), fe = L(null), kt = { overview: se, coaching: de, signals: ce, comments: fe }, pe = L(null), ge = L(!1);
2149
- Pt(() => {
2150
- const s = pe.current;
2151
- if (!s)
2509
+ var Ne, qe;
2510
+ const [ge, _e] = F("overview"), [kt, Te] = F(/* @__PURE__ */ new Set()), [He, he] = F(!1), [Ae, Re] = F(null), [St, Le] = F(!1), [wt, Ct] = F(0), X = P(null), ye = P(null), ue = P(null), me = P(null), ve = P(null), Ft = { overview: ye, coaching: ue, signals: me, comments: ve }, xe = P(null), be = P(!1);
2511
+ Nt(() => {
2512
+ const g = xe.current;
2513
+ if (!g)
2152
2514
  return;
2153
- const S = ["overview", "coaching", "signals", "comments"], w = [se, de, ce, fe], R = ((V) => {
2154
- let O = V.parentElement;
2155
- for (; O; ) {
2156
- const { overflow: oe, overflowY: Le } = window.getComputedStyle(O);
2157
- if (/(auto|scroll)/.test(oe + Le))
2158
- return O;
2159
- O = O.parentElement;
2515
+ const W = ["overview", "coaching", "signals", "comments"], I = [ye, ue, me, ve], j = ((Z) => {
2516
+ let q = Z.parentElement;
2517
+ for (; q; ) {
2518
+ const { overflow: se, overflowY: Ke } = window.getComputedStyle(q);
2519
+ if (/(auto|scroll)/.test(se + Ke))
2520
+ return q;
2521
+ q = q.parentElement;
2160
2522
  }
2161
2523
  return null;
2162
- })(s), K = () => {
2163
- if (ge.current)
2524
+ })(g), V = () => {
2525
+ if (be.current)
2164
2526
  return;
2165
- let V = S[0];
2166
- for (let O = w.length - 1; O >= 0; O--) {
2167
- const oe = w[O].current;
2168
- if (!oe)
2527
+ let Z = W[0];
2528
+ for (let q = I.length - 1; q >= 0; q--) {
2529
+ const se = I[q].current;
2530
+ if (!se)
2169
2531
  continue;
2170
- if (oe.getBoundingClientRect().top <= 150) {
2171
- V = S[O];
2532
+ if (se.getBoundingClientRect().top <= 150) {
2533
+ Z = W[q];
2172
2534
  break;
2173
2535
  }
2174
2536
  }
2175
- Fe(V);
2537
+ _e(Z);
2176
2538
  };
2177
- return s.addEventListener("scroll", K, { passive: !0 }), R && R !== s && R.addEventListener("scroll", K, { passive: !0 }), window.addEventListener("scroll", K, { passive: !0, capture: !0 }), () => {
2178
- s.removeEventListener("scroll", K), R && R !== s && R.removeEventListener("scroll", K), window.removeEventListener("scroll", K, { capture: !0 });
2539
+ return g.addEventListener("scroll", V, { passive: !0 }), j && j !== g && j.addEventListener("scroll", V, { passive: !0 }), window.addEventListener("scroll", V, { passive: !0, capture: !0 }), () => {
2540
+ g.removeEventListener("scroll", V), j && j !== g && j.removeEventListener("scroll", V), window.removeEventListener("scroll", V, { capture: !0 });
2179
2541
  };
2180
2542
  }, []);
2181
- const St = (s) => {
2182
- var w;
2183
- Fe(s), ge.current = !0;
2184
- const S = (w = kt[s]) == null ? void 0 : w.current;
2185
- if (S) {
2186
- const q = pe.current;
2187
- if (q && q.scrollHeight > q.clientHeight) {
2188
- const R = q.getBoundingClientRect().top, V = S.getBoundingClientRect().top - R + q.scrollTop - 16;
2189
- q.scrollTo({ top: V, behavior: "smooth" });
2543
+ const Dt = (g) => {
2544
+ var I;
2545
+ _e(g), be.current = !0;
2546
+ const W = (I = Ft[g]) == null ? void 0 : I.current;
2547
+ if (W) {
2548
+ const Y = xe.current;
2549
+ if (Y && Y.scrollHeight > Y.clientHeight) {
2550
+ const j = Y.getBoundingClientRect().top, Z = W.getBoundingClientRect().top - j + Y.scrollTop - 16;
2551
+ Y.scrollTo({ top: Z, behavior: "smooth" });
2190
2552
  } else {
2191
- const R = S.getBoundingClientRect().top + window.scrollY - 120;
2192
- window.scrollTo({ top: R, behavior: "smooth" });
2553
+ const j = W.getBoundingClientRect().top + window.scrollY - 120;
2554
+ window.scrollTo({ top: j, behavior: "smooth" });
2193
2555
  }
2194
2556
  }
2195
2557
  setTimeout(() => {
2196
- ge.current = !1;
2558
+ be.current = !1;
2197
2559
  }, 800);
2198
- }, _e = it || [], wt = (s) => {
2199
- var w;
2200
- const S = s / 1e3;
2201
- (w = Z.current) != null && w.scrollToTranscript && Z.current.scrollToTranscript(S);
2202
- }, Ct = (s) => {
2203
- var S;
2204
- if (I)
2205
- I(s);
2560
+ }, Be = st || [], Wt = (g) => {
2561
+ var I;
2562
+ const W = g / 1e3;
2563
+ (I = X.current) != null && I.scrollToTranscript && X.current.scrollToTranscript(W);
2564
+ }, It = (g) => {
2565
+ var W;
2566
+ if (a)
2567
+ a(g);
2206
2568
  else {
2207
- const w = s.start_ms ?? s.startMs;
2208
- if (w != null && ((S = Z.current) != null && S.seekTo)) {
2209
- Z.current.seekTo(w / 1e3), Ge(!0), bt(w / 1e3);
2210
- const R = (s.end_ms ?? s.endMs ?? w + 5e3) - w;
2211
- setTimeout(() => Ge(!1), R);
2569
+ const I = g.start_ms ?? g.startMs;
2570
+ if (I != null && ((W = X.current) != null && W.seekTo)) {
2571
+ X.current.seekTo(I / 1e3), Le(!0), Ct(I / 1e3);
2572
+ const j = (g.end_ms ?? g.endMs ?? I + 5e3) - I;
2573
+ setTimeout(() => Le(!1), j);
2212
2574
  }
2213
2575
  }
2214
- }, Ft = (s) => {
2215
- P && P(s);
2216
- }, Dt = (s) => {
2217
- De((S) => {
2218
- const w = new Set(S);
2219
- return w.has(s) ? w.delete(s) : w.add(s), w;
2576
+ }, zt = (g) => {
2577
+ A && A(g);
2578
+ }, Gt = (g) => {
2579
+ Te((W) => {
2580
+ const I = new Set(W);
2581
+ return I.has(g) ? I.delete(g) : I.add(g), I;
2220
2582
  });
2221
- }, Wt = (l == null ? void 0 : l.blocks) || [], X = (s) => {
2222
- var S;
2223
- return ((S = Wt.find((w) => w.block_id === s)) == null ? void 0 : S.payload) || {};
2224
- }, H = X("interaction-metadata"), ne = X("interaction-context"), ie = X("interaction-signals"), Ee = X("interaction-outcome-lift"), It = X("interaction-dimensions").dimensions || [], zt = ne.call_purpose || {}, Gt = ne.classification || {}, Me = { duration_seconds: 156, message_count: 25, ...H }, Ae = { interaction_driver: "General Information", interaction_direction: "inbound", ...zt }, _t = { interaction_paradigm: "Informational", ...Gt }, Et = { p_expected: 0.94, p_full: 0.83, lift_raw: -0.11, lift: 0.043, interpretation: { lift_band: "positive" }, ...Ee }, Mt = ((He = Ee.driver_signal_keys) == null ? void 0 : He.map((s) => s.replace(/^sig\./, "").replace(/_/g, " "))) || [
2583
+ }, Mt = (r == null ? void 0 : r.blocks) || [], U = (g) => {
2584
+ var W;
2585
+ return ((W = Mt.find((I) => I.block_id === g)) == null ? void 0 : W.payload) || {};
2586
+ }, $ = U("interaction-metadata"), ee = U("interaction-context"), le = U("interaction-signals"), je = U("interaction-outcome-lift"), Et = U("interaction-dimensions").dimensions || [], _t = ee.call_purpose || {}, Tt = ee.classification || {}, Pe = { duration_seconds: 156, message_count: 25, ...$ }, Oe = { interaction_driver: "General Information", interaction_direction: "inbound", ..._t }, Ht = { interaction_paradigm: "Informational", ...Tt }, At = { p_expected: 0.94, p_full: 0.83, lift_raw: -0.11, lift: 0.043, interpretation: { lift_band: "positive" }, ...je }, Rt = ((Ne = je.driver_signal_keys) == null ? void 0 : Ne.map((g) => g.replace(/^sig\./, "").replace(/_/g, " "))) || [
2225
2587
  "customer needs fully addressed",
2226
2588
  "call flow expectations set",
2227
2589
  "Opening expectations set",
2228
2590
  "Active listening demonstrated",
2229
2591
  "Resolution confirmed"
2230
- ], At = a || {
2592
+ ], Lt = l || {
2231
2593
  one_liner: "David provided the customer with information on wheel stud replacement and pricing, but did not secure an appointment.",
2232
2594
  context: "The customer was seeking information on wheel stud replacement for a 2013 Chevy Bolt and was unsure about doing the repair themselves.",
2233
2595
  strengths: [
@@ -2240,7 +2602,7 @@ const un = {
2240
2602
  { text: "Frame solutions positively by leading with what can be done rather than limitations.", quote: "I don't have the alignment changeover the weekend." }
2241
2603
  ],
2242
2604
  overall: "effective"
2243
- }, Tt = (Re = ie == null ? void 0 : ie.signals) != null && Re.length ? ie : {
2605
+ }, Bt = (qe = le == null ? void 0 : le.signals) != null && qe.length ? le : {
2244
2606
  present_count: 9,
2245
2607
  total_signals_evaluated: 146,
2246
2608
  signals: [
@@ -2266,14 +2628,14 @@ const un = {
2266
2628
  { 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." }] },
2267
2629
  { 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." }] }
2268
2630
  ]
2269
- }, he = h || H.agent_name || H.agent || ne.agent_name || "Agent", Ht = C || H.agent_full_name || H.agent_name || he, J = k || H.customer_name || H.customer || ne.customer_name || "Customer", Te = M || H.customer_full_name || H.customer_name || J, ye = ot ?? _e.length, Rt = H.evaluated_dt ? new Date(H.evaluated_dt).toLocaleString() : "3/29/2026, 8:30:00 AM", Lt = Ae.interaction_direction === "inbound" ? "Inbound" : "Outbound";
2631
+ }, ke = G || $.agent_name || $.agent || ee.agent_name || "Agent", jt = D || $.agent_full_name || $.agent_name || ke, te = C || $.customer_name || $.customer || ee.customer_name || "Customer", $e = T || $.customer_full_name || $.customer_name || te, Se = dt ?? Be.length, ae = $.created_dt || (r == null ? void 0 : r.created_dt) || ee.created_dt || "", Pt = ae ? new Date(/Z$|[+-]\d{2}:\d{2}$/.test(ae) ? ae : ae + "Z").toLocaleString() : "", Ot = Oe.interaction_direction === "inbound" ? "Inbound" : "Outbound";
2270
2632
  return /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", width: "100%", height: "100%", background: "var(--Grey-White, #FFF)" }, children: [
2271
2633
  /* @__PURE__ */ n("div", { style: { position: "sticky", top: 0, zIndex: 20, background: "var(--Grey-White, #FFF)" }, children: [
2272
2634
  /* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", gap: 12, padding: "24px 24px 0" }, children: [
2273
2635
  /* @__PURE__ */ e(
2274
2636
  "button",
2275
2637
  {
2276
- onClick: o,
2638
+ onClick: i,
2277
2639
  style: {
2278
2640
  display: "flex",
2279
2641
  alignItems: "center",
@@ -2284,7 +2646,7 @@ const un = {
2284
2646
  padding: 0,
2285
2647
  flexShrink: 0
2286
2648
  },
2287
- children: /* @__PURE__ */ e(Pe, { size: 24, color: "var(--Grey-Strong, #2E3236)" })
2649
+ children: /* @__PURE__ */ e(Ve, { size: 24, color: "var(--Grey-Strong, #2E3236)" })
2288
2650
  }
2289
2651
  ),
2290
2652
  /* @__PURE__ */ e("div", { style: { width: 1, height: 28, background: "var(--Base-absent, #D9D9D9)" } }),
@@ -2297,12 +2659,12 @@ const un = {
2297
2659
  margin: 0,
2298
2660
  flex: 1
2299
2661
  }, children: t }),
2300
- (we || Ce) && /* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", flexShrink: 0 }, children: [
2301
- /* @__PURE__ */ e(U, { text: rt, children: /* @__PURE__ */ n(
2662
+ (Ge || Me) && /* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", flexShrink: 0 }, children: [
2663
+ /* @__PURE__ */ e(ne, { text: ct, children: /* @__PURE__ */ n(
2302
2664
  "button",
2303
2665
  {
2304
- onClick: ee ? void 0 : we,
2305
- disabled: ee,
2666
+ onClick: re ? void 0 : Ge,
2667
+ disabled: re,
2306
2668
  style: {
2307
2669
  display: "flex",
2308
2670
  alignItems: "center",
@@ -2310,11 +2672,11 @@ const un = {
2310
2672
  padding: "4px 12px",
2311
2673
  background: "none",
2312
2674
  border: "none",
2313
- cursor: ee ? "default" : "pointer",
2314
- opacity: ee ? 0.4 : 1
2675
+ cursor: re ? "default" : "pointer",
2676
+ opacity: re ? 0.4 : 1
2315
2677
  },
2316
2678
  children: [
2317
- /* @__PURE__ */ e(Pe, { size: 16, color: "var(--Neutral-800, #323232)", strokeWidth: 1.5 }),
2679
+ /* @__PURE__ */ e(Ve, { size: 16, color: "var(--Neutral-800, #323232)", strokeWidth: 1.5 }),
2318
2680
  /* @__PURE__ */ e("span", { style: {
2319
2681
  color: "var(--Neutral-800, #323232)",
2320
2682
  fontSize: 13,
@@ -2332,11 +2694,11 @@ const un = {
2332
2694
  background: "var(--Grey-absent, #D9D9D9)",
2333
2695
  flexShrink: 0
2334
2696
  } }),
2335
- /* @__PURE__ */ e(U, { text: lt, children: /* @__PURE__ */ n(
2697
+ /* @__PURE__ */ e(ne, { text: ft, children: /* @__PURE__ */ n(
2336
2698
  "button",
2337
2699
  {
2338
- onClick: te ? void 0 : Ce,
2339
- disabled: te,
2700
+ onClick: oe ? void 0 : Me,
2701
+ disabled: oe,
2340
2702
  style: {
2341
2703
  display: "flex",
2342
2704
  alignItems: "center",
@@ -2344,8 +2706,8 @@ const un = {
2344
2706
  padding: "4px 12px",
2345
2707
  background: "none",
2346
2708
  border: "none",
2347
- cursor: te ? "default" : "pointer",
2348
- opacity: te ? 0.4 : 1
2709
+ cursor: oe ? "default" : "pointer",
2710
+ opacity: oe ? 0.4 : 1
2349
2711
  },
2350
2712
  children: [
2351
2713
  /* @__PURE__ */ e("span", { style: {
@@ -2356,7 +2718,7 @@ const un = {
2356
2718
  fontFamily: "var(--default-font-family)",
2357
2719
  whiteSpace: "nowrap"
2358
2720
  }, children: "Next Session" }),
2359
- /* @__PURE__ */ e(en, { size: 16, color: "var(--Neutral-800, #323232)", strokeWidth: 1.5 })
2721
+ /* @__PURE__ */ e(rn, { size: 16, color: "var(--Neutral-800, #323232)", strokeWidth: 1.5 })
2360
2722
  ]
2361
2723
  }
2362
2724
  ) })
@@ -2369,10 +2731,10 @@ const un = {
2369
2731
  borderBottom: "1px solid var(--Grey-Faint, #ACADAD)",
2370
2732
  padding: "0 24px",
2371
2733
  marginTop: 8
2372
- }, children: zn.map((s) => /* @__PURE__ */ e(
2734
+ }, children: Tn.map((g) => /* @__PURE__ */ e(
2373
2735
  "button",
2374
2736
  {
2375
- onClick: () => St(s.key),
2737
+ onClick: () => Dt(g.key),
2376
2738
  style: {
2377
2739
  display: "flex",
2378
2740
  padding: 16,
@@ -2380,21 +2742,21 @@ const un = {
2380
2742
  gap: 10,
2381
2743
  background: "none",
2382
2744
  border: "none",
2383
- borderBottom: le === s.key ? "3px solid var(--Grey-Strong, #2E3236)" : "3px solid transparent",
2745
+ borderBottom: ge === g.key ? "3px solid var(--Grey-Strong, #2E3236)" : "3px solid transparent",
2384
2746
  cursor: "pointer",
2385
2747
  fontSize: 15,
2386
- fontWeight: le === s.key ? 500 : 400,
2387
- color: le === s.key ? "var(--Grey-Strong, #2E3236)" : "var(--Grey-Muted, #808183)",
2748
+ fontWeight: ge === g.key ? 500 : 400,
2749
+ color: ge === g.key ? "var(--Grey-Strong, #2E3236)" : "var(--Grey-Muted, #808183)",
2388
2750
  whiteSpace: "nowrap",
2389
2751
  transition: "border-color 0.2s ease, color 0.2s ease"
2390
2752
  },
2391
- children: s.label
2753
+ children: g.label
2392
2754
  },
2393
- s.key
2755
+ g.key
2394
2756
  )) })
2395
2757
  ] }),
2396
- /* @__PURE__ */ n("div", { ref: pe, style: { padding: 24, flex: 1, overflowY: "auto" }, children: [
2397
- /* @__PURE__ */ n("div", { ref: se, style: {
2758
+ /* @__PURE__ */ n("div", { ref: xe, style: { padding: 24, flex: 1, overflowY: "auto" }, children: [
2759
+ /* @__PURE__ */ n("div", { ref: ye, style: {
2398
2760
  display: "flex",
2399
2761
  flexDirection: "column",
2400
2762
  justifyContent: "flex-end",
@@ -2410,7 +2772,7 @@ const un = {
2410
2772
  alignSelf: "stretch"
2411
2773
  }, children: [
2412
2774
  /* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", gap: 8, flex: 1 }, children: [
2413
- /* @__PURE__ */ e(tn, { size: 24, color: "var(--rail-orange, #C98A5A)", strokeWidth: 2 }),
2775
+ /* @__PURE__ */ e(on, { size: 24, color: "var(--rail-orange, #C98A5A)", strokeWidth: 2 }),
2414
2776
  /* @__PURE__ */ e("span", { style: {
2415
2777
  fontSize: 16,
2416
2778
  fontWeight: 600,
@@ -2421,12 +2783,12 @@ const un = {
2421
2783
  ] }),
2422
2784
  /* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", gap: 16, flexShrink: 0 }, children: [
2423
2785
  /* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", gap: 6, padding: "8px 0" }, children: [
2424
- /* @__PURE__ */ e(nn, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
2425
- /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", fontFamily: "var(--font-sans)", lineHeight: 1.2 }, children: Rt })
2786
+ /* @__PURE__ */ e(ln, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
2787
+ /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", fontFamily: "var(--font-sans)", lineHeight: 1.2 }, children: Pt })
2426
2788
  ] }),
2427
2789
  /* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", gap: 6, padding: "8px 0" }, children: [
2428
- /* @__PURE__ */ e(on, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
2429
- /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", fontFamily: "var(--font-sans)", lineHeight: 1.2 }, children: Lt })
2790
+ /* @__PURE__ */ e(an, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
2791
+ /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", fontFamily: "var(--font-sans)", lineHeight: 1.2 }, children: Ot })
2430
2792
  ] }),
2431
2793
  /* @__PURE__ */ n("div", { style: {
2432
2794
  display: "flex",
@@ -2435,16 +2797,16 @@ const un = {
2435
2797
  paddingLeft: 16,
2436
2798
  borderLeft: "1px solid var(--Grey-absent, #D9D9D9)"
2437
2799
  }, children: [
2438
- /* @__PURE__ */ e(U, { text: Ht, children: /* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", gap: 6, padding: "8px 0", cursor: "default" }, children: [
2439
- /* @__PURE__ */ e(rn, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
2440
- /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", fontFamily: "var(--font-sans)", lineHeight: 1.2 }, children: he })
2800
+ /* @__PURE__ */ e(ne, { text: jt, children: /* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", gap: 6, padding: "8px 0", cursor: "pointer" }, children: [
2801
+ /* @__PURE__ */ e(sn, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
2802
+ /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", fontFamily: "var(--font-sans)", lineHeight: 1.2 }, children: ke })
2441
2803
  ] }) }),
2442
- /* @__PURE__ */ e(ln, { size: 16, color: "var(--color-input-border, #ACACAD)", strokeWidth: 1.5 }),
2443
- ye > 1 ? /* @__PURE__ */ n("div", { style: { position: "relative" }, children: [
2444
- /* @__PURE__ */ e(U, { text: Te, children: /* @__PURE__ */ n(
2804
+ /* @__PURE__ */ e(dn, { size: 16, color: "var(--color-input-border, #ACACAD)", strokeWidth: 1.5 }),
2805
+ Se > 1 ? /* @__PURE__ */ n("div", { style: { position: "relative" }, children: [
2806
+ /* @__PURE__ */ e(ne, { text: $e, children: /* @__PURE__ */ n(
2445
2807
  "button",
2446
2808
  {
2447
- onClick: () => ae((s) => !s),
2809
+ onClick: () => he((g) => !g),
2448
2810
  style: {
2449
2811
  display: "flex",
2450
2812
  alignItems: "center",
@@ -2455,18 +2817,18 @@ const un = {
2455
2817
  cursor: "pointer"
2456
2818
  },
2457
2819
  children: [
2458
- /* @__PURE__ */ e(ue, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
2820
+ /* @__PURE__ */ e(Ce, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
2459
2821
  /* @__PURE__ */ n("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", lineHeight: 1.2 }, children: [
2460
- J,
2822
+ te,
2461
2823
  " (",
2462
- ye,
2824
+ Se,
2463
2825
  " Sessions)"
2464
2826
  ] }),
2465
- We ? /* @__PURE__ */ e(ve, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }) : /* @__PURE__ */ e(xe, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 })
2827
+ He ? /* @__PURE__ */ e(Fe, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }) : /* @__PURE__ */ e(De, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 })
2466
2828
  ]
2467
2829
  }
2468
2830
  ) }),
2469
- We && /* @__PURE__ */ n("div", { style: {
2831
+ He && /* @__PURE__ */ n("div", { style: {
2470
2832
  position: "absolute",
2471
2833
  top: "100%",
2472
2834
  right: 0,
@@ -2485,40 +2847,40 @@ const un = {
2485
2847
  gap: 8,
2486
2848
  padding: 16
2487
2849
  }, children: [
2488
- /* @__PURE__ */ e(ue, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5, style: { marginTop: 2, flexShrink: 0 } }),
2850
+ /* @__PURE__ */ e(Ce, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5, style: { marginTop: 2, flexShrink: 0 } }),
2489
2851
  /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", gap: 4 }, children: [
2490
2852
  /* @__PURE__ */ e("span", { style: {
2491
2853
  fontSize: 16,
2492
2854
  fontWeight: 600,
2493
2855
  color: "var(--Grey-Strong, #2E3236)",
2494
2856
  lineHeight: 1
2495
- }, children: J }),
2857
+ }, children: te }),
2496
2858
  /* @__PURE__ */ n("span", { style: {
2497
2859
  fontSize: 13,
2498
2860
  fontWeight: 400,
2499
2861
  color: "var(--Grey-Muted, #808183)",
2500
2862
  lineHeight: 1
2501
2863
  }, children: [
2502
- ye,
2864
+ Se,
2503
2865
  " Sessions in past"
2504
2866
  ] })
2505
2867
  ] })
2506
2868
  ] }),
2507
- _e.slice(0, 5).map((s, S) => /* @__PURE__ */ n(
2869
+ Be.slice(0, 5).map((g, W) => /* @__PURE__ */ n(
2508
2870
  "div",
2509
2871
  {
2510
2872
  onClick: () => {
2511
- ke && ke(s), ae(!1);
2873
+ Ie && Ie(g), he(!1);
2512
2874
  },
2513
- onMouseEnter: () => ze(S),
2514
- onMouseLeave: () => ze(null),
2875
+ onMouseEnter: () => Re(W),
2876
+ onMouseLeave: () => Re(null),
2515
2877
  style: {
2516
2878
  display: "flex",
2517
2879
  width: 264,
2518
2880
  padding: "12px 16px",
2519
2881
  justifyContent: "space-between",
2520
2882
  alignItems: "center",
2521
- background: Ie === S ? "var(--surface-hover, #F3F7F7)" : "var(--Grey-White, #FFF)",
2883
+ background: Ae === W ? "var(--surface-hover, #F3F7F7)" : "var(--Grey-White, #FFF)",
2522
2884
  borderTop: "1px solid var(--Grey-absent, #D9D9D9)",
2523
2885
  cursor: "pointer",
2524
2886
  boxSizing: "border-box",
@@ -2531,18 +2893,18 @@ const un = {
2531
2893
  fontWeight: 400,
2532
2894
  color: "var(--Grey-Strong, #2E3236)",
2533
2895
  lineHeight: 1
2534
- }, children: s.title }),
2896
+ }, children: g.title }),
2535
2897
  /* @__PURE__ */ e("span", { style: {
2536
2898
  fontSize: 12,
2537
2899
  fontWeight: 400,
2538
2900
  color: "var(--Grey-Muted, #808183)",
2539
2901
  lineHeight: 1
2540
- }, children: s.date })
2902
+ }, children: g.date })
2541
2903
  ] }),
2542
- Ie === S && /* @__PURE__ */ e(an, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1, style: { flexShrink: 0 } })
2904
+ Ae === W && /* @__PURE__ */ e(cn, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1, style: { flexShrink: 0 } })
2543
2905
  ]
2544
2906
  },
2545
- s.id || S
2907
+ g.id || W
2546
2908
  )),
2547
2909
  /* @__PURE__ */ e("div", { style: {
2548
2910
  padding: 16,
@@ -2553,7 +2915,7 @@ const un = {
2553
2915
  "button",
2554
2916
  {
2555
2917
  onClick: () => {
2556
- Se && Se(), ae(!1);
2918
+ ze && ze(), he(!1);
2557
2919
  },
2558
2920
  style: {
2559
2921
  display: "flex",
@@ -2568,7 +2930,7 @@ const un = {
2568
2930
  cursor: "pointer"
2569
2931
  },
2570
2932
  children: [
2571
- /* @__PURE__ */ e(sn, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
2933
+ /* @__PURE__ */ e(fn, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
2572
2934
  /* @__PURE__ */ e("span", { style: {
2573
2935
  fontSize: 14,
2574
2936
  fontWeight: 600,
@@ -2578,9 +2940,9 @@ const un = {
2578
2940
  }
2579
2941
  ) })
2580
2942
  ] })
2581
- ] }) : /* @__PURE__ */ e(U, { text: Te, children: /* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", gap: 4, padding: "8px 0", cursor: "default" }, children: [
2582
- /* @__PURE__ */ e(ue, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
2583
- /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", lineHeight: 1.2 }, children: J })
2943
+ ] }) : /* @__PURE__ */ e(ne, { text: $e, children: /* @__PURE__ */ n("div", { style: { display: "flex", alignItems: "center", gap: 4, padding: "8px 0", cursor: "pointer" }, children: [
2944
+ /* @__PURE__ */ e(Ce, { size: 16, color: "var(--Grey-Muted, #808183)", strokeWidth: 1.5 }),
2945
+ /* @__PURE__ */ e("span", { style: { fontSize: 13, fontWeight: 400, color: "var(--Grey-Strong, #2E3236)", lineHeight: 1.2 }, children: te })
2584
2946
  ] }) })
2585
2947
  ] })
2586
2948
  ] })
@@ -2592,13 +2954,13 @@ const un = {
2592
2954
  alignSelf: "stretch"
2593
2955
  }, children: [
2594
2956
  /* @__PURE__ */ e("div", { style: { flex: 1, minWidth: 0, display: "flex" }, children: /* @__PURE__ */ e(
2595
- Fn,
2957
+ In,
2596
2958
  {
2597
- score: Ue ?? 0,
2959
+ score: ie ?? 0,
2598
2960
  maxScore: 5,
2599
- predictedScore: et ?? 0,
2600
- predictedLabel: tt,
2601
- legends: nt
2961
+ predictedScore: d ?? 0,
2962
+ predictedLabel: J,
2963
+ legends: at
2602
2964
  }
2603
2965
  ) }),
2604
2966
  /* @__PURE__ */ n("div", { style: {
@@ -2611,31 +2973,31 @@ const un = {
2611
2973
  minWidth: 0
2612
2974
  }, children: [
2613
2975
  /* @__PURE__ */ e(
2614
- mn,
2976
+ bn,
2615
2977
  {
2616
- meta: Me,
2617
- callPurpose: j || Ae,
2618
- classification: N || _t,
2978
+ meta: Pe,
2979
+ callPurpose: N || Oe,
2980
+ classification: K || Ht,
2619
2981
  outcomeQuality: Q || "Neutral",
2620
- dimensions: It,
2621
- resolutionOutcome: i,
2622
- customerIntent: T,
2623
- interactionId: Y ?? H.interaction_id,
2624
- moreDetails: Je
2982
+ dimensions: Et,
2983
+ resolutionOutcome: s,
2984
+ customerIntent: O,
2985
+ interactionId: R ?? $.interaction_id,
2986
+ moreDetails: fe
2625
2987
  }
2626
2988
  ),
2627
2989
  /* @__PURE__ */ e(
2628
- vn,
2990
+ kn,
2629
2991
  {
2630
- outcomeLift: Et,
2631
- driverLabels: Mt
2992
+ outcomeLift: At,
2993
+ driverLabels: Rt
2632
2994
  }
2633
2995
  )
2634
2996
  ] })
2635
2997
  ] })
2636
2998
  ] }),
2637
- /* @__PURE__ */ e("div", { ref: de, style: { paddingTop: 24 }, children: /* @__PURE__ */ e(hn, { data: r ? null : At, loading: r }) }),
2638
- /* @__PURE__ */ n("div", { ref: ce, style: {
2999
+ /* @__PURE__ */ e("div", { ref: ue, style: { paddingTop: 24 }, children: /* @__PURE__ */ e(mn, { data: o ? null : Lt, loading: o }) }),
3000
+ /* @__PURE__ */ n("div", { ref: me, style: {
2639
3001
  display: "flex",
2640
3002
  flexDirection: "column",
2641
3003
  gap: 16,
@@ -2647,7 +3009,7 @@ const un = {
2647
3009
  alignItems: "center",
2648
3010
  gap: 8
2649
3011
  }, children: [
2650
- /* @__PURE__ */ e(Ze, { size: 24, color: "#C98A5A", strokeWidth: 2 }),
3012
+ /* @__PURE__ */ e(it, { size: 24, color: "#C98A5A", strokeWidth: 2 }),
2651
3013
  /* @__PURE__ */ e("span", { style: {
2652
3014
  fontSize: 16,
2653
3015
  fontWeight: 600,
@@ -2665,117 +3027,80 @@ const un = {
2665
3027
  borderTop: "1px solid #D9D9D9"
2666
3028
  }, children: [
2667
3029
  /* @__PURE__ */ e("div", { style: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ e(
2668
- xn,
3030
+ Sn,
2669
3031
  {
2670
- signals: Tt,
2671
- expandedSignals: mt,
2672
- toggleSignal: Dt,
2673
- playEvidence: Ct,
2674
- highlightTurns: Ft,
2675
- onShowInTranscript: wt,
2676
- timelinePlaying: g || vt,
2677
- currentTimeSeconds: u ?? xt
3032
+ signals: Bt,
3033
+ expandedSignals: kt,
3034
+ toggleSignal: Gt,
3035
+ playEvidence: It,
3036
+ highlightTurns: zt,
3037
+ onShowInTranscript: Wt,
3038
+ timelinePlaying: v || St,
3039
+ currentTimeSeconds: x ?? wt
2678
3040
  }
2679
3041
  ) }),
2680
3042
  /* @__PURE__ */ e("div", { style: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ e(
2681
- dn,
3043
+ pn,
2682
3044
  {
2683
- ref: Z,
2684
- audioUrl: f,
2685
- durationSeconds: Me.duration_seconds,
3045
+ ref: X,
3046
+ audioUrl: c,
3047
+ durationSeconds: Pe.duration_seconds,
2686
3048
  audioRef: y,
2687
- agentName: he,
2688
- customerName: J.split(" ")[0],
2689
- currentTimeSeconds: u,
2690
- timelinePlaying: g,
2691
- playbackRate: m,
2692
- timelineSegments: D,
2693
- onSeek: b,
2694
- onTogglePlay: c,
2695
- onSeekBack: x,
2696
- onSeekForward: d,
2697
- onSetPlaybackRate: p,
2698
- transcript: _,
2699
- activeTurnIndex: $,
2700
- turnObservations: A,
2701
- highlightedTurns: B,
2702
- onTurnPlayPause: W,
2703
- setExpandedSignals: De
3049
+ agentName: ke,
3050
+ customerName: te.split(" ")[0],
3051
+ currentTimeSeconds: x,
3052
+ timelinePlaying: v,
3053
+ playbackRate: b,
3054
+ timelineSegments: z,
3055
+ onSeek: S,
3056
+ onTogglePlay: f,
3057
+ onSeekBack: w,
3058
+ onSeekForward: m,
3059
+ onSetPlaybackRate: u,
3060
+ transcript: E,
3061
+ activeTurnIndex: B,
3062
+ turnObservations: H,
3063
+ highlightedTurns: h,
3064
+ onTurnPlayPause: p,
3065
+ setExpandedSignals: Te
2704
3066
  }
2705
3067
  ) })
2706
3068
  ] })
2707
3069
  ] }),
2708
- /* @__PURE__ */ e("div", { ref: fe, style: { paddingTop: 24 }, children: /* @__PURE__ */ e(
2709
- In,
3070
+ /* @__PURE__ */ e("div", { ref: ve, style: { paddingTop: 24 }, children: /* @__PURE__ */ e(
3071
+ _n,
2710
3072
  {
2711
- comments: at || [
2712
- {
2713
- id: "c1",
2714
- author: { name: "Lucy", initials: "LU", color: "var(--rail-compliance, #C98A5A)", role: "supervisor" },
2715
- content: "Demonstrated courtesy and professionalism throughout the call. Close the loop by restating the plan and confirming next steps to ensure customer certainty.",
2716
- timestamp: "2 days"
2717
- },
2718
- {
2719
- id: "c2",
2720
- author: { name: "David", initials: "DA", color: "var(--rail-outcome, #6B7C93)", role: "agent" },
2721
- content: "Sounds good! Please share link with me. Thanks",
2722
- timestamp: "51 min",
2723
- parentId: "c1"
2724
- },
2725
- {
2726
- id: "c3",
2727
- author: { name: "Lucy", initials: "LU", color: "var(--rail-compliance, #C98A5A)", role: "supervisor" },
2728
- content: "Sure, will do",
2729
- timestamp: "12 h",
2730
- parentId: "c2"
2731
- },
2732
- {
2733
- id: "c4",
2734
- author: { name: "Lucy", initials: "LU", color: "var(--rail-compliance, #C98A5A)", role: "supervisor" },
2735
- content: "Please follow guidelines thoroughly.",
2736
- timestamp: "12 h"
2737
- },
2738
- {
2739
- id: "c5",
2740
- author: { name: "David", initials: "DA", color: "var(--rail-outcome, #6B7C93)", role: "agent" },
2741
- content: [
2742
- "Sounds great! I will make sure to follow guidelines and make it even better in next conversations. Thanks for your feedback!",
2743
- "Please let me know if we need to connect?"
2744
- ],
2745
- timestamp: "51 min",
2746
- parentId: "c4"
2747
- }
2748
- ],
2749
- totalComments: 6,
2750
- currentUser: st,
2751
- onSendComment: dt || (() => {
3073
+ comments: Ee,
3074
+ totalComments: Ee.length,
3075
+ currentUser: pt,
3076
+ onSendComment: gt || (() => {
2752
3077
  }),
2753
- onSendReply: ct || (() => {
3078
+ onSendReply: ht || (() => {
2754
3079
  }),
2755
- onReply: ft || (() => {
3080
+ onReply: yt || (() => {
2756
3081
  }),
2757
- onEdit: pt || (() => {
3082
+ onEdit: ut || (() => {
2758
3083
  }),
2759
- onDelete: gt || (() => {
3084
+ onDelete: mt || (() => {
2760
3085
  }),
2761
- onMenuClick: ht || (() => {
3086
+ onMenuClick: vt || (() => {
2762
3087
  }),
2763
- onMarkResolved: yt || (() => {
3088
+ onMarkResolved: xt || (() => {
2764
3089
  }),
2765
- isResolved: ut
3090
+ isResolved: bt
2766
3091
  }
2767
3092
  ) })
2768
3093
  ] })
2769
3094
  ] });
2770
3095
  };
2771
3096
  export {
2772
- hn as UpdatedCoachingSynthesisCard,
2773
- Fn as UpdatedCompassScore,
2774
- mn as UpdatedInteractionContext,
2775
- Hn as UpdatedInteractionDetails,
2776
- dn as UpdatedInteractionRecording,
2777
- vn as UpdatedInteractionScores,
2778
- xn as UpdatedInteractionSignals,
2779
- In as UpdatedThreads
3097
+ mn as UpdatedCoachingSynthesisCard,
3098
+ In as UpdatedCompassScore,
3099
+ bn as UpdatedInteractionContext,
3100
+ jn as UpdatedInteractionDetails,
3101
+ pn as UpdatedInteractionRecording,
3102
+ kn as UpdatedInteractionScores,
3103
+ Sn as UpdatedInteractionSignals,
3104
+ _n as UpdatedThreads
2780
3105
  };
2781
3106
  //# sourceMappingURL=UpdatedInteractionDetails.es.js.map