ahs-cti 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/agentDetailReport-ZR7U2LLB.mjs +17 -0
  2. package/dist/{agentPerformanceReport-6RO6STKU.mjs → agentPerformanceReport-JZK5DN5E.mjs} +73 -57
  3. package/dist/agentPerformanceReport-JZK5DN5E.mjs.map +1 -0
  4. package/dist/{auditReport-PYRZU3NA.mjs → auditReport-6ZUJ4UFO.mjs} +5 -4
  5. package/dist/{auditReport-PYRZU3NA.mjs.map → auditReport-6ZUJ4UFO.mjs.map} +1 -1
  6. package/dist/{callHistory-4JI64TU7.mjs → callHistory-T3M76D4B.mjs} +161 -158
  7. package/dist/callHistory-T3M76D4B.mjs.map +1 -0
  8. package/dist/{campaigns-JZE22SIM.mjs → campaigns-5PVHXBSD.mjs} +472 -417
  9. package/dist/campaigns-5PVHXBSD.mjs.map +1 -0
  10. package/dist/{caroQualityAuditDashboard-NRWY6SEC.mjs → caroQualityAuditDashboard-EUDYZ3QY.mjs} +6 -5
  11. package/dist/{caroQualityAuditDashboard-NRWY6SEC.mjs.map → caroQualityAuditDashboard-EUDYZ3QY.mjs.map} +1 -1
  12. package/dist/{caroVoiceAI-Z5BDDDSY.mjs → caroVoiceAI-GGJCVUIQ.mjs} +5 -4
  13. package/dist/{caroVoiceAI-Z5BDDDSY.mjs.map → caroVoiceAI-GGJCVUIQ.mjs.map} +1 -1
  14. package/dist/{cdrReport-RJTURVVV.mjs → cdrReport-ZMDHSZUW.mjs} +122 -104
  15. package/dist/cdrReport-ZMDHSZUW.mjs.map +1 -0
  16. package/dist/{chunk-HAJ6SECI.mjs → chunk-2M3YEXYA.mjs} +95 -64
  17. package/dist/chunk-2M3YEXYA.mjs.map +1 -0
  18. package/dist/{chunk-BDQZYTAY.mjs → chunk-33QNSXP7.mjs} +169 -163
  19. package/dist/chunk-33QNSXP7.mjs.map +1 -0
  20. package/dist/{chunk-FVVDDZCA.mjs → chunk-3J7KQNEU.mjs} +22 -11
  21. package/dist/chunk-3J7KQNEU.mjs.map +1 -0
  22. package/dist/chunk-6WLG2PXL.mjs +14 -0
  23. package/dist/chunk-6WLG2PXL.mjs.map +1 -0
  24. package/dist/chunk-7LE2VTAI.mjs +14 -0
  25. package/dist/chunk-7LE2VTAI.mjs.map +1 -0
  26. package/dist/chunk-AOJRUZTO.mjs +14 -0
  27. package/dist/chunk-AOJRUZTO.mjs.map +1 -0
  28. package/dist/chunk-DF5EFKXC.mjs +28690 -0
  29. package/dist/chunk-DF5EFKXC.mjs.map +1 -0
  30. package/dist/{chunk-UNTGXE6T.mjs → chunk-DJP744FF.mjs} +2 -2
  31. package/dist/{chunk-RZZQ42MG.mjs → chunk-DNTGBNZD.mjs} +22 -15
  32. package/dist/{chunk-RZZQ42MG.mjs.map → chunk-DNTGBNZD.mjs.map} +1 -1
  33. package/dist/{chunk-AJQBR3AZ.mjs → chunk-E6KYWWAI.mjs} +4243 -7804
  34. package/dist/chunk-E6KYWWAI.mjs.map +1 -0
  35. package/dist/chunk-FRKV2U3I.mjs +14 -0
  36. package/dist/chunk-FRKV2U3I.mjs.map +1 -0
  37. package/dist/{chunk-IBFF6DJA.mjs → chunk-H7GRWLYI.mjs} +13 -5
  38. package/dist/chunk-H7GRWLYI.mjs.map +1 -0
  39. package/dist/{chunk-PO6POUPL.mjs → chunk-IDZWA6HG.mjs} +185 -162
  40. package/dist/chunk-IDZWA6HG.mjs.map +1 -0
  41. package/dist/chunk-LHE4QGJJ.mjs +10920 -0
  42. package/dist/chunk-LHE4QGJJ.mjs.map +1 -0
  43. package/dist/{chunk-HBR2JS4C.mjs → chunk-NAZO4HKB.mjs} +8 -4
  44. package/dist/{chunk-HBR2JS4C.mjs.map → chunk-NAZO4HKB.mjs.map} +1 -1
  45. package/dist/chunk-OHJIW3I3.mjs +14 -0
  46. package/dist/chunk-OHJIW3I3.mjs.map +1 -0
  47. package/dist/chunk-Q6G3MPS7.mjs +37797 -0
  48. package/dist/chunk-Q6G3MPS7.mjs.map +1 -0
  49. package/dist/{chunk-ATAP77RC.mjs → chunk-U2UDKXMB.mjs} +2 -2
  50. package/dist/{chunk-JOZ4YQMR.mjs → chunk-VBIDPX5Z.mjs} +22 -15
  51. package/dist/{chunk-JOZ4YQMR.mjs.map → chunk-VBIDPX5Z.mjs.map} +1 -1
  52. package/dist/{chunk-6ICPXSN6.mjs → chunk-VVDJLUYT.mjs} +8 -4
  53. package/dist/{chunk-6ICPXSN6.mjs.map → chunk-VVDJLUYT.mjs.map} +1 -1
  54. package/dist/chunk-WTBVFN4H.mjs +14 -0
  55. package/dist/chunk-WTBVFN4H.mjs.map +1 -0
  56. package/dist/chunk-YAQYTUTX.mjs +28 -0
  57. package/dist/chunk-YAQYTUTX.mjs.map +1 -0
  58. package/dist/index.js +117517 -31841
  59. package/dist/index.js.map +1 -1
  60. package/dist/index.mjs +474 -369
  61. package/dist/index.mjs.map +1 -1
  62. package/dist/{liveStatus-E7UP37FK.mjs → liveStatus-YSBYSVOO.mjs} +123 -122
  63. package/dist/{liveStatus-E7UP37FK.mjs.map → liveStatus-YSBYSVOO.mjs.map} +1 -1
  64. package/dist/{loginReport-5QYHG6OM.mjs → loginReport-YIVBJVJD.mjs} +143 -122
  65. package/dist/loginReport-YIVBJVJD.mjs.map +1 -0
  66. package/dist/managementDashboard-7EMQC2UA.mjs +536 -0
  67. package/dist/{managementDashboard-PARD3QHL.mjs.map → managementDashboard-7EMQC2UA.mjs.map} +1 -1
  68. package/dist/{qualityAuditDashboard-ZJEEAMBS.mjs → qualityAuditDashboard-ENGQN2WQ.mjs} +6 -5
  69. package/dist/{qualityAuditDashboard-ZJEEAMBS.mjs.map → qualityAuditDashboard-ENGQN2WQ.mjs.map} +1 -1
  70. package/package.json +1 -1
  71. package/dist/agentDetailReport-JYBV3TF6.mjs +0 -13
  72. package/dist/agentPerformanceReport-6RO6STKU.mjs.map +0 -1
  73. package/dist/callHistory-4JI64TU7.mjs.map +0 -1
  74. package/dist/campaigns-JZE22SIM.mjs.map +0 -1
  75. package/dist/cdrReport-RJTURVVV.mjs.map +0 -1
  76. package/dist/chunk-AJQBR3AZ.mjs.map +0 -1
  77. package/dist/chunk-BDQZYTAY.mjs.map +0 -1
  78. package/dist/chunk-FVVDDZCA.mjs.map +0 -1
  79. package/dist/chunk-HAJ6SECI.mjs.map +0 -1
  80. package/dist/chunk-IBFF6DJA.mjs.map +0 -1
  81. package/dist/chunk-OVC42HVH.mjs +0 -1063
  82. package/dist/chunk-OVC42HVH.mjs.map +0 -1
  83. package/dist/chunk-PO6POUPL.mjs.map +0 -1
  84. package/dist/chunk-UB5HSUGK.mjs +0 -65
  85. package/dist/chunk-UB5HSUGK.mjs.map +0 -1
  86. package/dist/loginReport-5QYHG6OM.mjs.map +0 -1
  87. package/dist/managementDashboard-PARD3QHL.mjs +0 -531
  88. /package/dist/{agentDetailReport-JYBV3TF6.mjs.map → agentDetailReport-ZR7U2LLB.mjs.map} +0 -0
  89. /package/dist/{chunk-UNTGXE6T.mjs.map → chunk-DJP744FF.mjs.map} +0 -0
  90. /package/dist/{chunk-ATAP77RC.mjs.map → chunk-U2UDKXMB.mjs.map} +0 -0
@@ -1,62 +1,67 @@
1
+ import {
2
+ KeyboardArrowDown_default
3
+ } from "./chunk-OHJIW3I3.mjs";
1
4
  import {
2
5
  SDKPageHeader
3
- } from "./chunk-RZZQ42MG.mjs";
6
+ } from "./chunk-DNTGBNZD.mjs";
7
+ import {
8
+ Phone_default
9
+ } from "./chunk-6WLG2PXL.mjs";
10
+ import {
11
+ PlayArrow_default
12
+ } from "./chunk-7LE2VTAI.mjs";
4
13
  import {
5
14
  AppButton
6
- } from "./chunk-HBR2JS4C.mjs";
15
+ } from "./chunk-NAZO4HKB.mjs";
16
+ import {
17
+ Refresh_default,
18
+ Search_default
19
+ } from "./chunk-YAQYTUTX.mjs";
7
20
  import {
8
21
  SDKProvider,
9
22
  useToast
10
- } from "./chunk-6ICPXSN6.mjs";
23
+ } from "./chunk-VVDJLUYT.mjs";
11
24
  import {
12
25
  END_POINT,
13
26
  axios_default,
14
27
  deepFindArray
15
- } from "./chunk-OVC42HVH.mjs";
28
+ } from "./chunk-LHE4QGJJ.mjs";
16
29
  import {
30
+ Avatar_default,
31
+ Box_default,
32
+ Chip_default,
33
+ CircularProgress_default,
34
+ Collapse_default,
35
+ FormControlLabel_default,
36
+ IconButton_default,
37
+ InputAdornment_default,
38
+ OutlinedInput_default,
39
+ Paper_default,
40
+ Rating_default,
41
+ Stack_default,
42
+ Switch_default,
43
+ TableBody_default,
44
+ TableCell_default,
45
+ TableContainer_default,
46
+ TableHead_default,
47
+ TablePagination_default,
48
+ TableRow_default,
49
+ Table_default,
50
+ ToggleButtonGroup_default,
51
+ ToggleButton_default,
52
+ Tooltip_default,
53
+ Typography_default,
17
54
  __spreadProps,
18
- __spreadValues
19
- } from "./chunk-UB5HSUGK.mjs";
55
+ __spreadValues,
56
+ createSvgIcon,
57
+ useTheme
58
+ } from "./chunk-Q6G3MPS7.mjs";
20
59
 
21
60
  // call-control-sdk/lib/pages/callHistory/index.tsx
22
61
  import { memo, useCallback as useCallback2, useEffect as useEffect2, useState as useState3 } from "react";
23
- import {
24
- Box as Box2,
25
- Typography as Typography2,
26
- Table,
27
- TableBody,
28
- TableCell,
29
- TableContainer,
30
- TableHead,
31
- TableRow,
32
- TablePagination,
33
- ToggleButton,
34
- ToggleButtonGroup,
35
- IconButton,
36
- Collapse,
37
- CircularProgress as CircularProgress2,
38
- Chip,
39
- Stack as Stack2,
40
- Switch,
41
- FormControlLabel,
42
- Tooltip as Tooltip2,
43
- InputAdornment,
44
- OutlinedInput,
45
- useTheme,
46
- Paper
47
- } from "@mui/material";
48
62
 
49
63
  // call-control-sdk/lib/pages/common/components/Transcript.tsx
50
64
  import { useEffect, useState } from "react";
51
- import {
52
- Avatar,
53
- Box,
54
- CircularProgress,
55
- Rating,
56
- Stack,
57
- Tooltip,
58
- Typography
59
- } from "@mui/material";
60
65
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
61
66
  var GAUGE_COLORS = ["#e74c3c", "#e67e22", "#f1c40f", "#a3d977", "#2ecc71"];
62
67
  function scoreColor(score) {
@@ -66,13 +71,13 @@ function scoreColor(score) {
66
71
  function GaugeTooltip({ metric }) {
67
72
  var _a;
68
73
  if (!metric) return /* @__PURE__ */ jsx(Fragment, { children: "\u2014" });
69
- return /* @__PURE__ */ jsxs(Box, { sx: { maxWidth: 240 }, children: [
70
- typeof metric.Model_Prediction_Confidence_Level === "number" && /* @__PURE__ */ jsxs(Typography, { sx: { fontSize: "0.75rem", fontWeight: 600, mb: 0.5 }, children: [
74
+ return /* @__PURE__ */ jsxs(Box_default, { sx: { maxWidth: 240 }, children: [
75
+ typeof metric.Model_Prediction_Confidence_Level === "number" && /* @__PURE__ */ jsxs(Typography_default, { sx: { fontSize: "0.75rem", fontWeight: 600, mb: 0.5 }, children: [
71
76
  "Model Confidence: ",
72
77
  metric.Model_Prediction_Confidence_Level,
73
78
  "%"
74
79
  ] }),
75
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.72rem", lineHeight: 1.4 }, children: (_a = metric.Observations) != null ? _a : "" })
80
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.72rem", lineHeight: 1.4 }, children: (_a = metric.Observations) != null ? _a : "" })
76
81
  ] });
77
82
  }
78
83
  function Gauge({ score, label }) {
@@ -83,8 +88,8 @@ function Gauge({ score, label }) {
83
88
  const pct = Math.max(0, Math.min(1, score / max));
84
89
  const dash = circumference * pct;
85
90
  const color = scoreColor(score);
86
- return /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", flexDirection: "column", alignItems: "center", px: 1 }, children: [
87
- /* @__PURE__ */ jsxs(Box, { sx: { position: "relative", width: 80, height: 80 }, children: [
91
+ return /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", flexDirection: "column", alignItems: "center", px: 1 }, children: [
92
+ /* @__PURE__ */ jsxs(Box_default, { sx: { position: "relative", width: 80, height: 80 }, children: [
88
93
  /* @__PURE__ */ jsxs("svg", { width: 80, height: 80, viewBox: "0 0 80 80", children: [
89
94
  /* @__PURE__ */ jsx("circle", { cx: 40, cy: 40, r: radius, fill: "none", stroke: "#eee", strokeWidth: stroke }),
90
95
  /* @__PURE__ */ jsx(
@@ -103,7 +108,7 @@ function Gauge({ score, label }) {
103
108
  )
104
109
  ] }),
105
110
  /* @__PURE__ */ jsx(
106
- Box,
111
+ Box_default,
107
112
  {
108
113
  sx: {
109
114
  position: "absolute",
@@ -120,7 +125,7 @@ function Gauge({ score, label }) {
120
125
  )
121
126
  ] }),
122
127
  /* @__PURE__ */ jsx(
123
- Typography,
128
+ Typography_default,
124
129
  {
125
130
  sx: {
126
131
  mt: 0.5,
@@ -151,14 +156,14 @@ function ClassificationBar({ classification }) {
151
156
  };
152
157
  });
153
158
  const total = segments.reduce((s, seg) => s + seg.value, 0) || 1;
154
- return /* @__PURE__ */ jsxs(Box, { children: [
155
- /* @__PURE__ */ jsx(Stack, { direction: "row", spacing: 2, mb: 0.75, sx: { flexWrap: "wrap", rowGap: 0.5 }, children: segments.map((s) => /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.72rem", color: s.color, fontWeight: 600 }, children: s.label }, s.label)) }),
156
- /* @__PURE__ */ jsx(Box, { sx: { display: "flex", width: "100%", height: 8, borderRadius: 4, overflow: "hidden" }, children: segments.map((s) => /* @__PURE__ */ jsx(Box, { sx: { width: `${s.value / total * 100}%`, backgroundColor: s.color } }, s.label)) })
159
+ return /* @__PURE__ */ jsxs(Box_default, { children: [
160
+ /* @__PURE__ */ jsx(Stack_default, { direction: "row", spacing: 2, mb: 0.75, sx: { flexWrap: "wrap", rowGap: 0.5 }, children: segments.map((s) => /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.72rem", color: s.color, fontWeight: 600 }, children: s.label }, s.label)) }),
161
+ /* @__PURE__ */ jsx(Box_default, { sx: { display: "flex", width: "100%", height: 8, borderRadius: 4, overflow: "hidden" }, children: segments.map((s) => /* @__PURE__ */ jsx(Box_default, { sx: { width: `${s.value / total * 100}%`, backgroundColor: s.color } }, s.label)) })
157
162
  ] });
158
163
  }
159
164
  function SectionBox({ title, children }) {
160
- return /* @__PURE__ */ jsxs(Box, { sx: (t) => ({ border: `1.5px solid ${t.palette.primary.main}`, borderRadius: 1, p: 1, mb: 1.25 }), children: [
161
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.75rem", fontWeight: 700, mb: 0.5 }, children: title }),
165
+ return /* @__PURE__ */ jsxs(Box_default, { sx: (t) => ({ border: `1.5px solid ${t.palette.primary.main}`, borderRadius: 1, p: 1, mb: 1.25 }), children: [
166
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.75rem", fontWeight: 700, mb: 0.5 }, children: title }),
162
167
  children
163
168
  ] });
164
169
  }
@@ -195,7 +200,7 @@ var Transcript = ({ row }) => {
195
200
  };
196
201
  }, [row.call_uuid]);
197
202
  if (loading) {
198
- return /* @__PURE__ */ jsx(Box, { display: "flex", justifyContent: "center", py: 3, children: /* @__PURE__ */ jsx(CircularProgress, { size: 22 }) });
203
+ return /* @__PURE__ */ jsx(Box_default, { display: "flex", justifyContent: "center", py: 3, children: /* @__PURE__ */ jsx(CircularProgress_default, { size: 22 }) });
199
204
  }
200
205
  const svc = (_a = transcript == null ? void 0 : transcript.sentiment_analysis) == null ? void 0 : _a.Call_Center_Interaction_Hospital_Service;
201
206
  const summary = svc == null ? void 0 : svc.Call_Summary;
@@ -220,37 +225,37 @@ var Transcript = ({ row }) => {
220
225
  const overall = (_m = oss == null ? void 0 : oss.Sentiment_Score) != null ? _m : (patientAvg + agentAvg) / 2;
221
226
  if (!svc && lines.length === 0) {
222
227
  return /* @__PURE__ */ jsxs(Fragment, { children: [
223
- /* @__PURE__ */ jsx(Typography, { fontWeight: 600, fontSize: "0.85rem", mb: 0.5, children: "Call Details" }),
224
- /* @__PURE__ */ jsxs(Typography, { variant: "body2", fontSize: "0.82rem", children: [
228
+ /* @__PURE__ */ jsx(Typography_default, { fontWeight: 600, fontSize: "0.85rem", mb: 0.5, children: "Call Details" }),
229
+ /* @__PURE__ */ jsxs(Typography_default, { variant: "body2", fontSize: "0.82rem", children: [
225
230
  "Call UID: ",
226
231
  row.call_uuid
227
232
  ] }),
228
- /* @__PURE__ */ jsxs(Typography, { variant: "body2", fontSize: "0.82rem", children: [
233
+ /* @__PURE__ */ jsxs(Typography_default, { variant: "body2", fontSize: "0.82rem", children: [
229
234
  "Agent: ",
230
235
  (_n = row.agent_id) != null ? _n : "Unassigned"
231
236
  ] }),
232
- /* @__PURE__ */ jsx(Typography, { variant: "body2", fontSize: "0.82rem", color: "#999", mt: 1, children: "No transcript available for this call." })
237
+ /* @__PURE__ */ jsx(Typography_default, { variant: "body2", fontSize: "0.82rem", color: "#999", mt: 1, children: "No transcript available for this call." })
233
238
  ] });
234
239
  }
235
- return /* @__PURE__ */ jsxs(Box, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", md: "1fr 1fr" }, gap: 1.5 }, children: [
236
- /* @__PURE__ */ jsxs(Box, { children: [
237
- /* @__PURE__ */ jsxs(Box, { sx: { p: 1.25, border: "1px solid #e0e0e0", borderRadius: 1, backgroundColor: "#fff", mb: 1.25 }, children: [
238
- /* @__PURE__ */ jsxs(Stack, { direction: "row", alignItems: "center", justifyContent: "space-between", mb: 0.5, children: [
239
- /* @__PURE__ */ jsx(Typography, { sx: { fontWeight: 700, fontSize: "0.85rem", color: "primary.main" }, children: "Call Summary" }),
240
- /* @__PURE__ */ jsxs(Stack, { direction: "row", alignItems: "center", spacing: 0.5, children: [
241
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.75rem", color: "#555" }, children: "Overall Satisfaction:" }),
242
- /* @__PURE__ */ jsx(Rating, { size: "small", value: overall, precision: 0.5, readOnly: true })
240
+ return /* @__PURE__ */ jsxs(Box_default, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", md: "1fr 1fr" }, gap: 1.5 }, children: [
241
+ /* @__PURE__ */ jsxs(Box_default, { children: [
242
+ /* @__PURE__ */ jsxs(Box_default, { sx: { p: 1.25, border: "1px solid #e0e0e0", borderRadius: 1, backgroundColor: "#fff", mb: 1.25 }, children: [
243
+ /* @__PURE__ */ jsxs(Stack_default, { direction: "row", alignItems: "center", justifyContent: "space-between", mb: 0.5, children: [
244
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontWeight: 700, fontSize: "0.85rem", color: "primary.main" }, children: "Call Summary" }),
245
+ /* @__PURE__ */ jsxs(Stack_default, { direction: "row", alignItems: "center", spacing: 0.5, children: [
246
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.75rem", color: "#555" }, children: "Overall Satisfaction:" }),
247
+ /* @__PURE__ */ jsx(Rating_default, { size: "small", value: overall, precision: 0.5, readOnly: true })
243
248
  ] })
244
249
  ] }),
245
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.78rem", color: "#444", lineHeight: 1.45 }, children: summary != null ? summary : "-" })
250
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.78rem", color: "#444", lineHeight: 1.45 }, children: summary != null ? summary : "-" })
246
251
  ] }),
247
- lines.length > 0 ? /* @__PURE__ */ jsxs(Box, { sx: { p: 1.25, border: "1px solid #e0e0e0", borderRadius: 1, backgroundColor: "#fff" }, children: [
248
- /* @__PURE__ */ jsx(Typography, { sx: { fontWeight: 700, fontSize: "0.85rem", color: "primary.main", mb: 1 }, children: "Transcript" }),
249
- /* @__PURE__ */ jsx(Box, { sx: { maxHeight: 360, overflowY: "auto", pr: 0.5 }, children: lines.map((line, idx) => {
252
+ lines.length > 0 ? /* @__PURE__ */ jsxs(Box_default, { sx: { p: 1.25, border: "1px solid #e0e0e0", borderRadius: 1, backgroundColor: "#fff" }, children: [
253
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontWeight: 700, fontSize: "0.85rem", color: "primary.main", mb: 1 }, children: "Transcript" }),
254
+ /* @__PURE__ */ jsx(Box_default, { sx: { maxHeight: 360, overflowY: "auto", pr: 0.5 }, children: lines.map((line, idx) => {
250
255
  const isPatient = line.trim().toLowerCase().startsWith("patient");
251
256
  const text = line.replace(/^\s*(Patient|Agent)\s*:\s*/i, "");
252
257
  return /* @__PURE__ */ jsxs(
253
- Box,
258
+ Box_default,
254
259
  {
255
260
  sx: {
256
261
  display: "flex",
@@ -260,9 +265,9 @@ var Transcript = ({ row }) => {
260
265
  gap: 0.75
261
266
  },
262
267
  children: [
263
- !isPatient && /* @__PURE__ */ jsx(Avatar, { sx: { width: 22, height: 22, fontSize: 12 } }),
268
+ !isPatient && /* @__PURE__ */ jsx(Avatar_default, { sx: { width: 22, height: 22, fontSize: 12 } }),
264
269
  /* @__PURE__ */ jsx(
265
- Box,
270
+ Box_default,
266
271
  {
267
272
  sx: (t) => ({
268
273
  maxWidth: "70%",
@@ -278,36 +283,36 @@ var Transcript = ({ row }) => {
278
283
  children: text
279
284
  }
280
285
  ),
281
- isPatient && /* @__PURE__ */ jsx(Avatar, { sx: { width: 22, height: 22, fontSize: 12 } })
286
+ isPatient && /* @__PURE__ */ jsx(Avatar_default, { sx: { width: 22, height: 22, fontSize: 12 } })
282
287
  ]
283
288
  },
284
289
  idx
285
290
  );
286
291
  }) })
287
- ] }) : /* @__PURE__ */ jsxs(Box, { sx: { p: 1.25, border: "1px solid #e0e0e0", borderRadius: 1, backgroundColor: "#fff" }, children: [
288
- /* @__PURE__ */ jsx(Typography, { sx: { fontWeight: 700, fontSize: "0.9rem", color: "primary.main", mb: 1 }, children: "Key Highlights & Issues Identified" }),
289
- /* @__PURE__ */ jsxs(Box, { sx: { maxHeight: 180, overflowY: "auto", pr: 0.5 }, children: [
290
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.82rem", fontWeight: 700, color: "#2ecc71", mb: 0.5 }, children: "\u2705 Positive Aspects:" }),
291
- positives.length > 0 ? positives.map((p, i) => /* @__PURE__ */ jsxs(Typography, { sx: { fontSize: "0.78rem", color: "#333", pl: 1.5, mb: 0.25 }, children: [
292
+ ] }) : /* @__PURE__ */ jsxs(Box_default, { sx: { p: 1.25, border: "1px solid #e0e0e0", borderRadius: 1, backgroundColor: "#fff" }, children: [
293
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontWeight: 700, fontSize: "0.9rem", color: "primary.main", mb: 1 }, children: "Key Highlights & Issues Identified" }),
294
+ /* @__PURE__ */ jsxs(Box_default, { sx: { maxHeight: 180, overflowY: "auto", pr: 0.5 }, children: [
295
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.82rem", fontWeight: 700, color: "#2ecc71", mb: 0.5 }, children: "\u2705 Positive Aspects:" }),
296
+ positives.length > 0 ? positives.map((p, i) => /* @__PURE__ */ jsxs(Typography_default, { sx: { fontSize: "0.78rem", color: "#333", pl: 1.5, mb: 0.25 }, children: [
292
297
  "\u2022 ",
293
298
  p
294
- ] }, i)) : /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.78rem", color: "#999", pl: 1.5 }, children: "\u2014" }),
295
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.82rem", fontWeight: 700, color: "#e67e22", mt: 1, mb: 0.5 }, children: "\u26A0\uFE0F Areas of Improvements:" }),
296
- improvements.length > 0 ? improvements.map((p, i) => /* @__PURE__ */ jsxs(Typography, { sx: { fontSize: "0.78rem", color: "#333", pl: 1.5, mb: 0.25 }, children: [
299
+ ] }, i)) : /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.78rem", color: "#999", pl: 1.5 }, children: "\u2014" }),
300
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.82rem", fontWeight: 700, color: "#e67e22", mt: 1, mb: 0.5 }, children: "\u26A0\uFE0F Areas of Improvements:" }),
301
+ improvements.length > 0 ? improvements.map((p, i) => /* @__PURE__ */ jsxs(Typography_default, { sx: { fontSize: "0.78rem", color: "#333", pl: 1.5, mb: 0.25 }, children: [
297
302
  "\u2022 ",
298
303
  p
299
- ] }, i)) : /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.78rem", color: "#999", pl: 1.5 }, children: "\u2014" })
304
+ ] }, i)) : /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.78rem", color: "#999", pl: 1.5 }, children: "\u2014" })
300
305
  ] })
301
306
  ] })
302
307
  ] }),
303
- /* @__PURE__ */ jsxs(Box, { children: [
304
- /* @__PURE__ */ jsxs(Box, { sx: { p: 1.25, border: "1px solid #e0e0e0", borderRadius: 1, backgroundColor: "#fff", mb: lines.length > 0 ? 1.25 : 0 }, children: [
305
- /* @__PURE__ */ jsx(Typography, { sx: { fontWeight: 700, fontSize: "0.9rem", color: "primary.main", mb: 1 }, children: "Sentiment Analysis" }),
306
- /* @__PURE__ */ jsxs(Box, { sx: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: 1, mb: 1 }, children: [
308
+ /* @__PURE__ */ jsxs(Box_default, { children: [
309
+ /* @__PURE__ */ jsxs(Box_default, { sx: { p: 1.25, border: "1px solid #e0e0e0", borderRadius: 1, backgroundColor: "#fff", mb: lines.length > 0 ? 1.25 : 0 }, children: [
310
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontWeight: 700, fontSize: "0.9rem", color: "primary.main", mb: 1 }, children: "Sentiment Analysis" }),
311
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: 1, mb: 1 }, children: [
307
312
  /* @__PURE__ */ jsxs(SectionBox, { title: "Patient Sentiment", children: [
308
- /* @__PURE__ */ jsx(Stack, { direction: "row", justifyContent: "space-around", flexWrap: "wrap", mb: 0.5, children: patientAspects.map(([key, metric]) => {
313
+ /* @__PURE__ */ jsx(Stack_default, { direction: "row", justifyContent: "space-around", flexWrap: "wrap", mb: 0.5, children: patientAspects.map(([key, metric]) => {
309
314
  var _a2;
310
- return /* @__PURE__ */ jsx(Tooltip, { title: /* @__PURE__ */ jsx(GaugeTooltip, { metric }), arrow: true, children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
315
+ return /* @__PURE__ */ jsx(Tooltip_default, { title: /* @__PURE__ */ jsx(GaugeTooltip, { metric }), arrow: true, children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
311
316
  Gauge,
312
317
  {
313
318
  score: (_a2 = metric == null ? void 0 : metric.Sentiment_Score) != null ? _a2 : 0,
@@ -315,15 +320,15 @@ var Transcript = ({ row }) => {
315
320
  }
316
321
  ) }) }, key);
317
322
  }) }),
318
- /* @__PURE__ */ jsxs(Stack, { direction: "row", alignItems: "center", spacing: 0.5, children: [
319
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.7rem", fontWeight: 600 }, children: "Patient Sentiment:" }),
320
- /* @__PURE__ */ jsx(Rating, { size: "small", value: patientAvg, precision: 0.5, readOnly: true })
323
+ /* @__PURE__ */ jsxs(Stack_default, { direction: "row", alignItems: "center", spacing: 0.5, children: [
324
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.7rem", fontWeight: 600 }, children: "Patient Sentiment:" }),
325
+ /* @__PURE__ */ jsx(Rating_default, { size: "small", value: patientAvg, precision: 0.5, readOnly: true })
321
326
  ] })
322
327
  ] }),
323
328
  /* @__PURE__ */ jsxs(SectionBox, { title: "Agent Performance", children: [
324
- /* @__PURE__ */ jsx(Stack, { direction: "row", justifyContent: "space-around", flexWrap: "wrap", mb: 0.5, children: agentAspects.map(([key, metric]) => {
329
+ /* @__PURE__ */ jsx(Stack_default, { direction: "row", justifyContent: "space-around", flexWrap: "wrap", mb: 0.5, children: agentAspects.map(([key, metric]) => {
325
330
  var _a2;
326
- return /* @__PURE__ */ jsx(Tooltip, { title: /* @__PURE__ */ jsx(GaugeTooltip, { metric }), arrow: true, children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
331
+ return /* @__PURE__ */ jsx(Tooltip_default, { title: /* @__PURE__ */ jsx(GaugeTooltip, { metric }), arrow: true, children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
327
332
  Gauge,
328
333
  {
329
334
  score: (_a2 = metric == null ? void 0 : metric.Sentiment_Score) != null ? _a2 : 0,
@@ -331,27 +336,27 @@ var Transcript = ({ row }) => {
331
336
  }
332
337
  ) }) }, key);
333
338
  }) }),
334
- /* @__PURE__ */ jsxs(Stack, { direction: "row", alignItems: "center", spacing: 0.5, children: [
335
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.7rem", fontWeight: 600 }, children: "Agent Performance:" }),
336
- /* @__PURE__ */ jsx(Rating, { size: "small", value: agentAvg, precision: 0.5, readOnly: true })
339
+ /* @__PURE__ */ jsxs(Stack_default, { direction: "row", alignItems: "center", spacing: 0.5, children: [
340
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.7rem", fontWeight: 600 }, children: "Agent Performance:" }),
341
+ /* @__PURE__ */ jsx(Rating_default, { size: "small", value: agentAvg, precision: 0.5, readOnly: true })
337
342
  ] })
338
343
  ] })
339
344
  ] }),
340
345
  /* @__PURE__ */ jsx(SectionBox, { title: "Conversation Classification", children: /* @__PURE__ */ jsx(ClassificationBar, { classification }) })
341
346
  ] }),
342
- lines.length > 0 && /* @__PURE__ */ jsxs(Box, { sx: { p: 1.25, border: "1px solid #e0e0e0", borderRadius: 1, backgroundColor: "#fff" }, children: [
343
- /* @__PURE__ */ jsx(Typography, { sx: { fontWeight: 700, fontSize: "0.9rem", color: "primary.main", mb: 1 }, children: "Key Highlights & Issues Identified" }),
344
- /* @__PURE__ */ jsxs(Box, { sx: { maxHeight: 180, overflowY: "auto", pr: 0.5 }, children: [
345
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.82rem", fontWeight: 700, color: "#2ecc71", mb: 0.5 }, children: "\u2705 Positive Aspects:" }),
346
- positives.length > 0 ? positives.map((p, i) => /* @__PURE__ */ jsxs(Typography, { sx: { fontSize: "0.78rem", color: "#333", pl: 1.5, mb: 0.25 }, children: [
347
+ lines.length > 0 && /* @__PURE__ */ jsxs(Box_default, { sx: { p: 1.25, border: "1px solid #e0e0e0", borderRadius: 1, backgroundColor: "#fff" }, children: [
348
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontWeight: 700, fontSize: "0.9rem", color: "primary.main", mb: 1 }, children: "Key Highlights & Issues Identified" }),
349
+ /* @__PURE__ */ jsxs(Box_default, { sx: { maxHeight: 180, overflowY: "auto", pr: 0.5 }, children: [
350
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.82rem", fontWeight: 700, color: "#2ecc71", mb: 0.5 }, children: "\u2705 Positive Aspects:" }),
351
+ positives.length > 0 ? positives.map((p, i) => /* @__PURE__ */ jsxs(Typography_default, { sx: { fontSize: "0.78rem", color: "#333", pl: 1.5, mb: 0.25 }, children: [
347
352
  "\u2022 ",
348
353
  p
349
- ] }, i)) : /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.78rem", color: "#999", pl: 1.5 }, children: "\u2014" }),
350
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.82rem", fontWeight: 700, color: "#e67e22", mt: 1, mb: 0.5 }, children: "\u26A0\uFE0F Areas of Improvements:" }),
351
- improvements.length > 0 ? improvements.map((p, i) => /* @__PURE__ */ jsxs(Typography, { sx: { fontSize: "0.78rem", color: "#333", pl: 1.5, mb: 0.25 }, children: [
354
+ ] }, i)) : /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.78rem", color: "#999", pl: 1.5 }, children: "\u2014" }),
355
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.82rem", fontWeight: 700, color: "#e67e22", mt: 1, mb: 0.5 }, children: "\u26A0\uFE0F Areas of Improvements:" }),
356
+ improvements.length > 0 ? improvements.map((p, i) => /* @__PURE__ */ jsxs(Typography_default, { sx: { fontSize: "0.78rem", color: "#333", pl: 1.5, mb: 0.25 }, children: [
352
357
  "\u2022 ",
353
358
  p
354
- ] }, i)) : /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.78rem", color: "#999", pl: 1.5 }, children: "\u2014" })
359
+ ] }, i)) : /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.78rem", color: "#999", pl: 1.5 }, children: "\u2014" })
355
360
  ] })
356
361
  ] })
357
362
  ] })
@@ -359,13 +364,11 @@ var Transcript = ({ row }) => {
359
364
  };
360
365
  var Transcript_default = Transcript;
361
366
 
362
- // call-control-sdk/lib/pages/callHistory/index.tsx
363
- import KeyboardArrowDown from "@mui/icons-material/KeyboardArrowDown";
364
- import PlayArrow from "@mui/icons-material/PlayArrow";
365
- import ExpandLess from "@mui/icons-material/ExpandLess";
366
- import Search from "@mui/icons-material/Search";
367
- import Phone from "@mui/icons-material/Phone";
368
- import RefreshIcon from "@mui/icons-material/Refresh";
367
+ // node_modules/@mui/icons-material/ExpandLess.mjs
368
+ import { jsx as _jsx } from "react/jsx-runtime";
369
+ var ExpandLess_default = createSvgIcon(/* @__PURE__ */ _jsx("path", {
370
+ d: "m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"
371
+ }), "ExpandLess");
369
372
 
370
373
  // call-control-sdk/lib/pages/callHistory/useCallHistory.ts
371
374
  import { useState as useState2, useCallback } from "react";
@@ -551,17 +554,17 @@ var CallHistoryContent = memo(() => {
551
554
  const q = search.toLowerCase();
552
555
  return ((_a = c.agentId) == null ? void 0 : _a.toLowerCase().includes(q)) || ((_b = c.username) == null ? void 0 : _b.toLowerCase().includes(q)) || ((_c = c.mobileNumber) == null ? void 0 : _c.toLowerCase().includes(q));
553
556
  });
554
- return /* @__PURE__ */ jsxs2(Box2, { children: [
557
+ return /* @__PURE__ */ jsxs2(Box_default, { children: [
555
558
  /* @__PURE__ */ jsx2(
556
559
  SDKPageHeader,
557
560
  {
558
561
  title: "Call History",
559
- actions: /* @__PURE__ */ jsxs2(Stack2, { direction: "row", alignItems: "center", spacing: 1, children: [
562
+ actions: /* @__PURE__ */ jsxs2(Stack_default, { direction: "row", alignItems: "center", spacing: 1, children: [
560
563
  /* @__PURE__ */ jsx2(
561
564
  AppButton,
562
565
  {
563
566
  size: "small",
564
- startIcon: loading ? /* @__PURE__ */ jsx2(CircularProgress2, { size: 14, color: "inherit" }) : /* @__PURE__ */ jsx2(RefreshIcon, { sx: { fontSize: "0.95rem !important" } }),
567
+ startIcon: loading ? /* @__PURE__ */ jsx2(CircularProgress_default, { size: 14, color: "inherit" }) : /* @__PURE__ */ jsx2(Refresh_default, { sx: { fontSize: "0.95rem !important" } }),
565
568
  onClick: () => showMissedCalls ? fetchMissedCalls() : fetchCallHistory({
566
569
  page: page + 1,
567
570
  pageSize: rowsPerPage,
@@ -574,7 +577,7 @@ var CallHistoryContent = memo(() => {
574
577
  }
575
578
  ),
576
579
  /* @__PURE__ */ jsx2(
577
- OutlinedInput,
580
+ OutlinedInput_default,
578
581
  {
579
582
  size: "small",
580
583
  value: search,
@@ -584,19 +587,19 @@ var CallHistoryContent = memo(() => {
584
587
  },
585
588
  placeholder: "Search",
586
589
  sx: { width: 220, fontSize: "0.82rem", height: 36 },
587
- endAdornment: /* @__PURE__ */ jsx2(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx2(Search, { sx: { fontSize: 18, color: "#999" } }) })
590
+ endAdornment: /* @__PURE__ */ jsx2(InputAdornment_default, { position: "end", children: /* @__PURE__ */ jsx2(Search_default, { sx: { fontSize: 18, color: "#999" } }) })
588
591
  }
589
592
  )
590
593
  ] })
591
594
  }
592
595
  ),
593
- /* @__PURE__ */ jsxs2(Box2, { py: 1.5, px: 2, children: [
594
- /* @__PURE__ */ jsxs2(Stack2, { direction: "row", spacing: 2, alignItems: "center", mb: 2, children: [
596
+ /* @__PURE__ */ jsxs2(Box_default, { py: 1.5, px: 2, children: [
597
+ /* @__PURE__ */ jsxs2(Stack_default, { direction: "row", spacing: 2, alignItems: "center", mb: 2, children: [
595
598
  /* @__PURE__ */ jsx2(
596
- FormControlLabel,
599
+ FormControlLabel_default,
597
600
  {
598
601
  control: /* @__PURE__ */ jsx2(
599
- Switch,
602
+ Switch_default,
600
603
  {
601
604
  size: "small",
602
605
  checked: showMissedCalls,
@@ -606,12 +609,12 @@ var CallHistoryContent = memo(() => {
606
609
  }
607
610
  }
608
611
  ),
609
- label: /* @__PURE__ */ jsx2(Typography2, { sx: { fontSize: "0.8rem", color: "#555" }, children: "Missed Calls" }),
612
+ label: /* @__PURE__ */ jsx2(Typography_default, { sx: { fontSize: "0.8rem", color: "#555" }, children: "Missed Calls" }),
610
613
  sx: { ml: 0 }
611
614
  }
612
615
  ),
613
616
  /* @__PURE__ */ jsxs2(
614
- ToggleButtonGroup,
617
+ ToggleButtonGroup_default,
615
618
  {
616
619
  value: filter,
617
620
  exclusive: true,
@@ -645,17 +648,17 @@ var CallHistoryContent = memo(() => {
645
648
  }
646
649
  },
647
650
  children: [
648
- /* @__PURE__ */ jsx2(ToggleButton, { value: "ALL", children: "All" }),
649
- /* @__PURE__ */ jsx2(ToggleButton, { value: "INCOMING", children: "Inbound" }),
650
- /* @__PURE__ */ jsx2(ToggleButton, { value: "OUTGOING", children: "Outbound" })
651
+ /* @__PURE__ */ jsx2(ToggleButton_default, { value: "ALL", children: "All" }),
652
+ /* @__PURE__ */ jsx2(ToggleButton_default, { value: "INCOMING", children: "Inbound" }),
653
+ /* @__PURE__ */ jsx2(ToggleButton_default, { value: "OUTGOING", children: "Outbound" })
651
654
  ]
652
655
  }
653
656
  )
654
657
  ] }),
655
- /* @__PURE__ */ jsxs2(TableContainer, { component: Paper, variant: "outlined", sx: { display: "flex", flexDirection: "column" }, children: [
656
- /* @__PURE__ */ jsx2(Box2, { sx: { overflowY: "auto", maxHeight: 600 }, children: /* @__PURE__ */ jsx2(Table, { stickyHeader: true, size: "small", children: showMissedCalls ? /* @__PURE__ */ jsxs2(Fragment2, { children: [
657
- /* @__PURE__ */ jsx2(TableHead, { children: /* @__PURE__ */ jsx2(TableRow, { children: MISSED_CALLS_COLS.map((col) => /* @__PURE__ */ jsx2(
658
- TableCell,
658
+ /* @__PURE__ */ jsxs2(TableContainer_default, { component: Paper_default, variant: "outlined", sx: { display: "flex", flexDirection: "column" }, children: [
659
+ /* @__PURE__ */ jsx2(Box_default, { sx: { overflowY: "auto", maxHeight: 600 }, children: /* @__PURE__ */ jsx2(Table_default, { stickyHeader: true, size: "small", children: showMissedCalls ? /* @__PURE__ */ jsxs2(Fragment2, { children: [
660
+ /* @__PURE__ */ jsx2(TableHead_default, { children: /* @__PURE__ */ jsx2(TableRow_default, { children: MISSED_CALLS_COLS.map((col) => /* @__PURE__ */ jsx2(
661
+ TableCell_default,
659
662
  {
660
663
  align: CENTER_COLS.has(col) ? "center" : "left",
661
664
  sx: { fontWeight: 600, backgroundColor: "#f1f1f1", fontSize: "0.8rem" },
@@ -663,10 +666,10 @@ var CallHistoryContent = memo(() => {
663
666
  },
664
667
  col
665
668
  )) }) }),
666
- /* @__PURE__ */ jsx2(TableBody, { children: loading ? /* @__PURE__ */ jsx2(TableRow, { children: /* @__PURE__ */ jsx2(TableCell, { colSpan: 5, align: "center", sx: { py: 4 }, children: /* @__PURE__ */ jsx2(CircularProgress2, { size: 24 }) }) }) : filteredMissedCalls.length === 0 ? /* @__PURE__ */ jsx2(TableRow, { children: /* @__PURE__ */ jsx2(TableCell, { colSpan: 5, align: "center", sx: { py: 4, color: "#999", fontSize: "0.82rem" }, children: "No Records Found" }) }) : filteredMissedCalls.slice(page * rowsPerPage, (page + 1) * rowsPerPage).map((row, i) => /* @__PURE__ */ jsx2(MissedCallRow, { row }, `${row.agentId}-${row.mobileNumber}-${i}`)) })
669
+ /* @__PURE__ */ jsx2(TableBody_default, { children: loading ? /* @__PURE__ */ jsx2(TableRow_default, { children: /* @__PURE__ */ jsx2(TableCell_default, { colSpan: 5, align: "center", sx: { py: 4 }, children: /* @__PURE__ */ jsx2(CircularProgress_default, { size: 24 }) }) }) : filteredMissedCalls.length === 0 ? /* @__PURE__ */ jsx2(TableRow_default, { children: /* @__PURE__ */ jsx2(TableCell_default, { colSpan: 5, align: "center", sx: { py: 4, color: "#999", fontSize: "0.82rem" }, children: "No Records Found" }) }) : filteredMissedCalls.slice(page * rowsPerPage, (page + 1) * rowsPerPage).map((row, i) => /* @__PURE__ */ jsx2(MissedCallRow, { row }, `${row.agentId}-${row.mobileNumber}-${i}`)) })
667
670
  ] }) : /* @__PURE__ */ jsxs2(Fragment2, { children: [
668
- /* @__PURE__ */ jsx2(TableHead, { children: /* @__PURE__ */ jsx2(TableRow, { children: CALL_HISTORY_COLS.map((col) => /* @__PURE__ */ jsx2(
669
- TableCell,
671
+ /* @__PURE__ */ jsx2(TableHead_default, { children: /* @__PURE__ */ jsx2(TableRow_default, { children: CALL_HISTORY_COLS.map((col) => /* @__PURE__ */ jsx2(
672
+ TableCell_default,
670
673
  {
671
674
  align: CENTER_COLS.has(col) ? "center" : "left",
672
675
  sx: { fontWeight: 600, backgroundColor: "#f1f1f1", fontSize: "0.8rem" },
@@ -674,7 +677,7 @@ var CallHistoryContent = memo(() => {
674
677
  },
675
678
  col
676
679
  )) }) }),
677
- /* @__PURE__ */ jsx2(TableBody, { children: loading ? /* @__PURE__ */ jsx2(TableRow, { children: /* @__PURE__ */ jsx2(TableCell, { colSpan: 8, align: "center", sx: { py: 4 }, children: /* @__PURE__ */ jsx2(CircularProgress2, {}) }) }) : filteredCalls.length === 0 ? /* @__PURE__ */ jsx2(TableRow, { children: /* @__PURE__ */ jsx2(TableCell, { colSpan: 8, align: "center", sx: { py: 4, color: "#999", fontSize: "0.82rem" }, children: "No Records Found" }) }) : filteredCalls.map((row, i) => /* @__PURE__ */ jsx2(
680
+ /* @__PURE__ */ jsx2(TableBody_default, { children: loading ? /* @__PURE__ */ jsx2(TableRow_default, { children: /* @__PURE__ */ jsx2(TableCell_default, { colSpan: 8, align: "center", sx: { py: 4 }, children: /* @__PURE__ */ jsx2(CircularProgress_default, {}) }) }) : filteredCalls.length === 0 ? /* @__PURE__ */ jsx2(TableRow_default, { children: /* @__PURE__ */ jsx2(TableCell_default, { colSpan: 8, align: "center", sx: { py: 4, color: "#999", fontSize: "0.82rem" }, children: "No Records Found" }) }) : filteredCalls.map((row, i) => /* @__PURE__ */ jsx2(
678
681
  ExpandableRow,
679
682
  {
680
683
  row,
@@ -686,7 +689,7 @@ var CallHistoryContent = memo(() => {
686
689
  )) })
687
690
  ] }) }) }),
688
691
  /* @__PURE__ */ jsx2(
689
- TablePagination,
692
+ TablePagination_default,
690
693
  {
691
694
  component: "div",
692
695
  count: showMissedCalls ? filteredMissedCalls.length : callsTotal,
@@ -708,17 +711,17 @@ var CallHistoryContent = memo(() => {
708
711
  CallHistoryContent.displayName = "CallHistoryContent";
709
712
  var MissedCallRow = memo(({ row }) => {
710
713
  const theme = useTheme();
711
- return /* @__PURE__ */ jsxs2(TableRow, { hover: true, children: [
712
- /* @__PURE__ */ jsx2(TableCell, { sx: { fontSize: "0.82rem", color: theme.palette.primary.main }, children: row.agentId }),
713
- /* @__PURE__ */ jsx2(TableCell, { sx: { fontSize: "0.82rem" }, children: row.username }),
714
- /* @__PURE__ */ jsxs2(TableCell, { sx: { fontSize: "0.82rem" }, children: [
714
+ return /* @__PURE__ */ jsxs2(TableRow_default, { hover: true, children: [
715
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: { fontSize: "0.82rem", color: theme.palette.primary.main }, children: row.agentId }),
716
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: { fontSize: "0.82rem" }, children: row.username }),
717
+ /* @__PURE__ */ jsxs2(TableCell_default, { sx: { fontSize: "0.82rem" }, children: [
715
718
  row.mobileNumber,
716
719
  " (",
717
720
  row.callCount,
718
721
  ")"
719
722
  ] }),
720
- /* @__PURE__ */ jsx2(TableCell, { sx: { fontSize: "0.82rem", textTransform: "uppercase" }, children: row.callType }),
721
- /* @__PURE__ */ jsx2(TableCell, { align: "center", children: /* @__PURE__ */ jsx2(Phone, { sx: { color: "#c0392b", fontSize: 20, cursor: "pointer" } }) })
723
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: { fontSize: "0.82rem", textTransform: "uppercase" }, children: row.callType }),
724
+ /* @__PURE__ */ jsx2(TableCell_default, { align: "center", children: /* @__PURE__ */ jsx2(Phone_default, { sx: { color: "#c0392b", fontSize: 20, cursor: "pointer" } }) })
722
725
  ] });
723
726
  });
724
727
  MissedCallRow.displayName = "MissedCallRow";
@@ -768,40 +771,40 @@ function ExpandableRow({
768
771
  const bg = striped ? "#fafafa" : "white";
769
772
  const cellSx = { fontSize: "0.82rem", backgroundColor: bg };
770
773
  return /* @__PURE__ */ jsxs2(Fragment2, { children: [
771
- /* @__PURE__ */ jsxs2(TableRow, { hover: true, children: [
772
- /* @__PURE__ */ jsx2(TableCell, { sx: __spreadProps(__spreadValues({}, cellSx), { maxWidth: 130 }), children: /* @__PURE__ */ jsx2(Tooltip2, { title: row.call_uuid, arrow: true, children: /* @__PURE__ */ jsx2(
773
- Typography2,
774
+ /* @__PURE__ */ jsxs2(TableRow_default, { hover: true, children: [
775
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: __spreadProps(__spreadValues({}, cellSx), { maxWidth: 130 }), children: /* @__PURE__ */ jsx2(Tooltip_default, { title: row.call_uuid, arrow: true, children: /* @__PURE__ */ jsx2(
776
+ Typography_default,
774
777
  {
775
778
  noWrap: true,
776
779
  sx: { fontSize: 13, maxWidth: 130, overflow: "hidden", textOverflow: "ellipsis" },
777
780
  children: row.call_uuid
778
781
  }
779
782
  ) }) }),
780
- /* @__PURE__ */ jsx2(TableCell, { sx: cellSx, children: row.mobile_no }),
781
- /* @__PURE__ */ jsx2(TableCell, { align: "center", sx: cellSx, children: /* @__PURE__ */ jsx2(
782
- Chip,
783
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: cellSx, children: row.mobile_no }),
784
+ /* @__PURE__ */ jsx2(TableCell_default, { align: "center", sx: cellSx, children: /* @__PURE__ */ jsx2(
785
+ Chip_default,
783
786
  {
784
787
  size: "small",
785
788
  label: row.call_type,
786
789
  color: row.call_type === "INCOMING" ? "success" : "primary"
787
790
  }
788
791
  ) }),
789
- /* @__PURE__ */ jsx2(TableCell, { sx: cellSx, children: new Date(row.start_time).toLocaleString() }),
790
- /* @__PURE__ */ jsx2(TableCell, { sx: cellSx, children: row.end_time ? new Date(row.end_time).toLocaleString() : "\u2014" }),
791
- /* @__PURE__ */ jsx2(TableCell, { align: "center", sx: cellSx, children: row.recording.available ? /* @__PURE__ */ jsx2(
792
- IconButton,
792
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: cellSx, children: new Date(row.start_time).toLocaleString() }),
793
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: cellSx, children: row.end_time ? new Date(row.end_time).toLocaleString() : "\u2014" }),
794
+ /* @__PURE__ */ jsx2(TableCell_default, { align: "center", sx: cellSx, children: row.recording.available ? /* @__PURE__ */ jsx2(
795
+ IconButton_default,
793
796
  {
794
797
  color: "primary",
795
798
  onClick: handlePlay,
796
799
  disabled: loadingAudio,
797
800
  size: "small",
798
- children: loadingAudio ? /* @__PURE__ */ jsx2(CircularProgress2, { size: 18 }) : /* @__PURE__ */ jsx2(PlayArrow, {})
801
+ children: loadingAudio ? /* @__PURE__ */ jsx2(CircularProgress_default, { size: 18 }) : /* @__PURE__ */ jsx2(PlayArrow_default, {})
799
802
  }
800
- ) : /* @__PURE__ */ jsx2(Chip, { size: "small", label: "No File" }) }),
801
- /* @__PURE__ */ jsx2(TableCell, { align: "center", sx: cellSx, children: (_a = row.agent_id) != null ? _a : "" }),
802
- /* @__PURE__ */ jsx2(TableCell, { align: "center", sx: cellSx, children: /* @__PURE__ */ jsx2(IconButton, { onClick: handleToggle, size: "small", children: open ? /* @__PURE__ */ jsx2(ExpandLess, {}) : /* @__PURE__ */ jsx2(KeyboardArrowDown, {}) }) })
803
+ ) : /* @__PURE__ */ jsx2(Chip_default, { size: "small", label: "No File" }) }),
804
+ /* @__PURE__ */ jsx2(TableCell_default, { align: "center", sx: cellSx, children: (_a = row.agent_id) != null ? _a : "" }),
805
+ /* @__PURE__ */ jsx2(TableCell_default, { align: "center", sx: cellSx, children: /* @__PURE__ */ jsx2(IconButton_default, { onClick: handleToggle, size: "small", children: open ? /* @__PURE__ */ jsx2(ExpandLess_default, {}) : /* @__PURE__ */ jsx2(KeyboardArrowDown_default, {}) }) })
803
806
  ] }),
804
- audioURL && /* @__PURE__ */ jsx2(TableRow, { children: /* @__PURE__ */ jsx2(TableCell, { colSpan: 8, sx: { p: 0 }, children: /* @__PURE__ */ jsx2(Box2, { p: 2, children: /* @__PURE__ */ jsx2(
807
+ audioURL && /* @__PURE__ */ jsx2(TableRow_default, { children: /* @__PURE__ */ jsx2(TableCell_default, { colSpan: 8, sx: { p: 0 }, children: /* @__PURE__ */ jsx2(Box_default, { p: 2, children: /* @__PURE__ */ jsx2(
805
808
  "audio",
806
809
  {
807
810
  controls: true,
@@ -811,7 +814,7 @@ function ExpandableRow({
811
814
  style: { width: "100%" }
812
815
  }
813
816
  ) }) }) }),
814
- /* @__PURE__ */ jsx2(TableRow, { children: /* @__PURE__ */ jsx2(TableCell, { colSpan: 8, sx: { p: 0 }, children: /* @__PURE__ */ jsx2(Collapse, { in: open, unmountOnExit: true, children: /* @__PURE__ */ jsx2(Box2, { p: 2, bgcolor: "#f9fafc", borderTop: "1px solid #eee", children: open && /* @__PURE__ */ jsx2(Transcript_default, { row }) }) }) }) })
817
+ /* @__PURE__ */ jsx2(TableRow_default, { children: /* @__PURE__ */ jsx2(TableCell_default, { colSpan: 8, sx: { p: 0 }, children: /* @__PURE__ */ jsx2(Collapse_default, { in: open, unmountOnExit: true, children: /* @__PURE__ */ jsx2(Box_default, { p: 2, bgcolor: "#f9fafc", borderTop: "1px solid #eee", children: open && /* @__PURE__ */ jsx2(Transcript_default, { row }) }) }) }) })
815
818
  ] });
816
819
  }
817
820
  var CallHistory = () => /* @__PURE__ */ jsx2(SDKProvider, { children: /* @__PURE__ */ jsx2(CallHistoryContent, {}) });
@@ -819,4 +822,4 @@ var callHistory_default = CallHistory;
819
822
  export {
820
823
  callHistory_default as default
821
824
  };
822
- //# sourceMappingURL=callHistory-4JI64TU7.mjs.map
825
+ //# sourceMappingURL=callHistory-T3M76D4B.mjs.map