ahs-cti 0.0.15 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -79656,7 +79656,7 @@ function CallRow({
79656
79656
  ) }),
79657
79657
  /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(TableCell_default, { sx: cellSx2, children: new Date(row.start_time).toLocaleString() }),
79658
79658
  /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(TableCell_default, { sx: cellSx2, children: row.end_time ? new Date(row.end_time).toLocaleString() : "\u2014" }),
79659
- /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(TableCell_default, { align: "center", sx: cellSx2, children: (_a2 = row.agent_id) != null ? _a2 : "" }),
79659
+ /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(TableCell_default, { align: "center", sx: cellSx2, children: (_a2 = row.user_id) != null ? _a2 : "" }),
79660
79660
  /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(TableCell_default, { align: "center", sx: cellSx2, children: row.recording.available ? /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
79661
79661
  IconButton_default,
79662
79662
  {
@@ -83351,17 +83351,17 @@ var init_campaigns = __esm({
83351
83351
  const { chip: prioChip, label: prioLabel } = leadPriorityChipSx(lead.priority);
83352
83352
  const isManualPreview = ((leadsMeta == null ? void 0 : leadsMeta.dialingMode) || (sc == null ? void 0 : sc.dialingMode) || "").toUpperCase() === "PREVIEW";
83353
83353
  return /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)(TableRow_default, { sx: tableRowSx, children: [
83354
- /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(TableCell_default, { sx: bodyCellSx, children: isManualPreview && isDialable ? /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(Tooltip_default, { title: dialTooltip, children: /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
83354
+ /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(TableCell_default, { sx: bodyCellSx, children: isManualPreview ? /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(Tooltip_default, { title: dialTooltip, children: /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
83355
83355
  Box_default,
83356
83356
  {
83357
83357
  component: "span",
83358
- onClick: () => handleDialPreview(lead.id),
83358
+ onClick: isDialable ? () => handleDialPreview(lead.id) : void 0,
83359
83359
  sx: {
83360
- color: "#1A5F6C",
83361
- fontWeight: 600,
83362
- cursor: "pointer",
83363
- textDecoration: "underline",
83364
- "&:hover": { color: "#12454f" }
83360
+ color: isDialable ? "#1A5F6C" : "inherit",
83361
+ fontWeight: isDialable ? 600 : "inherit",
83362
+ cursor: isDialable ? "pointer" : "default",
83363
+ textDecoration: isDialable ? "underline" : "none",
83364
+ "&:hover": isDialable ? { color: "#12454f" } : void 0
83365
83365
  },
83366
83366
  children: lead.phoneNumber
83367
83367
  }
@@ -83381,7 +83381,7 @@ var init_campaigns = __esm({
83381
83381
  IconButton_default,
83382
83382
  {
83383
83383
  size: "small",
83384
- onClick: () => handleDialPreview(lead.id),
83384
+ onClick: isDialable ? () => handleDialPreview(lead.id) : void 0,
83385
83385
  disabled: !isDialable,
83386
83386
  sx: {
83387
83387
  color: isDialable ? "#2e7d32" : "#bdbdbd",