ahs-cti 0.0.5 → 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 (81) hide show
  1. package/dist/agentDetailReport-ZR7U2LLB.mjs +17 -0
  2. package/dist/{agentPerformanceReport-U2QGVTXF.mjs → agentPerformanceReport-JZK5DN5E.mjs} +59 -57
  3. package/dist/{agentPerformanceReport-U2QGVTXF.mjs.map → agentPerformanceReport-JZK5DN5E.mjs.map} +1 -1
  4. package/dist/{auditReport-DEVQDTDT.mjs → auditReport-6ZUJ4UFO.mjs} +5 -5
  5. package/dist/{callHistory-MRBBY3UO.mjs → callHistory-T3M76D4B.mjs} +147 -156
  6. package/dist/{callHistory-MRBBY3UO.mjs.map → callHistory-T3M76D4B.mjs.map} +1 -1
  7. package/dist/{campaigns-ERO3QM6I.mjs → campaigns-5PVHXBSD.mjs} +384 -386
  8. package/dist/{campaigns-ERO3QM6I.mjs.map → campaigns-5PVHXBSD.mjs.map} +1 -1
  9. package/dist/{caroQualityAuditDashboard-NRWY6SEC.mjs → caroQualityAuditDashboard-EUDYZ3QY.mjs} +6 -5
  10. package/dist/{caroQualityAuditDashboard-NRWY6SEC.mjs.map → caroQualityAuditDashboard-EUDYZ3QY.mjs.map} +1 -1
  11. package/dist/{caroVoiceAI-Z5BDDDSY.mjs → caroVoiceAI-GGJCVUIQ.mjs} +5 -4
  12. package/dist/{caroVoiceAI-Z5BDDDSY.mjs.map → caroVoiceAI-GGJCVUIQ.mjs.map} +1 -1
  13. package/dist/{cdrReport-EZNOCELK.mjs → cdrReport-ZMDHSZUW.mjs} +101 -100
  14. package/dist/{cdrReport-EZNOCELK.mjs.map → cdrReport-ZMDHSZUW.mjs.map} +1 -1
  15. package/dist/{chunk-53DYH64M.mjs → chunk-2M3YEXYA.mjs} +91 -64
  16. package/dist/chunk-2M3YEXYA.mjs.map +1 -0
  17. package/dist/{chunk-ISQBOS5Q.mjs → chunk-33QNSXP7.mjs} +160 -160
  18. package/dist/{chunk-ISQBOS5Q.mjs.map → chunk-33QNSXP7.mjs.map} +1 -1
  19. package/dist/{chunk-YFW47Y76.mjs → chunk-3J7KQNEU.mjs} +15 -12
  20. package/dist/{chunk-YFW47Y76.mjs.map → chunk-3J7KQNEU.mjs.map} +1 -1
  21. package/dist/{chunk-MBHP7UOP.mjs → chunk-6WLG2PXL.mjs} +2 -2
  22. package/dist/{chunk-MBXHRFGP.mjs → chunk-7LE2VTAI.mjs} +2 -2
  23. package/dist/{chunk-MFZKONNR.mjs → chunk-AOJRUZTO.mjs} +2 -2
  24. package/dist/chunk-DF5EFKXC.mjs +28690 -0
  25. package/dist/chunk-DF5EFKXC.mjs.map +1 -0
  26. package/dist/{chunk-5FSMIU5K.mjs → chunk-DJP744FF.mjs} +2 -2
  27. package/dist/{chunk-BVQNDAS6.mjs → chunk-DNTGBNZD.mjs} +18 -14
  28. package/dist/{chunk-BVQNDAS6.mjs.map → chunk-DNTGBNZD.mjs.map} +1 -1
  29. package/dist/{chunk-AJQBR3AZ.mjs → chunk-E6KYWWAI.mjs} +4243 -7804
  30. package/dist/chunk-E6KYWWAI.mjs.map +1 -0
  31. package/dist/{chunk-3DOSR6LQ.mjs → chunk-FRKV2U3I.mjs} +2 -2
  32. package/dist/{chunk-ICGEHYJL.mjs → chunk-H7GRWLYI.mjs} +5 -5
  33. package/dist/{chunk-6MURUWDX.mjs → chunk-IDZWA6HG.mjs} +154 -156
  34. package/dist/{chunk-6MURUWDX.mjs.map → chunk-IDZWA6HG.mjs.map} +1 -1
  35. package/dist/chunk-LHE4QGJJ.mjs +10920 -0
  36. package/dist/chunk-LHE4QGJJ.mjs.map +1 -0
  37. package/dist/{chunk-HBR2JS4C.mjs → chunk-NAZO4HKB.mjs} +8 -4
  38. package/dist/{chunk-HBR2JS4C.mjs.map → chunk-NAZO4HKB.mjs.map} +1 -1
  39. package/dist/{chunk-DXZIYCNQ.mjs → chunk-OHJIW3I3.mjs} +2 -2
  40. package/dist/chunk-Q6G3MPS7.mjs +37797 -0
  41. package/dist/chunk-Q6G3MPS7.mjs.map +1 -0
  42. package/dist/{chunk-QPOHVXUK.mjs → chunk-U2UDKXMB.mjs} +2 -2
  43. package/dist/{chunk-XMRM5VR4.mjs → chunk-VBIDPX5Z.mjs} +18 -14
  44. package/dist/{chunk-XMRM5VR4.mjs.map → chunk-VBIDPX5Z.mjs.map} +1 -1
  45. package/dist/{chunk-6ICPXSN6.mjs → chunk-VVDJLUYT.mjs} +8 -4
  46. package/dist/{chunk-6ICPXSN6.mjs.map → chunk-VVDJLUYT.mjs.map} +1 -1
  47. package/dist/{chunk-XA5SCAZJ.mjs → chunk-WTBVFN4H.mjs} +2 -2
  48. package/dist/{chunk-RSL5OBRQ.mjs → chunk-YAQYTUTX.mjs} +2 -2
  49. package/dist/index.js +117240 -32148
  50. package/dist/index.js.map +1 -1
  51. package/dist/index.mjs +276 -296
  52. package/dist/index.mjs.map +1 -1
  53. package/dist/{liveStatus-F6AKCC27.mjs → liveStatus-YSBYSVOO.mjs} +123 -122
  54. package/dist/{liveStatus-F6AKCC27.mjs.map → liveStatus-YSBYSVOO.mjs.map} +1 -1
  55. package/dist/{loginReport-MWTI4G6O.mjs → loginReport-YIVBJVJD.mjs} +118 -116
  56. package/dist/{loginReport-MWTI4G6O.mjs.map → loginReport-YIVBJVJD.mjs.map} +1 -1
  57. package/dist/managementDashboard-7EMQC2UA.mjs +536 -0
  58. package/dist/{managementDashboard-6UBOCLBA.mjs.map → managementDashboard-7EMQC2UA.mjs.map} +1 -1
  59. package/dist/{qualityAuditDashboard-ZJEEAMBS.mjs → qualityAuditDashboard-ENGQN2WQ.mjs} +6 -5
  60. package/dist/{qualityAuditDashboard-ZJEEAMBS.mjs.map → qualityAuditDashboard-ENGQN2WQ.mjs.map} +1 -1
  61. package/package.json +1 -1
  62. package/dist/agentDetailReport-F7XZLVVO.mjs +0 -16
  63. package/dist/chunk-53DYH64M.mjs.map +0 -1
  64. package/dist/chunk-AJQBR3AZ.mjs.map +0 -1
  65. package/dist/chunk-Q7FIRWF2.mjs +0 -1067
  66. package/dist/chunk-Q7FIRWF2.mjs.map +0 -1
  67. package/dist/chunk-UB5HSUGK.mjs +0 -65
  68. package/dist/chunk-UB5HSUGK.mjs.map +0 -1
  69. package/dist/managementDashboard-6UBOCLBA.mjs +0 -536
  70. /package/dist/{agentDetailReport-F7XZLVVO.mjs.map → agentDetailReport-ZR7U2LLB.mjs.map} +0 -0
  71. /package/dist/{auditReport-DEVQDTDT.mjs.map → auditReport-6ZUJ4UFO.mjs.map} +0 -0
  72. /package/dist/{chunk-MBHP7UOP.mjs.map → chunk-6WLG2PXL.mjs.map} +0 -0
  73. /package/dist/{chunk-MBXHRFGP.mjs.map → chunk-7LE2VTAI.mjs.map} +0 -0
  74. /package/dist/{chunk-MFZKONNR.mjs.map → chunk-AOJRUZTO.mjs.map} +0 -0
  75. /package/dist/{chunk-5FSMIU5K.mjs.map → chunk-DJP744FF.mjs.map} +0 -0
  76. /package/dist/{chunk-3DOSR6LQ.mjs.map → chunk-FRKV2U3I.mjs.map} +0 -0
  77. /package/dist/{chunk-ICGEHYJL.mjs.map → chunk-H7GRWLYI.mjs.map} +0 -0
  78. /package/dist/{chunk-DXZIYCNQ.mjs.map → chunk-OHJIW3I3.mjs.map} +0 -0
  79. /package/dist/{chunk-QPOHVXUK.mjs.map → chunk-U2UDKXMB.mjs.map} +0 -0
  80. /package/dist/{chunk-XA5SCAZJ.mjs.map → chunk-WTBVFN4H.mjs.map} +0 -0
  81. /package/dist/{chunk-RSL5OBRQ.mjs.map → chunk-YAQYTUTX.mjs.map} +0 -0
@@ -1,76 +1,67 @@
1
1
  import {
2
2
  KeyboardArrowDown_default
3
- } from "./chunk-DXZIYCNQ.mjs";
3
+ } from "./chunk-OHJIW3I3.mjs";
4
4
  import {
5
5
  SDKPageHeader
6
- } from "./chunk-BVQNDAS6.mjs";
6
+ } from "./chunk-DNTGBNZD.mjs";
7
7
  import {
8
8
  Phone_default
9
- } from "./chunk-MBHP7UOP.mjs";
9
+ } from "./chunk-6WLG2PXL.mjs";
10
10
  import {
11
11
  PlayArrow_default
12
- } from "./chunk-MBXHRFGP.mjs";
12
+ } from "./chunk-7LE2VTAI.mjs";
13
13
  import {
14
14
  AppButton
15
- } from "./chunk-HBR2JS4C.mjs";
15
+ } from "./chunk-NAZO4HKB.mjs";
16
16
  import {
17
17
  Refresh_default,
18
18
  Search_default
19
- } from "./chunk-RSL5OBRQ.mjs";
19
+ } from "./chunk-YAQYTUTX.mjs";
20
20
  import {
21
21
  SDKProvider,
22
22
  useToast
23
- } from "./chunk-6ICPXSN6.mjs";
23
+ } from "./chunk-VVDJLUYT.mjs";
24
24
  import {
25
25
  END_POINT,
26
26
  axios_default,
27
- createSvgIcon,
28
27
  deepFindArray
29
- } from "./chunk-Q7FIRWF2.mjs";
28
+ } from "./chunk-LHE4QGJJ.mjs";
30
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,
31
54
  __spreadProps,
32
- __spreadValues
33
- } from "./chunk-UB5HSUGK.mjs";
55
+ __spreadValues,
56
+ createSvgIcon,
57
+ useTheme
58
+ } from "./chunk-Q6G3MPS7.mjs";
34
59
 
35
60
  // call-control-sdk/lib/pages/callHistory/index.tsx
36
61
  import { memo, useCallback as useCallback2, useEffect as useEffect2, useState as useState3 } from "react";
37
- import {
38
- Box as Box2,
39
- Typography as Typography2,
40
- Table,
41
- TableBody,
42
- TableCell,
43
- TableContainer,
44
- TableHead,
45
- TableRow,
46
- TablePagination,
47
- ToggleButton,
48
- ToggleButtonGroup,
49
- IconButton,
50
- Collapse,
51
- CircularProgress as CircularProgress2,
52
- Chip,
53
- Stack as Stack2,
54
- Switch,
55
- FormControlLabel,
56
- Tooltip as Tooltip2,
57
- InputAdornment,
58
- OutlinedInput,
59
- useTheme,
60
- Paper
61
- } from "@mui/material";
62
62
 
63
63
  // call-control-sdk/lib/pages/common/components/Transcript.tsx
64
64
  import { useEffect, useState } from "react";
65
- import {
66
- Avatar,
67
- Box,
68
- CircularProgress,
69
- Rating,
70
- Stack,
71
- Tooltip,
72
- Typography
73
- } from "@mui/material";
74
65
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
75
66
  var GAUGE_COLORS = ["#e74c3c", "#e67e22", "#f1c40f", "#a3d977", "#2ecc71"];
76
67
  function scoreColor(score) {
@@ -80,13 +71,13 @@ function scoreColor(score) {
80
71
  function GaugeTooltip({ metric }) {
81
72
  var _a;
82
73
  if (!metric) return /* @__PURE__ */ jsx(Fragment, { children: "\u2014" });
83
- return /* @__PURE__ */ jsxs(Box, { sx: { maxWidth: 240 }, children: [
84
- 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: [
85
76
  "Model Confidence: ",
86
77
  metric.Model_Prediction_Confidence_Level,
87
78
  "%"
88
79
  ] }),
89
- /* @__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 : "" })
90
81
  ] });
91
82
  }
92
83
  function Gauge({ score, label }) {
@@ -97,8 +88,8 @@ function Gauge({ score, label }) {
97
88
  const pct = Math.max(0, Math.min(1, score / max));
98
89
  const dash = circumference * pct;
99
90
  const color = scoreColor(score);
100
- return /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", flexDirection: "column", alignItems: "center", px: 1 }, children: [
101
- /* @__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: [
102
93
  /* @__PURE__ */ jsxs("svg", { width: 80, height: 80, viewBox: "0 0 80 80", children: [
103
94
  /* @__PURE__ */ jsx("circle", { cx: 40, cy: 40, r: radius, fill: "none", stroke: "#eee", strokeWidth: stroke }),
104
95
  /* @__PURE__ */ jsx(
@@ -117,7 +108,7 @@ function Gauge({ score, label }) {
117
108
  )
118
109
  ] }),
119
110
  /* @__PURE__ */ jsx(
120
- Box,
111
+ Box_default,
121
112
  {
122
113
  sx: {
123
114
  position: "absolute",
@@ -134,7 +125,7 @@ function Gauge({ score, label }) {
134
125
  )
135
126
  ] }),
136
127
  /* @__PURE__ */ jsx(
137
- Typography,
128
+ Typography_default,
138
129
  {
139
130
  sx: {
140
131
  mt: 0.5,
@@ -165,14 +156,14 @@ function ClassificationBar({ classification }) {
165
156
  };
166
157
  });
167
158
  const total = segments.reduce((s, seg) => s + seg.value, 0) || 1;
168
- return /* @__PURE__ */ jsxs(Box, { children: [
169
- /* @__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)) }),
170
- /* @__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)) })
171
162
  ] });
172
163
  }
173
164
  function SectionBox({ title, children }) {
174
- return /* @__PURE__ */ jsxs(Box, { sx: (t) => ({ border: `1.5px solid ${t.palette.primary.main}`, borderRadius: 1, p: 1, mb: 1.25 }), children: [
175
- /* @__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 }),
176
167
  children
177
168
  ] });
178
169
  }
@@ -209,7 +200,7 @@ var Transcript = ({ row }) => {
209
200
  };
210
201
  }, [row.call_uuid]);
211
202
  if (loading) {
212
- 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 }) });
213
204
  }
214
205
  const svc = (_a = transcript == null ? void 0 : transcript.sentiment_analysis) == null ? void 0 : _a.Call_Center_Interaction_Hospital_Service;
215
206
  const summary = svc == null ? void 0 : svc.Call_Summary;
@@ -234,37 +225,37 @@ var Transcript = ({ row }) => {
234
225
  const overall = (_m = oss == null ? void 0 : oss.Sentiment_Score) != null ? _m : (patientAvg + agentAvg) / 2;
235
226
  if (!svc && lines.length === 0) {
236
227
  return /* @__PURE__ */ jsxs(Fragment, { children: [
237
- /* @__PURE__ */ jsx(Typography, { fontWeight: 600, fontSize: "0.85rem", mb: 0.5, children: "Call Details" }),
238
- /* @__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: [
239
230
  "Call UID: ",
240
231
  row.call_uuid
241
232
  ] }),
242
- /* @__PURE__ */ jsxs(Typography, { variant: "body2", fontSize: "0.82rem", children: [
233
+ /* @__PURE__ */ jsxs(Typography_default, { variant: "body2", fontSize: "0.82rem", children: [
243
234
  "Agent: ",
244
235
  (_n = row.agent_id) != null ? _n : "Unassigned"
245
236
  ] }),
246
- /* @__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." })
247
238
  ] });
248
239
  }
249
- return /* @__PURE__ */ jsxs(Box, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", md: "1fr 1fr" }, gap: 1.5 }, children: [
250
- /* @__PURE__ */ jsxs(Box, { children: [
251
- /* @__PURE__ */ jsxs(Box, { sx: { p: 1.25, border: "1px solid #e0e0e0", borderRadius: 1, backgroundColor: "#fff", mb: 1.25 }, children: [
252
- /* @__PURE__ */ jsxs(Stack, { direction: "row", alignItems: "center", justifyContent: "space-between", mb: 0.5, children: [
253
- /* @__PURE__ */ jsx(Typography, { sx: { fontWeight: 700, fontSize: "0.85rem", color: "primary.main" }, children: "Call Summary" }),
254
- /* @__PURE__ */ jsxs(Stack, { direction: "row", alignItems: "center", spacing: 0.5, children: [
255
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.75rem", color: "#555" }, children: "Overall Satisfaction:" }),
256
- /* @__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 })
257
248
  ] })
258
249
  ] }),
259
- /* @__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 : "-" })
260
251
  ] }),
261
- lines.length > 0 ? /* @__PURE__ */ jsxs(Box, { sx: { p: 1.25, border: "1px solid #e0e0e0", borderRadius: 1, backgroundColor: "#fff" }, children: [
262
- /* @__PURE__ */ jsx(Typography, { sx: { fontWeight: 700, fontSize: "0.85rem", color: "primary.main", mb: 1 }, children: "Transcript" }),
263
- /* @__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) => {
264
255
  const isPatient = line.trim().toLowerCase().startsWith("patient");
265
256
  const text = line.replace(/^\s*(Patient|Agent)\s*:\s*/i, "");
266
257
  return /* @__PURE__ */ jsxs(
267
- Box,
258
+ Box_default,
268
259
  {
269
260
  sx: {
270
261
  display: "flex",
@@ -274,9 +265,9 @@ var Transcript = ({ row }) => {
274
265
  gap: 0.75
275
266
  },
276
267
  children: [
277
- !isPatient && /* @__PURE__ */ jsx(Avatar, { sx: { width: 22, height: 22, fontSize: 12 } }),
268
+ !isPatient && /* @__PURE__ */ jsx(Avatar_default, { sx: { width: 22, height: 22, fontSize: 12 } }),
278
269
  /* @__PURE__ */ jsx(
279
- Box,
270
+ Box_default,
280
271
  {
281
272
  sx: (t) => ({
282
273
  maxWidth: "70%",
@@ -292,36 +283,36 @@ var Transcript = ({ row }) => {
292
283
  children: text
293
284
  }
294
285
  ),
295
- isPatient && /* @__PURE__ */ jsx(Avatar, { sx: { width: 22, height: 22, fontSize: 12 } })
286
+ isPatient && /* @__PURE__ */ jsx(Avatar_default, { sx: { width: 22, height: 22, fontSize: 12 } })
296
287
  ]
297
288
  },
298
289
  idx
299
290
  );
300
291
  }) })
301
- ] }) : /* @__PURE__ */ jsxs(Box, { sx: { p: 1.25, border: "1px solid #e0e0e0", borderRadius: 1, backgroundColor: "#fff" }, children: [
302
- /* @__PURE__ */ jsx(Typography, { sx: { fontWeight: 700, fontSize: "0.9rem", color: "primary.main", mb: 1 }, children: "Key Highlights & Issues Identified" }),
303
- /* @__PURE__ */ jsxs(Box, { sx: { maxHeight: 180, overflowY: "auto", pr: 0.5 }, children: [
304
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.82rem", fontWeight: 700, color: "#2ecc71", mb: 0.5 }, children: "\u2705 Positive Aspects:" }),
305
- 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: [
306
297
  "\u2022 ",
307
298
  p
308
- ] }, i)) : /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.78rem", color: "#999", pl: 1.5 }, children: "\u2014" }),
309
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.82rem", fontWeight: 700, color: "#e67e22", mt: 1, mb: 0.5 }, children: "\u26A0\uFE0F Areas of Improvements:" }),
310
- 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: [
311
302
  "\u2022 ",
312
303
  p
313
- ] }, 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" })
314
305
  ] })
315
306
  ] })
316
307
  ] }),
317
- /* @__PURE__ */ jsxs(Box, { children: [
318
- /* @__PURE__ */ jsxs(Box, { sx: { p: 1.25, border: "1px solid #e0e0e0", borderRadius: 1, backgroundColor: "#fff", mb: lines.length > 0 ? 1.25 : 0 }, children: [
319
- /* @__PURE__ */ jsx(Typography, { sx: { fontWeight: 700, fontSize: "0.9rem", color: "primary.main", mb: 1 }, children: "Sentiment Analysis" }),
320
- /* @__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: [
321
312
  /* @__PURE__ */ jsxs(SectionBox, { title: "Patient Sentiment", children: [
322
- /* @__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]) => {
323
314
  var _a2;
324
- 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(
325
316
  Gauge,
326
317
  {
327
318
  score: (_a2 = metric == null ? void 0 : metric.Sentiment_Score) != null ? _a2 : 0,
@@ -329,15 +320,15 @@ var Transcript = ({ row }) => {
329
320
  }
330
321
  ) }) }, key);
331
322
  }) }),
332
- /* @__PURE__ */ jsxs(Stack, { direction: "row", alignItems: "center", spacing: 0.5, children: [
333
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.7rem", fontWeight: 600 }, children: "Patient Sentiment:" }),
334
- /* @__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 })
335
326
  ] })
336
327
  ] }),
337
328
  /* @__PURE__ */ jsxs(SectionBox, { title: "Agent Performance", children: [
338
- /* @__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]) => {
339
330
  var _a2;
340
- 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(
341
332
  Gauge,
342
333
  {
343
334
  score: (_a2 = metric == null ? void 0 : metric.Sentiment_Score) != null ? _a2 : 0,
@@ -345,27 +336,27 @@ var Transcript = ({ row }) => {
345
336
  }
346
337
  ) }) }, key);
347
338
  }) }),
348
- /* @__PURE__ */ jsxs(Stack, { direction: "row", alignItems: "center", spacing: 0.5, children: [
349
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.7rem", fontWeight: 600 }, children: "Agent Performance:" }),
350
- /* @__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 })
351
342
  ] })
352
343
  ] })
353
344
  ] }),
354
345
  /* @__PURE__ */ jsx(SectionBox, { title: "Conversation Classification", children: /* @__PURE__ */ jsx(ClassificationBar, { classification }) })
355
346
  ] }),
356
- lines.length > 0 && /* @__PURE__ */ jsxs(Box, { sx: { p: 1.25, border: "1px solid #e0e0e0", borderRadius: 1, backgroundColor: "#fff" }, children: [
357
- /* @__PURE__ */ jsx(Typography, { sx: { fontWeight: 700, fontSize: "0.9rem", color: "primary.main", mb: 1 }, children: "Key Highlights & Issues Identified" }),
358
- /* @__PURE__ */ jsxs(Box, { sx: { maxHeight: 180, overflowY: "auto", pr: 0.5 }, children: [
359
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.82rem", fontWeight: 700, color: "#2ecc71", mb: 0.5 }, children: "\u2705 Positive Aspects:" }),
360
- 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: [
361
352
  "\u2022 ",
362
353
  p
363
- ] }, i)) : /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.78rem", color: "#999", pl: 1.5 }, children: "\u2014" }),
364
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.82rem", fontWeight: 700, color: "#e67e22", mt: 1, mb: 0.5 }, children: "\u26A0\uFE0F Areas of Improvements:" }),
365
- 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: [
366
357
  "\u2022 ",
367
358
  p
368
- ] }, 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" })
369
360
  ] })
370
361
  ] })
371
362
  ] })
@@ -563,17 +554,17 @@ var CallHistoryContent = memo(() => {
563
554
  const q = search.toLowerCase();
564
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));
565
556
  });
566
- return /* @__PURE__ */ jsxs2(Box2, { children: [
557
+ return /* @__PURE__ */ jsxs2(Box_default, { children: [
567
558
  /* @__PURE__ */ jsx2(
568
559
  SDKPageHeader,
569
560
  {
570
561
  title: "Call History",
571
- actions: /* @__PURE__ */ jsxs2(Stack2, { direction: "row", alignItems: "center", spacing: 1, children: [
562
+ actions: /* @__PURE__ */ jsxs2(Stack_default, { direction: "row", alignItems: "center", spacing: 1, children: [
572
563
  /* @__PURE__ */ jsx2(
573
564
  AppButton,
574
565
  {
575
566
  size: "small",
576
- startIcon: loading ? /* @__PURE__ */ jsx2(CircularProgress2, { size: 14, color: "inherit" }) : /* @__PURE__ */ jsx2(Refresh_default, { 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" } }),
577
568
  onClick: () => showMissedCalls ? fetchMissedCalls() : fetchCallHistory({
578
569
  page: page + 1,
579
570
  pageSize: rowsPerPage,
@@ -586,7 +577,7 @@ var CallHistoryContent = memo(() => {
586
577
  }
587
578
  ),
588
579
  /* @__PURE__ */ jsx2(
589
- OutlinedInput,
580
+ OutlinedInput_default,
590
581
  {
591
582
  size: "small",
592
583
  value: search,
@@ -596,19 +587,19 @@ var CallHistoryContent = memo(() => {
596
587
  },
597
588
  placeholder: "Search",
598
589
  sx: { width: 220, fontSize: "0.82rem", height: 36 },
599
- endAdornment: /* @__PURE__ */ jsx2(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx2(Search_default, { sx: { fontSize: 18, color: "#999" } }) })
590
+ endAdornment: /* @__PURE__ */ jsx2(InputAdornment_default, { position: "end", children: /* @__PURE__ */ jsx2(Search_default, { sx: { fontSize: 18, color: "#999" } }) })
600
591
  }
601
592
  )
602
593
  ] })
603
594
  }
604
595
  ),
605
- /* @__PURE__ */ jsxs2(Box2, { py: 1.5, px: 2, children: [
606
- /* @__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: [
607
598
  /* @__PURE__ */ jsx2(
608
- FormControlLabel,
599
+ FormControlLabel_default,
609
600
  {
610
601
  control: /* @__PURE__ */ jsx2(
611
- Switch,
602
+ Switch_default,
612
603
  {
613
604
  size: "small",
614
605
  checked: showMissedCalls,
@@ -618,12 +609,12 @@ var CallHistoryContent = memo(() => {
618
609
  }
619
610
  }
620
611
  ),
621
- 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" }),
622
613
  sx: { ml: 0 }
623
614
  }
624
615
  ),
625
616
  /* @__PURE__ */ jsxs2(
626
- ToggleButtonGroup,
617
+ ToggleButtonGroup_default,
627
618
  {
628
619
  value: filter,
629
620
  exclusive: true,
@@ -657,17 +648,17 @@ var CallHistoryContent = memo(() => {
657
648
  }
658
649
  },
659
650
  children: [
660
- /* @__PURE__ */ jsx2(ToggleButton, { value: "ALL", children: "All" }),
661
- /* @__PURE__ */ jsx2(ToggleButton, { value: "INCOMING", children: "Inbound" }),
662
- /* @__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" })
663
654
  ]
664
655
  }
665
656
  )
666
657
  ] }),
667
- /* @__PURE__ */ jsxs2(TableContainer, { component: Paper, variant: "outlined", sx: { display: "flex", flexDirection: "column" }, children: [
668
- /* @__PURE__ */ jsx2(Box2, { sx: { overflowY: "auto", maxHeight: 600 }, children: /* @__PURE__ */ jsx2(Table, { stickyHeader: true, size: "small", children: showMissedCalls ? /* @__PURE__ */ jsxs2(Fragment2, { children: [
669
- /* @__PURE__ */ jsx2(TableHead, { children: /* @__PURE__ */ jsx2(TableRow, { children: MISSED_CALLS_COLS.map((col) => /* @__PURE__ */ jsx2(
670
- 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,
671
662
  {
672
663
  align: CENTER_COLS.has(col) ? "center" : "left",
673
664
  sx: { fontWeight: 600, backgroundColor: "#f1f1f1", fontSize: "0.8rem" },
@@ -675,10 +666,10 @@ var CallHistoryContent = memo(() => {
675
666
  },
676
667
  col
677
668
  )) }) }),
678
- /* @__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}`)) })
679
670
  ] }) : /* @__PURE__ */ jsxs2(Fragment2, { children: [
680
- /* @__PURE__ */ jsx2(TableHead, { children: /* @__PURE__ */ jsx2(TableRow, { children: CALL_HISTORY_COLS.map((col) => /* @__PURE__ */ jsx2(
681
- TableCell,
671
+ /* @__PURE__ */ jsx2(TableHead_default, { children: /* @__PURE__ */ jsx2(TableRow_default, { children: CALL_HISTORY_COLS.map((col) => /* @__PURE__ */ jsx2(
672
+ TableCell_default,
682
673
  {
683
674
  align: CENTER_COLS.has(col) ? "center" : "left",
684
675
  sx: { fontWeight: 600, backgroundColor: "#f1f1f1", fontSize: "0.8rem" },
@@ -686,7 +677,7 @@ var CallHistoryContent = memo(() => {
686
677
  },
687
678
  col
688
679
  )) }) }),
689
- /* @__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(
690
681
  ExpandableRow,
691
682
  {
692
683
  row,
@@ -698,7 +689,7 @@ var CallHistoryContent = memo(() => {
698
689
  )) })
699
690
  ] }) }) }),
700
691
  /* @__PURE__ */ jsx2(
701
- TablePagination,
692
+ TablePagination_default,
702
693
  {
703
694
  component: "div",
704
695
  count: showMissedCalls ? filteredMissedCalls.length : callsTotal,
@@ -720,17 +711,17 @@ var CallHistoryContent = memo(() => {
720
711
  CallHistoryContent.displayName = "CallHistoryContent";
721
712
  var MissedCallRow = memo(({ row }) => {
722
713
  const theme = useTheme();
723
- return /* @__PURE__ */ jsxs2(TableRow, { hover: true, children: [
724
- /* @__PURE__ */ jsx2(TableCell, { sx: { fontSize: "0.82rem", color: theme.palette.primary.main }, children: row.agentId }),
725
- /* @__PURE__ */ jsx2(TableCell, { sx: { fontSize: "0.82rem" }, children: row.username }),
726
- /* @__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: [
727
718
  row.mobileNumber,
728
719
  " (",
729
720
  row.callCount,
730
721
  ")"
731
722
  ] }),
732
- /* @__PURE__ */ jsx2(TableCell, { sx: { fontSize: "0.82rem", textTransform: "uppercase" }, children: row.callType }),
733
- /* @__PURE__ */ jsx2(TableCell, { align: "center", children: /* @__PURE__ */ jsx2(Phone_default, { 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" } }) })
734
725
  ] });
735
726
  });
736
727
  MissedCallRow.displayName = "MissedCallRow";
@@ -780,40 +771,40 @@ function ExpandableRow({
780
771
  const bg = striped ? "#fafafa" : "white";
781
772
  const cellSx = { fontSize: "0.82rem", backgroundColor: bg };
782
773
  return /* @__PURE__ */ jsxs2(Fragment2, { children: [
783
- /* @__PURE__ */ jsxs2(TableRow, { hover: true, children: [
784
- /* @__PURE__ */ jsx2(TableCell, { sx: __spreadProps(__spreadValues({}, cellSx), { maxWidth: 130 }), children: /* @__PURE__ */ jsx2(Tooltip2, { title: row.call_uuid, arrow: true, children: /* @__PURE__ */ jsx2(
785
- 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,
786
777
  {
787
778
  noWrap: true,
788
779
  sx: { fontSize: 13, maxWidth: 130, overflow: "hidden", textOverflow: "ellipsis" },
789
780
  children: row.call_uuid
790
781
  }
791
782
  ) }) }),
792
- /* @__PURE__ */ jsx2(TableCell, { sx: cellSx, children: row.mobile_no }),
793
- /* @__PURE__ */ jsx2(TableCell, { align: "center", sx: cellSx, children: /* @__PURE__ */ jsx2(
794
- 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,
795
786
  {
796
787
  size: "small",
797
788
  label: row.call_type,
798
789
  color: row.call_type === "INCOMING" ? "success" : "primary"
799
790
  }
800
791
  ) }),
801
- /* @__PURE__ */ jsx2(TableCell, { sx: cellSx, children: new Date(row.start_time).toLocaleString() }),
802
- /* @__PURE__ */ jsx2(TableCell, { sx: cellSx, children: row.end_time ? new Date(row.end_time).toLocaleString() : "\u2014" }),
803
- /* @__PURE__ */ jsx2(TableCell, { align: "center", sx: cellSx, children: row.recording.available ? /* @__PURE__ */ jsx2(
804
- 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,
805
796
  {
806
797
  color: "primary",
807
798
  onClick: handlePlay,
808
799
  disabled: loadingAudio,
809
800
  size: "small",
810
- children: loadingAudio ? /* @__PURE__ */ jsx2(CircularProgress2, { size: 18 }) : /* @__PURE__ */ jsx2(PlayArrow_default, {})
801
+ children: loadingAudio ? /* @__PURE__ */ jsx2(CircularProgress_default, { size: 18 }) : /* @__PURE__ */ jsx2(PlayArrow_default, {})
811
802
  }
812
- ) : /* @__PURE__ */ jsx2(Chip, { size: "small", label: "No File" }) }),
813
- /* @__PURE__ */ jsx2(TableCell, { align: "center", sx: cellSx, children: (_a = row.agent_id) != null ? _a : "" }),
814
- /* @__PURE__ */ jsx2(TableCell, { align: "center", sx: cellSx, children: /* @__PURE__ */ jsx2(IconButton, { onClick: handleToggle, size: "small", children: open ? /* @__PURE__ */ jsx2(ExpandLess_default, {}) : /* @__PURE__ */ jsx2(KeyboardArrowDown_default, {}) }) })
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, {}) }) })
815
806
  ] }),
816
- 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(
817
808
  "audio",
818
809
  {
819
810
  controls: true,
@@ -823,7 +814,7 @@ function ExpandableRow({
823
814
  style: { width: "100%" }
824
815
  }
825
816
  ) }) }) }),
826
- /* @__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 }) }) }) }) })
827
818
  ] });
828
819
  }
829
820
  var CallHistory = () => /* @__PURE__ */ jsx2(SDKProvider, { children: /* @__PURE__ */ jsx2(CallHistoryContent, {}) });
@@ -831,4 +822,4 @@ var callHistory_default = CallHistory;
831
822
  export {
832
823
  callHistory_default as default
833
824
  };
834
- //# sourceMappingURL=callHistory-MRBBY3UO.mjs.map
825
+ //# sourceMappingURL=callHistory-T3M76D4B.mjs.map