@hiver/connector-agent 2.0.5-beta.8 → 2.0.5-emailSelect-beta.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector-cards.d.ts","sourceRoot":"","sources":["../../src/app/connector-cards.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAgD,MAAM,OAAO,CAAC;AAoEzE,UAAU,SAAS;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"connector-cards.d.ts","sourceRoot":"","sources":["../../src/app/connector-cards.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAgD,MAAM,OAAO,CAAC;AAoEzE,UAAU,SAAS;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,SAAS,CAwRxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-selection.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/email-selection.tsx"],"names":[],"mappings":"AASA,UAAU,MAAM;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AA8ED,eAAO,MAAM,cAAc,wCAAyC,MAAM,
|
|
1
|
+
{"version":3,"file":"email-selection.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/email-selection.tsx"],"names":[],"mappings":"AASA,UAAU,MAAM;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AA8ED,eAAO,MAAM,cAAc,wCAAyC,MAAM,4CA+BzE,CAAC"}
|
package/index.es.js
CHANGED
|
@@ -14,7 +14,7 @@ var FA = (e, t, n, o) => ({
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
import * as x from "react";
|
|
17
|
-
import O, { useState as ve, useRef as Tt, useSyncExternalStore as sv, useLayoutEffect as ks, useEffect as
|
|
17
|
+
import O, { useState as ve, useRef as Tt, useSyncExternalStore as sv, useLayoutEffect as ks, useEffect as et, isValidElement as Ro, cloneElement as li, forwardRef as uc, useContext as Wn, Children as av, createElement as Av, useReducer as yE, createContext as bE, useCallback as Dt, useMemo as nn, Component as lv, Fragment as Bd, Suspense as cv } from "react";
|
|
18
18
|
import * as uv from "react-dom";
|
|
19
19
|
import OA, { createPortal as yg } from "react-dom";
|
|
20
20
|
var Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -703,7 +703,7 @@ function dc(e) {
|
|
|
703
703
|
m.target === p.current && (B(), E.removeEventListener("animationend", h), E.removeEventListener("animationcancel", h), d.current === 0 && m.type !== "animationcancel" && E.classList.remove(...Q));
|
|
704
704
|
};
|
|
705
705
|
E.classList.add(...Q), E.addEventListener("animationend", h), E.addEventListener("animationcancel", h);
|
|
706
|
-
}, []),
|
|
706
|
+
}, []), et(() => {
|
|
707
707
|
const E = p.current, Q = () => {
|
|
708
708
|
E.removeEventListener("animationend", Q), r ? pv(E, u, i) : u();
|
|
709
709
|
};
|
|
@@ -831,7 +831,7 @@ function Iv(e) {
|
|
|
831
831
|
h.style.transition = "transform 0.2s, opacity 0.2s", h.style.removeProperty("transform"), h.style.removeProperty("opacity");
|
|
832
832
|
}
|
|
833
833
|
}
|
|
834
|
-
(B = Cn.get((g = { id: e.toastId, containerId: e.containerId, fn: n }).containerId || 1)) == null || B.setToggle(g.id, g.fn),
|
|
834
|
+
(B = Cn.get((g = { id: e.toastId, containerId: e.containerId, fn: n }).containerId || 1)) == null || B.setToggle(g.id, g.fn), et(() => {
|
|
835
835
|
if (e.pauseOnFocusLoss) return document.hasFocus() || f(), window.addEventListener("focus", C), window.addEventListener("blur", f), () => {
|
|
836
836
|
window.removeEventListener("focus", C), window.removeEventListener("blur", f);
|
|
837
837
|
};
|
|
@@ -924,7 +924,7 @@ Et.loading = (e, t) => Ea(e, Tl("default", { isLoading: !0, autoClose: !1, close
|
|
|
924
924
|
vd.delete(e);
|
|
925
925
|
};
|
|
926
926
|
}, Et.play = (e) => v0(!0, e), Et.pause = (e) => v0(!1, e);
|
|
927
|
-
const Qv = typeof window < "u" ? ks :
|
|
927
|
+
const Qv = typeof window < "u" ? ks : et, RA = (e) => {
|
|
928
928
|
let { theme: t, type: n, isLoading: o, ...r } = e;
|
|
929
929
|
return O.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: t === "colored" ? "currentColor" : `var(--toastify-icon-color-${n})`, ...r });
|
|
930
930
|
}, yu = { info: function(e) {
|
|
@@ -22017,44 +22017,44 @@ function tu() {
|
|
|
22017
22017
|
var e = zu(this._milliseconds) / 1e3, t = zu(this._days), n = zu(this._months), o, r, i, a, A = this.asSeconds(), l, c, u, p;
|
|
22018
22018
|
return A ? (o = qn(e / 60), r = qn(o / 60), e %= 60, o %= 60, i = qn(n / 12), n %= 12, a = e ? e.toFixed(3).replace(/\.?0+$/, "") : "", l = A < 0 ? "-" : "", c = Gi(this._months) !== Gi(A) ? "-" : "", u = Gi(this._days) !== Gi(A) ? "-" : "", p = Gi(this._milliseconds) !== Gi(A) ? "-" : "", l + "P" + (i ? c + i + "Y" : "") + (n ? c + n + "M" : "") + (t ? u + t + "D" : "") + (r || o || e ? "T" : "") + (r ? p + r + "H" : "") + (o ? p + o + "M" : "") + (e ? p + a + "S" : "")) : "P0D";
|
|
22019
22019
|
}
|
|
22020
|
-
var
|
|
22021
|
-
|
|
22022
|
-
|
|
22023
|
-
|
|
22024
|
-
|
|
22025
|
-
|
|
22026
|
-
|
|
22027
|
-
|
|
22028
|
-
|
|
22029
|
-
|
|
22030
|
-
|
|
22031
|
-
|
|
22032
|
-
|
|
22033
|
-
|
|
22034
|
-
|
|
22035
|
-
|
|
22036
|
-
|
|
22037
|
-
|
|
22038
|
-
|
|
22039
|
-
|
|
22040
|
-
|
|
22041
|
-
|
|
22042
|
-
|
|
22043
|
-
|
|
22044
|
-
|
|
22045
|
-
|
|
22046
|
-
|
|
22047
|
-
|
|
22048
|
-
|
|
22049
|
-
|
|
22050
|
-
|
|
22051
|
-
|
|
22052
|
-
|
|
22053
|
-
|
|
22020
|
+
var tt = $c.prototype;
|
|
22021
|
+
tt.isValid = RO;
|
|
22022
|
+
tt.abs = uR;
|
|
22023
|
+
tt.add = dR;
|
|
22024
|
+
tt.subtract = gR;
|
|
22025
|
+
tt.as = pR;
|
|
22026
|
+
tt.asMilliseconds = Dh;
|
|
22027
|
+
tt.asSeconds = CR;
|
|
22028
|
+
tt.asMinutes = ER;
|
|
22029
|
+
tt.asHours = IR;
|
|
22030
|
+
tt.asDays = hR;
|
|
22031
|
+
tt.asWeeks = BR;
|
|
22032
|
+
tt.asMonths = mR;
|
|
22033
|
+
tt.asQuarters = QR;
|
|
22034
|
+
tt.asYears = vR;
|
|
22035
|
+
tt.valueOf = yR;
|
|
22036
|
+
tt._bubble = fR;
|
|
22037
|
+
tt.clone = bR;
|
|
22038
|
+
tt.get = wR;
|
|
22039
|
+
tt.milliseconds = xR;
|
|
22040
|
+
tt.seconds = TR;
|
|
22041
|
+
tt.minutes = FR;
|
|
22042
|
+
tt.hours = OR;
|
|
22043
|
+
tt.days = SR;
|
|
22044
|
+
tt.weeks = MR;
|
|
22045
|
+
tt.months = RR;
|
|
22046
|
+
tt.years = kR;
|
|
22047
|
+
tt.humanize = UR;
|
|
22048
|
+
tt.toISOString = tu;
|
|
22049
|
+
tt.toString = tu;
|
|
22050
|
+
tt.toJSON = tu;
|
|
22051
|
+
tt.locale = Qh;
|
|
22052
|
+
tt.localeData = yh;
|
|
22053
|
+
tt.toIsoString = io(
|
|
22054
22054
|
"toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
|
|
22055
22055
|
tu
|
|
22056
22056
|
);
|
|
22057
|
-
|
|
22057
|
+
tt.lang = vh;
|
|
22058
22058
|
Oe("X", 0, 0, "unix");
|
|
22059
22059
|
Oe("x", 0, 0, "valueOf");
|
|
22060
22060
|
ge("x", _c);
|
|
@@ -25731,7 +25731,7 @@ const BD = (e) => {
|
|
|
25731
25731
|
v += 1;
|
|
25732
25732
|
c.selectionStart = c.selectionEnd = v + (B ? 1 + d : 0);
|
|
25733
25733
|
};
|
|
25734
|
-
}),
|
|
25734
|
+
}), et(() => {
|
|
25735
25735
|
const l = (u) => {
|
|
25736
25736
|
u.code === "Delete" && (a.current = !0);
|
|
25737
25737
|
}, c = (u) => {
|
|
@@ -33855,7 +33855,7 @@ const lo = {
|
|
|
33855
33855
|
color: ${Se.palette.gray.gray2};
|
|
33856
33856
|
`, $U = () => {
|
|
33857
33857
|
const { availableFeatures: e, sendTrackingEvent: t, isAdmin: n } = Wn(ao), [o, r] = ve(() => !(localStorage.getItem(od) === "true") && Sr(e, XN));
|
|
33858
|
-
|
|
33858
|
+
et(() => {
|
|
33859
33859
|
localStorage.getItem(od) === "true" && r(!1);
|
|
33860
33860
|
}, []);
|
|
33861
33861
|
const i = () => {
|
|
@@ -36655,7 +36655,7 @@ Do you want to continue?`, GH = "Select an object to create", XH = "Select an ob
|
|
|
36655
36655
|
}), r = Dt((i) => {
|
|
36656
36656
|
t(i);
|
|
36657
36657
|
}, []);
|
|
36658
|
-
return
|
|
36658
|
+
return et(() => {
|
|
36659
36659
|
if (!e) return;
|
|
36660
36660
|
e.dataset.prevScrollLeft = "0", e.dataset.prevScrollTop = "0";
|
|
36661
36661
|
let i = null;
|
|
@@ -36765,9 +36765,9 @@ Do you want to continue?`, GH = "Select an object to create", XH = "Select an ob
|
|
|
36765
36765
|
c,
|
|
36766
36766
|
p == null ? void 0 : p.externalResourceId
|
|
36767
36767
|
]);
|
|
36768
|
-
|
|
36768
|
+
et(() => {
|
|
36769
36769
|
(n && B || l && v) && S();
|
|
36770
|
-
}, [S, v, l, n, B]),
|
|
36770
|
+
}, [S, v, l, n, B]), et(() => {
|
|
36771
36771
|
const L = o ? f.current : C.current;
|
|
36772
36772
|
if (L) {
|
|
36773
36773
|
const W = L.scrollHeight > L.clientHeight || L.scrollWidth > L.clientWidth;
|
|
@@ -36823,11 +36823,11 @@ Do you want to continue?`, GH = "Select an object to create", XH = "Select an ob
|
|
|
36823
36823
|
ks(() => {
|
|
36824
36824
|
var Y;
|
|
36825
36825
|
(Y = M.current) != null && Y.scrollHeight && N(M.current.scrollHeight + A);
|
|
36826
|
-
}, [r == null ? void 0 : r[t], R, M]),
|
|
36826
|
+
}, [r == null ? void 0 : r[t], R, M]), et(() => {
|
|
36827
36827
|
var te, K;
|
|
36828
36828
|
const Y = ((T == null ? void 0 : T.length) || 0) > 5, X = !d && (((K = (te = g == null ? void 0 : g.listItems) == null ? void 0 : te.fields) == null ? void 0 : K.length) || 0) > 1;
|
|
36829
36829
|
v(Y && !X), m(X);
|
|
36830
|
-
}, [g, d, T == null ? void 0 : T.length]),
|
|
36830
|
+
}, [g, d, T == null ? void 0 : T.length]), et(() => {
|
|
36831
36831
|
D(E ? T : S);
|
|
36832
36832
|
}, [g, E, S, T]);
|
|
36833
36833
|
const P = () => {
|
|
@@ -37095,7 +37095,7 @@ Do you want to continue?`, GH = "Select an object to create", XH = "Select an ob
|
|
|
37095
37095
|
},
|
|
37096
37096
|
[A, o, h, m, c, u, I]
|
|
37097
37097
|
);
|
|
37098
|
-
|
|
37098
|
+
et(() => {
|
|
37099
37099
|
i && L(!0);
|
|
37100
37100
|
}, [i, L]);
|
|
37101
37101
|
const W = (z, G) => {
|
|
@@ -39029,7 +39029,7 @@ function PG(e) {
|
|
|
39029
39029
|
}, [B, g, p]), f = Dt(function(d) {
|
|
39030
39030
|
d && (d.removeEventListener("wheel", p, !1), d.removeEventListener("touchstart", g, !1), d.removeEventListener("touchmove", B, !1));
|
|
39031
39031
|
}, [B, g, p]);
|
|
39032
|
-
return
|
|
39032
|
+
return et(function() {
|
|
39033
39033
|
if (t) {
|
|
39034
39034
|
var d = c.current;
|
|
39035
39035
|
return C(d), function() {
|
|
@@ -39089,7 +39089,7 @@ function LG(e) {
|
|
|
39089
39089
|
}), c && $C() && (c.removeEventListener("touchmove", ZC, Ki), l && (l.removeEventListener("touchstart", qC, Ki), l.removeEventListener("touchmove", JC, Ki)));
|
|
39090
39090
|
}
|
|
39091
39091
|
}, [o]);
|
|
39092
|
-
return
|
|
39092
|
+
return et(function() {
|
|
39093
39093
|
if (t) {
|
|
39094
39094
|
var l = i.current;
|
|
39095
39095
|
return a(l), function() {
|
|
@@ -40503,7 +40503,7 @@ function QX(e) {
|
|
|
40503
40503
|
var t = e.defaultOptions, n = t === void 0 ? !1 : t, o = e.cacheOptions, r = o === void 0 ? !1 : o, i = e.loadOptions;
|
|
40504
40504
|
e.options;
|
|
40505
40505
|
var a = e.isLoading, A = a === void 0 ? !1 : a, l = e.onInputChange, c = e.filterOption, u = c === void 0 ? null : c, p = Yo(e, mX), g = p.inputValue, B = Tt(void 0), C = Tt(!1), f = ve(Array.isArray(n) ? n : void 0), d = tn(f, 2), E = d[0], Q = d[1], h = ve(typeof g < "u" ? g : ""), m = tn(h, 2), I = m[0], v = m[1], b = ve(n === !0), w = tn(b, 2), T = w[0], S = w[1], R = ve(void 0), D = tn(R, 2), M = D[0], k = D[1], N = ve([]), L = tn(N, 2), W = L[0], H = L[1], $ = ve(!1), P = tn($, 2), z = P[0], G = P[1], Y = ve({}), X = tn(Y, 2), J = X[0], te = X[1], K = ve(void 0), q = tn(K, 2), _ = q[0], ne = q[1], ie = ve(void 0), U = tn(ie, 2), re = U[0], Z = U[1];
|
|
40506
|
-
r !== re && (te({}), Z(r)), n !== _ && (Q(Array.isArray(n) ? n : void 0), ne(n)),
|
|
40506
|
+
r !== re && (te({}), Z(r)), n !== _ && (Q(Array.isArray(n) ? n : void 0), ne(n)), et(function() {
|
|
40507
40507
|
return C.current = !0, function() {
|
|
40508
40508
|
C.current = !1;
|
|
40509
40509
|
};
|
|
@@ -40515,7 +40515,7 @@ function QX(e) {
|
|
|
40515
40515
|
return me();
|
|
40516
40516
|
});
|
|
40517
40517
|
}, [i]);
|
|
40518
|
-
|
|
40518
|
+
et(function() {
|
|
40519
40519
|
n === !0 && ce(I, function(be) {
|
|
40520
40520
|
C.current && (Q(be || []), S(!!B.current));
|
|
40521
40521
|
});
|
|
@@ -40601,7 +40601,7 @@ function wX(e) {
|
|
|
40601
40601
|
}
|
|
40602
40602
|
function xX(e) {
|
|
40603
40603
|
const [t, n] = ve(!1), o = Tt(null);
|
|
40604
|
-
|
|
40604
|
+
et(() => {
|
|
40605
40605
|
t && o.current && o.current.focus();
|
|
40606
40606
|
}, [t]);
|
|
40607
40607
|
const r = (i, a) => {
|
|
@@ -40669,7 +40669,7 @@ const Ac = (e) => {
|
|
|
40669
40669
|
loadOptions: f,
|
|
40670
40670
|
showGlobalLoader: d = !1
|
|
40671
40671
|
} = e, [E, Q] = ve(!1), [h, m] = ve("");
|
|
40672
|
-
|
|
40672
|
+
et(() => {
|
|
40673
40673
|
E || v(e.value, !1);
|
|
40674
40674
|
}, [E, e.value]);
|
|
40675
40675
|
const I = (M) => {
|
|
@@ -40916,12 +40916,12 @@ const Ac = (e) => {
|
|
|
40916
40916
|
() => dU(B),
|
|
40917
40917
|
[B]
|
|
40918
40918
|
), d = nn(() => (p == null ? void 0 : p.filter(({ isAdminPanelLink: m }) => !(!n && m))) ?? [], [p, n]);
|
|
40919
|
-
if (
|
|
40919
|
+
if (et(() => {
|
|
40920
40920
|
!f && c && nd(B, !0);
|
|
40921
40921
|
}, [f, B, c]), ks(() => {
|
|
40922
40922
|
var m;
|
|
40923
40923
|
(m = a.current) != null && m.scrollHeight && l(a.current.scrollHeight);
|
|
40924
|
-
}, [a]),
|
|
40924
|
+
}, [a]), et(() => {
|
|
40925
40925
|
c && !C && t(BU, { update_version_id: B });
|
|
40926
40926
|
}, []), !c || C) return null;
|
|
40927
40927
|
const E = (m) => {
|
|
@@ -40980,7 +40980,7 @@ const Ac = (e) => {
|
|
|
40980
40980
|
] });
|
|
40981
40981
|
}, WQ = (e) => {
|
|
40982
40982
|
const t = Tt(null), [n, o] = ve(!1);
|
|
40983
|
-
return
|
|
40983
|
+
return et(() => {
|
|
40984
40984
|
t.current && o(t.current.scrollWidth > t.current.clientWidth);
|
|
40985
40985
|
}, [e]), { textRef: t, isOverflow: n };
|
|
40986
40986
|
}, LX = (e) => {
|
|
@@ -41022,7 +41022,9 @@ const Ac = (e) => {
|
|
|
41022
41022
|
value: r,
|
|
41023
41023
|
label: `${i}: ${r}`
|
|
41024
41024
|
})) : e ? [{ value: e, label: e }] : [];
|
|
41025
|
-
return
|
|
41025
|
+
return console.log("SSSSSSSSSSSSS 1 selectedEmail : ", e), console.log("SSSSSSSSSSSSS 1 emailHeadersArray : ", o), et(() => {
|
|
41026
|
+
!e && n && Object.keys(n).length > 0 && (t(Object.keys(n)[0]), console.log("SSSSSSSSSSSSS 1 useEffect : ", e));
|
|
41027
|
+
}, [n, t, e]), /* @__PURE__ */ y.jsx(
|
|
41026
41028
|
VQ,
|
|
41027
41029
|
{
|
|
41028
41030
|
options: o,
|
|
@@ -41062,9 +41064,9 @@ const Ac = (e) => {
|
|
|
41062
41064
|
portalId: a
|
|
41063
41065
|
}) => {
|
|
41064
41066
|
const A = O.useRef(null), [l, c] = ve(!1);
|
|
41065
|
-
return
|
|
41067
|
+
return et(() => {
|
|
41066
41068
|
a && (A.current = document.querySelector(`[data-connectorid=${a}]`), c(!0));
|
|
41067
|
-
}, [a, c]),
|
|
41069
|
+
}, [a, c]), et(() => () => {
|
|
41068
41070
|
n(!1);
|
|
41069
41071
|
}, [n]), t && l && A.current && yg(
|
|
41070
41072
|
/* @__PURE__ */ y.jsxs(HX, { className: "layover-paper", elevation: 0, children: [
|
|
@@ -41171,7 +41173,7 @@ const Ac = (e) => {
|
|
|
41171
41173
|
margin-left: 12px;
|
|
41172
41174
|
`, ZX = ({ setOpenTaskLinking: e, onLinkingSuccess: t }) => {
|
|
41173
41175
|
const n = Ri(), o = bt(UW), r = bt(jW), i = bt(VW), a = bt(sQ), [A, l] = ve(!1), [c, u] = ve(null), [p, g] = ve(""), [B, C] = ve({}), { conversationId: f, sendTrackingEvent: d } = Wn(ao);
|
|
41174
|
-
|
|
41176
|
+
et(() => {
|
|
41175
41177
|
a && a.length && u(a[0]);
|
|
41176
41178
|
}, [a]);
|
|
41177
41179
|
const E = {
|
|
@@ -41346,22 +41348,22 @@ const Ac = (e) => {
|
|
|
41346
41348
|
] }) }), AE = ({ isEdit: e = !1, onClose: t, onCreateSuccess: n, metaData: o, setMetaData: r }) => {
|
|
41347
41349
|
var q;
|
|
41348
41350
|
const [i, a] = ve(null), [A, l] = ve(!1), [c, u] = yE(JX, KQ), p = Tt(null), g = bt(aQ), B = bt(e ? PW : iQ), C = bt(NW), f = bt(LW), d = bt(WW), E = bt(zW), Q = bt(YW), h = bt(GW), m = bt(XW), I = bt(AQ), { conversationId: v, sendTrackingEvent: b, currentSmIds: w } = Wn(ao), { userGroupId: T } = Ks() || {}, S = (q = g == null ? void 0 : g.forms.find((_) => _.type === "edit")) == null ? void 0 : q.id, { externalResourceId: R } = g ?? {}, D = [E, Q, m].includes(xe.LOADING), M = Ri();
|
|
41349
|
-
|
|
41351
|
+
et(() => {
|
|
41350
41352
|
M(
|
|
41351
41353
|
RC(
|
|
41352
41354
|
e ? !(h && "values" in h && "values" in c && JSON.stringify(SC(c.values)) === JSON.stringify(SC(h.values))) : (o == null ? void 0 : o.fields_filled) !== void 0 && o.fields_filled > 0
|
|
41353
41355
|
)
|
|
41354
41356
|
);
|
|
41355
|
-
}, [e, o, h, c, M]),
|
|
41357
|
+
}, [e, o, h, c, M]), et(() => (e && h && u({ type: So.SET_FIELDS, payload: h }), () => {
|
|
41356
41358
|
u({ type: So.SET_FIELDS, payload: { values: {} } });
|
|
41357
|
-
}), [e, h]),
|
|
41359
|
+
}), [e, h]), et(() => {
|
|
41358
41360
|
i !== null && r((_) => ({ ..._, object_type: i.label }));
|
|
41359
|
-
}, [i, r]),
|
|
41361
|
+
}, [i, r]), et(() => {
|
|
41360
41362
|
if (c.values) {
|
|
41361
41363
|
const _ = Object.values(c.values).filter((ne) => ne !== "").length;
|
|
41362
41364
|
r((ne) => ({ ...ne, fields_filled: _ }));
|
|
41363
41365
|
}
|
|
41364
|
-
}, [c, r]),
|
|
41366
|
+
}, [c, r]), et(() => {
|
|
41365
41367
|
B && B.length && a(e && S ? B.find((_) => _.value === S) ?? null : B[0]);
|
|
41366
41368
|
}, [B, e, S]);
|
|
41367
41369
|
const k = nn(() => i && "value" in i && C && C[i.value] && Array.isArray(C[i.value]) ? [
|
|
@@ -41611,7 +41613,7 @@ const Ac = (e) => {
|
|
|
41611
41613
|
const { email: t, currentSmIds: n, sendTrackingEvent: o, availableFeatures: r, conversationId: i } = Wn(ao), a = Ri(), { userGroupId: A } = Ks() || {}, [l, c] = ve(!1), [u, p] = ve(!1), [g, B] = ve(!1), [C, f] = ve(), [d, E] = ve(!1), [Q, h] = ve(t), m = bt(CW), I = bt(EW), v = bt(hW), b = bt(BW), w = bt(IW), T = bt(iQ), S = bt(sQ), R = bt(aQ), D = bt(AQ), M = Sr(r, YN), k = Sr(r, im), N = Sr(r, JN), L = Dt(() => {
|
|
41612
41614
|
t && n.length && i && a(bl({ inboxIds: n, conversationId: i }));
|
|
41613
41615
|
}, [a, t, n, i]), W = Dt(() => {
|
|
41614
|
-
N
|
|
41616
|
+
!N || !i || a(wl({ conversationId: i, email: t }));
|
|
41615
41617
|
}, [a, i, t, N]), H = Dt(
|
|
41616
41618
|
(_, ne) => {
|
|
41617
41619
|
_ && i && ne && a(
|
|
@@ -41628,7 +41630,7 @@ const Ac = (e) => {
|
|
|
41628
41630
|
},
|
|
41629
41631
|
[a, i, t]
|
|
41630
41632
|
);
|
|
41631
|
-
if (
|
|
41633
|
+
if (et(() => {
|
|
41632
41634
|
var _;
|
|
41633
41635
|
if (R) {
|
|
41634
41636
|
c(!0);
|
|
@@ -41636,15 +41638,15 @@ const Ac = (e) => {
|
|
|
41636
41638
|
H(ie, ne);
|
|
41637
41639
|
} else
|
|
41638
41640
|
c(!1), a(uW());
|
|
41639
|
-
}, [R, H, a]),
|
|
41641
|
+
}, [R, H, a]), et(() => (W(), () => {
|
|
41640
41642
|
a(ud.clearConnectorList());
|
|
41641
|
-
}), [a, W]),
|
|
41643
|
+
}), [a, W]), et(() => (L(), () => {
|
|
41642
41644
|
a(ud.clearConnectorList());
|
|
41643
|
-
}), [a, L]),
|
|
41645
|
+
}), [a, L]), et(() => {
|
|
41644
41646
|
m && m.length && o(hU, {
|
|
41645
41647
|
numOfCards: m.length
|
|
41646
41648
|
});
|
|
41647
|
-
}, [m, o, n]),
|
|
41649
|
+
}, [m, o, n]), et(() => {
|
|
41648
41650
|
i && n && n.length && a(Il({ inboxIds: n, conversationId: i, channelType: "email" }));
|
|
41649
41651
|
}, [a, n, i]), !t.length || w === xe.LOADING)
|
|
41650
41652
|
return /* @__PURE__ */ y.jsx(DX, {});
|