@hiver/connector-agent 4.15.1-checkboxFix-beta.3 → 4.15.1-checkboxFix-beta.4
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/index.es.js
CHANGED
|
@@ -14,10 +14,10 @@ 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 oe, useRef as he, useCallback as Se, useSyncExternalStore as z1, useLayoutEffect 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 De, icons as Qe, Menu as Xg, MenuItem as
|
|
17
|
+
import Me, { createContext as Xl, useState as V, useContext as je, useEffect as oe, useRef as he, useCallback as Se, useSyncExternalStore as z1, useLayoutEffect as lo, isValidElement as _o, cloneElement as Dc, useId as Zg, forwardRef as fa, useMemo as pe, Component as zg, Fragment as Nc, useReducer as $g, 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 De, icons as Qe, Menu as Xg, MenuItem as wo, ListItemIcon as Yg, brandIcons as X1, Grid as Jg, Link as $i, Skeleton as ql, TableHead as qg, TableCell as pa, TableRow as Y1, palette as Kg, Icon as J1, DatePicker as Qg, DateTextField as em, InputAdornment as tm, TextField as Kl, tooltipClasses as to, ListSubheader as bs, InputBase as nm, CircularProgress as _i, FormControl as ha, Select as Ql, Chip as rm, Paper as eu, Popper as om, ClickAwayListener as q1, Dialog as K1, TableContainer as im, Table as sm, TableBody as am, HiverProvider as ga, RadioGroup as Q1, FormControlLabel as ef, Radio as tf, Checkbox as nf, OutlinedInput as rf, Switch as of, createTheme as cm, ThemeProvider as lm } from "@hiver/hiver-ui-kit";
|
|
19
19
|
import um, { createPortal as Xi } from "react-dom";
|
|
20
|
-
var Ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, jc = { exports: {} },
|
|
20
|
+
var Ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, jc = { exports: {} }, oi = {};
|
|
21
21
|
/**
|
|
22
22
|
* @license React
|
|
23
23
|
* react-jsx-runtime.production.min.js
|
|
@@ -29,7 +29,7 @@ var Ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
29
29
|
*/
|
|
30
30
|
var Yu;
|
|
31
31
|
function dm() {
|
|
32
|
-
if (Yu) return
|
|
32
|
+
if (Yu) return oi;
|
|
33
33
|
Yu = 1;
|
|
34
34
|
var e = Me, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
35
35
|
function s(a, c, u) {
|
|
@@ -39,9 +39,9 @@ function dm() {
|
|
|
39
39
|
if (a && a.defaultProps) for (d in c = a.defaultProps, c) p[d] === void 0 && (p[d] = c[d]);
|
|
40
40
|
return { $$typeof: t, type: a, key: b, ref: v, props: p, _owner: o.current };
|
|
41
41
|
}
|
|
42
|
-
return
|
|
42
|
+
return oi.Fragment = n, oi.jsx = s, oi.jsxs = s, oi;
|
|
43
43
|
}
|
|
44
|
-
var
|
|
44
|
+
var ii = {};
|
|
45
45
|
/**
|
|
46
46
|
* @license React
|
|
47
47
|
* react-jsx-runtime.development.js
|
|
@@ -331,7 +331,7 @@ function fm() {
|
|
|
331
331
|
}
|
|
332
332
|
return "";
|
|
333
333
|
}
|
|
334
|
-
var Zt = Object.prototype.hasOwnProperty,
|
|
334
|
+
var Zt = Object.prototype.hasOwnProperty, Kn = {}, gt = g.ReactDebugCurrentFrame;
|
|
335
335
|
function ft(R) {
|
|
336
336
|
if (R) {
|
|
337
337
|
var z = R._owner, ne = Le(R.type, R._source, z ? z.type : null);
|
|
@@ -354,15 +354,15 @@ function fm() {
|
|
|
354
354
|
} catch (ot) {
|
|
355
355
|
Ce = ot;
|
|
356
356
|
}
|
|
357
|
-
Ce && !(Ce instanceof Error) && (ft(ke), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", me || "React class", ne, Ae, typeof Ce), ft(null)), Ce instanceof Error && !(Ce.message in
|
|
357
|
+
Ce && !(Ce instanceof Error) && (ft(ke), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", me || "React class", ne, Ae, typeof Ce), ft(null)), Ce instanceof Error && !(Ce.message in Kn) && (Kn[Ce.message] = !0, ft(ke), x("Failed %s type: %s", ne, Ce.message), ft(null));
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
var
|
|
361
|
+
var wr = Array.isArray;
|
|
362
362
|
function nn(R) {
|
|
363
|
-
return
|
|
363
|
+
return wr(R);
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function Ir(R) {
|
|
366
366
|
{
|
|
367
367
|
var z = typeof Symbol == "function" && Symbol.toStringTag, ne = z && R[Symbol.toStringTag] || R.constructor.name || "Object";
|
|
368
368
|
return ne;
|
|
@@ -370,26 +370,26 @@ function fm() {
|
|
|
370
370
|
}
|
|
371
371
|
function Mn(R) {
|
|
372
372
|
try {
|
|
373
|
-
return
|
|
373
|
+
return _r(R), !1;
|
|
374
374
|
} catch {
|
|
375
375
|
return !0;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function _r(R) {
|
|
379
379
|
return "" + R;
|
|
380
380
|
}
|
|
381
381
|
function Pn(R) {
|
|
382
382
|
if (Mn(R))
|
|
383
|
-
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
383
|
+
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ir(R)), _r(R);
|
|
384
384
|
}
|
|
385
385
|
var Ft = g.ReactCurrentOwner, St = {
|
|
386
386
|
key: !0,
|
|
387
387
|
ref: !0,
|
|
388
388
|
__self: !0,
|
|
389
389
|
__source: !0
|
|
390
|
-
},
|
|
390
|
+
}, Ar, Qn, zt;
|
|
391
391
|
zt = {};
|
|
392
|
-
function
|
|
392
|
+
function fo(R) {
|
|
393
393
|
if (Zt.call(R, "ref")) {
|
|
394
394
|
var z = Object.getOwnPropertyDescriptor(R, "ref").get;
|
|
395
395
|
if (z && z.isReactWarning)
|
|
@@ -397,7 +397,7 @@ function fm() {
|
|
|
397
397
|
}
|
|
398
398
|
return R.ref !== void 0;
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function po(R) {
|
|
401
401
|
if (Zt.call(R, "key")) {
|
|
402
402
|
var z = Object.getOwnPropertyDescriptor(R, "key").get;
|
|
403
403
|
if (z && z.isReactWarning)
|
|
@@ -405,7 +405,7 @@ function fm() {
|
|
|
405
405
|
}
|
|
406
406
|
return R.key !== void 0;
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function Sr(R, z) {
|
|
409
409
|
if (typeof R.ref == "string" && Ft.current && z && Ft.current.stateNode !== z) {
|
|
410
410
|
var ne = j(Ft.current.type);
|
|
411
411
|
zt[ne] || (x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', j(Ft.current.type), R.ref), zt[ne] = !0);
|
|
@@ -414,7 +414,7 @@ function fm() {
|
|
|
414
414
|
function kt(R, z) {
|
|
415
415
|
{
|
|
416
416
|
var ne = function() {
|
|
417
|
-
|
|
417
|
+
Ar || (Ar = !0, x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", z));
|
|
418
418
|
};
|
|
419
419
|
ne.isReactWarning = !0, Object.defineProperty(R, "key", {
|
|
420
420
|
get: ne,
|
|
@@ -422,10 +422,10 @@ function fm() {
|
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function er(R, z) {
|
|
426
426
|
{
|
|
427
427
|
var ne = function() {
|
|
428
|
-
|
|
428
|
+
Qn || (Qn = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", z));
|
|
429
429
|
};
|
|
430
430
|
ne.isReactWarning = !0, Object.defineProperty(R, "ref", {
|
|
431
431
|
get: ne,
|
|
@@ -433,7 +433,7 @@ function fm() {
|
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
|
-
var
|
|
436
|
+
var tr = function(R, z, ne, me, ke, Re, Ae) {
|
|
437
437
|
var Ce = {
|
|
438
438
|
// This tag allows us to uniquely identify this as a React Element
|
|
439
439
|
$$typeof: t,
|
|
@@ -462,10 +462,10 @@ function fm() {
|
|
|
462
462
|
value: ke
|
|
463
463
|
}), Object.freeze && (Object.freeze(Ce.props), Object.freeze(Ce)), Ce;
|
|
464
464
|
};
|
|
465
|
-
function
|
|
465
|
+
function Tr(R, z, ne, me, ke) {
|
|
466
466
|
{
|
|
467
467
|
var Re, Ae = {}, Ce = null, vt = null;
|
|
468
|
-
ne !== void 0 && (Pn(ne), Ce = "" + ne),
|
|
468
|
+
ne !== void 0 && (Pn(ne), Ce = "" + ne), po(z) && (Pn(z.key), Ce = "" + z.key), fo(z) && (vt = z.ref, Sr(z, ke));
|
|
469
469
|
for (Re in z)
|
|
470
470
|
Zt.call(z, Re) && !St.hasOwnProperty(Re) && (Ae[Re] = z[Re]);
|
|
471
471
|
if (R && R.defaultProps) {
|
|
@@ -475,25 +475,25 @@ function fm() {
|
|
|
475
475
|
}
|
|
476
476
|
if (Ce || vt) {
|
|
477
477
|
var it = typeof R == "function" ? R.displayName || R.name || "Unknown" : R;
|
|
478
|
-
Ce && kt(Ae, it), vt &&
|
|
478
|
+
Ce && kt(Ae, it), vt && er(Ae, it);
|
|
479
479
|
}
|
|
480
|
-
return
|
|
480
|
+
return tr(R, Ce, vt, ke, me, Ft.current, Ae);
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
var $t = g.ReactCurrentOwner,
|
|
483
|
+
var $t = g.ReactCurrentOwner, Lr = g.ReactDebugCurrentFrame;
|
|
484
484
|
function En(R) {
|
|
485
485
|
if (R) {
|
|
486
486
|
var z = R._owner, ne = Le(R.type, R._source, z ? z.type : null);
|
|
487
|
-
|
|
487
|
+
Lr.setExtraStackFrame(ne);
|
|
488
488
|
} else
|
|
489
|
-
|
|
489
|
+
Lr.setExtraStackFrame(null);
|
|
490
490
|
}
|
|
491
491
|
var wn;
|
|
492
492
|
wn = !1;
|
|
493
|
-
function
|
|
493
|
+
function Rr(R) {
|
|
494
494
|
return typeof R == "object" && R !== null && R.$$typeof === t;
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function Or() {
|
|
497
497
|
{
|
|
498
498
|
if ($t.current) {
|
|
499
499
|
var R = j($t.current.type);
|
|
@@ -505,13 +505,13 @@ Check the render method of \`` + R + "`.";
|
|
|
505
505
|
return "";
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function ho(R) {
|
|
509
509
|
return "";
|
|
510
510
|
}
|
|
511
|
-
var
|
|
512
|
-
function
|
|
511
|
+
var Fr = {};
|
|
512
|
+
function go(R) {
|
|
513
513
|
{
|
|
514
|
-
var z =
|
|
514
|
+
var z = Or();
|
|
515
515
|
if (!z) {
|
|
516
516
|
var ne = typeof R == "string" ? R : R.displayName || R.name;
|
|
517
517
|
ne && (z = `
|
|
@@ -521,39 +521,39 @@ Check the top-level render call using <` + ne + ">.");
|
|
|
521
521
|
return z;
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function mo(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 =
|
|
530
|
-
if (
|
|
529
|
+
var ne = go(z);
|
|
530
|
+
if (Fr[ne])
|
|
531
531
|
return;
|
|
532
|
-
|
|
532
|
+
Fr[ne] = !0;
|
|
533
533
|
var me = "";
|
|
534
534
|
R && R._owner && R._owner !== $t.current && (me = " It was passed a child from " + j(R._owner.type) + "."), En(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), En(null);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
function
|
|
537
|
+
function bo(R, z) {
|
|
538
538
|
{
|
|
539
539
|
if (typeof R != "object")
|
|
540
540
|
return;
|
|
541
541
|
if (nn(R))
|
|
542
542
|
for (var ne = 0; ne < R.length; ne++) {
|
|
543
543
|
var me = R[ne];
|
|
544
|
-
|
|
544
|
+
Rr(me) && mo(me, z);
|
|
545
545
|
}
|
|
546
|
-
else if (
|
|
546
|
+
else if (Rr(R))
|
|
547
547
|
R._store && (R._store.validated = !0);
|
|
548
548
|
else if (R) {
|
|
549
549
|
var ke = f(R);
|
|
550
550
|
if (typeof ke == "function" && ke !== R.entries)
|
|
551
551
|
for (var Re = ke.call(R), Ae; !(Ae = Re.next()).done; )
|
|
552
|
-
|
|
552
|
+
Rr(Ae.value) && mo(Ae.value, z);
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function xo(R) {
|
|
557
557
|
{
|
|
558
558
|
var z = R.type;
|
|
559
559
|
if (z == null || typeof z == "string")
|
|
@@ -578,7 +578,7 @@ Check the top-level render call using <` + ne + ">.");
|
|
|
578
578
|
typeof z.getDefaultProps == "function" && !z.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function kr(R) {
|
|
582
582
|
{
|
|
583
583
|
for (var z = Object.keys(R.props), ne = 0; ne < z.length; ne++) {
|
|
584
584
|
var me = z[ne];
|
|
@@ -590,19 +590,19 @@ Check the top-level render call using <` + ne + ">.");
|
|
|
590
590
|
R.ref !== null && (En(R), x("Invalid attribute `ref` supplied to `React.Fragment`."), En(null));
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
|
-
var
|
|
593
|
+
var Dr = {};
|
|
594
594
|
function de(R, z, ne, me, ke, Re) {
|
|
595
595
|
{
|
|
596
596
|
var Ae = D(R);
|
|
597
597
|
if (!Ae) {
|
|
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 =
|
|
601
|
-
vt ? Ce += vt : Ce +=
|
|
600
|
+
var vt = ho();
|
|
601
|
+
vt ? Ce += vt : Ce += Or();
|
|
602
602
|
var ot;
|
|
603
603
|
R === null ? ot = "null" : nn(R) ? ot = "array" : R !== void 0 && R.$$typeof === t ? (ot = "<" + (j(R.type) || "Unknown") + " />", Ce = " Did you accidentally export a JSX literal instead of a component?") : ot = 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", ot, Ce);
|
|
604
604
|
}
|
|
605
|
-
var it =
|
|
605
|
+
var it = Tr(R, z, ne, ke, Re);
|
|
606
606
|
if (it == null)
|
|
607
607
|
return it;
|
|
608
608
|
if (Ae) {
|
|
@@ -611,28 +611,28 @@ Check the top-level render call using <` + ne + ">.");
|
|
|
611
611
|
if (me)
|
|
612
612
|
if (nn(It)) {
|
|
613
613
|
for (var In = 0; In < It.length; In++)
|
|
614
|
-
|
|
614
|
+
bo(It[In], 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
|
+
bo(It, R);
|
|
620
620
|
}
|
|
621
621
|
if (Zt.call(z, "key")) {
|
|
622
622
|
var Bn = j(R), yt = Object.keys(z).filter(function(ts) {
|
|
623
623
|
return ts !== "key";
|
|
624
|
-
}),
|
|
625
|
-
if (!
|
|
624
|
+
}), ri = yt.length > 0 ? "{key: someKey, " + yt.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
625
|
+
if (!Dr[Bn + ri]) {
|
|
626
626
|
var Xa = yt.length > 0 ? "{" + yt.join(": ..., ") + ": ...}" : "{}";
|
|
627
627
|
x(`A props object containing a "key" prop is being spread into JSX:
|
|
628
628
|
let props = %s;
|
|
629
629
|
<%s {...props} />
|
|
630
630
|
React keys must be passed directly to JSX without using spread:
|
|
631
631
|
let props = %s;
|
|
632
|
-
<%s key={someKey} {...props} />`,
|
|
632
|
+
<%s key={someKey} {...props} />`, ri, Bn, Xa, Bn), Dr[Bn + ri] = !0;
|
|
633
633
|
}
|
|
634
634
|
}
|
|
635
|
-
return R === r ?
|
|
635
|
+
return R === r ? kr(it) : xo(it), it;
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
638
|
function _e(R, z, ne) {
|
|
@@ -642,11 +642,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
642
642
|
return de(R, z, ne, !1);
|
|
643
643
|
}
|
|
644
644
|
var Dt = Je, rt = _e;
|
|
645
|
-
|
|
646
|
-
}()),
|
|
645
|
+
ii.Fragment = r, ii.jsx = Dt, ii.jsxs = rt;
|
|
646
|
+
}()), ii;
|
|
647
647
|
}
|
|
648
648
|
process.env.NODE_ENV === "production" ? jc.exports = dm() : jc.exports = fm();
|
|
649
|
-
var l = jc.exports,
|
|
649
|
+
var l = jc.exports, uo = 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, lo = class {
|
|
|
662
662
|
}
|
|
663
663
|
onUnsubscribe() {
|
|
664
664
|
}
|
|
665
|
-
},
|
|
665
|
+
}, no = typeof window > "u" || "Deno" in globalThis;
|
|
666
666
|
function cn() {
|
|
667
667
|
}
|
|
668
668
|
function pm(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 Ao(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 (ro(t.options.mutationKey) !== ro(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) || ro)(e);
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function ro(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 Hr, ir, Oo, L1, bm = (L1 = class extends uo {
|
|
805
805
|
constructor() {
|
|
806
806
|
super();
|
|
807
|
-
ue(this,
|
|
808
|
-
ue(this,
|
|
809
|
-
ue(this,
|
|
810
|
-
te(this,
|
|
811
|
-
if (!
|
|
807
|
+
ue(this, Hr);
|
|
808
|
+
ue(this, ir);
|
|
809
|
+
ue(this, Oo);
|
|
810
|
+
te(this, Oo, (t) => {
|
|
811
|
+
if (!no && window.addEventListener) {
|
|
812
812
|
const n = () => t();
|
|
813
813
|
return window.addEventListener("visibilitychange", n, !1), () => {
|
|
814
814
|
window.removeEventListener("visibilitychange", n);
|
|
@@ -817,20 +817,20 @@ var Gr, or, Ro, L1, bm = (L1 = class extends lo {
|
|
|
817
817
|
});
|
|
818
818
|
}
|
|
819
819
|
onSubscribe() {
|
|
820
|
-
L(this,
|
|
820
|
+
L(this, ir) || this.setEventListener(L(this, Oo));
|
|
821
821
|
}
|
|
822
822
|
onUnsubscribe() {
|
|
823
823
|
var t;
|
|
824
|
-
this.hasListeners() || ((t = L(this,
|
|
824
|
+
this.hasListeners() || ((t = L(this, ir)) == null || t.call(this), te(this, ir, void 0));
|
|
825
825
|
}
|
|
826
826
|
setEventListener(t) {
|
|
827
827
|
var n;
|
|
828
|
-
te(this,
|
|
828
|
+
te(this, Oo, t), (n = L(this, ir)) == null || n.call(this), te(this, ir, t((r) => {
|
|
829
829
|
typeof r == "boolean" ? this.setFocused(r) : this.onFocus();
|
|
830
830
|
}));
|
|
831
831
|
}
|
|
832
832
|
setFocused(t) {
|
|
833
|
-
L(this,
|
|
833
|
+
L(this, Hr) !== t && (te(this, Hr, t), this.onFocus());
|
|
834
834
|
}
|
|
835
835
|
onFocus() {
|
|
836
836
|
const t = this.isFocused();
|
|
@@ -840,16 +840,16 @@ var Gr, or, Ro, L1, bm = (L1 = class extends lo {
|
|
|
840
840
|
}
|
|
841
841
|
isFocused() {
|
|
842
842
|
var t;
|
|
843
|
-
return typeof L(this,
|
|
843
|
+
return typeof L(this, Hr) == "boolean" ? L(this, Hr) : ((t = globalThis.document) == null ? void 0 : t.visibilityState) !== "hidden";
|
|
844
844
|
}
|
|
845
|
-
},
|
|
845
|
+
}, Hr = new WeakMap(), ir = new WeakMap(), Oo = new WeakMap(), L1), nu = new bm(), Fo, sr, ko, R1, xm = (R1 = class extends uo {
|
|
846
846
|
constructor() {
|
|
847
847
|
super();
|
|
848
|
-
ue(this,
|
|
849
|
-
ue(this,
|
|
850
|
-
ue(this,
|
|
851
|
-
te(this,
|
|
852
|
-
if (!
|
|
848
|
+
ue(this, Fo, !0);
|
|
849
|
+
ue(this, sr);
|
|
850
|
+
ue(this, ko);
|
|
851
|
+
te(this, ko, (t) => {
|
|
852
|
+
if (!no && 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);
|
|
@@ -858,25 +858,25 @@ var Gr, or, Ro, L1, bm = (L1 = class extends lo {
|
|
|
858
858
|
});
|
|
859
859
|
}
|
|
860
860
|
onSubscribe() {
|
|
861
|
-
L(this,
|
|
861
|
+
L(this, sr) || this.setEventListener(L(this, ko));
|
|
862
862
|
}
|
|
863
863
|
onUnsubscribe() {
|
|
864
864
|
var t;
|
|
865
|
-
this.hasListeners() || ((t = L(this,
|
|
865
|
+
this.hasListeners() || ((t = L(this, sr)) == null || t.call(this), te(this, sr, void 0));
|
|
866
866
|
}
|
|
867
867
|
setEventListener(t) {
|
|
868
868
|
var n;
|
|
869
|
-
te(this,
|
|
869
|
+
te(this, ko, t), (n = L(this, sr)) == null || n.call(this), te(this, sr, t(this.setOnline.bind(this)));
|
|
870
870
|
}
|
|
871
871
|
setOnline(t) {
|
|
872
|
-
L(this,
|
|
872
|
+
L(this, Fo) !== t && (te(this, Fo, t), this.listeners.forEach((r) => {
|
|
873
873
|
r(t);
|
|
874
874
|
}));
|
|
875
875
|
}
|
|
876
876
|
isOnline() {
|
|
877
|
-
return L(this,
|
|
877
|
+
return L(this, Fo);
|
|
878
878
|
}
|
|
879
|
-
},
|
|
879
|
+
}, Fo = new WeakMap(), sr = new WeakMap(), ko = new WeakMap(), R1), Vs = new xm();
|
|
880
880
|
function Vc() {
|
|
881
881
|
let e, t;
|
|
882
882
|
const n = new Promise((o, i) => {
|
|
@@ -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 ?? (no ? 0 : 3), y = e.retryDelay ?? vm, 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 ym() {
|
|
|
1029
1029
|
}
|
|
1030
1030
|
};
|
|
1031
1031
|
}
|
|
1032
|
-
var ct = ym(),
|
|
1032
|
+
var ct = ym(), Wr, O1, df = (O1 = class {
|
|
1033
1033
|
constructor() {
|
|
1034
|
-
ue(this,
|
|
1034
|
+
ue(this, Wr);
|
|
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, Wr, 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 ?? (no ? 1 / 0 : 5 * 60 * 1e3)
|
|
1048
1048
|
);
|
|
1049
1049
|
}
|
|
1050
1050
|
clearGcTimeout() {
|
|
1051
|
-
L(this,
|
|
1051
|
+
L(this, Wr) && (clearTimeout(L(this, Wr)), te(this, Wr, void 0));
|
|
1052
1052
|
}
|
|
1053
|
-
},
|
|
1053
|
+
}, Wr = new WeakMap(), O1), Do, No, on, Ur, At, Vi, Zr, fn, Hn, F1, Cm = (F1 = class extends df {
|
|
1054
1054
|
constructor(t) {
|
|
1055
1055
|
super();
|
|
1056
1056
|
ue(this, fn);
|
|
1057
|
-
ue(this, ko);
|
|
1058
1057
|
ue(this, Do);
|
|
1058
|
+
ue(this, No);
|
|
1059
1059
|
ue(this, on);
|
|
1060
|
-
ue(this,
|
|
1060
|
+
ue(this, Ur);
|
|
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, Ur, t.client), te(this, on, L(this, Ur).getQueryCache()), this.queryKey = t.queryKey, this.queryHash = t.queryHash, te(this, Do, Em(this.options)), this.state = t.state ?? L(this, Do), this.scheduleGc();
|
|
1065
1065
|
}
|
|
1066
1066
|
get meta() {
|
|
1067
1067
|
return this.options.meta;
|
|
@@ -1097,7 +1097,7 @@ var ct = ym(), Hr, O1, df = (O1 = class {
|
|
|
1097
1097
|
super.destroy(), this.cancel({ silent: !0 });
|
|
1098
1098
|
}
|
|
1099
1099
|
reset() {
|
|
1100
|
-
this.destroy(), this.setState(L(this,
|
|
1100
|
+
this.destroy(), this.setState(L(this, Do));
|
|
1101
1101
|
}
|
|
1102
1102
|
isActive() {
|
|
1103
1103
|
return this.observers.some(
|
|
@@ -1129,7 +1129,7 @@ var ct = ym(), Hr, O1, df = (O1 = class {
|
|
|
1129
1129
|
this.observers.includes(t) || (this.observers.push(t), this.clearGcTimeout(), L(this, on).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, on).notify({ type: "observerRemoved", query: this, observer: t }));
|
|
1133
1133
|
}
|
|
1134
1134
|
getObserversCount() {
|
|
1135
1135
|
return this.observers.length;
|
|
@@ -1155,15 +1155,15 @@ var ct = ym(), Hr, 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, Ur),
|
|
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,14 +1172,14 @@ var ct = ym(), Hr, 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, Ur),
|
|
1176
1176
|
state: this.state,
|
|
1177
1177
|
fetchFn: i
|
|
1178
1178
|
};
|
|
1179
1179
|
o(s), (c = this.options.behavior) == null || c.onFetch(
|
|
1180
1180
|
s,
|
|
1181
1181
|
this
|
|
1182
|
-
), te(this,
|
|
1182
|
+
), te(this, No, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((u = s.fetchOptions) == null ? void 0 : u.meta)) && ye(this, fn, Hn).call(this, { type: "fetch", meta: (d = s.fetchOptions) == null ? void 0 : d.meta });
|
|
1183
1183
|
const a = (p) => {
|
|
1184
1184
|
var b, v, m, h;
|
|
1185
1185
|
Ja(p) && p.silent || ye(this, fn, Hn).call(this, {
|
|
@@ -1237,7 +1237,7 @@ var ct = ym(), Hr, O1, df = (O1 = class {
|
|
|
1237
1237
|
canRun: () => !0
|
|
1238
1238
|
})), L(this, At).start();
|
|
1239
1239
|
}
|
|
1240
|
-
},
|
|
1240
|
+
}, Do = new WeakMap(), No = new WeakMap(), on = new WeakMap(), Ur = 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":
|
|
@@ -1279,7 +1279,7 @@ var ct = ym(), Hr, O1, df = (O1 = class {
|
|
|
1279
1279
|
};
|
|
1280
1280
|
case "error":
|
|
1281
1281
|
const o = t.error;
|
|
1282
|
-
return Ja(o) && o.revert && L(this,
|
|
1282
|
+
return Ja(o) && o.revert && L(this, No) ? { ...L(this, No), fetchStatus: "idle" } : {
|
|
1283
1283
|
...r,
|
|
1284
1284
|
error: o,
|
|
1285
1285
|
errorUpdateCount: r.errorUpdateCount + 1,
|
|
@@ -1335,7 +1335,7 @@ function Em(e) {
|
|
|
1335
1335
|
fetchStatus: "idle"
|
|
1336
1336
|
};
|
|
1337
1337
|
}
|
|
1338
|
-
var An, k1, wm = (k1 = class extends
|
|
1338
|
+
var An, k1, wm = (k1 = class extends uo {
|
|
1339
1339
|
constructor(t = {}) {
|
|
1340
1340
|
super();
|
|
1341
1341
|
ue(this, An);
|
|
@@ -1407,13 +1407,13 @@ var An, k1, wm = (k1 = class extends lo {
|
|
|
1407
1407
|
});
|
|
1408
1408
|
});
|
|
1409
1409
|
}
|
|
1410
|
-
}, An = new WeakMap(), k1), Sn, Tt,
|
|
1410
|
+
}, An = new WeakMap(), k1), Sn, Tt, zr, Tn, rr, D1, Im = (D1 = class extends df {
|
|
1411
1411
|
constructor(t) {
|
|
1412
1412
|
super();
|
|
1413
1413
|
ue(this, Tn);
|
|
1414
1414
|
ue(this, Sn);
|
|
1415
1415
|
ue(this, Tt);
|
|
1416
|
-
ue(this,
|
|
1416
|
+
ue(this, zr);
|
|
1417
1417
|
this.mutationId = t.mutationId, te(this, Tt, t.mutationCache), te(this, Sn, []), this.state = t.state || pf(), this.setOptions(t.options), this.scheduleGc();
|
|
1418
1418
|
}
|
|
1419
1419
|
setOptions(t) {
|
|
@@ -1441,44 +1441,44 @@ var An, k1, wm = (k1 = class extends lo {
|
|
|
1441
1441
|
}
|
|
1442
1442
|
continue() {
|
|
1443
1443
|
var t;
|
|
1444
|
-
return ((t = L(this,
|
|
1444
|
+
return ((t = L(this, zr)) == 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, zr, uf({
|
|
1450
1450
|
fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
|
|
1451
1451
|
onFail: (I, T) => {
|
|
1452
|
-
ye(this, Tn,
|
|
1452
|
+
ye(this, Tn, rr).call(this, { type: "failed", failureCount: I, error: T });
|
|
1453
1453
|
},
|
|
1454
1454
|
onPause: () => {
|
|
1455
|
-
ye(this, Tn,
|
|
1455
|
+
ye(this, Tn, rr).call(this, { type: "pause" });
|
|
1456
1456
|
},
|
|
1457
1457
|
onContinue: () => {
|
|
1458
|
-
ye(this, Tn,
|
|
1458
|
+
ye(this, Tn, rr).call(this, { type: "continue" });
|
|
1459
1459
|
},
|
|
1460
1460
|
retry: this.options.retry ?? 0,
|
|
1461
1461
|
retryDelay: this.options.retryDelay,
|
|
1462
1462
|
networkMode: this.options.networkMode,
|
|
1463
1463
|
canRun: () => L(this, Tt).canRun(this)
|
|
1464
1464
|
}));
|
|
1465
|
-
const n = this.state.status === "pending", r = !L(this,
|
|
1465
|
+
const n = this.state.status === "pending", r = !L(this, zr).canStart();
|
|
1466
1466
|
try {
|
|
1467
1467
|
if (!n) {
|
|
1468
|
-
ye(this, Tn,
|
|
1468
|
+
ye(this, Tn, rr).call(this, { type: "pending", variables: t, isPaused: r }), await ((i = (o = L(this, Tt).config).onMutate) == null ? void 0 : i.call(
|
|
1469
1469
|
o,
|
|
1470
1470
|
t,
|
|
1471
1471
|
this
|
|
1472
1472
|
));
|
|
1473
1473
|
const T = await ((a = (s = this.options).onMutate) == null ? void 0 : a.call(s, t));
|
|
1474
|
-
T !== this.state.context && ye(this, Tn,
|
|
1474
|
+
T !== this.state.context && ye(this, Tn, rr).call(this, {
|
|
1475
1475
|
type: "pending",
|
|
1476
1476
|
context: T,
|
|
1477
1477
|
variables: t,
|
|
1478
1478
|
isPaused: r
|
|
1479
1479
|
});
|
|
1480
1480
|
}
|
|
1481
|
-
const I = await L(this,
|
|
1481
|
+
const I = await L(this, zr).start();
|
|
1482
1482
|
return await ((u = (c = L(this, Tt).config).onSuccess) == null ? void 0 : u.call(
|
|
1483
1483
|
c,
|
|
1484
1484
|
I,
|
|
@@ -1492,7 +1492,7 @@ var An, k1, wm = (k1 = class extends lo {
|
|
|
1492
1492
|
this.state.variables,
|
|
1493
1493
|
this.state.context,
|
|
1494
1494
|
this
|
|
1495
|
-
)), await ((h = (m = this.options).onSettled) == null ? void 0 : h.call(m, I, null, t, this.state.context)), ye(this, Tn,
|
|
1495
|
+
)), await ((h = (m = this.options).onSettled) == null ? void 0 : h.call(m, I, null, t, this.state.context)), ye(this, Tn, rr).call(this, { type: "success", data: I }), I;
|
|
1496
1496
|
} catch (I) {
|
|
1497
1497
|
try {
|
|
1498
1498
|
throw await ((g = (f = L(this, Tt).config).onError) == null ? void 0 : g.call(
|
|
@@ -1521,13 +1521,13 @@ var An, k1, wm = (k1 = class extends lo {
|
|
|
1521
1521
|
this.state.context
|
|
1522
1522
|
)), I;
|
|
1523
1523
|
} finally {
|
|
1524
|
-
ye(this, Tn,
|
|
1524
|
+
ye(this, Tn, rr).call(this, { type: "error", error: I });
|
|
1525
1525
|
}
|
|
1526
1526
|
} finally {
|
|
1527
1527
|
L(this, Tt).runNext(this);
|
|
1528
1528
|
}
|
|
1529
1529
|
}
|
|
1530
|
-
}, Sn = new WeakMap(), Tt = new WeakMap(),
|
|
1530
|
+
}, Sn = new WeakMap(), Tt = new WeakMap(), zr = new WeakMap(), Tn = new WeakSet(), rr = function(t) {
|
|
1531
1531
|
const n = (r) => {
|
|
1532
1532
|
switch (t.type) {
|
|
1533
1533
|
case "failed":
|
|
@@ -1604,13 +1604,13 @@ function pf() {
|
|
|
1604
1604
|
submittedAt: 0
|
|
1605
1605
|
};
|
|
1606
1606
|
}
|
|
1607
|
-
var
|
|
1607
|
+
var Zn, pn, Gi, N1, _m = (N1 = class extends uo {
|
|
1608
1608
|
constructor(t = {}) {
|
|
1609
1609
|
super();
|
|
1610
|
-
ue(this,
|
|
1610
|
+
ue(this, Zn);
|
|
1611
1611
|
ue(this, pn);
|
|
1612
1612
|
ue(this, Gi);
|
|
1613
|
-
this.config = t, te(this,
|
|
1613
|
+
this.config = t, te(this, Zn, /* @__PURE__ */ new Set()), te(this, pn, /* @__PURE__ */ new Map()), te(this, Gi, 0);
|
|
1614
1614
|
}
|
|
1615
1615
|
build(t, n, r) {
|
|
1616
1616
|
const o = new Im({
|
|
@@ -1622,7 +1622,7 @@ var Un, pn, Gi, N1, _m = (N1 = class extends lo {
|
|
|
1622
1622
|
return this.add(o), o;
|
|
1623
1623
|
}
|
|
1624
1624
|
add(t) {
|
|
1625
|
-
L(this,
|
|
1625
|
+
L(this, Zn).add(t);
|
|
1626
1626
|
const n = rs(t);
|
|
1627
1627
|
if (typeof n == "string") {
|
|
1628
1628
|
const r = L(this, pn).get(n);
|
|
@@ -1631,7 +1631,7 @@ var Un, pn, Gi, N1, _m = (N1 = class extends lo {
|
|
|
1631
1631
|
this.notify({ type: "added", mutation: t });
|
|
1632
1632
|
}
|
|
1633
1633
|
remove(t) {
|
|
1634
|
-
if (L(this,
|
|
1634
|
+
if (L(this, Zn).delete(t)) {
|
|
1635
1635
|
const n = rs(t);
|
|
1636
1636
|
if (typeof n == "string") {
|
|
1637
1637
|
const r = L(this, pn).get(n);
|
|
@@ -1665,13 +1665,13 @@ var Un, pn, Gi, N1, _m = (N1 = class extends lo {
|
|
|
1665
1665
|
}
|
|
1666
1666
|
clear() {
|
|
1667
1667
|
ct.batch(() => {
|
|
1668
|
-
L(this,
|
|
1668
|
+
L(this, Zn).forEach((t) => {
|
|
1669
1669
|
this.notify({ type: "removed", mutation: t });
|
|
1670
|
-
}), L(this,
|
|
1670
|
+
}), L(this, Zn).clear(), L(this, pn).clear();
|
|
1671
1671
|
});
|
|
1672
1672
|
}
|
|
1673
1673
|
getAll() {
|
|
1674
|
-
return Array.from(L(this,
|
|
1674
|
+
return Array.from(L(this, Zn));
|
|
1675
1675
|
}
|
|
1676
1676
|
find(t) {
|
|
1677
1677
|
const n = { exact: !0, ...t };
|
|
@@ -1697,7 +1697,7 @@ var Un, pn, Gi, N1, _m = (N1 = class extends lo {
|
|
|
1697
1697
|
)
|
|
1698
1698
|
);
|
|
1699
1699
|
}
|
|
1700
|
-
},
|
|
1700
|
+
}, Zn = new WeakMap(), pn = new WeakMap(), Gi = new WeakMap(), N1);
|
|
1701
1701
|
function rs(e) {
|
|
1702
1702
|
var t;
|
|
1703
1703
|
return (t = e.options.scope) == null ? void 0 : t.id;
|
|
@@ -1791,34 +1791,34 @@ function Am(e, t) {
|
|
|
1791
1791
|
function Sm(e, t) {
|
|
1792
1792
|
return !t || !e.getPreviousPageParam ? !1 : hf(e, t) != null;
|
|
1793
1793
|
}
|
|
1794
|
-
var st,
|
|
1794
|
+
var st, ar, cr, jo, Mo, lr, Po, Bo, j1, Tm = (j1 = class {
|
|
1795
1795
|
constructor(e = {}) {
|
|
1796
1796
|
ue(this, st);
|
|
1797
|
-
ue(this, sr);
|
|
1798
1797
|
ue(this, ar);
|
|
1799
|
-
ue(this, No);
|
|
1800
|
-
ue(this, jo);
|
|
1801
1798
|
ue(this, cr);
|
|
1799
|
+
ue(this, jo);
|
|
1802
1800
|
ue(this, Mo);
|
|
1801
|
+
ue(this, lr);
|
|
1803
1802
|
ue(this, Po);
|
|
1804
|
-
|
|
1803
|
+
ue(this, Bo);
|
|
1804
|
+
te(this, st, e.queryCache || new wm()), te(this, ar, e.mutationCache || new _m()), te(this, cr, e.defaultOptions || {}), te(this, jo, /* @__PURE__ */ new Map()), te(this, Mo, /* @__PURE__ */ new Map()), te(this, lr, 0);
|
|
1805
1805
|
}
|
|
1806
1806
|
mount() {
|
|
1807
|
-
ns(this,
|
|
1807
|
+
ns(this, lr)._++, L(this, lr) === 1 && (te(this, Po, nu.subscribe(async (e) => {
|
|
1808
1808
|
e && (await this.resumePausedMutations(), L(this, st).onFocus());
|
|
1809
|
-
})), te(this,
|
|
1809
|
+
})), te(this, Bo, Vs.subscribe(async (e) => {
|
|
1810
1810
|
e && (await this.resumePausedMutations(), L(this, st).onOnline());
|
|
1811
1811
|
})));
|
|
1812
1812
|
}
|
|
1813
1813
|
unmount() {
|
|
1814
1814
|
var e, t;
|
|
1815
|
-
ns(this,
|
|
1815
|
+
ns(this, lr)._--, L(this, lr) === 0 && ((e = L(this, Po)) == null || e.call(this), te(this, Po, void 0), (t = L(this, Bo)) == null || t.call(this), te(this, Bo, void 0));
|
|
1816
1816
|
}
|
|
1817
1817
|
isFetching(e) {
|
|
1818
1818
|
return L(this, st).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
1819
1819
|
}
|
|
1820
1820
|
isMutating(e) {
|
|
1821
|
-
return L(this,
|
|
1821
|
+
return L(this, ar).findAll({ ...e, status: "pending" }).length;
|
|
1822
1822
|
}
|
|
1823
1823
|
getQueryData(e) {
|
|
1824
1824
|
var n;
|
|
@@ -1827,7 +1827,7 @@ var st, sr, ar, No, jo, cr, Mo, Po, j1, Tm = (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(Ao(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, sr, ar, No, jo, cr, Mo, Po, j1, Tm = (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
|
+
Ao(t.staleTime, n)
|
|
1915
1915
|
) ? n.fetch(t) : Promise.resolve(n.state.data);
|
|
1916
1916
|
}
|
|
1917
1917
|
prefetchQuery(e) {
|
|
@@ -1927,40 +1927,40 @@ var st, sr, ar, No, jo, cr, Mo, Po, j1, Tm = (j1 = class {
|
|
|
1927
1927
|
return e.behavior = Gs(e.pages), this.ensureQueryData(e);
|
|
1928
1928
|
}
|
|
1929
1929
|
resumePausedMutations() {
|
|
1930
|
-
return Vs.isOnline() ? L(this,
|
|
1930
|
+
return Vs.isOnline() ? L(this, ar).resumePausedMutations() : Promise.resolve();
|
|
1931
1931
|
}
|
|
1932
1932
|
getQueryCache() {
|
|
1933
1933
|
return L(this, st);
|
|
1934
1934
|
}
|
|
1935
1935
|
getMutationCache() {
|
|
1936
|
-
return L(this,
|
|
1936
|
+
return L(this, ar);
|
|
1937
1937
|
}
|
|
1938
1938
|
getDefaultOptions() {
|
|
1939
|
-
return L(this,
|
|
1939
|
+
return L(this, cr);
|
|
1940
1940
|
}
|
|
1941
1941
|
setDefaultOptions(e) {
|
|
1942
|
-
te(this,
|
|
1942
|
+
te(this, cr, e);
|
|
1943
1943
|
}
|
|
1944
1944
|
setQueryDefaults(e, t) {
|
|
1945
|
-
L(this,
|
|
1945
|
+
L(this, jo).set(ro(e), {
|
|
1946
1946
|
queryKey: e,
|
|
1947
1947
|
defaultOptions: t
|
|
1948
1948
|
});
|
|
1949
1949
|
}
|
|
1950
1950
|
getQueryDefaults(e) {
|
|
1951
|
-
const t = [...L(this,
|
|
1951
|
+
const t = [...L(this, jo).values()], n = {};
|
|
1952
1952
|
return t.forEach((r) => {
|
|
1953
1953
|
Ai(e, r.queryKey) && Object.assign(n, r.defaultOptions);
|
|
1954
1954
|
}), n;
|
|
1955
1955
|
}
|
|
1956
1956
|
setMutationDefaults(e, t) {
|
|
1957
|
-
L(this,
|
|
1957
|
+
L(this, Mo).set(ro(e), {
|
|
1958
1958
|
mutationKey: e,
|
|
1959
1959
|
defaultOptions: t
|
|
1960
1960
|
});
|
|
1961
1961
|
}
|
|
1962
1962
|
getMutationDefaults(e) {
|
|
1963
|
-
const t = [...L(this,
|
|
1963
|
+
const t = [...L(this, Mo).values()], n = {};
|
|
1964
1964
|
return t.forEach((r) => {
|
|
1965
1965
|
Ai(e, r.mutationKey) && Object.assign(n, r.defaultOptions);
|
|
1966
1966
|
}), n;
|
|
@@ -1969,7 +1969,7 @@ var st, sr, ar, No, jo, cr, Mo, Po, j1, Tm = (j1 = class {
|
|
|
1969
1969
|
if (e._defaulted)
|
|
1970
1970
|
return e;
|
|
1971
1971
|
const t = {
|
|
1972
|
-
...L(this,
|
|
1972
|
+
...L(this, cr).queries,
|
|
1973
1973
|
...this.getQueryDefaults(e.queryKey),
|
|
1974
1974
|
...e,
|
|
1975
1975
|
_defaulted: !0
|
|
@@ -1981,16 +1981,16 @@ var st, sr, ar, No, jo, cr, Mo, Po, j1, Tm = (j1 = class {
|
|
|
1981
1981
|
}
|
|
1982
1982
|
defaultMutationOptions(e) {
|
|
1983
1983
|
return e != null && e._defaulted ? e : {
|
|
1984
|
-
...L(this,
|
|
1984
|
+
...L(this, cr).mutations,
|
|
1985
1985
|
...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
|
|
1986
1986
|
...e,
|
|
1987
1987
|
_defaulted: !0
|
|
1988
1988
|
};
|
|
1989
1989
|
}
|
|
1990
1990
|
clear() {
|
|
1991
|
-
L(this, st).clear(), L(this,
|
|
1991
|
+
L(this, st).clear(), L(this, ar).clear();
|
|
1992
1992
|
}
|
|
1993
|
-
}, st = new WeakMap(),
|
|
1993
|
+
}, st = new WeakMap(), ar = new WeakMap(), cr = new WeakMap(), jo = new WeakMap(), Mo = new WeakMap(), lr = new WeakMap(), Po = new WeakMap(), Bo = new WeakMap(), j1), jt, Pe, Hi, Lt, $r, Vo, ur, Ln, Wi, Go, Ho, Xr, Yr, dr, Wo, Xe, mi, Hc, Wc, Uc, Zc, zc, $c, Xc, gf, M1, ma = (M1 = class extends uo {
|
|
1994
1994
|
constructor(t, n) {
|
|
1995
1995
|
super();
|
|
1996
1996
|
ue(this, Xe);
|
|
@@ -1998,20 +1998,20 @@ var st, sr, ar, No, jo, cr, Mo, Po, j1, Tm = (j1 = class {
|
|
|
1998
1998
|
ue(this, Pe);
|
|
1999
1999
|
ue(this, Hi);
|
|
2000
2000
|
ue(this, Lt);
|
|
2001
|
-
ue(this,
|
|
2002
|
-
ue(this,
|
|
2003
|
-
ue(this,
|
|
2001
|
+
ue(this, $r);
|
|
2002
|
+
ue(this, Vo);
|
|
2003
|
+
ue(this, ur);
|
|
2004
2004
|
ue(this, Ln);
|
|
2005
2005
|
ue(this, Wi);
|
|
2006
|
-
ue(this,
|
|
2006
|
+
ue(this, Go);
|
|
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
|
-
ue(this,
|
|
2010
|
-
ue(this, $r);
|
|
2009
|
+
ue(this, Ho);
|
|
2011
2010
|
ue(this, Xr);
|
|
2012
|
-
ue(this,
|
|
2013
|
-
ue(this,
|
|
2014
|
-
|
|
2011
|
+
ue(this, Yr);
|
|
2012
|
+
ue(this, dr);
|
|
2013
|
+
ue(this, Wo, /* @__PURE__ */ new Set());
|
|
2014
|
+
this.options = n, te(this, jt, t), te(this, Ln, null), te(this, ur, Vc()), this.options.experimental_prefetchInRender || L(this, ur).reject(
|
|
2015
2015
|
new Error("experimental_prefetchInRender feature flag is not enabled")
|
|
2016
2016
|
), this.bindMethods(), this.setOptions(n);
|
|
2017
2017
|
}
|
|
@@ -2019,7 +2019,7 @@ var st, sr, ar, No, jo, cr, Mo, Po, j1, Tm = (j1 = class {
|
|
|
2019
2019
|
this.refetch = this.refetch.bind(this);
|
|
2020
2020
|
}
|
|
2021
2021
|
onSubscribe() {
|
|
2022
|
-
this.listeners.size === 1 && (L(this, Pe).addObserver(this), td(L(this, Pe), this.options) ? ye(this, Xe,
|
|
2022
|
+
this.listeners.size === 1 && (L(this, Pe).addObserver(this), td(L(this, Pe), this.options) ? ye(this, Xe, mi).call(this) : this.updateResult(), ye(this, Xe, Zc).call(this));
|
|
2023
2023
|
}
|
|
2024
2024
|
onUnsubscribe() {
|
|
2025
2025
|
this.hasListeners() || this.destroy();
|
|
@@ -2058,13 +2058,13 @@ var st, sr, ar, No, jo, cr, Mo, Po, j1, Tm = (j1 = class {
|
|
|
2058
2058
|
o,
|
|
2059
2059
|
this.options,
|
|
2060
2060
|
r
|
|
2061
|
-
) && ye(this, Xe,
|
|
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)) || Ao(this.options.staleTime, L(this, Pe)) !== Ao(r.staleTime, L(this, Pe))) && ye(this, Xe, Hc).call(this);
|
|
2062
2062
|
const s = ye(this, Xe, Wc).call(this);
|
|
2063
|
-
i && (L(this, Pe) !== o || hn(this.options.enabled, L(this, Pe)) !== hn(r.enabled, L(this, Pe)) || s !== L(this,
|
|
2063
|
+
i && (L(this, Pe) !== o || hn(this.options.enabled, L(this, Pe)) !== hn(r.enabled, L(this, Pe)) || s !== L(this, dr)) && ye(this, Xe, Uc).call(this, s);
|
|
2064
2064
|
}
|
|
2065
2065
|
getOptimisticResult(t) {
|
|
2066
2066
|
const n = L(this, jt).getQueryCache().build(L(this, jt), t), r = this.createResult(n, t);
|
|
2067
|
-
return Rm(this, r) && (te(this, Lt, r), te(this,
|
|
2067
|
+
return Rm(this, r) && (te(this, Lt, r), te(this, Vo, this.options), te(this, $r, L(this, Pe).state)), r;
|
|
2068
2068
|
}
|
|
2069
2069
|
getCurrentResult() {
|
|
2070
2070
|
return L(this, Lt);
|
|
@@ -2080,7 +2080,7 @@ var st, sr, ar, No, jo, cr, Mo, Po, j1, Tm = (j1 = class {
|
|
|
2080
2080
|
}), r;
|
|
2081
2081
|
}
|
|
2082
2082
|
trackProp(t) {
|
|
2083
|
-
L(this,
|
|
2083
|
+
L(this, Wo).add(t);
|
|
2084
2084
|
}
|
|
2085
2085
|
getCurrentQuery() {
|
|
2086
2086
|
return L(this, Pe);
|
|
@@ -2095,14 +2095,14 @@ var st, sr, ar, No, jo, cr, Mo, Po, j1, Tm = (j1 = class {
|
|
|
2095
2095
|
return r.fetch().then(() => this.createResult(r, n));
|
|
2096
2096
|
}
|
|
2097
2097
|
fetch(t) {
|
|
2098
|
-
return ye(this, Xe,
|
|
2098
|
+
return ye(this, Xe, mi).call(this, {
|
|
2099
2099
|
...t,
|
|
2100
2100
|
cancelRefetch: t.cancelRefetch ?? !0
|
|
2101
2101
|
}).then(() => (this.updateResult(), L(this, Lt)));
|
|
2102
2102
|
}
|
|
2103
2103
|
createResult(t, n) {
|
|
2104
2104
|
var I;
|
|
2105
|
-
const r = L(this, Pe), o = this.options, i = L(this, Lt), s = L(this,
|
|
2105
|
+
const r = L(this, Pe), o = this.options, i = L(this, Lt), s = L(this, $r), 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);
|
|
@@ -2114,10 +2114,10 @@ var st, sr, ar, No, jo, cr, Mo, Po, j1, Tm = (j1 = class {
|
|
|
2114
2114
|
let { error: m, errorUpdatedAt: h, status: f } = p;
|
|
2115
2115
|
if (n.select && p.data !== void 0)
|
|
2116
2116
|
if (i && p.data === (s == null ? void 0 : s.data) && n.select === L(this, Wi))
|
|
2117
|
-
v = L(this,
|
|
2117
|
+
v = L(this, Go);
|
|
2118
2118
|
else
|
|
2119
2119
|
try {
|
|
2120
|
-
te(this, Wi, n.select), v = n.select(p.data), v = Bc(i == null ? void 0 : i.data, v, n), te(this,
|
|
2120
|
+
te(this, Wi, n.select), v = n.select(p.data), v = Bc(i == null ? void 0 : i.data, v, n), te(this, Go, v), te(this, Ln, null);
|
|
2121
2121
|
} catch (T) {
|
|
2122
2122
|
te(this, Ln, T);
|
|
2123
2123
|
}
|
|
@@ -2128,8 +2128,8 @@ var st, sr, ar, No, jo, cr, Mo, Po, j1, Tm = (j1 = class {
|
|
|
2128
2128
|
if (i != null && i.isPlaceholderData && n.placeholderData === (a == null ? void 0 : a.placeholderData))
|
|
2129
2129
|
T = i.data;
|
|
2130
2130
|
else if (T = typeof n.placeholderData == "function" ? n.placeholderData(
|
|
2131
|
-
(I = L(this,
|
|
2132
|
-
L(this,
|
|
2131
|
+
(I = L(this, Ho)) == null ? void 0 : I.state.data,
|
|
2132
|
+
L(this, Ho)
|
|
2133
2133
|
) : n.placeholderData, n.select && T !== void 0)
|
|
2134
2134
|
try {
|
|
2135
2135
|
T = n.select(T), te(this, Ln, null);
|
|
@@ -2142,7 +2142,7 @@ var st, sr, ar, No, jo, cr, Mo, Po, j1, Tm = (j1 = class {
|
|
|
2142
2142
|
n
|
|
2143
2143
|
), b = !0);
|
|
2144
2144
|
}
|
|
2145
|
-
L(this, Ln) && (m = L(this, Ln), v = L(this,
|
|
2145
|
+
L(this, Ln) && (m = L(this, Ln), v = L(this, Go), h = Date.now(), f = "error");
|
|
2146
2146
|
const g = p.fetchStatus === "fetching", x = f === "pending", y = f === "error", E = x && g, C = v !== void 0, _ = {
|
|
2147
2147
|
status: f,
|
|
2148
2148
|
fetchStatus: p.fetchStatus,
|
|
@@ -2168,15 +2168,15 @@ var st, sr, ar, No, jo, cr, Mo, Po, j1, Tm = (j1 = class {
|
|
|
2168
2168
|
isRefetchError: y && C,
|
|
2169
2169
|
isStale: ru(t, n),
|
|
2170
2170
|
refetch: this.refetch,
|
|
2171
|
-
promise: L(this,
|
|
2171
|
+
promise: L(this, ur)
|
|
2172
2172
|
};
|
|
2173
2173
|
if (this.options.experimental_prefetchInRender) {
|
|
2174
2174
|
const T = (O) => {
|
|
2175
2175
|
_.status === "error" ? O.reject(_.error) : _.data !== void 0 && O.resolve(_.data);
|
|
2176
2176
|
}, D = () => {
|
|
2177
|
-
const O = te(this,
|
|
2177
|
+
const O = te(this, ur, _.promise = Vc());
|
|
2178
2178
|
T(O);
|
|
2179
|
-
}, F = L(this,
|
|
2179
|
+
}, F = L(this, ur);
|
|
2180
2180
|
switch (F.status) {
|
|
2181
2181
|
case "pending":
|
|
2182
2182
|
t.queryHash === r.queryHash && T(F);
|
|
@@ -2193,17 +2193,17 @@ var st, sr, ar, No, jo, cr, Mo, Po, j1, Tm = (j1 = class {
|
|
|
2193
2193
|
}
|
|
2194
2194
|
updateResult(t) {
|
|
2195
2195
|
const n = L(this, Lt), r = this.createResult(L(this, Pe), this.options);
|
|
2196
|
-
if (te(this,
|
|
2196
|
+
if (te(this, $r, L(this, Pe).state), te(this, Vo, this.options), L(this, $r).data !== void 0 && te(this, Ho, L(this, Pe)), Ps(r, n))
|
|
2197
2197
|
return;
|
|
2198
2198
|
te(this, Lt, r);
|
|
2199
2199
|
const o = {}, i = () => {
|
|
2200
2200
|
if (!n)
|
|
2201
2201
|
return !0;
|
|
2202
2202
|
const { notifyOnChangeProps: s } = this.options, a = typeof s == "function" ? s() : s;
|
|
2203
|
-
if (a === "all" || !a && !L(this,
|
|
2203
|
+
if (a === "all" || !a && !L(this, Wo).size)
|
|
2204
2204
|
return !0;
|
|
2205
2205
|
const c = new Set(
|
|
2206
|
-
a ?? L(this,
|
|
2206
|
+
a ?? L(this, Wo)
|
|
2207
2207
|
);
|
|
2208
2208
|
return this.options.throwOnError && c.add("error"), Object.keys(L(this, Lt)).some((u) => {
|
|
2209
2209
|
const d = u;
|
|
@@ -2215,7 +2215,7 @@ var st, sr, ar, No, jo, cr, Mo, Po, j1, Tm = (j1 = class {
|
|
|
2215
2215
|
onQueryUpdate() {
|
|
2216
2216
|
this.updateResult(), this.hasListeners() && ye(this, Xe, Zc).call(this);
|
|
2217
2217
|
}
|
|
2218
|
-
}, jt = new WeakMap(), Pe = new WeakMap(), Hi = new WeakMap(), Lt = new WeakMap(),
|
|
2218
|
+
}, jt = new WeakMap(), Pe = new WeakMap(), Hi = new WeakMap(), Lt = new WeakMap(), $r = new WeakMap(), Vo = new WeakMap(), ur = new WeakMap(), Ln = new WeakMap(), Wi = new WeakMap(), Go = new WeakMap(), Ho = new WeakMap(), Xr = new WeakMap(), Yr = new WeakMap(), dr = 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, sr, ar, No, jo, cr, Mo, Po, j1, Tm = (j1 = class {
|
|
|
2224
2224
|
return t != null && t.throwOnError || (n = n.catch(cn)), n;
|
|
2225
2225
|
}, Hc = function() {
|
|
2226
2226
|
ye(this, Xe, zc).call(this);
|
|
2227
|
-
const t =
|
|
2227
|
+
const t = Ao(
|
|
2228
2228
|
this.options.staleTime,
|
|
2229
2229
|
L(this, Pe)
|
|
2230
2230
|
);
|
|
2231
|
-
if (
|
|
2231
|
+
if (no || L(this, Lt).isStale || !Mc(t))
|
|
2232
2232
|
return;
|
|
2233
2233
|
const r = sf(L(this, Lt).dataUpdatedAt, t) + 1;
|
|
2234
|
-
te(this,
|
|
2234
|
+
te(this, Xr, setTimeout(() => {
|
|
2235
2235
|
L(this, Lt).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,
|
|
2241
|
-
(this.options.refetchIntervalInBackground || nu.isFocused()) && ye(this, Xe,
|
|
2242
|
-
}, L(this,
|
|
2240
|
+
ye(this, Xe, $c).call(this), te(this, dr, t), !(no || hn(this.options.enabled, L(this, Pe)) === !1 || !Mc(L(this, dr)) || L(this, dr) === 0) && te(this, Yr, setInterval(() => {
|
|
2241
|
+
(this.options.refetchIntervalInBackground || nu.isFocused()) && ye(this, Xe, mi).call(this);
|
|
2242
|
+
}, L(this, dr)));
|
|
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, Xr) && (clearTimeout(L(this, Xr)), te(this, Xr, void 0));
|
|
2247
2247
|
}, $c = function() {
|
|
2248
|
-
L(this,
|
|
2248
|
+
L(this, Yr) && (clearInterval(L(this, Yr)), te(this, Yr, void 0));
|
|
2249
2249
|
}, Xc = function() {
|
|
2250
2250
|
const t = L(this, jt).getQueryCache().build(L(this, jt), 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(Ao(t.staleTime, e));
|
|
2283
2283
|
}
|
|
2284
2284
|
function Rm(e, t) {
|
|
2285
2285
|
return !Ps(e.getCurrentResult(), t);
|
|
@@ -2291,20 +2291,20 @@ function Om(e, t, n) {
|
|
|
2291
2291
|
const r = e.slice(0);
|
|
2292
2292
|
return r[t] = n, r;
|
|
2293
2293
|
}
|
|
2294
|
-
var
|
|
2294
|
+
var Jr, sn, Uo, Zo, an, fr, Ui, Zi, zi, wt, Jc, qc, Kc, Qc, el, P1, Fm = (P1 = class extends uo {
|
|
2295
2295
|
constructor(t, n, r) {
|
|
2296
2296
|
super();
|
|
2297
2297
|
ue(this, wt);
|
|
2298
|
-
ue(this,
|
|
2298
|
+
ue(this, Jr);
|
|
2299
2299
|
ue(this, sn);
|
|
2300
|
-
ue(this, Wo);
|
|
2301
2300
|
ue(this, Uo);
|
|
2301
|
+
ue(this, Zo);
|
|
2302
2302
|
ue(this, an);
|
|
2303
|
-
ue(this,
|
|
2303
|
+
ue(this, fr);
|
|
2304
2304
|
ue(this, Ui);
|
|
2305
2305
|
ue(this, Zi);
|
|
2306
2306
|
ue(this, zi, []);
|
|
2307
|
-
te(this,
|
|
2307
|
+
te(this, Jr, t), te(this, Zo, r), te(this, Uo, []), te(this, an, []), te(this, sn, []), this.setQueries(n);
|
|
2308
2308
|
}
|
|
2309
2309
|
onSubscribe() {
|
|
2310
2310
|
this.listeners.size === 1 && L(this, an).forEach((t) => {
|
|
@@ -2322,16 +2322,16 @@ var Yr, sn, Wo, Uo, an, dr, Ui, Zi, zi, wt, Jc, qc, Kc, Qc, el, P1, Fm = (P1 = c
|
|
|
2322
2322
|
});
|
|
2323
2323
|
}
|
|
2324
2324
|
setQueries(t, n, r) {
|
|
2325
|
-
if (te(this,
|
|
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, Jr).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."
|
|
2331
2331
|
);
|
|
2332
2332
|
}
|
|
2333
2333
|
ct.batch(() => {
|
|
2334
|
-
const o = L(this, an), i = ye(this, wt, Kc).call(this, L(this,
|
|
2334
|
+
const o = L(this, an), i = ye(this, wt, Kc).call(this, L(this, Uo));
|
|
2335
2335
|
te(this, zi, i), i.forEach(
|
|
2336
2336
|
(u) => u.observer.setOptions(u.defaultedQueryOptions, r)
|
|
2337
2337
|
);
|
|
@@ -2368,7 +2368,7 @@ var Yr, sn, Wo, Uo, an, dr, Ui, Zi, zi, wt, Jc, qc, Kc, Qc, el, P1, Fm = (P1 = c
|
|
|
2368
2368
|
() => ye(this, wt, Jc).call(this, o, r)
|
|
2369
2369
|
];
|
|
2370
2370
|
}
|
|
2371
|
-
},
|
|
2371
|
+
}, Jr = new WeakMap(), sn = new WeakMap(), Uo = new WeakMap(), Zo = new WeakMap(), an = new WeakMap(), fr = 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) => {
|
|
@@ -2378,22 +2378,22 @@ var Yr, sn, Wo, Uo, an, dr, Ui, Zi, zi, wt, Jc, qc, Kc, Qc, el, P1, Fm = (P1 = c
|
|
|
2378
2378
|
});
|
|
2379
2379
|
});
|
|
2380
2380
|
}, qc = function(t, n) {
|
|
2381
|
-
return n ? ((!L(this,
|
|
2382
|
-
L(this,
|
|
2381
|
+
return n ? ((!L(this, fr) || L(this, sn) !== L(this, Zi) || n !== L(this, Ui)) && (te(this, Ui, n), te(this, Zi, L(this, sn)), te(this, fr, Ms(
|
|
2382
|
+
L(this, fr),
|
|
2383
2383
|
n(t)
|
|
2384
|
-
))), L(this,
|
|
2384
|
+
))), L(this, fr)) : t;
|
|
2385
2385
|
}, Kc = function(t) {
|
|
2386
2386
|
const n = new Map(
|
|
2387
2387
|
L(this, an).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, Jr).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, Jr), i)
|
|
2397
2397
|
});
|
|
2398
2398
|
}), r;
|
|
2399
2399
|
}, Qc = function(t, n) {
|
|
@@ -2402,7 +2402,7 @@ var Yr, sn, Wo, Uo, an, dr, Ui, Zi, zi, wt, Jc, qc, Kc, Qc, el, P1, Fm = (P1 = c
|
|
|
2402
2402
|
}, el = function() {
|
|
2403
2403
|
var t;
|
|
2404
2404
|
if (this.hasListeners()) {
|
|
2405
|
-
const n = L(this,
|
|
2405
|
+
const n = L(this, fr), r = ye(this, wt, Jc).call(this, L(this, sn), L(this, zi)), o = ye(this, wt, qc).call(this, r, (t = L(this, Zo)) == null ? void 0 : t.combine);
|
|
2406
2406
|
n !== o && ct.batch(() => {
|
|
2407
2407
|
this.listeners.forEach((i) => {
|
|
2408
2408
|
i(L(this, sn));
|
|
@@ -2461,15 +2461,15 @@ var Yr, sn, Wo, Uo, an, dr, Ui, Zi, zi, wt, Jc, qc, Kc, Qc, el, P1, Fm = (P1 = c
|
|
|
2461
2461
|
isRefetching: i && !d && !b
|
|
2462
2462
|
};
|
|
2463
2463
|
}
|
|
2464
|
-
},
|
|
2464
|
+
}, pr, hr, Mt, zn, Xn, xs, tl, B1, Dm = (B1 = class extends uo {
|
|
2465
2465
|
constructor(n, r) {
|
|
2466
2466
|
super();
|
|
2467
|
-
ue(this,
|
|
2468
|
-
ue(this, fr);
|
|
2467
|
+
ue(this, Xn);
|
|
2469
2468
|
ue(this, pr);
|
|
2469
|
+
ue(this, hr);
|
|
2470
2470
|
ue(this, Mt);
|
|
2471
|
-
ue(this,
|
|
2472
|
-
te(this,
|
|
2471
|
+
ue(this, zn);
|
|
2472
|
+
te(this, pr, n), this.setOptions(r), this.bindMethods(), ye(this, Xn, xs).call(this);
|
|
2473
2473
|
}
|
|
2474
2474
|
bindMethods() {
|
|
2475
2475
|
this.mutate = this.mutate.bind(this), this.reset = this.reset.bind(this);
|
|
@@ -2477,34 +2477,34 @@ var Yr, sn, Wo, Uo, an, dr, Ui, Zi, zi, wt, Jc, qc, Kc, Qc, el, P1, Fm = (P1 = c
|
|
|
2477
2477
|
setOptions(n) {
|
|
2478
2478
|
var o;
|
|
2479
2479
|
const r = this.options;
|
|
2480
|
-
this.options = L(this,
|
|
2480
|
+
this.options = L(this, pr).defaultMutationOptions(n), Ps(this.options, r) || L(this, pr).getMutationCache().notify({
|
|
2481
2481
|
type: "observerOptionsUpdated",
|
|
2482
2482
|
mutation: L(this, Mt),
|
|
2483
2483
|
observer: this
|
|
2484
|
-
}), r != null && r.mutationKey && this.options.mutationKey &&
|
|
2484
|
+
}), r != null && r.mutationKey && this.options.mutationKey && ro(r.mutationKey) !== ro(this.options.mutationKey) ? this.reset() : ((o = L(this, Mt)) == null ? void 0 : o.state.status) === "pending" && L(this, Mt).setOptions(this.options);
|
|
2485
2485
|
}
|
|
2486
2486
|
onUnsubscribe() {
|
|
2487
2487
|
var n;
|
|
2488
2488
|
this.hasListeners() || (n = L(this, Mt)) == null || n.removeObserver(this);
|
|
2489
2489
|
}
|
|
2490
2490
|
onMutationUpdate(n) {
|
|
2491
|
-
ye(this,
|
|
2491
|
+
ye(this, Xn, xs).call(this), ye(this, Xn, tl).call(this, n);
|
|
2492
2492
|
}
|
|
2493
2493
|
getCurrentResult() {
|
|
2494
|
-
return L(this,
|
|
2494
|
+
return L(this, hr);
|
|
2495
2495
|
}
|
|
2496
2496
|
reset() {
|
|
2497
2497
|
var n;
|
|
2498
|
-
(n = L(this, Mt)) == null || n.removeObserver(this), te(this, Mt, void 0), ye(this,
|
|
2498
|
+
(n = L(this, Mt)) == null || n.removeObserver(this), te(this, Mt, void 0), ye(this, Xn, xs).call(this), ye(this, Xn, tl).call(this);
|
|
2499
2499
|
}
|
|
2500
2500
|
mutate(n, r) {
|
|
2501
2501
|
var o;
|
|
2502
|
-
return te(this,
|
|
2502
|
+
return te(this, zn, r), (o = L(this, Mt)) == null || o.removeObserver(this), te(this, Mt, L(this, pr).getMutationCache().build(L(this, pr), this.options)), L(this, Mt).addObserver(this), L(this, Mt).execute(n);
|
|
2503
2503
|
}
|
|
2504
|
-
},
|
|
2504
|
+
}, pr = new WeakMap(), hr = new WeakMap(), Mt = new WeakMap(), zn = new WeakMap(), Xn = new WeakSet(), xs = function() {
|
|
2505
2505
|
var r;
|
|
2506
2506
|
const n = ((r = L(this, Mt)) == null ? void 0 : r.state) ?? pf();
|
|
2507
|
-
te(this,
|
|
2507
|
+
te(this, hr, {
|
|
2508
2508
|
...n,
|
|
2509
2509
|
isPending: n.status === "pending",
|
|
2510
2510
|
isSuccess: n.status === "success",
|
|
@@ -2516,9 +2516,9 @@ var Yr, sn, Wo, Uo, an, dr, Ui, Zi, zi, wt, Jc, qc, Kc, Qc, el, P1, Fm = (P1 = c
|
|
|
2516
2516
|
}, tl = function(n) {
|
|
2517
2517
|
ct.batch(() => {
|
|
2518
2518
|
var r, o, i, s, a, c, u, d;
|
|
2519
|
-
if (L(this,
|
|
2520
|
-
const p = L(this,
|
|
2521
|
-
(n == null ? void 0 : n.type) === "success" ? ((o = (r = L(this,
|
|
2519
|
+
if (L(this, zn) && this.hasListeners()) {
|
|
2520
|
+
const p = L(this, hr).variables, b = L(this, hr).context;
|
|
2521
|
+
(n == null ? void 0 : n.type) === "success" ? ((o = (r = L(this, zn)).onSuccess) == null || o.call(r, n.data, p, b), (s = (i = L(this, zn)).onSettled) == null || s.call(i, n.data, null, p, b)) : (n == null ? void 0 : n.type) === "error" && ((c = (a = L(this, zn)).onError) == null || c.call(a, n.error, p, b), (d = (u = L(this, zn)).onSettled) == null || d.call(
|
|
2522
2522
|
u,
|
|
2523
2523
|
void 0,
|
|
2524
2524
|
n.error,
|
|
@@ -2527,7 +2527,7 @@ var Yr, sn, Wo, Uo, an, dr, Ui, Zi, zi, wt, Jc, qc, Kc, Qc, el, P1, Fm = (P1 = c
|
|
|
2527
2527
|
));
|
|
2528
2528
|
}
|
|
2529
2529
|
this.listeners.forEach((p) => {
|
|
2530
|
-
p(L(this,
|
|
2530
|
+
p(L(this, hr));
|
|
2531
2531
|
});
|
|
2532
2532
|
});
|
|
2533
2533
|
}, B1), mf = S.createContext(
|
|
@@ -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 && !no && _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 Hm(e) {
|
|
|
2771
2771
|
const o = () => {
|
|
2772
2772
|
e.removeEventListener("success", i), e.removeEventListener("error", s);
|
|
2773
2773
|
}, i = () => {
|
|
2774
|
-
n(
|
|
2774
|
+
n(qr(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 qr(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 Um(e) {
|
|
2818
2818
|
return Gm().includes(e) ? function(...t) {
|
|
2819
|
-
return e.apply(sl(this), t),
|
|
2819
|
+
return e.apply(sl(this), t), qr(this.request);
|
|
2820
2820
|
} : function(...t) {
|
|
2821
|
-
return
|
|
2821
|
+
return qr(e.apply(sl(this), t));
|
|
2822
2822
|
};
|
|
2823
2823
|
}
|
|
2824
2824
|
function Zm(e) {
|
|
2825
2825
|
return typeof e == "function" ? Um(e) : (e instanceof IDBTransaction && Wm(e), rl(e, Vm()) ? new Proxy(e, il) : e);
|
|
2826
2826
|
}
|
|
2827
|
-
function
|
|
2827
|
+
function qr(e) {
|
|
2828
2828
|
if (e instanceof IDBRequest)
|
|
2829
2829
|
return Hm(e);
|
|
2830
2830
|
if (qa.has(e))
|
|
@@ -2834,9 +2834,9 @@ function Jr(e) {
|
|
|
2834
2834
|
}
|
|
2835
2835
|
const sl = (e) => ba.get(e);
|
|
2836
2836
|
function zm(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 = qr(s);
|
|
2838
2838
|
return r && s.addEventListener("upgradeneeded", (c) => {
|
|
2839
|
-
r(
|
|
2839
|
+
r(qr(s.result), c.oldVersion, c.newVersion, qr(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,
|
|
@@ -2908,10 +2908,10 @@ Sf((e) => ({
|
|
|
2908
2908
|
const Km = "connector-db", Qm = 1, xa = {
|
|
2909
2909
|
FEEDBACK: "feedback"
|
|
2910
2910
|
}, Si = `${xa.FEEDBACK}:data`, Us = `${xa.FEEDBACK}:last_submitted`, Ti = `${xa.FEEDBACK}:capture_on_demand`, Li = `${xa.FEEDBACK}:show_notification`, e3 = 12 * 60 * 60 * 1e3, cl = (e, t = /* @__PURE__ */ new Date()) => e ? Math.abs(t.getTime() - e.getTime()) >= e3 : !0, Lf = (e, t = !1) => e.captureFeedback && (cl(e.firstViewed) && (!e.lastSubmittedFeedback || cl(e.lastSubmittedFeedback)) || !!t);
|
|
2911
|
-
let
|
|
2912
|
-
const
|
|
2911
|
+
let Nr = null;
|
|
2912
|
+
const xr = async () => {
|
|
2913
2913
|
try {
|
|
2914
|
-
|
|
2914
|
+
Nr || (Nr = await zm(Km, Qm, {
|
|
2915
2915
|
upgrade(e) {
|
|
2916
2916
|
e.objectStoreNames.contains(Si) || e.createObjectStore(Si), e.objectStoreNames.contains(Us) || e.createObjectStore(Us), e.objectStoreNames.contains(Ti) || e.createObjectStore(Ti), e.objectStoreNames.contains(Li) || e.createObjectStore(Li);
|
|
2917
2917
|
},
|
|
@@ -2919,19 +2919,19 @@ const br = async () => {
|
|
|
2919
2919
|
console.warn("Upgrade blocked! Close other tabs using this DB.");
|
|
2920
2920
|
},
|
|
2921
2921
|
blocking() {
|
|
2922
|
-
console.warn("Another tab is trying to upgrade. Closing connection to allow upgrade."),
|
|
2922
|
+
console.warn("Another tab is trying to upgrade. Closing connection to allow upgrade."), Nr && (Nr.close(), Nr = null);
|
|
2923
2923
|
},
|
|
2924
2924
|
terminated() {
|
|
2925
|
-
console.error("DB connection unexpectedly closed. Resetting connection."),
|
|
2925
|
+
console.error("DB connection unexpectedly closed. Resetting connection."), Nr = null;
|
|
2926
2926
|
}
|
|
2927
2927
|
}));
|
|
2928
2928
|
} catch (e) {
|
|
2929
2929
|
console.error("Error opening IndexedDB connection:", e);
|
|
2930
2930
|
}
|
|
2931
|
-
return
|
|
2931
|
+
return Nr;
|
|
2932
2932
|
}, ou = async (e) => {
|
|
2933
2933
|
if (!e) return [];
|
|
2934
|
-
const t = await
|
|
2934
|
+
const t = await xr();
|
|
2935
2935
|
if (!t) return [];
|
|
2936
2936
|
try {
|
|
2937
2937
|
return await t.get(Si, e) || [];
|
|
@@ -2940,7 +2940,7 @@ const br = async () => {
|
|
|
2940
2940
|
}
|
|
2941
2941
|
}, t3 = async (e) => {
|
|
2942
2942
|
if (!e) return null;
|
|
2943
|
-
const t = await
|
|
2943
|
+
const t = await xr();
|
|
2944
2944
|
if (!t) return null;
|
|
2945
2945
|
try {
|
|
2946
2946
|
return await t.get(Us, e) || null;
|
|
@@ -2949,7 +2949,7 @@ const br = async () => {
|
|
|
2949
2949
|
}
|
|
2950
2950
|
}, va = async (e) => {
|
|
2951
2951
|
if (!e) return;
|
|
2952
|
-
const t = await
|
|
2952
|
+
const t = await xr();
|
|
2953
2953
|
if (t)
|
|
2954
2954
|
try {
|
|
2955
2955
|
return await t.get(Ti, e);
|
|
@@ -2959,7 +2959,7 @@ const br = async () => {
|
|
|
2959
2959
|
}
|
|
2960
2960
|
}, n3 = async (e) => {
|
|
2961
2961
|
if (!e) return !1;
|
|
2962
|
-
const t = await
|
|
2962
|
+
const t = await xr();
|
|
2963
2963
|
if (!t) return !1;
|
|
2964
2964
|
try {
|
|
2965
2965
|
return await t.get(Li, e) ?? !1;
|
|
@@ -2968,7 +2968,7 @@ const br = async () => {
|
|
|
2968
2968
|
}
|
|
2969
2969
|
}, r3 = async (e, t) => {
|
|
2970
2970
|
if (!e || !t || !t.length) return;
|
|
2971
|
-
const n = await
|
|
2971
|
+
const n = await xr();
|
|
2972
2972
|
if (n)
|
|
2973
2973
|
try {
|
|
2974
2974
|
const r = await ou(e), o = new Set(r.map((s) => s.connectorId)), i = t.filter((s) => !o.has(s.connector_id)).map((s) => ({
|
|
@@ -2985,7 +2985,7 @@ const br = async () => {
|
|
|
2985
2985
|
}
|
|
2986
2986
|
}, o3 = async (e) => {
|
|
2987
2987
|
if (!e) return;
|
|
2988
|
-
const t = await
|
|
2988
|
+
const t = await xr();
|
|
2989
2989
|
if (t)
|
|
2990
2990
|
try {
|
|
2991
2991
|
const n = await ou(e), r = await va(e), o = /* @__PURE__ */ new Date(), i = n.map((s) => {
|
|
@@ -3003,7 +3003,7 @@ const br = async () => {
|
|
|
3003
3003
|
}
|
|
3004
3004
|
}, ld = async (e, t) => {
|
|
3005
3005
|
if (!e) return;
|
|
3006
|
-
const n = await
|
|
3006
|
+
const n = await xr();
|
|
3007
3007
|
if (n)
|
|
3008
3008
|
try {
|
|
3009
3009
|
await n.put(Ti, t, e);
|
|
@@ -3012,7 +3012,7 @@ const br = async () => {
|
|
|
3012
3012
|
}
|
|
3013
3013
|
}, i3 = async (e) => {
|
|
3014
3014
|
if (!e) return;
|
|
3015
|
-
const t = await
|
|
3015
|
+
const t = await xr();
|
|
3016
3016
|
if (t)
|
|
3017
3017
|
try {
|
|
3018
3018
|
await t.put(Li, !1, e);
|
|
@@ -3037,7 +3037,7 @@ const br = async () => {
|
|
|
3037
3037
|
}, a3 = async (e) => await n3(e) && await Rf(e), c3 = async (e) => {
|
|
3038
3038
|
await i3(e);
|
|
3039
3039
|
};
|
|
3040
|
-
var ll = {},
|
|
3040
|
+
var ll = {}, jr = {};
|
|
3041
3041
|
function Of(e, t) {
|
|
3042
3042
|
return function() {
|
|
3043
3043
|
return e.apply(t, arguments);
|
|
@@ -3046,7 +3046,7 @@ function Of(e, t) {
|
|
|
3046
3046
|
const { toString: l3 } = Object.prototype, { getPrototypeOf: iu } = Object, ya = /* @__PURE__ */ ((e) => (t) => {
|
|
3047
3047
|
const n = l3.call(t);
|
|
3048
3048
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
3049
|
-
})(/* @__PURE__ */ Object.create(null)), vn = (e) => (e = e.toLowerCase(), (t) => ya(t) === e), Ca = (e) => (t) => typeof t === e, { isArray:
|
|
3049
|
+
})(/* @__PURE__ */ Object.create(null)), vn = (e) => (e = e.toLowerCase(), (t) => ya(t) === e), Ca = (e) => (t) => typeof t === e, { isArray: Ko } = Array, Ri = Ca("undefined");
|
|
3050
3050
|
function u3(e) {
|
|
3051
3051
|
return e !== null && !Ri(e) && e.constructor !== null && !Ri(e.constructor) && qt(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
3052
3052
|
}
|
|
@@ -3069,7 +3069,7 @@ function Yi(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
3069
3069
|
if (e === null || typeof e > "u")
|
|
3070
3070
|
return;
|
|
3071
3071
|
let r, o;
|
|
3072
|
-
if (typeof e != "object" && (e = [e]),
|
|
3072
|
+
if (typeof e != "object" && (e = [e]), Ko(e))
|
|
3073
3073
|
for (r = 0, o = e.length; r < o; r++)
|
|
3074
3074
|
t.call(null, e[r], r, e);
|
|
3075
3075
|
else {
|
|
@@ -3088,11 +3088,11 @@ function Df(e, t) {
|
|
|
3088
3088
|
return o;
|
|
3089
3089
|
return null;
|
|
3090
3090
|
}
|
|
3091
|
-
const
|
|
3091
|
+
const Gr = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : Ee, Nf = (e) => !Ri(e) && e !== Gr;
|
|
3092
3092
|
function ul() {
|
|
3093
3093
|
const { caseless: e } = Nf(this) && this || {}, t = {}, n = (r, o) => {
|
|
3094
3094
|
const i = e && Df(t, o) || o;
|
|
3095
|
-
ys(t[i]) && ys(r) ? t[i] = ul(t[i], r) : ys(r) ? t[i] = ul({}, r) :
|
|
3095
|
+
ys(t[i]) && ys(r) ? t[i] = ul(t[i], r) : ys(r) ? t[i] = ul({}, r) : Ko(r) ? t[i] = r.slice() : t[i] = r;
|
|
3096
3096
|
};
|
|
3097
3097
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
3098
3098
|
arguments[r] && Yi(arguments[r], n);
|
|
@@ -3120,7 +3120,7 @@ const A3 = (e, t, n, { allOwnKeys: r } = {}) => (Yi(t, (o, i) => {
|
|
|
3120
3120
|
return r !== -1 && r === n;
|
|
3121
3121
|
}, O3 = (e) => {
|
|
3122
3122
|
if (!e) return null;
|
|
3123
|
-
if (
|
|
3123
|
+
if (Ko(e)) return e;
|
|
3124
3124
|
let t = e.length;
|
|
3125
3125
|
if (!kf(t)) return null;
|
|
3126
3126
|
const n = new Array(t);
|
|
@@ -3172,7 +3172,7 @@ const A3 = (e, t, n, { allOwnKeys: r } = {}) => (Yi(t, (o, i) => {
|
|
|
3172
3172
|
n[i] = !0;
|
|
3173
3173
|
});
|
|
3174
3174
|
};
|
|
3175
|
-
return
|
|
3175
|
+
return Ko(e) ? r(e) : r(String(e).split(t)), n;
|
|
3176
3176
|
}, V3 = () => {
|
|
3177
3177
|
}, G3 = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Qa = "abcdefghijklmnopqrstuvwxyz", dd = "0123456789", Mf = {
|
|
3178
3178
|
DIGIT: dd,
|
|
@@ -3195,7 +3195,7 @@ const U3 = (e) => {
|
|
|
3195
3195
|
return;
|
|
3196
3196
|
if (!("toJSON" in r)) {
|
|
3197
3197
|
t[o] = r;
|
|
3198
|
-
const i =
|
|
3198
|
+
const i = Ko(r) ? [] : {};
|
|
3199
3199
|
return Yi(r, (s, a) => {
|
|
3200
3200
|
const c = n(s, o + 1);
|
|
3201
3201
|
!Ri(c) && (i[a] = c);
|
|
@@ -3205,16 +3205,16 @@ const U3 = (e) => {
|
|
|
3205
3205
|
return r;
|
|
3206
3206
|
};
|
|
3207
3207
|
return n(e, 0);
|
|
3208
|
-
}, Z3 = vn("AsyncFunction"), z3 = (e) => e && (Ea(e) || qt(e)) && qt(e.then) && qt(e.catch), Pf = ((e, t) => e ? setImmediate : t ? ((n, r) => (
|
|
3209
|
-
o ===
|
|
3208
|
+
}, Z3 = vn("AsyncFunction"), z3 = (e) => e && (Ea(e) || qt(e)) && qt(e.then) && qt(e.catch), Pf = ((e, t) => e ? setImmediate : t ? ((n, r) => (Gr.addEventListener("message", ({ source: o, data: i }) => {
|
|
3209
|
+
o === Gr && i === n && r.length && r.shift()();
|
|
3210
3210
|
}, !1), (o) => {
|
|
3211
|
-
r.push(o),
|
|
3211
|
+
r.push(o), Gr.postMessage(n, "*");
|
|
3212
3212
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
3213
3213
|
typeof setImmediate == "function",
|
|
3214
|
-
qt(
|
|
3215
|
-
), $3 = typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
3214
|
+
qt(Gr.postMessage)
|
|
3215
|
+
), $3 = typeof queueMicrotask < "u" ? queueMicrotask.bind(Gr) : typeof process < "u" && process.nextTick || Pf;
|
|
3216
3216
|
var B = {
|
|
3217
|
-
isArray:
|
|
3217
|
+
isArray: Ko,
|
|
3218
3218
|
isArrayBuffer: Ff,
|
|
3219
3219
|
isBuffer: u3,
|
|
3220
3220
|
isFormData: v3,
|
|
@@ -3262,7 +3262,7 @@ var B = {
|
|
|
3262
3262
|
noop: V3,
|
|
3263
3263
|
toFiniteNumber: G3,
|
|
3264
3264
|
findKey: Df,
|
|
3265
|
-
global:
|
|
3265
|
+
global: Gr,
|
|
3266
3266
|
isContextDefined: Nf,
|
|
3267
3267
|
ALPHABET: Mf,
|
|
3268
3268
|
generateString: H3,
|
|
@@ -3667,7 +3667,7 @@ var f4 = (e) => {
|
|
|
3667
3667
|
}), t;
|
|
3668
3668
|
};
|
|
3669
3669
|
const gd = Symbol("internals");
|
|
3670
|
-
function
|
|
3670
|
+
function si(e) {
|
|
3671
3671
|
return e && String(e).trim().toLowerCase();
|
|
3672
3672
|
}
|
|
3673
3673
|
function Cs(e) {
|
|
@@ -3712,7 +3712,7 @@ class Ia {
|
|
|
3712
3712
|
set(t, n, r) {
|
|
3713
3713
|
const o = this;
|
|
3714
3714
|
function i(a, c, u) {
|
|
3715
|
-
const d =
|
|
3715
|
+
const d = si(c);
|
|
3716
3716
|
if (!d)
|
|
3717
3717
|
throw new Error("header name must be a non-empty string");
|
|
3718
3718
|
const p = B.findKey(o, d);
|
|
@@ -3731,7 +3731,7 @@ class Ia {
|
|
|
3731
3731
|
return this;
|
|
3732
3732
|
}
|
|
3733
3733
|
get(t, n) {
|
|
3734
|
-
if (t =
|
|
3734
|
+
if (t = si(t), t) {
|
|
3735
3735
|
const r = B.findKey(this, t);
|
|
3736
3736
|
if (r) {
|
|
3737
3737
|
const o = this[r];
|
|
@@ -3748,7 +3748,7 @@ class Ia {
|
|
|
3748
3748
|
}
|
|
3749
3749
|
}
|
|
3750
3750
|
has(t, n) {
|
|
3751
|
-
if (t =
|
|
3751
|
+
if (t = si(t), t) {
|
|
3752
3752
|
const r = B.findKey(this, t);
|
|
3753
3753
|
return !!(r && this[r] !== void 0 && (!n || ec(this, this[r], r, n)));
|
|
3754
3754
|
}
|
|
@@ -3758,7 +3758,7 @@ class Ia {
|
|
|
3758
3758
|
const r = this;
|
|
3759
3759
|
let o = !1;
|
|
3760
3760
|
function i(s) {
|
|
3761
|
-
if (s =
|
|
3761
|
+
if (s = si(s), s) {
|
|
3762
3762
|
const a = B.findKey(r, s);
|
|
3763
3763
|
a && (!n || ec(r, r[a], a, n)) && (delete r[a], o = !0);
|
|
3764
3764
|
}
|
|
@@ -3817,7 +3817,7 @@ class Ia {
|
|
|
3817
3817
|
accessors: {}
|
|
3818
3818
|
}).accessors, o = this.prototype;
|
|
3819
3819
|
function i(s) {
|
|
3820
|
-
const a =
|
|
3820
|
+
const a = si(s);
|
|
3821
3821
|
r[a] || (m4(o, s), r[a] = !0);
|
|
3822
3822
|
}
|
|
3823
3823
|
return B.isArray(t) ? t.forEach(i) : i(t), this;
|
|
@@ -3845,10 +3845,10 @@ function tc(e, t) {
|
|
|
3845
3845
|
function zf(e) {
|
|
3846
3846
|
return !!(e && e.__CANCEL__);
|
|
3847
3847
|
}
|
|
3848
|
-
function
|
|
3848
|
+
function Qo(e, t, n) {
|
|
3849
3849
|
Te.call(this, e ?? "canceled", Te.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
3850
3850
|
}
|
|
3851
|
-
B.inherits(
|
|
3851
|
+
B.inherits(Qo, Te, {
|
|
3852
3852
|
__CANCEL__: !0
|
|
3853
3853
|
});
|
|
3854
3854
|
function $f(e, t, n) {
|
|
@@ -3988,7 +3988,7 @@ function Xf(e, t) {
|
|
|
3988
3988
|
return e && !E4(t) ? w4(e, t) : t;
|
|
3989
3989
|
}
|
|
3990
3990
|
const xd = (e) => e instanceof gn ? { ...e } : e;
|
|
3991
|
-
function
|
|
3991
|
+
function oo(e, t) {
|
|
3992
3992
|
t = t || {};
|
|
3993
3993
|
const n = {};
|
|
3994
3994
|
function r(u, d, p) {
|
|
@@ -4053,7 +4053,7 @@ function ro(e, t) {
|
|
|
4053
4053
|
}), n;
|
|
4054
4054
|
}
|
|
4055
4055
|
var Yf = (e) => {
|
|
4056
|
-
const t =
|
|
4056
|
+
const t = oo({}, 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",
|
|
@@ -4123,7 +4123,7 @@ var _4 = I4 && function(e) {
|
|
|
4123
4123
|
}, i === void 0 && s.setContentType(null), "setRequestHeader" in f && B.forEach(s.toJSON(), function(E, C) {
|
|
4124
4124
|
f.setRequestHeader(C, E);
|
|
4125
4125
|
}), B.isUndefined(o.withCredentials) || (f.withCredentials = !!o.withCredentials), a && a !== "json" && (f.responseType = o.responseType), u && ([b, m] = Zs(u, !0), f.addEventListener("progress", b)), c && f.upload && ([p, v] = Zs(c), f.upload.addEventListener("progress", p), f.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (d = (y) => {
|
|
4126
|
-
f && (r(!y || y.type ? new
|
|
4126
|
+
f && (r(!y || y.type ? new Qo(null, e, f) : y), f.abort(), f = null);
|
|
4127
4127
|
}, o.cancelToken && o.cancelToken.subscribe(d), o.signal && (o.signal.aborted ? d() : o.signal.addEventListener("abort", d)));
|
|
4128
4128
|
const x = b4(o.url);
|
|
4129
4129
|
if (x && Wt.protocols.indexOf(x) === -1) {
|
|
@@ -4141,7 +4141,7 @@ const A4 = (e, t) => {
|
|
|
4141
4141
|
if (!o) {
|
|
4142
4142
|
o = !0, a();
|
|
4143
4143
|
const d = u instanceof Error ? u : this.reason;
|
|
4144
|
-
r.abort(d instanceof Te ? d : new
|
|
4144
|
+
r.abort(d instanceof Te ? d : new Qo(d instanceof Error ? d.message : d));
|
|
4145
4145
|
}
|
|
4146
4146
|
};
|
|
4147
4147
|
let s = t && setTimeout(() => {
|
|
@@ -4393,7 +4393,7 @@ var Kf = {
|
|
|
4393
4393
|
};
|
|
4394
4394
|
function nc(e) {
|
|
4395
4395
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
4396
|
-
throw new
|
|
4396
|
+
throw new Qo(null, e);
|
|
4397
4397
|
}
|
|
4398
4398
|
function Ed(e) {
|
|
4399
4399
|
return nc(e), e.headers = gn.from(e.headers), e.data = tc.call(
|
|
@@ -4459,7 +4459,7 @@ var gl = {
|
|
|
4459
4459
|
assertOptions: M4,
|
|
4460
4460
|
validators: uu
|
|
4461
4461
|
};
|
|
4462
|
-
const
|
|
4462
|
+
const nr = gl.validators;
|
|
4463
4463
|
let $s = class {
|
|
4464
4464
|
constructor(t) {
|
|
4465
4465
|
this.defaults = t, this.interceptors = {
|
|
@@ -4493,17 +4493,17 @@ 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 = oo(this.defaults, n);
|
|
4497
4497
|
const { transitional: r, paramsSerializer: o, headers: i } = n;
|
|
4498
4498
|
r !== void 0 && gl.assertOptions(r, {
|
|
4499
|
-
silentJSONParsing:
|
|
4500
|
-
forcedJSONParsing:
|
|
4501
|
-
clarifyTimeoutError:
|
|
4499
|
+
silentJSONParsing: nr.transitional(nr.boolean),
|
|
4500
|
+
forcedJSONParsing: nr.transitional(nr.boolean),
|
|
4501
|
+
clarifyTimeoutError: nr.transitional(nr.boolean)
|
|
4502
4502
|
}, !1), o != null && (B.isFunction(o) ? n.paramsSerializer = {
|
|
4503
4503
|
serialize: o
|
|
4504
4504
|
} : gl.assertOptions(o, {
|
|
4505
|
-
encode:
|
|
4506
|
-
serialize:
|
|
4505
|
+
encode: nr.function,
|
|
4506
|
+
serialize: nr.function
|
|
4507
4507
|
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
4508
4508
|
let s = i && B.merge(
|
|
4509
4509
|
i.common,
|
|
@@ -4552,14 +4552,14 @@ let $s = class {
|
|
|
4552
4552
|
return d;
|
|
4553
4553
|
}
|
|
4554
4554
|
getUri(t) {
|
|
4555
|
-
t =
|
|
4555
|
+
t = oo(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(oo(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(oo(a || {}, {
|
|
4573
4573
|
method: t,
|
|
4574
4574
|
headers: r ? {
|
|
4575
4575
|
"Content-Type": "multipart/form-data"
|
|
@@ -4606,7 +4606,7 @@ class du {
|
|
|
4606
4606
|
r.unsubscribe(i);
|
|
4607
4607
|
}, s;
|
|
4608
4608
|
}, t(function(i, s, a) {
|
|
4609
|
-
r.reason || (r.reason = new
|
|
4609
|
+
r.reason || (r.reason = new Qo(i, s, a), n(r.reason));
|
|
4610
4610
|
});
|
|
4611
4611
|
}
|
|
4612
4612
|
/**
|
|
@@ -4736,12 +4736,12 @@ var G4 = 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(oo(e, o));
|
|
4740
4740
|
}, n;
|
|
4741
4741
|
}
|
|
4742
4742
|
const ht = ep(lu);
|
|
4743
4743
|
ht.Axios = Es;
|
|
4744
|
-
ht.CanceledError =
|
|
4744
|
+
ht.CanceledError = Qo;
|
|
4745
4745
|
ht.CancelToken = P4;
|
|
4746
4746
|
ht.isCancel = zf;
|
|
4747
4747
|
ht.VERSION = Qf;
|
|
@@ -4753,13 +4753,13 @@ ht.all = function(t) {
|
|
|
4753
4753
|
};
|
|
4754
4754
|
ht.spread = B4;
|
|
4755
4755
|
ht.isAxiosError = V4;
|
|
4756
|
-
ht.mergeConfig =
|
|
4756
|
+
ht.mergeConfig = oo;
|
|
4757
4757
|
ht.AxiosHeaders = gn;
|
|
4758
4758
|
ht.formToJSON = (e) => Zf(B.isHTMLForm(e) ? new FormData(e) : e);
|
|
4759
4759
|
ht.getAdapter = Kf.getAdapter;
|
|
4760
4760
|
ht.HttpStatusCode = G4;
|
|
4761
4761
|
ht.default = ht;
|
|
4762
|
-
var tp = ht, We = {},
|
|
4762
|
+
var tp = ht, We = {}, vr = {};
|
|
4763
4763
|
(function(e) {
|
|
4764
4764
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.PLATFORM = e.TENANT_PLATFORM = e.API_CALL_ORIGIN = e.TIERS = e.APP_UI = e.CONFIG_HIVER = e.DEFAULT_INIT_CONFIG_HIVER = e.TWO_MINUTES_IN_MS = e.REFETCH_CHECK_DELAY = e.RETRY_DELAY_IN_CASE_OF_CORRUPTED_EXPIRY = e.INITIAL_RETRY_DELAY = e.MAX_BACKOFF_LIMIT = e.MAX_CONFLICT_RETRY_DELAY = e.MAX_RETRY_DELAY = e.GET_METHOD = void 0, e.GET_METHOD = "GET", e.MAX_RETRY_DELAY = 18e4, e.MAX_CONFLICT_RETRY_DELAY = 63e3, e.MAX_BACKOFF_LIMIT = 8e3, e.INITIAL_RETRY_DELAY = 1e3, e.RETRY_DELAY_IN_CASE_OF_CORRUPTED_EXPIRY = 3e3, e.REFETCH_CHECK_DELAY = 168e4, e.TWO_MINUTES_IN_MS = 2 * 60 * 1e3, e.DEFAULT_INIT_CONFIG_HIVER = {
|
|
4765
4765
|
getToken: !0,
|
|
@@ -4790,11 +4790,11 @@ var tp = ht, We = {}, xr = {};
|
|
|
4790
4790
|
}, function(t) {
|
|
4791
4791
|
t[t.WEB = 0] = "WEB", t[t.MOBILE = 1] = "MOBILE";
|
|
4792
4792
|
}(e.PLATFORM || (e.PLATFORM = {}));
|
|
4793
|
-
})(
|
|
4793
|
+
})(vr);
|
|
4794
4794
|
var Bt = {};
|
|
4795
4795
|
Object.defineProperty(Bt, "__esModule", { value: !0 });
|
|
4796
4796
|
Bt.getProdHqConfig = Bt.getProdApiConfig = Bt.getSitHqConfig = Bt.getSitApiConfig = Bt.getDevHqConfig = Bt.getDevApiConfig = void 0;
|
|
4797
|
-
var
|
|
4797
|
+
var ei = {
|
|
4798
4798
|
heimdallTokenFetch: "/v1/token/get",
|
|
4799
4799
|
heimdallLogin: "/v1/login/code",
|
|
4800
4800
|
heimdallLogout: "/v1/logout",
|
|
@@ -4805,7 +4805,7 @@ var Qo = {
|
|
|
4805
4805
|
v2Url: "https://v2dev.hiver.space",
|
|
4806
4806
|
heimdallUrl: "https://dev.hiver.space/api/heimdall-api",
|
|
4807
4807
|
hotUrl: "http://local.hiverhq.co.in:3000",
|
|
4808
|
-
apiEndpoints:
|
|
4808
|
+
apiEndpoints: ei
|
|
4809
4809
|
};
|
|
4810
4810
|
};
|
|
4811
4811
|
Bt.getDevApiConfig = H4;
|
|
@@ -4814,7 +4814,7 @@ var W4 = function() {
|
|
|
4814
4814
|
v2Url: "https://v2dev.hiver.space",
|
|
4815
4815
|
heimdallUrl: "https://dev.hiver.space/api/heimdall-api2",
|
|
4816
4816
|
hotUrl: "http://local.hiverhq.co.in:3000",
|
|
4817
|
-
apiEndpoints:
|
|
4817
|
+
apiEndpoints: ei
|
|
4818
4818
|
};
|
|
4819
4819
|
};
|
|
4820
4820
|
Bt.getDevHqConfig = W4;
|
|
@@ -4823,7 +4823,7 @@ var U4 = function(e) {
|
|
|
4823
4823
|
v2Url: "https://v2".concat(e, ".hiver.space"),
|
|
4824
4824
|
heimdallUrl: "https://".concat(e, ".hiver.space/api/heimdall-api"),
|
|
4825
4825
|
hotUrl: "https://api-staging.hiverhq.co.in",
|
|
4826
|
-
apiEndpoints:
|
|
4826
|
+
apiEndpoints: ei
|
|
4827
4827
|
};
|
|
4828
4828
|
};
|
|
4829
4829
|
Bt.getSitApiConfig = U4;
|
|
@@ -4832,7 +4832,7 @@ var Z4 = function(e) {
|
|
|
4832
4832
|
v2Url: "https://v2".concat(e, ".hiver.space"),
|
|
4833
4833
|
heimdallUrl: "https://".concat(e, ".hiver.space/api/heimdall-api2"),
|
|
4834
4834
|
hotUrl: "https://api-staging.hiverhq.co.in",
|
|
4835
|
-
apiEndpoints:
|
|
4835
|
+
apiEndpoints: ei
|
|
4836
4836
|
};
|
|
4837
4837
|
};
|
|
4838
4838
|
Bt.getSitHqConfig = Z4;
|
|
@@ -4841,7 +4841,7 @@ var z4 = function() {
|
|
|
4841
4841
|
v2Url: "https://v2.hiverhq.com",
|
|
4842
4842
|
heimdallUrl: "https://heimdall.hiverapi.com",
|
|
4843
4843
|
hotUrl: "https://app.hiverhq.com",
|
|
4844
|
-
apiEndpoints:
|
|
4844
|
+
apiEndpoints: ei
|
|
4845
4845
|
};
|
|
4846
4846
|
};
|
|
4847
4847
|
Bt.getProdApiConfig = z4;
|
|
@@ -4850,7 +4850,7 @@ var $4 = function() {
|
|
|
4850
4850
|
v2Url: "https://v2.hiverhq.com",
|
|
4851
4851
|
heimdallUrl: "https://heimdall2.hiverhq.com",
|
|
4852
4852
|
hotUrl: "https://app.hiverhq.com",
|
|
4853
|
-
apiEndpoints:
|
|
4853
|
+
apiEndpoints: ei
|
|
4854
4854
|
};
|
|
4855
4855
|
};
|
|
4856
4856
|
Bt.getProdHqConfig = $4;
|
|
@@ -4872,35 +4872,35 @@ function J4(e) {
|
|
|
4872
4872
|
kn.removeValue = J4;
|
|
4873
4873
|
Object.defineProperty(Fn, "__esModule", { value: !0 });
|
|
4874
4874
|
Fn.removeItemFromStorage = Fn.setItemInStorage = Fn.getItemFromStorage = void 0;
|
|
4875
|
-
var
|
|
4876
|
-
switch (t === void 0 && (t = (0,
|
|
4877
|
-
case
|
|
4875
|
+
var zo = vr, $o = kn, q4 = function(e, t) {
|
|
4876
|
+
switch (t === void 0 && (t = (0, $o.getValue)("PLATFORM")), t) {
|
|
4877
|
+
case zo.PLATFORM.WEB:
|
|
4878
4878
|
return sessionStorage.getItem(e);
|
|
4879
|
-
case
|
|
4880
|
-
return (0,
|
|
4879
|
+
case zo.PLATFORM.MOBILE:
|
|
4880
|
+
return (0, $o.getValue)(e);
|
|
4881
4881
|
default:
|
|
4882
4882
|
throw Error("Invalid PLATFORM ".concat(t));
|
|
4883
4883
|
}
|
|
4884
4884
|
};
|
|
4885
4885
|
Fn.getItemFromStorage = q4;
|
|
4886
4886
|
var K4 = function(e, t, n) {
|
|
4887
|
-
switch (n === void 0 && (n = (0,
|
|
4888
|
-
case
|
|
4887
|
+
switch (n === void 0 && (n = (0, $o.getValue)("PLATFORM")), n) {
|
|
4888
|
+
case zo.PLATFORM.WEB:
|
|
4889
4889
|
return sessionStorage.setItem(e, t);
|
|
4890
|
-
case
|
|
4891
|
-
return (0,
|
|
4890
|
+
case zo.PLATFORM.MOBILE:
|
|
4891
|
+
return (0, $o.setValue)(e, t);
|
|
4892
4892
|
default:
|
|
4893
4893
|
throw Error("Invalid PLATFORM ".concat(n));
|
|
4894
4894
|
}
|
|
4895
4895
|
};
|
|
4896
4896
|
Fn.setItemInStorage = K4;
|
|
4897
4897
|
var Q4 = function(e, t) {
|
|
4898
|
-
switch (t === void 0 && (t = (0,
|
|
4899
|
-
case
|
|
4898
|
+
switch (t === void 0 && (t = (0, $o.getValue)("PLATFORM")), t) {
|
|
4899
|
+
case zo.PLATFORM.WEB:
|
|
4900
4900
|
sessionStorage.removeItem(e);
|
|
4901
4901
|
break;
|
|
4902
|
-
case
|
|
4903
|
-
(0,
|
|
4902
|
+
case zo.PLATFORM.MOBILE:
|
|
4903
|
+
(0, $o.removeValue)(e);
|
|
4904
4904
|
break;
|
|
4905
4905
|
default:
|
|
4906
4906
|
throw Error("Invalid PLATFORM ".concat(t));
|
|
@@ -4995,7 +4995,7 @@ var eb = 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
|
|
4998
|
+
var $n = vr, vo = Bt, Xt = Fn, 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) {
|
|
@@ -5071,15 +5071,15 @@ var ub = function(e) {
|
|
|
5071
5071
|
We.introduceDelay = ub;
|
|
5072
5072
|
var db = function(e, t, n) {
|
|
5073
5073
|
switch (n === void 0 && (n = !0), t) {
|
|
5074
|
-
case
|
|
5075
|
-
case
|
|
5076
|
-
return n ? (0,
|
|
5077
|
-
case
|
|
5078
|
-
case
|
|
5079
|
-
return n ? (0,
|
|
5080
|
-
case
|
|
5074
|
+
case $n.TIERS.SIT:
|
|
5075
|
+
case $n.TIERS.QA:
|
|
5076
|
+
return n ? (0, vo.getSitApiConfig)(e) : (0, vo.getSitHqConfig)(e);
|
|
5077
|
+
case $n.TIERS.PRODUCTION:
|
|
5078
|
+
case $n.TIERS.PROD:
|
|
5079
|
+
return n ? (0, vo.getProdApiConfig)() : (0, vo.getProdHqConfig)();
|
|
5080
|
+
case $n.TIERS.DEV:
|
|
5081
5081
|
default:
|
|
5082
|
-
return n ? (0,
|
|
5082
|
+
return n ? (0, vo.getDevApiConfig)() : (0, vo.getDevHqConfig)();
|
|
5083
5083
|
}
|
|
5084
5084
|
};
|
|
5085
5085
|
We.getConfig = db;
|
|
@@ -5087,15 +5087,15 @@ var fb = function() {
|
|
|
5087
5087
|
try {
|
|
5088
5088
|
var e = (0, Xt.getItemFromStorage)("hiverAuthTokenExpiry");
|
|
5089
5089
|
if (!e)
|
|
5090
|
-
return
|
|
5090
|
+
return $n.RETRY_DELAY_IN_CASE_OF_CORRUPTED_EXPIRY;
|
|
5091
5091
|
var t = new Date(e), n = pu();
|
|
5092
|
-
return t.getTime() - n.getTime() >
|
|
5092
|
+
return t.getTime() - n.getTime() > $n.TWO_MINUTES_IN_MS ? t.getTime() - $n.TWO_MINUTES_IN_MS : t.getTime() - n.getTime();
|
|
5093
5093
|
} catch (r) {
|
|
5094
|
-
return console.error("Heimdall: Error in getRefreshInterval", r),
|
|
5094
|
+
return console.error("Heimdall: Error in getRefreshInterval", r), $n.REFETCH_CHECK_DELAY;
|
|
5095
5095
|
}
|
|
5096
5096
|
};
|
|
5097
5097
|
We.getRefreshInterval = fb;
|
|
5098
|
-
var
|
|
5098
|
+
var ai = {}, dn = {}, Id;
|
|
5099
5099
|
function rp() {
|
|
5100
5100
|
if (Id) return dn;
|
|
5101
5101
|
Id = 1;
|
|
@@ -5186,7 +5186,7 @@ function rp() {
|
|
|
5186
5186
|
}
|
|
5187
5187
|
};
|
|
5188
5188
|
Object.defineProperty(dn, "__esModule", { value: !0 }), dn.logoutFromHeimdall = dn.getTenantLoginCode = dn.getLoginToken = dn.getAccessToken = void 0;
|
|
5189
|
-
var n =
|
|
5189
|
+
var n = vr, r = ip(), o = We, i = function(m, h, f, g) {
|
|
5190
5190
|
var x = (0, o.getStoredAuthData)(), y = f === n.TENANT_PLATFORM.HIVERWEB ? n.TENANT_PLATFORM.HIVERWEB : n.TENANT_PLATFORM.GMAIL;
|
|
5191
5191
|
return {
|
|
5192
5192
|
root_url: m.heimdallUrl,
|
|
@@ -5420,7 +5420,7 @@ var Aa = {}, pb = Ee && Ee.__awaiter || function(e, t, n, r) {
|
|
|
5420
5420
|
};
|
|
5421
5421
|
Object.defineProperty(Aa, "__esModule", { value: !0 });
|
|
5422
5422
|
Aa.subscribeToOnlineEvent = void 0;
|
|
5423
|
-
var _d =
|
|
5423
|
+
var _d = vr, gb = kn, mb = function(e, t) {
|
|
5424
5424
|
switch (t === void 0 && (t = (0, gb.getValue)("PLATFORM")), console.log("Online status detected. Fetching token..."), t) {
|
|
5425
5425
|
case _d.PLATFORM.WEB:
|
|
5426
5426
|
return window.addEventListener("online", function() {
|
|
@@ -5445,7 +5445,7 @@ var _d = xr, gb = kn, mb = function(e, t) {
|
|
|
5445
5445
|
Aa.subscribeToOnlineEvent = mb;
|
|
5446
5446
|
var Ad;
|
|
5447
5447
|
function op() {
|
|
5448
|
-
if (Ad) return
|
|
5448
|
+
if (Ad) return ai;
|
|
5449
5449
|
Ad = 1;
|
|
5450
5450
|
var e = Ee && Ee.__awaiter || function(m, h, f, g) {
|
|
5451
5451
|
function x(y) {
|
|
@@ -5533,8 +5533,8 @@ function op() {
|
|
|
5533
5533
|
return { value: _[0] ? _[1] : void 0, done: !0 };
|
|
5534
5534
|
}
|
|
5535
5535
|
};
|
|
5536
|
-
Object.defineProperty(
|
|
5537
|
-
var n = rp(), r =
|
|
5536
|
+
Object.defineProperty(ai, "__esModule", { value: !0 }), ai.fetchAccessToken = void 0;
|
|
5537
|
+
var n = rp(), r = vr, o = We, i = Aa, s, a, c, u = function(m, h, f, g, x, y) {
|
|
5538
5538
|
return y === void 0 && (y = r.APP_UI.DEFAULT), e(void 0, void 0, void 0, function() {
|
|
5539
5539
|
var E, C, w, _, I, T, D, F, O;
|
|
5540
5540
|
return t(this, function(j) {
|
|
@@ -5677,11 +5677,11 @@ function op() {
|
|
|
5677
5677
|
});
|
|
5678
5678
|
});
|
|
5679
5679
|
};
|
|
5680
|
-
return
|
|
5680
|
+
return ai.fetchAccessToken = v, ai;
|
|
5681
5681
|
}
|
|
5682
5682
|
var Sd;
|
|
5683
5683
|
function ip() {
|
|
5684
|
-
if (Sd) return
|
|
5684
|
+
if (Sd) return jr;
|
|
5685
5685
|
Sd = 1;
|
|
5686
5686
|
var e = Ee && Ee.__assign || function() {
|
|
5687
5687
|
return e = Object.assign || function(h) {
|
|
@@ -5777,8 +5777,8 @@ function ip() {
|
|
|
5777
5777
|
return { value: I[0] ? I[1] : void 0, done: !0 };
|
|
5778
5778
|
}
|
|
5779
5779
|
};
|
|
5780
|
-
Object.defineProperty(
|
|
5781
|
-
var r = tp, o = We, i = op(), s = Fn, a =
|
|
5780
|
+
Object.defineProperty(jr, "__esModule", { value: !0 }), jr.hiverAxiosCall = jr.performAxiosCall = void 0;
|
|
5781
|
+
var r = tp, o = We, i = op(), s = Fn, a = vr, c, u = 2, d = function(h, f) {
|
|
5782
5782
|
var g = f.fetchCsrfToken();
|
|
5783
5783
|
h.formData ? h.formData.append("_csrf_token", g) : (h.data = h.data || {}, h.data._csrf_token = g);
|
|
5784
5784
|
}, p = function(h, f) {
|
|
@@ -5799,7 +5799,7 @@ function ip() {
|
|
|
5799
5799
|
});
|
|
5800
5800
|
});
|
|
5801
5801
|
}
|
|
5802
|
-
|
|
5802
|
+
jr.performAxiosCall = b;
|
|
5803
5803
|
function v(h, f, g) {
|
|
5804
5804
|
return t(this, void 0, void 0, function() {
|
|
5805
5805
|
var x, y, E;
|
|
@@ -5861,9 +5861,9 @@ function ip() {
|
|
|
5861
5861
|
});
|
|
5862
5862
|
});
|
|
5863
5863
|
}
|
|
5864
|
-
return
|
|
5864
|
+
return jr.hiverAxiosCall = m, jr;
|
|
5865
5865
|
}
|
|
5866
|
-
var
|
|
5866
|
+
var ci = {}, Ke = {}, at = {};
|
|
5867
5867
|
Object.defineProperty(at, "__esModule", { value: !0 });
|
|
5868
5868
|
at.TIERS = at.APP_UI = at.CONFIG_HIVER = at.REFETCH_CHECK_DELAY = at.INITIAL_RETRY_DELAY = at.MAX_BACKOFF_LIMIT = at.MAX_CONFLICT_RETRY_DELAY = at.MAX_RETRY_DELAY = at.GET_METHOD = void 0;
|
|
5869
5869
|
at.GET_METHOD = "GET";
|
|
@@ -5891,7 +5891,7 @@ at.TIERS = {
|
|
|
5891
5891
|
var Vt = {};
|
|
5892
5892
|
Object.defineProperty(Vt, "__esModule", { value: !0 });
|
|
5893
5893
|
Vt.getProdHqConfig = Vt.getProdApiConfig = Vt.getSitHqConfig = Vt.getSitApiConfig = Vt.getDevHqConfig = Vt.getDevApiConfig = void 0;
|
|
5894
|
-
var
|
|
5894
|
+
var ti = {
|
|
5895
5895
|
heimdallTokenFetch: "/v1/token/get",
|
|
5896
5896
|
heimdallLogin: "/v1/login/code",
|
|
5897
5897
|
v2Login: "/api/auth/login/code"
|
|
@@ -5899,7 +5899,7 @@ var ei = {
|
|
|
5899
5899
|
return {
|
|
5900
5900
|
v2Url: "https://v2dev.hiver.space",
|
|
5901
5901
|
heimdallUrl: "https://dev.hiver.space/api/heimdall-api",
|
|
5902
|
-
apiEndpoints:
|
|
5902
|
+
apiEndpoints: ti
|
|
5903
5903
|
};
|
|
5904
5904
|
};
|
|
5905
5905
|
Vt.getDevApiConfig = bb;
|
|
@@ -5907,7 +5907,7 @@ var xb = function() {
|
|
|
5907
5907
|
return {
|
|
5908
5908
|
v2Url: "https://v2dev.hiver.space",
|
|
5909
5909
|
heimdallUrl: "https://dev.hiver.space/api/heimdall-api2",
|
|
5910
|
-
apiEndpoints:
|
|
5910
|
+
apiEndpoints: ti
|
|
5911
5911
|
};
|
|
5912
5912
|
};
|
|
5913
5913
|
Vt.getDevHqConfig = xb;
|
|
@@ -5915,7 +5915,7 @@ var vb = function(e) {
|
|
|
5915
5915
|
return {
|
|
5916
5916
|
v2Url: "https://v2".concat(e, ".hiver.space"),
|
|
5917
5917
|
heimdallUrl: "https://".concat(e, ".hiver.space/api/heimdall-api"),
|
|
5918
|
-
apiEndpoints:
|
|
5918
|
+
apiEndpoints: ti
|
|
5919
5919
|
};
|
|
5920
5920
|
};
|
|
5921
5921
|
Vt.getSitApiConfig = vb;
|
|
@@ -5923,7 +5923,7 @@ var yb = function(e) {
|
|
|
5923
5923
|
return {
|
|
5924
5924
|
v2Url: "https://v2".concat(e, ".hiver.space"),
|
|
5925
5925
|
heimdallUrl: "https://".concat(e, ".hiver.space/api/heimdall-api2"),
|
|
5926
|
-
apiEndpoints:
|
|
5926
|
+
apiEndpoints: ti
|
|
5927
5927
|
};
|
|
5928
5928
|
};
|
|
5929
5929
|
Vt.getSitHqConfig = yb;
|
|
@@ -5931,7 +5931,7 @@ var Cb = function() {
|
|
|
5931
5931
|
return {
|
|
5932
5932
|
v2Url: "https://v2.hiverhq.com",
|
|
5933
5933
|
heimdallUrl: "https://heimdall.hiverapi.com",
|
|
5934
|
-
apiEndpoints:
|
|
5934
|
+
apiEndpoints: ti
|
|
5935
5935
|
};
|
|
5936
5936
|
};
|
|
5937
5937
|
Vt.getProdApiConfig = Cb;
|
|
@@ -5939,7 +5939,7 @@ var Eb = function() {
|
|
|
5939
5939
|
return {
|
|
5940
5940
|
v2Url: "https://v2.hiverhq.com",
|
|
5941
5941
|
heimdallUrl: "https://heimdall2.hiverhq.com",
|
|
5942
|
-
apiEndpoints:
|
|
5942
|
+
apiEndpoints: ti
|
|
5943
5943
|
};
|
|
5944
5944
|
};
|
|
5945
5945
|
Vt.getProdHqConfig = Eb;
|
|
@@ -6031,7 +6031,7 @@ var wb = Ee && Ee.__awaiter || function(e, t, n, r) {
|
|
|
6031
6031
|
};
|
|
6032
6032
|
Object.defineProperty(Ke, "__esModule", { value: !0 });
|
|
6033
6033
|
Ke.expireToken = Ke.validateToken = Ke.validateAccount = Ke.getConfig = Ke.introduceDelay = Ke.isTokenInExpiryWindow = Ke.getStoredAuthData = Ke.setUserDetails = Ke.setTokenAndExpiry = Ke.getRandomDelay = Ke.hasValidToken = void 0;
|
|
6034
|
-
var rc = at,
|
|
6034
|
+
var rc = at, Mr = Vt, sp = function() {
|
|
6035
6035
|
var e = /* @__PURE__ */ new Date(), t = new Date(e.getTime() + e.getTimezoneOffset() * 6e4);
|
|
6036
6036
|
return t;
|
|
6037
6037
|
}, gu = function(e) {
|
|
@@ -6105,16 +6105,16 @@ Ke.introduceDelay = Fb;
|
|
|
6105
6105
|
var kb = function(e, t, n) {
|
|
6106
6106
|
switch (t) {
|
|
6107
6107
|
case rc.TIERS.SIT:
|
|
6108
|
-
return console.log("ISHIVERAPIDOMAIN:", n, (0,
|
|
6108
|
+
return console.log("ISHIVERAPIDOMAIN:", n, (0, Mr.getSitHqConfig)(e)), n ? (0, Mr.getSitApiConfig)(e) : (0, Mr.getSitHqConfig)(e);
|
|
6109
6109
|
case rc.TIERS.PROD:
|
|
6110
|
-
return n ? (0,
|
|
6110
|
+
return n ? (0, Mr.getProdApiConfig)() : (0, Mr.getProdHqConfig)();
|
|
6111
6111
|
case rc.TIERS.DEV:
|
|
6112
6112
|
default:
|
|
6113
|
-
return n ? (0,
|
|
6113
|
+
return n ? (0, Mr.getDevApiConfig)() : (0, Mr.getDevHqConfig)();
|
|
6114
6114
|
}
|
|
6115
6115
|
};
|
|
6116
6116
|
Ke.getConfig = kb;
|
|
6117
|
-
var
|
|
6117
|
+
var li = {}, Gn = {}, Td;
|
|
6118
6118
|
function Db() {
|
|
6119
6119
|
if (Td) return Gn;
|
|
6120
6120
|
Td = 1;
|
|
@@ -6313,7 +6313,7 @@ function Db() {
|
|
|
6313
6313
|
}
|
|
6314
6314
|
var Ld;
|
|
6315
6315
|
function cp() {
|
|
6316
|
-
if (Ld) return
|
|
6316
|
+
if (Ld) return li;
|
|
6317
6317
|
Ld = 1;
|
|
6318
6318
|
var e = Ee && Ee.__awaiter || function(v, m, h, f) {
|
|
6319
6319
|
function g(x) {
|
|
@@ -6401,7 +6401,7 @@ function cp() {
|
|
|
6401
6401
|
return { value: w[0] ? w[1] : void 0, done: !0 };
|
|
6402
6402
|
}
|
|
6403
6403
|
};
|
|
6404
|
-
Object.defineProperty(
|
|
6404
|
+
Object.defineProperty(li, "__esModule", { value: !0 }), li.fetchToken = void 0;
|
|
6405
6405
|
var n = Db(), r = at, o = Ke, i, s, a, c = function(v, m, h) {
|
|
6406
6406
|
return h === void 0 && (h = r.APP_UI.DEFAULT), e(void 0, void 0, void 0, function() {
|
|
6407
6407
|
var f, g, x, y, E, C, w, _, I;
|
|
@@ -6539,11 +6539,11 @@ function cp() {
|
|
|
6539
6539
|
});
|
|
6540
6540
|
});
|
|
6541
6541
|
};
|
|
6542
|
-
return
|
|
6542
|
+
return li.fetchToken = b, li;
|
|
6543
6543
|
}
|
|
6544
6544
|
var Rd;
|
|
6545
6545
|
function lp() {
|
|
6546
|
-
if (Rd) return
|
|
6546
|
+
if (Rd) return ci;
|
|
6547
6547
|
Rd = 1;
|
|
6548
6548
|
var e = Ee && Ee.__assign || function() {
|
|
6549
6549
|
return e = Object.assign || function(b) {
|
|
@@ -6639,7 +6639,7 @@ function lp() {
|
|
|
6639
6639
|
return { value: C[0] ? C[1] : void 0, done: !0 };
|
|
6640
6640
|
}
|
|
6641
6641
|
};
|
|
6642
|
-
Object.defineProperty(
|
|
6642
|
+
Object.defineProperty(ci, "__esModule", { value: !0 }), ci.makeAxiosCall = void 0;
|
|
6643
6643
|
var r = tp, o = Ke, i = cp(), s, a = 2, c = function(b, v) {
|
|
6644
6644
|
var m = v.fetchCsrfToken();
|
|
6645
6645
|
b.formData ? b.formData.append("_csrf_token", m) : (b.data = b.data || {}, b.data._csrf_token = m);
|
|
@@ -6691,7 +6691,7 @@ function lp() {
|
|
|
6691
6691
|
});
|
|
6692
6692
|
});
|
|
6693
6693
|
}
|
|
6694
|
-
return
|
|
6694
|
+
return ci.makeAxiosCall = p, ci;
|
|
6695
6695
|
}
|
|
6696
6696
|
(function(e) {
|
|
6697
6697
|
var t = Ee && Ee.__awaiter || function(v, m, h, f) {
|
|
@@ -6781,7 +6781,7 @@ function lp() {
|
|
|
6781
6781
|
}
|
|
6782
6782
|
};
|
|
6783
6783
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.DEFAULT_INIT_CONFIG_HIVER = e.TENANT_PLATFORM = e.fetchToken = e.makeAxiosCall = e.Bifrost = void 0;
|
|
6784
|
-
var r = ip(), o = op(), i =
|
|
6784
|
+
var r = ip(), o = op(), i = vr;
|
|
6785
6785
|
Object.defineProperty(e, "TENANT_PLATFORM", { enumerable: !0, get: function() {
|
|
6786
6786
|
return i.TENANT_PLATFORM;
|
|
6787
6787
|
} }), Object.defineProperty(e, "DEFAULT_INIT_CONFIG_HIVER", { enumerable: !0, get: function() {
|
|
@@ -6955,7 +6955,7 @@ const rn = {
|
|
|
6955
6955
|
stackingContext: {}
|
|
6956
6956
|
}, et = Xl(D5), ws = "hiver_connectors", xl = {
|
|
6957
6957
|
NOT_FOUND: 404
|
|
6958
|
-
}, N5 = "ftr-connector-blue-dot", fp = "ftr-connectors-write-flow", j5 = "ftr-connectors-enhancements", M5 = "ftr-connector-schedule-call-agent", P5 = "ftr-connectors-edit", B5 = "enableAllConnectorFtr", V5 = "ftr-cards-open-state", G5 = "ftr-connectors-global-search", H5 = "ftr-connectors-smart-suggestions", W5 = "ftr-connectors-email-selection", U5 = "ftr-connector-agent-feedback", Sa = "ftr-connector-unified-view", Z5 = "ftr-connectors-expanded-form", Dd = "ftr-apps-lookup-revamp", z5 = "ftr-ci-configurable-fields", Nd = "Please refresh and try again", $5 = "No data available",
|
|
6958
|
+
}, N5 = "ftr-connector-blue-dot", fp = "ftr-connectors-write-flow", j5 = "ftr-connectors-enhancements", M5 = "ftr-connector-schedule-call-agent", P5 = "ftr-connectors-edit", B5 = "enableAllConnectorFtr", V5 = "ftr-cards-open-state", G5 = "ftr-connectors-global-search", H5 = "ftr-connectors-smart-suggestions", W5 = "ftr-connectors-email-selection", U5 = "ftr-connector-agent-feedback", Sa = "ftr-connector-unified-view", Z5 = "ftr-connectors-expanded-form", Dd = "ftr-apps-lookup-revamp", z5 = "ftr-ci-configurable-fields", Nd = "Please refresh and try again", $5 = "No data available", Un = "-", pp = "Refresh", hp = "Minimize", mu = "Expand", gp = "Connectors", bu = "Apps", X5 = "Collapse", Y5 = "Close", mp = "Link", J5 = "Create", q5 = "Update", bp = "Unlink", xp = "Edit", xu = "Cancel", vu = "Create new object", vp = "Link existing object", K5 = "Are you sure you want to unlink this object?", Q5 = "The object will be removed from this conversation for all users. However the object will still be available on {{connectorName}} if you'd like to link it back in the future.", e6 = "Edit card", t6 = "bullet_list", n6 = "Expanded", r6 = "Collapsed", yp = "Something is wrong with the {{connector_name}} Connector setup. Please check our help guide <>here<>.", Cp = "UNKNOWN_ERROR", o6 = "WORKSPACE_ACCESS_DENIED", i6 = "You don't have access to this card's workspace", s6 = "https://help.hiverhq.com/custom-connectors/common-connector-errors", jd = {
|
|
6959
6959
|
MAIN_BUTTON: "main_button",
|
|
6960
6960
|
ICON: "create_icon"
|
|
6961
6961
|
}, a6 = " Add custom field", yu = (e) => {
|
|
@@ -7338,7 +7338,7 @@ const d6 = (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
|
-
}, V6 = ({ options: e, anchor: t, open: n, onClose: r }) => /* @__PURE__ */ l.jsx(Xg, { id: "help-dropdown", open: n, onClose: r, anchorEl: t, children: e.map((o) => /* @__PURE__ */ l.jsxs(
|
|
7341
|
+
}, V6 = ({ options: e, anchor: t, open: n, onClose: r }) => /* @__PURE__ */ l.jsx(Xg, { id: "help-dropdown", open: n, onClose: r, anchorEl: t, children: e.map((o) => /* @__PURE__ */ l.jsxs(wo, { onClick: o.onClick, children: [
|
|
7342
7342
|
/* @__PURE__ */ l.jsx(Yg, { children: o.icon }),
|
|
7343
7343
|
o.label
|
|
7344
7344
|
] }, o.id)) }), Ap = "connector-header-stuck", G6 = A(N)`
|
|
@@ -7537,7 +7537,7 @@ const U6 = A(K)`
|
|
|
7537
7537
|
`, mn = A(ql)`
|
|
7538
7538
|
display: block;
|
|
7539
7539
|
margin: ${(e) => e.margin ? e.margin : 0};
|
|
7540
|
-
`,
|
|
7540
|
+
`, Xo = A(lt)`
|
|
7541
7541
|
${(e) => e.disabled ? "opacity: 0.5;" : ""}
|
|
7542
7542
|
width: 32px;
|
|
7543
7543
|
height: 32px;
|
|
@@ -7938,10 +7938,10 @@ function A9() {
|
|
|
7938
7938
|
null
|
|
7939
7939
|
), process.env.NODE_ENV !== "production" && (t.displayName = "ReactRedux"), e.set(Yt.createContext, t)), t;
|
|
7940
7940
|
}
|
|
7941
|
-
var
|
|
7941
|
+
var mr = /* @__PURE__ */ A9(), S9 = () => {
|
|
7942
7942
|
throw new Error("uSES not initialized!");
|
|
7943
7943
|
};
|
|
7944
|
-
function Eu(e =
|
|
7944
|
+
function Eu(e = mr) {
|
|
7945
7945
|
return function() {
|
|
7946
7946
|
const n = Yt.useContext(e);
|
|
7947
7947
|
if (process.env.NODE_ENV !== "production" && !n)
|
|
@@ -7954,8 +7954,8 @@ function Eu(e = gr) {
|
|
|
7954
7954
|
var Fp = /* @__PURE__ */ Eu(), kp = S9, T9 = (e) => {
|
|
7955
7955
|
kp = e;
|
|
7956
7956
|
}, L9 = (e, t) => e === t;
|
|
7957
|
-
function R9(e =
|
|
7958
|
-
const t = e ===
|
|
7957
|
+
function R9(e = mr) {
|
|
7958
|
+
const t = e === mr ? Fp : Eu(e), n = (r, o = {}) => {
|
|
7959
7959
|
const { equalityFn: i = L9, devModeChecks: s = {} } = typeof o == "function" ? { equalityFn: o } : o;
|
|
7960
7960
|
if (process.env.NODE_ENV !== "production") {
|
|
7961
7961
|
if (!r)
|
|
@@ -8148,12 +8148,12 @@ function P9({
|
|
|
8148
8148
|
u.tryUnsubscribe(), u.onStateChange = void 0;
|
|
8149
8149
|
};
|
|
8150
8150
|
}, [s, a]);
|
|
8151
|
-
const c = t ||
|
|
8151
|
+
const c = t || mr;
|
|
8152
8152
|
return /* @__PURE__ */ Yt.createElement(c.Provider, { value: s }, n);
|
|
8153
8153
|
}
|
|
8154
8154
|
var wu = P9;
|
|
8155
|
-
function Dp(e =
|
|
8156
|
-
const t = e ===
|
|
8155
|
+
function Dp(e = mr) {
|
|
8156
|
+
const t = e === mr ? Fp : (
|
|
8157
8157
|
// @ts-ignore
|
|
8158
8158
|
Eu(e)
|
|
8159
8159
|
), n = () => {
|
|
@@ -8165,8 +8165,8 @@ function Dp(e = gr) {
|
|
|
8165
8165
|
}), n;
|
|
8166
8166
|
}
|
|
8167
8167
|
var B9 = /* @__PURE__ */ Dp();
|
|
8168
|
-
function V9(e =
|
|
8169
|
-
const t = e ===
|
|
8168
|
+
function V9(e = mr) {
|
|
8169
|
+
const t = e === mr ? B9 : Dp(e), n = () => t().dispatch;
|
|
8170
8170
|
return Object.assign(n, {
|
|
8171
8171
|
withTypes: () => n
|
|
8172
8172
|
}), n;
|
|
@@ -8191,7 +8191,7 @@ var $9 = 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
|
+
}, Kr = X9;
|
|
8195
8195
|
function Ji(e) {
|
|
8196
8196
|
if (typeof e != "object" || e === null)
|
|
8197
8197
|
return !1;
|
|
@@ -8241,18 +8241,18 @@ function q9(e) {
|
|
|
8241
8241
|
function K9(e) {
|
|
8242
8242
|
return e instanceof Date ? !0 : typeof e.toDateString == "function" && typeof e.getDate == "function" && typeof e.setDate == "function";
|
|
8243
8243
|
}
|
|
8244
|
-
function
|
|
8244
|
+
function or(e) {
|
|
8245
8245
|
let t = typeof e;
|
|
8246
8246
|
return process.env.NODE_ENV !== "production" && (t = Y9(e)), t;
|
|
8247
8247
|
}
|
|
8248
8248
|
function Np(e, t, n) {
|
|
8249
8249
|
if (typeof e != "function")
|
|
8250
|
-
throw new Error(process.env.NODE_ENV === "production" ? Ct(2) : `Expected the root reducer to be a function. Instead, received: '${
|
|
8250
|
+
throw new Error(process.env.NODE_ENV === "production" ? Ct(2) : `Expected the root reducer to be a function. Instead, received: '${or(e)}'`);
|
|
8251
8251
|
if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function")
|
|
8252
8252
|
throw new Error(process.env.NODE_ENV === "production" ? Ct(0) : "It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");
|
|
8253
8253
|
if (typeof t == "function" && typeof n > "u" && (n = t, t = void 0), typeof n < "u") {
|
|
8254
8254
|
if (typeof n != "function")
|
|
8255
|
-
throw new Error(process.env.NODE_ENV === "production" ? Ct(1) : `Expected the enhancer to be a function. Instead, received: '${
|
|
8255
|
+
throw new Error(process.env.NODE_ENV === "production" ? Ct(1) : `Expected the enhancer to be a function. Instead, received: '${or(n)}'`);
|
|
8256
8256
|
return n(Np)(e, t);
|
|
8257
8257
|
}
|
|
8258
8258
|
let r = e, o = t, i = /* @__PURE__ */ new Map(), s = i, a = 0, c = !1;
|
|
@@ -8268,7 +8268,7 @@ function Np(e, t, n) {
|
|
|
8268
8268
|
}
|
|
8269
8269
|
function p(f) {
|
|
8270
8270
|
if (typeof f != "function")
|
|
8271
|
-
throw new Error(process.env.NODE_ENV === "production" ? Ct(4) : `Expected the listener to be a function. Instead, received: '${
|
|
8271
|
+
throw new Error(process.env.NODE_ENV === "production" ? Ct(4) : `Expected the listener to be a function. Instead, received: '${or(f)}'`);
|
|
8272
8272
|
if (c)
|
|
8273
8273
|
throw new Error(process.env.NODE_ENV === "production" ? Ct(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
8274
8274
|
let g = !0;
|
|
@@ -8284,11 +8284,11 @@ function Np(e, t, n) {
|
|
|
8284
8284
|
}
|
|
8285
8285
|
function b(f) {
|
|
8286
8286
|
if (!Ji(f))
|
|
8287
|
-
throw new Error(process.env.NODE_ENV === "production" ? Ct(7) : `Actions must be plain objects. Instead, the actual type was: '${
|
|
8287
|
+
throw new Error(process.env.NODE_ENV === "production" ? Ct(7) : `Actions must be plain objects. Instead, the actual type was: '${or(f)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);
|
|
8288
8288
|
if (typeof f.type > "u")
|
|
8289
8289
|
throw new Error(process.env.NODE_ENV === "production" ? Ct(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
|
|
8290
8290
|
if (typeof f.type != "string")
|
|
8291
|
-
throw new Error(process.env.NODE_ENV === "production" ? Ct(17) : `Action "type" property must be a string. Instead, the actual type was: '${
|
|
8291
|
+
throw new Error(process.env.NODE_ENV === "production" ? Ct(17) : `Action "type" property must be a string. Instead, the actual type was: '${or(f.type)}'. Value was: '${f.type}' (stringified)`);
|
|
8292
8292
|
if (c)
|
|
8293
8293
|
throw new Error(process.env.NODE_ENV === "production" ? Ct(9) : "Reducers may not dispatch actions.");
|
|
8294
8294
|
try {
|
|
@@ -8302,9 +8302,9 @@ function Np(e, t, n) {
|
|
|
8302
8302
|
}
|
|
8303
8303
|
function v(f) {
|
|
8304
8304
|
if (typeof f != "function")
|
|
8305
|
-
throw new Error(process.env.NODE_ENV === "production" ? Ct(10) : `Expected the nextReducer to be a function. Instead, received: '${
|
|
8305
|
+
throw new Error(process.env.NODE_ENV === "production" ? Ct(10) : `Expected the nextReducer to be a function. Instead, received: '${or(f)}`);
|
|
8306
8306
|
r = f, b({
|
|
8307
|
-
type:
|
|
8307
|
+
type: Kr.REPLACE
|
|
8308
8308
|
});
|
|
8309
8309
|
}
|
|
8310
8310
|
function m() {
|
|
@@ -8320,7 +8320,7 @@ function Np(e, t, n) {
|
|
|
8320
8320
|
*/
|
|
8321
8321
|
subscribe(g) {
|
|
8322
8322
|
if (typeof g != "object" || g === null)
|
|
8323
|
-
throw new Error(process.env.NODE_ENV === "production" ? Ct(11) : `Expected the observer to be an object. Instead, received: '${
|
|
8323
|
+
throw new Error(process.env.NODE_ENV === "production" ? Ct(11) : `Expected the observer to be an object. Instead, received: '${or(g)}'`);
|
|
8324
8324
|
function x() {
|
|
8325
8325
|
const E = g;
|
|
8326
8326
|
E.next && E.next(d());
|
|
@@ -8335,7 +8335,7 @@ function Np(e, t, n) {
|
|
|
8335
8335
|
};
|
|
8336
8336
|
}
|
|
8337
8337
|
return b({
|
|
8338
|
-
type:
|
|
8338
|
+
type: Kr.INIT
|
|
8339
8339
|
}), {
|
|
8340
8340
|
dispatch: b,
|
|
8341
8341
|
subscribe: p,
|
|
@@ -8352,28 +8352,28 @@ function Xd(e) {
|
|
|
8352
8352
|
}
|
|
8353
8353
|
}
|
|
8354
8354
|
function Q9(e, t, n, r) {
|
|
8355
|
-
const o = Object.keys(t), i = n && n.type ===
|
|
8355
|
+
const o = Object.keys(t), i = n && n.type === Kr.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))
|
|
8359
|
-
return `The ${i} has unexpected type of "${
|
|
8359
|
+
return `The ${i} has unexpected type of "${or(e)}". Expected argument to be an object with the following keys: "${o.join('", "')}"`;
|
|
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 === Kr.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 ex(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: Kr.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: Kr.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 '${Kr.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) {
|
|
@@ -8473,11 +8473,11 @@ function Gt(e, ...t) {
|
|
|
8473
8473
|
`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`
|
|
8474
8474
|
);
|
|
8475
8475
|
}
|
|
8476
|
-
var
|
|
8477
|
-
function
|
|
8476
|
+
var Yo = Object.getPrototypeOf;
|
|
8477
|
+
function io(e) {
|
|
8478
8478
|
return !!e && !!e[en];
|
|
8479
8479
|
}
|
|
8480
|
-
function
|
|
8480
|
+
function Yn(e) {
|
|
8481
8481
|
var t;
|
|
8482
8482
|
return e ? Bp(e) || Array.isArray(e) || !!e[Yd] || !!((t = e.constructor) != null && t[Yd]) || La(e) || Ra(e) : !1;
|
|
8483
8483
|
}
|
|
@@ -8485,7 +8485,7 @@ var rx = Object.prototype.constructor.toString();
|
|
|
8485
8485
|
function Bp(e) {
|
|
8486
8486
|
if (!e || typeof e != "object")
|
|
8487
8487
|
return !1;
|
|
8488
|
-
const t =
|
|
8488
|
+
const t = Yo(e);
|
|
8489
8489
|
if (t === null)
|
|
8490
8490
|
return !0;
|
|
8491
8491
|
const n = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
|
|
@@ -8516,7 +8516,7 @@ function La(e) {
|
|
|
8516
8516
|
function Ra(e) {
|
|
8517
8517
|
return e instanceof Set;
|
|
8518
8518
|
}
|
|
8519
|
-
function
|
|
8519
|
+
function Br(e) {
|
|
8520
8520
|
return e.copy_ || e.base_;
|
|
8521
8521
|
}
|
|
8522
8522
|
function El(e, t) {
|
|
@@ -8541,9 +8541,9 @@ function El(e, t) {
|
|
|
8541
8541
|
value: e[s]
|
|
8542
8542
|
});
|
|
8543
8543
|
}
|
|
8544
|
-
return Object.create(
|
|
8544
|
+
return Object.create(Yo(e), r);
|
|
8545
8545
|
} else {
|
|
8546
|
-
const r =
|
|
8546
|
+
const r = Yo(e);
|
|
8547
8547
|
if (r !== null && n)
|
|
8548
8548
|
return { ...e };
|
|
8549
8549
|
const o = Object.create(r);
|
|
@@ -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) || io(e) || !Yn(e) || (Ta(e) > 1 && (e.set = e.add = e.clear = e.delete = ix), Object.freeze(e), t && Object.entries(e).forEach(([n, r]) => Iu(r, !0))), e;
|
|
8555
8555
|
}
|
|
8556
8556
|
function ix() {
|
|
8557
8557
|
Gt(2);
|
|
@@ -8560,7 +8560,7 @@ function Oa(e) {
|
|
|
8560
8560
|
return Object.isFrozen(e);
|
|
8561
8561
|
}
|
|
8562
8562
|
var sx = {};
|
|
8563
|
-
function
|
|
8563
|
+
function so(e) {
|
|
8564
8564
|
const t = sx[e];
|
|
8565
8565
|
return t || Gt(0, e), t;
|
|
8566
8566
|
}
|
|
@@ -8580,7 +8580,7 @@ function ax(e, t) {
|
|
|
8580
8580
|
};
|
|
8581
8581
|
}
|
|
8582
8582
|
function Jd(e, t) {
|
|
8583
|
-
t && (
|
|
8583
|
+
t && (so("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
|
|
8584
8584
|
}
|
|
8585
8585
|
function wl(e) {
|
|
8586
8586
|
Il(e), e.drafts_.forEach(cx), e.drafts_ = null;
|
|
@@ -8598,7 +8598,7 @@ function cx(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[en].modified_ && (wl(t), Gt(4)),
|
|
8601
|
+
return e !== void 0 && e !== n ? (n[en].modified_ && (wl(t), Gt(4)), Yn(e) && (e = qs(t, e), t.parent_ || Ks(t, e)), t.patches_ && so("Patches").generateReplacementPatches_(
|
|
8602
8602
|
n[en].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_ && so("Patches").generatePatches_(
|
|
8629
8629
|
r,
|
|
8630
8630
|
n,
|
|
8631
8631
|
e.patches_,
|
|
@@ -8635,15 +8635,15 @@ 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 && Gt(5),
|
|
8638
|
+
if (process.env.NODE_ENV !== "production" && o === n && Gt(5), io(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), io(c))
|
|
8642
8642
|
e.canAutoFreeze_ = !1;
|
|
8643
8643
|
else
|
|
8644
8644
|
return;
|
|
8645
8645
|
} else s && n.add(o);
|
|
8646
|
-
if (
|
|
8646
|
+
if (Yn(o) && !Oa(o)) {
|
|
8647
8647
|
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1)
|
|
8648
8648
|
return;
|
|
8649
8649
|
qs(e, o), (!t || !t.scope_.parent_) && typeof r != "symbol" && Object.prototype.propertyIsEnumerable.call(n, r) && Ks(e, o);
|
|
@@ -8685,24 +8685,24 @@ var _u = {
|
|
|
8685
8685
|
get(e, t) {
|
|
8686
8686
|
if (t === en)
|
|
8687
8687
|
return e;
|
|
8688
|
-
const n =
|
|
8688
|
+
const n = Br(e);
|
|
8689
8689
|
if (!Cl(n, t))
|
|
8690
8690
|
return ux(e, n, t);
|
|
8691
8691
|
const r = n[t];
|
|
8692
|
-
return e.finalized_ || !
|
|
8692
|
+
return e.finalized_ || !Yn(r) ? r : r === uc(e.base_, t) ? (dc(e), e.copy_[t] = Al(r, e)) : r;
|
|
8693
8693
|
},
|
|
8694
8694
|
has(e, t) {
|
|
8695
|
-
return t in
|
|
8695
|
+
return t in Br(e);
|
|
8696
8696
|
},
|
|
8697
8697
|
ownKeys(e) {
|
|
8698
|
-
return Reflect.ownKeys(
|
|
8698
|
+
return Reflect.ownKeys(Br(e));
|
|
8699
8699
|
},
|
|
8700
8700
|
set(e, t, n) {
|
|
8701
|
-
const r = Hp(
|
|
8701
|
+
const r = Hp(Br(e), t);
|
|
8702
8702
|
if (r != null && r.set)
|
|
8703
8703
|
return r.set.call(e.draft_, n), !0;
|
|
8704
8704
|
if (!e.modified_) {
|
|
8705
|
-
const o = uc(
|
|
8705
|
+
const o = uc(Br(e), t), i = o == null ? void 0 : o[en];
|
|
8706
8706
|
if (i && i.base_ === n)
|
|
8707
8707
|
return e.copy_[t] = n, e.assigned_[t] = !1, !0;
|
|
8708
8708
|
if (ox(n, o) && (n !== void 0 || Cl(e.base_, t)))
|
|
@@ -8719,7 +8719,7 @@ var _u = {
|
|
|
8719
8719
|
// Note: We never coerce `desc.value` into an Immer draft, because we can't make
|
|
8720
8720
|
// the same guarantee in ES5 mode.
|
|
8721
8721
|
getOwnPropertyDescriptor(e, t) {
|
|
8722
|
-
const n =
|
|
8722
|
+
const n = Br(e), r = Reflect.getOwnPropertyDescriptor(n, t);
|
|
8723
8723
|
return r && {
|
|
8724
8724
|
writable: !0,
|
|
8725
8725
|
configurable: e.type_ !== 1 || t !== "length",
|
|
@@ -8731,7 +8731,7 @@ var _u = {
|
|
|
8731
8731
|
Gt(11);
|
|
8732
8732
|
},
|
|
8733
8733
|
getPrototypeOf(e) {
|
|
8734
|
-
return
|
|
8734
|
+
return Yo(e.base_);
|
|
8735
8735
|
},
|
|
8736
8736
|
setPrototypeOf() {
|
|
8737
8737
|
Gt(12);
|
|
@@ -8750,7 +8750,7 @@ Fi.set = function(e, t, n) {
|
|
|
8750
8750
|
};
|
|
8751
8751
|
function uc(e, t) {
|
|
8752
8752
|
const n = e[en];
|
|
8753
|
-
return (n ?
|
|
8753
|
+
return (n ? Br(n) : e)[t];
|
|
8754
8754
|
}
|
|
8755
8755
|
function ux(e, t, n) {
|
|
8756
8756
|
var o;
|
|
@@ -8764,12 +8764,12 @@ function ux(e, t, n) {
|
|
|
8764
8764
|
function Hp(e, t) {
|
|
8765
8765
|
if (!(t in e))
|
|
8766
8766
|
return;
|
|
8767
|
-
let n =
|
|
8767
|
+
let n = Yo(e);
|
|
8768
8768
|
for (; n; ) {
|
|
8769
8769
|
const r = Object.getOwnPropertyDescriptor(n, t);
|
|
8770
8770
|
if (r)
|
|
8771
8771
|
return r;
|
|
8772
|
-
n =
|
|
8772
|
+
n = Yo(n);
|
|
8773
8773
|
}
|
|
8774
8774
|
}
|
|
8775
8775
|
function _l(e) {
|
|
@@ -8794,7 +8794,7 @@ var dx = class {
|
|
|
8794
8794
|
}
|
|
8795
8795
|
typeof n != "function" && Gt(6), r !== void 0 && typeof r != "function" && Gt(7);
|
|
8796
8796
|
let o;
|
|
8797
|
-
if (
|
|
8797
|
+
if (Yn(t)) {
|
|
8798
8798
|
const i = qd(this), s = Al(t, void 0);
|
|
8799
8799
|
let a = !0;
|
|
8800
8800
|
try {
|
|
@@ -8806,7 +8806,7 @@ var dx = 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
|
+
so("Patches").generateReplacementPatches_(t, o, i, s), r(i, s);
|
|
8810
8810
|
}
|
|
8811
8811
|
return o;
|
|
8812
8812
|
} else
|
|
@@ -8821,7 +8821,7 @@ var dx = 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
|
-
|
|
8824
|
+
Yn(e) || Gt(8), io(e) && (e = fx(e));
|
|
8825
8825
|
const t = qd(this), n = Al(e, void 0);
|
|
8826
8826
|
return n[en].isManual_ = !0, Il(t), n;
|
|
8827
8827
|
}
|
|
@@ -8857,22 +8857,22 @@ var dx = class {
|
|
|
8857
8857
|
}
|
|
8858
8858
|
}
|
|
8859
8859
|
n > -1 && (t = t.slice(n + 1));
|
|
8860
|
-
const r =
|
|
8861
|
-
return
|
|
8860
|
+
const r = so("Patches").applyPatches_;
|
|
8861
|
+
return io(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) ? so("MapSet").proxyMap_(e, t) : Ra(e) ? so("MapSet").proxySet_(e, t) : lx(e, t);
|
|
8869
8869
|
return (t ? t.scope_ : Gp()).drafts_.push(n), n;
|
|
8870
8870
|
}
|
|
8871
8871
|
function fx(e) {
|
|
8872
|
-
return
|
|
8872
|
+
return io(e) || Gt(10, e), Wp(e);
|
|
8873
8873
|
}
|
|
8874
8874
|
function Wp(e) {
|
|
8875
|
-
if (!
|
|
8875
|
+
if (!Yn(e) || Oa(e))
|
|
8876
8876
|
return e;
|
|
8877
8877
|
const t = e[en];
|
|
8878
8878
|
let n;
|
|
@@ -8977,7 +8977,7 @@ var Xp = class bi extends Array {
|
|
|
8977
8977
|
}
|
|
8978
8978
|
};
|
|
8979
8979
|
function e0(e) {
|
|
8980
|
-
return
|
|
8980
|
+
return Yn(e) ? Up(e, () => {
|
|
8981
8981
|
}) : e;
|
|
8982
8982
|
}
|
|
8983
8983
|
function t0(e, t, n) {
|
|
@@ -9325,11 +9325,11 @@ function Rx(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 (io(d)) {
|
|
9329
9329
|
const v = p(d, c);
|
|
9330
9330
|
return v === void 0 ? d : v;
|
|
9331
9331
|
} else {
|
|
9332
|
-
if (
|
|
9332
|
+
if (Yn(d))
|
|
9333
9333
|
return Up(d, (b) => p(b, c));
|
|
9334
9334
|
{
|
|
9335
9335
|
const b = p(d, c);
|
|
@@ -9724,7 +9724,7 @@ function is() {
|
|
|
9724
9724
|
function qe(e) {
|
|
9725
9725
|
return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
|
|
9726
9726
|
}
|
|
9727
|
-
const bn = "success", dt = "error", th = "Some error occured. Please contact support@hiverhq.com", nh = "Card refreshed successfully", Xx = "Card linked successfully", Yx = "Error in linking the card", Jx = "Card unlinked successfully", qx = "Failed to unlink the card",
|
|
9727
|
+
const bn = "success", dt = "error", th = "Some error occured. Please contact support@hiverhq.com", nh = "Card refreshed successfully", Xx = "Card linked successfully", Yx = "Error in linking the card", Jx = "Card unlinked successfully", qx = "Failed to unlink the card", qn = "Something went wrong";
|
|
9728
9728
|
function rh(e) {
|
|
9729
9729
|
var t, n, r = "";
|
|
9730
9730
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
@@ -9734,11 +9734,11 @@ function rh(e) {
|
|
|
9734
9734
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
9735
9735
|
return r;
|
|
9736
9736
|
}
|
|
9737
|
-
function
|
|
9737
|
+
function gr() {
|
|
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), Qr = (e) => typeof e == "string", Jt = (e) => typeof e == "function", Is = (e) => Qr(e) || Jt(e) ? e : null, Tl = (e) => _o(e) || Qr(e) || Jt(e) || ki(e);
|
|
9742
9742
|
function Kx(e, t, n) {
|
|
9743
9743
|
n === void 0 && (n = 300);
|
|
9744
9744
|
const { scrollHeight: r, style: o } = e;
|
|
@@ -9753,7 +9753,7 @@ 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 = he(0);
|
|
9756
|
-
return
|
|
9756
|
+
return lo(() => {
|
|
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
|
};
|
|
@@ -9802,7 +9802,7 @@ function ev(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 && Jt(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 && Jt(D) && D(_o(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,12 +9825,12 @@ function ev(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
|
-
Jt(q) && q(
|
|
9828
|
+
Jt(q) && q(_o(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
|
-
|
|
9833
|
+
_o(I) && !Qr(I.type) ? ee = Dc(I, { closeToast: H, toastProps: Z, data: O }) : Jt(I) && (ee = I({ closeToast: H, toastProps: Z, data: O }));
|
|
9834
9834
|
const ie = { content: ee, props: Z, staleId: j };
|
|
9835
9835
|
x.limit && x.limit > 0 && m > x.limit && Y ? h.push(ie) : ki(G) ? setTimeout(() => {
|
|
9836
9836
|
_(ie);
|
|
@@ -9909,7 +9909,7 @@ function nv(e) {
|
|
|
9909
9909
|
let { delay: t, isRunning: n, closeToast: r, type: o = "default", hide: i, className: s, style: a, controlledProgress: c, progress: u, rtl: d, isIn: p, theme: b } = e;
|
|
9910
9910
|
const v = i || c && u === 0, m = { ...a, animationDuration: `${t}ms`, animationPlayState: n ? "running" : "paused" };
|
|
9911
9911
|
c && (m.transform = `scaleX(${u})`);
|
|
9912
|
-
const h =
|
|
9912
|
+
const h = gr("Toastify__progress-bar", c ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${b}`, `Toastify__progress-bar--${o}`, { "Toastify__progress-bar--rtl": d }), f = Jt(s) ? s({ rtl: d, type: o, defaultClassName: h }) : gr(h, s), g = { [c && u >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: c && u < 1 ? null : () => {
|
|
9913
9913
|
p && r();
|
|
9914
9914
|
} };
|
|
9915
9915
|
return Me.createElement("div", { className: "Toastify__progress-bar--wrp", "data-hidden": v }, Me.createElement("div", { className: `Toastify__progress-bar--bg Toastify__progress-bar-theme--${b} Toastify__progress-bar--${o}` }), Me.createElement("div", { role: "progressbar", "aria-hidden": v ? "true" : "false", "aria-label": "notification timer", className: f, style: m, ...g }));
|
|
@@ -9917,7 +9917,7 @@ function nv(e) {
|
|
|
9917
9917
|
let rv = 1;
|
|
9918
9918
|
const ah = () => "" + rv++;
|
|
9919
9919
|
function ov(e) {
|
|
9920
|
-
return e && (
|
|
9920
|
+
return e && (Qr(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 = Qr(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 = Qr(p) ? { render: p } : p;
|
|
9940
9940
|
return r ? $e.update(r, { ...v, ...m }) : $e(m.render, { ...v, ...m }), b;
|
|
9941
9941
|
}, u = Jt(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 || Qr(n = t) || ki(n)) Rt.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 iv = typeof window < "u" ?
|
|
9982
|
+
const iv = typeof window < "u" ? lo : 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,18 +9993,18 @@ const iv = typeof window < "u" ? co : oe, as = (e) => {
|
|
|
9993
9993
|
}, spinner: function() {
|
|
9994
9994
|
return Me.createElement("div", { className: "Toastify__spinner" });
|
|
9995
9995
|
} }, sv = (e) => {
|
|
9996
|
-
const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: o, playToast: i } = tv(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 =
|
|
9996
|
+
const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: o, playToast: i } = tv(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 = gr("Toastify__toast", `Toastify__toast-theme--${G}`, `Toastify__toast--${d}`, { "Toastify__toast--rtl": I }, { "Toastify__toast--close-on-click": j }), Y = Jt(h) ? h({ rtl: I, position: m, type: d, defaultClassName: H }) : gr(H, h), Z = function(ie) {
|
|
9997
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 || (Jt(J) ? re = J({ ...ae, isLoading: k }) :
|
|
9999
|
+
return J === !1 || (Jt(J) ? re = J({ ...ae, isLoading: k }) : _o(J) ? re = Dc(J, ae) : k ? re = pc.spinner() : ((ge) => ge 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 = Jt(s) ? s(Q) :
|
|
10002
|
+
return s === !1 || (ee = Jt(s) ? s(Q) : _o(s) ? Dc(s, Q) : function(ie) {
|
|
10003
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" })));
|
|
10007
|
-
}(Q)), Me.createElement(v, { isIn: F, done: D, position: m, preventExitTransition: n, nodeRef: r, playToast: i }, Me.createElement("div", { id: T, onClick: u, "data-in": F, className: Y, ...o, style: f, ref: r }, Me.createElement("div", { ...F && { role: w }, className: Jt(g) ? g({ type: d }) :
|
|
10007
|
+
}(Q)), Me.createElement(v, { isIn: F, done: D, position: m, preventExitTransition: n, nodeRef: r, playToast: i }, Me.createElement("div", { id: T, onClick: u, "data-in": F, className: Y, ...o, style: f, ref: r }, Me.createElement("div", { ...F && { role: w }, className: Jt(g) ? g({ type: d }) : gr("Toastify__toast-body", g), style: x }, Z != null && Me.createElement("div", { className: gr("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !O }) }, Z), Me.createElement("div", null, a)), ee, Me.createElement(nv, { ...C && !U ? { key: `pb-${C}` } : {}, rtl: I, theme: G, delay: c, isRunning: t, isIn: F, closeToast: b, hide: p, type: d, style: E, className: y, controlledProgress: U, progress: _ || 0 })));
|
|
10008
10008
|
}, Da = function(e, t) {
|
|
10009
10009
|
return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
|
|
10010
10010
|
}, av = ka(Da("bounce", !0));
|
|
@@ -10016,8 +10016,8 @@ function lv(e) {
|
|
|
10016
10016
|
let t = { ...cv, ...e };
|
|
10017
10017
|
const n = e.stacked, [r, o] = V(!0), i = he(null), { getToastToRender: s, isToastActive: a, count: c } = ev(t), { className: u, style: d, rtl: p, containerId: b } = t;
|
|
10018
10018
|
function v(h) {
|
|
10019
|
-
const f =
|
|
10020
|
-
return Jt(u) ? u({ position: h, rtl: p, defaultClassName: f }) :
|
|
10019
|
+
const f = gr("Toastify__toast-container", `Toastify__toast-container--${h}`, { "Toastify__toast-container--rtl": p });
|
|
10020
|
+
return Jt(u) ? u({ position: h, rtl: p, defaultClassName: f }) : gr(f, Is(u));
|
|
10021
10021
|
}
|
|
10022
10022
|
function m() {
|
|
10023
10023
|
n && (o(!0), $e.play());
|
|
@@ -10958,17 +10958,17 @@ const uv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
10958
10958
|
margin-left: 12px;
|
|
10959
10959
|
}
|
|
10960
10960
|
`, Rl = /* @__PURE__ */ new Set();
|
|
10961
|
-
let
|
|
10961
|
+
let ui = null, Ei = !1;
|
|
10962
10962
|
const ch = () => Rl.forEach((e) => e()), xv = () => {
|
|
10963
10963
|
Ei || (Ei = !0, ch());
|
|
10964
10964
|
}, ja = ({ zIndex: e }) => {
|
|
10965
10965
|
const t = Zg(), [n, r] = V(!1), [o, i] = V(Ei);
|
|
10966
10966
|
return oe(() => {
|
|
10967
10967
|
const s = () => {
|
|
10968
|
-
Ei &&
|
|
10968
|
+
Ei && ui === null && (ui = t), r(ui === t), i(Ei);
|
|
10969
10969
|
};
|
|
10970
10970
|
return Rl.add(s), s(), () => {
|
|
10971
|
-
Rl.delete(s),
|
|
10971
|
+
Rl.delete(s), ui === t && (ui = null, ch());
|
|
10972
10972
|
};
|
|
10973
10973
|
}, [t]), !o || !n ? null : Xi(
|
|
10974
10974
|
/* @__PURE__ */ l.jsx(bv, { id: "toast-message", children: /* @__PURE__ */ l.jsx(
|
|
@@ -11185,25 +11185,25 @@ const jv = {
|
|
|
11185
11185
|
t.current && clearTimeout(t.current), t.current = setTimeout(n, e);
|
|
11186
11186
|
};
|
|
11187
11187
|
};
|
|
11188
|
-
let
|
|
11188
|
+
let yo = {};
|
|
11189
11189
|
const Uv = {
|
|
11190
11190
|
get length() {
|
|
11191
|
-
return Object.keys(
|
|
11191
|
+
return Object.keys(yo).length;
|
|
11192
11192
|
},
|
|
11193
11193
|
getItem(e) {
|
|
11194
|
-
return
|
|
11194
|
+
return yo[e] ?? null;
|
|
11195
11195
|
},
|
|
11196
11196
|
setItem(e, t) {
|
|
11197
|
-
|
|
11197
|
+
yo[e] = t;
|
|
11198
11198
|
},
|
|
11199
11199
|
removeItem(e) {
|
|
11200
|
-
delete
|
|
11200
|
+
delete yo[e];
|
|
11201
11201
|
},
|
|
11202
11202
|
clear() {
|
|
11203
|
-
|
|
11203
|
+
yo = {};
|
|
11204
11204
|
},
|
|
11205
11205
|
key(e) {
|
|
11206
|
-
return Object.keys(
|
|
11206
|
+
return Object.keys(yo)[e];
|
|
11207
11207
|
}
|
|
11208
11208
|
}, Zv = {
|
|
11209
11209
|
LOCAL: window == null ? void 0 : window.localStorage,
|
|
@@ -11352,29 +11352,29 @@ const Uv = {
|
|
|
11352
11352
|
}
|
|
11353
11353
|
return { fields_configured_count: t, has_system_variable: n };
|
|
11354
11354
|
};
|
|
11355
|
-
function
|
|
11355
|
+
function ao(e) {
|
|
11356
11356
|
"@babel/helpers - typeof";
|
|
11357
|
-
return
|
|
11357
|
+
return ao = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
11358
11358
|
return typeof t;
|
|
11359
11359
|
} : function(t) {
|
|
11360
11360
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
11361
|
-
},
|
|
11361
|
+
}, ao(e);
|
|
11362
11362
|
}
|
|
11363
11363
|
function ry(e, t) {
|
|
11364
|
-
if (
|
|
11364
|
+
if (ao(e) != "object" || !e) return e;
|
|
11365
11365
|
var n = e[Symbol.toPrimitive];
|
|
11366
11366
|
if (n !== void 0) {
|
|
11367
11367
|
var r = n.call(e, t || "default");
|
|
11368
|
-
if (
|
|
11368
|
+
if (ao(r) != "object") return r;
|
|
11369
11369
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
11370
11370
|
}
|
|
11371
11371
|
return (t === "string" ? String : Number)(e);
|
|
11372
11372
|
}
|
|
11373
11373
|
function yh(e) {
|
|
11374
11374
|
var t = ry(e, "string");
|
|
11375
|
-
return
|
|
11375
|
+
return ao(t) == "symbol" ? t : t + "";
|
|
11376
11376
|
}
|
|
11377
|
-
function
|
|
11377
|
+
function Io(e, t, n) {
|
|
11378
11378
|
return (t = yh(t)) in e ? Object.defineProperty(e, t, {
|
|
11379
11379
|
value: n,
|
|
11380
11380
|
enumerable: !0,
|
|
@@ -11396,7 +11396,7 @@ function fe(e) {
|
|
|
11396
11396
|
for (var t = 1; t < arguments.length; t++) {
|
|
11397
11397
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
11398
11398
|
t % 2 ? u0(Object(n), !0).forEach(function(r) {
|
|
11399
|
-
|
|
11399
|
+
Io(e, r, n[r]);
|
|
11400
11400
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : u0(Object(n)).forEach(function(r) {
|
|
11401
11401
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
11402
11402
|
});
|
|
@@ -11546,7 +11546,7 @@ function fy(e) {
|
|
|
11546
11546
|
return e;
|
|
11547
11547
|
}
|
|
11548
11548
|
function py(e, t) {
|
|
11549
|
-
if (t && (
|
|
11549
|
+
if (t && (ao(t) == "object" || typeof t == "function")) return t;
|
|
11550
11550
|
if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
11551
11551
|
return fy(e);
|
|
11552
11552
|
}
|
|
@@ -11571,7 +11571,7 @@ function by() {
|
|
|
11571
11571
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
11572
11572
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
11573
11573
|
}
|
|
11574
|
-
function
|
|
11574
|
+
function So(e) {
|
|
11575
11575
|
return gy(e) || my(e) || Ch(e) || by();
|
|
11576
11576
|
}
|
|
11577
11577
|
var xy = !1;
|
|
@@ -11649,30 +11649,30 @@ function ls(e, t) {
|
|
|
11649
11649
|
function Ty(e, t) {
|
|
11650
11650
|
return e.map(t).join("");
|
|
11651
11651
|
}
|
|
11652
|
-
var Pa = 1,
|
|
11652
|
+
var Pa = 1, Jo = 1, Ah = 0, Ut = 0, pt = 0, ni = "";
|
|
11653
11653
|
function Ba(e, t, n, r, o, i, s) {
|
|
11654
|
-
return { value: e, root: t, parent: n, type: r, props: o, children: i, line: Pa, column:
|
|
11654
|
+
return { value: e, root: t, parent: n, type: r, props: o, children: i, line: Pa, column: Jo, length: s, return: "" };
|
|
11655
11655
|
}
|
|
11656
|
-
function
|
|
11656
|
+
function di(e, t) {
|
|
11657
11657
|
return _y(Ba("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
11658
11658
|
}
|
|
11659
11659
|
function Ly() {
|
|
11660
11660
|
return pt;
|
|
11661
11661
|
}
|
|
11662
11662
|
function Ry() {
|
|
11663
|
-
return pt = Ut > 0 ? Et(
|
|
11663
|
+
return pt = Ut > 0 ? Et(ni, --Ut) : 0, Jo--, pt === 10 && (Jo = 1, Pa--), pt;
|
|
11664
11664
|
}
|
|
11665
11665
|
function Kt() {
|
|
11666
|
-
return pt = Ut < Ah ? Et(
|
|
11666
|
+
return pt = Ut < Ah ? Et(ni, Ut++) : 0, Jo++, pt === 10 && (Jo = 1, Pa++), pt;
|
|
11667
11667
|
}
|
|
11668
11668
|
function Dn() {
|
|
11669
|
-
return Et(
|
|
11669
|
+
return Et(ni, Ut);
|
|
11670
11670
|
}
|
|
11671
11671
|
function _s() {
|
|
11672
11672
|
return Ut;
|
|
11673
11673
|
}
|
|
11674
11674
|
function qi(e, t) {
|
|
11675
|
-
return ji(
|
|
11675
|
+
return ji(ni, e, t);
|
|
11676
11676
|
}
|
|
11677
11677
|
function Mi(e) {
|
|
11678
11678
|
switch (e) {
|
|
@@ -11707,10 +11707,10 @@ function Mi(e) {
|
|
|
11707
11707
|
return 0;
|
|
11708
11708
|
}
|
|
11709
11709
|
function Sh(e) {
|
|
11710
|
-
return Pa =
|
|
11710
|
+
return Pa = Jo = 1, Ah = Rn(ni = e), Ut = 0, [];
|
|
11711
11711
|
}
|
|
11712
11712
|
function Th(e) {
|
|
11713
|
-
return
|
|
11713
|
+
return ni = "", e;
|
|
11714
11714
|
}
|
|
11715
11715
|
function As(e) {
|
|
11716
11716
|
return _h(qi(Ut - 1, Nl(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
@@ -11858,7 +11858,7 @@ function jy(e, t, n) {
|
|
|
11858
11858
|
function p0(e, t, n, r) {
|
|
11859
11859
|
return Ba(e, t, n, Lu, ji(e, 0, r), ji(e, r + 1, -1), r);
|
|
11860
11860
|
}
|
|
11861
|
-
function
|
|
11861
|
+
function To(e, t) {
|
|
11862
11862
|
for (var n = "", r = Ru(e), o = 0; o < r; o++)
|
|
11863
11863
|
n += t(e[o], o, e, t) || "";
|
|
11864
11864
|
return n;
|
|
@@ -11873,11 +11873,11 @@ function My(e, t, n, r) {
|
|
|
11873
11873
|
case wh:
|
|
11874
11874
|
return "";
|
|
11875
11875
|
case Ih:
|
|
11876
|
-
return e.return = e.value + "{" +
|
|
11876
|
+
return e.return = e.value + "{" + To(e.children, r) + "}";
|
|
11877
11877
|
case Tu:
|
|
11878
11878
|
e.value = e.props.join(",");
|
|
11879
11879
|
}
|
|
11880
|
-
return Rn(n =
|
|
11880
|
+
return Rn(n = To(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
11881
11881
|
}
|
|
11882
11882
|
function Py(e) {
|
|
11883
11883
|
var t = Ru(e);
|
|
@@ -12062,7 +12062,7 @@ var zy = function(t, n, r, o) {
|
|
|
12062
12062
|
t.return = Lh(t.value, t.length);
|
|
12063
12063
|
break;
|
|
12064
12064
|
case Ih:
|
|
12065
|
-
return
|
|
12065
|
+
return To([di(t, {
|
|
12066
12066
|
value: He(t.value, "@", "@" + Ge)
|
|
12067
12067
|
})], o);
|
|
12068
12068
|
case Tu:
|
|
@@ -12070,15 +12070,15 @@ var zy = function(t, n, r, o) {
|
|
|
12070
12070
|
switch (Sy(i, /(::plac\w+|:read-\w+)/)) {
|
|
12071
12071
|
case ":read-only":
|
|
12072
12072
|
case ":read-write":
|
|
12073
|
-
return
|
|
12073
|
+
return To([di(t, {
|
|
12074
12074
|
props: [He(i, /:(read-\w+)/, ":" + ta + "$1")]
|
|
12075
12075
|
})], o);
|
|
12076
12076
|
case "::placeholder":
|
|
12077
|
-
return
|
|
12077
|
+
return To([di(t, {
|
|
12078
12078
|
props: [He(i, /:(plac\w+)/, ":" + Ge + "input-$1")]
|
|
12079
|
-
}),
|
|
12079
|
+
}), di(t, {
|
|
12080
12080
|
props: [He(i, /:(plac\w+)/, ":" + ta + "$1")]
|
|
12081
|
-
}),
|
|
12081
|
+
}), di(t, {
|
|
12082
12082
|
props: [He(i, /:(plac\w+)/, _t + "input-$1")]
|
|
12083
12083
|
})], o);
|
|
12084
12084
|
}
|
|
@@ -12110,7 +12110,7 @@ var zy = function(t, n, r, o) {
|
|
|
12110
12110
|
var d, p = [My, By(function(h) {
|
|
12111
12111
|
d.insert(h);
|
|
12112
12112
|
})], b = Py(u.concat(o, p)), v = function(f) {
|
|
12113
|
-
return
|
|
12113
|
+
return To(Ny(f), b);
|
|
12114
12114
|
};
|
|
12115
12115
|
c = function(f, g, x, y) {
|
|
12116
12116
|
d = x, v(f ? f + "{" + g.styles + "}" : g.styles), y && (m.inserted[g.name] = !0);
|
|
@@ -12646,7 +12646,7 @@ function Va() {
|
|
|
12646
12646
|
function jh(e) {
|
|
12647
12647
|
return Ph(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
12648
12648
|
}
|
|
12649
|
-
function
|
|
12649
|
+
function Jn(e) {
|
|
12650
12650
|
var t;
|
|
12651
12651
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
12652
12652
|
}
|
|
@@ -12655,16 +12655,16 @@ function Mh(e) {
|
|
|
12655
12655
|
return (t = (Ph(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
12656
12656
|
}
|
|
12657
12657
|
function Ph(e) {
|
|
12658
|
-
return Va() ? e instanceof Node || e instanceof
|
|
12658
|
+
return Va() ? e instanceof Node || e instanceof Jn(e).Node : !1;
|
|
12659
12659
|
}
|
|
12660
12660
|
function _8(e) {
|
|
12661
|
-
return Va() ? e instanceof Element || e instanceof
|
|
12661
|
+
return Va() ? e instanceof Element || e instanceof Jn(e).Element : !1;
|
|
12662
12662
|
}
|
|
12663
12663
|
function ku(e) {
|
|
12664
|
-
return Va() ? e instanceof HTMLElement || e instanceof
|
|
12664
|
+
return Va() ? e instanceof HTMLElement || e instanceof Jn(e).HTMLElement : !1;
|
|
12665
12665
|
}
|
|
12666
12666
|
function y0(e) {
|
|
12667
|
-
return !Va() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
12667
|
+
return !Va() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Jn(e).ShadowRoot;
|
|
12668
12668
|
}
|
|
12669
12669
|
function Bh(e) {
|
|
12670
12670
|
const {
|
|
@@ -12682,7 +12682,7 @@ function S8(e) {
|
|
|
12682
12682
|
return ["html", "body", "#document"].includes(jh(e));
|
|
12683
12683
|
}
|
|
12684
12684
|
function Du(e) {
|
|
12685
|
-
return
|
|
12685
|
+
return Jn(e).getComputedStyle(e);
|
|
12686
12686
|
}
|
|
12687
12687
|
function T8(e) {
|
|
12688
12688
|
if (jh(e) === "html")
|
|
@@ -12703,7 +12703,7 @@ function Vh(e) {
|
|
|
12703
12703
|
function oa(e, t, n) {
|
|
12704
12704
|
var r;
|
|
12705
12705
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
12706
|
-
const o = Vh(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s =
|
|
12706
|
+
const o = Vh(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = Jn(o);
|
|
12707
12707
|
if (i) {
|
|
12708
12708
|
const a = Pl(s);
|
|
12709
12709
|
return t.concat(s, s.visualViewport || [], Bh(o) ? o : [], a && n ? oa(a) : []);
|
|
@@ -12743,7 +12743,7 @@ function C0(e) {
|
|
|
12743
12743
|
}
|
|
12744
12744
|
const R8 = /* @__PURE__ */ ra(0);
|
|
12745
12745
|
function O8(e) {
|
|
12746
|
-
const t =
|
|
12746
|
+
const t = Jn(e);
|
|
12747
12747
|
return !A8() || !t.visualViewport ? R8 : {
|
|
12748
12748
|
x: t.visualViewport.offsetLeft,
|
|
12749
12749
|
y: t.visualViewport.offsetTop
|
|
@@ -12760,11 +12760,11 @@ function E0(e, t, n, r) {
|
|
|
12760
12760
|
const a = F8() ? O8(i) : ra(0);
|
|
12761
12761
|
let c = (o.left + a.x) / s.x, u = (o.top + a.y) / s.y, d = o.width / s.x, p = o.height / s.y;
|
|
12762
12762
|
if (i) {
|
|
12763
|
-
const b =
|
|
12763
|
+
const b = Jn(i), v = r;
|
|
12764
12764
|
let m = b, h = Pl(m);
|
|
12765
12765
|
for (; h && r && v !== m; ) {
|
|
12766
12766
|
const f = C0(h), g = h.getBoundingClientRect(), x = Du(h), y = g.left + (h.clientLeft + parseFloat(x.paddingLeft)) * f.x, E = g.top + (h.clientTop + parseFloat(x.paddingTop)) * f.y;
|
|
12767
|
-
c *= f.x, u *= f.y, d *= f.x, p *= f.y, c += y, u += E, m =
|
|
12767
|
+
c *= f.x, u *= f.y, d *= f.x, p *= f.y, c += y, u += E, m = Jn(h), h = Pl(m);
|
|
12768
12768
|
}
|
|
12769
12769
|
}
|
|
12770
12770
|
return I8({
|
|
@@ -12856,7 +12856,7 @@ function D8(e, t, n, r) {
|
|
|
12856
12856
|
}), p == null || p(), (g = v) == null || g.disconnect(), v = null, c && cancelAnimationFrame(m);
|
|
12857
12857
|
};
|
|
12858
12858
|
}
|
|
12859
|
-
var Bl =
|
|
12859
|
+
var Bl = lo, N8 = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], ia = function() {
|
|
12860
12860
|
};
|
|
12861
12861
|
function j8(e, t) {
|
|
12862
12862
|
return t ? t[0] === "-" ? e + t : e + "__" + t : e;
|
|
@@ -12875,7 +12875,7 @@ function M8(e, t) {
|
|
|
12875
12875
|
}).join(" ");
|
|
12876
12876
|
}
|
|
12877
12877
|
var sa = function(t) {
|
|
12878
|
-
return $8(t) ? t.filter(Boolean) :
|
|
12878
|
+
return $8(t) ? t.filter(Boolean) : ao(t) === "object" && t !== null ? [t] : [];
|
|
12879
12879
|
}, Gh = function(t) {
|
|
12880
12880
|
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;
|
|
12881
12881
|
var n = Cn(t, N8);
|
|
@@ -13068,7 +13068,7 @@ var Uh = function(t) {
|
|
|
13068
13068
|
var r, o = t.placement, i = t.theme, s = i.borderRadius, a = i.spacing, c = i.colors;
|
|
13069
13069
|
return fe((r = {
|
|
13070
13070
|
label: "menu"
|
|
13071
|
-
},
|
|
13071
|
+
}, Io(r, K8(o), "100%"), Io(r, "position", "absolute"), Io(r, "width", "100%"), Io(r, "zIndex", 1), r), n ? {} : {
|
|
13072
13072
|
backgroundColor: c.neutral0,
|
|
13073
13073
|
borderRadius: s,
|
|
13074
13074
|
boxShadow: "0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",
|
|
@@ -14208,7 +14208,7 @@ function k0() {
|
|
|
14208
14208
|
function D0() {
|
|
14209
14209
|
return "ontouchstart" in window || navigator.maxTouchPoints;
|
|
14210
14210
|
}
|
|
14211
|
-
var N0 = !!(typeof window < "u" && window.document && window.document.createElement),
|
|
14211
|
+
var N0 = !!(typeof window < "u" && window.document && window.document.createElement), fi = 0, Co = {
|
|
14212
14212
|
capture: !1,
|
|
14213
14213
|
passive: !1
|
|
14214
14214
|
};
|
|
@@ -14219,22 +14219,22 @@ function A7(e) {
|
|
|
14219
14219
|
if (r && L0.forEach(function(m) {
|
|
14220
14220
|
var h = d && d[m];
|
|
14221
14221
|
o.current[m] = h;
|
|
14222
|
-
}), r &&
|
|
14222
|
+
}), r && fi < 1) {
|
|
14223
14223
|
var p = parseInt(o.current.paddingRight, 10) || 0, b = document.body ? document.body.clientWidth : 0, v = window.innerWidth - b + p || 0;
|
|
14224
14224
|
Object.keys(R0).forEach(function(m) {
|
|
14225
14225
|
var h = R0[m];
|
|
14226
14226
|
d && (d[m] = h);
|
|
14227
14227
|
}), d && (d.paddingRight = "".concat(v, "px"));
|
|
14228
14228
|
}
|
|
14229
|
-
u && D0() && (u.addEventListener("touchmove", O0,
|
|
14229
|
+
u && D0() && (u.addEventListener("touchmove", O0, Co), c && (c.addEventListener("touchstart", k0, Co), c.addEventListener("touchmove", F0, Co))), fi += 1;
|
|
14230
14230
|
}
|
|
14231
14231
|
}, [r]), a = Se(function(c) {
|
|
14232
14232
|
if (N0) {
|
|
14233
14233
|
var u = document.body, d = u && u.style;
|
|
14234
|
-
|
|
14234
|
+
fi = Math.max(fi - 1, 0), r && fi < 1 && L0.forEach(function(p) {
|
|
14235
14235
|
var b = o.current[p];
|
|
14236
14236
|
d && (d[p] = b);
|
|
14237
|
-
}), u && D0() && (u.removeEventListener("touchmove", O0,
|
|
14237
|
+
}), u && D0() && (u.removeEventListener("touchmove", O0, Co), c && (c.removeEventListener("touchstart", k0, Co), c.removeEventListener("touchmove", F0, Co)));
|
|
14238
14238
|
}
|
|
14239
14239
|
}, [r]);
|
|
14240
14240
|
return oe(function() {
|
|
@@ -14463,14 +14463,14 @@ function Ts(e, t) {
|
|
|
14463
14463
|
}
|
|
14464
14464
|
function o2(e) {
|
|
14465
14465
|
return e.reduce(function(t, n) {
|
|
14466
|
-
return n.type === "group" ? t.push.apply(t,
|
|
14466
|
+
return n.type === "group" ? t.push.apply(t, So(n.options.map(function(r) {
|
|
14467
14467
|
return r.data;
|
|
14468
14468
|
}))) : t.push(n.data), t;
|
|
14469
14469
|
}, []);
|
|
14470
14470
|
}
|
|
14471
14471
|
function M0(e, t) {
|
|
14472
14472
|
return e.reduce(function(n, r) {
|
|
14473
|
-
return r.type === "group" ? n.push.apply(n,
|
|
14473
|
+
return r.type === "group" ? n.push.apply(n, So(r.options.map(function(o) {
|
|
14474
14474
|
return {
|
|
14475
14475
|
data: o.data,
|
|
14476
14476
|
id: "".concat(t, "-").concat(r.index, "-").concat(o.index)
|
|
@@ -14586,7 +14586,7 @@ var l2 = function(t) {
|
|
|
14586
14586
|
return o.getOptionValue(g) !== f;
|
|
14587
14587
|
}), "deselect-option", c);
|
|
14588
14588
|
} else if (!h)
|
|
14589
|
-
p ? o.setValue([].concat(
|
|
14589
|
+
p ? o.setValue([].concat(So(v), [c]), "select-option", c) : o.setValue(c, "select-option");
|
|
14590
14590
|
else {
|
|
14591
14591
|
o.ariaOnChange(c, {
|
|
14592
14592
|
action: "select-option",
|
|
@@ -15677,14 +15677,14 @@ function b2(e) {
|
|
|
15677
15677
|
if (o && J[nt])
|
|
15678
15678
|
w(nt), G(nt), U(J[nt]), D(!1), W(!1);
|
|
15679
15679
|
else {
|
|
15680
|
-
var
|
|
15680
|
+
var wr = v.current = {};
|
|
15681
15681
|
w(nt), D(!0), W(!j), Le(nt, function(nn) {
|
|
15682
|
-
m &&
|
|
15682
|
+
m && wr === v.current && (v.current = void 0, D(!1), G(nt), U(nn || []), W(!1), re(nn ? fe(fe({}, J), {}, Io({}, nt, nn)) : J));
|
|
15683
15683
|
});
|
|
15684
15684
|
}
|
|
15685
|
-
}, [o, Le, j, J, c]),
|
|
15685
|
+
}, [o, Le, j, J, c]), Kn = ie ? [] : C && j ? Z : g || [];
|
|
15686
15686
|
return fe(fe({}, p), {}, {
|
|
15687
|
-
options:
|
|
15687
|
+
options: Kn,
|
|
15688
15688
|
isLoading: T || a,
|
|
15689
15689
|
onInputChange: Zt,
|
|
15690
15690
|
filterOption: d
|
|
@@ -15724,7 +15724,7 @@ function dE(e) {
|
|
|
15724
15724
|
getOptionLabel: y
|
|
15725
15725
|
}) ? d(E, s(E)) : void 0;
|
|
15726
15726
|
}, [s, d, y, g, E, c, v, _]), D = pe(function() {
|
|
15727
|
-
return (n || !C) && T ? o === "first" ? [T].concat(
|
|
15727
|
+
return (n || !C) && T ? o === "first" ? [T].concat(So(v)) : [].concat(So(v), [T]) : v;
|
|
15728
15728
|
}, [n, o, C, T, v]), F = Se(function(O, j) {
|
|
15729
15729
|
if (j.action !== "select-option")
|
|
15730
15730
|
return m(O, j);
|
|
@@ -15737,7 +15737,7 @@ function dE(e) {
|
|
|
15737
15737
|
name: I,
|
|
15738
15738
|
option: H
|
|
15739
15739
|
};
|
|
15740
|
-
m(xi(w, [].concat(
|
|
15740
|
+
m(xi(w, [].concat(So(sa(_)), [H]), H), Y);
|
|
15741
15741
|
}
|
|
15742
15742
|
return;
|
|
15743
15743
|
}
|
|
@@ -16099,7 +16099,7 @@ const TE = (e, t) => ({
|
|
|
16099
16099
|
t ? /* @__PURE__ */ l.jsx("span", { className: "required__star", children: "*" }) : null
|
|
16100
16100
|
]
|
|
16101
16101
|
}
|
|
16102
|
-
) : null, OE = (e) => /* @__PURE__ */ S.createElement("svg", { width: "8px", height: "8px", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("path", { d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4z" })), I2 = 250,
|
|
16102
|
+
) : null, OE = (e) => /* @__PURE__ */ S.createElement("svg", { width: "8px", height: "8px", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("path", { d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4z" })), I2 = 250, Vr = "__id", pi = {
|
|
16103
16103
|
isExpandable: !0,
|
|
16104
16104
|
isExpanded: !0,
|
|
16105
16105
|
defaultNumberOfRows: 1,
|
|
@@ -16113,11 +16113,11 @@ const TE = (e, t) => ({
|
|
|
16113
16113
|
columns: r = [],
|
|
16114
16114
|
validation: o = {},
|
|
16115
16115
|
meta: {
|
|
16116
|
-
defaultNumberOfRows: i =
|
|
16117
|
-
fixedRows: s =
|
|
16118
|
-
cellWidth: a =
|
|
16119
|
-
arithmeticOperation: c =
|
|
16120
|
-
} =
|
|
16116
|
+
defaultNumberOfRows: i = pi.defaultNumberOfRows,
|
|
16117
|
+
fixedRows: s = pi.fixedRows,
|
|
16118
|
+
cellWidth: a = pi.cellWidth,
|
|
16119
|
+
arithmeticOperation: c = pi.arithmeticOperation
|
|
16120
|
+
} = pi,
|
|
16121
16121
|
fetchConfig: u = {},
|
|
16122
16122
|
createConfig: d = {},
|
|
16123
16123
|
stackIndex: p,
|
|
@@ -16158,7 +16158,7 @@ const TE = (e, t) => ({
|
|
|
16158
16158
|
const W = [];
|
|
16159
16159
|
for (let q = 0; q < i; q++) {
|
|
16160
16160
|
const k = a0();
|
|
16161
|
-
W.push({ [
|
|
16161
|
+
W.push({ [Vr]: k });
|
|
16162
16162
|
}
|
|
16163
16163
|
b(W);
|
|
16164
16164
|
}, [t, b, i]);
|
|
@@ -16167,11 +16167,11 @@ const TE = (e, t) => ({
|
|
|
16167
16167
|
return (W == null ? void 0 : W[1]) ?? "";
|
|
16168
16168
|
}, F = () => {
|
|
16169
16169
|
const W = {
|
|
16170
|
-
[
|
|
16170
|
+
[Vr]: a0()
|
|
16171
16171
|
};
|
|
16172
16172
|
b([...h, W]);
|
|
16173
16173
|
}, O = (W) => {
|
|
16174
|
-
const q = h.filter((k) => k[
|
|
16174
|
+
const q = h.filter((k) => k[Vr] !== W);
|
|
16175
16175
|
b(q), E((k) => ({
|
|
16176
16176
|
...k,
|
|
16177
16177
|
[W]: {}
|
|
@@ -16183,14 +16183,14 @@ const TE = (e, t) => ({
|
|
|
16183
16183
|
const J = q.map((re) => W[re]);
|
|
16184
16184
|
return "" + c0(J, k);
|
|
16185
16185
|
}, G = (W, q) => {
|
|
16186
|
-
const k = h.map((J) => W !== J[
|
|
16186
|
+
const k = h.map((J) => W !== J[Vr] ? J : {
|
|
16187
16187
|
...J,
|
|
16188
16188
|
...q
|
|
16189
16189
|
});
|
|
16190
16190
|
b(k);
|
|
16191
16191
|
}, H = (W, q) => {
|
|
16192
16192
|
const k = h.map((J) => {
|
|
16193
|
-
if (W !== J[
|
|
16193
|
+
if (W !== J[Vr])
|
|
16194
16194
|
return J;
|
|
16195
16195
|
const re = { ...J };
|
|
16196
16196
|
for (const ae of q)
|
|
@@ -16242,11 +16242,11 @@ const TE = (e, t) => ({
|
|
|
16242
16242
|
return /* @__PURE__ */ l.jsxs(xE, { children: [
|
|
16243
16243
|
/* @__PURE__ */ l.jsx(vE, { ref: g, children: /* @__PURE__ */ l.jsxs(yE, { gridColumns: w, minWidth: `calc( ${C} * ${_} )`, children: [
|
|
16244
16244
|
/* @__PURE__ */ l.jsx(EE, { children: r.map(({ name: W, label: q, isRequired: k }) => /* @__PURE__ */ l.jsx(wc, { children: /* @__PURE__ */ l.jsx(w2, { label: q, isRequired: k }) }, W)) }),
|
|
16245
|
-
h.map(({ [
|
|
16245
|
+
h.map(({ [Vr]: W, ...q }) => /* @__PURE__ */ l.jsxs(y2, { children: [
|
|
16246
16246
|
r.map(({ name: k, key: J, ...re }) => {
|
|
16247
16247
|
var ae;
|
|
16248
16248
|
return /* @__PURE__ */ l.jsx(wc, { hasError: !!((ae = y == null ? void 0 : y[W]) != null && ae[k]), children: /* @__PURE__ */ l.jsx(
|
|
16249
|
-
|
|
16249
|
+
co,
|
|
16250
16250
|
{
|
|
16251
16251
|
name: k,
|
|
16252
16252
|
value: q[k],
|
|
@@ -16298,7 +16298,7 @@ const TE = (e, t) => ({
|
|
|
16298
16298
|
] })
|
|
16299
16299
|
] });
|
|
16300
16300
|
};
|
|
16301
|
-
Ua.ROW_ID =
|
|
16301
|
+
Ua.ROW_ID = Vr;
|
|
16302
16302
|
const FE = A(K)`
|
|
16303
16303
|
box-sizing: border-box;
|
|
16304
16304
|
&:not(:has(.${Ki})) {
|
|
@@ -16534,7 +16534,7 @@ const FE = A(K)`
|
|
|
16534
16534
|
transform: translate(5px, 0);
|
|
16535
16535
|
height: 34px;
|
|
16536
16536
|
width: 34px;
|
|
16537
|
-
`, VE = (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" })),
|
|
16537
|
+
`, VE = (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" })), co = ({
|
|
16538
16538
|
fetchConfig: e,
|
|
16539
16539
|
createConfig: t,
|
|
16540
16540
|
menuPortalTarget: n,
|
|
@@ -16779,7 +16779,7 @@ const FE = A(K)`
|
|
|
16779
16779
|
/* @__PURE__ */ l.jsx(HE, { useFlexGap: !0, spacing: v, cols: x, children: w.map((I) => {
|
|
16780
16780
|
var T;
|
|
16781
16781
|
return a && typeof a == "object" && I.name in a && a[I.name] === !1 || I.hideInUI ? null : /* @__PURE__ */ l.jsx(WE, { cols: I.cols ?? 1, children: /* @__PURE__ */ l.jsx(
|
|
16782
|
-
|
|
16782
|
+
co,
|
|
16783
16783
|
{
|
|
16784
16784
|
value: c == null ? void 0 : c[I.name],
|
|
16785
16785
|
data: c,
|
|
@@ -16832,10 +16832,10 @@ const FE = A(K)`
|
|
|
16832
16832
|
/* @__PURE__ */ l.jsx(ZE, { className: "play-icon" })
|
|
16833
16833
|
] });
|
|
16834
16834
|
}, A2 = A(({ className: e, ...t }) => /* @__PURE__ */ l.jsx(we, { ...t, classes: { popper: e } }))(({ tooltipStyle: e, arrowStyle: t }) => ({
|
|
16835
|
-
[`& .${
|
|
16835
|
+
[`& .${to.arrow}`]: {
|
|
16836
16836
|
...t
|
|
16837
16837
|
},
|
|
16838
|
-
[`& .${
|
|
16838
|
+
[`& .${to.tooltip}`]: {
|
|
16839
16839
|
...e
|
|
16840
16840
|
}
|
|
16841
16841
|
}));
|
|
@@ -17226,15 +17226,15 @@ const la = (e) => !!e && typeof e == "object" && "value" in e && "label" in e, S
|
|
|
17226
17226
|
sx: lw
|
|
17227
17227
|
}
|
|
17228
17228
|
)
|
|
17229
|
-
] }) }), x = h ? /* @__PURE__ */ l.jsx(
|
|
17229
|
+
] }) }), x = h ? /* @__PURE__ */ l.jsx(wo, { disabled: !0, sx: { justifyContent: "center", opacity: 1, minHeight: 120, cursor: "default" }, children: /* @__PURE__ */ l.jsx(_i, { size: 24 }) }) : s.length === 0 ? /* @__PURE__ */ l.jsx(wo, { disabled: !0, value: F2, sx: { opacity: 1, color: P.palette.gray.gray3 }, children: /* @__PURE__ */ l.jsx(X, { variant: "body2", fontSize: 14, children: "No results found" }) }) : s.map((E) => {
|
|
17230
17230
|
const C = String(E.value), w = n ? m.has(C) : C === e;
|
|
17231
|
-
return /* @__PURE__ */ l.jsxs(
|
|
17231
|
+
return /* @__PURE__ */ l.jsxs(wo, { value: C, sx: pw(w), children: [
|
|
17232
17232
|
/* @__PURE__ */ l.jsx("span", { children: E.label }),
|
|
17233
17233
|
w ? /* @__PURE__ */ l.jsx(u2, { fill: "#97A3B7", style: { marginLeft: "auto" } }) : null
|
|
17234
17234
|
] }, C);
|
|
17235
17235
|
});
|
|
17236
17236
|
return [g, x, f ? /* @__PURE__ */ l.jsx(
|
|
17237
|
-
|
|
17237
|
+
wo,
|
|
17238
17238
|
{
|
|
17239
17239
|
disabled: !0,
|
|
17240
17240
|
disableRipple: !0,
|
|
@@ -18470,7 +18470,7 @@ const cI = ({
|
|
|
18470
18470
|
t[n.name].validate = Yv(u);
|
|
18471
18471
|
}
|
|
18472
18472
|
}), t;
|
|
18473
|
-
},
|
|
18473
|
+
}, hi = {
|
|
18474
18474
|
isMultiSelect: (e) => Array.isArray(e) ? e.every((t) => typeof t == "object" && "label" in t && "value" in t) : !1,
|
|
18475
18475
|
isTable: (e) => Array.isArray(e) ? e.some((n) => !!n[Ua.ROW_ID]) : !1,
|
|
18476
18476
|
isSelect: (e) => !!e && typeof e == "object" && "label" in e,
|
|
@@ -18480,7 +18480,7 @@ const cI = ({
|
|
|
18480
18480
|
(r, o) => {
|
|
18481
18481
|
const i = e.values[t[o]];
|
|
18482
18482
|
let s;
|
|
18483
|
-
return
|
|
18483
|
+
return hi.isMultiSelect(i) ? s = i.map((a) => a.value) : hi.isTable(i) ? s = i.map(({ ...c }) => (delete c[Ua.ROW_ID], c)).filter((c) => Object.keys(c).length > 0) : hi.isSelect(i) ? s = i.value : hi.isDate(i) ? s = i.toISOString() : n != null && n.has(t[o]) ? s = [] : hi.isBoolean(i) ? s = i : s = i || "", r[o] = s, r;
|
|
18484
18484
|
},
|
|
18485
18485
|
{}
|
|
18486
18486
|
), hI = (e, t) => {
|
|
@@ -18510,7 +18510,7 @@ const cI = ({
|
|
|
18510
18510
|
o === "" || o === void 0 || o === null || n++;
|
|
18511
18511
|
}
|
|
18512
18512
|
return n;
|
|
18513
|
-
},
|
|
18513
|
+
}, yr = "/v1/api", gI = `${yr}/connectors/conversation/:conversationId/metadata`, mI = `${yr}/connectors/forms/:formId/field/:fieldName/data`, bI = `${yr}/connectors/form/:formId`, xI = `${yr}/connectors/forms/:id/link`, vI = `${yr}/connectors/forms/:id/preview`, yI = `${yr}/connectors/conversation/:conversationId/selected-email`, CI = `${yr}/connectors/app-cf-values`, EI = `${yr}/connectors/deferred-app-cf-values`, M2 = (e, t, n = "email") => {
|
|
18514
18514
|
const r = new URLSearchParams();
|
|
18515
18515
|
return r.append("channel_type", n), Ne({
|
|
18516
18516
|
url: xt(`${mI}?${r.toString()}`, e),
|
|
@@ -18578,9 +18578,9 @@ const cI = ({
|
|
|
18578
18578
|
};
|
|
18579
18579
|
}).addCase(Ls.rejected, (t) => {
|
|
18580
18580
|
t.createOptionApi = se.FAILED;
|
|
18581
|
-
}).addCase(
|
|
18581
|
+
}).addCase(eo.pending, (t) => {
|
|
18582
18582
|
t.dropdownOptionsApis = se.LOADING;
|
|
18583
|
-
}).addCase(
|
|
18583
|
+
}).addCase(eo.fulfilled, (t, n) => {
|
|
18584
18584
|
const r = t.optionsMap || {}, { optionsList: o, hasMore: i, currentPage: s, searchTerm: a, key: c } = n.payload;
|
|
18585
18585
|
t.dropdownOptionsApis = se.IDLE, t.optionsMap = {
|
|
18586
18586
|
...r,
|
|
@@ -18591,14 +18591,14 @@ const cI = ({
|
|
|
18591
18591
|
searchTerm: a
|
|
18592
18592
|
}
|
|
18593
18593
|
};
|
|
18594
|
-
}).addCase(
|
|
18594
|
+
}).addCase(eo.rejected, (t) => {
|
|
18595
18595
|
t.dropdownOptionsApis = se.FAILED;
|
|
18596
|
-
}).addCase(
|
|
18596
|
+
}).addCase(Lo.pending, (t) => {
|
|
18597
18597
|
t.previewCardApiStatus = se.LOADING;
|
|
18598
|
-
}).addCase(
|
|
18598
|
+
}).addCase(Lo.fulfilled, (t, n) => {
|
|
18599
18599
|
const { data: r } = n.payload;
|
|
18600
18600
|
r && (t.previewCardData = r), t.previewCardApiStatus = se.IDLE;
|
|
18601
|
-
}).addCase(
|
|
18601
|
+
}).addCase(Lo.rejected, (t) => {
|
|
18602
18602
|
t.previewCardApiStatus = se.FAILED;
|
|
18603
18603
|
});
|
|
18604
18604
|
}
|
|
@@ -18631,11 +18631,11 @@ const cI = ({
|
|
|
18631
18631
|
};
|
|
18632
18632
|
} catch (x) {
|
|
18633
18633
|
d == null || d(v);
|
|
18634
|
-
const y = x, E = (f = y == null ? void 0 : y.response) == null ? void 0 : f.data, C = typeof E == "string" ? E : (E == null ? void 0 : E.message) ||
|
|
18634
|
+
const y = x, E = (f = y == null ? void 0 : y.response) == null ? void 0 : f.data, C = typeof E == "string" ? E : (E == null ? void 0 : E.message) || qn;
|
|
18635
18635
|
return Be({ message: C, type: dt }), n((g = y == null ? void 0 : y.response) == null ? void 0 : g.status);
|
|
18636
18636
|
}
|
|
18637
18637
|
}
|
|
18638
|
-
),
|
|
18638
|
+
), eo = yn(
|
|
18639
18639
|
"commonSlice/fetchDropDownOptions",
|
|
18640
18640
|
async (e, { getState: t, rejectWithValue: n }) => {
|
|
18641
18641
|
var _, I, T;
|
|
@@ -18697,7 +18697,7 @@ const cI = ({
|
|
|
18697
18697
|
return d && d.length ? (i == null || i(d), !1) : !0;
|
|
18698
18698
|
}
|
|
18699
18699
|
}
|
|
18700
|
-
),
|
|
18700
|
+
), Lo = yn(
|
|
18701
18701
|
"commonSlice/previewCard",
|
|
18702
18702
|
async ({
|
|
18703
18703
|
id: e,
|
|
@@ -18717,7 +18717,7 @@ const cI = ({
|
|
|
18717
18717
|
});
|
|
18718
18718
|
}
|
|
18719
18719
|
}
|
|
18720
|
-
), { resetState: zF, resetPreviewCardData: AI, setSelectedSuggestionType: SI, resetDropdownOptionsCache: TI } = P2.actions, LI = P2.reducer,
|
|
18720
|
+
), { resetState: zF, resetPreviewCardData: AI, setSelectedSuggestionType: SI, resetDropdownOptionsCache: TI } = P2.actions, LI = P2.reducer, Cr = "/v1/api", RI = `${Cr}/connectors/forms/list`, OI = `${Cr}/connectors/cards/:id/unlink`, FI = `${Cr}/connectors/forms/:id/link`, kI = `${Cr}/connectors/form/:formId`, DI = `${Cr}/connectors/forms/:formId/data`, NI = `${Cr}/connectors/forms/:formId/get_forms_custom_fields`, B2 = `${Cr}/connectors/forms/:formId/defaults`, jI = `${Cr}/connectors/forms/:formId/default-values`, MI = ({
|
|
18721
18721
|
inboxIds: e,
|
|
18722
18722
|
channelType: t,
|
|
18723
18723
|
conversationId: n,
|
|
@@ -18874,9 +18874,9 @@ Do you want to continue?`, KI = "Select an object to create", QI = "Select an ob
|
|
|
18874
18874
|
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;
|
|
18875
18875
|
}).addCase(Rs.rejected, (t) => {
|
|
18876
18876
|
t.objectListApiStatus = se.FAILED;
|
|
18877
|
-
}).addCase(
|
|
18877
|
+
}).addCase(eo.pending, (t) => {
|
|
18878
18878
|
t.dropdownOptionsApis = se.LOADING;
|
|
18879
|
-
}).addCase(
|
|
18879
|
+
}).addCase(eo.fulfilled, (t, n) => {
|
|
18880
18880
|
const r = t.optionsMap || {}, { optionsList: o, hasMore: i, currentPage: s, key: a } = n.payload;
|
|
18881
18881
|
t.dropdownOptionsApis = se.IDLE, t.optionsMap = {
|
|
18882
18882
|
...r,
|
|
@@ -18886,7 +18886,7 @@ Do you want to continue?`, KI = "Select an object to create", QI = "Select an ob
|
|
|
18886
18886
|
currentPage: s
|
|
18887
18887
|
}
|
|
18888
18888
|
};
|
|
18889
|
-
}).addCase(
|
|
18889
|
+
}).addCase(eo.rejected, (t) => {
|
|
18890
18890
|
t.dropdownOptionsApis = se.FAILED;
|
|
18891
18891
|
}).addCase(Os.pending, (t) => {
|
|
18892
18892
|
t.createFormApiStatus = se.LOADING;
|
|
@@ -19055,10 +19055,10 @@ Do you want to continue?`, KI = "Select an object to create", QI = "Select an ob
|
|
|
19055
19055
|
} : d.values[p] = b.label;
|
|
19056
19056
|
}), { data: d, status: u };
|
|
19057
19057
|
} catch (a) {
|
|
19058
|
-
return Be({ message:
|
|
19058
|
+
return Be({ message: qn, type: dt }), t(a);
|
|
19059
19059
|
}
|
|
19060
19060
|
}
|
|
19061
|
-
), { resetState: $F, setCurrentCardInEdit:
|
|
19061
|
+
), { resetState: $F, setCurrentCardInEdit: Ro, resetCurrentResourceDetails: s_, setHasUnsavedChanges: q0 } = H2.actions, a_ = H2.reducer, c_ = () => {
|
|
19062
19062
|
const [e, t] = V(null), [n, r] = V({
|
|
19063
19063
|
isVertical: !1,
|
|
19064
19064
|
isHorizontal: !1,
|
|
@@ -19141,8 +19141,12 @@ const h_ = ({ data: e, title: t, currentCard: n, setShowModal: r }) => {
|
|
|
19141
19141
|
};
|
|
19142
19142
|
return g.data.forEach((y, E) => {
|
|
19143
19143
|
if (v[E]) {
|
|
19144
|
-
let C = y.value == null || y.value === void 0 || y.value === "" ?
|
|
19145
|
-
C && y.type === "date"
|
|
19144
|
+
let C = y.value == null || y.value === void 0 || y.value === "" ? Un : Array.isArray(y.value) ? y.value.map(ua).join(", ") : ua(y.value);
|
|
19145
|
+
if (C && C !== Un && y.type === "date") {
|
|
19146
|
+
const w = new Date(parseInt(C));
|
|
19147
|
+
C = isNaN(w.getTime()) ? Un : w.toLocaleDateString(navigator.language);
|
|
19148
|
+
}
|
|
19149
|
+
x.cells[v[E]] = {
|
|
19146
19150
|
label: C,
|
|
19147
19151
|
deepLink: y == null ? void 0 : y.deepLink
|
|
19148
19152
|
};
|
|
@@ -19154,7 +19158,7 @@ const h_ = ({ data: e, title: t, currentCard: n, setShowModal: r }) => {
|
|
|
19154
19158
|
connector_name: n.connectorName,
|
|
19155
19159
|
ug_id: a,
|
|
19156
19160
|
sm_ids: s
|
|
19157
|
-
}), o(
|
|
19161
|
+
}), o(Ro({ ...n, externalResourceId: g })));
|
|
19158
19162
|
};
|
|
19159
19163
|
return /* @__PURE__ */ l.jsxs(N, { maxHeight: "340px", maxWidth: "700px", padding: "32px 0px 32px 32px", overflow: "auto", children: [
|
|
19160
19164
|
/* @__PURE__ */ l.jsx(X, { variant: "h2", color: "gray.black", marginBottom: "16px", children: t }),
|
|
@@ -19226,8 +19230,11 @@ const h_ = ({ data: e, title: t, currentCard: n, setShowModal: r }) => {
|
|
|
19226
19230
|
}
|
|
19227
19231
|
}, [t, r]);
|
|
19228
19232
|
const j = o == xl.NOT_FOUND, G = !j && Array.isArray(t) && t.every((ee) => typeof ee == "string" || typeof ee == "number" || typeof ee == "boolean");
|
|
19229
|
-
let H = j || t == null || t === void 0 || Array.isArray(t) ?
|
|
19230
|
-
s === "date" && H &&
|
|
19233
|
+
let H = j || t == null || t === void 0 || Array.isArray(t) ? Un : ua(t);
|
|
19234
|
+
if (s === "date" && H && H !== Un && !j) {
|
|
19235
|
+
const ee = new Date(parseInt(H));
|
|
19236
|
+
H = isNaN(ee.getTime()) ? Un : ee.toLocaleDateString(navigator.language);
|
|
19237
|
+
}
|
|
19231
19238
|
const Y = !!n || c, Z = () => {
|
|
19232
19239
|
a ? w == null || w.redirectToAdmin() : window.open(s6, "_blank");
|
|
19233
19240
|
}, U = () => {
|
|
@@ -19251,7 +19258,7 @@ const h_ = ({ data: e, title: t, currentCard: n, setShowModal: r }) => {
|
|
|
19251
19258
|
] });
|
|
19252
19259
|
if (G) {
|
|
19253
19260
|
const ee = t;
|
|
19254
|
-
return ee.length ? /* @__PURE__ */ l.jsx(K6, { children: ee.map((ie, W) => /* @__PURE__ */ l.jsx(Q6, { children: ua(ie) }, `${W}_${String(ie)}`)) }) : /* @__PURE__ */ l.jsx(Vd, { variant: "caption_regular", children:
|
|
19261
|
+
return ee.length ? /* @__PURE__ */ l.jsx(K6, { children: ee.map((ie, W) => /* @__PURE__ */ l.jsx(Q6, { children: ua(ie) }, `${W}_${String(ie)}`)) }) : /* @__PURE__ */ l.jsx(Vd, { variant: "caption_regular", children: Un });
|
|
19255
19262
|
}
|
|
19256
19263
|
return /* @__PURE__ */ l.jsx(we, { title: T ? H : null, placement: "bottom", children: r ? /* @__PURE__ */ l.jsx(
|
|
19257
19264
|
Op,
|
|
@@ -19262,10 +19269,10 @@ const h_ = ({ data: e, title: t, currentCard: n, setShowModal: r }) => {
|
|
|
19262
19269
|
href: r,
|
|
19263
19270
|
fontSize: "13px",
|
|
19264
19271
|
onClick: U,
|
|
19265
|
-
children: H ||
|
|
19272
|
+
children: H || Un
|
|
19266
19273
|
}
|
|
19267
|
-
) : /* @__PURE__ */ l.jsx(Vd, { ref: f, variant: "caption_regular", children: H ||
|
|
19268
|
-
}, $2 = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_825_73646)'%3e%3cpath%20d='M19%206.41L17.59%205L12%2010.59L6.41%205L5%206.41L10.59%2012L5%2017.59L6.41%2019L12%2013.41L17.59%2019L19%2017.59L13.41%2012L19%206.41Z'%20fill='%236F7C90'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_825_73646'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",
|
|
19274
|
+
) : /* @__PURE__ */ l.jsx(Vd, { ref: f, variant: "caption_regular", children: H || Un }) });
|
|
19275
|
+
}, $2 = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_825_73646)'%3e%3cpath%20d='M19%206.41L17.59%205L12%2010.59L6.41%205L5%206.41L10.59%2012L5%2017.59L6.41%2019L12%2013.41L17.59%2019L19%2017.59L13.41%2012L19%206.41Z'%20fill='%236F7C90'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_825_73646'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", br = ({
|
|
19269
19276
|
shown: e,
|
|
19270
19277
|
setShown: t,
|
|
19271
19278
|
children: n,
|
|
@@ -19298,7 +19305,7 @@ const h_ = ({ data: e, title: t, currentCard: n, setShowModal: r }) => {
|
|
|
19298
19305
|
var J, re, ae, ge;
|
|
19299
19306
|
return f && ((J = b == null ? void 0 : b.flatDisplay) != null && J.data) ? b.flatDisplay.data : !f && ((ge = (ae = (re = b == null ? void 0 : b.listItems) == null ? void 0 : re.fields) == null ? void 0 : ae[0]) != null && ge.data) ? b.listItems.fields[0].data : [];
|
|
19300
19307
|
}, [f, b]), F = pe(() => D == null ? void 0 : D.slice(0, 5), [D]), [O, j] = V([]), G = he(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);
|
|
19301
|
-
|
|
19308
|
+
lo(() => {
|
|
19302
19309
|
var J;
|
|
19303
19310
|
(J = G.current) != null && J.scrollHeight && Y(G.current.scrollHeight + a);
|
|
19304
19311
|
}, [o == null ? void 0 : o[t], O, G]), oe(() => {
|
|
@@ -19312,7 +19319,7 @@ const h_ = ({ data: e, title: t, currentCard: n, setShowModal: r }) => {
|
|
|
19312
19319
|
C ? x((J) => !J) : I((J) => !J);
|
|
19313
19320
|
};
|
|
19314
19321
|
return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
19315
|
-
/* @__PURE__ */ l.jsx(
|
|
19322
|
+
/* @__PURE__ */ l.jsx(br, { shown: _, setShown: I, showCloseButton: !0, borderRadius: 12, children: /* @__PURE__ */ l.jsx(
|
|
19316
19323
|
h_,
|
|
19317
19324
|
{
|
|
19318
19325
|
data: ((k = b == null ? void 0 : b.listItems) == null ? void 0 : k.fields) || [],
|
|
@@ -19512,7 +19519,7 @@ const h_ = ({ data: e, title: t, currentCard: n, setShowModal: r }) => {
|
|
|
19512
19519
|
});
|
|
19513
19520
|
});
|
|
19514
19521
|
};
|
|
19515
|
-
return /* @__PURE__ */ l.jsx(
|
|
19522
|
+
return /* @__PURE__ */ l.jsx(br, { shown: e, setShown: t, showCloseButton: !0, children: /* @__PURE__ */ l.jsxs(N, { width: "400px", padding: "20px", gap: "8px", children: [
|
|
19516
19523
|
/* @__PURE__ */ l.jsx(X, { variant: "h2", children: K5 }),
|
|
19517
19524
|
/* @__PURE__ */ l.jsx(X, { variant: "body2", children: W_(s) }),
|
|
19518
19525
|
/* @__PURE__ */ l.jsxs(N, { direction: "row", gap: "8px", marginTop: "20px", justifyContent: "flex-end", children: [
|
|
@@ -19526,8 +19533,8 @@ const h_ = ({ data: e, title: t, currentCard: n, setShowModal: r }) => {
|
|
|
19526
19533
|
return null;
|
|
19527
19534
|
const o = r[r.length - 1], i = r.slice(0, -1), s = t ? (i.length + 1) * 32 : 32;
|
|
19528
19535
|
return /* @__PURE__ */ l.jsxs(e9, { width: s, isHovered: t, children: [
|
|
19529
|
-
/* @__PURE__ */ l.jsx("div", { className: "hidden-actions", children: i.map(({ id: a, disabled: c, label: u, iconSrc: d, action: p }) => /* @__PURE__ */ l.jsx(we, { title: u, placement: "bottom", children: /* @__PURE__ */ l.jsx(
|
|
19530
|
-
o && /* @__PURE__ */ l.jsx(we, { title: o.label, placement: "bottom", children: /* @__PURE__ */ l.jsx(
|
|
19536
|
+
/* @__PURE__ */ l.jsx("div", { className: "hidden-actions", children: i.map(({ id: a, disabled: c, label: u, iconSrc: d, action: p }) => /* @__PURE__ */ l.jsx(we, { title: u, placement: "bottom", children: /* @__PURE__ */ l.jsx(Xo, { onClick: p, disabled: c, children: /* @__PURE__ */ l.jsx("img", { src: d }) }) }, a)) }),
|
|
19537
|
+
o && /* @__PURE__ */ l.jsx(we, { title: o.label, placement: "bottom", children: /* @__PURE__ */ l.jsx(Xo, { onClick: o.action, disabled: o.disabled, children: /* @__PURE__ */ l.jsx("img", { src: o.iconSrc }) }) }, o.id)
|
|
19531
19538
|
] });
|
|
19532
19539
|
}, n1 = (e) => {
|
|
19533
19540
|
const {
|
|
@@ -19600,7 +19607,7 @@ const h_ = ({ data: e, title: t, currentCard: n, setShowModal: r }) => {
|
|
|
19600
19607
|
sm_ids: p
|
|
19601
19608
|
});
|
|
19602
19609
|
let le;
|
|
19603
|
-
O === "flat" ? le = (F == null ? void 0 : F.flatDisplay.externalResourceId) ?? t.externalResourceId : O === "flat_with_list" && (le = ($ = (Fe = F == null ? void 0 : F.listItems) == null ? void 0 : Fe.fields[0]) == null ? void 0 : $.externalResourceId), le ? a(
|
|
19610
|
+
O === "flat" ? le = (F == null ? void 0 : F.flatDisplay.externalResourceId) ?? t.externalResourceId : O === "flat_with_list" && (le = ($ = (Fe = F == null ? void 0 : F.listItems) == null ? void 0 : Fe.fields[0]) == null ? void 0 : $.externalResourceId), le ? a(Ro({ ...t, externalResourceId: le })) : Be({ message: qn, type: dt });
|
|
19604
19611
|
}, J = (M) => {
|
|
19605
19612
|
M.stopPropagation(), x(!0);
|
|
19606
19613
|
}, re = () => {
|
|
@@ -19649,7 +19656,7 @@ const h_ = ({ data: e, title: t, currentCard: n, setShowModal: r }) => {
|
|
|
19649
19656
|
] }),
|
|
19650
19657
|
/* @__PURE__ */ l.jsxs(Lp, { children: [
|
|
19651
19658
|
/* @__PURE__ */ l.jsx(Z_, { actions: ge, isHovered: y }),
|
|
19652
|
-
/* @__PURE__ */ l.jsx(we, { title: v ? hp : mu, placement: "bottom", children: /* @__PURE__ */ l.jsx(
|
|
19659
|
+
/* @__PURE__ */ l.jsx(we, { title: v ? hp : mu, placement: "bottom", children: /* @__PURE__ */ l.jsx(Xo, { onClick: (M) => W(M, D), children: /* @__PURE__ */ l.jsx(Cu, { className: v ? "" : "hiver-up" }) }) })
|
|
19653
19660
|
] })
|
|
19654
19661
|
] }),
|
|
19655
19662
|
/* @__PURE__ */ l.jsx(
|
|
@@ -19766,7 +19773,7 @@ const h_ = ({ data: e, title: t, currentCard: n, setShowModal: r }) => {
|
|
|
19766
19773
|
userAuthRequired: J_,
|
|
19767
19774
|
userAuthInProgress: q_,
|
|
19768
19775
|
userAuthCompleted: XF,
|
|
19769
|
-
userAuthFailed:
|
|
19776
|
+
userAuthFailed: Eo,
|
|
19770
19777
|
userAuthReset: YF
|
|
19771
19778
|
} = tg.actions, K_ = tg.reducer, Q_ = { state: "unknown" }, Qi = (e, t) => e.userAuth.byConnectorId[t] || Q_, eA = /* @__PURE__ */ new Set([
|
|
19772
19779
|
"disconnected",
|
|
@@ -19804,7 +19811,7 @@ function iA(e, t = {}) {
|
|
|
19804
19811
|
}
|
|
19805
19812
|
return a.current = setTimeout(() => {
|
|
19806
19813
|
n(
|
|
19807
|
-
|
|
19814
|
+
Eo({
|
|
19808
19815
|
connectorId: e,
|
|
19809
19816
|
reason: "in_progress_timeout"
|
|
19810
19817
|
})
|
|
@@ -19840,9 +19847,9 @@ function iA(e, t = {}) {
|
|
|
19840
19847
|
// still workspace_mismatch needs to land, not be ignored).
|
|
19841
19848
|
authoritative: !0
|
|
19842
19849
|
})
|
|
19843
|
-
), m.state === "connected" && !u.current && (u.current = !0, i == null || i())) : n(
|
|
19850
|
+
), m.state === "connected" && !u.current && (u.current = !0, i == null || i())) : n(Eo({ connectorId: e, reason: "popup_closed" }));
|
|
19844
19851
|
} catch {
|
|
19845
|
-
n(
|
|
19852
|
+
n(Eo({ connectorId: e, reason: "popup_closed" }));
|
|
19846
19853
|
}
|
|
19847
19854
|
}
|
|
19848
19855
|
}, 800);
|
|
@@ -19861,14 +19868,14 @@ function iA(e, t = {}) {
|
|
|
19861
19868
|
`width=${m},height=${h},left=${f},top=${g},menubar=no,toolbar=no`
|
|
19862
19869
|
);
|
|
19863
19870
|
c.current = x, x || n(
|
|
19864
|
-
|
|
19871
|
+
Eo({
|
|
19865
19872
|
connectorId: e,
|
|
19866
19873
|
reason: "popup_blocked"
|
|
19867
19874
|
})
|
|
19868
19875
|
);
|
|
19869
19876
|
} catch (p) {
|
|
19870
19877
|
console.error("startUserAuth failed: ", p), n(
|
|
19871
|
-
|
|
19878
|
+
Eo({
|
|
19872
19879
|
connectorId: e,
|
|
19873
19880
|
reason: "start_user_auth_failed"
|
|
19874
19881
|
})
|
|
@@ -20224,10 +20231,10 @@ const dA = A(De)`
|
|
|
20224
20231
|
}, [r, o, t]);
|
|
20225
20232
|
if (!t) return null;
|
|
20226
20233
|
const s = () => {
|
|
20227
|
-
e(
|
|
20234
|
+
e(Eo({ connectorId: t, reason: "cancelled" }));
|
|
20228
20235
|
};
|
|
20229
20236
|
return /* @__PURE__ */ l.jsx(
|
|
20230
|
-
|
|
20237
|
+
br,
|
|
20231
20238
|
{
|
|
20232
20239
|
shown: !0,
|
|
20233
20240
|
setShown: s,
|
|
@@ -20303,7 +20310,7 @@ const dA = A(De)`
|
|
|
20303
20310
|
)
|
|
20304
20311
|
}
|
|
20305
20312
|
);
|
|
20306
|
-
},
|
|
20313
|
+
}, qo = ({ children: e }) => {
|
|
20307
20314
|
if (!Array.isArray(e)) return e;
|
|
20308
20315
|
let t = null;
|
|
20309
20316
|
return e.find((r) => typeof (r == null ? void 0 : r.type) != "function" ? !1 : (r.props.fallback && (t = r), r.props.condition)) ?? t;
|
|
@@ -20315,7 +20322,7 @@ function Wn({
|
|
|
20315
20322
|
}) {
|
|
20316
20323
|
return !t && !n ? null : e;
|
|
20317
20324
|
}
|
|
20318
|
-
|
|
20325
|
+
qo.CaseView = Wn;
|
|
20319
20326
|
const yA = "Bring your favourite tools into Hiver", CA = "Plugin image", EA = "Integrate tools like Salesforce, HubSpot, and Shopify to boost productivity", wA = "Enable Connectors", IA = "Enable Apps", _A = "Enable Cards", AA = "Learn more", SA = "https://help.hiverhq.com/custom-connectors/hiver-s-custom-connectors", TA = "Contact your admin to enable this", LA = "https://youtu.be/ODcJnzZLb50", RA = "connectors-module/assets/connectors-images/connector-mainpage.png", OA = "connectors-module/assets/connectors-images/connector-mainpage-apps.png", FA = "Explore connectors", kA = "Connectors", DA = A(K)`
|
|
20320
20327
|
padding-top: 20px;
|
|
20321
20328
|
`, NA = A(N)`
|
|
@@ -20442,7 +20449,7 @@ const yA = "Bring your favourite tools into Hiver", CA = "Plugin image", EA = "I
|
|
|
20442
20449
|
), f = pe(() => (p == null ? void 0 : p.filter(({ isAdminPanelLink: E }) => !(!n && E))) ?? [], [p, n]);
|
|
20443
20450
|
if (oe(() => {
|
|
20444
20451
|
!h && u && oc(v, !0);
|
|
20445
|
-
}, [h, v, u]),
|
|
20452
|
+
}, [h, v, u]), lo(() => {
|
|
20446
20453
|
var E;
|
|
20447
20454
|
(E = s.current) != null && E.scrollHeight && c(s.current.scrollHeight);
|
|
20448
20455
|
}, [s]), oe(() => {
|
|
@@ -20466,7 +20473,7 @@ const yA = "Bring your favourite tools into Hiver", CA = "Plugin image", EA = "I
|
|
|
20466
20473
|
/* @__PURE__ */ l.jsx(l9, { variant: "h3", children: b }),
|
|
20467
20474
|
/* @__PURE__ */ l.jsxs(K, { children: [
|
|
20468
20475
|
o ? /* @__PURE__ */ l.jsx(we, { title: Y5, placement: "bottom", children: /* @__PURE__ */ l.jsx(lt, { onClick: y, children: /* @__PURE__ */ l.jsx(Qe.Close, { sx: { height: "16px", width: "16px", opacity: "0.8" } }) }) }) : null,
|
|
20469
|
-
/* @__PURE__ */ l.jsx(we, { title: o ? X5 : mu, placement: "bottom", children: /* @__PURE__ */ l.jsx(
|
|
20476
|
+
/* @__PURE__ */ l.jsx(we, { title: o ? X5 : mu, placement: "bottom", children: /* @__PURE__ */ l.jsx(Xo, { onClick: g, children: /* @__PURE__ */ l.jsx(Cu, { className: o ? "" : "hiver-up" }) }) })
|
|
20470
20477
|
] })
|
|
20471
20478
|
] }),
|
|
20472
20479
|
/* @__PURE__ */ l.jsx(f9, { className: o ? "slideDown" : "slideUp", ref: s, height: a, children: /* @__PURE__ */ l.jsxs(p9, { children: [
|
|
@@ -20686,7 +20693,7 @@ const nS = A(eu)`
|
|
|
20686
20693
|
s(!!f);
|
|
20687
20694
|
}, m = (h) => {
|
|
20688
20695
|
var g;
|
|
20689
|
-
o(
|
|
20696
|
+
o(Lo({ id: n, args: r, isRefresh: !0 }));
|
|
20690
20697
|
const f = h.target.tagName === "BUTTON" ? (g = h.target) == null ? void 0 : g.firstChild : h.target;
|
|
20691
20698
|
f.className && (f.className = ""), setTimeout(() => f.className = "selected", 1);
|
|
20692
20699
|
};
|
|
@@ -20708,8 +20715,8 @@ const nS = A(eu)`
|
|
|
20708
20715
|
) })
|
|
20709
20716
|
] }),
|
|
20710
20717
|
/* @__PURE__ */ l.jsxs(N, { direction: "row", alignItems: "center", children: [
|
|
20711
|
-
a ? /* @__PURE__ */ l.jsx(we, { title: pp, placement: "bottom", children: /* @__PURE__ */ l.jsx(
|
|
20712
|
-
/* @__PURE__ */ l.jsx(we, { title: a ? hp : mu, placement: "bottom", children: /* @__PURE__ */ l.jsx(
|
|
20718
|
+
a ? /* @__PURE__ */ l.jsx(we, { title: pp, placement: "bottom", children: /* @__PURE__ */ l.jsx(Xo, { onClick: (h) => m(h), children: /* @__PURE__ */ l.jsx("img", { src: J2 }) }) }) : null,
|
|
20719
|
+
/* @__PURE__ */ l.jsx(we, { title: a ? hp : mu, placement: "bottom", children: /* @__PURE__ */ l.jsx(Xo, { onClick: () => c((h) => !h), children: /* @__PURE__ */ l.jsx(Cu, { className: a ? "" : "hiver-up" }) }) })
|
|
20713
20720
|
] })
|
|
20714
20721
|
] }),
|
|
20715
20722
|
/* @__PURE__ */ l.jsx(
|
|
@@ -20863,7 +20870,7 @@ const nS = A(eu)`
|
|
|
20863
20870
|
const v = pI(n, b == null ? void 0 : b.args), m = Object.values((b == null ? void 0 : b.args) || {});
|
|
20864
20871
|
if (v.length === m.length) {
|
|
20865
20872
|
r(
|
|
20866
|
-
|
|
20873
|
+
eo({
|
|
20867
20874
|
fieldName: i.name,
|
|
20868
20875
|
formId: String(t),
|
|
20869
20876
|
searchTerm: c,
|
|
@@ -21259,7 +21266,7 @@ const CS = A(N)`
|
|
|
21259
21266
|
/* @__PURE__ */ l.jsx(De, { variant: "text", size: "small", sx: { color: P.palette.gray.gray2 }, onClick: o, children: "Dismiss" })
|
|
21260
21267
|
] })
|
|
21261
21268
|
] }) });
|
|
21262
|
-
}, vg = ({ setShown: e, shown: t, title: n, description: r, buttons: o }) => /* @__PURE__ */ l.jsx(
|
|
21269
|
+
}, vg = ({ setShown: e, shown: t, title: n, description: r, buttons: o }) => /* @__PURE__ */ l.jsx(br, { shown: t, setShown: e, showCloseButton: !0, children: /* @__PURE__ */ l.jsxs(N, { width: "400px", padding: "20px", children: [
|
|
21263
21270
|
/* @__PURE__ */ l.jsx(X, { variant: "h2", marginBottom: "8px", children: n }),
|
|
21264
21271
|
/* @__PURE__ */ l.jsx(N, { gap: "4px", marginBottom: "20px", children: r.split(`
|
|
21265
21272
|
`).map((i, s) => /* @__PURE__ */ l.jsx(X, { variant: "body2", children: i }, s)) }),
|
|
@@ -21285,7 +21292,7 @@ const CS = A(N)`
|
|
|
21285
21292
|
setCreateFormId: c,
|
|
21286
21293
|
syncCurrentObject: u
|
|
21287
21294
|
}) => {
|
|
21288
|
-
var
|
|
21295
|
+
var kr, Dr;
|
|
21289
21296
|
const { userGroupId: d } = ln() || {}, [p, b] = V(null), [v, m] = V(!1), [h, f] = V(!1), g = he(null), {
|
|
21290
21297
|
conversationId: x,
|
|
21291
21298
|
availableFeatures: y,
|
|
@@ -21327,26 +21334,26 @@ const CS = A(N)`
|
|
|
21327
21334
|
formConfigs: de,
|
|
21328
21335
|
formViewConfigs: de
|
|
21329
21336
|
};
|
|
21330
|
-
}, [Y, Fe, p, $]), Le = (
|
|
21337
|
+
}, [Y, Fe, p, $]), Le = (kr = Ye[0]) == null ? void 0 : kr.formFields, Zt = pe(
|
|
21331
21338
|
() => new Set((Le ?? []).filter((de) => de.isMulti).map((de) => de.name)),
|
|
21332
21339
|
[Le]
|
|
21333
|
-
),
|
|
21340
|
+
), Kn = pe(() => (Le ?? []).filter((_e) => !_e.isFieldCustom), [Le]), gt = pe(() => {
|
|
21334
21341
|
var _e;
|
|
21335
21342
|
const de = ((_e = Ye == null ? void 0 : Ye[0]) == null ? void 0 : _e.formFields) || [];
|
|
21336
21343
|
return Bu({ formFields: de });
|
|
21337
21344
|
}, [Ye]), {
|
|
21338
21345
|
setValue: ft,
|
|
21339
21346
|
setFormDefaults: nt,
|
|
21340
|
-
inputChangeHandler:
|
|
21347
|
+
inputChangeHandler: wr,
|
|
21341
21348
|
checkboxChangeHandler: nn,
|
|
21342
|
-
dateChangeHandler:
|
|
21349
|
+
dateChangeHandler: Ir,
|
|
21343
21350
|
clearDependentFields: Mn,
|
|
21344
|
-
handleValidationError:
|
|
21351
|
+
handleValidationError: _r,
|
|
21345
21352
|
isErrorInValidations: Pn
|
|
21346
21353
|
} = pg({ state: O, dispatch: j, validations: gt, dynamicFields: Fe }), Ft = Ye[0].id !== "emptyFormId" ? Ye[0].id : p == null ? void 0 : p.value, {
|
|
21347
21354
|
data: St,
|
|
21348
|
-
isNudgeRequired:
|
|
21349
|
-
enabledRef:
|
|
21355
|
+
isNudgeRequired: Ar,
|
|
21356
|
+
enabledRef: Qn
|
|
21350
21357
|
} = xg({
|
|
21351
21358
|
formId: Ft,
|
|
21352
21359
|
conversationId: x,
|
|
@@ -21364,12 +21371,12 @@ const CS = A(N)`
|
|
|
21364
21371
|
}, [Le, Ft, nt]), oe(() => {
|
|
21365
21372
|
p && (c == null || c(p.value));
|
|
21366
21373
|
}, [p, c]);
|
|
21367
|
-
const { userGroupId:
|
|
21374
|
+
const { userGroupId: fo } = ln() || {}, { fetchConfig: po, createConfig: Sr } = hg({
|
|
21368
21375
|
formFields: Ye[0].formFields,
|
|
21369
21376
|
formId: Ye[0].id,
|
|
21370
21377
|
formState: O,
|
|
21371
21378
|
conversationId: x
|
|
21372
|
-
}), kt = (
|
|
21379
|
+
}), kt = (Dr = G == null ? void 0 : G.forms.find((de) => de.type === "edit")) == null ? void 0 : Dr.id, { externalResourceId: er } = G ?? {}, tr = [Q, ee, W].includes(se.LOADING), Tr = pe(() => !$ || !_ ? null : _(), [$, _]), $t = Ot();
|
|
21373
21380
|
oe(() => {
|
|
21374
21381
|
$t(TI());
|
|
21375
21382
|
}, []), oe(() => ($ && I && I(!0), () => {
|
|
@@ -21394,7 +21401,7 @@ const CS = A(N)`
|
|
|
21394
21401
|
return b(n);
|
|
21395
21402
|
H && H.length && b(t && kt ? H.find((de) => de.value === kt) ?? null : (de) => de || !Z ? de : H.length === 1 ? H[0] : H.find((Je) => !Z[Je.value].expandedView) ?? null);
|
|
21396
21403
|
}, [H, Z, t, kt, n]);
|
|
21397
|
-
const
|
|
21404
|
+
const Lr = () => {
|
|
21398
21405
|
b(g.current), m(!1), j({ type: Pt.RESET_STATE });
|
|
21399
21406
|
}, En = (de, _e) => {
|
|
21400
21407
|
ft(de, _e);
|
|
@@ -21404,11 +21411,11 @@ const CS = A(N)`
|
|
|
21404
21411
|
ft(_e.name, rt), p != null && p.value && Mn(_e.name, U == null ? void 0 : U[p.value]);
|
|
21405
21412
|
return;
|
|
21406
21413
|
}
|
|
21407
|
-
if (_e.action === "clear" && _e.name && (ft(_e.name, ""), p != null && p.value && Mn(_e.name, U == null ? void 0 : U[p.value]), gt[_e.name].isRequired &&
|
|
21414
|
+
if (_e.action === "clear" && _e.name && (ft(_e.name, ""), p != null && p.value && Mn(_e.name, U == null ? void 0 : U[p.value]), gt[_e.name].isRequired && _r(_e.name, !0)), de && typeof de == "object" && "label" in de && typeof de.label == "string" && "value" in de && (typeof de.value == "string" || typeof de.value == "number") && typeof _e.name < "u")
|
|
21408
21415
|
if (_e.name === "form-object") {
|
|
21409
21416
|
if (g.current = { value: de.value, label: de.label }, O.values && de.value !== (p == null ? void 0 : p.value)) {
|
|
21410
21417
|
const rt = Object.values(O.values).filter((ne) => ne !== "").length;
|
|
21411
|
-
(Object.values(St ?? {}).filter((ne) => !!ne).length > 0 ? !t1(O.values, St) : rt > 0) ? m(!0) :
|
|
21418
|
+
(Object.values(St ?? {}).filter((ne) => !!ne).length > 0 ? !t1(O.values, St) : rt > 0) ? m(!0) : Lr();
|
|
21412
21419
|
}
|
|
21413
21420
|
} else {
|
|
21414
21421
|
const rt = !!Je && !!Je.isMultiSelect, R = !rt && "prefillValues" in de && de.prefillValues, z = rt ? [{ value: de.value, label: de.label }] : { value: de.value, label: de.label };
|
|
@@ -21417,14 +21424,14 @@ const CS = A(N)`
|
|
|
21417
21424
|
ft(ne, R[ne]);
|
|
21418
21425
|
p != null && p.value && Mn(_e.name, U == null ? void 0 : U[p.value]);
|
|
21419
21426
|
}
|
|
21420
|
-
},
|
|
21421
|
-
if (!Pn() && kt && (Z != null && Z[kt]) && x &&
|
|
21427
|
+
}, Rr = () => {
|
|
21428
|
+
if (!Pn() && kt && (Z != null && Z[kt]) && x && er) {
|
|
21422
21429
|
const { connectorName: de, title: _e } = G;
|
|
21423
21430
|
E(d5, {
|
|
21424
21431
|
connector_name: de,
|
|
21425
21432
|
card_title: _e,
|
|
21426
21433
|
sm_ids: C,
|
|
21427
|
-
ug_id:
|
|
21434
|
+
ug_id: fo
|
|
21428
21435
|
});
|
|
21429
21436
|
const Je = Z[kt].interfaceDetails;
|
|
21430
21437
|
if (!Je || !ie)
|
|
@@ -21436,7 +21443,7 @@ const CS = A(N)`
|
|
|
21436
21443
|
conversationId: x,
|
|
21437
21444
|
args: ne,
|
|
21438
21445
|
previousArgs: z,
|
|
21439
|
-
externalResourceId:
|
|
21446
|
+
externalResourceId: er,
|
|
21440
21447
|
interfaceId: Dt,
|
|
21441
21448
|
successCallback: () => {
|
|
21442
21449
|
i();
|
|
@@ -21448,7 +21455,7 @@ const CS = A(N)`
|
|
|
21448
21455
|
connector_name: de,
|
|
21449
21456
|
card_title: _e,
|
|
21450
21457
|
sm_ids: C,
|
|
21451
|
-
ug_id:
|
|
21458
|
+
ug_id: fo
|
|
21452
21459
|
});
|
|
21453
21460
|
const me = ((Ae = Ye[0].formFields) == null ? void 0 : Ae.filter((Ce) => Ce.isFieldCustom)) ?? [], ke = me.length > 0, Re = me.some((Ce) => O.values[Ce.name]);
|
|
21454
21461
|
E(L5, {
|
|
@@ -21461,10 +21468,10 @@ const CS = A(N)`
|
|
|
21461
21468
|
custom_fields_used: Re
|
|
21462
21469
|
});
|
|
21463
21470
|
}).finally(() => {
|
|
21464
|
-
$t(
|
|
21471
|
+
$t(Ro(null));
|
|
21465
21472
|
});
|
|
21466
21473
|
}
|
|
21467
|
-
},
|
|
21474
|
+
}, Or = () => {
|
|
21468
21475
|
if (!Pn() && p && (Z != null && Z[p.value]) && x) {
|
|
21469
21476
|
const de = Z == null ? void 0 : Z[p.value].interfaceDetails;
|
|
21470
21477
|
if (!de)
|
|
@@ -21500,7 +21507,7 @@ const CS = A(N)`
|
|
|
21500
21507
|
});
|
|
21501
21508
|
});
|
|
21502
21509
|
}
|
|
21503
|
-
},
|
|
21510
|
+
}, ho = [
|
|
21504
21511
|
{
|
|
21505
21512
|
label: "Cancel",
|
|
21506
21513
|
action: () => m(!1),
|
|
@@ -21508,17 +21515,17 @@ const CS = A(N)`
|
|
|
21508
21515
|
},
|
|
21509
21516
|
{
|
|
21510
21517
|
label: "Continue",
|
|
21511
|
-
action:
|
|
21518
|
+
action: Lr
|
|
21512
21519
|
}
|
|
21513
|
-
],
|
|
21520
|
+
], Fr = () => {
|
|
21514
21521
|
w(k == null ? void 0 : k.connectorId, { isEdit: !0, tabIndex: 2, editCard: (k == null ? void 0 : k.cardId) ?? "" }), E(S5, {
|
|
21515
21522
|
sm_ids: C,
|
|
21516
21523
|
ug_id: d,
|
|
21517
21524
|
connector_name: k == null ? void 0 : k.connectorName,
|
|
21518
21525
|
form_object: k == null ? void 0 : k.name
|
|
21519
21526
|
});
|
|
21520
|
-
},
|
|
21521
|
-
|
|
21527
|
+
}, go = ({ data: de }) => {
|
|
21528
|
+
Qn.current = !0, a == null || a(!1);
|
|
21522
21529
|
const { fields_configured_count: _e, has_system_variable: Je } = ny(de);
|
|
21523
21530
|
E(k5, {
|
|
21524
21531
|
app_name: k == null ? void 0 : k.connectorName,
|
|
@@ -21526,24 +21533,24 @@ const CS = A(N)`
|
|
|
21526
21533
|
fields_configured_count: _e,
|
|
21527
21534
|
has_system_variable: Je
|
|
21528
21535
|
});
|
|
21529
|
-
},
|
|
21536
|
+
}, mo = D && J && (k == null ? void 0 : k.cardAccessMode) === "read_write", bo = !h && (C == null ? void 0 : C.length) > 1 && Object.keys(St ?? {}).length > 0, xo = /* @__PURE__ */ l.jsxs(Ig, { className: $ ? yg : "", children: [
|
|
21530
21537
|
a && /* @__PURE__ */ l.jsx(
|
|
21531
21538
|
bS,
|
|
21532
21539
|
{
|
|
21533
21540
|
open: r ?? !1,
|
|
21534
21541
|
isEdit: t,
|
|
21535
|
-
fields:
|
|
21542
|
+
fields: Kn,
|
|
21536
21543
|
variables: F ?? [],
|
|
21537
21544
|
title: (k == null ? void 0 : k.name) || "Pre-fill fields",
|
|
21538
21545
|
connectorLogo: (k == null ? void 0 : k.logoUrl) ?? "",
|
|
21539
21546
|
formId: Ft,
|
|
21540
21547
|
customFormArgsEnabled: (k == null ? void 0 : k.hasCustomFields) ?? !1,
|
|
21541
21548
|
customFormArgsMap: (k == null ? void 0 : k.customFieldsArgs) ?? void 0,
|
|
21542
|
-
onSuccess:
|
|
21549
|
+
onSuccess: go,
|
|
21543
21550
|
onClose: () => a == null ? void 0 : a(!1)
|
|
21544
21551
|
}
|
|
21545
21552
|
),
|
|
21546
|
-
|
|
21553
|
+
Ar ? /* @__PURE__ */ l.jsx(
|
|
21547
21554
|
IS,
|
|
21548
21555
|
{
|
|
21549
21556
|
appName: (k == null ? void 0 : k.connectorName) ?? "App",
|
|
@@ -21559,7 +21566,7 @@ const CS = A(N)`
|
|
|
21559
21566
|
setShown: m,
|
|
21560
21567
|
title: XI,
|
|
21561
21568
|
description: YI,
|
|
21562
|
-
buttons:
|
|
21569
|
+
buttons: ho
|
|
21563
21570
|
}
|
|
21564
21571
|
),
|
|
21565
21572
|
$ ? /* @__PURE__ */ l.jsxs(AS, { children: [
|
|
@@ -21572,7 +21579,7 @@ const CS = A(N)`
|
|
|
21572
21579
|
] }) : null,
|
|
21573
21580
|
/* @__PURE__ */ l.jsxs(wg, { spacing: 3, children: [
|
|
21574
21581
|
!t && !$ ? /* @__PURE__ */ l.jsx(
|
|
21575
|
-
|
|
21582
|
+
co,
|
|
21576
21583
|
{
|
|
21577
21584
|
type: "select",
|
|
21578
21585
|
placeholder: G2,
|
|
@@ -21591,15 +21598,15 @@ const CS = A(N)`
|
|
|
21591
21598
|
showGlobalLoader: W === se.LOADING,
|
|
21592
21599
|
formConfig: tt,
|
|
21593
21600
|
selectChangeHandler: wn,
|
|
21594
|
-
inputChangeHandler:
|
|
21601
|
+
inputChangeHandler: wr,
|
|
21595
21602
|
checkboxChangeHandler: nn,
|
|
21596
|
-
dateChangeHandler:
|
|
21603
|
+
dateChangeHandler: Ir,
|
|
21597
21604
|
tableChangeHandler: En,
|
|
21598
|
-
onValidationError:
|
|
21605
|
+
onValidationError: _r,
|
|
21599
21606
|
fieldsSpacing: 3,
|
|
21600
21607
|
labelSpacing: 0.5,
|
|
21601
|
-
fetchConfig:
|
|
21602
|
-
createConfig:
|
|
21608
|
+
fetchConfig: po,
|
|
21609
|
+
createConfig: Sr,
|
|
21603
21610
|
values: O.values,
|
|
21604
21611
|
validations: gt,
|
|
21605
21612
|
...$ ? {
|
|
@@ -21608,9 +21615,9 @@ const CS = A(N)`
|
|
|
21608
21615
|
} : null
|
|
21609
21616
|
}
|
|
21610
21617
|
),
|
|
21611
|
-
|
|
21618
|
+
mo ? /* @__PURE__ */ l.jsx(N, { marginTop: "28px", width: "100%", justifyContent: "center", children: /* @__PURE__ */ l.jsx(De, { variant: "text", startIcon: /* @__PURE__ */ l.jsx(TS, {}), onClick: Fr, size: "small", children: a6 }) }) : null
|
|
21612
21619
|
] }),
|
|
21613
|
-
|
|
21620
|
+
bo ? /* @__PURE__ */ l.jsxs(_S, { children: [
|
|
21614
21621
|
/* @__PURE__ */ l.jsx(X, { variant: "body2", color: P.palette.gray.gray1, children: i_ }),
|
|
21615
21622
|
/* @__PURE__ */ l.jsx(lt, { onClick: () => f(!0), children: /* @__PURE__ */ l.jsx(Qe.Close, { sx: { height: "16px", width: "16px", opacity: "0.8" } }) })
|
|
21616
21623
|
] }) : null,
|
|
@@ -21618,17 +21625,17 @@ const CS = A(N)`
|
|
|
21618
21625
|
/* @__PURE__ */ l.jsx(
|
|
21619
21626
|
De,
|
|
21620
21627
|
{
|
|
21621
|
-
disabled: Pn() ||
|
|
21622
|
-
onClick: t ?
|
|
21628
|
+
disabled: Pn() || tr || !q,
|
|
21629
|
+
onClick: t ? Rr : Or,
|
|
21623
21630
|
size: "small",
|
|
21624
21631
|
...$ ? { style: { order: 2 } } : null,
|
|
21625
21632
|
children: t ? q5 : J5
|
|
21626
21633
|
}
|
|
21627
21634
|
),
|
|
21628
|
-
/* @__PURE__ */ l.jsx(_g, { variant: "outlined", color: "tertiary", size: "small", onClick: o, disabled:
|
|
21635
|
+
/* @__PURE__ */ l.jsx(_g, { variant: "outlined", color: "tertiary", size: "small", onClick: o, disabled: tr, children: xu })
|
|
21629
21636
|
] })
|
|
21630
21637
|
] });
|
|
21631
|
-
return $ &&
|
|
21638
|
+
return $ && Tr ? Xi(xo, Tr) : xo;
|
|
21632
21639
|
}, Cg = (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" })), _S = A(N)`
|
|
21633
21640
|
box-sizing: border-box;
|
|
21634
21641
|
width: 100%;
|
|
@@ -21724,7 +21731,7 @@ const TS = A(Cg)`
|
|
|
21724
21731
|
const x = {
|
|
21725
21732
|
externalResourceId: p
|
|
21726
21733
|
}, y = o === se.LOADING, E = i === se.LOADING, C = () => {
|
|
21727
|
-
!a && u && "value" in u && (f(i5, { object_type: u.label }), n(
|
|
21734
|
+
!a && u && "value" in u && (f(i5, { object_type: u.label }), n(Lo({ id: String(u == null ? void 0 : u.value), args: x })).unwrap().catch((O) => {
|
|
21728
21735
|
(O == null ? void 0 : O.status) === 400 ? Be({ message: Y0, type: dt }) : Be({ message: GI, type: dt });
|
|
21729
21736
|
})), c((O) => !O);
|
|
21730
21737
|
}, w = () => {
|
|
@@ -21753,7 +21760,7 @@ const TS = A(Cg)`
|
|
|
21753
21760
|
return /* @__PURE__ */ l.jsxs(Ig, { children: [
|
|
21754
21761
|
/* @__PURE__ */ l.jsxs(wg, { spacing: 3, children: [
|
|
21755
21762
|
/* @__PURE__ */ l.jsx(
|
|
21756
|
-
|
|
21763
|
+
co,
|
|
21757
21764
|
{
|
|
21758
21765
|
type: "select",
|
|
21759
21766
|
placeholder: G2,
|
|
@@ -21768,7 +21775,7 @@ const TS = A(Cg)`
|
|
|
21768
21775
|
}
|
|
21769
21776
|
),
|
|
21770
21777
|
/* @__PURE__ */ l.jsx(
|
|
21771
|
-
|
|
21778
|
+
co,
|
|
21772
21779
|
{
|
|
21773
21780
|
type: "text",
|
|
21774
21781
|
placeholder: e_,
|
|
@@ -22271,7 +22278,7 @@ const TS = A(Cg)`
|
|
|
22271
22278
|
externalResourceId: e
|
|
22272
22279
|
};
|
|
22273
22280
|
oe(() => {
|
|
22274
|
-
s(
|
|
22281
|
+
s(Lo({ id: t, args: { externalResourceId: e } }));
|
|
22275
22282
|
}, [e, t, s]);
|
|
22276
22283
|
const g = () => {
|
|
22277
22284
|
u(w5, {
|
|
@@ -22385,7 +22392,7 @@ const zl = /* @__PURE__ */ new Set(), AT = (e, t) => {
|
|
|
22385
22392
|
let o = null;
|
|
22386
22393
|
return r != null && r.data && "data" in r.data && (o = r.data.data), o;
|
|
22387
22394
|
} catch (r) {
|
|
22388
|
-
Be({ message:
|
|
22395
|
+
Be({ message: qn, type: dt }), console.error(r);
|
|
22389
22396
|
}
|
|
22390
22397
|
}, LT = (e, t) => xn({
|
|
22391
22398
|
mutationFn: TT,
|
|
@@ -22493,7 +22500,7 @@ const zl = /* @__PURE__ */ new Set(), AT = (e, t) => {
|
|
|
22493
22500
|
/* @__PURE__ */ l.jsx("span", { children: u })
|
|
22494
22501
|
] });
|
|
22495
22502
|
},
|
|
22496
|
-
children: (t.presets ?? []).map((c) => /* @__PURE__ */ l.jsx(
|
|
22503
|
+
children: (t.presets ?? []).map((c) => /* @__PURE__ */ l.jsx(wo, { value: c.hiverParam, sx: { fontSize: "14px" }, children: c.label }, c.hiverParam))
|
|
22497
22504
|
}
|
|
22498
22505
|
),
|
|
22499
22506
|
/* @__PURE__ */ l.jsx(K, { sx: d1 }),
|
|
@@ -22558,7 +22565,7 @@ const zl = /* @__PURE__ */ new Set(), AT = (e, t) => {
|
|
|
22558
22565
|
},
|
|
22559
22566
|
[n]
|
|
22560
22567
|
);
|
|
22561
|
-
return /* @__PURE__ */ l.jsx(
|
|
22568
|
+
return /* @__PURE__ */ l.jsx(br, { shown: t, setShown: v, showCloseButton: !1, children: /* @__PURE__ */ l.jsxs(N, { padding: "24px 20px", gap: "16px", sx: { minWidth: "800px" }, children: [
|
|
22562
22569
|
/* @__PURE__ */ l.jsx(X, { variant: "h2", children: "Customer identity mapping" }),
|
|
22563
22570
|
/* @__PURE__ */ l.jsx(X, { variant: "body2", children: "Choose how Hiver should identify customers when fetching data from connected apps." }),
|
|
22564
22571
|
r.some((m) => {
|
|
@@ -22592,19 +22599,19 @@ const zl = /* @__PURE__ */ new Set(), AT = (e, t) => {
|
|
|
22592
22599
|
}, [n, e]);
|
|
22593
22600
|
}, HT = ({ isAdmin: e = !1 }) => {
|
|
22594
22601
|
var ts, zu;
|
|
22595
|
-
const { email: t, currentSmIds: n, sendTrackingEvent: r, availableFeatures: o, conversationId: i, connectorId: s } = je(et), a = Ot(), { userGroupId: c, userId: u } = ln() || {}, d = he(!1), p = he(null), b = he(null), v = he(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), ge = he(), M = Ie(z2), le = Ie(g_), Fe = Ie(b_), $ = Ie(x_), Ye = Ie(y_), tt = Ie(m_), Le = Ie(q2), Zt = Ie(F_),
|
|
22602
|
+
const { email: t, currentSmIds: n, sendTrackingEvent: r, availableFeatures: o, conversationId: i, connectorId: s } = je(et), a = Ot(), { userGroupId: c, userId: u } = ln() || {}, d = he(!1), p = he(null), b = he(null), v = he(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), ge = he(), M = Ie(z2), le = Ie(g_), Fe = Ie(b_), $ = Ie(x_), Ye = Ie(y_), tt = Ie(m_), Le = Ie(q2), Zt = Ie(F_), Kn = Ie(K2), gt = Ie(Q2), ft = Ie(eg), nt = Ie(sS), wr = bt(o, N5), nn = bt(o, fp), Ir = bt(o, G5), Mn = bt(o, W5), _r = bt(o, U5), Pn = bt(o, Z5), Ft = (ts = ln()) == null ? void 0 : ts.tenantPlatform, St = bt(
|
|
22596
22603
|
o,
|
|
22597
22604
|
Ft === "HIVERWEB" ? `hot-${Dd}` : Dd
|
|
22598
|
-
), { data:
|
|
22605
|
+
), { data: Ar } = Qt({
|
|
22599
22606
|
queryKey: ["connectors", "enabledAuthenticated"],
|
|
22600
22607
|
queryFn: () => ph(),
|
|
22601
22608
|
enabled: St && e
|
|
22602
|
-
}),
|
|
22603
|
-
queryKey: ["lookup", "bulk",
|
|
22604
|
-
queryFn: () => kT(
|
|
22605
|
-
enabled:
|
|
22609
|
+
}), Qn = pe(() => (Ar ?? []).map((ce) => ce.id), [Ar]), { data: zt, isSuccess: fo } = Qt({
|
|
22610
|
+
queryKey: ["lookup", "bulk", Qn.join(",")],
|
|
22611
|
+
queryFn: () => kT(Qn),
|
|
22612
|
+
enabled: Qn.length > 0 && St && e,
|
|
22606
22613
|
refetchOnMount: !1
|
|
22607
|
-
}),
|
|
22614
|
+
}), po = fo && ((zt == null ? void 0 : zt.connectors) ?? []).some((ce) => {
|
|
22608
22615
|
var Oe;
|
|
22609
22616
|
return (((Oe = ce.presets) == null ? void 0 : Oe.length) ?? 0) > 1;
|
|
22610
22617
|
});
|
|
@@ -22613,46 +22620,46 @@ const zl = /* @__PURE__ */ new Set(), AT = (e, t) => {
|
|
|
22613
22620
|
openCreateForm: () => C(!0),
|
|
22614
22621
|
enabled: le
|
|
22615
22622
|
});
|
|
22616
|
-
const
|
|
22617
|
-
if (!
|
|
22623
|
+
const Sr = pe(() => !M || !M.length ? null : p_(M, Fe, $), [M, Fe, $]), kt = u6(Fe), er = Ie(Vu), tr = pe(() => {
|
|
22624
|
+
if (!er) return [];
|
|
22618
22625
|
const ce = /* @__PURE__ */ new Map();
|
|
22619
|
-
return Object.values(
|
|
22626
|
+
return Object.values(er).forEach((Oe) => {
|
|
22620
22627
|
Oe.userAuthEnabled && Oe.connectorId && !ce.has(Oe.connectorId) && ce.set(Oe.connectorId, {
|
|
22621
22628
|
connectorId: Oe.connectorId,
|
|
22622
22629
|
connectorName: Oe.connectorName ?? Oe.name,
|
|
22623
22630
|
connectorLogo: Oe.logoUrl ?? ""
|
|
22624
22631
|
});
|
|
22625
22632
|
}), Array.from(ce.values());
|
|
22626
|
-
}, [
|
|
22627
|
-
(ce) =>
|
|
22633
|
+
}, [er]), Tr = Ie(
|
|
22634
|
+
(ce) => tr.some((Oe) => tA(ce, Oe.connectorId))
|
|
22628
22635
|
), $t = pe(
|
|
22629
22636
|
() => (M ?? []).filter((ce) => ce.userAuthEnabled && ce.connectorId).map((ce) => ce.connectorId),
|
|
22630
22637
|
[M]
|
|
22631
|
-
), { isResolving:
|
|
22638
|
+
), { isResolving: Lr } = sA($t), { data: En, isLoading: wn } = Lg({
|
|
22632
22639
|
senderEmail: t,
|
|
22633
22640
|
conversationId: String(i),
|
|
22634
22641
|
enabled: Mn && !!t
|
|
22635
|
-
}), { emailHeaders:
|
|
22636
|
-
|
|
22642
|
+
}), { emailHeaders: Rr, selectedEmail: Or } = En ?? {}, { scrollOnceAfterLoad: ho, resetScrollState: Fr } = RT(b), go = tt !== se.LOADING && (!$ || !Object.values($).some((ce) => ce === se.LOADING)) && M && M.length > 0;
|
|
22643
|
+
lo(() => {
|
|
22637
22644
|
var ce;
|
|
22638
|
-
U && !f && ee && ((ce = v == null ? void 0 : v.current) != null && ce.scrollHeight) &&
|
|
22645
|
+
U && !f && ee && ((ce = v == null ? void 0 : v.current) != null && ce.scrollHeight) && ho(!!go, "smooth");
|
|
22639
22646
|
}, [
|
|
22640
22647
|
U,
|
|
22641
22648
|
f,
|
|
22642
22649
|
ee,
|
|
22650
|
+
go,
|
|
22643
22651
|
ho,
|
|
22644
|
-
po,
|
|
22645
22652
|
(zu = v == null ? void 0 : v.current) == null ? void 0 : zu.scrollHeight,
|
|
22646
22653
|
u
|
|
22647
22654
|
]);
|
|
22648
|
-
const
|
|
22655
|
+
const mo = (ce, Oe) => {
|
|
22649
22656
|
r(v5, {
|
|
22650
22657
|
search_keyword: ce,
|
|
22651
22658
|
sm_ids: n,
|
|
22652
22659
|
connector_name: Oe,
|
|
22653
22660
|
suggestion_type: nt
|
|
22654
22661
|
});
|
|
22655
|
-
},
|
|
22662
|
+
}, bo = (ce, Oe, Nt) => {
|
|
22656
22663
|
!Array.isArray(Oe) || !Oe.length ? r(y5, {
|
|
22657
22664
|
search_keyword: ce,
|
|
22658
22665
|
sm_ids: n,
|
|
@@ -22666,14 +22673,14 @@ const zl = /* @__PURE__ */ new Set(), AT = (e, t) => {
|
|
|
22666
22673
|
suggestion_type: nt
|
|
22667
22674
|
});
|
|
22668
22675
|
}, {
|
|
22669
|
-
mutate:
|
|
22670
|
-
reset:
|
|
22671
|
-
data:
|
|
22676
|
+
mutate: xo,
|
|
22677
|
+
reset: kr,
|
|
22678
|
+
data: Dr,
|
|
22672
22679
|
isPending: de,
|
|
22673
22680
|
isIdle: _e
|
|
22674
|
-
} = LT(
|
|
22675
|
-
|
|
22676
|
-
}, [
|
|
22681
|
+
} = LT(mo, bo), Je = Se(() => {
|
|
22682
|
+
kr(), j(null);
|
|
22683
|
+
}, [kr, j]), Dt = Nn(), rt = Se(() => {
|
|
22677
22684
|
if (t && n.length && i) {
|
|
22678
22685
|
const ce = a(js({ inboxIds: n, conversationId: i, connectorId: s }));
|
|
22679
22686
|
return () => ce.abort();
|
|
@@ -22693,7 +22700,7 @@ const zl = /* @__PURE__ */ new Set(), AT = (e, t) => {
|
|
|
22693
22700
|
contactEmail: t
|
|
22694
22701
|
})
|
|
22695
22702
|
).unwrap().catch(() => {
|
|
22696
|
-
a(
|
|
22703
|
+
a(Ro(null));
|
|
22697
22704
|
});
|
|
22698
22705
|
},
|
|
22699
22706
|
[a, i, t]
|
|
@@ -22703,8 +22710,8 @@ const zl = /* @__PURE__ */ new Set(), AT = (e, t) => {
|
|
|
22703
22710
|
u && (Q(await Rf(u)), ie(await a3(u)));
|
|
22704
22711
|
})();
|
|
22705
22712
|
}, [u]), oe(() => {
|
|
22706
|
-
wn || H(
|
|
22707
|
-
}, [t,
|
|
22713
|
+
wn || H(Or || t);
|
|
22714
|
+
}, [t, Or, wn]), oe(() => {
|
|
22708
22715
|
G && i && AT(String(i), G);
|
|
22709
22716
|
}, [G, i]), oe(() => {
|
|
22710
22717
|
ee && u && c3(u);
|
|
@@ -22718,13 +22725,13 @@ const zl = /* @__PURE__ */ new Set(), AT = (e, t) => {
|
|
|
22718
22725
|
y(!1), a(s_());
|
|
22719
22726
|
}, [gt, ne, a]), oe(() => {
|
|
22720
22727
|
const ce = rt();
|
|
22721
|
-
return
|
|
22728
|
+
return Fr(), () => {
|
|
22722
22729
|
ce == null || ce(), a(Q0.clearConnectorList());
|
|
22723
22730
|
};
|
|
22724
|
-
}, [a, rt,
|
|
22731
|
+
}, [a, rt, Fr]), oe(() => {
|
|
22725
22732
|
var ce;
|
|
22726
|
-
if (Ye && M && M.length &&
|
|
22727
|
-
const { cards_per_app: Oe, total_empty_cards: Nt, total_cards_with_errors: Vn } =
|
|
22733
|
+
if (Ye && M && M.length && Sr && !d.current) {
|
|
22734
|
+
const { cards_per_app: Oe, total_empty_cards: Nt, total_cards_with_errors: Vn } = Sr, $u = s ? (ce = Oe[0]) == null ? void 0 : ce.app_name : null;
|
|
22728
22735
|
r(Yb, {
|
|
22729
22736
|
numOfCards: M.length,
|
|
22730
22737
|
total_cards_loaded: M.length,
|
|
@@ -22738,7 +22745,7 @@ const zl = /* @__PURE__ */ new Set(), AT = (e, t) => {
|
|
|
22738
22745
|
return () => {
|
|
22739
22746
|
d.current = !1;
|
|
22740
22747
|
};
|
|
22741
|
-
}, [Ye, M,
|
|
22748
|
+
}, [Ye, M, Sr, r, n, s]), oe(() => {
|
|
22742
22749
|
if (i && n && n.length) {
|
|
22743
22750
|
const ce = a(
|
|
22744
22751
|
Rs({
|
|
@@ -22774,7 +22781,7 @@ const zl = /* @__PURE__ */ new Set(), AT = (e, t) => {
|
|
|
22774
22781
|
}
|
|
22775
22782
|
);
|
|
22776
22783
|
Oe && (Z(Oe), C(!0));
|
|
22777
|
-
}, [Le, m]), !t.length || tt === se.LOADING ||
|
|
22784
|
+
}, [Le, m]), !t.length || tt === se.LOADING || Lr)
|
|
22778
22785
|
return /* @__PURE__ */ l.jsx(ZA, {});
|
|
22779
22786
|
const me = (ce) => {
|
|
22780
22787
|
r(e5, {
|
|
@@ -22798,9 +22805,9 @@ const zl = /* @__PURE__ */ new Set(), AT = (e, t) => {
|
|
|
22798
22805
|
ug_id: c
|
|
22799
22806
|
});
|
|
22800
22807
|
}
|
|
22801
|
-
ft ? F(!0) : a(
|
|
22808
|
+
ft ? F(!0) : a(Ro(null));
|
|
22802
22809
|
}, vt = () => {
|
|
22803
|
-
C(!1), a(
|
|
22810
|
+
C(!1), a(Ro(null)), T(void 0), F(!1);
|
|
22804
22811
|
}, ot = () => {
|
|
22805
22812
|
rt(), C(!1), y(!1), a(Q0.clearConnectorList());
|
|
22806
22813
|
}, it = [
|
|
@@ -22814,7 +22821,7 @@ const zl = /* @__PURE__ */ new Set(), AT = (e, t) => {
|
|
|
22814
22821
|
variant: "contained",
|
|
22815
22822
|
action: () => F(!1)
|
|
22816
22823
|
}
|
|
22817
|
-
], It = Le.length > 0, In =
|
|
22824
|
+
], It = Le.length > 0, In = Kn.length > 0, Bn = E || x || w, yt = () => It || In ? /* @__PURE__ */ l.jsx(
|
|
22818
22825
|
NS,
|
|
22819
22826
|
{
|
|
22820
22827
|
haveCreateObjects: It,
|
|
@@ -22822,7 +22829,7 @@ const zl = /* @__PURE__ */ new Set(), AT = (e, t) => {
|
|
|
22822
22829
|
onCreateClick: () => ke(jd.MAIN_BUTTON),
|
|
22823
22830
|
onLinkClick: () => _(!0)
|
|
22824
22831
|
}
|
|
22825
|
-
) : /* @__PURE__ */ l.jsx(i1, { isAdmin: e, hideHeading: !0 }),
|
|
22832
|
+
) : /* @__PURE__ */ l.jsx(i1, { isAdmin: e, hideHeading: !0 }), ri = () => {
|
|
22826
22833
|
q(!0);
|
|
22827
22834
|
const ce = ge.current, Oe = ce == null ? void 0 : ce.connectorName, Nt = ce == null ? void 0 : ce.name;
|
|
22828
22835
|
r(F5, { entry_point: "agent", app_name: Oe, object_type: Nt });
|
|
@@ -22849,7 +22856,7 @@ const zl = /* @__PURE__ */ new Set(), AT = (e, t) => {
|
|
|
22849
22856
|
}
|
|
22850
22857
|
),
|
|
22851
22858
|
/* @__PURE__ */ l.jsx(W6, { onWheel: () => g(!0), ref: v, children: le ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
22852
|
-
!
|
|
22859
|
+
!Tr && /* @__PURE__ */ l.jsx(
|
|
22853
22860
|
E9,
|
|
22854
22861
|
{
|
|
22855
22862
|
connectors: kt,
|
|
@@ -22861,22 +22868,22 @@ const zl = /* @__PURE__ */ new Set(), AT = (e, t) => {
|
|
|
22861
22868
|
handleLinkNewObject: Re
|
|
22862
22869
|
}
|
|
22863
22870
|
),
|
|
22864
|
-
|
|
22871
|
+
Ir && !Bn ? /* @__PURE__ */ l.jsx(
|
|
22865
22872
|
gT,
|
|
22866
22873
|
{
|
|
22867
22874
|
selectedObject: O,
|
|
22868
22875
|
setSelectedObject: j,
|
|
22869
|
-
fetchSearchResults:
|
|
22876
|
+
fetchSearchResults: xo,
|
|
22870
22877
|
onReset: Je,
|
|
22871
22878
|
root: p.current
|
|
22872
22879
|
}
|
|
22873
22880
|
) : null,
|
|
22874
|
-
/* @__PURE__ */ l.jsxs(
|
|
22875
|
-
/* @__PURE__ */ l.jsx(Wn, { condition:
|
|
22876
|
-
/* @__PURE__ */ l.jsx(Wn, { condition:
|
|
22881
|
+
/* @__PURE__ */ l.jsxs(qo, { children: [
|
|
22882
|
+
/* @__PURE__ */ l.jsx(Wn, { condition: Ir && de, children: /* @__PURE__ */ l.jsx(_T, {}) }, "search"),
|
|
22883
|
+
/* @__PURE__ */ l.jsx(Wn, { condition: Ir && !!O && !_e, children: /* @__PURE__ */ l.jsx(
|
|
22877
22884
|
IT,
|
|
22878
22885
|
{
|
|
22879
|
-
searchResults:
|
|
22886
|
+
searchResults: Dr ?? [],
|
|
22880
22887
|
selectedObject: O,
|
|
22881
22888
|
onReset: Je,
|
|
22882
22889
|
fetchCards: rt
|
|
@@ -22894,7 +22901,7 @@ const zl = /* @__PURE__ */ new Set(), AT = (e, t) => {
|
|
|
22894
22901
|
conversationId: i,
|
|
22895
22902
|
inboxIds: n,
|
|
22896
22903
|
enabled: E && !!re && !!e,
|
|
22897
|
-
setMapFormOpen:
|
|
22904
|
+
setMapFormOpen: ri
|
|
22898
22905
|
}
|
|
22899
22906
|
),
|
|
22900
22907
|
children: /* @__PURE__ */ l.jsx(
|
|
@@ -22935,18 +22942,18 @@ const zl = /* @__PURE__ */ new Set(), AT = (e, t) => {
|
|
|
22935
22942
|
) }, "edit-form"),
|
|
22936
22943
|
/* @__PURE__ */ l.jsx(Wn, { condition: w, children: /* @__PURE__ */ l.jsx(Ac, { onClose: () => _(!1), children: /* @__PURE__ */ l.jsx(LS, { setOpenTaskLinking: _, onLinkingSuccess: rt }) }) }, "link-form"),
|
|
22937
22944
|
/* @__PURE__ */ l.jsxs(Wn, { fallback: !0, children: [
|
|
22938
|
-
Mn && (M != null && M.length) && !
|
|
22945
|
+
Mn && (M != null && M.length) && !Tr ? /* @__PURE__ */ l.jsxs(N, { direction: "row", alignItems: "center", gap: "8px", children: [
|
|
22939
22946
|
/* @__PURE__ */ l.jsx(N, { sx: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ l.jsx(
|
|
22940
22947
|
tS,
|
|
22941
22948
|
{
|
|
22942
|
-
emailHeaders:
|
|
22949
|
+
emailHeaders: Rr,
|
|
22943
22950
|
selectedEmail: G,
|
|
22944
22951
|
root: p.current,
|
|
22945
22952
|
isLoading: wn,
|
|
22946
22953
|
setSelectedEmail: H
|
|
22947
22954
|
}
|
|
22948
22955
|
) }),
|
|
22949
|
-
St &&
|
|
22956
|
+
St && po && e && /* @__PURE__ */ l.jsx(we, { title: "Update customer identity mapping", placement: "top", children: /* @__PURE__ */ l.jsx(
|
|
22950
22957
|
lt,
|
|
22951
22958
|
{
|
|
22952
22959
|
"aria-label": "Open customer identity mapping settings",
|
|
@@ -22958,7 +22965,7 @@ const zl = /* @__PURE__ */ new Set(), AT = (e, t) => {
|
|
|
22958
22965
|
}
|
|
22959
22966
|
) })
|
|
22960
22967
|
] }) : null,
|
|
22961
|
-
!Mn && St &&
|
|
22968
|
+
!Mn && St && po && e && (M != null && M.length) ? /* @__PURE__ */ l.jsx(
|
|
22962
22969
|
De,
|
|
22963
22970
|
{
|
|
22964
22971
|
fullWidth: !0,
|
|
@@ -22986,8 +22993,8 @@ const zl = /* @__PURE__ */ new Set(), AT = (e, t) => {
|
|
|
22986
22993
|
children: "Customer identity mapping"
|
|
22987
22994
|
}
|
|
22988
22995
|
) : null,
|
|
22989
|
-
|
|
22990
|
-
/* @__PURE__ */ l.jsxs(
|
|
22996
|
+
wr ? /* @__PURE__ */ l.jsx(zA, {}) : null,
|
|
22997
|
+
/* @__PURE__ */ l.jsxs(qo, { children: [
|
|
22991
22998
|
/* @__PURE__ */ l.jsxs(Wn, { condition: !!M && M.length > 0, children: [
|
|
22992
22999
|
/* @__PURE__ */ l.jsx(
|
|
22993
23000
|
gA,
|
|
@@ -22999,9 +23006,9 @@ const zl = /* @__PURE__ */ new Set(), AT = (e, t) => {
|
|
|
22999
23006
|
onCardUnlinking: rt
|
|
23000
23007
|
}
|
|
23001
23008
|
),
|
|
23002
|
-
/* @__PURE__ */ l.jsx("div", { ref: b, children:
|
|
23009
|
+
/* @__PURE__ */ l.jsx("div", { ref: b, children: _r ? /* @__PURE__ */ l.jsx(E6, { connectors: kt, expanded: U }) : null })
|
|
23003
23010
|
] }, "cards-list"),
|
|
23004
|
-
/* @__PURE__ */ l.jsx(Wn, { condition: !(M != null && M.length) && nn, children:
|
|
23011
|
+
/* @__PURE__ */ l.jsx(Wn, { condition: !(M != null && M.length) && nn, children: tr.length > 0 ? /* @__PURE__ */ l.jsx(bA, { connectors: tr, onConnected: z, children: yt() }) : yt() }, "create-banner")
|
|
23005
23012
|
] })
|
|
23006
23013
|
] }, "cards")
|
|
23007
23014
|
] })
|
|
@@ -23449,7 +23456,7 @@ const QT = "Everything looks good", eL = "Something is not working", tL = "Share
|
|
|
23449
23456
|
}
|
|
23450
23457
|
) }) : null,
|
|
23451
23458
|
/* @__PURE__ */ l.jsx(
|
|
23452
|
-
|
|
23459
|
+
co,
|
|
23453
23460
|
{
|
|
23454
23461
|
type: "text",
|
|
23455
23462
|
placeholder: r ? lL : uL,
|
|
@@ -23548,7 +23555,7 @@ const QT = "Everything looks good", eL = "Something is not working", tL = "Share
|
|
|
23548
23555
|
width: 100%;
|
|
23549
23556
|
min-height: 40px;
|
|
23550
23557
|
background-color: ${P.palette.gray.gray6a};
|
|
23551
|
-
`,
|
|
23558
|
+
`, gi = A(we)`
|
|
23552
23559
|
padding: 6px;
|
|
23553
23560
|
border-radius: 6px;
|
|
23554
23561
|
`, _L = A(De)`
|
|
@@ -23673,18 +23680,18 @@ const QT = "Everything looks good", eL = "Something is not working", tL = "Share
|
|
|
23673
23680
|
] }, U)) })
|
|
23674
23681
|
] }),
|
|
23675
23682
|
/* @__PURE__ */ l.jsxs(IL, { children: [
|
|
23676
|
-
/* @__PURE__ */ l.jsx(N, { flexDirection: "row", alignItems: "center", children: t ? /* @__PURE__ */ l.jsx(
|
|
23683
|
+
/* @__PURE__ */ l.jsx(N, { flexDirection: "row", alignItems: "center", children: t ? /* @__PURE__ */ l.jsx(gi, { arrow: !0, title: nL, placement: "top", children: /* @__PURE__ */ l.jsx(lt, { onClick: G, children: /* @__PURE__ */ l.jsx(AL, {}) }) }) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
23677
23684
|
/* @__PURE__ */ l.jsx(X, { color: P.palette.gray.gray3, fontSize: 12, children: iL }),
|
|
23678
|
-
/* @__PURE__ */ l.jsx(
|
|
23685
|
+
/* @__PURE__ */ l.jsx(gi, { arrow: !0, title: rL, placement: "top", children: /* @__PURE__ */ l.jsx(lt, { size: "small", children: /* @__PURE__ */ l.jsx(TL, {}) }) })
|
|
23679
23686
|
] }) }),
|
|
23680
23687
|
/* @__PURE__ */ l.jsxs(N, { flexDirection: "row", alignItems: "center", children: [
|
|
23681
|
-
/* @__PURE__ */ l.jsx(
|
|
23682
|
-
/* @__PURE__ */ l.jsx(
|
|
23683
|
-
/* @__PURE__ */ l.jsx(
|
|
23688
|
+
/* @__PURE__ */ l.jsx(gi, { arrow: !0, title: QT, placement: "top", children: /* @__PURE__ */ l.jsx(lt, { size: "small", disabled: g, onClick: O, children: /* @__PURE__ */ l.jsx(Dg, {}) }) }),
|
|
23689
|
+
/* @__PURE__ */ l.jsx(gi, { arrow: !0, title: eL, placement: "top", children: /* @__PURE__ */ l.jsx(lt, { size: "small", disabled: g, onClick: D, children: /* @__PURE__ */ l.jsx(Ng, {}) }) }),
|
|
23690
|
+
/* @__PURE__ */ l.jsx(gi, { arrow: !0, title: tL, placement: "top", children: /* @__PURE__ */ l.jsx(lt, { onClick: T, size: "small", disabled: g, children: /* @__PURE__ */ l.jsx(SL, {}) }) })
|
|
23684
23691
|
] })
|
|
23685
23692
|
] })
|
|
23686
23693
|
] }),
|
|
23687
|
-
/* @__PURE__ */ l.jsx(
|
|
23694
|
+
/* @__PURE__ */ l.jsx(br, { shown: u, setShown: d, borderRadius: 12, sx: { zIndex: 15002 }, children: /* @__PURE__ */ l.jsx(
|
|
23688
23695
|
f1,
|
|
23689
23696
|
{
|
|
23690
23697
|
onCancel: () => d(!1),
|
|
@@ -23694,7 +23701,7 @@ const QT = "Everything looks good", eL = "Something is not working", tL = "Share
|
|
|
23694
23701
|
title: aL
|
|
23695
23702
|
}
|
|
23696
23703
|
) }),
|
|
23697
|
-
/* @__PURE__ */ l.jsx(
|
|
23704
|
+
/* @__PURE__ */ l.jsx(br, { shown: b, setShown: v, borderRadius: 12, sx: { zIndex: 15002 }, children: /* @__PURE__ */ l.jsx(
|
|
23698
23705
|
f1,
|
|
23699
23706
|
{
|
|
23700
23707
|
onCancel: () => v(!1),
|
|
@@ -23708,7 +23715,7 @@ const QT = "Everything looks good", eL = "Something is not working", tL = "Share
|
|
|
23708
23715
|
const r = e.getBoundingClientRect(), o = window.innerHeight, i = window.innerWidth, s = r.top, a = o - r.bottom;
|
|
23709
23716
|
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";
|
|
23710
23717
|
}, RL = A(({ className: e, ...t }) => /* @__PURE__ */ l.jsx(we, { ...t, classes: { popper: e } }))(() => ({
|
|
23711
|
-
[`& .${
|
|
23718
|
+
[`& .${to.tooltip}`]: {
|
|
23712
23719
|
backgroundColor: "#fff",
|
|
23713
23720
|
padding: 0,
|
|
23714
23721
|
maxWidth: "288px",
|
|
@@ -23745,7 +23752,7 @@ function OL({ elements: e, title: t, onKeyChange: n }) {
|
|
|
23745
23752
|
break;
|
|
23746
23753
|
}
|
|
23747
23754
|
if (!F) {
|
|
23748
|
-
const O = document.querySelector(`.${
|
|
23755
|
+
const O = document.querySelector(`.${to.tooltip}`);
|
|
23749
23756
|
O && p1(T, D, O.getBoundingClientRect()) && (F = !0);
|
|
23750
23757
|
}
|
|
23751
23758
|
F || (o(!1), s(null));
|
|
@@ -23976,7 +23983,7 @@ const NL = (e) => {
|
|
|
23976
23983
|
[ve.ERROR]: "Syncing failed",
|
|
23977
23984
|
[ve.UNAUTHENTICATED]: "Sync conversation"
|
|
23978
23985
|
}, un = Xl({}), zL = A(({ className: e, ...t }) => /* @__PURE__ */ l.jsx(we, { ...t, classes: { popper: e } }))(() => ({
|
|
23979
|
-
[`& .${
|
|
23986
|
+
[`& .${to.tooltip}`]: {
|
|
23980
23987
|
backgroundColor: "#fff",
|
|
23981
23988
|
padding: 0,
|
|
23982
23989
|
maxWidth: "288px",
|
|
@@ -24194,7 +24201,7 @@ const NL = (e) => {
|
|
|
24194
24201
|
}, maskUnits: "userSpaceOnUse", x: 46, y: 14, width: 60, height: 79 }, /* @__PURE__ */ S.createElement("path", { d: "M47.223 43.6373C44.4928 30.7926 52.6922 18.1666 65.5368 15.4364C78.3815 12.7062 91.0075 20.9055 93.7377 33.7502L105.079 87.1053L84.1844 91.5466C70.0346 94.5542 56.1258 85.5217 53.1182 71.3719L47.223 43.6373Z", fill: "white" })), /* @__PURE__ */ S.createElement("g", { mask: "url(#mask0_8481_102191)" }, /* @__PURE__ */ S.createElement("ellipse", { cx: 63.7775, cy: 46.8684, rx: 1.48152, ry: 1.39438, transform: "rotate(-12 63.7775 46.8684)", fill: "#435C71" }), /* @__PURE__ */ S.createElement("rect", { x: 47.4368, y: 59.3203, width: 53.657, height: 13.2235, transform: "rotate(-12 47.4368 59.3203)", fill: "url(#paint2_linear_8481_102191)" }), /* @__PURE__ */ S.createElement("rect", { x: 51.1907, y: 76.9824, width: 53.657, height: 10.4263, transform: "rotate(-12 51.1907 76.9824)", fill: "url(#paint3_linear_8481_102191)" })), /* @__PURE__ */ S.createElement("path", { opacity: 0.883952, d: "M113.939 51.0679C114.775 55 112.265 58.865 108.333 59.7008L107.842 59.8052C103.639 60.6986 99.5073 58.0155 98.6139 53.8123L97.205 47.1837L105.307 45.4616C109.239 44.6259 113.104 47.1359 113.939 51.0679Z", fill: "url(#paint4_linear_8481_102191)" }), /* @__PURE__ */ S.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M68.7215 66.4138C67.1801 64.8725 67.6745 62.2062 69.587 61.1603C72.4457 59.5969 76.2861 57.1773 79.3785 54.0849C82.4099 51.0535 84.752 47.3461 86.2775 44.5465C87.3388 42.5989 90.0598 42.0819 91.6282 43.6503C92.4782 44.5003 92.758 45.7623 92.2604 46.8566C91.0829 49.4466 88.5191 54.344 84.4346 58.4285C80.2853 62.5778 74.8639 65.591 72.0553 66.9952C70.9363 67.5548 69.6062 67.2985 68.7215 66.4138Z", fill: "url(#paint5_linear_8481_102191)" }), /* @__PURE__ */ S.createElement("rect", { x: 48.7264, y: 33.7744, width: 11.2108, height: 11.2108, rx: 5.59457, transform: "rotate(-12 48.7264 33.7744)", fill: "url(#paint6_linear_8481_102191)" }), /* @__PURE__ */ S.createElement("rect", { x: 50.0175, y: 35.8193, width: 4.0158, height: 3.84848, rx: 1.92424, transform: "rotate(-12 50.0175 35.8193)", fill: "#435C71" }), /* @__PURE__ */ S.createElement("rect", { x: 59.2875, y: 31.5723, width: 11.2108, height: 11.2108, rx: 5.59457, transform: "rotate(-12 59.2875 31.5723)", fill: "#FFFEFE" }), /* @__PURE__ */ S.createElement("path", { opacity: 0.883952, d: "M111.25 38.5376C110.415 34.6055 106.55 32.0955 102.618 32.9313L102.127 33.0356C97.9234 33.9291 95.2403 38.0607 96.1337 42.2639L97.5426 48.8925L105.644 47.1705C109.576 46.3347 112.086 42.4696 111.25 38.5376Z", fill: "url(#paint7_linear_8481_102191)" }), /* @__PURE__ */ S.createElement("rect", { x: 60.0181, y: 33.8037, width: 3.84848, height: 3.84848, rx: 1.90724, transform: "rotate(-12 60.0181 33.8037)", fill: "#435C71" }), /* @__PURE__ */ S.createElement("path", { d: "M36.9246 59.1604C36.4487 60.717 34.7371 61.6271 33.1805 61.1512C32.3613 60.9007 31.7241 60.3475 31.3259 59.5987L25.2059 46.7983C24.9784 46.3703 25.1286 45.8788 25.5566 45.6513L28.338 44.1724C28.7659 43.9449 29.2574 44.0951 29.4849 44.5231L36.6496 56.8367C37.0728 57.5036 37.15 58.423 36.9246 59.1604Z", fill: "#FFDF9F" }), /* @__PURE__ */ S.createElement("rect", { x: 27.9973, y: 44.333, width: 2.39869, height: 3.59807, transform: "rotate(152 27.9973 44.333)", fill: "#FF9090" }), /* @__PURE__ */ S.createElement("path", { d: "M26.6628 44.3769L26.9472 44.9118L28.0169 44.343L26.3106 41.1338L24.171 42.2714L25.0243 43.876C25.6661 43.5347 26.3215 43.7351 26.6628 44.3769Z", fill: "#FFB19F" }), /* @__PURE__ */ S.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.26386 27.248C9.3428 20.4481 16.5101 16.6372 23.31 18.7161C30.11 20.7951 33.9209 27.9624 31.8419 34.7623C29.763 41.5622 22.5956 45.3731 15.7958 43.2942C8.99587 41.2152 5.18493 34.0479 7.26386 27.248ZM9.72157 27.9983C8.06843 33.4055 11.1399 39.1821 16.5471 40.8352C21.9543 42.4884 27.7309 39.4168 29.384 34.0096C31.0372 28.6024 27.9657 22.8258 22.5585 21.1727C17.1513 19.5196 11.3747 22.5911 9.72157 27.9983Z", fill: "#FFE69F" }), /* @__PURE__ */ S.createElement("circle", { opacity: 0.414016, cx: 19.5529, cy: 31.0039, r: 10.2804, transform: "rotate(17 19.5529 31.0039)", fill: "#BBDEFC" }), /* @__PURE__ */ S.createElement("path", { d: "M14.3685 30.6746C15.7299 27.6867 18.9391 25.9803 22.1776 26.5225L22.2595 26.5475C23.7024 26.8095 24.3854 24.8682 23.1497 24.2218C22.3806 23.8074 21.5613 23.557 20.717 23.3884C17.3715 22.9031 14.0553 24.6664 12.6939 27.6543C12.2796 28.4235 12.0859 29.3497 12.0244 30.1372C11.8444 31.6051 13.8607 32.0424 14.4503 30.6997C14.3434 30.7566 14.3685 30.6746 14.3685 30.6746Z", fill: "#F6FBFF" }), /* @__PURE__ */ S.createElement("path", { d: "M10.2904 29.0679C11.9436 23.6607 17.7202 20.5893 23.1274 22.2424C25.6671 23.0189 27.5785 24.6783 28.9301 26.704C27.7539 24.1048 25.508 22.0744 22.5586 21.1727C17.1514 19.5196 11.3748 22.591 9.72165 27.9982C8.81993 30.9476 9.32924 33.97 10.7444 36.3735C9.82081 34.1203 9.51395 31.6077 10.2904 29.0679Z", fill: "#ADCBE7" }), /* @__PURE__ */ S.createElement("path", { opacity: 0.406087, d: "M36.4864 56.8021L36.1373 56.2691C36.3845 56.8563 36.428 57.5516 36.2372 58.1754C35.9273 59.189 34.5593 59.1971 34.0713 58.2806L28.3787 47.5877C28.0534 46.9767 27.3508 46.7619 26.7395 47.0866L25.7206 47.6277L31.4395 59.3516C31.7648 59.9627 32.27 60.5434 32.8706 60.8123C33.7054 61.1528 34.6593 61.1034 35.3726 60.7247C36.0858 60.3459 36.6602 59.5837 36.8444 58.7021C37.0351 58.0783 36.8117 57.4132 36.4864 56.8021Z", fill: "white" }), /* @__PURE__ */ S.createElement("path", { d: "M29.8826 48.4977C29.8006 48.4726 29.6368 48.4225 29.5799 48.3155L28.1579 45.6411C28.0442 45.4272 28.1193 45.1814 28.3332 45.0677C28.5472 44.9539 28.7929 45.0291 28.9067 45.243L30.3287 47.9174C30.4424 48.1313 30.3673 48.3771 30.1534 48.4908C30.1284 48.5728 29.9645 48.5227 29.8826 48.4977Z", fill: "#FFF5EB" }), /* @__PURE__ */ S.createElement("ellipse", { cx: 29.2637, cy: 54.631, rx: 1.50593, ry: 3.17918, transform: "rotate(-23 29.2637 54.631)", fill: "#FFC478" }), /* @__PURE__ */ S.createElement("ellipse", { cx: 34.0592, cy: 52.4078, rx: 0.920288, ry: 1.67325, transform: "rotate(106 34.0592 52.4078)", fill: "#FFC478" }), /* @__PURE__ */ S.createElement("path", { d: "M89.1282 19.2055L68.2257 26.8725L45.9197 28.3898L44.4929 16.4082C44.3371 13.798 47.5283 11.4502 50.9859 11.6309L65.1429 12.369L67.3969 12.4869C68.5309 12.5463 69.7066 12.3289 70.7522 11.8627L78.6899 8.34726C81.725 6.99992 85.3012 7.87475 86.2125 10.1876L89.1282 19.2055Z", fill: "url(#paint8_linear_8481_102191)" }), /* @__PURE__ */ S.createElement("path", { opacity: 0.479771, d: "M88.6262 19.0953L68.3101 26.5288L65.3314 12.5149L67.5211 12.6263C68.6228 12.6824 69.7652 12.471 70.7816 12.0192L78.4972 8.61266C81.4474 7.30707 84.9208 8.14856 85.8036 10.3829L88.6262 19.0953Z", fill: "#ADCBE7" }), /* @__PURE__ */ S.createElement("path", { d: "M91.6332 26.6212L46.9517 36.1186L46.0387 28.4438L89.2535 19.2582L91.6332 26.6212Z", fill: "#717DAD" }), /* @__PURE__ */ S.createElement("path", { d: "M102.961 24.2033C103.125 24.9722 102.371 25.7829 101.278 26.015L37.9675 39.4722C36.8754 39.7043 35.8568 39.2704 35.6933 38.5015C35.5301 37.7336 36.284 36.922 37.3761 36.6898L100.687 23.2327C101.779 23.0005 102.798 23.4354 102.961 24.2033Z", fill: "#9ED1FF" }), /* @__PURE__ */ S.createElement("path", { d: "M102.703 24.1718C102.838 24.805 102.067 25.5045 100.983 25.7349L69.5583 32.4144L69.0712 30.123L100.496 23.4436C101.58 23.2131 102.569 23.5394 102.703 24.1718Z", fill: "#78AFE1" }), /* @__PURE__ */ S.createElement("defs", null, /* @__PURE__ */ S.createElement("linearGradient", { id: "paint0_linear_8481_102191", x1: 32.2665, y1: 59.6553, x2: 59.0518, y2: 60.5906, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ S.createElement("stop", { stopColor: "#FFFDE0" }), /* @__PURE__ */ S.createElement("stop", { offset: 1, stopColor: "#FFB362" })), /* @__PURE__ */ S.createElement("linearGradient", { id: "paint1_linear_8481_102191", x1: 67.3434, y1: 85.966, x2: 103.216, y2: 78.3411, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ S.createElement("stop", { stopColor: "#FFFABC" }), /* @__PURE__ */ S.createElement("stop", { offset: 1, stopColor: "#FFA650" })), /* @__PURE__ */ S.createElement("linearGradient", { id: "paint2_linear_8481_102191", x1: 51.4347, y1: 74.8197, x2: 91.1539, y2: 74.8197, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ S.createElement("stop", { stopColor: "#A3C1FF" }), /* @__PURE__ */ S.createElement("stop", { offset: 1, stopColor: "#4243FF" })), /* @__PURE__ */ S.createElement("linearGradient", { id: "paint3_linear_8481_102191", x1: 55.1887, y1: 89.2031, x2: 94.9078, y2: 89.2031, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ S.createElement("stop", { stopColor: "#A3C1FF" }), /* @__PURE__ */ S.createElement("stop", { offset: 1, stopColor: "#4243FF" })), /* @__PURE__ */ S.createElement("linearGradient", { id: "paint4_linear_8481_102191", x1: 94.5023, y1: 53.1799, x2: 106.762, y2: 58.7056, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ S.createElement("stop", { stopColor: "#FF9498" }), /* @__PURE__ */ S.createElement("stop", { offset: 1, stopColor: "#FFD671" })), /* @__PURE__ */ S.createElement("linearGradient", { id: "paint5_linear_8481_102191", x1: 74.9906, y1: 66.9871, x2: 94.9778, y2: 46.9999, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ S.createElement("stop", { stopColor: "#FFFDE0" }), /* @__PURE__ */ S.createElement("stop", { offset: 1, stopColor: "#FFB362" })), /* @__PURE__ */ S.createElement("linearGradient", { id: "paint6_linear_8481_102191", x1: 50.5805, y1: 44.0581, x2: 59.9372, y2: 44.0581, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ S.createElement("stop", { stopColor: "white" }), /* @__PURE__ */ S.createElement("stop", { offset: 1, stopColor: "#E3EEF3" })), /* @__PURE__ */ S.createElement("linearGradient", { id: "paint7_linear_8481_102191", x1: 88.4187, y1: 43.3906, x2: 99.3981, y2: 25.1833, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ S.createElement("stop", { stopColor: "#FF9498" }), /* @__PURE__ */ S.createElement("stop", { offset: 1, stopColor: "#FFD671" })), /* @__PURE__ */ S.createElement("linearGradient", { id: "paint8_linear_8481_102191", x1: 56.4985, y1: 29.5482, x2: 100.532, y2: 20.1885, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ S.createElement("stop", { stopColor: "#ECF7FF" }), /* @__PURE__ */ S.createElement("stop", { offset: 1, stopColor: "#C2E0FF" })))), Uu = ({ message: e }) => /* @__PURE__ */ l.jsxs(N, { justifyContent: "center", alignItems: "center", height: "100%", "data-section": "empty", children: [
|
|
24195
24202
|
/* @__PURE__ */ l.jsx(DR, { width: 124, height: 107, className: "empty-illustration" }),
|
|
24196
24203
|
/* @__PURE__ */ l.jsx(X, { variant: "body2", color: P.palette.gray.gray3, children: e })
|
|
24197
|
-
] }),
|
|
24204
|
+
] }), Er = "/v1/api", NR = `${Er}/connector/conversation/:conversationId/email_log_status`, jR = `${Er}/connector/conversation/:conversationId/entity_recommendations`, MR = `${Er}/connector/conversation/:conversationId/retry_emails_log`, PR = `${Er}/connector/conversation/:conversationId/validate_entity`, BR = `${Er}/connectors/forms/:formId/search`, VR = `${Er}/connector/conversation/:conversationId/log_emails`, GR = `${Er}/connector/feedback/conversation/:conversationId`, HR = `${Er}/connector/conversation/:conversationId/log_emails`, WR = async ({
|
|
24198
24205
|
payload: e,
|
|
24199
24206
|
entity: t,
|
|
24200
24207
|
conversationId: n
|
|
@@ -24532,7 +24539,7 @@ const qR = A(N)`
|
|
|
24532
24539
|
});
|
|
24533
24540
|
return n == null ? void 0 : n.data;
|
|
24534
24541
|
} catch (n) {
|
|
24535
|
-
throw Be({ message:
|
|
24542
|
+
throw Be({ message: qn, type: dt }), console.error(n), n;
|
|
24536
24543
|
}
|
|
24537
24544
|
}, mO = ({ onSuccess: e }) => xn({
|
|
24538
24545
|
mutationFn: gO,
|
|
@@ -24651,7 +24658,7 @@ const qR = A(N)`
|
|
|
24651
24658
|
}
|
|
24652
24659
|
) }) : null,
|
|
24653
24660
|
/* @__PURE__ */ l.jsx(
|
|
24654
|
-
|
|
24661
|
+
co,
|
|
24655
24662
|
{
|
|
24656
24663
|
type: "text",
|
|
24657
24664
|
placeholder: a,
|
|
@@ -24777,7 +24784,7 @@ const AO = A(N)`
|
|
|
24777
24784
|
}
|
|
24778
24785
|
) })
|
|
24779
24786
|
] }),
|
|
24780
|
-
/* @__PURE__ */ l.jsx(
|
|
24787
|
+
/* @__PURE__ */ l.jsx(br, { shown: n, setShown: r, borderRadius: 12, sx: { zIndex: 15002 }, children: /* @__PURE__ */ l.jsx(
|
|
24781
24788
|
wO,
|
|
24782
24789
|
{
|
|
24783
24790
|
onCancel: () => r(!1),
|
|
@@ -24831,7 +24838,7 @@ const AO = A(N)`
|
|
|
24831
24838
|
formId: e
|
|
24832
24839
|
};
|
|
24833
24840
|
} catch (r) {
|
|
24834
|
-
throw Be({ message:
|
|
24841
|
+
throw Be({ message: qn, type: dt }), console.error(r), r;
|
|
24835
24842
|
}
|
|
24836
24843
|
}, kO = ({ onSuccess: e }) => xn({
|
|
24837
24844
|
mutationFn: FO,
|
|
@@ -24847,7 +24854,7 @@ const AO = A(N)`
|
|
|
24847
24854
|
});
|
|
24848
24855
|
return n == null ? void 0 : n.data;
|
|
24849
24856
|
} catch (n) {
|
|
24850
|
-
throw Be({ message:
|
|
24857
|
+
throw Be({ message: qn, type: dt }), console.error(n), n;
|
|
24851
24858
|
}
|
|
24852
24859
|
}, NO = ({ onSuccess: e }) => xn({
|
|
24853
24860
|
mutationFn: DO,
|
|
@@ -24954,7 +24961,7 @@ const AO = A(N)`
|
|
|
24954
24961
|
height: 14px;
|
|
24955
24962
|
fill: #4d596c;
|
|
24956
24963
|
animation: ${$a} 1s linear infinite;
|
|
24957
|
-
`,
|
|
24964
|
+
`, Pr = qo.CaseView, Bg = ({ emailLogStatus: e, close: t }) => {
|
|
24958
24965
|
const { emailLogSettings: n, autoLogEnabled: r, selectedEntities: o, formList: i } = e, { connectorName: s, connectorId: a, logoUrl: c } = n ?? {}, u = (o == null ? void 0 : o.length) > 0, [d, p] = V(""), [b, v] = V([]), [m, h] = V({}), { conversationId: f, connectorFunctions: g, tenant: x } = je(un), y = g == null ? void 0 : g.sendTrackingEvent, {
|
|
24959
24966
|
data: E,
|
|
24960
24967
|
isError: C,
|
|
@@ -25022,12 +25029,12 @@ const AO = A(N)`
|
|
|
25022
25029
|
) : null
|
|
25023
25030
|
] })
|
|
25024
25031
|
] }),
|
|
25025
|
-
/* @__PURE__ */ l.jsx(HO, { children: /* @__PURE__ */ l.jsxs(
|
|
25026
|
-
/* @__PURE__ */ l.jsxs(
|
|
25032
|
+
/* @__PURE__ */ l.jsx(HO, { children: /* @__PURE__ */ l.jsxs(qo, { children: [
|
|
25033
|
+
/* @__PURE__ */ l.jsxs(Pr, { condition: u, children: [
|
|
25027
25034
|
/* @__PURE__ */ l.jsx(I1, { children: /* @__PURE__ */ l.jsx(_1, { "data-section": "scrollable", children: /* @__PURE__ */ l.jsx(C1, { connectorName: s, entities: o, disabled: !0 }) }) }),
|
|
25028
25035
|
/* @__PURE__ */ l.jsx(TO, {})
|
|
25029
25036
|
] }, "disabled-view"),
|
|
25030
|
-
/* @__PURE__ */ l.jsxs(
|
|
25037
|
+
/* @__PURE__ */ l.jsxs(Pr, { fallback: !0, children: [
|
|
25031
25038
|
/* @__PURE__ */ l.jsx(WO, { "data-section": "searchbox", children: /* @__PURE__ */ l.jsx(
|
|
25032
25039
|
UO,
|
|
25033
25040
|
{
|
|
@@ -25040,9 +25047,9 @@ const AO = A(N)`
|
|
|
25040
25047
|
size: "small"
|
|
25041
25048
|
}
|
|
25042
25049
|
) }),
|
|
25043
|
-
/* @__PURE__ */ l.jsx(I1, { children: /* @__PURE__ */ l.jsx(_1, { "data-section": "scrollable", children: /* @__PURE__ */ l.jsxs(
|
|
25044
|
-
/* @__PURE__ */ l.jsx(
|
|
25045
|
-
/* @__PURE__ */ l.jsx(
|
|
25050
|
+
/* @__PURE__ */ l.jsx(I1, { children: /* @__PURE__ */ l.jsx(_1, { "data-section": "scrollable", children: /* @__PURE__ */ l.jsxs(qo, { children: [
|
|
25051
|
+
/* @__PURE__ */ l.jsx(Pr, { condition: q, children: /* @__PURE__ */ l.jsx(fO, { message: F ? "Searching..." : "Loading..." }) }, "loading"),
|
|
25052
|
+
/* @__PURE__ */ l.jsx(Pr, { condition: d === "" && U.length > 0, children: /* @__PURE__ */ l.jsx(
|
|
25046
25053
|
C1,
|
|
25047
25054
|
{
|
|
25048
25055
|
connectorName: s,
|
|
@@ -25051,7 +25058,7 @@ const AO = A(N)`
|
|
|
25051
25058
|
entities: U ?? []
|
|
25052
25059
|
}
|
|
25053
25060
|
) }, "entity-suggestions"),
|
|
25054
|
-
/* @__PURE__ */ l.jsx(
|
|
25061
|
+
/* @__PURE__ */ l.jsx(Pr, { condition: !!d && O, children: /* @__PURE__ */ l.jsx(
|
|
25055
25062
|
oO,
|
|
25056
25063
|
{
|
|
25057
25064
|
searchText: d,
|
|
@@ -25060,7 +25067,7 @@ const AO = A(N)`
|
|
|
25060
25067
|
onSearch: T
|
|
25061
25068
|
}
|
|
25062
25069
|
) }, "search-options"),
|
|
25063
|
-
/* @__PURE__ */ l.jsx(
|
|
25070
|
+
/* @__PURE__ */ l.jsx(Pr, { condition: !!d && !O, children: /* @__PURE__ */ l.jsx(
|
|
25064
25071
|
lO,
|
|
25065
25072
|
{
|
|
25066
25073
|
connectorName: s,
|
|
@@ -25069,7 +25076,7 @@ const AO = A(N)`
|
|
|
25069
25076
|
addEntity: ee
|
|
25070
25077
|
}
|
|
25071
25078
|
) }, "search-results"),
|
|
25072
|
-
/* @__PURE__ */ l.jsx(
|
|
25079
|
+
/* @__PURE__ */ l.jsx(Pr, { condition: !U.length && C, children: /* @__PURE__ */ l.jsx(Uu, { message: qn }) }, "error")
|
|
25073
25080
|
] }) }) }),
|
|
25074
25081
|
d ? null : /* @__PURE__ */ l.jsx(
|
|
25075
25082
|
xO,
|
|
@@ -25093,7 +25100,7 @@ const AO = A(N)`
|
|
|
25093
25100
|
});
|
|
25094
25101
|
return t == null ? void 0 : t.data;
|
|
25095
25102
|
} catch (t) {
|
|
25096
|
-
throw Be({ message:
|
|
25103
|
+
throw Be({ message: qn, type: dt }), console.error(t), t;
|
|
25097
25104
|
}
|
|
25098
25105
|
}, Vg = ({ onSuccess: e }) => xn({
|
|
25099
25106
|
mutationFn: YO,
|
|
@@ -26123,7 +26130,7 @@ const fF = A("div")`
|
|
|
26123
26130
|
app_name: (w = r == null ? void 0 : r.emailLogSettings) == null ? void 0 : w.connectorName
|
|
26124
26131
|
}));
|
|
26125
26132
|
};
|
|
26126
|
-
|
|
26133
|
+
lo(() => {
|
|
26127
26134
|
if (!s || !c.current) return;
|
|
26128
26135
|
const w = () => {
|
|
26129
26136
|
const _ = c.current.getBoundingClientRect(), I = Math.max(8, Math.min(_.left, window.innerWidth - S1 - 8));
|
|
@@ -26258,7 +26265,7 @@ const fF = A("div")`
|
|
|
26258
26265
|
};
|
|
26259
26266
|
return n.subscribe(i, "connectors"), n.subscribe(() => o(), "sideBarTabs", !1), n.subscribe(s, "connectorId", !1), n.subscribe(r, "inboxIds", !1), n;
|
|
26260
26267
|
}, SF = ({ children: e }) => /* @__PURE__ */ l.jsx(ga, { inter: !0, children: e }), TF = A(({ className: e, ...t }) => /* @__PURE__ */ l.jsx(we, { ...t, classes: { popper: e } }))(() => ({
|
|
26261
|
-
[`& .${
|
|
26268
|
+
[`& .${to.tooltip}`]: {
|
|
26262
26269
|
backgroundColor: "#fff",
|
|
26263
26270
|
padding: 0,
|
|
26264
26271
|
width: "min-content",
|
|
@@ -26267,7 +26274,7 @@ const fF = A("div")`
|
|
|
26267
26274
|
boxShadow: "0px 3px 15px 0px #00000040",
|
|
26268
26275
|
color: "#000"
|
|
26269
26276
|
},
|
|
26270
|
-
[`& .${
|
|
26277
|
+
[`& .${to.arrow}`]: {
|
|
26271
26278
|
color: "#fff !important"
|
|
26272
26279
|
}
|
|
26273
26280
|
})), LF = A(N)`
|