chordia-ui 3.3.8 → 3.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AgentLiftCard.cjs.js.map +1 -1
- package/dist/AgentLiftCard.es.js +5 -3
- package/dist/AgentLiftCard.es.js.map +1 -1
- package/dist/CustomFilterChips.cjs.js.map +1 -1
- package/dist/CustomFilterChips.es.js +2 -1
- package/dist/CustomFilterChips.es.js.map +1 -1
- package/dist/FileUploadingState.cjs.js.map +1 -1
- package/dist/FileUploadingState.es.js +16 -10
- package/dist/FileUploadingState.es.js.map +1 -1
- package/dist/IntegrationCard.cjs.js.map +1 -1
- package/dist/IntegrationCard.es.js +3 -3
- package/dist/IntegrationCard.es.js.map +1 -1
- package/dist/SectionLabel.cjs.js.map +1 -1
- package/dist/SectionLabel.es.js.map +1 -1
- package/dist/SmallButton.cjs.js.map +1 -1
- package/dist/SmallButton.es.js +16 -16
- package/dist/SmallButton.es.js.map +1 -1
- package/dist/SummarySection.cjs.js.map +1 -1
- package/dist/SummarySection.es.js +11 -9
- package/dist/SummarySection.es.js.map +1 -1
- package/dist/TextInput.cjs.js.map +1 -1
- package/dist/TextInput.es.js.map +1 -1
- package/dist/Timeline.cjs.js.map +1 -1
- package/dist/Timeline.es.js +14 -8
- package/dist/Timeline.es.js.map +1 -1
- package/dist/Tooltip.cjs.js +1 -1
- package/dist/Tooltip.cjs.js.map +1 -1
- package/dist/Tooltip.es.js +31 -20
- package/dist/Tooltip.es.js.map +1 -1
- package/dist/TourGuideTooltip.cjs.js.map +1 -1
- package/dist/TourGuideTooltip.es.js +2 -1
- package/dist/TourGuideTooltip.es.js.map +1 -1
- package/dist/UpdatedInteractionRecording.cjs.js +1 -1
- package/dist/UpdatedInteractionRecording.cjs.js.map +1 -1
- package/dist/UpdatedInteractionRecording.es.js +79 -97
- package/dist/UpdatedInteractionRecording.es.js.map +1 -1
- package/dist/UploadInteraction.cjs.js.map +1 -1
- package/dist/UploadInteraction.es.js.map +1 -1
- package/dist/colors.cjs.js +2 -0
- package/dist/colors.cjs.js.map +1 -0
- package/dist/colors.es.js +2 -0
- package/dist/colors.es.js.map +1 -0
- package/dist/components/UpdatedInteractionDetails.cjs.js +10 -1
- package/dist/components/UpdatedInteractionDetails.cjs.js.map +1 -1
- package/dist/components/UpdatedInteractionDetails.es.js +1531 -9
- package/dist/components/UpdatedInteractionDetails.es.js.map +1 -1
- package/dist/components/chat.cjs.js +30 -1
- package/dist/components/chat.cjs.js.map +1 -1
- package/dist/components/chat.es.js +2222 -7
- package/dist/components/chat.es.js.map +1 -1
- package/dist/components/common.cjs.js +1 -1
- package/dist/components/common.es.js +32 -25
- package/dist/components/common.es.js.map +1 -1
- package/dist/components/data.cjs.js +1 -1
- package/dist/components/data.cjs.js.map +1 -1
- package/dist/components/data.es.js +1033 -4
- package/dist/components/data.es.js.map +1 -1
- package/dist/components/layout.cjs.js +3 -1
- package/dist/components/layout.cjs.js.map +1 -1
- package/dist/components/layout.es.js +1533 -8
- package/dist/components/layout.es.js.map +1 -1
- package/dist/components/login.cjs.js +1 -1
- package/dist/components/login.es.js +6 -2
- package/dist/components/login.es.js.map +1 -1
- package/dist/components/media.cjs.js +1 -1
- package/dist/components/media.cjs.js.map +1 -1
- package/dist/components/media.es.js +220 -6
- package/dist/components/media.es.js.map +1 -1
- package/dist/components/models.cjs.js +1 -1
- package/dist/components/models.cjs.js.map +1 -1
- package/dist/components/models.es.js +91 -2
- package/dist/components/models.es.js.map +1 -1
- package/dist/components/navigation.cjs.js +1 -1
- package/dist/components/navigation.cjs.js.map +1 -1
- package/dist/components/navigation.es.js +766 -7
- package/dist/components/navigation.es.js.map +1 -1
- package/dist/components/notifications.cjs.js +1 -1
- package/dist/components/notifications.cjs.js.map +1 -1
- package/dist/components/notifications.es.js +368 -3
- package/dist/components/notifications.es.js.map +1 -1
- package/dist/components/onboarding.cjs.js +1 -1
- package/dist/components/onboarding.cjs.js.map +1 -1
- package/dist/components/onboarding.es.js +985 -7
- package/dist/components/onboarding.es.js.map +1 -1
- package/dist/components/primitives.cjs.js +1 -1
- package/dist/components/primitives.cjs.js.map +1 -1
- package/dist/components/primitives.es.js +635 -25
- package/dist/components/primitives.es.js.map +1 -1
- package/dist/debugger-wc.cjs.js +4 -4
- package/dist/debugger-wc.cjs.js.map +1 -1
- package/dist/debugger-wc.es.js +15 -11
- package/dist/debugger-wc.es.js.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs2.js +2 -49
- package/dist/index.cjs2.js.map +1 -1
- package/dist/index.cjs3.js +50 -0
- package/dist/index.cjs3.js.map +1 -0
- package/dist/index.es.js +104 -99
- package/dist/index.es.js.map +1 -1
- package/dist/index.es2.js +2632 -1776
- package/dist/index.es2.js.map +1 -1
- package/dist/index.es3.js +1944 -0
- package/dist/index.es3.js.map +1 -0
- package/dist/pages/interactionDetails.cjs.js +1 -1
- package/dist/pages/interactionDetails.cjs.js.map +1 -1
- package/dist/pages/interactionDetails.es.js +70 -47
- package/dist/pages/interactionDetails.es.js.map +1 -1
- package/dist/sortable.esm.cjs.js +1 -1
- package/dist/sortable.esm.cjs.js.map +1 -1
- package/dist/sortable.esm.es.js +55 -53
- package/dist/sortable.esm.es.js.map +1 -1
- package/dist/{chordia-ui.css → style.css} +1 -1
- package/package.json +1 -1
- package/src/components/UpdatedInteractionDetails/UpdatedInteractionDetails.jsx +318 -77
- package/src/components/UpdatedInteractionDetails/UpdatedInteractionRecording.jsx +7 -17
- package/dist/ChartRenderer.cjs.js +0 -31
- package/dist/ChartRenderer.cjs.js.map +0 -1
- package/dist/ChartRenderer.es.js +0 -2210
- package/dist/ChartRenderer.es.js.map +0 -1
- package/dist/GettingStarted.cjs.js +0 -2
- package/dist/GettingStarted.cjs.js.map +0 -1
- package/dist/GettingStarted.es.js +0 -983
- package/dist/GettingStarted.es.js.map +0 -1
- package/dist/InlineConfirm.cjs.js +0 -2
- package/dist/InlineConfirm.cjs.js.map +0 -1
- package/dist/InlineConfirm.es.js +0 -618
- package/dist/InlineConfirm.es.js.map +0 -1
- package/dist/InteractionSummaryCard.cjs.js +0 -2
- package/dist/InteractionSummaryCard.cjs.js.map +0 -1
- package/dist/InteractionSummaryCard.es.js +0 -216
- package/dist/InteractionSummaryCard.es.js.map +0 -1
- package/dist/LoginPage.cjs.js +0 -3
- package/dist/LoginPage.cjs.js.map +0 -1
- package/dist/LoginPage.es.js +0 -2618
- package/dist/LoginPage.es.js.map +0 -1
- package/dist/NavigationBar.cjs.js +0 -2
- package/dist/NavigationBar.cjs.js.map +0 -1
- package/dist/NavigationBar.es.js +0 -762
- package/dist/NavigationBar.es.js.map +0 -1
- package/dist/NotificationPanel.cjs.js +0 -2
- package/dist/NotificationPanel.cjs.js.map +0 -1
- package/dist/NotificationPanel.es.js +0 -371
- package/dist/NotificationPanel.es.js.map +0 -1
- package/dist/OverlayPanel.cjs.js +0 -2
- package/dist/OverlayPanel.cjs.js.map +0 -1
- package/dist/OverlayPanel.es.js +0 -93
- package/dist/OverlayPanel.es.js.map +0 -1
- package/dist/SplitPane.cjs.js +0 -4
- package/dist/SplitPane.cjs.js.map +0 -1
- package/dist/SplitPane.es.js +0 -1531
- package/dist/SplitPane.es.js.map +0 -1
- package/dist/SummaryStatsPanel.cjs.js +0 -2
- package/dist/SummaryStatsPanel.cjs.js.map +0 -1
- package/dist/SummaryStatsPanel.es.js +0 -1027
- package/dist/SummaryStatsPanel.es.js.map +0 -1
- package/dist/UpdatedInteractionDetails.cjs.js +0 -11
- package/dist/UpdatedInteractionDetails.cjs.js.map +0 -1
- package/dist/UpdatedInteractionDetails.es.js +0 -1310
- package/dist/UpdatedInteractionDetails.es.js.map +0 -1
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { C as Vt, M as Jt, O as Qt, b as Zt, c as Xt, S as Ut, a as en, d as tn } from "../SummarySection.es.js";
|
|
2
2
|
import { E as Ye, A as Xe } from "../AgentLiftCard.es.js";
|
|
3
3
|
import { jsxs as o, jsx as e, Fragment as $e } from "react/jsx-runtime";
|
|
4
4
|
import Ge, { useMemo as oe, useState as T, useRef as fe, useEffect as ge, useLayoutEffect as Ue } from "react";
|
|
5
|
-
import { TrendingUp as et, Lightbulb as Ae, Building as tt, MessageSquareQuote as nt, ChevronDown as He,
|
|
6
|
-
import { C as ct,
|
|
5
|
+
import { TrendingUp as et, Lightbulb as Ae, Building as tt, MessageSquareQuote as nt, ChevronDown as He, Zap as Me, CheckCircle as qe, Target as Ve, FileText as rt, Scale as it, MessageSquare as ot, CornerDownRight as at, Send as lt, Clock as st, ChevronRight as Je } from "lucide-react";
|
|
6
|
+
import { C as ct, a as ae } from "../SmallButton.es.js";
|
|
7
7
|
import { S as dt, T as pt } from "../SectionLabel.es.js";
|
|
8
8
|
import "../sortable.esm.es.js";
|
|
9
9
|
import "react-dom";
|
|
10
10
|
import "../TourGuideTooltip.es.js";
|
|
11
11
|
import "recharts";
|
|
12
12
|
import "../UploadInteraction.es.js";
|
|
13
|
-
|
|
13
|
+
import "../colors.es.js";
|
|
14
14
|
import "../UpdatedInteractionRecording.es.js";
|
|
15
|
-
import {
|
|
15
|
+
import { a as ut, T as gt } from "../Timeline.es.js";
|
|
16
|
+
import "../Tooltip.es.js";
|
|
16
17
|
const Oe = "coaching-synthesis-keyframes";
|
|
17
18
|
function ft() {
|
|
18
|
-
if (typeof document > "u" || document.getElementById(Oe))
|
|
19
|
+
if (typeof document > "u" || document.getElementById(Oe))
|
|
20
|
+
return;
|
|
19
21
|
const n = document.createElement("style");
|
|
20
22
|
n.id = Oe, n.textContent = `
|
|
21
23
|
@keyframes coaching-shimmer {
|
|
@@ -82,7 +84,8 @@ function ht({ data: n, loading: a, error: l }) {
|
|
|
82
84
|
color: "var(--text-faint)",
|
|
83
85
|
fontFamily: "var(--font-sans)"
|
|
84
86
|
}, children: "Unable to generate coaching summary." });
|
|
85
|
-
if (!n)
|
|
87
|
+
if (!n)
|
|
88
|
+
return null;
|
|
86
89
|
const s = n.strengths || [], i = n.improvements || [], m = n.organizational || n.organizational_insights || [], b = typeof n.one_liner == "string" ? n.one_liner : ((C = n.one_liner) == null ? void 0 : C.text) || "", y = typeof n.context == "string" ? n.context : ((I = n.context) == null ? void 0 : I.text) || "";
|
|
87
90
|
return /* @__PURE__ */ o("div", { style: {
|
|
88
91
|
display: "flex",
|
|
@@ -243,7 +246,7 @@ function xt({ title: n, meta: a, callPurpose: l, classification: s, dimensions:
|
|
|
243
246
|
a.session_id && /* @__PURE__ */ e("div", { style: { fontSize: 10, color: "var(--text-faint)", fontFamily: "var(--font-mono)", marginTop: 4, userSelect: "all" }, children: a.session_id })
|
|
244
247
|
] });
|
|
245
248
|
}
|
|
246
|
-
function
|
|
249
|
+
function Nt({ scores: n }) {
|
|
247
250
|
return n != null && n.length ? /* @__PURE__ */ e(ae, { title: "Scores", children: /* @__PURE__ */ e("div", { style: { display: "flex", gap: 24, flexWrap: "wrap" }, children: n.map((a, l) => {
|
|
248
251
|
const s = a.value != null ? Math.round(a.value) : null;
|
|
249
252
|
return /* @__PURE__ */ o("div", { style: { textAlign: "center", minWidth: 48 }, children: [
|
|
@@ -253,15 +256,15 @@ function jt({ scores: n }) {
|
|
|
253
256
|
}) }) }) : null;
|
|
254
257
|
}
|
|
255
258
|
const je = {
|
|
256
|
-
outcome: { label: "Outcome", icon: /* @__PURE__ */ e(
|
|
257
|
-
process: { label: "Process & Protocol", icon: /* @__PURE__ */ e(
|
|
259
|
+
outcome: { label: "Outcome", icon: /* @__PURE__ */ e(Ve, { size: 12 }), color: "var(--rail-outcome)" },
|
|
260
|
+
process: { label: "Process & Protocol", icon: /* @__PURE__ */ e(rt, { size: 12 }), color: "var(--rail-discovery)" },
|
|
258
261
|
compliance: { label: "Compliance", icon: /* @__PURE__ */ e(it, { size: 12 }), color: "var(--rail-compliance)" },
|
|
259
262
|
customer_friction: { label: "Customer Friction", icon: /* @__PURE__ */ e(Me, { size: 12 }), color: "var(--rail-coral)" },
|
|
260
|
-
experience: { label: "Experience", icon: /* @__PURE__ */ e(
|
|
263
|
+
experience: { label: "Experience", icon: /* @__PURE__ */ e(ot, { size: 12 }), color: "var(--rail-teal)" }
|
|
261
264
|
}, mt = {
|
|
262
265
|
risk: { icon: /* @__PURE__ */ e(Me, { size: 10 }), color: "var(--rail-signal-churn)" },
|
|
263
266
|
opportunity: { icon: /* @__PURE__ */ e(Ae, { size: 10 }), color: "var(--state-unknown)" },
|
|
264
|
-
excellence: { icon: /* @__PURE__ */ e(
|
|
267
|
+
excellence: { icon: /* @__PURE__ */ e(qe, { size: 10 }), color: "var(--rail-teal)" }
|
|
265
268
|
};
|
|
266
269
|
function bt({
|
|
267
270
|
signals: n,
|
|
@@ -274,7 +277,8 @@ function bt({
|
|
|
274
277
|
borderRadius: y
|
|
275
278
|
}) {
|
|
276
279
|
var I;
|
|
277
|
-
if (!((I = n == null ? void 0 : n.signals) != null && I.length))
|
|
280
|
+
if (!((I = n == null ? void 0 : n.signals) != null && I.length))
|
|
281
|
+
return null;
|
|
278
282
|
const C = oe(() => {
|
|
279
283
|
const k = {};
|
|
280
284
|
for (const g of n.signals) {
|
|
@@ -455,7 +459,7 @@ function bt({
|
|
|
455
459
|
const Ne = {
|
|
456
460
|
risk: { icon: /* @__PURE__ */ e(Me, { size: 10 }), color: "var(--rail-signal-churn)" },
|
|
457
461
|
opportunity: { icon: /* @__PURE__ */ e(Ae, { size: 10 }), color: "var(--state-unknown)" },
|
|
458
|
-
excellence: { icon: /* @__PURE__ */ e(
|
|
462
|
+
excellence: { icon: /* @__PURE__ */ e(qe, { size: 10 }), color: "var(--rail-teal)" }
|
|
459
463
|
};
|
|
460
464
|
function vt({
|
|
461
465
|
guidance: n,
|
|
@@ -544,7 +548,7 @@ function vt({
|
|
|
544
548
|
function St({ nba: n }) {
|
|
545
549
|
const a = (n == null ? void 0 : n.recommendations) || (n == null ? void 0 : n.actions) || [];
|
|
546
550
|
return a.length ? /* @__PURE__ */ e(ae, { title: "Next Best Actions", children: /* @__PURE__ */ e("div", { style: { display: "flex", flexDirection: "column", gap: 6 }, children: a.slice(0, 8).map((l, s) => /* @__PURE__ */ o("div", { style: { fontSize: 11, color: "var(--text-muted)", display: "flex", alignItems: "center", gap: 4 }, children: [
|
|
547
|
-
/* @__PURE__ */ e(
|
|
551
|
+
/* @__PURE__ */ e(Ve, { size: 12 }),
|
|
548
552
|
" ",
|
|
549
553
|
/* @__PURE__ */ e("strong", { style: { color: "var(--text-base)" }, children: l.action || l.title || "" }),
|
|
550
554
|
l.rationale && ` — ${l.rationale}`
|
|
@@ -596,9 +600,11 @@ function wt({
|
|
|
596
600
|
onTurnPlayPause: y
|
|
597
601
|
}) {
|
|
598
602
|
var k;
|
|
599
|
-
if (!((k = n == null ? void 0 : n.messages) != null && k.length))
|
|
603
|
+
if (!((k = n == null ? void 0 : n.messages) != null && k.length))
|
|
604
|
+
return null;
|
|
600
605
|
const C = (g, S) => {
|
|
601
|
-
if (g == null)
|
|
606
|
+
if (g == null)
|
|
607
|
+
return;
|
|
602
608
|
const u = (L) => {
|
|
603
609
|
const D = Math.floor(L / 6e4), _ = Math.floor(L % 6e4 / 1e3);
|
|
604
610
|
return `${D.toString().padStart(2, "0")}:${_.toString().padStart(2, "0")}`;
|
|
@@ -646,11 +652,13 @@ const Le = {
|
|
|
646
652
|
cursor: "pointer",
|
|
647
653
|
fontFamily: "inherit"
|
|
648
654
|
}, Qe = (n) => {
|
|
649
|
-
if (!n)
|
|
655
|
+
if (!n)
|
|
656
|
+
return null;
|
|
650
657
|
const a = String(n).toLowerCase();
|
|
651
658
|
return a === "supervisor" ? "var(--rail-compliance)" : a === "admin" || a === "administrator" ? "var(--rail-discovery)" : a === "agent" ? "var(--rail-outcome)" : null;
|
|
652
659
|
}, Ke = (n) => {
|
|
653
|
-
if (!n)
|
|
660
|
+
if (!n)
|
|
661
|
+
return [];
|
|
654
662
|
const a = [
|
|
655
663
|
n.messages,
|
|
656
664
|
n.comments,
|
|
@@ -685,11 +693,14 @@ const Le = {
|
|
|
685
693
|
);
|
|
686
694
|
}), s;
|
|
687
695
|
}, Ct = (n) => {
|
|
688
|
-
if (!n)
|
|
689
|
-
|
|
696
|
+
if (!n)
|
|
697
|
+
return "";
|
|
698
|
+
if (!/^\d{4}-\d{2}-\d{2}T/.test(n))
|
|
699
|
+
return n;
|
|
690
700
|
try {
|
|
691
701
|
const a = new Date(n);
|
|
692
|
-
if (Number.isNaN(a.getTime()))
|
|
702
|
+
if (Number.isNaN(a.getTime()))
|
|
703
|
+
return n;
|
|
693
704
|
const l = /* @__PURE__ */ new Date(), s = a.getFullYear() === l.getFullYear() && a.getMonth() === l.getMonth() && a.getDate() === l.getDate(), i = new Date(l);
|
|
694
705
|
i.setDate(i.getDate() - 1);
|
|
695
706
|
const m = a.getFullYear() === i.getFullYear() && a.getMonth() === i.getMonth() && a.getDate() === i.getDate(), b = a.toLocaleTimeString(void 0, {
|
|
@@ -754,7 +765,8 @@ function zt({
|
|
|
754
765
|
ge(() => {
|
|
755
766
|
i || s && _(s);
|
|
756
767
|
}, [s, i]), ge(() => {
|
|
757
|
-
if (!i)
|
|
768
|
+
if (!i)
|
|
769
|
+
return;
|
|
758
770
|
const t = Array.isArray(i.threads) ? i.threads : Array.isArray(i.items) ? i.items : [];
|
|
759
771
|
if (t.length > 0) {
|
|
760
772
|
const v = t.map((c, p) => {
|
|
@@ -785,7 +797,8 @@ function zt({
|
|
|
785
797
|
)
|
|
786
798
|
);
|
|
787
799
|
}, [l]), ge(() => {
|
|
788
|
-
if (!ee.current || !D || D.length === 0)
|
|
800
|
+
if (!ee.current || !D || D.length === 0)
|
|
801
|
+
return;
|
|
789
802
|
const t = ee.current.parentElement;
|
|
790
803
|
t ? t.scrollTop = t.scrollHeight : ee.current.scrollIntoView({ behavior: "smooth", block: "end" });
|
|
791
804
|
}, [D]);
|
|
@@ -810,7 +823,8 @@ function zt({
|
|
|
810
823
|
ne(!1), se("");
|
|
811
824
|
}, ve = async () => {
|
|
812
825
|
const t = u.trim();
|
|
813
|
-
if (!t)
|
|
826
|
+
if (!t)
|
|
827
|
+
return;
|
|
814
828
|
const f = t;
|
|
815
829
|
x("");
|
|
816
830
|
const v = `temp-${Date.now()}`, z = {
|
|
@@ -852,7 +866,8 @@ function zt({
|
|
|
852
866
|
M(t.id), O(""), Y(null), Z(""), w(null), b == null || b(t);
|
|
853
867
|
}, ke = async (t) => {
|
|
854
868
|
const f = $.trim();
|
|
855
|
-
if (!f)
|
|
869
|
+
if (!f)
|
|
870
|
+
return;
|
|
856
871
|
const v = `reply-${Date.now()}`, z = {
|
|
857
872
|
id: v,
|
|
858
873
|
author: ie,
|
|
@@ -899,7 +914,8 @@ function zt({
|
|
|
899
914
|
}, Ce = (t) => {
|
|
900
915
|
te(t), w(null);
|
|
901
916
|
}, ze = async () => {
|
|
902
|
-
if (!le)
|
|
917
|
+
if (!le)
|
|
918
|
+
return;
|
|
903
919
|
const t = le;
|
|
904
920
|
te(null), _((f) => f.filter((v) => v.id !== t.id)), await (C == null ? void 0 : C(t));
|
|
905
921
|
}, ue = (t, f = 0) => {
|
|
@@ -2656,11 +2672,13 @@ function Tt({
|
|
|
2656
2672
|
actorColor: B ? "var(--rail-outcome)" : "var(--rail-discovery)"
|
|
2657
2673
|
};
|
|
2658
2674
|
})) || [], ne = oe(() => {
|
|
2659
|
-
if (!w && F === 0)
|
|
2675
|
+
if (!w && F === 0)
|
|
2676
|
+
return -1;
|
|
2660
2677
|
const r = H.messages || [], c = F * 1e3;
|
|
2661
2678
|
for (let p = r.length - 1; p >= 0; p--) {
|
|
2662
2679
|
const h = r[p].start ?? r[p].start_ms;
|
|
2663
|
-
if (h != null && c >= h)
|
|
2680
|
+
if (h != null && c >= h)
|
|
2681
|
+
return p;
|
|
2664
2682
|
}
|
|
2665
2683
|
return -1;
|
|
2666
2684
|
}, [F, w, H.messages]), X = (r) => {
|
|
@@ -2686,7 +2704,8 @@ function Tt({
|
|
|
2686
2704
|
};
|
|
2687
2705
|
ge(() => {
|
|
2688
2706
|
const r = x.current;
|
|
2689
|
-
if (!r)
|
|
2707
|
+
if (!r)
|
|
2708
|
+
return;
|
|
2690
2709
|
const c = () => j(r.currentTime), p = () => K(!0), h = () => K(!1), B = () => K(!1);
|
|
2691
2710
|
return r.addEventListener("timeupdate", c), r.addEventListener("play", p), r.addEventListener("pause", h), r.addEventListener("ended", B), () => {
|
|
2692
2711
|
r.removeEventListener("timeupdate", c), r.removeEventListener("play", p), r.removeEventListener("pause", h), r.removeEventListener("ended", B);
|
|
@@ -2694,7 +2713,8 @@ function Tt({
|
|
|
2694
2713
|
}, [a]);
|
|
2695
2714
|
const U = (r, c) => {
|
|
2696
2715
|
const p = x.current;
|
|
2697
|
-
if (!p || r == null)
|
|
2716
|
+
if (!p || r == null)
|
|
2717
|
+
return;
|
|
2698
2718
|
const h = r / 1e3;
|
|
2699
2719
|
p.currentTime = h, j(h);
|
|
2700
2720
|
const B = p.play();
|
|
@@ -2707,7 +2727,8 @@ function Tt({
|
|
|
2707
2727
|
}
|
|
2708
2728
|
}, ee = (r, c, p) => {
|
|
2709
2729
|
const h = x.current;
|
|
2710
|
-
if (!h || r == null)
|
|
2730
|
+
if (!h || r == null)
|
|
2731
|
+
return;
|
|
2711
2732
|
const B = r / 1e3, d = c != null ? c / 1e3 : B + 1, W = h.currentTime;
|
|
2712
2733
|
if (w && W >= B && (d == null || W <= d + 0.25)) {
|
|
2713
2734
|
h.pause();
|
|
@@ -2716,7 +2737,8 @@ function Tt({
|
|
|
2716
2737
|
U(r, c), p != null && p.length && re(p);
|
|
2717
2738
|
}, _e = (r, c) => {
|
|
2718
2739
|
const h = (H.messages || [])[c], B = x.current;
|
|
2719
|
-
if (!h || !B)
|
|
2740
|
+
if (!h || !B)
|
|
2741
|
+
return;
|
|
2720
2742
|
const d = h.start ?? h.start_ms, W = h.end ?? h.end_ms;
|
|
2721
2743
|
if (w && ne === c) {
|
|
2722
2744
|
B.pause();
|
|
@@ -2734,7 +2756,8 @@ function Tt({
|
|
|
2734
2756
|
});
|
|
2735
2757
|
}, ye = ((z = A.call_purpose) == null ? void 0 : z.interaction_driver) || M.one_liner || "Interaction Detail", [xe, me] = T("signals"), ce = fe(null), [Re, De] = T(null);
|
|
2736
2758
|
Ue(() => {
|
|
2737
|
-
if (i || !ce.current)
|
|
2759
|
+
if (i || !ce.current)
|
|
2760
|
+
return;
|
|
2738
2761
|
const r = () => {
|
|
2739
2762
|
var h;
|
|
2740
2763
|
const p = ((h = ce.current) == null ? void 0 : h.offsetHeight) || 0;
|
|
@@ -2939,10 +2962,10 @@ class It extends Ge.Component {
|
|
|
2939
2962
|
return this.state.hasError ? this.props.fallback : this.props.children;
|
|
2940
2963
|
}
|
|
2941
2964
|
}
|
|
2942
|
-
function
|
|
2965
|
+
function Kt(n) {
|
|
2943
2966
|
return /* @__PURE__ */ e(It, { fallback: /* @__PURE__ */ e("div", { style: { padding: 16, color: "var(--state-unknown)", fontSize: 12 }, children: "Error rendering detail." }), children: /* @__PURE__ */ e(Tt, { ...n }) });
|
|
2944
2967
|
}
|
|
2945
|
-
function
|
|
2968
|
+
function Yt({ pattern: n }) {
|
|
2946
2969
|
const [a, l] = T(!1), s = {
|
|
2947
2970
|
name: "Customer Escalation Likelihood",
|
|
2948
2971
|
description: "Based on observed patterns, this session shows indicators consistent with potential escalation.",
|
|
@@ -3443,23 +3466,23 @@ function Kt({ pattern: n }) {
|
|
|
3443
3466
|
export {
|
|
3444
3467
|
Xe as AgentLiftCard,
|
|
3445
3468
|
ht as CoachingSynthesisCard,
|
|
3446
|
-
|
|
3469
|
+
Vt as ConditionCard,
|
|
3447
3470
|
Ye as EvidenceItem,
|
|
3448
|
-
|
|
3471
|
+
Yt as ExpandPatternComparison,
|
|
3449
3472
|
xt as InteractionContext,
|
|
3450
|
-
|
|
3473
|
+
Kt as InteractionDetailPanel,
|
|
3451
3474
|
vt as InteractionGuidance,
|
|
3452
3475
|
St as InteractionNBA,
|
|
3453
3476
|
kt as InteractionRecording,
|
|
3454
|
-
|
|
3477
|
+
Nt as InteractionScores,
|
|
3455
3478
|
bt as InteractionSignals,
|
|
3456
3479
|
wt as InteractionTranscript,
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3480
|
+
Jt as ModelScoreCard,
|
|
3481
|
+
Qt as ObservationCard,
|
|
3482
|
+
Zt as ScoreDriverCard,
|
|
3483
|
+
Xt as ScoreDriverCardVariant,
|
|
3484
|
+
Ut as SignalCard,
|
|
3485
|
+
en as SmallObservationCard,
|
|
3486
|
+
tn as SummarySection
|
|
3464
3487
|
};
|
|
3465
3488
|
//# sourceMappingURL=interactionDetails.es.js.map
|