ahs-cti 0.0.34 → 0.0.36

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 (87) hide show
  1. package/dist/{agentDetailReport-BYGYSA33.mjs → agentDetailReport-T4JNGFFX.mjs} +3 -3
  2. package/dist/{agentPerformanceReport-Y5YYKSWG.mjs → agentPerformanceReport-NCP2UPJT.mjs} +5 -5
  3. package/dist/{auditReport-C4WFAP3L.mjs → auditReport-XF4UDCRV.mjs} +3 -3
  4. package/dist/{callHistory-6YAMF7QO.mjs → callHistory-KVOHY7WQ.mjs} +2 -2
  5. package/dist/{campaigns-65A75UG5.mjs → campaigns-MQBX3BYQ.mjs} +6 -6
  6. package/dist/{cdrReport-KHIUZEDV.mjs → cdrReport-4XCN3MCK.mjs} +6 -6
  7. package/dist/{chunk-CBEMLYOM.mjs → chunk-5TAL7WLB.mjs} +2 -2
  8. package/dist/{chunk-TT6SICS2.mjs → chunk-6HWDDYAJ.mjs} +2 -2
  9. package/dist/{chunk-2AXMZZAY.mjs → chunk-A2ZEA7YZ.mjs} +1 -2
  10. package/{dist-react/chunk-IVWVTBHM.mjs.map → dist/chunk-A2ZEA7YZ.mjs.map} +1 -1
  11. package/dist/{chunk-PUNELTD5.mjs → chunk-KDTWJCPP.mjs} +2 -2
  12. package/dist/{chunk-WL4HBALM.mjs → chunk-KWMR7BJ3.mjs} +2 -2
  13. package/dist/{chunk-JNXXK4LS.mjs → chunk-L256V25R.mjs} +2 -2
  14. package/dist/{chunk-QQWALIZA.mjs → chunk-R7P7OM42.mjs} +2 -2
  15. package/dist/{chunk-AJWEGY5E.mjs → chunk-WI2SKKZA.mjs} +2 -2
  16. package/dist/{chunk-JM7LCPTI.mjs → chunk-WW5D6H5R.mjs} +2 -2
  17. package/dist/index.js +13 -47
  18. package/dist/index.js.map +1 -1
  19. package/dist/index.mjs +17 -17
  20. package/dist/index.mjs.map +1 -1
  21. package/dist/{leadIntegrations-E5ECRGCW.mjs → leadIntegrations-OED5MKZ7.mjs} +15 -48
  22. package/dist/leadIntegrations-OED5MKZ7.mjs.map +1 -0
  23. package/dist/{liveStatus-MLIDJGJ2.mjs → liveStatus-TJRKZQ7H.mjs} +4 -4
  24. package/dist/{loginReport-7NPPKMNK.mjs → loginReport-FQJ3OSHE.mjs} +4 -4
  25. package/dist/{managementDashboard-RAHEBYB5.mjs → managementDashboard-7JPQ2H76.mjs} +3 -3
  26. package/dist-react/{agentDetailReport-DFRSOEVZ.mjs → agentDetailReport-ATRH7YOS.mjs} +3 -3
  27. package/dist-react/{agentPerformanceReport-ZWJNU7JX.mjs → agentPerformanceReport-F7B6XHE5.mjs} +5 -5
  28. package/dist-react/{auditReport-XYKDEO4D.mjs → auditReport-CB4SQYIH.mjs} +3 -3
  29. package/dist-react/{callHistory-JJZMVID5.mjs → callHistory-WJBFD7A6.mjs} +2 -2
  30. package/dist-react/{campaigns-DPTUOXLO.mjs → campaigns-XRE57FLD.mjs} +6 -6
  31. package/dist-react/{cdrReport-DPSZI6JP.mjs → cdrReport-ABBBTSEG.mjs} +6 -6
  32. package/dist-react/{chunk-KGHC54RU.mjs → chunk-6ZUZT6G7.mjs} +2 -2
  33. package/dist-react/{chunk-FFGFKWIY.mjs → chunk-7BQXXI2K.mjs} +2 -2
  34. package/dist-react/{chunk-YDI4675U.mjs → chunk-A5I4LSNK.mjs} +2 -2
  35. package/dist-react/{chunk-IVWVTBHM.mjs → chunk-AREVEAVD.mjs} +1 -2
  36. package/{dist/chunk-2AXMZZAY.mjs.map → dist-react/chunk-AREVEAVD.mjs.map} +1 -1
  37. package/dist-react/{chunk-JEI4KQEF.mjs → chunk-C42EEKB3.mjs} +2 -2
  38. package/dist-react/{chunk-7GV5PSYT.mjs → chunk-NBYRMQXE.mjs} +2 -2
  39. package/dist-react/{chunk-FZJ6XJ2L.mjs → chunk-OOZFD5TT.mjs} +2 -2
  40. package/dist-react/{chunk-CJBSOTXC.mjs → chunk-SFYCMFTV.mjs} +2 -2
  41. package/dist-react/{chunk-F4MYU2U4.mjs → chunk-YQE67OO2.mjs} +2 -2
  42. package/dist-react/index.js +13 -47
  43. package/dist-react/index.js.map +1 -1
  44. package/dist-react/index.mjs +17 -17
  45. package/dist-react/index.mjs.map +1 -1
  46. package/dist-react/{leadIntegrations-5PHHYP6P.mjs → leadIntegrations-6QTYEG2D.mjs} +15 -48
  47. package/dist-react/leadIntegrations-6QTYEG2D.mjs.map +1 -0
  48. package/dist-react/{liveStatus-GGCOZECH.mjs → liveStatus-P4XLDKB3.mjs} +4 -4
  49. package/dist-react/{loginReport-SXQMA2AZ.mjs → loginReport-EYCTYQSF.mjs} +4 -4
  50. package/dist-react/{managementDashboard-DUMWSZ4H.mjs → managementDashboard-BI2RWIKE.mjs} +3 -3
  51. package/package.json +1 -1
  52. package/dist/leadIntegrations-E5ECRGCW.mjs.map +0 -1
  53. package/dist-react/leadIntegrations-5PHHYP6P.mjs.map +0 -1
  54. /package/dist/{agentDetailReport-BYGYSA33.mjs.map → agentDetailReport-T4JNGFFX.mjs.map} +0 -0
  55. /package/dist/{agentPerformanceReport-Y5YYKSWG.mjs.map → agentPerformanceReport-NCP2UPJT.mjs.map} +0 -0
  56. /package/dist/{auditReport-C4WFAP3L.mjs.map → auditReport-XF4UDCRV.mjs.map} +0 -0
  57. /package/dist/{callHistory-6YAMF7QO.mjs.map → callHistory-KVOHY7WQ.mjs.map} +0 -0
  58. /package/dist/{campaigns-65A75UG5.mjs.map → campaigns-MQBX3BYQ.mjs.map} +0 -0
  59. /package/dist/{cdrReport-KHIUZEDV.mjs.map → cdrReport-4XCN3MCK.mjs.map} +0 -0
  60. /package/dist/{chunk-CBEMLYOM.mjs.map → chunk-5TAL7WLB.mjs.map} +0 -0
  61. /package/dist/{chunk-TT6SICS2.mjs.map → chunk-6HWDDYAJ.mjs.map} +0 -0
  62. /package/dist/{chunk-PUNELTD5.mjs.map → chunk-KDTWJCPP.mjs.map} +0 -0
  63. /package/dist/{chunk-WL4HBALM.mjs.map → chunk-KWMR7BJ3.mjs.map} +0 -0
  64. /package/dist/{chunk-JNXXK4LS.mjs.map → chunk-L256V25R.mjs.map} +0 -0
  65. /package/dist/{chunk-QQWALIZA.mjs.map → chunk-R7P7OM42.mjs.map} +0 -0
  66. /package/dist/{chunk-AJWEGY5E.mjs.map → chunk-WI2SKKZA.mjs.map} +0 -0
  67. /package/dist/{chunk-JM7LCPTI.mjs.map → chunk-WW5D6H5R.mjs.map} +0 -0
  68. /package/dist/{liveStatus-MLIDJGJ2.mjs.map → liveStatus-TJRKZQ7H.mjs.map} +0 -0
  69. /package/dist/{loginReport-7NPPKMNK.mjs.map → loginReport-FQJ3OSHE.mjs.map} +0 -0
  70. /package/dist/{managementDashboard-RAHEBYB5.mjs.map → managementDashboard-7JPQ2H76.mjs.map} +0 -0
  71. /package/dist-react/{agentDetailReport-DFRSOEVZ.mjs.map → agentDetailReport-ATRH7YOS.mjs.map} +0 -0
  72. /package/dist-react/{agentPerformanceReport-ZWJNU7JX.mjs.map → agentPerformanceReport-F7B6XHE5.mjs.map} +0 -0
  73. /package/dist-react/{auditReport-XYKDEO4D.mjs.map → auditReport-CB4SQYIH.mjs.map} +0 -0
  74. /package/dist-react/{callHistory-JJZMVID5.mjs.map → callHistory-WJBFD7A6.mjs.map} +0 -0
  75. /package/dist-react/{campaigns-DPTUOXLO.mjs.map → campaigns-XRE57FLD.mjs.map} +0 -0
  76. /package/dist-react/{cdrReport-DPSZI6JP.mjs.map → cdrReport-ABBBTSEG.mjs.map} +0 -0
  77. /package/dist-react/{chunk-KGHC54RU.mjs.map → chunk-6ZUZT6G7.mjs.map} +0 -0
  78. /package/dist-react/{chunk-FFGFKWIY.mjs.map → chunk-7BQXXI2K.mjs.map} +0 -0
  79. /package/dist-react/{chunk-YDI4675U.mjs.map → chunk-A5I4LSNK.mjs.map} +0 -0
  80. /package/dist-react/{chunk-JEI4KQEF.mjs.map → chunk-C42EEKB3.mjs.map} +0 -0
  81. /package/dist-react/{chunk-7GV5PSYT.mjs.map → chunk-NBYRMQXE.mjs.map} +0 -0
  82. /package/dist-react/{chunk-FZJ6XJ2L.mjs.map → chunk-OOZFD5TT.mjs.map} +0 -0
  83. /package/dist-react/{chunk-CJBSOTXC.mjs.map → chunk-SFYCMFTV.mjs.map} +0 -0
  84. /package/dist-react/{chunk-F4MYU2U4.mjs.map → chunk-YQE67OO2.mjs.map} +0 -0
  85. /package/dist-react/{liveStatus-GGCOZECH.mjs.map → liveStatus-P4XLDKB3.mjs.map} +0 -0
  86. /package/dist-react/{loginReport-SXQMA2AZ.mjs.map → loginReport-EYCTYQSF.mjs.map} +0 -0
  87. /package/dist-react/{managementDashboard-DUMWSZ4H.mjs.map → managementDashboard-BI2RWIKE.mjs.map} +0 -0
@@ -11,7 +11,7 @@ var require = function (id) {
11
11
  import {
12
12
  END_POINT,
13
13
  axios_default
14
- } from "./chunk-2AXMZZAY.mjs";
14
+ } from "./chunk-A2ZEA7YZ.mjs";
15
15
 
16
16
  // call-control-sdk/lib/hooks/useCallMonitoring.ts
17
17
  import { useCallback, useState } from "react";
@@ -89,4 +89,4 @@ var useCallMonitoring = () => {
89
89
  export {
90
90
  useCallMonitoring
91
91
  };
92
- //# sourceMappingURL=chunk-PUNELTD5.mjs.map
92
+ //# sourceMappingURL=chunk-KDTWJCPP.mjs.map
@@ -14,7 +14,7 @@ import {
14
14
  import {
15
15
  END_POINT,
16
16
  axios_default
17
- } from "./chunk-2AXMZZAY.mjs";
17
+ } from "./chunk-A2ZEA7YZ.mjs";
18
18
  import {
19
19
  Alert_default,
20
20
  Avatar_default,
@@ -708,4 +708,4 @@ export {
708
708
  AuditReportDialog,
709
709
  AuditReportFullPage
710
710
  };
711
- //# sourceMappingURL=chunk-WL4HBALM.mjs.map
711
+ //# sourceMappingURL=chunk-KWMR7BJ3.mjs.map
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  END_POINT,
23
23
  axios_default
24
- } from "./chunk-2AXMZZAY.mjs";
24
+ } from "./chunk-A2ZEA7YZ.mjs";
25
25
  import {
26
26
  Box_default,
27
27
  Checkbox_default,
@@ -390,4 +390,4 @@ export {
390
390
  headCellSx,
391
391
  bodyCellSx
392
392
  };
393
- //# sourceMappingURL=chunk-JNXXK4LS.mjs.map
393
+ //# sourceMappingURL=chunk-L256V25R.mjs.map
@@ -11,7 +11,7 @@ var require = function (id) {
11
11
  import {
12
12
  END_POINT,
13
13
  axios_default
14
- } from "./chunk-2AXMZZAY.mjs";
14
+ } from "./chunk-A2ZEA7YZ.mjs";
15
15
 
16
16
  // call-control-sdk/lib/pages/cdrReport/useCdrReport.ts
17
17
  import { useCallback, useState } from "react";
@@ -68,4 +68,4 @@ export {
68
68
  exportCdrReportToExcel,
69
69
  getRecordingByCall
70
70
  };
71
- //# sourceMappingURL=chunk-QQWALIZA.mjs.map
71
+ //# sourceMappingURL=chunk-R7P7OM42.mjs.map
@@ -55,7 +55,7 @@ import {
55
55
  axios_default,
56
56
  deepFindArray,
57
57
  sdkStateManager
58
- } from "./chunk-2AXMZZAY.mjs";
58
+ } from "./chunk-A2ZEA7YZ.mjs";
59
59
  import {
60
60
  Alert_default,
61
61
  Box_default,
@@ -954,4 +954,4 @@ export {
954
954
  exportAgentBreakSessionsToExcel,
955
955
  agentDetailReport_default
956
956
  };
957
- //# sourceMappingURL=chunk-AJWEGY5E.mjs.map
957
+ //# sourceMappingURL=chunk-WI2SKKZA.mjs.map
@@ -13,7 +13,7 @@ import {
13
13
  axios_default,
14
14
  deepFindArray,
15
15
  deepFindTotal
16
- } from "./chunk-2AXMZZAY.mjs";
16
+ } from "./chunk-A2ZEA7YZ.mjs";
17
17
  import {
18
18
  Button_default,
19
19
  __spreadProps,
@@ -475,4 +475,4 @@ export {
475
475
  leadPriorityChipSx,
476
476
  daychipSx
477
477
  };
478
- //# sourceMappingURL=chunk-JM7LCPTI.mjs.map
478
+ //# sourceMappingURL=chunk-WW5D6H5R.mjs.map
package/dist/index.js CHANGED
@@ -7757,7 +7757,6 @@ var init_endPoint = __esm({
7757
7757
  LEAD_INTEGRATION_FORM_MAPPING_BY_ID: (id, mappingId) => `${getBaseURL()}${VERSION.v1}/lead-integrations/${id}/form-mappings/${mappingId}`,
7758
7758
  LEAD_INTEGRATION_AVAILABLE_FORMS: (id) => `${getBaseURL()}${VERSION.v1}/lead-integrations/${id}/available-forms`,
7759
7759
  LEAD_INTEGRATION_LOGS: (id) => `${getBaseURL()}${VERSION.v1}/lead-integrations/${id}/logs`,
7760
- LEAD_INTEGRATION_FACEBOOK_CONNECT_URL: (id) => `${getBaseURL()}${VERSION.v1}/lead-integrations/${id}/facebook/connect-url`,
7761
7760
  // Login Report
7762
7761
  get LOGIN_REPORT() {
7763
7762
  return `${getBaseURL()}${VERSION.v1}/reports/login-report`;
@@ -134961,10 +134960,6 @@ function useLeadIntegrations() {
134961
134960
  const res = await axios_default2.post(END_POINT.LEAD_INTEGRATION_REGENERATE_TOKEN(id));
134962
134961
  return res.data;
134963
134962
  }, []);
134964
- const getFacebookConnectUrl = (0, import_react107.useCallback)(async (id) => {
134965
- const res = await axios_default2.get(END_POINT.LEAD_INTEGRATION_FACEBOOK_CONNECT_URL(id));
134966
- return res.data;
134967
- }, []);
134968
134963
  const getAvailableForms = (0, import_react107.useCallback)(async (integrationId) => {
134969
134964
  const res = await axios_default2.get(END_POINT.LEAD_INTEGRATION_AVAILABLE_FORMS(integrationId));
134970
134965
  return deepFindArray(res.data, ["forms"]);
@@ -135006,7 +135001,6 @@ function useLeadIntegrations() {
135006
135001
  updateIntegration,
135007
135002
  deleteIntegration,
135008
135003
  regenerateWebhookToken,
135009
- getFacebookConnectUrl,
135010
135004
  getAvailableForms,
135011
135005
  createFormMapping,
135012
135006
  updateFormMapping,
@@ -135038,7 +135032,7 @@ function getEffectiveExpiry(integration) {
135038
135032
  }
135039
135033
  function getRenewalInstructions(reasonLabel) {
135040
135034
  if (reasonLabel === "Data access authorization") {
135041
- return "Meta requires the Page admin to re-authorize this app before that date (Meta Business Suite \u2192 Settings \u2192 Integrations, or re-run the app's login/consent flow) to keep the leads_retrieval permission active. After re-authorizing, generate a fresh long-lived Page Access Token and paste it into the Page Access Token field below.";
135035
+ return "Meta requires the Page admin to re-authorize this app before that date (Meta Business Suite \u2192 Settings \u2192 Integrations, or Graph API Explorer) to keep the leads_retrieval permission active. After re-authorizing, generate a fresh long-lived Page Access Token and paste it into the Page Access Token field below.";
135042
135036
  }
135043
135037
  return "Generate a new long-lived Page Access Token from the Facebook App Dashboard (or via the Graph API token exchange) and paste it into the Page Access Token field below before the current one stops working.";
135044
135038
  }
@@ -135093,10 +135087,7 @@ function TokenStatusChip({ integration }) {
135093
135087
  }
135094
135088
  ) });
135095
135089
  }
135096
- function TokenExpiryAlert({
135097
- integration,
135098
- onReconnect
135099
- }) {
135090
+ function TokenExpiryAlert({ integration }) {
135100
135091
  const meta = TOKEN_STATUS_META[integration.tokenExpiryStatus];
135101
135092
  if (!meta || integration.tokenExpiryStatus === "ok") return null;
135102
135093
  const effective = getEffectiveExpiry(integration);
@@ -135106,8 +135097,7 @@ function TokenExpiryAlert({
135106
135097
  effective ? `${effective.label} ${isExpired ? "expired" : "expires"} ${effective.date.toLocaleDateString()} (${effective.date.toLocaleTimeString()})` : isExpired ? "This integration is no longer valid." : "This integration is expiring soon.",
135107
135098
  isExpired ? " \u2014 lead ingestion has stopped." : " \u2014 lead ingestion will stop once this passes."
135108
135099
  ] }),
135109
- /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(Typography_default, { variant: "body2", sx: { mb: 1 }, children: getRenewalInstructions((effective == null ? void 0 : effective.label) || "Access token") }),
135110
- (integration.sourceType === "facebook" || integration.sourceType === "instagram") && /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(SDKButton, { size: "small", variant: "outlined", onClick: () => onReconnect(integration), children: "Reconnect with Facebook" })
135100
+ /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(Typography_default, { variant: "body2", children: getRenewalInstructions((effective == null ? void 0 : effective.label) || "Access token") })
135111
135101
  ] });
135112
135102
  }
135113
135103
  function ModalShell({
@@ -135267,7 +135257,7 @@ function ConfirmDialog2({
135267
135257
  }
135268
135258
  );
135269
135259
  }
135270
- var import_react108, import_jsx_runtime300, INTEGRATION_COLS, CENTER_COLS2, MANAGE_PERMISSIONS, defaultIntegrationForm, defaultMappingForm, errMsg, Required, IntegrationDialog, MappingDialog, LeadIntegrationsContent, LeadIntegrations, leadIntegrations_default;
135260
+ var import_react108, import_jsx_runtime300, INTEGRATION_COLS, CENTER_COLS2, MANAGE_PERMISSIONS, defaultIntegrationForm, defaultMappingForm, errMsg, Required, SELECT_MENU_Z_INDEX, IntegrationDialog, MappingDialog, LeadIntegrationsContent, LeadIntegrations, leadIntegrations_default;
135271
135261
  var init_leadIntegrations = __esm({
135272
135262
  "call-control-sdk/lib/pages/leadIntegrations/index.tsx"() {
135273
135263
  "use strict";
@@ -135337,6 +135327,7 @@ var init_leadIntegrations = __esm({
135337
135327
  return ((_b = (_a2 = error == null ? void 0 : error.response) == null ? void 0 : _a2.data) == null ? void 0 : _b.message) || ((_d = (_c = error == null ? void 0 : error.response) == null ? void 0 : _c.data) == null ? void 0 : _d.detail) || (error == null ? void 0 : error.message) || fallback;
135338
135328
  };
135339
135329
  Required = () => /* @__PURE__ */ (0, import_jsx_runtime300.jsx)("span", { style: { color: "#c0392b" }, children: "*" });
135330
+ SELECT_MENU_Z_INDEX = 1600;
135340
135331
  IntegrationDialog = (0, import_react108.memo)(function IntegrationDialog2({
135341
135332
  open,
135342
135333
  mode,
@@ -135349,8 +135340,7 @@ var init_leadIntegrations = __esm({
135349
135340
  onClose,
135350
135341
  onAddMapping,
135351
135342
  onEditMapping,
135352
- onDeleteMapping,
135353
- onReconnect
135343
+ onDeleteMapping
135354
135344
  }) {
135355
135345
  var _a2, _b, _c, _d, _e, _f, _g, _h, _i;
135356
135346
  const [tab, setTab] = (0, import_react108.useState)(0);
@@ -135439,6 +135429,7 @@ var init_leadIntegrations = __esm({
135439
135429
  {
135440
135430
  value: formData.sourceType,
135441
135431
  sx: inputSx,
135432
+ MenuProps: { sx: { zIndex: SELECT_MENU_Z_INDEX } },
135442
135433
  disabled: mode === "edit",
135443
135434
  onChange: (e) => setFormData((prev2) => __spreadProps(__spreadValues({}, prev2), { sourceType: e.target.value })),
135444
135435
  children: SOURCE_TYPE_OPTIONS.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime300.jsxs)(MenuItem_default, { value: opt.value, children: [
@@ -135459,6 +135450,7 @@ var init_leadIntegrations = __esm({
135459
135450
  value: (_b = formData.defaultCampaignId) != null ? _b : "",
135460
135451
  displayEmpty: true,
135461
135452
  sx: inputSx,
135453
+ MenuProps: { sx: { zIndex: SELECT_MENU_Z_INDEX } },
135462
135454
  onChange: (e) => setFormData((prev2) => __spreadProps(__spreadValues({}, prev2), {
135463
135455
  defaultCampaignId: e.target.value ? Number(e.target.value) : null
135464
135456
  })),
@@ -135498,7 +135490,7 @@ var init_leadIntegrations = __esm({
135498
135490
  tab === 1 && /* @__PURE__ */ (0, import_jsx_runtime300.jsxs)(Box_default, { sx: { p: 2.5 }, children: [
135499
135491
  /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(Typography_default, { sx: sectionTitleSx, children: "API Credentials" }),
135500
135492
  /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(Typography_default, { variant: "body2", color: "text.secondary", sx: { mb: 2, fontSize: "0.82rem" }, children: "Enter your platform credentials. These are encrypted and stored securely." }),
135501
- mode === "edit" && editingIntegration && /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(TokenExpiryAlert, { integration: editingIntegration, onReconnect }),
135493
+ mode === "edit" && editingIntegration && /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(TokenExpiryAlert, { integration: editingIntegration }),
135502
135494
  /* @__PURE__ */ (0, import_jsx_runtime300.jsxs)(Box_default, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", md: "1fr 1fr" }, gap: 2 }, children: [
135503
135495
  /* @__PURE__ */ (0, import_jsx_runtime300.jsxs)(Box_default, { children: [
135504
135496
  /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(Typography_default, { sx: labelSx, children: "App ID" }),
@@ -135699,6 +135691,7 @@ var init_leadIntegrations = __esm({
135699
135691
  value: formData.sourceFormId || "",
135700
135692
  displayEmpty: true,
135701
135693
  sx: inputSx,
135694
+ MenuProps: { sx: { zIndex: SELECT_MENU_Z_INDEX } },
135702
135695
  disabled: mode === "edit",
135703
135696
  renderValue: (selected) => {
135704
135697
  var _a3;
@@ -135747,6 +135740,7 @@ var init_leadIntegrations = __esm({
135747
135740
  value: formData.campaignId || "",
135748
135741
  displayEmpty: true,
135749
135742
  sx: inputSx,
135743
+ MenuProps: { sx: { zIndex: SELECT_MENU_Z_INDEX } },
135750
135744
  renderValue: (selected) => {
135751
135745
  var _a3;
135752
135746
  return !selected ? /* @__PURE__ */ (0, import_jsx_runtime300.jsx)("span", { style: { color: "#9e9e9e" }, children: "Select Campaign" }) : ((_a3 = campaigns.find((c2) => c2.id === selected)) == null ? void 0 : _a3.name) || String(selected);
@@ -135851,7 +135845,6 @@ var init_leadIntegrations = __esm({
135851
135845
  updateIntegration,
135852
135846
  deleteIntegration,
135853
135847
  regenerateWebhookToken,
135854
- getFacebookConnectUrl,
135855
135848
  getAvailableForms,
135856
135849
  createFormMapping,
135857
135850
  updateFormMapping,
@@ -135984,32 +135977,6 @@ var init_leadIntegrations = __esm({
135984
135977
  (_a3 = navigator.clipboard) == null ? void 0 : _a3.writeText(url);
135985
135978
  showToast("Webhook URL copied to clipboard", "info");
135986
135979
  };
135987
- const handleReconnectFacebook = async (integration) => {
135988
- try {
135989
- const { authorizeUrl } = await getFacebookConnectUrl(integration.id);
135990
- const popup = window.open(authorizeUrl, "fb-oauth-reconnect", "width=600,height=700");
135991
- if (!popup) {
135992
- showToast("Popup blocked \u2014 allow popups for this site and try again", "warning");
135993
- return;
135994
- }
135995
- const onMessage = (event) => {
135996
- if (!event.data || event.data.type !== "lead-integration-fb-oauth-result") return;
135997
- window.removeEventListener("message", onMessage);
135998
- if (event.data.success) {
135999
- showToast(
136000
- event.data.pageName ? `Reconnected to "${event.data.pageName}"` : "Facebook integration reconnected",
136001
- "success"
136002
- );
136003
- refresh();
136004
- } else {
136005
- showToast(event.data.error || "Facebook reconnect failed", "error");
136006
- }
136007
- };
136008
- window.addEventListener("message", onMessage);
136009
- } catch (error) {
136010
- showToast(errMsg(error, "Failed to start Facebook reconnect"), "error");
136011
- }
136012
- };
136013
135980
  const openMappingDialog = async (integration, mode, mapping) => {
136014
135981
  setSelectedIntegration(integration);
136015
135982
  setMappingMode(mode);
@@ -136268,8 +136235,7 @@ var init_leadIntegrations = __esm({
136268
136235
  onClose: () => setDialogOpen(false),
136269
136236
  onAddMapping: (integration) => openMappingDialog(integration, "add"),
136270
136237
  onEditMapping: (integration, mapping) => openMappingDialog(integration, "edit", mapping),
136271
- onDeleteMapping: (integration, mapping) => setMappingDeleteTarget({ integration, mapping }),
136272
- onReconnect: handleReconnectFacebook
136238
+ onDeleteMapping: (integration, mapping) => setMappingDeleteTarget({ integration, mapping })
136273
136239
  }
136274
136240
  ),
136275
136241
  /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(
@@ -140535,7 +140501,7 @@ function CallControls({ onDataChange }) {
140535
140501
  }
140536
140502
  ),
140537
140503
  " ",
140538
- /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(Typography_default, { variant: "subtitle1", fontWeight: 600, sx: { textAlign: "center" }, children: "ahs-cti" }),
140504
+ /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(Typography_default, { variant: "subtitle1", sx: { textAlign: "center", fontWeight: 600 }, children: "ahs-cti" }),
140539
140505
  /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(IconButton_default, { onClick: () => setShowIframe(false), children: /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(Close_default2, {}) })
140540
140506
  ]
140541
140507
  }