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,43 +1,66 @@
1
+ import {
2
+ Close_default
3
+ } from "./chunk-WTBVFN4H.mjs";
1
4
  import {
2
5
  END_POINT,
3
6
  axios_default
4
- } from "./chunk-OVC42HVH.mjs";
7
+ } from "./chunk-LHE4QGJJ.mjs";
5
8
  import {
9
+ Alert_default,
10
+ Avatar_default,
11
+ Box_default,
12
+ CircularProgress_default,
13
+ Dialog_default,
14
+ GlobalStyles_default,
15
+ IconButton_default,
16
+ LinearProgress_default,
17
+ Tab_default,
18
+ TableBody_default,
19
+ TableCell_default,
20
+ TableContainer_default,
21
+ TableHead_default,
22
+ TableRow_default,
23
+ Table_default,
24
+ Tabs_default,
25
+ ToggleButtonGroup_default,
26
+ ToggleButton_default,
27
+ Typography_default,
6
28
  __spreadProps,
7
- __spreadValues
8
- } from "./chunk-UB5HSUGK.mjs";
29
+ __spreadValues,
30
+ alpha,
31
+ createSvgIcon,
32
+ useTheme
33
+ } from "./chunk-Q6G3MPS7.mjs";
9
34
 
10
35
  // call-control-sdk/lib/pages/common/components/AuditReport.tsx
11
36
  import { useEffect, useState } from "react";
12
37
  import { createPortal } from "react-dom";
13
- import {
14
- Avatar,
15
- Box,
16
- Typography,
17
- Table,
18
- TableBody,
19
- TableCell,
20
- TableContainer,
21
- TableHead,
22
- TableRow,
23
- Tabs,
24
- Tab,
25
- LinearProgress,
26
- useTheme,
27
- Dialog,
28
- IconButton,
29
- GlobalStyles,
30
- CircularProgress,
31
- Alert,
32
- ToggleButton,
33
- ToggleButtonGroup
34
- } from "@mui/material";
35
- import { alpha } from "@mui/material/styles";
36
- import CloseIcon from "@mui/icons-material/Close";
37
- import LaunchIcon from "@mui/icons-material/Launch";
38
- import CheckCircleOutlineIcon from "@mui/icons-material/CheckCircleOutlined";
39
- import HighlightOffIcon from "@mui/icons-material/HighlightOff";
40
- import RemoveCircleOutlineIcon from "@mui/icons-material/RemoveCircleOutlined";
38
+
39
+ // node_modules/@mui/icons-material/Launch.mjs
40
+ import { jsx as _jsx } from "react/jsx-runtime";
41
+ var Launch_default = createSvgIcon(/* @__PURE__ */ _jsx("path", {
42
+ d: "M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"
43
+ }), "Launch");
44
+
45
+ // node_modules/@mui/icons-material/CheckCircleOutlined.mjs
46
+ import { jsx as _jsx2 } from "react/jsx-runtime";
47
+ var CheckCircleOutlined_default = createSvgIcon(/* @__PURE__ */ _jsx2("path", {
48
+ d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"
49
+ }), "CheckCircleOutlined");
50
+
51
+ // node_modules/@mui/icons-material/HighlightOff.mjs
52
+ import { jsx as _jsx3 } from "react/jsx-runtime";
53
+ var HighlightOff_default = createSvgIcon(/* @__PURE__ */ _jsx3("path", {
54
+ d: "M14.59 8 12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"
55
+ }), "HighlightOff");
56
+
57
+ // node_modules/@mui/icons-material/RemoveCircleOutlined.mjs
58
+ import { jsx as _jsx4 } from "react/jsx-runtime";
59
+ var RemoveCircleOutlined_default = createSvgIcon(/* @__PURE__ */ _jsx4("path", {
60
+ d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11H7v-2h10z"
61
+ }), "RemoveCircleOutlined");
62
+
63
+ // call-control-sdk/lib/pages/common/components/AuditReport.tsx
41
64
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
42
65
  function toStringArray(value) {
43
66
  if (!value) return [];
@@ -74,21 +97,21 @@ function resolveColour(label) {
74
97
  }
75
98
  function StatusBadge({ label }) {
76
99
  const { color, bg } = resolveColour(label);
77
- return /* @__PURE__ */ jsx(Box, { sx: { display: "inline-flex", alignItems: "center", px: "7px", py: "2px", borderRadius: "4px", backgroundColor: bg, whiteSpace: "nowrap" }, children: /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.72rem", fontWeight: 600, color, letterSpacing: "0.02em" }, children: label.toUpperCase() }) });
100
+ return /* @__PURE__ */ jsx(Box_default, { sx: { display: "inline-flex", alignItems: "center", px: "7px", py: "2px", borderRadius: "4px", backgroundColor: bg, whiteSpace: "nowrap" }, children: /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.72rem", fontWeight: 600, color, letterSpacing: "0.02em" }, children: label.toUpperCase() }) });
78
101
  }
79
102
  function StatusIconBadge({ label }) {
80
103
  const key = label.toLowerCase().replace(/[^a-z]/g, "");
81
104
  let icon;
82
105
  if (key === "complied" || key === "completed" || key === "pass") {
83
- icon = /* @__PURE__ */ jsx(CheckCircleOutlineIcon, { sx: { fontSize: 15, color: "#2e7d32" } });
106
+ icon = /* @__PURE__ */ jsx(CheckCircleOutlined_default, { sx: { fontSize: 15, color: "#2e7d32" } });
84
107
  } else if (key === "partial") {
85
- icon = /* @__PURE__ */ jsx(RemoveCircleOutlineIcon, { sx: { fontSize: 15, color: "#e65100" } });
108
+ icon = /* @__PURE__ */ jsx(RemoveCircleOutlined_default, { sx: { fontSize: 15, color: "#e65100" } });
86
109
  } else if (key === "na") {
87
- icon = /* @__PURE__ */ jsx(RemoveCircleOutlineIcon, { sx: { fontSize: 15, color: "#757575" } });
110
+ icon = /* @__PURE__ */ jsx(RemoveCircleOutlined_default, { sx: { fontSize: 15, color: "#757575" } });
88
111
  } else {
89
- icon = /* @__PURE__ */ jsx(HighlightOffIcon, { sx: { fontSize: 15, color: "#c62828" } });
112
+ icon = /* @__PURE__ */ jsx(HighlightOff_default, { sx: { fontSize: 15, color: "#c62828" } });
90
113
  }
91
- return /* @__PURE__ */ jsxs(Box, { sx: { display: "inline-flex", alignItems: "center", gap: "4px" }, children: [
114
+ return /* @__PURE__ */ jsxs(Box_default, { sx: { display: "inline-flex", alignItems: "center", gap: "4px" }, children: [
92
115
  icon,
93
116
  /* @__PURE__ */ jsx(StatusBadge, { label })
94
117
  ] });
@@ -96,9 +119,9 @@ function StatusIconBadge({ label }) {
96
119
  function ProgressCell({ value, primary }) {
97
120
  const pct = Math.min(Math.round(value.score / value.max * 100), 100);
98
121
  const barColor = pct < 80 ? "#c62828" : primary;
99
- return /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 1, minWidth: 100 }, children: [
100
- /* @__PURE__ */ jsx(LinearProgress, { variant: "determinate", value: pct, sx: { flex: 1, height: 5, borderRadius: 3, backgroundColor: alpha(barColor, 0.12), "& .MuiLinearProgress-bar": { backgroundColor: barColor, borderRadius: 3 } } }),
101
- /* @__PURE__ */ jsxs(Typography, { sx: { fontSize: "0.68rem", color: "text.secondary", minWidth: 28, textAlign: "right" }, children: [
122
+ return /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: 1, minWidth: 100 }, children: [
123
+ /* @__PURE__ */ jsx(LinearProgress_default, { variant: "determinate", value: pct, sx: { flex: 1, height: 5, borderRadius: 3, backgroundColor: alpha(barColor, 0.12), "& .MuiLinearProgress-bar": { backgroundColor: barColor, borderRadius: 3 } } }),
124
+ /* @__PURE__ */ jsxs(Typography_default, { sx: { fontSize: "0.68rem", color: "text.secondary", minWidth: 28, textAlign: "right" }, children: [
102
125
  pct,
103
126
  "%"
104
127
  ] })
@@ -107,20 +130,20 @@ function ProgressCell({ value, primary }) {
107
130
  var TH = { fontSize: "0.72rem", fontWeight: 700, color: "text.secondary", py: "7px", px: "10px", backgroundColor: "#f5f7f8", borderBottom: "1px solid", borderColor: "divider", whiteSpace: "nowrap" };
108
131
  var TD = { fontSize: "0.75rem", color: "text.primary", py: "6px", px: "10px", borderBottom: "1px solid", borderColor: "divider", verticalAlign: "middle" };
109
132
  function SectionTitle({ children }) {
110
- return /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.78rem", fontWeight: 700, color: "text.primary", mb: "8px", mt: "4px" }, children });
133
+ return /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.78rem", fontWeight: 700, color: "text.primary", mb: "8px", mt: "4px" }, children });
111
134
  }
112
135
  function TranscriptBubbles({ text }) {
113
136
  const lines = text.split("\n").filter((l) => l.trim().length > 0);
114
137
  if (!lines.length) {
115
- return /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.75rem", color: "text.secondary" }, children: "No transcript available." });
138
+ return /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.75rem", color: "text.secondary" }, children: "No transcript available." });
116
139
  }
117
- return /* @__PURE__ */ jsx(Box, { sx: { display: "flex", flexDirection: "column", gap: "6px" }, children: lines.map((line, idx) => {
140
+ return /* @__PURE__ */ jsx(Box_default, { sx: { display: "flex", flexDirection: "column", gap: "6px" }, children: lines.map((line, idx) => {
118
141
  const isPatient = line.trim().toLowerCase().startsWith("patient");
119
142
  const text2 = line.replace(/^\s*(Patient|Agent)\s*:\s*/i, "");
120
- return /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", justifyContent: isPatient ? "flex-end" : "flex-start", alignItems: "flex-end", gap: "6px" }, children: [
121
- !isPatient && /* @__PURE__ */ jsx(Avatar, { sx: { width: 22, height: 22, fontSize: 12 } }),
143
+ return /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", justifyContent: isPatient ? "flex-end" : "flex-start", alignItems: "flex-end", gap: "6px" }, children: [
144
+ !isPatient && /* @__PURE__ */ jsx(Avatar_default, { sx: { width: 22, height: 22, fontSize: 12 } }),
122
145
  /* @__PURE__ */ jsx(
123
- Box,
146
+ Box_default,
124
147
  {
125
148
  sx: (t) => ({
126
149
  maxWidth: "70%",
@@ -136,7 +159,7 @@ function TranscriptBubbles({ text }) {
136
159
  children: text2
137
160
  }
138
161
  ),
139
- isPatient && /* @__PURE__ */ jsx(Avatar, { sx: { width: 22, height: 22, fontSize: 12 } })
162
+ isPatient && /* @__PURE__ */ jsx(Avatar_default, { sx: { width: 22, height: 22, fontSize: 12 } })
140
163
  ] }, idx);
141
164
  }) });
142
165
  }
@@ -161,21 +184,21 @@ function OverviewTab({ data }) {
161
184
  const half = Math.ceil(kvItems.length / 2);
162
185
  const col1 = kvItems.slice(0, half);
163
186
  const col2 = kvItems.slice(half);
164
- return /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
165
- /* @__PURE__ */ jsxs(Box, { children: [
187
+ return /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
188
+ /* @__PURE__ */ jsxs(Box_default, { children: [
166
189
  /* @__PURE__ */ jsx(SectionTitle, { children: "Audit Metadata" }),
167
- /* @__PURE__ */ jsx(Box, { sx: { border: "1px solid", borderColor: "divider", borderRadius: "8px", overflow: "hidden", backgroundColor: "background.paper" }, children: /* @__PURE__ */ jsx(Box, { sx: { display: "flex" }, children: [col1, col2].map((chunk, ci) => /* @__PURE__ */ jsx(Box, { sx: { flex: "1 1 240px", minWidth: 0, borderRight: ci === 0 ? "1px solid" : "none", borderColor: "divider" }, children: chunk.map((item, ii) => /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "baseline", borderBottom: ii < chunk.length - 1 ? "1px solid" : "none", borderColor: "divider", px: "10px", py: "6px", gap: 1 }, children: [
168
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.72rem", color: "text.secondary", minWidth: 140, flexShrink: 0 }, children: item.label }),
169
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.75rem", color: "text.primary", fontWeight: 500 }, children: item.value })
190
+ /* @__PURE__ */ jsx(Box_default, { sx: { border: "1px solid", borderColor: "divider", borderRadius: "8px", overflow: "hidden", backgroundColor: "background.paper" }, children: /* @__PURE__ */ jsx(Box_default, { sx: { display: "flex" }, children: [col1, col2].map((chunk, ci) => /* @__PURE__ */ jsx(Box_default, { sx: { flex: "1 1 240px", minWidth: 0, borderRight: ci === 0 ? "1px solid" : "none", borderColor: "divider" }, children: chunk.map((item, ii) => /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "baseline", borderBottom: ii < chunk.length - 1 ? "1px solid" : "none", borderColor: "divider", px: "10px", py: "6px", gap: 1 }, children: [
191
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.72rem", color: "text.secondary", minWidth: 140, flexShrink: 0 }, children: item.label }),
192
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.75rem", color: "text.primary", fontWeight: 500 }, children: item.value })
170
193
  ] }, ii)) }, ci)) }) })
171
194
  ] }),
172
- /* @__PURE__ */ jsxs(Box, { children: [
195
+ /* @__PURE__ */ jsxs(Box_default, { children: [
173
196
  /* @__PURE__ */ jsx(SectionTitle, { children: "Call Summary" }),
174
- /* @__PURE__ */ jsx(Box, { sx: { border: "1px solid", borderColor: "divider", borderRadius: "8px", backgroundColor: "background.paper", px: "14px", py: "10px", maxHeight: 160, overflowY: "auto" }, children: /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.75rem", color: "text.secondary", lineHeight: 1.7 }, children: (_o = data.Call_Summary) != null ? _o : "No summary available." }) })
197
+ /* @__PURE__ */ jsx(Box_default, { sx: { border: "1px solid", borderColor: "divider", borderRadius: "8px", backgroundColor: "background.paper", px: "14px", py: "10px", maxHeight: 160, overflowY: "auto" }, children: /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.75rem", color: "text.secondary", lineHeight: 1.7 }, children: (_o = data.Call_Summary) != null ? _o : "No summary available." }) })
175
198
  ] }),
176
- /* @__PURE__ */ jsxs(Box, { children: [
199
+ /* @__PURE__ */ jsxs(Box_default, { children: [
177
200
  /* @__PURE__ */ jsx(SectionTitle, { children: "Call Transcription" }),
178
- /* @__PURE__ */ jsx(Box, { sx: { border: "1px solid", borderColor: "divider", borderRadius: "8px", backgroundColor: "#f9f9f9", px: "14px", py: "12px", maxHeight: 320, overflowY: "auto" }, children: /* @__PURE__ */ jsx(TranscriptBubbles, { text: (_p = data.transcript) != null ? _p : "" }) })
201
+ /* @__PURE__ */ jsx(Box_default, { sx: { border: "1px solid", borderColor: "divider", borderRadius: "8px", backgroundColor: "#f9f9f9", px: "14px", py: "12px", maxHeight: 320, overflowY: "auto" }, children: /* @__PURE__ */ jsx(TranscriptBubbles, { text: (_p = data.transcript) != null ? _p : "" }) })
179
202
  ] })
180
203
  ] });
181
204
  }
@@ -205,59 +228,59 @@ function ScorecardTab({ data, primary }) {
205
228
  { label: "Process Adherence", value: (_k = summary.Process_Adherence) != null ? _k : "N/A" },
206
229
  { label: "Effective Communication", value: (_l = summary.Communication_Effectiveness) != null ? _l : "N/A" }
207
230
  ];
208
- return /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", flexDirection: "column", gap: 2.5 }, children: [
209
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", gap: 2, flexWrap: "wrap", alignItems: "stretch" }, children: [
210
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", border: "1px solid", borderColor: "divider", borderRadius: "8px", backgroundColor: "background.paper", px: 3, py: 2, minWidth: 140, gap: 0.5 }, children: [
211
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.72rem", color: "text.secondary", fontWeight: 600, mb: 0.5, letterSpacing: "0.04em" }, children: "OVERALL SCORE" }),
212
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "baseline", gap: "3px" }, children: [
213
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "2.4rem", fontWeight: 700, color: primary, lineHeight: 1 }, children: overallScore }),
214
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.85rem", color: "text.secondary", fontWeight: 600 }, children: "/100" })
231
+ return /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", flexDirection: "column", gap: 2.5 }, children: [
232
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", gap: 2, flexWrap: "wrap", alignItems: "stretch" }, children: [
233
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", border: "1px solid", borderColor: "divider", borderRadius: "8px", backgroundColor: "background.paper", px: 3, py: 2, minWidth: 140, gap: 0.5 }, children: [
234
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.72rem", color: "text.secondary", fontWeight: 600, mb: 0.5, letterSpacing: "0.04em" }, children: "OVERALL SCORE" }),
235
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "baseline", gap: "3px" }, children: [
236
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "2.4rem", fontWeight: 700, color: primary, lineHeight: 1 }, children: overallScore }),
237
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.85rem", color: "text.secondary", fontWeight: 600 }, children: "/100" })
215
238
  ] }),
216
- /* @__PURE__ */ jsx(Box, { sx: { width: "100%", mt: 0.75 }, children: /* @__PURE__ */ jsx(LinearProgress, { variant: "determinate", value: pct, sx: { height: 6, borderRadius: 3, backgroundColor: alpha(primary, 0.12), "& .MuiLinearProgress-bar": { backgroundColor: primary, borderRadius: 3 } } }) }),
217
- /* @__PURE__ */ jsx(Box, { sx: { mt: 0.75 }, children: /* @__PURE__ */ jsx(StatusBadge, { label: resultBadge }) })
239
+ /* @__PURE__ */ jsx(Box_default, { sx: { width: "100%", mt: 0.75 }, children: /* @__PURE__ */ jsx(LinearProgress_default, { variant: "determinate", value: pct, sx: { height: 6, borderRadius: 3, backgroundColor: alpha(primary, 0.12), "& .MuiLinearProgress-bar": { backgroundColor: primary, borderRadius: 3 } } }) }),
240
+ /* @__PURE__ */ jsx(Box_default, { sx: { mt: 0.75 }, children: /* @__PURE__ */ jsx(StatusBadge, { label: resultBadge }) })
218
241
  ] }),
219
- /* @__PURE__ */ jsxs(Box, { sx: { flex: 1, minWidth: 260, display: "flex", flexDirection: "column", gap: "8px", alignSelf: "stretch" }, children: [
220
- /* @__PURE__ */ jsx(Box, { sx: { flex: 1, display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: "8px" }, children: metrics.slice(0, 3).map((m) => /* @__PURE__ */ jsxs(Box, { sx: { border: "1px solid", borderColor: "divider", borderRadius: "6px", backgroundColor: "background.paper", px: "10px", py: "8px", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", gap: "6px" }, children: [
221
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.72rem", color: "text.secondary", lineHeight: 1.3, textAlign: "center" }, children: m.label }),
242
+ /* @__PURE__ */ jsxs(Box_default, { sx: { flex: 1, minWidth: 260, display: "flex", flexDirection: "column", gap: "8px", alignSelf: "stretch" }, children: [
243
+ /* @__PURE__ */ jsx(Box_default, { sx: { flex: 1, display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: "8px" }, children: metrics.slice(0, 3).map((m) => /* @__PURE__ */ jsxs(Box_default, { sx: { border: "1px solid", borderColor: "divider", borderRadius: "6px", backgroundColor: "background.paper", px: "10px", py: "8px", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", gap: "6px" }, children: [
244
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.72rem", color: "text.secondary", lineHeight: 1.3, textAlign: "center" }, children: m.label }),
222
245
  /* @__PURE__ */ jsx(StatusBadge, { label: m.value })
223
246
  ] }, m.label)) }),
224
- /* @__PURE__ */ jsx(Box, { sx: { flex: 1, display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: "8px" }, children: metrics.slice(3).map((m) => /* @__PURE__ */ jsxs(Box, { sx: { border: "1px solid", borderColor: "divider", borderRadius: "6px", backgroundColor: "background.paper", px: "10px", py: "8px", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", gap: "6px" }, children: [
225
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.72rem", color: "text.secondary", lineHeight: 1.3, textAlign: "center" }, children: m.label }),
247
+ /* @__PURE__ */ jsx(Box_default, { sx: { flex: 1, display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: "8px" }, children: metrics.slice(3).map((m) => /* @__PURE__ */ jsxs(Box_default, { sx: { border: "1px solid", borderColor: "divider", borderRadius: "6px", backgroundColor: "background.paper", px: "10px", py: "8px", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", gap: "6px" }, children: [
248
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.72rem", color: "text.secondary", lineHeight: 1.3, textAlign: "center" }, children: m.label }),
226
249
  /* @__PURE__ */ jsx(StatusBadge, { label: m.value })
227
250
  ] }, m.label)) })
228
251
  ] })
229
252
  ] }),
230
- /* @__PURE__ */ jsxs(Box, { children: [
253
+ /* @__PURE__ */ jsxs(Box_default, { children: [
231
254
  /* @__PURE__ */ jsx(SectionTitle, { children: "Quality Scorecard" }),
232
- /* @__PURE__ */ jsx(TableContainer, { sx: { border: "1px solid", borderColor: "divider", borderRadius: "8px", overflow: "hidden" }, children: /* @__PURE__ */ jsxs(Table, { size: "small", children: [
233
- /* @__PURE__ */ jsx(TableHead, { children: /* @__PURE__ */ jsx(TableRow, { children: [
255
+ /* @__PURE__ */ jsx(TableContainer_default, { sx: { border: "1px solid", borderColor: "divider", borderRadius: "8px", overflow: "hidden" }, children: /* @__PURE__ */ jsxs(Table_default, { size: "small", children: [
256
+ /* @__PURE__ */ jsx(TableHead_default, { children: /* @__PURE__ */ jsx(TableRow_default, { children: [
234
257
  { label: "Evaluation Parameter", align: "left", minWidth: 180 },
235
258
  { label: "Weightage", align: "center", minWidth: 90 },
236
259
  { label: "Score", align: "center", minWidth: 80 },
237
260
  { label: "", align: "left", minWidth: 120 },
238
261
  { label: "Remarks", align: "left", minWidth: 160 }
239
- ].map((col, i) => /* @__PURE__ */ jsx(TableCell, { sx: __spreadProps(__spreadValues({}, TH), { textAlign: col.align, minWidth: col.minWidth }), children: col.label }, i)) }) }),
240
- /* @__PURE__ */ jsxs(TableBody, { children: [
262
+ ].map((col, i) => /* @__PURE__ */ jsx(TableCell_default, { sx: __spreadProps(__spreadValues({}, TH), { textAlign: col.align, minWidth: col.minWidth }), children: col.label }, i)) }) }),
263
+ /* @__PURE__ */ jsxs(TableBody_default, { children: [
241
264
  SCORECARD_PARAMS.map((p) => {
242
265
  var _a2, _b2;
243
266
  const entry = sc[p.key];
244
267
  const rawEntryScore = entry == null ? void 0 : entry.Score_Obtained;
245
268
  const score = typeof rawEntryScore === "string" ? parseFloat(rawEntryScore) || 0 : rawEntryScore != null ? rawEntryScore : 0;
246
269
  const max = (_a2 = entry == null ? void 0 : entry.Weightage) != null ? _a2 : p.defaultMax;
247
- return /* @__PURE__ */ jsxs(TableRow, { children: [
248
- /* @__PURE__ */ jsx(TableCell, { sx: __spreadValues({}, TD), children: p.label }),
249
- /* @__PURE__ */ jsx(TableCell, { sx: __spreadProps(__spreadValues({}, TD), { textAlign: "center" }), children: max }),
250
- /* @__PURE__ */ jsx(TableCell, { sx: __spreadProps(__spreadValues({}, TD), { textAlign: "center" }), children: rawEntryScore != null ? rawEntryScore : "\u2014" }),
251
- /* @__PURE__ */ jsx(TableCell, { sx: __spreadValues({}, TD), children: /* @__PURE__ */ jsx(ProgressCell, { value: { score, max }, primary }) }),
252
- /* @__PURE__ */ jsx(TableCell, { sx: __spreadValues({}, TD), children: (_b2 = entry == null ? void 0 : entry.Remarks) != null ? _b2 : "\u2014" })
270
+ return /* @__PURE__ */ jsxs(TableRow_default, { children: [
271
+ /* @__PURE__ */ jsx(TableCell_default, { sx: __spreadValues({}, TD), children: p.label }),
272
+ /* @__PURE__ */ jsx(TableCell_default, { sx: __spreadProps(__spreadValues({}, TD), { textAlign: "center" }), children: max }),
273
+ /* @__PURE__ */ jsx(TableCell_default, { sx: __spreadProps(__spreadValues({}, TD), { textAlign: "center" }), children: rawEntryScore != null ? rawEntryScore : "\u2014" }),
274
+ /* @__PURE__ */ jsx(TableCell_default, { sx: __spreadValues({}, TD), children: /* @__PURE__ */ jsx(ProgressCell, { value: { score, max }, primary }) }),
275
+ /* @__PURE__ */ jsx(TableCell_default, { sx: __spreadValues({}, TD), children: (_b2 = entry == null ? void 0 : entry.Remarks) != null ? _b2 : "\u2014" })
253
276
  ] }, p.key);
254
277
  }),
255
- /* @__PURE__ */ jsxs(TableRow, { sx: { backgroundColor: "#f5f7f8", "& td": { borderBottom: 0 } }, children: [
256
- /* @__PURE__ */ jsx(TableCell, { sx: __spreadProps(__spreadValues({}, TD), { fontWeight: 700 }), children: "Total Score" }),
257
- /* @__PURE__ */ jsx(TableCell, { sx: __spreadProps(__spreadValues({}, TD), { textAlign: "center", fontWeight: 700 }), children: "100" }),
258
- /* @__PURE__ */ jsx(TableCell, { sx: __spreadProps(__spreadValues({}, TD), { textAlign: "center", fontWeight: 700 }), children: overallScore }),
259
- /* @__PURE__ */ jsx(TableCell, { sx: __spreadValues({}, TD), children: /* @__PURE__ */ jsx(ProgressCell, { value: { score: overallScore, max: 100 }, primary }) }),
260
- /* @__PURE__ */ jsx(TableCell, { sx: __spreadProps(__spreadValues({}, TD), { fontWeight: 700 }), children: /* @__PURE__ */ jsx(StatusBadge, { label: (_m = sc.Final_Rating) != null ? _m : resultBadge }) })
278
+ /* @__PURE__ */ jsxs(TableRow_default, { sx: { backgroundColor: "#f5f7f8", "& td": { borderBottom: 0 } }, children: [
279
+ /* @__PURE__ */ jsx(TableCell_default, { sx: __spreadProps(__spreadValues({}, TD), { fontWeight: 700 }), children: "Total Score" }),
280
+ /* @__PURE__ */ jsx(TableCell_default, { sx: __spreadProps(__spreadValues({}, TD), { textAlign: "center", fontWeight: 700 }), children: "100" }),
281
+ /* @__PURE__ */ jsx(TableCell_default, { sx: __spreadProps(__spreadValues({}, TD), { textAlign: "center", fontWeight: 700 }), children: overallScore }),
282
+ /* @__PURE__ */ jsx(TableCell_default, { sx: __spreadValues({}, TD), children: /* @__PURE__ */ jsx(ProgressCell, { value: { score: overallScore, max: 100 }, primary }) }),
283
+ /* @__PURE__ */ jsx(TableCell_default, { sx: __spreadProps(__spreadValues({}, TD), { fontWeight: 700 }), children: /* @__PURE__ */ jsx(StatusBadge, { label: (_m = sc.Final_Rating) != null ? _m : resultBadge }) })
261
284
  ] })
262
285
  ] })
263
286
  ] }) })
@@ -316,16 +339,16 @@ var CHECKLIST_COLS = [
316
339
  function ChecklistTable({ title, rows }) {
317
340
  const visibleRows = rows;
318
341
  if (!visibleRows.length) return null;
319
- return /* @__PURE__ */ jsxs(Box, { children: [
342
+ return /* @__PURE__ */ jsxs(Box_default, { children: [
320
343
  /* @__PURE__ */ jsx(SectionTitle, { children: title }),
321
- /* @__PURE__ */ jsx(TableContainer, { sx: { border: "1px solid", borderColor: "divider", borderRadius: "8px", overflow: "hidden" }, children: /* @__PURE__ */ jsxs(Table, { size: "small", children: [
322
- /* @__PURE__ */ jsx(TableHead, { children: /* @__PURE__ */ jsx(TableRow, { children: CHECKLIST_COLS.map((col) => /* @__PURE__ */ jsx(TableCell, { sx: __spreadProps(__spreadValues({}, TH), { minWidth: col.minWidth }), children: col.label }, col.key)) }) }),
323
- /* @__PURE__ */ jsx(TableBody, { children: visibleRows.map((row, ri) => /* @__PURE__ */ jsxs(TableRow, { sx: { "&:last-child td": { borderBottom: 0 } }, children: [
324
- /* @__PURE__ */ jsx(TableCell, { sx: __spreadValues({}, TD), children: row.parameter }),
325
- /* @__PURE__ */ jsx(TableCell, { sx: __spreadValues({}, TD), children: row.expectedStandard }),
326
- /* @__PURE__ */ jsx(TableCell, { sx: __spreadValues({}, TD), children: /* @__PURE__ */ jsx(StatusIconBadge, { label: row.status }) }),
327
- /* @__PURE__ */ jsx(TableCell, { sx: __spreadValues({}, TD), children: row.remarks }),
328
- /* @__PURE__ */ jsx(TableCell, { sx: __spreadValues({}, TD), children: row.qaObservation })
344
+ /* @__PURE__ */ jsx(TableContainer_default, { sx: { border: "1px solid", borderColor: "divider", borderRadius: "8px", overflow: "hidden" }, children: /* @__PURE__ */ jsxs(Table_default, { size: "small", children: [
345
+ /* @__PURE__ */ jsx(TableHead_default, { children: /* @__PURE__ */ jsx(TableRow_default, { children: CHECKLIST_COLS.map((col) => /* @__PURE__ */ jsx(TableCell_default, { sx: __spreadProps(__spreadValues({}, TH), { minWidth: col.minWidth }), children: col.label }, col.key)) }) }),
346
+ /* @__PURE__ */ jsx(TableBody_default, { children: visibleRows.map((row, ri) => /* @__PURE__ */ jsxs(TableRow_default, { sx: { "&:last-child td": { borderBottom: 0 } }, children: [
347
+ /* @__PURE__ */ jsx(TableCell_default, { sx: __spreadValues({}, TD), children: row.parameter }),
348
+ /* @__PURE__ */ jsx(TableCell_default, { sx: __spreadValues({}, TD), children: row.expectedStandard }),
349
+ /* @__PURE__ */ jsx(TableCell_default, { sx: __spreadValues({}, TD), children: /* @__PURE__ */ jsx(StatusIconBadge, { label: row.status }) }),
350
+ /* @__PURE__ */ jsx(TableCell_default, { sx: __spreadValues({}, TD), children: row.remarks }),
351
+ /* @__PURE__ */ jsx(TableCell_default, { sx: __spreadValues({}, TD), children: row.qaObservation })
329
352
  ] }, ri)) })
330
353
  ] }) })
331
354
  ] });
@@ -347,22 +370,22 @@ function DispositionFrameworkTable({ data }) {
347
370
  }
348
371
  ).filter((r) => r.expectedFramework.toLowerCase().trim() !== "clinical sensitivity handling");
349
372
  if (!rows.length) {
350
- return /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.75rem", color: "text.secondary" }, children: "No disposition framework data available." });
373
+ return /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.75rem", color: "text.secondary" }, children: "No disposition framework data available." });
351
374
  }
352
- return /* @__PURE__ */ jsxs(Box, { children: [
375
+ return /* @__PURE__ */ jsxs(Box_default, { children: [
353
376
  /* @__PURE__ */ jsx(SectionTitle, { children: "Disposition-Based Quality Framework" }),
354
- /* @__PURE__ */ jsx(TableContainer, { sx: { border: "1px solid", borderColor: "divider", borderRadius: "8px", overflow: "hidden" }, children: /* @__PURE__ */ jsxs(Table, { size: "small", children: [
355
- /* @__PURE__ */ jsx(TableHead, { children: /* @__PURE__ */ jsx(TableRow, { children: [
377
+ /* @__PURE__ */ jsx(TableContainer_default, { sx: { border: "1px solid", borderColor: "divider", borderRadius: "8px", overflow: "hidden" }, children: /* @__PURE__ */ jsxs(Table_default, { size: "small", children: [
378
+ /* @__PURE__ */ jsx(TableHead_default, { children: /* @__PURE__ */ jsx(TableRow_default, { children: [
356
379
  { label: "Disposition Type", minWidth: 160 },
357
380
  { label: "Expected Framework", minWidth: 200 },
358
381
  { label: "Status", minWidth: 120 },
359
382
  { label: "Remarks", minWidth: 160 }
360
- ].map((col, i) => /* @__PURE__ */ jsx(TableCell, { sx: __spreadProps(__spreadValues({}, TH), { minWidth: col.minWidth }), children: col.label }, i)) }) }),
361
- /* @__PURE__ */ jsx(TableBody, { children: rows.map((row, ri) => /* @__PURE__ */ jsxs(TableRow, { sx: { "&:last-child td": { borderBottom: 0 } }, children: [
362
- /* @__PURE__ */ jsx(TableCell, { sx: __spreadValues({}, TD), children: row.dispositionType }),
363
- /* @__PURE__ */ jsx(TableCell, { sx: __spreadValues({}, TD), children: row.expectedFramework }),
364
- /* @__PURE__ */ jsx(TableCell, { sx: __spreadValues({}, TD), children: /* @__PURE__ */ jsx(StatusIconBadge, { label: row.status }) }),
365
- /* @__PURE__ */ jsx(TableCell, { sx: __spreadValues({}, TD), children: row.remarks })
383
+ ].map((col, i) => /* @__PURE__ */ jsx(TableCell_default, { sx: __spreadProps(__spreadValues({}, TH), { minWidth: col.minWidth }), children: col.label }, i)) }) }),
384
+ /* @__PURE__ */ jsx(TableBody_default, { children: rows.map((row, ri) => /* @__PURE__ */ jsxs(TableRow_default, { sx: { "&:last-child td": { borderBottom: 0 } }, children: [
385
+ /* @__PURE__ */ jsx(TableCell_default, { sx: __spreadValues({}, TD), children: row.dispositionType }),
386
+ /* @__PURE__ */ jsx(TableCell_default, { sx: __spreadValues({}, TD), children: row.expectedFramework }),
387
+ /* @__PURE__ */ jsx(TableCell_default, { sx: __spreadValues({}, TD), children: /* @__PURE__ */ jsx(StatusIconBadge, { label: row.status }) }),
388
+ /* @__PURE__ */ jsx(TableCell_default, { sx: __spreadValues({}, TD), children: row.remarks })
366
389
  ] }, ri)) })
367
390
  ] }) })
368
391
  ] });
@@ -370,7 +393,7 @@ function DispositionFrameworkTable({ data }) {
370
393
  function AuditChecklistContent({ data }) {
371
394
  var _a;
372
395
  const obs = (_a = data.Section_Wise_Audit_Observations_Checklist) != null ? _a : {};
373
- return /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
396
+ return /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
374
397
  /* @__PURE__ */ jsx(DispositionFrameworkTable, { data }),
375
398
  /* @__PURE__ */ jsx(ChecklistTable, { title: "Opening & Greeting", rows: obsRecordToRows(obs.Opening_and_Greeting, OPENING_LABELS, OPENING_EXPECTED) }),
376
399
  /* @__PURE__ */ jsx(ChecklistTable, { title: "Verification & Authentication", rows: obsRecordToRows(obs.Verification_and_Authentication, VERIFICATION_LABELS, VERIFICATION_EXPECTED) }),
@@ -385,9 +408,9 @@ function AuditChecklistTab({ data, primary: _primary }) {
385
408
  var _a;
386
409
  const [view, setView] = useState("overview");
387
410
  const obs = (_a = data.Section_Wise_Audit_Observations_Checklist) != null ? _a : {};
388
- return /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
389
- /* @__PURE__ */ jsx(Box, { sx: { display: "flex", justifyContent: "flex-start" }, children: /* @__PURE__ */ jsxs(
390
- ToggleButtonGroup,
411
+ return /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
412
+ /* @__PURE__ */ jsx(Box_default, { sx: { display: "flex", justifyContent: "flex-start" }, children: /* @__PURE__ */ jsxs(
413
+ ToggleButtonGroup_default,
391
414
  {
392
415
  value: view,
393
416
  exclusive: true,
@@ -407,13 +430,13 @@ function AuditChecklistTab({ data, primary: _primary }) {
407
430
  }
408
431
  },
409
432
  children: [
410
- /* @__PURE__ */ jsx(ToggleButton, { value: "overview", children: "Overview" }),
411
- /* @__PURE__ */ jsx(ToggleButton, { value: "detailed", children: "Detailed" })
433
+ /* @__PURE__ */ jsx(ToggleButton_default, { value: "overview", children: "Overview" }),
434
+ /* @__PURE__ */ jsx(ToggleButton_default, { value: "detailed", children: "Detailed" })
412
435
  ]
413
436
  }
414
437
  ) }),
415
438
  view === "overview" && /* @__PURE__ */ jsx(DispositionFrameworkTable, { data }),
416
- view === "detailed" && /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
439
+ view === "detailed" && /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
417
440
  /* @__PURE__ */ jsx(ChecklistTable, { title: "Opening & Greeting", rows: obsRecordToRows(obs.Opening_and_Greeting, OPENING_LABELS, OPENING_EXPECTED) }),
418
441
  /* @__PURE__ */ jsx(ChecklistTable, { title: "Verification & Authentication", rows: obsRecordToRows(obs.Verification_and_Authentication, VERIFICATION_LABELS, VERIFICATION_EXPECTED) }),
419
442
  /* @__PURE__ */ jsx(ChecklistTable, { title: "Communication Effectiveness", rows: obsRecordToRows(obs.Communication_and_Soft_Skills, COMM_LABELS, COMM_EXPECTED) }),
@@ -428,25 +451,25 @@ function RootCauseAnalysisTab({ data, primary }) {
428
451
  var _a, _b;
429
452
  const rcaRows = (_a = data.Root_Cause_Analysis) != null ? _a : [];
430
453
  const rec = (_b = data.Auditor_Recommendation) != null ? _b : {};
431
- return /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
432
- /* @__PURE__ */ jsxs(Box, { children: [
454
+ return /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
455
+ /* @__PURE__ */ jsxs(Box_default, { children: [
433
456
  /* @__PURE__ */ jsx(SectionTitle, { children: "Root Cause Analysis" }),
434
- rcaRows.length > 0 ? /* @__PURE__ */ jsx(TableContainer, { sx: { border: "1px solid", borderColor: "divider", borderRadius: "8px", overflow: "hidden" }, children: /* @__PURE__ */ jsxs(Table, { size: "small", children: [
435
- /* @__PURE__ */ jsx(TableHead, { children: /* @__PURE__ */ jsx(TableRow, { children: [{ label: "Observation", minWidth: 180 }, { label: "Root Cause", minWidth: 200 }, { label: "Impact", minWidth: 200 }, { label: "Severity", minWidth: 90 }].map((col, i) => /* @__PURE__ */ jsx(TableCell, { sx: __spreadProps(__spreadValues({}, TH), { minWidth: col.minWidth }), children: col.label }, i)) }) }),
436
- /* @__PURE__ */ jsx(TableBody, { children: rcaRows.map((row, ri) => {
457
+ rcaRows.length > 0 ? /* @__PURE__ */ jsx(TableContainer_default, { sx: { border: "1px solid", borderColor: "divider", borderRadius: "8px", overflow: "hidden" }, children: /* @__PURE__ */ jsxs(Table_default, { size: "small", children: [
458
+ /* @__PURE__ */ jsx(TableHead_default, { children: /* @__PURE__ */ jsx(TableRow_default, { children: [{ label: "Observation", minWidth: 180 }, { label: "Root Cause", minWidth: 200 }, { label: "Impact", minWidth: 200 }, { label: "Severity", minWidth: 90 }].map((col, i) => /* @__PURE__ */ jsx(TableCell_default, { sx: __spreadProps(__spreadValues({}, TH), { minWidth: col.minWidth }), children: col.label }, i)) }) }),
459
+ /* @__PURE__ */ jsx(TableBody_default, { children: rcaRows.map((row, ri) => {
437
460
  var _a2, _b2, _c;
438
- return /* @__PURE__ */ jsxs(TableRow, { sx: { "&:last-child td": { borderBottom: 0 } }, children: [
439
- /* @__PURE__ */ jsx(TableCell, { sx: __spreadValues({}, TD), children: (_a2 = row.Observation) != null ? _a2 : "\u2014" }),
440
- /* @__PURE__ */ jsx(TableCell, { sx: __spreadValues({}, TD), children: (_b2 = row.Root_Cause) != null ? _b2 : "\u2014" }),
441
- /* @__PURE__ */ jsx(TableCell, { sx: __spreadValues({}, TD), children: (_c = row.Impact) != null ? _c : "\u2014" }),
442
- /* @__PURE__ */ jsx(TableCell, { sx: __spreadProps(__spreadValues({}, TD), { textAlign: "center" }), children: row.Severity ? /* @__PURE__ */ jsx(StatusBadge, { label: row.Severity }) : "\u2014" })
461
+ return /* @__PURE__ */ jsxs(TableRow_default, { sx: { "&:last-child td": { borderBottom: 0 } }, children: [
462
+ /* @__PURE__ */ jsx(TableCell_default, { sx: __spreadValues({}, TD), children: (_a2 = row.Observation) != null ? _a2 : "\u2014" }),
463
+ /* @__PURE__ */ jsx(TableCell_default, { sx: __spreadValues({}, TD), children: (_b2 = row.Root_Cause) != null ? _b2 : "\u2014" }),
464
+ /* @__PURE__ */ jsx(TableCell_default, { sx: __spreadValues({}, TD), children: (_c = row.Impact) != null ? _c : "\u2014" }),
465
+ /* @__PURE__ */ jsx(TableCell_default, { sx: __spreadProps(__spreadValues({}, TD), { textAlign: "center" }), children: row.Severity ? /* @__PURE__ */ jsx(StatusBadge, { label: row.Severity }) : "\u2014" })
443
466
  ] }, ri);
444
467
  }) })
445
- ] }) }) : /* @__PURE__ */ jsx(Box, { sx: { border: "1px solid", borderColor: "divider", borderRadius: "8px", px: "14px", py: "10px", backgroundColor: "background.paper" }, children: /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.75rem", color: "text.secondary" }, children: "No significant root causes identified for this interaction." }) })
468
+ ] }) }) : /* @__PURE__ */ jsx(Box_default, { sx: { border: "1px solid", borderColor: "divider", borderRadius: "8px", px: "14px", py: "10px", backgroundColor: "background.paper" }, children: /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.75rem", color: "text.secondary" }, children: "No significant root causes identified for this interaction." }) })
446
469
  ] }),
447
- (toStringArray(rec.Key_Strengths).length > 0 || toStringArray(rec.Improvement_Areas).length > 0) && /* @__PURE__ */ jsxs(Box, { children: [
470
+ (toStringArray(rec.Key_Strengths).length > 0 || toStringArray(rec.Improvement_Areas).length > 0) && /* @__PURE__ */ jsxs(Box_default, { children: [
448
471
  /* @__PURE__ */ jsx(SectionTitle, { children: "Auditor's Recommendation" }),
449
- /* @__PURE__ */ jsx(Box, { sx: { display: "flex", gap: 2, flexWrap: "wrap" }, children: [
472
+ /* @__PURE__ */ jsx(Box_default, { sx: { display: "flex", gap: 2, flexWrap: "wrap" }, children: [
450
473
  { title: "Key Strengths", items: toStringArray(rec.Key_Strengths), color: "#2e7d32" },
451
474
  { title: "Improvement Areas", items: toStringArray(rec.Improvement_Areas), color: "#e65100" }
452
475
  ].filter((g) => {
@@ -454,18 +477,18 @@ function RootCauseAnalysisTab({ data, primary }) {
454
477
  return ((_b2 = (_a2 = g.items) == null ? void 0 : _a2.length) != null ? _b2 : 0) > 0;
455
478
  }).map((g) => {
456
479
  var _a2;
457
- return /* @__PURE__ */ jsxs(Box, { sx: { flex: "1 1 200px", border: "1px solid", borderColor: "divider", borderRadius: "6px", backgroundColor: "background.paper", px: "14px", py: "10px" }, children: [
458
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.78rem", fontWeight: 600, color: "text.primary", mb: "8px" }, children: g.title }),
459
- (_a2 = g.items) == null ? void 0 : _a2.map((item, ii) => /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "flex-start", gap: "7px", mb: "5px" }, children: [
460
- /* @__PURE__ */ jsx(Box, { sx: { width: 5, height: 5, borderRadius: "50%", backgroundColor: g.color, mt: "5px", flexShrink: 0 } }),
461
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.75rem", color: "text.secondary", lineHeight: 1.5 }, children: item })
480
+ return /* @__PURE__ */ jsxs(Box_default, { sx: { flex: "1 1 200px", border: "1px solid", borderColor: "divider", borderRadius: "6px", backgroundColor: "background.paper", px: "14px", py: "10px" }, children: [
481
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.78rem", fontWeight: 600, color: "text.primary", mb: "8px" }, children: g.title }),
482
+ (_a2 = g.items) == null ? void 0 : _a2.map((item, ii) => /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "flex-start", gap: "7px", mb: "5px" }, children: [
483
+ /* @__PURE__ */ jsx(Box_default, { sx: { width: 5, height: 5, borderRadius: "50%", backgroundColor: g.color, mt: "5px", flexShrink: 0 } }),
484
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.75rem", color: "text.secondary", lineHeight: 1.5 }, children: item })
462
485
  ] }, ii))
463
486
  ] }, g.title);
464
487
  }) })
465
488
  ] }),
466
- data.Final_Auditor_Remarks && /* @__PURE__ */ jsxs(Box, { sx: { border: "1px solid", borderLeft: "3px solid", borderColor: "divider", borderLeftColor: primary, borderRadius: "6px", px: "14px", py: "10px", backgroundColor: alpha(primary, 0.04) }, children: [
467
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.78rem", fontWeight: 600, color: primary, mb: "6px" }, children: "Final Auditor Remarks" }),
468
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.75rem", color: "text.secondary", lineHeight: 1.6 }, children: data.Final_Auditor_Remarks })
489
+ data.Final_Auditor_Remarks && /* @__PURE__ */ jsxs(Box_default, { sx: { border: "1px solid", borderLeft: "3px solid", borderColor: "divider", borderLeftColor: primary, borderRadius: "6px", px: "14px", py: "10px", backgroundColor: alpha(primary, 0.04) }, children: [
490
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.78rem", fontWeight: 600, color: primary, mb: "6px" }, children: "Final Auditor Remarks" }),
491
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.75rem", color: "text.secondary", lineHeight: 1.6 }, children: data.Final_Auditor_Remarks })
469
492
  ] })
470
493
  ] });
471
494
  }
@@ -503,7 +526,7 @@ function useAuditReportData(callUuid, active = true) {
503
526
  }
504
527
  var PRINT_ROOT_ID = "audit-report-print-root";
505
528
  var PRINT_STYLES = /* @__PURE__ */ jsx(
506
- GlobalStyles,
529
+ GlobalStyles_default,
507
530
  {
508
531
  styles: {
509
532
  [`#${PRINT_ROOT_ID}`]: { position: "absolute", width: "1px", height: "1px", overflow: "hidden", clip: "rect(0 0 0 0)", clipPath: "inset(50%)", whiteSpace: "nowrap", pointerEvents: "none" },
@@ -560,14 +583,14 @@ function AuditReportInner({ callUuid, active = true, primary, onClose, onMaximiz
560
583
  PRINT_STYLES,
561
584
  createPortal(
562
585
  /* @__PURE__ */ jsxs("div", { id: PRINT_ROOT_ID, children: [
563
- /* @__PURE__ */ jsxs(Box, { sx: { mb: 2.5, pb: 1.5, borderBottom: "2px solid", borderColor: "divider" }, children: [
564
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "1.2rem", fontWeight: 700, color: "text.primary" }, children: "Audit Report" }),
565
- subtitle && /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.8rem", color: "text.secondary", mt: "4px" }, children: subtitle })
586
+ /* @__PURE__ */ jsxs(Box_default, { sx: { mb: 2.5, pb: 1.5, borderBottom: "2px solid", borderColor: "divider" }, children: [
587
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "1.2rem", fontWeight: 700, color: "text.primary" }, children: "Audit Report" }),
588
+ subtitle && /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.8rem", color: "text.secondary", mt: "4px" }, children: subtitle })
566
589
  ] }),
567
- apiData && /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", flexDirection: "column", gap: 3 }, children: [
590
+ apiData && /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", flexDirection: "column", gap: 3 }, children: [
568
591
  /* @__PURE__ */ jsx(OverviewTab, { data: apiData }),
569
592
  /* @__PURE__ */ jsx(ScorecardTab, { data: apiData, primary }),
570
- /* @__PURE__ */ jsxs(Box, { children: [
593
+ /* @__PURE__ */ jsxs(Box_default, { children: [
571
594
  /* @__PURE__ */ jsx(SectionTitle, { children: "Audit Checklist" }),
572
595
  /* @__PURE__ */ jsx(AuditChecklistContent, { data: apiData })
573
596
  ] }),
@@ -576,21 +599,21 @@ function AuditReportInner({ callUuid, active = true, primary, onClose, onMaximiz
576
599
  ] }),
577
600
  document.body
578
601
  ),
579
- /* @__PURE__ */ jsxs(Box, { sx: { px: { xs: 2, md: 2.5 }, py: "12px", display: "flex", alignItems: "flex-start", justifyContent: "space-between", gap: 1, borderBottom: "1px solid", borderColor: "divider", flexShrink: 0 }, children: [
580
- /* @__PURE__ */ jsxs(Box, { sx: { minWidth: 0 }, children: [
581
- /* @__PURE__ */ jsx(Typography, { sx: { fontWeight: 700, fontSize: { xs: "1rem", sm: "1.2rem" }, color: "text.primary", lineHeight: 1.3 }, children: "Audit Report" }),
582
- subtitle && /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.78rem", color: "text.secondary", mt: "3px" }, children: subtitle })
602
+ /* @__PURE__ */ jsxs(Box_default, { sx: { px: { xs: 2, md: 2.5 }, py: "12px", display: "flex", alignItems: "flex-start", justifyContent: "space-between", gap: 1, borderBottom: "1px solid", borderColor: "divider", flexShrink: 0 }, children: [
603
+ /* @__PURE__ */ jsxs(Box_default, { sx: { minWidth: 0 }, children: [
604
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontWeight: 700, fontSize: { xs: "1rem", sm: "1.2rem" }, color: "text.primary", lineHeight: 1.3 }, children: "Audit Report" }),
605
+ subtitle && /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.78rem", color: "text.secondary", mt: "3px" }, children: subtitle })
583
606
  ] }),
584
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 0.75, flexShrink: 0 }, children: [
585
- onMaximize && /* @__PURE__ */ jsx(IconButton, { size: "small", onClick: onMaximize, title: "Open in new tab", sx: iconButtonSx, children: /* @__PURE__ */ jsx(LaunchIcon, { sx: { fontSize: 14 } }) }),
586
- onClose && /* @__PURE__ */ jsx(IconButton, { size: "small", onClick: onClose, title: "Close", sx: iconButtonSx, children: /* @__PURE__ */ jsx(CloseIcon, { sx: { fontSize: 15 } }) })
607
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: 0.75, flexShrink: 0 }, children: [
608
+ onMaximize && /* @__PURE__ */ jsx(IconButton_default, { size: "small", onClick: onMaximize, title: "Open in new tab", sx: iconButtonSx, children: /* @__PURE__ */ jsx(Launch_default, { sx: { fontSize: 14 } }) }),
609
+ onClose && /* @__PURE__ */ jsx(IconButton_default, { size: "small", onClick: onClose, title: "Close", sx: iconButtonSx, children: /* @__PURE__ */ jsx(Close_default, { sx: { fontSize: 15 } }) })
587
610
  ] })
588
611
  ] }),
589
- headerBadges.length > 0 && /* @__PURE__ */ jsx(Box, { sx: { px: { xs: 2, md: 2.5 }, py: "8px", display: "flex", alignItems: "center", gap: "8px", flexWrap: "wrap", borderBottom: "1px solid", borderColor: "divider", backgroundColor: "#f5f7f8", flexShrink: 0 }, children: headerBadges.map(
590
- (badge, i) => badge.asBadge ? /* @__PURE__ */ jsx(StatusBadge, { label: badge.value }, i) : /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: "5px", px: "9px", height: 26, border: "1px solid", borderColor: "divider", borderRadius: "5px", backgroundColor: "background.paper" }, children: [
591
- /* @__PURE__ */ jsx(Box, { sx: { width: 5, height: 5, borderRadius: "50%", backgroundColor: primary, flexShrink: 0 } }),
592
- /* @__PURE__ */ jsxs(Typography, { sx: { fontSize: "0.72rem", color: "text.secondary", whiteSpace: "nowrap" }, children: [
593
- /* @__PURE__ */ jsxs(Box, { component: "span", sx: { fontWeight: 600, color: "text.primary", mr: "3px" }, children: [
612
+ headerBadges.length > 0 && /* @__PURE__ */ jsx(Box_default, { sx: { px: { xs: 2, md: 2.5 }, py: "8px", display: "flex", alignItems: "center", gap: "8px", flexWrap: "wrap", borderBottom: "1px solid", borderColor: "divider", backgroundColor: "#f5f7f8", flexShrink: 0 }, children: headerBadges.map(
613
+ (badge, i) => badge.asBadge ? /* @__PURE__ */ jsx(StatusBadge, { label: badge.value }, i) : /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: "5px", px: "9px", height: 26, border: "1px solid", borderColor: "divider", borderRadius: "5px", backgroundColor: "background.paper" }, children: [
614
+ /* @__PURE__ */ jsx(Box_default, { sx: { width: 5, height: 5, borderRadius: "50%", backgroundColor: primary, flexShrink: 0 } }),
615
+ /* @__PURE__ */ jsxs(Typography_default, { sx: { fontSize: "0.72rem", color: "text.secondary", whiteSpace: "nowrap" }, children: [
616
+ /* @__PURE__ */ jsxs(Box_default, { component: "span", sx: { fontWeight: 600, color: "text.primary", mr: "3px" }, children: [
594
617
  badge.label,
595
618
  ":"
596
619
  ] }),
@@ -598,8 +621,8 @@ function AuditReportInner({ callUuid, active = true, primary, onClose, onMaximiz
598
621
  ] })
599
622
  ] }, i)
600
623
  ) }),
601
- /* @__PURE__ */ jsx(Box, { sx: { borderBottom: "1px solid", borderColor: "divider", backgroundColor: "background.paper", flexShrink: 0 }, children: /* @__PURE__ */ jsx(
602
- Tabs,
624
+ /* @__PURE__ */ jsx(Box_default, { sx: { borderBottom: "1px solid", borderColor: "divider", backgroundColor: "background.paper", flexShrink: 0 }, children: /* @__PURE__ */ jsx(
625
+ Tabs_default,
603
626
  {
604
627
  value: activeTab,
605
628
  onChange: (_, v) => setActiveTab(v),
@@ -611,13 +634,13 @@ function AuditReportInner({ callUuid, active = true, primary, onClose, onMaximiz
611
634
  "& .MuiTab-root": { fontSize: "0.78rem", fontWeight: 600, minHeight: 40, textTransform: "none", color: "text.secondary", py: 0, px: 1.5, "&.Mui-selected": { color: primary } },
612
635
  "& .MuiTabs-indicator": { backgroundColor: primary, height: 2 }
613
636
  },
614
- children: STATIC_TABS.map((tab) => /* @__PURE__ */ jsx(Tab, { label: tab.label, disableRipple: true }, tab.id))
637
+ children: STATIC_TABS.map((tab) => /* @__PURE__ */ jsx(Tab_default, { label: tab.label, disableRipple: true }, tab.id))
615
638
  }
616
639
  ) }),
617
- /* @__PURE__ */ jsxs(Box, { sx: { flex: 1, overflow: "auto", px: { xs: 2, md: 2.5 }, py: 2 }, children: [
618
- auditLoading && /* @__PURE__ */ jsx(Box, { sx: { display: "flex", justifyContent: "center", alignItems: "center", py: 6 }, children: /* @__PURE__ */ jsx(CircularProgress, { size: 32 }) }),
619
- !auditLoading && auditError && /* @__PURE__ */ jsx(Alert, { severity: "warning", sx: { mb: 2, fontSize: "0.78rem" }, children: auditError }),
620
- !auditLoading && !auditError && !apiData && /* @__PURE__ */ jsx(Box, { sx: { display: "flex", justifyContent: "center", alignItems: "center", py: 6 }, children: /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.78rem", color: "text.secondary" }, children: "No audit data available." }) }),
640
+ /* @__PURE__ */ jsxs(Box_default, { sx: { flex: 1, overflow: "auto", px: { xs: 2, md: 2.5 }, py: 2 }, children: [
641
+ auditLoading && /* @__PURE__ */ jsx(Box_default, { sx: { display: "flex", justifyContent: "center", alignItems: "center", py: 6 }, children: /* @__PURE__ */ jsx(CircularProgress_default, { size: 32 }) }),
642
+ !auditLoading && auditError && /* @__PURE__ */ jsx(Alert_default, { severity: "warning", sx: { mb: 2, fontSize: "0.78rem" }, children: auditError }),
643
+ !auditLoading && !auditError && !apiData && /* @__PURE__ */ jsx(Box_default, { sx: { display: "flex", justifyContent: "center", alignItems: "center", py: 6 }, children: /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.78rem", color: "text.secondary" }, children: "No audit data available." }) }),
621
644
  !auditLoading && apiData && renderTab()
622
645
  ] })
623
646
  ] });
@@ -639,7 +662,7 @@ function AuditReportDialog({ open, onClose, width = "80vw", rowData, onMaximize
639
662
  window.open(auditReportUrlResolver(callUuid), "_blank");
640
663
  };
641
664
  return /* @__PURE__ */ jsx(
642
- Dialog,
665
+ Dialog_default,
643
666
  {
644
667
  open,
645
668
  onClose: (_e, reason) => {
@@ -667,7 +690,7 @@ function AuditReportDialog({ open, onClose, width = "80vw", rowData, onMaximize
667
690
  function AuditReportFullPage({ callUuid }) {
668
691
  const theme = useTheme();
669
692
  const primary = theme.palette.primary.main;
670
- return /* @__PURE__ */ jsx(Box, { sx: { height: "100vh", display: "flex", flexDirection: "column", overflow: "hidden", backgroundColor: "background.paper" }, children: /* @__PURE__ */ jsx(AuditReportInner, { callUuid, active: true, primary }) });
693
+ return /* @__PURE__ */ jsx(Box_default, { sx: { height: "100vh", display: "flex", flexDirection: "column", overflow: "hidden", backgroundColor: "background.paper" }, children: /* @__PURE__ */ jsx(AuditReportInner, { callUuid, active: true, primary }) });
671
694
  }
672
695
 
673
696
  export {
@@ -675,4 +698,4 @@ export {
675
698
  AuditReportDialog,
676
699
  AuditReportFullPage
677
700
  };
678
- //# sourceMappingURL=chunk-PO6POUPL.mjs.map
701
+ //# sourceMappingURL=chunk-IDZWA6HG.mjs.map