ahs-cti 0.0.3 → 0.0.5

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 (73) hide show
  1. package/dist/agentDetailReport-F7XZLVVO.mjs +16 -0
  2. package/dist/{agentPerformanceReport-F52KNRKW.mjs → agentPerformanceReport-U2QGVTXF.mjs} +31 -15
  3. package/dist/agentPerformanceReport-U2QGVTXF.mjs.map +1 -0
  4. package/dist/{auditReport-CJ23LXIZ.mjs → auditReport-DEVQDTDT.mjs} +4 -3
  5. package/dist/{auditReport-CJ23LXIZ.mjs.map → auditReport-DEVQDTDT.mjs.map} +1 -1
  6. package/dist/{callHistory-ZA3SCD7K.mjs → callHistory-MRBBY3UO.mjs} +49 -20
  7. package/dist/callHistory-MRBBY3UO.mjs.map +1 -0
  8. package/dist/{campaigns-PIXRNMM4.mjs → campaigns-ERO3QM6I.mjs} +246 -109
  9. package/dist/campaigns-ERO3QM6I.mjs.map +1 -0
  10. package/dist/{cdrReport-7TKZERRX.mjs → cdrReport-EZNOCELK.mjs} +77 -30
  11. package/dist/cdrReport-EZNOCELK.mjs.map +1 -0
  12. package/dist/chunk-3DOSR6LQ.mjs +14 -0
  13. package/dist/chunk-3DOSR6LQ.mjs.map +1 -0
  14. package/dist/chunk-53DYH64M.mjs +422 -0
  15. package/dist/chunk-53DYH64M.mjs.map +1 -0
  16. package/dist/{chunk-VZCHJLAW.mjs → chunk-5FSMIU5K.mjs} +2 -2
  17. package/dist/{chunk-NUYGQI7D.mjs → chunk-6MURUWDX.mjs} +39 -14
  18. package/dist/chunk-6MURUWDX.mjs.map +1 -0
  19. package/dist/{chunk-X376SOIZ.mjs → chunk-AJQBR3AZ.mjs} +14279 -9170
  20. package/dist/chunk-AJQBR3AZ.mjs.map +1 -0
  21. package/dist/{chunk-RZZQ42MG.mjs → chunk-BVQNDAS6.mjs} +6 -3
  22. package/dist/{chunk-RZZQ42MG.mjs.map → chunk-BVQNDAS6.mjs.map} +1 -1
  23. package/dist/chunk-DXZIYCNQ.mjs +14 -0
  24. package/dist/chunk-DXZIYCNQ.mjs.map +1 -0
  25. package/dist/{chunk-L4LLUMYA.mjs → chunk-ICGEHYJL.mjs} +11 -3
  26. package/dist/chunk-ICGEHYJL.mjs.map +1 -0
  27. package/dist/{chunk-JAAPNDP2.mjs → chunk-ISQBOS5Q.mjs} +49 -45
  28. package/dist/chunk-ISQBOS5Q.mjs.map +1 -0
  29. package/dist/chunk-MBHP7UOP.mjs +14 -0
  30. package/dist/chunk-MBHP7UOP.mjs.map +1 -0
  31. package/dist/chunk-MBXHRFGP.mjs +14 -0
  32. package/dist/chunk-MBXHRFGP.mjs.map +1 -0
  33. package/dist/chunk-MFZKONNR.mjs +14 -0
  34. package/dist/chunk-MFZKONNR.mjs.map +1 -0
  35. package/dist/{chunk-DBSNJ3QH.mjs → chunk-Q7FIRWF2.mjs} +9 -2
  36. package/dist/chunk-Q7FIRWF2.mjs.map +1 -0
  37. package/dist/{chunk-BU6FMNBY.mjs → chunk-QPOHVXUK.mjs} +2 -2
  38. package/dist/chunk-RSL5OBRQ.mjs +28 -0
  39. package/dist/chunk-RSL5OBRQ.mjs.map +1 -0
  40. package/dist/chunk-XA5SCAZJ.mjs +14 -0
  41. package/dist/chunk-XA5SCAZJ.mjs.map +1 -0
  42. package/dist/chunk-XMRM5VR4.mjs +119 -0
  43. package/dist/chunk-XMRM5VR4.mjs.map +1 -0
  44. package/dist/{chunk-NQL4VODC.mjs → chunk-YFW47Y76.mjs} +12 -4
  45. package/dist/chunk-YFW47Y76.mjs.map +1 -0
  46. package/dist/index.js +7728 -6874
  47. package/dist/index.js.map +1 -1
  48. package/dist/index.mjs +231 -106
  49. package/dist/index.mjs.map +1 -1
  50. package/dist/{liveStatus-IQIEZZE5.mjs → liveStatus-F6AKCC27.mjs} +4 -4
  51. package/dist/{loginReport-A4GUPW3G.mjs → loginReport-MWTI4G6O.mjs} +245 -73
  52. package/dist/loginReport-MWTI4G6O.mjs.map +1 -0
  53. package/dist/{managementDashboard-345DQMNO.mjs → managementDashboard-6UBOCLBA.mjs} +19 -12
  54. package/dist/{managementDashboard-345DQMNO.mjs.map → managementDashboard-6UBOCLBA.mjs.map} +1 -1
  55. package/package.json +1 -1
  56. package/dist/agentDetailReport-CP7WYOIX.mjs +0 -12
  57. package/dist/agentPerformanceReport-F52KNRKW.mjs.map +0 -1
  58. package/dist/callHistory-ZA3SCD7K.mjs.map +0 -1
  59. package/dist/campaigns-PIXRNMM4.mjs.map +0 -1
  60. package/dist/cdrReport-7TKZERRX.mjs.map +0 -1
  61. package/dist/chunk-DBSNJ3QH.mjs.map +0 -1
  62. package/dist/chunk-GC3WM33W.mjs +0 -5783
  63. package/dist/chunk-GC3WM33W.mjs.map +0 -1
  64. package/dist/chunk-JAAPNDP2.mjs.map +0 -1
  65. package/dist/chunk-L4LLUMYA.mjs.map +0 -1
  66. package/dist/chunk-NQL4VODC.mjs.map +0 -1
  67. package/dist/chunk-NUYGQI7D.mjs.map +0 -1
  68. package/dist/chunk-X376SOIZ.mjs.map +0 -1
  69. package/dist/loginReport-A4GUPW3G.mjs.map +0 -1
  70. /package/dist/{agentDetailReport-CP7WYOIX.mjs.map → agentDetailReport-F7XZLVVO.mjs.map} +0 -0
  71. /package/dist/{chunk-VZCHJLAW.mjs.map → chunk-5FSMIU5K.mjs.map} +0 -0
  72. /package/dist/{chunk-BU6FMNBY.mjs.map → chunk-QPOHVXUK.mjs.map} +0 -0
  73. /package/dist/{liveStatus-IQIEZZE5.mjs.map → liveStatus-F6AKCC27.mjs.map} +0 -0
@@ -1,16 +1,35 @@
1
1
  import {
2
+ Pause_default,
2
3
  useGetCallerData
3
- } from "./chunk-L4LLUMYA.mjs";
4
+ } from "./chunk-ICGEHYJL.mjs";
4
5
  import {
5
6
  SDKPageHeader
6
- } from "./chunk-RZZQ42MG.mjs";
7
+ } from "./chunk-BVQNDAS6.mjs";
8
+ import {
9
+ Phone_default
10
+ } from "./chunk-MBHP7UOP.mjs";
7
11
  import {
8
12
  getRecordingByCall
9
- } from "./chunk-VZCHJLAW.mjs";
13
+ } from "./chunk-5FSMIU5K.mjs";
14
+ import {
15
+ Download_default
16
+ } from "./chunk-3DOSR6LQ.mjs";
10
17
  import {
11
18
  SDKPermissionGuard,
12
19
  useSDKPermissions
13
- } from "./chunk-NQL4VODC.mjs";
20
+ } from "./chunk-YFW47Y76.mjs";
21
+ import {
22
+ PlayArrow_default
23
+ } from "./chunk-MBXHRFGP.mjs";
24
+ import {
25
+ AdapterDayjs,
26
+ DateRangePicker,
27
+ LocalizationProvider
28
+ } from "./chunk-AJQBR3AZ.mjs";
29
+ import {
30
+ Refresh_default,
31
+ Search_default
32
+ } from "./chunk-RSL5OBRQ.mjs";
14
33
  import {
15
34
  SDKProvider,
16
35
  useToast
@@ -19,9 +38,10 @@ import {
19
38
  END_POINT,
20
39
  SDK_PERMISSIONS,
21
40
  axios_default,
41
+ createSvgIcon,
22
42
  deepFindArray,
23
43
  deepFindTotal
24
- } from "./chunk-DBSNJ3QH.mjs";
44
+ } from "./chunk-Q7FIRWF2.mjs";
25
45
  import {
26
46
  __spreadProps,
27
47
  __spreadValues
@@ -56,21 +76,60 @@ import {
56
76
  Typography,
57
77
  useTheme as useTheme2
58
78
  } from "@mui/material";
59
- import AddIcon from "@mui/icons-material/Add";
60
- import ArchiveIcon from "@mui/icons-material/Archive";
61
- import ChevronLeftIcon from "@mui/icons-material/ChevronLeft";
62
- import ChevronRightIcon from "@mui/icons-material/ChevronRight";
63
- import DeleteIcon from "@mui/icons-material/Delete";
64
- import DownloadIcon from "@mui/icons-material/Download";
65
- import EditIcon from "@mui/icons-material/Edit";
66
- import PauseIcon from "@mui/icons-material/Pause";
67
- import PhoneIcon from "@mui/icons-material/Phone";
68
- import PlayArrowIcon from "@mui/icons-material/PlayArrow";
69
- import RefreshIcon from "@mui/icons-material/Refresh";
70
- import SearchIcon from "@mui/icons-material/Search";
71
- import SettingsIcon from "@mui/icons-material/Settings";
72
- import UploadFileIcon from "@mui/icons-material/UploadFile";
73
- 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");
74
133
 
75
134
  // call-control-sdk/lib/components/SDKButton.tsx
76
135
  import { Button, useTheme } from "@mui/material";
@@ -229,6 +288,8 @@ function useLeads() {
229
288
  if ((params == null ? void 0 : params.pageSize) != null) qs.append("pageSize", String(params.pageSize));
230
289
  if (params == null ? void 0 : params.lead_status) qs.append("lead_status", params.lead_status);
231
290
  if (params == null ? void 0 : params.search) qs.append("search", params.search);
291
+ if (params == null ? void 0 : params.start_date) qs.append("start_date", params.start_date);
292
+ if (params == null ? void 0 : params.end_date) qs.append("end_date", params.end_date);
232
293
  const qsStr = qs.toString();
233
294
  const url = `${END_POINT.CAMPAIGNS_LEADS(campaignId)}${qsStr ? `?${qsStr}` : ""}`;
234
295
  const res = await axios_default.get(url);
@@ -343,6 +404,12 @@ function useQueues() {
343
404
  return { queues, loading, fetchQueues, createQueue };
344
405
  }
345
406
 
407
+ // node_modules/@mui/icons-material/Clear.mjs
408
+ import { jsx as _jsx10 } from "react/jsx-runtime";
409
+ var Clear_default = createSvgIcon(/* @__PURE__ */ _jsx10("path", {
410
+ 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"
411
+ }), "Clear");
412
+
346
413
  // call-control-sdk/lib/pages/campaigns/types.ts
347
414
  var CAMPAIGN_TYPES = ["OUTBOUND_CAMPAIGN", "ABANDONED_CALLBACK"];
348
415
  var DIALING_MODES_MAP = {
@@ -1007,7 +1074,7 @@ function QueueLinkingTab({
1007
1074
  ),
1008
1075
  /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", justifyContent: "space-between", mb: 2 }, children: [
1009
1076
  /* @__PURE__ */ jsx2(Typography, { sx: sectionTitleSx, children: "Linked Queues" }),
1010
- /* @__PURE__ */ jsx2(SDKButton, { startIcon: /* @__PURE__ */ jsx2(AddIcon, {}), onClick: () => setCreateOpen(true), children: "Create New Queue" })
1077
+ /* @__PURE__ */ jsx2(SDKButton, { startIcon: /* @__PURE__ */ jsx2(Add_default, {}), onClick: () => setCreateOpen(true), children: "Create New Queue" })
1011
1078
  ] }),
1012
1079
  /* @__PURE__ */ jsxs(Box, { sx: {
1013
1080
  display: "flex",
@@ -1260,7 +1327,7 @@ function LeadsTabInDialog({
1260
1327
  /* @__PURE__ */ jsx2(Typography, { sx: sectionTitleSx, children: "Upload Leads from File" }),
1261
1328
  /* @__PURE__ */ jsxs(Paper, { variant: "outlined", sx: { p: 2, mb: 2.5, borderRadius: 2 }, children: [
1262
1329
  /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 1.5, flexWrap: "wrap" }, children: [
1263
- /* @__PURE__ */ jsx2(SDKButton, { variant: "outlined", startIcon: /* @__PURE__ */ jsx2(UploadFileIcon, {}), onClick: () => {
1330
+ /* @__PURE__ */ jsx2(SDKButton, { variant: "outlined", startIcon: /* @__PURE__ */ jsx2(UploadFile_default, {}), onClick: () => {
1264
1331
  var _a2;
1265
1332
  return (_a2 = uploadRef.current) == null ? void 0 : _a2.click();
1266
1333
  }, children: "Choose File" }),
@@ -1296,7 +1363,7 @@ function LeadsTabInDialog({
1296
1363
  children: "Clear"
1297
1364
  }
1298
1365
  ),
1299
- /* @__PURE__ */ jsx2(SDKButton, { variant: "outlined", startIcon: /* @__PURE__ */ jsx2(DownloadIcon, {}), onClick: handleDownload, children: "Sample Template" })
1366
+ /* @__PURE__ */ jsx2(SDKButton, { variant: "outlined", startIcon: /* @__PURE__ */ jsx2(Download_default, {}), onClick: handleDownload, children: "Sample Template" })
1300
1367
  ] }),
1301
1368
  /* @__PURE__ */ jsx2(Box, { sx: { display: "flex", justifyContent: "flex-end", mt: 1.5 }, children: /* @__PURE__ */ jsx2(
1302
1369
  SDKButton,
@@ -1322,7 +1389,7 @@ function LeadsTabInDialog({
1322
1389
  onChange: (e) => setSearch(e.target.value),
1323
1390
  placeholder: "Search...",
1324
1391
  sx: { width: 200, fontSize: "0.85rem", height: 34, borderRadius: "20px" },
1325
- startAdornment: /* @__PURE__ */ jsx2(InputAdornment, { position: "start", children: /* @__PURE__ */ jsx2(SearchIcon, { sx: { fontSize: 16, color: "#aaa" } }) })
1392
+ startAdornment: /* @__PURE__ */ jsx2(InputAdornment, { position: "start", children: /* @__PURE__ */ jsx2(Search_default, { sx: { fontSize: 16, color: "#aaa" } }) })
1326
1393
  }
1327
1394
  )
1328
1395
  ] }),
@@ -1689,6 +1756,10 @@ var fmtRecordingDuration = (s) => {
1689
1756
  const sec = Math.floor(s % 60);
1690
1757
  return `${m}:${sec.toString().padStart(2, "0")}`;
1691
1758
  };
1759
+ var activePlayers = /* @__PURE__ */ new Set();
1760
+ var notifyPlay = (activeId) => {
1761
+ activePlayers.forEach((fn) => fn(activeId));
1762
+ };
1692
1763
  function CallRecording({ callUuid, recordingPath, iconOnly = false }) {
1693
1764
  const [audioUrl, setAudioUrl] = useState2(null);
1694
1765
  const [loading, setLoading] = useState2(false);
@@ -1697,8 +1768,26 @@ function CallRecording({ callUuid, recordingPath, iconOnly = false }) {
1697
1768
  const [currentSec, setCurrentSec] = useState2(0);
1698
1769
  const unavailable = !recordingPath;
1699
1770
  const totalLabel = durationSec != null ? fmtRecordingDuration(durationSec) : "";
1771
+ const closePlayer = useCallback2(() => {
1772
+ setAudioUrl((prev) => {
1773
+ if (prev && prev.startsWith("blob:")) URL.revokeObjectURL(prev);
1774
+ return null;
1775
+ });
1776
+ setCurrentSec(0);
1777
+ setDurationSec(null);
1778
+ }, []);
1779
+ useEffect(() => {
1780
+ const onPlay = (activeId) => {
1781
+ if (activeId !== callUuid) closePlayer();
1782
+ };
1783
+ activePlayers.add(onPlay);
1784
+ return () => {
1785
+ activePlayers.delete(onPlay);
1786
+ };
1787
+ }, [callUuid, closePlayer]);
1700
1788
  const handlePlay = async () => {
1701
1789
  if (audioUrl) return;
1790
+ notifyPlay(callUuid);
1702
1791
  try {
1703
1792
  setLoading(true);
1704
1793
  setError(false);
@@ -1733,11 +1822,7 @@ function CallRecording({ callUuid, recordingPath, iconOnly = false }) {
1733
1822
  src: audioUrl,
1734
1823
  onLoadedMetadata: (e) => setDurationSec(e.currentTarget.duration),
1735
1824
  onTimeUpdate: (e) => setCurrentSec(e.currentTarget.currentTime),
1736
- onEnded: () => {
1737
- URL.revokeObjectURL(audioUrl);
1738
- setAudioUrl(null);
1739
- setCurrentSec(0);
1740
- },
1825
+ onEnded: closePlayer,
1741
1826
  style: { height: 32, maxWidth: 170 }
1742
1827
  }
1743
1828
  ),
@@ -1746,26 +1831,23 @@ function CallRecording({ callUuid, recordingPath, iconOnly = false }) {
1746
1831
  " / ",
1747
1832
  totalLabel
1748
1833
  ] }),
1749
- /* @__PURE__ */ jsx2(Tooltip, { title: "Download", children: /* @__PURE__ */ jsx2(IconButton, { size: "small", onClick: handleDownload, sx: { color: "#1565c0" }, children: /* @__PURE__ */ jsx2(DownloadIcon, { sx: { fontSize: 16 } }) }) })
1834
+ /* @__PURE__ */ jsx2(Tooltip, { title: "Download", children: /* @__PURE__ */ jsx2(IconButton, { size: "small", onClick: handleDownload, sx: { color: "#1565c0" }, children: /* @__PURE__ */ jsx2(Download_default, { sx: { fontSize: 16 } }) }) })
1750
1835
  ] });
1751
1836
  }
1752
- 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 } }) }) }) });
1837
+ 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(PlayArrow_default, { sx: { fontSize: 18 } }) }) }) });
1753
1838
  }
1754
1839
  if (unavailable) {
1755
1840
  return /* @__PURE__ */ jsx2(Typography, { sx: { fontSize: "0.82rem", color: "#999" }, fontFamily: "poppins, Arial, sans-serif", children: "No recording available for this call." });
1756
1841
  }
1757
1842
  if (audioUrl) {
1758
1843
  return /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
1759
- /* @__PURE__ */ jsx2("audio", { controls: true, autoPlay: true, src: audioUrl, onEnded: () => {
1760
- URL.revokeObjectURL(audioUrl);
1761
- setAudioUrl(null);
1762
- }, style: { height: 38, flex: 1 } }),
1763
- /* @__PURE__ */ jsx2(Tooltip, { title: "Download", children: /* @__PURE__ */ jsx2(IconButton, { size: "small", onClick: handleDownload, sx: { color: "#1565c0" }, children: /* @__PURE__ */ jsx2(DownloadIcon, { sx: { fontSize: 18 } }) }) })
1844
+ /* @__PURE__ */ jsx2("audio", { controls: true, autoPlay: true, src: audioUrl, onEnded: closePlayer, style: { height: 38, flex: 1 } }),
1845
+ /* @__PURE__ */ jsx2(Tooltip, { title: "Download", children: /* @__PURE__ */ jsx2(IconButton, { size: "small", onClick: handleDownload, sx: { color: "#1565c0" }, children: /* @__PURE__ */ jsx2(Download_default, { sx: { fontSize: 18 } }) }) })
1764
1846
  ] });
1765
1847
  }
1766
1848
  return /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
1767
- /* @__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" }),
1768
- /* @__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 } }) }) }) })
1849
+ /* @__PURE__ */ jsx2(SDKButton, { variant: "outlined", onClick: handlePlay, disabled: loading || error, startIcon: loading ? /* @__PURE__ */ jsx2(CircularProgress, { size: 16, color: "inherit" }) : /* @__PURE__ */ jsx2(PlayArrow_default, { sx: { fontSize: 16 } }), children: error ? "Recording unavailable" : "Play recording" }),
1850
+ /* @__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(Download_default, { sx: { fontSize: 18 } }) }) }) })
1769
1851
  ] });
1770
1852
  }
1771
1853
  function CallDataDialog({
@@ -1910,7 +1992,7 @@ function ImportLeadsDialog({
1910
1992
  SDKButton,
1911
1993
  {
1912
1994
  variant: "outlined",
1913
- startIcon: /* @__PURE__ */ jsx2(UploadFileIcon, {}),
1995
+ startIcon: /* @__PURE__ */ jsx2(UploadFile_default, {}),
1914
1996
  onClick: () => {
1915
1997
  var _a;
1916
1998
  return (_a = fileRef.current) == null ? void 0 : _a.click();
@@ -1947,7 +2029,7 @@ function ImportLeadsDialog({
1947
2029
  }
1948
2030
  )
1949
2031
  ] }),
1950
- /* @__PURE__ */ jsx2(SDKButton, { variant: "outlined", startIcon: /* @__PURE__ */ jsx2(DownloadIcon, {}), onClick: onDownloadTemplate, children: "Download Template" })
2032
+ /* @__PURE__ */ jsx2(SDKButton, { variant: "outlined", startIcon: /* @__PURE__ */ jsx2(Download_default, {}), onClick: onDownloadTemplate, children: "Download Template" })
1951
2033
  ] }),
1952
2034
  /* @__PURE__ */ jsxs(Box, { sx: dialogFooterSx, children: [
1953
2035
  /* @__PURE__ */ jsx2(SDKButton, { variant: "cancel", onClick: onClose, children: "Cancel" }),
@@ -2032,6 +2114,8 @@ var CampaignsContent = memo(function CampaignsContent2() {
2032
2114
  const [leadSearch, setLeadSearch] = useState2("");
2033
2115
  const [debouncedSearch, setDebouncedSearch] = useState2("");
2034
2116
  const [leadStatusFilter, setLeadStatusFilter] = useState2("All states");
2117
+ const [leadStartDate, setLeadStartDate] = useState2(null);
2118
+ const [leadEndDate, setLeadEndDate] = useState2(null);
2035
2119
  const debounceRef = useRef(null);
2036
2120
  const [addLeadOpen, setAddLeadOpen] = useState2(false);
2037
2121
  const [addLeadData, setAddLeadData] = useState2({ phoneNumber: "", callerName: "", priority: 5 });
@@ -2079,6 +2163,8 @@ var CampaignsContent = memo(function CampaignsContent2() {
2079
2163
  setLeadStatusFilter("All states");
2080
2164
  setLeadSearch("");
2081
2165
  setDebouncedSearch("");
2166
+ setLeadStartDate(null);
2167
+ setLeadEndDate(null);
2082
2168
  setLeadPage(0);
2083
2169
  setSelectedId(id);
2084
2170
  }, [selectedId]);
@@ -2098,18 +2184,27 @@ var CampaignsContent = memo(function CampaignsContent2() {
2098
2184
  page: 1,
2099
2185
  pageSize: leadRowsPerPage,
2100
2186
  lead_status: leadStatusFilter !== "All states" ? leadStatusFilter : void 0,
2101
- search: debouncedSearch || void 0
2187
+ search: debouncedSearch || void 0,
2188
+ start_date: leadStartDate ? leadStartDate.format("YYYY-MM-DDTHH:mm:ss") : void 0,
2189
+ end_date: leadEndDate ? leadEndDate.format("YYYY-MM-DDTHH:mm:ss") : void 0
2102
2190
  });
2103
- }, [selectedId, leadRowsPerPage, leadStatusFilter, debouncedSearch, fetchLeads]);
2191
+ }, [selectedId, leadRowsPerPage, leadStatusFilter, debouncedSearch, leadStartDate, leadEndDate, fetchLeads]);
2104
2192
  const refetchLeads = useCallback2((page = leadPage, silent = false) => {
2105
2193
  if (!selectedId) return;
2106
2194
  fetchLeads(selectedId, {
2107
2195
  page: page + 1,
2108
2196
  pageSize: leadRowsPerPage,
2109
2197
  lead_status: leadStatusFilter !== "All states" ? leadStatusFilter : void 0,
2110
- search: debouncedSearch || void 0
2198
+ search: debouncedSearch || void 0,
2199
+ start_date: leadStartDate ? leadStartDate.format("YYYY-MM-DDTHH:mm:ss") : void 0,
2200
+ end_date: leadEndDate ? leadEndDate.format("YYYY-MM-DDTHH:mm:ss") : void 0
2111
2201
  }, { silent });
2112
- }, [selectedId, leadPage, leadRowsPerPage, leadStatusFilter, debouncedSearch, fetchLeads]);
2202
+ }, [selectedId, leadPage, leadRowsPerPage, leadStatusFilter, debouncedSearch, leadStartDate, leadEndDate, fetchLeads]);
2203
+ const clearLeadDates = () => {
2204
+ setLeadStartDate(null);
2205
+ setLeadEndDate(null);
2206
+ setLeadPage(0);
2207
+ };
2113
2208
  useEffect(() => {
2114
2209
  if (!selectedId) return;
2115
2210
  const intervalId = setInterval(() => {
@@ -2314,7 +2409,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
2314
2409
  /* @__PURE__ */ jsx2(
2315
2410
  SDKButton,
2316
2411
  {
2317
- startIcon: /* @__PURE__ */ jsx2(RefreshIcon, {}),
2412
+ startIcon: /* @__PURE__ */ jsx2(Refresh_default, {}),
2318
2413
  onClick: () => {
2319
2414
  fetchCampaigns();
2320
2415
  if (selectedId) refetchLeads();
@@ -2330,7 +2425,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
2330
2425
  SDK_PERMISSIONS.CAMPAIGNS_MANAGE
2331
2426
  ],
2332
2427
  showFallback: false,
2333
- children: /* @__PURE__ */ jsx2(SDKButton, { startIcon: /* @__PURE__ */ jsx2(AddIcon, {}), onClick: handleOpenCreate, children: "New Campaign" })
2428
+ children: /* @__PURE__ */ jsx2(SDKButton, { startIcon: /* @__PURE__ */ jsx2(Add_default, {}), onClick: handleOpenCreate, children: "New Campaign" })
2334
2429
  }
2335
2430
  )
2336
2431
  ] })
@@ -2375,7 +2470,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
2375
2470
  flexShrink: 0,
2376
2471
  "&:hover": { backgroundColor: "#e0eff1" }
2377
2472
  },
2378
- children: /* @__PURE__ */ jsx2(ChevronRightIcon, { fontSize: "small" })
2473
+ children: /* @__PURE__ */ jsx2(ChevronRight_default, { fontSize: "small" })
2379
2474
  }
2380
2475
  ) }),
2381
2476
  visibleCampaigns.map((c, idx) => {
@@ -2439,7 +2534,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
2439
2534
  size: "small",
2440
2535
  onClick: () => setCampaignListCollapsed(true),
2441
2536
  sx: { p: 0.5, color: "#666" },
2442
- children: /* @__PURE__ */ jsx2(ChevronLeftIcon, { fontSize: "small" })
2537
+ children: /* @__PURE__ */ jsx2(ChevronLeft_default, { fontSize: "small" })
2443
2538
  }
2444
2539
  ) }),
2445
2540
  /* @__PURE__ */ jsx2(Typography, { sx: { fontWeight: 700, fontSize: "0.95rem", color: "#333", fontFamily: "poppins, Arial, sans-serif" }, children: "Campaigns" })
@@ -2507,7 +2602,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
2507
2602
  backgroundColor: "#fafafa"
2508
2603
  },
2509
2604
  children: /* @__PURE__ */ jsxs(Box, { sx: { textAlign: "center" }, children: [
2510
- /* @__PURE__ */ jsx2(SettingsIcon, { sx: { fontSize: 40, color: "#ccc", mb: 1 } }),
2605
+ /* @__PURE__ */ jsx2(Settings_default, { sx: { fontSize: 40, color: "#ccc", mb: 1 } }),
2511
2606
  /* @__PURE__ */ jsx2(Typography, { sx: { fontSize: "0.95rem", color: "#999", fontFamily: "poppins, Arial, sans-serif" }, children: "Select a campaign to view details" })
2512
2607
  ] })
2513
2608
  }
@@ -2548,7 +2643,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
2548
2643
  SDKButton,
2549
2644
  {
2550
2645
  variant: "outlined",
2551
- startIcon: /* @__PURE__ */ jsx2(EditIcon, {}),
2646
+ startIcon: /* @__PURE__ */ jsx2(Edit_default, {}),
2552
2647
  onClick: () => handleOpenEdit(sc),
2553
2648
  children: "Edit"
2554
2649
  }
@@ -2566,7 +2661,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
2566
2661
  children: /* @__PURE__ */ jsx2(
2567
2662
  SDKButton,
2568
2663
  {
2569
- startIcon: /* @__PURE__ */ jsx2(PlayArrowIcon, {}),
2664
+ startIcon: /* @__PURE__ */ jsx2(PlayArrow_default, {}),
2570
2665
  onClick: () => handleStart(sc),
2571
2666
  sx: { backgroundColor: "#4caf50", "&:hover": { backgroundColor: "#388e3c" } },
2572
2667
  children: "Start"
@@ -2585,7 +2680,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
2585
2680
  children: /* @__PURE__ */ jsx2(
2586
2681
  SDKButton,
2587
2682
  {
2588
- startIcon: /* @__PURE__ */ jsx2(PauseIcon, {}),
2683
+ startIcon: /* @__PURE__ */ jsx2(Pause_default, {}),
2589
2684
  onClick: () => handlePause(sc),
2590
2685
  sx: { backgroundColor: "#ff9800", boxShadow: "0 2px 8px rgba(255,152,0,0.25)", "&:hover": { backgroundColor: "#f57c00" } },
2591
2686
  children: "Pause"
@@ -2605,7 +2700,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
2605
2700
  SDKButton,
2606
2701
  {
2607
2702
  variant: "danger",
2608
- startIcon: /* @__PURE__ */ jsx2(ArchiveIcon, {}),
2703
+ startIcon: /* @__PURE__ */ jsx2(Archive_default, {}),
2609
2704
  onClick: () => {
2610
2705
  setArchiveTarget(sc);
2611
2706
  setArchiveOpen(true);
@@ -2714,25 +2809,105 @@ var CampaignsContent = memo(function CampaignsContent2() {
2714
2809
  children: [
2715
2810
  /* @__PURE__ */ jsxs(Box, { sx: {
2716
2811
  display: "flex",
2717
- alignItems: { xs: "flex-start", sm: "center" },
2718
- justifyContent: "space-between",
2719
- flexDirection: { xs: "column", sm: "row" },
2720
- gap: 1,
2812
+ flexDirection: "column",
2813
+ gap: 1.25,
2721
2814
  px: { xs: 1.5, sm: 2 },
2722
2815
  py: 1.5,
2723
2816
  borderBottom: "1px solid #eee",
2724
2817
  backgroundColor: "#fafafa"
2725
2818
  }, children: [
2726
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 1, flexWrap: "wrap" }, children: [
2727
- /* @__PURE__ */ jsx2(Typography, { sx: { fontWeight: 700, fontSize: "1rem", color: "#1a1a1a", fontFamily: "poppins, Arial, sans-serif" }, children: "Leads" }),
2728
- /* @__PURE__ */ jsx2(
2729
- SDKPermissionGuard,
2819
+ /* @__PURE__ */ jsxs(Box, { sx: {
2820
+ display: "flex",
2821
+ alignItems: { xs: "flex-start", sm: "center" },
2822
+ justifyContent: "space-between",
2823
+ flexDirection: { xs: "column", sm: "row" },
2824
+ gap: 1
2825
+ }, children: [
2826
+ /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 1, flexWrap: "wrap" }, children: [
2827
+ /* @__PURE__ */ jsx2(Typography, { sx: { fontWeight: 700, fontSize: "1rem", color: "#1a1a1a", fontFamily: "poppins, Arial, sans-serif" }, children: "Leads" }),
2828
+ /* @__PURE__ */ jsx2(
2829
+ SDKPermissionGuard,
2830
+ {
2831
+ permissions: [
2832
+ SDK_PERMISSIONS.CAMPAIGNS_LEADS_IMPORT
2833
+ ],
2834
+ showFallback: false,
2835
+ 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" })
2836
+ }
2837
+ ),
2838
+ /* @__PURE__ */ jsx2(
2839
+ SDKPermissionGuard,
2840
+ {
2841
+ permissions: [
2842
+ SDK_PERMISSIONS.CAMPAIGNS_LEADS_CREATE
2843
+ ],
2844
+ showFallback: false,
2845
+ 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" })
2846
+ }
2847
+ )
2848
+ ] }),
2849
+ /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 1, flexWrap: "wrap", width: { xs: "100%", sm: "auto" } }, children: [
2850
+ /* @__PURE__ */ jsx2(
2851
+ OutlinedInput,
2852
+ {
2853
+ size: "small",
2854
+ value: leadSearch,
2855
+ onChange: (e) => {
2856
+ setLeadSearch(e.target.value);
2857
+ setLeadPage(0);
2858
+ },
2859
+ placeholder: "Search number...",
2860
+ sx: { width: { xs: "100%", sm: 200 }, fontSize: "0.85rem", height: 36, borderRadius: "20px" },
2861
+ startAdornment: /* @__PURE__ */ jsx2(InputAdornment, { position: "start", children: /* @__PURE__ */ jsx2(Search_default, { sx: { fontSize: 16, color: "#aaa" } }) })
2862
+ }
2863
+ ),
2864
+ /* @__PURE__ */ jsx2(FormControl, { size: "small", sx: { minWidth: 130 }, children: /* @__PURE__ */ jsx2(
2865
+ Select,
2866
+ {
2867
+ value: leadStatusFilter,
2868
+ onChange: (e) => {
2869
+ setLeadStatusFilter(e.target.value);
2870
+ setLeadPage(0);
2871
+ },
2872
+ sx: { height: 36, borderRadius: "30px", fontSize: "0.85rem" },
2873
+ children: LEAD_STATUSES.map((s) => /* @__PURE__ */ jsx2(MenuItem, { value: s, children: s }, s))
2874
+ }
2875
+ ) })
2876
+ ] })
2877
+ ] }),
2878
+ /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", justifyContent: "space-between", gap: 1, flexWrap: "wrap" }, children: [
2879
+ /* @__PURE__ */ jsxs(
2880
+ Box,
2730
2881
  {
2731
- permissions: [
2732
- SDK_PERMISSIONS.CAMPAIGNS_LEADS_IMPORT
2733
- ],
2734
- showFallback: false,
2735
- children: /* @__PURE__ */ jsx2(SDKButton, { variant: "outlined", onClick: () => setImportOpen(true), disabled: scArchived, startIcon: /* @__PURE__ */ jsx2(UploadFileIcon, { sx: { fontSize: 15 } }), size: "small", children: "Import Leads" })
2882
+ sx: {
2883
+ display: "flex",
2884
+ alignItems: "center",
2885
+ gap: 0.75,
2886
+ flexWrap: "wrap",
2887
+ px: 1,
2888
+ py: 0.5,
2889
+ borderRadius: "30px",
2890
+ border: "1px solid #e0e4ea",
2891
+ backgroundColor: "#f7f9fb"
2892
+ },
2893
+ children: [
2894
+ /* @__PURE__ */ jsx2(LocalizationProvider, { dateAdapter: AdapterDayjs, children: /* @__PURE__ */ jsx2(
2895
+ DateRangePicker,
2896
+ {
2897
+ startDate: leadStartDate,
2898
+ endDate: leadEndDate,
2899
+ onStartChange: (v) => {
2900
+ setLeadStartDate(v);
2901
+ setLeadPage(0);
2902
+ },
2903
+ onEndChange: (v) => {
2904
+ setLeadEndDate(v);
2905
+ setLeadPage(0);
2906
+ }
2907
+ }
2908
+ ) }),
2909
+ (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(Clear_default, { sx: { fontSize: 16 } }) }) })
2910
+ ]
2736
2911
  }
2737
2912
  ),
2738
2913
  /* @__PURE__ */ jsx2(
@@ -2743,47 +2918,9 @@ var CampaignsContent = memo(function CampaignsContent2() {
2743
2918
  SDK_PERMISSIONS.CAMPAIGNS_MANAGE
2744
2919
  ],
2745
2920
  showFallback: false,
2746
- children: /* @__PURE__ */ jsx2(SDKButton, { variant: "primary", onClick: handleExport, disabled: leadsLoading || leadTotal === 0, startIcon: /* @__PURE__ */ jsx2(DownloadIcon, { sx: { fontSize: 15 } }), size: "small", children: "Export Excel" })
2747
- }
2748
- ),
2749
- /* @__PURE__ */ jsx2(
2750
- SDKPermissionGuard,
2751
- {
2752
- permissions: [
2753
- SDK_PERMISSIONS.CAMPAIGNS_LEADS_CREATE
2754
- ],
2755
- showFallback: false,
2756
- children: /* @__PURE__ */ jsx2(SDKButton, { variant: "primary", onClick: () => setAddLeadOpen(true), disabled: scArchived, startIcon: /* @__PURE__ */ jsx2(AddIcon, { sx: { fontSize: 15 } }), size: "small", children: "Add Lead" })
2921
+ 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" })
2757
2922
  }
2758
2923
  )
2759
- ] }),
2760
- /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 1, width: { xs: "100%", sm: "auto" } }, children: [
2761
- /* @__PURE__ */ jsx2(
2762
- OutlinedInput,
2763
- {
2764
- size: "small",
2765
- value: leadSearch,
2766
- onChange: (e) => {
2767
- setLeadSearch(e.target.value);
2768
- setLeadPage(0);
2769
- },
2770
- placeholder: "Search number...",
2771
- sx: { width: { xs: "100%", sm: 200 }, fontSize: "0.85rem", height: 34, borderRadius: "20px" },
2772
- startAdornment: /* @__PURE__ */ jsx2(InputAdornment, { position: "start", children: /* @__PURE__ */ jsx2(SearchIcon, { sx: { fontSize: 16, color: "#aaa" } }) })
2773
- }
2774
- ),
2775
- /* @__PURE__ */ jsx2(FormControl, { size: "small", sx: { minWidth: 130 }, children: /* @__PURE__ */ jsx2(
2776
- Select,
2777
- {
2778
- value: leadStatusFilter,
2779
- onChange: (e) => {
2780
- setLeadStatusFilter(e.target.value);
2781
- setLeadPage(0);
2782
- },
2783
- sx: { height: 34, borderRadius: "30px", fontSize: "0.85rem" },
2784
- children: LEAD_STATUSES.map((s) => /* @__PURE__ */ jsx2(MenuItem, { value: s, children: s }, s))
2785
- }
2786
- ) })
2787
2924
  ] })
2788
2925
  ] }),
2789
2926
  /* @__PURE__ */ jsx2(Box, { sx: {
@@ -2865,7 +3002,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
2865
3002
  boxShadow: isDialable ? "0 0 8px rgba(67,160,71,0.5)" : "none"
2866
3003
  }
2867
3004
  },
2868
- children: dialLoading === lead.id ? /* @__PURE__ */ jsx2(CircularProgress, { size: 16 }) : /* @__PURE__ */ jsx2(PhoneIcon, { sx: { fontSize: 18 } })
3005
+ children: dialLoading === lead.id ? /* @__PURE__ */ jsx2(CircularProgress, { size: 16 }) : /* @__PURE__ */ jsx2(Phone_default, { sx: { fontSize: 18 } })
2869
3006
  }
2870
3007
  ) }) }),
2871
3008
  /* @__PURE__ */ jsx2(Tooltip, { title: lead.latestCallId ? "View call details" : "No call data available", children: /* @__PURE__ */ jsx2("span", { children: /* @__PURE__ */ jsx2(
@@ -2879,7 +3016,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
2879
3016
  color: lead.latestCallId ? "#1A5F6C" : "#bdbdbd",
2880
3017
  "&:hover": { backgroundColor: "transparent" }
2881
3018
  },
2882
- children: /* @__PURE__ */ jsx2(VisibilityOutlinedIcon, { sx: { fontSize: 18 } })
3019
+ children: /* @__PURE__ */ jsx2(VisibilityOutlined_default, { sx: { fontSize: 18 } })
2883
3020
  }
2884
3021
  ) }) }),
2885
3022
  /* @__PURE__ */ jsx2(
@@ -2911,7 +3048,7 @@ var CampaignsContent = memo(function CampaignsContent2() {
2911
3048
  boxShadow: deleteDisabled ? "none" : "0 0 8px rgba(211,47,47,0.5)"
2912
3049
  }
2913
3050
  },
2914
- children: /* @__PURE__ */ jsx2(DeleteIcon, { sx: { fontSize: 18 } })
3051
+ children: /* @__PURE__ */ jsx2(Delete_default, { sx: { fontSize: 18 } })
2915
3052
  }
2916
3053
  ) }) })
2917
3054
  }
@@ -3046,4 +3183,4 @@ var campaigns_default = Campaigns;
3046
3183
  export {
3047
3184
  campaigns_default as default
3048
3185
  };
3049
- //# sourceMappingURL=campaigns-PIXRNMM4.mjs.map
3186
+ //# sourceMappingURL=campaigns-ERO3QM6I.mjs.map