ahs-cti 0.0.29 → 0.0.30

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 (42) hide show
  1. package/dist/{agentDetailReport-6HFIDHTC.mjs → agentDetailReport-5KLUBUZH.mjs} +2 -2
  2. package/dist/{agentPerformanceReport-2UZWOGER.mjs → agentPerformanceReport-6CT6PKDS.mjs} +113 -101
  3. package/dist/agentPerformanceReport-6CT6PKDS.mjs.map +1 -0
  4. package/dist/{callHistory-DDMQBE7X.mjs → callHistory-OBF5Z6DU.mjs} +3 -5
  5. package/dist/{callHistory-DDMQBE7X.mjs.map → callHistory-OBF5Z6DU.mjs.map} +1 -1
  6. package/dist/{campaigns-WR2342WE.mjs → campaigns-DSC5PBRM.mjs} +139 -100
  7. package/dist/campaigns-DSC5PBRM.mjs.map +1 -0
  8. package/dist/{chunk-6AXXYS36.mjs → chunk-3OVYSB7R.mjs} +22 -11
  9. package/dist/chunk-3OVYSB7R.mjs.map +1 -0
  10. package/dist/{chunk-DT4DCE7W.mjs → chunk-TDKW6IXV.mjs} +10 -3
  11. package/dist/chunk-TDKW6IXV.mjs.map +1 -0
  12. package/dist/index.d.mts +1 -54
  13. package/dist/index.d.ts +2 -55
  14. package/dist/index.js +2214 -2142
  15. package/dist/index.js.map +1 -1
  16. package/dist/index.mjs +10 -9
  17. package/dist/index.mjs.map +1 -1
  18. package/dist-react/{agentDetailReport-D4SIU3BC.mjs → agentDetailReport-D6YX5EWT.mjs} +2 -2
  19. package/dist-react/{agentPerformanceReport-ZU2J22GR.mjs → agentPerformanceReport-IGTLLSZV.mjs} +40 -21
  20. package/dist-react/agentPerformanceReport-IGTLLSZV.mjs.map +1 -0
  21. package/dist-react/{campaigns-QRYQRSLX.mjs → campaigns-S4LFD5EX.mjs} +124 -90
  22. package/dist-react/campaigns-S4LFD5EX.mjs.map +1 -0
  23. package/dist-react/{chunk-GE5Q5DRU.mjs → chunk-IYYH5PCQ.mjs} +14 -10
  24. package/dist-react/chunk-IYYH5PCQ.mjs.map +1 -0
  25. package/dist-react/index.d.mts +1 -54
  26. package/dist-react/index.d.ts +1 -54
  27. package/dist-react/index.js +179 -120
  28. package/dist-react/index.js.map +1 -1
  29. package/dist-react/index.mjs +7 -4
  30. package/dist-react/index.mjs.map +1 -1
  31. package/package.json +1 -1
  32. package/dist/agentPerformanceReport-2UZWOGER.mjs.map +0 -1
  33. package/dist/campaigns-WR2342WE.mjs.map +0 -1
  34. package/dist/chunk-6AXXYS36.mjs.map +0 -1
  35. package/dist/chunk-DT4DCE7W.mjs.map +0 -1
  36. package/dist/chunk-LJACVXXL.mjs +0 -24
  37. package/dist/chunk-LJACVXXL.mjs.map +0 -1
  38. package/dist-react/agentPerformanceReport-ZU2J22GR.mjs.map +0 -1
  39. package/dist-react/campaigns-QRYQRSLX.mjs.map +0 -1
  40. package/dist-react/chunk-GE5Q5DRU.mjs.map +0 -1
  41. /package/dist/{agentDetailReport-6HFIDHTC.mjs.map → agentDetailReport-5KLUBUZH.mjs.map} +0 -0
  42. /package/dist-react/{agentDetailReport-D4SIU3BC.mjs.map → agentDetailReport-D6YX5EWT.mjs.map} +0 -0
@@ -14676,16 +14676,18 @@ function ImportLeadsDialog({
14676
14676
  }
14677
14677
  );
14678
14678
  }
14679
- var import_react22, import_material12, import_Add, import_Archive, import_ChevronLeft, import_ChevronRight, import_Delete, import_Download, import_Edit, import_Pause3, import_Phone3, import_PlayArrow4, import_Refresh2, import_Search2, import_Settings, import_UploadFile, import_VisibilityOutlined, import_LocalizationProvider, import_AdapterDayjs, import_Clear, import_jsx_runtime14, CampaignDialog, AddLeadDialog, fmtRecordingDuration, activePlayers2, notifyPlay2, CampaignsContent, Campaigns, campaigns_default;
14679
+ var import_react22, import_material12, import_Add, import_Archive, import_ChevronLeft, import_ChevronRight, import_KeyboardArrowDown3, import_KeyboardArrowRight, import_Delete, import_Download, import_Edit, import_Pause3, import_Phone3, import_PlayArrow4, import_Refresh2, import_Search2, import_Settings, import_UploadFile, import_VisibilityOutlined, import_LocalizationProvider, import_AdapterDayjs, import_Clear, import_jsx_runtime14, CampaignDialog, AddLeadDialog, fmtRecordingDuration, activePlayers2, notifyPlay2, CampaignsContent, Campaigns, campaigns_default;
14680
14680
  var init_campaigns = __esm({
14681
14681
  "call-control-sdk/lib/pages/campaigns/index.tsx"() {
14682
14682
  "use strict";
14683
- import_react22 = require("react");
14683
+ import_react22 = __toESM(require("react"));
14684
14684
  import_material12 = require("@mui/material");
14685
14685
  import_Add = __toESM(require("@mui/icons-material/Add"));
14686
14686
  import_Archive = __toESM(require("@mui/icons-material/Archive"));
14687
14687
  import_ChevronLeft = __toESM(require("@mui/icons-material/ChevronLeft"));
14688
14688
  import_ChevronRight = __toESM(require("@mui/icons-material/ChevronRight"));
14689
+ import_KeyboardArrowDown3 = __toESM(require("@mui/icons-material/KeyboardArrowDown"));
14690
+ import_KeyboardArrowRight = __toESM(require("@mui/icons-material/KeyboardArrowRight"));
14689
14691
  import_Delete = __toESM(require("@mui/icons-material/Delete"));
14690
14692
  import_Download = __toESM(require("@mui/icons-material/Download"));
14691
14693
  import_Edit = __toESM(require("@mui/icons-material/Edit"));
@@ -15050,6 +15052,7 @@ var init_campaigns = __esm({
15050
15052
  downloadLeadTemplate,
15051
15053
  exportLeads
15052
15054
  } = useLeads();
15055
+ const [expandedLeadIds, setExpandedLeadIds] = (0, import_react22.useState)(/* @__PURE__ */ new Set());
15053
15056
  const { fetchQueues: fetchQueues3 } = useQueues();
15054
15057
  const [queueNameMap, setQueueNameMap] = (0, import_react22.useState)({});
15055
15058
  (0, import_react22.useEffect)(() => {
@@ -15937,93 +15940,123 @@ var init_campaigns = __esm({
15937
15940
  const isDialable = isDialerEnabled && hasOutboundPermission && isAgentIdle && !isCompleted && !isInProgress && dialLoading !== lead.id;
15938
15941
  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}`;
15939
15942
  const { chip: prioChip, label: prioLabel } = leadPriorityChipSx(lead.priority);
15940
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_material12.TableRow, { sx: tableRowSx, children: [
15941
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: bodyCellSx, children: lead.phoneNumber }),
15942
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: bodyCellSx, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.Chip, { label: lead.status || "pending", size: "small", sx: leadStatusChipSx(lead.status) }) }),
15943
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: bodyCellSx, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.Chip, { label: prioLabel, size: "small", sx: prioChip }) }),
15944
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: bodyCellSx, children: lead.source || "" }),
15945
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { maxWidth: 140, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }), children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.Tooltip, { title: lead.originalCallId || "", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: lead.originalCallId || "" }) }) }),
15946
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: bodyCellSx, children: lead.queueName || "" }),
15947
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: bodyCellSx, children: (_a3 = lead.attemptCount) != null ? _a3 : 0 }),
15948
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { whiteSpace: "nowrap" }), children: lead.createdAt ? new Date(lead.createdAt).toLocaleString() : "" }),
15949
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { whiteSpace: "nowrap" }), children: lead.lastAttemptAt ? new Date(lead.lastAttemptAt).toLocaleString() : "" }),
15950
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { whiteSpace: "nowrap" }), children: lead.nextAttemptAt ? new Date(lead.nextAttemptAt).toLocaleString() : "" }),
15951
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: bodyCellSx, children: lead.lastOutcome || "" }),
15952
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { whiteSpace: "nowrap" }), children: lead.completedAt ? new Date(lead.completedAt).toLocaleString() : "" }),
15953
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { maxWidth: 150, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }), children: lead.notes ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.Tooltip, { title: lead.notes, arrow: true, placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: lead.notes }) }) : "" }),
15954
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: bodyCellSx, children: lead.lastReason || "" }),
15955
- showVoicemail && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { minWidth: 180 }), children: lead.originalCallId ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(CallRecording, { callUuid: lead.originalCallId, recordingPath: lead.voicemail, iconOnly: true }) : "" }),
15956
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_material12.TableCell, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { textAlign: "center", whiteSpace: "nowrap" }), children: [
15957
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.Tooltip, { title: dialTooltip, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
15958
- import_material12.IconButton,
15959
- {
15960
- size: "small",
15961
- onClick: () => handleDialPreview(lead.id),
15962
- disabled: !isDialable,
15963
- sx: {
15964
- color: isDialable ? "#2e7d32" : "#bdbdbd",
15965
- backgroundColor: isDialable ? "#e8f5e9" : "transparent",
15966
- borderRadius: "50%",
15967
- transition: "all 0.2s ease-in-out",
15968
- "&:hover": {
15969
- backgroundColor: isDialable ? "#43a047" : "transparent",
15970
- color: isDialable ? "#fff" : "#bdbdbd",
15971
- transform: isDialable ? "scale(1.2)" : "none",
15972
- boxShadow: isDialable ? "0 0 8px rgba(67,160,71,0.5)" : "none"
15973
- }
15974
- },
15975
- children: dialLoading === lead.id ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.CircularProgress, { size: 16 }) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_Phone3.default, { sx: { fontSize: 18 } })
15976
- }
15977
- ) }) }),
15978
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.Tooltip, { title: lead.latestCallId ? "View call details" : "No call data available", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
15979
- import_material12.IconButton,
15980
- {
15981
- size: "small",
15982
- onClick: () => handleViewCallData(lead),
15983
- disabled: !lead.latestCallId,
15984
- sx: {
15985
- ml: 0.5,
15986
- color: lead.latestCallId ? "#1A5F6C" : "#bdbdbd",
15987
- "&:hover": { backgroundColor: "transparent" }
15988
- },
15989
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_VisibilityOutlined.default, { sx: { fontSize: 18 } })
15990
- }
15991
- ) }) }),
15992
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
15993
- SDKPermissionGuard,
15994
- {
15995
- permissions: [
15996
- SDK_PERMISSIONS.CAMPAIGNS_LEADS_DELETE
15997
- ],
15998
- showFallback: false,
15999
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.Tooltip, { title: deleteDisabled ? `Cannot delete \u2014 status is ${leadStatus.toLowerCase().replace("_", " ")}` : `Delete lead ${lead.phoneNumber}`, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
16000
- import_material12.IconButton,
16001
- {
16002
- size: "small",
16003
- onClick: () => {
16004
- setDeleteLeadTarget(lead);
16005
- setDeleteLeadOpen(true);
16006
- },
16007
- disabled: deleteDisabled,
16008
- sx: {
16009
- ml: 0.5,
16010
- color: deleteDisabled ? "#bdbdbd" : "#c62828",
16011
- backgroundColor: deleteDisabled ? "transparent" : "#ffebee",
16012
- borderRadius: "50%",
16013
- transition: "all 0.2s ease-in-out",
16014
- "&:hover": {
16015
- backgroundColor: deleteDisabled ? "transparent" : "#d32f2f",
16016
- color: deleteDisabled ? "#bdbdbd" : "#fff",
16017
- transform: deleteDisabled ? "none" : "scale(1.2)",
16018
- boxShadow: deleteDisabled ? "none" : "0 0 8px rgba(211,47,47,0.5)"
16019
- }
16020
- },
16021
- children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_Delete.default, { sx: { fontSize: 18 } })
16022
- }
16023
- ) }) })
16024
- }
16025
- )
16026
- ] })
15943
+ const visibleDisplayData = (lead.displayData || []).filter((f2) => {
15944
+ if (f2.value === null || f2.value === void 0 || f2.value === "") return false;
15945
+ if (Array.isArray(f2.value) && f2.value.length === 0) return false;
15946
+ return true;
15947
+ });
15948
+ const hasDisplayData = visibleDisplayData.length > 0;
15949
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_react22.default.Fragment, { children: [
15950
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
15951
+ import_material12.TableRow,
15952
+ {
15953
+ sx: __spreadProps(__spreadValues({}, tableRowSx), { cursor: hasDisplayData ? "pointer" : "default" }),
15954
+ onClick: () => {
15955
+ if (!hasDisplayData) return;
15956
+ setExpandedLeadIds((prev) => {
15957
+ const next = new Set(prev);
15958
+ if (next.has(lead.id)) next.delete(lead.id);
15959
+ else next.add(lead.id);
15960
+ return next;
15961
+ });
15962
+ },
15963
+ children: [
15964
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_material12.TableCell, { sx: bodyCellSx, children: [
15965
+ hasDisplayData ? expandedLeadIds.has(lead.id) ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_KeyboardArrowDown3.default, { fontSize: "small", sx: { verticalAlign: "middle", mr: 0.5, color: "text.secondary" } }) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_KeyboardArrowRight.default, { fontSize: "small", sx: { verticalAlign: "middle", mr: 0.5, color: "text.secondary" } }) : null,
15966
+ lead.phoneNumber
15967
+ ] }),
15968
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: bodyCellSx, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.Chip, { label: lead.status || "pending", size: "small", sx: leadStatusChipSx(lead.status) }) }),
15969
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: bodyCellSx, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.Chip, { label: prioLabel, size: "small", sx: prioChip }) }),
15970
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: bodyCellSx, children: lead.source || "" }),
15971
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { maxWidth: 140, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }), children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.Tooltip, { title: lead.originalCallId || "", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: lead.originalCallId || "" }) }) }),
15972
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: bodyCellSx, children: lead.queueName || "" }),
15973
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: bodyCellSx, children: (_a3 = lead.attemptCount) != null ? _a3 : 0 }),
15974
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { whiteSpace: "nowrap" }), children: lead.createdAt ? new Date(lead.createdAt).toLocaleString() : "" }),
15975
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { whiteSpace: "nowrap" }), children: lead.lastAttemptAt ? new Date(lead.lastAttemptAt).toLocaleString() : "" }),
15976
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { whiteSpace: "nowrap" }), children: lead.nextAttemptAt ? new Date(lead.nextAttemptAt).toLocaleString() : "" }),
15977
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: bodyCellSx, children: lead.lastOutcome || "" }),
15978
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { whiteSpace: "nowrap" }), children: lead.completedAt ? new Date(lead.completedAt).toLocaleString() : "" }),
15979
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { maxWidth: 150, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }), children: lead.notes ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.Tooltip, { title: lead.notes, arrow: true, placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: lead.notes }) }) : "" }),
15980
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: bodyCellSx, children: lead.lastReason || "" }),
15981
+ showVoicemail && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { minWidth: 180 }), children: lead.originalCallId ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(CallRecording, { callUuid: lead.originalCallId, recordingPath: lead.voicemail, iconOnly: true }) : "" }),
15982
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_material12.TableCell, { sx: __spreadProps(__spreadValues({}, bodyCellSx), { textAlign: "center", whiteSpace: "nowrap" }), children: [
15983
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.Tooltip, { title: dialTooltip, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
15984
+ import_material12.IconButton,
15985
+ {
15986
+ size: "small",
15987
+ onClick: () => handleDialPreview(lead.id),
15988
+ disabled: !isDialable,
15989
+ sx: {
15990
+ color: isDialable ? "#2e7d32" : "#bdbdbd",
15991
+ backgroundColor: isDialable ? "#e8f5e9" : "transparent",
15992
+ borderRadius: "50%",
15993
+ transition: "all 0.2s ease-in-out",
15994
+ "&:hover": {
15995
+ backgroundColor: isDialable ? "#43a047" : "transparent",
15996
+ color: isDialable ? "#fff" : "#bdbdbd",
15997
+ transform: isDialable ? "scale(1.2)" : "none",
15998
+ boxShadow: isDialable ? "0 0 8px rgba(67,160,71,0.5)" : "none"
15999
+ }
16000
+ },
16001
+ children: dialLoading === lead.id ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.CircularProgress, { size: 16 }) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_Phone3.default, { sx: { fontSize: 18 } })
16002
+ }
16003
+ ) }) }),
16004
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.Tooltip, { title: lead.latestCallId ? "View call details" : "No call data available", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
16005
+ import_material12.IconButton,
16006
+ {
16007
+ size: "small",
16008
+ onClick: () => handleViewCallData(lead),
16009
+ disabled: !lead.latestCallId,
16010
+ sx: {
16011
+ ml: 0.5,
16012
+ color: lead.latestCallId ? "#1A5F6C" : "#bdbdbd",
16013
+ "&:hover": { backgroundColor: "transparent" }
16014
+ },
16015
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_VisibilityOutlined.default, { sx: { fontSize: 18 } })
16016
+ }
16017
+ ) }) }),
16018
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
16019
+ SDKPermissionGuard,
16020
+ {
16021
+ permissions: [
16022
+ SDK_PERMISSIONS.CAMPAIGNS_LEADS_DELETE
16023
+ ],
16024
+ showFallback: false,
16025
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.Tooltip, { title: deleteDisabled ? `Cannot delete \u2014 status is ${leadStatus.toLowerCase().replace("_", " ")}` : `Delete lead ${lead.phoneNumber}`, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
16026
+ import_material12.IconButton,
16027
+ {
16028
+ size: "small",
16029
+ onClick: () => {
16030
+ setDeleteLeadTarget(lead);
16031
+ setDeleteLeadOpen(true);
16032
+ },
16033
+ disabled: deleteDisabled,
16034
+ sx: {
16035
+ ml: 0.5,
16036
+ color: deleteDisabled ? "#bdbdbd" : "#c62828",
16037
+ backgroundColor: deleteDisabled ? "transparent" : "#ffebee",
16038
+ borderRadius: "50%",
16039
+ transition: "all 0.2s ease-in-out",
16040
+ "&:hover": {
16041
+ backgroundColor: deleteDisabled ? "transparent" : "#d32f2f",
16042
+ color: deleteDisabled ? "#bdbdbd" : "#fff",
16043
+ transform: deleteDisabled ? "none" : "scale(1.2)",
16044
+ boxShadow: deleteDisabled ? "none" : "0 0 8px rgba(211,47,47,0.5)"
16045
+ }
16046
+ },
16047
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_Delete.default, { sx: { fontSize: 18 } })
16048
+ }
16049
+ ) }) })
16050
+ }
16051
+ )
16052
+ ] })
16053
+ ]
16054
+ }
16055
+ ),
16056
+ hasDisplayData && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.TableCell, { sx: { py: 0, border: 0 }, colSpan: showVoicemail ? 16 : 15, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.Collapse, { in: expandedLeadIds.has(lead.id), timeout: "auto", unmountOnExit: true, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.Box, { sx: { display: "flex", flexWrap: "wrap", gap: 3, px: 3, py: 1.5, backgroundColor: "#fafafa" }, children: visibleDisplayData.map((field, idx) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_material12.Box, { sx: { minWidth: 140 }, children: [
16057
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.Typography, { variant: "caption", color: "text.secondary", sx: { display: "block" }, children: field.label }),
16058
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.Typography, { variant: "body2", sx: { fontWeight: 600 }, children: Array.isArray(field.value) ? field.value.join(", ") : typeof field.value === "object" ? JSON.stringify(field.value) : String(field.value) })
16059
+ ] }, idx)) }) }) }) })
16027
16060
  ] }, lead.id);
16028
16061
  }) })
16029
16062
  ] }) }),
@@ -27634,6 +27667,11 @@ function AgentDetailReportContent({ agentRow: propAgentRow, onBack, from, initia
27634
27667
  setBreaksLoading(false);
27635
27668
  }
27636
27669
  }, [agentIdFromRow, startDate, endDate]);
27670
+ const openBreaksDialog = async () => {
27671
+ if (!agentIdFromRow) return;
27672
+ setBreaksDialogOpen(true);
27673
+ await loadBreakSessions();
27674
+ };
27637
27675
  const closeBreaksDialog = () => {
27638
27676
  setBreaksDialogOpen(false);
27639
27677
  };
@@ -28069,15 +28107,13 @@ function AgentDetailReportContent({ agentRow: propAgentRow, onBack, from, initia
28069
28107
  },
28070
28108
  maxWidth: "md",
28071
28109
  fullWidth: true,
28072
- slotProps: {
28073
- paper: {
28074
- sx: {
28075
- borderRadius: "12px",
28076
- fontFamily: FONT4,
28077
- overflow: "hidden",
28078
- boxShadow: "0 8px 32px rgba(0,0,0,0.18)",
28079
- maxWidth: 640
28080
- }
28110
+ PaperProps: {
28111
+ sx: {
28112
+ borderRadius: "12px",
28113
+ fontFamily: FONT4,
28114
+ overflow: "hidden",
28115
+ boxShadow: "0 8px 32px rgba(0,0,0,0.18)",
28116
+ maxWidth: 640
28081
28117
  }
28082
28118
  },
28083
28119
  children: [
@@ -28150,7 +28186,7 @@ function AgentDetailReportContent({ agentRow: propAgentRow, onBack, from, initia
28150
28186
  )
28151
28187
  ] }) });
28152
28188
  }
28153
- var import_react30, import_material22, import_Search5, import_Refresh5, import_PlayArrow6, import_FileDownload2, import_Close7, import_Tooltip2, import_recharts, import_dayjs6, import_LocalizationProvider4, import_AdapterDayjs4, import_jsx_runtime26, C2, FONT4, monoSx, QUEUE_COLORS, cdrHeadSx, AgentDetailReport, agentDetailReport_default;
28189
+ var import_react30, import_material22, import_Search5, import_Refresh5, import_PlayArrow6, import_FileDownload2, import_Close7, import_Visibility, import_Tooltip2, import_recharts, import_dayjs6, import_LocalizationProvider4, import_AdapterDayjs4, import_jsx_runtime26, C2, FONT4, monoSx, QUEUE_COLORS, cdrHeadSx, AgentDetailReport, agentDetailReport_default;
28154
28190
  var init_agentDetailReport = __esm({
28155
28191
  "call-control-sdk/lib/pages/agentDetailReport/index.tsx"() {
28156
28192
  "use strict";
@@ -28163,6 +28199,7 @@ var init_agentDetailReport = __esm({
28163
28199
  import_PlayArrow6 = __toESM(require("@mui/icons-material/PlayArrow"));
28164
28200
  import_FileDownload2 = __toESM(require("@mui/icons-material/FileDownload"));
28165
28201
  import_Close7 = __toESM(require("@mui/icons-material/Close"));
28202
+ import_Visibility = __toESM(require("@mui/icons-material/Visibility"));
28166
28203
  import_Tooltip2 = __toESM(require("@mui/material/Tooltip"));
28167
28204
  import_recharts = require("recharts");
28168
28205
  import_dayjs6 = __toESM(require("dayjs"));
@@ -28416,10 +28453,24 @@ function fmtDur2(s2) {
28416
28453
  const h2 = Math.floor(s2 / 3600), m = Math.floor(s2 % 3600 / 60), sc = Math.floor(s2 % 60);
28417
28454
  return [h2, m, sc].map((x) => String(x).padStart(2, "0")).join(":");
28418
28455
  }
28419
- function fmtDateTime2(v) {
28420
- if (!v) return "";
28456
+ function cleanVal(v) {
28457
+ if (v == null) return "";
28458
+ const s2 = String(v).trim();
28459
+ return s2.toLowerCase() === "null" || s2.toLowerCase() === "undefined" ? "" : s2;
28460
+ }
28461
+ function fmtDateParts(v) {
28462
+ if (!cleanVal(v)) return { date: "", time: "" };
28421
28463
  const d2 = (0, import_dayjs8.default)(String(v).replace(" ", "T"));
28422
- return d2.isValid() ? d2.format("DD-MM-YYYY HH:mm:ss") : String(v);
28464
+ if (!d2.isValid()) return { date: "", time: "" };
28465
+ return { date: d2.format("MMM D, YYYY"), time: d2.format("h:mm A") };
28466
+ }
28467
+ function DateTimeCell({ value }) {
28468
+ const { date, time } = fmtDateParts(value);
28469
+ if (!date) return null;
28470
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("span", { style: { display: "flex", flexDirection: "column", lineHeight: 1.35, fontVariantNumeric: "tabular-nums" }, children: [
28471
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { style: { fontSize: 13, color: C4.t1, fontWeight: 700 }, children: date }),
28472
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { style: { fontSize: 11.5, color: C4.t2, fontWeight: 500 }, children: time })
28473
+ ] });
28423
28474
  }
28424
28475
  function toEpoch(v) {
28425
28476
  if (!v) return 0;
@@ -28468,7 +28519,7 @@ function HeatColumn({ title, rows, variant }) {
28468
28519
  "&:hover": { background: C4.s2 }
28469
28520
  }, children: [
28470
28521
  /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_material24.Typography, { sx: __spreadProps(__spreadValues({}, mono), { fontSize: 10, fontWeight: 700, color: tone.rank, textAlign: "right" }), children: i + 1 }),
28471
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_material24.Tooltip, { title: r.name, arrow: true, placement: "top", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_material24.Typography, { noWrap: true, sx: { fontSize: 11.5, fontWeight: 600, color: C4.t1, cursor: "default", minWidth: 0 }, children: r.name }) }),
28522
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_material24.Typography, { sx: { fontSize: 11.5, fontWeight: 600, color: C4.t1, lineHeight: 1.25, wordBreak: "break-word" }, children: r.name }),
28472
28523
  /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_material24.Box, { sx: __spreadProps(__spreadValues({ background: tone.pillBg, color: tone.pillTx, borderRadius: "5px", textAlign: "center", px: 0.9, py: 0.3, minWidth: 62 }, mono), { fontSize: 10.5 }), children: fmtDur2(r.secs) })
28473
28524
  ] }, i)),
28474
28525
  rows.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_material24.Typography, { sx: { fontSize: 11.5, color: C4.t3, textAlign: "center", py: 3 }, children: "No data" })
@@ -28523,14 +28574,15 @@ function BarCell({ value, pct, accent, count: count2, onCountClick }) {
28523
28574
  }
28524
28575
  ),
28525
28576
  /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_material24.Typography, { sx: __spreadValues({
28526
- fontSize: 11,
28577
+ fontSize: 13,
28578
+ fontWeight: 800,
28527
28579
  fontVariantNumeric: "tabular-nums",
28528
28580
  whiteSpace: "nowrap"
28529
28581
  }, pct > 100 ? { color: C4.red, background: C4.rlt, borderRadius: "4px", px: 0.5 } : { color: C4.t2 }), children: [
28530
28582
  pct.toFixed(1),
28531
28583
  "%"
28532
28584
  ] }),
28533
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_material24.Typography, { sx: { fontSize: 10.5, color: C4.t3, fontVariantNumeric: "tabular-nums", whiteSpace: "nowrap" }, children: value })
28585
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_material24.Typography, { sx: { fontSize: 11.5, color: C4.t1, fontWeight: 800, fontVariantNumeric: "tabular-nums", whiteSpace: "nowrap" }, children: cleanVal(value) })
28534
28586
  ] }),
28535
28587
  /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_material24.Box, { sx: { width: "100%", height: 8, background: C4.s3, borderRadius: "4px", overflow: "hidden" }, children: width > 0 && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_material24.Box, { sx: { height: "100%", width: `${width}%`, background: accent, borderRadius: "4px" } }) })
28536
28588
  ] });
@@ -28552,9 +28604,12 @@ function AgentPerformanceReportContent() {
28552
28604
  const [exportMode, setExportMode] = (0, import_react32.useState)("summary");
28553
28605
  const [exporting, setExporting] = (0, import_react32.useState)(false);
28554
28606
  const loading = loadingTop || loadingTable;
28607
+ const toast = useToast();
28555
28608
  const onErr = (err) => {
28556
- var _a3, _b2;
28557
- return setError(((_b2 = (_a3 = err == null ? void 0 : err.response) == null ? void 0 : _a3.data) == null ? void 0 : _b2.detail) || (err == null ? void 0 : err.message) || "Failed to load agents report");
28609
+ var _a3, _b2, _c2, _d2;
28610
+ const msg = ((_b2 = (_a3 = err == null ? void 0 : err.response) == null ? void 0 : _a3.data) == null ? void 0 : _b2.message) || ((_d2 = (_c2 = err == null ? void 0 : err.response) == null ? void 0 : _c2.data) == null ? void 0 : _d2.detail) || (err == null ? void 0 : err.message) || "Failed to load agents report";
28611
+ setError(msg);
28612
+ toast.showToast(msg, "error");
28558
28613
  };
28559
28614
  const fetchDashboard = (0, import_react32.useCallback)((showSpinner = true) => {
28560
28615
  if (!startDate || !endDate) return;
@@ -28619,7 +28674,7 @@ function AgentPerformanceReportContent() {
28619
28674
  size: 220,
28620
28675
  accessorFn: (r) => r.agentName,
28621
28676
  Cell: ({ row }) => {
28622
- const name = row.original.agentName || "";
28677
+ const name = cleanVal(row.original.agentName);
28623
28678
  return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_material24.Box, { sx: { display: "flex", alignItems: "center", gap: 1, minWidth: 0 }, children: [
28624
28679
  /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_material24.Box, { sx: {
28625
28680
  width: 30,
@@ -28635,8 +28690,8 @@ function AgentPerformanceReportContent() {
28635
28690
  letterSpacing: 0.3
28636
28691
  }, children: getInitials(name) }),
28637
28692
  /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_material24.Box, { sx: { minWidth: 0 }, children: [
28638
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_material24.Typography, { sx: { fontSize: 11.5, color: C4.t1, lineHeight: 1.3 }, children: name }),
28639
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_material24.Typography, { noWrap: true, sx: { fontSize: 10.5, color: C4.t3, fontVariantNumeric: "tabular-nums", lineHeight: 1.3 }, children: row.original.agentId })
28693
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_material24.Typography, { sx: { fontSize: 13, color: C4.t1, fontWeight: 600, lineHeight: 1.3 }, children: name }),
28694
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_material24.Typography, { noWrap: true, sx: { fontSize: 11.5, color: C4.t3, fontWeight: 500, fontVariantNumeric: "tabular-nums", lineHeight: 1.3 }, children: cleanVal(row.original.agentId) })
28640
28695
  ] })
28641
28696
  ] });
28642
28697
  }
@@ -28646,14 +28701,14 @@ function AgentPerformanceReportContent() {
28646
28701
  header: "First Login",
28647
28702
  size: 160,
28648
28703
  accessorFn: (r) => toEpoch(r.firstLoginTime),
28649
- Cell: ({ row }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { style: { fontSize: 11.5, color: C4.t2, fontVariantNumeric: "tabular-nums" }, children: fmtDateTime2(row.original.firstLoginTime) })
28704
+ Cell: ({ row }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DateTimeCell, { value: row.original.firstLoginTime })
28650
28705
  },
28651
28706
  {
28652
28707
  id: "lastLogout",
28653
28708
  header: "Last Logout",
28654
28709
  size: 160,
28655
28710
  accessorFn: (r) => toEpoch(r.logoutTime),
28656
- Cell: ({ row }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { style: { fontSize: 11.5, color: C4.t2, fontVariantNumeric: "tabular-nums" }, children: fmtDateTime2(row.original.logoutTime) })
28711
+ Cell: ({ row }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DateTimeCell, { value: row.original.logoutTime })
28657
28712
  },
28658
28713
  {
28659
28714
  id: "total",
@@ -28681,14 +28736,14 @@ function AgentPerformanceReportContent() {
28681
28736
  header: "AHT",
28682
28737
  size: 100,
28683
28738
  accessorFn: (r) => parseDur(r.avgCallHandleTime),
28684
- Cell: ({ row }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { style: { fontWeight: 400, fontSize: 11.5, color: C4.purple, fontVariantNumeric: "tabular-nums" }, children: row.original.avgCallHandleTime })
28739
+ Cell: ({ row }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { style: { fontWeight: 600, fontSize: 13, color: C4.purple, fontVariantNumeric: "tabular-nums" }, children: cleanVal(row.original.avgCallHandleTime) })
28685
28740
  },
28686
28741
  {
28687
28742
  id: "loggedInDuration",
28688
28743
  header: "Logged In Duration",
28689
28744
  size: 130,
28690
28745
  accessorFn: (r) => parseDur(r.loggedInDuration),
28691
- Cell: ({ row }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { style: { fontWeight: 400, fontSize: 11.5, color: C4.teal, fontVariantNumeric: "tabular-nums" }, children: row.original.loggedInDuration })
28746
+ Cell: ({ row }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { style: { fontWeight: 600, fontSize: 13, color: C4.teal, fontVariantNumeric: "tabular-nums" }, children: cleanVal(row.original.loggedInDuration) })
28692
28747
  },
28693
28748
  {
28694
28749
  id: "production",
@@ -28751,7 +28806,7 @@ function AgentPerformanceReportContent() {
28751
28806
  size: 80,
28752
28807
  enableColumnFilter: false,
28753
28808
  enableSorting: false,
28754
- Cell: ({ row }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_material24.Tooltip, { title: "View agent details", arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_material24.IconButton, { size: "small", onClick: () => setSelectedAgent(row.original), sx: { color: C4.blue }, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_Visibility.default, { sx: { fontSize: 16 } }) }) })
28809
+ Cell: ({ row }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_material24.Tooltip, { title: "View agent details", arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_material24.IconButton, { size: "small", onClick: () => setSelectedAgent(row.original), sx: { color: C4.blue }, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_Visibility2.default, { sx: { fontSize: 16 } }) }) })
28755
28810
  }
28756
28811
  ], []);
28757
28812
  if (selectedAgent) {
@@ -28896,7 +28951,7 @@ function AgentPerformanceReportContent() {
28896
28951
  )
28897
28952
  ] });
28898
28953
  }
28899
- var import_react32, import_material24, import_Refresh6, import_FileDownload4, import_Visibility, import_LocalizationProvider5, import_AdapterDayjs5, import_dayjs8, import_jsx_runtime28, EMPTY_AGENT_DASHBOARD, C4, FONT6, KPI_ACCENTS, mono, AVATAR_COLORS, HEAT_TONES, InOut, AgentPerformanceReport, agentPerformanceReport_default;
28954
+ var import_react32, import_material24, import_Refresh6, import_FileDownload4, import_Visibility2, import_LocalizationProvider5, import_AdapterDayjs5, import_dayjs8, import_jsx_runtime28, EMPTY_AGENT_DASHBOARD, C4, FONT6, KPI_ACCENTS, mono, AVATAR_COLORS, HEAT_TONES, InOut, AgentPerformanceReport, agentPerformanceReport_default;
28900
28955
  var init_agentPerformanceReport = __esm({
28901
28956
  "call-control-sdk/lib/pages/agentPerformanceReport/index.tsx"() {
28902
28957
  "use strict";
@@ -28904,7 +28959,7 @@ var init_agentPerformanceReport = __esm({
28904
28959
  import_material24 = require("@mui/material");
28905
28960
  import_Refresh6 = __toESM(require("@mui/icons-material/Refresh"));
28906
28961
  import_FileDownload4 = __toESM(require("@mui/icons-material/FileDownload"));
28907
- import_Visibility = __toESM(require("@mui/icons-material/Visibility"));
28962
+ import_Visibility2 = __toESM(require("@mui/icons-material/Visibility"));
28908
28963
  import_LocalizationProvider5 = require("@mui/x-date-pickers/LocalizationProvider");
28909
28964
  import_AdapterDayjs5 = require("@mui/x-date-pickers/AdapterDayjs");
28910
28965
  import_dayjs8 = __toESM(require("dayjs"));
@@ -28917,6 +28972,7 @@ var init_agentPerformanceReport = __esm({
28917
28972
  init_endPoint();
28918
28973
  init_SDKProvider();
28919
28974
  init_SDKPermissionGuard();
28975
+ init_toastMessage();
28920
28976
  init_sdk_constants();
28921
28977
  init_agentDetailReport();
28922
28978
  init_BreakSessionsDialog();
@@ -28958,12 +29014,12 @@ var init_agentPerformanceReport = __esm({
28958
29014
  blue: { headBg: "#eef5f6", headTx: "#14505b", pillBg: "#e3f1f3", pillTx: "#14505b", rank: "#6ba3ac" },
28959
29015
  red: { headBg: "#fdeeee", headTx: "#b3352f", pillBg: "#fbe3e3", pillTx: "#c0392b", rank: "#e0a0a0" }
28960
29016
  };
28961
- InOut = ({ i, o }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_material24.Typography, { sx: { fontSize: 11.5, color: C4.t2, whiteSpace: "nowrap" }, children: [
28962
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { style: { color: C4.t3 }, children: "In:" }),
29017
+ InOut = ({ i, o }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_material24.Typography, { sx: { fontSize: 13, color: C4.t1, fontWeight: 600, whiteSpace: "nowrap" }, children: [
29018
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { style: { color: C4.t1, fontWeight: 400 }, children: "In:" }),
28963
29019
  " ",
28964
29020
  i,
28965
29021
  " ",
28966
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { style: { color: C4.t3 }, children: "Out:" }),
29022
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { style: { color: C4.t1, fontWeight: 400 }, children: "Out:" }),
28967
29023
  " ",
28968
29024
  o
28969
29025
  ] });
@@ -33968,6 +34024,9 @@ function CallControls({ onDataChange }) {
33968
34024
  sdkStateManager.updateCallData(callData);
33969
34025
  sdkStateManager.updateConferenceData([...confrence]);
33970
34026
  sdkStateManager.setConsultInfo((_b3 = data.consult_info) != null ? _b3 : null);
34027
+ if ((data == null ? void 0 : data.lead_data) !== void 0) {
34028
+ sdkStateManager.setTransferLeadData(data.lead_data);
34029
+ }
33971
34030
  const conferenceStatus = data == null ? void 0 : data.conferencestatus;
33972
34031
  if (conferenceStatus) {
33973
34032
  const hasAnsweredSecondaryLine = Object.keys(conferenceStatus).some((key) => {