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.
- package/dist/agentDetailReport-ZR7U2LLB.mjs +17 -0
- package/dist/{agentPerformanceReport-6RO6STKU.mjs → agentPerformanceReport-JZK5DN5E.mjs} +73 -57
- package/dist/agentPerformanceReport-JZK5DN5E.mjs.map +1 -0
- package/dist/{auditReport-PYRZU3NA.mjs → auditReport-6ZUJ4UFO.mjs} +5 -4
- package/dist/{auditReport-PYRZU3NA.mjs.map → auditReport-6ZUJ4UFO.mjs.map} +1 -1
- package/dist/{callHistory-4JI64TU7.mjs → callHistory-T3M76D4B.mjs} +161 -158
- package/dist/callHistory-T3M76D4B.mjs.map +1 -0
- package/dist/{campaigns-JZE22SIM.mjs → campaigns-5PVHXBSD.mjs} +472 -417
- package/dist/campaigns-5PVHXBSD.mjs.map +1 -0
- 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-RJTURVVV.mjs → cdrReport-ZMDHSZUW.mjs} +122 -104
- package/dist/cdrReport-ZMDHSZUW.mjs.map +1 -0
- package/dist/{chunk-HAJ6SECI.mjs → chunk-2M3YEXYA.mjs} +95 -64
- package/dist/chunk-2M3YEXYA.mjs.map +1 -0
- package/dist/{chunk-BDQZYTAY.mjs → chunk-33QNSXP7.mjs} +169 -163
- package/dist/chunk-33QNSXP7.mjs.map +1 -0
- package/dist/{chunk-FVVDDZCA.mjs → chunk-3J7KQNEU.mjs} +22 -11
- package/dist/chunk-3J7KQNEU.mjs.map +1 -0
- package/dist/chunk-6WLG2PXL.mjs +14 -0
- package/dist/chunk-6WLG2PXL.mjs.map +1 -0
- package/dist/chunk-7LE2VTAI.mjs +14 -0
- package/dist/chunk-7LE2VTAI.mjs.map +1 -0
- package/dist/chunk-AOJRUZTO.mjs +14 -0
- package/dist/chunk-AOJRUZTO.mjs.map +1 -0
- package/dist/chunk-DF5EFKXC.mjs +28690 -0
- package/dist/chunk-DF5EFKXC.mjs.map +1 -0
- package/dist/{chunk-UNTGXE6T.mjs → chunk-DJP744FF.mjs} +2 -2
- package/dist/{chunk-RZZQ42MG.mjs → chunk-DNTGBNZD.mjs} +22 -15
- package/dist/{chunk-RZZQ42MG.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-FRKV2U3I.mjs +14 -0
- package/dist/chunk-FRKV2U3I.mjs.map +1 -0
- package/dist/{chunk-IBFF6DJA.mjs → chunk-H7GRWLYI.mjs} +13 -5
- package/dist/chunk-H7GRWLYI.mjs.map +1 -0
- package/dist/{chunk-PO6POUPL.mjs → chunk-IDZWA6HG.mjs} +185 -162
- package/dist/chunk-IDZWA6HG.mjs.map +1 -0
- 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-OHJIW3I3.mjs +14 -0
- package/dist/chunk-OHJIW3I3.mjs.map +1 -0
- package/dist/chunk-Q6G3MPS7.mjs +37797 -0
- package/dist/chunk-Q6G3MPS7.mjs.map +1 -0
- package/dist/{chunk-ATAP77RC.mjs → chunk-U2UDKXMB.mjs} +2 -2
- package/dist/{chunk-JOZ4YQMR.mjs → chunk-VBIDPX5Z.mjs} +22 -15
- package/dist/{chunk-JOZ4YQMR.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-WTBVFN4H.mjs +14 -0
- package/dist/chunk-WTBVFN4H.mjs.map +1 -0
- package/dist/chunk-YAQYTUTX.mjs +28 -0
- package/dist/chunk-YAQYTUTX.mjs.map +1 -0
- package/dist/index.js +117517 -31841
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +474 -369
- package/dist/index.mjs.map +1 -1
- package/dist/{liveStatus-E7UP37FK.mjs → liveStatus-YSBYSVOO.mjs} +123 -122
- package/dist/{liveStatus-E7UP37FK.mjs.map → liveStatus-YSBYSVOO.mjs.map} +1 -1
- package/dist/{loginReport-5QYHG6OM.mjs → loginReport-YIVBJVJD.mjs} +143 -122
- package/dist/loginReport-YIVBJVJD.mjs.map +1 -0
- package/dist/managementDashboard-7EMQC2UA.mjs +536 -0
- package/dist/{managementDashboard-PARD3QHL.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-JYBV3TF6.mjs +0 -13
- package/dist/agentPerformanceReport-6RO6STKU.mjs.map +0 -1
- package/dist/callHistory-4JI64TU7.mjs.map +0 -1
- package/dist/campaigns-JZE22SIM.mjs.map +0 -1
- package/dist/cdrReport-RJTURVVV.mjs.map +0 -1
- package/dist/chunk-AJQBR3AZ.mjs.map +0 -1
- package/dist/chunk-BDQZYTAY.mjs.map +0 -1
- package/dist/chunk-FVVDDZCA.mjs.map +0 -1
- package/dist/chunk-HAJ6SECI.mjs.map +0 -1
- package/dist/chunk-IBFF6DJA.mjs.map +0 -1
- package/dist/chunk-OVC42HVH.mjs +0 -1063
- package/dist/chunk-OVC42HVH.mjs.map +0 -1
- package/dist/chunk-PO6POUPL.mjs.map +0 -1
- package/dist/chunk-UB5HSUGK.mjs +0 -65
- package/dist/chunk-UB5HSUGK.mjs.map +0 -1
- package/dist/loginReport-5QYHG6OM.mjs.map +0 -1
- package/dist/managementDashboard-PARD3QHL.mjs +0 -531
- /package/dist/{agentDetailReport-JYBV3TF6.mjs.map → agentDetailReport-ZR7U2LLB.mjs.map} +0 -0
- /package/dist/{chunk-UNTGXE6T.mjs.map → chunk-DJP744FF.mjs.map} +0 -0
- /package/dist/{chunk-ATAP77RC.mjs.map → chunk-U2UDKXMB.mjs.map} +0 -0
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useCallMonitoring
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-U2UDKXMB.mjs";
|
|
4
4
|
import {
|
|
5
5
|
SDKPermissionGuard
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3J7KQNEU.mjs";
|
|
7
7
|
import {
|
|
8
8
|
SDKProvider,
|
|
9
9
|
useToast
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VVDJLUYT.mjs";
|
|
11
11
|
import {
|
|
12
12
|
END_POINT,
|
|
13
13
|
SDK_PERMISSIONS,
|
|
14
14
|
axios_default
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LHE4QGJJ.mjs";
|
|
16
16
|
import {
|
|
17
|
+
Box_default,
|
|
18
|
+
CircularProgress_default,
|
|
17
19
|
__spreadProps,
|
|
18
|
-
__spreadValues
|
|
19
|
-
|
|
20
|
+
__spreadValues,
|
|
21
|
+
keyframes,
|
|
22
|
+
styled_default
|
|
23
|
+
} from "./chunk-Q6G3MPS7.mjs";
|
|
20
24
|
|
|
21
25
|
// call-control-sdk/lib/pages/liveStatus/index.tsx
|
|
22
26
|
import React, { useCallback as useCallback2, useState as useState2, useEffect as useEffect2 } from "react";
|
|
23
|
-
import { Box as Box2, CircularProgress } from "@mui/material";
|
|
24
27
|
|
|
25
28
|
// call-control-sdk/lib/pages/liveStatus/useLiveStatus.ts
|
|
26
29
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
@@ -164,8 +167,6 @@ function useLiveStatus() {
|
|
|
164
167
|
}
|
|
165
168
|
|
|
166
169
|
// call-control-sdk/lib/pages/liveStatus/styles.ts
|
|
167
|
-
import { Box, styled } from "@mui/material";
|
|
168
|
-
import { keyframes } from "@mui/material/styles";
|
|
169
170
|
var pulse = keyframes`
|
|
170
171
|
0%, 100% { transform: scale(1); opacity: 1; }
|
|
171
172
|
50% { transform: scale(1.6); opacity: 0.3; }
|
|
@@ -227,7 +228,7 @@ var STATUS_COLORS = {
|
|
|
227
228
|
"s-break": { bg: "#ffebee", border: "rgba(204,42,42,.3)", bar: "#e53935", text: "#c62828" },
|
|
228
229
|
"s-idle": { bg: "#e8f5e9", border: "rgba(46,125,50,.25)", bar: "#2e7d32", text: "#1b5e20" }
|
|
229
230
|
};
|
|
230
|
-
var WallboardRoot =
|
|
231
|
+
var WallboardRoot = styled_default(Box_default, {
|
|
231
232
|
shouldForwardProp: (prop) => prop !== "isTv"
|
|
232
233
|
})(({ theme, isTv }) => ({
|
|
233
234
|
display: "grid",
|
|
@@ -242,7 +243,7 @@ var WallboardRoot = styled(Box, {
|
|
|
242
243
|
overflow: "hidden"
|
|
243
244
|
}
|
|
244
245
|
}));
|
|
245
|
-
var TopBar =
|
|
246
|
+
var TopBar = styled_default(Box_default)(({ theme }) => ({
|
|
246
247
|
background: C.navy,
|
|
247
248
|
display: "flex",
|
|
248
249
|
alignItems: "center",
|
|
@@ -255,7 +256,7 @@ var TopBar = styled(Box)(({ theme }) => ({
|
|
|
255
256
|
gap: 4,
|
|
256
257
|
[theme.breakpoints.up("sm")]: { padding: "0 14px", flexWrap: "nowrap" }
|
|
257
258
|
}));
|
|
258
|
-
var BrandLogo =
|
|
259
|
+
var BrandLogo = styled_default(Box_default)({
|
|
259
260
|
width: 22,
|
|
260
261
|
height: 22,
|
|
261
262
|
borderRadius: 4,
|
|
@@ -265,7 +266,7 @@ var BrandLogo = styled(Box)({
|
|
|
265
266
|
justifyContent: "center",
|
|
266
267
|
overflow: "hidden"
|
|
267
268
|
});
|
|
268
|
-
var LiveBadge =
|
|
269
|
+
var LiveBadge = styled_default(Box_default)({
|
|
269
270
|
display: "flex",
|
|
270
271
|
alignItems: "center",
|
|
271
272
|
gap: 4,
|
|
@@ -279,7 +280,7 @@ var LiveBadge = styled(Box)({
|
|
|
279
280
|
color: "#0ef5a8",
|
|
280
281
|
textTransform: "uppercase"
|
|
281
282
|
});
|
|
282
|
-
var PulseDot =
|
|
283
|
+
var PulseDot = styled_default("span")({
|
|
283
284
|
width: 5,
|
|
284
285
|
height: 5,
|
|
285
286
|
borderRadius: "50%",
|
|
@@ -287,7 +288,7 @@ var PulseDot = styled("span")({
|
|
|
287
288
|
display: "inline-block",
|
|
288
289
|
animation: `${pulse} 1.5s ease infinite`
|
|
289
290
|
});
|
|
290
|
-
var KpiStrip =
|
|
291
|
+
var KpiStrip = styled_default(Box_default)(({ theme }) => ({
|
|
291
292
|
display: "grid",
|
|
292
293
|
gridTemplateColumns: "repeat(auto-fit, minmax(72px, 1fr))",
|
|
293
294
|
background: "transparent",
|
|
@@ -296,7 +297,7 @@ var KpiStrip = styled(Box)(({ theme }) => ({
|
|
|
296
297
|
gridTemplateColumns: "repeat(14, 1fr)"
|
|
297
298
|
}
|
|
298
299
|
}));
|
|
299
|
-
var KpiCell =
|
|
300
|
+
var KpiCell = styled_default(Box_default)(({ accentColor }) => ({
|
|
300
301
|
padding: "4px 0 3px 8px",
|
|
301
302
|
borderRight: `1px solid ${C.b1}`,
|
|
302
303
|
borderBottom: `1px solid ${C.b1}`,
|
|
@@ -314,7 +315,7 @@ var KpiCell = styled(Box)(({ accentColor }) => ({
|
|
|
314
315
|
},
|
|
315
316
|
"@media (min-width: 960px)": { padding: "5px 0 4px 6px" }
|
|
316
317
|
}));
|
|
317
|
-
var KpiValue =
|
|
318
|
+
var KpiValue = styled_default("div")(({ kcolor, theme }) => ({
|
|
318
319
|
fontFamily: "'Poppins', Arial, sans-serif",
|
|
319
320
|
fontSize: 15,
|
|
320
321
|
fontWeight: 800,
|
|
@@ -323,7 +324,7 @@ var KpiValue = styled("div")(({ kcolor, theme }) => ({
|
|
|
323
324
|
[theme.breakpoints.up("md")]: { fontSize: 17 },
|
|
324
325
|
[theme.breakpoints.up("lg")]: { fontSize: 20 }
|
|
325
326
|
}));
|
|
326
|
-
var KpiLabel =
|
|
327
|
+
var KpiLabel = styled_default("div")({
|
|
327
328
|
fontSize: 8,
|
|
328
329
|
letterSpacing: 0.8,
|
|
329
330
|
textTransform: "uppercase",
|
|
@@ -331,7 +332,7 @@ var KpiLabel = styled("div")({
|
|
|
331
332
|
fontWeight: 600,
|
|
332
333
|
marginTop: 1
|
|
333
334
|
});
|
|
334
|
-
var BodyGrid =
|
|
335
|
+
var BodyGrid = styled_default(Box_default)(({ theme }) => ({
|
|
335
336
|
display: "grid",
|
|
336
337
|
gridTemplateColumns: "1fr",
|
|
337
338
|
marginTop: 0,
|
|
@@ -340,7 +341,7 @@ var BodyGrid = styled(Box)(({ theme }) => ({
|
|
|
340
341
|
[theme.breakpoints.up("md")]: { gridTemplateColumns: "2fr 1fr" },
|
|
341
342
|
[theme.breakpoints.up("lg")]: { gridTemplateColumns: "2fr 1fr", overflow: "hidden" }
|
|
342
343
|
}));
|
|
343
|
-
var Panel =
|
|
344
|
+
var Panel = styled_default(Box_default)(({ theme }) => ({
|
|
344
345
|
display: "flex",
|
|
345
346
|
flexDirection: "column",
|
|
346
347
|
overflow: "auto",
|
|
@@ -348,7 +349,7 @@ var Panel = styled(Box)(({ theme }) => ({
|
|
|
348
349
|
borderRight: `1px solid ${C.b1}`,
|
|
349
350
|
[theme.breakpoints.up("lg")]: { overflow: "hidden" }
|
|
350
351
|
}));
|
|
351
|
-
var PanelHeader =
|
|
352
|
+
var PanelHeader = styled_default(Box_default)({
|
|
352
353
|
display: "flex",
|
|
353
354
|
alignItems: "center",
|
|
354
355
|
justifyContent: "space-between",
|
|
@@ -357,7 +358,7 @@ var PanelHeader = styled(Box)({
|
|
|
357
358
|
borderBottom: `1px solid ${C.b1}`,
|
|
358
359
|
flexShrink: 0
|
|
359
360
|
});
|
|
360
|
-
var PhTitle =
|
|
361
|
+
var PhTitle = styled_default("span")({
|
|
361
362
|
fontFamily: "'Poppins', Arial, sans-serif",
|
|
362
363
|
fontSize: 10,
|
|
363
364
|
fontWeight: 700,
|
|
@@ -365,7 +366,7 @@ var PhTitle = styled("span")({
|
|
|
365
366
|
textTransform: "uppercase",
|
|
366
367
|
color: C.t2
|
|
367
368
|
});
|
|
368
|
-
var Badge =
|
|
369
|
+
var Badge = styled_default("span")(({ bg, color, border }) => ({
|
|
369
370
|
fontFamily: "'JetBrains Mono', monospace",
|
|
370
371
|
fontSize: 9,
|
|
371
372
|
fontWeight: 700,
|
|
@@ -376,19 +377,19 @@ var Badge = styled("span")(({ bg, color, border }) => ({
|
|
|
376
377
|
color,
|
|
377
378
|
border: `1px solid ${border}`
|
|
378
379
|
}));
|
|
379
|
-
var StatusDot =
|
|
380
|
+
var StatusDot = styled_default("span")(({ dotColor, animated }) => __spreadValues({
|
|
380
381
|
width: 5,
|
|
381
382
|
height: 5,
|
|
382
383
|
borderRadius: "50%",
|
|
383
384
|
flexShrink: 0,
|
|
384
385
|
background: dotColor
|
|
385
386
|
}, animated ? { animation: `${pulse} 1.3s ease infinite` } : {}));
|
|
386
|
-
var AgentTable =
|
|
387
|
+
var AgentTable = styled_default("table")({
|
|
387
388
|
width: "100%",
|
|
388
389
|
borderCollapse: "collapse",
|
|
389
390
|
tableLayout: "auto"
|
|
390
391
|
});
|
|
391
|
-
var AgTh =
|
|
392
|
+
var AgTh = styled_default("th")({
|
|
392
393
|
padding: "4px 8px",
|
|
393
394
|
fontSize: 8,
|
|
394
395
|
letterSpacing: 0.8,
|
|
@@ -403,13 +404,13 @@ var AgTh = styled("th")({
|
|
|
403
404
|
top: 0,
|
|
404
405
|
zIndex: 1
|
|
405
406
|
});
|
|
406
|
-
var AgTd =
|
|
407
|
+
var AgTd = styled_default("td")({
|
|
407
408
|
padding: "4px 8px",
|
|
408
409
|
fontSize: 11,
|
|
409
410
|
borderBottom: `1px solid ${C.b1}`,
|
|
410
411
|
verticalAlign: "middle"
|
|
411
412
|
});
|
|
412
|
-
var PageInfo =
|
|
413
|
+
var PageInfo = styled_default(Box_default)({
|
|
413
414
|
display: "flex",
|
|
414
415
|
alignItems: "center",
|
|
415
416
|
justifyContent: "space-between",
|
|
@@ -420,27 +421,27 @@ var PageInfo = styled(Box)({
|
|
|
420
421
|
flexShrink: 0,
|
|
421
422
|
borderTop: `1px solid ${C.b1}`
|
|
422
423
|
});
|
|
423
|
-
var QName =
|
|
424
|
+
var QName = styled_default("span")({
|
|
424
425
|
fontWeight: 600,
|
|
425
426
|
color: C.t1,
|
|
426
427
|
fontFamily: "'Poppins', Arial, sans-serif",
|
|
427
428
|
fontSize: 11,
|
|
428
429
|
"@media (min-width: 1280px)": { fontSize: 12 }
|
|
429
430
|
});
|
|
430
|
-
var QNum =
|
|
431
|
+
var QNum = styled_default("span")(({ numColor }) => ({
|
|
431
432
|
fontFamily: "'JetBrains Mono', monospace",
|
|
432
433
|
fontWeight: 700,
|
|
433
434
|
fontSize: 11,
|
|
434
435
|
color: numColor || C.t1
|
|
435
436
|
}));
|
|
436
|
-
var QBar =
|
|
437
|
-
var QBarFill =
|
|
437
|
+
var QBar = styled_default(Box_default)({ height: 4, background: C.bg3, borderRadius: 2, overflow: "hidden", width: 56 });
|
|
438
|
+
var QBarFill = styled_default(Box_default)(({ w, barColor }) => ({
|
|
438
439
|
height: "100%",
|
|
439
440
|
borderRadius: 3,
|
|
440
441
|
width: `${w}%`,
|
|
441
442
|
background: barColor
|
|
442
443
|
}));
|
|
443
|
-
var SbHeader =
|
|
444
|
+
var SbHeader = styled_default(Box_default)({
|
|
444
445
|
padding: "7px 12px",
|
|
445
446
|
display: "flex",
|
|
446
447
|
alignItems: "center",
|
|
@@ -448,14 +449,14 @@ var SbHeader = styled(Box)({
|
|
|
448
449
|
background: C.bg2,
|
|
449
450
|
borderBottom: `1px solid ${C.b1}`
|
|
450
451
|
});
|
|
451
|
-
var SbTitle =
|
|
452
|
+
var SbTitle = styled_default("span")({
|
|
452
453
|
fontSize: 9,
|
|
453
454
|
fontWeight: 700,
|
|
454
455
|
letterSpacing: 1.5,
|
|
455
456
|
textTransform: "uppercase",
|
|
456
457
|
color: C.t3
|
|
457
458
|
});
|
|
458
|
-
var NoDataBox =
|
|
459
|
+
var NoDataBox = styled_default(Box_default)({
|
|
459
460
|
display: "flex",
|
|
460
461
|
alignItems: "center",
|
|
461
462
|
justifyContent: "center",
|
|
@@ -466,7 +467,7 @@ var NoDataBox = styled(Box)({
|
|
|
466
467
|
letterSpacing: 0.5,
|
|
467
468
|
fontFamily: "'Poppins', Arial, sans-serif"
|
|
468
469
|
});
|
|
469
|
-
var Footer =
|
|
470
|
+
var Footer = styled_default(Box_default)({
|
|
470
471
|
background: C.navy,
|
|
471
472
|
borderTop: "1px solid rgba(255,255,255,.08)",
|
|
472
473
|
display: "flex",
|
|
@@ -478,7 +479,7 @@ var Footer = styled(Box)({
|
|
|
478
479
|
bottom: 0,
|
|
479
480
|
zIndex: 5
|
|
480
481
|
});
|
|
481
|
-
var TickerLabel =
|
|
482
|
+
var TickerLabel = styled_default("div")({
|
|
482
483
|
flexShrink: 0,
|
|
483
484
|
padding: "0 8px",
|
|
484
485
|
fontSize: 7,
|
|
@@ -489,13 +490,13 @@ var TickerLabel = styled("div")({
|
|
|
489
490
|
borderRight: "1px solid rgba(255,255,255,.1)",
|
|
490
491
|
whiteSpace: "nowrap"
|
|
491
492
|
});
|
|
492
|
-
var TickerTrack =
|
|
493
|
-
var TickerInner =
|
|
493
|
+
var TickerTrack = styled_default(Box_default)({ flex: 1, overflow: "hidden", position: "relative" });
|
|
494
|
+
var TickerInner = styled_default(Box_default)({
|
|
494
495
|
display: "flex",
|
|
495
496
|
animation: `${ticker} 50s linear infinite`,
|
|
496
497
|
whiteSpace: "nowrap"
|
|
497
498
|
});
|
|
498
|
-
var TickerSpan =
|
|
499
|
+
var TickerSpan = styled_default("span")(({ isWarn, isGood }) => ({
|
|
499
500
|
fontSize: 9,
|
|
500
501
|
color: "rgba(255,255,255,.55)",
|
|
501
502
|
padding: "0 16px",
|
|
@@ -505,7 +506,7 @@ var TickerSpan = styled("span")(({ isWarn, isGood }) => ({
|
|
|
505
506
|
fontWeight: 600
|
|
506
507
|
}
|
|
507
508
|
}));
|
|
508
|
-
var MonitorBtn =
|
|
509
|
+
var MonitorBtn = styled_default("button")(({ variant }) => {
|
|
509
510
|
const colors = {
|
|
510
511
|
listen: { bg: "#e3f2fd", color: "#1976d2", hoverBg: "#bbdefb" },
|
|
511
512
|
whisper: { bg: "#fff3e0", color: "#ef6c00", hoverBg: "#ffe0b2" },
|
|
@@ -530,7 +531,7 @@ var MonitorBtn = styled("button")(({ variant }) => {
|
|
|
530
531
|
"&:disabled": { opacity: 0.5, cursor: "not-allowed" }
|
|
531
532
|
};
|
|
532
533
|
});
|
|
533
|
-
var MonitorCard =
|
|
534
|
+
var MonitorCard = styled_default(Box_default)({
|
|
534
535
|
position: "fixed",
|
|
535
536
|
bottom: 20,
|
|
536
537
|
right: 20,
|
|
@@ -560,21 +561,21 @@ var AgentTableRow = React.memo(({
|
|
|
560
561
|
const statusColor = isOnCall ? agent.callDirection === "OUTBOUND" ? C.blue : C.green : sc.text;
|
|
561
562
|
const durColor = isLong ? C.red : statusColor;
|
|
562
563
|
return /* @__PURE__ */ jsxs("tr", { style: { background: isLong ? "rgba(204,42,42,.07)" : sc.bg, transition: "background 0.3s" }, children: [
|
|
563
|
-
/* @__PURE__ */ jsx(AgTd, { sx: { borderLeft: `2px solid ${sc.bar}`, pl: "8px", maxWidth: 160 }, children: /* @__PURE__ */ jsxs(
|
|
564
|
-
/* @__PURE__ */ jsx(
|
|
565
|
-
isLong && /* @__PURE__ */ jsx(
|
|
564
|
+
/* @__PURE__ */ jsx(AgTd, { sx: { borderLeft: `2px solid ${sc.bar}`, pl: "8px", maxWidth: 160 }, children: /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: "4px" }, children: [
|
|
565
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { fontFamily: "'Poppins', Arial, sans-serif", fontSize: 11, fontWeight: 700, color: C.t1, whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis" }, children: agent.agentName }),
|
|
566
|
+
isLong && /* @__PURE__ */ jsx(Box_default, { component: "span", sx: { fontSize: 7, fontWeight: 700, color: C.red, letterSpacing: 0.3, flexShrink: 0 }, children: "!7m" })
|
|
566
567
|
] }) }),
|
|
567
|
-
/* @__PURE__ */ jsx(AgTd, { children: /* @__PURE__ */ jsx(
|
|
568
|
-
/* @__PURE__ */ jsx(AgTd, { children: /* @__PURE__ */ jsxs(
|
|
568
|
+
/* @__PURE__ */ jsx(AgTd, { children: /* @__PURE__ */ jsx(Box_default, { sx: { fontFamily: "'JetBrains Mono', monospace", fontSize: 9, color: C.t3 }, children: agent.extension || "\u2014" }) }),
|
|
569
|
+
/* @__PURE__ */ jsx(AgTd, { children: /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: "4px", flexWrap: "nowrap" }, children: [
|
|
569
570
|
/* @__PURE__ */ jsx(StatusDot, { dotColor: statusColor, animated: isOnCall }),
|
|
570
|
-
/* @__PURE__ */ jsx(
|
|
571
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { fontSize: 8, fontWeight: 700, letterSpacing: 0.6, textTransform: "uppercase", color: statusColor, whiteSpace: "nowrap" }, children: agent.status })
|
|
571
572
|
] }) }),
|
|
572
|
-
/* @__PURE__ */ jsx(AgTd, { children: /* @__PURE__ */ jsx(
|
|
573
|
-
/* @__PURE__ */ jsx(AgTd, { children: /* @__PURE__ */ jsx(
|
|
574
|
-
/* @__PURE__ */ jsx(AgTd, { children: /* @__PURE__ */ jsx(
|
|
575
|
-
/* @__PURE__ */ jsx(AgTd, { children: /* @__PURE__ */ jsx(
|
|
576
|
-
onMonitor !== void 0 && /* @__PURE__ */ jsx(AgTd, { children: isOnCall && onMonitor && /* @__PURE__ */ jsx(
|
|
577
|
-
/* @__PURE__ */ jsxs(
|
|
573
|
+
/* @__PURE__ */ jsx(AgTd, { children: /* @__PURE__ */ jsx(Box_default, { sx: { fontFamily: "'JetBrains Mono', monospace", fontSize: 11, fontWeight: 700, color: durColor, whiteSpace: "nowrap" }, children: fmtDur(durSecs) }) }),
|
|
574
|
+
/* @__PURE__ */ jsx(AgTd, { children: /* @__PURE__ */ jsx(Box_default, { sx: { fontFamily: "'JetBrains Mono', monospace", fontSize: 9, color: C.t3 }, children: agent.activeCallerNumber || "\u2014" }) }),
|
|
575
|
+
/* @__PURE__ */ jsx(AgTd, { children: /* @__PURE__ */ jsx(Box_default, { sx: { fontSize: 9, color: C.t3, whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis", maxWidth: 110 }, children: agent.queueNames || "\u2014" }) }),
|
|
576
|
+
/* @__PURE__ */ jsx(AgTd, { children: /* @__PURE__ */ jsx(Box_default, { sx: { fontFamily: "'JetBrains Mono', monospace", fontSize: 10, fontWeight: 700, color: C.t2 }, children: agent.callsToday }) }),
|
|
577
|
+
onMonitor !== void 0 && /* @__PURE__ */ jsx(AgTd, { children: isOnCall && onMonitor && /* @__PURE__ */ jsx(Box_default, { sx: { display: "flex", gap: "3px", flexWrap: "nowrap", alignItems: "center" }, children: isBeingMonitored ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
578
|
+
/* @__PURE__ */ jsxs(Box_default, { sx: { fontSize: 7, color: C.green, fontWeight: 600, display: "flex", alignItems: "center", gap: "2px", whiteSpace: "nowrap" }, children: [
|
|
578
579
|
/* @__PURE__ */ jsx(StatusDot, { dotColor: C.green, animated: true }),
|
|
579
580
|
activeMonitoring == null ? void 0 : activeMonitoring.mode.toUpperCase()
|
|
580
581
|
] }),
|
|
@@ -689,7 +690,7 @@ function LiveStatusPageInner({ isTvDashboard = false }) {
|
|
|
689
690
|
good: q.waitingCalls === 0
|
|
690
691
|
}));
|
|
691
692
|
if (isLoading) {
|
|
692
|
-
return /* @__PURE__ */ jsxs(
|
|
693
|
+
return /* @__PURE__ */ jsxs(Box_default, { sx: {
|
|
693
694
|
height: "100vh",
|
|
694
695
|
display: "flex",
|
|
695
696
|
flexDirection: "column",
|
|
@@ -698,31 +699,31 @@ function LiveStatusPageInner({ isTvDashboard = false }) {
|
|
|
698
699
|
background: "transparent",
|
|
699
700
|
gap: 2
|
|
700
701
|
}, children: [
|
|
701
|
-
/* @__PURE__ */ jsx(
|
|
702
|
-
/* @__PURE__ */ jsx(
|
|
702
|
+
/* @__PURE__ */ jsx(CircularProgress_default, { size: 48, sx: { color: C.blue } }),
|
|
703
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { fontFamily: "'Poppins', Arial, sans-serif", fontSize: 16, fontWeight: 600, color: C.t2, letterSpacing: 1, textTransform: "uppercase" }, children: "Loading Live Status..." })
|
|
703
704
|
] });
|
|
704
705
|
}
|
|
705
706
|
return /* @__PURE__ */ jsxs(WallboardRoot, { isTv: isTvDashboard, children: [
|
|
706
707
|
isTvDashboard && /* @__PURE__ */ jsxs(TopBar, { children: [
|
|
707
|
-
/* @__PURE__ */ jsxs(
|
|
708
|
+
/* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: "10px" }, children: [
|
|
708
709
|
/* @__PURE__ */ jsx(BrandLogo, { children: /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 26 26", fill: "none", width: 16, height: 16, children: [
|
|
709
710
|
/* @__PURE__ */ jsx("rect", { width: "26", height: "26", rx: "5", fill: "#1A5F6C" }),
|
|
710
711
|
/* @__PURE__ */ jsx("path", { d: "M5 18 Q5 8 13 8 Q21 8 21 18", stroke: "#1565c8", strokeWidth: "2.5", fill: "none", strokeLinecap: "round" }),
|
|
711
712
|
/* @__PURE__ */ jsx("path", { d: "M9 18 Q9 12 13 12 Q17 12 17 18", stroke: "#0a9a62", strokeWidth: "2", fill: "none", strokeLinecap: "round" }),
|
|
712
713
|
/* @__PURE__ */ jsx("circle", { cx: "13", cy: "19", r: "2", fill: "#1565c8" })
|
|
713
714
|
] }) }),
|
|
714
|
-
/* @__PURE__ */ jsxs(
|
|
715
|
-
/* @__PURE__ */ jsx(
|
|
716
|
-
/* @__PURE__ */ jsx(
|
|
715
|
+
/* @__PURE__ */ jsxs(Box_default, { sx: { color: "#fff" }, children: [
|
|
716
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { fontFamily: "'Poppins', Arial, sans-serif", fontSize: 13, fontWeight: 800, letterSpacing: 1.2, lineHeight: 1 }, children: "AHS" }),
|
|
717
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { fontSize: 7.5, letterSpacing: 1, color: "rgba(255,255,255,.45)", textTransform: "uppercase" }, children: "Supervisor Wallboard" })
|
|
717
718
|
] }),
|
|
718
719
|
/* @__PURE__ */ jsxs(LiveBadge, { children: [
|
|
719
720
|
/* @__PURE__ */ jsx(PulseDot, {}),
|
|
720
721
|
"LIVE"
|
|
721
722
|
] })
|
|
722
723
|
] }),
|
|
723
|
-
/* @__PURE__ */ jsxs(
|
|
724
|
-
/* @__PURE__ */ jsx(
|
|
725
|
-
/* @__PURE__ */ jsx(
|
|
724
|
+
/* @__PURE__ */ jsxs(Box_default, { sx: { textAlign: "right" }, children: [
|
|
725
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { fontFamily: "'JetBrains Mono', monospace", fontSize: 14, fontWeight: 700, color: "#fff", letterSpacing: 1.5, lineHeight: 1 }, children: clockStr }),
|
|
726
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { fontSize: 7.5, color: "rgba(255,255,255,.4)", letterSpacing: 0.5, mt: "1px" }, children: dateStr })
|
|
726
727
|
] })
|
|
727
728
|
] }),
|
|
728
729
|
/* @__PURE__ */ jsxs(KpiStrip, { children: [
|
|
@@ -782,7 +783,7 @@ function LiveStatusPageInner({ isTvDashboard = false }) {
|
|
|
782
783
|
/* @__PURE__ */ jsxs(BodyGrid, { children: [
|
|
783
784
|
/* @__PURE__ */ jsxs(Panel, { children: [
|
|
784
785
|
/* @__PURE__ */ jsxs(PanelHeader, { children: [
|
|
785
|
-
/* @__PURE__ */ jsxs(
|
|
786
|
+
/* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
786
787
|
/* @__PURE__ */ jsx(PhTitle, { children: "Agent Status" }),
|
|
787
788
|
/* @__PURE__ */ jsxs(Badge, { bg: C.amberLt, color: C.amber, border: C.amberBd, children: [
|
|
788
789
|
oncallCount,
|
|
@@ -797,12 +798,12 @@ function LiveStatusPageInner({ isTvDashboard = false }) {
|
|
|
797
798
|
" Long"
|
|
798
799
|
] })
|
|
799
800
|
] }),
|
|
800
|
-
/* @__PURE__ */ jsxs(
|
|
801
|
+
/* @__PURE__ */ jsxs(Box_default, { sx: { fontSize: 8, color: C.t3 }, children: [
|
|
801
802
|
agents.length,
|
|
802
803
|
" agents"
|
|
803
804
|
] })
|
|
804
805
|
] }),
|
|
805
|
-
/* @__PURE__ */ jsx(
|
|
806
|
+
/* @__PURE__ */ jsx(Box_default, { sx: {
|
|
806
807
|
overflowX: "auto",
|
|
807
808
|
overflowY: "auto",
|
|
808
809
|
flex: 1,
|
|
@@ -847,20 +848,20 @@ function LiveStatusPageInner({ isTvDashboard = false }) {
|
|
|
847
848
|
] }),
|
|
848
849
|
/* @__PURE__ */ jsxs(Panel, { sx: { borderRight: `1px solid ${C.b1}`, maxHeight: { xs: "none", lg: "calc(100vh - 96px)" } }, children: [
|
|
849
850
|
/* @__PURE__ */ jsxs(PanelHeader, { children: [
|
|
850
|
-
/* @__PURE__ */ jsxs(
|
|
851
|
+
/* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
851
852
|
/* @__PURE__ */ jsx(PhTitle, { children: "Queue Performance" }),
|
|
852
853
|
/* @__PURE__ */ jsx(Badge, { bg: C.greenLt, color: C.green, border: C.greenBd, children: "All Healthy" })
|
|
853
854
|
] }),
|
|
854
855
|
/* @__PURE__ */ jsx(Badge, { bg: C.bg2, color: C.t3, border: C.b2, children: "Live SLA" })
|
|
855
856
|
] }),
|
|
856
|
-
/* @__PURE__ */ jsxs(
|
|
857
|
+
/* @__PURE__ */ jsxs(Box_default, { sx: {
|
|
857
858
|
flex: 1,
|
|
858
859
|
minHeight: 0,
|
|
859
860
|
"&::-webkit-scrollbar": { width: 3 },
|
|
860
861
|
"&::-webkit-scrollbar-track": { background: C.bg2, borderRadius: 2 },
|
|
861
862
|
"&::-webkit-scrollbar-thumb": { background: C.t4, borderRadius: 2, "&:hover": { background: C.t3 } }
|
|
862
863
|
}, children: [
|
|
863
|
-
/* @__PURE__ */ jsx(
|
|
864
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { overflowX: "auto", "&::-webkit-scrollbar": { height: 3 }, "&::-webkit-scrollbar-track": { background: C.bg2, borderRadius: 2 }, "&::-webkit-scrollbar-thumb": { background: C.t4, borderRadius: 2 } }, children: /* @__PURE__ */ jsxs(AgentTable, { children: [
|
|
864
865
|
/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
865
866
|
/* @__PURE__ */ jsx(AgTh, { children: "Queue" }),
|
|
866
867
|
/* @__PURE__ */ jsx(AgTh, { children: "Agents" }),
|
|
@@ -875,15 +876,15 @@ function LiveStatusPageInner({ isTvDashboard = false }) {
|
|
|
875
876
|
const loadColor = q.loadPct > 50 ? C.red : q.loadPct > 25 ? C.amber : C.green;
|
|
876
877
|
const slaColor = q.slaPct >= 95 ? C.green : q.slaPct >= 85 ? C.amber : C.red;
|
|
877
878
|
const isWaitingHigh = q.waitingCalls > WAITING_THRESHOLD;
|
|
878
|
-
return /* @__PURE__ */ jsxs(
|
|
879
|
+
return /* @__PURE__ */ jsxs(Box_default, { component: "tr", sx: isWaitingHigh ? { animation: `${rowBlink} 1s ease infinite` } : q.slaPct < 90 ? { background: "rgba(204,42,42,.04)" } : {}, children: [
|
|
879
880
|
/* @__PURE__ */ jsx(AgTd, { children: /* @__PURE__ */ jsx(QName, { children: q.queueName }) }),
|
|
880
881
|
/* @__PURE__ */ jsx(AgTd, { children: /* @__PURE__ */ jsx(QNum, { numColor: C.blue, children: q.totalAgents }) }),
|
|
881
882
|
/* @__PURE__ */ jsx(AgTd, { children: /* @__PURE__ */ jsx(QNum, { numColor: C.amber, children: q.activeAgents }) }),
|
|
882
883
|
/* @__PURE__ */ jsx(AgTd, { children: /* @__PURE__ */ jsx(QNum, { numColor: isWaitingHigh ? C.red : q.waitingCalls > 0 ? C.red : C.green, children: q.waitingCalls }) }),
|
|
883
884
|
/* @__PURE__ */ jsx(AgTd, { children: /* @__PURE__ */ jsx(QNum, { numColor: C.green, children: q.avgWaitFormatted }) }),
|
|
884
|
-
/* @__PURE__ */ jsx(AgTd, { children: /* @__PURE__ */ jsxs(
|
|
885
|
+
/* @__PURE__ */ jsx(AgTd, { children: /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: "5px" }, children: [
|
|
885
886
|
/* @__PURE__ */ jsx(QBar, { children: /* @__PURE__ */ jsx(QBarFill, { w: q.loadPct, barColor: loadColor }) }),
|
|
886
|
-
/* @__PURE__ */ jsxs(
|
|
887
|
+
/* @__PURE__ */ jsxs(Box_default, { sx: { fontFamily: "'JetBrains Mono', monospace", fontSize: 10, color: C.t3 }, children: [
|
|
887
888
|
q.loadPct,
|
|
888
889
|
"%"
|
|
889
890
|
] })
|
|
@@ -896,26 +897,26 @@ function LiveStatusPageInner({ isTvDashboard = false }) {
|
|
|
896
897
|
] }, q.queueId);
|
|
897
898
|
}) : /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx(AgTd, { colSpan: 8, children: /* @__PURE__ */ jsx(NoDataBox, { children: "No data available" }) }) }) })
|
|
898
899
|
] }) }),
|
|
899
|
-
/* @__PURE__ */ jsxs(
|
|
900
|
+
/* @__PURE__ */ jsxs(Box_default, { sx: { borderTop: `1px solid ${C.b1}` }, children: [
|
|
900
901
|
/* @__PURE__ */ jsxs(SbHeader, { children: [
|
|
901
|
-
/* @__PURE__ */ jsxs(
|
|
902
|
+
/* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: "7px" }, children: [
|
|
902
903
|
/* @__PURE__ */ jsx("svg", { width: "11", height: "11", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx("path", { d: "M1 8h2l2-5 2 9 2-7 2 5 1-2h3", stroke: C.blue, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", fill: "none" }) }),
|
|
903
904
|
/* @__PURE__ */ jsx(SbTitle, { children: "Queue Pulse" })
|
|
904
905
|
] }),
|
|
905
906
|
/* @__PURE__ */ jsx(Badge, { bg: C.greenLt, color: C.green, border: C.greenBd, children: "Live" })
|
|
906
907
|
] }),
|
|
907
|
-
/* @__PURE__ */ jsx(
|
|
908
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { display: "grid", gridTemplateColumns: "1fr 1fr 1fr", borderBottom: `1px solid ${C.b1}` }, children: [
|
|
908
909
|
{ label: "In Queue", value: (_o = queuePulse == null ? void 0 : queuePulse.runningInQueue) != null ? _o : 0, color: C.amber, bg: C.amberLt },
|
|
909
910
|
{ label: "Ready", value: (_p = queuePulse == null ? void 0 : queuePulse.readyAgents) != null ? _p : 0, color: C.green, bg: C.greenLt },
|
|
910
911
|
{ label: "Avg Wait", value: (_q = queuePulse == null ? void 0 : queuePulse.avgWaitFormatted) != null ? _q : "--:--", color: C.blue, bg: C.blueLt }
|
|
911
|
-
].map((s) => /* @__PURE__ */ jsxs(
|
|
912
|
-
/* @__PURE__ */ jsx(
|
|
913
|
-
/* @__PURE__ */ jsx(
|
|
912
|
+
].map((s) => /* @__PURE__ */ jsxs(Box_default, { sx: { p: "12px", borderRight: `1px solid ${C.b1}`, "&:last-child": { borderRight: "none" }, background: s.bg }, children: [
|
|
913
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { fontFamily: "'Poppins', Arial, sans-serif", fontSize: 20, fontWeight: 800, color: s.color, lineHeight: 1 }, children: s.value }),
|
|
914
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { fontSize: 8, letterSpacing: 0.8, textTransform: "uppercase", color: s.color, mt: "4px", fontWeight: 600, opacity: 0.75 }, children: s.label })
|
|
914
915
|
] }, s.label)) })
|
|
915
916
|
] }),
|
|
916
|
-
/* @__PURE__ */ jsxs(
|
|
917
|
+
/* @__PURE__ */ jsxs(Box_default, { children: [
|
|
917
918
|
/* @__PURE__ */ jsxs(SbHeader, { children: [
|
|
918
|
-
/* @__PURE__ */ jsxs(
|
|
919
|
+
/* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: "7px" }, children: [
|
|
919
920
|
/* @__PURE__ */ jsxs("svg", { width: "11", height: "11", viewBox: "0 0 16 16", fill: "none", children: [
|
|
920
921
|
/* @__PURE__ */ jsx("path", { d: "M8 1.5a5 5 0 0 1 5 5v2.5l1 2H2l1-2V6.5a5 5 0 0 1 5-5z", stroke: alerts.length > 0 ? C.amber : C.t3, strokeWidth: "1.4", strokeLinejoin: "round" }),
|
|
921
922
|
/* @__PURE__ */ jsx("path", { d: "M6.5 13a1.5 1.5 0 0 0 3 0", stroke: alerts.length > 0 ? C.amber : C.t3, strokeWidth: "1.4", strokeLinecap: "round" })
|
|
@@ -924,7 +925,7 @@ function LiveStatusPageInner({ isTvDashboard = false }) {
|
|
|
924
925
|
] }),
|
|
925
926
|
/* @__PURE__ */ jsx(Badge, { bg: alerts.length > 0 ? C.amberLt : C.bg2, color: alerts.length > 0 ? C.amber : C.t3, border: alerts.length > 0 ? C.amberBd : C.b2, children: alerts.length })
|
|
926
927
|
] }),
|
|
927
|
-
/* @__PURE__ */ jsx(
|
|
928
|
+
/* @__PURE__ */ jsx(Box_default, { sx: {
|
|
928
929
|
overflowY: "auto",
|
|
929
930
|
maxHeight: 220,
|
|
930
931
|
"&::-webkit-scrollbar": { width: 3 },
|
|
@@ -939,15 +940,15 @@ function LiveStatusPageInner({ isTvDashboard = false }) {
|
|
|
939
940
|
blue: { bg: C.blueLt, color: C.blue }
|
|
940
941
|
};
|
|
941
942
|
const ac = (_c2 = ALERT_COLORS[sk]) != null ? _c2 : ALERT_COLORS.blue;
|
|
942
|
-
return /* @__PURE__ */ jsxs(
|
|
943
|
-
/* @__PURE__ */ jsx(
|
|
944
|
-
/* @__PURE__ */ jsxs(
|
|
945
|
-
/* @__PURE__ */ jsx(
|
|
946
|
-
/* @__PURE__ */ jsx(
|
|
943
|
+
return /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", gap: "10px", px: "12px", py: "9px", borderBottom: `1px solid ${C.b1}`, background: i % 2 === 0 ? "transparent" : C.bg2 }, children: [
|
|
944
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { width: 8, height: 8, borderRadius: "50%", background: ac.color, flexShrink: 0, mt: "3px" } }),
|
|
945
|
+
/* @__PURE__ */ jsxs(Box_default, { sx: { flex: 1, minWidth: 0 }, children: [
|
|
946
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { fontSize: 11, fontWeight: 600, color: C.t1, mb: "2px" }, children: a.alertTitle }),
|
|
947
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { fontSize: 9, color: C.t3, lineHeight: 1.4 }, children: a.alertMessage })
|
|
947
948
|
] }),
|
|
948
|
-
/* @__PURE__ */ jsxs(
|
|
949
|
-
/* @__PURE__ */ jsx(
|
|
950
|
-
/* @__PURE__ */ jsx(
|
|
949
|
+
/* @__PURE__ */ jsxs(Box_default, { sx: { flexShrink: 0, display: "flex", flexDirection: "column", alignItems: "flex-end", gap: "4px" }, children: [
|
|
950
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { fontSize: 7, fontWeight: 700, px: "5px", py: "1px", borderRadius: "3px", background: ac.bg, color: ac.color, textTransform: "uppercase", letterSpacing: 0.5 }, children: a.severity }),
|
|
951
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { fontFamily: "'JetBrains Mono', monospace", fontSize: 9, color: C.t3 }, children: (() => {
|
|
951
952
|
try {
|
|
952
953
|
const [h, m] = a.alertTime.split(":");
|
|
953
954
|
const hr = parseInt(h, 10);
|
|
@@ -975,50 +976,50 @@ function LiveStatusPageInner({ isTvDashboard = false }) {
|
|
|
975
976
|
};
|
|
976
977
|
const m = modeConfig[selectedMode];
|
|
977
978
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
978
|
-
/* @__PURE__ */ jsx(
|
|
979
|
+
/* @__PURE__ */ jsx(Box_default, { onClick: handleCloseMonitorModal, sx: { position: "fixed", inset: 0, zIndex: 1e3 } }),
|
|
979
980
|
/* @__PURE__ */ jsxs(MonitorCard, { children: [
|
|
980
|
-
/* @__PURE__ */ jsx(
|
|
981
|
-
/* @__PURE__ */ jsxs(
|
|
982
|
-
/* @__PURE__ */ jsxs(
|
|
983
|
-
/* @__PURE__ */ jsxs(
|
|
984
|
-
/* @__PURE__ */ jsx(
|
|
985
|
-
/* @__PURE__ */ jsxs(
|
|
986
|
-
/* @__PURE__ */ jsx(
|
|
987
|
-
/* @__PURE__ */ jsxs(
|
|
981
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { height: 3, background: m.accent } }),
|
|
982
|
+
/* @__PURE__ */ jsxs(Box_default, { sx: { p: "12px 14px" }, children: [
|
|
983
|
+
/* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", justifyContent: "space-between", mb: 1.5 }, children: [
|
|
984
|
+
/* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
985
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { width: 32, height: 32, borderRadius: "10px", background: m.accentLt, display: "flex", alignItems: "center", justifyContent: "center", fontSize: 16 }, children: m.icon }),
|
|
986
|
+
/* @__PURE__ */ jsxs(Box_default, { children: [
|
|
987
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { fontWeight: 700, fontSize: 13, color: C.t1, lineHeight: 1.2 }, children: "Monitor Call" }),
|
|
988
|
+
/* @__PURE__ */ jsxs(Box_default, { sx: { fontSize: 10, color: C.t3 }, children: [
|
|
988
989
|
selectedAgent.agentName,
|
|
989
990
|
" \xB7 ext ",
|
|
990
991
|
selectedAgent.extension || ""
|
|
991
992
|
] })
|
|
992
993
|
] })
|
|
993
994
|
] }),
|
|
994
|
-
/* @__PURE__ */ jsx(
|
|
995
|
+
/* @__PURE__ */ jsx(Box_default, { component: "button", onClick: handleCloseMonitorModal, sx: { border: "none", background: "none", cursor: "pointer", color: C.t4, fontSize: 18, lineHeight: 1, p: 0, "&:hover": { color: C.t2 } }, children: "\xD7" })
|
|
995
996
|
] }),
|
|
996
|
-
/* @__PURE__ */ jsx(
|
|
997
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "4px 0", background: C.bg2, borderRadius: "8px", p: "8px 10px", mb: 1.5 }, children: [
|
|
997
998
|
["Customer", selectedAgent.activeCallerNumber || "\u2014"],
|
|
998
999
|
["Duration", fmtDur(durations[selectedAgent.agentId] || 0)]
|
|
999
1000
|
].map(([label, value]) => /* @__PURE__ */ jsxs(React.Fragment, { children: [
|
|
1000
|
-
/* @__PURE__ */ jsx(
|
|
1001
|
-
/* @__PURE__ */ jsx(
|
|
1001
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { fontSize: 10, color: C.t3, fontWeight: 500 }, children: label }),
|
|
1002
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { fontSize: 10, fontWeight: 600, color: C.t1, textAlign: "right" }, children: value })
|
|
1002
1003
|
] }, label)) }),
|
|
1003
|
-
/* @__PURE__ */ jsx(
|
|
1004
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { display: "flex", gap: "6px", mb: 1.5 }, children: ["listen", "whisper", "barge"].map((mode) => {
|
|
1004
1005
|
const mc = modeConfig[mode];
|
|
1005
1006
|
const active = selectedMode === mode;
|
|
1006
|
-
return /* @__PURE__ */ jsxs(
|
|
1007
|
+
return /* @__PURE__ */ jsxs(Box_default, { onClick: () => setSelectedMode(mode), sx: { flex: 1, textAlign: "center", py: "5px", borderRadius: "20px", fontSize: 9, fontWeight: 700, letterSpacing: 0.4, cursor: "pointer", textTransform: "uppercase", transition: "all 0.15s", background: active ? mc.accent : C.bg2, color: active ? "#fff" : C.t3, border: `1px solid ${active ? mc.accent : "transparent"}`, "&:hover": { background: active ? mc.accent : C.bg3 } }, children: [
|
|
1007
1008
|
mc.icon,
|
|
1008
1009
|
" ",
|
|
1009
1010
|
mc.label
|
|
1010
1011
|
] }, mode);
|
|
1011
1012
|
}) }),
|
|
1012
|
-
/* @__PURE__ */ jsxs(
|
|
1013
|
+
/* @__PURE__ */ jsxs(Box_default, { sx: { fontSize: 10, color: m.accentText, background: m.accentLt, borderRadius: "6px", px: 1.25, py: 0.75, mb: 1.5, display: "flex", alignItems: "center", gap: 0.5 }, children: [
|
|
1013
1014
|
/* @__PURE__ */ jsx("span", { style: { fontSize: 11 }, children: "\u2139\uFE0F" }),
|
|
1014
1015
|
" ",
|
|
1015
1016
|
m.desc,
|
|
1016
1017
|
" \xB7 Your dialer will ring to connect."
|
|
1017
1018
|
] }),
|
|
1018
|
-
monitoringError && /* @__PURE__ */ jsx(
|
|
1019
|
-
/* @__PURE__ */ jsxs(
|
|
1020
|
-
/* @__PURE__ */ jsx(
|
|
1021
|
-
/* @__PURE__ */ jsx(
|
|
1019
|
+
monitoringError && /* @__PURE__ */ jsx(Box_default, { sx: { mb: 1.5, px: 1.25, py: 0.75, background: C.redLt, borderRadius: "6px", color: C.red, fontSize: 11 }, children: monitoringError }),
|
|
1020
|
+
/* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", gap: "8px" }, children: [
|
|
1021
|
+
/* @__PURE__ */ jsx(Box_default, { component: "button", onClick: handleCloseMonitorModal, sx: { flex: 1, py: "7px", border: `1px solid ${C.b2}`, borderRadius: "8px", cursor: "pointer", fontSize: 11, fontWeight: 500, background: "transparent", color: C.t2, "&:hover": { background: C.bg2 } }, children: "Cancel" }),
|
|
1022
|
+
/* @__PURE__ */ jsx(Box_default, { component: "button", onClick: handleStartMonitoring, disabled: monitoringLoading, sx: { flex: 2, py: "7px", border: "none", borderRadius: "8px", cursor: monitoringLoading ? "not-allowed" : "pointer", fontSize: 11, fontWeight: 700, background: m.accent, color: "#fff", opacity: monitoringLoading ? 0.7 : 1, transition: "opacity 0.15s", "&:hover": { opacity: monitoringLoading ? 0.7 : 0.88 } }, children: monitoringLoading ? "Starting\u2026" : `\u25B6 Start ${m.label}` })
|
|
1022
1023
|
] })
|
|
1023
1024
|
] })
|
|
1024
1025
|
] })
|
|
@@ -1032,27 +1033,27 @@ function LiveStatusPageInner({ isTvDashboard = false }) {
|
|
|
1032
1033
|
barge: { icon: "\u{1F4E2}", accent: "#c2185b", accentLt: "#fce4ec", label: "Barge" }
|
|
1033
1034
|
};
|
|
1034
1035
|
const sm = (_a2 = sessionModeConfig[monitoringSession.mode]) != null ? _a2 : sessionModeConfig.listen;
|
|
1035
|
-
return /* @__PURE__ */ jsxs(
|
|
1036
|
-
/* @__PURE__ */ jsx(
|
|
1037
|
-
/* @__PURE__ */ jsxs(
|
|
1038
|
-
/* @__PURE__ */ jsxs(
|
|
1039
|
-
/* @__PURE__ */ jsx(
|
|
1040
|
-
/* @__PURE__ */ jsxs(
|
|
1036
|
+
return /* @__PURE__ */ jsxs(Box_default, { sx: { position: "fixed", bottom: 20, right: 20, width: 268, background: "#fff", borderRadius: "14px", boxShadow: "0 8px 28px rgba(13,30,53,0.16), 0 2px 6px rgba(13,30,53,0.08)", zIndex: 999, overflow: "hidden", animation: `${slideUp} 0.22s cubic-bezier(.22,.68,0,1.2)` }, children: [
|
|
1037
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { height: 3, background: sm.accent } }),
|
|
1038
|
+
/* @__PURE__ */ jsxs(Box_default, { sx: { p: "10px 12px" }, children: [
|
|
1039
|
+
/* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: "8px", mb: 1 }, children: [
|
|
1040
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { width: 8, height: 8, borderRadius: "50%", background: C.green, flexShrink: 0, animation: `${pulse} 1.6s ease infinite` } }),
|
|
1041
|
+
/* @__PURE__ */ jsxs(Box_default, { sx: { fontWeight: 700, fontSize: 11, color: C.t1, textTransform: "uppercase", letterSpacing: 0.6 }, children: [
|
|
1041
1042
|
sm.icon,
|
|
1042
1043
|
" ",
|
|
1043
1044
|
sm.label,
|
|
1044
1045
|
" Active"
|
|
1045
1046
|
] }),
|
|
1046
|
-
/* @__PURE__ */ jsx(
|
|
1047
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { ml: "auto", fontFamily: "'JetBrains Mono', monospace", fontSize: 11, fontWeight: 600, color: sm.accent }, children: fmtDur(Math.floor((Date.now() - monitoringSession.startTime) / 1e3)) })
|
|
1047
1048
|
] }),
|
|
1048
|
-
/* @__PURE__ */ jsxs(
|
|
1049
|
+
/* @__PURE__ */ jsxs(Box_default, { sx: { fontSize: 11, color: C.t2, mb: 1, pl: "16px" }, children: [
|
|
1049
1050
|
monitoringSession.agentName,
|
|
1050
|
-
/* @__PURE__ */ jsx(
|
|
1051
|
+
/* @__PURE__ */ jsx(Box_default, { component: "span", sx: { color: C.t4, mx: 0.5 }, children: "\xB7" }),
|
|
1051
1052
|
"ext ",
|
|
1052
1053
|
monitoringSession.agentExt
|
|
1053
1054
|
] }),
|
|
1054
|
-
/* @__PURE__ */ jsx(
|
|
1055
|
-
/* @__PURE__ */ jsxs(
|
|
1055
|
+
/* @__PURE__ */ jsx(Box_default, { sx: { borderTop: `1px solid ${C.b1}`, mb: 1 } }),
|
|
1056
|
+
/* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", gap: "5px" }, children: [
|
|
1056
1057
|
["listen", "whisper", "barge"].filter((m) => m !== monitoringSession.mode).map((mode) => {
|
|
1057
1058
|
const mc = sessionModeConfig[mode];
|
|
1058
1059
|
return /* @__PURE__ */ jsxs(MonitorBtn, { variant: mode, onClick: () => handleChangeMode(mode), style: { flex: 1, justifyContent: "center", padding: "4px 0", fontSize: 9, borderRadius: 4 }, children: [
|
|
@@ -1074,4 +1075,4 @@ function LiveStatusPage(props) {
|
|
|
1074
1075
|
export {
|
|
1075
1076
|
LiveStatusPage as default
|
|
1076
1077
|
};
|
|
1077
|
-
//# sourceMappingURL=liveStatus-
|
|
1078
|
+
//# sourceMappingURL=liveStatus-YSBYSVOO.mjs.map
|