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,85 +1,137 @@
1
1
  import {
2
+ Pause_default,
2
3
  useGetCallerData
3
- } from "./chunk-IBFF6DJA.mjs";
4
+ } from "./chunk-H7GRWLYI.mjs";
4
5
  import {
5
6
  SDKPageHeader
6
- } from "./chunk-RZZQ42MG.mjs";
7
+ } from "./chunk-DNTGBNZD.mjs";
8
+ import {
9
+ Phone_default
10
+ } from "./chunk-6WLG2PXL.mjs";
7
11
  import {
8
12
  getRecordingByCall
9
- } from "./chunk-UNTGXE6T.mjs";
13
+ } from "./chunk-DJP744FF.mjs";
14
+ import {
15
+ Download_default
16
+ } from "./chunk-FRKV2U3I.mjs";
10
17
  import {
11
18
  SDKPermissionGuard,
12
19
  useSDKPermissions
13
- } from "./chunk-FVVDDZCA.mjs";
20
+ } from "./chunk-3J7KQNEU.mjs";
21
+ import {
22
+ PlayArrow_default
23
+ } from "./chunk-7LE2VTAI.mjs";
14
24
  import {
15
25
  AdapterDayjs,
16
26
  DateRangePicker,
17
27
  LocalizationProvider
18
- } from "./chunk-AJQBR3AZ.mjs";
28
+ } from "./chunk-E6KYWWAI.mjs";
29
+ import {
30
+ Refresh_default,
31
+ Search_default
32
+ } from "./chunk-YAQYTUTX.mjs";
19
33
  import {
20
34
  SDKProvider,
21
35
  useToast
22
- } from "./chunk-6ICPXSN6.mjs";
36
+ } from "./chunk-VVDJLUYT.mjs";
23
37
  import {
24
38
  END_POINT,
25
39
  SDK_PERMISSIONS,
26
40
  axios_default,
27
41
  deepFindArray,
28
42
  deepFindTotal
29
- } from "./chunk-OVC42HVH.mjs";
43
+ } from "./chunk-LHE4QGJJ.mjs";
30
44
  import {
45
+ Box_default,
46
+ Button_default,
47
+ Checkbox_default,
48
+ Chip_default,
49
+ CircularProgress_default,
50
+ FormControlLabel_default,
51
+ FormControl_default,
52
+ IconButton_default,
53
+ InputAdornment_default,
54
+ MenuItem_default,
55
+ OutlinedInput_default,
56
+ Paper_default,
57
+ Select_default,
58
+ Tab_default,
59
+ TableBody_default,
60
+ TableCell_default,
61
+ TableContainer_default,
62
+ TableHead_default,
63
+ TablePagination_default,
64
+ TableRow_default,
65
+ Table_default,
66
+ Tabs_default,
67
+ TextField_default,
68
+ Tooltip_default,
69
+ Typography_default,
31
70
  __spreadProps,
32
- __spreadValues
33
- } from "./chunk-UB5HSUGK.mjs";
71
+ __spreadValues,
72
+ alpha,
73
+ createSvgIcon,
74
+ useTheme
75
+ } from "./chunk-Q6G3MPS7.mjs";
34
76
 
35
77
  // call-control-sdk/lib/pages/campaigns/index.tsx
36
78
  import { memo, useCallback as useCallback2, useEffect, useRef, useState as useState2 } from "react";
37
- import {
38
- Box,
39
- Chip,
40
- CircularProgress,
41
- FormControl,
42
- FormControlLabel,
43
- Checkbox,
44
- IconButton,
45
- InputAdornment,
46
- MenuItem,
47
- OutlinedInput,
48
- Paper,
49
- Select,
50
- Tab,
51
- Table,
52
- TableBody,
53
- TableCell,
54
- TableContainer,
55
- TableHead,
56
- TablePagination,
57
- TableRow,
58
- Tabs,
59
- TextField,
60
- Tooltip,
61
- Typography,
62
- useTheme as useTheme2
63
- } from "@mui/material";
64
- import AddIcon from "@mui/icons-material/Add";
65
- import ArchiveIcon from "@mui/icons-material/Archive";
66
- import ChevronLeftIcon from "@mui/icons-material/ChevronLeft";
67
- import ChevronRightIcon from "@mui/icons-material/ChevronRight";
68
- import DeleteIcon from "@mui/icons-material/Delete";
69
- import DownloadIcon from "@mui/icons-material/Download";
70
- import EditIcon from "@mui/icons-material/Edit";
71
- import PauseIcon from "@mui/icons-material/Pause";
72
- import PhoneIcon from "@mui/icons-material/Phone";
73
- import PlayArrowIcon from "@mui/icons-material/PlayArrow";
74
- import RefreshIcon from "@mui/icons-material/Refresh";
75
- import SearchIcon from "@mui/icons-material/Search";
76
- import SettingsIcon from "@mui/icons-material/Settings";
77
- import UploadFileIcon from "@mui/icons-material/UploadFile";
78
- import VisibilityOutlinedIcon from "@mui/icons-material/VisibilityOutlined";
79
+
80
+ // node_modules/@mui/icons-material/Add.mjs
81
+ import { jsx as _jsx } from "react/jsx-runtime";
82
+ var Add_default = createSvgIcon(/* @__PURE__ */ _jsx("path", {
83
+ d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"
84
+ }), "Add");
85
+
86
+ // node_modules/@mui/icons-material/Archive.mjs
87
+ import { jsx as _jsx2 } from "react/jsx-runtime";
88
+ var Archive_default = createSvgIcon(/* @__PURE__ */ _jsx2("path", {
89
+ d: "m20.54 5.23-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27M12 17.5 6.5 12H10v-2h4v2h3.5zM5.12 5l.81-1h12l.94 1z"
90
+ }), "Archive");
91
+
92
+ // node_modules/@mui/icons-material/ChevronLeft.mjs
93
+ import { jsx as _jsx3 } from "react/jsx-runtime";
94
+ var ChevronLeft_default = createSvgIcon(/* @__PURE__ */ _jsx3("path", {
95
+ d: "M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"
96
+ }), "ChevronLeft");
97
+
98
+ // node_modules/@mui/icons-material/ChevronRight.mjs
99
+ import { jsx as _jsx4 } from "react/jsx-runtime";
100
+ var ChevronRight_default = createSvgIcon(/* @__PURE__ */ _jsx4("path", {
101
+ d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
102
+ }), "ChevronRight");
103
+
104
+ // node_modules/@mui/icons-material/Delete.mjs
105
+ import { jsx as _jsx5 } from "react/jsx-runtime";
106
+ var Delete_default = createSvgIcon(/* @__PURE__ */ _jsx5("path", {
107
+ d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
108
+ }), "Delete");
109
+
110
+ // node_modules/@mui/icons-material/Edit.mjs
111
+ import { jsx as _jsx6 } from "react/jsx-runtime";
112
+ var Edit_default = createSvgIcon(/* @__PURE__ */ _jsx6("path", {
113
+ d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"
114
+ }), "Edit");
115
+
116
+ // node_modules/@mui/icons-material/Settings.mjs
117
+ import { jsx as _jsx7 } from "react/jsx-runtime";
118
+ var Settings_default = createSvgIcon(/* @__PURE__ */ _jsx7("path", {
119
+ d: "M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"
120
+ }), "Settings");
121
+
122
+ // node_modules/@mui/icons-material/UploadFile.mjs
123
+ import { jsx as _jsx8 } from "react/jsx-runtime";
124
+ var UploadFile_default = createSvgIcon(/* @__PURE__ */ _jsx8("path", {
125
+ d: "M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5zM8 15.01l1.41 1.41L11 14.84V19h2v-4.16l1.59 1.59L16 15.01 12.01 11z"
126
+ }), "UploadFile");
127
+
128
+ // node_modules/@mui/icons-material/VisibilityOutlined.mjs
129
+ import { jsx as _jsx9 } from "react/jsx-runtime";
130
+ var VisibilityOutlined_default = createSvgIcon(/* @__PURE__ */ _jsx9("path", {
131
+ d: "M12 6c3.79 0 7.17 2.13 8.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5C4.83 8.13 8.21 6 12 6m0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4m0 5c1.38 0 2.5 1.12 2.5 2.5S13.38 14 12 14s-2.5-1.12-2.5-2.5S10.62 9 12 9m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7"
132
+ }), "VisibilityOutlined");
79
133
 
80
134
  // call-control-sdk/lib/components/SDKButton.tsx
81
- import { Button, useTheme } from "@mui/material";
82
- import { alpha } from "@mui/material/styles";
83
135
  import { jsx } from "react/jsx-runtime";
84
136
  var muiVariant = {
85
137
  primary: "contained",
@@ -152,7 +204,7 @@ function SDKButton({
152
204
  }
153
205
  };
154
206
  return /* @__PURE__ */ jsx(
155
- Button,
207
+ Button_default,
156
208
  {
157
209
  variant: muiVariant[variant],
158
210
  onClick,
@@ -350,8 +402,11 @@ function useQueues() {
350
402
  return { queues, loading, fetchQueues, createQueue };
351
403
  }
352
404
 
353
- // call-control-sdk/lib/pages/campaigns/index.tsx
354
- import ClearIcon from "@mui/icons-material/Clear";
405
+ // node_modules/@mui/icons-material/Clear.mjs
406
+ import { jsx as _jsx10 } from "react/jsx-runtime";
407
+ var Clear_default = createSvgIcon(/* @__PURE__ */ _jsx10("path", {
408
+ d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
409
+ }), "Clear");
355
410
 
356
411
  // call-control-sdk/lib/pages/campaigns/types.ts
357
412
  var CAMPAIGN_TYPES = ["OUTBOUND_CAMPAIGN", "ABANDONED_CALLBACK"];
@@ -601,16 +656,16 @@ function BasicInfoTab({ formData, setFormData, isEditMode }) {
601
656
  };
602
657
  const mappedModes = DIALING_MODES_MAP[formData.campaignType] || [];
603
658
  const availableModes = formData.dialingMode && !mappedModes.includes(formData.dialingMode) ? [formData.dialingMode, ...mappedModes] : mappedModes;
604
- return /* @__PURE__ */ jsxs(Box, { sx: { p: 2.5 }, children: [
605
- /* @__PURE__ */ jsx2(Typography, { sx: sectionTitleSx, children: "Basic Info" }),
606
- /* @__PURE__ */ jsxs(Box, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", sm: "1.5fr 1fr", lg: "1.5fr 1fr 1fr" }, gap: 2, mb: 2 }, children: [
607
- /* @__PURE__ */ jsxs(Box, { children: [
608
- /* @__PURE__ */ jsxs(Typography, { sx: labelSx, children: [
659
+ return /* @__PURE__ */ jsxs(Box_default, { sx: { p: 2.5 }, children: [
660
+ /* @__PURE__ */ jsx2(Typography_default, { sx: sectionTitleSx, children: "Basic Info" }),
661
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", sm: "1.5fr 1fr", lg: "1.5fr 1fr 1fr" }, gap: 2, mb: 2 }, children: [
662
+ /* @__PURE__ */ jsxs(Box_default, { children: [
663
+ /* @__PURE__ */ jsxs(Typography_default, { sx: labelSx, children: [
609
664
  "Campaign Name ",
610
665
  /* @__PURE__ */ jsx2("span", { style: { color: "red" }, children: "*" })
611
666
  ] }),
612
667
  /* @__PURE__ */ jsx2(
613
- TextField,
668
+ TextField_default,
614
669
  {
615
670
  fullWidth: true,
616
671
  size: "small",
@@ -620,26 +675,26 @@ function BasicInfoTab({ formData, setFormData, isEditMode }) {
620
675
  }
621
676
  )
622
677
  ] }),
623
- /* @__PURE__ */ jsxs(Box, { children: [
624
- /* @__PURE__ */ jsxs(Typography, { sx: labelSx, children: [
678
+ /* @__PURE__ */ jsxs(Box_default, { children: [
679
+ /* @__PURE__ */ jsxs(Typography_default, { sx: labelSx, children: [
625
680
  "Campaign Type ",
626
681
  /* @__PURE__ */ jsx2("span", { style: { color: "red" }, children: "*" })
627
682
  ] }),
628
- /* @__PURE__ */ jsx2(FormControl, { fullWidth: true, size: "small", children: /* @__PURE__ */ jsx2(
629
- Select,
683
+ /* @__PURE__ */ jsx2(FormControl_default, { fullWidth: true, size: "small", children: /* @__PURE__ */ jsx2(
684
+ Select_default,
630
685
  {
631
686
  value: formData.campaignType,
632
687
  onChange: (e) => handleChange("campaignType", e.target.value),
633
688
  disabled: isEditMode,
634
- children: CAMPAIGN_TYPES.map((t) => /* @__PURE__ */ jsx2(MenuItem, { value: t, children: t }, t))
689
+ children: CAMPAIGN_TYPES.map((t) => /* @__PURE__ */ jsx2(MenuItem_default, { value: t, children: t }, t))
635
690
  }
636
691
  ) })
637
692
  ] })
638
693
  ] }),
639
- /* @__PURE__ */ jsxs(Box, { sx: { mb: 2 }, children: [
640
- /* @__PURE__ */ jsx2(Typography, { sx: labelSx, children: "Description" }),
694
+ /* @__PURE__ */ jsxs(Box_default, { sx: { mb: 2 }, children: [
695
+ /* @__PURE__ */ jsx2(Typography_default, { sx: labelSx, children: "Description" }),
641
696
  /* @__PURE__ */ jsx2(
642
- TextField,
697
+ TextField_default,
643
698
  {
644
699
  fullWidth: true,
645
700
  size: "small",
@@ -651,29 +706,29 @@ function BasicInfoTab({ formData, setFormData, isEditMode }) {
651
706
  }
652
707
  )
653
708
  ] }),
654
- /* @__PURE__ */ jsxs(Box, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", sm: "1fr 1fr", lg: "1fr 1fr 1fr" }, gap: 2 }, children: [
655
- /* @__PURE__ */ jsxs(Box, { children: [
656
- /* @__PURE__ */ jsxs(Typography, { sx: labelSx, children: [
709
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", sm: "1fr 1fr", lg: "1fr 1fr 1fr" }, gap: 2 }, children: [
710
+ /* @__PURE__ */ jsxs(Box_default, { children: [
711
+ /* @__PURE__ */ jsxs(Typography_default, { sx: labelSx, children: [
657
712
  "Dialing Mode ",
658
713
  /* @__PURE__ */ jsx2("span", { style: { color: "red" }, children: "*" })
659
714
  ] }),
660
- /* @__PURE__ */ jsx2(FormControl, { fullWidth: true, size: "small", children: /* @__PURE__ */ jsx2(
661
- Select,
715
+ /* @__PURE__ */ jsx2(FormControl_default, { fullWidth: true, size: "small", children: /* @__PURE__ */ jsx2(
716
+ Select_default,
662
717
  {
663
718
  value: formData.dialingMode,
664
719
  onChange: (e) => handleChange("dialingMode", e.target.value),
665
- children: availableModes.map((m) => /* @__PURE__ */ jsx2(MenuItem, { value: m, children: m }, m))
720
+ children: availableModes.map((m) => /* @__PURE__ */ jsx2(MenuItem_default, { value: m, children: m }, m))
666
721
  }
667
722
  ) })
668
723
  ] }),
669
- /* @__PURE__ */ jsxs(Box, { children: [
670
- /* @__PURE__ */ jsx2(Typography, { sx: labelSx, children: "Priority" }),
671
- /* @__PURE__ */ jsx2(FormControl, { fullWidth: true, size: "small", children: /* @__PURE__ */ jsx2(
672
- Select,
724
+ /* @__PURE__ */ jsxs(Box_default, { children: [
725
+ /* @__PURE__ */ jsx2(Typography_default, { sx: labelSx, children: "Priority" }),
726
+ /* @__PURE__ */ jsx2(FormControl_default, { fullWidth: true, size: "small", children: /* @__PURE__ */ jsx2(
727
+ Select_default,
673
728
  {
674
729
  value: (_a = formData.priority) != null ? _a : 5,
675
730
  onChange: (e) => handleChange("priority", Number(e.target.value)),
676
- children: LEAD_PRIORITY_OPTIONS.map((o) => /* @__PURE__ */ jsx2(MenuItem, { value: o.value, children: o.label }, o.label))
731
+ children: LEAD_PRIORITY_OPTIONS.map((o) => /* @__PURE__ */ jsx2(MenuItem_default, { value: o.value, children: o.label }, o.label))
677
732
  }
678
733
  ) })
679
734
  ] })
@@ -682,16 +737,16 @@ function BasicInfoTab({ formData, setFormData, isEditMode }) {
682
737
  }
683
738
  function DialingConfigTab({ formData, setFormData }) {
684
739
  const handleChange = (field, value) => setFormData((prev) => __spreadProps(__spreadValues({}, prev), { [field]: value }));
685
- return /* @__PURE__ */ jsxs(Box, { sx: { p: 2.5 }, children: [
686
- /* @__PURE__ */ jsx2(Typography, { sx: sectionTitleSx, children: "Dialing Configuration" }),
687
- /* @__PURE__ */ jsxs(Box, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", sm: "1fr 1fr", lg: "1fr 1fr 1fr" }, gap: 2 }, children: [
688
- /* @__PURE__ */ jsxs(Box, { children: [
689
- /* @__PURE__ */ jsxs(Typography, { sx: labelSx, children: [
740
+ return /* @__PURE__ */ jsxs(Box_default, { sx: { p: 2.5 }, children: [
741
+ /* @__PURE__ */ jsx2(Typography_default, { sx: sectionTitleSx, children: "Dialing Configuration" }),
742
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", sm: "1fr 1fr", lg: "1fr 1fr 1fr" }, gap: 2 }, children: [
743
+ /* @__PURE__ */ jsxs(Box_default, { children: [
744
+ /* @__PURE__ */ jsxs(Typography_default, { sx: labelSx, children: [
690
745
  "Max Concurrent Calls ",
691
746
  /* @__PURE__ */ jsx2("span", { style: { color: "red" }, children: "*" })
692
747
  ] }),
693
748
  /* @__PURE__ */ jsx2(
694
- TextField,
749
+ TextField_default,
695
750
  {
696
751
  fullWidth: true,
697
752
  size: "small",
@@ -703,10 +758,10 @@ function DialingConfigTab({ formData, setFormData }) {
703
758
  }
704
759
  )
705
760
  ] }),
706
- /* @__PURE__ */ jsxs(Box, { children: [
707
- /* @__PURE__ */ jsx2(Typography, { sx: labelSx, children: "Calls Per Agent" }),
761
+ /* @__PURE__ */ jsxs(Box_default, { children: [
762
+ /* @__PURE__ */ jsx2(Typography_default, { sx: labelSx, children: "Calls Per Agent" }),
708
763
  /* @__PURE__ */ jsx2(
709
- TextField,
764
+ TextField_default,
710
765
  {
711
766
  fullWidth: true,
712
767
  size: "small",
@@ -718,10 +773,10 @@ function DialingConfigTab({ formData, setFormData }) {
718
773
  }
719
774
  )
720
775
  ] }),
721
- /* @__PURE__ */ jsxs(Box, { children: [
722
- /* @__PURE__ */ jsx2(Typography, { sx: labelSx, children: "Ring Timeout (sec)" }),
776
+ /* @__PURE__ */ jsxs(Box_default, { children: [
777
+ /* @__PURE__ */ jsx2(Typography_default, { sx: labelSx, children: "Ring Timeout (sec)" }),
723
778
  /* @__PURE__ */ jsx2(
724
- TextField,
779
+ TextField_default,
725
780
  {
726
781
  fullWidth: true,
727
782
  size: "small",
@@ -733,10 +788,10 @@ function DialingConfigTab({ formData, setFormData }) {
733
788
  }
734
789
  )
735
790
  ] }),
736
- /* @__PURE__ */ jsxs(Box, { children: [
737
- /* @__PURE__ */ jsx2(Typography, { sx: labelSx, children: "Answer Timeout (sec)" }),
791
+ /* @__PURE__ */ jsxs(Box_default, { children: [
792
+ /* @__PURE__ */ jsx2(Typography_default, { sx: labelSx, children: "Answer Timeout (sec)" }),
738
793
  /* @__PURE__ */ jsx2(
739
- TextField,
794
+ TextField_default,
740
795
  {
741
796
  fullWidth: true,
742
797
  size: "small",
@@ -748,13 +803,13 @@ function DialingConfigTab({ formData, setFormData }) {
748
803
  }
749
804
  )
750
805
  ] }),
751
- /* @__PURE__ */ jsxs(Box, { children: [
752
- /* @__PURE__ */ jsxs(Typography, { sx: labelSx, children: [
806
+ /* @__PURE__ */ jsxs(Box_default, { children: [
807
+ /* @__PURE__ */ jsxs(Typography_default, { sx: labelSx, children: [
753
808
  "Max Attempts ",
754
809
  /* @__PURE__ */ jsx2("span", { style: { color: "red" }, children: "*" })
755
810
  ] }),
756
811
  /* @__PURE__ */ jsx2(
757
- TextField,
812
+ TextField_default,
758
813
  {
759
814
  fullWidth: true,
760
815
  size: "small",
@@ -766,10 +821,10 @@ function DialingConfigTab({ formData, setFormData }) {
766
821
  }
767
822
  )
768
823
  ] }),
769
- /* @__PURE__ */ jsxs(Box, { children: [
770
- /* @__PURE__ */ jsx2(Typography, { sx: labelSx, children: "Retry Interval (min)" }),
824
+ /* @__PURE__ */ jsxs(Box_default, { children: [
825
+ /* @__PURE__ */ jsx2(Typography_default, { sx: labelSx, children: "Retry Interval (min)" }),
771
826
  /* @__PURE__ */ jsx2(
772
- TextField,
827
+ TextField_default,
773
828
  {
774
829
  fullWidth: true,
775
830
  size: "small",
@@ -781,14 +836,14 @@ function DialingConfigTab({ formData, setFormData }) {
781
836
  }
782
837
  )
783
838
  ] }),
784
- /* @__PURE__ */ jsxs(Box, { children: [
785
- /* @__PURE__ */ jsx2(Typography, { sx: labelSx, children: "Agent Type" }),
786
- /* @__PURE__ */ jsx2(FormControl, { fullWidth: true, size: "small", children: /* @__PURE__ */ jsx2(
787
- Select,
839
+ /* @__PURE__ */ jsxs(Box_default, { children: [
840
+ /* @__PURE__ */ jsx2(Typography_default, { sx: labelSx, children: "Agent Type" }),
841
+ /* @__PURE__ */ jsx2(FormControl_default, { fullWidth: true, size: "small", children: /* @__PURE__ */ jsx2(
842
+ Select_default,
788
843
  {
789
844
  value: formData.agentType,
790
845
  onChange: (e) => handleChange("agentType", e.target.value),
791
- children: AGENT_TYPES.map((t) => /* @__PURE__ */ jsx2(MenuItem, { value: t, children: t }, t))
846
+ children: AGENT_TYPES.map((t) => /* @__PURE__ */ jsx2(MenuItem_default, { value: t, children: t }, t))
792
847
  }
793
848
  ) })
794
849
  ] })
@@ -800,16 +855,16 @@ function ScheduleTab({ formData, setFormData }) {
800
855
  const toggleDay = (day) => setFormData((prev) => __spreadProps(__spreadValues({}, prev), {
801
856
  daysOfWeek: prev.daysOfWeek.includes(day) ? prev.daysOfWeek.filter((d) => d !== day) : [...prev.daysOfWeek, day].sort()
802
857
  }));
803
- return /* @__PURE__ */ jsxs(Box, { sx: { p: 2.5 }, children: [
804
- /* @__PURE__ */ jsx2(Typography, { sx: sectionTitleSx, children: "Operating Schedule" }),
805
- /* @__PURE__ */ jsxs(Box, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", sm: "1fr 1fr", lg: "1fr 1fr 1fr" }, gap: 2, mb: 2 }, children: [
806
- /* @__PURE__ */ jsxs(Box, { children: [
807
- /* @__PURE__ */ jsxs(Typography, { sx: labelSx, children: [
858
+ return /* @__PURE__ */ jsxs(Box_default, { sx: { p: 2.5 }, children: [
859
+ /* @__PURE__ */ jsx2(Typography_default, { sx: sectionTitleSx, children: "Operating Schedule" }),
860
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", sm: "1fr 1fr", lg: "1fr 1fr 1fr" }, gap: 2, mb: 2 }, children: [
861
+ /* @__PURE__ */ jsxs(Box_default, { children: [
862
+ /* @__PURE__ */ jsxs(Typography_default, { sx: labelSx, children: [
808
863
  "Start Time ",
809
864
  /* @__PURE__ */ jsx2("span", { style: { color: "red" }, children: "*" })
810
865
  ] }),
811
866
  /* @__PURE__ */ jsx2(
812
- TextField,
867
+ TextField_default,
813
868
  {
814
869
  fullWidth: true,
815
870
  size: "small",
@@ -820,13 +875,13 @@ function ScheduleTab({ formData, setFormData }) {
820
875
  }
821
876
  )
822
877
  ] }),
823
- /* @__PURE__ */ jsxs(Box, { children: [
824
- /* @__PURE__ */ jsxs(Typography, { sx: labelSx, children: [
878
+ /* @__PURE__ */ jsxs(Box_default, { children: [
879
+ /* @__PURE__ */ jsxs(Typography_default, { sx: labelSx, children: [
825
880
  "End Time ",
826
881
  /* @__PURE__ */ jsx2("span", { style: { color: "red" }, children: "*" })
827
882
  ] }),
828
883
  /* @__PURE__ */ jsx2(
829
- TextField,
884
+ TextField_default,
830
885
  {
831
886
  fullWidth: true,
832
887
  size: "small",
@@ -838,9 +893,9 @@ function ScheduleTab({ formData, setFormData }) {
838
893
  )
839
894
  ] })
840
895
  ] }),
841
- /* @__PURE__ */ jsxs(Box, { sx: { mb: 2 }, children: [
842
- /* @__PURE__ */ jsx2(Typography, { sx: labelSx, children: "Timezone" }),
843
- /* @__PURE__ */ jsx2(FormControl, { fullWidth: true, size: "small", children: /* @__PURE__ */ jsx2(Select, { value: formData.timezone, onChange: (e) => handleChange("timezone", e.target.value), children: [
896
+ /* @__PURE__ */ jsxs(Box_default, { sx: { mb: 2 }, children: [
897
+ /* @__PURE__ */ jsx2(Typography_default, { sx: labelSx, children: "Timezone" }),
898
+ /* @__PURE__ */ jsx2(FormControl_default, { fullWidth: true, size: "small", children: /* @__PURE__ */ jsx2(Select_default, { value: formData.timezone, onChange: (e) => handleChange("timezone", e.target.value), children: [
844
899
  "Etc/UTC",
845
900
  "US/Eastern",
846
901
  "US/Central",
@@ -851,12 +906,12 @@ function ScheduleTab({ formData, setFormData }) {
851
906
  "Asia/Kolkata",
852
907
  "Asia/Tokyo",
853
908
  "Australia/Sydney"
854
- ].map((tz) => /* @__PURE__ */ jsx2(MenuItem, { value: tz, children: tz }, tz)) }) })
909
+ ].map((tz) => /* @__PURE__ */ jsx2(MenuItem_default, { value: tz, children: tz }, tz)) }) })
855
910
  ] }),
856
- /* @__PURE__ */ jsxs(Box, { children: [
857
- /* @__PURE__ */ jsx2(Typography, { sx: labelSx, children: "Days of Week" }),
858
- /* @__PURE__ */ jsx2(Box, { sx: { display: "flex", gap: 1, flexWrap: "wrap", mt: 0.5 }, children: DAYS_OF_WEEK.map((day) => /* @__PURE__ */ jsx2(
859
- Chip,
911
+ /* @__PURE__ */ jsxs(Box_default, { children: [
912
+ /* @__PURE__ */ jsx2(Typography_default, { sx: labelSx, children: "Days of Week" }),
913
+ /* @__PURE__ */ jsx2(Box_default, { sx: { display: "flex", gap: 1, flexWrap: "wrap", mt: 0.5 }, children: DAYS_OF_WEEK.map((day) => /* @__PURE__ */ jsx2(
914
+ Chip_default,
860
915
  {
861
916
  label: day.label,
862
917
  onClick: () => toggleDay(day.value),
@@ -948,9 +1003,9 @@ function QueueLinkingTab({
948
1003
  )
949
1004
  }));
950
1005
  };
951
- return /* @__PURE__ */ jsxs(Box, { sx: { p: 2.5 }, children: [
1006
+ return /* @__PURE__ */ jsxs(Box_default, { sx: { p: 2.5 }, children: [
952
1007
  createOpen && /* @__PURE__ */ jsx2(
953
- Box,
1008
+ Box_default,
954
1009
  {
955
1010
  sx: {
956
1011
  position: "fixed",
@@ -962,19 +1017,19 @@ function QueueLinkingTab({
962
1017
  justifyContent: "center"
963
1018
  },
964
1019
  onClick: (e) => e.stopPropagation(),
965
- children: /* @__PURE__ */ jsxs(Paper, { elevation: 6, sx: { width: { xs: "90vw", sm: 420 }, borderRadius: "16px", overflow: "hidden", boxShadow: "0 8px 32px rgba(26,95,108,0.18)" }, children: [
966
- /* @__PURE__ */ jsxs(Box, { sx: __spreadProps(__spreadValues({}, dialogHeaderSx), { backgroundColor: "#1A5F6C", color: "#fff" }), children: [
967
- /* @__PURE__ */ jsx2(Typography, { fontWeight: 700, fontSize: "1rem", fontFamily: "poppins, Arial, sans-serif", children: "Create New Queue" }),
968
- /* @__PURE__ */ jsx2(IconButton, { size: "small", onClick: () => !creatingQueue && setCreateOpen(false), sx: { color: "#fff" }, children: "\u2715" })
1020
+ children: /* @__PURE__ */ jsxs(Paper_default, { elevation: 6, sx: { width: { xs: "90vw", sm: 420 }, borderRadius: "16px", overflow: "hidden", boxShadow: "0 8px 32px rgba(26,95,108,0.18)" }, children: [
1021
+ /* @__PURE__ */ jsxs(Box_default, { sx: __spreadProps(__spreadValues({}, dialogHeaderSx), { backgroundColor: "#1A5F6C", color: "#fff" }), children: [
1022
+ /* @__PURE__ */ jsx2(Typography_default, { fontWeight: 700, fontSize: "1rem", fontFamily: "poppins, Arial, sans-serif", children: "Create New Queue" }),
1023
+ /* @__PURE__ */ jsx2(IconButton_default, { size: "small", onClick: () => !creatingQueue && setCreateOpen(false), sx: { color: "#fff" }, children: "\u2715" })
969
1024
  ] }),
970
- /* @__PURE__ */ jsxs(Box, { sx: { p: 2.5, display: "flex", flexDirection: "column", gap: 1.5 }, children: [
971
- /* @__PURE__ */ jsxs(Box, { children: [
972
- /* @__PURE__ */ jsxs(Typography, { sx: labelSx, children: [
1025
+ /* @__PURE__ */ jsxs(Box_default, { sx: { p: 2.5, display: "flex", flexDirection: "column", gap: 1.5 }, children: [
1026
+ /* @__PURE__ */ jsxs(Box_default, { children: [
1027
+ /* @__PURE__ */ jsxs(Typography_default, { sx: labelSx, children: [
973
1028
  "Queue Name ",
974
1029
  /* @__PURE__ */ jsx2("span", { style: { color: "red" }, children: "*" })
975
1030
  ] }),
976
1031
  /* @__PURE__ */ jsx2(
977
- TextField,
1032
+ TextField_default,
978
1033
  {
979
1034
  fullWidth: true,
980
1035
  size: "small",
@@ -984,10 +1039,10 @@ function QueueLinkingTab({
984
1039
  }
985
1040
  )
986
1041
  ] }),
987
- /* @__PURE__ */ jsxs(Box, { children: [
988
- /* @__PURE__ */ jsx2(Typography, { sx: labelSx, children: "Description" }),
1042
+ /* @__PURE__ */ jsxs(Box_default, { children: [
1043
+ /* @__PURE__ */ jsx2(Typography_default, { sx: labelSx, children: "Description" }),
989
1044
  /* @__PURE__ */ jsx2(
990
- TextField,
1045
+ TextField_default,
991
1046
  {
992
1047
  fullWidth: true,
993
1048
  size: "small",
@@ -1000,14 +1055,14 @@ function QueueLinkingTab({
1000
1055
  )
1001
1056
  ] })
1002
1057
  ] }),
1003
- /* @__PURE__ */ jsxs(Box, { sx: dialogFooterSx, children: [
1058
+ /* @__PURE__ */ jsxs(Box_default, { sx: dialogFooterSx, children: [
1004
1059
  /* @__PURE__ */ jsx2(SDKButton, { variant: "cancel", onClick: () => setCreateOpen(false), disabled: creatingQueue, children: "Cancel" }),
1005
1060
  /* @__PURE__ */ jsx2(
1006
1061
  SDKButton,
1007
1062
  {
1008
1063
  onClick: handleCreateQueue,
1009
1064
  disabled: creatingQueue,
1010
- startIcon: creatingQueue ? /* @__PURE__ */ jsx2(CircularProgress, { size: 14, color: "inherit" }) : void 0,
1065
+ startIcon: creatingQueue ? /* @__PURE__ */ jsx2(CircularProgress_default, { size: 14, color: "inherit" }) : void 0,
1011
1066
  children: "Create"
1012
1067
  }
1013
1068
  )
@@ -1015,26 +1070,26 @@ function QueueLinkingTab({
1015
1070
  ] })
1016
1071
  }
1017
1072
  ),
1018
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", justifyContent: "space-between", mb: 2 }, children: [
1019
- /* @__PURE__ */ jsx2(Typography, { sx: sectionTitleSx, children: "Linked Queues" }),
1020
- /* @__PURE__ */ jsx2(SDKButton, { startIcon: /* @__PURE__ */ jsx2(AddIcon, {}), onClick: () => setCreateOpen(true), children: "Create New Queue" })
1073
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", justifyContent: "space-between", mb: 2 }, children: [
1074
+ /* @__PURE__ */ jsx2(Typography_default, { sx: sectionTitleSx, children: "Linked Queues" }),
1075
+ /* @__PURE__ */ jsx2(SDKButton, { startIcon: /* @__PURE__ */ jsx2(Add_default, {}), onClick: () => setCreateOpen(true), children: "Create New Queue" })
1021
1076
  ] }),
1022
- /* @__PURE__ */ jsxs(Box, { sx: {
1077
+ /* @__PURE__ */ jsxs(Box_default, { sx: {
1023
1078
  display: "flex",
1024
1079
  alignItems: { xs: "stretch", sm: "center" },
1025
1080
  flexDirection: { xs: "column", sm: "row" },
1026
1081
  gap: 1.5,
1027
1082
  mb: 2
1028
1083
  }, children: [
1029
- /* @__PURE__ */ jsx2(FormControl, { size: "small", sx: { flex: 2 }, children: /* @__PURE__ */ jsx2(
1030
- Select,
1084
+ /* @__PURE__ */ jsx2(FormControl_default, { size: "small", sx: { flex: 2 }, children: /* @__PURE__ */ jsx2(
1085
+ Select_default,
1031
1086
  {
1032
1087
  multiple: true,
1033
1088
  value: selectedQueueIds,
1034
1089
  onChange: (e) => setSelectedQueueIds(e.target.value),
1035
1090
  displayEmpty: true,
1036
- renderValue: (selected) => selected.length === 0 ? /* @__PURE__ */ jsx2(Typography, { sx: { color: "#999", fontSize: "0.85rem" }, children: "Select queues to link" }) : /* @__PURE__ */ jsx2(Box, { sx: { display: "flex", flexWrap: "wrap", gap: 0.5 }, children: selected.map((id) => /* @__PURE__ */ jsx2(
1037
- Chip,
1091
+ renderValue: (selected) => selected.length === 0 ? /* @__PURE__ */ jsx2(Typography_default, { sx: { color: "#999", fontSize: "0.85rem" }, children: "Select queues to link" }) : /* @__PURE__ */ jsx2(Box_default, { sx: { display: "flex", flexWrap: "wrap", gap: 0.5 }, children: selected.map((id) => /* @__PURE__ */ jsx2(
1092
+ Chip_default,
1038
1093
  {
1039
1094
  size: "small",
1040
1095
  label: queueNames[id] || parentQueueNameMap[id] || `Queue #${id}`,
@@ -1050,9 +1105,9 @@ function QueueLinkingTab({
1050
1105
  MenuProps: {
1051
1106
  PaperProps: { sx: { maxHeight: 250, borderRadius: "8px", mt: 0.5, boxShadow: "0 4px 20px rgba(0,0,0,0.12)" } }
1052
1107
  },
1053
- children: availableQueues.length === 0 ? /* @__PURE__ */ jsx2(MenuItem, { value: "", disabled: true, children: "No available queues" }) : availableQueues.map((q) => /* @__PURE__ */ jsxs(MenuItem, { value: q.id, sx: { py: 0.75, px: 1.5, fontSize: "0.85rem" }, children: [
1108
+ children: availableQueues.length === 0 ? /* @__PURE__ */ jsx2(MenuItem_default, { value: "", disabled: true, children: "No available queues" }) : availableQueues.map((q) => /* @__PURE__ */ jsxs(MenuItem_default, { value: q.id, sx: { py: 0.75, px: 1.5, fontSize: "0.85rem" }, children: [
1054
1109
  /* @__PURE__ */ jsx2(
1055
- Checkbox,
1110
+ Checkbox_default,
1056
1111
  {
1057
1112
  size: "small",
1058
1113
  checked: selectedQueueIds.includes(q.id),
@@ -1068,27 +1123,27 @@ function QueueLinkingTab({
1068
1123
  ) }),
1069
1124
  /* @__PURE__ */ jsx2(SDKButton, { onClick: handleAddQueues, disabled: selectedQueueIds.length === 0, sx: { whiteSpace: "nowrap" }, children: "Add To List" })
1070
1125
  ] }),
1071
- queueLinks.length === 0 ? /* @__PURE__ */ jsx2(Paper, { variant: "outlined", sx: { p: 3, textAlign: "center", borderRadius: 2, borderStyle: "dashed" }, children: /* @__PURE__ */ jsx2(Typography, { sx: { color: "#999", fontSize: "0.9rem" }, children: "No queues linked yet. Select queues above to add." }) }) : /* @__PURE__ */ jsx2(TableContainer, { component: Paper, variant: "outlined", sx: { borderRadius: 2, overflow: "visible" }, children: /* @__PURE__ */ jsxs(Table, { size: "small", children: [
1072
- /* @__PURE__ */ jsx2(TableHead, { children: /* @__PURE__ */ jsxs(TableRow, { sx: { backgroundColor: "#f1f1f1" }, children: [
1073
- /* @__PURE__ */ jsx2(TableCell, { sx: headCellSx, children: "Queue Name" }),
1074
- /* @__PURE__ */ jsx2(TableCell, { sx: headCellSx, children: "Priority Override" }),
1075
- /* @__PURE__ */ jsx2(TableCell, { sx: headCellSx, children: "Min Wait Before Callback" }),
1076
- /* @__PURE__ */ jsx2(TableCell, { sx: __spreadProps(__spreadValues({}, headCellSx), { textAlign: "right" }), children: "Action" })
1126
+ queueLinks.length === 0 ? /* @__PURE__ */ jsx2(Paper_default, { variant: "outlined", sx: { p: 3, textAlign: "center", borderRadius: 2, borderStyle: "dashed" }, children: /* @__PURE__ */ jsx2(Typography_default, { sx: { color: "#999", fontSize: "0.9rem" }, children: "No queues linked yet. Select queues above to add." }) }) : /* @__PURE__ */ jsx2(TableContainer_default, { component: Paper_default, variant: "outlined", sx: { borderRadius: 2, overflow: "visible" }, children: /* @__PURE__ */ jsxs(Table_default, { size: "small", children: [
1127
+ /* @__PURE__ */ jsx2(TableHead_default, { children: /* @__PURE__ */ jsxs(TableRow_default, { sx: { backgroundColor: "#f1f1f1" }, children: [
1128
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: headCellSx, children: "Queue Name" }),
1129
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: headCellSx, children: "Priority Override" }),
1130
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: headCellSx, children: "Min Wait Before Callback" }),
1131
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: __spreadProps(__spreadValues({}, headCellSx), { textAlign: "right" }), children: "Action" })
1077
1132
  ] }) }),
1078
- /* @__PURE__ */ jsx2(TableBody, { children: queueLinks.map((q) => {
1133
+ /* @__PURE__ */ jsx2(TableBody_default, { children: queueLinks.map((q) => {
1079
1134
  var _a;
1080
- return /* @__PURE__ */ jsxs(TableRow, { sx: tableRowSx, children: [
1081
- /* @__PURE__ */ jsx2(TableCell, { sx: bodyCellSx, children: queueNames[q.queueId] || parentQueueNameMap[q.queueId] || `Queue #${q.queueId}` }),
1082
- /* @__PURE__ */ jsx2(TableCell, { sx: bodyCellSx, children: /* @__PURE__ */ jsx2(FormControl, { size: "small", sx: { width: 120 }, children: /* @__PURE__ */ jsx2(
1083
- Select,
1135
+ return /* @__PURE__ */ jsxs(TableRow_default, { sx: tableRowSx, children: [
1136
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: bodyCellSx, children: queueNames[q.queueId] || parentQueueNameMap[q.queueId] || `Queue #${q.queueId}` }),
1137
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: bodyCellSx, children: /* @__PURE__ */ jsx2(FormControl_default, { size: "small", sx: { width: 120 }, children: /* @__PURE__ */ jsx2(
1138
+ Select_default,
1084
1139
  {
1085
1140
  value: (_a = q.priorityOverride) != null ? _a : 5,
1086
1141
  onChange: (e) => handleCellUpdate(q.queueId, "priorityOverride", String(e.target.value)),
1087
- children: LEAD_PRIORITY_OPTIONS.map((opt) => /* @__PURE__ */ jsx2(MenuItem, { value: opt.value, children: opt.label }, opt.label))
1142
+ children: LEAD_PRIORITY_OPTIONS.map((opt) => /* @__PURE__ */ jsx2(MenuItem_default, { value: opt.value, children: opt.label }, opt.label))
1088
1143
  }
1089
1144
  ) }) }),
1090
- /* @__PURE__ */ jsx2(TableCell, { sx: bodyCellSx, children: /* @__PURE__ */ jsx2(
1091
- TextField,
1145
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: bodyCellSx, children: /* @__PURE__ */ jsx2(
1146
+ TextField_default,
1092
1147
  {
1093
1148
  size: "small",
1094
1149
  type: "number",
@@ -1097,13 +1152,13 @@ function QueueLinkingTab({
1097
1152
  slotProps: {
1098
1153
  htmlInput: { min: 0, style: { fontSize: "0.85rem", padding: "4px 8px" } },
1099
1154
  input: {
1100
- endAdornment: /* @__PURE__ */ jsx2(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx2(Typography, { sx: { fontSize: "0.75rem", color: "#666" }, children: "s" }) })
1155
+ endAdornment: /* @__PURE__ */ jsx2(InputAdornment_default, { position: "end", children: /* @__PURE__ */ jsx2(Typography_default, { sx: { fontSize: "0.75rem", color: "#666" }, children: "s" }) })
1101
1156
  }
1102
1157
  },
1103
1158
  sx: { width: 100, "& .MuiOutlinedInput-root": { borderRadius: "4px" } }
1104
1159
  }
1105
1160
  ) }),
1106
- /* @__PURE__ */ jsx2(TableCell, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { textAlign: "right" }), children: /* @__PURE__ */ jsx2(SDKButton, { variant: "danger", size: "small", onClick: () => handleRemoveQueue(q.queueId), children: "Remove" }) })
1161
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { textAlign: "right" }), children: /* @__PURE__ */ jsx2(SDKButton, { variant: "danger", size: "small", onClick: () => handleRemoveQueue(q.queueId), children: "Remove" }) })
1107
1162
  ] }, q.queueId);
1108
1163
  }) })
1109
1164
  ] }) })
@@ -1127,7 +1182,7 @@ function LeadsTabInDialog({
1127
1182
  if (editingCampaign) fetchLeads(editingCampaign.id, { page: 1, pageSize: 100 });
1128
1183
  }, [editingCampaign, fetchLeads]);
1129
1184
  if (!editingCampaign) {
1130
- return /* @__PURE__ */ jsx2(Box, { sx: { p: 4, textAlign: "center" }, children: /* @__PURE__ */ jsx2(Typography, { sx: { color: "#999", fontSize: "0.9rem", fontFamily: "poppins, Arial, sans-serif" }, children: "Save the campaign first, then you can add leads." }) });
1185
+ return /* @__PURE__ */ jsx2(Box_default, { sx: { p: 4, textAlign: "center" }, children: /* @__PURE__ */ jsx2(Typography_default, { sx: { color: "#999", fontSize: "0.9rem", fontFamily: "poppins, Arial, sans-serif" }, children: "Save the campaign first, then you can add leads." }) });
1131
1186
  }
1132
1187
  const handleAddLead = async () => {
1133
1188
  var _a2, _b, _c;
@@ -1180,17 +1235,17 @@ function LeadsTabInDialog({
1180
1235
  return !search || ((_a2 = l.callerName) == null ? void 0 : _a2.toLowerCase().includes(search.toLowerCase())) || ((_b = l.phoneNumber) == null ? void 0 : _b.includes(search));
1181
1236
  }
1182
1237
  );
1183
- return /* @__PURE__ */ jsxs(Box, { sx: { p: 2.5 }, children: [
1184
- /* @__PURE__ */ jsx2(Typography, { sx: sectionTitleSx, children: "Add Lead Manually" }),
1185
- /* @__PURE__ */ jsxs(Paper, { variant: "outlined", sx: { p: 2, mb: 2.5, borderRadius: 2 }, children: [
1186
- /* @__PURE__ */ jsxs(Box, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", sm: "1fr 1fr", lg: "1fr 1fr 1fr" }, gap: 2, mb: 2 }, children: [
1187
- /* @__PURE__ */ jsxs(Box, { children: [
1188
- /* @__PURE__ */ jsxs(Typography, { sx: labelSx, children: [
1238
+ return /* @__PURE__ */ jsxs(Box_default, { sx: { p: 2.5 }, children: [
1239
+ /* @__PURE__ */ jsx2(Typography_default, { sx: sectionTitleSx, children: "Add Lead Manually" }),
1240
+ /* @__PURE__ */ jsxs(Paper_default, { variant: "outlined", sx: { p: 2, mb: 2.5, borderRadius: 2 }, children: [
1241
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", sm: "1fr 1fr", lg: "1fr 1fr 1fr" }, gap: 2, mb: 2 }, children: [
1242
+ /* @__PURE__ */ jsxs(Box_default, { children: [
1243
+ /* @__PURE__ */ jsxs(Typography_default, { sx: labelSx, children: [
1189
1244
  "Phone Number ",
1190
1245
  /* @__PURE__ */ jsx2("span", { style: { color: "red" }, children: "*" })
1191
1246
  ] }),
1192
1247
  /* @__PURE__ */ jsx2(
1193
- TextField,
1248
+ TextField_default,
1194
1249
  {
1195
1250
  fullWidth: true,
1196
1251
  size: "small",
@@ -1203,10 +1258,10 @@ function LeadsTabInDialog({
1203
1258
  }
1204
1259
  )
1205
1260
  ] }),
1206
- /* @__PURE__ */ jsxs(Box, { children: [
1207
- /* @__PURE__ */ jsx2(Typography, { sx: labelSx, children: "Caller Name" }),
1261
+ /* @__PURE__ */ jsxs(Box_default, { children: [
1262
+ /* @__PURE__ */ jsx2(Typography_default, { sx: labelSx, children: "Caller Name" }),
1208
1263
  /* @__PURE__ */ jsx2(
1209
- TextField,
1264
+ TextField_default,
1210
1265
  {
1211
1266
  fullWidth: true,
1212
1267
  size: "small",
@@ -1216,10 +1271,10 @@ function LeadsTabInDialog({
1216
1271
  }
1217
1272
  )
1218
1273
  ] }),
1219
- /* @__PURE__ */ jsxs(Box, { children: [
1220
- /* @__PURE__ */ jsx2(Typography, { sx: labelSx, children: "Source" }),
1274
+ /* @__PURE__ */ jsxs(Box_default, { children: [
1275
+ /* @__PURE__ */ jsx2(Typography_default, { sx: labelSx, children: "Source" }),
1221
1276
  /* @__PURE__ */ jsx2(
1222
- TextField,
1277
+ TextField_default,
1223
1278
  {
1224
1279
  fullWidth: true,
1225
1280
  size: "small",
@@ -1229,21 +1284,21 @@ function LeadsTabInDialog({
1229
1284
  }
1230
1285
  )
1231
1286
  ] }),
1232
- /* @__PURE__ */ jsxs(Box, { children: [
1233
- /* @__PURE__ */ jsx2(Typography, { sx: labelSx, children: "Priority" }),
1234
- /* @__PURE__ */ jsx2(FormControl, { fullWidth: true, size: "small", children: /* @__PURE__ */ jsx2(
1235
- Select,
1287
+ /* @__PURE__ */ jsxs(Box_default, { children: [
1288
+ /* @__PURE__ */ jsx2(Typography_default, { sx: labelSx, children: "Priority" }),
1289
+ /* @__PURE__ */ jsx2(FormControl_default, { fullWidth: true, size: "small", children: /* @__PURE__ */ jsx2(
1290
+ Select_default,
1236
1291
  {
1237
1292
  value: (_a = leadForm.priority) != null ? _a : 5,
1238
1293
  onChange: (e) => setLeadForm((p) => __spreadProps(__spreadValues({}, p), { priority: Number(e.target.value) })),
1239
- children: LEAD_PRIORITY_OPTIONS.map((opt) => /* @__PURE__ */ jsx2(MenuItem, { value: opt.value, children: opt.label }, opt.label))
1294
+ children: LEAD_PRIORITY_OPTIONS.map((opt) => /* @__PURE__ */ jsx2(MenuItem_default, { value: opt.value, children: opt.label }, opt.label))
1240
1295
  }
1241
1296
  ) })
1242
1297
  ] }),
1243
- /* @__PURE__ */ jsxs(Box, { sx: { gridColumn: "1 / -1" }, children: [
1244
- /* @__PURE__ */ jsx2(Typography, { sx: labelSx, children: "Notes" }),
1298
+ /* @__PURE__ */ jsxs(Box_default, { sx: { gridColumn: "1 / -1" }, children: [
1299
+ /* @__PURE__ */ jsx2(Typography_default, { sx: labelSx, children: "Notes" }),
1245
1300
  /* @__PURE__ */ jsx2(
1246
- TextField,
1301
+ TextField_default,
1247
1302
  {
1248
1303
  fullWidth: true,
1249
1304
  size: "small",
@@ -1257,20 +1312,20 @@ function LeadsTabInDialog({
1257
1312
  )
1258
1313
  ] })
1259
1314
  ] }),
1260
- /* @__PURE__ */ jsx2(Box, { sx: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ jsx2(
1315
+ /* @__PURE__ */ jsx2(Box_default, { sx: { display: "flex", justifyContent: "flex-end" }, children: /* @__PURE__ */ jsx2(
1261
1316
  SDKButton,
1262
1317
  {
1263
1318
  onClick: handleAddLead,
1264
1319
  disabled: adding,
1265
- startIcon: adding ? /* @__PURE__ */ jsx2(CircularProgress, { size: 14, color: "inherit" }) : void 0,
1320
+ startIcon: adding ? /* @__PURE__ */ jsx2(CircularProgress_default, { size: 14, color: "inherit" }) : void 0,
1266
1321
  children: "Add Lead"
1267
1322
  }
1268
1323
  ) })
1269
1324
  ] }),
1270
- /* @__PURE__ */ jsx2(Typography, { sx: sectionTitleSx, children: "Upload Leads from File" }),
1271
- /* @__PURE__ */ jsxs(Paper, { variant: "outlined", sx: { p: 2, mb: 2.5, borderRadius: 2 }, children: [
1272
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 1.5, flexWrap: "wrap" }, children: [
1273
- /* @__PURE__ */ jsx2(SDKButton, { variant: "outlined", startIcon: /* @__PURE__ */ jsx2(UploadFileIcon, {}), onClick: () => {
1325
+ /* @__PURE__ */ jsx2(Typography_default, { sx: sectionTitleSx, children: "Upload Leads from File" }),
1326
+ /* @__PURE__ */ jsxs(Paper_default, { variant: "outlined", sx: { p: 2, mb: 2.5, borderRadius: 2 }, children: [
1327
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: 1.5, flexWrap: "wrap" }, children: [
1328
+ /* @__PURE__ */ jsx2(SDKButton, { variant: "outlined", startIcon: /* @__PURE__ */ jsx2(UploadFile_default, {}), onClick: () => {
1274
1329
  var _a2;
1275
1330
  return (_a2 = uploadRef.current) == null ? void 0 : _a2.click();
1276
1331
  }, children: "Choose File" }),
@@ -1293,7 +1348,7 @@ function LeadsTabInDialog({
1293
1348
  }
1294
1349
  }
1295
1350
  ),
1296
- /* @__PURE__ */ jsx2(Typography, { sx: { fontSize: "0.82rem", color: "#666", flex: 1, fontFamily: "poppins, Arial, sans-serif" }, children: uploadFile ? uploadFile.name : "No file chosen" }),
1351
+ /* @__PURE__ */ jsx2(Typography_default, { sx: { fontSize: "0.82rem", color: "#666", flex: 1, fontFamily: "poppins, Arial, sans-serif" }, children: uploadFile ? uploadFile.name : "No file chosen" }),
1297
1352
  uploadFile && /* @__PURE__ */ jsx2(
1298
1353
  SDKButton,
1299
1354
  {
@@ -1306,58 +1361,58 @@ function LeadsTabInDialog({
1306
1361
  children: "Clear"
1307
1362
  }
1308
1363
  ),
1309
- /* @__PURE__ */ jsx2(SDKButton, { variant: "outlined", startIcon: /* @__PURE__ */ jsx2(DownloadIcon, {}), onClick: handleDownload, children: "Sample Template" })
1364
+ /* @__PURE__ */ jsx2(SDKButton, { variant: "outlined", startIcon: /* @__PURE__ */ jsx2(Download_default, {}), onClick: handleDownload, children: "Sample Template" })
1310
1365
  ] }),
1311
- /* @__PURE__ */ jsx2(Box, { sx: { display: "flex", justifyContent: "flex-end", mt: 1.5 }, children: /* @__PURE__ */ jsx2(
1366
+ /* @__PURE__ */ jsx2(Box_default, { sx: { display: "flex", justifyContent: "flex-end", mt: 1.5 }, children: /* @__PURE__ */ jsx2(
1312
1367
  SDKButton,
1313
1368
  {
1314
1369
  onClick: handleUpload,
1315
1370
  disabled: uploading || !uploadFile,
1316
- startIcon: uploading ? /* @__PURE__ */ jsx2(CircularProgress, { size: 14, color: "inherit" }) : void 0,
1371
+ startIcon: uploading ? /* @__PURE__ */ jsx2(CircularProgress_default, { size: 14, color: "inherit" }) : void 0,
1317
1372
  children: "Upload"
1318
1373
  }
1319
1374
  ) })
1320
1375
  ] }),
1321
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", justifyContent: "space-between", mb: 1.5 }, children: [
1322
- /* @__PURE__ */ jsxs(Typography, { sx: sectionTitleSx, children: [
1376
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", justifyContent: "space-between", mb: 1.5 }, children: [
1377
+ /* @__PURE__ */ jsxs(Typography_default, { sx: sectionTitleSx, children: [
1323
1378
  "Leads (",
1324
1379
  leads.length,
1325
1380
  ")"
1326
1381
  ] }),
1327
1382
  /* @__PURE__ */ jsx2(
1328
- OutlinedInput,
1383
+ OutlinedInput_default,
1329
1384
  {
1330
1385
  size: "small",
1331
1386
  value: search,
1332
1387
  onChange: (e) => setSearch(e.target.value),
1333
1388
  placeholder: "Search...",
1334
1389
  sx: { width: 200, fontSize: "0.85rem", height: 34, borderRadius: "20px" },
1335
- startAdornment: /* @__PURE__ */ jsx2(InputAdornment, { position: "start", children: /* @__PURE__ */ jsx2(SearchIcon, { sx: { fontSize: 16, color: "#aaa" } }) })
1390
+ startAdornment: /* @__PURE__ */ jsx2(InputAdornment_default, { position: "start", children: /* @__PURE__ */ jsx2(Search_default, { sx: { fontSize: 16, color: "#aaa" } }) })
1336
1391
  }
1337
1392
  )
1338
1393
  ] }),
1339
- filtered.length === 0 ? /* @__PURE__ */ jsx2(Paper, { variant: "outlined", sx: { p: 3, textAlign: "center", borderRadius: 2, borderStyle: "dashed" }, children: /* @__PURE__ */ jsx2(Typography, { sx: { color: "#999", fontSize: "0.9rem" }, children: leads.length === 0 ? "No leads yet." : "No leads match your search." }) }) : /* @__PURE__ */ jsx2(TableContainer, { component: Paper, variant: "outlined", sx: { borderRadius: 2, overflow: "visible" }, children: /* @__PURE__ */ jsxs(Table, { size: "small", children: [
1340
- /* @__PURE__ */ jsx2(TableHead, { children: /* @__PURE__ */ jsxs(TableRow, { sx: { backgroundColor: "#f1f1f1" }, children: [
1341
- /* @__PURE__ */ jsx2(TableCell, { sx: headCellSx, children: "Phone Number" }),
1342
- /* @__PURE__ */ jsx2(TableCell, { sx: headCellSx, children: "Status" }),
1343
- /* @__PURE__ */ jsx2(TableCell, { sx: headCellSx, children: "Source" }),
1344
- /* @__PURE__ */ jsx2(TableCell, { sx: headCellSx, children: "Attempts" }),
1345
- /* @__PURE__ */ jsx2(TableCell, { sx: headCellSx, children: "Last Outcome" }),
1346
- /* @__PURE__ */ jsx2(TableCell, { sx: headCellSx, children: "Notes" }),
1347
- /* @__PURE__ */ jsx2(TableCell, { sx: headCellSx, children: "Outcome" }),
1348
- showVoicemail && /* @__PURE__ */ jsx2(TableCell, { sx: headCellSx, children: "Voice Mail" })
1394
+ filtered.length === 0 ? /* @__PURE__ */ jsx2(Paper_default, { variant: "outlined", sx: { p: 3, textAlign: "center", borderRadius: 2, borderStyle: "dashed" }, children: /* @__PURE__ */ jsx2(Typography_default, { sx: { color: "#999", fontSize: "0.9rem" }, children: leads.length === 0 ? "No leads yet." : "No leads match your search." }) }) : /* @__PURE__ */ jsx2(TableContainer_default, { component: Paper_default, variant: "outlined", sx: { borderRadius: 2, overflow: "visible" }, children: /* @__PURE__ */ jsxs(Table_default, { size: "small", children: [
1395
+ /* @__PURE__ */ jsx2(TableHead_default, { children: /* @__PURE__ */ jsxs(TableRow_default, { sx: { backgroundColor: "#f1f1f1" }, children: [
1396
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: headCellSx, children: "Phone Number" }),
1397
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: headCellSx, children: "Status" }),
1398
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: headCellSx, children: "Source" }),
1399
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: headCellSx, children: "Attempts" }),
1400
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: headCellSx, children: "Last Outcome" }),
1401
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: headCellSx, children: "Notes" }),
1402
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: headCellSx, children: "Outcome" }),
1403
+ showVoicemail && /* @__PURE__ */ jsx2(TableCell_default, { sx: headCellSx, children: "Voice Mail" })
1349
1404
  ] }) }),
1350
- /* @__PURE__ */ jsx2(TableBody, { children: filtered.map((lead) => {
1405
+ /* @__PURE__ */ jsx2(TableBody_default, { children: filtered.map((lead) => {
1351
1406
  var _a2;
1352
- return /* @__PURE__ */ jsxs(TableRow, { sx: tableRowSx, children: [
1353
- /* @__PURE__ */ jsx2(TableCell, { sx: bodyCellSx, children: lead.phoneNumber }),
1354
- /* @__PURE__ */ jsx2(TableCell, { sx: bodyCellSx, children: /* @__PURE__ */ jsx2(Chip, { label: lead.status || "pending", size: "small", sx: leadStatusChipSx(lead.status) }) }),
1355
- /* @__PURE__ */ jsx2(TableCell, { sx: bodyCellSx, children: lead.source || "" }),
1356
- /* @__PURE__ */ jsx2(TableCell, { sx: bodyCellSx, children: (_a2 = lead.attemptCount) != null ? _a2 : 0 }),
1357
- /* @__PURE__ */ jsx2(TableCell, { sx: bodyCellSx, children: lead.lastOutcome || "" }),
1358
- /* @__PURE__ */ jsx2(TableCell, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { maxWidth: 200, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }), children: lead.notes ? /* @__PURE__ */ jsx2(Tooltip, { title: lead.notes, arrow: true, placement: "top", children: /* @__PURE__ */ jsx2("span", { children: lead.notes }) }) : "" }),
1359
- /* @__PURE__ */ jsx2(TableCell, { sx: bodyCellSx, children: lead.lastReason || "" }),
1360
- showVoicemail && /* @__PURE__ */ jsx2(TableCell, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { minWidth: 180 }), children: lead.originalCallId ? /* @__PURE__ */ jsx2(CallRecording, { callUuid: lead.originalCallId, recordingPath: lead.voicemail, iconOnly: true }) : "" })
1407
+ return /* @__PURE__ */ jsxs(TableRow_default, { sx: tableRowSx, children: [
1408
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: bodyCellSx, children: lead.phoneNumber }),
1409
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: bodyCellSx, children: /* @__PURE__ */ jsx2(Chip_default, { label: lead.status || "pending", size: "small", sx: leadStatusChipSx(lead.status) }) }),
1410
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: bodyCellSx, children: lead.source || "" }),
1411
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: bodyCellSx, children: (_a2 = lead.attemptCount) != null ? _a2 : 0 }),
1412
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: bodyCellSx, children: lead.lastOutcome || "" }),
1413
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { maxWidth: 200, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }), children: lead.notes ? /* @__PURE__ */ jsx2(Tooltip_default, { title: lead.notes, arrow: true, placement: "top", children: /* @__PURE__ */ jsx2("span", { children: lead.notes }) }) : "" }),
1414
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: bodyCellSx, children: lead.lastReason || "" }),
1415
+ showVoicemail && /* @__PURE__ */ jsx2(TableCell_default, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { minWidth: 180 }), children: lead.originalCallId ? /* @__PURE__ */ jsx2(CallRecording, { callUuid: lead.originalCallId, recordingPath: lead.voicemail, iconOnly: true }) : "" })
1361
1416
  ] }, lead.id);
1362
1417
  }) })
1363
1418
  ] }) })
@@ -1428,7 +1483,7 @@ var CampaignDialog = memo(function CampaignDialog2({
1428
1483
  setTab(newTab);
1429
1484
  };
1430
1485
  return /* @__PURE__ */ jsx2(
1431
- Box,
1486
+ Box_default,
1432
1487
  {
1433
1488
  sx: {
1434
1489
  position: "fixed",
@@ -1441,7 +1496,7 @@ var CampaignDialog = memo(function CampaignDialog2({
1441
1496
  },
1442
1497
  onClick: (e) => e.stopPropagation(),
1443
1498
  children: /* @__PURE__ */ jsxs(
1444
- Paper,
1499
+ Paper_default,
1445
1500
  {
1446
1501
  elevation: 6,
1447
1502
  sx: {
@@ -1454,16 +1509,16 @@ var CampaignDialog = memo(function CampaignDialog2({
1454
1509
  boxShadow: "0 8px 32px rgba(26,95,108,0.18)"
1455
1510
  },
1456
1511
  children: [
1457
- /* @__PURE__ */ jsxs(Box, { sx: __spreadProps(__spreadValues({}, dialogHeaderSx), {
1512
+ /* @__PURE__ */ jsxs(Box_default, { sx: __spreadProps(__spreadValues({}, dialogHeaderSx), {
1458
1513
  backgroundColor: "#1A5F6C",
1459
1514
  color: "#fff",
1460
1515
  "& .MuiIconButton-root": { color: "#fff" }
1461
1516
  }), children: [
1462
- /* @__PURE__ */ jsx2(Typography, { fontWeight: 700, fontSize: "1rem", fontFamily: "poppins, Arial, sans-serif", children: editingCampaign ? "Edit Campaign" : "Create Campaign" }),
1463
- /* @__PURE__ */ jsx2(IconButton, { size: "small", onClick: onClose, sx: { color: "#fff" }, children: "\u2715" })
1517
+ /* @__PURE__ */ jsx2(Typography_default, { fontWeight: 700, fontSize: "1rem", fontFamily: "poppins, Arial, sans-serif", children: editingCampaign ? "Edit Campaign" : "Create Campaign" }),
1518
+ /* @__PURE__ */ jsx2(IconButton_default, { size: "small", onClick: onClose, sx: { color: "#fff" }, children: "\u2715" })
1464
1519
  ] }),
1465
1520
  /* @__PURE__ */ jsx2(
1466
- Tabs,
1521
+ Tabs_default,
1467
1522
  {
1468
1523
  value: tab,
1469
1524
  onChange: (_, v) => handleTabChange(v),
@@ -1482,10 +1537,10 @@ var CampaignDialog = memo(function CampaignDialog2({
1482
1537
  "& .Mui-selected": { color: "#1A5F6C" }
1483
1538
  },
1484
1539
  TabIndicatorProps: { style: { height: 3, backgroundColor: "#1A5F6C", borderRadius: "3px 3px 0 0" } },
1485
- children: TAB_LABELS.map((label, i) => /* @__PURE__ */ jsx2(Tab, { label, value: i, disabled: i === 4 && leadsTabDisabled }, label))
1540
+ children: TAB_LABELS.map((label, i) => /* @__PURE__ */ jsx2(Tab_default, { label, value: i, disabled: i === 4 && leadsTabDisabled }, label))
1486
1541
  }
1487
1542
  ),
1488
- /* @__PURE__ */ jsxs(Box, { sx: { flex: 1, overflowY: "auto", minHeight: 380 }, children: [
1543
+ /* @__PURE__ */ jsxs(Box_default, { sx: { flex: 1, overflowY: "auto", minHeight: 380 }, children: [
1489
1544
  tab === 0 && /* @__PURE__ */ jsx2(BasicInfoTab, { formData, setFormData, isEditMode: !!editingCampaign }),
1490
1545
  tab === 1 && /* @__PURE__ */ jsx2(DialingConfigTab, { formData, setFormData }),
1491
1546
  tab === 2 && /* @__PURE__ */ jsx2(ScheduleTab, { formData, setFormData }),
@@ -1507,7 +1562,7 @@ var CampaignDialog = memo(function CampaignDialog2({
1507
1562
  }
1508
1563
  )
1509
1564
  ] }),
1510
- /* @__PURE__ */ jsxs(Box, { sx: dialogFooterSx, children: [
1565
+ /* @__PURE__ */ jsxs(Box_default, { sx: dialogFooterSx, children: [
1511
1566
  /* @__PURE__ */ jsx2(SDKButton, { variant: "cancel", onClick: onClose, children: "Cancel" }),
1512
1567
  tab > 0 && /* @__PURE__ */ jsx2(SDKButton, { variant: "outlined", onClick: () => setTab((t) => t - 1), children: "Back" }),
1513
1568
  tab < lastSaveTab && /* @__PURE__ */ jsx2(SDKButton, { onClick: () => handleTabChange(tab + 1), children: "Next" }),
@@ -1524,7 +1579,7 @@ var CampaignDialog = memo(function CampaignDialog2({
1524
1579
  {
1525
1580
  onClick: onSave,
1526
1581
  disabled: saving || !isDirty,
1527
- startIcon: saving ? /* @__PURE__ */ jsx2(CircularProgress, { size: 14, color: "inherit" }) : void 0,
1582
+ startIcon: saving ? /* @__PURE__ */ jsx2(CircularProgress_default, { size: 14, color: "inherit" }) : void 0,
1528
1583
  children: editingCampaign ? "Update" : "Create"
1529
1584
  }
1530
1585
  )
@@ -1549,7 +1604,7 @@ var AddLeadDialog = memo(function AddLeadDialog2({
1549
1604
  if (!open) return null;
1550
1605
  const phoneError = data.phoneNumber ? validatePhone(data.phoneNumber) : null;
1551
1606
  return /* @__PURE__ */ jsx2(
1552
- Box,
1607
+ Box_default,
1553
1608
  {
1554
1609
  sx: {
1555
1610
  position: "fixed",
@@ -1561,19 +1616,19 @@ var AddLeadDialog = memo(function AddLeadDialog2({
1561
1616
  justifyContent: "center"
1562
1617
  },
1563
1618
  onClick: (e) => e.stopPropagation(),
1564
- children: /* @__PURE__ */ jsxs(Paper, { elevation: 6, sx: { width: { xs: "95vw", sm: 560, lg: 720 }, borderRadius: "16px", overflow: "hidden", boxShadow: "0 8px 32px rgba(26,95,108,0.18)" }, children: [
1565
- /* @__PURE__ */ jsxs(Box, { sx: __spreadProps(__spreadValues({}, dialogHeaderSx), { backgroundColor: "#1A5F6C", color: "#fff" }), children: [
1566
- /* @__PURE__ */ jsx2(Typography, { fontWeight: 700, fontSize: "1rem", fontFamily: "poppins, Arial, sans-serif", children: "Add Lead" }),
1567
- /* @__PURE__ */ jsx2(IconButton, { size: "small", onClick: onClose, sx: { color: "#fff" }, children: "\u2715" })
1619
+ children: /* @__PURE__ */ jsxs(Paper_default, { elevation: 6, sx: { width: { xs: "95vw", sm: 560, lg: 720 }, borderRadius: "16px", overflow: "hidden", boxShadow: "0 8px 32px rgba(26,95,108,0.18)" }, children: [
1620
+ /* @__PURE__ */ jsxs(Box_default, { sx: __spreadProps(__spreadValues({}, dialogHeaderSx), { backgroundColor: "#1A5F6C", color: "#fff" }), children: [
1621
+ /* @__PURE__ */ jsx2(Typography_default, { fontWeight: 700, fontSize: "1rem", fontFamily: "poppins, Arial, sans-serif", children: "Add Lead" }),
1622
+ /* @__PURE__ */ jsx2(IconButton_default, { size: "small", onClick: onClose, sx: { color: "#fff" }, children: "\u2715" })
1568
1623
  ] }),
1569
- /* @__PURE__ */ jsx2(Box, { sx: { p: 2.5 }, children: /* @__PURE__ */ jsxs(Box, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", sm: "1fr 1fr", lg: "1fr 1fr 1fr" }, gap: 2 }, children: [
1570
- /* @__PURE__ */ jsxs(Box, { children: [
1571
- /* @__PURE__ */ jsxs(Typography, { sx: labelSx, children: [
1624
+ /* @__PURE__ */ jsx2(Box_default, { sx: { p: 2.5 }, children: /* @__PURE__ */ jsxs(Box_default, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", sm: "1fr 1fr", lg: "1fr 1fr 1fr" }, gap: 2 }, children: [
1625
+ /* @__PURE__ */ jsxs(Box_default, { children: [
1626
+ /* @__PURE__ */ jsxs(Typography_default, { sx: labelSx, children: [
1572
1627
  "Phone Number ",
1573
1628
  /* @__PURE__ */ jsx2("span", { style: { color: "red" }, children: "*" })
1574
1629
  ] }),
1575
1630
  /* @__PURE__ */ jsx2(
1576
- TextField,
1631
+ TextField_default,
1577
1632
  {
1578
1633
  fullWidth: true,
1579
1634
  size: "small",
@@ -1586,10 +1641,10 @@ var AddLeadDialog = memo(function AddLeadDialog2({
1586
1641
  }
1587
1642
  )
1588
1643
  ] }),
1589
- /* @__PURE__ */ jsxs(Box, { children: [
1590
- /* @__PURE__ */ jsx2(Typography, { sx: labelSx, children: "Caller Name" }),
1644
+ /* @__PURE__ */ jsxs(Box_default, { children: [
1645
+ /* @__PURE__ */ jsx2(Typography_default, { sx: labelSx, children: "Caller Name" }),
1591
1646
  /* @__PURE__ */ jsx2(
1592
- TextField,
1647
+ TextField_default,
1593
1648
  {
1594
1649
  fullWidth: true,
1595
1650
  size: "small",
@@ -1599,10 +1654,10 @@ var AddLeadDialog = memo(function AddLeadDialog2({
1599
1654
  }
1600
1655
  )
1601
1656
  ] }),
1602
- /* @__PURE__ */ jsxs(Box, { children: [
1603
- /* @__PURE__ */ jsx2(Typography, { sx: labelSx, children: "Source" }),
1657
+ /* @__PURE__ */ jsxs(Box_default, { children: [
1658
+ /* @__PURE__ */ jsx2(Typography_default, { sx: labelSx, children: "Source" }),
1604
1659
  /* @__PURE__ */ jsx2(
1605
- TextField,
1660
+ TextField_default,
1606
1661
  {
1607
1662
  fullWidth: true,
1608
1663
  size: "small",
@@ -1612,21 +1667,21 @@ var AddLeadDialog = memo(function AddLeadDialog2({
1612
1667
  }
1613
1668
  )
1614
1669
  ] }),
1615
- /* @__PURE__ */ jsxs(Box, { children: [
1616
- /* @__PURE__ */ jsx2(Typography, { sx: labelSx, children: "Priority" }),
1617
- /* @__PURE__ */ jsx2(FormControl, { fullWidth: true, size: "small", children: /* @__PURE__ */ jsx2(
1618
- Select,
1670
+ /* @__PURE__ */ jsxs(Box_default, { children: [
1671
+ /* @__PURE__ */ jsx2(Typography_default, { sx: labelSx, children: "Priority" }),
1672
+ /* @__PURE__ */ jsx2(FormControl_default, { fullWidth: true, size: "small", children: /* @__PURE__ */ jsx2(
1673
+ Select_default,
1619
1674
  {
1620
1675
  value: (_a = data.priority) != null ? _a : 5,
1621
1676
  onChange: (e) => onChange(__spreadProps(__spreadValues({}, data), { priority: Number(e.target.value) })),
1622
- children: LEAD_PRIORITY_OPTIONS.map((o) => /* @__PURE__ */ jsx2(MenuItem, { value: o.value, children: o.label }, o.label))
1677
+ children: LEAD_PRIORITY_OPTIONS.map((o) => /* @__PURE__ */ jsx2(MenuItem_default, { value: o.value, children: o.label }, o.label))
1623
1678
  }
1624
1679
  ) })
1625
1680
  ] }),
1626
- /* @__PURE__ */ jsxs(Box, { sx: { gridColumn: "1 / -1" }, children: [
1627
- /* @__PURE__ */ jsx2(Typography, { sx: labelSx, children: "Notes" }),
1681
+ /* @__PURE__ */ jsxs(Box_default, { sx: { gridColumn: "1 / -1" }, children: [
1682
+ /* @__PURE__ */ jsx2(Typography_default, { sx: labelSx, children: "Notes" }),
1628
1683
  /* @__PURE__ */ jsx2(
1629
- TextField,
1684
+ TextField_default,
1630
1685
  {
1631
1686
  fullWidth: true,
1632
1687
  size: "small",
@@ -1640,14 +1695,14 @@ var AddLeadDialog = memo(function AddLeadDialog2({
1640
1695
  )
1641
1696
  ] })
1642
1697
  ] }) }),
1643
- /* @__PURE__ */ jsxs(Box, { sx: dialogFooterSx, children: [
1698
+ /* @__PURE__ */ jsxs(Box_default, { sx: dialogFooterSx, children: [
1644
1699
  /* @__PURE__ */ jsx2(SDKButton, { variant: "cancel", onClick: onClose, children: "Cancel" }),
1645
1700
  /* @__PURE__ */ jsx2(
1646
1701
  SDKButton,
1647
1702
  {
1648
1703
  onClick: onSave,
1649
1704
  disabled: saving,
1650
- startIcon: saving ? /* @__PURE__ */ jsx2(CircularProgress, { size: 14, color: "inherit" }) : void 0,
1705
+ startIcon: saving ? /* @__PURE__ */ jsx2(CircularProgress_default, { size: 14, color: "inherit" }) : void 0,
1651
1706
  children: "Add Lead"
1652
1707
  }
1653
1708
  )
@@ -1666,17 +1721,17 @@ function ConfirmDialog({
1666
1721
  }) {
1667
1722
  if (!open) return null;
1668
1723
  return /* @__PURE__ */ jsx2(
1669
- Box,
1724
+ Box_default,
1670
1725
  {
1671
1726
  sx: { position: "fixed", inset: 0, zIndex: 1500, backgroundColor: "rgba(0,0,0,0.45)", display: "flex", alignItems: "center", justifyContent: "center" },
1672
1727
  onClick: (e) => e.stopPropagation(),
1673
- children: /* @__PURE__ */ jsxs(Paper, { elevation: 6, sx: { width: { xs: "90vw", sm: 400 }, borderRadius: "16px", overflow: "hidden", boxShadow: "0 8px 32px rgba(0,0,0,0.18)" }, children: [
1674
- /* @__PURE__ */ jsxs(Box, { sx: __spreadProps(__spreadValues({}, dialogHeaderSx), { borderBottom: "none", pb: 0 }), children: [
1675
- /* @__PURE__ */ jsx2(Typography, { fontWeight: 700, fontSize: "1rem", fontFamily: "poppins, Arial, sans-serif", children: title }),
1676
- /* @__PURE__ */ jsx2(IconButton, { size: "small", onClick: onClose, children: "\u2715" })
1728
+ children: /* @__PURE__ */ jsxs(Paper_default, { elevation: 6, sx: { width: { xs: "90vw", sm: 400 }, borderRadius: "16px", overflow: "hidden", boxShadow: "0 8px 32px rgba(0,0,0,0.18)" }, children: [
1729
+ /* @__PURE__ */ jsxs(Box_default, { sx: __spreadProps(__spreadValues({}, dialogHeaderSx), { borderBottom: "none", pb: 0 }), children: [
1730
+ /* @__PURE__ */ jsx2(Typography_default, { fontWeight: 700, fontSize: "1rem", fontFamily: "poppins, Arial, sans-serif", children: title }),
1731
+ /* @__PURE__ */ jsx2(IconButton_default, { size: "small", onClick: onClose, children: "\u2715" })
1677
1732
  ] }),
1678
- /* @__PURE__ */ jsx2(Box, { sx: { px: 2.5, py: 1.5 }, children: /* @__PURE__ */ jsx2(Typography, { fontSize: "0.85rem", color: "#555", fontFamily: "poppins, Arial, sans-serif", children: message }) }),
1679
- /* @__PURE__ */ jsxs(Box, { sx: dialogFooterSx, children: [
1733
+ /* @__PURE__ */ jsx2(Box_default, { sx: { px: 2.5, py: 1.5 }, children: /* @__PURE__ */ jsx2(Typography_default, { fontSize: "0.85rem", color: "#555", fontFamily: "poppins, Arial, sans-serif", children: message }) }),
1734
+ /* @__PURE__ */ jsxs(Box_default, { sx: dialogFooterSx, children: [
1680
1735
  /* @__PURE__ */ jsx2(SDKButton, { variant: "cancel", onClick: onClose, children: "Cancel" }),
1681
1736
  /* @__PURE__ */ jsx2(
1682
1737
  SDKButton,
@@ -1684,7 +1739,7 @@ function ConfirmDialog({
1684
1739
  variant: "danger",
1685
1740
  onClick: onConfirm,
1686
1741
  disabled: loading,
1687
- startIcon: loading ? /* @__PURE__ */ jsx2(CircularProgress, { size: 14, color: "inherit" }) : void 0,
1742
+ startIcon: loading ? /* @__PURE__ */ jsx2(CircularProgress_default, { size: 14, color: "inherit" }) : void 0,
1688
1743
  children: "Confirm"
1689
1744
  }
1690
1745
  )
@@ -1756,7 +1811,7 @@ function CallRecording({ callUuid, recordingPath, iconOnly = false }) {
1756
1811
  };
1757
1812
  if (iconOnly) {
1758
1813
  if (audioUrl) {
1759
- return /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
1814
+ return /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
1760
1815
  /* @__PURE__ */ jsx2(
1761
1816
  "audio",
1762
1817
  {
@@ -1769,28 +1824,28 @@ function CallRecording({ callUuid, recordingPath, iconOnly = false }) {
1769
1824
  style: { height: 32, maxWidth: 170 }
1770
1825
  }
1771
1826
  ),
1772
- totalLabel && /* @__PURE__ */ jsxs(Typography, { sx: { fontSize: 12, fontWeight: 600, color: "#1A5F6C", whiteSpace: "nowrap" }, children: [
1827
+ totalLabel && /* @__PURE__ */ jsxs(Typography_default, { sx: { fontSize: 12, fontWeight: 600, color: "#1A5F6C", whiteSpace: "nowrap" }, children: [
1773
1828
  fmtRecordingDuration(currentSec),
1774
1829
  " / ",
1775
1830
  totalLabel
1776
1831
  ] }),
1777
- /* @__PURE__ */ jsx2(Tooltip, { title: "Download", children: /* @__PURE__ */ jsx2(IconButton, { size: "small", onClick: handleDownload, sx: { color: "#1565c0" }, children: /* @__PURE__ */ jsx2(DownloadIcon, { sx: { fontSize: 16 } }) }) })
1832
+ /* @__PURE__ */ jsx2(Tooltip_default, { title: "Download", children: /* @__PURE__ */ jsx2(IconButton_default, { size: "small", onClick: handleDownload, sx: { color: "#1565c0" }, children: /* @__PURE__ */ jsx2(Download_default, { sx: { fontSize: 16 } }) }) })
1778
1833
  ] });
1779
1834
  }
1780
- return /* @__PURE__ */ jsx2(Tooltip, { title: unavailable ? "No recording available for this call." : error ? "Recording unavailable" : "Play voicemail", children: /* @__PURE__ */ jsx2("span", { children: /* @__PURE__ */ jsx2(IconButton, { size: "small", onClick: handlePlay, disabled: unavailable || loading || error, sx: { color: unavailable ? "#bdbdbd" : "#1A5F6C" }, children: loading ? /* @__PURE__ */ jsx2(CircularProgress, { size: 16, color: "inherit" }) : /* @__PURE__ */ jsx2(PlayArrowIcon, { sx: { fontSize: 18 } }) }) }) });
1835
+ return /* @__PURE__ */ jsx2(Tooltip_default, { title: unavailable ? "No recording available for this call." : error ? "Recording unavailable" : "Play voicemail", children: /* @__PURE__ */ jsx2("span", { children: /* @__PURE__ */ jsx2(IconButton_default, { size: "small", onClick: handlePlay, disabled: unavailable || loading || error, sx: { color: unavailable ? "#bdbdbd" : "#1A5F6C" }, children: loading ? /* @__PURE__ */ jsx2(CircularProgress_default, { size: 16, color: "inherit" }) : /* @__PURE__ */ jsx2(PlayArrow_default, { sx: { fontSize: 18 } }) }) }) });
1781
1836
  }
1782
1837
  if (unavailable) {
1783
- return /* @__PURE__ */ jsx2(Typography, { sx: { fontSize: "0.82rem", color: "#999" }, fontFamily: "poppins, Arial, sans-serif", children: "No recording available for this call." });
1838
+ return /* @__PURE__ */ jsx2(Typography_default, { sx: { fontSize: "0.82rem", color: "#999" }, fontFamily: "poppins, Arial, sans-serif", children: "No recording available for this call." });
1784
1839
  }
1785
1840
  if (audioUrl) {
1786
- return /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
1841
+ return /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
1787
1842
  /* @__PURE__ */ jsx2("audio", { controls: true, autoPlay: true, src: audioUrl, onEnded: closePlayer, style: { height: 38, flex: 1 } }),
1788
- /* @__PURE__ */ jsx2(Tooltip, { title: "Download", children: /* @__PURE__ */ jsx2(IconButton, { size: "small", onClick: handleDownload, sx: { color: "#1565c0" }, children: /* @__PURE__ */ jsx2(DownloadIcon, { sx: { fontSize: 18 } }) }) })
1843
+ /* @__PURE__ */ jsx2(Tooltip_default, { title: "Download", children: /* @__PURE__ */ jsx2(IconButton_default, { size: "small", onClick: handleDownload, sx: { color: "#1565c0" }, children: /* @__PURE__ */ jsx2(Download_default, { sx: { fontSize: 18 } }) }) })
1789
1844
  ] });
1790
1845
  }
1791
- return /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
1792
- /* @__PURE__ */ jsx2(SDKButton, { variant: "outlined", onClick: handlePlay, disabled: loading || error, startIcon: loading ? /* @__PURE__ */ jsx2(CircularProgress, { size: 16, color: "inherit" }) : /* @__PURE__ */ jsx2(PlayArrowIcon, { sx: { fontSize: 16 } }), children: error ? "Recording unavailable" : "Play recording" }),
1793
- /* @__PURE__ */ jsx2(Tooltip, { title: "Download", children: /* @__PURE__ */ jsx2("span", { children: /* @__PURE__ */ jsx2(IconButton, { size: "small", onClick: handleDownload, disabled: loading || error, sx: { color: "#1565c0" }, children: /* @__PURE__ */ jsx2(DownloadIcon, { sx: { fontSize: 18 } }) }) }) })
1846
+ return /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
1847
+ /* @__PURE__ */ jsx2(SDKButton, { variant: "outlined", onClick: handlePlay, disabled: loading || error, startIcon: loading ? /* @__PURE__ */ jsx2(CircularProgress_default, { size: 16, color: "inherit" }) : /* @__PURE__ */ jsx2(PlayArrow_default, { sx: { fontSize: 16 } }), children: error ? "Recording unavailable" : "Play recording" }),
1848
+ /* @__PURE__ */ jsx2(Tooltip_default, { title: "Download", children: /* @__PURE__ */ jsx2("span", { children: /* @__PURE__ */ jsx2(IconButton_default, { size: "small", onClick: handleDownload, disabled: loading || error, sx: { color: "#1565c0" }, children: /* @__PURE__ */ jsx2(Download_default, { sx: { fontSize: 18 } }) }) }) })
1794
1849
  ] });
1795
1850
  }
1796
1851
  function CallDataDialog({
@@ -1833,9 +1888,9 @@ function CallDataDialog({
1833
1888
  letterSpacing: 0.5,
1834
1889
  mb: 0.75
1835
1890
  };
1836
- const fieldCard = (label, value, full) => /* @__PURE__ */ jsxs(Box, { sx: __spreadValues(__spreadValues({}, fieldCardSx), full ? { gridColumn: "1 / -1" } : {}), children: [
1837
- /* @__PURE__ */ jsx2(Typography, { sx: fieldLabelSx, fontFamily: "poppins, Arial, sans-serif", children: label }),
1838
- /* @__PURE__ */ jsx2(Typography, { sx: fieldValueSx, fontFamily: "poppins, Arial, sans-serif", children: value })
1891
+ const fieldCard = (label, value, full) => /* @__PURE__ */ jsxs(Box_default, { sx: __spreadValues(__spreadValues({}, fieldCardSx), full ? { gridColumn: "1 / -1" } : {}), children: [
1892
+ /* @__PURE__ */ jsx2(Typography_default, { sx: fieldLabelSx, fontFamily: "poppins, Arial, sans-serif", children: label }),
1893
+ /* @__PURE__ */ jsx2(Typography_default, { sx: fieldValueSx, fontFamily: "poppins, Arial, sans-serif", children: value })
1839
1894
  ] }, label);
1840
1895
  const overview = data ? [
1841
1896
  ["Phone Number", data.phoneNumber || "\u2014"],
@@ -1867,44 +1922,44 @@ function CallDataDialog({
1867
1922
  ] : [];
1868
1923
  const twoColGrid = { display: "grid", gridTemplateColumns: { xs: "1fr", sm: "1fr 1fr" }, gap: 1.25 };
1869
1924
  const compactGrid = { display: "grid", gridTemplateColumns: "repeat(auto-fill, minmax(96px, 1fr))", gap: 1.25 };
1870
- return /* @__PURE__ */ jsx2(Box, { sx: { position: "fixed", inset: 0, zIndex: 1500, backgroundColor: "rgba(0,0,0,0.45)", display: "flex", alignItems: "center", justifyContent: "center" }, onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ jsxs(Paper, { elevation: 6, sx: { width: { xs: "92vw", sm: 600 }, maxHeight: "85vh", display: "flex", flexDirection: "column", borderRadius: "16px", overflow: "hidden", boxShadow: "0 8px 32px rgba(26,95,108,0.18)" }, children: [
1871
- /* @__PURE__ */ jsxs(Box, { sx: __spreadProps(__spreadValues({}, dialogHeaderSx), { backgroundColor: "#1A5F6C", color: "#fff" }), children: [
1872
- /* @__PURE__ */ jsxs(Box, { children: [
1873
- /* @__PURE__ */ jsx2(Typography, { fontWeight: 700, fontSize: "1rem", fontFamily: "poppins, Arial, sans-serif", children: "Call Details" }),
1874
- (lead == null ? void 0 : lead.phoneNumber) ? /* @__PURE__ */ jsxs(Typography, { fontSize: "0.72rem", sx: { opacity: 0.85 }, fontFamily: "poppins, Arial, sans-serif", children: [
1925
+ return /* @__PURE__ */ jsx2(Box_default, { sx: { position: "fixed", inset: 0, zIndex: 1500, backgroundColor: "rgba(0,0,0,0.45)", display: "flex", alignItems: "center", justifyContent: "center" }, onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ jsxs(Paper_default, { elevation: 6, sx: { width: { xs: "92vw", sm: 600 }, maxHeight: "85vh", display: "flex", flexDirection: "column", borderRadius: "16px", overflow: "hidden", boxShadow: "0 8px 32px rgba(26,95,108,0.18)" }, children: [
1926
+ /* @__PURE__ */ jsxs(Box_default, { sx: __spreadProps(__spreadValues({}, dialogHeaderSx), { backgroundColor: "#1A5F6C", color: "#fff" }), children: [
1927
+ /* @__PURE__ */ jsxs(Box_default, { children: [
1928
+ /* @__PURE__ */ jsx2(Typography_default, { fontWeight: 700, fontSize: "1rem", fontFamily: "poppins, Arial, sans-serif", children: "Call Details" }),
1929
+ (lead == null ? void 0 : lead.phoneNumber) ? /* @__PURE__ */ jsxs(Typography_default, { fontSize: "0.72rem", sx: { opacity: 0.85 }, fontFamily: "poppins, Arial, sans-serif", children: [
1875
1930
  "Latest call for ",
1876
1931
  lead.phoneNumber
1877
1932
  ] }) : null
1878
1933
  ] }),
1879
- /* @__PURE__ */ jsx2(IconButton, { size: "small", onClick: onClose, sx: { color: "#fff" }, children: "\u2715" })
1934
+ /* @__PURE__ */ jsx2(IconButton_default, { size: "small", onClick: onClose, sx: { color: "#fff" }, children: "\u2715" })
1880
1935
  ] }),
1881
- /* @__PURE__ */ jsx2(Box, { sx: { px: 2.5, py: 2, overflowY: "auto" }, children: loading ? /* @__PURE__ */ jsx2(Box, { sx: { display: "flex", justifyContent: "center", py: 4 }, children: /* @__PURE__ */ jsx2(CircularProgress, { size: 30 }) }) : error ? /* @__PURE__ */ jsx2(Typography, { fontSize: "0.85rem", color: "#d32f2f", textAlign: "center", sx: { py: 3 }, fontFamily: "poppins, Arial, sans-serif", children: error }) : data ? /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
1882
- /* @__PURE__ */ jsxs(Box, { children: [
1883
- /* @__PURE__ */ jsx2(Typography, { sx: sectionTitle, fontFamily: "poppins, Arial, sans-serif", children: "Call Overview" }),
1884
- /* @__PURE__ */ jsx2(Box, { sx: twoColGrid, children: overview.map(([l, v]) => fieldCard(l, v)) })
1936
+ /* @__PURE__ */ jsx2(Box_default, { sx: { px: 2.5, py: 2, overflowY: "auto" }, children: loading ? /* @__PURE__ */ jsx2(Box_default, { sx: { display: "flex", justifyContent: "center", py: 4 }, children: /* @__PURE__ */ jsx2(CircularProgress_default, { size: 30 }) }) : error ? /* @__PURE__ */ jsx2(Typography_default, { fontSize: "0.85rem", color: "#d32f2f", textAlign: "center", sx: { py: 3 }, fontFamily: "poppins, Arial, sans-serif", children: error }) : data ? /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
1937
+ /* @__PURE__ */ jsxs(Box_default, { children: [
1938
+ /* @__PURE__ */ jsx2(Typography_default, { sx: sectionTitle, fontFamily: "poppins, Arial, sans-serif", children: "Call Overview" }),
1939
+ /* @__PURE__ */ jsx2(Box_default, { sx: twoColGrid, children: overview.map(([l, v]) => fieldCard(l, v)) })
1885
1940
  ] }),
1886
- /* @__PURE__ */ jsxs(Box, { children: [
1887
- /* @__PURE__ */ jsx2(Typography, { sx: sectionTitle, fontFamily: "poppins, Arial, sans-serif", children: "Agent & Queue" }),
1888
- /* @__PURE__ */ jsx2(Box, { sx: twoColGrid, children: agentQueue.map(([l, v]) => fieldCard(l, v)) })
1941
+ /* @__PURE__ */ jsxs(Box_default, { children: [
1942
+ /* @__PURE__ */ jsx2(Typography_default, { sx: sectionTitle, fontFamily: "poppins, Arial, sans-serif", children: "Agent & Queue" }),
1943
+ /* @__PURE__ */ jsx2(Box_default, { sx: twoColGrid, children: agentQueue.map(([l, v]) => fieldCard(l, v)) })
1889
1944
  ] }),
1890
- /* @__PURE__ */ jsxs(Box, { children: [
1891
- /* @__PURE__ */ jsx2(Typography, { sx: sectionTitle, fontFamily: "poppins, Arial, sans-serif", children: "Timing" }),
1892
- /* @__PURE__ */ jsx2(Box, { sx: twoColGrid, children: timing.map(([l, v]) => fieldCard(l, v)) })
1945
+ /* @__PURE__ */ jsxs(Box_default, { children: [
1946
+ /* @__PURE__ */ jsx2(Typography_default, { sx: sectionTitle, fontFamily: "poppins, Arial, sans-serif", children: "Timing" }),
1947
+ /* @__PURE__ */ jsx2(Box_default, { sx: twoColGrid, children: timing.map(([l, v]) => fieldCard(l, v)) })
1893
1948
  ] }),
1894
- /* @__PURE__ */ jsxs(Box, { children: [
1895
- /* @__PURE__ */ jsx2(Typography, { sx: sectionTitle, fontFamily: "poppins, Arial, sans-serif", children: "Durations" }),
1896
- /* @__PURE__ */ jsx2(Box, { sx: compactGrid, children: durations.map(([l, v]) => fieldCard(l, v)) })
1949
+ /* @__PURE__ */ jsxs(Box_default, { children: [
1950
+ /* @__PURE__ */ jsx2(Typography_default, { sx: sectionTitle, fontFamily: "poppins, Arial, sans-serif", children: "Durations" }),
1951
+ /* @__PURE__ */ jsx2(Box_default, { sx: compactGrid, children: durations.map(([l, v]) => fieldCard(l, v)) })
1897
1952
  ] }),
1898
- /* @__PURE__ */ jsxs(Box, { children: [
1899
- /* @__PURE__ */ jsx2(Typography, { sx: sectionTitle, fontFamily: "poppins, Arial, sans-serif", children: "Remarks" }),
1900
- /* @__PURE__ */ jsx2(Box, { sx: __spreadProps(__spreadValues({}, fieldCardSx), { minHeight: 44 }), children: /* @__PURE__ */ jsx2(Typography, { sx: fieldValueSx, fontFamily: "poppins, Arial, sans-serif", children: data.remarks || "\u2014" }) })
1953
+ /* @__PURE__ */ jsxs(Box_default, { children: [
1954
+ /* @__PURE__ */ jsx2(Typography_default, { sx: sectionTitle, fontFamily: "poppins, Arial, sans-serif", children: "Remarks" }),
1955
+ /* @__PURE__ */ jsx2(Box_default, { sx: __spreadProps(__spreadValues({}, fieldCardSx), { minHeight: 44 }), children: /* @__PURE__ */ jsx2(Typography_default, { sx: fieldValueSx, fontFamily: "poppins, Arial, sans-serif", children: data.remarks || "\u2014" }) })
1901
1956
  ] }),
1902
- /* @__PURE__ */ jsxs(Box, { children: [
1903
- /* @__PURE__ */ jsx2(Typography, { sx: sectionTitle, fontFamily: "poppins, Arial, sans-serif", children: "Recording" }),
1904
- /* @__PURE__ */ jsx2(Box, { sx: fieldCardSx, children: /* @__PURE__ */ jsx2(CallRecording, { callUuid: data.callUuid, recordingPath: data.recordingPath }) })
1957
+ /* @__PURE__ */ jsxs(Box_default, { children: [
1958
+ /* @__PURE__ */ jsx2(Typography_default, { sx: sectionTitle, fontFamily: "poppins, Arial, sans-serif", children: "Recording" }),
1959
+ /* @__PURE__ */ jsx2(Box_default, { sx: fieldCardSx, children: /* @__PURE__ */ jsx2(CallRecording, { callUuid: data.callUuid, recordingPath: data.recordingPath }) })
1905
1960
  ] })
1906
1961
  ] }) : null }),
1907
- /* @__PURE__ */ jsx2(Box, { sx: dialogFooterSx, children: /* @__PURE__ */ jsx2(SDKButton, { variant: "cancel", onClick: onClose, children: "Close" }) })
1962
+ /* @__PURE__ */ jsx2(Box_default, { sx: dialogFooterSx, children: /* @__PURE__ */ jsx2(SDKButton, { variant: "cancel", onClick: onClose, children: "Close" }) })
1908
1963
  ] }) });
1909
1964
  }
1910
1965
  function ImportLeadsDialog({
@@ -1919,23 +1974,23 @@ function ImportLeadsDialog({
1919
1974
  const fileRef = useRef(null);
1920
1975
  if (!open) return null;
1921
1976
  return /* @__PURE__ */ jsx2(
1922
- Box,
1977
+ Box_default,
1923
1978
  {
1924
1979
  sx: { position: "fixed", inset: 0, zIndex: 1400, backgroundColor: "rgba(0,0,0,0.45)", display: "flex", alignItems: "center", justifyContent: "center" },
1925
1980
  onClick: (e) => e.stopPropagation(),
1926
- children: /* @__PURE__ */ jsxs(Paper, { elevation: 6, sx: { width: { xs: "90vw", sm: 460 }, borderRadius: "16px", overflow: "hidden", boxShadow: "0 8px 32px rgba(26,95,108,0.18)" }, children: [
1927
- /* @__PURE__ */ jsxs(Box, { sx: __spreadProps(__spreadValues({}, dialogHeaderSx), { backgroundColor: "#1A5F6C", color: "#fff" }), children: [
1928
- /* @__PURE__ */ jsx2(Typography, { fontWeight: 700, fontSize: "1rem", fontFamily: "poppins, Arial, sans-serif", children: "Import Leads" }),
1929
- /* @__PURE__ */ jsx2(IconButton, { size: "small", onClick: onClose, sx: { color: "#fff" }, children: "\u2715" })
1981
+ children: /* @__PURE__ */ jsxs(Paper_default, { elevation: 6, sx: { width: { xs: "90vw", sm: 460 }, borderRadius: "16px", overflow: "hidden", boxShadow: "0 8px 32px rgba(26,95,108,0.18)" }, children: [
1982
+ /* @__PURE__ */ jsxs(Box_default, { sx: __spreadProps(__spreadValues({}, dialogHeaderSx), { backgroundColor: "#1A5F6C", color: "#fff" }), children: [
1983
+ /* @__PURE__ */ jsx2(Typography_default, { fontWeight: 700, fontSize: "1rem", fontFamily: "poppins, Arial, sans-serif", children: "Import Leads" }),
1984
+ /* @__PURE__ */ jsx2(IconButton_default, { size: "small", onClick: onClose, sx: { color: "#fff" }, children: "\u2715" })
1930
1985
  ] }),
1931
- /* @__PURE__ */ jsxs(Box, { sx: { p: 2.5 }, children: [
1932
- /* @__PURE__ */ jsx2(Typography, { fontSize: "0.82rem", color: "#555", fontFamily: "poppins, Arial, sans-serif", mb: 2, children: "Upload a CSV or Excel file. Use the template for the correct format." }),
1933
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 1.5, flexWrap: "wrap", mb: 1.5 }, children: [
1986
+ /* @__PURE__ */ jsxs(Box_default, { sx: { p: 2.5 }, children: [
1987
+ /* @__PURE__ */ jsx2(Typography_default, { fontSize: "0.82rem", color: "#555", fontFamily: "poppins, Arial, sans-serif", mb: 2, children: "Upload a CSV or Excel file. Use the template for the correct format." }),
1988
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: 1.5, flexWrap: "wrap", mb: 1.5 }, children: [
1934
1989
  /* @__PURE__ */ jsx2(
1935
1990
  SDKButton,
1936
1991
  {
1937
1992
  variant: "outlined",
1938
- startIcon: /* @__PURE__ */ jsx2(UploadFileIcon, {}),
1993
+ startIcon: /* @__PURE__ */ jsx2(UploadFile_default, {}),
1939
1994
  onClick: () => {
1940
1995
  var _a;
1941
1996
  return (_a = fileRef.current) == null ? void 0 : _a.click();
@@ -1958,7 +2013,7 @@ function ImportLeadsDialog({
1958
2013
  }
1959
2014
  }
1960
2015
  ),
1961
- /* @__PURE__ */ jsx2(Typography, { sx: { fontSize: "0.82rem", color: "#666", flex: 1, fontFamily: "poppins, Arial, sans-serif" }, children: file ? file.name : "No file chosen" }),
2016
+ /* @__PURE__ */ jsx2(Typography_default, { sx: { fontSize: "0.82rem", color: "#666", flex: 1, fontFamily: "poppins, Arial, sans-serif" }, children: file ? file.name : "No file chosen" }),
1962
2017
  file && /* @__PURE__ */ jsx2(
1963
2018
  SDKButton,
1964
2019
  {
@@ -1972,16 +2027,16 @@ function ImportLeadsDialog({
1972
2027
  }
1973
2028
  )
1974
2029
  ] }),
1975
- /* @__PURE__ */ jsx2(SDKButton, { variant: "outlined", startIcon: /* @__PURE__ */ jsx2(DownloadIcon, {}), onClick: onDownloadTemplate, children: "Download Template" })
2030
+ /* @__PURE__ */ jsx2(SDKButton, { variant: "outlined", startIcon: /* @__PURE__ */ jsx2(Download_default, {}), onClick: onDownloadTemplate, children: "Download Template" })
1976
2031
  ] }),
1977
- /* @__PURE__ */ jsxs(Box, { sx: dialogFooterSx, children: [
2032
+ /* @__PURE__ */ jsxs(Box_default, { sx: dialogFooterSx, children: [
1978
2033
  /* @__PURE__ */ jsx2(SDKButton, { variant: "cancel", onClick: onClose, children: "Cancel" }),
1979
2034
  /* @__PURE__ */ jsx2(
1980
2035
  SDKButton,
1981
2036
  {
1982
2037
  onClick: onUpload,
1983
2038
  disabled: uploading || !file,
1984
- startIcon: uploading ? /* @__PURE__ */ jsx2(CircularProgress, { size: 14, color: "inherit" }) : void 0,
2039
+ startIcon: uploading ? /* @__PURE__ */ jsx2(CircularProgress_default, { size: 14, color: "inherit" }) : void 0,
1985
2040
  children: "Upload"
1986
2041
  }
1987
2042
  )
@@ -1992,7 +2047,7 @@ function ImportLeadsDialog({
1992
2047
  }
1993
2048
  var CampaignsContent = memo(function CampaignsContent2() {
1994
2049
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
1995
- const theme = useTheme2();
2050
+ const theme = useTheme();
1996
2051
  const { showToast } = useToast();
1997
2052
  const { isBitEnabled } = useSDKPermissions();
1998
2053
  const callerData = useGetCallerData();
@@ -2343,16 +2398,16 @@ var CampaignsContent = memo(function CampaignsContent2() {
2343
2398
  const scDraft = ((_c = sc == null ? void 0 : sc.status) == null ? void 0 : _c.toLowerCase()) === "draft";
2344
2399
  const scPaused = ((_d = sc == null ? void 0 : sc.status) == null ? void 0 : _d.toLowerCase()) === "paused";
2345
2400
  const scArchived = ((_e = sc == null ? void 0 : sc.status) == null ? void 0 : _e.toLowerCase()) === "archived";
2346
- return /* @__PURE__ */ jsxs(Box, { sx: { fontFamily: "poppins, Arial, sans-serif" }, children: [
2401
+ return /* @__PURE__ */ jsxs(Box_default, { sx: { fontFamily: "poppins, Arial, sans-serif" }, children: [
2347
2402
  /* @__PURE__ */ jsx2(
2348
2403
  SDKPageHeader,
2349
2404
  {
2350
2405
  title: "Call Scheduling",
2351
- actions: /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
2406
+ actions: /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
2352
2407
  /* @__PURE__ */ jsx2(
2353
2408
  SDKButton,
2354
2409
  {
2355
- startIcon: /* @__PURE__ */ jsx2(RefreshIcon, {}),
2410
+ startIcon: /* @__PURE__ */ jsx2(Refresh_default, {}),
2356
2411
  onClick: () => {
2357
2412
  fetchCampaigns();
2358
2413
  if (selectedId) refetchLeads();
@@ -2368,15 +2423,15 @@ var CampaignsContent = memo(function CampaignsContent2() {
2368
2423
  SDK_PERMISSIONS.CAMPAIGNS_MANAGE
2369
2424
  ],
2370
2425
  showFallback: false,
2371
- children: /* @__PURE__ */ jsx2(SDKButton, { startIcon: /* @__PURE__ */ jsx2(AddIcon, {}), onClick: handleOpenCreate, children: "New Campaign" })
2426
+ children: /* @__PURE__ */ jsx2(SDKButton, { startIcon: /* @__PURE__ */ jsx2(Add_default, {}), onClick: handleOpenCreate, children: "New Campaign" })
2372
2427
  }
2373
2428
  )
2374
2429
  ] })
2375
2430
  }
2376
2431
  ),
2377
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", flexDirection: { xs: "column", md: "row" }, gap: 1.5, p: 1.5 }, children: [
2432
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", flexDirection: { xs: "column", md: "row" }, gap: 1.5, p: 1.5 }, children: [
2378
2433
  /* @__PURE__ */ jsx2(
2379
- Paper,
2434
+ Paper_default,
2380
2435
  {
2381
2436
  elevation: 0,
2382
2437
  sx: {
@@ -2392,7 +2447,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
2392
2447
  boxShadow: "0 1px 3px rgba(0,0,0,0.08)",
2393
2448
  transition: "width 0.2s ease, min-width 0.2s ease"
2394
2449
  },
2395
- children: campaignListCollapsed ? /* @__PURE__ */ jsxs(Box, { sx: {
2450
+ children: campaignListCollapsed ? /* @__PURE__ */ jsxs(Box_default, { sx: {
2396
2451
  display: "flex",
2397
2452
  flexDirection: { xs: "row", md: "column" },
2398
2453
  alignItems: "center",
@@ -2402,8 +2457,8 @@ var CampaignsContent = memo(function CampaignsContent2() {
2402
2457
  overflowY: { xs: "visible", md: "auto" },
2403
2458
  overflowX: { xs: "auto", md: "visible" }
2404
2459
  }, children: [
2405
- /* @__PURE__ */ jsx2(Tooltip, { title: "Expand campaigns", arrow: true, placement: "right", children: /* @__PURE__ */ jsx2(
2406
- IconButton,
2460
+ /* @__PURE__ */ jsx2(Tooltip_default, { title: "Expand campaigns", arrow: true, placement: "right", children: /* @__PURE__ */ jsx2(
2461
+ IconButton_default,
2407
2462
  {
2408
2463
  size: "small",
2409
2464
  onClick: () => setCampaignListCollapsed(false),
@@ -2413,7 +2468,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
2413
2468
  flexShrink: 0,
2414
2469
  "&:hover": { backgroundColor: "#e0eff1" }
2415
2470
  },
2416
- children: /* @__PURE__ */ jsx2(ChevronRightIcon, { fontSize: "small" })
2471
+ children: /* @__PURE__ */ jsx2(ChevronRight_default, { fontSize: "small" })
2417
2472
  }
2418
2473
  ) }),
2419
2474
  visibleCampaigns.map((c, idx) => {
@@ -2422,13 +2477,13 @@ var CampaignsContent = memo(function CampaignsContent2() {
2422
2477
  const status = (c.status || "draft").toLowerCase();
2423
2478
  const statusColor = (_a2 = STATUS_COLORS[status]) != null ? _a2 : "#9e9e9e";
2424
2479
  return /* @__PURE__ */ jsx2(
2425
- Tooltip,
2480
+ Tooltip_default,
2426
2481
  {
2427
2482
  arrow: true,
2428
2483
  placement: "right",
2429
2484
  title: `${c.name} \u2022 ${c.status || "draft"}`,
2430
2485
  children: /* @__PURE__ */ jsx2(
2431
- Box,
2486
+ Box_default,
2432
2487
  {
2433
2488
  onClick: () => handleSelectCampaign(c.id),
2434
2489
  sx: {
@@ -2460,7 +2515,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
2460
2515
  );
2461
2516
  })
2462
2517
  ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
2463
- /* @__PURE__ */ jsxs(Box, { sx: {
2518
+ /* @__PURE__ */ jsxs(Box_default, { sx: {
2464
2519
  display: "flex",
2465
2520
  alignItems: "center",
2466
2521
  justifyContent: "space-between",
@@ -2470,23 +2525,23 @@ var CampaignsContent = memo(function CampaignsContent2() {
2470
2525
  backgroundColor: "#fafafa",
2471
2526
  gap: 1
2472
2527
  }, children: [
2473
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 0.5, minWidth: 0 }, children: [
2474
- /* @__PURE__ */ jsx2(Tooltip, { title: "Minimize", arrow: true, children: /* @__PURE__ */ jsx2(
2475
- IconButton,
2528
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: 0.5, minWidth: 0 }, children: [
2529
+ /* @__PURE__ */ jsx2(Tooltip_default, { title: "Minimize", arrow: true, children: /* @__PURE__ */ jsx2(
2530
+ IconButton_default,
2476
2531
  {
2477
2532
  size: "small",
2478
2533
  onClick: () => setCampaignListCollapsed(true),
2479
2534
  sx: { p: 0.5, color: "#666" },
2480
- children: /* @__PURE__ */ jsx2(ChevronLeftIcon, { fontSize: "small" })
2535
+ children: /* @__PURE__ */ jsx2(ChevronLeft_default, { fontSize: "small" })
2481
2536
  }
2482
2537
  ) }),
2483
- /* @__PURE__ */ jsx2(Typography, { sx: { fontWeight: 700, fontSize: "0.95rem", color: "#333", fontFamily: "poppins, Arial, sans-serif" }, children: "Campaigns" })
2538
+ /* @__PURE__ */ jsx2(Typography_default, { sx: { fontWeight: 700, fontSize: "0.95rem", color: "#333", fontFamily: "poppins, Arial, sans-serif" }, children: "Campaigns" })
2484
2539
  ] }),
2485
2540
  /* @__PURE__ */ jsx2(
2486
- FormControlLabel,
2541
+ FormControlLabel_default,
2487
2542
  {
2488
2543
  control: /* @__PURE__ */ jsx2(
2489
- Checkbox,
2544
+ Checkbox_default,
2490
2545
  {
2491
2546
  size: "small",
2492
2547
  checked: showArchived,
@@ -2494,17 +2549,17 @@ var CampaignsContent = memo(function CampaignsContent2() {
2494
2549
  sx: { p: 0.5 }
2495
2550
  }
2496
2551
  ),
2497
- label: /* @__PURE__ */ jsx2(Typography, { sx: { fontSize: "0.78rem", color: "#666" }, children: "Show archived" }),
2552
+ label: /* @__PURE__ */ jsx2(Typography_default, { sx: { fontSize: "0.78rem", color: "#666" }, children: "Show archived" }),
2498
2553
  sx: { mr: 0 }
2499
2554
  }
2500
2555
  )
2501
2556
  ] }),
2502
- /* @__PURE__ */ jsx2(Box, { sx: { flex: 1, overflow: "auto", p: 1 }, children: loading ? /* @__PURE__ */ jsx2(Box, { sx: { display: "flex", justifyContent: "center", py: 4 }, children: /* @__PURE__ */ jsx2(CircularProgress, { size: 24, sx: { color: "#1A5F6C" } }) }) : visibleCampaigns.length === 0 ? /* @__PURE__ */ jsx2(Typography, { sx: { textAlign: "center", py: 3, color: "#999", fontSize: "0.85rem" }, children: "No campaigns" }) : visibleCampaigns.map((c) => {
2557
+ /* @__PURE__ */ jsx2(Box_default, { sx: { flex: 1, overflow: "auto", p: 1 }, children: loading ? /* @__PURE__ */ jsx2(Box_default, { sx: { display: "flex", justifyContent: "center", py: 4 }, children: /* @__PURE__ */ jsx2(CircularProgress_default, { size: 24, sx: { color: "#1A5F6C" } }) }) : visibleCampaigns.length === 0 ? /* @__PURE__ */ jsx2(Typography_default, { sx: { textAlign: "center", py: 3, color: "#999", fontSize: "0.85rem" }, children: "No campaigns" }) : visibleCampaigns.map((c) => {
2503
2558
  var _a2, _b2;
2504
2559
  const isSel = c.id === selectedId;
2505
2560
  const wStr = `${((_a2 = c.startTime) == null ? void 0 : _a2.slice(0, 5)) || "09:00"}\u2013${((_b2 = c.endTime) == null ? void 0 : _b2.slice(0, 5)) || "17:00"}`;
2506
2561
  return /* @__PURE__ */ jsxs(
2507
- Paper,
2562
+ Paper_default,
2508
2563
  {
2509
2564
  elevation: 0,
2510
2565
  onClick: () => handleSelectCampaign(c.id),
@@ -2512,11 +2567,11 @@ var CampaignsContent = memo(function CampaignsContent2() {
2512
2567
  "&:hover": { borderColor: "#1A5F6C", backgroundColor: "#f5fafb", boxShadow: "0 2px 6px rgba(26,95,108,0.1)" }
2513
2568
  }),
2514
2569
  children: [
2515
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", justifyContent: "space-between", alignItems: "center", mb: 0.5 }, children: [
2516
- /* @__PURE__ */ jsx2(Typography, { sx: { fontWeight: 600, fontSize: "0.88rem", color: "#1a1a1a", fontFamily: "poppins, Arial, sans-serif" }, children: c.name }),
2517
- /* @__PURE__ */ jsx2(Chip, { label: c.status || "draft", size: "small", sx: statusChipSx(c.status) })
2570
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", justifyContent: "space-between", alignItems: "center", mb: 0.5 }, children: [
2571
+ /* @__PURE__ */ jsx2(Typography_default, { sx: { fontWeight: 600, fontSize: "0.88rem", color: "#1a1a1a", fontFamily: "poppins, Arial, sans-serif" }, children: c.name }),
2572
+ /* @__PURE__ */ jsx2(Chip_default, { label: c.status || "draft", size: "small", sx: statusChipSx(c.status) })
2518
2573
  ] }),
2519
- /* @__PURE__ */ jsxs(Typography, { sx: { fontSize: "0.73rem", color: "#999", fontFamily: "poppins, Arial, sans-serif" }, children: [
2574
+ /* @__PURE__ */ jsxs(Typography_default, { sx: { fontSize: "0.73rem", color: "#999", fontFamily: "poppins, Arial, sans-serif" }, children: [
2520
2575
  c.dialingMode,
2521
2576
  " \xB7 TZ: ",
2522
2577
  c.timezone || "Etc/UTC",
@@ -2531,8 +2586,8 @@ var CampaignsContent = memo(function CampaignsContent2() {
2531
2586
  ] })
2532
2587
  }
2533
2588
  ),
2534
- /* @__PURE__ */ jsx2(Box, { sx: { flex: 1, display: "flex", flexDirection: "column", gap: 1.5, minWidth: 0, overflow: "hidden" }, children: !sc ? /* @__PURE__ */ jsx2(
2535
- Paper,
2589
+ /* @__PURE__ */ jsx2(Box_default, { sx: { flex: 1, display: "flex", flexDirection: "column", gap: 1.5, minWidth: 0, overflow: "hidden" }, children: !sc ? /* @__PURE__ */ jsx2(
2590
+ Paper_default,
2536
2591
  {
2537
2592
  elevation: 0,
2538
2593
  sx: {
@@ -2544,14 +2599,14 @@ var CampaignsContent = memo(function CampaignsContent2() {
2544
2599
  border: "2px dashed #d0d0d0",
2545
2600
  backgroundColor: "#fafafa"
2546
2601
  },
2547
- children: /* @__PURE__ */ jsxs(Box, { sx: { textAlign: "center" }, children: [
2548
- /* @__PURE__ */ jsx2(SettingsIcon, { sx: { fontSize: 40, color: "#ccc", mb: 1 } }),
2549
- /* @__PURE__ */ jsx2(Typography, { sx: { fontSize: "0.95rem", color: "#999", fontFamily: "poppins, Arial, sans-serif" }, children: "Select a campaign to view details" })
2602
+ children: /* @__PURE__ */ jsxs(Box_default, { sx: { textAlign: "center" }, children: [
2603
+ /* @__PURE__ */ jsx2(Settings_default, { sx: { fontSize: 40, color: "#ccc", mb: 1 } }),
2604
+ /* @__PURE__ */ jsx2(Typography_default, { sx: { fontSize: "0.95rem", color: "#999", fontFamily: "poppins, Arial, sans-serif" }, children: "Select a campaign to view details" })
2550
2605
  ] })
2551
2606
  }
2552
2607
  ) : /* @__PURE__ */ jsxs(Fragment, { children: [
2553
2608
  /* @__PURE__ */ jsxs(
2554
- Paper,
2609
+ Paper_default,
2555
2610
  {
2556
2611
  elevation: 0,
2557
2612
  sx: {
@@ -2561,7 +2616,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
2561
2616
  boxShadow: "0 1px 3px rgba(0,0,0,0.08)"
2562
2617
  },
2563
2618
  children: [
2564
- /* @__PURE__ */ jsxs(Box, { sx: {
2619
+ /* @__PURE__ */ jsxs(Box_default, { sx: {
2565
2620
  display: "flex",
2566
2621
  alignItems: { xs: "flex-start", sm: "center" },
2567
2622
  justifyContent: "space-between",
@@ -2569,11 +2624,11 @@ var CampaignsContent = memo(function CampaignsContent2() {
2569
2624
  gap: 1,
2570
2625
  mb: 2
2571
2626
  }, children: [
2572
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 1, flexWrap: "wrap" }, children: [
2573
- /* @__PURE__ */ jsx2(Typography, { sx: { fontWeight: 700, fontSize: { xs: "1rem", sm: "1.2rem" }, color: "#1a1a1a", fontFamily: "poppins, Arial, sans-serif" }, children: sc.name }),
2574
- /* @__PURE__ */ jsx2(Chip, { label: sc.status || "draft", size: "small", sx: statusChipSx(sc.status) })
2627
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: 1, flexWrap: "wrap" }, children: [
2628
+ /* @__PURE__ */ jsx2(Typography_default, { sx: { fontWeight: 700, fontSize: { xs: "1rem", sm: "1.2rem" }, color: "#1a1a1a", fontFamily: "poppins, Arial, sans-serif" }, children: sc.name }),
2629
+ /* @__PURE__ */ jsx2(Chip_default, { label: sc.status || "draft", size: "small", sx: statusChipSx(sc.status) })
2575
2630
  ] }),
2576
- !scArchived && /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", gap: 1, flexWrap: "wrap" }, children: [
2631
+ !scArchived && /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", gap: 1, flexWrap: "wrap" }, children: [
2577
2632
  /* @__PURE__ */ jsx2(
2578
2633
  SDKPermissionGuard,
2579
2634
  {
@@ -2586,7 +2641,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
2586
2641
  SDKButton,
2587
2642
  {
2588
2643
  variant: "outlined",
2589
- startIcon: /* @__PURE__ */ jsx2(EditIcon, {}),
2644
+ startIcon: /* @__PURE__ */ jsx2(Edit_default, {}),
2590
2645
  onClick: () => handleOpenEdit(sc),
2591
2646
  children: "Edit"
2592
2647
  }
@@ -2604,7 +2659,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
2604
2659
  children: /* @__PURE__ */ jsx2(
2605
2660
  SDKButton,
2606
2661
  {
2607
- startIcon: /* @__PURE__ */ jsx2(PlayArrowIcon, {}),
2662
+ startIcon: /* @__PURE__ */ jsx2(PlayArrow_default, {}),
2608
2663
  onClick: () => handleStart(sc),
2609
2664
  sx: { backgroundColor: "#4caf50", "&:hover": { backgroundColor: "#388e3c" } },
2610
2665
  children: "Start"
@@ -2623,7 +2678,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
2623
2678
  children: /* @__PURE__ */ jsx2(
2624
2679
  SDKButton,
2625
2680
  {
2626
- startIcon: /* @__PURE__ */ jsx2(PauseIcon, {}),
2681
+ startIcon: /* @__PURE__ */ jsx2(Pause_default, {}),
2627
2682
  onClick: () => handlePause(sc),
2628
2683
  sx: { backgroundColor: "#ff9800", boxShadow: "0 2px 8px rgba(255,152,0,0.25)", "&:hover": { backgroundColor: "#f57c00" } },
2629
2684
  children: "Pause"
@@ -2643,7 +2698,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
2643
2698
  SDKButton,
2644
2699
  {
2645
2700
  variant: "danger",
2646
- startIcon: /* @__PURE__ */ jsx2(ArchiveIcon, {}),
2701
+ startIcon: /* @__PURE__ */ jsx2(Archive_default, {}),
2647
2702
  onClick: () => {
2648
2703
  setArchiveTarget(sc);
2649
2704
  setArchiveOpen(true);
@@ -2655,9 +2710,9 @@ var CampaignsContent = memo(function CampaignsContent2() {
2655
2710
  )
2656
2711
  ] })
2657
2712
  ] }),
2658
- sc.description && /* @__PURE__ */ jsx2(Typography, { sx: { fontSize: "0.85rem", color: "#666", mb: 1.5, fontFamily: "poppins, Arial, sans-serif", lineHeight: 1.5 }, children: sc.description }),
2713
+ sc.description && /* @__PURE__ */ jsx2(Typography_default, { sx: { fontSize: "0.85rem", color: "#666", mb: 1.5, fontFamily: "poppins, Arial, sans-serif", lineHeight: 1.5 }, children: sc.description }),
2659
2714
  /* @__PURE__ */ jsx2(
2660
- Box,
2715
+ Box_default,
2661
2716
  {
2662
2717
  sx: {
2663
2718
  overflowX: "auto",
@@ -2671,7 +2726,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
2671
2726
  }
2672
2727
  },
2673
2728
  children: /* @__PURE__ */ jsx2(
2674
- Box,
2729
+ Box_default,
2675
2730
  {
2676
2731
  sx: {
2677
2732
  display: "flex",
@@ -2708,7 +2763,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
2708
2763
  ]
2709
2764
  }
2710
2765
  ].map((card, idx) => /* @__PURE__ */ jsx2(
2711
- Box,
2766
+ Box_default,
2712
2767
  {
2713
2768
  sx: {
2714
2769
  display: "flex",
@@ -2722,12 +2777,12 @@ var CampaignsContent = memo(function CampaignsContent2() {
2722
2777
  flex: "0 0 auto",
2723
2778
  minWidth: 180
2724
2779
  },
2725
- children: card.fields.map((field) => /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 0.75 }, children: [
2726
- /* @__PURE__ */ jsxs(Typography, { sx: { fontFamily: "poppins, Arial, sans-serif", fontSize: "0.72rem", fontWeight: 600, color: "#888", whiteSpace: "nowrap", flexShrink: 0 }, children: [
2780
+ children: card.fields.map((field) => /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: 0.75 }, children: [
2781
+ /* @__PURE__ */ jsxs(Typography_default, { sx: { fontFamily: "poppins, Arial, sans-serif", fontSize: "0.72rem", fontWeight: 600, color: "#888", whiteSpace: "nowrap", flexShrink: 0 }, children: [
2727
2782
  field.label,
2728
2783
  ":"
2729
2784
  ] }),
2730
- /* @__PURE__ */ jsx2(Typography, { sx: { fontFamily: "poppins, Arial, sans-serif", fontSize: "0.75rem", fontWeight: 700, color: "#333", whiteSpace: "nowrap" }, children: field.value })
2785
+ /* @__PURE__ */ jsx2(Typography_default, { sx: { fontFamily: "poppins, Arial, sans-serif", fontSize: "0.75rem", fontWeight: 700, color: "#333", whiteSpace: "nowrap" }, children: field.value })
2731
2786
  ] }, field.label))
2732
2787
  },
2733
2788
  idx
@@ -2740,7 +2795,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
2740
2795
  }
2741
2796
  ),
2742
2797
  /* @__PURE__ */ jsx2(SDKPermissionGuard, { permission: SDK_PERMISSIONS.CAMPAIGNS_LEADS_READ, showFallback: false, children: /* @__PURE__ */ jsxs(
2743
- Paper,
2798
+ Paper_default,
2744
2799
  {
2745
2800
  elevation: 0,
2746
2801
  sx: {
@@ -2750,7 +2805,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
2750
2805
  boxShadow: "0 1px 3px rgba(0,0,0,0.08)"
2751
2806
  },
2752
2807
  children: [
2753
- /* @__PURE__ */ jsxs(Box, { sx: {
2808
+ /* @__PURE__ */ jsxs(Box_default, { sx: {
2754
2809
  display: "flex",
2755
2810
  flexDirection: "column",
2756
2811
  gap: 1.25,
@@ -2759,15 +2814,15 @@ var CampaignsContent = memo(function CampaignsContent2() {
2759
2814
  borderBottom: "1px solid #eee",
2760
2815
  backgroundColor: "#fafafa"
2761
2816
  }, children: [
2762
- /* @__PURE__ */ jsxs(Box, { sx: {
2817
+ /* @__PURE__ */ jsxs(Box_default, { sx: {
2763
2818
  display: "flex",
2764
2819
  alignItems: { xs: "flex-start", sm: "center" },
2765
2820
  justifyContent: "space-between",
2766
2821
  flexDirection: { xs: "column", sm: "row" },
2767
2822
  gap: 1
2768
2823
  }, children: [
2769
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 1, flexWrap: "wrap" }, children: [
2770
- /* @__PURE__ */ jsx2(Typography, { sx: { fontWeight: 700, fontSize: "1rem", color: "#1a1a1a", fontFamily: "poppins, Arial, sans-serif" }, children: "Leads" }),
2824
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: 1, flexWrap: "wrap" }, children: [
2825
+ /* @__PURE__ */ jsx2(Typography_default, { sx: { fontWeight: 700, fontSize: "1rem", color: "#1a1a1a", fontFamily: "poppins, Arial, sans-serif" }, children: "Leads" }),
2771
2826
  /* @__PURE__ */ jsx2(
2772
2827
  SDKPermissionGuard,
2773
2828
  {
@@ -2775,7 +2830,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
2775
2830
  SDK_PERMISSIONS.CAMPAIGNS_LEADS_IMPORT
2776
2831
  ],
2777
2832
  showFallback: false,
2778
- children: /* @__PURE__ */ jsx2(SDKButton, { variant: "outlined", onClick: () => setImportOpen(true), disabled: scArchived, startIcon: /* @__PURE__ */ jsx2(UploadFileIcon, { sx: { fontSize: 15 } }), size: "small", sx: { height: 36 }, children: "Import Leads" })
2833
+ children: /* @__PURE__ */ jsx2(SDKButton, { variant: "outlined", onClick: () => setImportOpen(true), disabled: scArchived, startIcon: /* @__PURE__ */ jsx2(UploadFile_default, { sx: { fontSize: 15 } }), size: "small", sx: { height: 36 }, children: "Import Leads" })
2779
2834
  }
2780
2835
  ),
2781
2836
  /* @__PURE__ */ jsx2(
@@ -2785,13 +2840,13 @@ var CampaignsContent = memo(function CampaignsContent2() {
2785
2840
  SDK_PERMISSIONS.CAMPAIGNS_LEADS_CREATE
2786
2841
  ],
2787
2842
  showFallback: false,
2788
- children: /* @__PURE__ */ jsx2(SDKButton, { variant: "primary", onClick: () => setAddLeadOpen(true), disabled: scArchived, startIcon: /* @__PURE__ */ jsx2(AddIcon, { sx: { fontSize: 15 } }), size: "small", sx: { height: 36 }, children: "Add Lead" })
2843
+ children: /* @__PURE__ */ jsx2(SDKButton, { variant: "primary", onClick: () => setAddLeadOpen(true), disabled: scArchived, startIcon: /* @__PURE__ */ jsx2(Add_default, { sx: { fontSize: 15 } }), size: "small", sx: { height: 36 }, children: "Add Lead" })
2789
2844
  }
2790
2845
  )
2791
2846
  ] }),
2792
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 1, flexWrap: "wrap", width: { xs: "100%", sm: "auto" } }, children: [
2847
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", gap: 1, flexWrap: "wrap", width: { xs: "100%", sm: "auto" } }, children: [
2793
2848
  /* @__PURE__ */ jsx2(
2794
- OutlinedInput,
2849
+ OutlinedInput_default,
2795
2850
  {
2796
2851
  size: "small",
2797
2852
  value: leadSearch,
@@ -2801,11 +2856,11 @@ var CampaignsContent = memo(function CampaignsContent2() {
2801
2856
  },
2802
2857
  placeholder: "Search number...",
2803
2858
  sx: { width: { xs: "100%", sm: 200 }, fontSize: "0.85rem", height: 36, borderRadius: "20px" },
2804
- startAdornment: /* @__PURE__ */ jsx2(InputAdornment, { position: "start", children: /* @__PURE__ */ jsx2(SearchIcon, { sx: { fontSize: 16, color: "#aaa" } }) })
2859
+ startAdornment: /* @__PURE__ */ jsx2(InputAdornment_default, { position: "start", children: /* @__PURE__ */ jsx2(Search_default, { sx: { fontSize: 16, color: "#aaa" } }) })
2805
2860
  }
2806
2861
  ),
2807
- /* @__PURE__ */ jsx2(FormControl, { size: "small", sx: { minWidth: 130 }, children: /* @__PURE__ */ jsx2(
2808
- Select,
2862
+ /* @__PURE__ */ jsx2(FormControl_default, { size: "small", sx: { minWidth: 130 }, children: /* @__PURE__ */ jsx2(
2863
+ Select_default,
2809
2864
  {
2810
2865
  value: leadStatusFilter,
2811
2866
  onChange: (e) => {
@@ -2813,14 +2868,14 @@ var CampaignsContent = memo(function CampaignsContent2() {
2813
2868
  setLeadPage(0);
2814
2869
  },
2815
2870
  sx: { height: 36, borderRadius: "30px", fontSize: "0.85rem" },
2816
- children: LEAD_STATUSES.map((s) => /* @__PURE__ */ jsx2(MenuItem, { value: s, children: s }, s))
2871
+ children: LEAD_STATUSES.map((s) => /* @__PURE__ */ jsx2(MenuItem_default, { value: s, children: s }, s))
2817
2872
  }
2818
2873
  ) })
2819
2874
  ] })
2820
2875
  ] }),
2821
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", justifyContent: "space-between", gap: 1, flexWrap: "wrap" }, children: [
2876
+ /* @__PURE__ */ jsxs(Box_default, { sx: { display: "flex", alignItems: "center", justifyContent: "space-between", gap: 1, flexWrap: "wrap" }, children: [
2822
2877
  /* @__PURE__ */ jsxs(
2823
- Box,
2878
+ Box_default,
2824
2879
  {
2825
2880
  sx: {
2826
2881
  display: "flex",
@@ -2849,7 +2904,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
2849
2904
  }
2850
2905
  }
2851
2906
  ) }),
2852
- (leadStartDate || leadEndDate) && /* @__PURE__ */ jsx2(Tooltip, { title: "Clear dates", children: /* @__PURE__ */ jsx2(IconButton, { size: "small", onClick: clearLeadDates, sx: { p: 0.5, color: "#7a8599" }, children: /* @__PURE__ */ jsx2(ClearIcon, { sx: { fontSize: 16 } }) }) })
2907
+ (leadStartDate || leadEndDate) && /* @__PURE__ */ jsx2(Tooltip_default, { title: "Clear dates", children: /* @__PURE__ */ jsx2(IconButton_default, { size: "small", onClick: clearLeadDates, sx: { p: 0.5, color: "#7a8599" }, children: /* @__PURE__ */ jsx2(Clear_default, { sx: { fontSize: 16 } }) }) })
2853
2908
  ]
2854
2909
  }
2855
2910
  ),
@@ -2861,19 +2916,19 @@ var CampaignsContent = memo(function CampaignsContent2() {
2861
2916
  SDK_PERMISSIONS.CAMPAIGNS_MANAGE
2862
2917
  ],
2863
2918
  showFallback: false,
2864
- children: /* @__PURE__ */ jsx2(SDKButton, { variant: "primary", onClick: handleExport, disabled: leadsLoading || leadTotal === 0, startIcon: /* @__PURE__ */ jsx2(DownloadIcon, { sx: { fontSize: 15 } }), size: "small", sx: { height: 36 }, children: "Export Excel" })
2919
+ children: /* @__PURE__ */ jsx2(SDKButton, { variant: "primary", onClick: handleExport, disabled: leadsLoading || leadTotal === 0, startIcon: /* @__PURE__ */ jsx2(Download_default, { sx: { fontSize: 15 } }), size: "small", sx: { height: 36 }, children: "Export Excel" })
2865
2920
  }
2866
2921
  )
2867
2922
  ] })
2868
2923
  ] }),
2869
- /* @__PURE__ */ jsx2(Box, { sx: {
2924
+ /* @__PURE__ */ jsx2(Box_default, { sx: {
2870
2925
  overflowX: "auto",
2871
2926
  overflowY: "visible",
2872
2927
  WebkitOverflowScrolling: "touch",
2873
2928
  "&::-webkit-scrollbar": { height: 4 },
2874
2929
  "&::-webkit-scrollbar-thumb": { backgroundColor: "#ccc", borderRadius: 2 }
2875
- }, children: /* @__PURE__ */ jsxs(Table, { size: "small", sx: { minWidth: 980 }, children: [
2876
- /* @__PURE__ */ jsx2(TableHead, { children: /* @__PURE__ */ jsx2(TableRow, { sx: { backgroundColor: "#f1f1f1" }, children: [
2930
+ }, children: /* @__PURE__ */ jsxs(Table_default, { size: "small", sx: { minWidth: 980 }, children: [
2931
+ /* @__PURE__ */ jsx2(TableHead_default, { children: /* @__PURE__ */ jsx2(TableRow_default, { sx: { backgroundColor: "#f1f1f1" }, children: [
2877
2932
  "Number",
2878
2933
  "Status",
2879
2934
  "Priority",
@@ -2890,9 +2945,9 @@ var CampaignsContent = memo(function CampaignsContent2() {
2890
2945
  "Outcome",
2891
2946
  ...showVoicemail ? ["Voice Mail"] : [],
2892
2947
  "Actions"
2893
- ].map((col) => /* @__PURE__ */ jsx2(TableCell, { sx: __spreadValues(__spreadValues({}, headCellSx), col === "Actions" ? { textAlign: "center" } : {}), children: col }, col)) }) }),
2894
- /* @__PURE__ */ jsx2(TableBody, { children: leadsLoading ? /* @__PURE__ */ jsx2(TableRow, { children: /* @__PURE__ */ jsx2(TableCell, { colSpan: showVoicemail ? 16 : 15, align: "center", sx: { py: 4 }, children: /* @__PURE__ */ jsx2(CircularProgress, { size: 24, sx: { color: "#1A5F6C" } }) }) }) : leads.length === 0 ? /* @__PURE__ */ jsx2(TableRow, { children: /* @__PURE__ */ jsx2(
2895
- TableCell,
2948
+ ].map((col) => /* @__PURE__ */ jsx2(TableCell_default, { sx: __spreadValues(__spreadValues({}, headCellSx), col === "Actions" ? { textAlign: "center" } : {}), children: col }, col)) }) }),
2949
+ /* @__PURE__ */ jsx2(TableBody_default, { children: leadsLoading ? /* @__PURE__ */ jsx2(TableRow_default, { children: /* @__PURE__ */ jsx2(TableCell_default, { colSpan: showVoicemail ? 16 : 15, align: "center", sx: { py: 4 }, children: /* @__PURE__ */ jsx2(CircularProgress_default, { size: 24, sx: { color: "#1A5F6C" } }) }) }) : leads.length === 0 ? /* @__PURE__ */ jsx2(TableRow_default, { children: /* @__PURE__ */ jsx2(
2950
+ TableCell_default,
2896
2951
  {
2897
2952
  colSpan: showVoicemail ? 16 : 15,
2898
2953
  align: "center",
@@ -2910,25 +2965,25 @@ var CampaignsContent = memo(function CampaignsContent2() {
2910
2965
  const isDialable = isDialerEnabled && hasOutboundPermission && isAgentIdle && !isCompleted && !isInProgress && dialLoading !== lead.id;
2911
2966
  const dialTooltip = !isDialerEnabled ? "Dialer is not enabled" : !hasOutboundPermission ? "No outbound call permission" : isCompleted ? "Lead is completed" : isInProgress ? "Lead is in progress" : !isAgentIdle ? "Agent is not idle" : dialLoading === lead.id ? "Dialing\u2026" : `Call ${lead.phoneNumber}`;
2912
2967
  const { chip: prioChip, label: prioLabel } = leadPriorityChipSx(lead.priority);
2913
- return /* @__PURE__ */ jsxs(TableRow, { sx: tableRowSx, children: [
2914
- /* @__PURE__ */ jsx2(TableCell, { sx: bodyCellSx, children: lead.phoneNumber }),
2915
- /* @__PURE__ */ jsx2(TableCell, { sx: bodyCellSx, children: /* @__PURE__ */ jsx2(Chip, { label: lead.status || "pending", size: "small", sx: leadStatusChipSx(lead.status) }) }),
2916
- /* @__PURE__ */ jsx2(TableCell, { sx: bodyCellSx, children: /* @__PURE__ */ jsx2(Chip, { label: prioLabel, size: "small", sx: prioChip }) }),
2917
- /* @__PURE__ */ jsx2(TableCell, { sx: bodyCellSx, children: lead.source || "" }),
2918
- /* @__PURE__ */ jsx2(TableCell, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { maxWidth: 140, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }), children: /* @__PURE__ */ jsx2(Tooltip, { title: lead.originalCallId || "", children: /* @__PURE__ */ jsx2("span", { children: lead.originalCallId || "" }) }) }),
2919
- /* @__PURE__ */ jsx2(TableCell, { sx: bodyCellSx, children: lead.queueName || "" }),
2920
- /* @__PURE__ */ jsx2(TableCell, { sx: bodyCellSx, children: (_a2 = lead.attemptCount) != null ? _a2 : 0 }),
2921
- /* @__PURE__ */ jsx2(TableCell, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { whiteSpace: "nowrap" }), children: lead.createdAt ? new Date(lead.createdAt).toLocaleString() : "" }),
2922
- /* @__PURE__ */ jsx2(TableCell, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { whiteSpace: "nowrap" }), children: lead.lastAttemptAt ? new Date(lead.lastAttemptAt).toLocaleString() : "" }),
2923
- /* @__PURE__ */ jsx2(TableCell, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { whiteSpace: "nowrap" }), children: lead.nextAttemptAt ? new Date(lead.nextAttemptAt).toLocaleString() : "" }),
2924
- /* @__PURE__ */ jsx2(TableCell, { sx: bodyCellSx, children: lead.lastOutcome || "" }),
2925
- /* @__PURE__ */ jsx2(TableCell, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { whiteSpace: "nowrap" }), children: lead.completedAt ? new Date(lead.completedAt).toLocaleString() : "" }),
2926
- /* @__PURE__ */ jsx2(TableCell, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { maxWidth: 150, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }), children: lead.notes ? /* @__PURE__ */ jsx2(Tooltip, { title: lead.notes, arrow: true, placement: "top", children: /* @__PURE__ */ jsx2("span", { children: lead.notes }) }) : "" }),
2927
- /* @__PURE__ */ jsx2(TableCell, { sx: bodyCellSx, children: lead.lastReason || "" }),
2928
- showVoicemail && /* @__PURE__ */ jsx2(TableCell, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { minWidth: 180 }), children: lead.originalCallId ? /* @__PURE__ */ jsx2(CallRecording, { callUuid: lead.originalCallId, recordingPath: lead.voicemail, iconOnly: true }) : "" }),
2929
- /* @__PURE__ */ jsxs(TableCell, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { textAlign: "center", whiteSpace: "nowrap" }), children: [
2930
- /* @__PURE__ */ jsx2(Tooltip, { title: dialTooltip, children: /* @__PURE__ */ jsx2("span", { children: /* @__PURE__ */ jsx2(
2931
- IconButton,
2968
+ return /* @__PURE__ */ jsxs(TableRow_default, { sx: tableRowSx, children: [
2969
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: bodyCellSx, children: lead.phoneNumber }),
2970
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: bodyCellSx, children: /* @__PURE__ */ jsx2(Chip_default, { label: lead.status || "pending", size: "small", sx: leadStatusChipSx(lead.status) }) }),
2971
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: bodyCellSx, children: /* @__PURE__ */ jsx2(Chip_default, { label: prioLabel, size: "small", sx: prioChip }) }),
2972
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: bodyCellSx, children: lead.source || "" }),
2973
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { maxWidth: 140, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }), children: /* @__PURE__ */ jsx2(Tooltip_default, { title: lead.originalCallId || "", children: /* @__PURE__ */ jsx2("span", { children: lead.originalCallId || "" }) }) }),
2974
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: bodyCellSx, children: lead.queueName || "" }),
2975
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: bodyCellSx, children: (_a2 = lead.attemptCount) != null ? _a2 : 0 }),
2976
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { whiteSpace: "nowrap" }), children: lead.createdAt ? new Date(lead.createdAt).toLocaleString() : "" }),
2977
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { whiteSpace: "nowrap" }), children: lead.lastAttemptAt ? new Date(lead.lastAttemptAt).toLocaleString() : "" }),
2978
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { whiteSpace: "nowrap" }), children: lead.nextAttemptAt ? new Date(lead.nextAttemptAt).toLocaleString() : "" }),
2979
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: bodyCellSx, children: lead.lastOutcome || "" }),
2980
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { whiteSpace: "nowrap" }), children: lead.completedAt ? new Date(lead.completedAt).toLocaleString() : "" }),
2981
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { maxWidth: 150, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }), children: lead.notes ? /* @__PURE__ */ jsx2(Tooltip_default, { title: lead.notes, arrow: true, placement: "top", children: /* @__PURE__ */ jsx2("span", { children: lead.notes }) }) : "" }),
2982
+ /* @__PURE__ */ jsx2(TableCell_default, { sx: bodyCellSx, children: lead.lastReason || "" }),
2983
+ showVoicemail && /* @__PURE__ */ jsx2(TableCell_default, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { minWidth: 180 }), children: lead.originalCallId ? /* @__PURE__ */ jsx2(CallRecording, { callUuid: lead.originalCallId, recordingPath: lead.voicemail, iconOnly: true }) : "" }),
2984
+ /* @__PURE__ */ jsxs(TableCell_default, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { textAlign: "center", whiteSpace: "nowrap" }), children: [
2985
+ /* @__PURE__ */ jsx2(Tooltip_default, { title: dialTooltip, children: /* @__PURE__ */ jsx2("span", { children: /* @__PURE__ */ jsx2(
2986
+ IconButton_default,
2932
2987
  {
2933
2988
  size: "small",
2934
2989
  onClick: () => handleDialPreview(lead.id),
@@ -2945,11 +3000,11 @@ var CampaignsContent = memo(function CampaignsContent2() {
2945
3000
  boxShadow: isDialable ? "0 0 8px rgba(67,160,71,0.5)" : "none"
2946
3001
  }
2947
3002
  },
2948
- children: dialLoading === lead.id ? /* @__PURE__ */ jsx2(CircularProgress, { size: 16 }) : /* @__PURE__ */ jsx2(PhoneIcon, { sx: { fontSize: 18 } })
3003
+ children: dialLoading === lead.id ? /* @__PURE__ */ jsx2(CircularProgress_default, { size: 16 }) : /* @__PURE__ */ jsx2(Phone_default, { sx: { fontSize: 18 } })
2949
3004
  }
2950
3005
  ) }) }),
2951
- /* @__PURE__ */ jsx2(Tooltip, { title: lead.latestCallId ? "View call details" : "No call data available", children: /* @__PURE__ */ jsx2("span", { children: /* @__PURE__ */ jsx2(
2952
- IconButton,
3006
+ /* @__PURE__ */ jsx2(Tooltip_default, { title: lead.latestCallId ? "View call details" : "No call data available", children: /* @__PURE__ */ jsx2("span", { children: /* @__PURE__ */ jsx2(
3007
+ IconButton_default,
2953
3008
  {
2954
3009
  size: "small",
2955
3010
  onClick: () => handleViewCallData(lead),
@@ -2959,7 +3014,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
2959
3014
  color: lead.latestCallId ? "#1A5F6C" : "#bdbdbd",
2960
3015
  "&:hover": { backgroundColor: "transparent" }
2961
3016
  },
2962
- children: /* @__PURE__ */ jsx2(VisibilityOutlinedIcon, { sx: { fontSize: 18 } })
3017
+ children: /* @__PURE__ */ jsx2(VisibilityOutlined_default, { sx: { fontSize: 18 } })
2963
3018
  }
2964
3019
  ) }) }),
2965
3020
  /* @__PURE__ */ jsx2(
@@ -2969,8 +3024,8 @@ var CampaignsContent = memo(function CampaignsContent2() {
2969
3024
  SDK_PERMISSIONS.CAMPAIGNS_LEADS_DELETE
2970
3025
  ],
2971
3026
  showFallback: false,
2972
- children: /* @__PURE__ */ jsx2(Tooltip, { title: deleteDisabled ? `Cannot delete \u2014 status is ${leadStatus.toLowerCase().replace("_", " ")}` : `Delete lead ${lead.phoneNumber}`, children: /* @__PURE__ */ jsx2("span", { children: /* @__PURE__ */ jsx2(
2973
- IconButton,
3027
+ children: /* @__PURE__ */ jsx2(Tooltip_default, { title: deleteDisabled ? `Cannot delete \u2014 status is ${leadStatus.toLowerCase().replace("_", " ")}` : `Delete lead ${lead.phoneNumber}`, children: /* @__PURE__ */ jsx2("span", { children: /* @__PURE__ */ jsx2(
3028
+ IconButton_default,
2974
3029
  {
2975
3030
  size: "small",
2976
3031
  onClick: () => {
@@ -2991,7 +3046,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
2991
3046
  boxShadow: deleteDisabled ? "none" : "0 0 8px rgba(211,47,47,0.5)"
2992
3047
  }
2993
3048
  },
2994
- children: /* @__PURE__ */ jsx2(DeleteIcon, { sx: { fontSize: 18 } })
3049
+ children: /* @__PURE__ */ jsx2(Delete_default, { sx: { fontSize: 18 } })
2995
3050
  }
2996
3051
  ) }) })
2997
3052
  }
@@ -3001,7 +3056,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
3001
3056
  }) })
3002
3057
  ] }) }),
3003
3058
  leads.length > 0 && /* @__PURE__ */ jsx2(
3004
- TablePagination,
3059
+ TablePagination_default,
3005
3060
  {
3006
3061
  component: "div",
3007
3062
  count: leadTotal,
@@ -3126,4 +3181,4 @@ var campaigns_default = Campaigns;
3126
3181
  export {
3127
3182
  campaigns_default as default
3128
3183
  };
3129
- //# sourceMappingURL=campaigns-JZE22SIM.mjs.map
3184
+ //# sourceMappingURL=campaigns-5PVHXBSD.mjs.map