@hiver/connector-agent 4.3.2-analytics-beta.9 → 4.3.2-analytics-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/connector-highlight/components/connector-highlight/index.d.ts.map +1 -1
- package/features/connector-highlight/utils/highlighter.d.ts +2 -1
- package/features/connector-highlight/utils/highlighter.d.ts.map +1 -1
- package/index.es.js +127 -125
- package/index.umd.js +20 -20
- package/package.json +1 -1
package/index.es.js
CHANGED
|
@@ -3,7 +3,7 @@ var ul = (e) => {
|
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
5
|
var Rh = (e, t, n) => t in e ? Oh(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
-
var
|
|
6
|
+
var mn = (e, t, n) => Rh(e, typeof t != "symbol" ? t + "" : t, n), Zs = (e, t, n) => t.has(e) || ul("Cannot " + n);
|
|
7
7
|
var S = (e, t, n) => (Zs(e, t, "read from private field"), n ? n.call(e) : t.get(e)), se = (e, t, n) => t.has(e) ? ul("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), q = (e, t, n, r) => (Zs(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), ve = (e, t, n) => (Zs(e, t, "access private method"), n);
|
|
8
8
|
var di = (e, t, n, r) => ({
|
|
9
9
|
set _(o) {
|
|
@@ -358,9 +358,9 @@ function rp() {
|
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
var
|
|
361
|
+
var Sn = Array.isArray;
|
|
362
362
|
function Ht(T) {
|
|
363
|
-
return
|
|
363
|
+
return Sn(T);
|
|
364
364
|
}
|
|
365
365
|
function wr(T) {
|
|
366
366
|
{
|
|
@@ -481,7 +481,7 @@ function rp() {
|
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
483
|
var go = p.ReactCurrentOwner, mo = p.ReactDebugCurrentFrame;
|
|
484
|
-
function
|
|
484
|
+
function Ln(T) {
|
|
485
485
|
if (T) {
|
|
486
486
|
var V = T._owner, Q = tt(T.type, T._source, V ? V.type : null);
|
|
487
487
|
mo.setExtraStackFrame(Q);
|
|
@@ -531,7 +531,7 @@ Check the top-level render call using <` + Q + ">.");
|
|
|
531
531
|
return;
|
|
532
532
|
Re[Q] = !0;
|
|
533
533
|
var ge = "";
|
|
534
|
-
T && T._owner && T._owner !== go.current && (ge = " It was passed a child from " + k(T._owner.type) + "."),
|
|
534
|
+
T && T._owner && T._owner !== go.current && (ge = " It was passed a child from " + k(T._owner.type) + "."), Ln(T), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Q, ge), Ln(null);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
function qn(T, V) {
|
|
@@ -583,11 +583,11 @@ Check the top-level render call using <` + Q + ">.");
|
|
|
583
583
|
for (var V = Object.keys(T.props), Q = 0; Q < V.length; Q++) {
|
|
584
584
|
var ge = V[Q];
|
|
585
585
|
if (ge !== "children" && ge !== "key") {
|
|
586
|
-
|
|
586
|
+
Ln(T), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ge), Ln(null);
|
|
587
587
|
break;
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
T.ref !== null && (
|
|
590
|
+
T.ref !== null && (Ln(T), y("Invalid attribute `ref` supplied to `React.Fragment`."), Ln(null));
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
593
|
var bo = {};
|
|
@@ -3214,7 +3214,7 @@ var Lg = me && me.__awaiter || function(e, t, n, r) {
|
|
|
3214
3214
|
};
|
|
3215
3215
|
Object.defineProperty(Le, "__esModule", { value: !0 });
|
|
3216
3216
|
Le.expireToken = Le.invalidateToken = Le.validateToken = Le.validateAccount = Le.getConfig = Le.introduceDelay = Le.isTokenInExpiryWindow = Le.getStoredAuthData = Le.setUserDetails = Le.getRefreshInterval = Le.setTokenAndExpiry = Le.getRandomDelay = Le.hasValidToken = void 0;
|
|
3217
|
-
var
|
|
3217
|
+
var xn = zn, _r = St, kt = dn, Nc = function() {
|
|
3218
3218
|
var e = /* @__PURE__ */ new Date(), t = new Date(e.getTime() + e.getTimezoneOffset() * 6e4);
|
|
3219
3219
|
return t;
|
|
3220
3220
|
}, kc = function(e) {
|
|
@@ -3290,13 +3290,13 @@ var Bg = function(e) {
|
|
|
3290
3290
|
Le.introduceDelay = Bg;
|
|
3291
3291
|
var Vg = function(e, t, n) {
|
|
3292
3292
|
switch (n === void 0 && (n = !0), t) {
|
|
3293
|
-
case
|
|
3294
|
-
case
|
|
3293
|
+
case xn.TIERS.SIT:
|
|
3294
|
+
case xn.TIERS.QA:
|
|
3295
3295
|
return n ? (0, _r.getSitApiConfig)(e) : (0, _r.getSitHqConfig)(e);
|
|
3296
|
-
case
|
|
3297
|
-
case
|
|
3296
|
+
case xn.TIERS.PRODUCTION:
|
|
3297
|
+
case xn.TIERS.PROD:
|
|
3298
3298
|
return n ? (0, _r.getProdApiConfig)() : (0, _r.getProdHqConfig)();
|
|
3299
|
-
case
|
|
3299
|
+
case xn.TIERS.DEV:
|
|
3300
3300
|
default:
|
|
3301
3301
|
return n ? (0, _r.getDevApiConfig)() : (0, _r.getDevHqConfig)();
|
|
3302
3302
|
}
|
|
@@ -3306,11 +3306,11 @@ var Gg = function() {
|
|
|
3306
3306
|
try {
|
|
3307
3307
|
var e = (0, kt.getItemFromStorage)("hiverAuthTokenExpiry");
|
|
3308
3308
|
if (!e)
|
|
3309
|
-
return
|
|
3309
|
+
return xn.RETRY_DELAY_IN_CASE_OF_CORRUPTED_EXPIRY;
|
|
3310
3310
|
var t = new Date(e), n = Nc();
|
|
3311
|
-
return t.getTime() - n.getTime() >
|
|
3311
|
+
return t.getTime() - n.getTime() > xn.TWO_MINUTES_IN_MS ? t.getTime() - xn.TWO_MINUTES_IN_MS : t.getTime() - n.getTime();
|
|
3312
3312
|
} catch (r) {
|
|
3313
|
-
return console.error("Heimdall: Error in getRefreshInterval", r),
|
|
3313
|
+
return console.error("Heimdall: Error in getRefreshInterval", r), xn.REFETCH_CHECK_DELAY;
|
|
3314
3314
|
}
|
|
3315
3315
|
};
|
|
3316
3316
|
Le.getRefreshInterval = Gg;
|
|
@@ -4333,9 +4333,9 @@ var cm = function(e, t, n) {
|
|
|
4333
4333
|
}
|
|
4334
4334
|
};
|
|
4335
4335
|
He.getConfig = cm;
|
|
4336
|
-
var Io = {},
|
|
4336
|
+
var Io = {}, bn = {}, Bl;
|
|
4337
4337
|
function lm() {
|
|
4338
|
-
if (Bl) return
|
|
4338
|
+
if (Bl) return bn;
|
|
4339
4339
|
Bl = 1;
|
|
4340
4340
|
var e = me && me.__awaiter || function(g, x, v, d) {
|
|
4341
4341
|
function f(p) {
|
|
@@ -4423,7 +4423,7 @@ function lm() {
|
|
|
4423
4423
|
return { value: C[0] ? C[1] : void 0, done: !0 };
|
|
4424
4424
|
}
|
|
4425
4425
|
};
|
|
4426
|
-
Object.defineProperty(
|
|
4426
|
+
Object.defineProperty(bn, "__esModule", { value: !0 }), bn.getV2LoginCode = bn.getLoginToken = bn.getAccessToken = void 0;
|
|
4427
4427
|
var n = Xe, r = I0(), o = He, i = function(g, x, v) {
|
|
4428
4428
|
var d = (0, o.getStoredAuthData)();
|
|
4429
4429
|
return {
|
|
@@ -4485,7 +4485,7 @@ function lm() {
|
|
|
4485
4485
|
});
|
|
4486
4486
|
});
|
|
4487
4487
|
};
|
|
4488
|
-
|
|
4488
|
+
bn.getAccessToken = a;
|
|
4489
4489
|
var u = function(g, x, v) {
|
|
4490
4490
|
return e(void 0, void 0, void 0, function() {
|
|
4491
4491
|
var d, f, p, y, b, E, C;
|
|
@@ -4510,7 +4510,7 @@ function lm() {
|
|
|
4510
4510
|
});
|
|
4511
4511
|
});
|
|
4512
4512
|
};
|
|
4513
|
-
|
|
4513
|
+
bn.getLoginToken = u;
|
|
4514
4514
|
var h = function(g, x, v) {
|
|
4515
4515
|
return e(void 0, void 0, void 0, function() {
|
|
4516
4516
|
var d, f, p;
|
|
@@ -4528,7 +4528,7 @@ function lm() {
|
|
|
4528
4528
|
});
|
|
4529
4529
|
});
|
|
4530
4530
|
};
|
|
4531
|
-
return
|
|
4531
|
+
return bn.getV2LoginCode = h, bn;
|
|
4532
4532
|
}
|
|
4533
4533
|
var Vl;
|
|
4534
4534
|
function E0() {
|
|
@@ -5102,7 +5102,7 @@ const $t = {
|
|
|
5102
5102
|
tier: "",
|
|
5103
5103
|
bifrost: null,
|
|
5104
5104
|
isInitiated: !1
|
|
5105
|
-
},
|
|
5105
|
+
}, In = () => {
|
|
5106
5106
|
if (!$t.isInitiated)
|
|
5107
5107
|
return null;
|
|
5108
5108
|
if (!$t.baseUrl)
|
|
@@ -5120,7 +5120,7 @@ const $t = {
|
|
|
5120
5120
|
}) => {
|
|
5121
5121
|
$t.baseUrl = e, $t.appEnv = t, $t.tier = n, $t.userGroupId = o, $t.userId = r, $t.tenantPlatform = i, $t.bifrost = new Fa.Bifrost(t, n, i, c, s), $t.isInitiated = !0;
|
|
5122
5122
|
}, um = ({ configHiver: e }) => async (n) => {
|
|
5123
|
-
const r =
|
|
5123
|
+
const r = In();
|
|
5124
5124
|
if (!r)
|
|
5125
5125
|
throw new Error("Please call initConnectorsBifrost before making any api calls");
|
|
5126
5126
|
const { bifrost: o, userGroupId: i, userId: s } = r, { url: c, method: l, root_url: a } = n, h = {
|
|
@@ -5172,7 +5172,7 @@ const $t = {
|
|
|
5172
5172
|
let t = localStorage.getItem(Si);
|
|
5173
5173
|
return t = t ? JSON.parse(t) : !1, t == null ? void 0 : t[e];
|
|
5174
5174
|
}, R3 = (e) => !!Vc(e), M0 = () => {
|
|
5175
|
-
const { userId: e = "" } =
|
|
5175
|
+
const { userId: e = "" } = In() || {};
|
|
5176
5176
|
return String(e);
|
|
5177
5177
|
}, D3 = (e, t = M0()) => {
|
|
5178
5178
|
const n = Vc(e);
|
|
@@ -5402,7 +5402,7 @@ const N3 = (e) => /* @__PURE__ */ D.createElement("svg", { width: 20, height: 21
|
|
|
5402
5402
|
);
|
|
5403
5403
|
}) });
|
|
5404
5404
|
}, U3 = ({ connectors: e, expanded: t = !1 }) => {
|
|
5405
|
-
const { currentSmIds: n, sendTrackingEvent: r, userEmail: o } = $e(Je), { userGroupId: i, userId: s } =
|
|
5405
|
+
const { currentSmIds: n, sendTrackingEvent: r, userEmail: o } = $e(Je), { userGroupId: i, userId: s } = In() || {}, c = Yi({
|
|
5406
5406
|
url: w0,
|
|
5407
5407
|
params: {
|
|
5408
5408
|
email: o,
|
|
@@ -5919,7 +5919,7 @@ const hb = F(de)`
|
|
|
5919
5919
|
handleCreateNewObject: i,
|
|
5920
5920
|
handleLinkNewObject: s
|
|
5921
5921
|
}) => {
|
|
5922
|
-
const c = Ce(null), l = Ce(null), [a, u] = U(null), h = !!a, { availableFeatures: g, sendTrackingEvent: x, currentSmIds: v, userEmail: d } = $e(Je), { userGroupId: f, userId: p } =
|
|
5922
|
+
const c = Ce(null), l = Ce(null), [a, u] = U(null), h = !!a, { availableFeatures: g, sendTrackingEvent: x, currentSmIds: v, userEmail: d } = $e(Je), { userGroupId: f, userId: p } = In() || {}, y = gt(g, _s), b = [
|
|
5923
5923
|
{
|
|
5924
5924
|
id: "rate-experience",
|
|
5925
5925
|
label: "Rate your experience",
|
|
@@ -6671,7 +6671,7 @@ var Kr = Object.getPrototypeOf;
|
|
|
6671
6671
|
function yr(e) {
|
|
6672
6672
|
return !!e && !!e[Vt];
|
|
6673
6673
|
}
|
|
6674
|
-
function
|
|
6674
|
+
function wn(e) {
|
|
6675
6675
|
var t;
|
|
6676
6676
|
return e ? tf(e) || Array.isArray(e) || !!e[tu] || !!((t = e.constructor) != null && t[tu]) || Ss(e) || Ls(e) : !1;
|
|
6677
6677
|
}
|
|
@@ -6745,7 +6745,7 @@ function Ua(e, t) {
|
|
|
6745
6745
|
}
|
|
6746
6746
|
}
|
|
6747
6747
|
function Wc(e, t = !1) {
|
|
6748
|
-
return Os(e) || yr(e) || !
|
|
6748
|
+
return Os(e) || yr(e) || !wn(e) || (Ts(e) > 1 && (e.set = e.add = e.clear = e.delete = Tv), Object.freeze(e), t && Object.entries(e).forEach(([n, r]) => Wc(r, !0))), e;
|
|
6749
6749
|
}
|
|
6750
6750
|
function Tv() {
|
|
6751
6751
|
Ot(2);
|
|
@@ -6792,7 +6792,7 @@ function Ov(e) {
|
|
|
6792
6792
|
function ou(e, t) {
|
|
6793
6793
|
t.unfinalizedDrafts_ = t.drafts_.length;
|
|
6794
6794
|
const n = t.drafts_[0];
|
|
6795
|
-
return e !== void 0 && e !== n ? (n[Vt].modified_ && (Xa(t), Ot(4)),
|
|
6795
|
+
return e !== void 0 && e !== n ? (n[Vt].modified_ && (Xa(t), Ot(4)), wn(e) && (e = qi(t, e), t.parent_ || Ki(t, e)), t.patches_ && Cr("Patches").generateReplacementPatches_(
|
|
6796
6796
|
n[Vt].base_,
|
|
6797
6797
|
e,
|
|
6798
6798
|
t.patches_,
|
|
@@ -6837,7 +6837,7 @@ function iu(e, t, n, r, o, i, s) {
|
|
|
6837
6837
|
else
|
|
6838
6838
|
return;
|
|
6839
6839
|
} else s && n.add(o);
|
|
6840
|
-
if (
|
|
6840
|
+
if (wn(o) && !Os(o)) {
|
|
6841
6841
|
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1)
|
|
6842
6842
|
return;
|
|
6843
6843
|
qi(e, o), (!t || !t.scope_.parent_) && typeof r != "symbol" && Object.prototype.propertyIsEnumerable.call(n, r) && Ki(e, o);
|
|
@@ -6883,7 +6883,7 @@ var Zc = {
|
|
|
6883
6883
|
if (!Za(n, t))
|
|
6884
6884
|
return Dv(e, n, t);
|
|
6885
6885
|
const r = n[t];
|
|
6886
|
-
return e.finalized_ || !
|
|
6886
|
+
return e.finalized_ || !wn(r) ? r : r === oa(e.base_, t) ? (ia(e), e.copy_[t] = Ya(r, e)) : r;
|
|
6887
6887
|
},
|
|
6888
6888
|
has(e, t) {
|
|
6889
6889
|
return t in rr(e);
|
|
@@ -6988,7 +6988,7 @@ var Fv = class {
|
|
|
6988
6988
|
}
|
|
6989
6989
|
typeof n != "function" && Ot(6), r !== void 0 && typeof r != "function" && Ot(7);
|
|
6990
6990
|
let o;
|
|
6991
|
-
if (
|
|
6991
|
+
if (wn(t)) {
|
|
6992
6992
|
const i = ru(this), s = Ya(t, void 0);
|
|
6993
6993
|
let c = !0;
|
|
6994
6994
|
try {
|
|
@@ -7015,7 +7015,7 @@ var Fv = class {
|
|
|
7015
7015
|
}, typeof (e == null ? void 0 : e.autoFreeze) == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof (e == null ? void 0 : e.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
|
|
7016
7016
|
}
|
|
7017
7017
|
createDraft(e) {
|
|
7018
|
-
|
|
7018
|
+
wn(e) || Ot(8), yr(e) && (e = Nv(e));
|
|
7019
7019
|
const t = ru(this), n = Ya(e, void 0);
|
|
7020
7020
|
return n[Vt].isManual_ = !0, za(t), n;
|
|
7021
7021
|
}
|
|
@@ -7066,7 +7066,7 @@ function Nv(e) {
|
|
|
7066
7066
|
return yr(e) || Ot(10, e), sf(e);
|
|
7067
7067
|
}
|
|
7068
7068
|
function sf(e) {
|
|
7069
|
-
if (!
|
|
7069
|
+
if (!wn(e) || Os(e))
|
|
7070
7070
|
return e;
|
|
7071
7071
|
const t = e[Vt];
|
|
7072
7072
|
let n;
|
|
@@ -7171,7 +7171,7 @@ var df = class So extends Array {
|
|
|
7171
7171
|
}
|
|
7172
7172
|
};
|
|
7173
7173
|
function su(e) {
|
|
7174
|
-
return
|
|
7174
|
+
return wn(e) ? af(e, () => {
|
|
7175
7175
|
}) : e;
|
|
7176
7176
|
}
|
|
7177
7177
|
function au(e, t, n) {
|
|
@@ -7523,7 +7523,7 @@ function qv(e, t) {
|
|
|
7523
7523
|
const x = h(u, l);
|
|
7524
7524
|
return x === void 0 ? u : x;
|
|
7525
7525
|
} else {
|
|
7526
|
-
if (
|
|
7526
|
+
if (wn(u))
|
|
7527
7527
|
return af(u, (g) => h(g, l));
|
|
7528
7528
|
{
|
|
7529
7529
|
const g = h(u, l);
|
|
@@ -7555,7 +7555,7 @@ var t5 = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", n5
|
|
|
7555
7555
|
type-only property to distinguish between RejectWithValue and FulfillWithMeta
|
|
7556
7556
|
does not exist at runtime
|
|
7557
7557
|
*/
|
|
7558
|
-
|
|
7558
|
+
mn(this, "_type");
|
|
7559
7559
|
this.payload = e, this.meta = t;
|
|
7560
7560
|
}
|
|
7561
7561
|
}, cu = class {
|
|
@@ -7564,7 +7564,7 @@ var t5 = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", n5
|
|
|
7564
7564
|
type-only property to distinguish between RejectWithValue and FulfillWithMeta
|
|
7565
7565
|
does not exist at runtime
|
|
7566
7566
|
*/
|
|
7567
|
-
|
|
7567
|
+
mn(this, "_type");
|
|
7568
7568
|
this.payload = e, this.meta = t;
|
|
7569
7569
|
}
|
|
7570
7570
|
}, o5 = (e) => {
|
|
@@ -7918,7 +7918,7 @@ function gi() {
|
|
|
7918
7918
|
function Be(e) {
|
|
7919
7919
|
return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
|
|
7920
7920
|
}
|
|
7921
|
-
const
|
|
7921
|
+
const An = "success", xt = "error", vf = "Some error occured. Please contact support@hiverhq.com", yf = "Card refreshed successfully", m5 = "Card linked successfully", b5 = "Error in linking the card", v5 = "Card unlinked successfully", y5 = "Failed to unlink the card", Rs = "Something went wrong", C5 = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='15'%20height='15'%20viewBox='0%200%2015%2015'%3e%3cpath%20fill='%23ffffff'%20fill-rule='nonzero'%20d='M8.821%207.496L14.716%201.6A.937.937%200%201%200%2013.391.275L7.496%206.17%201.6.275A.937.937%200%201%200%20.275%201.601L6.17%207.496.275%2013.39A.937.937%200%201%200%201.6%2014.716L7.496%208.82l5.895%205.895a.935.935%200%200%200%201.325%200%20.937.937%200%200%200%200-1.326L8.821%207.496z'%20opacity='.8'/%3e%3c/svg%3e", x5 = F(de)`
|
|
7922
7922
|
display: flex;
|
|
7923
7923
|
flex-direction: row;
|
|
7924
7924
|
align-items: center;
|
|
@@ -9423,7 +9423,7 @@ function ks() {
|
|
|
9423
9423
|
function Vf(e) {
|
|
9424
9424
|
return Hf(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
9425
9425
|
}
|
|
9426
|
-
function
|
|
9426
|
+
function _n(e) {
|
|
9427
9427
|
var t;
|
|
9428
9428
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
9429
9429
|
}
|
|
@@ -9432,16 +9432,16 @@ function Gf(e) {
|
|
|
9432
9432
|
return (t = (Hf(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
9433
9433
|
}
|
|
9434
9434
|
function Hf(e) {
|
|
9435
|
-
return ks() ? e instanceof Node || e instanceof
|
|
9435
|
+
return ks() ? e instanceof Node || e instanceof _n(e).Node : !1;
|
|
9436
9436
|
}
|
|
9437
9437
|
function wy(e) {
|
|
9438
|
-
return ks() ? e instanceof Element || e instanceof
|
|
9438
|
+
return ks() ? e instanceof Element || e instanceof _n(e).Element : !1;
|
|
9439
9439
|
}
|
|
9440
9440
|
function qc(e) {
|
|
9441
|
-
return ks() ? e instanceof HTMLElement || e instanceof
|
|
9441
|
+
return ks() ? e instanceof HTMLElement || e instanceof _n(e).HTMLElement : !1;
|
|
9442
9442
|
}
|
|
9443
9443
|
function Iu(e) {
|
|
9444
|
-
return !ks() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
9444
|
+
return !ks() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof _n(e).ShadowRoot;
|
|
9445
9445
|
}
|
|
9446
9446
|
function Wf(e) {
|
|
9447
9447
|
const {
|
|
@@ -9459,7 +9459,7 @@ function _y(e) {
|
|
|
9459
9459
|
return ["html", "body", "#document"].includes(Vf(e));
|
|
9460
9460
|
}
|
|
9461
9461
|
function Kc(e) {
|
|
9462
|
-
return
|
|
9462
|
+
return _n(e).getComputedStyle(e);
|
|
9463
9463
|
}
|
|
9464
9464
|
function Ty(e) {
|
|
9465
9465
|
if (Vf(e) === "html")
|
|
@@ -9480,7 +9480,7 @@ function Zf(e) {
|
|
|
9480
9480
|
function os(e, t, n) {
|
|
9481
9481
|
var r;
|
|
9482
9482
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
9483
|
-
const o = Zf(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s =
|
|
9483
|
+
const o = Zf(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = _n(o);
|
|
9484
9484
|
if (i) {
|
|
9485
9485
|
const c = oc(s);
|
|
9486
9486
|
return t.concat(s, s.visualViewport || [], Wf(o) ? o : [], c && n ? os(c) : []);
|
|
@@ -9520,7 +9520,7 @@ function wu(e) {
|
|
|
9520
9520
|
}
|
|
9521
9521
|
const Ly = /* @__PURE__ */ rs(0);
|
|
9522
9522
|
function Oy(e) {
|
|
9523
|
-
const t =
|
|
9523
|
+
const t = _n(e);
|
|
9524
9524
|
return !Ay() || !t.visualViewport ? Ly : {
|
|
9525
9525
|
x: t.visualViewport.offsetLeft,
|
|
9526
9526
|
y: t.visualViewport.offsetTop
|
|
@@ -9537,11 +9537,11 @@ function Au(e, t, n, r) {
|
|
|
9537
9537
|
const c = Ry() ? Oy(i) : rs(0);
|
|
9538
9538
|
let l = (o.left + c.x) / s.x, a = (o.top + c.y) / s.y, u = o.width / s.x, h = o.height / s.y;
|
|
9539
9539
|
if (i) {
|
|
9540
|
-
const g =
|
|
9540
|
+
const g = _n(i), x = r;
|
|
9541
9541
|
let v = g, d = oc(v);
|
|
9542
9542
|
for (; d && r && x !== v; ) {
|
|
9543
9543
|
const f = wu(d), p = d.getBoundingClientRect(), y = Kc(d), b = p.left + (d.clientLeft + parseFloat(y.paddingLeft)) * f.x, E = p.top + (d.clientTop + parseFloat(y.paddingTop)) * f.y;
|
|
9544
|
-
l *= f.x, a *= f.y, u *= f.x, h *= f.y, l += b, a += E, v =
|
|
9544
|
+
l *= f.x, a *= f.y, u *= f.x, h *= f.y, l += b, a += E, v = _n(d), d = oc(v);
|
|
9545
9545
|
}
|
|
9546
9546
|
}
|
|
9547
9547
|
return Iy({
|
|
@@ -10420,7 +10420,7 @@ var J9 = function(t) {
|
|
|
10420
10420
|
"single-value": !0,
|
|
10421
10421
|
"single-value--is-disabled": r
|
|
10422
10422
|
}), o), n);
|
|
10423
|
-
}, sC = iC,
|
|
10423
|
+
}, sC = iC, Tn = {
|
|
10424
10424
|
ClearIndicator: I9,
|
|
10425
10425
|
Control: R9,
|
|
10426
10426
|
DropdownIndicator: x9,
|
|
@@ -10447,7 +10447,7 @@ var J9 = function(t) {
|
|
|
10447
10447
|
SingleValue: sC,
|
|
10448
10448
|
ValueContainer: h9
|
|
10449
10449
|
}, aC = function(t) {
|
|
10450
|
-
return oe(oe({},
|
|
10450
|
+
return oe(oe({}, Tn), t.components);
|
|
10451
10451
|
}, Lu = Number.isNaN || function(t) {
|
|
10452
10452
|
return typeof t == "number" && t !== t;
|
|
10453
10453
|
};
|
|
@@ -12245,7 +12245,7 @@ const KC = F(de)`
|
|
|
12245
12245
|
`;
|
|
12246
12246
|
function p1(e) {
|
|
12247
12247
|
const { data: t } = e;
|
|
12248
|
-
return /* @__PURE__ */ m.jsx(
|
|
12248
|
+
return /* @__PURE__ */ m.jsx(Tn.Option, { ...e, children: /* @__PURE__ */ m.jsxs(KC, { children: [
|
|
12249
12249
|
t.avatarUrl ? /* @__PURE__ */ m.jsx(e6, { className: "selectField__avatar", src: t.avatarUrl, alt: `${e.label}'s avatar` }) : null,
|
|
12250
12250
|
/* @__PURE__ */ m.jsx("span", { children: e.children })
|
|
12251
12251
|
] }) });
|
|
@@ -12275,7 +12275,7 @@ const t6 = F(de)`
|
|
|
12275
12275
|
&:after {
|
|
12276
12276
|
transform: rotate(-45deg);
|
|
12277
12277
|
}
|
|
12278
|
-
`, g1 = (e) => /* @__PURE__ */ m.jsx(
|
|
12278
|
+
`, g1 = (e) => /* @__PURE__ */ m.jsx(Tn.ClearIndicator, { ...e, children: /* @__PURE__ */ m.jsx(t6, {}) }), m1 = (e, t) => ({
|
|
12279
12279
|
...e,
|
|
12280
12280
|
placeholder: (n, r) => {
|
|
12281
12281
|
var o;
|
|
@@ -12351,7 +12351,7 @@ const t6 = F(de)`
|
|
|
12351
12351
|
return !n || !l ? !1 : n(l);
|
|
12352
12352
|
} : void 0
|
|
12353
12353
|
};
|
|
12354
|
-
}, o6 = (e) => /* @__PURE__ */ m.jsx(
|
|
12354
|
+
}, o6 = (e) => /* @__PURE__ */ m.jsx(Tn.DropdownIndicator, { ...e, children: /* @__PURE__ */ m.jsx(Dd, { children: e.selectProps.menuIsOpen ? /* @__PURE__ */ m.jsx(Bt.ArrowDropUp, {}) : /* @__PURE__ */ m.jsx(Bt.ArrowDropDown, {}) }) }), v1 = () => ({
|
|
12355
12355
|
ClearIndicator: g1,
|
|
12356
12356
|
DropdownIndicator: o6,
|
|
12357
12357
|
IndicatorSeparator: () => null,
|
|
@@ -12413,9 +12413,9 @@ function C1(e) {
|
|
|
12413
12413
|
if (o && Z[Qe])
|
|
12414
12414
|
I(Qe), j(Qe), J(Z[Qe]), O(!1), M(!1);
|
|
12415
12415
|
else {
|
|
12416
|
-
var
|
|
12416
|
+
var Sn = x.current = {};
|
|
12417
12417
|
I(Qe), O(!0), M(!k), tt(Qe, function(Ht) {
|
|
12418
|
-
v &&
|
|
12418
|
+
v && Sn === x.current && (x.current = void 0, O(!1), j(Qe), J(Ht || []), M(!1), K(Ht ? oe(oe({}, Z), {}, Or({}, Qe, Ht)) : Z));
|
|
12419
12419
|
});
|
|
12420
12420
|
}
|
|
12421
12421
|
}, [o, tt, k, Z, l]), pn = he ? [] : C && k ? ee : p || [];
|
|
@@ -12504,7 +12504,7 @@ const h6 = F(ue)`
|
|
|
12504
12504
|
};
|
|
12505
12505
|
}, x1 = (e) => /* @__PURE__ */ D.createElement("svg", { width: "8px", height: "8px", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ D.createElement("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" }));
|
|
12506
12506
|
function g6(e) {
|
|
12507
|
-
return /* @__PURE__ */ m.jsx(
|
|
12507
|
+
return /* @__PURE__ */ m.jsx(Tn.DropdownIndicator, { ...e, children: /* @__PURE__ */ m.jsx(Dd, { children: e.selectProps.menuIsOpen ? /* @__PURE__ */ m.jsx(Bt.ArrowDropUp, {}) : /* @__PURE__ */ m.jsx(Bt.ArrowDropDown, {}) }) });
|
|
12508
12508
|
}
|
|
12509
12509
|
const m6 = (e) => /* @__PURE__ */ m.jsxs(Y, { direction: "row", flexWrap: "nowrap", alignItems: "center", width: "100%", children: [
|
|
12510
12510
|
/* @__PURE__ */ m.jsx(Y, { flexShrink: 0, children: /* @__PURE__ */ m.jsx(x1, { width: 14, height: 14, fill: "rgb(80, 109, 255)" }) }),
|
|
@@ -13755,7 +13755,7 @@ const R6 = F(de)`
|
|
|
13755
13755
|
var i;
|
|
13756
13756
|
try {
|
|
13757
13757
|
const s = await n7(e, t, n), c = s == null ? void 0 : s.data;
|
|
13758
|
-
return c ? (r && We({ message: yf, type:
|
|
13758
|
+
return c ? (r && We({ message: yf, type: An }), { data: j0(c) }) : (r && We({ message: vf, type: xt }), {
|
|
13759
13759
|
data: null
|
|
13760
13760
|
});
|
|
13761
13761
|
} catch (s) {
|
|
@@ -14001,7 +14001,7 @@ Do you want to continue?`, _7 = "Select an object to create", T7 = "Select an ob
|
|
|
14001
14001
|
var l;
|
|
14002
14002
|
const { formId: n, successCallback: r, failureCallback: o, args: i = {}, interfaceId: s, conversationId: c } = e;
|
|
14003
14003
|
try {
|
|
14004
|
-
await L1({ formId: n }, { args: i, interfaceId: s, conversationId: c }), r == null || r(), We({ message: y7, type:
|
|
14004
|
+
await L1({ formId: n }, { args: i, interfaceId: s, conversationId: c }), r == null || r(), We({ message: y7, type: An });
|
|
14005
14005
|
} catch (a) {
|
|
14006
14006
|
const u = a, h = (l = u == null ? void 0 : u.response) == null ? void 0 : l.data, g = (h == null ? void 0 : h.message) ?? C7;
|
|
14007
14007
|
return o == null || o(a), We({ message: g, type: xt }), t(a);
|
|
@@ -14021,7 +14021,7 @@ Do you want to continue?`, _7 = "Select an object to create", T7 = "Select an ob
|
|
|
14021
14021
|
previousArgs: a = {}
|
|
14022
14022
|
} = e;
|
|
14023
14023
|
try {
|
|
14024
|
-
await L1({ formId: n }, { args: i, interfaceId: s, conversationId: c, externalResourceId: l, previousArgs: a }), r == null || r(), We({ message: O7, type:
|
|
14024
|
+
await L1({ formId: n }, { args: i, interfaceId: s, conversationId: c, externalResourceId: l, previousArgs: a }), r == null || r(), We({ message: O7, type: An });
|
|
14025
14025
|
} catch (u) {
|
|
14026
14026
|
return o == null || o(u), We({ message: R7, type: xt }), t(u);
|
|
14027
14027
|
}
|
|
@@ -14112,7 +14112,7 @@ Do you want to continue?`, _7 = "Select an object to create", T7 = "Select an ob
|
|
|
14112
14112
|
};
|
|
14113
14113
|
}, [e]), [n, o];
|
|
14114
14114
|
}, k7 = "data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.8016%2011.709L12.3416%205.16893L11.4298%204.25712L4.88979%2010.7972V11.709H5.8016ZM6.33618%2012.9987H3.6001V10.2626L10.9739%202.88875C11.0948%202.76786%2011.2588%202.69995%2011.4298%202.69995C11.6008%202.69995%2011.7648%202.76786%2011.8857%202.88875L13.71%204.71302C13.8309%204.83395%2013.8988%204.99794%2013.8988%205.16893C13.8988%205.33992%2013.8309%205.50391%2013.71%205.62484L6.33618%2012.9987ZM3.6001%2014.2884H15.2073V15.578H3.6001V14.2884Z'%20fill='%236C7B94'/%3e%3c/svg%3e", P7 = ({ data: e, title: t, currentCard: n, setShowModal: r }) => {
|
|
14115
|
-
const o = en(), { sendTrackingEvent: i, currentSmIds: s } = $e(Je), { userGroupId: c } =
|
|
14115
|
+
const o = en(), { sendTrackingEvent: i, currentSmIds: s } = $e(Je), { userGroupId: c } = In() || {}, [l, a] = N7(), { isScrolling: u, isVertical: h } = l, g = u && h, x = Me(() => (e == null ? void 0 : e[0].data.map((p) => p.label)) || [], [e]), v = Me(() => e.map((p) => {
|
|
14116
14116
|
const y = {
|
|
14117
14117
|
cells: {},
|
|
14118
14118
|
externalResourceId: p.externalResourceId
|
|
@@ -14444,7 +14444,7 @@ Do you want to continue?`, _7 = "Select an object to create", T7 = "Select an ob
|
|
|
14444
14444
|
}, i) => {
|
|
14445
14445
|
try {
|
|
14446
14446
|
const s = await Y7(e, t, n, o), c = s == null ? void 0 : s.data, l = s == null ? void 0 : s.status;
|
|
14447
|
-
return c ? (r && We({ message: yf, type:
|
|
14447
|
+
return c ? (r && We({ message: yf, type: An }), { data: j0(c), status: l }) : (r && We({ message: vf, type: xt }), {
|
|
14448
14448
|
data: {},
|
|
14449
14449
|
status: l
|
|
14450
14450
|
});
|
|
@@ -14475,12 +14475,12 @@ Do you want to continue?`, _7 = "Select an object to create", T7 = "Select an ob
|
|
|
14475
14475
|
conversation_id: i
|
|
14476
14476
|
}), t(!1), r(), We({
|
|
14477
14477
|
message: v5,
|
|
14478
|
-
type:
|
|
14478
|
+
type: An
|
|
14479
14479
|
});
|
|
14480
14480
|
}).catch(() => {
|
|
14481
14481
|
We({
|
|
14482
14482
|
message: y5,
|
|
14483
|
-
type:
|
|
14483
|
+
type: An
|
|
14484
14484
|
});
|
|
14485
14485
|
});
|
|
14486
14486
|
};
|
|
@@ -14509,7 +14509,7 @@ Do you want to continue?`, _7 = "Select an object to create", T7 = "Select an ob
|
|
|
14509
14509
|
specificConnectorApiStatus: o,
|
|
14510
14510
|
defaultOpenState: i = !1,
|
|
14511
14511
|
onCardUnlinking: s
|
|
14512
|
-
} = e, c = en(), { availableFeatures: l, sendTrackingEvent: a, conversationId: u, currentSmIds: h } = $e(Je), { userGroupId: g } =
|
|
14512
|
+
} = e, c = en(), { availableFeatures: l, sendTrackingEvent: a, conversationId: u, currentSmIds: h } = $e(Je), { userGroupId: g } = In() || {}, [x, v] = U(!!i), [d, f] = U(!1), [p, y] = U(!1), [b, E] = U(!1), { id: C, title: I, externalResourceId: A = "", forms: w = [], logoUrl: _ } = t;
|
|
14513
14513
|
let O = C;
|
|
14514
14514
|
A && (O = `${O}_${A}`);
|
|
14515
14515
|
const { data: L, cardType: R, cardErrorMessage: k, connectorNames: j } = (n == null ? void 0 : n[O]) ?? {}, G = (j == null ? void 0 : j[0]) || "", z = (o == null ? void 0 : o[O]) === te.LOADING, ee = (o == null ? void 0 : o[O]) === te.FAILED, J = !!(gt(l, _0) && A), $ = Me(() => {
|
|
@@ -14876,16 +14876,16 @@ const bx = "Bring your favourite tools into Hiver", vx = "Plugin image", yx = "I
|
|
|
14876
14876
|
}, Ux = (e) => {
|
|
14877
14877
|
const { textRef: t, isOverflow: n } = G1(e.data.label);
|
|
14878
14878
|
return /* @__PURE__ */ m.jsx(Ve, { title: n ? e.data.value : null, placement: "bottom", children: /* @__PURE__ */ m.jsx(Gb, { ref: t, variant: "body2", paddingTop: n ? "5px" : "0px", children: e.data.label }) });
|
|
14879
|
-
}, Xx = (e) => /* @__PURE__ */ m.jsxs(
|
|
14879
|
+
}, Xx = (e) => /* @__PURE__ */ m.jsxs(Tn.MenuList, { ...e, children: [
|
|
14880
14880
|
/* @__PURE__ */ m.jsx(Hb, { children: /* @__PURE__ */ m.jsx(ue, { variant: "body2_medium", children: pv }) }),
|
|
14881
14881
|
e.children
|
|
14882
14882
|
] }), zx = (e) => {
|
|
14883
14883
|
const { isSelected: t } = e, { textRef: n, isOverflow: r } = G1(e.data.label);
|
|
14884
|
-
return /* @__PURE__ */ m.jsx(
|
|
14884
|
+
return /* @__PURE__ */ m.jsx(Tn.Option, { ...e, children: /* @__PURE__ */ m.jsxs(Y, { direction: "row", gap: "5px", justifyContent: "space-between", alignItems: "center", children: [
|
|
14885
14885
|
/* @__PURE__ */ m.jsx(Ve, { title: r ? e.data.value : null, placement: "bottom", children: /* @__PURE__ */ m.jsx(Wb, { ref: n, className: "dropdown-item-text", variant: "body2", children: e.data.label }) }),
|
|
14886
14886
|
t ? /* @__PURE__ */ m.jsx("img", { src: Zx, width: "14px", height: "14px" }) : null
|
|
14887
14887
|
] }) });
|
|
14888
|
-
}, $x = (e) => /* @__PURE__ */ m.jsx(
|
|
14888
|
+
}, $x = (e) => /* @__PURE__ */ m.jsx(Tn.DropdownIndicator, { ...e, children: e.selectProps.menuIsOpen ? /* @__PURE__ */ m.jsx(Bt.ArrowDropUp, { sx: { height: "18px", width: "18px", color: X.palette.gray.gray3 } }) : /* @__PURE__ */ m.jsx(Bt.ArrowDropDown, { sx: { height: "18px", width: "18px", color: X.palette.gray.gray3 } }) }), Yx = {
|
|
14889
14889
|
control: (e) => ({
|
|
14890
14890
|
...e,
|
|
14891
14891
|
border: "none",
|
|
@@ -15310,7 +15310,7 @@ const bx = "Bring your favourite tools into Hiver", vx = "Plugin image", yx = "I
|
|
|
15310
15310
|
connectors: s
|
|
15311
15311
|
}) => {
|
|
15312
15312
|
var Yn;
|
|
15313
|
-
const { userGroupId: c, userId: l } =
|
|
15313
|
+
const { userGroupId: c, userId: l } = In() || {}, [a, u] = U(null), [h, g] = U(!1), x = Ce(null), [v, d] = X1(), f = Ae(B1), p = Ae(t ? ex : M1), y = Ae(nx), b = Ae(tx), E = Ae(ix), C = Ae(sx), I = Ae(ax), A = Ae(cx), w = Ae(lx), _ = Ae(V1), O = b == null ? void 0 : b[(a == null ? void 0 : a.value) ?? ""], L = O == null ? void 0 : O.expandedView, { formConfigs: R, formViewConfigs: k } = Me(() => {
|
|
15314
15314
|
if (a && "value" in a && y && y[a.value] && Array.isArray(y[a.value])) {
|
|
15315
15315
|
const Oe = y[a.value], ct = [
|
|
15316
15316
|
{
|
|
@@ -15347,7 +15347,7 @@ const bx = "Bring your favourite tools into Hiver", vx = "Plugin image", yx = "I
|
|
|
15347
15347
|
connectorFunctions: { getFormElement: Z, toggleFormElement: K },
|
|
15348
15348
|
stackingContext: ne,
|
|
15349
15349
|
userEmail: ie
|
|
15350
|
-
} = $e(Je), { userGroupId: P } =
|
|
15350
|
+
} = $e(Je), { userGroupId: P } = In() || {}, { fetchConfig: re, createConfig: Ie } = $1({
|
|
15351
15351
|
formFields: R[0].formFields,
|
|
15352
15352
|
formId: R[0].id,
|
|
15353
15353
|
formState: v,
|
|
@@ -15428,7 +15428,7 @@ const bx = "Bring your favourite tools into Hiver", vx = "Plugin image", yx = "I
|
|
|
15428
15428
|
nt(kr(null));
|
|
15429
15429
|
});
|
|
15430
15430
|
}
|
|
15431
|
-
},
|
|
15431
|
+
}, Sn = () => {
|
|
15432
15432
|
if (!he() && a && (b != null && b[a.value]) && M) {
|
|
15433
15433
|
const fe = b == null ? void 0 : b[a.value].interfaceDetails;
|
|
15434
15434
|
if (!fe)
|
|
@@ -15541,7 +15541,7 @@ const bx = "Bring your favourite tools into Hiver", vx = "Plugin image", yx = "I
|
|
|
15541
15541
|
it,
|
|
15542
15542
|
{
|
|
15543
15543
|
disabled: he() || Ge || !_,
|
|
15544
|
-
onClick: t ? Qe :
|
|
15544
|
+
onClick: t ? Qe : Sn,
|
|
15545
15545
|
size: "small",
|
|
15546
15546
|
...L ? { style: { order: 2 } } : null,
|
|
15547
15547
|
children: t ? E3 : x3
|
|
@@ -15634,7 +15634,7 @@ const bx = "Bring your favourite tools into Hiver", vx = "Plugin image", yx = "I
|
|
|
15634
15634
|
f(Fm, {
|
|
15635
15635
|
object_type: a.label,
|
|
15636
15636
|
input_type: h
|
|
15637
|
-
}), We({ message: b7, type:
|
|
15637
|
+
}), We({ message: b7, type: An }), e(!1), t();
|
|
15638
15638
|
}).catch((L) => {
|
|
15639
15639
|
(L == null ? void 0 : L.status) === 400 ? We({ message: zu, type: xt }) : (L == null ? void 0 : L.status) === 409 ? We({ message: m7, type: xt }) : We({ message: v7, type: xt });
|
|
15640
15640
|
});
|
|
@@ -15799,7 +15799,7 @@ const bx = "Bring your favourite tools into Hiver", vx = "Plugin image", yx = "I
|
|
|
15799
15799
|
] });
|
|
15800
15800
|
}, L8 = F(Y)`
|
|
15801
15801
|
padding: 10px 0 10px 10px;
|
|
15802
|
-
`, { Control: O8 } =
|
|
15802
|
+
`, { Control: O8 } = Tn, R8 = ({ children: e, ...t }) => /* @__PURE__ */ m.jsxs(O8, { ...t, children: [
|
|
15803
15803
|
/* @__PURE__ */ m.jsx(L8, { children: /* @__PURE__ */ m.jsx(_8, {}) }),
|
|
15804
15804
|
e
|
|
15805
15805
|
] }), D8 = (e) => {
|
|
@@ -16393,7 +16393,7 @@ var ot = Y8(), ar, yd, ch = (yd = class {
|
|
|
16393
16393
|
clearGcTimeout() {
|
|
16394
16394
|
S(this, ar) && (clearTimeout(S(this, ar)), q(this, ar, void 0));
|
|
16395
16395
|
}
|
|
16396
|
-
}, ar = new WeakMap(), yd), Vr, Gr, Ut, cr, pt, Yo, lr, Yt,
|
|
16396
|
+
}, ar = new WeakMap(), yd), Vr, Gr, Ut, cr, pt, Yo, lr, Yt, vn, Cd, J8 = (Cd = class extends ch {
|
|
16397
16397
|
constructor(t) {
|
|
16398
16398
|
super();
|
|
16399
16399
|
se(this, Yt);
|
|
@@ -16421,7 +16421,7 @@ var ot = Y8(), ar, yd, ch = (yd = class {
|
|
|
16421
16421
|
}
|
|
16422
16422
|
setData(t, n) {
|
|
16423
16423
|
const r = fc(this.state.data, t, this.options);
|
|
16424
|
-
return ve(this, Yt,
|
|
16424
|
+
return ve(this, Yt, vn).call(this, {
|
|
16425
16425
|
data: r,
|
|
16426
16426
|
type: "success",
|
|
16427
16427
|
dataUpdatedAt: n == null ? void 0 : n.updatedAt,
|
|
@@ -16429,7 +16429,7 @@ var ot = Y8(), ar, yd, ch = (yd = class {
|
|
|
16429
16429
|
}), r;
|
|
16430
16430
|
}
|
|
16431
16431
|
setState(t, n) {
|
|
16432
|
-
ve(this, Yt,
|
|
16432
|
+
ve(this, Yt, vn).call(this, { type: "setState", state: t, setStateOptions: n });
|
|
16433
16433
|
}
|
|
16434
16434
|
cancel(t) {
|
|
16435
16435
|
var r, o;
|
|
@@ -16478,7 +16478,7 @@ var ot = Y8(), ar, yd, ch = (yd = class {
|
|
|
16478
16478
|
return this.observers.length;
|
|
16479
16479
|
}
|
|
16480
16480
|
invalidate() {
|
|
16481
|
-
this.state.isInvalidated || ve(this, Yt,
|
|
16481
|
+
this.state.isInvalidated || ve(this, Yt, vn).call(this, { type: "invalidate" });
|
|
16482
16482
|
}
|
|
16483
16483
|
fetch(t, n) {
|
|
16484
16484
|
var l, a, u;
|
|
@@ -16522,10 +16522,10 @@ var ot = Y8(), ar, yd, ch = (yd = class {
|
|
|
16522
16522
|
o(s), (l = this.options.behavior) == null || l.onFetch(
|
|
16523
16523
|
s,
|
|
16524
16524
|
this
|
|
16525
|
-
), q(this, Gr, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((a = s.fetchOptions) == null ? void 0 : a.meta)) && ve(this, Yt,
|
|
16525
|
+
), q(this, Gr, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((a = s.fetchOptions) == null ? void 0 : a.meta)) && ve(this, Yt, vn).call(this, { type: "fetch", meta: (u = s.fetchOptions) == null ? void 0 : u.meta });
|
|
16526
16526
|
const c = (h) => {
|
|
16527
16527
|
var g, x, v, d;
|
|
16528
|
-
ya(h) && h.silent || ve(this, Yt,
|
|
16528
|
+
ya(h) && h.silent || ve(this, Yt, vn).call(this, {
|
|
16529
16529
|
type: "error",
|
|
16530
16530
|
error: h
|
|
16531
16531
|
}), ya(h) || ((x = (g = S(this, Ut).config).onError) == null || x.call(
|
|
@@ -16566,13 +16566,13 @@ var ot = Y8(), ar, yd, ch = (yd = class {
|
|
|
16566
16566
|
},
|
|
16567
16567
|
onError: c,
|
|
16568
16568
|
onFail: (h, g) => {
|
|
16569
|
-
ve(this, Yt,
|
|
16569
|
+
ve(this, Yt, vn).call(this, { type: "failed", failureCount: h, error: g });
|
|
16570
16570
|
},
|
|
16571
16571
|
onPause: () => {
|
|
16572
|
-
ve(this, Yt,
|
|
16572
|
+
ve(this, Yt, vn).call(this, { type: "pause" });
|
|
16573
16573
|
},
|
|
16574
16574
|
onContinue: () => {
|
|
16575
|
-
ve(this, Yt,
|
|
16575
|
+
ve(this, Yt, vn).call(this, { type: "continue" });
|
|
16576
16576
|
},
|
|
16577
16577
|
retry: s.options.retry,
|
|
16578
16578
|
retryDelay: s.options.retryDelay,
|
|
@@ -16580,7 +16580,7 @@ var ot = Y8(), ar, yd, ch = (yd = class {
|
|
|
16580
16580
|
canRun: () => !0
|
|
16581
16581
|
})), S(this, pt).start();
|
|
16582
16582
|
}
|
|
16583
|
-
}, Vr = new WeakMap(), Gr = new WeakMap(), Ut = new WeakMap(), cr = new WeakMap(), pt = new WeakMap(), Yo = new WeakMap(), lr = new WeakMap(), Yt = new WeakSet(),
|
|
16583
|
+
}, Vr = new WeakMap(), Gr = new WeakMap(), Ut = new WeakMap(), cr = new WeakMap(), pt = new WeakMap(), Yo = new WeakMap(), lr = new WeakMap(), Yt = new WeakSet(), vn = function(t) {
|
|
16584
16584
|
const n = (r) => {
|
|
16585
16585
|
switch (t.type) {
|
|
16586
16586
|
case "failed":
|
|
@@ -16947,13 +16947,13 @@ function uh() {
|
|
|
16947
16947
|
submittedAt: 0
|
|
16948
16948
|
};
|
|
16949
16949
|
}
|
|
16950
|
-
var
|
|
16950
|
+
var yn, Jt, Jo, Id, eE = (Id = class extends fo {
|
|
16951
16951
|
constructor(t = {}) {
|
|
16952
16952
|
super();
|
|
16953
|
-
se(this,
|
|
16953
|
+
se(this, yn);
|
|
16954
16954
|
se(this, Jt);
|
|
16955
16955
|
se(this, Jo);
|
|
16956
|
-
this.config = t, q(this,
|
|
16956
|
+
this.config = t, q(this, yn, /* @__PURE__ */ new Set()), q(this, Jt, /* @__PURE__ */ new Map()), q(this, Jo, 0);
|
|
16957
16957
|
}
|
|
16958
16958
|
build(t, n, r) {
|
|
16959
16959
|
const o = new K8({
|
|
@@ -16965,7 +16965,7 @@ var vn, Jt, Jo, Id, eE = (Id = class extends fo {
|
|
|
16965
16965
|
return this.add(o), o;
|
|
16966
16966
|
}
|
|
16967
16967
|
add(t) {
|
|
16968
|
-
S(this,
|
|
16968
|
+
S(this, yn).add(t);
|
|
16969
16969
|
const n = Ei(t);
|
|
16970
16970
|
if (typeof n == "string") {
|
|
16971
16971
|
const r = S(this, Jt).get(n);
|
|
@@ -16974,7 +16974,7 @@ var vn, Jt, Jo, Id, eE = (Id = class extends fo {
|
|
|
16974
16974
|
this.notify({ type: "added", mutation: t });
|
|
16975
16975
|
}
|
|
16976
16976
|
remove(t) {
|
|
16977
|
-
if (S(this,
|
|
16977
|
+
if (S(this, yn).delete(t)) {
|
|
16978
16978
|
const n = Ei(t);
|
|
16979
16979
|
if (typeof n == "string") {
|
|
16980
16980
|
const r = S(this, Jt).get(n);
|
|
@@ -17008,13 +17008,13 @@ var vn, Jt, Jo, Id, eE = (Id = class extends fo {
|
|
|
17008
17008
|
}
|
|
17009
17009
|
clear() {
|
|
17010
17010
|
ot.batch(() => {
|
|
17011
|
-
S(this,
|
|
17011
|
+
S(this, yn).forEach((t) => {
|
|
17012
17012
|
this.notify({ type: "removed", mutation: t });
|
|
17013
|
-
}), S(this,
|
|
17013
|
+
}), S(this, yn).clear(), S(this, Jt).clear();
|
|
17014
17014
|
});
|
|
17015
17015
|
}
|
|
17016
17016
|
getAll() {
|
|
17017
|
-
return Array.from(S(this,
|
|
17017
|
+
return Array.from(S(this, yn));
|
|
17018
17018
|
}
|
|
17019
17019
|
find(t) {
|
|
17020
17020
|
const n = { exact: !0, ...t };
|
|
@@ -17040,7 +17040,7 @@ var vn, Jt, Jo, Id, eE = (Id = class extends fo {
|
|
|
17040
17040
|
)
|
|
17041
17041
|
);
|
|
17042
17042
|
}
|
|
17043
|
-
},
|
|
17043
|
+
}, yn = new WeakMap(), Jt = new WeakMap(), Jo = new WeakMap(), Id);
|
|
17044
17044
|
function Ei(e) {
|
|
17045
17045
|
var t;
|
|
17046
17046
|
return (t = e.options.scope) == null ? void 0 : t.id;
|
|
@@ -17621,15 +17621,15 @@ function sl(e, t) {
|
|
|
17621
17621
|
function iE(e, t) {
|
|
17622
17622
|
return !ls(e.getCurrentResult(), t);
|
|
17623
17623
|
}
|
|
17624
|
-
var Gn, Hn, Tt,
|
|
17624
|
+
var Gn, Hn, Tt, Cn, En, Wi, Ec, _d, sE = (_d = class extends fo {
|
|
17625
17625
|
constructor(n, r) {
|
|
17626
17626
|
super();
|
|
17627
|
-
se(this,
|
|
17627
|
+
se(this, En);
|
|
17628
17628
|
se(this, Gn);
|
|
17629
17629
|
se(this, Hn);
|
|
17630
17630
|
se(this, Tt);
|
|
17631
|
-
se(this,
|
|
17632
|
-
q(this, Gn, n), this.setOptions(r), this.bindMethods(), ve(this,
|
|
17631
|
+
se(this, Cn);
|
|
17632
|
+
q(this, Gn, n), this.setOptions(r), this.bindMethods(), ve(this, En, Wi).call(this);
|
|
17633
17633
|
}
|
|
17634
17634
|
bindMethods() {
|
|
17635
17635
|
this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
|
|
@@ -17648,20 +17648,20 @@ var Gn, Hn, Tt, yn, xn, Wi, Ec, _d, sE = (_d = class extends fo {
|
|
|
17648
17648
|
this.hasListeners() || (n = S(this, Tt)) == null || n.removeObserver(this);
|
|
17649
17649
|
}
|
|
17650
17650
|
onMutationUpdate(n) {
|
|
17651
|
-
ve(this,
|
|
17651
|
+
ve(this, En, Wi).call(this), ve(this, En, Ec).call(this, n);
|
|
17652
17652
|
}
|
|
17653
17653
|
getCurrentResult() {
|
|
17654
17654
|
return S(this, Hn);
|
|
17655
17655
|
}
|
|
17656
17656
|
reset() {
|
|
17657
17657
|
var n;
|
|
17658
|
-
(n = S(this, Tt)) == null || n.removeObserver(this), q(this, Tt, void 0), ve(this,
|
|
17658
|
+
(n = S(this, Tt)) == null || n.removeObserver(this), q(this, Tt, void 0), ve(this, En, Wi).call(this), ve(this, En, Ec).call(this);
|
|
17659
17659
|
}
|
|
17660
17660
|
mutate(n, r) {
|
|
17661
17661
|
var o;
|
|
17662
|
-
return q(this,
|
|
17662
|
+
return q(this, Cn, r), (o = S(this, Tt)) == null || o.removeObserver(this), q(this, Tt, S(this, Gn).getMutationCache().build(S(this, Gn), this.options)), S(this, Tt).addObserver(this), S(this, Tt).execute(n);
|
|
17663
17663
|
}
|
|
17664
|
-
}, Gn = new WeakMap(), Hn = new WeakMap(), Tt = new WeakMap(),
|
|
17664
|
+
}, Gn = new WeakMap(), Hn = new WeakMap(), Tt = new WeakMap(), Cn = new WeakMap(), En = new WeakSet(), Wi = function() {
|
|
17665
17665
|
var r;
|
|
17666
17666
|
const n = ((r = S(this, Tt)) == null ? void 0 : r.state) ?? uh();
|
|
17667
17667
|
q(this, Hn, {
|
|
@@ -17676,9 +17676,9 @@ var Gn, Hn, Tt, yn, xn, Wi, Ec, _d, sE = (_d = class extends fo {
|
|
|
17676
17676
|
}, Ec = function(n) {
|
|
17677
17677
|
ot.batch(() => {
|
|
17678
17678
|
var r, o, i, s, c, l, a, u;
|
|
17679
|
-
if (S(this,
|
|
17679
|
+
if (S(this, Cn) && this.hasListeners()) {
|
|
17680
17680
|
const h = S(this, Hn).variables, g = S(this, Hn).context;
|
|
17681
|
-
(n == null ? void 0 : n.type) === "success" ? ((o = (r = S(this,
|
|
17681
|
+
(n == null ? void 0 : n.type) === "success" ? ((o = (r = S(this, Cn)).onSuccess) == null || o.call(r, n.data, h, g), (s = (i = S(this, Cn)).onSettled) == null || s.call(i, n.data, null, h, g)) : (n == null ? void 0 : n.type) === "error" && ((l = (c = S(this, Cn)).onError) == null || l.call(c, n.error, h, g), (u = (a = S(this, Cn)).onSettled) == null || u.call(
|
|
17682
17682
|
a,
|
|
17683
17683
|
void 0,
|
|
17684
17684
|
n.error,
|
|
@@ -17963,7 +17963,7 @@ const yE = (e) => new Promise((t) => setTimeout(t, e)), CE = ({
|
|
|
17963
17963
|
}, RE = ({ onSuccess: e }) => cl({
|
|
17964
17964
|
mutationFn: OE,
|
|
17965
17965
|
onSuccess: () => {
|
|
17966
|
-
We({ message: m5, type:
|
|
17966
|
+
We({ message: m5, type: An }), e == null || e();
|
|
17967
17967
|
},
|
|
17968
17968
|
onError: () => {
|
|
17969
17969
|
We({ message: b5, type: xt });
|
|
@@ -18145,20 +18145,20 @@ const yE = (e) => new Promise((t) => setTimeout(t, e)), CE = ({
|
|
|
18145
18145
|
};
|
|
18146
18146
|
}, HE = ({ isAdmin: e = !1 }) => {
|
|
18147
18147
|
var li;
|
|
18148
|
-
const { email: t, currentSmIds: n, sendTrackingEvent: r, availableFeatures: o, conversationId: i } = $e(Je), s = en(), { userGroupId: c, userId: l } =
|
|
18148
|
+
const { email: t, currentSmIds: n, sendTrackingEvent: r, availableFeatures: o, conversationId: i } = $e(Je), s = en(), { userGroupId: c, userId: l } = In() || {}, a = Ce(!1), u = Ce(null), h = Ce(null), g = Ce(null), [x, v] = U(!1), [d, f] = U(!1), [p, y] = U(!1), [b, E] = U(!1), [C, I] = U(), [A, w] = U(!1), [_, O] = U(null), [L, R] = U(), [k, j] = U(null), [G, z] = U(!1), [ee, J] = U(!1), $ = Ae(M7), ce = Ae(j7), he = Ae(V7), M = Ae(G7), H = Ae(B7), B = Ae(M1), Z = Ae(K7), K = Ae(j1), ne = Ae(B1), ie = Ae(V1), P = Ae(t8), re = gt(o, a3), Ie = gt(o, _0), W = gt(o, h3), Ze = gt(o, g3), Ge = gt(o, m3), tt = gt(o, b3), nt = F3(he), { data: pn, isLoading: Et } = mh({
|
|
18149
18149
|
senderEmail: t,
|
|
18150
18150
|
conversationId: String(i),
|
|
18151
18151
|
enabled: Ze && !!t
|
|
18152
|
-
}), { emailHeaders: ft, selectedEmail: Qe } = pn ?? {}, { scrollOnceAfterLoad:
|
|
18152
|
+
}), { emailHeaders: ft, selectedEmail: Qe } = pn ?? {}, { scrollOnceAfterLoad: Sn, resetScrollState: Ht } = GE(h), wr = H !== te.LOADING && (!M || !Object.values(M).some((Re) => Re === te.LOADING)) && $ && $.length > 0;
|
|
18153
18153
|
no(() => {
|
|
18154
18154
|
var Re;
|
|
18155
|
-
G && !x && ee && ((Re = g == null ? void 0 : g.current) != null && Re.scrollHeight) &&
|
|
18155
|
+
G && !x && ee && ((Re = g == null ? void 0 : g.current) != null && Re.scrollHeight) && Sn(!!wr, "smooth");
|
|
18156
18156
|
}, [
|
|
18157
18157
|
G,
|
|
18158
18158
|
x,
|
|
18159
18159
|
ee,
|
|
18160
18160
|
wr,
|
|
18161
|
-
|
|
18161
|
+
Sn,
|
|
18162
18162
|
(li = g == null ? void 0 : g.current) == null ? void 0 : li.scrollHeight,
|
|
18163
18163
|
l
|
|
18164
18164
|
]);
|
|
@@ -18285,7 +18285,7 @@ const yE = (e) => new Promise((t) => setTimeout(t, e)), CE = ({
|
|
|
18285
18285
|
y(!1), s(kr(null)), I(void 0), w(!1);
|
|
18286
18286
|
}, mo = () => {
|
|
18287
18287
|
Wt(), s(Ku.clearConnectorList());
|
|
18288
|
-
},
|
|
18288
|
+
}, Ln = [
|
|
18289
18289
|
{
|
|
18290
18290
|
label: "Go back",
|
|
18291
18291
|
variant: "text",
|
|
@@ -18320,7 +18320,7 @@ const yE = (e) => new Promise((t) => setTimeout(t, e)), CE = ({
|
|
|
18320
18320
|
setShown: w,
|
|
18321
18321
|
title: w7,
|
|
18322
18322
|
description: A7,
|
|
18323
|
-
buttons:
|
|
18323
|
+
buttons: Ln
|
|
18324
18324
|
}
|
|
18325
18325
|
),
|
|
18326
18326
|
/* @__PURE__ */ m.jsx(fb, { onWheel: () => v(!0), ref: g, children: ce ? /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
@@ -19477,13 +19477,14 @@ function JE(e, t) {
|
|
|
19477
19477
|
});
|
|
19478
19478
|
}
|
|
19479
19479
|
class QE {
|
|
19480
|
-
constructor(t = []) {
|
|
19481
|
-
|
|
19482
|
-
|
|
19483
|
-
|
|
19484
|
-
|
|
19485
|
-
|
|
19486
|
-
this
|
|
19480
|
+
constructor(t = [], n = null) {
|
|
19481
|
+
mn(this, "highlightTerms");
|
|
19482
|
+
mn(this, "observer");
|
|
19483
|
+
mn(this, "isHighlighting");
|
|
19484
|
+
mn(this, "debounceTimer");
|
|
19485
|
+
mn(this, "debounceDelay");
|
|
19486
|
+
mn(this, "onHighlightsUpdated");
|
|
19487
|
+
this.highlightTerms = t, this.observer = null, this.isHighlighting = !1, this.debounceTimer = null, this.debounceDelay = 500, this.onHighlightsUpdated = n, console.log("Gmail Highlighter initialized for:", t), this.init();
|
|
19487
19488
|
}
|
|
19488
19489
|
init() {
|
|
19489
19490
|
console.log("Initialising Highlighting+++++"), this.highlightAllEmails(), this.startObserver();
|
|
@@ -19546,7 +19547,11 @@ class QE {
|
|
|
19546
19547
|
document.querySelectorAll(r).forEach((i) => {
|
|
19547
19548
|
this.isElementVisible(i) && (this.highlightInElement(i), n++);
|
|
19548
19549
|
});
|
|
19549
|
-
}),
|
|
19550
|
+
}), this.onHighlightsUpdated && setTimeout(() => {
|
|
19551
|
+
var o;
|
|
19552
|
+
const r = Array.from(document.querySelectorAll(".gmail-highlight"));
|
|
19553
|
+
(o = this.onHighlightsUpdated) == null || o.call(this, r);
|
|
19554
|
+
}, 1e3), console.log(`Highlighted ${this.highlightTerms.length} terms in ${n} elements`);
|
|
19550
19555
|
} finally {
|
|
19551
19556
|
setTimeout(() => {
|
|
19552
19557
|
this.isHighlighting = !1;
|
|
@@ -19893,7 +19898,7 @@ const KE = "Everything looks good", eI = "Something is not working", tI = "Provi
|
|
|
19893
19898
|
connectorId: E,
|
|
19894
19899
|
key: C
|
|
19895
19900
|
};
|
|
19896
|
-
l ? c(Fn.FEEDBACK_OPTION_SUBMITTED, z) : u && c(Fn.NEGATIVE_FEEDBACK_SUBMITTED, z), a(!1), h(!1), We({ message: uI, type:
|
|
19901
|
+
l ? c(Fn.FEEDBACK_OPTION_SUBMITTED, z) : u && c(Fn.NEGATIVE_FEEDBACK_SUBMITTED, z), a(!1), h(!1), We({ message: uI, type: An });
|
|
19897
19902
|
},
|
|
19898
19903
|
onError: () => {
|
|
19899
19904
|
We({ message: dI, type: xt });
|
|
@@ -20093,10 +20098,7 @@ const NI = ({
|
|
|
20093
20098
|
u ? c(u) : h && c(null);
|
|
20094
20099
|
}, [u, h]), console.log("analysisData in ConnectorHighlighter++++", s), pe(() => {
|
|
20095
20100
|
let g = null;
|
|
20096
|
-
return s && Object.keys(s).length && e && (g = new QE(Object.keys(s) || []
|
|
20097
|
-
const x = Array.from(document.querySelectorAll(".gmail-highlight"));
|
|
20098
|
-
a(x);
|
|
20099
|
-
}, 1e3)), () => {
|
|
20101
|
+
return s && Object.keys(s).length && e && (g = new QE(Object.keys(s) || [], a), i(Fn.OBJECT_HIGHLIGHTED, { keys: Object.keys(s) })), () => {
|
|
20100
20102
|
g && g.destroy(), window.tooltipCleanup && delete window.tooltipCleanup;
|
|
20101
20103
|
};
|
|
20102
20104
|
}, [s, e, i]), /* @__PURE__ */ m.jsx("div", { children: /* @__PURE__ */ m.jsx(
|
|
@@ -20156,7 +20158,7 @@ export {
|
|
|
20156
20158
|
YI as IntegrationSense,
|
|
20157
20159
|
VI as addNewConnectors,
|
|
20158
20160
|
Mp as dismissNotification,
|
|
20159
|
-
|
|
20161
|
+
In as getConnectorsBifrostConfigs,
|
|
20160
20162
|
ZI as getMetaData,
|
|
20161
20163
|
WI as initConnectorsBifrost,
|
|
20162
20164
|
GI as setCaptureFeedbackOnDemand,
|