@hiver/connector-agent 4.15.1-checkboxFix-beta.6 → 4.15.1-checkboxFix-beta.7
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/app/connector-cards.d.ts.map +1 -1
- package/index.es.js +389 -387
- package/index.umd.js +63 -63
- package/package.json +1 -1
package/index.es.js
CHANGED
|
@@ -14,8 +14,8 @@ var ns = (e, t, n, r) => ({
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
import * as S from "react";
|
|
17
|
-
import Me, { createContext as Xl, useState as V, useContext as je, useEffect as
|
|
18
|
-
import { keyframes as Jl, styled as A, Stack as N, theme as P, IconButton as lt, Typography as X, Box as K, Tooltip as we, Button as ke, icons as rt, Menu as Jg, MenuItem as
|
|
17
|
+
import Me, { createContext as Xl, useState as V, useContext as je, useEffect as oe, useRef as ge, useCallback as Ae, useSyncExternalStore as z1, useLayoutEffect as uo, isValidElement as Ao, cloneElement as Dc, useId as $g, forwardRef as fa, useMemo as fe, Component as Xg, Fragment as Nc, useReducer as Yg, memo as $1, Suspense as Yl } from "react";
|
|
18
|
+
import { keyframes as Jl, styled as A, Stack as N, theme as P, IconButton as lt, Typography as X, Box as K, Tooltip as we, Button as ke, icons as rt, Menu as Jg, MenuItem as Io, ListItemIcon as qg, brandIcons as X1, Grid as Kg, Link as $i, Skeleton as ql, TableHead as Qg, TableCell as pa, TableRow as Y1, palette as em, Icon as J1, DatePicker as tm, DateTextField as nm, InputAdornment as rm, TextField as Kl, tooltipClasses as no, ListSubheader as bs, InputBase as om, CircularProgress as _i, FormControl as ha, Select as Ql, Chip as im, Paper as eu, Popper as sm, ClickAwayListener as q1, Dialog as K1, TableContainer as am, Table as cm, TableBody as lm, HiverProvider as ga, RadioGroup as Q1, FormControlLabel as ef, Radio as tf, Checkbox as nf, OutlinedInput as rf, Switch as of, createTheme as um, ThemeProvider as dm } from "@hiver/hiver-ui-kit";
|
|
19
19
|
import fm, { createPortal as Xi } from "react-dom";
|
|
20
20
|
var Ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, jc = { exports: {} }, oi = {};
|
|
21
21
|
/**
|
|
@@ -143,14 +143,14 @@ function hm() {
|
|
|
143
143
|
}
|
|
144
144
|
return null;
|
|
145
145
|
}
|
|
146
|
-
var G = Object.assign, H = 0, Y, Z, U, Q, ee,
|
|
146
|
+
var G = Object.assign, H = 0, Y, Z, U, Q, ee, ie, W;
|
|
147
147
|
function q() {
|
|
148
148
|
}
|
|
149
149
|
q.__reactDisabledLog = !0;
|
|
150
150
|
function k() {
|
|
151
151
|
{
|
|
152
152
|
if (H === 0) {
|
|
153
|
-
Y = console.log, Z = console.info, U = console.warn, Q = console.error, ee = console.group,
|
|
153
|
+
Y = console.log, Z = console.info, U = console.warn, Q = console.error, ee = console.group, ie = console.groupCollapsed, W = console.groupEnd;
|
|
154
154
|
var R = {
|
|
155
155
|
configurable: !0,
|
|
156
156
|
enumerable: !0,
|
|
@@ -195,7 +195,7 @@ function hm() {
|
|
|
195
195
|
value: ee
|
|
196
196
|
}),
|
|
197
197
|
groupCollapsed: G({}, R, {
|
|
198
|
-
value:
|
|
198
|
+
value: ie
|
|
199
199
|
}),
|
|
200
200
|
groupEnd: G({}, R, {
|
|
201
201
|
value: W
|
|
@@ -389,7 +389,7 @@ function hm() {
|
|
|
389
389
|
__source: !0
|
|
390
390
|
}, Ut, tr, tn;
|
|
391
391
|
tn = {};
|
|
392
|
-
function
|
|
392
|
+
function po(R) {
|
|
393
393
|
if (Wt.call(R, "ref")) {
|
|
394
394
|
var z = Object.getOwnPropertyDescriptor(R, "ref").get;
|
|
395
395
|
if (z && z.isReactWarning)
|
|
@@ -397,7 +397,7 @@ function hm() {
|
|
|
397
397
|
}
|
|
398
398
|
return R.ref !== void 0;
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function ho(R) {
|
|
401
401
|
if (Wt.call(R, "key")) {
|
|
402
402
|
var z = Object.getOwnPropertyDescriptor(R, "key").get;
|
|
403
403
|
if (z && z.isReactWarning)
|
|
@@ -465,7 +465,7 @@ function hm() {
|
|
|
465
465
|
function Tr(R, z, ne, me, Fe) {
|
|
466
466
|
{
|
|
467
467
|
var Le, _e = {}, Ce = null, vt = null;
|
|
468
|
-
ne !== void 0 && (er(ne), Ce = "" + ne),
|
|
468
|
+
ne !== void 0 && (er(ne), Ce = "" + ne), ho(z) && (er(z.key), Ce = "" + z.key), po(z) && (vt = z.ref, Sr(z, Fe));
|
|
469
469
|
for (Le in z)
|
|
470
470
|
Wt.call(z, Le) && !In.hasOwnProperty(Le) && (_e[Le] = z[Le]);
|
|
471
471
|
if (R && R.defaultProps) {
|
|
@@ -505,11 +505,11 @@ Check the render method of \`` + R + "`.";
|
|
|
505
505
|
return "";
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function go(R) {
|
|
509
509
|
return "";
|
|
510
510
|
}
|
|
511
511
|
var Fr = {};
|
|
512
|
-
function
|
|
512
|
+
function mo(R) {
|
|
513
513
|
{
|
|
514
514
|
var z = Or();
|
|
515
515
|
if (!z) {
|
|
@@ -521,12 +521,12 @@ Check the top-level render call using <` + ne + ">.");
|
|
|
521
521
|
return z;
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function bo(R, z) {
|
|
525
525
|
{
|
|
526
526
|
if (!R._store || R._store.validated || R.key != null)
|
|
527
527
|
return;
|
|
528
528
|
R._store.validated = !0;
|
|
529
|
-
var ne =
|
|
529
|
+
var ne = mo(z);
|
|
530
530
|
if (Fr[ne])
|
|
531
531
|
return;
|
|
532
532
|
Fr[ne] = !0;
|
|
@@ -534,14 +534,14 @@ Check the top-level render call using <` + ne + ">.");
|
|
|
534
534
|
R && R._owner && R._owner !== Zt.current && (me = " It was passed a child from " + j(R._owner.type) + "."), _n(R), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', ne, me), _n(null);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
function
|
|
537
|
+
function xo(R, z) {
|
|
538
538
|
{
|
|
539
539
|
if (typeof R != "object")
|
|
540
540
|
return;
|
|
541
541
|
if (en(R))
|
|
542
542
|
for (var ne = 0; ne < R.length; ne++) {
|
|
543
543
|
var me = R[ne];
|
|
544
|
-
Rr(me) &&
|
|
544
|
+
Rr(me) && bo(me, z);
|
|
545
545
|
}
|
|
546
546
|
else if (Rr(R))
|
|
547
547
|
R._store && (R._store.validated = !0);
|
|
@@ -549,11 +549,11 @@ Check the top-level render call using <` + ne + ">.");
|
|
|
549
549
|
var Fe = f(R);
|
|
550
550
|
if (typeof Fe == "function" && Fe !== R.entries)
|
|
551
551
|
for (var Le = Fe.call(R), _e; !(_e = Le.next()).done; )
|
|
552
|
-
Rr(_e.value) &&
|
|
552
|
+
Rr(_e.value) && bo(_e.value, z);
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function vo(R) {
|
|
557
557
|
{
|
|
558
558
|
var z = R.type;
|
|
559
559
|
if (z == null || typeof z == "string")
|
|
@@ -597,7 +597,7 @@ Check the top-level render call using <` + ne + ">.");
|
|
|
597
597
|
if (!_e) {
|
|
598
598
|
var Ce = "";
|
|
599
599
|
(R === void 0 || typeof R == "object" && R !== null && Object.keys(R).length === 0) && (Ce += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
600
|
-
var vt =
|
|
600
|
+
var vt = go();
|
|
601
601
|
vt ? Ce += vt : Ce += Or();
|
|
602
602
|
var nt;
|
|
603
603
|
R === null ? nt = "null" : en(R) ? nt = "array" : R !== void 0 && R.$$typeof === t ? (nt = "<" + (j(R.type) || "Unknown") + " />", Ce = " Did you accidentally export a JSX literal instead of a component?") : nt = typeof R, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", nt, Ce);
|
|
@@ -611,12 +611,12 @@ Check the top-level render call using <` + ne + ">.");
|
|
|
611
611
|
if (me)
|
|
612
612
|
if (en(It)) {
|
|
613
613
|
for (var Sn = 0; Sn < It.length; Sn++)
|
|
614
|
-
|
|
614
|
+
xo(It[Sn], R);
|
|
615
615
|
Object.freeze && Object.freeze(It);
|
|
616
616
|
} else
|
|
617
617
|
x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
618
618
|
else
|
|
619
|
-
|
|
619
|
+
xo(It, R);
|
|
620
620
|
}
|
|
621
621
|
if (Wt.call(z, "key")) {
|
|
622
622
|
var Bn = j(R), yt = Object.keys(z).filter(function(ts) {
|
|
@@ -632,7 +632,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
632
632
|
<%s key={someKey} {...props} />`, ri, Bn, Xa, Bn), Dr[Bn + ri] = !0;
|
|
633
633
|
}
|
|
634
634
|
}
|
|
635
|
-
return R === r ? kr(it) :
|
|
635
|
+
return R === r ? kr(it) : vo(it), it;
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
638
|
function Te(R, z, ne) {
|
|
@@ -646,7 +646,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
646
646
|
}()), ii;
|
|
647
647
|
}
|
|
648
648
|
process.env.NODE_ENV === "production" ? jc.exports = pm() : jc.exports = hm();
|
|
649
|
-
var l = jc.exports,
|
|
649
|
+
var l = jc.exports, fo = class {
|
|
650
650
|
constructor() {
|
|
651
651
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
652
652
|
}
|
|
@@ -662,7 +662,7 @@ var l = jc.exports, uo = class {
|
|
|
662
662
|
}
|
|
663
663
|
onUnsubscribe() {
|
|
664
664
|
}
|
|
665
|
-
},
|
|
665
|
+
}, ro = typeof window > "u" || "Deno" in globalThis;
|
|
666
666
|
function an() {
|
|
667
667
|
}
|
|
668
668
|
function gm(e, t) {
|
|
@@ -674,7 +674,7 @@ function Mc(e) {
|
|
|
674
674
|
function sf(e, t) {
|
|
675
675
|
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function So(e, t) {
|
|
678
678
|
return typeof e == "function" ? e(t) : e;
|
|
679
679
|
}
|
|
680
680
|
function hn(e, t) {
|
|
@@ -709,7 +709,7 @@ function Ku(e, t) {
|
|
|
709
709
|
if (!t.options.mutationKey)
|
|
710
710
|
return !1;
|
|
711
711
|
if (n) {
|
|
712
|
-
if (
|
|
712
|
+
if (oo(t.options.mutationKey) !== oo(i))
|
|
713
713
|
return !1;
|
|
714
714
|
} else if (!Ai(t.options.mutationKey, i))
|
|
715
715
|
return !1;
|
|
@@ -717,9 +717,9 @@ function Ku(e, t) {
|
|
|
717
717
|
return !(r && t.state.status !== r || o && !o(t));
|
|
718
718
|
}
|
|
719
719
|
function tu(e, t) {
|
|
720
|
-
return ((t == null ? void 0 : t.queryKeyHashFn) ||
|
|
720
|
+
return ((t == null ? void 0 : t.queryKeyHashFn) || oo)(e);
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function oo(e) {
|
|
723
723
|
return JSON.stringify(
|
|
724
724
|
e,
|
|
725
725
|
(t, n) => Pc(n) ? Object.keys(n).sort().reduce((r, o) => (r[o] = n[o], r), {}) : n
|
|
@@ -801,14 +801,14 @@ function af(e, t) {
|
|
|
801
801
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`
|
|
802
802
|
), !e.queryFn && (t != null && t.initialPromise) ? () => t.initialPromise : !e.queryFn || e.queryFn === Bs ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
|
|
803
803
|
}
|
|
804
|
-
var
|
|
804
|
+
var Wr, ar, Oo, L1, vm = (L1 = class extends fo {
|
|
805
805
|
constructor() {
|
|
806
806
|
super();
|
|
807
|
-
ue(this,
|
|
807
|
+
ue(this, Wr);
|
|
808
808
|
ue(this, ar);
|
|
809
809
|
ue(this, Oo);
|
|
810
810
|
te(this, Oo, (t) => {
|
|
811
|
-
if (!
|
|
811
|
+
if (!ro && window.addEventListener) {
|
|
812
812
|
const n = () => t();
|
|
813
813
|
return window.addEventListener("visibilitychange", n, !1), () => {
|
|
814
814
|
window.removeEventListener("visibilitychange", n);
|
|
@@ -830,7 +830,7 @@ var Hr, ar, Oo, L1, vm = (L1 = class extends uo {
|
|
|
830
830
|
}));
|
|
831
831
|
}
|
|
832
832
|
setFocused(t) {
|
|
833
|
-
L(this,
|
|
833
|
+
L(this, Wr) !== t && (te(this, Wr, t), this.onFocus());
|
|
834
834
|
}
|
|
835
835
|
onFocus() {
|
|
836
836
|
const t = this.isFocused();
|
|
@@ -840,16 +840,16 @@ var Hr, ar, Oo, L1, vm = (L1 = class extends uo {
|
|
|
840
840
|
}
|
|
841
841
|
isFocused() {
|
|
842
842
|
var t;
|
|
843
|
-
return typeof L(this,
|
|
843
|
+
return typeof L(this, Wr) == "boolean" ? L(this, Wr) : ((t = globalThis.document) == null ? void 0 : t.visibilityState) !== "hidden";
|
|
844
844
|
}
|
|
845
|
-
},
|
|
845
|
+
}, Wr = new WeakMap(), ar = new WeakMap(), Oo = new WeakMap(), L1), nu = new vm(), Fo, cr, ko, R1, ym = (R1 = class extends fo {
|
|
846
846
|
constructor() {
|
|
847
847
|
super();
|
|
848
848
|
ue(this, Fo, !0);
|
|
849
849
|
ue(this, cr);
|
|
850
850
|
ue(this, ko);
|
|
851
851
|
te(this, ko, (t) => {
|
|
852
|
-
if (!
|
|
852
|
+
if (!ro && window.addEventListener) {
|
|
853
853
|
const n = () => t(!0), r = () => t(!1);
|
|
854
854
|
return window.addEventListener("online", n, !1), window.addEventListener("offline", r, !1), () => {
|
|
855
855
|
window.removeEventListener("online", n), window.removeEventListener("offline", r);
|
|
@@ -950,7 +950,7 @@ function uf(e) {
|
|
|
950
950
|
var w;
|
|
951
951
|
if (r)
|
|
952
952
|
return;
|
|
953
|
-
const x = e.retry ?? (
|
|
953
|
+
const x = e.retry ?? (ro ? 0 : 3), y = e.retryDelay ?? Cm, E = typeof y == "function" ? y(n, g) : y, C = x === !0 || typeof x == "number" && n < x || typeof x == "function" && x(n, g);
|
|
954
954
|
if (t || !C) {
|
|
955
955
|
b(g);
|
|
956
956
|
return;
|
|
@@ -1029,39 +1029,39 @@ function Em() {
|
|
|
1029
1029
|
}
|
|
1030
1030
|
};
|
|
1031
1031
|
}
|
|
1032
|
-
var ct = Em(),
|
|
1032
|
+
var ct = Em(), Ur, O1, df = (O1 = class {
|
|
1033
1033
|
constructor() {
|
|
1034
|
-
ue(this,
|
|
1034
|
+
ue(this, Ur);
|
|
1035
1035
|
}
|
|
1036
1036
|
destroy() {
|
|
1037
1037
|
this.clearGcTimeout();
|
|
1038
1038
|
}
|
|
1039
1039
|
scheduleGc() {
|
|
1040
|
-
this.clearGcTimeout(), Mc(this.gcTime) && te(this,
|
|
1040
|
+
this.clearGcTimeout(), Mc(this.gcTime) && te(this, Ur, setTimeout(() => {
|
|
1041
1041
|
this.optionalRemove();
|
|
1042
1042
|
}, this.gcTime));
|
|
1043
1043
|
}
|
|
1044
1044
|
updateGcTime(e) {
|
|
1045
1045
|
this.gcTime = Math.max(
|
|
1046
1046
|
this.gcTime || 0,
|
|
1047
|
-
e ?? (
|
|
1047
|
+
e ?? (ro ? 1 / 0 : 5 * 60 * 1e3)
|
|
1048
1048
|
);
|
|
1049
1049
|
}
|
|
1050
1050
|
clearGcTimeout() {
|
|
1051
|
-
L(this,
|
|
1051
|
+
L(this, Ur) && (clearTimeout(L(this, Ur)), te(this, Ur, void 0));
|
|
1052
1052
|
}
|
|
1053
|
-
},
|
|
1053
|
+
}, Ur = new WeakMap(), O1), Do, No, rn, Zr, At, Vi, zr, fn, Hn, F1, wm = (F1 = class extends df {
|
|
1054
1054
|
constructor(t) {
|
|
1055
1055
|
super();
|
|
1056
1056
|
ue(this, fn);
|
|
1057
1057
|
ue(this, Do);
|
|
1058
1058
|
ue(this, No);
|
|
1059
1059
|
ue(this, rn);
|
|
1060
|
-
ue(this,
|
|
1060
|
+
ue(this, Zr);
|
|
1061
1061
|
ue(this, At);
|
|
1062
1062
|
ue(this, Vi);
|
|
1063
|
-
ue(this,
|
|
1064
|
-
te(this,
|
|
1063
|
+
ue(this, zr);
|
|
1064
|
+
te(this, zr, !1), te(this, Vi, t.defaultOptions), this.setOptions(t.options), this.observers = [], te(this, Zr, t.client), te(this, rn, L(this, Zr).getQueryCache()), this.queryKey = t.queryKey, this.queryHash = t.queryHash, te(this, Do, Im(this.options)), this.state = t.state ?? L(this, Do), this.scheduleGc();
|
|
1065
1065
|
}
|
|
1066
1066
|
get meta() {
|
|
1067
1067
|
return this.options.meta;
|
|
@@ -1129,7 +1129,7 @@ var ct = Em(), Wr, O1, df = (O1 = class {
|
|
|
1129
1129
|
this.observers.includes(t) || (this.observers.push(t), this.clearGcTimeout(), L(this, rn).notify({ type: "observerAdded", query: this, observer: t }));
|
|
1130
1130
|
}
|
|
1131
1131
|
removeObserver(t) {
|
|
1132
|
-
this.observers.includes(t) && (this.observers = this.observers.filter((n) => n !== t), this.observers.length || (L(this, At) && (L(this,
|
|
1132
|
+
this.observers.includes(t) && (this.observers = this.observers.filter((n) => n !== t), this.observers.length || (L(this, At) && (L(this, zr) ? L(this, At).cancel({ revert: !0 }) : L(this, At).cancelRetry()), this.scheduleGc()), L(this, rn).notify({ type: "observerRemoved", query: this, observer: t }));
|
|
1133
1133
|
}
|
|
1134
1134
|
getObserversCount() {
|
|
1135
1135
|
return this.observers.length;
|
|
@@ -1155,15 +1155,15 @@ var ct = Em(), Wr, O1, df = (O1 = class {
|
|
|
1155
1155
|
const r = new AbortController(), o = (p) => {
|
|
1156
1156
|
Object.defineProperty(p, "signal", {
|
|
1157
1157
|
enumerable: !0,
|
|
1158
|
-
get: () => (te(this,
|
|
1158
|
+
get: () => (te(this, zr, !0), r.signal)
|
|
1159
1159
|
});
|
|
1160
1160
|
}, i = () => {
|
|
1161
1161
|
const p = af(this.options, n), b = {
|
|
1162
|
-
client: L(this,
|
|
1162
|
+
client: L(this, Zr),
|
|
1163
1163
|
queryKey: this.queryKey,
|
|
1164
1164
|
meta: this.meta
|
|
1165
1165
|
};
|
|
1166
|
-
return o(b), te(this,
|
|
1166
|
+
return o(b), te(this, zr, !1), this.options.persister ? this.options.persister(
|
|
1167
1167
|
p,
|
|
1168
1168
|
b,
|
|
1169
1169
|
this
|
|
@@ -1172,7 +1172,7 @@ var ct = Em(), Wr, O1, df = (O1 = class {
|
|
|
1172
1172
|
fetchOptions: n,
|
|
1173
1173
|
options: this.options,
|
|
1174
1174
|
queryKey: this.queryKey,
|
|
1175
|
-
client: L(this,
|
|
1175
|
+
client: L(this, Zr),
|
|
1176
1176
|
state: this.state,
|
|
1177
1177
|
fetchFn: i
|
|
1178
1178
|
};
|
|
@@ -1237,7 +1237,7 @@ var ct = Em(), Wr, O1, df = (O1 = class {
|
|
|
1237
1237
|
canRun: () => !0
|
|
1238
1238
|
})), L(this, At).start();
|
|
1239
1239
|
}
|
|
1240
|
-
}, Do = new WeakMap(), No = new WeakMap(), rn = new WeakMap(),
|
|
1240
|
+
}, Do = new WeakMap(), No = new WeakMap(), rn = new WeakMap(), Zr = new WeakMap(), At = new WeakMap(), Vi = new WeakMap(), zr = new WeakMap(), fn = new WeakSet(), Hn = function(t) {
|
|
1241
1241
|
const n = (r) => {
|
|
1242
1242
|
switch (t.type) {
|
|
1243
1243
|
case "failed":
|
|
@@ -1335,7 +1335,7 @@ function Im(e) {
|
|
|
1335
1335
|
fetchStatus: "idle"
|
|
1336
1336
|
};
|
|
1337
1337
|
}
|
|
1338
|
-
var Ln, k1, _m = (k1 = class extends
|
|
1338
|
+
var Ln, k1, _m = (k1 = class extends fo {
|
|
1339
1339
|
constructor(t = {}) {
|
|
1340
1340
|
super();
|
|
1341
1341
|
ue(this, Ln);
|
|
@@ -1407,13 +1407,13 @@ var Ln, k1, _m = (k1 = class extends uo {
|
|
|
1407
1407
|
});
|
|
1408
1408
|
});
|
|
1409
1409
|
}
|
|
1410
|
-
}, Ln = new WeakMap(), k1), Rn, St,
|
|
1410
|
+
}, Ln = new WeakMap(), k1), Rn, St, $r, On, ir, D1, Am = (D1 = class extends df {
|
|
1411
1411
|
constructor(t) {
|
|
1412
1412
|
super();
|
|
1413
1413
|
ue(this, On);
|
|
1414
1414
|
ue(this, Rn);
|
|
1415
1415
|
ue(this, St);
|
|
1416
|
-
ue(this,
|
|
1416
|
+
ue(this, $r);
|
|
1417
1417
|
this.mutationId = t.mutationId, te(this, St, t.mutationCache), te(this, Rn, []), this.state = t.state || pf(), this.setOptions(t.options), this.scheduleGc();
|
|
1418
1418
|
}
|
|
1419
1419
|
setOptions(t) {
|
|
@@ -1441,12 +1441,12 @@ var Ln, k1, _m = (k1 = class extends uo {
|
|
|
1441
1441
|
}
|
|
1442
1442
|
continue() {
|
|
1443
1443
|
var t;
|
|
1444
|
-
return ((t = L(this,
|
|
1444
|
+
return ((t = L(this, $r)) == null ? void 0 : t.continue()) ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
|
|
1445
1445
|
this.execute(this.state.variables);
|
|
1446
1446
|
}
|
|
1447
1447
|
async execute(t) {
|
|
1448
1448
|
var o, i, s, a, c, u, d, p, b, v, m, h, f, g, x, y, E, C, w, _;
|
|
1449
|
-
te(this,
|
|
1449
|
+
te(this, $r, uf({
|
|
1450
1450
|
fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
|
|
1451
1451
|
onFail: (I, T) => {
|
|
1452
1452
|
ye(this, On, ir).call(this, { type: "failed", failureCount: I, error: T });
|
|
@@ -1462,7 +1462,7 @@ var Ln, k1, _m = (k1 = class extends uo {
|
|
|
1462
1462
|
networkMode: this.options.networkMode,
|
|
1463
1463
|
canRun: () => L(this, St).canRun(this)
|
|
1464
1464
|
}));
|
|
1465
|
-
const n = this.state.status === "pending", r = !L(this,
|
|
1465
|
+
const n = this.state.status === "pending", r = !L(this, $r).canStart();
|
|
1466
1466
|
try {
|
|
1467
1467
|
if (!n) {
|
|
1468
1468
|
ye(this, On, ir).call(this, { type: "pending", variables: t, isPaused: r }), await ((i = (o = L(this, St).config).onMutate) == null ? void 0 : i.call(
|
|
@@ -1478,7 +1478,7 @@ var Ln, k1, _m = (k1 = class extends uo {
|
|
|
1478
1478
|
isPaused: r
|
|
1479
1479
|
});
|
|
1480
1480
|
}
|
|
1481
|
-
const I = await L(this,
|
|
1481
|
+
const I = await L(this, $r).start();
|
|
1482
1482
|
return await ((u = (c = L(this, St).config).onSuccess) == null ? void 0 : u.call(
|
|
1483
1483
|
c,
|
|
1484
1484
|
I,
|
|
@@ -1527,7 +1527,7 @@ var Ln, k1, _m = (k1 = class extends uo {
|
|
|
1527
1527
|
L(this, St).runNext(this);
|
|
1528
1528
|
}
|
|
1529
1529
|
}
|
|
1530
|
-
}, Rn = new WeakMap(), St = new WeakMap(),
|
|
1530
|
+
}, Rn = new WeakMap(), St = new WeakMap(), $r = new WeakMap(), On = new WeakSet(), ir = function(t) {
|
|
1531
1531
|
const n = (r) => {
|
|
1532
1532
|
switch (t.type) {
|
|
1533
1533
|
case "failed":
|
|
@@ -1604,7 +1604,7 @@ function pf() {
|
|
|
1604
1604
|
submittedAt: 0
|
|
1605
1605
|
};
|
|
1606
1606
|
}
|
|
1607
|
-
var Zn, pn, Gi, N1, Sm = (N1 = class extends
|
|
1607
|
+
var Zn, pn, Gi, N1, Sm = (N1 = class extends fo {
|
|
1608
1608
|
constructor(t = {}) {
|
|
1609
1609
|
super();
|
|
1610
1610
|
ue(this, Zn);
|
|
@@ -1827,7 +1827,7 @@ var st, lr, ur, jo, Mo, dr, Po, Bo, j1, Rm = (j1 = class {
|
|
|
1827
1827
|
}
|
|
1828
1828
|
ensureQueryData(e) {
|
|
1829
1829
|
const t = this.defaultQueryOptions(e), n = L(this, st).build(this, t), r = n.state.data;
|
|
1830
|
-
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(
|
|
1830
|
+
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(So(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
|
|
1831
1831
|
}
|
|
1832
1832
|
getQueriesData(e) {
|
|
1833
1833
|
return L(this, st).findAll(e).map(({ queryKey: t, state: n }) => {
|
|
@@ -1911,7 +1911,7 @@ var st, lr, ur, jo, Mo, dr, Po, Bo, j1, Rm = (j1 = class {
|
|
|
1911
1911
|
t.retry === void 0 && (t.retry = !1);
|
|
1912
1912
|
const n = L(this, st).build(this, t);
|
|
1913
1913
|
return n.isStaleByTime(
|
|
1914
|
-
|
|
1914
|
+
So(t.staleTime, n)
|
|
1915
1915
|
) ? n.fetch(t) : Promise.resolve(n.state.data);
|
|
1916
1916
|
}
|
|
1917
1917
|
prefetchQuery(e) {
|
|
@@ -1942,7 +1942,7 @@ var st, lr, ur, jo, Mo, dr, Po, Bo, j1, Rm = (j1 = class {
|
|
|
1942
1942
|
te(this, ur, e);
|
|
1943
1943
|
}
|
|
1944
1944
|
setQueryDefaults(e, t) {
|
|
1945
|
-
L(this, jo).set(
|
|
1945
|
+
L(this, jo).set(oo(e), {
|
|
1946
1946
|
queryKey: e,
|
|
1947
1947
|
defaultOptions: t
|
|
1948
1948
|
});
|
|
@@ -1954,7 +1954,7 @@ var st, lr, ur, jo, Mo, dr, Po, Bo, j1, Rm = (j1 = class {
|
|
|
1954
1954
|
}), n;
|
|
1955
1955
|
}
|
|
1956
1956
|
setMutationDefaults(e, t) {
|
|
1957
|
-
L(this, Mo).set(
|
|
1957
|
+
L(this, Mo).set(oo(e), {
|
|
1958
1958
|
mutationKey: e,
|
|
1959
1959
|
defaultOptions: t
|
|
1960
1960
|
});
|
|
@@ -1990,7 +1990,7 @@ var st, lr, ur, jo, Mo, dr, Po, Bo, j1, Rm = (j1 = class {
|
|
|
1990
1990
|
clear() {
|
|
1991
1991
|
L(this, st).clear(), L(this, lr).clear();
|
|
1992
1992
|
}
|
|
1993
|
-
}, st = new WeakMap(), lr = new WeakMap(), ur = new WeakMap(), jo = new WeakMap(), Mo = new WeakMap(), dr = new WeakMap(), Po = new WeakMap(), Bo = new WeakMap(), j1), Dt, Pe, Hi, Tt,
|
|
1993
|
+
}, st = new WeakMap(), lr = new WeakMap(), ur = new WeakMap(), jo = new WeakMap(), Mo = new WeakMap(), dr = new WeakMap(), Po = new WeakMap(), Bo = new WeakMap(), j1), Dt, Pe, Hi, Tt, Xr, Vo, fr, Fn, Wi, Go, Ho, Yr, Jr, pr, Wo, Xe, mi, Hc, Wc, Uc, Zc, zc, $c, Xc, gf, M1, ma = (M1 = class extends fo {
|
|
1994
1994
|
constructor(t, n) {
|
|
1995
1995
|
super();
|
|
1996
1996
|
ue(this, Xe);
|
|
@@ -1998,7 +1998,7 @@ var st, lr, ur, jo, Mo, dr, Po, Bo, j1, Rm = (j1 = class {
|
|
|
1998
1998
|
ue(this, Pe);
|
|
1999
1999
|
ue(this, Hi);
|
|
2000
2000
|
ue(this, Tt);
|
|
2001
|
-
ue(this,
|
|
2001
|
+
ue(this, Xr);
|
|
2002
2002
|
ue(this, Vo);
|
|
2003
2003
|
ue(this, fr);
|
|
2004
2004
|
ue(this, Fn);
|
|
@@ -2007,8 +2007,8 @@ var st, lr, ur, jo, Mo, dr, Po, Bo, j1, Rm = (j1 = class {
|
|
|
2007
2007
|
// This property keeps track of the last query with defined data.
|
|
2008
2008
|
// It will be used to pass the previous data and query to the placeholder function between renders.
|
|
2009
2009
|
ue(this, Ho);
|
|
2010
|
-
ue(this, Xr);
|
|
2011
2010
|
ue(this, Yr);
|
|
2011
|
+
ue(this, Jr);
|
|
2012
2012
|
ue(this, pr);
|
|
2013
2013
|
ue(this, Wo, /* @__PURE__ */ new Set());
|
|
2014
2014
|
this.options = n, te(this, Dt, t), te(this, Fn, null), te(this, fr, Vc()), this.options.experimental_prefetchInRender || L(this, fr).reject(
|
|
@@ -2058,13 +2058,13 @@ var st, lr, ur, jo, Mo, dr, Po, Bo, j1, Rm = (j1 = class {
|
|
|
2058
2058
|
o,
|
|
2059
2059
|
this.options,
|
|
2060
2060
|
r
|
|
2061
|
-
) && ye(this, Xe, mi).call(this), this.updateResult(n), i && (L(this, Pe) !== o || hn(this.options.enabled, L(this, Pe)) !== hn(r.enabled, L(this, Pe)) ||
|
|
2061
|
+
) && ye(this, Xe, mi).call(this), this.updateResult(n), i && (L(this, Pe) !== o || hn(this.options.enabled, L(this, Pe)) !== hn(r.enabled, L(this, Pe)) || So(this.options.staleTime, L(this, Pe)) !== So(r.staleTime, L(this, Pe))) && ye(this, Xe, Hc).call(this);
|
|
2062
2062
|
const s = ye(this, Xe, Wc).call(this);
|
|
2063
2063
|
i && (L(this, Pe) !== o || hn(this.options.enabled, L(this, Pe)) !== hn(r.enabled, L(this, Pe)) || s !== L(this, pr)) && ye(this, Xe, Uc).call(this, s);
|
|
2064
2064
|
}
|
|
2065
2065
|
getOptimisticResult(t) {
|
|
2066
2066
|
const n = L(this, Dt).getQueryCache().build(L(this, Dt), t), r = this.createResult(n, t);
|
|
2067
|
-
return Fm(this, r) && (te(this, Tt, r), te(this, Vo, this.options), te(this,
|
|
2067
|
+
return Fm(this, r) && (te(this, Tt, r), te(this, Vo, this.options), te(this, Xr, L(this, Pe).state)), r;
|
|
2068
2068
|
}
|
|
2069
2069
|
getCurrentResult() {
|
|
2070
2070
|
return L(this, Tt);
|
|
@@ -2102,7 +2102,7 @@ var st, lr, ur, jo, Mo, dr, Po, Bo, j1, Rm = (j1 = class {
|
|
|
2102
2102
|
}
|
|
2103
2103
|
createResult(t, n) {
|
|
2104
2104
|
var I;
|
|
2105
|
-
const r = L(this, Pe), o = this.options, i = L(this, Tt), s = L(this,
|
|
2105
|
+
const r = L(this, Pe), o = this.options, i = L(this, Tt), s = L(this, Xr), a = L(this, Vo), u = t !== r ? t.state : L(this, Hi), { state: d } = t;
|
|
2106
2106
|
let p = { ...d }, b = !1, v;
|
|
2107
2107
|
if (n._optimisticResults) {
|
|
2108
2108
|
const T = this.hasListeners(), D = !T && td(t, n), F = T && nd(t, r, n, o);
|
|
@@ -2193,7 +2193,7 @@ var st, lr, ur, jo, Mo, dr, Po, Bo, j1, Rm = (j1 = class {
|
|
|
2193
2193
|
}
|
|
2194
2194
|
updateResult(t) {
|
|
2195
2195
|
const n = L(this, Tt), r = this.createResult(L(this, Pe), this.options);
|
|
2196
|
-
if (te(this,
|
|
2196
|
+
if (te(this, Xr, L(this, Pe).state), te(this, Vo, this.options), L(this, Xr).data !== void 0 && te(this, Ho, L(this, Pe)), Ps(r, n))
|
|
2197
2197
|
return;
|
|
2198
2198
|
te(this, Tt, r);
|
|
2199
2199
|
const o = {}, i = () => {
|
|
@@ -2215,7 +2215,7 @@ var st, lr, ur, jo, Mo, dr, Po, Bo, j1, Rm = (j1 = class {
|
|
|
2215
2215
|
onQueryUpdate() {
|
|
2216
2216
|
this.updateResult(), this.hasListeners() && ye(this, Xe, Zc).call(this);
|
|
2217
2217
|
}
|
|
2218
|
-
}, Dt = new WeakMap(), Pe = new WeakMap(), Hi = new WeakMap(), Tt = new WeakMap(),
|
|
2218
|
+
}, Dt = new WeakMap(), Pe = new WeakMap(), Hi = new WeakMap(), Tt = new WeakMap(), Xr = new WeakMap(), Vo = new WeakMap(), fr = new WeakMap(), Fn = new WeakMap(), Wi = new WeakMap(), Go = new WeakMap(), Ho = new WeakMap(), Yr = new WeakMap(), Jr = new WeakMap(), pr = new WeakMap(), Wo = new WeakMap(), Xe = new WeakSet(), mi = function(t) {
|
|
2219
2219
|
ye(this, Xe, Xc).call(this);
|
|
2220
2220
|
let n = L(this, Pe).fetch(
|
|
2221
2221
|
this.options,
|
|
@@ -2224,28 +2224,28 @@ var st, lr, ur, jo, Mo, dr, Po, Bo, j1, Rm = (j1 = class {
|
|
|
2224
2224
|
return t != null && t.throwOnError || (n = n.catch(an)), n;
|
|
2225
2225
|
}, Hc = function() {
|
|
2226
2226
|
ye(this, Xe, zc).call(this);
|
|
2227
|
-
const t =
|
|
2227
|
+
const t = So(
|
|
2228
2228
|
this.options.staleTime,
|
|
2229
2229
|
L(this, Pe)
|
|
2230
2230
|
);
|
|
2231
|
-
if (
|
|
2231
|
+
if (ro || L(this, Tt).isStale || !Mc(t))
|
|
2232
2232
|
return;
|
|
2233
2233
|
const r = sf(L(this, Tt).dataUpdatedAt, t) + 1;
|
|
2234
|
-
te(this,
|
|
2234
|
+
te(this, Yr, setTimeout(() => {
|
|
2235
2235
|
L(this, Tt).isStale || this.updateResult();
|
|
2236
2236
|
}, r));
|
|
2237
2237
|
}, Wc = function() {
|
|
2238
2238
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(L(this, Pe)) : this.options.refetchInterval) ?? !1;
|
|
2239
2239
|
}, Uc = function(t) {
|
|
2240
|
-
ye(this, Xe, $c).call(this), te(this, pr, t), !(
|
|
2240
|
+
ye(this, Xe, $c).call(this), te(this, pr, t), !(ro || hn(this.options.enabled, L(this, Pe)) === !1 || !Mc(L(this, pr)) || L(this, pr) === 0) && te(this, Jr, setInterval(() => {
|
|
2241
2241
|
(this.options.refetchIntervalInBackground || nu.isFocused()) && ye(this, Xe, mi).call(this);
|
|
2242
2242
|
}, L(this, pr)));
|
|
2243
2243
|
}, Zc = function() {
|
|
2244
2244
|
ye(this, Xe, Hc).call(this), ye(this, Xe, Uc).call(this, ye(this, Xe, Wc).call(this));
|
|
2245
2245
|
}, zc = function() {
|
|
2246
|
-
L(this,
|
|
2246
|
+
L(this, Yr) && (clearTimeout(L(this, Yr)), te(this, Yr, void 0));
|
|
2247
2247
|
}, $c = function() {
|
|
2248
|
-
L(this,
|
|
2248
|
+
L(this, Jr) && (clearInterval(L(this, Jr)), te(this, Jr, void 0));
|
|
2249
2249
|
}, Xc = function() {
|
|
2250
2250
|
const t = L(this, Dt).getQueryCache().build(L(this, Dt), this.options);
|
|
2251
2251
|
if (t === L(this, Pe))
|
|
@@ -2279,7 +2279,7 @@ function nd(e, t, n, r) {
|
|
|
2279
2279
|
return (e !== t || hn(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && ru(e, n);
|
|
2280
2280
|
}
|
|
2281
2281
|
function ru(e, t) {
|
|
2282
|
-
return hn(t.enabled, e) !== !1 && e.isStaleByTime(
|
|
2282
|
+
return hn(t.enabled, e) !== !1 && e.isStaleByTime(So(t.staleTime, e));
|
|
2283
2283
|
}
|
|
2284
2284
|
function Fm(e, t) {
|
|
2285
2285
|
return !Ps(e.getCurrentResult(), t);
|
|
@@ -2291,11 +2291,11 @@ function km(e, t, n) {
|
|
|
2291
2291
|
const r = e.slice(0);
|
|
2292
2292
|
return r[t] = n, r;
|
|
2293
2293
|
}
|
|
2294
|
-
var
|
|
2294
|
+
var qr, on, Uo, Zo, sn, hr, Ui, Zi, zi, wt, Jc, qc, Kc, Qc, el, P1, Dm = (P1 = class extends fo {
|
|
2295
2295
|
constructor(t, n, r) {
|
|
2296
2296
|
super();
|
|
2297
2297
|
ue(this, wt);
|
|
2298
|
-
ue(this,
|
|
2298
|
+
ue(this, qr);
|
|
2299
2299
|
ue(this, on);
|
|
2300
2300
|
ue(this, Uo);
|
|
2301
2301
|
ue(this, Zo);
|
|
@@ -2304,7 +2304,7 @@ var Jr, on, Uo, Zo, sn, hr, Ui, Zi, zi, wt, Jc, qc, Kc, Qc, el, P1, Dm = (P1 = c
|
|
|
2304
2304
|
ue(this, Ui);
|
|
2305
2305
|
ue(this, Zi);
|
|
2306
2306
|
ue(this, zi, []);
|
|
2307
|
-
te(this,
|
|
2307
|
+
te(this, qr, t), te(this, Zo, r), te(this, Uo, []), te(this, sn, []), te(this, on, []), this.setQueries(n);
|
|
2308
2308
|
}
|
|
2309
2309
|
onSubscribe() {
|
|
2310
2310
|
this.listeners.size === 1 && L(this, sn).forEach((t) => {
|
|
@@ -2324,7 +2324,7 @@ var Jr, on, Uo, Zo, sn, hr, Ui, Zi, zi, wt, Jc, qc, Kc, Qc, el, P1, Dm = (P1 = c
|
|
|
2324
2324
|
setQueries(t, n, r) {
|
|
2325
2325
|
if (te(this, Uo, t), te(this, Zo, n), process.env.NODE_ENV !== "production") {
|
|
2326
2326
|
const o = t.map(
|
|
2327
|
-
(i) => L(this,
|
|
2327
|
+
(i) => L(this, qr).defaultQueryOptions(i).queryHash
|
|
2328
2328
|
);
|
|
2329
2329
|
new Set(o).size !== o.length && console.warn(
|
|
2330
2330
|
"[QueriesObserver]: Duplicate Queries found. This might result in unexpected behavior."
|
|
@@ -2368,7 +2368,7 @@ var Jr, on, Uo, Zo, sn, hr, Ui, Zi, zi, wt, Jc, qc, Kc, Qc, el, P1, Dm = (P1 = c
|
|
|
2368
2368
|
() => ye(this, wt, Jc).call(this, o, r)
|
|
2369
2369
|
];
|
|
2370
2370
|
}
|
|
2371
|
-
},
|
|
2371
|
+
}, qr = new WeakMap(), on = new WeakMap(), Uo = new WeakMap(), Zo = new WeakMap(), sn = new WeakMap(), hr = new WeakMap(), Ui = new WeakMap(), Zi = new WeakMap(), zi = new WeakMap(), wt = new WeakSet(), Jc = function(t, n) {
|
|
2372
2372
|
return n.map((r, o) => {
|
|
2373
2373
|
const i = t[o];
|
|
2374
2374
|
return r.defaultedQueryOptions.notifyOnChangeProps ? i : r.observer.trackResult(i, (s) => {
|
|
@@ -2387,13 +2387,13 @@ var Jr, on, Uo, Zo, sn, hr, Ui, Zi, zi, wt, Jc, qc, Kc, Qc, el, P1, Dm = (P1 = c
|
|
|
2387
2387
|
L(this, sn).map((o) => [o.options.queryHash, o])
|
|
2388
2388
|
), r = [];
|
|
2389
2389
|
return t.forEach((o) => {
|
|
2390
|
-
const i = L(this,
|
|
2390
|
+
const i = L(this, qr).defaultQueryOptions(o), s = n.get(i.queryHash);
|
|
2391
2391
|
s ? r.push({
|
|
2392
2392
|
defaultedQueryOptions: i,
|
|
2393
2393
|
observer: s
|
|
2394
2394
|
}) : r.push({
|
|
2395
2395
|
defaultedQueryOptions: i,
|
|
2396
|
-
observer: new ma(L(this,
|
|
2396
|
+
observer: new ma(L(this, qr), i)
|
|
2397
2397
|
});
|
|
2398
2398
|
}), r;
|
|
2399
2399
|
}, Qc = function(t, n) {
|
|
@@ -2461,7 +2461,7 @@ var Jr, on, Uo, Zo, sn, hr, Ui, Zi, zi, wt, Jc, qc, Kc, Qc, el, P1, Dm = (P1 = c
|
|
|
2461
2461
|
isRefetching: i && !d && !b
|
|
2462
2462
|
};
|
|
2463
2463
|
}
|
|
2464
|
-
}, gr, mr, Nt, zn, Xn, xs, tl, B1, jm = (B1 = class extends
|
|
2464
|
+
}, gr, mr, Nt, zn, Xn, xs, tl, B1, jm = (B1 = class extends fo {
|
|
2465
2465
|
constructor(n, r) {
|
|
2466
2466
|
super();
|
|
2467
2467
|
ue(this, Xn);
|
|
@@ -2481,7 +2481,7 @@ var Jr, on, Uo, Zo, sn, hr, Ui, Zi, zi, wt, Jc, qc, Kc, Qc, el, P1, Dm = (P1 = c
|
|
|
2481
2481
|
type: "observerOptionsUpdated",
|
|
2482
2482
|
mutation: L(this, Nt),
|
|
2483
2483
|
observer: this
|
|
2484
|
-
}), r != null && r.mutationKey && this.options.mutationKey &&
|
|
2484
|
+
}), r != null && r.mutationKey && this.options.mutationKey && oo(r.mutationKey) !== oo(this.options.mutationKey) ? this.reset() : ((o = L(this, Nt)) == null ? void 0 : o.state.status) === "pending" && L(this, Nt).setOptions(this.options);
|
|
2485
2485
|
}
|
|
2486
2486
|
onUnsubscribe() {
|
|
2487
2487
|
var n;
|
|
@@ -2697,7 +2697,7 @@ function Af(e, t, n) {
|
|
|
2697
2697
|
v,
|
|
2698
2698
|
s,
|
|
2699
2699
|
u
|
|
2700
|
-
), s.experimental_prefetchInRender && !
|
|
2700
|
+
), s.experimental_prefetchInRender && !ro && _f(u, o)) {
|
|
2701
2701
|
const f = a ? (
|
|
2702
2702
|
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
|
2703
2703
|
Ws(s, c, i)
|
|
@@ -2771,7 +2771,7 @@ function Um(e) {
|
|
|
2771
2771
|
const o = () => {
|
|
2772
2772
|
e.removeEventListener("success", i), e.removeEventListener("error", s);
|
|
2773
2773
|
}, i = () => {
|
|
2774
|
-
n(
|
|
2774
|
+
n(Kr(e.result)), o();
|
|
2775
2775
|
}, s = () => {
|
|
2776
2776
|
r(e.error), o();
|
|
2777
2777
|
};
|
|
@@ -2802,7 +2802,7 @@ let il = {
|
|
|
2802
2802
|
if (t === "store")
|
|
2803
2803
|
return n.objectStoreNames[1] ? void 0 : n.objectStore(n.objectStoreNames[0]);
|
|
2804
2804
|
}
|
|
2805
|
-
return
|
|
2805
|
+
return Kr(e[t]);
|
|
2806
2806
|
},
|
|
2807
2807
|
set(e, t, n) {
|
|
2808
2808
|
return e[t] = n, !0;
|
|
@@ -2816,15 +2816,15 @@ function Sf(e) {
|
|
|
2816
2816
|
}
|
|
2817
2817
|
function zm(e) {
|
|
2818
2818
|
return Wm().includes(e) ? function(...t) {
|
|
2819
|
-
return e.apply(sl(this), t),
|
|
2819
|
+
return e.apply(sl(this), t), Kr(this.request);
|
|
2820
2820
|
} : function(...t) {
|
|
2821
|
-
return
|
|
2821
|
+
return Kr(e.apply(sl(this), t));
|
|
2822
2822
|
};
|
|
2823
2823
|
}
|
|
2824
2824
|
function $m(e) {
|
|
2825
2825
|
return typeof e == "function" ? zm(e) : (e instanceof IDBTransaction && Zm(e), rl(e, Hm()) ? new Proxy(e, il) : e);
|
|
2826
2826
|
}
|
|
2827
|
-
function
|
|
2827
|
+
function Kr(e) {
|
|
2828
2828
|
if (e instanceof IDBRequest)
|
|
2829
2829
|
return Um(e);
|
|
2830
2830
|
if (qa.has(e))
|
|
@@ -2834,9 +2834,9 @@ function qr(e) {
|
|
|
2834
2834
|
}
|
|
2835
2835
|
const sl = (e) => ba.get(e);
|
|
2836
2836
|
function Xm(e, t, { blocked: n, upgrade: r, blocking: o, terminated: i } = {}) {
|
|
2837
|
-
const s = indexedDB.open(e, t), a =
|
|
2837
|
+
const s = indexedDB.open(e, t), a = Kr(s);
|
|
2838
2838
|
return r && s.addEventListener("upgradeneeded", (c) => {
|
|
2839
|
-
r(
|
|
2839
|
+
r(Kr(s.result), c.oldVersion, c.newVersion, Kr(s.transaction), c);
|
|
2840
2840
|
}), n && s.addEventListener("blocked", (c) => n(
|
|
2841
2841
|
// Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405
|
|
2842
2842
|
c.oldVersion,
|
|
@@ -3988,7 +3988,7 @@ function Xf(e, t) {
|
|
|
3988
3988
|
return e && !I4(t) ? _4(e, t) : t;
|
|
3989
3989
|
}
|
|
3990
3990
|
const xd = (e) => e instanceof gn ? { ...e } : e;
|
|
3991
|
-
function
|
|
3991
|
+
function io(e, t) {
|
|
3992
3992
|
t = t || {};
|
|
3993
3993
|
const n = {};
|
|
3994
3994
|
function r(u, d, p) {
|
|
@@ -4053,7 +4053,7 @@ function oo(e, t) {
|
|
|
4053
4053
|
}), n;
|
|
4054
4054
|
}
|
|
4055
4055
|
var Yf = (e) => {
|
|
4056
|
-
const t =
|
|
4056
|
+
const t = io({}, e);
|
|
4057
4057
|
let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: i, headers: s, auth: a } = t;
|
|
4058
4058
|
t.headers = s = gn.from(s), t.url = Wf(Xf(t.baseURL, t.url), e.params, e.paramsSerializer), a && s.set(
|
|
4059
4059
|
"Authorization",
|
|
@@ -4493,7 +4493,7 @@ let $s = class {
|
|
|
4493
4493
|
}
|
|
4494
4494
|
}
|
|
4495
4495
|
_request(t, n) {
|
|
4496
|
-
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n =
|
|
4496
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = io(this.defaults, n);
|
|
4497
4497
|
const { transitional: r, paramsSerializer: o, headers: i } = n;
|
|
4498
4498
|
r !== void 0 && gl.assertOptions(r, {
|
|
4499
4499
|
silentJSONParsing: or.transitional(or.boolean),
|
|
@@ -4552,14 +4552,14 @@ let $s = class {
|
|
|
4552
4552
|
return d;
|
|
4553
4553
|
}
|
|
4554
4554
|
getUri(t) {
|
|
4555
|
-
t =
|
|
4555
|
+
t = io(this.defaults, t);
|
|
4556
4556
|
const n = Xf(t.baseURL, t.url);
|
|
4557
4557
|
return Wf(n, t.params, t.paramsSerializer);
|
|
4558
4558
|
}
|
|
4559
4559
|
};
|
|
4560
4560
|
B.forEach(["delete", "get", "head", "options"], function(t) {
|
|
4561
4561
|
$s.prototype[t] = function(n, r) {
|
|
4562
|
-
return this.request(
|
|
4562
|
+
return this.request(io(r || {}, {
|
|
4563
4563
|
method: t,
|
|
4564
4564
|
url: n,
|
|
4565
4565
|
data: (r || {}).data
|
|
@@ -4569,7 +4569,7 @@ B.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
4569
4569
|
B.forEach(["post", "put", "patch"], function(t) {
|
|
4570
4570
|
function n(r) {
|
|
4571
4571
|
return function(i, s, a) {
|
|
4572
|
-
return this.request(
|
|
4572
|
+
return this.request(io(a || {}, {
|
|
4573
4573
|
method: t,
|
|
4574
4574
|
headers: r ? {
|
|
4575
4575
|
"Content-Type": "multipart/form-data"
|
|
@@ -4736,7 +4736,7 @@ var W4 = ml;
|
|
|
4736
4736
|
function ep(e) {
|
|
4737
4737
|
const t = new Es(e), n = Of(Es.prototype.request, t);
|
|
4738
4738
|
return B.extend(n, Es.prototype, t, { allOwnKeys: !0 }), B.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
4739
|
-
return ep(
|
|
4739
|
+
return ep(io(e, o));
|
|
4740
4740
|
}, n;
|
|
4741
4741
|
}
|
|
4742
4742
|
const pt = ep(lu);
|
|
@@ -4753,7 +4753,7 @@ pt.all = function(t) {
|
|
|
4753
4753
|
};
|
|
4754
4754
|
pt.spread = G4;
|
|
4755
4755
|
pt.isAxiosError = H4;
|
|
4756
|
-
pt.mergeConfig =
|
|
4756
|
+
pt.mergeConfig = io;
|
|
4757
4757
|
pt.AxiosHeaders = gn;
|
|
4758
4758
|
pt.formToJSON = (e) => Zf(B.isHTMLForm(e) ? new FormData(e) : e);
|
|
4759
4759
|
pt.getAdapter = Kf.getAdapter;
|
|
@@ -4995,7 +4995,7 @@ var nb = Ee && Ee.__awaiter || function(e, t, n, r) {
|
|
|
4995
4995
|
};
|
|
4996
4996
|
Object.defineProperty(We, "__esModule", { value: !0 });
|
|
4997
4997
|
We.expireToken = We.invalidateToken = We.validateToken = We.validateAccount = We.getConfig = We.introduceDelay = We.isTokenInExpiryWindow = We.getStoredAuthData = We.setUserDetails = We.getRefreshInterval = We.setTokenAndExpiry = We.getRandomDelay = We.hasValidToken = void 0;
|
|
4998
|
-
var $n = Cr,
|
|
4998
|
+
var $n = Cr, yo = Mt, zt = Nn, pu = function() {
|
|
4999
4999
|
var e = /* @__PURE__ */ new Date(), t = new Date(e.getTime() + e.getTimezoneOffset() * 6e4);
|
|
5000
5000
|
return t;
|
|
5001
5001
|
}, hu = function(e) {
|
|
@@ -5073,13 +5073,13 @@ var pb = function(e, t, n) {
|
|
|
5073
5073
|
switch (n === void 0 && (n = !0), t) {
|
|
5074
5074
|
case $n.TIERS.SIT:
|
|
5075
5075
|
case $n.TIERS.QA:
|
|
5076
|
-
return n ? (0,
|
|
5076
|
+
return n ? (0, yo.getSitApiConfig)(e) : (0, yo.getSitHqConfig)(e);
|
|
5077
5077
|
case $n.TIERS.PRODUCTION:
|
|
5078
5078
|
case $n.TIERS.PROD:
|
|
5079
|
-
return n ? (0,
|
|
5079
|
+
return n ? (0, yo.getProdApiConfig)() : (0, yo.getProdHqConfig)();
|
|
5080
5080
|
case $n.TIERS.DEV:
|
|
5081
5081
|
default:
|
|
5082
|
-
return n ? (0,
|
|
5082
|
+
return n ? (0, yo.getDevApiConfig)() : (0, yo.getDevHqConfig)();
|
|
5083
5083
|
}
|
|
5084
5084
|
};
|
|
5085
5085
|
We.getConfig = pb;
|
|
@@ -5589,20 +5589,20 @@ function op() {
|
|
|
5589
5589
|
}, p = function(m, h, f, g, x, y, E, C, w) {
|
|
5590
5590
|
return C === void 0 && (C = "default"), e(void 0, void 0, void 0, function() {
|
|
5591
5591
|
var _, I, T, D, F, O, j, G, H, Y, Z, U, Q, ee;
|
|
5592
|
-
return t(this, function(
|
|
5593
|
-
switch (
|
|
5592
|
+
return t(this, function(ie) {
|
|
5593
|
+
switch (ie.label) {
|
|
5594
5594
|
case 0:
|
|
5595
|
-
return
|
|
5595
|
+
return ie.trys.push([0, 2, , 12]), console.log("Heimdall: Interval Set on fetch token in fetchAndSaveToken:", c), [4, (0, n.getAccessToken)(r.CONFIG_HIVER, g, x, y, C)];
|
|
5596
5596
|
case 1:
|
|
5597
|
-
return _ =
|
|
5597
|
+
return _ = ie.sent(), I = _.atToken, T = _.expiryTime, D = _.userId, F = _.userGroupId, I && T && (0, o.setTokenAndExpiry)(I, T), D && F && (0, o.setUserDetails)(D, F), m = r.INITIAL_RETRY_DELAY, h = r.INITIAL_RETRY_DELAY, f = 0, [3, 12];
|
|
5598
5598
|
case 2:
|
|
5599
|
-
return O =
|
|
5599
|
+
return O = ie.sent(), console.log("ERROR: Heimdall fetch token", O), ((H = O.response) === null || H === void 0 ? void 0 : H.status) === 401 || ((Y = O.request) === null || Y === void 0 ? void 0 : Y.status) === 401 ? (j = 1, [4, u(g, x, j, y, E, w)]) : [3, 4];
|
|
5600
5600
|
case 3:
|
|
5601
|
-
return
|
|
5601
|
+
return ie.sent(), [3, 11];
|
|
5602
5602
|
case 4:
|
|
5603
5603
|
return ((Z = O.response) === null || Z === void 0 ? void 0 : Z.status) === 409 || ((U = O.request) === null || U === void 0 ? void 0 : U.status) === 409 ? (console.log("Heimdall: Fetching token post 409 in fetch And Save Token"), G = { retryDelay: m, configs: g, apiParams: x, appUI: w }, [4, d(h, f, G, y, E)]) : [3, 6];
|
|
5604
5604
|
case 5:
|
|
5605
|
-
if (
|
|
5605
|
+
if (ie.sent(), f >= r.MAX_CONFLICT_RETRY_DELAY)
|
|
5606
5606
|
throw O;
|
|
5607
5607
|
return [3, 11];
|
|
5608
5608
|
case 6:
|
|
@@ -5613,9 +5613,9 @@ function op() {
|
|
|
5613
5613
|
return setTimeout(W, m);
|
|
5614
5614
|
})] : [3, 10];
|
|
5615
5615
|
case 8:
|
|
5616
|
-
return
|
|
5616
|
+
return ie.sent(), m *= 2, console.log("Heimdall: Fetch token post doubling retry delay", m), [4, p(m, h, f, g, x, y, E, w)];
|
|
5617
5617
|
case 9:
|
|
5618
|
-
return
|
|
5618
|
+
return ie.sent(), [3, 11];
|
|
5619
5619
|
case 10:
|
|
5620
5620
|
throw O;
|
|
5621
5621
|
case 11:
|
|
@@ -7302,7 +7302,7 @@ const p6 = (e) => /* @__PURE__ */ S.createElement("svg", { width: 20, height: 21
|
|
|
7302
7302
|
color: ${P.palette.gray.gray2};
|
|
7303
7303
|
`, j6 = () => {
|
|
7304
7304
|
const { availableFeatures: e, sendTrackingEvent: t, isAdmin: n } = je(Qe), [r, o] = V(() => !(localStorage.getItem(ic) === "true") && mt(e, B5));
|
|
7305
|
-
|
|
7305
|
+
oe(() => {
|
|
7306
7306
|
localStorage.getItem(ic) === "true" && o(!1);
|
|
7307
7307
|
}, []);
|
|
7308
7308
|
const i = () => {
|
|
@@ -7329,7 +7329,7 @@ const p6 = (e) => /* @__PURE__ */ S.createElement("svg", { width: 20, height: 21
|
|
|
7329
7329
|
] });
|
|
7330
7330
|
}, M6 = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_4649_80352'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='21'%3e%3crect%20y='0.320312'%20width='20'%20height='20'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_4649_80352)'%3e%3cpath%20d='M9.16797%2014.4873H10.8346V11.154H14.168V9.4873H10.8346V6.15397H9.16797V9.4873H5.83464V11.154H9.16797V14.4873ZM10.0013%2018.654C8.84852%2018.654%207.76519%2018.4352%206.7513%2017.9977C5.73741%2017.5602%204.85547%2016.9665%204.10547%2016.2165C3.35547%2015.4665%202.76172%2014.5845%202.32422%2013.5706C1.88672%2012.5567%201.66797%2011.4734%201.66797%2010.3206C1.66797%209.16786%201.88672%208.08453%202.32422%207.07064C2.76172%206.05675%203.35547%205.1748%204.10547%204.4248C4.85547%203.6748%205.73741%203.08105%206.7513%202.64355C7.76519%202.20605%208.84852%201.9873%2010.0013%201.9873C11.1541%201.9873%2012.2374%202.20605%2013.2513%202.64355C14.2652%203.08105%2015.1471%203.6748%2015.8971%204.4248C16.6471%205.1748%2017.2409%206.05675%2017.6784%207.07064C18.1159%208.08453%2018.3346%209.16786%2018.3346%2010.3206C18.3346%2011.4734%2018.1159%2012.5567%2017.6784%2013.5706C17.2409%2014.5845%2016.6471%2015.4665%2015.8971%2016.2165C15.1471%2016.9665%2014.2652%2017.5602%2013.2513%2017.9977C12.2374%2018.4352%2011.1541%2018.654%2010.0013%2018.654ZM10.0013%2016.9873C11.8624%2016.9873%2013.4388%2016.3415%2014.7305%2015.0498C16.0221%2013.7581%2016.668%2012.1817%2016.668%2010.3206C16.668%208.45953%2016.0221%206.88314%2014.7305%205.59147C13.4388%204.2998%2011.8624%203.65397%2010.0013%203.65397C8.14019%203.65397%206.5638%204.2998%205.27214%205.59147C3.98047%206.88314%203.33464%208.45953%203.33464%2010.3206C3.33464%2012.1817%203.98047%2013.7581%205.27214%2015.0498C6.5638%2016.3415%208.14019%2016.9873%2010.0013%2016.9873Z'%20fill='%234D596C'/%3e%3c/g%3e%3c/svg%3e", Ip = (e) => /* @__PURE__ */ S.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("path", { d: "M15.505 1.84634C15.1241 1.46545 14.6074 1.25146 14.0688 1.25146C13.5301 1.25146 13.0134 1.46545 12.6325 1.84634L10.6244 3.85447C10.6108 3.3249 10.391 2.82156 10.0116 2.45179C9.63228 2.08203 9.12349 1.87508 8.59375 1.87509H3.90625C3.36753 1.87509 2.85087 2.0891 2.46994 2.47003C2.08901 2.85097 1.875 3.36762 1.875 3.90634V16.0938C1.875 16.6326 2.08901 17.1492 2.46994 17.5302C2.85087 17.9111 3.36753 18.1251 3.90625 18.1251H16.0938C16.6325 18.1251 17.1491 17.9111 17.5301 17.5302C17.911 17.1492 18.125 16.6326 18.125 16.0938V11.4063C18.125 10.8775 17.9189 10.3696 17.5503 9.99039C17.1817 9.6112 16.6798 9.39069 16.1512 9.37572L18.1569 7.37072C18.5378 6.98979 18.7518 6.47316 18.7518 5.93447C18.7518 5.39578 18.5378 4.87915 18.1569 4.49822L15.505 1.84634ZM11.985 9.37509H10.625V8.01509L11.985 9.37509ZM13.5162 2.73009C13.5888 2.65753 13.6749 2.59996 13.7697 2.56069C13.8645 2.52141 13.9661 2.5012 14.0688 2.5012C14.1714 2.5012 14.273 2.52141 14.3678 2.56069C14.4626 2.59996 14.5487 2.65753 14.6212 2.73009L17.2725 5.38197C17.3451 5.45452 17.4026 5.54065 17.4419 5.63545C17.4812 5.73025 17.5014 5.83186 17.5014 5.93447C17.5014 6.03708 17.4812 6.13869 17.4419 6.23349C17.4026 6.32829 17.3451 6.41442 17.2725 6.48697L14.6212 9.13822C14.5487 9.21079 14.4626 9.26835 14.3678 9.30763C14.273 9.3469 14.1714 9.36711 14.0688 9.36711C13.9661 9.36711 13.8645 9.3469 13.7697 9.30763C13.6749 9.26835 13.5888 9.21079 13.5162 9.13822L10.8644 6.48697C10.7918 6.41442 10.7342 6.32829 10.695 6.23349C10.6557 6.13869 10.6355 6.03708 10.6355 5.93447C10.6355 5.83186 10.6557 5.73025 10.695 5.63545C10.7342 5.54065 10.7918 5.45452 10.8644 5.38197L13.5162 2.73009ZM9.375 3.90634V9.37509H3.125V3.90634C3.125 3.47509 3.475 3.12509 3.90625 3.12509H8.59375C9.025 3.12509 9.375 3.47509 9.375 3.90634ZM3.125 16.0938V10.6251H9.375V16.8751H3.90625C3.475 16.8751 3.125 16.5251 3.125 16.0938ZM10.625 10.6251H16.0938C16.525 10.6251 16.875 10.9751 16.875 11.4063V16.0938C16.875 16.5251 16.525 16.8751 16.0938 16.8751H10.625V10.6251Z", fill: "#3E4C5A" }), /* @__PURE__ */ S.createElement("rect", { x: 10.877, y: 5.90918, width: 4.54545, height: 4.54545, rx: 1, transform: "rotate(-45 10.877 5.90918)", fill: "#FFE250" }), /* @__PURE__ */ S.createElement("path", { d: "M3.77344 12.2727C3.77344 11.7204 4.22115 11.2727 4.77344 11.2727H7.77344C8.32572 11.2727 8.77344 11.7204 8.77344 12.2727V15.2727C8.77344 15.825 8.32572 16.2727 7.77344 16.2727H4.77344C4.22115 16.2727 3.77344 15.825 3.77344 15.2727L3.77344 12.2727Z", fill: "#FFE250" })), P6 = "data:image/svg+xml,%3csvg%20width='21'%20height='21'%20viewBox='0%200%2021%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1012_80924)'%3e%3cpath%20d='M9.66663%2015.1202H11.3333V13.4535H9.66663V15.1202ZM10.5%201.78687C5.89996%201.78687%202.16663%205.5202%202.16663%2010.1202C2.16663%2014.7202%205.89996%2018.4535%2010.5%2018.4535C15.1%2018.4535%2018.8333%2014.7202%2018.8333%2010.1202C18.8333%205.5202%2015.1%201.78687%2010.5%201.78687ZM10.5%2016.7869C6.82496%2016.7869%203.83329%2013.7952%203.83329%2010.1202C3.83329%206.4452%206.82496%203.45353%2010.5%203.45353C14.175%203.45353%2017.1666%206.4452%2017.1666%2010.1202C17.1666%2013.7952%2014.175%2016.7869%2010.5%2016.7869ZM10.5%205.1202C8.65829%205.1202%207.16663%206.61187%207.16663%208.45353H8.83329C8.83329%207.53687%209.58329%206.78687%2010.5%206.78687C11.4166%206.78687%2012.1666%207.53687%2012.1666%208.45353C12.1666%2010.1202%209.66663%209.91187%209.66663%2012.6202H11.3333C11.3333%2010.7452%2013.8333%2010.5369%2013.8333%208.45353C13.8333%206.61187%2012.3416%205.1202%2010.5%205.1202Z'%20fill='%234D596C'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1012_80924'%3e%3crect%20width='20'%20height='20'%20fill='white'%20transform='translate(0.5%200.120117)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", B6 = (e) => /* @__PURE__ */ S.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("g", { clipPath: "url(#clip0_1329_1727)" }, /* @__PURE__ */ S.createElement("path", { d: "M15 1.5H3C2.175 1.5 1.5 2.175 1.5 3V16.5L4.5 13.5H15C15.825 13.5 16.5 12.825 16.5 12V3C16.5 2.175 15.825 1.5 15 1.5ZM15 12H4.5L3 13.5V3H15V12ZM5.25 6.75H6.75V8.25H5.25V6.75ZM8.25 6.75H9.75V8.25H8.25V6.75ZM11.25 6.75H12.75V8.25H11.25V6.75Z", fill: "#6F7C90" })), /* @__PURE__ */ S.createElement("defs", null, /* @__PURE__ */ S.createElement("clipPath", { id: "clip0_1329_1727" }, /* @__PURE__ */ S.createElement("rect", { width: 18, height: 18, fill: "white" })))), V6 = (e) => /* @__PURE__ */ S.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("g", { clipPath: "url(#clip0_1329_1720)" }, /* @__PURE__ */ S.createElement("path", { d: "M16.5 6.93L11.1075 6.465L9 1.5L6.8925 6.4725L1.5 6.93L5.595 10.4775L4.365 15.75L9 12.9525L13.635 15.75L12.4125 10.4775L16.5 6.93ZM9 11.55L6.18 13.2525L6.93 10.0425L4.44 7.8825L7.725 7.5975L9 4.575L10.2825 7.605L13.5675 7.89L11.0775 10.05L11.8275 13.26L9 11.55Z", fill: "#6F7C90" })), /* @__PURE__ */ S.createElement("defs", null, /* @__PURE__ */ S.createElement("clipPath", { id: "clip0_1329_1720" }, /* @__PURE__ */ S.createElement("rect", { width: 18, height: 18, fill: "white" })))), G6 = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.3462%208.73757C14.0406%208.43198%2013.5451%208.43198%2013.2395%208.73757C12.9339%209.04316%2012.9339%209.53863%2013.2395%209.84422L14.3462%208.73757ZM15.2392%2010.7372L15.7925%2010.1839L15.2392%2010.7372ZM16.2377%2013.1478L15.4552%2013.1478L16.2377%2013.1478ZM15.2392%2015.5584L14.6859%2015.0051L15.2392%2015.5584ZM10.418%2015.5584L9.86469%2016.1118L10.418%2015.5584ZM9.52499%2013.5588C9.2194%2013.2532%208.72393%2013.2532%208.41834%2013.5588C8.11275%2013.8643%208.11275%2014.3598%208.41834%2014.6654L9.52499%2013.5588ZM5.52477%2011.7731C5.83036%2012.0787%206.32583%2012.0787%206.63142%2011.7731C6.93701%2011.4675%206.93701%2010.972%206.63142%2010.6665L5.52477%2011.7731ZM9.45292%204.95224L10.0062%204.39892L9.45292%204.95224ZM10.346%206.95192C10.6515%207.25752%2011.147%207.25752%2011.4526%206.95192C11.7582%206.64633%2011.7582%206.15087%2011.4526%205.84527L10.346%206.95192ZM13.2395%209.84422L14.6859%2011.2906L15.7925%2010.1839L14.3462%208.73757L13.2395%209.84422ZM14.6859%2011.2906C15.1785%2011.7832%2015.4552%2012.4512%2015.4552%2013.1478L17.0202%2013.1478C17.0202%2012.0362%2016.5786%2010.97%2015.7925%2010.1839L14.6859%2011.2906ZM15.4552%2013.1478C15.4552%2013.8445%2015.1785%2014.5125%2014.6859%2015.0051L15.7925%2016.1118C16.5786%2015.3257%2017.0202%2014.2595%2017.0202%2013.1478L15.4552%2013.1478ZM14.6859%2015.0051C13.6601%2016.0308%2011.9971%2016.0308%2010.9713%2015.0051L9.86469%2016.1118C11.5016%2017.7487%2014.1556%2017.7487%2015.7925%2016.1118L14.6859%2015.0051ZM10.9713%2015.0051L9.52499%2013.5588L8.41834%2014.6654L9.86469%2016.1118L10.9713%2015.0051ZM6.63142%2010.6665L5.18507%209.2201L4.07842%2010.3268L5.52477%2011.7731L6.63142%2010.6665ZM5.18507%209.2201C4.69249%208.72752%204.41576%208.05944%204.41576%207.36283H2.85072C2.85072%208.47452%203.29234%209.54067%204.07842%2010.3268L5.18507%209.2201ZM4.41576%207.36283C4.41576%206.66622%204.69249%205.99815%205.18507%205.50557L4.07842%204.39892C3.29234%205.185%202.85072%206.25115%202.85072%207.36283H4.41576ZM5.18507%205.50557C6.21081%204.47983%207.87386%204.47983%208.8996%205.50557L10.0062%204.39892C8.36932%202.76199%205.71534%202.76199%204.07842%204.39892L5.18507%205.50557ZM8.8996%205.50557L10.346%206.95192L11.4526%205.84527L10.0062%204.39892L8.8996%205.50557Z'%20fill='%234D596C'/%3e%3crect%20x='6.36328'%20y='7.91895'%20width='1.66667'%20height='8.33333'%20rx='0.833333'%20transform='rotate(-45%206.36328%207.91895)'%20fill='%234D596C'/%3e%3c/svg%3e", _p = () => {
|
|
7331
7331
|
const { connectorId: e, store: t } = je(Qe), [n, r] = V(!e), [o, i] = V("");
|
|
7332
|
-
return
|
|
7332
|
+
return oe(() => {
|
|
7333
7333
|
if (t && e) {
|
|
7334
7334
|
const s = t.subscribe((a) => {
|
|
7335
7335
|
i(a || ""), r(!0);
|
|
@@ -7338,7 +7338,7 @@ const p6 = (e) => /* @__PURE__ */ S.createElement("svg", { width: 20, height: 21
|
|
|
7338
7338
|
} else
|
|
7339
7339
|
r(!0);
|
|
7340
7340
|
}, [t, e]), { connectorId: e, connectorName: o, isReady: n };
|
|
7341
|
-
}, H6 = ({ options: e, anchor: t, open: n, onClose: r }) => /* @__PURE__ */ l.jsx(Jg, { id: "help-dropdown", open: n, onClose: r, anchorEl: t, children: e.map((o) => /* @__PURE__ */ l.jsxs(
|
|
7341
|
+
}, H6 = ({ options: e, anchor: t, open: n, onClose: r }) => /* @__PURE__ */ l.jsx(Jg, { id: "help-dropdown", open: n, onClose: r, anchorEl: t, children: e.map((o) => /* @__PURE__ */ l.jsxs(Io, { onClick: o.onClick, children: [
|
|
7342
7342
|
/* @__PURE__ */ l.jsx(qg, { children: o.icon }),
|
|
7343
7343
|
o.label
|
|
7344
7344
|
] }, o.id)) }), Ap = "connector-header-stuck", W6 = A(N)`
|
|
@@ -8191,7 +8191,7 @@ var Y9 = typeof Symbol == "function" && Symbol.observable || "@@observable", $d
|
|
|
8191
8191
|
INIT: `@@redux/INIT${/* @__PURE__ */ lc()}`,
|
|
8192
8192
|
REPLACE: `@@redux/REPLACE${/* @__PURE__ */ lc()}`,
|
|
8193
8193
|
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${lc()}`
|
|
8194
|
-
},
|
|
8194
|
+
}, Qr = J9;
|
|
8195
8195
|
function Ji(e) {
|
|
8196
8196
|
if (typeof e != "object" || e === null)
|
|
8197
8197
|
return !1;
|
|
@@ -8304,7 +8304,7 @@ function Np(e, t, n) {
|
|
|
8304
8304
|
if (typeof f != "function")
|
|
8305
8305
|
throw new Error(process.env.NODE_ENV === "production" ? Ct(10) : `Expected the nextReducer to be a function. Instead, received: '${sr(f)}`);
|
|
8306
8306
|
r = f, b({
|
|
8307
|
-
type:
|
|
8307
|
+
type: Qr.REPLACE
|
|
8308
8308
|
});
|
|
8309
8309
|
}
|
|
8310
8310
|
function m() {
|
|
@@ -8335,7 +8335,7 @@ function Np(e, t, n) {
|
|
|
8335
8335
|
};
|
|
8336
8336
|
}
|
|
8337
8337
|
return b({
|
|
8338
|
-
type:
|
|
8338
|
+
type: Qr.INIT
|
|
8339
8339
|
}), {
|
|
8340
8340
|
dispatch: b,
|
|
8341
8341
|
subscribe: p,
|
|
@@ -8352,7 +8352,7 @@ function Xd(e) {
|
|
|
8352
8352
|
}
|
|
8353
8353
|
}
|
|
8354
8354
|
function tx(e, t, n, r) {
|
|
8355
|
-
const o = Object.keys(t), i = n && n.type ===
|
|
8355
|
+
const o = Object.keys(t), i = n && n.type === Qr.INIT ? "preloadedState argument passed to createStore" : "previous state received by the reducer";
|
|
8356
8356
|
if (o.length === 0)
|
|
8357
8357
|
return "Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";
|
|
8358
8358
|
if (!Ji(e))
|
|
@@ -8360,20 +8360,20 @@ function tx(e, t, n, r) {
|
|
|
8360
8360
|
const s = Object.keys(e).filter((a) => !t.hasOwnProperty(a) && !r[a]);
|
|
8361
8361
|
if (s.forEach((a) => {
|
|
8362
8362
|
r[a] = !0;
|
|
8363
|
-
}), !(n && n.type ===
|
|
8363
|
+
}), !(n && n.type === Qr.REPLACE) && s.length > 0)
|
|
8364
8364
|
return `Unexpected ${s.length > 1 ? "keys" : "key"} "${s.join('", "')}" found in ${i}. Expected to find one of the known reducer keys instead: "${o.join('", "')}". Unexpected keys will be ignored.`;
|
|
8365
8365
|
}
|
|
8366
8366
|
function nx(e) {
|
|
8367
8367
|
Object.keys(e).forEach((t) => {
|
|
8368
8368
|
const n = e[t];
|
|
8369
8369
|
if (typeof n(void 0, {
|
|
8370
|
-
type:
|
|
8370
|
+
type: Qr.INIT
|
|
8371
8371
|
}) > "u")
|
|
8372
8372
|
throw new Error(process.env.NODE_ENV === "production" ? Ct(12) : `The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);
|
|
8373
8373
|
if (typeof n(void 0, {
|
|
8374
|
-
type:
|
|
8374
|
+
type: Qr.PROBE_UNKNOWN_ACTION()
|
|
8375
8375
|
}) > "u")
|
|
8376
|
-
throw new Error(process.env.NODE_ENV === "production" ? Ct(13) : `The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${
|
|
8376
|
+
throw new Error(process.env.NODE_ENV === "production" ? Ct(13) : `The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Qr.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`);
|
|
8377
8377
|
});
|
|
8378
8378
|
}
|
|
8379
8379
|
function jp(e) {
|
|
@@ -8474,7 +8474,7 @@ function Bt(e, ...t) {
|
|
|
8474
8474
|
);
|
|
8475
8475
|
}
|
|
8476
8476
|
var Yo = Object.getPrototypeOf;
|
|
8477
|
-
function
|
|
8477
|
+
function so(e) {
|
|
8478
8478
|
return !!e && !!e[Kt];
|
|
8479
8479
|
}
|
|
8480
8480
|
function Yn(e) {
|
|
@@ -8551,7 +8551,7 @@ function El(e, t) {
|
|
|
8551
8551
|
}
|
|
8552
8552
|
}
|
|
8553
8553
|
function Iu(e, t = !1) {
|
|
8554
|
-
return Oa(e) ||
|
|
8554
|
+
return Oa(e) || so(e) || !Yn(e) || (Ta(e) > 1 && (e.set = e.add = e.clear = e.delete = ax), Object.freeze(e), t && Object.entries(e).forEach(([n, r]) => Iu(r, !0))), e;
|
|
8555
8555
|
}
|
|
8556
8556
|
function ax() {
|
|
8557
8557
|
Bt(2);
|
|
@@ -8560,7 +8560,7 @@ function Oa(e) {
|
|
|
8560
8560
|
return Object.isFrozen(e);
|
|
8561
8561
|
}
|
|
8562
8562
|
var cx = {};
|
|
8563
|
-
function
|
|
8563
|
+
function ao(e) {
|
|
8564
8564
|
const t = cx[e];
|
|
8565
8565
|
return t || Bt(0, e), t;
|
|
8566
8566
|
}
|
|
@@ -8580,7 +8580,7 @@ function lx(e, t) {
|
|
|
8580
8580
|
};
|
|
8581
8581
|
}
|
|
8582
8582
|
function Jd(e, t) {
|
|
8583
|
-
t && (
|
|
8583
|
+
t && (ao("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
|
|
8584
8584
|
}
|
|
8585
8585
|
function wl(e) {
|
|
8586
8586
|
Il(e), e.drafts_.forEach(ux), e.drafts_ = null;
|
|
@@ -8598,7 +8598,7 @@ function ux(e) {
|
|
|
8598
8598
|
function Kd(e, t) {
|
|
8599
8599
|
t.unfinalizedDrafts_ = t.drafts_.length;
|
|
8600
8600
|
const n = t.drafts_[0];
|
|
8601
|
-
return e !== void 0 && e !== n ? (n[Kt].modified_ && (wl(t), Bt(4)), Yn(e) && (e = qs(t, e), t.parent_ || Ks(t, e)), t.patches_ &&
|
|
8601
|
+
return e !== void 0 && e !== n ? (n[Kt].modified_ && (wl(t), Bt(4)), Yn(e) && (e = qs(t, e), t.parent_ || Ks(t, e)), t.patches_ && ao("Patches").generateReplacementPatches_(
|
|
8602
8602
|
n[Kt].base_,
|
|
8603
8603
|
e,
|
|
8604
8604
|
t.patches_,
|
|
@@ -8625,7 +8625,7 @@ function qs(e, t, n) {
|
|
|
8625
8625
|
r.type_ === 3 && (i = new Set(o), o.clear(), s = !0), Js(
|
|
8626
8626
|
i,
|
|
8627
8627
|
(a, c) => Qd(e, r, o, a, c, n, s)
|
|
8628
|
-
), Ks(e, o, !1), n && e.patches_ &&
|
|
8628
|
+
), Ks(e, o, !1), n && e.patches_ && ao("Patches").generatePatches_(
|
|
8629
8629
|
r,
|
|
8630
8630
|
n,
|
|
8631
8631
|
e.patches_,
|
|
@@ -8635,10 +8635,10 @@ function qs(e, t, n) {
|
|
|
8635
8635
|
return r.copy_;
|
|
8636
8636
|
}
|
|
8637
8637
|
function Qd(e, t, n, r, o, i, s) {
|
|
8638
|
-
if (process.env.NODE_ENV !== "production" && o === n && Bt(5),
|
|
8638
|
+
if (process.env.NODE_ENV !== "production" && o === n && Bt(5), so(o)) {
|
|
8639
8639
|
const a = i && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
|
|
8640
8640
|
!Cl(t.assigned_, r) ? i.concat(r) : void 0, c = qs(e, o, a);
|
|
8641
|
-
if (Vp(n, r, c),
|
|
8641
|
+
if (Vp(n, r, c), so(c))
|
|
8642
8642
|
e.canAutoFreeze_ = !1;
|
|
8643
8643
|
else
|
|
8644
8644
|
return;
|
|
@@ -8806,7 +8806,7 @@ var px = class {
|
|
|
8806
8806
|
} else if (!t || typeof t != "object") {
|
|
8807
8807
|
if (o = n(t), o === void 0 && (o = t), o === Pp && (o = void 0), this.autoFreeze_ && Iu(o, !0), r) {
|
|
8808
8808
|
const i = [], s = [];
|
|
8809
|
-
|
|
8809
|
+
ao("Patches").generateReplacementPatches_(t, o, i, s), r(i, s);
|
|
8810
8810
|
}
|
|
8811
8811
|
return o;
|
|
8812
8812
|
} else
|
|
@@ -8821,7 +8821,7 @@ var px = class {
|
|
|
8821
8821
|
}, typeof (e == null ? void 0 : e.autoFreeze) == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof (e == null ? void 0 : e.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
|
|
8822
8822
|
}
|
|
8823
8823
|
createDraft(e) {
|
|
8824
|
-
Yn(e) || Bt(8),
|
|
8824
|
+
Yn(e) || Bt(8), so(e) && (e = hx(e));
|
|
8825
8825
|
const t = qd(this), n = Al(e, void 0);
|
|
8826
8826
|
return n[Kt].isManual_ = !0, Il(t), n;
|
|
8827
8827
|
}
|
|
@@ -8857,19 +8857,19 @@ var px = class {
|
|
|
8857
8857
|
}
|
|
8858
8858
|
}
|
|
8859
8859
|
n > -1 && (t = t.slice(n + 1));
|
|
8860
|
-
const r =
|
|
8861
|
-
return
|
|
8860
|
+
const r = ao("Patches").applyPatches_;
|
|
8861
|
+
return so(e) ? r(e, t) : this.produce(
|
|
8862
8862
|
e,
|
|
8863
8863
|
(o) => r(o, t)
|
|
8864
8864
|
);
|
|
8865
8865
|
}
|
|
8866
8866
|
};
|
|
8867
8867
|
function Al(e, t) {
|
|
8868
|
-
const n = La(e) ?
|
|
8868
|
+
const n = La(e) ? ao("MapSet").proxyMap_(e, t) : Ra(e) ? ao("MapSet").proxySet_(e, t) : dx(e, t);
|
|
8869
8869
|
return (t ? t.scope_ : Gp()).drafts_.push(n), n;
|
|
8870
8870
|
}
|
|
8871
8871
|
function hx(e) {
|
|
8872
|
-
return
|
|
8872
|
+
return so(e) || Bt(10, e), Wp(e);
|
|
8873
8873
|
}
|
|
8874
8874
|
function Wp(e) {
|
|
8875
8875
|
if (!Yn(e) || Oa(e))
|
|
@@ -9325,7 +9325,7 @@ function Fx(e, t) {
|
|
|
9325
9325
|
}) => d)];
|
|
9326
9326
|
return u.filter((d) => !!d).length === 0 && (u = [o]), u.reduce((d, p) => {
|
|
9327
9327
|
if (p)
|
|
9328
|
-
if (
|
|
9328
|
+
if (so(d)) {
|
|
9329
9329
|
const v = p(d, c);
|
|
9330
9330
|
return v === void 0 ? d : v;
|
|
9331
9331
|
} else {
|
|
@@ -9738,7 +9738,7 @@ function br() {
|
|
|
9738
9738
|
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = rh(e)) && (r && (r += " "), r += t);
|
|
9739
9739
|
return r;
|
|
9740
9740
|
}
|
|
9741
|
-
const ki = (e) => typeof e == "number" && !isNaN(e),
|
|
9741
|
+
const ki = (e) => typeof e == "number" && !isNaN(e), eo = (e) => typeof e == "string", Xt = (e) => typeof e == "function", Is = (e) => eo(e) || Xt(e) ? e : null, Tl = (e) => Ao(e) || eo(e) || Xt(e) || ki(e);
|
|
9742
9742
|
function ev(e, t, n) {
|
|
9743
9743
|
n === void 0 && (n = 300);
|
|
9744
9744
|
const { scrollHeight: r, style: o } = e;
|
|
@@ -9753,12 +9753,12 @@ function ka(e) {
|
|
|
9753
9753
|
return function(s) {
|
|
9754
9754
|
let { children: a, position: c, preventExitTransition: u, done: d, nodeRef: p, isIn: b, playToast: v } = s;
|
|
9755
9755
|
const m = r ? `${t}--${c}` : t, h = r ? `${n}--${c}` : n, f = ge(0);
|
|
9756
|
-
return
|
|
9756
|
+
return uo(() => {
|
|
9757
9757
|
const g = p.current, x = m.split(" "), y = (E) => {
|
|
9758
9758
|
E.target === p.current && (v(), g.removeEventListener("animationend", y), g.removeEventListener("animationcancel", y), f.current === 0 && E.type !== "animationcancel" && g.classList.remove(...x));
|
|
9759
9759
|
};
|
|
9760
9760
|
g.classList.add(...x), g.addEventListener("animationend", y), g.addEventListener("animationcancel", y);
|
|
9761
|
-
}, []),
|
|
9761
|
+
}, []), oe(() => {
|
|
9762
9762
|
const g = p.current, x = () => {
|
|
9763
9763
|
g.removeEventListener("animationend", x), o ? ev(g, d, i) : d();
|
|
9764
9764
|
};
|
|
@@ -9802,7 +9802,7 @@ function nv(e) {
|
|
|
9802
9802
|
f = I == null ? [] : f.filter((T) => T !== I), C();
|
|
9803
9803
|
}, _ = (I) => {
|
|
9804
9804
|
const { toastId: T, onOpen: D, updateId: F, children: O } = I.props, j = F == null;
|
|
9805
|
-
I.staleId && y.delete(I.staleId), y.set(T, I), f = [...f, I.props.toastId].filter((G) => G !== I.staleId), C(), b(r0(I, j ? "added" : "updated")), j && Xt(D) && D(
|
|
9805
|
+
I.staleId && y.delete(I.staleId), y.set(T, I), f = [...f, I.props.toastId].filter((G) => G !== I.staleId), C(), b(r0(I, j ? "added" : "updated")), j && Xt(D) && D(Ao(O) && O.props);
|
|
9806
9806
|
};
|
|
9807
9807
|
return { id: d, props: x, observe: (I) => (E.add(I), () => E.delete(I)), toggle: (I, T) => {
|
|
9808
9808
|
y.forEach((D) => {
|
|
@@ -9825,16 +9825,16 @@ function nv(e) {
|
|
|
9825
9825
|
return k != null;
|
|
9826
9826
|
})), toastId: D, updateId: F, data: O, closeToast: H, isIn: !1, className: Is(T.className || x.toastClassName), bodyClassName: Is(T.bodyClassName || x.bodyClassName), progressClassName: Is(T.progressClassName || x.progressClassName), autoClose: !T.isLoading && (U = T.autoClose, Q = x.autoClose, U === !1 || ki(U) && U > 0 ? U : Q), deleteToast() {
|
|
9827
9827
|
const W = y.get(D), { onClose: q, children: k } = W.props;
|
|
9828
|
-
Xt(q) && q(
|
|
9828
|
+
Xt(q) && q(Ao(k) && k.props), b(r0(W, "removed")), y.delete(D), m--, m < 0 && (m = 0), h.length > 0 ? _(h.shift()) : C();
|
|
9829
9829
|
} };
|
|
9830
9830
|
var U, Q;
|
|
9831
9831
|
Z.closeButton = x.closeButton, T.closeButton === !1 || Tl(T.closeButton) ? Z.closeButton = T.closeButton : T.closeButton === !0 && (Z.closeButton = !Tl(x.closeButton) || x.closeButton);
|
|
9832
9832
|
let ee = I;
|
|
9833
|
-
|
|
9834
|
-
const
|
|
9835
|
-
x.limit && x.limit > 0 && m > x.limit && Y ? h.push(
|
|
9836
|
-
_(
|
|
9837
|
-
}, G) : _(
|
|
9833
|
+
Ao(I) && !eo(I.type) ? ee = Dc(I, { closeToast: H, toastProps: Z, data: O }) : Xt(I) && (ee = I({ closeToast: H, toastProps: Z, data: O }));
|
|
9834
|
+
const ie = { content: ee, props: Z, staleId: j };
|
|
9835
|
+
x.limit && x.limit > 0 && m > x.limit && Y ? h.push(ie) : ki(G) ? setTimeout(() => {
|
|
9836
|
+
_(ie);
|
|
9837
|
+
}, G) : _(ie);
|
|
9838
9838
|
}, setProps(I) {
|
|
9839
9839
|
x = I;
|
|
9840
9840
|
}, setToggle: (I, T) => {
|
|
@@ -9886,7 +9886,7 @@ function rv(e) {
|
|
|
9886
9886
|
y.style.transition = "transform 0.2s, opacity 0.2s", y.style.removeProperty("transform"), y.style.removeProperty("opacity");
|
|
9887
9887
|
}
|
|
9888
9888
|
}
|
|
9889
|
-
(v = Lt.get((b = { id: e.toastId, containerId: e.containerId, fn: n }).containerId || 1)) == null || v.setToggle(b.id, b.fn),
|
|
9889
|
+
(v = Lt.get((b = { id: e.toastId, containerId: e.containerId, fn: n }).containerId || 1)) == null || v.setToggle(b.id, b.fn), oe(() => {
|
|
9890
9890
|
if (e.pauseOnFocusLoss) return document.hasFocus() || h(), window.addEventListener("focus", m), window.addEventListener("blur", h), () => {
|
|
9891
9891
|
window.removeEventListener("focus", m), window.removeEventListener("blur", h);
|
|
9892
9892
|
};
|
|
@@ -9917,7 +9917,7 @@ function ov(e) {
|
|
|
9917
9917
|
let iv = 1;
|
|
9918
9918
|
const ah = () => "" + iv++;
|
|
9919
9919
|
function sv(e) {
|
|
9920
|
-
return e && (
|
|
9920
|
+
return e && (eo(e.toastId) || ki(e.toastId)) ? e.toastId : ah();
|
|
9921
9921
|
}
|
|
9922
9922
|
function Ci(e, t) {
|
|
9923
9923
|
return sh(e, t), t.toastId;
|
|
@@ -9933,10 +9933,10 @@ function $e(e, t) {
|
|
|
9933
9933
|
}
|
|
9934
9934
|
$e.loading = (e, t) => Ci(e, Qs("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...t })), $e.promise = function(e, t, n) {
|
|
9935
9935
|
let r, { pending: o, error: i, success: s } = t;
|
|
9936
|
-
o && (r =
|
|
9936
|
+
o && (r = eo(o) ? $e.loading(o, n) : $e.loading(o.render, { ...n, ...o }));
|
|
9937
9937
|
const a = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, c = (d, p, b) => {
|
|
9938
9938
|
if (p == null) return void $e.dismiss(r);
|
|
9939
|
-
const v = { type: d, ...a, ...n, data: b }, m =
|
|
9939
|
+
const v = { type: d, ...a, ...n, data: b }, m = eo(p) ? { render: p } : p;
|
|
9940
9940
|
return r ? $e.update(r, { ...v, ...m }) : $e(m.render, { ...v, ...m }), b;
|
|
9941
9941
|
}, u = Xt(e) ? e() : e;
|
|
9942
9942
|
return u.then((d) => c("success", s, d)).catch((d) => c("error", i, d)), u;
|
|
@@ -9944,7 +9944,7 @@ $e.loading = (e, t) => Ci(e, Qs("default", { isLoading: !0, autoClose: !1, close
|
|
|
9944
9944
|
(function(t) {
|
|
9945
9945
|
var n;
|
|
9946
9946
|
if (oh()) {
|
|
9947
|
-
if (t == null ||
|
|
9947
|
+
if (t == null || eo(n = t) || ki(n)) Lt.forEach((r) => {
|
|
9948
9948
|
r.removeToast(t);
|
|
9949
9949
|
});
|
|
9950
9950
|
else if (t && ("containerId" in t || "id" in t)) {
|
|
@@ -9979,7 +9979,7 @@ $e.loading = (e, t) => Ci(e, Qs("default", { isLoading: !0, autoClose: !1, close
|
|
|
9979
9979
|
Ll.delete(e);
|
|
9980
9980
|
};
|
|
9981
9981
|
}, $e.play = (e) => o0(!0, e), $e.pause = (e) => o0(!1, e);
|
|
9982
|
-
const av = typeof window < "u" ?
|
|
9982
|
+
const av = typeof window < "u" ? uo : oe, as = (e) => {
|
|
9983
9983
|
let { theme: t, type: n, isLoading: r, ...o } = e;
|
|
9984
9984
|
return Me.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: t === "colored" ? "currentColor" : `var(--toastify-icon-color-${n})`, ...o });
|
|
9985
9985
|
}, pc = { info: function(e) {
|
|
@@ -9993,14 +9993,14 @@ const av = typeof window < "u" ? lo : ie, as = (e) => {
|
|
|
9993
9993
|
}, spinner: function() {
|
|
9994
9994
|
return Me.createElement("div", { className: "Toastify__spinner" });
|
|
9995
9995
|
} }, cv = (e) => {
|
|
9996
|
-
const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: o, playToast: i } = rv(e), { closeButton: s, children: a, autoClose: c, onClick: u, type: d, hideProgressBar: p, closeToast: b, transition: v, position: m, className: h, style: f, bodyClassName: g, bodyStyle: x, progressClassName: y, progressStyle: E, updateId: C, role: w, progress: _, rtl: I, toastId: T, deleteToast: D, isIn: F, isLoading: O, closeOnClick: j, theme: G } = e, H = br("Toastify__toast", `Toastify__toast-theme--${G}`, `Toastify__toast--${d}`, { "Toastify__toast--rtl": I }, { "Toastify__toast--close-on-click": j }), Y = Xt(h) ? h({ rtl: I, position: m, type: d, defaultClassName: H }) : br(H, h), Z = function(
|
|
9997
|
-
let { theme: W, type: q, isLoading: k, icon: J } =
|
|
9996
|
+
const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: o, playToast: i } = rv(e), { closeButton: s, children: a, autoClose: c, onClick: u, type: d, hideProgressBar: p, closeToast: b, transition: v, position: m, className: h, style: f, bodyClassName: g, bodyStyle: x, progressClassName: y, progressStyle: E, updateId: C, role: w, progress: _, rtl: I, toastId: T, deleteToast: D, isIn: F, isLoading: O, closeOnClick: j, theme: G } = e, H = br("Toastify__toast", `Toastify__toast-theme--${G}`, `Toastify__toast--${d}`, { "Toastify__toast--rtl": I }, { "Toastify__toast--close-on-click": j }), Y = Xt(h) ? h({ rtl: I, position: m, type: d, defaultClassName: H }) : br(H, h), Z = function(ie) {
|
|
9997
|
+
let { theme: W, type: q, isLoading: k, icon: J } = ie, re = null;
|
|
9998
9998
|
const ae = { theme: W, type: q };
|
|
9999
|
-
return J === !1 || (Xt(J) ? re = J({ ...ae, isLoading: k }) :
|
|
9999
|
+
return J === !1 || (Xt(J) ? re = J({ ...ae, isLoading: k }) : Ao(J) ? re = Dc(J, ae) : k ? re = pc.spinner() : ((he) => he in pc)(q) && (re = pc[q](ae))), re;
|
|
10000
10000
|
}(e), U = !!_ || !c, Q = { closeToast: b, type: d, theme: G };
|
|
10001
10001
|
let ee = null;
|
|
10002
|
-
return s === !1 || (ee = Xt(s) ? s(Q) :
|
|
10003
|
-
let { closeToast: W, theme: q, ariaLabel: k = "close" } =
|
|
10002
|
+
return s === !1 || (ee = Xt(s) ? s(Q) : Ao(s) ? Dc(s, Q) : function(ie) {
|
|
10003
|
+
let { closeToast: W, theme: q, ariaLabel: k = "close" } = ie;
|
|
10004
10004
|
return Me.createElement("button", { className: `Toastify__close-button Toastify__close-button--${q}`, type: "button", onClick: (J) => {
|
|
10005
10005
|
J.stopPropagation(), W(J);
|
|
10006
10006
|
}, "aria-label": k }, Me.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, Me.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" })));
|
|
@@ -10963,7 +10963,7 @@ const ch = () => Rl.forEach((e) => e()), yv = () => {
|
|
|
10963
10963
|
Ei || (Ei = !0, ch());
|
|
10964
10964
|
}, ja = ({ zIndex: e }) => {
|
|
10965
10965
|
const t = $g(), [n, r] = V(!1), [o, i] = V(Ei);
|
|
10966
|
-
return
|
|
10966
|
+
return oe(() => {
|
|
10967
10967
|
const s = () => {
|
|
10968
10968
|
Ei && ui === null && (ui = t), r(ui === t), i(Ei);
|
|
10969
10969
|
};
|
|
@@ -11163,7 +11163,7 @@ const Pv = {
|
|
|
11163
11163
|
const [i, s] = V(
|
|
11164
11164
|
() => l0(n, t)
|
|
11165
11165
|
);
|
|
11166
|
-
|
|
11166
|
+
oe(() => {
|
|
11167
11167
|
const u = setTimeout(() => {
|
|
11168
11168
|
s(l0(n, t));
|
|
11169
11169
|
}, o);
|
|
@@ -11185,25 +11185,25 @@ const Pv = {
|
|
|
11185
11185
|
t.current && clearTimeout(t.current), t.current = setTimeout(n, e);
|
|
11186
11186
|
};
|
|
11187
11187
|
};
|
|
11188
|
-
let
|
|
11188
|
+
let Co = {};
|
|
11189
11189
|
const zv = {
|
|
11190
11190
|
get length() {
|
|
11191
|
-
return Object.keys(
|
|
11191
|
+
return Object.keys(Co).length;
|
|
11192
11192
|
},
|
|
11193
11193
|
getItem(e) {
|
|
11194
|
-
return
|
|
11194
|
+
return Co[e] ?? null;
|
|
11195
11195
|
},
|
|
11196
11196
|
setItem(e, t) {
|
|
11197
|
-
|
|
11197
|
+
Co[e] = t;
|
|
11198
11198
|
},
|
|
11199
11199
|
removeItem(e) {
|
|
11200
|
-
delete
|
|
11200
|
+
delete Co[e];
|
|
11201
11201
|
},
|
|
11202
11202
|
clear() {
|
|
11203
|
-
|
|
11203
|
+
Co = {};
|
|
11204
11204
|
},
|
|
11205
11205
|
key(e) {
|
|
11206
|
-
return Object.keys(
|
|
11206
|
+
return Object.keys(Co)[e];
|
|
11207
11207
|
}
|
|
11208
11208
|
}, $v = {
|
|
11209
11209
|
LOCAL: window == null ? void 0 : window.localStorage,
|
|
@@ -11363,29 +11363,29 @@ const zv = {
|
|
|
11363
11363
|
}
|
|
11364
11364
|
return { fields_configured_count: t, has_system_variable: n };
|
|
11365
11365
|
};
|
|
11366
|
-
function
|
|
11366
|
+
function co(e) {
|
|
11367
11367
|
"@babel/helpers - typeof";
|
|
11368
|
-
return
|
|
11368
|
+
return co = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
11369
11369
|
return typeof t;
|
|
11370
11370
|
} : function(t) {
|
|
11371
11371
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
11372
|
-
},
|
|
11372
|
+
}, co(e);
|
|
11373
11373
|
}
|
|
11374
11374
|
function iy(e, t) {
|
|
11375
|
-
if (
|
|
11375
|
+
if (co(e) != "object" || !e) return e;
|
|
11376
11376
|
var n = e[Symbol.toPrimitive];
|
|
11377
11377
|
if (n !== void 0) {
|
|
11378
11378
|
var r = n.call(e, t || "default");
|
|
11379
|
-
if (
|
|
11379
|
+
if (co(r) != "object") return r;
|
|
11380
11380
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
11381
11381
|
}
|
|
11382
11382
|
return (t === "string" ? String : Number)(e);
|
|
11383
11383
|
}
|
|
11384
11384
|
function Ch(e) {
|
|
11385
11385
|
var t = iy(e, "string");
|
|
11386
|
-
return
|
|
11386
|
+
return co(t) == "symbol" ? t : t + "";
|
|
11387
11387
|
}
|
|
11388
|
-
function
|
|
11388
|
+
function _o(e, t, n) {
|
|
11389
11389
|
return (t = Ch(t)) in e ? Object.defineProperty(e, t, {
|
|
11390
11390
|
value: n,
|
|
11391
11391
|
enumerable: !0,
|
|
@@ -11407,7 +11407,7 @@ function pe(e) {
|
|
|
11407
11407
|
for (var t = 1; t < arguments.length; t++) {
|
|
11408
11408
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
11409
11409
|
t % 2 ? u0(Object(n), !0).forEach(function(r) {
|
|
11410
|
-
|
|
11410
|
+
_o(e, r, n[r]);
|
|
11411
11411
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : u0(Object(n)).forEach(function(r) {
|
|
11412
11412
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
11413
11413
|
});
|
|
@@ -11557,7 +11557,7 @@ function hy(e) {
|
|
|
11557
11557
|
return e;
|
|
11558
11558
|
}
|
|
11559
11559
|
function gy(e, t) {
|
|
11560
|
-
if (t && (
|
|
11560
|
+
if (t && (co(t) == "object" || typeof t == "function")) return t;
|
|
11561
11561
|
if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
11562
11562
|
return hy(e);
|
|
11563
11563
|
}
|
|
@@ -11582,7 +11582,7 @@ function vy() {
|
|
|
11582
11582
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
11583
11583
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
11584
11584
|
}
|
|
11585
|
-
function
|
|
11585
|
+
function To(e) {
|
|
11586
11586
|
return by(e) || xy(e) || Eh(e) || vy();
|
|
11587
11587
|
}
|
|
11588
11588
|
var yy = !1;
|
|
@@ -11869,7 +11869,7 @@ function Py(e, t, n) {
|
|
|
11869
11869
|
function p0(e, t, n, r) {
|
|
11870
11870
|
return Ba(e, t, n, Lu, ji(e, 0, r), ji(e, r + 1, -1), r);
|
|
11871
11871
|
}
|
|
11872
|
-
function
|
|
11872
|
+
function Lo(e, t) {
|
|
11873
11873
|
for (var n = "", r = Ru(e), o = 0; o < r; o++)
|
|
11874
11874
|
n += t(e[o], o, e, t) || "";
|
|
11875
11875
|
return n;
|
|
@@ -11884,11 +11884,11 @@ function By(e, t, n, r) {
|
|
|
11884
11884
|
case Ih:
|
|
11885
11885
|
return "";
|
|
11886
11886
|
case _h:
|
|
11887
|
-
return e.return = e.value + "{" +
|
|
11887
|
+
return e.return = e.value + "{" + Lo(e.children, r) + "}";
|
|
11888
11888
|
case Tu:
|
|
11889
11889
|
e.value = e.props.join(",");
|
|
11890
11890
|
}
|
|
11891
|
-
return kn(n =
|
|
11891
|
+
return kn(n = Lo(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
11892
11892
|
}
|
|
11893
11893
|
function Vy(e) {
|
|
11894
11894
|
var t = Ru(e);
|
|
@@ -12073,7 +12073,7 @@ var Xy = function(t, n, r, o) {
|
|
|
12073
12073
|
t.return = Rh(t.value, t.length);
|
|
12074
12074
|
break;
|
|
12075
12075
|
case _h:
|
|
12076
|
-
return
|
|
12076
|
+
return Lo([di(t, {
|
|
12077
12077
|
value: He(t.value, "@", "@" + Ge)
|
|
12078
12078
|
})], o);
|
|
12079
12079
|
case Tu:
|
|
@@ -12081,11 +12081,11 @@ var Xy = function(t, n, r, o) {
|
|
|
12081
12081
|
switch (Ly(i, /(::plac\w+|:read-\w+)/)) {
|
|
12082
12082
|
case ":read-only":
|
|
12083
12083
|
case ":read-write":
|
|
12084
|
-
return
|
|
12084
|
+
return Lo([di(t, {
|
|
12085
12085
|
props: [He(i, /:(read-\w+)/, ":" + ta + "$1")]
|
|
12086
12086
|
})], o);
|
|
12087
12087
|
case "::placeholder":
|
|
12088
|
-
return
|
|
12088
|
+
return Lo([di(t, {
|
|
12089
12089
|
props: [He(i, /:(plac\w+)/, ":" + Ge + "input-$1")]
|
|
12090
12090
|
}), di(t, {
|
|
12091
12091
|
props: [He(i, /:(plac\w+)/, ":" + ta + "$1")]
|
|
@@ -12121,7 +12121,7 @@ var Xy = function(t, n, r, o) {
|
|
|
12121
12121
|
var d, p = [By, Gy(function(h) {
|
|
12122
12122
|
d.insert(h);
|
|
12123
12123
|
})], b = Vy(u.concat(o, p)), v = function(f) {
|
|
12124
|
-
return
|
|
12124
|
+
return Lo(My(f), b);
|
|
12125
12125
|
};
|
|
12126
12126
|
c = function(f, g, x, y) {
|
|
12127
12127
|
d = x, v(f ? f + "{" + g.styles + "}" : g.styles), y && (m.inserted[g.name] = !0);
|
|
@@ -12274,7 +12274,7 @@ function Ky() {
|
|
|
12274
12274
|
function ee($) {
|
|
12275
12275
|
return E($) === u;
|
|
12276
12276
|
}
|
|
12277
|
-
function
|
|
12277
|
+
function ie($) {
|
|
12278
12278
|
return E($) === a;
|
|
12279
12279
|
}
|
|
12280
12280
|
function W($) {
|
|
@@ -12307,7 +12307,7 @@ function Ky() {
|
|
|
12307
12307
|
function Oe($) {
|
|
12308
12308
|
return E($) === p;
|
|
12309
12309
|
}
|
|
12310
|
-
ze.AsyncMode = C, ze.ConcurrentMode = w, ze.ContextConsumer = _, ze.ContextProvider = I, ze.Element = T, ze.ForwardRef = D, ze.Fragment = F, ze.Lazy = O, ze.Memo = j, ze.Portal = G, ze.Profiler = H, ze.StrictMode = Y, ze.Suspense = Z, ze.isAsyncMode = Q, ze.isConcurrentMode = ee, ze.isContextConsumer =
|
|
12310
|
+
ze.AsyncMode = C, ze.ConcurrentMode = w, ze.ContextConsumer = _, ze.ContextProvider = I, ze.Element = T, ze.ForwardRef = D, ze.Fragment = F, ze.Lazy = O, ze.Memo = j, ze.Portal = G, ze.Profiler = H, ze.StrictMode = Y, ze.Suspense = Z, ze.isAsyncMode = Q, ze.isConcurrentMode = ee, ze.isContextConsumer = ie, ze.isContextProvider = W, ze.isElement = q, ze.isForwardRef = k, ze.isFragment = J, ze.isLazy = re, ze.isMemo = ae, ze.isPortal = he, ze.isProfiler = M, ze.isStrictMode = le, ze.isSuspense = Oe, ze.isValidElementType = y, ze.typeOf = E;
|
|
12311
12311
|
}()), ze;
|
|
12312
12312
|
}
|
|
12313
12313
|
process.env.NODE_ENV === "production" ? jl.exports = qy() : jl.exports = Ky();
|
|
@@ -12867,7 +12867,7 @@ function j8(e, t, n, r) {
|
|
|
12867
12867
|
}), p == null || p(), (g = v) == null || g.disconnect(), v = null, c && cancelAnimationFrame(m);
|
|
12868
12868
|
};
|
|
12869
12869
|
}
|
|
12870
|
-
var Bl =
|
|
12870
|
+
var Bl = uo, M8 = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], ia = function() {
|
|
12871
12871
|
};
|
|
12872
12872
|
function P8(e, t) {
|
|
12873
12873
|
return t ? t[0] === "-" ? e + t : e + "__" + t : e;
|
|
@@ -12886,7 +12886,7 @@ function B8(e, t) {
|
|
|
12886
12886
|
}).join(" ");
|
|
12887
12887
|
}
|
|
12888
12888
|
var sa = function(t) {
|
|
12889
|
-
return Y8(t) ? t.filter(Boolean) :
|
|
12889
|
+
return Y8(t) ? t.filter(Boolean) : co(t) === "object" && t !== null ? [t] : [];
|
|
12890
12890
|
}, Hh = function(t) {
|
|
12891
12891
|
t.className, t.clearValue, t.cx, t.getStyles, t.getClassNames, t.getValue, t.hasValue, t.isMulti, t.isRtl, t.options, t.selectOption, t.selectProps, t.setValue, t.theme;
|
|
12892
12892
|
var n = Cn(t, M8);
|
|
@@ -13079,7 +13079,7 @@ var Zh = function(t) {
|
|
|
13079
13079
|
var r, o = t.placement, i = t.theme, s = i.borderRadius, a = i.spacing, c = i.colors;
|
|
13080
13080
|
return pe((r = {
|
|
13081
13081
|
label: "menu"
|
|
13082
|
-
},
|
|
13082
|
+
}, _o(r, eC(o), "100%"), _o(r, "position", "absolute"), _o(r, "width", "100%"), _o(r, "zIndex", 1), r), n ? {} : {
|
|
13083
13083
|
backgroundColor: c.neutral0,
|
|
13084
13084
|
borderRadius: s,
|
|
13085
13085
|
boxShadow: "0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",
|
|
@@ -13783,9 +13783,9 @@ var g7 = process.env.NODE_ENV === "production" ? {
|
|
|
13783
13783
|
}, [p]), T = fe(function() {
|
|
13784
13784
|
var H = "";
|
|
13785
13785
|
if (n && I.onChange) {
|
|
13786
|
-
var Y = n.option, Z = n.options, U = n.removedValue, Q = n.removedValues, ee = n.value,
|
|
13786
|
+
var Y = n.option, Z = n.options, U = n.removedValue, Q = n.removedValues, ee = n.value, ie = function(he) {
|
|
13787
13787
|
return Array.isArray(he) ? null : he;
|
|
13788
|
-
}, W = U || Y ||
|
|
13788
|
+
}, W = U || Y || ie(ee), q = W ? b(W) : "", k = Z || Q || void 0, J = k ? k.map(b) : [], re = pe({
|
|
13789
13789
|
// multiSelected items are usually items that have already been selected
|
|
13790
13790
|
// or set by the user as a default value so we assume they are not disabled
|
|
13791
13791
|
isDisabled: W && h(W, a),
|
|
@@ -14188,7 +14188,7 @@ function S7(e) {
|
|
|
14188
14188
|
}, [v, b, p]), h = Ae(function(f) {
|
|
14189
14189
|
f && (f.removeEventListener("wheel", p, !1), f.removeEventListener("touchstart", b, !1), f.removeEventListener("touchmove", v, !1));
|
|
14190
14190
|
}, [v, b, p]);
|
|
14191
|
-
return
|
|
14191
|
+
return oe(function() {
|
|
14192
14192
|
if (t) {
|
|
14193
14193
|
var f = u.current;
|
|
14194
14194
|
return m(f), function() {
|
|
@@ -14219,7 +14219,7 @@ function k0() {
|
|
|
14219
14219
|
function D0() {
|
|
14220
14220
|
return "ontouchstart" in window || navigator.maxTouchPoints;
|
|
14221
14221
|
}
|
|
14222
|
-
var N0 = !!(typeof window < "u" && window.document && window.document.createElement), fi = 0,
|
|
14222
|
+
var N0 = !!(typeof window < "u" && window.document && window.document.createElement), fi = 0, Eo = {
|
|
14223
14223
|
capture: !1,
|
|
14224
14224
|
passive: !1
|
|
14225
14225
|
};
|
|
@@ -14237,7 +14237,7 @@ function T7(e) {
|
|
|
14237
14237
|
d && (d[m] = h);
|
|
14238
14238
|
}), d && (d.paddingRight = "".concat(v, "px"));
|
|
14239
14239
|
}
|
|
14240
|
-
u && D0() && (u.addEventListener("touchmove", O0,
|
|
14240
|
+
u && D0() && (u.addEventListener("touchmove", O0, Eo), c && (c.addEventListener("touchstart", k0, Eo), c.addEventListener("touchmove", F0, Eo))), fi += 1;
|
|
14241
14241
|
}
|
|
14242
14242
|
}, [r]), a = Ae(function(c) {
|
|
14243
14243
|
if (N0) {
|
|
@@ -14245,10 +14245,10 @@ function T7(e) {
|
|
|
14245
14245
|
fi = Math.max(fi - 1, 0), r && fi < 1 && L0.forEach(function(p) {
|
|
14246
14246
|
var b = o.current[p];
|
|
14247
14247
|
d && (d[p] = b);
|
|
14248
|
-
}), u && D0() && (u.removeEventListener("touchmove", O0,
|
|
14248
|
+
}), u && D0() && (u.removeEventListener("touchmove", O0, Eo), c && (c.removeEventListener("touchstart", k0, Eo), c.removeEventListener("touchmove", F0, Eo)));
|
|
14249
14249
|
}
|
|
14250
14250
|
}, [r]);
|
|
14251
|
-
return
|
|
14251
|
+
return oe(function() {
|
|
14252
14252
|
if (t) {
|
|
14253
14253
|
var c = i.current;
|
|
14254
14254
|
return s(c), function() {
|
|
@@ -14474,14 +14474,14 @@ function Ts(e, t) {
|
|
|
14474
14474
|
}
|
|
14475
14475
|
function i2(e) {
|
|
14476
14476
|
return e.reduce(function(t, n) {
|
|
14477
|
-
return n.type === "group" ? t.push.apply(t,
|
|
14477
|
+
return n.type === "group" ? t.push.apply(t, To(n.options.map(function(r) {
|
|
14478
14478
|
return r.data;
|
|
14479
14479
|
}))) : t.push(n.data), t;
|
|
14480
14480
|
}, []);
|
|
14481
14481
|
}
|
|
14482
14482
|
function M0(e, t) {
|
|
14483
14483
|
return e.reduce(function(n, r) {
|
|
14484
|
-
return r.type === "group" ? n.push.apply(n,
|
|
14484
|
+
return r.type === "group" ? n.push.apply(n, To(r.options.map(function(o) {
|
|
14485
14485
|
return {
|
|
14486
14486
|
data: o.data,
|
|
14487
14487
|
id: "".concat(t, "-").concat(r.index, "-").concat(o.index)
|
|
@@ -14597,7 +14597,7 @@ var u2 = function(t) {
|
|
|
14597
14597
|
return o.getOptionValue(g) !== f;
|
|
14598
14598
|
}), "deselect-option", c);
|
|
14599
14599
|
} else if (!h)
|
|
14600
|
-
p ? o.setValue([].concat(
|
|
14600
|
+
p ? o.setValue([].concat(To(v), [c]), "select-option", c) : o.setValue(c, "select-option");
|
|
14601
14601
|
else {
|
|
14602
14602
|
o.ariaOnChange(c, {
|
|
14603
14603
|
action: "select-option",
|
|
@@ -15298,7 +15298,7 @@ var u2 = function(t) {
|
|
|
15298
15298
|
menuPlacement: I,
|
|
15299
15299
|
menuPosition: T,
|
|
15300
15300
|
menuShouldScrollIntoView: O
|
|
15301
|
-
},
|
|
15301
|
+
}, ie = /* @__PURE__ */ S.createElement(nC, xe({}, m, ee), function(W) {
|
|
15302
15302
|
var q = W.ref, k = W.placerProps, J = k.placement, re = k.maxHeight;
|
|
15303
15303
|
return /* @__PURE__ */ S.createElement(c, xe({}, m, ee, {
|
|
15304
15304
|
innerRef: q,
|
|
@@ -15334,7 +15334,7 @@ var u2 = function(t) {
|
|
|
15334
15334
|
controlElement: this.controlRef,
|
|
15335
15335
|
menuPlacement: I,
|
|
15336
15336
|
menuPosition: T
|
|
15337
|
-
}),
|
|
15337
|
+
}), ie) : ie;
|
|
15338
15338
|
}
|
|
15339
15339
|
}, {
|
|
15340
15340
|
key: "renderFormField",
|
|
@@ -15697,8 +15697,8 @@ var x2 = /* @__PURE__ */ ((e) => (e.DATE = "DD/MM/YYYY", e))(x2 || {}), uE = ["d
|
|
|
15697
15697
|
function v2(e) {
|
|
15698
15698
|
var t = e.defaultOptions, n = t === void 0 ? !1 : t, r = e.cacheOptions, o = r === void 0 ? !1 : r, i = e.loadOptions;
|
|
15699
15699
|
e.options;
|
|
15700
|
-
var s = e.isLoading, a = s === void 0 ? !1 : s, c = e.onInputChange, u = e.filterOption, d = u === void 0 ? null : u, p = Cn(e, uE), b = p.inputValue, v = ge(void 0), m = ge(!1), h = V(Array.isArray(n) ? n : void 0), f = gt(h, 2), g = f[0], x = f[1], y = V(typeof b < "u" ? b : ""), E = gt(y, 2), C = E[0], w = E[1], _ = V(n === !0), I = gt(_, 2), T = I[0], D = I[1], F = V(void 0), O = gt(F, 2), j = O[0], G = O[1], H = V([]), Y = gt(H, 2), Z = Y[0], U = Y[1], Q = V(!1), ee = gt(Q, 2),
|
|
15701
|
-
o !== Ye && (re({}), et(o)), n !== M && (x(Array.isArray(n) ? n : void 0), le(n)),
|
|
15700
|
+
var s = e.isLoading, a = s === void 0 ? !1 : s, c = e.onInputChange, u = e.filterOption, d = u === void 0 ? null : u, p = Cn(e, uE), b = p.inputValue, v = ge(void 0), m = ge(!1), h = V(Array.isArray(n) ? n : void 0), f = gt(h, 2), g = f[0], x = f[1], y = V(typeof b < "u" ? b : ""), E = gt(y, 2), C = E[0], w = E[1], _ = V(n === !0), I = gt(_, 2), T = I[0], D = I[1], F = V(void 0), O = gt(F, 2), j = O[0], G = O[1], H = V([]), Y = gt(H, 2), Z = Y[0], U = Y[1], Q = V(!1), ee = gt(Q, 2), ie = ee[0], W = ee[1], q = V({}), k = gt(q, 2), J = k[0], re = k[1], ae = V(void 0), he = gt(ae, 2), M = he[0], le = he[1], Oe = V(void 0), $ = gt(Oe, 2), Ye = $[0], et = $[1];
|
|
15701
|
+
o !== Ye && (re({}), et(o)), n !== M && (x(Array.isArray(n) ? n : void 0), le(n)), oe(function() {
|
|
15702
15702
|
return m.current = !0, function() {
|
|
15703
15703
|
m.current = !1;
|
|
15704
15704
|
};
|
|
@@ -15710,7 +15710,7 @@ function v2(e) {
|
|
|
15710
15710
|
return ht();
|
|
15711
15711
|
});
|
|
15712
15712
|
}, [i]);
|
|
15713
|
-
|
|
15713
|
+
oe(function() {
|
|
15714
15714
|
n === !0 && Ne(C, function(xt) {
|
|
15715
15715
|
m.current && (x(xt || []), D(!!v.current));
|
|
15716
15716
|
});
|
|
@@ -15726,10 +15726,10 @@ function v2(e) {
|
|
|
15726
15726
|
else {
|
|
15727
15727
|
var Kn = v.current = {};
|
|
15728
15728
|
w(Ke), D(!0), W(!j), Ne(Ke, function(en) {
|
|
15729
|
-
m && Kn === v.current && (v.current = void 0, D(!1), G(Ke), U(en || []), W(!1), re(en ? pe(pe({}, J), {},
|
|
15729
|
+
m && Kn === v.current && (v.current = void 0, D(!1), G(Ke), U(en || []), W(!1), re(en ? pe(pe({}, J), {}, _o({}, Ke, en)) : J));
|
|
15730
15730
|
});
|
|
15731
15731
|
}
|
|
15732
|
-
}, [o, Ne, j, J, c]), wn =
|
|
15732
|
+
}, [o, Ne, j, J, c]), wn = ie ? [] : C && j ? Z : g || [];
|
|
15733
15733
|
return pe(pe({}, p), {}, {
|
|
15734
15734
|
options: wn,
|
|
15735
15735
|
isLoading: T || a,
|
|
@@ -15771,7 +15771,7 @@ function hE(e) {
|
|
|
15771
15771
|
getOptionLabel: y
|
|
15772
15772
|
}) ? d(E, s(E)) : void 0;
|
|
15773
15773
|
}, [s, d, y, g, E, c, v, _]), D = fe(function() {
|
|
15774
|
-
return (n || !C) && T ? o === "first" ? [T].concat(
|
|
15774
|
+
return (n || !C) && T ? o === "first" ? [T].concat(To(v)) : [].concat(To(v), [T]) : v;
|
|
15775
15775
|
}, [n, o, C, T, v]), F = Ae(function(O, j) {
|
|
15776
15776
|
if (j.action !== "select-option")
|
|
15777
15777
|
return m(O, j);
|
|
@@ -15784,7 +15784,7 @@ function hE(e) {
|
|
|
15784
15784
|
name: I,
|
|
15785
15785
|
option: H
|
|
15786
15786
|
};
|
|
15787
|
-
m(xi(w, [].concat(
|
|
15787
|
+
m(xi(w, [].concat(To(sa(_)), [H]), H), Y);
|
|
15788
15788
|
}
|
|
15789
15789
|
return;
|
|
15790
15790
|
}
|
|
@@ -16009,7 +16009,7 @@ const Ki = "table-cell-form-field", Pu = "60px", Wa = "24px", CE = A(K)`
|
|
|
16009
16009
|
`;
|
|
16010
16010
|
function RE(e) {
|
|
16011
16011
|
const [t, n] = V(!1), r = ge(null);
|
|
16012
|
-
|
|
16012
|
+
oe(() => {
|
|
16013
16013
|
t && r.current && r.current.focus();
|
|
16014
16014
|
}, [t]);
|
|
16015
16015
|
const o = (i, s) => {
|
|
@@ -16200,7 +16200,7 @@ const OE = (e, t) => ({
|
|
|
16200
16200
|
fieldConfigs: q
|
|
16201
16201
|
};
|
|
16202
16202
|
}, [r]);
|
|
16203
|
-
|
|
16203
|
+
oe(() => {
|
|
16204
16204
|
if (t)
|
|
16205
16205
|
return;
|
|
16206
16206
|
const W = [];
|
|
@@ -16286,7 +16286,7 @@ const OE = (e, t) => ({
|
|
|
16286
16286
|
...x.current,
|
|
16287
16287
|
[`${W}.${q}`]: typeof k == "string" ? k : ""
|
|
16288
16288
|
}, m == null || m(e, D());
|
|
16289
|
-
},
|
|
16289
|
+
}, ie = (W) => g.current === W;
|
|
16290
16290
|
return /* @__PURE__ */ l.jsxs(CE, { children: [
|
|
16291
16291
|
/* @__PURE__ */ l.jsx(EE, { ref: g, children: /* @__PURE__ */ l.jsxs(wE, { gridColumns: w, minWidth: `calc( ${C} * ${_} )`, children: [
|
|
16292
16292
|
/* @__PURE__ */ l.jsx(_E, { children: r.map(({ name: W, label: q, isRequired: k }) => /* @__PURE__ */ l.jsx(wc, { children: /* @__PURE__ */ l.jsx(_2, { label: q, isRequired: k }) }, W)) }),
|
|
@@ -16294,7 +16294,7 @@ const OE = (e, t) => ({
|
|
|
16294
16294
|
r.map(({ name: k, key: J, ...re }) => {
|
|
16295
16295
|
var ae;
|
|
16296
16296
|
return /* @__PURE__ */ l.jsx(wc, { hasError: !!((ae = y == null ? void 0 : y[W]) != null && ae[k]), children: /* @__PURE__ */ l.jsx(
|
|
16297
|
-
|
|
16297
|
+
lo,
|
|
16298
16298
|
{
|
|
16299
16299
|
name: k,
|
|
16300
16300
|
value: q[k],
|
|
@@ -16311,7 +16311,7 @@ const OE = (e, t) => ({
|
|
|
16311
16311
|
onValidationError: (...he) => ee(W, ...he),
|
|
16312
16312
|
fetchConfig: u == null ? void 0 : u[k],
|
|
16313
16313
|
createConfig: d == null ? void 0 : d[k],
|
|
16314
|
-
isScrollTarget:
|
|
16314
|
+
isScrollTarget: ie,
|
|
16315
16315
|
...p ? {
|
|
16316
16316
|
menuPortalTarget: document.body,
|
|
16317
16317
|
stackIndex: p
|
|
@@ -16582,7 +16582,7 @@ const NE = A(K)`
|
|
|
16582
16582
|
transform: translate(5px, 0);
|
|
16583
16583
|
height: 34px;
|
|
16584
16584
|
width: 34px;
|
|
16585
|
-
`, WE = (e) => /* @__PURE__ */ S.createElement("svg", { width: "8px", height: "8px", viewBox: "8.59 6 7.41 12", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("path", { d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z" })),
|
|
16585
|
+
`, WE = (e) => /* @__PURE__ */ S.createElement("svg", { width: "8px", height: "8px", viewBox: "8.59 6 7.41 12", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("path", { d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z" })), lo = ({
|
|
16586
16586
|
fetchConfig: e,
|
|
16587
16587
|
createConfig: t,
|
|
16588
16588
|
menuPortalTarget: n,
|
|
@@ -16612,7 +16612,7 @@ const NE = A(K)`
|
|
|
16612
16612
|
hideHelperText: I = !1,
|
|
16613
16613
|
meta: { isExpandable: T = x === "table", isExpanded: D = !0 } = {}
|
|
16614
16614
|
} = b, [F, O] = V(!1), [j, G] = V(""), [H, Y] = V(D);
|
|
16615
|
-
|
|
16615
|
+
oe(() => {
|
|
16616
16616
|
F || U(b.value, !1);
|
|
16617
16617
|
}, [F, b.value]);
|
|
16618
16618
|
const Z = (M) => {
|
|
@@ -16636,7 +16636,7 @@ const NE = A(K)`
|
|
|
16636
16636
|
const Q = (M) => {
|
|
16637
16637
|
var le;
|
|
16638
16638
|
F || O(!0), (le = b.onBlur) == null || le.call(b, M), F && y && U(b.value);
|
|
16639
|
-
}, ee = () => I ? null : b.helperText ? /* @__PURE__ */ l.jsx(H0, { children: m }) : F && j ? /* @__PURE__ */ l.jsx(H0, { className: "helper--error", children: j }) : null,
|
|
16639
|
+
}, ee = () => I ? null : b.helperText ? /* @__PURE__ */ l.jsx(H0, { children: m }) : F && j ? /* @__PURE__ */ l.jsx(H0, { className: "helper--error", children: j }) : null, ie = (M) => {
|
|
16640
16640
|
M && !F && O(!0), a == null || a(M), F && E && U(M.target.value);
|
|
16641
16641
|
}, W = (M, le) => {
|
|
16642
16642
|
M && !F && O(!0), p == null || p(M, le), F && E && U(le);
|
|
@@ -16737,7 +16737,7 @@ const NE = A(K)`
|
|
|
16737
16737
|
value: M.value,
|
|
16738
16738
|
label: void 0,
|
|
16739
16739
|
onBlur: Q,
|
|
16740
|
-
onChange:
|
|
16740
|
+
onChange: ie,
|
|
16741
16741
|
onFocus: Z,
|
|
16742
16742
|
error: !!(j && F),
|
|
16743
16743
|
inputProps: {
|
|
@@ -16827,7 +16827,7 @@ const NE = A(K)`
|
|
|
16827
16827
|
/* @__PURE__ */ l.jsx(ZE, { useFlexGap: !0, spacing: v, cols: x, children: w.map((I) => {
|
|
16828
16828
|
var T;
|
|
16829
16829
|
return a && typeof a == "object" && I.name in a && a[I.name] === !1 || I.hideInUI ? null : /* @__PURE__ */ l.jsx(zE, { cols: I.cols ?? 1, children: /* @__PURE__ */ l.jsx(
|
|
16830
|
-
|
|
16830
|
+
lo,
|
|
16831
16831
|
{
|
|
16832
16832
|
value: c == null ? void 0 : c[I.name],
|
|
16833
16833
|
data: c,
|
|
@@ -16880,10 +16880,10 @@ const NE = A(K)`
|
|
|
16880
16880
|
/* @__PURE__ */ l.jsx(XE, { className: "play-icon" })
|
|
16881
16881
|
] });
|
|
16882
16882
|
}, T2 = A(({ className: e, ...t }) => /* @__PURE__ */ l.jsx(we, { ...t, classes: { popper: e } }))(({ tooltipStyle: e, arrowStyle: t }) => ({
|
|
16883
|
-
[`& .${
|
|
16883
|
+
[`& .${no.arrow}`]: {
|
|
16884
16884
|
...t
|
|
16885
16885
|
},
|
|
16886
|
-
[`& .${
|
|
16886
|
+
[`& .${no.tooltip}`]: {
|
|
16887
16887
|
...e
|
|
16888
16888
|
}
|
|
16889
16889
|
}));
|
|
@@ -16949,7 +16949,7 @@ const la = (e) => !!e && typeof e == "object" && "value" in e && "label" in e, L
|
|
|
16949
16949
|
fetchOptions: s
|
|
16950
16950
|
}) => {
|
|
16951
16951
|
const [a, c] = V({ args: e, enabled: t, searchTerm: n, pagination: r });
|
|
16952
|
-
|
|
16952
|
+
oe(() => {
|
|
16953
16953
|
const x = setTimeout(() => {
|
|
16954
16954
|
c({ args: e, enabled: t, searchTerm: n, pagination: r });
|
|
16955
16955
|
}, i);
|
|
@@ -17010,7 +17010,7 @@ const la = (e) => !!e && typeof e == "object" && "value" in e && "label" in e, L
|
|
|
17010
17010
|
},
|
|
17011
17011
|
[r, o]
|
|
17012
17012
|
);
|
|
17013
|
-
return
|
|
17013
|
+
return oe(() => () => {
|
|
17014
17014
|
a.current && (a.current.disconnect(), a.current = null);
|
|
17015
17015
|
}, []), { parentRef: u, childRef: d };
|
|
17016
17016
|
}, O2 = ({
|
|
@@ -17295,15 +17295,15 @@ const la = (e) => !!e && typeof e == "object" && "value" in e && "label" in e, L
|
|
|
17295
17295
|
sx: fw
|
|
17296
17296
|
}
|
|
17297
17297
|
)
|
|
17298
|
-
] }) }), x = h ? /* @__PURE__ */ l.jsx(
|
|
17298
|
+
] }) }), x = h ? /* @__PURE__ */ l.jsx(Io, { disabled: !0, sx: { justifyContent: "center", opacity: 1, minHeight: 120, cursor: "default" }, children: /* @__PURE__ */ l.jsx(_i, { size: 24 }) }) : s.length === 0 ? /* @__PURE__ */ l.jsx(Io, { disabled: !0, value: D2, sx: { opacity: 1, color: P.palette.gray.gray3 }, children: /* @__PURE__ */ l.jsx(X, { variant: "body2", fontSize: 14, children: "No results found" }) }) : s.map((E) => {
|
|
17299
17299
|
const C = String(E.value), w = n ? m.has(C) : C === e;
|
|
17300
|
-
return /* @__PURE__ */ l.jsxs(
|
|
17300
|
+
return /* @__PURE__ */ l.jsxs(Io, { value: C, sx: bw(w), children: [
|
|
17301
17301
|
/* @__PURE__ */ l.jsx("span", { children: E.label }),
|
|
17302
17302
|
w ? /* @__PURE__ */ l.jsx(d2, { fill: "#97A3B7", style: { marginLeft: "auto" } }) : null
|
|
17303
17303
|
] }, C);
|
|
17304
17304
|
});
|
|
17305
17305
|
return [g, x, f ? /* @__PURE__ */ l.jsx(
|
|
17306
|
-
|
|
17306
|
+
Io,
|
|
17307
17307
|
{
|
|
17308
17308
|
disabled: !0,
|
|
17309
17309
|
disableRipple: !0,
|
|
@@ -17955,21 +17955,21 @@ const la = (e) => !!e && typeof e == "object" && "value" in e && "label" in e, L
|
|
|
17955
17955
|
const ee = String(Q.target.value);
|
|
17956
17956
|
if (ee === D2)
|
|
17957
17957
|
return;
|
|
17958
|
-
const
|
|
17959
|
-
p({ value: ee, label:
|
|
17958
|
+
const ie = F[ee];
|
|
17959
|
+
p({ value: ee, label: ie }), y(), v(!1);
|
|
17960
17960
|
}, Y = (Q) => (ee) => {
|
|
17961
17961
|
ee.preventDefault(), ee.stopPropagation(), h(Q), y();
|
|
17962
17962
|
}, Z = m === "custom" && Array.isArray(f == null ? void 0 : f.options) && f.options.length > 0, U = () => {
|
|
17963
|
-
var
|
|
17963
|
+
var ie;
|
|
17964
17964
|
if (!t) return /* @__PURE__ */ l.jsx(hs, { children: n });
|
|
17965
|
-
const [Q = "", ee = ""] = ((
|
|
17965
|
+
const [Q = "", ee = ""] = ((ie = t.label) == null ? void 0 : ie.split(" > ")) ?? [];
|
|
17966
17966
|
return E ? /* @__PURE__ */ l.jsxs(Nw, { children: [
|
|
17967
17967
|
/* @__PURE__ */ l.jsx(hs, { children: Q }),
|
|
17968
17968
|
/* @__PURE__ */ l.jsx(rt.ChevronRightOutlined, { sx: { fontSize: "18px" } }),
|
|
17969
17969
|
/* @__PURE__ */ l.jsx(hs, { children: ee })
|
|
17970
17970
|
] }) : /* @__PURE__ */ l.jsx(hs, { children: t.label });
|
|
17971
17971
|
};
|
|
17972
|
-
return
|
|
17972
|
+
return oe(() => {
|
|
17973
17973
|
if (!(t != null && t.value) || !b) return;
|
|
17974
17974
|
const Q = L2(t.value) ? "custom" : "options";
|
|
17975
17975
|
h(Q);
|
|
@@ -18040,11 +18040,11 @@ const la = (e) => !!e && typeof e == "object" && "value" in e && "label" in e, L
|
|
|
18040
18040
|
return /* @__PURE__ */ l.jsxs(
|
|
18041
18041
|
bs,
|
|
18042
18042
|
{
|
|
18043
|
-
onPointerEnter: (
|
|
18044
|
-
|
|
18043
|
+
onPointerEnter: (ie) => {
|
|
18044
|
+
ie.pointerType === "touch" || !ee || x({ field: Q, currentTarget: ie.currentTarget });
|
|
18045
18045
|
},
|
|
18046
|
-
onPointerLeave: (
|
|
18047
|
-
|
|
18046
|
+
onPointerLeave: (ie) => {
|
|
18047
|
+
ie.pointerType === "touch" || !ee || y();
|
|
18048
18048
|
},
|
|
18049
18049
|
sx: Lw(ee && (f == null ? void 0 : f.id) === Q.id),
|
|
18050
18050
|
"data-field-id": Q.id,
|
|
@@ -18302,11 +18302,11 @@ const fI = ({
|
|
|
18302
18302
|
return Y ? U[H] = Y : delete U[H], U;
|
|
18303
18303
|
});
|
|
18304
18304
|
};
|
|
18305
|
-
|
|
18305
|
+
oe(() => {
|
|
18306
18306
|
u && e && y({ ...u });
|
|
18307
|
-
}, [u, e]),
|
|
18307
|
+
}, [u, e]), oe(() => () => {
|
|
18308
18308
|
e || (y({}), C({}));
|
|
18309
|
-
}, [e]),
|
|
18309
|
+
}, [e]), oe(() => {
|
|
18310
18310
|
p && I(() => {
|
|
18311
18311
|
const Y = r.filter((Z) => {
|
|
18312
18312
|
var U;
|
|
@@ -18457,7 +18457,7 @@ const fI = ({
|
|
|
18457
18457
|
onClose: s
|
|
18458
18458
|
}) => {
|
|
18459
18459
|
const [a, c] = V(null);
|
|
18460
|
-
if (
|
|
18460
|
+
if (oe(() => {
|
|
18461
18461
|
if (!e) {
|
|
18462
18462
|
c(null);
|
|
18463
18463
|
return;
|
|
@@ -18647,9 +18647,9 @@ const fI = ({
|
|
|
18647
18647
|
};
|
|
18648
18648
|
}).addCase(Ls.rejected, (t) => {
|
|
18649
18649
|
t.createOptionApi = se.FAILED;
|
|
18650
|
-
}).addCase(
|
|
18650
|
+
}).addCase(to.pending, (t) => {
|
|
18651
18651
|
t.dropdownOptionsApis = se.LOADING;
|
|
18652
|
-
}).addCase(
|
|
18652
|
+
}).addCase(to.fulfilled, (t, n) => {
|
|
18653
18653
|
const r = t.optionsMap || {}, { optionsList: o, hasMore: i, currentPage: s, searchTerm: a, key: c } = n.payload;
|
|
18654
18654
|
t.dropdownOptionsApis = se.IDLE, t.optionsMap = {
|
|
18655
18655
|
...r,
|
|
@@ -18660,14 +18660,14 @@ const fI = ({
|
|
|
18660
18660
|
searchTerm: a
|
|
18661
18661
|
}
|
|
18662
18662
|
};
|
|
18663
|
-
}).addCase(
|
|
18663
|
+
}).addCase(to.rejected, (t) => {
|
|
18664
18664
|
t.dropdownOptionsApis = se.FAILED;
|
|
18665
|
-
}).addCase(
|
|
18665
|
+
}).addCase(Ro.pending, (t) => {
|
|
18666
18666
|
t.previewCardApiStatus = se.LOADING;
|
|
18667
|
-
}).addCase(
|
|
18667
|
+
}).addCase(Ro.fulfilled, (t, n) => {
|
|
18668
18668
|
const { data: r } = n.payload;
|
|
18669
18669
|
r && (t.previewCardData = r), t.previewCardApiStatus = se.IDLE;
|
|
18670
|
-
}).addCase(
|
|
18670
|
+
}).addCase(Ro.rejected, (t) => {
|
|
18671
18671
|
t.previewCardApiStatus = se.FAILED;
|
|
18672
18672
|
});
|
|
18673
18673
|
}
|
|
@@ -18704,7 +18704,7 @@ const fI = ({
|
|
|
18704
18704
|
return Be({ message: C, type: dt }), n((g = y == null ? void 0 : y.response) == null ? void 0 : g.status);
|
|
18705
18705
|
}
|
|
18706
18706
|
}
|
|
18707
|
-
),
|
|
18707
|
+
), to = yn(
|
|
18708
18708
|
"commonSlice/fetchDropDownOptions",
|
|
18709
18709
|
async (e, { getState: t, rejectWithValue: n }) => {
|
|
18710
18710
|
var _, I, T;
|
|
@@ -18766,7 +18766,7 @@ const fI = ({
|
|
|
18766
18766
|
return d && d.length ? (i == null || i(d), !1) : !0;
|
|
18767
18767
|
}
|
|
18768
18768
|
}
|
|
18769
|
-
),
|
|
18769
|
+
), Ro = yn(
|
|
18770
18770
|
"commonSlice/previewCard",
|
|
18771
18771
|
async ({
|
|
18772
18772
|
id: e,
|
|
@@ -18943,9 +18943,9 @@ Do you want to continue?`, n_ = "Select an object to create", r_ = "Select an ob
|
|
|
18943
18943
|
t.objectListApiStatus = se.IDLE, t.createObjectList = r, t.createObjectConnectorNamesList = o, t.linkObjectList = i, t.editObjectList = s, t.searchObjectList = a, t.formFields = c, t.objectDict = u, t.dependentFieldsMap = d;
|
|
18944
18944
|
}).addCase(Rs.rejected, (t) => {
|
|
18945
18945
|
t.objectListApiStatus = se.FAILED;
|
|
18946
|
-
}).addCase(
|
|
18946
|
+
}).addCase(to.pending, (t) => {
|
|
18947
18947
|
t.dropdownOptionsApis = se.LOADING;
|
|
18948
|
-
}).addCase(
|
|
18948
|
+
}).addCase(to.fulfilled, (t, n) => {
|
|
18949
18949
|
const r = t.optionsMap || {}, { optionsList: o, hasMore: i, currentPage: s, key: a } = n.payload;
|
|
18950
18950
|
t.dropdownOptionsApis = se.IDLE, t.optionsMap = {
|
|
18951
18951
|
...r,
|
|
@@ -18955,7 +18955,7 @@ Do you want to continue?`, n_ = "Select an object to create", r_ = "Select an ob
|
|
|
18955
18955
|
currentPage: s
|
|
18956
18956
|
}
|
|
18957
18957
|
};
|
|
18958
|
-
}).addCase(
|
|
18958
|
+
}).addCase(to.rejected, (t) => {
|
|
18959
18959
|
t.dropdownOptionsApis = se.FAILED;
|
|
18960
18960
|
}).addCase(Os.pending, (t) => {
|
|
18961
18961
|
t.createFormApiStatus = se.LOADING;
|
|
@@ -19129,7 +19129,7 @@ Do you want to continue?`, n_ = "Select an object to create", r_ = "Select an ob
|
|
|
19129
19129
|
return Be({ message: qn, type: dt }), t(a);
|
|
19130
19130
|
}
|
|
19131
19131
|
}
|
|
19132
|
-
), { resetState: qF, setCurrentCardInEdit:
|
|
19132
|
+
), { resetState: qF, setCurrentCardInEdit: Hr, resetCurrentResourceDetails: u_, setHasUnsavedChanges: q0 } = U2.actions, d_ = U2.reducer, f_ = () => {
|
|
19133
19133
|
const [e, t] = V(null), [n, r] = V({
|
|
19134
19134
|
isVertical: !1,
|
|
19135
19135
|
isHorizontal: !1,
|
|
@@ -19137,7 +19137,7 @@ Do you want to continue?`, n_ = "Select an object to create", r_ = "Select an ob
|
|
|
19137
19137
|
}), o = Ae((i) => {
|
|
19138
19138
|
t(i);
|
|
19139
19139
|
}, []);
|
|
19140
|
-
return
|
|
19140
|
+
return oe(() => {
|
|
19141
19141
|
if (!e) return;
|
|
19142
19142
|
e.dataset.prevScrollLeft = "0", e.dataset.prevScrollTop = "0";
|
|
19143
19143
|
let i = null;
|
|
@@ -19229,7 +19229,7 @@ const x_ = ({ data: e, title: t, currentCard: n, setShowModal: r }) => {
|
|
|
19229
19229
|
connector_name: n.connectorName,
|
|
19230
19230
|
ug_id: a,
|
|
19231
19231
|
sm_ids: s
|
|
19232
|
-
}), o(
|
|
19232
|
+
}), o(Hr({ ...n, externalResourceId: g })));
|
|
19233
19233
|
};
|
|
19234
19234
|
return /* @__PURE__ */ l.jsxs(N, { maxHeight: "340px", maxWidth: "700px", padding: "32px 0px 32px 32px", overflow: "auto", children: [
|
|
19235
19235
|
/* @__PURE__ */ l.jsx(X, { variant: "h2", color: "gray.black", marginBottom: "16px", children: t }),
|
|
@@ -19267,7 +19267,7 @@ const x_ = ({ data: e, title: t, currentCard: n, setShowModal: r }) => {
|
|
|
19267
19267
|
fieldName: m,
|
|
19268
19268
|
showErrorIcon: h
|
|
19269
19269
|
} = e, f = ge(null), g = ge(null), { email: x, currentSmIds: y, conversationId: E, sendTrackingEvent: C, connectorFunctions: w } = je(Qe), _ = Ie(w_), I = _ == null ? void 0 : _[b], [T, D] = V(!1), F = fe(() => n && v ? g_(n, p == null ? void 0 : p.userAuthEnabled) : c ? yp.replace(/{{connector_name}}/g, (u == null ? void 0 : u[0]) || "") : Nd, [n, c, u, v, p == null ? void 0 : p.userAuthEnabled]), O = Ae(() => {
|
|
19270
|
-
const ee = n || h_(I, u), { error_code:
|
|
19270
|
+
const ee = n || h_(I, u), { error_code: ie, error_message: W } = z2(ee);
|
|
19271
19271
|
C == null || C(b5, {
|
|
19272
19272
|
sm_ids: y,
|
|
19273
19273
|
frontend_req_params: {
|
|
@@ -19277,7 +19277,7 @@ const x_ = ({ data: e, title: t, currentCard: n, setShowModal: r }) => {
|
|
|
19277
19277
|
},
|
|
19278
19278
|
card_title: d,
|
|
19279
19279
|
connector_name: u != null && u.length ? u : "",
|
|
19280
|
-
error_code:
|
|
19280
|
+
error_code: ie,
|
|
19281
19281
|
error_message: W
|
|
19282
19282
|
});
|
|
19283
19283
|
}, [
|
|
@@ -19291,13 +19291,13 @@ const x_ = ({ data: e, title: t, currentCard: n, setShowModal: r }) => {
|
|
|
19291
19291
|
u,
|
|
19292
19292
|
p == null ? void 0 : p.externalResourceId
|
|
19293
19293
|
]);
|
|
19294
|
-
|
|
19294
|
+
oe(() => {
|
|
19295
19295
|
(n && v || c && I) && O();
|
|
19296
|
-
}, [O, I, c, n, v]),
|
|
19296
|
+
}, [O, I, c, n, v]), oe(() => {
|
|
19297
19297
|
const ee = r ? g.current : f.current;
|
|
19298
19298
|
if (ee) {
|
|
19299
|
-
const
|
|
19300
|
-
D(
|
|
19299
|
+
const ie = ee.scrollHeight > ee.clientHeight || ee.scrollWidth > ee.clientWidth;
|
|
19300
|
+
D(ie);
|
|
19301
19301
|
}
|
|
19302
19302
|
}, [t, r]);
|
|
19303
19303
|
const j = o == xl.NOT_FOUND, G = !j && Array.isArray(t) && t.every((ee) => typeof ee == "string" || typeof ee == "number" || typeof ee == "boolean");
|
|
@@ -19315,7 +19315,7 @@ const x_ = ({ data: e, title: t, currentCard: n, setShowModal: r }) => {
|
|
|
19315
19315
|
field_name: m
|
|
19316
19316
|
});
|
|
19317
19317
|
}, Q = (ee) => {
|
|
19318
|
-
const
|
|
19318
|
+
const ie = /<>(.*?)<>/g, W = ee.split(ie);
|
|
19319
19319
|
return /* @__PURE__ */ l.jsx(Me.Fragment, { children: W.map(
|
|
19320
19320
|
(q, k) => k % 2 === 1 ? /* @__PURE__ */ l.jsx(K6, { variant: "body2", onClick: Z, children: q }, k) : q
|
|
19321
19321
|
) });
|
|
@@ -19329,7 +19329,7 @@ const x_ = ({ data: e, title: t, currentCard: n, setShowModal: r }) => {
|
|
|
19329
19329
|
] });
|
|
19330
19330
|
if (G) {
|
|
19331
19331
|
const ee = t;
|
|
19332
|
-
return ee.length ? /* @__PURE__ */ l.jsx(e9, { children: ee.map((
|
|
19332
|
+
return ee.length ? /* @__PURE__ */ l.jsx(e9, { children: ee.map((ie, W) => /* @__PURE__ */ l.jsx(t9, { children: ua(ie) }, `${W}_${String(ie)}`)) }) : /* @__PURE__ */ l.jsx(Vd, { variant: "caption_regular", children: Un });
|
|
19333
19333
|
}
|
|
19334
19334
|
return /* @__PURE__ */ l.jsx(we, { title: T ? H : null, placement: "bottom", children: r ? /* @__PURE__ */ l.jsx(
|
|
19335
19335
|
Op,
|
|
@@ -19376,17 +19376,17 @@ const x_ = ({ data: e, title: t, currentCard: n, setShowModal: r }) => {
|
|
|
19376
19376
|
var J, re, ae, he;
|
|
19377
19377
|
return f && ((J = b == null ? void 0 : b.flatDisplay) != null && J.data) ? b.flatDisplay.data : !f && ((he = (ae = (re = b == null ? void 0 : b.listItems) == null ? void 0 : re.fields) == null ? void 0 : ae[0]) != null && he.data) ? b.listItems.fields[0].data : [];
|
|
19378
19378
|
}, [f, b]), F = fe(() => D == null ? void 0 : D.slice(0, 5), [D]), [O, j] = V([]), G = ge(null), [H, Y] = V(0), Z = g ? -180 : 0, U = f ? !1 : !!((q = b == null ? void 0 : b.listItems) != null && q.errorMessage), Q = U || d || v, ee = c && !U && i && (C || y);
|
|
19379
|
-
|
|
19379
|
+
uo(() => {
|
|
19380
19380
|
var J;
|
|
19381
19381
|
(J = G.current) != null && J.scrollHeight && Y(G.current.scrollHeight + a);
|
|
19382
|
-
}, [o == null ? void 0 : o[t], O, G]),
|
|
19382
|
+
}, [o == null ? void 0 : o[t], O, G]), oe(() => {
|
|
19383
19383
|
var he, M;
|
|
19384
19384
|
const J = ((D == null ? void 0 : D.length) || 0) > 5, re = !f && (((M = (he = b == null ? void 0 : b.listItems) == null ? void 0 : he.fields) == null ? void 0 : M.length) || 0) > 1;
|
|
19385
19385
|
w(J && !re), E(re);
|
|
19386
|
-
}, [b, f, D == null ? void 0 : D.length]),
|
|
19386
|
+
}, [b, f, D == null ? void 0 : D.length]), oe(() => {
|
|
19387
19387
|
j(g ? D : F);
|
|
19388
19388
|
}, [b, g, F, D]);
|
|
19389
|
-
const
|
|
19389
|
+
const ie = () => {
|
|
19390
19390
|
C ? x((J) => !J) : I((J) => !J);
|
|
19391
19391
|
};
|
|
19392
19392
|
return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
@@ -19437,7 +19437,7 @@ const x_ = ({ data: e, title: t, currentCard: n, setShowModal: r }) => {
|
|
|
19437
19437
|
)
|
|
19438
19438
|
] }, ae);
|
|
19439
19439
|
}) : /* @__PURE__ */ l.jsx(K, { margin: "8px 0", children: /* @__PURE__ */ l.jsx(Rp, { variant: "body_sm_regular", children: Y5 }) }) }) }) }),
|
|
19440
|
-
!v && ee && /* @__PURE__ */ l.jsx(u9, { variant: "body_xs_medium", onClick:
|
|
19440
|
+
!v && ee && /* @__PURE__ */ l.jsx(u9, { variant: "body_xs_medium", onClick: ie, children: C ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
19441
19441
|
g ? Z9 : zd,
|
|
19442
19442
|
/* @__PURE__ */ l.jsx(l9, { src: U9, transformAngle: Z })
|
|
19443
19443
|
] }) : zd })
|
|
@@ -19649,10 +19649,10 @@ const x_ = ({ data: e, title: t, currentCard: n, setShowModal: r }) => {
|
|
|
19649
19649
|
},
|
|
19650
19650
|
[a, r, C, w, u, d, _, p]
|
|
19651
19651
|
);
|
|
19652
|
-
|
|
19652
|
+
oe(() => {
|
|
19653
19653
|
v && ee(!0);
|
|
19654
19654
|
}, [v, ee]);
|
|
19655
|
-
const
|
|
19655
|
+
const ie = (M, le) => {
|
|
19656
19656
|
var $;
|
|
19657
19657
|
M == null || M.stopPropagation(), a(Ii({ id: le, email: r, conversationId: d, isRefresh: !0, externalResourceId: _ })).unwrap().then(() => {
|
|
19658
19658
|
u(Jb, {
|
|
@@ -19678,7 +19678,7 @@ const x_ = ({ data: e, title: t, currentCard: n, setShowModal: r }) => {
|
|
|
19678
19678
|
sm_ids: p
|
|
19679
19679
|
});
|
|
19680
19680
|
let le;
|
|
19681
|
-
O === "flat" ? le = (F == null ? void 0 : F.flatDisplay.externalResourceId) ?? t.externalResourceId : O === "flat_with_list" && (le = ($ = (Oe = F == null ? void 0 : F.listItems) == null ? void 0 : Oe.fields[0]) == null ? void 0 : $.externalResourceId), le ? a(
|
|
19681
|
+
O === "flat" ? le = (F == null ? void 0 : F.flatDisplay.externalResourceId) ?? t.externalResourceId : O === "flat_with_list" && (le = ($ = (Oe = F == null ? void 0 : F.listItems) == null ? void 0 : Oe.fields[0]) == null ? void 0 : $.externalResourceId), le ? a(Hr({ ...t, externalResourceId: le })) : Be({ message: qn, type: dt });
|
|
19682
19682
|
}, J = (M) => {
|
|
19683
19683
|
M.stopPropagation(), x(!0);
|
|
19684
19684
|
}, re = () => {
|
|
@@ -19700,7 +19700,7 @@ const x_ = ({ data: e, title: t, currentCard: n, setShowModal: r }) => {
|
|
|
19700
19700
|
disabled: Y,
|
|
19701
19701
|
shown: !0,
|
|
19702
19702
|
iconSrc: K2,
|
|
19703
|
-
action: (M) =>
|
|
19703
|
+
action: (M) => ie(M, C)
|
|
19704
19704
|
},
|
|
19705
19705
|
{
|
|
19706
19706
|
id: "edit",
|
|
@@ -19844,7 +19844,7 @@ const x_ = ({ data: e, title: t, currentCard: n, setShowModal: r }) => {
|
|
|
19844
19844
|
userAuthRequired: eA,
|
|
19845
19845
|
userAuthInProgress: tA,
|
|
19846
19846
|
userAuthCompleted: KF,
|
|
19847
|
-
userAuthFailed:
|
|
19847
|
+
userAuthFailed: wo,
|
|
19848
19848
|
userAuthReset: QF
|
|
19849
19849
|
} = rg.actions, nA = rg.reducer, rA = { state: "unknown" }, Qi = (e, t) => e.userAuth.byConnectorId[t] || rA, oA = /* @__PURE__ */ new Set([
|
|
19850
19850
|
"disconnected",
|
|
@@ -19857,7 +19857,7 @@ const x_ = ({ data: e, title: t, currentCard: n, setShowModal: r }) => {
|
|
|
19857
19857
|
}, aA = 2e3, cA = 5 * 60 * 1e3;
|
|
19858
19858
|
function lA(e, t = {}) {
|
|
19859
19859
|
const n = Rt(), r = Pn(), o = Ie((p) => Qi(p, e)), { onConnected: i } = t, s = ge(!1), a = ge(null), c = ge(null), u = ge(!1);
|
|
19860
|
-
|
|
19860
|
+
oe(() => {
|
|
19861
19861
|
o.state !== "connected" && (u.current = !1);
|
|
19862
19862
|
}, [o.state]), qt({
|
|
19863
19863
|
queryKey: ["userAuthStatus", e],
|
|
@@ -19875,14 +19875,14 @@ function lA(e, t = {}) {
|
|
|
19875
19875
|
enabled: o.state === "in_progress",
|
|
19876
19876
|
refetchInterval: o.state === "in_progress" ? aA : !1,
|
|
19877
19877
|
refetchOnWindowFocus: !1
|
|
19878
|
-
}),
|
|
19878
|
+
}), oe(() => {
|
|
19879
19879
|
if (o.state !== "in_progress") {
|
|
19880
19880
|
a.current && (clearTimeout(a.current), a.current = null);
|
|
19881
19881
|
return;
|
|
19882
19882
|
}
|
|
19883
19883
|
return a.current = setTimeout(() => {
|
|
19884
19884
|
n(
|
|
19885
|
-
|
|
19885
|
+
wo({
|
|
19886
19886
|
connectorId: e,
|
|
19887
19887
|
reason: "in_progress_timeout"
|
|
19888
19888
|
})
|
|
@@ -19890,7 +19890,7 @@ function lA(e, t = {}) {
|
|
|
19890
19890
|
}, cA), () => {
|
|
19891
19891
|
a.current && (clearTimeout(a.current), a.current = null);
|
|
19892
19892
|
};
|
|
19893
|
-
}, [o.state, e, n]),
|
|
19893
|
+
}, [o.state, e, n]), oe(() => {
|
|
19894
19894
|
if (o.state !== "in_progress") {
|
|
19895
19895
|
if (c.current && !c.current.closed)
|
|
19896
19896
|
try {
|
|
@@ -19899,7 +19899,7 @@ function lA(e, t = {}) {
|
|
|
19899
19899
|
}
|
|
19900
19900
|
c.current = null;
|
|
19901
19901
|
}
|
|
19902
|
-
}, [o.state]),
|
|
19902
|
+
}, [o.state]), oe(() => {
|
|
19903
19903
|
if (o.state !== "in_progress") return;
|
|
19904
19904
|
const p = setInterval(async () => {
|
|
19905
19905
|
const b = c.current;
|
|
@@ -19918,9 +19918,9 @@ function lA(e, t = {}) {
|
|
|
19918
19918
|
// still workspace_mismatch needs to land, not be ignored).
|
|
19919
19919
|
authoritative: !0
|
|
19920
19920
|
})
|
|
19921
|
-
), m.state === "connected" && !u.current && (u.current = !0, i == null || i())) : n(
|
|
19921
|
+
), m.state === "connected" && !u.current && (u.current = !0, i == null || i())) : n(wo({ connectorId: e, reason: "popup_closed" }));
|
|
19922
19922
|
} catch {
|
|
19923
|
-
n(
|
|
19923
|
+
n(wo({ connectorId: e, reason: "popup_closed" }));
|
|
19924
19924
|
}
|
|
19925
19925
|
}
|
|
19926
19926
|
}, 800);
|
|
@@ -19939,14 +19939,14 @@ function lA(e, t = {}) {
|
|
|
19939
19939
|
`width=${m},height=${h},left=${f},top=${g},menubar=no,toolbar=no`
|
|
19940
19940
|
);
|
|
19941
19941
|
c.current = x, x || n(
|
|
19942
|
-
|
|
19942
|
+
wo({
|
|
19943
19943
|
connectorId: e,
|
|
19944
19944
|
reason: "popup_blocked"
|
|
19945
19945
|
})
|
|
19946
19946
|
);
|
|
19947
19947
|
} catch (p) {
|
|
19948
19948
|
console.error("startUserAuth failed: ", p), n(
|
|
19949
|
-
|
|
19949
|
+
wo({
|
|
19950
19950
|
connectorId: e,
|
|
19951
19951
|
reason: "start_user_auth_failed"
|
|
19952
19952
|
})
|
|
@@ -20302,7 +20302,7 @@ const gA = A(ke)`
|
|
|
20302
20302
|
}, [r, o, t]);
|
|
20303
20303
|
if (!t) return null;
|
|
20304
20304
|
const s = () => {
|
|
20305
|
-
e(
|
|
20305
|
+
e(wo({ connectorId: t, reason: "cancelled" }));
|
|
20306
20306
|
};
|
|
20307
20307
|
return /* @__PURE__ */ l.jsx(
|
|
20308
20308
|
vr,
|
|
@@ -20518,12 +20518,12 @@ const IA = "Bring your favourite tools into Hiver", _A = "Plugin image", AA = "I
|
|
|
20518
20518
|
() => u6(v),
|
|
20519
20519
|
[v]
|
|
20520
20520
|
), f = fe(() => (p == null ? void 0 : p.filter(({ isAdminPanelLink: E }) => !(!n && E))) ?? [], [p, n]);
|
|
20521
|
-
if (
|
|
20521
|
+
if (oe(() => {
|
|
20522
20522
|
!h && u && oc(v, !0);
|
|
20523
|
-
}, [h, v, u]),
|
|
20523
|
+
}, [h, v, u]), uo(() => {
|
|
20524
20524
|
var E;
|
|
20525
20525
|
(E = s.current) != null && E.scrollHeight && c(s.current.scrollHeight);
|
|
20526
|
-
}, [s]),
|
|
20526
|
+
}, [s]), oe(() => {
|
|
20527
20527
|
u && !m && t(Kb, { update_version_id: v });
|
|
20528
20528
|
}, []), !u || m) return null;
|
|
20529
20529
|
const g = (E) => {
|
|
@@ -20588,7 +20588,7 @@ const IA = "Bring your favourite tools into Hiver", _A = "Plugin image", AA = "I
|
|
|
20588
20588
|
}
|
|
20589
20589
|
}), KA = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='7'%20cy='7'%20r='7'%20fill='%23196FE0'/%3e%3cpath%20d='M10.8288%204.89995C10.5922%204.64324%2010.1976%204.63193%209.94761%204.87601L5.96804%208.75823L4.06989%206.75353C3.82948%206.49981%203.43531%206.49425%203.18845%206.74158C2.9418%206.98865%202.9366%207.39455%203.1768%207.64827L5.50404%2010.1061C5.626%2010.235%205.78808%2010.3%205.95059%2010.3C6.10477%2010.3%206.25896%2010.2414%206.37969%2010.124L10.8056%205.80646C11.0553%205.56278%2011.0659%205.15689%2010.8288%204.89995Z'%20fill='white'/%3e%3c/svg%3e", lg = (e) => {
|
|
20590
20590
|
const t = ge(null), [n, r] = V(!1);
|
|
20591
|
-
return
|
|
20591
|
+
return oe(() => {
|
|
20592
20592
|
t.current && r(t.current.scrollWidth > t.current.clientWidth);
|
|
20593
20593
|
}, [e]), { textRef: t, isOverflow: n };
|
|
20594
20594
|
}, QA = (e) => {
|
|
@@ -20655,7 +20655,7 @@ const IA = "Bring your favourite tools into Hiver", _A = "Plugin image", AA = "I
|
|
|
20655
20655
|
value: c,
|
|
20656
20656
|
label: c
|
|
20657
20657
|
})) : e ? [{ value: e, label: e }] : [];
|
|
20658
|
-
|
|
20658
|
+
oe(() => {
|
|
20659
20659
|
if (!e && !r && t && Object.keys(t).length > 0) {
|
|
20660
20660
|
const c = Object.keys(t)[0];
|
|
20661
20661
|
c && o(c);
|
|
@@ -20764,7 +20764,7 @@ const sS = A(eu)`
|
|
|
20764
20764
|
s(!!f);
|
|
20765
20765
|
}, m = (h) => {
|
|
20766
20766
|
var g;
|
|
20767
|
-
o(
|
|
20767
|
+
o(Ro({ id: n, args: r, isRefresh: !0 }));
|
|
20768
20768
|
const f = h.target.tagName === "BUTTON" ? (g = h.target) == null ? void 0 : g.firstChild : h.target;
|
|
20769
20769
|
f.className && (f.className = ""), setTimeout(() => f.className = "selected", 1);
|
|
20770
20770
|
};
|
|
@@ -20915,7 +20915,7 @@ const sS = A(eu)`
|
|
|
20915
20915
|
});
|
|
20916
20916
|
}
|
|
20917
20917
|
};
|
|
20918
|
-
return
|
|
20918
|
+
return oe(() => {
|
|
20919
20919
|
if (Array.isArray(r))
|
|
20920
20920
|
return () => {
|
|
20921
20921
|
const v = r.map((m) => m.name);
|
|
@@ -20941,7 +20941,7 @@ const sS = A(eu)`
|
|
|
20941
20941
|
const v = bI(n, b == null ? void 0 : b.args), m = Object.values((b == null ? void 0 : b.args) || {});
|
|
20942
20942
|
if (v.length === m.length) {
|
|
20943
20943
|
r(
|
|
20944
|
-
|
|
20944
|
+
to({
|
|
20945
20945
|
fieldName: i.name,
|
|
20946
20946
|
formId: String(t),
|
|
20947
20947
|
searchTerm: c,
|
|
@@ -21191,7 +21191,7 @@ const sS = A(eu)`
|
|
|
21191
21191
|
y.current = !0, d == null || d(D);
|
|
21192
21192
|
}
|
|
21193
21193
|
}), w = fe(() => f != null && f.length ? [...r, ...f] : r, [r, f]);
|
|
21194
|
-
|
|
21194
|
+
oe(() => {
|
|
21195
21195
|
g && v(g);
|
|
21196
21196
|
}, [g]);
|
|
21197
21197
|
const _ = (D) => {
|
|
@@ -21246,7 +21246,7 @@ const sS = A(eu)`
|
|
|
21246
21246
|
}
|
|
21247
21247
|
}, wS = ({ formId: e, args: t, enabled: n, delay: r = 500 }) => {
|
|
21248
21248
|
const [o, i] = V(t);
|
|
21249
|
-
return
|
|
21249
|
+
return oe(() => {
|
|
21250
21250
|
const s = setTimeout(() => i(t), r);
|
|
21251
21251
|
return () => clearTimeout(s);
|
|
21252
21252
|
}, [t, r]), qt({
|
|
@@ -21373,7 +21373,7 @@ const _S = A(N)`
|
|
|
21373
21373
|
stackingContext: T,
|
|
21374
21374
|
isAdmin: D,
|
|
21375
21375
|
variables: F
|
|
21376
|
-
} = je(Qe), [O, j] = hg(), G = Ie(tg), H = Ie(t ? M_ : Q2), Y = Ie(P_), Z = Ie(Vu), U = Ie(G_), Q = Ie(H_), ee = Ie(W_),
|
|
21376
|
+
} = je(Qe), [O, j] = hg(), G = Ie(tg), H = Ie(t ? M_ : Q2), Y = Ie(P_), Z = Ie(Vu), U = Ie(G_), Q = Ie(H_), ee = Ie(W_), ie = Ie(U_), W = Ie(Z_), q = Ie(ng), k = Z == null ? void 0 : Z[(p == null ? void 0 : p.value) ?? ""];
|
|
21377
21377
|
u == null || u(k);
|
|
21378
21378
|
const J = mt(y, X5), re = (k == null ? void 0 : k.hasCustomFields) ?? !1, { customFieldsArgsPresent: ae, customFieldsArgs: he } = fe(() => {
|
|
21379
21379
|
if (!re) return { customFieldsArgsPresent: !1, customFieldsArgs: {} };
|
|
@@ -21434,37 +21434,37 @@ const _S = A(N)`
|
|
|
21434
21434
|
inboxIds: C,
|
|
21435
21435
|
enabled: !t && !!D
|
|
21436
21436
|
});
|
|
21437
|
-
|
|
21437
|
+
oe(() => {
|
|
21438
21438
|
Ut && Kn(Ut);
|
|
21439
|
-
}, [Ut, Kn]),
|
|
21439
|
+
}, [Ut, Kn]), oe(() => {
|
|
21440
21440
|
p && (c == null || c(p.value));
|
|
21441
21441
|
}, [p, c]);
|
|
21442
|
-
const { userGroupId:
|
|
21442
|
+
const { userGroupId: po } = cn() || {}, { fetchConfig: ho, createConfig: Sr } = mg({
|
|
21443
21443
|
formFields: Ye[0].formFields,
|
|
21444
21444
|
formId: Ye[0].id,
|
|
21445
21445
|
formState: O,
|
|
21446
21446
|
conversationId: x
|
|
21447
21447
|
}), Ot = (Dr = G == null ? void 0 : G.forms.find((de) => de.type === "edit")) == null ? void 0 : Dr.id, { externalResourceId: nr } = G ?? {}, rr = [Q, ee, W].includes(se.LOADING), Tr = fe(() => !$ || !_ ? null : _(), [$, _]), Zt = Rt();
|
|
21448
|
-
|
|
21448
|
+
oe(() => {
|
|
21449
21449
|
Zt(FI());
|
|
21450
|
-
}, []),
|
|
21450
|
+
}, []), oe(() => ($ && I && I(!0), () => {
|
|
21451
21451
|
$ && I && I(!1);
|
|
21452
|
-
}), [$, I]),
|
|
21452
|
+
}), [$, I]), oe(() => {
|
|
21453
21453
|
Zt(
|
|
21454
21454
|
q0(
|
|
21455
|
-
t ? !(
|
|
21455
|
+
t ? !(ie && "values" in ie && "values" in O && t1(O.values, ie.values)) : (e == null ? void 0 : e.fields_filled) !== void 0 && e.fields_filled > 0
|
|
21456
21456
|
)
|
|
21457
21457
|
);
|
|
21458
|
-
}, [t, e,
|
|
21458
|
+
}, [t, e, ie, O, Zt]), oe(() => (t && ie && j({ type: jt.SET_FIELDS, payload: ie }), () => {
|
|
21459
21459
|
j({ type: jt.SET_FIELDS, payload: { values: {} } });
|
|
21460
|
-
}), [t, j,
|
|
21460
|
+
}), [t, j, ie]), oe(() => {
|
|
21461
21461
|
p !== null && s((de) => ({ ...de, object_type: p.label }));
|
|
21462
|
-
}, [p, s]),
|
|
21462
|
+
}, [p, s]), oe(() => {
|
|
21463
21463
|
if (O.values) {
|
|
21464
21464
|
const de = P2(Ye[0].formFields, O.values);
|
|
21465
21465
|
s((Te) => ({ ...Te, fields_filled: de }));
|
|
21466
21466
|
}
|
|
21467
|
-
}, [O, Ye, s]),
|
|
21467
|
+
}, [O, Ye, s]), oe(() => {
|
|
21468
21468
|
if (n && !t)
|
|
21469
21469
|
return b(n);
|
|
21470
21470
|
H && H.length && b(t && Ot ? H.find((de) => de.value === Ot) ?? null : (de) => de || !Z ? de : H.length === 1 ? H[0] : H.find((ot) => !Z[ot.value].expandedView) ?? null);
|
|
@@ -21499,13 +21499,13 @@ const _S = A(N)`
|
|
|
21499
21499
|
connector_name: de,
|
|
21500
21500
|
card_title: Te,
|
|
21501
21501
|
sm_ids: C,
|
|
21502
|
-
ug_id:
|
|
21502
|
+
ug_id: po
|
|
21503
21503
|
});
|
|
21504
21504
|
const ot = Z[Ot].interfaceDetails;
|
|
21505
|
-
if (!ot || !
|
|
21505
|
+
if (!ot || !ie)
|
|
21506
21506
|
return;
|
|
21507
21507
|
const { id: Ft, args: tt = {}, previousArgs: R = {} } = ot, z = vi(
|
|
21508
|
-
|
|
21508
|
+
ie,
|
|
21509
21509
|
R,
|
|
21510
21510
|
Wt,
|
|
21511
21511
|
wn
|
|
@@ -21528,7 +21528,7 @@ const _S = A(N)`
|
|
|
21528
21528
|
connector_name: de,
|
|
21529
21529
|
card_title: Te,
|
|
21530
21530
|
sm_ids: C,
|
|
21531
|
-
ug_id:
|
|
21531
|
+
ug_id: po
|
|
21532
21532
|
});
|
|
21533
21533
|
const me = ((_e = Ye[0].formFields) == null ? void 0 : _e.filter((Ce) => Ce.isFieldCustom)) ?? [], Fe = me.length > 0, Le = me.some((Ce) => O.values[Ce.name]);
|
|
21534
21534
|
E(O5, {
|
|
@@ -21541,7 +21541,7 @@ const _S = A(N)`
|
|
|
21541
21541
|
custom_fields_used: Le
|
|
21542
21542
|
});
|
|
21543
21543
|
}).finally(() => {
|
|
21544
|
-
Zt(
|
|
21544
|
+
Zt(Hr(null));
|
|
21545
21545
|
});
|
|
21546
21546
|
}
|
|
21547
21547
|
}, Or = () => {
|
|
@@ -21580,7 +21580,7 @@ const _S = A(N)`
|
|
|
21580
21580
|
});
|
|
21581
21581
|
});
|
|
21582
21582
|
}
|
|
21583
|
-
},
|
|
21583
|
+
}, go = [
|
|
21584
21584
|
{
|
|
21585
21585
|
label: "Cancel",
|
|
21586
21586
|
action: () => m(!1),
|
|
@@ -21597,7 +21597,7 @@ const _S = A(N)`
|
|
|
21597
21597
|
connector_name: k == null ? void 0 : k.connectorName,
|
|
21598
21598
|
form_object: k == null ? void 0 : k.name
|
|
21599
21599
|
});
|
|
21600
|
-
},
|
|
21600
|
+
}, mo = ({ data: de }) => {
|
|
21601
21601
|
tn.current = !0, a == null || a(!1);
|
|
21602
21602
|
const { fields_configured_count: Te, has_system_variable: ot } = oy(de);
|
|
21603
21603
|
E(N5, {
|
|
@@ -21606,7 +21606,7 @@ const _S = A(N)`
|
|
|
21606
21606
|
fields_configured_count: Te,
|
|
21607
21607
|
has_system_variable: ot
|
|
21608
21608
|
});
|
|
21609
|
-
},
|
|
21609
|
+
}, bo = D && J && (k == null ? void 0 : k.cardAccessMode) === "read_write", xo = !h && (C == null ? void 0 : C.length) > 1 && Object.keys(Ut ?? {}).length > 0, vo = /* @__PURE__ */ l.jsxs(Ag, { className: $ ? Eg : "", children: [
|
|
21610
21610
|
a && /* @__PURE__ */ l.jsx(
|
|
21611
21611
|
CS,
|
|
21612
21612
|
{
|
|
@@ -21619,7 +21619,7 @@ const _S = A(N)`
|
|
|
21619
21619
|
formId: In,
|
|
21620
21620
|
customFormArgsEnabled: (k == null ? void 0 : k.hasCustomFields) ?? !1,
|
|
21621
21621
|
customFormArgsMap: (k == null ? void 0 : k.customFieldsArgs) ?? void 0,
|
|
21622
|
-
onSuccess:
|
|
21622
|
+
onSuccess: mo,
|
|
21623
21623
|
onClose: () => a == null ? void 0 : a(!1)
|
|
21624
21624
|
}
|
|
21625
21625
|
),
|
|
@@ -21639,7 +21639,7 @@ const _S = A(N)`
|
|
|
21639
21639
|
setShown: m,
|
|
21640
21640
|
title: KI,
|
|
21641
21641
|
description: QI,
|
|
21642
|
-
buttons:
|
|
21642
|
+
buttons: go
|
|
21643
21643
|
}
|
|
21644
21644
|
),
|
|
21645
21645
|
$ ? /* @__PURE__ */ l.jsxs(RS, { children: [
|
|
@@ -21652,7 +21652,7 @@ const _S = A(N)`
|
|
|
21652
21652
|
] }) : null,
|
|
21653
21653
|
/* @__PURE__ */ l.jsxs(_g, { spacing: 3, children: [
|
|
21654
21654
|
!t && !$ ? /* @__PURE__ */ l.jsx(
|
|
21655
|
-
|
|
21655
|
+
lo,
|
|
21656
21656
|
{
|
|
21657
21657
|
type: "select",
|
|
21658
21658
|
placeholder: W2,
|
|
@@ -21678,7 +21678,7 @@ const _S = A(N)`
|
|
|
21678
21678
|
onValidationError: er,
|
|
21679
21679
|
fieldsSpacing: 3,
|
|
21680
21680
|
labelSpacing: 0.5,
|
|
21681
|
-
fetchConfig:
|
|
21681
|
+
fetchConfig: ho,
|
|
21682
21682
|
createConfig: Sr,
|
|
21683
21683
|
values: O.values,
|
|
21684
21684
|
validations: ht,
|
|
@@ -21688,9 +21688,9 @@ const _S = A(N)`
|
|
|
21688
21688
|
} : null
|
|
21689
21689
|
}
|
|
21690
21690
|
),
|
|
21691
|
-
|
|
21691
|
+
bo ? /* @__PURE__ */ l.jsx(N, { marginTop: "28px", width: "100%", justifyContent: "center", children: /* @__PURE__ */ l.jsx(ke, { variant: "text", startIcon: /* @__PURE__ */ l.jsx(FS, {}), onClick: Fr, size: "small", children: l6 }) }) : null
|
|
21692
21692
|
] }),
|
|
21693
|
-
|
|
21693
|
+
xo ? /* @__PURE__ */ l.jsxs(LS, { children: [
|
|
21694
21694
|
/* @__PURE__ */ l.jsx(X, { variant: "body2", color: P.palette.gray.gray1, children: l_ }),
|
|
21695
21695
|
/* @__PURE__ */ l.jsx(lt, { onClick: () => f(!0), children: /* @__PURE__ */ l.jsx(rt.Close, { sx: { height: "16px", width: "16px", opacity: "0.8" } }) })
|
|
21696
21696
|
] }) : null,
|
|
@@ -21708,7 +21708,7 @@ const _S = A(N)`
|
|
|
21708
21708
|
/* @__PURE__ */ l.jsx(Sg, { variant: "outlined", color: "tertiary", size: "small", onClick: o, disabled: rr, children: xu })
|
|
21709
21709
|
] })
|
|
21710
21710
|
] });
|
|
21711
|
-
return $ && Tr ? Xi(
|
|
21711
|
+
return $ && Tr ? Xi(vo, Tr) : vo;
|
|
21712
21712
|
}, wg = (e) => /* @__PURE__ */ S.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 10, height: 10, viewBox: "0 0 10 10", fill: "none", ...e }, /* @__PURE__ */ S.createElement("path", { d: "M9.70785 5.66671H5.70785V9.66671H4.37451V5.66671H0.374512V4.33337H4.37451V0.333374H5.70785V4.33337H9.70785V5.66671Z", fill: "#4D596C" })), LS = A(N)`
|
|
21713
21713
|
box-sizing: border-box;
|
|
21714
21714
|
width: 100%;
|
|
@@ -21798,13 +21798,13 @@ const FS = A(wg)`
|
|
|
21798
21798
|
}
|
|
21799
21799
|
`, kS = ({ setOpenTaskLinking: e, onLinkingSuccess: t }) => {
|
|
21800
21800
|
const n = Rt(), r = Ie(ug), o = Ie(dg), i = Ie(B_), s = Ie(eg), [a, c] = V(!1), [u, d] = V(null), [p, b] = V(""), [v, m] = V({}), { conversationId: h, sendTrackingEvent: f, email: g } = je(Qe);
|
|
21801
|
-
|
|
21801
|
+
oe(() => {
|
|
21802
21802
|
s && s.length && d(s[0]);
|
|
21803
21803
|
}, [s]);
|
|
21804
21804
|
const x = {
|
|
21805
21805
|
externalResourceId: p
|
|
21806
21806
|
}, y = o === se.LOADING, E = i === se.LOADING, C = () => {
|
|
21807
|
-
!a && u && "value" in u && (f(a5, { object_type: u.label }), n(
|
|
21807
|
+
!a && u && "value" in u && (f(a5, { object_type: u.label }), n(Ro({ id: String(u == null ? void 0 : u.value), args: x })).unwrap().catch((O) => {
|
|
21808
21808
|
(O == null ? void 0 : O.status) === 400 ? Be({ message: Y0, type: dt }) : Be({ message: ZI, type: dt });
|
|
21809
21809
|
})), c((O) => !O);
|
|
21810
21810
|
}, w = () => {
|
|
@@ -21833,7 +21833,7 @@ const FS = A(wg)`
|
|
|
21833
21833
|
return /* @__PURE__ */ l.jsxs(Ag, { children: [
|
|
21834
21834
|
/* @__PURE__ */ l.jsxs(_g, { spacing: 3, children: [
|
|
21835
21835
|
/* @__PURE__ */ l.jsx(
|
|
21836
|
-
|
|
21836
|
+
lo,
|
|
21837
21837
|
{
|
|
21838
21838
|
type: "select",
|
|
21839
21839
|
placeholder: W2,
|
|
@@ -21848,7 +21848,7 @@ const FS = A(wg)`
|
|
|
21848
21848
|
}
|
|
21849
21849
|
),
|
|
21850
21850
|
/* @__PURE__ */ l.jsx(
|
|
21851
|
-
|
|
21851
|
+
lo,
|
|
21852
21852
|
{
|
|
21853
21853
|
type: "text",
|
|
21854
21854
|
placeholder: o_,
|
|
@@ -22112,7 +22112,7 @@ const FS = A(wg)`
|
|
|
22112
22112
|
},
|
|
22113
22113
|
[n]
|
|
22114
22114
|
);
|
|
22115
|
-
|
|
22115
|
+
oe(() => {
|
|
22116
22116
|
const C = r.values, w = u.id, _ = u.formFields;
|
|
22117
22117
|
if (Object.values(C).filter((G) => !!G).length < _.length || !s || f()) {
|
|
22118
22118
|
i.current && clearTimeout(i.current);
|
|
@@ -22129,7 +22129,7 @@ const FS = A(wg)`
|
|
|
22129
22129
|
connectorName: T,
|
|
22130
22130
|
args: O
|
|
22131
22131
|
});
|
|
22132
|
-
}, [r, u, s, e, t, f, x]),
|
|
22132
|
+
}, [r, u, s, e, t, f, x]), oe(() => () => {
|
|
22133
22133
|
i.current && clearTimeout(i.current);
|
|
22134
22134
|
}, []);
|
|
22135
22135
|
const y = (C, w, _) => {
|
|
@@ -22350,8 +22350,8 @@ const FS = A(wg)`
|
|
|
22350
22350
|
const s = Rt(), { conversationId: a, currentSmIds: c, sendTrackingEvent: u, email: d } = je(Qe), p = Ie(ug), b = Ie(dg), { mutate: v, isPending: m } = ET({ onSuccess: i }), h = b === se.LOADING, f = {
|
|
22351
22351
|
externalResourceId: e
|
|
22352
22352
|
};
|
|
22353
|
-
|
|
22354
|
-
s(
|
|
22353
|
+
oe(() => {
|
|
22354
|
+
s(Ro({ id: t, args: { externalResourceId: e } }));
|
|
22355
22355
|
}, [e, t, s]);
|
|
22356
22356
|
const g = () => {
|
|
22357
22357
|
u(_5, {
|
|
@@ -22503,7 +22503,7 @@ const zl = /* @__PURE__ */ new Set(), RT = (e, t) => {
|
|
|
22503
22503
|
), a = Ae(() => {
|
|
22504
22504
|
r.current = !1, o.current !== void 0 && clearTimeout(o.current);
|
|
22505
22505
|
}, []);
|
|
22506
|
-
return
|
|
22506
|
+
return oe(() => () => {
|
|
22507
22507
|
o.current !== void 0 && clearTimeout(o.current);
|
|
22508
22508
|
}, []), {
|
|
22509
22509
|
scrollOnceAfterLoad: s,
|
|
@@ -22573,7 +22573,7 @@ const zl = /* @__PURE__ */ new Set(), RT = (e, t) => {
|
|
|
22573
22573
|
/* @__PURE__ */ l.jsx("span", { children: u })
|
|
22574
22574
|
] });
|
|
22575
22575
|
},
|
|
22576
|
-
children: (t.presets ?? []).map((c) => /* @__PURE__ */ l.jsx(
|
|
22576
|
+
children: (t.presets ?? []).map((c) => /* @__PURE__ */ l.jsx(Io, { value: c.hiverParam, sx: { fontSize: "14px" }, children: c.label }, c.hiverParam))
|
|
22577
22577
|
}
|
|
22578
22578
|
),
|
|
22579
22579
|
/* @__PURE__ */ l.jsx(K, { sx: d1 }),
|
|
@@ -22595,7 +22595,7 @@ const zl = /* @__PURE__ */ new Set(), RT = (e, t) => {
|
|
|
22595
22595
|
onSaveSuccess: o
|
|
22596
22596
|
}) {
|
|
22597
22597
|
const { sendTrackingEvent: i } = je(Qe), [s, a] = V({});
|
|
22598
|
-
|
|
22598
|
+
oe(() => {
|
|
22599
22599
|
if (t && r.length > 0) {
|
|
22600
22600
|
const m = {};
|
|
22601
22601
|
r.filter((h) => {
|
|
@@ -22664,7 +22664,7 @@ const zl = /* @__PURE__ */ new Set(), RT = (e, t) => {
|
|
|
22664
22664
|
] }) });
|
|
22665
22665
|
}), ZT = ({ enabled: e, ...t }) => {
|
|
22666
22666
|
const { actionQueue: n } = je(Qe);
|
|
22667
|
-
n && e && n.register(t),
|
|
22667
|
+
n && e && n.register(t), oe(() => {
|
|
22668
22668
|
if (n)
|
|
22669
22669
|
return () => {
|
|
22670
22670
|
n.destroy();
|
|
@@ -22672,19 +22672,19 @@ const zl = /* @__PURE__ */ new Set(), RT = (e, t) => {
|
|
|
22672
22672
|
}, [n, e]);
|
|
22673
22673
|
}, zT = ({ isAdmin: e = !1 }) => {
|
|
22674
22674
|
var ts, zu;
|
|
22675
|
-
const { email: t, currentSmIds: n, sendTrackingEvent: r, availableFeatures: o, conversationId: i, connectorId: s } = je(Qe), a = Rt(), { userGroupId: c, userId: u } = cn() || {}, d = ge(!1), p = ge(null), b = ge(null), v = ge(null), [m, h] = V({}), [f, g] = V(!1), [x, y] = V(!1), [E, C] = V(!1), [w, _] = V(!1), [I, T] = V(), [D, F] = V(!1), [O, j] = V(null), [G, H] = V(), [Y, Z] = V(null), [U, Q] = V(!1), [ee,
|
|
22675
|
+
const { email: t, currentSmIds: n, sendTrackingEvent: r, availableFeatures: o, conversationId: i, connectorId: s } = je(Qe), a = Rt(), { userGroupId: c, userId: u } = cn() || {}, d = ge(!1), p = ge(null), b = ge(null), v = ge(null), [m, h] = V({}), [f, g] = V(!1), [x, y] = V(!1), [E, C] = V(!1), [w, _] = V(!1), [I, T] = V(), [D, F] = V(!1), [O, j] = V(null), [G, H] = V(), [Y, Z] = V(null), [U, Q] = V(!1), [ee, ie] = V(!1), [W, q] = V(!1), [k, J] = V(!1), [re, ae] = V(void 0), he = ge(), M = Ie(X2), le = Ie(v_), Oe = Ie(C_), $ = Ie(E_), Ye = Ie(I_), et = Ie(y_), Ne = Ie(Q2), Wt = Ie(j_), wn = Ie(eg), xt = Ie(tg), ht = Ie(ng), Ke = Ie(uS), Kn = mt(o, M5), en = mt(o, fp), _r = mt(o, W5), Ar = mt(o, Z5), Qn = mt(o, z5), er = mt(o, $5), un = (ts = cn()) == null ? void 0 : ts.tenantPlatform, In = mt(
|
|
22676
22676
|
o,
|
|
22677
22677
|
un === "HIVERWEB" ? `hot-${Dd}` : Dd
|
|
22678
22678
|
), { data: Ut } = qt({
|
|
22679
22679
|
queryKey: ["connectors", "enabledAuthenticated"],
|
|
22680
22680
|
queryFn: () => ph(),
|
|
22681
22681
|
enabled: In && e
|
|
22682
|
-
}), tr = fe(() => (Ut ?? []).map((ce) => ce.id), [Ut]), { data: tn, isSuccess:
|
|
22682
|
+
}), tr = fe(() => (Ut ?? []).map((ce) => ce.id), [Ut]), { data: tn, isSuccess: po } = qt({
|
|
22683
22683
|
queryKey: ["lookup", "bulk", tr.join(",")],
|
|
22684
22684
|
queryFn: () => MT(tr),
|
|
22685
22685
|
enabled: tr.length > 0 && In && e,
|
|
22686
22686
|
refetchOnMount: !1
|
|
22687
|
-
}),
|
|
22687
|
+
}), ho = po && ((tn == null ? void 0 : tn.connectors) ?? []).some((ce) => {
|
|
22688
22688
|
var Re;
|
|
22689
22689
|
return (((Re = ce.presets) == null ? void 0 : Re.length) ?? 0) > 1;
|
|
22690
22690
|
});
|
|
@@ -22712,27 +22712,27 @@ const zl = /* @__PURE__ */ new Set(), RT = (e, t) => {
|
|
|
22712
22712
|
senderEmail: t,
|
|
22713
22713
|
conversationId: String(i),
|
|
22714
22714
|
enabled: Ar && !!t
|
|
22715
|
-
}), { emailHeaders: Rr, selectedEmail: Or } = _n ?? {}, { scrollOnceAfterLoad:
|
|
22716
|
-
|
|
22715
|
+
}), { emailHeaders: Rr, selectedEmail: Or } = _n ?? {}, { scrollOnceAfterLoad: go, resetScrollState: Fr } = DT(b), mo = et !== se.LOADING && (!$ || !Object.values($).some((ce) => ce === se.LOADING)) && M && M.length > 0;
|
|
22716
|
+
uo(() => {
|
|
22717
22717
|
var ce;
|
|
22718
|
-
U && !f && ee && ((ce = v == null ? void 0 : v.current) != null && ce.scrollHeight) &&
|
|
22718
|
+
U && !f && ee && ((ce = v == null ? void 0 : v.current) != null && ce.scrollHeight) && go(!!mo, "smooth");
|
|
22719
22719
|
}, [
|
|
22720
22720
|
U,
|
|
22721
22721
|
f,
|
|
22722
22722
|
ee,
|
|
22723
|
+
mo,
|
|
22723
22724
|
go,
|
|
22724
|
-
ho,
|
|
22725
22725
|
(zu = v == null ? void 0 : v.current) == null ? void 0 : zu.scrollHeight,
|
|
22726
22726
|
u
|
|
22727
22727
|
]);
|
|
22728
|
-
const
|
|
22728
|
+
const bo = (ce, Re) => {
|
|
22729
22729
|
r(C5, {
|
|
22730
22730
|
search_keyword: ce,
|
|
22731
22731
|
sm_ids: n,
|
|
22732
22732
|
connector_name: Re,
|
|
22733
22733
|
suggestion_type: Ke
|
|
22734
22734
|
});
|
|
22735
|
-
},
|
|
22735
|
+
}, xo = (ce, Re, kt) => {
|
|
22736
22736
|
!Array.isArray(Re) || !Re.length ? r(E5, {
|
|
22737
22737
|
search_keyword: ce,
|
|
22738
22738
|
sm_ids: n,
|
|
@@ -22746,12 +22746,12 @@ const zl = /* @__PURE__ */ new Set(), RT = (e, t) => {
|
|
|
22746
22746
|
suggestion_type: Ke
|
|
22747
22747
|
});
|
|
22748
22748
|
}, {
|
|
22749
|
-
mutate:
|
|
22749
|
+
mutate: vo,
|
|
22750
22750
|
reset: kr,
|
|
22751
22751
|
data: Dr,
|
|
22752
22752
|
isPending: de,
|
|
22753
22753
|
isIdle: Te
|
|
22754
|
-
} = kT(
|
|
22754
|
+
} = kT(bo, xo), ot = Ae(() => {
|
|
22755
22755
|
kr(), j(null);
|
|
22756
22756
|
}, [kr, j]), Ft = Pn(), tt = Ae(() => {
|
|
22757
22757
|
if (t && n.length && i) {
|
|
@@ -22773,22 +22773,24 @@ const zl = /* @__PURE__ */ new Set(), RT = (e, t) => {
|
|
|
22773
22773
|
contactEmail: t
|
|
22774
22774
|
})
|
|
22775
22775
|
).unwrap().catch(() => {
|
|
22776
|
-
a(
|
|
22776
|
+
a(Hr(null));
|
|
22777
22777
|
});
|
|
22778
22778
|
},
|
|
22779
22779
|
[a, i, t]
|
|
22780
22780
|
);
|
|
22781
|
-
if (
|
|
22781
|
+
if (oe(() => {
|
|
22782
22782
|
(async () => {
|
|
22783
|
-
u && (Q(await Rf(u)),
|
|
22783
|
+
u && (Q(await Rf(u)), ie(await l3(u)));
|
|
22784
22784
|
})();
|
|
22785
|
-
}, [u]),
|
|
22785
|
+
}, [u]), oe(() => {
|
|
22786
22786
|
An || H(Or || t);
|
|
22787
|
-
}, [t, Or, An]),
|
|
22787
|
+
}, [t, Or, An]), oe(() => {
|
|
22788
22788
|
G && i && RT(String(i), G);
|
|
22789
|
-
}, [G, i]),
|
|
22789
|
+
}, [G, i]), oe(() => {
|
|
22790
22790
|
ee && u && u3(u);
|
|
22791
|
-
}, [ee, u]),
|
|
22791
|
+
}, [ee, u]), oe(() => {
|
|
22792
|
+
a(Hr(null));
|
|
22793
|
+
}, [s, a]), oe(() => {
|
|
22792
22794
|
var ce;
|
|
22793
22795
|
if (xt) {
|
|
22794
22796
|
y(!0);
|
|
@@ -22796,12 +22798,12 @@ const zl = /* @__PURE__ */ new Set(), RT = (e, t) => {
|
|
|
22796
22798
|
ne(kt, Re);
|
|
22797
22799
|
} else
|
|
22798
22800
|
y(!1), a(u_());
|
|
22799
|
-
}, [xt, ne, a]),
|
|
22801
|
+
}, [xt, ne, a]), oe(() => {
|
|
22800
22802
|
const ce = tt();
|
|
22801
22803
|
return Fr(), () => {
|
|
22802
22804
|
ce == null || ce(), a(Q0.clearConnectorList());
|
|
22803
22805
|
};
|
|
22804
|
-
}, [a, tt, Fr]),
|
|
22806
|
+
}, [a, tt, Fr]), oe(() => {
|
|
22805
22807
|
var ce;
|
|
22806
22808
|
if (Ye && M && M.length && Sr && !d.current) {
|
|
22807
22809
|
const { cards_per_app: Re, total_empty_cards: kt, total_cards_with_errors: Vn } = Sr, $u = s ? (ce = Re[0]) == null ? void 0 : ce.app_name : null;
|
|
@@ -22818,7 +22820,7 @@ const zl = /* @__PURE__ */ new Set(), RT = (e, t) => {
|
|
|
22818
22820
|
return () => {
|
|
22819
22821
|
d.current = !1;
|
|
22820
22822
|
};
|
|
22821
|
-
}, [Ye, M, Sr, r, n, s]),
|
|
22823
|
+
}, [Ye, M, Sr, r, n, s]), oe(() => {
|
|
22822
22824
|
if (i && n && n.length) {
|
|
22823
22825
|
const ce = a(
|
|
22824
22826
|
Rs({
|
|
@@ -22831,7 +22833,7 @@ const zl = /* @__PURE__ */ new Set(), RT = (e, t) => {
|
|
|
22831
22833
|
);
|
|
22832
22834
|
return () => ce.abort();
|
|
22833
22835
|
}
|
|
22834
|
-
}, [a, n, i, er, s]),
|
|
22836
|
+
}, [a, n, i, er, s]), oe(() => {
|
|
22835
22837
|
const ce = (Re) => {
|
|
22836
22838
|
var Vn;
|
|
22837
22839
|
if (!(Re instanceof CustomEvent))
|
|
@@ -22842,7 +22844,7 @@ const zl = /* @__PURE__ */ new Set(), RT = (e, t) => {
|
|
|
22842
22844
|
return window.addEventListener(u1.OPEN_FORM_VIEW, ce), () => {
|
|
22843
22845
|
window.removeEventListener(u1.OPEN_FORM_VIEW, ce);
|
|
22844
22846
|
};
|
|
22845
|
-
}, []),
|
|
22847
|
+
}, []), oe(() => {
|
|
22846
22848
|
if (!(Ne != null && Ne.length) || !m.connectorKey)
|
|
22847
22849
|
return;
|
|
22848
22850
|
const ce = m.connectorKey;
|
|
@@ -22878,9 +22880,9 @@ const zl = /* @__PURE__ */ new Set(), RT = (e, t) => {
|
|
|
22878
22880
|
ug_id: c
|
|
22879
22881
|
});
|
|
22880
22882
|
}
|
|
22881
|
-
ht ? F(!0) : a(
|
|
22883
|
+
ht ? F(!0) : a(Hr(null));
|
|
22882
22884
|
}, vt = () => {
|
|
22883
|
-
C(!1), a(
|
|
22885
|
+
C(!1), a(Hr(null)), T(void 0), F(!1);
|
|
22884
22886
|
}, nt = () => {
|
|
22885
22887
|
tt(), C(!1), y(!1), a(Q0.clearConnectorList());
|
|
22886
22888
|
}, it = [
|
|
@@ -22946,7 +22948,7 @@ const zl = /* @__PURE__ */ new Set(), RT = (e, t) => {
|
|
|
22946
22948
|
{
|
|
22947
22949
|
selectedObject: O,
|
|
22948
22950
|
setSelectedObject: j,
|
|
22949
|
-
fetchSearchResults:
|
|
22951
|
+
fetchSearchResults: vo,
|
|
22950
22952
|
onReset: ot,
|
|
22951
22953
|
root: p.current
|
|
22952
22954
|
}
|
|
@@ -23026,7 +23028,7 @@ const zl = /* @__PURE__ */ new Set(), RT = (e, t) => {
|
|
|
23026
23028
|
setSelectedEmail: H
|
|
23027
23029
|
}
|
|
23028
23030
|
) }),
|
|
23029
|
-
In &&
|
|
23031
|
+
In && ho && e && /* @__PURE__ */ l.jsx(we, { title: "Update customer identity mapping", placement: "top", children: /* @__PURE__ */ l.jsx(
|
|
23030
23032
|
lt,
|
|
23031
23033
|
{
|
|
23032
23034
|
"aria-label": "Open customer identity mapping settings",
|
|
@@ -23038,7 +23040,7 @@ const zl = /* @__PURE__ */ new Set(), RT = (e, t) => {
|
|
|
23038
23040
|
}
|
|
23039
23041
|
) })
|
|
23040
23042
|
] }) : null,
|
|
23041
|
-
!Ar && In &&
|
|
23043
|
+
!Ar && In && ho && e && (M != null && M.length) ? /* @__PURE__ */ l.jsx(
|
|
23042
23044
|
ke,
|
|
23043
23045
|
{
|
|
23044
23046
|
fullWidth: !0,
|
|
@@ -23195,7 +23197,7 @@ const zl = /* @__PURE__ */ new Set(), RT = (e, t) => {
|
|
|
23195
23197
|
actionQueue: c,
|
|
23196
23198
|
store: u,
|
|
23197
23199
|
connectorId: d
|
|
23198
|
-
}) => (
|
|
23200
|
+
}) => (oe(() => {
|
|
23199
23201
|
YT();
|
|
23200
23202
|
}, []), /* @__PURE__ */ l.jsx(wu, { store: za, children: /* @__PURE__ */ l.jsx(ga, { inter: !0, children: /* @__PURE__ */ l.jsx(Hu, { children: /* @__PURE__ */ l.jsx(
|
|
23201
23203
|
$T,
|
|
@@ -23232,7 +23234,7 @@ const zl = /* @__PURE__ */ new Set(), RT = (e, t) => {
|
|
|
23232
23234
|
if (c)
|
|
23233
23235
|
return c.getData("connectorId");
|
|
23234
23236
|
});
|
|
23235
|
-
return
|
|
23237
|
+
return oe(() => {
|
|
23236
23238
|
if (!c) return;
|
|
23237
23239
|
const p = c.subscribe((b) => {
|
|
23238
23240
|
d(b);
|
|
@@ -23529,7 +23531,7 @@ const rL = "Everything looks good", oL = "Something is not working", iL = "Share
|
|
|
23529
23531
|
}
|
|
23530
23532
|
) }) : null,
|
|
23531
23533
|
/* @__PURE__ */ l.jsx(
|
|
23532
|
-
|
|
23534
|
+
lo,
|
|
23533
23535
|
{
|
|
23534
23536
|
type: "text",
|
|
23535
23537
|
placeholder: r ? pL : hL,
|
|
@@ -23668,14 +23670,14 @@ const rL = "Everything looks good", oL = "Something is not working", iL = "Share
|
|
|
23668
23670
|
}),
|
|
23669
23671
|
[_, E, y, w, C, r, n]
|
|
23670
23672
|
);
|
|
23671
|
-
if (
|
|
23673
|
+
if (oe(() => {
|
|
23672
23674
|
const U = Date.now();
|
|
23673
23675
|
return () => {
|
|
23674
23676
|
c(Tn.DATA_CARD_DURATION, { ...I, duration: Date.now() - U });
|
|
23675
23677
|
};
|
|
23676
|
-
}, [c]),
|
|
23677
|
-
var Q, ee,
|
|
23678
|
-
const U = (
|
|
23678
|
+
}, [c]), oe(() => {
|
|
23679
|
+
var Q, ee, ie;
|
|
23680
|
+
const U = (ie = (ee = (Q = e == null ? void 0 : e.cardData) == null ? void 0 : Q.data) == null ? void 0 : ee.flatDetails) == null ? void 0 : ie.data;
|
|
23679
23681
|
if (U) {
|
|
23680
23682
|
const W = U.sort((q, k) => q.priority - k.priority);
|
|
23681
23683
|
h(W), c(Tn.OBJECT_HOVERED, I);
|
|
@@ -23734,15 +23736,15 @@ const rL = "Everything looks good", oL = "Something is not working", iL = "Share
|
|
|
23734
23736
|
o ? /* @__PURE__ */ l.jsx(LL, { variant: "text", size: "small", endIcon: /* @__PURE__ */ l.jsx(rt.ArrowForward, {}), onClick: H, children: cL }) : null
|
|
23735
23737
|
] }),
|
|
23736
23738
|
/* @__PURE__ */ l.jsx(wL, {}),
|
|
23737
|
-
/* @__PURE__ */ l.jsx(K, { paddingY: "16px", children: m.map(({ key: U, value: Q, label: ee, deepLink:
|
|
23739
|
+
/* @__PURE__ */ l.jsx(K, { paddingY: "16px", children: m.map(({ key: U, value: Q, label: ee, deepLink: ie }) => /* @__PURE__ */ l.jsxs(SL, { children: [
|
|
23738
23740
|
/* @__PURE__ */ l.jsxs(_L, { children: [
|
|
23739
23741
|
ee,
|
|
23740
23742
|
":"
|
|
23741
23743
|
] }),
|
|
23742
|
-
/* @__PURE__ */ l.jsx(we, { title: (Q == null ? void 0 : Q.length) > Rc ? Q : "", arrow: !0, placement: "top", children:
|
|
23744
|
+
/* @__PURE__ */ l.jsx(we, { title: (Q == null ? void 0 : Q.length) > Rc ? Q : "", arrow: !0, placement: "top", children: ie ? /* @__PURE__ */ l.jsx(
|
|
23743
23745
|
$i,
|
|
23744
23746
|
{
|
|
23745
|
-
href:
|
|
23747
|
+
href: ie,
|
|
23746
23748
|
target: "_blank",
|
|
23747
23749
|
rel: "noopener noreferrer",
|
|
23748
23750
|
style: { textDecoration: "none", color: P.palette.primary.main },
|
|
@@ -23788,7 +23790,7 @@ const rL = "Everything looks good", oL = "Something is not working", iL = "Share
|
|
|
23788
23790
|
const r = e.getBoundingClientRect(), o = window.innerHeight, i = window.innerWidth, s = r.top, a = o - r.bottom;
|
|
23789
23791
|
return a >= t || a > s ? r.left < n / 2 ? "bottom-start" : i - r.right < n / 2 ? "bottom-end" : "bottom" : r.left < n / 2 ? "top-start" : i - r.right < n / 2 ? "top-end" : "top";
|
|
23790
23792
|
}, DL = A(({ className: e, ...t }) => /* @__PURE__ */ l.jsx(we, { ...t, classes: { popper: e } }))(() => ({
|
|
23791
|
-
[`& .${
|
|
23793
|
+
[`& .${no.tooltip}`]: {
|
|
23792
23794
|
backgroundColor: "#fff",
|
|
23793
23795
|
padding: 0,
|
|
23794
23796
|
maxWidth: "288px",
|
|
@@ -23805,7 +23807,7 @@ function NL({ elements: e, title: t, onKeyChange: n }) {
|
|
|
23805
23807
|
const [r, o] = V(!1), [i, s] = V(null), [a, c] = V(""), [u, d] = V("bottom"), [p, b] = V(!1), v = Me.useRef(null), m = Me.useRef({ x: 0, y: 0 }), h = Me.useCallback(() => {
|
|
23806
23808
|
v.current && (clearTimeout(v.current), v.current = null);
|
|
23807
23809
|
}, []);
|
|
23808
|
-
|
|
23810
|
+
oe(() => {
|
|
23809
23811
|
if (e && e.length > 0) {
|
|
23810
23812
|
const C = (I) => {
|
|
23811
23813
|
const T = I.currentTarget, D = T.textContent || "", F = h1(T);
|
|
@@ -23825,7 +23827,7 @@ function NL({ elements: e, title: t, onKeyChange: n }) {
|
|
|
23825
23827
|
break;
|
|
23826
23828
|
}
|
|
23827
23829
|
if (!F) {
|
|
23828
|
-
const O = document.querySelector(`.${
|
|
23830
|
+
const O = document.querySelector(`.${no.tooltip}`);
|
|
23829
23831
|
O && p1(T, D, O.getBoundingClientRect()) && (F = !0);
|
|
23830
23832
|
}
|
|
23831
23833
|
F || (o(!1), s(null));
|
|
@@ -23880,9 +23882,9 @@ const jL = ({
|
|
|
23880
23882
|
sendTrackingEvent: s
|
|
23881
23883
|
}) => {
|
|
23882
23884
|
const [a, c] = V(null), [u, d] = V([]), { data: p, isError: b } = eL(e, t, n);
|
|
23883
|
-
return
|
|
23885
|
+
return oe(() => {
|
|
23884
23886
|
p ? c(p) : b && c(null);
|
|
23885
|
-
}, [p, b]),
|
|
23887
|
+
}, [p, b]), oe(() => {
|
|
23886
23888
|
let v = null;
|
|
23887
23889
|
if (a && Object.keys(a).length && e) {
|
|
23888
23890
|
v = new tL(Object.keys(a) || [], d);
|
|
@@ -24056,7 +24058,7 @@ const BL = (e) => {
|
|
|
24056
24058
|
[ve.ERROR]: "Syncing failed",
|
|
24057
24059
|
[ve.UNAUTHENTICATED]: "Sync conversation"
|
|
24058
24060
|
}, ln = Xl({}), JL = A(({ className: e, ...t }) => /* @__PURE__ */ l.jsx(we, { ...t, classes: { popper: e } }))(() => ({
|
|
24059
|
-
[`& .${
|
|
24061
|
+
[`& .${no.tooltip}`]: {
|
|
24060
24062
|
backgroundColor: "#fff",
|
|
24061
24063
|
padding: 0,
|
|
24062
24064
|
maxWidth: "288px",
|
|
@@ -24166,7 +24168,7 @@ const BL = (e) => {
|
|
|
24166
24168
|
column-gap: 8px;
|
|
24167
24169
|
`, v1 = Ni(), AR = ({ onContinue: e, connectorName: t }) => {
|
|
24168
24170
|
const { connectorFunctions: n } = je(ln), r = n == null ? void 0 : n.sendTrackingEvent;
|
|
24169
|
-
return
|
|
24171
|
+
return oe(() => {
|
|
24170
24172
|
const o = v1.getItem(b1);
|
|
24171
24173
|
if (!r || !t || o === "true")
|
|
24172
24174
|
return;
|
|
@@ -24731,7 +24733,7 @@ const tO = A(N)`
|
|
|
24731
24733
|
}
|
|
24732
24734
|
) }) : null,
|
|
24733
24735
|
/* @__PURE__ */ l.jsx(
|
|
24734
|
-
|
|
24736
|
+
lo,
|
|
24735
24737
|
{
|
|
24736
24738
|
type: "text",
|
|
24737
24739
|
placeholder: a,
|
|
@@ -25068,7 +25070,7 @@ const RO = A(N)`
|
|
|
25068
25070
|
}, ee = (k) => {
|
|
25069
25071
|
const { entityType: J, displayValue: re } = k;
|
|
25070
25072
|
h((ae) => ({ ...ae, [J + re]: k })), v((ae) => [k, ...ae]), p(""), j();
|
|
25071
|
-
},
|
|
25073
|
+
}, ie = () => {
|
|
25072
25074
|
y == null || y(Vt.email_logging_search_initiated, { app_name: s });
|
|
25073
25075
|
}, W = () => {
|
|
25074
25076
|
G({ payload: { autoLogEnabled: !r }, conversationId: f });
|
|
@@ -25115,7 +25117,7 @@ const RO = A(N)`
|
|
|
25115
25117
|
name: "search",
|
|
25116
25118
|
value: d,
|
|
25117
25119
|
onChange: Q,
|
|
25118
|
-
onFocus:
|
|
25120
|
+
onFocus: ie,
|
|
25119
25121
|
startAdornment: /* @__PURE__ */ l.jsx(YO, { children: /* @__PURE__ */ l.jsx(Lg, {}) }),
|
|
25120
25122
|
size: "small"
|
|
25121
25123
|
}
|
|
@@ -25245,7 +25247,7 @@ const RO = A(N)`
|
|
|
25245
25247
|
}, b = (m) => {
|
|
25246
25248
|
s(m);
|
|
25247
25249
|
};
|
|
25248
|
-
return
|
|
25250
|
+
return oe(() => {
|
|
25249
25251
|
if (!(!e || !u))
|
|
25250
25252
|
return e.observe({
|
|
25251
25253
|
setEmailButtonContainers: d,
|
|
@@ -26190,7 +26192,7 @@ const mF = A("div")`
|
|
|
26190
26192
|
}, S1 = 288, AF = 405, SF = 4, TF = ({ onVisibilityChange: e } = {}) => {
|
|
26191
26193
|
var E, C;
|
|
26192
26194
|
const { conversationId: t, connectorFunctions: n } = je(ln), { data: r, refetch: o } = es({ conversationId: t }), i = Pn(), [s, a] = V(!1), c = ge(null), u = ge(null), [d, p] = V({ top: 0, left: 0 }), b = !!t && !!((E = r == null ? void 0 : r.emailLogSettings) != null && E.enabled);
|
|
26193
|
-
|
|
26195
|
+
oe(() => {
|
|
26194
26196
|
e == null || e(b);
|
|
26195
26197
|
}, [b, e]);
|
|
26196
26198
|
const { mutate: v, isPending: m } = Hg({
|
|
@@ -26203,7 +26205,7 @@ const mF = A("div")`
|
|
|
26203
26205
|
app_name: (w = r == null ? void 0 : r.emailLogSettings) == null ? void 0 : w.connectorName
|
|
26204
26206
|
}));
|
|
26205
26207
|
};
|
|
26206
|
-
|
|
26208
|
+
uo(() => {
|
|
26207
26209
|
if (!s || !c.current) return;
|
|
26208
26210
|
const w = () => {
|
|
26209
26211
|
const _ = c.current.getBoundingClientRect(), I = Math.max(8, Math.min(_.left, window.innerWidth - S1 - 8));
|
|
@@ -26212,7 +26214,7 @@ const mF = A("div")`
|
|
|
26212
26214
|
return w(), window.addEventListener("resize", w), window.addEventListener("scroll", w, !0), () => {
|
|
26213
26215
|
window.removeEventListener("resize", w), window.removeEventListener("scroll", w, !0);
|
|
26214
26216
|
};
|
|
26215
|
-
}, [s]),
|
|
26217
|
+
}, [s]), oe(() => {
|
|
26216
26218
|
if (!s) return;
|
|
26217
26219
|
const w = (_) => {
|
|
26218
26220
|
var T, D;
|
|
@@ -26338,7 +26340,7 @@ const mF = A("div")`
|
|
|
26338
26340
|
};
|
|
26339
26341
|
return n.subscribe(i, "connectors"), n.subscribe(() => o(), "sideBarTabs", !1), n.subscribe(s, "connectorId", !1), n.subscribe(r, "inboxIds", !1), n;
|
|
26340
26342
|
}, OF = ({ children: e }) => /* @__PURE__ */ l.jsx(ga, { inter: !0, children: e }), FF = A(({ className: e, ...t }) => /* @__PURE__ */ l.jsx(we, { ...t, classes: { popper: e } }))(() => ({
|
|
26341
|
-
[`& .${
|
|
26343
|
+
[`& .${no.tooltip}`]: {
|
|
26342
26344
|
backgroundColor: "#fff",
|
|
26343
26345
|
padding: 0,
|
|
26344
26346
|
width: "min-content",
|
|
@@ -26347,7 +26349,7 @@ const mF = A("div")`
|
|
|
26347
26349
|
boxShadow: "0px 3px 15px 0px #00000040",
|
|
26348
26350
|
color: "#000"
|
|
26349
26351
|
},
|
|
26350
|
-
[`& .${
|
|
26352
|
+
[`& .${no.arrow}`]: {
|
|
26351
26353
|
color: "#fff !important"
|
|
26352
26354
|
}
|
|
26353
26355
|
})), kF = A(N)`
|