@hiver/connector-agent 4.27.0-appWidgets-beta.9 → 4.27.0-appWidgets-beta.10
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/features/app-widget/loader.d.ts.map +1 -1
- package/index.es.js +79 -77
- package/index.umd.js +7 -7
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/features/app-widget/loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,KAAK,EAAiB,MAAM,eAAe,CAAC;AAG1D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEjE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,iFAAiF;IACjF,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,+EAA+E;IAC/E,KAAK,EAAE,KAAK,EAAE,CAAC;IACf,6EAA6E;IAC7E,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/features/app-widget/loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,KAAK,EAAiB,MAAM,eAAe,CAAC;AAG1D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEjE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,iFAAiF;IACjF,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,+EAA+E;IAC/E,KAAK,EAAE,KAAK,EAAE,CAAC;IACf,6EAA6E;IAC7E,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAyBF,6CAA6C;AAC7C,eAAO,MAAM,mBAAmB,QAAe,OAAO,QAAQ,iBAAiB,KAAG,OAAO,CAAC,iBAAiB,CAU1G,CAAC;AAEF,uFAAuF;AACvF,eAAO,MAAM,iBAAiB,SACtB,KAAK,8CACiC,iBAAiB,0BAE5D,OAAO,CAAC,iBAAiB,CAgB3B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,SACvB,iBAAiB,gBACF;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,KACzC,OAAO,CAAC,cAAc,GAAG,IAAI,CAM/B,CAAC"}
|
package/index.es.js
CHANGED
|
@@ -3118,11 +3118,11 @@ const Qr = async () => {
|
|
|
3118
3118
|
}, j8 = async (e) => {
|
|
3119
3119
|
const t = await UF(e);
|
|
3120
3120
|
return t && !ac(t) ? !1 : await Rf(e) && !t ? !0 : !!(await KF(e)).length;
|
|
3121
|
-
},
|
|
3121
|
+
}, FK = async (e, t) => {
|
|
3122
3122
|
await GF(e, t);
|
|
3123
3123
|
}, ls = async (e) => {
|
|
3124
3124
|
e && await VF(e);
|
|
3125
|
-
},
|
|
3125
|
+
}, mK = async (e, t) => {
|
|
3126
3126
|
const n = await Rf(e);
|
|
3127
3127
|
t ? n !== !1 && await bd(e, t) : await bd(e, void 0);
|
|
3128
3128
|
}, YF = async (e) => await WF(e) && await j8(e), qF = async (e) => {
|
|
@@ -7051,7 +7051,7 @@ const tr = {
|
|
|
7051
7051
|
if (!tr.baseUrl)
|
|
7052
7052
|
throw new Error("Base url is not setup. please call the initConnectorsBifrost function with the appropriate value");
|
|
7053
7053
|
return tr;
|
|
7054
|
-
},
|
|
7054
|
+
}, xK = ({
|
|
7055
7055
|
baseUrl: e,
|
|
7056
7056
|
appEnv: t,
|
|
7057
7057
|
tier: n,
|
|
@@ -16017,7 +16017,7 @@ const mk = (e, t) => ({
|
|
|
16017
16017
|
DELETE: "DELETE",
|
|
16018
16018
|
PATCH: "PATCH",
|
|
16019
16019
|
PUT: "PUT"
|
|
16020
|
-
}, vk = "Required Field", Bk = "Invalid date", w4 = /^https:\/\/([a-z0-9-]+(\.[a-z0-9-]+)+)(:[0-9]{1,5})?(\/[^\s/]*)*$/i, wk = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, I4 = "Please enter a valid URL", Ik = "Please enter valid ID", Sk = "Please enter valid input", kk = "URL must start with https://", Tk = "URL should not end with a slash", Lk = "Invalid email address", Rk = "Email must be a string", K3 = "Invalid date", Ok = "Date cannot be in the past", _k = "Date cannot be in the future", jk = "Invalid number", Nk = "Invalid text",
|
|
16020
|
+
}, vk = "Required Field", Bk = "Invalid date", w4 = /^https:\/\/([a-z0-9-]+(\.[a-z0-9-]+)+)(:[0-9]{1,5})?(\/[^\s/]*)*$/i, wk = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, I4 = "Please enter a valid URL", Ik = "Please enter valid ID", Sk = "Please enter valid input", kk = "URL must start with https://", Tk = "URL should not end with a slash", Lk = "Invalid email address", Rk = "Email must be a string", K3 = "Invalid date", Ok = "Date cannot be in the past", _k = "Date cannot be in the future", jk = "Invalid number", Nk = "Invalid text", yK = async (e) => {
|
|
16021
16021
|
const t = new URLSearchParams(), { inboxIds: n, channelType: r, conversationId: o, fetchAuthenticatedConnectors: u } = e || {};
|
|
16022
16022
|
return n == null || n.forEach((s) => {
|
|
16023
16023
|
t.append("inbox_ids", s);
|
|
@@ -20945,7 +20945,7 @@ const dA = {
|
|
|
20945
20945
|
});
|
|
20946
20946
|
}
|
|
20947
20947
|
}
|
|
20948
|
-
), { resetState:
|
|
20948
|
+
), { resetState: vK, resetPreviewCardData: Jr, setSelectedSuggestionType: vO, resetDropdownOptionsCache: BO } = A6.actions, wO = A6.reducer, br = "/v1/api", IO = `${br}/connectors/forms/list`, SO = `${br}/connectors/cards/:id/unlink`, kO = `${br}/connectors/forms/:id/link`, TO = `${br}/connectors/form/:formId`, LO = `${br}/connectors/forms/:formId/data`, RO = `${br}/connectors/forms/:formId/get_forms_custom_fields`, OO = `${br}/connectors/forms/:formId/field/:fieldName/custom_fields`, p6 = `${br}/connectors/forms/:formId/defaults`, _O = `${br}/connectors/forms/:formId/default-values`, jO = `${br}/connectors/conversation-summary`, NO = `${br}/connectors/attachments`, g6 = ({
|
|
20949
20949
|
inboxIds: e,
|
|
20950
20950
|
channelType: t,
|
|
20951
20951
|
conversationId: n,
|
|
@@ -21379,7 +21379,7 @@ Do you want to continue?`, YO = "Select an object to create", pA = "Select an ob
|
|
|
21379
21379
|
return et({ message: ro, type: St }), t(s);
|
|
21380
21380
|
}
|
|
21381
21381
|
}
|
|
21382
|
-
), { resetState:
|
|
21382
|
+
), { resetState: BK, setCurrentCardInEdit: Wo, resetCurrentResourceDetails: r_, setHasUnsavedChanges: au } = x6.actions, o_ = x6.reducer, u_ = () => {
|
|
21383
21383
|
const [e, t] = P(null), [n, r] = P({
|
|
21384
21384
|
isVertical: !1,
|
|
21385
21385
|
isHorizontal: !1,
|
|
@@ -22592,9 +22592,9 @@ const mA = /* @__PURE__ */ new Set(), CD = () => Zc.forEach((e) => e()), s1 = (e
|
|
|
22592
22592
|
userAuthStatusReceived: Kc,
|
|
22593
22593
|
userAuthRequired: vj,
|
|
22594
22594
|
userAuthInProgress: Bj,
|
|
22595
|
-
userAuthCompleted:
|
|
22595
|
+
userAuthCompleted: wK,
|
|
22596
22596
|
userAuthFailed: ju,
|
|
22597
|
-
userAuthReset:
|
|
22597
|
+
userAuthReset: IK
|
|
22598
22598
|
} = Y6.actions, wj = Y6.reducer, Ij = { state: "unknown" }, Oi = (e, t) => e.userAuth.byConnectorId[t] || Ij, Sj = /* @__PURE__ */ new Set([
|
|
22599
22599
|
"disconnected",
|
|
22600
22600
|
"in_progress",
|
|
@@ -27292,7 +27292,7 @@ const NQ = w(U)`
|
|
|
27292
27292
|
let tl = {};
|
|
27293
27293
|
const nl = /* @__PURE__ */ new Set(), jH = (e, t) => {
|
|
27294
27294
|
tl = { ...tl, [e]: t }, nl.forEach((n) => n());
|
|
27295
|
-
}, NH = (e) => (nl.add(e), () => nl.delete(e)),
|
|
27295
|
+
}, NH = (e) => (nl.add(e), () => nl.delete(e)), SK = (e) => dl(NH, () => tl)[e], MH = async ({ id: e, searchString: t, args: n, smId: r, smIds: o }) => {
|
|
27296
27296
|
try {
|
|
27297
27297
|
if (e === void 0 || t === void 0)
|
|
27298
27298
|
return [];
|
|
@@ -28247,7 +28247,7 @@ const LD = () => {
|
|
|
28247
28247
|
children: /* @__PURE__ */ a.jsx(bi, { fallback: /* @__PURE__ */ a.jsx(a.Fragment, {}), children: e })
|
|
28248
28248
|
}
|
|
28249
28249
|
) }) }) }) });
|
|
28250
|
-
},
|
|
28250
|
+
}, kK = ({
|
|
28251
28251
|
userEmail: e = "",
|
|
28252
28252
|
contactEmail: t = "",
|
|
28253
28253
|
baseUrls: n = {},
|
|
@@ -28290,7 +28290,7 @@ const LD = () => {
|
|
|
28290
28290
|
]
|
|
28291
28291
|
}
|
|
28292
28292
|
) });
|
|
28293
|
-
},
|
|
28293
|
+
}, TK = {
|
|
28294
28294
|
/**
|
|
28295
28295
|
* @deprecated Nothing listens to this any more. Opening the expanded create form now goes
|
|
28296
28296
|
* through the ActionQueue (`ACTIONS.OPEN_CREATE_FORM` with a `connectorId`): the request
|
|
@@ -28984,7 +28984,7 @@ const GU = ({
|
|
|
28984
28984
|
}
|
|
28985
28985
|
}
|
|
28986
28986
|
) });
|
|
28987
|
-
}, VU = ({ children: e, theme: t }) => /* @__PURE__ */ a.jsx(pa, { store: yu, children: /* @__PURE__ */ a.jsx(So, { config: t, children: /* @__PURE__ */ a.jsx(ji, { children: /* @__PURE__ */ a.jsx(bi, { fallback: /* @__PURE__ */ a.jsx(a.Fragment, {}), children: e }) }) }) }),
|
|
28987
|
+
}, VU = ({ children: e, theme: t }) => /* @__PURE__ */ a.jsx(pa, { store: yu, children: /* @__PURE__ */ a.jsx(So, { config: t, children: /* @__PURE__ */ a.jsx(ji, { children: /* @__PURE__ */ a.jsx(bi, { fallback: /* @__PURE__ */ a.jsx(a.Fragment, {}), children: e }) }) }) }), LK = ({
|
|
28988
28988
|
conversationId: e,
|
|
28989
28989
|
hasSmList: t,
|
|
28990
28990
|
smIds: n,
|
|
@@ -29016,7 +29016,7 @@ const GU = ({
|
|
|
29016
29016
|
const r = n.payload;
|
|
29017
29017
|
return r.conversationId !== e ? !1 : (t({ ...r, connectorId: n.connectorId }), !0);
|
|
29018
29018
|
}, ZU = ({ conversationId: e, openLink: t }) => (n) => n.payload.conversationId !== e || !t ? !1 : (t(), !0);
|
|
29019
|
-
class
|
|
29019
|
+
class RK {
|
|
29020
29020
|
constructor({ processDelay: t = 1e3 }) {
|
|
29021
29021
|
lt(this, "_processDelay");
|
|
29022
29022
|
lt(this, "_queue", []);
|
|
@@ -30742,7 +30742,7 @@ const DG = w(U)`
|
|
|
30742
30742
|
);
|
|
30743
30743
|
return /* @__PURE__ */ a.jsx(xn.Provider, { value: i, children: u });
|
|
30744
30744
|
}, qg = ({ children: e, theme: t, ...n }) => /* @__PURE__ */ a.jsx(pa, { store: yu, children: /* @__PURE__ */ a.jsx(So, { config: t, children: /* @__PURE__ */ a.jsx(a6, { enabled: n.tenant === "HIVERWEB", children: /* @__PURE__ */ a.jsx(ji, { children: /* @__PURE__ */ a.jsx(bi, { fallback: /* @__PURE__ */ a.jsx(a.Fragment, {}), children: /* @__PURE__ */ a.jsx(rV, { ...n, children: e }) }) }) }) }) }), as = ".hiver-log-crm-button", is = ".hiver-log-crm-compose-button", o2 = ".hiver-log-crm-subject-button";
|
|
30745
|
-
class
|
|
30745
|
+
class OK {
|
|
30746
30746
|
constructor({
|
|
30747
30747
|
emailNodeFilter: t,
|
|
30748
30748
|
composeNodeFilter: n,
|
|
@@ -30839,7 +30839,7 @@ class RK {
|
|
|
30839
30839
|
document.querySelectorAll(as).forEach((r) => r.remove()), document.querySelectorAll(is).forEach((r) => r.remove()), this.observer && (this.observer.disconnect(), this.observer = null);
|
|
30840
30840
|
}
|
|
30841
30841
|
}
|
|
30842
|
-
const
|
|
30842
|
+
const _K = ({
|
|
30843
30843
|
observer: e,
|
|
30844
30844
|
theme: t = Ur,
|
|
30845
30845
|
...n
|
|
@@ -31874,7 +31874,7 @@ const mV = w("div")`
|
|
|
31874
31874
|
]
|
|
31875
31875
|
}
|
|
31876
31876
|
);
|
|
31877
|
-
},
|
|
31877
|
+
}, jK = ({
|
|
31878
31878
|
onVisibilityChange: e,
|
|
31879
31879
|
theme: t = Ur,
|
|
31880
31880
|
...n
|
|
@@ -39947,7 +39947,7 @@ const IZ = (e) => e.toLowerCase().replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, "
|
|
|
39947
39947
|
MuiMenuItem: { styleOverrides: { root: { fontFamily: `${Ru} !important` } } },
|
|
39948
39948
|
MuiChip: { styleOverrides: { root: { fontFamily: `${Ru} !important` } } }
|
|
39949
39949
|
}
|
|
39950
|
-
}, jZ = (e) => yi(e, _Z), Kh = ({ children: e, theme: t, ...n }) => /* @__PURE__ */ a.jsx(pa, { store: yu, children: /* @__PURE__ */ a.jsx(So, { config: t, children: /* @__PURE__ */ a.jsx(kf, { theme: jZ, children: /* @__PURE__ */ a.jsx(OZ, { children: /* @__PURE__ */ a.jsx(bi, { fallback: /* @__PURE__ */ a.jsx(a.Fragment, {}), children: /* @__PURE__ */ a.jsx(Qg, { value: { ...n, tenant: "omni" }, children: e }) }) }) }) }) }),
|
|
39950
|
+
}, jZ = (e) => yi(e, _Z), Kh = ({ children: e, theme: t, ...n }) => /* @__PURE__ */ a.jsx(pa, { store: yu, children: /* @__PURE__ */ a.jsx(So, { config: t, children: /* @__PURE__ */ a.jsx(kf, { theme: jZ, children: /* @__PURE__ */ a.jsx(OZ, { children: /* @__PURE__ */ a.jsx(bi, { fallback: /* @__PURE__ */ a.jsx(a.Fragment, {}), children: /* @__PURE__ */ a.jsx(Qg, { value: { ...n, tenant: "omni" }, children: e }) }) }) }) }) }), NK = ({ theme: e = Ur, ...t }) => {
|
|
39951
39951
|
const n = bu(e);
|
|
39952
39952
|
return /* @__PURE__ */ a.jsx(ga, { className: "connector-theme-root", "data-color-scheme": e.mode, style: n, children: /* @__PURE__ */ a.jsxs(Kh, { ...t, theme: e, children: [
|
|
39953
39953
|
/* @__PURE__ */ a.jsx(Jh, {}),
|
|
@@ -39969,7 +39969,7 @@ const IZ = (e) => e.toLowerCase().replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, "
|
|
|
39969
39969
|
document.body
|
|
39970
39970
|
)
|
|
39971
39971
|
] }) });
|
|
39972
|
-
},
|
|
39972
|
+
}, MK = ({
|
|
39973
39973
|
connectorId: e,
|
|
39974
39974
|
open: t,
|
|
39975
39975
|
onClose: n,
|
|
@@ -40060,7 +40060,7 @@ const IZ = (e) => e.toLowerCase().replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, "
|
|
|
40060
40060
|
}
|
|
40061
40061
|
)
|
|
40062
40062
|
] });
|
|
40063
|
-
},
|
|
40063
|
+
}, PK = ({
|
|
40064
40064
|
theme: e = { mode: "light" },
|
|
40065
40065
|
flow: t,
|
|
40066
40066
|
unlinkLinkId: n,
|
|
@@ -40094,7 +40094,7 @@ const IZ = (e) => e.toLowerCase().replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, "
|
|
|
40094
40094
|
value: { ...n, showChannelHeader: !0, boxedMessages: !0, tenant: "hig" },
|
|
40095
40095
|
children: e
|
|
40096
40096
|
}
|
|
40097
|
-
) }) }) }) }) }),
|
|
40097
|
+
) }) }) }) }) }), QK = ({ theme: e = Ur, ...t }) => {
|
|
40098
40098
|
const n = bu(e);
|
|
40099
40099
|
return /* @__PURE__ */ a.jsx(ga, { className: "connector-theme-root", "data-color-scheme": e.mode, style: n, children: /* @__PURE__ */ a.jsxs(ZD, { ...t, theme: e, children: [
|
|
40100
40100
|
/* @__PURE__ */ a.jsx(Jh, {}),
|
|
@@ -40537,13 +40537,13 @@ const IZ = (e) => e.toLowerCase().replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, "
|
|
|
40537
40537
|
v && W(),
|
|
40538
40538
|
ae
|
|
40539
40539
|
] });
|
|
40540
|
-
},
|
|
40540
|
+
}, HK = ({
|
|
40541
40541
|
onViewAll: e,
|
|
40542
40542
|
onOpenLink: t,
|
|
40543
40543
|
onUnreadCountChange: n,
|
|
40544
40544
|
theme: r,
|
|
40545
40545
|
...o
|
|
40546
|
-
}) => /* @__PURE__ */ a.jsx(ZD, { ...o, theme: r, children: /* @__PURE__ */ a.jsx(Yh, { onViewAll: e, onOpenLink: t, onUnreadCountChange: n }) }),
|
|
40546
|
+
}) => /* @__PURE__ */ a.jsx(ZD, { ...o, theme: r, children: /* @__PURE__ */ a.jsx(Yh, { onViewAll: e, onOpenLink: t, onUnreadCountChange: n }) }), UK = ({
|
|
40547
40547
|
onViewAll: e,
|
|
40548
40548
|
onOpenLink: t,
|
|
40549
40549
|
onUnreadCountChange: n,
|
|
@@ -40558,12 +40558,12 @@ const IZ = (e) => e.toLowerCase().replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, "
|
|
|
40558
40558
|
headerless: !0
|
|
40559
40559
|
}
|
|
40560
40560
|
) });
|
|
40561
|
-
function
|
|
40561
|
+
function WK(e) {
|
|
40562
40562
|
var n;
|
|
40563
40563
|
const t = p1(e, !0, 0);
|
|
40564
40564
|
return (n = t.data) != null && n.channelName ? { label: t.data.channelName, isLinked: !0 } : { label: "Slack", isLinked: !1 };
|
|
40565
40565
|
}
|
|
40566
|
-
function
|
|
40566
|
+
function GK(e, t = 0) {
|
|
40567
40567
|
const r = PD(e, !0, t).data;
|
|
40568
40568
|
return {
|
|
40569
40569
|
links: ((r == null ? void 0 : r.links) ?? []).map((o) => ({
|
|
@@ -40578,11 +40578,11 @@ function WK(e, t = 0) {
|
|
|
40578
40578
|
remainingSlots: (r == null ? void 0 : r.remainingSlots) ?? 0
|
|
40579
40579
|
};
|
|
40580
40580
|
}
|
|
40581
|
-
const
|
|
40581
|
+
const VK = (e) => ke({
|
|
40582
40582
|
url: mO,
|
|
40583
40583
|
method: je.POST,
|
|
40584
40584
|
data: e
|
|
40585
|
-
}),
|
|
40585
|
+
}), zK = (e) => ke({
|
|
40586
40586
|
url: EO,
|
|
40587
40587
|
method: je.POST,
|
|
40588
40588
|
data: e
|
|
@@ -40603,7 +40603,7 @@ const GK = (e) => ke({
|
|
|
40603
40603
|
fetchConnectors: r,
|
|
40604
40604
|
abort: n.abort.bind(n)
|
|
40605
40605
|
};
|
|
40606
|
-
},
|
|
40606
|
+
}, XK = (e = {}) => {
|
|
40607
40607
|
const t = wt(e.availableFeatures, h7), n = {
|
|
40608
40608
|
connectorApiPending: !1,
|
|
40609
40609
|
connectorApiAbort: null,
|
|
@@ -40759,7 +40759,7 @@ const GK = (e) => ke({
|
|
|
40759
40759
|
renderHighlight: c
|
|
40760
40760
|
}
|
|
40761
40761
|
);
|
|
40762
|
-
},
|
|
40762
|
+
}, ZK = ({ theme: e, ...t }) => /* @__PURE__ */ a.jsx(uJ, { theme: e, children: /* @__PURE__ */ a.jsx(dJ, { ...t }) }), AJ = LD(), qh = ({ children: e }) => /* @__PURE__ */ a.jsx(bl, { client: AJ, children: e }), pJ = (e) => {
|
|
40763
40763
|
var t;
|
|
40764
40764
|
switch (e.category) {
|
|
40765
40765
|
case "ecommerce":
|
|
@@ -41268,11 +41268,13 @@ const GK = (e) => ke({
|
|
|
41268
41268
|
externalResourceId: e.externalResourceId,
|
|
41269
41269
|
linked: e.linked,
|
|
41270
41270
|
restricted: e.restricted
|
|
41271
|
-
}), eK = async ({ connectorId: e, conversationId: t, inboxIds: n }) => {
|
|
41271
|
+
}), eK = /* @__PURE__ */ new Set(["create", "link", "search_and_link"]), tK = async ({ connectorId: e, conversationId: t, inboxIds: n }) => {
|
|
41272
41272
|
var r;
|
|
41273
41273
|
try {
|
|
41274
41274
|
const o = await g6({ inboxIds: n, channelType: "email", conversationId: t, connectorId: e }), u = (r = o == null ? void 0 : o.data) == null ? void 0 : r.formsList;
|
|
41275
|
-
return Array.isArray(u) ? u.some(
|
|
41275
|
+
return Array.isArray(u) ? u.some(
|
|
41276
|
+
(i) => (!i.connectorId || i.connectorId === e) && eK.has(String(i.type))
|
|
41277
|
+
) : !0;
|
|
41276
41278
|
} catch {
|
|
41277
41279
|
return !0;
|
|
41278
41280
|
}
|
|
@@ -41282,7 +41284,7 @@ const GK = (e) => ke({
|
|
|
41282
41284
|
return {
|
|
41283
41285
|
// PM widgets list only linked records, so their lookup cards are never read.
|
|
41284
41286
|
cards: s.filter((c) => e.category !== "pm" || !!c.externalResourceId),
|
|
41285
|
-
available: s.length > 0 || await
|
|
41287
|
+
available: s.length > 0 || await tK(t)
|
|
41286
41288
|
};
|
|
41287
41289
|
}, iC = async (e, { conversationId: t, contactEmail: n, inboxIds: r }, o = !1) => {
|
|
41288
41290
|
var u;
|
|
@@ -41301,12 +41303,12 @@ const GK = (e) => ke({
|
|
|
41301
41303
|
} catch (i) {
|
|
41302
41304
|
return { card: e, data: null, errorStatus: (u = i == null ? void 0 : i.response) == null ? void 0 : u.status };
|
|
41303
41305
|
}
|
|
41304
|
-
},
|
|
41306
|
+
}, JK = async (e, { refresh: t = !1 } = {}) => {
|
|
41305
41307
|
const n = tC(e.connectorName);
|
|
41306
41308
|
if (!n || !e.conversationId) return null;
|
|
41307
41309
|
const { cards: r, available: o } = await aC(n, e), u = await Promise.all(r.map((i) => iC(i, e, t)));
|
|
41308
41310
|
return uC(n, u, o);
|
|
41309
|
-
},
|
|
41311
|
+
}, nK = 5e3, M2 = /* @__PURE__ */ new Map(), P2 = (e, t) => ["appWidget", e, t], sC = ({
|
|
41310
41312
|
connectorId: e,
|
|
41311
41313
|
connectorName: t,
|
|
41312
41314
|
conversationId: n,
|
|
@@ -41334,7 +41336,7 @@ const GK = (e) => ke({
|
|
|
41334
41336
|
g.filter((B) => !!B),
|
|
41335
41337
|
p
|
|
41336
41338
|
), [i, C.isLoading, d, F, p]), E = ie(() => {
|
|
41337
|
-
M2.set(c, Date.now() +
|
|
41339
|
+
M2.set(c, Date.now() + nK), f.invalidateQueries({ queryKey: P2(e, n) });
|
|
41338
41340
|
}, [f, c, e, n]);
|
|
41339
41341
|
return {
|
|
41340
41342
|
app: i,
|
|
@@ -41360,7 +41362,7 @@ const GK = (e) => ke({
|
|
|
41360
41362
|
...e.trackingContext,
|
|
41361
41363
|
...r
|
|
41362
41364
|
});
|
|
41363
|
-
},
|
|
41365
|
+
}, rK = (e) => {
|
|
41364
41366
|
const { app: t, model: n, isLoading: r } = sC(e), { tokens: o } = o1(), u = fC(r, $h), i = (n == null ? void 0 : n.connection) === "expired", s = vJ(n, !!e.isAdmin), f = (n == null ? void 0 : n.available) ?? !0, { onSummaryChange: c } = e;
|
|
41365
41367
|
re(() => {
|
|
41366
41368
|
c == null || c({ text: s, isLoading: r, disconnected: i, available: f });
|
|
@@ -41381,14 +41383,14 @@ const GK = (e) => ke({
|
|
|
41381
41383
|
children: s
|
|
41382
41384
|
}
|
|
41383
41385
|
) : null;
|
|
41384
|
-
},
|
|
41386
|
+
}, oK = (e) => {
|
|
41385
41387
|
const { app: t, model: n, isLoading: r, refresh: o } = sC(e), { tokens: u } = o1(), i = fC(r, $h);
|
|
41386
41388
|
if (!t) return null;
|
|
41387
41389
|
const s = (f, c, l) => {
|
|
41388
41390
|
c && js(e, t, c, l), e.onAction(f);
|
|
41389
41391
|
};
|
|
41390
|
-
return r ? i ? /* @__PURE__ */ a.jsx(
|
|
41391
|
-
|
|
41392
|
+
return r ? i ? /* @__PURE__ */ a.jsx(fK, {}) : null : !n || !n.available ? null : n.connection === "expired" ? /* @__PURE__ */ a.jsx(
|
|
41393
|
+
cK,
|
|
41392
41394
|
{
|
|
41393
41395
|
app: t,
|
|
41394
41396
|
appName: e.connectorName,
|
|
@@ -41400,7 +41402,7 @@ const GK = (e) => ke({
|
|
|
41400
41402
|
}
|
|
41401
41403
|
) : /* @__PURE__ */ a.jsxs(U, { "data-testid": "app-widget-body", spacing: 1, sx: { pb: 1 }, children: [
|
|
41402
41404
|
/* @__PURE__ */ a.jsx(
|
|
41403
|
-
|
|
41405
|
+
aK,
|
|
41404
41406
|
{
|
|
41405
41407
|
lookupKey: t.category === "pm" ? "" : e.contactEmail,
|
|
41406
41408
|
tokens: u,
|
|
@@ -41410,7 +41412,7 @@ const GK = (e) => ke({
|
|
|
41410
41412
|
}
|
|
41411
41413
|
),
|
|
41412
41414
|
n.records.length === 0 ? /* @__PURE__ */ a.jsx(Y, { variant: "body2", sx: { color: u.textSecondary, fontSize: 13 }, children: pJ(t) }) : n.records.map((f) => /* @__PURE__ */ a.jsx(
|
|
41413
|
-
|
|
41415
|
+
iK,
|
|
41414
41416
|
{
|
|
41415
41417
|
record: f,
|
|
41416
41418
|
tokens: u,
|
|
@@ -41438,7 +41440,7 @@ const GK = (e) => ke({
|
|
|
41438
41440
|
}
|
|
41439
41441
|
),
|
|
41440
41442
|
/* @__PURE__ */ a.jsx(
|
|
41441
|
-
|
|
41443
|
+
sK,
|
|
41442
41444
|
{
|
|
41443
41445
|
app: t,
|
|
41444
41446
|
tokens: u,
|
|
@@ -41449,10 +41451,10 @@ const GK = (e) => ke({
|
|
|
41449
41451
|
}
|
|
41450
41452
|
)
|
|
41451
41453
|
] });
|
|
41452
|
-
},
|
|
41454
|
+
}, uK = () => /* @__PURE__ */ a.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": !0, children: [
|
|
41453
41455
|
/* @__PURE__ */ a.jsx("path", { d: "M13.5 8a5.5 5.5 0 1 1-1.6-3.9", strokeLinecap: "round" }),
|
|
41454
41456
|
/* @__PURE__ */ a.jsx("path", { d: "M13.5 2.5v3h-3", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
41455
|
-
] }),
|
|
41457
|
+
] }), aK = ({
|
|
41456
41458
|
lookupKey: e,
|
|
41457
41459
|
tokens: t,
|
|
41458
41460
|
onRefresh: n
|
|
@@ -41475,10 +41477,10 @@ const GK = (e) => ke({
|
|
|
41475
41477
|
borderRadius: 1,
|
|
41476
41478
|
"&:hover": { background: t.surfaceHover }
|
|
41477
41479
|
},
|
|
41478
|
-
children: /* @__PURE__ */ a.jsx(
|
|
41480
|
+
children: /* @__PURE__ */ a.jsx(uK, {})
|
|
41479
41481
|
}
|
|
41480
41482
|
) })
|
|
41481
|
-
] }),
|
|
41483
|
+
] }), iK = ({ record: e, tokens: t, onOpen: n, onOpenInApp: r }) => /* @__PURE__ */ a.jsx(
|
|
41482
41484
|
Q,
|
|
41483
41485
|
{
|
|
41484
41486
|
"data-testid": "app-widget-card",
|
|
@@ -41539,7 +41541,7 @@ const GK = (e) => ke({
|
|
|
41539
41541
|
) })
|
|
41540
41542
|
] })
|
|
41541
41543
|
}
|
|
41542
|
-
),
|
|
41544
|
+
), sK = ({ app: e, tokens: t, onCreate: n, onSearchLink: r }) => /* @__PURE__ */ a.jsxs(U, { direction: "row", spacing: 1, children: [
|
|
41543
41545
|
e.createLabel && /* @__PURE__ */ a.jsx(
|
|
41544
41546
|
Re,
|
|
41545
41547
|
{
|
|
@@ -41566,54 +41568,54 @@ const GK = (e) => ke({
|
|
|
41566
41568
|
children: bJ
|
|
41567
41569
|
}
|
|
41568
41570
|
)
|
|
41569
|
-
] }),
|
|
41571
|
+
] }), fK = () => /* @__PURE__ */ a.jsxs(U, { "data-testid": "app-widget-loading", spacing: 1, sx: { pb: 1 }, children: [
|
|
41570
41572
|
/* @__PURE__ */ a.jsx(fu, { variant: "rounded", height: 64 }),
|
|
41571
41573
|
/* @__PURE__ */ a.jsx(fu, { variant: "rounded", height: 64 })
|
|
41572
|
-
] }),
|
|
41574
|
+
] }), cK = ({ app: e, appName: t, isAdmin: n, adminNotified: r, tokens: o, onReconnect: u, onNotifyAdmin: i }) => /* @__PURE__ */ a.jsxs(U, { "data-testid": "app-widget-disconnected", spacing: 1, sx: { pb: 1 }, children: [
|
|
41573
41575
|
/* @__PURE__ */ a.jsx(Y, { variant: "body2", sx: { color: o.textSecondary, fontSize: 13 }, children: gJ(e, t, n) }),
|
|
41574
41576
|
n ? /* @__PURE__ */ a.jsx(Re, { variant: "contained", size: "small", onClick: u, children: hJ(t) }) : /* @__PURE__ */ a.jsx(Re, { variant: "outlined", size: "small", disabled: r, onClick: i, children: r ? FJ : CJ })
|
|
41575
41577
|
] }), cC = ({ theme: e, children: t }) => {
|
|
41576
41578
|
const n = bu(e), r = $(() => ({ ...n, display: "contents" }), [n]);
|
|
41577
41579
|
return /* @__PURE__ */ a.jsx("span", { className: "connector-theme-root", "data-color-scheme": e.mode, style: r, children: /* @__PURE__ */ a.jsx(So, { config: e, children: t }) });
|
|
41578
|
-
},
|
|
41580
|
+
}, KK = ({ theme: e = Ur, ...t }) => /* @__PURE__ */ a.jsx(cC, { theme: e, children: /* @__PURE__ */ a.jsx(qh, { children: /* @__PURE__ */ a.jsx(rK, { ...t }) }) }), YK = ({ theme: e = Ur, ...t }) => /* @__PURE__ */ a.jsx(cC, { theme: e, children: /* @__PURE__ */ a.jsx(qh, { children: /* @__PURE__ */ a.jsx(oK, { ...t }) }) });
|
|
41579
41581
|
export {
|
|
41580
41582
|
zr as APP_WIDGET_EVENTS,
|
|
41581
|
-
|
|
41582
|
-
|
|
41583
|
-
|
|
41584
|
-
|
|
41585
|
-
|
|
41586
|
-
|
|
41587
|
-
|
|
41588
|
-
|
|
41589
|
-
|
|
41590
|
-
|
|
41591
|
-
|
|
41583
|
+
RK as ActionQueue,
|
|
41584
|
+
YK as AppWidgetBody,
|
|
41585
|
+
KK as AppWidgetSummary,
|
|
41586
|
+
TK as CONNECTORS_AGENT_EVENTS,
|
|
41587
|
+
kK as ConnectorCardList,
|
|
41588
|
+
_K as EmailLogger,
|
|
41589
|
+
OK as GmailLogObserver,
|
|
41590
|
+
MK as HigSlackConnectModalIsland,
|
|
41591
|
+
HK as HigSlackSection,
|
|
41592
|
+
UK as HigSlackSectionBody,
|
|
41593
|
+
QK as HigSlackTab,
|
|
41592
41594
|
ke as HiverConnectorBifrostAuth,
|
|
41593
|
-
|
|
41594
|
-
|
|
41595
|
-
|
|
41595
|
+
LK as IntegrationSense,
|
|
41596
|
+
jK as OmniEmailLogger,
|
|
41597
|
+
NK as OmniSlackTab,
|
|
41596
41598
|
zV as SLACK_LINKS_API,
|
|
41597
|
-
|
|
41598
|
-
|
|
41599
|
-
|
|
41600
|
-
|
|
41599
|
+
MK as SlackConnectModalIsland,
|
|
41600
|
+
PK as SlackLinkActionsIsland,
|
|
41601
|
+
ZK as SplitAppsNudge,
|
|
41602
|
+
FK as addNewConnectors,
|
|
41601
41603
|
vJ as appWidgetSummaryText,
|
|
41602
41604
|
dD as connectorThemeDefaults,
|
|
41603
|
-
|
|
41605
|
+
XK as createAppStore,
|
|
41604
41606
|
qF as dismissNotification,
|
|
41605
|
-
|
|
41606
|
-
|
|
41607
|
+
VK as fetchAppCfValues,
|
|
41608
|
+
zK as fetchDeferredAppCfValues,
|
|
41607
41609
|
tC as getAppWidgetSpec,
|
|
41608
41610
|
_n as getConnectorsBifrostConfigs,
|
|
41609
|
-
|
|
41610
|
-
|
|
41611
|
-
|
|
41611
|
+
yK as getMetaData,
|
|
41612
|
+
xK as initConnectorsBifrost,
|
|
41613
|
+
JK as loadAppWidgetModel,
|
|
41612
41614
|
s6 as resolveConnectorThemeTokens,
|
|
41613
|
-
|
|
41615
|
+
mK as setCaptureFeedbackOnDemand,
|
|
41614
41616
|
j8 as shouldCaptureFeedback,
|
|
41615
41617
|
YF as shouldShowNotification,
|
|
41616
|
-
|
|
41617
|
-
|
|
41618
|
-
|
|
41618
|
+
SK as useConnectorSelectedEmail,
|
|
41619
|
+
GK as useSlackLinksSummary,
|
|
41620
|
+
WK as useSlackTabLabel
|
|
41619
41621
|
};
|