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.
- package/dist/{agentDetailReport-BYGYSA33.mjs → agentDetailReport-T4JNGFFX.mjs} +3 -3
- package/dist/{agentPerformanceReport-Y5YYKSWG.mjs → agentPerformanceReport-NCP2UPJT.mjs} +5 -5
- package/dist/{auditReport-C4WFAP3L.mjs → auditReport-XF4UDCRV.mjs} +3 -3
- package/dist/{callHistory-6YAMF7QO.mjs → callHistory-KVOHY7WQ.mjs} +2 -2
- package/dist/{campaigns-65A75UG5.mjs → campaigns-MQBX3BYQ.mjs} +6 -6
- package/dist/{cdrReport-KHIUZEDV.mjs → cdrReport-4XCN3MCK.mjs} +6 -6
- package/dist/{chunk-CBEMLYOM.mjs → chunk-5TAL7WLB.mjs} +2 -2
- package/dist/{chunk-TT6SICS2.mjs → chunk-6HWDDYAJ.mjs} +2 -2
- package/dist/{chunk-2AXMZZAY.mjs → chunk-A2ZEA7YZ.mjs} +1 -2
- package/{dist-react/chunk-IVWVTBHM.mjs.map → dist/chunk-A2ZEA7YZ.mjs.map} +1 -1
- package/dist/{chunk-PUNELTD5.mjs → chunk-KDTWJCPP.mjs} +2 -2
- package/dist/{chunk-WL4HBALM.mjs → chunk-KWMR7BJ3.mjs} +2 -2
- package/dist/{chunk-JNXXK4LS.mjs → chunk-L256V25R.mjs} +2 -2
- package/dist/{chunk-QQWALIZA.mjs → chunk-R7P7OM42.mjs} +2 -2
- package/dist/{chunk-AJWEGY5E.mjs → chunk-WI2SKKZA.mjs} +2 -2
- package/dist/{chunk-JM7LCPTI.mjs → chunk-WW5D6H5R.mjs} +2 -2
- package/dist/index.js +13 -47
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -17
- package/dist/index.mjs.map +1 -1
- package/dist/{leadIntegrations-E5ECRGCW.mjs → leadIntegrations-OED5MKZ7.mjs} +15 -48
- package/dist/leadIntegrations-OED5MKZ7.mjs.map +1 -0
- package/dist/{liveStatus-MLIDJGJ2.mjs → liveStatus-TJRKZQ7H.mjs} +4 -4
- package/dist/{loginReport-7NPPKMNK.mjs → loginReport-FQJ3OSHE.mjs} +4 -4
- package/dist/{managementDashboard-RAHEBYB5.mjs → managementDashboard-7JPQ2H76.mjs} +3 -3
- package/dist-react/{agentDetailReport-DFRSOEVZ.mjs → agentDetailReport-ATRH7YOS.mjs} +3 -3
- package/dist-react/{agentPerformanceReport-ZWJNU7JX.mjs → agentPerformanceReport-F7B6XHE5.mjs} +5 -5
- package/dist-react/{auditReport-XYKDEO4D.mjs → auditReport-CB4SQYIH.mjs} +3 -3
- package/dist-react/{callHistory-JJZMVID5.mjs → callHistory-WJBFD7A6.mjs} +2 -2
- package/dist-react/{campaigns-DPTUOXLO.mjs → campaigns-XRE57FLD.mjs} +6 -6
- package/dist-react/{cdrReport-DPSZI6JP.mjs → cdrReport-ABBBTSEG.mjs} +6 -6
- package/dist-react/{chunk-KGHC54RU.mjs → chunk-6ZUZT6G7.mjs} +2 -2
- package/dist-react/{chunk-FFGFKWIY.mjs → chunk-7BQXXI2K.mjs} +2 -2
- package/dist-react/{chunk-YDI4675U.mjs → chunk-A5I4LSNK.mjs} +2 -2
- package/dist-react/{chunk-IVWVTBHM.mjs → chunk-AREVEAVD.mjs} +1 -2
- package/{dist/chunk-2AXMZZAY.mjs.map → dist-react/chunk-AREVEAVD.mjs.map} +1 -1
- package/dist-react/{chunk-JEI4KQEF.mjs → chunk-C42EEKB3.mjs} +2 -2
- package/dist-react/{chunk-7GV5PSYT.mjs → chunk-NBYRMQXE.mjs} +2 -2
- package/dist-react/{chunk-FZJ6XJ2L.mjs → chunk-OOZFD5TT.mjs} +2 -2
- package/dist-react/{chunk-CJBSOTXC.mjs → chunk-SFYCMFTV.mjs} +2 -2
- package/dist-react/{chunk-F4MYU2U4.mjs → chunk-YQE67OO2.mjs} +2 -2
- package/dist-react/index.js +13 -47
- package/dist-react/index.js.map +1 -1
- package/dist-react/index.mjs +17 -17
- package/dist-react/index.mjs.map +1 -1
- package/dist-react/{leadIntegrations-5PHHYP6P.mjs → leadIntegrations-6QTYEG2D.mjs} +15 -48
- package/dist-react/leadIntegrations-6QTYEG2D.mjs.map +1 -0
- package/dist-react/{liveStatus-GGCOZECH.mjs → liveStatus-P4XLDKB3.mjs} +4 -4
- package/dist-react/{loginReport-SXQMA2AZ.mjs → loginReport-EYCTYQSF.mjs} +4 -4
- package/dist-react/{managementDashboard-DUMWSZ4H.mjs → managementDashboard-BI2RWIKE.mjs} +3 -3
- package/package.json +1 -1
- package/dist/leadIntegrations-E5ECRGCW.mjs.map +0 -1
- package/dist-react/leadIntegrations-5PHHYP6P.mjs.map +0 -1
- /package/dist/{agentDetailReport-BYGYSA33.mjs.map → agentDetailReport-T4JNGFFX.mjs.map} +0 -0
- /package/dist/{agentPerformanceReport-Y5YYKSWG.mjs.map → agentPerformanceReport-NCP2UPJT.mjs.map} +0 -0
- /package/dist/{auditReport-C4WFAP3L.mjs.map → auditReport-XF4UDCRV.mjs.map} +0 -0
- /package/dist/{callHistory-6YAMF7QO.mjs.map → callHistory-KVOHY7WQ.mjs.map} +0 -0
- /package/dist/{campaigns-65A75UG5.mjs.map → campaigns-MQBX3BYQ.mjs.map} +0 -0
- /package/dist/{cdrReport-KHIUZEDV.mjs.map → cdrReport-4XCN3MCK.mjs.map} +0 -0
- /package/dist/{chunk-CBEMLYOM.mjs.map → chunk-5TAL7WLB.mjs.map} +0 -0
- /package/dist/{chunk-TT6SICS2.mjs.map → chunk-6HWDDYAJ.mjs.map} +0 -0
- /package/dist/{chunk-PUNELTD5.mjs.map → chunk-KDTWJCPP.mjs.map} +0 -0
- /package/dist/{chunk-WL4HBALM.mjs.map → chunk-KWMR7BJ3.mjs.map} +0 -0
- /package/dist/{chunk-JNXXK4LS.mjs.map → chunk-L256V25R.mjs.map} +0 -0
- /package/dist/{chunk-QQWALIZA.mjs.map → chunk-R7P7OM42.mjs.map} +0 -0
- /package/dist/{chunk-AJWEGY5E.mjs.map → chunk-WI2SKKZA.mjs.map} +0 -0
- /package/dist/{chunk-JM7LCPTI.mjs.map → chunk-WW5D6H5R.mjs.map} +0 -0
- /package/dist/{liveStatus-MLIDJGJ2.mjs.map → liveStatus-TJRKZQ7H.mjs.map} +0 -0
- /package/dist/{loginReport-7NPPKMNK.mjs.map → loginReport-FQJ3OSHE.mjs.map} +0 -0
- /package/dist/{managementDashboard-RAHEBYB5.mjs.map → managementDashboard-7JPQ2H76.mjs.map} +0 -0
- /package/dist-react/{agentDetailReport-DFRSOEVZ.mjs.map → agentDetailReport-ATRH7YOS.mjs.map} +0 -0
- /package/dist-react/{agentPerformanceReport-ZWJNU7JX.mjs.map → agentPerformanceReport-F7B6XHE5.mjs.map} +0 -0
- /package/dist-react/{auditReport-XYKDEO4D.mjs.map → auditReport-CB4SQYIH.mjs.map} +0 -0
- /package/dist-react/{callHistory-JJZMVID5.mjs.map → callHistory-WJBFD7A6.mjs.map} +0 -0
- /package/dist-react/{campaigns-DPTUOXLO.mjs.map → campaigns-XRE57FLD.mjs.map} +0 -0
- /package/dist-react/{cdrReport-DPSZI6JP.mjs.map → cdrReport-ABBBTSEG.mjs.map} +0 -0
- /package/dist-react/{chunk-KGHC54RU.mjs.map → chunk-6ZUZT6G7.mjs.map} +0 -0
- /package/dist-react/{chunk-FFGFKWIY.mjs.map → chunk-7BQXXI2K.mjs.map} +0 -0
- /package/dist-react/{chunk-YDI4675U.mjs.map → chunk-A5I4LSNK.mjs.map} +0 -0
- /package/dist-react/{chunk-JEI4KQEF.mjs.map → chunk-C42EEKB3.mjs.map} +0 -0
- /package/dist-react/{chunk-7GV5PSYT.mjs.map → chunk-NBYRMQXE.mjs.map} +0 -0
- /package/dist-react/{chunk-FZJ6XJ2L.mjs.map → chunk-OOZFD5TT.mjs.map} +0 -0
- /package/dist-react/{chunk-CJBSOTXC.mjs.map → chunk-SFYCMFTV.mjs.map} +0 -0
- /package/dist-react/{chunk-F4MYU2U4.mjs.map → chunk-YQE67OO2.mjs.map} +0 -0
- /package/dist-react/{liveStatus-GGCOZECH.mjs.map → liveStatus-P4XLDKB3.mjs.map} +0 -0
- /package/dist-react/{loginReport-SXQMA2AZ.mjs.map → loginReport-EYCTYQSF.mjs.map} +0 -0
- /package/dist-react/{managementDashboard-DUMWSZ4H.mjs.map → managementDashboard-BI2RWIKE.mjs.map} +0 -0
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
axios_default,
|
|
14
14
|
deepFindArray,
|
|
15
15
|
deepFindTotal
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AREVEAVD.mjs";
|
|
17
17
|
import {
|
|
18
18
|
__spreadProps,
|
|
19
19
|
__spreadValues
|
|
@@ -459,4 +459,4 @@ export {
|
|
|
459
459
|
leadPriorityChipSx,
|
|
460
460
|
daychipSx
|
|
461
461
|
};
|
|
462
|
-
//# sourceMappingURL=chunk-
|
|
462
|
+
//# sourceMappingURL=chunk-C42EEKB3.mjs.map
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
axios_default,
|
|
26
26
|
deepFindArray,
|
|
27
27
|
sdkStateManager
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-AREVEAVD.mjs";
|
|
29
29
|
import {
|
|
30
30
|
__spreadProps,
|
|
31
31
|
__spreadValues
|
|
@@ -940,4 +940,4 @@ export {
|
|
|
940
940
|
exportAgentBreakSessionsToExcel,
|
|
941
941
|
agentDetailReport_default
|
|
942
942
|
};
|
|
943
|
-
//# sourceMappingURL=chunk-
|
|
943
|
+
//# sourceMappingURL=chunk-NBYRMQXE.mjs.map
|
|
@@ -10,7 +10,7 @@ var require = function (id) {
|
|
|
10
10
|
|
|
11
11
|
import {
|
|
12
12
|
sdkStateManager
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-AREVEAVD.mjs";
|
|
14
14
|
import {
|
|
15
15
|
__spreadProps,
|
|
16
16
|
__spreadValues
|
|
@@ -64,4 +64,4 @@ var useGetCallerData = () => {
|
|
|
64
64
|
export {
|
|
65
65
|
useGetCallerData
|
|
66
66
|
};
|
|
67
|
-
//# sourceMappingURL=chunk-
|
|
67
|
+
//# sourceMappingURL=chunk-OOZFD5TT.mjs.map
|
|
@@ -11,7 +11,7 @@ var require = function (id) {
|
|
|
11
11
|
import {
|
|
12
12
|
END_POINT,
|
|
13
13
|
axios_default
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AREVEAVD.mjs";
|
|
15
15
|
import {
|
|
16
16
|
__spreadProps,
|
|
17
17
|
__spreadValues
|
|
@@ -685,4 +685,4 @@ export {
|
|
|
685
685
|
AuditReportDialog,
|
|
686
686
|
AuditReportFullPage
|
|
687
687
|
};
|
|
688
|
-
//# sourceMappingURL=chunk-
|
|
688
|
+
//# sourceMappingURL=chunk-SFYCMFTV.mjs.map
|
|
@@ -11,7 +11,7 @@ var require = function (id) {
|
|
|
11
11
|
import {
|
|
12
12
|
END_POINT,
|
|
13
13
|
axios_default
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AREVEAVD.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-
|
|
71
|
+
//# sourceMappingURL=chunk-YQE67OO2.mjs.map
|
package/dist-react/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`;
|
|
@@ -30808,10 +30807,6 @@ function useLeadIntegrations() {
|
|
|
30808
30807
|
const res = await axios_default2.post(END_POINT.LEAD_INTEGRATION_REGENERATE_TOKEN(id));
|
|
30809
30808
|
return res.data;
|
|
30810
30809
|
}, []);
|
|
30811
|
-
const getFacebookConnectUrl = (0, import_react36.useCallback)(async (id) => {
|
|
30812
|
-
const res = await axios_default2.get(END_POINT.LEAD_INTEGRATION_FACEBOOK_CONNECT_URL(id));
|
|
30813
|
-
return res.data;
|
|
30814
|
-
}, []);
|
|
30815
30810
|
const getAvailableForms = (0, import_react36.useCallback)(async (integrationId) => {
|
|
30816
30811
|
const res = await axios_default2.get(END_POINT.LEAD_INTEGRATION_AVAILABLE_FORMS(integrationId));
|
|
30817
30812
|
return deepFindArray(res.data, ["forms"]);
|
|
@@ -30853,7 +30848,6 @@ function useLeadIntegrations() {
|
|
|
30853
30848
|
updateIntegration,
|
|
30854
30849
|
deleteIntegration,
|
|
30855
30850
|
regenerateWebhookToken,
|
|
30856
|
-
getFacebookConnectUrl,
|
|
30857
30851
|
getAvailableForms,
|
|
30858
30852
|
createFormMapping,
|
|
30859
30853
|
updateFormMapping,
|
|
@@ -30885,7 +30879,7 @@ function getEffectiveExpiry(integration) {
|
|
|
30885
30879
|
}
|
|
30886
30880
|
function getRenewalInstructions(reasonLabel) {
|
|
30887
30881
|
if (reasonLabel === "Data access authorization") {
|
|
30888
|
-
return "Meta requires the Page admin to re-authorize this app before that date (Meta Business Suite \u2192 Settings \u2192 Integrations, or
|
|
30882
|
+
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.";
|
|
30889
30883
|
}
|
|
30890
30884
|
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.";
|
|
30891
30885
|
}
|
|
@@ -30940,10 +30934,7 @@ function TokenStatusChip({ integration }) {
|
|
|
30940
30934
|
}
|
|
30941
30935
|
) });
|
|
30942
30936
|
}
|
|
30943
|
-
function TokenExpiryAlert({
|
|
30944
|
-
integration,
|
|
30945
|
-
onReconnect
|
|
30946
|
-
}) {
|
|
30937
|
+
function TokenExpiryAlert({ integration }) {
|
|
30947
30938
|
const meta = TOKEN_STATUS_META[integration.tokenExpiryStatus];
|
|
30948
30939
|
if (!meta || integration.tokenExpiryStatus === "ok") return null;
|
|
30949
30940
|
const effective = getEffectiveExpiry(integration);
|
|
@@ -30953,8 +30944,7 @@ function TokenExpiryAlert({
|
|
|
30953
30944
|
effective ? `${effective.label} ${isExpired ? "expired" : "expires"} ${effective.date.toLocaleDateString()} (${effective.date.toLocaleTimeString()})` : isExpired ? "This integration is no longer valid." : "This integration is expiring soon.",
|
|
30954
30945
|
isExpired ? " \u2014 lead ingestion has stopped." : " \u2014 lead ingestion will stop once this passes."
|
|
30955
30946
|
] }),
|
|
30956
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_material31.Typography, { variant: "body2",
|
|
30957
|
-
(integration.sourceType === "facebook" || integration.sourceType === "instagram") && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SDKButton, { size: "small", variant: "outlined", onClick: () => onReconnect(integration), children: "Reconnect with Facebook" })
|
|
30947
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_material31.Typography, { variant: "body2", children: getRenewalInstructions((effective == null ? void 0 : effective.label) || "Access token") })
|
|
30958
30948
|
] });
|
|
30959
30949
|
}
|
|
30960
30950
|
function ModalShell({
|
|
@@ -31114,7 +31104,7 @@ function ConfirmDialog2({
|
|
|
31114
31104
|
}
|
|
31115
31105
|
);
|
|
31116
31106
|
}
|
|
31117
|
-
var import_react37, import_material31, import_Add2, import_ArrowDownward2, import_ArrowUpward, import_ContentCopy2, import_Delete2, import_Edit3, import_History, import_Refresh8, import_WarningAmber, import_jsx_runtime34, INTEGRATION_COLS, CENTER_COLS2, MANAGE_PERMISSIONS, defaultIntegrationForm, defaultMappingForm, errMsg, Required, IntegrationDialog, MappingDialog, LeadIntegrationsContent, LeadIntegrations, leadIntegrations_default;
|
|
31107
|
+
var import_react37, import_material31, import_Add2, import_ArrowDownward2, import_ArrowUpward, import_ContentCopy2, import_Delete2, import_Edit3, import_History, import_Refresh8, import_WarningAmber, import_jsx_runtime34, INTEGRATION_COLS, CENTER_COLS2, MANAGE_PERMISSIONS, defaultIntegrationForm, defaultMappingForm, errMsg, Required, SELECT_MENU_Z_INDEX, IntegrationDialog, MappingDialog, LeadIntegrationsContent, LeadIntegrations, leadIntegrations_default;
|
|
31118
31108
|
var init_leadIntegrations = __esm({
|
|
31119
31109
|
"call-control-sdk/lib/pages/leadIntegrations/index.tsx"() {
|
|
31120
31110
|
"use strict";
|
|
@@ -31184,6 +31174,7 @@ var init_leadIntegrations = __esm({
|
|
|
31184
31174
|
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;
|
|
31185
31175
|
};
|
|
31186
31176
|
Required = () => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { style: { color: "#c0392b" }, children: "*" });
|
|
31177
|
+
SELECT_MENU_Z_INDEX = 1600;
|
|
31187
31178
|
IntegrationDialog = (0, import_react37.memo)(function IntegrationDialog2({
|
|
31188
31179
|
open,
|
|
31189
31180
|
mode,
|
|
@@ -31196,8 +31187,7 @@ var init_leadIntegrations = __esm({
|
|
|
31196
31187
|
onClose,
|
|
31197
31188
|
onAddMapping,
|
|
31198
31189
|
onEditMapping,
|
|
31199
|
-
onDeleteMapping
|
|
31200
|
-
onReconnect
|
|
31190
|
+
onDeleteMapping
|
|
31201
31191
|
}) {
|
|
31202
31192
|
var _a2, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
31203
31193
|
const [tab, setTab] = (0, import_react37.useState)(0);
|
|
@@ -31286,6 +31276,7 @@ var init_leadIntegrations = __esm({
|
|
|
31286
31276
|
{
|
|
31287
31277
|
value: formData.sourceType,
|
|
31288
31278
|
sx: inputSx,
|
|
31279
|
+
MenuProps: { sx: { zIndex: SELECT_MENU_Z_INDEX } },
|
|
31289
31280
|
disabled: mode === "edit",
|
|
31290
31281
|
onChange: (e) => setFormData((prev) => __spreadProps(__spreadValues({}, prev), { sourceType: e.target.value })),
|
|
31291
31282
|
children: SOURCE_TYPE_OPTIONS.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_material31.MenuItem, { value: opt.value, children: [
|
|
@@ -31306,6 +31297,7 @@ var init_leadIntegrations = __esm({
|
|
|
31306
31297
|
value: (_b = formData.defaultCampaignId) != null ? _b : "",
|
|
31307
31298
|
displayEmpty: true,
|
|
31308
31299
|
sx: inputSx,
|
|
31300
|
+
MenuProps: { sx: { zIndex: SELECT_MENU_Z_INDEX } },
|
|
31309
31301
|
onChange: (e) => setFormData((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
31310
31302
|
defaultCampaignId: e.target.value ? Number(e.target.value) : null
|
|
31311
31303
|
})),
|
|
@@ -31345,7 +31337,7 @@ var init_leadIntegrations = __esm({
|
|
|
31345
31337
|
tab === 1 && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_material31.Box, { sx: { p: 2.5 }, children: [
|
|
31346
31338
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_material31.Typography, { sx: sectionTitleSx, children: "API Credentials" }),
|
|
31347
31339
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_material31.Typography, { variant: "body2", color: "text.secondary", sx: { mb: 2, fontSize: "0.82rem" }, children: "Enter your platform credentials. These are encrypted and stored securely." }),
|
|
31348
|
-
mode === "edit" && editingIntegration && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(TokenExpiryAlert, { integration: editingIntegration
|
|
31340
|
+
mode === "edit" && editingIntegration && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(TokenExpiryAlert, { integration: editingIntegration }),
|
|
31349
31341
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_material31.Box, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", md: "1fr 1fr" }, gap: 2 }, children: [
|
|
31350
31342
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_material31.Box, { children: [
|
|
31351
31343
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_material31.Typography, { sx: labelSx, children: "App ID" }),
|
|
@@ -31546,6 +31538,7 @@ var init_leadIntegrations = __esm({
|
|
|
31546
31538
|
value: formData.sourceFormId || "",
|
|
31547
31539
|
displayEmpty: true,
|
|
31548
31540
|
sx: inputSx,
|
|
31541
|
+
MenuProps: { sx: { zIndex: SELECT_MENU_Z_INDEX } },
|
|
31549
31542
|
disabled: mode === "edit",
|
|
31550
31543
|
renderValue: (selected) => {
|
|
31551
31544
|
var _a3;
|
|
@@ -31594,6 +31587,7 @@ var init_leadIntegrations = __esm({
|
|
|
31594
31587
|
value: formData.campaignId || "",
|
|
31595
31588
|
displayEmpty: true,
|
|
31596
31589
|
sx: inputSx,
|
|
31590
|
+
MenuProps: { sx: { zIndex: SELECT_MENU_Z_INDEX } },
|
|
31597
31591
|
renderValue: (selected) => {
|
|
31598
31592
|
var _a3;
|
|
31599
31593
|
return !selected ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { style: { color: "#9e9e9e" }, children: "Select Campaign" }) : ((_a3 = campaigns.find((c) => c.id === selected)) == null ? void 0 : _a3.name) || String(selected);
|
|
@@ -31698,7 +31692,6 @@ var init_leadIntegrations = __esm({
|
|
|
31698
31692
|
updateIntegration,
|
|
31699
31693
|
deleteIntegration,
|
|
31700
31694
|
regenerateWebhookToken,
|
|
31701
|
-
getFacebookConnectUrl,
|
|
31702
31695
|
getAvailableForms,
|
|
31703
31696
|
createFormMapping,
|
|
31704
31697
|
updateFormMapping,
|
|
@@ -31831,32 +31824,6 @@ var init_leadIntegrations = __esm({
|
|
|
31831
31824
|
(_a3 = navigator.clipboard) == null ? void 0 : _a3.writeText(url);
|
|
31832
31825
|
showToast("Webhook URL copied to clipboard", "info");
|
|
31833
31826
|
};
|
|
31834
|
-
const handleReconnectFacebook = async (integration) => {
|
|
31835
|
-
try {
|
|
31836
|
-
const { authorizeUrl } = await getFacebookConnectUrl(integration.id);
|
|
31837
|
-
const popup = window.open(authorizeUrl, "fb-oauth-reconnect", "width=600,height=700");
|
|
31838
|
-
if (!popup) {
|
|
31839
|
-
showToast("Popup blocked \u2014 allow popups for this site and try again", "warning");
|
|
31840
|
-
return;
|
|
31841
|
-
}
|
|
31842
|
-
const onMessage = (event) => {
|
|
31843
|
-
if (!event.data || event.data.type !== "lead-integration-fb-oauth-result") return;
|
|
31844
|
-
window.removeEventListener("message", onMessage);
|
|
31845
|
-
if (event.data.success) {
|
|
31846
|
-
showToast(
|
|
31847
|
-
event.data.pageName ? `Reconnected to "${event.data.pageName}"` : "Facebook integration reconnected",
|
|
31848
|
-
"success"
|
|
31849
|
-
);
|
|
31850
|
-
refresh();
|
|
31851
|
-
} else {
|
|
31852
|
-
showToast(event.data.error || "Facebook reconnect failed", "error");
|
|
31853
|
-
}
|
|
31854
|
-
};
|
|
31855
|
-
window.addEventListener("message", onMessage);
|
|
31856
|
-
} catch (error) {
|
|
31857
|
-
showToast(errMsg(error, "Failed to start Facebook reconnect"), "error");
|
|
31858
|
-
}
|
|
31859
|
-
};
|
|
31860
31827
|
const openMappingDialog = async (integration, mode, mapping) => {
|
|
31861
31828
|
setSelectedIntegration(integration);
|
|
31862
31829
|
setMappingMode(mode);
|
|
@@ -32115,8 +32082,7 @@ var init_leadIntegrations = __esm({
|
|
|
32115
32082
|
onClose: () => setDialogOpen(false),
|
|
32116
32083
|
onAddMapping: (integration) => openMappingDialog(integration, "add"),
|
|
32117
32084
|
onEditMapping: (integration, mapping) => openMappingDialog(integration, "edit", mapping),
|
|
32118
|
-
onDeleteMapping: (integration, mapping) => setMappingDeleteTarget({ integration, mapping })
|
|
32119
|
-
onReconnect: handleReconnectFacebook
|
|
32085
|
+
onDeleteMapping: (integration, mapping) => setMappingDeleteTarget({ integration, mapping })
|
|
32120
32086
|
}
|
|
32121
32087
|
),
|
|
32122
32088
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
@@ -36234,7 +36200,7 @@ function CallControls({ onDataChange }) {
|
|
|
36234
36200
|
}
|
|
36235
36201
|
),
|
|
36236
36202
|
" ",
|
|
36237
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material4.Typography, { variant: "subtitle1",
|
|
36203
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material4.Typography, { variant: "subtitle1", sx: { textAlign: "center", fontWeight: 600 }, children: "ahs-cti" }),
|
|
36238
36204
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material4.IconButton, { onClick: () => setShowIframe(false), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_Close2.default, {}) })
|
|
36239
36205
|
]
|
|
36240
36206
|
}
|