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,65 +1,71 @@
1
+ import {
2
+ Bar,
3
+ BarChart,
4
+ CartesianGrid,
5
+ Cell,
6
+ LabelList,
7
+ Legend,
8
+ Pie,
9
+ PieChart,
10
+ ResponsiveContainer,
11
+ Tooltip,
12
+ XAxis,
13
+ YAxis
14
+ } from "./chunk-DF5EFKXC.mjs";
15
+ import {
16
+ FileDownload_default
17
+ } from "./chunk-AOJRUZTO.mjs";
18
+ import {
19
+ PlayArrow_default
20
+ } from "./chunk-7LE2VTAI.mjs";
1
21
  import {
2
22
  PageHeader
3
- } from "./chunk-JOZ4YQMR.mjs";
23
+ } from "./chunk-VBIDPX5Z.mjs";
4
24
  import {
5
25
  AppButton
6
- } from "./chunk-HBR2JS4C.mjs";
26
+ } from "./chunk-NAZO4HKB.mjs";
7
27
  import {
8
28
  AdapterDayjs,
9
29
  DateRangePicker,
10
- LocalizationProvider
11
- } from "./chunk-AJQBR3AZ.mjs";
30
+ LocalizationProvider,
31
+ require_dayjs_min
32
+ } from "./chunk-E6KYWWAI.mjs";
33
+ import {
34
+ Refresh_default,
35
+ Search_default
36
+ } from "./chunk-YAQYTUTX.mjs";
12
37
  import {
13
38
  SDKProvider
14
- } from "./chunk-6ICPXSN6.mjs";
39
+ } from "./chunk-VVDJLUYT.mjs";
15
40
  import {
16
41
  END_POINT,
17
42
  axios_default,
18
43
  deepFindArray,
19
44
  sdkStateManager
20
- } from "./chunk-OVC42HVH.mjs";
45
+ } from "./chunk-LHE4QGJJ.mjs";
21
46
  import {
47
+ Alert_default,
48
+ Box_default,
49
+ Chip_default,
50
+ CircularProgress_default,
51
+ IconButton_default,
52
+ TableBody_default,
53
+ TableCell_default,
54
+ TableContainer_default,
55
+ TableHead_default,
56
+ TablePagination_default,
57
+ TableRow_default,
58
+ Table_default,
59
+ Tooltip_default,
60
+ Typography_default,
22
61
  __spreadProps,
23
- __spreadValues
24
- } from "./chunk-UB5HSUGK.mjs";
62
+ __spreadValues,
63
+ __toESM
64
+ } from "./chunk-Q6G3MPS7.mjs";
25
65
 
26
66
  // call-control-sdk/lib/pages/agentDetailReport/index.tsx
27
67
  import { useState as useState2, useEffect, useMemo, useCallback as useCallback2 } from "react";
28
- import {
29
- Box,
30
- Typography,
31
- Table,
32
- TableBody,
33
- TableCell,
34
- TableContainer,
35
- TableHead,
36
- TableRow,
37
- TablePagination,
38
- IconButton,
39
- Chip,
40
- CircularProgress,
41
- Alert
42
- } from "@mui/material";
43
- import SearchIcon from "@mui/icons-material/Search";
44
- import RefreshIcon from "@mui/icons-material/Refresh";
45
- import PlayArrowIcon from "@mui/icons-material/PlayArrow";
46
- import FileDownloadIcon from "@mui/icons-material/FileDownload";
47
- import Tooltip from "@mui/material/Tooltip";
48
- import {
49
- BarChart,
50
- Bar,
51
- XAxis,
52
- YAxis,
53
- CartesianGrid,
54
- Tooltip as RTooltip,
55
- PieChart,
56
- Pie,
57
- Cell,
58
- Legend,
59
- ResponsiveContainer,
60
- LabelList
61
- } from "recharts";
62
- import dayjs from "dayjs";
68
+ var import_dayjs = __toESM(require_dayjs_min());
63
69
 
64
70
  // call-control-sdk/lib/pages/agentDetailReport/useAgentDetailReport.ts
65
71
  import { useCallback, useState } from "react";
@@ -132,7 +138,7 @@ var C = {
132
138
  var monoSx = { fontFamily: "'JetBrains Mono', monospace", fontSize: 11, fontWeight: 600 };
133
139
  var QUEUE_COLORS = [C.blue, C.green, C.purple, C.amber, C.teal, C.red, C.navy];
134
140
  function StatCard({ value, label, color }) {
135
- return /* @__PURE__ */ jsxs(Box, { sx: {
141
+ return /* @__PURE__ */ jsxs(Box_default, { sx: {
136
142
  px: 1.5,
137
143
  py: 1.2,
138
144
  borderRadius: "10px",
@@ -142,15 +148,15 @@ function StatCard({ value, label, color }) {
142
148
  borderLeftStyle: "solid",
143
149
  borderLeftColor: color
144
150
  }, children: [
145
- /* @__PURE__ */ jsx(Typography, { sx: { fontFamily: "poppins, Arial, sans-serif", fontSize: "0.72rem", fontWeight: 600, color: "#888", mb: 0.3 }, children: label }),
146
- /* @__PURE__ */ jsx(Typography, { sx: { fontFamily: "poppins, Arial, sans-serif", fontSize: "0.95rem", fontWeight: 700, color: "#1a1a1a" }, children: value })
151
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontFamily: "poppins, Arial, sans-serif", fontSize: "0.72rem", fontWeight: 600, color: "#888", mb: 0.3 }, children: label }),
152
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontFamily: "poppins, Arial, sans-serif", fontSize: "0.95rem", fontWeight: 700, color: "#1a1a1a" }, children: value })
147
153
  ] });
148
154
  }
149
155
  function StatusChip({ status }) {
150
156
  const s = status == null ? void 0 : status.toLowerCase();
151
157
  const isAns = s === "answered";
152
158
  const isAband = s === "abandoned";
153
- return /* @__PURE__ */ jsx(Chip, { label: status || "\u2014", size: "small", sx: {
159
+ return /* @__PURE__ */ jsx(Chip_default, { label: status || "\u2014", size: "small", sx: {
154
160
  fontSize: 11,
155
161
  fontWeight: 700,
156
162
  height: 22,
@@ -162,7 +168,7 @@ function StatusChip({ status }) {
162
168
  }
163
169
  function CallTypeChip({ type }) {
164
170
  const isIn = (type == null ? void 0 : type.toLowerCase()) === "inbound";
165
- return /* @__PURE__ */ jsx(Chip, { label: type || "\u2014", size: "small", sx: {
171
+ return /* @__PURE__ */ jsx(Chip_default, { label: type || "\u2014", size: "small", sx: {
166
172
  fontSize: 11,
167
173
  fontWeight: 700,
168
174
  height: 22,
@@ -177,9 +183,9 @@ function RecordingCell({ callUuid, recordingPath }) {
177
183
  const [loading, setLoading] = useState2(false);
178
184
  const [error, setError] = useState2(false);
179
185
  if (!recordingPath) {
180
- return /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 0.3 }, children: [
181
- /* @__PURE__ */ jsx(Tooltip, { title: "No recording available", children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(IconButton, { size: "small", disabled: true, sx: { p: 0.4 }, children: /* @__PURE__ */ jsx(PlayArrowIcon, { sx: { fontSize: 16 } }) }) }) }),
182
- /* @__PURE__ */ jsx(Tooltip, { title: "No recording available", children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(IconButton, { size: "small", disabled: true, sx: { p: 0.4 }, children: /* @__PURE__ */ jsx(FileDownloadIcon, { sx: { fontSize: 16 } }) }) }) })
186
+ return /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: 0.3 }, children: [
187
+ /* @__PURE__ */ jsx(Tooltip_default, { title: "No recording available", children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(IconButton_default, { size: "small", disabled: true, sx: { p: 0.4 }, children: /* @__PURE__ */ jsx(PlayArrow_default, { sx: { fontSize: 16 } }) }) }) }),
188
+ /* @__PURE__ */ jsx(Tooltip_default, { title: "No recording available", children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(IconButton_default, { size: "small", disabled: true, sx: { p: 0.4 }, children: /* @__PURE__ */ jsx(FileDownload_default, { sx: { fontSize: 16 } }) }) }) })
183
189
  ] });
184
190
  }
185
191
  const handlePlay = async () => {
@@ -209,7 +215,7 @@ function RecordingCell({ callUuid, recordingPath }) {
209
215
  }
210
216
  };
211
217
  if (audioUrl) {
212
- return /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
218
+ return /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
213
219
  /* @__PURE__ */ jsx(
214
220
  "audio",
215
221
  {
@@ -223,13 +229,13 @@ function RecordingCell({ callUuid, recordingPath }) {
223
229
  style: { width: 140, height: 30 }
224
230
  }
225
231
  ),
226
- /* @__PURE__ */ jsx(Tooltip, { title: "Download", children: /* @__PURE__ */ jsx(IconButton, { size: "small", onClick: handleDownload, sx: { color: C.blue, p: 0.4 }, children: /* @__PURE__ */ jsx(FileDownloadIcon, { sx: { fontSize: 16 } }) }) })
232
+ /* @__PURE__ */ jsx(Tooltip_default, { title: "Download", children: /* @__PURE__ */ jsx(IconButton_default, { size: "small", onClick: handleDownload, sx: { color: C.blue, p: 0.4 }, children: /* @__PURE__ */ jsx(FileDownload_default, { sx: { fontSize: 16 } }) }) })
227
233
  ] });
228
234
  }
229
- return /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 0.3 }, children: [
230
- /* @__PURE__ */ jsx(Tooltip, { title: error ? "Recording unavailable" : "Play", children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(IconButton, { size: "small", onClick: handlePlay, disabled: loading || error, sx: { color: C.green, p: 0.4 }, children: loading ? /* @__PURE__ */ jsx(CircularProgress, { size: 14 }) : /* @__PURE__ */ jsx(PlayArrowIcon, { sx: { fontSize: 16 } }) }) }) }),
231
- /* @__PURE__ */ jsx(Tooltip, { title: error ? "Recording unavailable" : "Download", children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(IconButton, { size: "small", onClick: handleDownload, disabled: loading || error, sx: { color: C.blue, p: 0.4 }, children: /* @__PURE__ */ jsx(FileDownloadIcon, { sx: { fontSize: 16 } }) }) }) }),
232
- error && /* @__PURE__ */ jsx(Chip, { label: "No File", size: "small", sx: { fontSize: "0.6rem", height: 18 } })
235
+ return /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: 0.3 }, children: [
236
+ /* @__PURE__ */ jsx(Tooltip_default, { title: error ? "Recording unavailable" : "Play", children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(IconButton_default, { size: "small", onClick: handlePlay, disabled: loading || error, sx: { color: C.green, p: 0.4 }, children: loading ? /* @__PURE__ */ jsx(CircularProgress_default, { size: 14 }) : /* @__PURE__ */ jsx(PlayArrow_default, { sx: { fontSize: 16 } }) }) }) }),
237
+ /* @__PURE__ */ jsx(Tooltip_default, { title: error ? "Recording unavailable" : "Download", children: /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(IconButton_default, { size: "small", onClick: handleDownload, disabled: loading || error, sx: { color: C.blue, p: 0.4 }, children: /* @__PURE__ */ jsx(FileDownload_default, { sx: { fontSize: 16 } }) }) }) }),
238
+ error && /* @__PURE__ */ jsx(Chip_default, { label: "No File", size: "small", sx: { fontSize: "0.6rem", height: 18 } })
233
239
  ] });
234
240
  }
235
241
  var cdrHeadSx = {
@@ -247,8 +253,8 @@ function AgentDetailReportContent({ agentRow: propAgentRow, onBack, from, initia
247
253
  const isFromReportsList = from === "REPORTS_LIST";
248
254
  const agentIdFromRow = isFromReportsList ? ((_a = agentRow == null ? void 0 : agentRow.agentDetails) == null ? void 0 : _a.agentId) || "" : sdkStateManager.getState().agentId || ((_b = agentRow == null ? void 0 : agentRow.agentDetails) == null ? void 0 : _b.agentId) || "";
249
255
  const [quickRange, setQuickRange] = useState2(initialQuickRange || "today");
250
- const [startDate, setStartDate] = useState2(initialStartDate != null ? initialStartDate : dayjs());
251
- const [endDate, setEndDate] = useState2(initialEndDate != null ? initialEndDate : dayjs());
256
+ const [startDate, setStartDate] = useState2(initialStartDate != null ? initialStartDate : (0, import_dayjs.default)());
257
+ const [endDate, setEndDate] = useState2(initialEndDate != null ? initialEndDate : (0, import_dayjs.default)());
252
258
  const syncFilterToUrl = (_sd, _ed, _range) => {
253
259
  };
254
260
  const [activeTab, setActiveTab] = useState2(0);
@@ -266,7 +272,7 @@ function AgentDetailReportContent({ agentRow: propAgentRow, onBack, from, initia
266
272
  const showInitialSpinner = !isFromReportsList && detailLoading && !profile && !((_d = agentRow == null ? void 0 : agentRow.agentDetails) == null ? void 0 : _d.fullName);
267
273
  const setQuick = (range) => {
268
274
  setQuickRange(range);
269
- const today = dayjs();
275
+ const today = (0, import_dayjs.default)();
270
276
  let sd = today;
271
277
  const ed = today;
272
278
  if (range === "week") sd = today.startOf("week");
@@ -282,7 +288,7 @@ function AgentDetailReportContent({ agentRow: propAgentRow, onBack, from, initia
282
288
  setDetailError("");
283
289
  const res = await getAgentDetailReport(agentIdFromRow, {
284
290
  start_date: sd.startOf("day").format("YYYY-MM-DDTHH:mm:ss"),
285
- end_date: ed.isSame(dayjs(), "day") ? dayjs().format("YYYY-MM-DDTHH:mm:ss") : ed.endOf("day").format("YYYY-MM-DDTHH:mm:ss")
291
+ end_date: ed.isSame((0, import_dayjs.default)(), "day") ? (0, import_dayjs.default)().format("YYYY-MM-DDTHH:mm:ss") : ed.endOf("day").format("YYYY-MM-DDTHH:mm:ss")
286
292
  });
287
293
  setDetail(res);
288
294
  } catch (err) {
@@ -299,7 +305,7 @@ function AgentDetailReportContent({ agentRow: propAgentRow, onBack, from, initia
299
305
  setCdrError("");
300
306
  const params = {
301
307
  start_date: sd.startOf("day").format("YYYY-MM-DDTHH:mm:ss"),
302
- end_date: ed.isSame(dayjs(), "day") ? dayjs().format("YYYY-MM-DDTHH:mm:ss") : ed.endOf("day").format("YYYY-MM-DDTHH:mm:ss"),
308
+ end_date: ed.isSame((0, import_dayjs.default)(), "day") ? (0, import_dayjs.default)().format("YYYY-MM-DDTHH:mm:ss") : ed.endOf("day").format("YYYY-MM-DDTHH:mm:ss"),
303
309
  search: agentIdFromRow,
304
310
  page: page + 1,
305
311
  pageSize
@@ -380,7 +386,7 @@ function AgentDetailReportContent({ agentRow: propAgentRow, onBack, from, initia
380
386
  }, [detail]);
381
387
  const hourlyChartTitle = useMemo(() => {
382
388
  if (quickRange === "today") return "Hourly Call Volume \u2014 Today";
383
- if (quickRange === "month") return `Hourly Call Volume \u2014 ${dayjs().format("MMMM YYYY")}`;
389
+ if (quickRange === "month") return `Hourly Call Volume \u2014 ${(0, import_dayjs.default)().format("MMMM YYYY")}`;
384
390
  if (quickRange === "week") return "Hourly Call Volume \u2014 This Week";
385
391
  if (startDate && endDate) {
386
392
  if (startDate.isSame(endDate, "day")) return `Hourly Call Volume \u2014 ${startDate.format("DD MMM YYYY")}`;
@@ -392,16 +398,16 @@ function AgentDetailReportContent({ agentRow: propAgentRow, onBack, from, initia
392
398
  onBack == null ? void 0 : onBack();
393
399
  }, [onBack]);
394
400
  if (!agentIdFromRow) {
395
- return /* @__PURE__ */ jsxs(Box, { sx: { p: 4, textAlign: "center" }, children: [
396
- /* @__PURE__ */ jsx(Typography, { sx: { color: C.t3, mb: 2 }, children: "No agent selected." }),
401
+ return /* @__PURE__ */ jsxs(Box_default, { sx: { p: 4, textAlign: "center" }, children: [
402
+ /* @__PURE__ */ jsx(Typography_default, { sx: { color: C.t3, mb: 2 }, children: "No agent selected." }),
397
403
  isFromReportsList && /* @__PURE__ */ jsx(AppButton, { onClick: handleBack, children: "Go Back" })
398
404
  ] });
399
405
  }
400
406
  if (showInitialSpinner) {
401
- return /* @__PURE__ */ jsx(Box, { sx: { display: "flex", alignItems: "center", justifyContent: "center", minHeight: 400 }, children: /* @__PURE__ */ jsx(CircularProgress, { size: 36 }) });
407
+ return /* @__PURE__ */ jsx(Box_default, { sx: { display: "flex", alignItems: "center", justifyContent: "center", minHeight: 400 }, children: /* @__PURE__ */ jsx(CircularProgress_default, { size: 36 }) });
402
408
  }
403
409
  const tabs = ["Overview", "Call History", "Break Details"];
404
- return /* @__PURE__ */ jsx(LocalizationProvider, { dateAdapter: AdapterDayjs, children: /* @__PURE__ */ jsxs(Box, { sx: { background: C.bg, minHeight: "100vh" }, children: [
410
+ return /* @__PURE__ */ jsx(LocalizationProvider, { dateAdapter: AdapterDayjs, children: /* @__PURE__ */ jsxs(Box_default, { sx: { background: C.bg, minHeight: "100vh" }, children: [
405
411
  /* @__PURE__ */ jsx(
406
412
  PageHeader,
407
413
  {
@@ -410,7 +416,7 @@ function AgentDetailReportContent({ agentRow: propAgentRow, onBack, from, initia
410
416
  onBack: handleBack
411
417
  }
412
418
  ),
413
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 1, flexWrap: "wrap", pb: 1.5, px: 2 }, children: [
419
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: 1, flexWrap: "wrap", pb: 1.5, px: 2 }, children: [
414
420
  /* @__PURE__ */ jsx(
415
421
  DateRangePicker,
416
422
  {
@@ -433,10 +439,10 @@ function AgentDetailReportContent({ agentRow: propAgentRow, onBack, from, initia
433
439
  /* @__PURE__ */ jsx(AppButton, { variant: quickRange === "week" ? "primary" : "outlined", onClick: () => setQuick("week"), sx: { whiteSpace: "nowrap" }, children: "This Week" }),
434
440
  /* @__PURE__ */ jsx(AppButton, { variant: quickRange === "month" ? "primary" : "outlined", onClick: () => setQuick("month"), sx: { whiteSpace: "nowrap" }, children: "This Month" })
435
441
  ] }),
436
- /* @__PURE__ */ jsxs(Box, { sx: { py: 2, px: 2, position: "relative" }, children: [
437
- detailLoading && /* @__PURE__ */ jsx(Box, { sx: { position: "absolute", top: 0, left: 0, right: 0, bottom: 0, background: "rgba(240,244,248,0.7)", display: "flex", alignItems: "center", justifyContent: "center", zIndex: 10 }, children: /* @__PURE__ */ jsx(CircularProgress, {}) }),
438
- detailError && /* @__PURE__ */ jsx(Alert, { severity: "error", sx: { mb: 2 }, onClose: () => setDetailError(""), children: detailError }),
439
- /* @__PURE__ */ jsx(Box, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr 1fr", sm: "repeat(3, 1fr)", md: "repeat(5, 1fr)" }, gap: 1.5, mb: 2 }, children: [
442
+ /* @__PURE__ */ jsxs(Box_default, { sx: { py: 2, px: 2, position: "relative" }, children: [
443
+ detailLoading && /* @__PURE__ */ jsx(Box_default, { sx: { position: "absolute", top: 0, left: 0, right: 0, bottom: 0, background: "rgba(240,244,248,0.7)", display: "flex", alignItems: "center", justifyContent: "center", zIndex: 10 }, children: /* @__PURE__ */ jsx(CircularProgress_default, {}) }),
444
+ detailError && /* @__PURE__ */ jsx(Alert_default, { severity: "error", sx: { mb: 2 }, onClose: () => setDetailError(""), children: detailError }),
445
+ /* @__PURE__ */ jsx(Box_default, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr 1fr", sm: "repeat(3, 1fr)", md: "repeat(5, 1fr)" }, gap: 1.5, mb: 2 }, children: [
440
446
  { v: (_e = profile == null ? void 0 : profile.totalCalls) != null ? _e : 0, l: "Total Calls", c: C.navy },
441
447
  { v: (_f = profile == null ? void 0 : profile.answeredCalls) != null ? _f : 0, l: "Answered", c: C.green },
442
448
  { v: (_g = profile == null ? void 0 : profile.missedCalls) != null ? _g : 0, l: "Missed", c: C.red },
@@ -447,7 +453,7 @@ function AgentDetailReportContent({ agentRow: propAgentRow, onBack, from, initia
447
453
  { v: (profile == null ? void 0 : profile.handleTimeFormatted) || "00:00:00", l: "Handle Time", c: C.purple },
448
454
  { v: (profile == null ? void 0 : profile.breakTimeFormatted) || "00:00:00", l: "Break Time", c: C.amber },
449
455
  { v: `${((_i = profile == null ? void 0 : profile.adherencePct) != null ? _i : 0).toFixed(1)}%`, l: `Adherence${(profile == null ? void 0 : profile.adherenceGrade) ? ` (${profile.adherenceGrade})` : ""}`, c: C.teal }
450
- ].map((kpi, i) => /* @__PURE__ */ jsxs(Box, { sx: {
456
+ ].map((kpi, i) => /* @__PURE__ */ jsxs(Box_default, { sx: {
451
457
  px: 1.5,
452
458
  py: 1.2,
453
459
  borderRadius: "10px",
@@ -458,23 +464,23 @@ function AgentDetailReportContent({ agentRow: propAgentRow, onBack, from, initia
458
464
  borderLeftStyle: "solid",
459
465
  borderLeftColor: kpi.c
460
466
  }, children: [
461
- /* @__PURE__ */ jsx(Typography, { sx: {
467
+ /* @__PURE__ */ jsx(Typography_default, { sx: {
462
468
  fontFamily: "poppins, Arial, sans-serif",
463
469
  fontSize: "0.72rem",
464
470
  fontWeight: 600,
465
471
  color: "#888",
466
472
  mb: 0.3
467
473
  }, children: kpi.l }),
468
- /* @__PURE__ */ jsx(Typography, { sx: {
474
+ /* @__PURE__ */ jsx(Typography_default, { sx: {
469
475
  fontFamily: "poppins, Arial, sans-serif",
470
476
  fontSize: "0.95rem",
471
477
  fontWeight: 700,
472
478
  color: "#1a1a1a"
473
479
  }, children: kpi.v })
474
480
  ] }, i)) }),
475
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: { xs: "flex-start", sm: "center" }, justifyContent: "space-between", flexDirection: { xs: "column", sm: "row" }, gap: 1, borderBottom: `2px solid ${C.b1}`, mb: 2 }, children: [
476
- /* @__PURE__ */ jsx(Box, { sx: { display: "flex", gap: 0.5, flexWrap: "wrap" }, children: tabs.map((tab, idx) => /* @__PURE__ */ jsx(
477
- Box,
481
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: { xs: "flex-start", sm: "center" }, justifyContent: "space-between", flexDirection: { xs: "column", sm: "row" }, gap: 1, borderBottom: `2px solid ${C.b1}`, mb: 2 }, children: [
482
+ /* @__PURE__ */ jsx(Box_default, { sx: { display: "flex", gap: 0.5, flexWrap: "wrap" }, children: tabs.map((tab, idx) => /* @__PURE__ */ jsx(
483
+ Box_default,
478
484
  {
479
485
  onClick: () => setActiveTab(idx),
480
486
  sx: {
@@ -493,57 +499,57 @@ function AgentDetailReportContent({ agentRow: propAgentRow, onBack, from, initia
493
499
  },
494
500
  tab
495
501
  )) }),
496
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 0.5, mb: "-2px" }, children: [
502
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: 0.5, mb: "-2px" }, children: [
497
503
  /* @__PURE__ */ jsx(
498
504
  AppButton,
499
505
  {
500
506
  size: "small",
501
- startIcon: /* @__PURE__ */ jsx(RefreshIcon, {}),
507
+ startIcon: /* @__PURE__ */ jsx(Refresh_default, {}),
502
508
  disabled: detailLoading || cdrLoading,
503
509
  onClick: () => handleSearch(),
504
510
  children: "Refresh"
505
511
  }
506
512
  ),
507
- /* @__PURE__ */ jsx(AppButton, { size: "small", startIcon: /* @__PURE__ */ jsx(SearchIcon, {}), onClick: () => handleSearch(), children: "Search" })
513
+ /* @__PURE__ */ jsx(AppButton, { size: "small", startIcon: /* @__PURE__ */ jsx(Search_default, {}), onClick: () => handleSearch(), children: "Search" })
508
514
  ] })
509
515
  ] }),
510
- activeTab === 0 && /* @__PURE__ */ jsxs(Box, { children: [
511
- /* @__PURE__ */ jsxs(Box, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", md: "1fr 1fr" }, gap: 2, mb: 2 }, children: [
512
- /* @__PURE__ */ jsxs(Box, { sx: { border: `1px solid ${C.b1}`, borderRadius: "10px", overflow: "hidden", background: "transparent" }, children: [
513
- /* @__PURE__ */ jsxs(Box, { sx: { px: 2, py: 1.2, background: C.s2, borderBottom: `1px solid ${C.b1}`, display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
514
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: 12, fontWeight: 700, letterSpacing: 0.8, textTransform: "uppercase", color: C.t2 }, children: hourlyChartTitle }),
515
- /* @__PURE__ */ jsx(Chip, { label: agentName, size: "small", sx: { fontSize: 11, fontWeight: 700, background: C.blt, color: C.blue, border: `1px solid rgba(21,101,200,.2)` } })
516
+ activeTab === 0 && /* @__PURE__ */ jsxs(Box_default, { children: [
517
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", md: "1fr 1fr" }, gap: 2, mb: 2 }, children: [
518
+ /* @__PURE__ */ jsxs(Box_default, { sx: { border: `1px solid ${C.b1}`, borderRadius: "10px", overflow: "hidden", background: "transparent" }, children: [
519
+ /* @__PURE__ */ jsxs(Box_default, { sx: { px: 2, py: 1.2, background: C.s2, borderBottom: `1px solid ${C.b1}`, display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
520
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: 12, fontWeight: 700, letterSpacing: 0.8, textTransform: "uppercase", color: C.t2 }, children: hourlyChartTitle }),
521
+ /* @__PURE__ */ jsx(Chip_default, { label: agentName, size: "small", sx: { fontSize: 11, fontWeight: 700, background: C.blt, color: C.blue, border: `1px solid rgba(21,101,200,.2)` } })
516
522
  ] }),
517
- /* @__PURE__ */ jsx(Box, { sx: { p: 2, height: 260 }, children: /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs(BarChart, { data: hourlyCallData, barGap: 1, children: [
523
+ /* @__PURE__ */ jsx(Box_default, { sx: { p: 2, height: 260 }, children: /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs(BarChart, { data: hourlyCallData, barGap: 1, children: [
518
524
  /* @__PURE__ */ jsx(CartesianGrid, { strokeDasharray: "3 3", stroke: C.b1 }),
519
525
  /* @__PURE__ */ jsx(XAxis, { dataKey: "hour", tick: { fontSize: 11, fill: C.t3 } }),
520
526
  /* @__PURE__ */ jsx(YAxis, { tick: { fontSize: 11, fill: C.t3 }, allowDecimals: false }),
521
- /* @__PURE__ */ jsx(RTooltip, { labelFormatter: (label) => `${String(label).padStart(2, "0")}:00`, contentStyle: { fontSize: 12, borderRadius: 8, border: `1px solid ${C.b2}` } }),
527
+ /* @__PURE__ */ jsx(Tooltip, { labelFormatter: (label) => `${String(label).padStart(2, "0")}:00`, contentStyle: { fontSize: 12, borderRadius: 8, border: `1px solid ${C.b2}` } }),
522
528
  /* @__PURE__ */ jsx(Legend, { wrapperStyle: { fontSize: 11 } }),
523
529
  /* @__PURE__ */ jsx(Bar, { dataKey: "answered", name: "Answered", fill: C.blue, radius: [3, 3, 0, 0] }),
524
530
  /* @__PURE__ */ jsx(Bar, { dataKey: "abandoned", name: "Abandoned", fill: C.red, radius: [3, 3, 0, 0] })
525
531
  ] }) }) })
526
532
  ] }),
527
- /* @__PURE__ */ jsxs(Box, { sx: { border: `1px solid ${C.b1}`, borderRadius: "10px", overflow: "hidden", background: "transparent" }, children: [
528
- /* @__PURE__ */ jsx(Box, { sx: { px: 2, py: 1.2, background: C.s2, borderBottom: `1px solid ${C.b1}` }, children: /* @__PURE__ */ jsx(Typography, { sx: { fontSize: 12, fontWeight: 700, letterSpacing: 0.8, textTransform: "uppercase", color: C.t2 }, children: "Time Utilisation Breakdown" }) }),
529
- /* @__PURE__ */ jsx(Box, { sx: { p: 2, height: 260 }, children: timeUtilData.length > 0 ? /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs(PieChart, { children: [
533
+ /* @__PURE__ */ jsxs(Box_default, { sx: { border: `1px solid ${C.b1}`, borderRadius: "10px", overflow: "hidden", background: "transparent" }, children: [
534
+ /* @__PURE__ */ jsx(Box_default, { sx: { px: 2, py: 1.2, background: C.s2, borderBottom: `1px solid ${C.b1}` }, children: /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: 12, fontWeight: 700, letterSpacing: 0.8, textTransform: "uppercase", color: C.t2 }, children: "Time Utilisation Breakdown" }) }),
535
+ /* @__PURE__ */ jsx(Box_default, { sx: { p: 2, height: 260 }, children: timeUtilData.length > 0 ? /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs(PieChart, { children: [
530
536
  /* @__PURE__ */ jsx(Pie, { data: timeUtilData, cx: "50%", cy: "50%", innerRadius: 60, outerRadius: 95, dataKey: "value", nameKey: "name", minAngle: 8, children: timeUtilData.map((entry, idx) => /* @__PURE__ */ jsx(Cell, { fill: entry.color }, idx)) }),
531
- /* @__PURE__ */ jsx(RTooltip, { formatter: (_val, name, entry) => [`${entry.payload.formatted} (${entry.payload.pct.toFixed(1)}%)`, name], contentStyle: { fontSize: 12, borderRadius: 8, border: `1px solid ${C.b2}` } }),
537
+ /* @__PURE__ */ jsx(Tooltip, { formatter: (_val, name, entry) => [`${entry.payload.formatted} (${entry.payload.pct.toFixed(1)}%)`, name], contentStyle: { fontSize: 12, borderRadius: 8, border: `1px solid ${C.b2}` } }),
532
538
  /* @__PURE__ */ jsx(Legend, { wrapperStyle: { fontSize: 12 }, formatter: (value) => /* @__PURE__ */ jsx("span", { style: { color: C.t1, fontWeight: 500 }, children: value }) })
533
- ] }) }) : /* @__PURE__ */ jsx(Box, { sx: { display: "flex", alignItems: "center", justifyContent: "center", height: "100%", color: C.t3, fontSize: 13 }, children: "No data" }) })
539
+ ] }) }) : /* @__PURE__ */ jsx(Box_default, { sx: { display: "flex", alignItems: "center", justifyContent: "center", height: "100%", color: C.t3, fontSize: 13 }, children: "No data" }) })
534
540
  ] })
535
541
  ] }),
536
- /* @__PURE__ */ jsxs(Box, { sx: { border: `1px solid ${C.b1}`, borderRadius: "10px", overflow: "hidden", background: "transparent", mb: 2 }, children: [
537
- /* @__PURE__ */ jsxs(Box, { sx: { px: 2, py: 1.2, background: C.s2, borderBottom: `1px solid ${C.b1}`, display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
538
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: 12, fontWeight: 700, letterSpacing: 0.8, textTransform: "uppercase", color: C.t2 }, children: "Talk Duration Distribution" }),
539
- /* @__PURE__ */ jsx(Chip, { label: `${talkDurationTotal} call${talkDurationTotal === 1 ? "" : "s"}`, size: "small", sx: { fontSize: 11, fontWeight: 700, background: C.glt, color: C.green, border: `1px solid rgba(10,154,98,.2)` } })
542
+ /* @__PURE__ */ jsxs(Box_default, { sx: { border: `1px solid ${C.b1}`, borderRadius: "10px", overflow: "hidden", background: "transparent", mb: 2 }, children: [
543
+ /* @__PURE__ */ jsxs(Box_default, { sx: { px: 2, py: 1.2, background: C.s2, borderBottom: `1px solid ${C.b1}`, display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
544
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: 12, fontWeight: 700, letterSpacing: 0.8, textTransform: "uppercase", color: C.t2 }, children: "Talk Duration Distribution" }),
545
+ /* @__PURE__ */ jsx(Chip_default, { label: `${talkDurationTotal} call${talkDurationTotal === 1 ? "" : "s"}`, size: "small", sx: { fontSize: 11, fontWeight: 700, background: C.glt, color: C.green, border: `1px solid rgba(10,154,98,.2)` } })
540
546
  ] }),
541
- /* @__PURE__ */ jsx(Box, { sx: { p: 2, height: 260 }, children: talkDurationBuckets.length > 0 ? /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs(BarChart, { data: talkDurationBuckets, margin: { top: 16, right: 16, left: 0, bottom: 20 }, children: [
547
+ /* @__PURE__ */ jsx(Box_default, { sx: { p: 2, height: 260 }, children: talkDurationBuckets.length > 0 ? /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs(BarChart, { data: talkDurationBuckets, margin: { top: 16, right: 16, left: 0, bottom: 20 }, children: [
542
548
  /* @__PURE__ */ jsx(CartesianGrid, { strokeDasharray: "3 3", stroke: C.b1 }),
543
549
  /* @__PURE__ */ jsx(XAxis, { dataKey: "bucket", tick: { fontSize: 11, fill: C.t3 }, label: { value: "Talking Duration", position: "insideBottom", offset: -5, style: { fontSize: 11, fontWeight: 600, fill: C.t2 } } }),
544
550
  /* @__PURE__ */ jsx(YAxis, { tick: { fontSize: 11, fill: C.t3 }, allowDecimals: false, label: { value: "Call Count", angle: -90, position: "insideLeft", offset: 10, style: { fontSize: 11, fontWeight: 600, fill: C.t2 } } }),
545
551
  /* @__PURE__ */ jsx(
546
- RTooltip,
552
+ Tooltip,
547
553
  {
548
554
  contentStyle: { fontSize: 12, borderRadius: 8, border: `1px solid ${C.b2}` },
549
555
  labelFormatter: (label, payload) => {
@@ -560,15 +566,15 @@ function AgentDetailReportContent({ agentRow: propAgentRow, onBack, from, initia
560
566
  }
561
567
  ),
562
568
  /* @__PURE__ */ jsx(Bar, { dataKey: "count", name: "Calls", fill: C.teal, radius: [4, 4, 0, 0], children: /* @__PURE__ */ jsx(LabelList, { dataKey: "count", position: "top", style: { fontSize: 11, fontWeight: 700, fill: C.t1 } }) })
563
- ] }) }) : /* @__PURE__ */ jsx(Box, { sx: { display: "flex", alignItems: "center", justifyContent: "center", height: "100%", color: C.t3, fontSize: 13 }, children: "No data" }) })
569
+ ] }) }) : /* @__PURE__ */ jsx(Box_default, { sx: { display: "flex", alignItems: "center", justifyContent: "center", height: "100%", color: C.t3, fontSize: 13 }, children: "No data" }) })
564
570
  ] }),
565
- /* @__PURE__ */ jsxs(Box, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", md: "1fr 1fr" }, gap: 2 }, children: [
566
- /* @__PURE__ */ jsxs(Box, { sx: { border: `1px solid ${C.b1}`, borderRadius: "10px", overflow: "hidden", background: "transparent" }, children: [
567
- /* @__PURE__ */ jsx(Box, { sx: { px: 2, py: 1.2, background: C.s2, borderBottom: `1px solid ${C.b1}` }, children: /* @__PURE__ */ jsx(Typography, { sx: { fontSize: 12, fontWeight: 700, letterSpacing: 0.8, textTransform: "uppercase", color: C.t2 }, children: "Calls by Queue" }) }),
568
- /* @__PURE__ */ jsx(Box, { sx: { p: 2, height: 260 }, children: queuePieData.length > 0 ? /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs(PieChart, { children: [
571
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", md: "1fr 1fr" }, gap: 2 }, children: [
572
+ /* @__PURE__ */ jsxs(Box_default, { sx: { border: `1px solid ${C.b1}`, borderRadius: "10px", overflow: "hidden", background: "transparent" }, children: [
573
+ /* @__PURE__ */ jsx(Box_default, { sx: { px: 2, py: 1.2, background: C.s2, borderBottom: `1px solid ${C.b1}` }, children: /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: 12, fontWeight: 700, letterSpacing: 0.8, textTransform: "uppercase", color: C.t2 }, children: "Calls by Queue" }) }),
574
+ /* @__PURE__ */ jsx(Box_default, { sx: { p: 2, height: 260 }, children: queuePieData.length > 0 ? /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs(PieChart, { children: [
569
575
  /* @__PURE__ */ jsx(Pie, { data: queuePieData, cx: "50%", cy: "50%", outerRadius: 90, dataKey: "value", nameKey: "name", children: queuePieData.map((entry, idx) => /* @__PURE__ */ jsx(Cell, { fill: entry.color }, idx)) }),
570
576
  /* @__PURE__ */ jsx(
571
- RTooltip,
577
+ Tooltip,
572
578
  {
573
579
  contentStyle: { fontSize: 12, borderRadius: 8, border: `1px solid ${C.b2}` },
574
580
  formatter: (val, name, entry) => {
@@ -579,22 +585,22 @@ function AgentDetailReportContent({ agentRow: propAgentRow, onBack, from, initia
579
585
  }
580
586
  ),
581
587
  /* @__PURE__ */ jsx(Legend, { wrapperStyle: { fontSize: 12 }, formatter: (value) => /* @__PURE__ */ jsx("span", { style: { color: C.t1, fontWeight: 500 }, children: value }) })
582
- ] }) }) : /* @__PURE__ */ jsx(Box, { sx: { display: "flex", alignItems: "center", justifyContent: "center", height: "100%", color: C.t3, fontSize: 13 }, children: "No queue data" }) })
588
+ ] }) }) : /* @__PURE__ */ jsx(Box_default, { sx: { display: "flex", alignItems: "center", justifyContent: "center", height: "100%", color: C.t3, fontSize: 13 }, children: "No queue data" }) })
583
589
  ] }),
584
- /* @__PURE__ */ jsxs(Box, { sx: { border: `1px solid ${C.b1}`, borderRadius: "10px", overflow: "hidden", background: "transparent" }, children: [
585
- /* @__PURE__ */ jsx(Box, { sx: { px: 2, py: 1.2, background: C.s2, borderBottom: `1px solid ${C.b1}` }, children: /* @__PURE__ */ jsx(Typography, { sx: { fontSize: 12, fontWeight: 700, letterSpacing: 0.8, textTransform: "uppercase", color: C.t2 }, children: "Queue Performance Metrics" }) }),
586
- /* @__PURE__ */ jsx(Box, { sx: { p: 2 }, children: queueMetrics.length > 0 ? queueMetrics.map((q) => {
590
+ /* @__PURE__ */ jsxs(Box_default, { sx: { border: `1px solid ${C.b1}`, borderRadius: "10px", overflow: "hidden", background: "transparent" }, children: [
591
+ /* @__PURE__ */ jsx(Box_default, { sx: { px: 2, py: 1.2, background: C.s2, borderBottom: `1px solid ${C.b1}` }, children: /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: 12, fontWeight: 700, letterSpacing: 0.8, textTransform: "uppercase", color: C.t2 }, children: "Queue Performance Metrics" }) }),
592
+ /* @__PURE__ */ jsx(Box_default, { sx: { p: 2 }, children: queueMetrics.length > 0 ? queueMetrics.map((q) => {
587
593
  var _a2, _b2, _c2;
588
- return /* @__PURE__ */ jsxs(Box, { sx: { mb: 2, "&:last-child": { mb: 0 } }, children: [
589
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", justifyContent: "space-between", mb: 0.3 }, children: [
590
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
591
- /* @__PURE__ */ jsx(Box, { sx: { width: 10, height: 10, borderRadius: "50%", background: q.color, flexShrink: 0 } }),
592
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: 13, fontWeight: 700, color: C.t1 }, children: q.queueName })
594
+ return /* @__PURE__ */ jsxs(Box_default, { sx: { mb: 2, "&:last-child": { mb: 0 } }, children: [
595
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", justifyContent: "space-between", mb: 0.3 }, children: [
596
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
597
+ /* @__PURE__ */ jsx(Box_default, { sx: { width: 10, height: 10, borderRadius: "50%", background: q.color, flexShrink: 0 } }),
598
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: 13, fontWeight: 700, color: C.t1 }, children: q.queueName })
593
599
  ] }),
594
- /* @__PURE__ */ jsxs(Typography, { sx: __spreadProps(__spreadValues({}, monoSx), { fontSize: 13, fontWeight: 800, color: q.color }), children: [
600
+ /* @__PURE__ */ jsxs(Typography_default, { sx: __spreadProps(__spreadValues({}, monoSx), { fontSize: 13, fontWeight: 800, color: q.color }), children: [
595
601
  q.totalCalls,
596
602
  " calls",
597
- /* @__PURE__ */ jsxs(Typography, { component: "span", sx: __spreadProps(__spreadValues({}, monoSx), { color: C.t3, ml: 0.5 }), children: [
603
+ /* @__PURE__ */ jsxs(Typography_default, { component: "span", sx: __spreadProps(__spreadValues({}, monoSx), { color: C.t3, ml: 0.5 }), children: [
598
604
  "(",
599
605
  q.answeredCalls,
600
606
  " ans / ",
@@ -603,52 +609,52 @@ function AgentDetailReportContent({ agentRow: propAgentRow, onBack, from, initia
603
609
  ] })
604
610
  ] })
605
611
  ] }),
606
- /* @__PURE__ */ jsx(Box, { sx: { height: 6, background: C.s3, borderRadius: 3, overflow: "hidden", mb: 0.3 }, children: /* @__PURE__ */ jsx(Box, { sx: { height: "100%", width: `${(_a2 = q.pctOfTotal) != null ? _a2 : 0}%`, background: q.color, borderRadius: 3 } }) }),
607
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", flexWrap: "wrap", columnGap: 1.5, rowGap: 0.2 }, children: [
608
- /* @__PURE__ */ jsxs(Typography, { sx: { fontSize: 11, color: C.t3 }, children: [
612
+ /* @__PURE__ */ jsx(Box_default, { sx: { height: 6, background: C.s3, borderRadius: 3, overflow: "hidden", mb: 0.3 }, children: /* @__PURE__ */ jsx(Box_default, { sx: { height: "100%", width: `${(_a2 = q.pctOfTotal) != null ? _a2 : 0}%`, background: q.color, borderRadius: 3 } }) }),
613
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", flexWrap: "wrap", columnGap: 1.5, rowGap: 0.2 }, children: [
614
+ /* @__PURE__ */ jsxs(Typography_default, { sx: { fontSize: 11, color: C.t3 }, children: [
609
615
  ((_b2 = q.pctOfTotal) != null ? _b2 : 0).toFixed(0),
610
616
  "% of total"
611
617
  ] }),
612
- /* @__PURE__ */ jsxs(Typography, { sx: { fontSize: 11, color: C.t3 }, children: [
618
+ /* @__PURE__ */ jsxs(Typography_default, { sx: { fontSize: 11, color: C.t3 }, children: [
613
619
  "Ans: ",
614
620
  ((_c2 = q.answerRate) != null ? _c2 : 0).toFixed(0),
615
621
  "%"
616
622
  ] }),
617
- /* @__PURE__ */ jsxs(Typography, { sx: { fontSize: 11, color: C.t3 }, children: [
623
+ /* @__PURE__ */ jsxs(Typography_default, { sx: { fontSize: 11, color: C.t3 }, children: [
618
624
  "Talk: ",
619
625
  /* @__PURE__ */ jsx("span", { style: __spreadProps(__spreadValues({}, monoSx), { color: C.t2 }), children: q.avgTalkFormatted })
620
626
  ] }),
621
- /* @__PURE__ */ jsxs(Typography, { sx: { fontSize: 11, color: C.t3 }, children: [
627
+ /* @__PURE__ */ jsxs(Typography_default, { sx: { fontSize: 11, color: C.t3 }, children: [
622
628
  "Hold: ",
623
629
  /* @__PURE__ */ jsx("span", { style: __spreadProps(__spreadValues({}, monoSx), { color: C.t2 }), children: q.avgHoldFormatted })
624
630
  ] }),
625
- /* @__PURE__ */ jsxs(Typography, { sx: { fontSize: 11, color: C.t3 }, children: [
631
+ /* @__PURE__ */ jsxs(Typography_default, { sx: { fontSize: 11, color: C.t3 }, children: [
626
632
  "Wrap: ",
627
633
  /* @__PURE__ */ jsx("span", { style: __spreadProps(__spreadValues({}, monoSx), { color: C.t2 }), children: q.avgWrapupFormatted })
628
634
  ] }),
629
- /* @__PURE__ */ jsxs(Typography, { sx: { fontSize: 11, color: C.t3 }, children: [
635
+ /* @__PURE__ */ jsxs(Typography_default, { sx: { fontSize: 11, color: C.t3 }, children: [
630
636
  "AHT: ",
631
637
  /* @__PURE__ */ jsx("span", { style: __spreadProps(__spreadValues({}, monoSx), { color: C.t2 }), children: q.avgAhtFormatted })
632
638
  ] })
633
639
  ] })
634
640
  ] }, q.queueName);
635
- }) : /* @__PURE__ */ jsx(Box, { sx: { textAlign: "center", py: 4, color: C.t3, fontSize: 13 }, children: "No queue data" }) })
641
+ }) : /* @__PURE__ */ jsx(Box_default, { sx: { textAlign: "center", py: 4, color: C.t3, fontSize: 13 }, children: "No queue data" }) })
636
642
  ] })
637
643
  ] })
638
644
  ] }),
639
- activeTab === 1 && /* @__PURE__ */ jsxs(Box, { sx: { borderRadius: "8px", border: "1px solid #e0e7ef", overflow: "hidden", background: "transparent" }, children: [
640
- /* @__PURE__ */ jsx(Box, { sx: { px: 2, py: 1.2, background: C.s2, borderBottom: `1px solid ${C.b1}`, display: "flex", alignItems: "center", justifyContent: "space-between" }, children: /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
641
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: 12, fontWeight: 700, letterSpacing: 0.8, textTransform: "uppercase", color: C.t2 }, children: "Call History" }),
642
- /* @__PURE__ */ jsx(Chip, { label: `${cdrTotal} records`, size: "small", sx: { fontSize: 11, fontWeight: 700, background: C.s2, color: C.t3, border: `1px solid ${C.b2}` } })
645
+ activeTab === 1 && /* @__PURE__ */ jsxs(Box_default, { sx: { borderRadius: "8px", border: "1px solid #e0e7ef", overflow: "hidden", background: "transparent" }, children: [
646
+ /* @__PURE__ */ jsx(Box_default, { sx: { px: 2, py: 1.2, background: C.s2, borderBottom: `1px solid ${C.b1}`, display: "flex", alignItems: "center", justifyContent: "space-between" }, children: /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
647
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: 12, fontWeight: 700, letterSpacing: 0.8, textTransform: "uppercase", color: C.t2 }, children: "Call History" }),
648
+ /* @__PURE__ */ jsx(Chip_default, { label: `${cdrTotal} records`, size: "small", sx: { fontSize: 11, fontWeight: 700, background: C.s2, color: C.t3, border: `1px solid ${C.b2}` } })
643
649
  ] }) }),
644
- cdrError && /* @__PURE__ */ jsx(Alert, { severity: "error", sx: { mx: 2, mt: 1 }, onClose: () => setCdrError(""), children: cdrError }),
645
- /* @__PURE__ */ jsxs(TableContainer, { sx: { position: "relative" }, children: [
646
- cdrLoading && /* @__PURE__ */ jsx(Box, { sx: { position: "absolute", top: 0, left: 0, right: 0, bottom: 0, background: "rgba(255,255,255,0.7)", display: "flex", alignItems: "center", justifyContent: "center", zIndex: 5 }, children: /* @__PURE__ */ jsx(CircularProgress, { size: 28 }) }),
647
- /* @__PURE__ */ jsxs(Table, { size: "small", sx: {
650
+ cdrError && /* @__PURE__ */ jsx(Alert_default, { severity: "error", sx: { mx: 2, mt: 1 }, onClose: () => setCdrError(""), children: cdrError }),
651
+ /* @__PURE__ */ jsxs(TableContainer_default, { sx: { position: "relative" }, children: [
652
+ cdrLoading && /* @__PURE__ */ jsx(Box_default, { sx: { position: "absolute", top: 0, left: 0, right: 0, bottom: 0, background: "rgba(255,255,255,0.7)", display: "flex", alignItems: "center", justifyContent: "center", zIndex: 5 }, children: /* @__PURE__ */ jsx(CircularProgress_default, { size: 28 }) }),
653
+ /* @__PURE__ */ jsxs(Table_default, { size: "small", sx: {
648
654
  minWidth: 1400,
649
655
  "& .MuiTableCell-root": { fontSize: "0.75rem", borderBottom: "1px solid #eef1f6", py: 0.6, px: 1 }
650
656
  }, children: [
651
- /* @__PURE__ */ jsx(TableHead, { children: /* @__PURE__ */ jsx(TableRow, { children: [
657
+ /* @__PURE__ */ jsx(TableHead_default, { children: /* @__PURE__ */ jsx(TableRow_default, { children: [
652
658
  "Phone Number",
653
659
  "Call Start",
654
660
  "Call Type",
@@ -662,35 +668,35 @@ function AgentDetailReportContent({ agentRow: propAgentRow, onBack, from, initia
662
668
  "Disposition",
663
669
  "Transferred",
664
670
  "Recording"
665
- ].map((label) => /* @__PURE__ */ jsx(TableCell, { sx: cdrHeadSx, children: label }, label)) }) }),
666
- /* @__PURE__ */ jsxs(TableBody, { children: [
671
+ ].map((label) => /* @__PURE__ */ jsx(TableCell_default, { sx: cdrHeadSx, children: label }, label)) }) }),
672
+ /* @__PURE__ */ jsxs(TableBody_default, { children: [
667
673
  cdrRecords.map((row, idx) => {
668
674
  var _a2;
669
- return /* @__PURE__ */ jsxs(TableRow, { hover: true, sx: {
675
+ return /* @__PURE__ */ jsxs(TableRow_default, { hover: true, sx: {
670
676
  backgroundColor: "#fff",
671
677
  "&:hover": { backgroundColor: "#f0f7f8" }
672
678
  }, children: [
673
- /* @__PURE__ */ jsx(TableCell, { sx: { fontWeight: 600, color: C.navy, fontSize: "0.75rem" }, children: row.phoneNumber || "" }),
674
- /* @__PURE__ */ jsx(TableCell, { sx: { fontSize: "0.73rem", color: "#4a5568" }, children: row.callStartTime ? dayjs(row.callStartTime).format("DD MMM YYYY hh:mm A") : "" }),
675
- /* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsx(CallTypeChip, { type: row.callType || "" }) }),
676
- /* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsx(StatusChip, { status: row.callStatus || "" }) }),
677
- /* @__PURE__ */ jsx(TableCell, { children: row.queueName ? /* @__PURE__ */ jsx(Chip, { label: row.queueName, size: "small", sx: { backgroundColor: "#f0ebfa", color: C.purple, fontWeight: 500, fontSize: "0.67rem", height: 22 } }) : "" }),
678
- /* @__PURE__ */ jsx(TableCell, { sx: { fontSize: "0.73rem", color: "#4a5568" }, children: row.extension || "" }),
679
- /* @__PURE__ */ jsx(TableCell, { sx: { fontWeight: 600, color: C.blue, fontSize: "0.75rem", fontVariantNumeric: "tabular-nums" }, children: row.talkDurationFmt || "" }),
680
- /* @__PURE__ */ jsx(TableCell, { sx: { fontWeight: 500, color: C.amber, fontSize: "0.75rem", fontVariantNumeric: "tabular-nums" }, children: row.holdDurationFmt || "" }),
681
- /* @__PURE__ */ jsx(TableCell, { sx: { fontWeight: 500, fontSize: "0.75rem", fontVariantNumeric: "tabular-nums" }, children: row.ringingDurationFmt || "" }),
682
- /* @__PURE__ */ jsx(TableCell, { sx: { fontWeight: 500, color: C.purple, fontSize: "0.75rem", fontVariantNumeric: "tabular-nums" }, children: row.wrapupDurationFmt || "" }),
683
- /* @__PURE__ */ jsx(TableCell, { sx: { fontSize: "0.73rem", color: "#4a5568" }, children: row.disposition || "" }),
684
- /* @__PURE__ */ jsx(TableCell, { children: row.wasTransferred ? /* @__PURE__ */ jsx(Chip, { label: "Yes", size: "small", sx: { backgroundColor: "#e6f7ef", color: C.green, fontWeight: 600, fontSize: "0.65rem", height: 20, borderRadius: "6px" } }) : /* @__PURE__ */ jsx(Chip, { label: "No", size: "small", sx: { backgroundColor: "transparent", color: "#6b7b8d", fontWeight: 600, fontSize: "0.65rem", height: 20, borderRadius: "6px" } }) }),
685
- /* @__PURE__ */ jsx(TableCell, { children: row.callUuid ? /* @__PURE__ */ jsx(RecordingCell, { callUuid: row.callUuid, recordingPath: (_a2 = row.recordingPath) != null ? _a2 : null }) : "" })
679
+ /* @__PURE__ */ jsx(TableCell_default, { sx: { fontWeight: 600, color: C.navy, fontSize: "0.75rem" }, children: row.phoneNumber || "" }),
680
+ /* @__PURE__ */ jsx(TableCell_default, { sx: { fontSize: "0.73rem", color: "#4a5568" }, children: row.callStartTime ? (0, import_dayjs.default)(row.callStartTime).format("DD MMM YYYY hh:mm A") : "" }),
681
+ /* @__PURE__ */ jsx(TableCell_default, { children: /* @__PURE__ */ jsx(CallTypeChip, { type: row.callType || "" }) }),
682
+ /* @__PURE__ */ jsx(TableCell_default, { children: /* @__PURE__ */ jsx(StatusChip, { status: row.callStatus || "" }) }),
683
+ /* @__PURE__ */ jsx(TableCell_default, { children: row.queueName ? /* @__PURE__ */ jsx(Chip_default, { label: row.queueName, size: "small", sx: { backgroundColor: "#f0ebfa", color: C.purple, fontWeight: 500, fontSize: "0.67rem", height: 22 } }) : "" }),
684
+ /* @__PURE__ */ jsx(TableCell_default, { sx: { fontSize: "0.73rem", color: "#4a5568" }, children: row.extension || "" }),
685
+ /* @__PURE__ */ jsx(TableCell_default, { sx: { fontWeight: 600, color: C.blue, fontSize: "0.75rem", fontVariantNumeric: "tabular-nums" }, children: row.talkDurationFmt || "" }),
686
+ /* @__PURE__ */ jsx(TableCell_default, { sx: { fontWeight: 500, color: C.amber, fontSize: "0.75rem", fontVariantNumeric: "tabular-nums" }, children: row.holdDurationFmt || "" }),
687
+ /* @__PURE__ */ jsx(TableCell_default, { sx: { fontWeight: 500, fontSize: "0.75rem", fontVariantNumeric: "tabular-nums" }, children: row.ringingDurationFmt || "" }),
688
+ /* @__PURE__ */ jsx(TableCell_default, { sx: { fontWeight: 500, color: C.purple, fontSize: "0.75rem", fontVariantNumeric: "tabular-nums" }, children: row.wrapupDurationFmt || "" }),
689
+ /* @__PURE__ */ jsx(TableCell_default, { sx: { fontSize: "0.73rem", color: "#4a5568" }, children: row.disposition || "" }),
690
+ /* @__PURE__ */ jsx(TableCell_default, { children: row.wasTransferred ? /* @__PURE__ */ jsx(Chip_default, { label: "Yes", size: "small", sx: { backgroundColor: "#e6f7ef", color: C.green, fontWeight: 600, fontSize: "0.65rem", height: 20, borderRadius: "6px" } }) : /* @__PURE__ */ jsx(Chip_default, { label: "No", size: "small", sx: { backgroundColor: "transparent", color: "#6b7b8d", fontWeight: 600, fontSize: "0.65rem", height: 20, borderRadius: "6px" } }) }),
691
+ /* @__PURE__ */ jsx(TableCell_default, { children: row.callUuid ? /* @__PURE__ */ jsx(RecordingCell, { callUuid: row.callUuid, recordingPath: (_a2 = row.recordingPath) != null ? _a2 : null }) : "" })
686
692
  ] }, row.callUuid || idx);
687
693
  }),
688
- !cdrLoading && cdrRecords.length === 0 && /* @__PURE__ */ jsx(TableRow, { children: /* @__PURE__ */ jsx(TableCell, { colSpan: 13, sx: { textAlign: "center", py: 4, color: C.t3, fontSize: 13 }, children: "No call records found" }) })
694
+ !cdrLoading && cdrRecords.length === 0 && /* @__PURE__ */ jsx(TableRow_default, { children: /* @__PURE__ */ jsx(TableCell_default, { colSpan: 13, sx: { textAlign: "center", py: 4, color: C.t3, fontSize: 13 }, children: "No call records found" }) })
689
695
  ] })
690
696
  ] })
691
697
  ] }),
692
698
  /* @__PURE__ */ jsx(
693
- TablePagination,
699
+ TablePagination_default,
694
700
  {
695
701
  component: "div",
696
702
  count: cdrTotal,
@@ -706,21 +712,21 @@ function AgentDetailReportContent({ agentRow: propAgentRow, onBack, from, initia
706
712
  }
707
713
  )
708
714
  ] }),
709
- activeTab === 2 && /* @__PURE__ */ jsxs(Box, { children: [
710
- /* @__PURE__ */ jsxs(Box, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr 1fr", md: "repeat(3, 1fr)", lg: "repeat(4, 1fr)" }, gap: { xs: 1.5, lg: 2 }, mb: 2 }, children: [
715
+ activeTab === 2 && /* @__PURE__ */ jsxs(Box_default, { children: [
716
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr 1fr", md: "repeat(3, 1fr)", lg: "repeat(4, 1fr)" }, gap: { xs: 1.5, lg: 2 }, mb: 2 }, children: [
711
717
  /* @__PURE__ */ jsx(StatCard, { value: (profile == null ? void 0 : profile.breakTimeFormatted) || "00:00:00", label: "Total Break Time", color: C.amber }),
712
718
  /* @__PURE__ */ jsx(StatCard, { value: (_j = profile == null ? void 0 : profile.breaksTaken) != null ? _j : 0, label: "Breaks Taken", color: C.purple }),
713
719
  /* @__PURE__ */ jsx(StatCard, { value: (profile == null ? void 0 : profile.productionFormatted) || "00:00:00", label: "Production Time", color: C.green }),
714
720
  /* @__PURE__ */ jsx(StatCard, { value: (profile == null ? void 0 : profile.loginDurationFormatted) || "00:00:00", label: "Login Duration", color: C.teal })
715
721
  ] }),
716
- /* @__PURE__ */ jsxs(Box, { children: [
717
- /* @__PURE__ */ jsx(Typography, { sx: { fontSize: "0.72rem", fontWeight: 700, color: "#888", textTransform: "uppercase", letterSpacing: 0.8, mb: 1, fontFamily: "poppins, Arial, sans-serif" }, children: "Attendance Summary" }),
718
- /* @__PURE__ */ jsx(Box, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr 1fr", md: "repeat(4, 1fr)" }, gap: 1.5 }, children: [
719
- { label: "First Login", value: (profile == null ? void 0 : profile.firstLoginTime) ? dayjs(profile.firstLoginTime).format("YYYY-MM-DD HH:mm:ss") : "\u2014", color: C.blue },
722
+ /* @__PURE__ */ jsxs(Box_default, { children: [
723
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontSize: "0.72rem", fontWeight: 700, color: "#888", textTransform: "uppercase", letterSpacing: 0.8, mb: 1, fontFamily: "poppins, Arial, sans-serif" }, children: "Attendance Summary" }),
724
+ /* @__PURE__ */ jsx(Box_default, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr 1fr", md: "repeat(4, 1fr)" }, gap: 1.5 }, children: [
725
+ { label: "First Login", value: (profile == null ? void 0 : profile.firstLoginTime) ? (0, import_dayjs.default)(profile.firstLoginTime).format("YYYY-MM-DD HH:mm:ss") : "\u2014", color: C.blue },
720
726
  { label: "Adherence Score", value: `${(_k = profile == null ? void 0 : profile.adherencePct) != null ? _k : 0}%`, color: C.green },
721
727
  { label: "Adherence Grade", value: (profile == null ? void 0 : profile.adherenceGrade) || "\u2014", color: C.purple },
722
728
  { label: "Answer Rate", value: `${((_l = profile == null ? void 0 : profile.answerRate) != null ? _l : 0).toFixed(1)}%`, color: C.teal }
723
- ].map((item) => /* @__PURE__ */ jsxs(Box, { sx: {
729
+ ].map((item) => /* @__PURE__ */ jsxs(Box_default, { sx: {
724
730
  px: 1.5,
725
731
  py: 1.2,
726
732
  borderRadius: "10px",
@@ -730,8 +736,8 @@ function AgentDetailReportContent({ agentRow: propAgentRow, onBack, from, initia
730
736
  borderLeftStyle: "solid",
731
737
  borderLeftColor: item.color
732
738
  }, children: [
733
- /* @__PURE__ */ jsx(Typography, { sx: { fontFamily: "poppins, Arial, sans-serif", fontSize: "0.72rem", fontWeight: 600, color: "#888", mb: 0.3 }, children: item.label }),
734
- /* @__PURE__ */ jsx(Typography, { sx: { fontFamily: "poppins, Arial, sans-serif", fontSize: "0.95rem", fontWeight: 700, color: "#1a1a1a" }, children: item.value })
739
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontFamily: "poppins, Arial, sans-serif", fontSize: "0.72rem", fontWeight: 600, color: "#888", mb: 0.3 }, children: item.label }),
740
+ /* @__PURE__ */ jsx(Typography_default, { sx: { fontFamily: "poppins, Arial, sans-serif", fontSize: "0.95rem", fontWeight: 700, color: "#1a1a1a" }, children: item.value })
735
741
  ] }, item.label)) })
736
742
  ] })
737
743
  ] })
@@ -744,4 +750,4 @@ var agentDetailReport_default = AgentDetailReport;
744
750
  export {
745
751
  agentDetailReport_default
746
752
  };
747
- //# sourceMappingURL=chunk-BDQZYTAY.mjs.map
753
+ //# sourceMappingURL=chunk-33QNSXP7.mjs.map