ahs-cti 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agentDetailReport-ZR7U2LLB.mjs +17 -0
- package/dist/{agentPerformanceReport-U2QGVTXF.mjs → agentPerformanceReport-JZK5DN5E.mjs} +59 -57
- package/dist/{agentPerformanceReport-U2QGVTXF.mjs.map → agentPerformanceReport-JZK5DN5E.mjs.map} +1 -1
- package/dist/{auditReport-DEVQDTDT.mjs → auditReport-6ZUJ4UFO.mjs} +5 -5
- package/dist/{callHistory-MRBBY3UO.mjs → callHistory-T3M76D4B.mjs} +147 -156
- package/dist/{callHistory-MRBBY3UO.mjs.map → callHistory-T3M76D4B.mjs.map} +1 -1
- package/dist/{campaigns-ERO3QM6I.mjs → campaigns-5PVHXBSD.mjs} +384 -386
- package/dist/{campaigns-ERO3QM6I.mjs.map → campaigns-5PVHXBSD.mjs.map} +1 -1
- package/dist/{caroQualityAuditDashboard-NRWY6SEC.mjs → caroQualityAuditDashboard-EUDYZ3QY.mjs} +6 -5
- package/dist/{caroQualityAuditDashboard-NRWY6SEC.mjs.map → caroQualityAuditDashboard-EUDYZ3QY.mjs.map} +1 -1
- package/dist/{caroVoiceAI-Z5BDDDSY.mjs → caroVoiceAI-GGJCVUIQ.mjs} +5 -4
- package/dist/{caroVoiceAI-Z5BDDDSY.mjs.map → caroVoiceAI-GGJCVUIQ.mjs.map} +1 -1
- package/dist/{cdrReport-EZNOCELK.mjs → cdrReport-ZMDHSZUW.mjs} +101 -100
- package/dist/{cdrReport-EZNOCELK.mjs.map → cdrReport-ZMDHSZUW.mjs.map} +1 -1
- package/dist/{chunk-53DYH64M.mjs → chunk-2M3YEXYA.mjs} +91 -64
- package/dist/chunk-2M3YEXYA.mjs.map +1 -0
- package/dist/{chunk-ISQBOS5Q.mjs → chunk-33QNSXP7.mjs} +160 -160
- package/dist/{chunk-ISQBOS5Q.mjs.map → chunk-33QNSXP7.mjs.map} +1 -1
- package/dist/{chunk-YFW47Y76.mjs → chunk-3J7KQNEU.mjs} +15 -12
- package/dist/{chunk-YFW47Y76.mjs.map → chunk-3J7KQNEU.mjs.map} +1 -1
- package/dist/{chunk-MBHP7UOP.mjs → chunk-6WLG2PXL.mjs} +2 -2
- package/dist/{chunk-MBXHRFGP.mjs → chunk-7LE2VTAI.mjs} +2 -2
- package/dist/{chunk-MFZKONNR.mjs → chunk-AOJRUZTO.mjs} +2 -2
- package/dist/chunk-DF5EFKXC.mjs +28690 -0
- package/dist/chunk-DF5EFKXC.mjs.map +1 -0
- package/dist/{chunk-5FSMIU5K.mjs → chunk-DJP744FF.mjs} +2 -2
- package/dist/{chunk-BVQNDAS6.mjs → chunk-DNTGBNZD.mjs} +18 -14
- package/dist/{chunk-BVQNDAS6.mjs.map → chunk-DNTGBNZD.mjs.map} +1 -1
- package/dist/{chunk-AJQBR3AZ.mjs → chunk-E6KYWWAI.mjs} +4243 -7804
- package/dist/chunk-E6KYWWAI.mjs.map +1 -0
- package/dist/{chunk-3DOSR6LQ.mjs → chunk-FRKV2U3I.mjs} +2 -2
- package/dist/{chunk-ICGEHYJL.mjs → chunk-H7GRWLYI.mjs} +5 -5
- package/dist/{chunk-6MURUWDX.mjs → chunk-IDZWA6HG.mjs} +154 -156
- package/dist/{chunk-6MURUWDX.mjs.map → chunk-IDZWA6HG.mjs.map} +1 -1
- package/dist/chunk-LHE4QGJJ.mjs +10920 -0
- package/dist/chunk-LHE4QGJJ.mjs.map +1 -0
- package/dist/{chunk-HBR2JS4C.mjs → chunk-NAZO4HKB.mjs} +8 -4
- package/dist/{chunk-HBR2JS4C.mjs.map → chunk-NAZO4HKB.mjs.map} +1 -1
- package/dist/{chunk-DXZIYCNQ.mjs → chunk-OHJIW3I3.mjs} +2 -2
- package/dist/chunk-Q6G3MPS7.mjs +37797 -0
- package/dist/chunk-Q6G3MPS7.mjs.map +1 -0
- package/dist/{chunk-QPOHVXUK.mjs → chunk-U2UDKXMB.mjs} +2 -2
- package/dist/{chunk-XMRM5VR4.mjs → chunk-VBIDPX5Z.mjs} +18 -14
- package/dist/{chunk-XMRM5VR4.mjs.map → chunk-VBIDPX5Z.mjs.map} +1 -1
- package/dist/{chunk-6ICPXSN6.mjs → chunk-VVDJLUYT.mjs} +8 -4
- package/dist/{chunk-6ICPXSN6.mjs.map → chunk-VVDJLUYT.mjs.map} +1 -1
- package/dist/{chunk-XA5SCAZJ.mjs → chunk-WTBVFN4H.mjs} +2 -2
- package/dist/{chunk-RSL5OBRQ.mjs → chunk-YAQYTUTX.mjs} +2 -2
- package/dist/index.js +117240 -32148
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +276 -296
- package/dist/index.mjs.map +1 -1
- package/dist/{liveStatus-F6AKCC27.mjs → liveStatus-YSBYSVOO.mjs} +123 -122
- package/dist/{liveStatus-F6AKCC27.mjs.map → liveStatus-YSBYSVOO.mjs.map} +1 -1
- package/dist/{loginReport-MWTI4G6O.mjs → loginReport-YIVBJVJD.mjs} +118 -116
- package/dist/{loginReport-MWTI4G6O.mjs.map → loginReport-YIVBJVJD.mjs.map} +1 -1
- package/dist/managementDashboard-7EMQC2UA.mjs +536 -0
- package/dist/{managementDashboard-6UBOCLBA.mjs.map → managementDashboard-7EMQC2UA.mjs.map} +1 -1
- package/dist/{qualityAuditDashboard-ZJEEAMBS.mjs → qualityAuditDashboard-ENGQN2WQ.mjs} +6 -5
- package/dist/{qualityAuditDashboard-ZJEEAMBS.mjs.map → qualityAuditDashboard-ENGQN2WQ.mjs.map} +1 -1
- package/package.json +1 -1
- package/dist/agentDetailReport-F7XZLVVO.mjs +0 -16
- package/dist/chunk-53DYH64M.mjs.map +0 -1
- package/dist/chunk-AJQBR3AZ.mjs.map +0 -1
- package/dist/chunk-Q7FIRWF2.mjs +0 -1067
- package/dist/chunk-Q7FIRWF2.mjs.map +0 -1
- package/dist/chunk-UB5HSUGK.mjs +0 -65
- package/dist/chunk-UB5HSUGK.mjs.map +0 -1
- package/dist/managementDashboard-6UBOCLBA.mjs +0 -536
- /package/dist/{agentDetailReport-F7XZLVVO.mjs.map → agentDetailReport-ZR7U2LLB.mjs.map} +0 -0
- /package/dist/{auditReport-DEVQDTDT.mjs.map → auditReport-6ZUJ4UFO.mjs.map} +0 -0
- /package/dist/{chunk-MBHP7UOP.mjs.map → chunk-6WLG2PXL.mjs.map} +0 -0
- /package/dist/{chunk-MBXHRFGP.mjs.map → chunk-7LE2VTAI.mjs.map} +0 -0
- /package/dist/{chunk-MFZKONNR.mjs.map → chunk-AOJRUZTO.mjs.map} +0 -0
- /package/dist/{chunk-5FSMIU5K.mjs.map → chunk-DJP744FF.mjs.map} +0 -0
- /package/dist/{chunk-3DOSR6LQ.mjs.map → chunk-FRKV2U3I.mjs.map} +0 -0
- /package/dist/{chunk-ICGEHYJL.mjs.map → chunk-H7GRWLYI.mjs.map} +0 -0
- /package/dist/{chunk-DXZIYCNQ.mjs.map → chunk-OHJIW3I3.mjs.map} +0 -0
- /package/dist/{chunk-QPOHVXUK.mjs.map → chunk-U2UDKXMB.mjs.map} +0 -0
- /package/dist/{chunk-XA5SCAZJ.mjs.map → chunk-WTBVFN4H.mjs.map} +0 -0
- /package/dist/{chunk-RSL5OBRQ.mjs.map → chunk-YAQYTUTX.mjs.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSvgIcon
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Q6G3MPS7.mjs";
|
|
4
4
|
|
|
5
5
|
// node_modules/@mui/icons-material/Download.mjs
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -11,4 +11,4 @@ var Download_default = createSvgIcon(/* @__PURE__ */ _jsx("path", {
|
|
|
11
11
|
export {
|
|
12
12
|
Download_default
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=chunk-
|
|
14
|
+
//# sourceMappingURL=chunk-FRKV2U3I.mjs.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
createSvgIcon,
|
|
3
2
|
sdkStateManager
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LHE4QGJJ.mjs";
|
|
5
4
|
import {
|
|
6
5
|
__spreadProps,
|
|
7
|
-
__spreadValues
|
|
8
|
-
|
|
6
|
+
__spreadValues,
|
|
7
|
+
createSvgIcon
|
|
8
|
+
} from "./chunk-Q6G3MPS7.mjs";
|
|
9
9
|
|
|
10
10
|
// call-control-sdk/lib/hooks/useGetCallerData.ts
|
|
11
11
|
import { useState, useEffect } from "react";
|
|
@@ -62,4 +62,4 @@ export {
|
|
|
62
62
|
useGetCallerData,
|
|
63
63
|
Pause_default
|
|
64
64
|
};
|
|
65
|
-
//# sourceMappingURL=chunk-
|
|
65
|
+
//# sourceMappingURL=chunk-H7GRWLYI.mjs.map
|
|
@@ -1,42 +1,40 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Close_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WTBVFN4H.mjs";
|
|
4
4
|
import {
|
|
5
5
|
END_POINT,
|
|
6
|
-
axios_default
|
|
7
|
-
|
|
8
|
-
} from "./chunk-Q7FIRWF2.mjs";
|
|
6
|
+
axios_default
|
|
7
|
+
} from "./chunk-LHE4QGJJ.mjs";
|
|
9
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,
|
|
10
28
|
__spreadProps,
|
|
11
|
-
__spreadValues
|
|
12
|
-
|
|
29
|
+
__spreadValues,
|
|
30
|
+
alpha,
|
|
31
|
+
createSvgIcon,
|
|
32
|
+
useTheme
|
|
33
|
+
} from "./chunk-Q6G3MPS7.mjs";
|
|
13
34
|
|
|
14
35
|
// call-control-sdk/lib/pages/common/components/AuditReport.tsx
|
|
15
36
|
import { useEffect, useState } from "react";
|
|
16
37
|
import { createPortal } from "react-dom";
|
|
17
|
-
import {
|
|
18
|
-
Avatar,
|
|
19
|
-
Box,
|
|
20
|
-
Typography,
|
|
21
|
-
Table,
|
|
22
|
-
TableBody,
|
|
23
|
-
TableCell,
|
|
24
|
-
TableContainer,
|
|
25
|
-
TableHead,
|
|
26
|
-
TableRow,
|
|
27
|
-
Tabs,
|
|
28
|
-
Tab,
|
|
29
|
-
LinearProgress,
|
|
30
|
-
useTheme,
|
|
31
|
-
Dialog,
|
|
32
|
-
IconButton,
|
|
33
|
-
GlobalStyles,
|
|
34
|
-
CircularProgress,
|
|
35
|
-
Alert,
|
|
36
|
-
ToggleButton,
|
|
37
|
-
ToggleButtonGroup
|
|
38
|
-
} from "@mui/material";
|
|
39
|
-
import { alpha } from "@mui/material/styles";
|
|
40
38
|
|
|
41
39
|
// node_modules/@mui/icons-material/Launch.mjs
|
|
42
40
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -99,7 +97,7 @@ function resolveColour(label) {
|
|
|
99
97
|
}
|
|
100
98
|
function StatusBadge({ label }) {
|
|
101
99
|
const { color, bg } = resolveColour(label);
|
|
102
|
-
return /* @__PURE__ */ jsx(
|
|
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() }) });
|
|
103
101
|
}
|
|
104
102
|
function StatusIconBadge({ label }) {
|
|
105
103
|
const key = label.toLowerCase().replace(/[^a-z]/g, "");
|
|
@@ -113,7 +111,7 @@ function StatusIconBadge({ label }) {
|
|
|
113
111
|
} else {
|
|
114
112
|
icon = /* @__PURE__ */ jsx(HighlightOff_default, { sx: { fontSize: 15, color: "#c62828" } });
|
|
115
113
|
}
|
|
116
|
-
return /* @__PURE__ */ jsxs(
|
|
114
|
+
return /* @__PURE__ */ jsxs(Box_default, { sx: { display: "inline-flex", alignItems: "center", gap: "4px" }, children: [
|
|
117
115
|
icon,
|
|
118
116
|
/* @__PURE__ */ jsx(StatusBadge, { label })
|
|
119
117
|
] });
|
|
@@ -121,9 +119,9 @@ function StatusIconBadge({ label }) {
|
|
|
121
119
|
function ProgressCell({ value, primary }) {
|
|
122
120
|
const pct = Math.min(Math.round(value.score / value.max * 100), 100);
|
|
123
121
|
const barColor = pct < 80 ? "#c62828" : primary;
|
|
124
|
-
return /* @__PURE__ */ jsxs(
|
|
125
|
-
/* @__PURE__ */ jsx(
|
|
126
|
-
/* @__PURE__ */ jsxs(
|
|
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: [
|
|
127
125
|
pct,
|
|
128
126
|
"%"
|
|
129
127
|
] })
|
|
@@ -132,20 +130,20 @@ function ProgressCell({ value, primary }) {
|
|
|
132
130
|
var TH = { fontSize: "0.72rem", fontWeight: 700, color: "text.secondary", py: "7px", px: "10px", backgroundColor: "#f5f7f8", borderBottom: "1px solid", borderColor: "divider", whiteSpace: "nowrap" };
|
|
133
131
|
var TD = { fontSize: "0.75rem", color: "text.primary", py: "6px", px: "10px", borderBottom: "1px solid", borderColor: "divider", verticalAlign: "middle" };
|
|
134
132
|
function SectionTitle({ children }) {
|
|
135
|
-
return /* @__PURE__ */ jsx(
|
|
133
|
+
return /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.78rem", fontWeight: 700, color: "text.primary", mb: "8px", mt: "4px" }, children });
|
|
136
134
|
}
|
|
137
135
|
function TranscriptBubbles({ text }) {
|
|
138
136
|
const lines = text.split("\n").filter((l) => l.trim().length > 0);
|
|
139
137
|
if (!lines.length) {
|
|
140
|
-
return /* @__PURE__ */ jsx(
|
|
138
|
+
return /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.75rem", color: "text.secondary" }, children: "No transcript available." });
|
|
141
139
|
}
|
|
142
|
-
return /* @__PURE__ */ jsx(
|
|
140
|
+
return /* @__PURE__ */ jsx(Box_default, { sx: { display: "flex", flexDirection: "column", gap: "6px" }, children: lines.map((line, idx) => {
|
|
143
141
|
const isPatient = line.trim().toLowerCase().startsWith("patient");
|
|
144
142
|
const text2 = line.replace(/^\s*(Patient|Agent)\s*:\s*/i, "");
|
|
145
|
-
return /* @__PURE__ */ jsxs(
|
|
146
|
-
!isPatient && /* @__PURE__ */ jsx(
|
|
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 } }),
|
|
147
145
|
/* @__PURE__ */ jsx(
|
|
148
|
-
|
|
146
|
+
Box_default,
|
|
149
147
|
{
|
|
150
148
|
sx: (t) => ({
|
|
151
149
|
maxWidth: "70%",
|
|
@@ -161,7 +159,7 @@ function TranscriptBubbles({ text }) {
|
|
|
161
159
|
children: text2
|
|
162
160
|
}
|
|
163
161
|
),
|
|
164
|
-
isPatient && /* @__PURE__ */ jsx(
|
|
162
|
+
isPatient && /* @__PURE__ */ jsx(Avatar_default, { sx: { width: 22, height: 22, fontSize: 12 } })
|
|
165
163
|
] }, idx);
|
|
166
164
|
}) });
|
|
167
165
|
}
|
|
@@ -186,21 +184,21 @@ function OverviewTab({ data }) {
|
|
|
186
184
|
const half = Math.ceil(kvItems.length / 2);
|
|
187
185
|
const col1 = kvItems.slice(0, half);
|
|
188
186
|
const col2 = kvItems.slice(half);
|
|
189
|
-
return /* @__PURE__ */ jsxs(
|
|
190
|
-
/* @__PURE__ */ jsxs(
|
|
187
|
+
return /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
|
|
188
|
+
/* @__PURE__ */ jsxs(Box_default, { children: [
|
|
191
189
|
/* @__PURE__ */ jsx(SectionTitle, { children: "Audit Metadata" }),
|
|
192
|
-
/* @__PURE__ */ jsx(
|
|
193
|
-
/* @__PURE__ */ jsx(
|
|
194
|
-
/* @__PURE__ */ jsx(
|
|
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 })
|
|
195
193
|
] }, ii)) }, ci)) }) })
|
|
196
194
|
] }),
|
|
197
|
-
/* @__PURE__ */ jsxs(
|
|
195
|
+
/* @__PURE__ */ jsxs(Box_default, { children: [
|
|
198
196
|
/* @__PURE__ */ jsx(SectionTitle, { children: "Call Summary" }),
|
|
199
|
-
/* @__PURE__ */ jsx(
|
|
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." }) })
|
|
200
198
|
] }),
|
|
201
|
-
/* @__PURE__ */ jsxs(
|
|
199
|
+
/* @__PURE__ */ jsxs(Box_default, { children: [
|
|
202
200
|
/* @__PURE__ */ jsx(SectionTitle, { children: "Call Transcription" }),
|
|
203
|
-
/* @__PURE__ */ jsx(
|
|
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 : "" }) })
|
|
204
202
|
] })
|
|
205
203
|
] });
|
|
206
204
|
}
|
|
@@ -230,59 +228,59 @@ function ScorecardTab({ data, primary }) {
|
|
|
230
228
|
{ label: "Process Adherence", value: (_k = summary.Process_Adherence) != null ? _k : "N/A" },
|
|
231
229
|
{ label: "Effective Communication", value: (_l = summary.Communication_Effectiveness) != null ? _l : "N/A" }
|
|
232
230
|
];
|
|
233
|
-
return /* @__PURE__ */ jsxs(
|
|
234
|
-
/* @__PURE__ */ jsxs(
|
|
235
|
-
/* @__PURE__ */ jsxs(
|
|
236
|
-
/* @__PURE__ */ jsx(
|
|
237
|
-
/* @__PURE__ */ jsxs(
|
|
238
|
-
/* @__PURE__ */ jsx(
|
|
239
|
-
/* @__PURE__ */ jsx(
|
|
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" })
|
|
240
238
|
] }),
|
|
241
|
-
/* @__PURE__ */ jsx(
|
|
242
|
-
/* @__PURE__ */ jsx(
|
|
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 }) })
|
|
243
241
|
] }),
|
|
244
|
-
/* @__PURE__ */ jsxs(
|
|
245
|
-
/* @__PURE__ */ jsx(
|
|
246
|
-
/* @__PURE__ */ jsx(
|
|
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 }),
|
|
247
245
|
/* @__PURE__ */ jsx(StatusBadge, { label: m.value })
|
|
248
246
|
] }, m.label)) }),
|
|
249
|
-
/* @__PURE__ */ jsx(
|
|
250
|
-
/* @__PURE__ */ jsx(
|
|
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 }),
|
|
251
249
|
/* @__PURE__ */ jsx(StatusBadge, { label: m.value })
|
|
252
250
|
] }, m.label)) })
|
|
253
251
|
] })
|
|
254
252
|
] }),
|
|
255
|
-
/* @__PURE__ */ jsxs(
|
|
253
|
+
/* @__PURE__ */ jsxs(Box_default, { children: [
|
|
256
254
|
/* @__PURE__ */ jsx(SectionTitle, { children: "Quality Scorecard" }),
|
|
257
|
-
/* @__PURE__ */ jsx(
|
|
258
|
-
/* @__PURE__ */ jsx(
|
|
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: [
|
|
259
257
|
{ label: "Evaluation Parameter", align: "left", minWidth: 180 },
|
|
260
258
|
{ label: "Weightage", align: "center", minWidth: 90 },
|
|
261
259
|
{ label: "Score", align: "center", minWidth: 80 },
|
|
262
260
|
{ label: "", align: "left", minWidth: 120 },
|
|
263
261
|
{ label: "Remarks", align: "left", minWidth: 160 }
|
|
264
|
-
].map((col, i) => /* @__PURE__ */ jsx(
|
|
265
|
-
/* @__PURE__ */ jsxs(
|
|
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: [
|
|
266
264
|
SCORECARD_PARAMS.map((p) => {
|
|
267
265
|
var _a2, _b2;
|
|
268
266
|
const entry = sc[p.key];
|
|
269
267
|
const rawEntryScore = entry == null ? void 0 : entry.Score_Obtained;
|
|
270
268
|
const score = typeof rawEntryScore === "string" ? parseFloat(rawEntryScore) || 0 : rawEntryScore != null ? rawEntryScore : 0;
|
|
271
269
|
const max = (_a2 = entry == null ? void 0 : entry.Weightage) != null ? _a2 : p.defaultMax;
|
|
272
|
-
return /* @__PURE__ */ jsxs(
|
|
273
|
-
/* @__PURE__ */ jsx(
|
|
274
|
-
/* @__PURE__ */ jsx(
|
|
275
|
-
/* @__PURE__ */ jsx(
|
|
276
|
-
/* @__PURE__ */ jsx(
|
|
277
|
-
/* @__PURE__ */ jsx(
|
|
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" })
|
|
278
276
|
] }, p.key);
|
|
279
277
|
}),
|
|
280
|
-
/* @__PURE__ */ jsxs(
|
|
281
|
-
/* @__PURE__ */ jsx(
|
|
282
|
-
/* @__PURE__ */ jsx(
|
|
283
|
-
/* @__PURE__ */ jsx(
|
|
284
|
-
/* @__PURE__ */ jsx(
|
|
285
|
-
/* @__PURE__ */ jsx(
|
|
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 }) })
|
|
286
284
|
] })
|
|
287
285
|
] })
|
|
288
286
|
] }) })
|
|
@@ -341,16 +339,16 @@ var CHECKLIST_COLS = [
|
|
|
341
339
|
function ChecklistTable({ title, rows }) {
|
|
342
340
|
const visibleRows = rows;
|
|
343
341
|
if (!visibleRows.length) return null;
|
|
344
|
-
return /* @__PURE__ */ jsxs(
|
|
342
|
+
return /* @__PURE__ */ jsxs(Box_default, { children: [
|
|
345
343
|
/* @__PURE__ */ jsx(SectionTitle, { children: title }),
|
|
346
|
-
/* @__PURE__ */ jsx(
|
|
347
|
-
/* @__PURE__ */ jsx(
|
|
348
|
-
/* @__PURE__ */ jsx(
|
|
349
|
-
/* @__PURE__ */ jsx(
|
|
350
|
-
/* @__PURE__ */ jsx(
|
|
351
|
-
/* @__PURE__ */ jsx(
|
|
352
|
-
/* @__PURE__ */ jsx(
|
|
353
|
-
/* @__PURE__ */ jsx(
|
|
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 })
|
|
354
352
|
] }, ri)) })
|
|
355
353
|
] }) })
|
|
356
354
|
] });
|
|
@@ -372,22 +370,22 @@ function DispositionFrameworkTable({ data }) {
|
|
|
372
370
|
}
|
|
373
371
|
).filter((r) => r.expectedFramework.toLowerCase().trim() !== "clinical sensitivity handling");
|
|
374
372
|
if (!rows.length) {
|
|
375
|
-
return /* @__PURE__ */ jsx(
|
|
373
|
+
return /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.75rem", color: "text.secondary" }, children: "No disposition framework data available." });
|
|
376
374
|
}
|
|
377
|
-
return /* @__PURE__ */ jsxs(
|
|
375
|
+
return /* @__PURE__ */ jsxs(Box_default, { children: [
|
|
378
376
|
/* @__PURE__ */ jsx(SectionTitle, { children: "Disposition-Based Quality Framework" }),
|
|
379
|
-
/* @__PURE__ */ jsx(
|
|
380
|
-
/* @__PURE__ */ jsx(
|
|
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: [
|
|
381
379
|
{ label: "Disposition Type", minWidth: 160 },
|
|
382
380
|
{ label: "Expected Framework", minWidth: 200 },
|
|
383
381
|
{ label: "Status", minWidth: 120 },
|
|
384
382
|
{ label: "Remarks", minWidth: 160 }
|
|
385
|
-
].map((col, i) => /* @__PURE__ */ jsx(
|
|
386
|
-
/* @__PURE__ */ jsx(
|
|
387
|
-
/* @__PURE__ */ jsx(
|
|
388
|
-
/* @__PURE__ */ jsx(
|
|
389
|
-
/* @__PURE__ */ jsx(
|
|
390
|
-
/* @__PURE__ */ jsx(
|
|
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 })
|
|
391
389
|
] }, ri)) })
|
|
392
390
|
] }) })
|
|
393
391
|
] });
|
|
@@ -395,7 +393,7 @@ function DispositionFrameworkTable({ data }) {
|
|
|
395
393
|
function AuditChecklistContent({ data }) {
|
|
396
394
|
var _a;
|
|
397
395
|
const obs = (_a = data.Section_Wise_Audit_Observations_Checklist) != null ? _a : {};
|
|
398
|
-
return /* @__PURE__ */ jsxs(
|
|
396
|
+
return /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
|
|
399
397
|
/* @__PURE__ */ jsx(DispositionFrameworkTable, { data }),
|
|
400
398
|
/* @__PURE__ */ jsx(ChecklistTable, { title: "Opening & Greeting", rows: obsRecordToRows(obs.Opening_and_Greeting, OPENING_LABELS, OPENING_EXPECTED) }),
|
|
401
399
|
/* @__PURE__ */ jsx(ChecklistTable, { title: "Verification & Authentication", rows: obsRecordToRows(obs.Verification_and_Authentication, VERIFICATION_LABELS, VERIFICATION_EXPECTED) }),
|
|
@@ -410,9 +408,9 @@ function AuditChecklistTab({ data, primary: _primary }) {
|
|
|
410
408
|
var _a;
|
|
411
409
|
const [view, setView] = useState("overview");
|
|
412
410
|
const obs = (_a = data.Section_Wise_Audit_Observations_Checklist) != null ? _a : {};
|
|
413
|
-
return /* @__PURE__ */ jsxs(
|
|
414
|
-
/* @__PURE__ */ jsx(
|
|
415
|
-
|
|
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,
|
|
416
414
|
{
|
|
417
415
|
value: view,
|
|
418
416
|
exclusive: true,
|
|
@@ -432,13 +430,13 @@ function AuditChecklistTab({ data, primary: _primary }) {
|
|
|
432
430
|
}
|
|
433
431
|
},
|
|
434
432
|
children: [
|
|
435
|
-
/* @__PURE__ */ jsx(
|
|
436
|
-
/* @__PURE__ */ jsx(
|
|
433
|
+
/* @__PURE__ */ jsx(ToggleButton_default, { value: "overview", children: "Overview" }),
|
|
434
|
+
/* @__PURE__ */ jsx(ToggleButton_default, { value: "detailed", children: "Detailed" })
|
|
437
435
|
]
|
|
438
436
|
}
|
|
439
437
|
) }),
|
|
440
438
|
view === "overview" && /* @__PURE__ */ jsx(DispositionFrameworkTable, { data }),
|
|
441
|
-
view === "detailed" && /* @__PURE__ */ jsxs(
|
|
439
|
+
view === "detailed" && /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
|
|
442
440
|
/* @__PURE__ */ jsx(ChecklistTable, { title: "Opening & Greeting", rows: obsRecordToRows(obs.Opening_and_Greeting, OPENING_LABELS, OPENING_EXPECTED) }),
|
|
443
441
|
/* @__PURE__ */ jsx(ChecklistTable, { title: "Verification & Authentication", rows: obsRecordToRows(obs.Verification_and_Authentication, VERIFICATION_LABELS, VERIFICATION_EXPECTED) }),
|
|
444
442
|
/* @__PURE__ */ jsx(ChecklistTable, { title: "Communication Effectiveness", rows: obsRecordToRows(obs.Communication_and_Soft_Skills, COMM_LABELS, COMM_EXPECTED) }),
|
|
@@ -453,25 +451,25 @@ function RootCauseAnalysisTab({ data, primary }) {
|
|
|
453
451
|
var _a, _b;
|
|
454
452
|
const rcaRows = (_a = data.Root_Cause_Analysis) != null ? _a : [];
|
|
455
453
|
const rec = (_b = data.Auditor_Recommendation) != null ? _b : {};
|
|
456
|
-
return /* @__PURE__ */ jsxs(
|
|
457
|
-
/* @__PURE__ */ jsxs(
|
|
454
|
+
return /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
|
|
455
|
+
/* @__PURE__ */ jsxs(Box_default, { children: [
|
|
458
456
|
/* @__PURE__ */ jsx(SectionTitle, { children: "Root Cause Analysis" }),
|
|
459
|
-
rcaRows.length > 0 ? /* @__PURE__ */ jsx(
|
|
460
|
-
/* @__PURE__ */ jsx(
|
|
461
|
-
/* @__PURE__ */ jsx(
|
|
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) => {
|
|
462
460
|
var _a2, _b2, _c;
|
|
463
|
-
return /* @__PURE__ */ jsxs(
|
|
464
|
-
/* @__PURE__ */ jsx(
|
|
465
|
-
/* @__PURE__ */ jsx(
|
|
466
|
-
/* @__PURE__ */ jsx(
|
|
467
|
-
/* @__PURE__ */ jsx(
|
|
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" })
|
|
468
466
|
] }, ri);
|
|
469
467
|
}) })
|
|
470
|
-
] }) }) : /* @__PURE__ */ jsx(
|
|
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." }) })
|
|
471
469
|
] }),
|
|
472
|
-
(toStringArray(rec.Key_Strengths).length > 0 || toStringArray(rec.Improvement_Areas).length > 0) && /* @__PURE__ */ jsxs(
|
|
470
|
+
(toStringArray(rec.Key_Strengths).length > 0 || toStringArray(rec.Improvement_Areas).length > 0) && /* @__PURE__ */ jsxs(Box_default, { children: [
|
|
473
471
|
/* @__PURE__ */ jsx(SectionTitle, { children: "Auditor's Recommendation" }),
|
|
474
|
-
/* @__PURE__ */ jsx(
|
|
472
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { display: "flex", gap: 2, flexWrap: "wrap" }, children: [
|
|
475
473
|
{ title: "Key Strengths", items: toStringArray(rec.Key_Strengths), color: "#2e7d32" },
|
|
476
474
|
{ title: "Improvement Areas", items: toStringArray(rec.Improvement_Areas), color: "#e65100" }
|
|
477
475
|
].filter((g) => {
|
|
@@ -479,18 +477,18 @@ function RootCauseAnalysisTab({ data, primary }) {
|
|
|
479
477
|
return ((_b2 = (_a2 = g.items) == null ? void 0 : _a2.length) != null ? _b2 : 0) > 0;
|
|
480
478
|
}).map((g) => {
|
|
481
479
|
var _a2;
|
|
482
|
-
return /* @__PURE__ */ jsxs(
|
|
483
|
-
/* @__PURE__ */ jsx(
|
|
484
|
-
(_a2 = g.items) == null ? void 0 : _a2.map((item, ii) => /* @__PURE__ */ jsxs(
|
|
485
|
-
/* @__PURE__ */ jsx(
|
|
486
|
-
/* @__PURE__ */ jsx(
|
|
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 })
|
|
487
485
|
] }, ii))
|
|
488
486
|
] }, g.title);
|
|
489
487
|
}) })
|
|
490
488
|
] }),
|
|
491
|
-
data.Final_Auditor_Remarks && /* @__PURE__ */ jsxs(
|
|
492
|
-
/* @__PURE__ */ jsx(
|
|
493
|
-
/* @__PURE__ */ jsx(
|
|
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 })
|
|
494
492
|
] })
|
|
495
493
|
] });
|
|
496
494
|
}
|
|
@@ -528,7 +526,7 @@ function useAuditReportData(callUuid, active = true) {
|
|
|
528
526
|
}
|
|
529
527
|
var PRINT_ROOT_ID = "audit-report-print-root";
|
|
530
528
|
var PRINT_STYLES = /* @__PURE__ */ jsx(
|
|
531
|
-
|
|
529
|
+
GlobalStyles_default,
|
|
532
530
|
{
|
|
533
531
|
styles: {
|
|
534
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" },
|
|
@@ -585,14 +583,14 @@ function AuditReportInner({ callUuid, active = true, primary, onClose, onMaximiz
|
|
|
585
583
|
PRINT_STYLES,
|
|
586
584
|
createPortal(
|
|
587
585
|
/* @__PURE__ */ jsxs("div", { id: PRINT_ROOT_ID, children: [
|
|
588
|
-
/* @__PURE__ */ jsxs(
|
|
589
|
-
/* @__PURE__ */ jsx(
|
|
590
|
-
subtitle && /* @__PURE__ */ jsx(
|
|
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 })
|
|
591
589
|
] }),
|
|
592
|
-
apiData && /* @__PURE__ */ jsxs(
|
|
590
|
+
apiData && /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", flexDirection: "column", gap: 3 }, children: [
|
|
593
591
|
/* @__PURE__ */ jsx(OverviewTab, { data: apiData }),
|
|
594
592
|
/* @__PURE__ */ jsx(ScorecardTab, { data: apiData, primary }),
|
|
595
|
-
/* @__PURE__ */ jsxs(
|
|
593
|
+
/* @__PURE__ */ jsxs(Box_default, { children: [
|
|
596
594
|
/* @__PURE__ */ jsx(SectionTitle, { children: "Audit Checklist" }),
|
|
597
595
|
/* @__PURE__ */ jsx(AuditChecklistContent, { data: apiData })
|
|
598
596
|
] }),
|
|
@@ -601,21 +599,21 @@ function AuditReportInner({ callUuid, active = true, primary, onClose, onMaximiz
|
|
|
601
599
|
] }),
|
|
602
600
|
document.body
|
|
603
601
|
),
|
|
604
|
-
/* @__PURE__ */ jsxs(
|
|
605
|
-
/* @__PURE__ */ jsxs(
|
|
606
|
-
/* @__PURE__ */ jsx(
|
|
607
|
-
subtitle && /* @__PURE__ */ jsx(
|
|
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 })
|
|
608
606
|
] }),
|
|
609
|
-
/* @__PURE__ */ jsxs(
|
|
610
|
-
onMaximize && /* @__PURE__ */ jsx(
|
|
611
|
-
onClose && /* @__PURE__ */ jsx(
|
|
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 } }) })
|
|
612
610
|
] })
|
|
613
611
|
] }),
|
|
614
|
-
headerBadges.length > 0 && /* @__PURE__ */ jsx(
|
|
615
|
-
(badge, i) => badge.asBadge ? /* @__PURE__ */ jsx(StatusBadge, { label: badge.value }, i) : /* @__PURE__ */ jsxs(
|
|
616
|
-
/* @__PURE__ */ jsx(
|
|
617
|
-
/* @__PURE__ */ jsxs(
|
|
618
|
-
/* @__PURE__ */ jsxs(
|
|
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: [
|
|
619
617
|
badge.label,
|
|
620
618
|
":"
|
|
621
619
|
] }),
|
|
@@ -623,8 +621,8 @@ function AuditReportInner({ callUuid, active = true, primary, onClose, onMaximiz
|
|
|
623
621
|
] })
|
|
624
622
|
] }, i)
|
|
625
623
|
) }),
|
|
626
|
-
/* @__PURE__ */ jsx(
|
|
627
|
-
|
|
624
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { borderBottom: "1px solid", borderColor: "divider", backgroundColor: "background.paper", flexShrink: 0 }, children: /* @__PURE__ */ jsx(
|
|
625
|
+
Tabs_default,
|
|
628
626
|
{
|
|
629
627
|
value: activeTab,
|
|
630
628
|
onChange: (_, v) => setActiveTab(v),
|
|
@@ -636,13 +634,13 @@ function AuditReportInner({ callUuid, active = true, primary, onClose, onMaximiz
|
|
|
636
634
|
"& .MuiTab-root": { fontSize: "0.78rem", fontWeight: 600, minHeight: 40, textTransform: "none", color: "text.secondary", py: 0, px: 1.5, "&.Mui-selected": { color: primary } },
|
|
637
635
|
"& .MuiTabs-indicator": { backgroundColor: primary, height: 2 }
|
|
638
636
|
},
|
|
639
|
-
children: STATIC_TABS.map((tab) => /* @__PURE__ */ jsx(
|
|
637
|
+
children: STATIC_TABS.map((tab) => /* @__PURE__ */ jsx(Tab_default, { label: tab.label, disableRipple: true }, tab.id))
|
|
640
638
|
}
|
|
641
639
|
) }),
|
|
642
|
-
/* @__PURE__ */ jsxs(
|
|
643
|
-
auditLoading && /* @__PURE__ */ jsx(
|
|
644
|
-
!auditLoading && auditError && /* @__PURE__ */ jsx(
|
|
645
|
-
!auditLoading && !auditError && !apiData && /* @__PURE__ */ jsx(
|
|
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." }) }),
|
|
646
644
|
!auditLoading && apiData && renderTab()
|
|
647
645
|
] })
|
|
648
646
|
] });
|
|
@@ -664,7 +662,7 @@ function AuditReportDialog({ open, onClose, width = "80vw", rowData, onMaximize
|
|
|
664
662
|
window.open(auditReportUrlResolver(callUuid), "_blank");
|
|
665
663
|
};
|
|
666
664
|
return /* @__PURE__ */ jsx(
|
|
667
|
-
|
|
665
|
+
Dialog_default,
|
|
668
666
|
{
|
|
669
667
|
open,
|
|
670
668
|
onClose: (_e, reason) => {
|
|
@@ -692,7 +690,7 @@ function AuditReportDialog({ open, onClose, width = "80vw", rowData, onMaximize
|
|
|
692
690
|
function AuditReportFullPage({ callUuid }) {
|
|
693
691
|
const theme = useTheme();
|
|
694
692
|
const primary = theme.palette.primary.main;
|
|
695
|
-
return /* @__PURE__ */ jsx(
|
|
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 }) });
|
|
696
694
|
}
|
|
697
695
|
|
|
698
696
|
export {
|
|
@@ -700,4 +698,4 @@ export {
|
|
|
700
698
|
AuditReportDialog,
|
|
701
699
|
AuditReportFullPage
|
|
702
700
|
};
|
|
703
|
-
//# sourceMappingURL=chunk-
|
|
701
|
+
//# sourceMappingURL=chunk-IDZWA6HG.mjs.map
|