@hiver/connector-admin 4.4.5-choreEventTrackingEnhancements-beta.0 → 4.4.5-choreEventTrackingEnhancements-beta.1
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 +867 -858
- package/index.umd.js +53 -53
- package/package.json +1 -1
- package/v2/app/connectors/pages/connector-dashboard/index.d.ts.map +1 -1
- package/v2/context/index.d.ts +2 -0
- package/v2/context/index.d.ts.map +1 -1
- package/v2/context/main-app-provider/index.d.ts.map +1 -1
- package/v2/types/app.d.ts +1 -0
- package/v2/types/app.d.ts.map +1 -1
package/index.es.js
CHANGED
|
@@ -85,8 +85,8 @@ function gv() {
|
|
|
85
85
|
var W = I && w[I] || w[d];
|
|
86
86
|
return typeof W == "function" ? W : null;
|
|
87
87
|
}
|
|
88
|
-
var
|
|
89
|
-
function
|
|
88
|
+
var h = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
89
|
+
function B(w) {
|
|
90
90
|
{
|
|
91
91
|
for (var W = arguments.length, re = new Array(W > 1 ? W - 1 : 0), Be = 1; Be < W; Be++)
|
|
92
92
|
re[Be - 1] = arguments[Be];
|
|
@@ -95,7 +95,7 @@ function gv() {
|
|
|
95
95
|
}
|
|
96
96
|
function p(w, W, re) {
|
|
97
97
|
{
|
|
98
|
-
var Be =
|
|
98
|
+
var Be = h.ReactDebugCurrentFrame, ce = Be.getStackAddendum();
|
|
99
99
|
ce !== "" && (W += "%s", re = re.concat([ce]));
|
|
100
100
|
var xe = re.map(function(fe) {
|
|
101
101
|
return String(fe);
|
|
@@ -125,7 +125,7 @@ function gv() {
|
|
|
125
125
|
function z(w) {
|
|
126
126
|
if (w == null)
|
|
127
127
|
return null;
|
|
128
|
-
if (typeof w.tag == "number" &&
|
|
128
|
+
if (typeof w.tag == "number" && B("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof w == "function")
|
|
129
129
|
return w.displayName || w.name || null;
|
|
130
130
|
if (typeof w == "string")
|
|
131
131
|
return w;
|
|
@@ -226,10 +226,10 @@ function gv() {
|
|
|
226
226
|
})
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
|
-
ie < 0 &&
|
|
229
|
+
ie < 0 && B("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
var K =
|
|
232
|
+
var K = h.ReactCurrentDispatcher, te;
|
|
233
233
|
function ge(w, W, re) {
|
|
234
234
|
{
|
|
235
235
|
if (te === void 0)
|
|
@@ -355,7 +355,7 @@ function gv() {
|
|
|
355
355
|
}
|
|
356
356
|
return "";
|
|
357
357
|
}
|
|
358
|
-
var Gt = Object.prototype.hasOwnProperty, bn = {}, en =
|
|
358
|
+
var Gt = Object.prototype.hasOwnProperty, bn = {}, en = h.ReactDebugCurrentFrame;
|
|
359
359
|
function un(w) {
|
|
360
360
|
if (w) {
|
|
361
361
|
var W = w._owner, re = ot(w.type, w._source, W ? W.type : null);
|
|
@@ -378,7 +378,7 @@ function gv() {
|
|
|
378
378
|
} catch (je) {
|
|
379
379
|
Ie = je;
|
|
380
380
|
}
|
|
381
|
-
Ie && !(Ie instanceof Error) && (un(ce),
|
|
381
|
+
Ie && !(Ie instanceof Error) && (un(ce), B("%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).", Be || "React class", re, fe, typeof Ie), un(null)), Ie instanceof Error && !(Ie.message in bn) && (bn[Ie.message] = !0, un(ce), B("Failed %s type: %s", re, Ie.message), un(null));
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
384
|
}
|
|
@@ -404,9 +404,9 @@ function gv() {
|
|
|
404
404
|
}
|
|
405
405
|
function zn(w) {
|
|
406
406
|
if (OA(w))
|
|
407
|
-
return
|
|
407
|
+
return B("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", DA(w)), LA(w);
|
|
408
408
|
}
|
|
409
|
-
var nn =
|
|
409
|
+
var nn = h.ReactCurrentOwner, ir = {
|
|
410
410
|
key: !0,
|
|
411
411
|
ref: !0,
|
|
412
412
|
__self: !0,
|
|
@@ -432,13 +432,13 @@ function gv() {
|
|
|
432
432
|
function NA(w, W) {
|
|
433
433
|
if (typeof w.ref == "string" && nn.current && W && nn.current.stateNode !== W) {
|
|
434
434
|
var re = z(nn.current.type);
|
|
435
|
-
jt[re] || (
|
|
435
|
+
jt[re] || (B('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', z(nn.current.type), w.ref), jt[re] = !0);
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
438
|
function On(w, W) {
|
|
439
439
|
{
|
|
440
440
|
var re = function() {
|
|
441
|
-
Rn || (Rn = !0,
|
|
441
|
+
Rn || (Rn = !0, B("%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)", W));
|
|
442
442
|
};
|
|
443
443
|
re.isReactWarning = !0, Object.defineProperty(w, "key", {
|
|
444
444
|
get: re,
|
|
@@ -449,7 +449,7 @@ function gv() {
|
|
|
449
449
|
function BA(w, W) {
|
|
450
450
|
{
|
|
451
451
|
var re = function() {
|
|
452
|
-
Dn || (Dn = !0,
|
|
452
|
+
Dn || (Dn = !0, B("%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)", W));
|
|
453
453
|
};
|
|
454
454
|
re.isReactWarning = !0, Object.defineProperty(w, "ref", {
|
|
455
455
|
get: re,
|
|
@@ -504,7 +504,7 @@ function gv() {
|
|
|
504
504
|
return Oe(w, Ie, Ye, ce, Be, nn.current, fe);
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
|
-
var Br =
|
|
507
|
+
var Br = h.ReactCurrentOwner, Ut = h.ReactDebugCurrentFrame;
|
|
508
508
|
function It(w) {
|
|
509
509
|
if (w) {
|
|
510
510
|
var W = w._owner, re = ot(w.type, w._source, W ? W.type : null);
|
|
@@ -555,7 +555,7 @@ Check the top-level render call using <` + re + ">.");
|
|
|
555
555
|
return;
|
|
556
556
|
tn[re] = !0;
|
|
557
557
|
var Be = "";
|
|
558
|
-
w && w._owner && w._owner !== Br.current && (Be = " It was passed a child from " + z(w._owner.type) + "."), It(w),
|
|
558
|
+
w && w._owner && w._owner !== Br.current && (Be = " It was passed a child from " + z(w._owner.type) + "."), It(w), B('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', re, Be), It(null);
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
561
|
function Yn(w, W) {
|
|
@@ -597,9 +597,9 @@ Check the top-level render call using <` + re + ">.");
|
|
|
597
597
|
} else if (W.PropTypes !== void 0 && !Rt) {
|
|
598
598
|
Rt = !0;
|
|
599
599
|
var ce = z(W);
|
|
600
|
-
|
|
600
|
+
B("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ce || "Unknown");
|
|
601
601
|
}
|
|
602
|
-
typeof W.getDefaultProps == "function" && !W.getDefaultProps.isReactClassApproved &&
|
|
602
|
+
typeof W.getDefaultProps == "function" && !W.getDefaultProps.isReactClassApproved && B("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
function Mt(w) {
|
|
@@ -607,11 +607,11 @@ Check the top-level render call using <` + re + ">.");
|
|
|
607
607
|
for (var W = Object.keys(w.props), re = 0; re < W.length; re++) {
|
|
608
608
|
var Be = W[re];
|
|
609
609
|
if (Be !== "children" && Be !== "key") {
|
|
610
|
-
It(w),
|
|
610
|
+
It(w), B("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Be), It(null);
|
|
611
611
|
break;
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
w.ref !== null && (It(w),
|
|
614
|
+
w.ref !== null && (It(w), B("Invalid attribute `ref` supplied to `React.Fragment`."), It(null));
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
617
|
var ar = {};
|
|
@@ -624,7 +624,7 @@ Check the top-level render call using <` + re + ">.");
|
|
|
624
624
|
var Ye = yn();
|
|
625
625
|
Ye ? Ie += Ye : Ie += Ht();
|
|
626
626
|
var je;
|
|
627
|
-
w === null ? je = "null" : _n(w) ? je = "array" : w !== void 0 && w.$$typeof === t ? (je = "<" + (z(w.type) || "Unknown") + " />", Ie = " Did you accidentally export a JSX literal instead of a component?") : je = typeof w,
|
|
627
|
+
w === null ? je = "null" : _n(w) ? je = "array" : w !== void 0 && w.$$typeof === t ? (je = "<" + (z(w.type) || "Unknown") + " />", Ie = " Did you accidentally export a JSX literal instead of a component?") : je = typeof w, B("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", je, Ie);
|
|
628
628
|
}
|
|
629
629
|
var Je = wr(w, W, re, ce, xe);
|
|
630
630
|
if (Je == null)
|
|
@@ -638,7 +638,7 @@ Check the top-level render call using <` + re + ">.");
|
|
|
638
638
|
Yn(Xe[Ot], w);
|
|
639
639
|
Object.freeze && Object.freeze(Xe);
|
|
640
640
|
} else
|
|
641
|
-
|
|
641
|
+
B("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
642
642
|
else
|
|
643
643
|
Yn(Xe, w);
|
|
644
644
|
}
|
|
@@ -648,7 +648,7 @@ Check the top-level render call using <` + re + ">.");
|
|
|
648
648
|
}), Nn = Jt.length > 0 ? "{key: someKey, " + Jt.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
649
649
|
if (!ar[Bt + Nn]) {
|
|
650
650
|
var zr = Jt.length > 0 ? "{" + Jt.join(": ..., ") + ": ...}" : "{}";
|
|
651
|
-
|
|
651
|
+
B(`A props object containing a "key" prop is being spread into JSX:
|
|
652
652
|
let props = %s;
|
|
653
653
|
<%s {...props} />
|
|
654
654
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -700,15 +700,15 @@ function Tc(e) {
|
|
|
700
700
|
let { children: s, position: a, preventExitTransition: l, done: c, nodeRef: g, isIn: E, playToast: f } = i;
|
|
701
701
|
const I = r ? `${t}--${a}` : t, d = r ? `${n}--${a}` : n, C = Me(0);
|
|
702
702
|
return vc(() => {
|
|
703
|
-
const
|
|
704
|
-
Q.target === g.current && (f(),
|
|
703
|
+
const h = g.current, B = I.split(" "), p = (Q) => {
|
|
704
|
+
Q.target === g.current && (f(), h.removeEventListener("animationend", p), h.removeEventListener("animationcancel", p), C.current === 0 && Q.type !== "animationcancel" && h.classList.remove(...B));
|
|
705
705
|
};
|
|
706
|
-
|
|
706
|
+
h.classList.add(...B), h.addEventListener("animationend", p), h.addEventListener("animationcancel", p);
|
|
707
707
|
}, []), be(() => {
|
|
708
|
-
const
|
|
709
|
-
|
|
708
|
+
const h = g.current, B = () => {
|
|
709
|
+
h.removeEventListener("animationend", B), A ? dv(h, c, o) : c();
|
|
710
710
|
};
|
|
711
|
-
E || (l ?
|
|
711
|
+
E || (l ? B() : (C.current = 1, h.className += ` ${d}`, h.addEventListener("animationend", B)));
|
|
712
712
|
}, [E]), Ce.createElement(Ce.Fragment, null, s);
|
|
713
713
|
};
|
|
714
714
|
}
|
|
@@ -741,16 +741,16 @@ function Ev(e) {
|
|
|
741
741
|
const i = o.containerId || 1;
|
|
742
742
|
return { subscribe(s) {
|
|
743
743
|
const a = /* @__PURE__ */ function(c, g, E) {
|
|
744
|
-
let f = 1, I = 0, d = [], C = [],
|
|
744
|
+
let f = 1, I = 0, d = [], C = [], h = [], B = g;
|
|
745
745
|
const p = /* @__PURE__ */ new Map(), Q = /* @__PURE__ */ new Set(), v = () => {
|
|
746
|
-
|
|
746
|
+
h = Array.from(p.values()), Q.forEach((m) => m());
|
|
747
747
|
}, b = (m) => {
|
|
748
748
|
C = m == null ? [] : C.filter((x) => x !== m), v();
|
|
749
749
|
}, y = (m) => {
|
|
750
750
|
const { toastId: x, onOpen: M, updateId: F, children: J } = m.props, z = F == null;
|
|
751
751
|
m.staleId && p.delete(m.staleId), p.set(x, m), C = [...C, m.props.toastId].filter((P) => P !== m.staleId), v(), E(BE(m, z ? "added" : "updated")), z && cr(M) && M(ci(J) && J.props);
|
|
752
752
|
};
|
|
753
|
-
return { id: c, props:
|
|
753
|
+
return { id: c, props: B, observe: (m) => (Q.add(m), () => Q.delete(m)), toggle: (m, x) => {
|
|
754
754
|
p.forEach((M) => {
|
|
755
755
|
x != null && x !== M.props.toastId || cr(M.toggle) && M.toggle(m);
|
|
756
756
|
});
|
|
@@ -766,26 +766,26 @@ function Ev(e) {
|
|
|
766
766
|
b(M);
|
|
767
767
|
}, Ee = F == null;
|
|
768
768
|
Ee && I++;
|
|
769
|
-
const Qe = { ...
|
|
769
|
+
const Qe = { ...B, style: B.toastStyle, key: f++, ...Object.fromEntries(Object.entries(x).filter((_) => {
|
|
770
770
|
let [R, N] = _;
|
|
771
771
|
return N != null;
|
|
772
|
-
})), toastId: M, updateId: F, data: J, closeToast: ie, isIn: !1, className: ol(x.className ||
|
|
772
|
+
})), toastId: M, updateId: F, data: J, closeToast: ie, isIn: !1, className: ol(x.className || B.toastClassName), bodyClassName: ol(x.bodyClassName || B.bodyClassName), progressClassName: ol(x.progressClassName || B.progressClassName), autoClose: !x.isLoading && (Te = x.autoClose, oe = B.autoClose, Te === !1 || Wa(Te) && Te > 0 ? Te : oe), deleteToast() {
|
|
773
773
|
const _ = p.get(M), { onClose: R, children: N } = _.props;
|
|
774
774
|
cr(R) && R(ci(N) && N.props), E(BE(_, "removed")), p.delete(M), I--, I < 0 && (I = 0), d.length > 0 ? y(d.shift()) : v();
|
|
775
775
|
} };
|
|
776
776
|
var Te, oe;
|
|
777
|
-
Qe.closeButton =
|
|
777
|
+
Qe.closeButton = B.closeButton, x.closeButton === !1 || dg(x.closeButton) ? Qe.closeButton = x.closeButton : x.closeButton === !0 && (Qe.closeButton = !dg(B.closeButton) || B.closeButton);
|
|
778
778
|
let U = m;
|
|
779
779
|
ci(m) && !Oo(m.type) ? U = ug(m, { closeToast: ie, toastProps: Qe, data: J }) : cr(m) && (U = m({ closeToast: ie, toastProps: Qe, data: J }));
|
|
780
780
|
const j = { content: U, props: Qe, staleId: z };
|
|
781
|
-
|
|
781
|
+
B.limit && B.limit > 0 && I > B.limit && Ee ? d.push(j) : Wa(P) ? setTimeout(() => {
|
|
782
782
|
y(j);
|
|
783
783
|
}, P) : y(j);
|
|
784
784
|
}, setProps(m) {
|
|
785
|
-
|
|
785
|
+
B = m;
|
|
786
786
|
}, setToggle: (m, x) => {
|
|
787
787
|
p.get(m).toggle = x;
|
|
788
|
-
}, isToastActive: (m) => C.some((x) => x === m), getSnapshot: () =>
|
|
788
|
+
}, isToastActive: (m) => C.some((x) => x === m), getSnapshot: () => B.newestOnTop ? h.reverse() : h };
|
|
789
789
|
}(i, o, Cv);
|
|
790
790
|
Wn.set(i, a);
|
|
791
791
|
const l = a.observe(s);
|
|
@@ -824,8 +824,8 @@ function Iv(e) {
|
|
|
824
824
|
const Q = o.current;
|
|
825
825
|
i.canDrag && Q && (i.didMove = !0, t && d(), i.delta = e.draggableDirection === "x" ? p.clientX - i.start : p.clientY - i.start, i.start !== p.clientX && (i.canCloseOnClick = !1), Q.style.transform = `translate3d(${e.draggableDirection === "x" ? `${i.delta}px, var(--y)` : `0, calc(${i.delta}px + var(--y))`},0)`, Q.style.opacity = "" + (1 - Math.abs(i.delta / i.removalDistance)));
|
|
826
826
|
}
|
|
827
|
-
function
|
|
828
|
-
document.removeEventListener("pointermove", C), document.removeEventListener("pointerup",
|
|
827
|
+
function h() {
|
|
828
|
+
document.removeEventListener("pointermove", C), document.removeEventListener("pointerup", h);
|
|
829
829
|
const p = o.current;
|
|
830
830
|
if (i.canDrag && i.didMove && p) {
|
|
831
831
|
if (i.canDrag = !1, Math.abs(i.delta) > i.removalDistance) return A(!0), e.closeToast(), void e.collapseAll();
|
|
@@ -837,9 +837,9 @@ function Iv(e) {
|
|
|
837
837
|
window.removeEventListener("focus", I), window.removeEventListener("blur", d);
|
|
838
838
|
};
|
|
839
839
|
}, [e.pauseOnFocusLoss]);
|
|
840
|
-
const
|
|
840
|
+
const B = { onPointerDown: function(p) {
|
|
841
841
|
if (e.draggable === !0 || e.draggable === p.pointerType) {
|
|
842
|
-
i.didMove = !1, document.addEventListener("pointermove", C), document.addEventListener("pointerup",
|
|
842
|
+
i.didMove = !1, document.addEventListener("pointermove", C), document.addEventListener("pointerup", h);
|
|
843
843
|
const Q = o.current;
|
|
844
844
|
i.canCloseOnClick = !0, i.canDrag = !0, Q.style.transition = "none", e.draggableDirection === "x" ? (i.start = p.clientX, i.removalDistance = Q.offsetWidth * (e.draggablePercent / 100)) : (i.start = p.clientY, i.removalDistance = Q.offsetHeight * (e.draggablePercent === 80 ? 1.5 * e.draggablePercent : e.draggablePercent) / 100);
|
|
845
845
|
}
|
|
@@ -847,18 +847,18 @@ function Iv(e) {
|
|
|
847
847
|
const { top: Q, bottom: v, left: b, right: y } = o.current.getBoundingClientRect();
|
|
848
848
|
p.nativeEvent.type !== "touchend" && e.pauseOnHover && p.clientX >= b && p.clientX <= y && p.clientY >= Q && p.clientY <= v ? d() : I();
|
|
849
849
|
} };
|
|
850
|
-
return s && a && (
|
|
850
|
+
return s && a && (B.onMouseEnter = d, e.stacked || (B.onMouseLeave = I)), g && (B.onClick = (p) => {
|
|
851
851
|
c && c(p), i.canCloseOnClick && l();
|
|
852
|
-
}), { playToast: I, pauseToast: d, isRunning: t, preventExitTransition: r, toastRef: o, eventHandlers:
|
|
852
|
+
}), { playToast: I, pauseToast: d, isRunning: t, preventExitTransition: r, toastRef: o, eventHandlers: B };
|
|
853
853
|
}
|
|
854
854
|
function fv(e) {
|
|
855
855
|
let { delay: t, isRunning: n, closeToast: r, type: A = "default", hide: o, className: i, style: s, controlledProgress: a, progress: l, rtl: c, isIn: g, theme: E } = e;
|
|
856
856
|
const f = o || a && l === 0, I = { ...s, animationDuration: `${t}ms`, animationPlayState: n ? "running" : "paused" };
|
|
857
857
|
a && (I.transform = `scaleX(${l})`);
|
|
858
|
-
const d = qA("Toastify__progress-bar", a ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${E}`, `Toastify__progress-bar--${A}`, { "Toastify__progress-bar--rtl": c }), C = cr(i) ? i({ rtl: c, type: A, defaultClassName: d }) : qA(d, i),
|
|
858
|
+
const d = qA("Toastify__progress-bar", a ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${E}`, `Toastify__progress-bar--${A}`, { "Toastify__progress-bar--rtl": c }), C = cr(i) ? i({ rtl: c, type: A, defaultClassName: d }) : qA(d, i), h = { [a && l >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: a && l < 1 ? null : () => {
|
|
859
859
|
g && r();
|
|
860
860
|
} };
|
|
861
|
-
return Ce.createElement("div", { className: "Toastify__progress-bar--wrp", "data-hidden": f }, Ce.createElement("div", { className: `Toastify__progress-bar--bg Toastify__progress-bar-theme--${E} Toastify__progress-bar--${A}` }), Ce.createElement("div", { role: "progressbar", "aria-hidden": f ? "true" : "false", "aria-label": "notification timer", className: C, style: I, ...
|
|
861
|
+
return Ce.createElement("div", { className: "Toastify__progress-bar--wrp", "data-hidden": f }, Ce.createElement("div", { className: `Toastify__progress-bar--bg Toastify__progress-bar-theme--${E} Toastify__progress-bar--${A}` }), Ce.createElement("div", { role: "progressbar", "aria-hidden": f ? "true" : "false", "aria-label": "notification timer", className: C, style: I, ...h }));
|
|
862
862
|
}
|
|
863
863
|
let Bv = 1;
|
|
864
864
|
const fh = () => "" + Bv++;
|
|
@@ -939,7 +939,7 @@ const pv = typeof window < "u" ? vc : be, Fs = (e) => {
|
|
|
939
939
|
}, spinner: function() {
|
|
940
940
|
return Ce.createElement("div", { className: "Toastify__spinner" });
|
|
941
941
|
} }, Qv = (e) => {
|
|
942
|
-
const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: A, playToast: o } = Iv(e), { closeButton: i, children: s, autoClose: a, onClick: l, type: c, hideProgressBar: g, closeToast: E, transition: f, position: I, className: d, style: C, bodyClassName:
|
|
942
|
+
const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: A, playToast: o } = Iv(e), { closeButton: i, children: s, autoClose: a, onClick: l, type: c, hideProgressBar: g, closeToast: E, transition: f, position: I, className: d, style: C, bodyClassName: h, bodyStyle: B, progressClassName: p, progressStyle: Q, updateId: v, role: b, progress: y, rtl: m, toastId: x, deleteToast: M, isIn: F, isLoading: J, closeOnClick: z, theme: P } = e, ie = qA("Toastify__toast", `Toastify__toast-theme--${P}`, `Toastify__toast--${c}`, { "Toastify__toast--rtl": m }, { "Toastify__toast--close-on-click": z }), Ee = cr(d) ? d({ rtl: m, position: I, type: c, defaultClassName: ie }) : qA(ie, d), Qe = function(j) {
|
|
943
943
|
let { theme: _, type: R, isLoading: N, icon: Y } = j, K = null;
|
|
944
944
|
const te = { theme: _, type: R };
|
|
945
945
|
return Y === !1 || (cr(Y) ? K = Y({ ...te, isLoading: N }) : ci(Y) ? K = ug(Y, te) : N ? K = Bu.spinner() : ((ge) => ge in Bu)(R) && (K = Bu[R](te))), K;
|
|
@@ -950,7 +950,7 @@ const pv = typeof window < "u" ? vc : be, Fs = (e) => {
|
|
|
950
950
|
return Ce.createElement("button", { className: `Toastify__close-button Toastify__close-button--${R}`, type: "button", onClick: (Y) => {
|
|
951
951
|
Y.stopPropagation(), _(Y);
|
|
952
952
|
}, "aria-label": N }, Ce.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, Ce.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" })));
|
|
953
|
-
}(oe)), Ce.createElement(f, { isIn: F, done: M, position: I, preventExitTransition: n, nodeRef: r, playToast: o }, Ce.createElement("div", { id: x, onClick: l, "data-in": F, className: Ee, ...A, style: C, ref: r }, Ce.createElement("div", { ...F && { role: b }, className: cr(
|
|
953
|
+
}(oe)), Ce.createElement(f, { isIn: F, done: M, position: I, preventExitTransition: n, nodeRef: r, playToast: o }, Ce.createElement("div", { id: x, onClick: l, "data-in": F, className: Ee, ...A, style: C, ref: r }, Ce.createElement("div", { ...F && { role: b }, className: cr(h) ? h({ type: c }) : qA("Toastify__toast-body", h), style: B }, Qe != null && Ce.createElement("div", { className: qA("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !J }) }, Qe), Ce.createElement("div", null, s)), U, Ce.createElement(fv, { ...v && !Te ? { key: `pb-${v}` } : {}, rtl: m, theme: P, delay: a, isRunning: t, isIn: F, closeToast: E, hide: g, type: c, style: Q, className: p, controlledProgress: Te, progress: y || 0 })));
|
|
954
954
|
}, Sc = function(e, t) {
|
|
955
955
|
return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
|
|
956
956
|
}, mv = Tc(Sc("bounce", !0));
|
|
@@ -971,21 +971,21 @@ function Bh(e) {
|
|
|
971
971
|
return pv(() => {
|
|
972
972
|
if (n) {
|
|
973
973
|
var d;
|
|
974
|
-
const C = o.current.querySelectorAll('[data-in="true"]'),
|
|
974
|
+
const C = o.current.querySelectorAll('[data-in="true"]'), h = 12, B = (d = t.position) == null ? void 0 : d.includes("top");
|
|
975
975
|
let p = 0, Q = 0;
|
|
976
976
|
Array.from(C).reverse().forEach((v, b) => {
|
|
977
977
|
const y = v;
|
|
978
|
-
y.classList.add("Toastify__toast--stacked"), b > 0 && (y.dataset.collapsed = `${r}`), y.dataset.pos || (y.dataset.pos =
|
|
979
|
-
const m = p * (r ? 0.2 : 1) + (r ? 0 :
|
|
980
|
-
y.style.setProperty("--y", `${
|
|
978
|
+
y.classList.add("Toastify__toast--stacked"), b > 0 && (y.dataset.collapsed = `${r}`), y.dataset.pos || (y.dataset.pos = B ? "top" : "bot");
|
|
979
|
+
const m = p * (r ? 0.2 : 1) + (r ? 0 : h * b);
|
|
980
|
+
y.style.setProperty("--y", `${B ? m : -1 * m}px`), y.style.setProperty("--g", `${h}`), y.style.setProperty("--s", "" + (1 - (r ? Q : 0))), p += y.offsetHeight, Q += 0.025;
|
|
981
981
|
});
|
|
982
982
|
}
|
|
983
983
|
}, [r, a, n]), Ce.createElement("div", { ref: o, className: "Toastify", id: E, onMouseEnter: () => {
|
|
984
984
|
n && (A(!1), lt.pause());
|
|
985
985
|
}, onMouseLeave: I }, i((d, C) => {
|
|
986
|
-
const
|
|
987
|
-
return Ce.createElement("div", { className: f(d), style:
|
|
988
|
-
let { content: p, props: Q } =
|
|
986
|
+
const h = C.length ? { ...c } : { ...c, pointerEvents: "none" };
|
|
987
|
+
return Ce.createElement("div", { className: f(d), style: h, key: `container-${d}` }, C.map((B) => {
|
|
988
|
+
let { content: p, props: Q } = B;
|
|
989
989
|
return Ce.createElement(Qv, { ...Q, stacked: n, collapseAll: I, isIn: s(Q.toastId, Q.containerId), style: Q.style, key: `toast-${Q.key}` }, p);
|
|
990
990
|
}));
|
|
991
991
|
}));
|
|
@@ -1017,18 +1017,18 @@ function bv() {
|
|
|
1017
1017
|
} else I = f.current;
|
|
1018
1018
|
f = i(function() {
|
|
1019
1019
|
function C(v) {
|
|
1020
|
-
if (!
|
|
1021
|
-
if (
|
|
1020
|
+
if (!h) {
|
|
1021
|
+
if (h = !0, B = v, v = g(v), E !== void 0 && I.hasValue) {
|
|
1022
1022
|
var b = I.value;
|
|
1023
1023
|
if (E(b, v)) return p = b;
|
|
1024
1024
|
}
|
|
1025
1025
|
return p = v;
|
|
1026
1026
|
}
|
|
1027
|
-
if (b = p, n(
|
|
1027
|
+
if (b = p, n(B, v)) return b;
|
|
1028
1028
|
var y = g(v);
|
|
1029
|
-
return E !== void 0 && E(b, y) ? b : (
|
|
1029
|
+
return E !== void 0 && E(b, y) ? b : (B = v, p = y);
|
|
1030
1030
|
}
|
|
1031
|
-
var
|
|
1031
|
+
var h = !1, B, p, Q = c === void 0 ? null : c;
|
|
1032
1032
|
return [function() {
|
|
1033
1033
|
return C(l());
|
|
1034
1034
|
}, Q === null ? void 0 : function() {
|
|
@@ -1089,7 +1089,7 @@ function yv() {
|
|
|
1089
1089
|
return y(m());
|
|
1090
1090
|
};
|
|
1091
1091
|
return [x, M];
|
|
1092
|
-
}, [c, g, E, f]),
|
|
1092
|
+
}, [c, g, E, f]), h = C[0], B = C[1], p = r(l, h, B);
|
|
1093
1093
|
return o(function() {
|
|
1094
1094
|
d.hasValue = !0, d.value = p;
|
|
1095
1095
|
}, [p]), s(p), p;
|
|
@@ -1156,14 +1156,14 @@ function Rv(e = eo) {
|
|
|
1156
1156
|
const C = r(d);
|
|
1157
1157
|
if (process.env.NODE_ENV !== "production") {
|
|
1158
1158
|
const {
|
|
1159
|
-
identityFunctionCheck:
|
|
1160
|
-
stabilityCheck:
|
|
1159
|
+
identityFunctionCheck: h,
|
|
1160
|
+
stabilityCheck: B
|
|
1161
1161
|
} = {
|
|
1162
1162
|
stabilityCheck: c,
|
|
1163
1163
|
identityFunctionCheck: g,
|
|
1164
1164
|
...i
|
|
1165
1165
|
};
|
|
1166
|
-
if (
|
|
1166
|
+
if (B === "always" || B === "once" && E.current) {
|
|
1167
1167
|
const p = r(d);
|
|
1168
1168
|
if (!o(C, p)) {
|
|
1169
1169
|
let Q;
|
|
@@ -1184,7 +1184,7 @@ Selectors that return a new reference (such as an object or an array) should be
|
|
|
1184
1184
|
);
|
|
1185
1185
|
}
|
|
1186
1186
|
}
|
|
1187
|
-
if ((
|
|
1187
|
+
if ((h === "always" || h === "once" && E.current) && C === d) {
|
|
1188
1188
|
let p;
|
|
1189
1189
|
try {
|
|
1190
1190
|
throw new Error();
|
|
@@ -1263,9 +1263,9 @@ function Lv(e, t) {
|
|
|
1263
1263
|
function i(d) {
|
|
1264
1264
|
c();
|
|
1265
1265
|
const C = r.subscribe(d);
|
|
1266
|
-
let
|
|
1266
|
+
let h = !1;
|
|
1267
1267
|
return () => {
|
|
1268
|
-
|
|
1268
|
+
h || (h = !0, C(), g());
|
|
1269
1269
|
};
|
|
1270
1270
|
}
|
|
1271
1271
|
function s() {
|
|
@@ -1423,8 +1423,8 @@ function yh(e, t, n) {
|
|
|
1423
1423
|
}
|
|
1424
1424
|
let r = e, A = t, o = /* @__PURE__ */ new Map(), i = o, s = 0, a = !1;
|
|
1425
1425
|
function l() {
|
|
1426
|
-
i === o && (i = /* @__PURE__ */ new Map(), o.forEach((C,
|
|
1427
|
-
i.set(
|
|
1426
|
+
i === o && (i = /* @__PURE__ */ new Map(), o.forEach((C, h) => {
|
|
1427
|
+
i.set(h, C);
|
|
1428
1428
|
}));
|
|
1429
1429
|
}
|
|
1430
1430
|
function c() {
|
|
@@ -1437,14 +1437,14 @@ function yh(e, t, n) {
|
|
|
1437
1437
|
throw new Error(process.env.NODE_ENV === "production" ? wn(4) : `Expected the listener to be a function. Instead, received: '${kA(C)}'`);
|
|
1438
1438
|
if (a)
|
|
1439
1439
|
throw new Error(process.env.NODE_ENV === "production" ? wn(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.");
|
|
1440
|
-
let
|
|
1440
|
+
let h = !0;
|
|
1441
1441
|
l();
|
|
1442
|
-
const
|
|
1443
|
-
return i.set(
|
|
1444
|
-
if (
|
|
1442
|
+
const B = s++;
|
|
1443
|
+
return i.set(B, C), function() {
|
|
1444
|
+
if (h) {
|
|
1445
1445
|
if (a)
|
|
1446
1446
|
throw new Error(process.env.NODE_ENV === "production" ? wn(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
|
|
1447
|
-
|
|
1447
|
+
h = !1, l(), i.delete(B), o = null;
|
|
1448
1448
|
}
|
|
1449
1449
|
};
|
|
1450
1450
|
}
|
|
@@ -1462,8 +1462,8 @@ function yh(e, t, n) {
|
|
|
1462
1462
|
} finally {
|
|
1463
1463
|
a = !1;
|
|
1464
1464
|
}
|
|
1465
|
-
return (o = i).forEach((
|
|
1466
|
-
|
|
1465
|
+
return (o = i).forEach((B) => {
|
|
1466
|
+
B();
|
|
1467
1467
|
}), C;
|
|
1468
1468
|
}
|
|
1469
1469
|
function f(C) {
|
|
@@ -1484,15 +1484,15 @@ function yh(e, t, n) {
|
|
|
1484
1484
|
* be used to unsubscribe the observable from the store, and prevent further
|
|
1485
1485
|
* emission of values from the observable.
|
|
1486
1486
|
*/
|
|
1487
|
-
subscribe(
|
|
1488
|
-
if (typeof
|
|
1489
|
-
throw new Error(process.env.NODE_ENV === "production" ? wn(11) : `Expected the observer to be an object. Instead, received: '${kA(
|
|
1490
|
-
function
|
|
1491
|
-
const Q =
|
|
1487
|
+
subscribe(h) {
|
|
1488
|
+
if (typeof h != "object" || h === null)
|
|
1489
|
+
throw new Error(process.env.NODE_ENV === "production" ? wn(11) : `Expected the observer to be an object. Instead, received: '${kA(h)}'`);
|
|
1490
|
+
function B() {
|
|
1491
|
+
const Q = h;
|
|
1492
1492
|
Q.next && Q.next(c());
|
|
1493
1493
|
}
|
|
1494
|
-
return
|
|
1495
|
-
unsubscribe: C(
|
|
1494
|
+
return B(), {
|
|
1495
|
+
unsubscribe: C(B)
|
|
1496
1496
|
};
|
|
1497
1497
|
},
|
|
1498
1498
|
[yE]() {
|
|
@@ -2307,22 +2307,22 @@ function Ib(e = {}) {
|
|
|
2307
2307
|
const C = mg(f, "", t, n, A, c);
|
|
2308
2308
|
if (C) {
|
|
2309
2309
|
const {
|
|
2310
|
-
keyPath:
|
|
2311
|
-
value:
|
|
2310
|
+
keyPath: h,
|
|
2311
|
+
value: B
|
|
2312
2312
|
} = C;
|
|
2313
|
-
console.error(`A non-serializable value was detected in an action, in the path: \`${
|
|
2313
|
+
console.error(`A non-serializable value was detected in an action, in the path: \`${h}\`. Value:`, B, `
|
|
2314
2314
|
Take a look at the logic that dispatched this action: `, f, `
|
|
2315
2315
|
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`, `
|
|
2316
2316
|
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`);
|
|
2317
2317
|
}
|
|
2318
2318
|
}), s || (d.measureTime(() => {
|
|
2319
|
-
const C = g.getState(),
|
|
2320
|
-
if (
|
|
2319
|
+
const C = g.getState(), h = mg(C, "", t, n, o, c);
|
|
2320
|
+
if (h) {
|
|
2321
2321
|
const {
|
|
2322
|
-
keyPath:
|
|
2322
|
+
keyPath: B,
|
|
2323
2323
|
value: p
|
|
2324
|
-
} =
|
|
2325
|
-
console.error(`A non-serializable value was detected in the state, in the path: \`${
|
|
2324
|
+
} = h;
|
|
2325
|
+
console.error(`A non-serializable value was detected in the state, in the path: \`${B}\`. Value:`, p, `
|
|
2326
2326
|
Take a look at the reducer(s) handling this action type: ${f.type}.
|
|
2327
2327
|
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`);
|
|
2328
2328
|
}
|
|
@@ -2584,12 +2584,12 @@ var xb = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", wb
|
|
|
2584
2584
|
return (l, c, g) => {
|
|
2585
2585
|
const E = r != null && r.idGenerator ? r.idGenerator(a) : wb(), f = new AbortController();
|
|
2586
2586
|
let I, d;
|
|
2587
|
-
function C(
|
|
2588
|
-
d =
|
|
2587
|
+
function C(B) {
|
|
2588
|
+
d = B, f.abort();
|
|
2589
2589
|
}
|
|
2590
|
-
const
|
|
2590
|
+
const h = async function() {
|
|
2591
2591
|
var Q, v;
|
|
2592
|
-
let
|
|
2592
|
+
let B;
|
|
2593
2593
|
try {
|
|
2594
2594
|
let b = (Q = r == null ? void 0 : r.condition) == null ? void 0 : Q.call(r, a, {
|
|
2595
2595
|
getState: c,
|
|
@@ -2614,7 +2614,7 @@ var xb = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", wb
|
|
|
2614
2614
|
}, {
|
|
2615
2615
|
getState: c,
|
|
2616
2616
|
extra: g
|
|
2617
|
-
}))),
|
|
2617
|
+
}))), B = await Promise.race([y, Promise.resolve(n(a, {
|
|
2618
2618
|
dispatch: l,
|
|
2619
2619
|
getState: c,
|
|
2620
2620
|
extra: g,
|
|
@@ -2629,18 +2629,18 @@ var xb = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", wb
|
|
|
2629
2629
|
return m instanceof LE ? A(m.payload, E, a, m.meta) : A(m, E, a);
|
|
2630
2630
|
})]);
|
|
2631
2631
|
} catch (b) {
|
|
2632
|
-
|
|
2632
|
+
B = b instanceof bu ? i(null, E, a, b.payload, b.meta) : i(b, E, a);
|
|
2633
2633
|
} finally {
|
|
2634
2634
|
I && f.signal.removeEventListener("abort", I);
|
|
2635
2635
|
}
|
|
2636
|
-
return r && !r.dispatchConditionRejection && i.match(
|
|
2636
|
+
return r && !r.dispatchConditionRejection && i.match(B) && B.meta.condition || l(B), B;
|
|
2637
2637
|
}();
|
|
2638
|
-
return Object.assign(
|
|
2638
|
+
return Object.assign(h, {
|
|
2639
2639
|
abort: C,
|
|
2640
2640
|
requestId: E,
|
|
2641
2641
|
arg: a,
|
|
2642
2642
|
unwrap() {
|
|
2643
|
-
return
|
|
2643
|
+
return h.then(_b);
|
|
2644
2644
|
}
|
|
2645
2645
|
});
|
|
2646
2646
|
};
|
|
@@ -2742,7 +2742,7 @@ function Lb({
|
|
|
2742
2742
|
function C() {
|
|
2743
2743
|
return I || (I = g()), I.getInitialState();
|
|
2744
2744
|
}
|
|
2745
|
-
function
|
|
2745
|
+
function h(p, Q = !1) {
|
|
2746
2746
|
function v(y) {
|
|
2747
2747
|
let m = y[p];
|
|
2748
2748
|
if (typeof m > "u") {
|
|
@@ -2775,13 +2775,13 @@ function Lb({
|
|
|
2775
2775
|
selectSlice: v
|
|
2776
2776
|
};
|
|
2777
2777
|
}
|
|
2778
|
-
const
|
|
2778
|
+
const B = {
|
|
2779
2779
|
name: o,
|
|
2780
2780
|
reducer: d,
|
|
2781
2781
|
actions: l.actionCreators,
|
|
2782
2782
|
caseReducers: l.sliceCaseReducersByName,
|
|
2783
2783
|
getInitialState: C,
|
|
2784
|
-
...
|
|
2784
|
+
...h(i),
|
|
2785
2785
|
injectInto(p, {
|
|
2786
2786
|
reducerPath: Q,
|
|
2787
2787
|
...v
|
|
@@ -2791,12 +2791,12 @@ function Lb({
|
|
|
2791
2791
|
reducerPath: b,
|
|
2792
2792
|
reducer: d
|
|
2793
2793
|
}, v), {
|
|
2794
|
-
...
|
|
2795
|
-
...
|
|
2794
|
+
...B,
|
|
2795
|
+
...h(b, !0)
|
|
2796
2796
|
};
|
|
2797
2797
|
}
|
|
2798
2798
|
};
|
|
2799
|
-
return
|
|
2799
|
+
return B;
|
|
2800
2800
|
};
|
|
2801
2801
|
}
|
|
2802
2802
|
function Nb(e, t, n, r) {
|
|
@@ -3309,12 +3309,12 @@ function Pc(e, t, n) {
|
|
|
3309
3309
|
return ee.isArrayBuffer(I) || ee.isTypedArray(I) ? a && typeof Blob == "function" ? new Blob([I]) : Buffer.from(I) : I;
|
|
3310
3310
|
}
|
|
3311
3311
|
function c(I, d, C) {
|
|
3312
|
-
let
|
|
3312
|
+
let h = I;
|
|
3313
3313
|
if (I && !C && typeof I == "object") {
|
|
3314
3314
|
if (ee.endsWith(d, "{}"))
|
|
3315
3315
|
d = r ? d : d.slice(0, -2), I = JSON.stringify(I);
|
|
3316
|
-
else if (ee.isArray(I) && $y(I) || (ee.isFileList(I) || ee.endsWith(d, "[]")) && (
|
|
3317
|
-
return d = ap(d),
|
|
3316
|
+
else if (ee.isArray(I) && $y(I) || (ee.isFileList(I) || ee.endsWith(d, "[]")) && (h = ee.toArray(I)))
|
|
3317
|
+
return d = ap(d), h.forEach(function(p, Q) {
|
|
3318
3318
|
!(ee.isUndefined(p) || p === null) && t.append(
|
|
3319
3319
|
// eslint-disable-next-line no-nested-ternary
|
|
3320
3320
|
i === !0 ? kE([d], Q, o) : i === null ? d : d + "[]",
|
|
@@ -3333,14 +3333,14 @@ function Pc(e, t, n) {
|
|
|
3333
3333
|
if (!ee.isUndefined(I)) {
|
|
3334
3334
|
if (g.indexOf(I) !== -1)
|
|
3335
3335
|
throw Error("Circular reference detected in " + d.join("."));
|
|
3336
|
-
g.push(I), ee.forEach(I, function(
|
|
3337
|
-
(!(ee.isUndefined(
|
|
3336
|
+
g.push(I), ee.forEach(I, function(h, B) {
|
|
3337
|
+
(!(ee.isUndefined(h) || h === null) && A.call(
|
|
3338
3338
|
t,
|
|
3339
|
-
|
|
3340
|
-
ee.isString(
|
|
3339
|
+
h,
|
|
3340
|
+
ee.isString(B) ? B.trim() : B,
|
|
3341
3341
|
d,
|
|
3342
3342
|
E
|
|
3343
|
-
)) === !0 && f(
|
|
3343
|
+
)) === !0 && f(h, d ? d.concat(B) : [B]);
|
|
3344
3344
|
}), g.pop();
|
|
3345
3345
|
}
|
|
3346
3346
|
}
|
|
@@ -4032,7 +4032,7 @@ var S2 = T2 && function(e) {
|
|
|
4032
4032
|
}
|
|
4033
4033
|
let C = new XMLHttpRequest();
|
|
4034
4034
|
C.open(A.method.toUpperCase(), A.url, !0), C.timeout = A.timeout;
|
|
4035
|
-
function
|
|
4035
|
+
function h() {
|
|
4036
4036
|
if (!C)
|
|
4037
4037
|
return;
|
|
4038
4038
|
const p = Pr.from(
|
|
@@ -4051,8 +4051,8 @@ var S2 = T2 && function(e) {
|
|
|
4051
4051
|
r(y), d();
|
|
4052
4052
|
}, v), C = null;
|
|
4053
4053
|
}
|
|
4054
|
-
"onloadend" in C ? C.onloadend =
|
|
4055
|
-
!C || C.readyState !== 4 || C.status === 0 && !(C.responseURL && C.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
4054
|
+
"onloadend" in C ? C.onloadend = h : C.onreadystatechange = function() {
|
|
4055
|
+
!C || C.readyState !== 4 || C.status === 0 && !(C.responseURL && C.responseURL.indexOf("file:") === 0) || setTimeout(h);
|
|
4056
4056
|
}, C.onabort = function() {
|
|
4057
4057
|
C && (r(new $e("Request aborted", $e.ECONNABORTED, e, C)), C = null);
|
|
4058
4058
|
}, C.onerror = function() {
|
|
@@ -4071,9 +4071,9 @@ var S2 = T2 && function(e) {
|
|
|
4071
4071
|
}), ee.isUndefined(A.withCredentials) || (C.withCredentials = !!A.withCredentials), s && s !== "json" && (C.responseType = A.responseType), l && ([E, I] = Jl(l, !0), C.addEventListener("progress", E)), a && C.upload && ([g, f] = Jl(a), C.upload.addEventListener("progress", g), C.upload.addEventListener("loadend", f)), (A.cancelToken || A.signal) && (c = (p) => {
|
|
4072
4072
|
C && (r(!p || p.type ? new ji(null, e, C) : p), C.abort(), C = null);
|
|
4073
4073
|
}, A.cancelToken && A.cancelToken.subscribe(c), A.signal && (A.signal.aborted ? c() : A.signal.addEventListener("abort", c)));
|
|
4074
|
-
const
|
|
4075
|
-
if (
|
|
4076
|
-
r(new $e("Unsupported protocol " +
|
|
4074
|
+
const B = Q2(A.url);
|
|
4075
|
+
if (B && er.protocols.indexOf(B) === -1) {
|
|
4076
|
+
r(new $e("Unsupported protocol " + B + ":", $e.ERR_BAD_REQUEST, e));
|
|
4077
4077
|
return;
|
|
4078
4078
|
}
|
|
4079
4079
|
C.send(o || null);
|
|
@@ -4242,7 +4242,7 @@ var M2 = Mc && (async (e) => {
|
|
|
4242
4242
|
}
|
|
4243
4243
|
}
|
|
4244
4244
|
ee.isString(g) || (g = g ? "include" : "omit");
|
|
4245
|
-
const
|
|
4245
|
+
const h = "credentials" in Request.prototype;
|
|
4246
4246
|
I = new Request(t, {
|
|
4247
4247
|
...E,
|
|
4248
4248
|
signal: f,
|
|
@@ -4250,45 +4250,45 @@ var M2 = Mc && (async (e) => {
|
|
|
4250
4250
|
headers: c.normalize().toJSON(),
|
|
4251
4251
|
body: r,
|
|
4252
4252
|
duplex: "half",
|
|
4253
|
-
credentials:
|
|
4253
|
+
credentials: h ? g : void 0
|
|
4254
4254
|
});
|
|
4255
|
-
let
|
|
4255
|
+
let B = await fetch(I);
|
|
4256
4256
|
const p = wg && (l === "stream" || l === "response");
|
|
4257
4257
|
if (wg && (s || p && d)) {
|
|
4258
4258
|
const v = {};
|
|
4259
4259
|
["status", "statusText", "headers"].forEach((x) => {
|
|
4260
|
-
v[x] =
|
|
4260
|
+
v[x] = B[x];
|
|
4261
4261
|
});
|
|
4262
|
-
const b = ee.toFiniteNumber(
|
|
4262
|
+
const b = ee.toFiniteNumber(B.headers.get("content-length")), [y, m] = s && GE(
|
|
4263
4263
|
b,
|
|
4264
4264
|
Jl(VE(s), !0)
|
|
4265
4265
|
) || [];
|
|
4266
|
-
|
|
4267
|
-
WE(
|
|
4266
|
+
B = new Response(
|
|
4267
|
+
WE(B.body, zE, y, () => {
|
|
4268
4268
|
m && m(), d && d();
|
|
4269
4269
|
}),
|
|
4270
4270
|
v
|
|
4271
4271
|
);
|
|
4272
4272
|
}
|
|
4273
4273
|
l = l || "text";
|
|
4274
|
-
let Q = await Xl[ee.findKey(Xl, l) || "text"](
|
|
4274
|
+
let Q = await Xl[ee.findKey(Xl, l) || "text"](B, e);
|
|
4275
4275
|
return !p && d && d(), await new Promise((v, b) => {
|
|
4276
4276
|
dp(v, b, {
|
|
4277
4277
|
data: Q,
|
|
4278
|
-
headers: Pr.from(
|
|
4279
|
-
status:
|
|
4280
|
-
statusText:
|
|
4278
|
+
headers: Pr.from(B.headers),
|
|
4279
|
+
status: B.status,
|
|
4280
|
+
statusText: B.statusText,
|
|
4281
4281
|
config: e,
|
|
4282
4282
|
request: I
|
|
4283
4283
|
});
|
|
4284
4284
|
});
|
|
4285
|
-
} catch (
|
|
4286
|
-
throw d && d(),
|
|
4285
|
+
} catch (h) {
|
|
4286
|
+
throw d && d(), h && h.name === "TypeError" && /fetch/i.test(h.message) ? Object.assign(
|
|
4287
4287
|
new $e("Network Error", $e.ERR_NETWORK, e, I),
|
|
4288
4288
|
{
|
|
4289
|
-
cause:
|
|
4289
|
+
cause: h.cause || h
|
|
4290
4290
|
}
|
|
4291
|
-
) : $e.from(
|
|
4291
|
+
) : $e.from(h, h && h.code, e, I);
|
|
4292
4292
|
}
|
|
4293
4293
|
});
|
|
4294
4294
|
const Tg = {
|
|
@@ -5045,8 +5045,8 @@ var ua = {}, Tr = {}, KE;
|
|
|
5045
5045
|
function vp() {
|
|
5046
5046
|
if (KE) return Tr;
|
|
5047
5047
|
KE = 1;
|
|
5048
|
-
var e = qe && qe.__awaiter || function(I, d, C,
|
|
5049
|
-
function
|
|
5048
|
+
var e = qe && qe.__awaiter || function(I, d, C, h) {
|
|
5049
|
+
function B(p) {
|
|
5050
5050
|
return p instanceof C ? p : new C(function(Q) {
|
|
5051
5051
|
Q(p);
|
|
5052
5052
|
});
|
|
@@ -5054,28 +5054,28 @@ function vp() {
|
|
|
5054
5054
|
return new (C || (C = Promise))(function(p, Q) {
|
|
5055
5055
|
function v(m) {
|
|
5056
5056
|
try {
|
|
5057
|
-
y(
|
|
5057
|
+
y(h.next(m));
|
|
5058
5058
|
} catch (x) {
|
|
5059
5059
|
Q(x);
|
|
5060
5060
|
}
|
|
5061
5061
|
}
|
|
5062
5062
|
function b(m) {
|
|
5063
5063
|
try {
|
|
5064
|
-
y(
|
|
5064
|
+
y(h.throw(m));
|
|
5065
5065
|
} catch (x) {
|
|
5066
5066
|
Q(x);
|
|
5067
5067
|
}
|
|
5068
5068
|
}
|
|
5069
5069
|
function y(m) {
|
|
5070
|
-
m.done ? p(m.value) :
|
|
5070
|
+
m.done ? p(m.value) : B(m.value).then(v, b);
|
|
5071
5071
|
}
|
|
5072
|
-
y((
|
|
5072
|
+
y((h = h.apply(I, d || [])).next());
|
|
5073
5073
|
});
|
|
5074
5074
|
}, t = qe && qe.__generator || function(I, d) {
|
|
5075
5075
|
var C = { label: 0, sent: function() {
|
|
5076
5076
|
if (p[0] & 1) throw p[1];
|
|
5077
5077
|
return p[1];
|
|
5078
|
-
}, trys: [], ops: [] },
|
|
5078
|
+
}, trys: [], ops: [] }, h, B, p, Q;
|
|
5079
5079
|
return Q = { next: v(0), throw: v(1), return: v(2) }, typeof Symbol == "function" && (Q[Symbol.iterator] = function() {
|
|
5080
5080
|
return this;
|
|
5081
5081
|
}), Q;
|
|
@@ -5085,10 +5085,10 @@ function vp() {
|
|
|
5085
5085
|
};
|
|
5086
5086
|
}
|
|
5087
5087
|
function b(y) {
|
|
5088
|
-
if (
|
|
5088
|
+
if (h) throw new TypeError("Generator is already executing.");
|
|
5089
5089
|
for (; Q && (Q = 0, y[0] && (C = 0)), C; ) try {
|
|
5090
|
-
if (
|
|
5091
|
-
switch (
|
|
5090
|
+
if (h = 1, B && (p = y[0] & 2 ? B.return : y[0] ? B.throw || ((p = B.return) && p.call(B), 0) : B.next) && !(p = p.call(B, y[1])).done) return p;
|
|
5091
|
+
switch (B = 0, p && (y = [y[0] & 2, p.value]), y[0]) {
|
|
5092
5092
|
case 0:
|
|
5093
5093
|
case 1:
|
|
5094
5094
|
p = y;
|
|
@@ -5096,7 +5096,7 @@ function vp() {
|
|
|
5096
5096
|
case 4:
|
|
5097
5097
|
return C.label++, { value: y[1], done: !1 };
|
|
5098
5098
|
case 5:
|
|
5099
|
-
C.label++,
|
|
5099
|
+
C.label++, B = y[1], y = [0];
|
|
5100
5100
|
continue;
|
|
5101
5101
|
case 7:
|
|
5102
5102
|
y = C.ops.pop(), C.trys.pop();
|
|
@@ -5123,17 +5123,17 @@ function vp() {
|
|
|
5123
5123
|
}
|
|
5124
5124
|
y = d.call(I, C);
|
|
5125
5125
|
} catch (m) {
|
|
5126
|
-
y = [6, m],
|
|
5126
|
+
y = [6, m], B = 0;
|
|
5127
5127
|
} finally {
|
|
5128
|
-
|
|
5128
|
+
h = p = 0;
|
|
5129
5129
|
}
|
|
5130
5130
|
if (y[0] & 5) throw y[1];
|
|
5131
5131
|
return { value: y[0] ? y[1] : void 0, done: !0 };
|
|
5132
5132
|
}
|
|
5133
5133
|
};
|
|
5134
5134
|
Object.defineProperty(Tr, "__esModule", { value: !0 }), Tr.logoutFromHeimdall = Tr.getTenantLoginCode = Tr.getLoginToken = Tr.getAccessToken = void 0;
|
|
5135
|
-
var n = Ao, r = yp(), A = mt, o = function(I, d, C,
|
|
5136
|
-
var
|
|
5135
|
+
var n = Ao, r = yp(), A = mt, o = function(I, d, C, h) {
|
|
5136
|
+
var B = (0, A.getStoredAuthData)(), p = C === n.TENANT_PLATFORM.HIVERWEB ? n.TENANT_PLATFORM.HIVERWEB : n.TENANT_PLATFORM.GMAIL;
|
|
5137
5137
|
return {
|
|
5138
5138
|
root_url: I.heimdallUrl,
|
|
5139
5139
|
url: I.apiEndpoints.heimdallTokenFetch,
|
|
@@ -5144,11 +5144,11 @@ function vp() {
|
|
|
5144
5144
|
data: {
|
|
5145
5145
|
user_id: d.userId,
|
|
5146
5146
|
usergroup_id: d.usergroupId,
|
|
5147
|
-
access_token: (
|
|
5148
|
-
source:
|
|
5147
|
+
access_token: (B == null ? void 0 : B.token) || "",
|
|
5148
|
+
source: h
|
|
5149
5149
|
}
|
|
5150
5150
|
};
|
|
5151
|
-
}, i = function(I, d, C,
|
|
5151
|
+
}, i = function(I, d, C, h, B) {
|
|
5152
5152
|
var p = C === n.TENANT_PLATFORM.HIVERWEB ? n.TENANT_PLATFORM.HIVERWEB : n.TENANT_PLATFORM.GMAIL;
|
|
5153
5153
|
return {
|
|
5154
5154
|
root_url: d.heimdallUrl,
|
|
@@ -5157,8 +5157,8 @@ function vp() {
|
|
|
5157
5157
|
data: { code: I },
|
|
5158
5158
|
headers: {
|
|
5159
5159
|
"x-hiver-tenant": p,
|
|
5160
|
-
"x-hiver-userid":
|
|
5161
|
-
"x-hiver-usergroupid":
|
|
5160
|
+
"x-hiver-userid": h,
|
|
5161
|
+
"x-hiver-usergroupid": B
|
|
5162
5162
|
}
|
|
5163
5163
|
};
|
|
5164
5164
|
}, s = function(I, d) {
|
|
@@ -5173,25 +5173,25 @@ function vp() {
|
|
|
5173
5173
|
};
|
|
5174
5174
|
}, a = function(I) {
|
|
5175
5175
|
return parseInt(I, 10);
|
|
5176
|
-
}, l = function(I, d, C,
|
|
5176
|
+
}, l = function(I, d, C, h) {
|
|
5177
5177
|
return {
|
|
5178
5178
|
root_url: C === n.TENANT_PLATFORM.HIVERWEB ? I.hotUrl : I.v2Url,
|
|
5179
5179
|
url: C === n.TENANT_PLATFORM.HIVERWEB ? I.apiEndpoints.hotLogin : I.apiEndpoints.v2Login,
|
|
5180
5180
|
method: n.GET_METHOD,
|
|
5181
5181
|
data: {
|
|
5182
5182
|
usersession: a(d.userId),
|
|
5183
|
-
app:
|
|
5183
|
+
app: h || n.APP_UI.DEFAULT
|
|
5184
5184
|
}
|
|
5185
5185
|
};
|
|
5186
|
-
}, c = function(I, d, C,
|
|
5186
|
+
}, c = function(I, d, C, h, B) {
|
|
5187
5187
|
return e(void 0, void 0, void 0, function() {
|
|
5188
5188
|
var p, Q, v, b, y, m, x;
|
|
5189
5189
|
return t(this, function(M) {
|
|
5190
5190
|
switch (M.label) {
|
|
5191
5191
|
case 0:
|
|
5192
|
-
console.log("GETTOKEN tenantPlatform -> ",
|
|
5192
|
+
console.log("GETTOKEN tenantPlatform -> ", h), M.label = 1;
|
|
5193
5193
|
case 1:
|
|
5194
|
-
return M.trys.push([1, 5, , 6]), !(0, A.validateToken)(C) || (0, A.invalidateToken)(C) ? (console.log("HEIMDALL: No valid token, fetching token"), p = o(d, C,
|
|
5194
|
+
return M.trys.push([1, 5, , 6]), !(0, A.validateToken)(C) || (0, A.invalidateToken)(C) ? (console.log("HEIMDALL: No valid token, fetching token"), p = o(d, C, h, B), [4, (0, r.performAxiosCall)(p)]) : [3, 3];
|
|
5195
5195
|
case 2:
|
|
5196
5196
|
return Q = M.sent(), [2, {
|
|
5197
5197
|
atToken: (b = Q == null ? void 0 : Q.data.at) === null || b === void 0 ? void 0 : b.token,
|
|
@@ -5212,13 +5212,13 @@ function vp() {
|
|
|
5212
5212
|
});
|
|
5213
5213
|
};
|
|
5214
5214
|
Tr.getAccessToken = c;
|
|
5215
|
-
var g = function(I, d, C,
|
|
5215
|
+
var g = function(I, d, C, h, B, p) {
|
|
5216
5216
|
return e(void 0, void 0, void 0, function() {
|
|
5217
5217
|
var Q, v, b, y, m, x, M;
|
|
5218
5218
|
return t(this, function(F) {
|
|
5219
5219
|
switch (F.label) {
|
|
5220
5220
|
case 0:
|
|
5221
|
-
Q = i(I, C,
|
|
5221
|
+
Q = i(I, C, h, B, p), F.label = 1;
|
|
5222
5222
|
case 1:
|
|
5223
5223
|
return F.trys.push([1, 3, , 4]), [4, (0, r.performAxiosCall)(Q)];
|
|
5224
5224
|
case 2:
|
|
@@ -5237,13 +5237,13 @@ function vp() {
|
|
|
5237
5237
|
});
|
|
5238
5238
|
};
|
|
5239
5239
|
Tr.getLoginToken = g;
|
|
5240
|
-
var E = function(I, d, C,
|
|
5240
|
+
var E = function(I, d, C, h, B) {
|
|
5241
5241
|
return e(void 0, void 0, void 0, function() {
|
|
5242
5242
|
var p, Q, v;
|
|
5243
5243
|
return t(this, function(b) {
|
|
5244
5244
|
switch (b.label) {
|
|
5245
5245
|
case 0:
|
|
5246
|
-
return b.trys.push([0, 2, , 3]), console.log("ERROR debug: in getTenantLoginCode:",
|
|
5246
|
+
return b.trys.push([0, 2, , 3]), console.log("ERROR debug: in getTenantLoginCode:", B), p = l(d, C, h, B), [4, (0, r.performAxiosCall)(p)];
|
|
5247
5247
|
case 1:
|
|
5248
5248
|
return Q = b.sent(), [2, Q == null ? void 0 : Q.data.code];
|
|
5249
5249
|
case 2:
|
|
@@ -5257,13 +5257,13 @@ function vp() {
|
|
|
5257
5257
|
Tr.getTenantLoginCode = E;
|
|
5258
5258
|
var f = function(I, d, C) {
|
|
5259
5259
|
return C === void 0 && (C = 0), e(void 0, void 0, void 0, function() {
|
|
5260
|
-
var
|
|
5260
|
+
var h, B, p;
|
|
5261
5261
|
return t(this, function(Q) {
|
|
5262
5262
|
switch (Q.label) {
|
|
5263
5263
|
case 0:
|
|
5264
|
-
return Q.trys.push([0, 2, , 5]),
|
|
5264
|
+
return Q.trys.push([0, 2, , 5]), h = s(I, d), [4, (0, r.performAxiosCall)(h)];
|
|
5265
5265
|
case 1:
|
|
5266
|
-
return
|
|
5266
|
+
return B = Q.sent(), [2, B == null ? void 0 : B.status];
|
|
5267
5267
|
case 2:
|
|
5268
5268
|
return p = Q.sent(), C < 2 ? [4, f(I, d, C + 1)] : [3, 4];
|
|
5269
5269
|
case 3:
|
|
@@ -5393,8 +5393,8 @@ var ZE;
|
|
|
5393
5393
|
function bp() {
|
|
5394
5394
|
if (ZE) return ua;
|
|
5395
5395
|
ZE = 1;
|
|
5396
|
-
var e = qe && qe.__awaiter || function(I, d, C,
|
|
5397
|
-
function
|
|
5396
|
+
var e = qe && qe.__awaiter || function(I, d, C, h) {
|
|
5397
|
+
function B(p) {
|
|
5398
5398
|
return p instanceof C ? p : new C(function(Q) {
|
|
5399
5399
|
Q(p);
|
|
5400
5400
|
});
|
|
@@ -5402,28 +5402,28 @@ function bp() {
|
|
|
5402
5402
|
return new (C || (C = Promise))(function(p, Q) {
|
|
5403
5403
|
function v(m) {
|
|
5404
5404
|
try {
|
|
5405
|
-
y(
|
|
5405
|
+
y(h.next(m));
|
|
5406
5406
|
} catch (x) {
|
|
5407
5407
|
Q(x);
|
|
5408
5408
|
}
|
|
5409
5409
|
}
|
|
5410
5410
|
function b(m) {
|
|
5411
5411
|
try {
|
|
5412
|
-
y(
|
|
5412
|
+
y(h.throw(m));
|
|
5413
5413
|
} catch (x) {
|
|
5414
5414
|
Q(x);
|
|
5415
5415
|
}
|
|
5416
5416
|
}
|
|
5417
5417
|
function y(m) {
|
|
5418
|
-
m.done ? p(m.value) :
|
|
5418
|
+
m.done ? p(m.value) : B(m.value).then(v, b);
|
|
5419
5419
|
}
|
|
5420
|
-
y((
|
|
5420
|
+
y((h = h.apply(I, d || [])).next());
|
|
5421
5421
|
});
|
|
5422
5422
|
}, t = qe && qe.__generator || function(I, d) {
|
|
5423
5423
|
var C = { label: 0, sent: function() {
|
|
5424
5424
|
if (p[0] & 1) throw p[1];
|
|
5425
5425
|
return p[1];
|
|
5426
|
-
}, trys: [], ops: [] },
|
|
5426
|
+
}, trys: [], ops: [] }, h, B, p, Q;
|
|
5427
5427
|
return Q = { next: v(0), throw: v(1), return: v(2) }, typeof Symbol == "function" && (Q[Symbol.iterator] = function() {
|
|
5428
5428
|
return this;
|
|
5429
5429
|
}), Q;
|
|
@@ -5433,10 +5433,10 @@ function bp() {
|
|
|
5433
5433
|
};
|
|
5434
5434
|
}
|
|
5435
5435
|
function b(y) {
|
|
5436
|
-
if (
|
|
5436
|
+
if (h) throw new TypeError("Generator is already executing.");
|
|
5437
5437
|
for (; Q && (Q = 0, y[0] && (C = 0)), C; ) try {
|
|
5438
|
-
if (
|
|
5439
|
-
switch (
|
|
5438
|
+
if (h = 1, B && (p = y[0] & 2 ? B.return : y[0] ? B.throw || ((p = B.return) && p.call(B), 0) : B.next) && !(p = p.call(B, y[1])).done) return p;
|
|
5439
|
+
switch (B = 0, p && (y = [y[0] & 2, p.value]), y[0]) {
|
|
5440
5440
|
case 0:
|
|
5441
5441
|
case 1:
|
|
5442
5442
|
p = y;
|
|
@@ -5444,7 +5444,7 @@ function bp() {
|
|
|
5444
5444
|
case 4:
|
|
5445
5445
|
return C.label++, { value: y[1], done: !1 };
|
|
5446
5446
|
case 5:
|
|
5447
|
-
C.label++,
|
|
5447
|
+
C.label++, B = y[1], y = [0];
|
|
5448
5448
|
continue;
|
|
5449
5449
|
case 7:
|
|
5450
5450
|
y = C.ops.pop(), C.trys.pop();
|
|
@@ -5471,16 +5471,16 @@ function bp() {
|
|
|
5471
5471
|
}
|
|
5472
5472
|
y = d.call(I, C);
|
|
5473
5473
|
} catch (m) {
|
|
5474
|
-
y = [6, m],
|
|
5474
|
+
y = [6, m], B = 0;
|
|
5475
5475
|
} finally {
|
|
5476
|
-
|
|
5476
|
+
h = p = 0;
|
|
5477
5477
|
}
|
|
5478
5478
|
if (y[0] & 5) throw y[1];
|
|
5479
5479
|
return { value: y[0] ? y[1] : void 0, done: !0 };
|
|
5480
5480
|
}
|
|
5481
5481
|
};
|
|
5482
5482
|
Object.defineProperty(ua, "__esModule", { value: !0 }), ua.fetchAccessToken = void 0;
|
|
5483
|
-
var n = vp(), r = Ao, A = mt, o = jc, i, s, a, l = function(I, d, C,
|
|
5483
|
+
var n = vp(), r = Ao, A = mt, o = jc, i, s, a, l = function(I, d, C, h, B, p) {
|
|
5484
5484
|
return p === void 0 && (p = r.APP_UI.DEFAULT), e(void 0, void 0, void 0, function() {
|
|
5485
5485
|
var Q, v, b, y, m, x, M, F, J;
|
|
5486
5486
|
return t(this, function(z) {
|
|
@@ -5488,21 +5488,21 @@ function bp() {
|
|
|
5488
5488
|
case 0:
|
|
5489
5489
|
Q = 2, z.label = 1;
|
|
5490
5490
|
case 1:
|
|
5491
|
-
return z.trys.push([1, 7, , 12]), console.log("ERROR debug: in login:", p,
|
|
5491
|
+
return z.trys.push([1, 7, , 12]), console.log("ERROR debug: in login:", p, h), v = void 0, B ? [4, B()] : [3, 3];
|
|
5492
5492
|
case 2:
|
|
5493
5493
|
return v = z.sent(), [3, 5];
|
|
5494
5494
|
case 3:
|
|
5495
|
-
return [4, (0, n.getTenantLoginCode)(r.CONFIG_HIVER, I, d,
|
|
5495
|
+
return [4, (0, n.getTenantLoginCode)(r.CONFIG_HIVER, I, d, h, p)];
|
|
5496
5496
|
case 4:
|
|
5497
5497
|
v = z.sent(), z.label = 5;
|
|
5498
5498
|
case 5:
|
|
5499
|
-
return [4, (0, n.getLoginToken)(v, r.CONFIG_HIVER, I,
|
|
5499
|
+
return [4, (0, n.getLoginToken)(v, r.CONFIG_HIVER, I, h, d.userId, d.usergroupId)];
|
|
5500
5500
|
case 6:
|
|
5501
5501
|
return b = z.sent(), y = b.userId, m = b.userGroupId, x = b.atToken, M = b.expiryTime, (0, A.setTokenAndExpiry)(x, M), (0, A.setUserDetails)(y, m), [3, 12];
|
|
5502
5502
|
case 7:
|
|
5503
5503
|
F = z.sent(), console.log("ERROR debug: in error login:", F, p), J = C, z.label = 8;
|
|
5504
5504
|
case 8:
|
|
5505
|
-
return J < Q ? [4, l(I, d, J + 1,
|
|
5505
|
+
return J < Q ? [4, l(I, d, J + 1, h, B, p)] : [3, 11];
|
|
5506
5506
|
case 9:
|
|
5507
5507
|
z.sent(), z.label = 10;
|
|
5508
5508
|
case 10:
|
|
@@ -5514,7 +5514,7 @@ function bp() {
|
|
|
5514
5514
|
}
|
|
5515
5515
|
});
|
|
5516
5516
|
});
|
|
5517
|
-
}, c = function(I, d, C,
|
|
5517
|
+
}, c = function(I, d, C, h, B) {
|
|
5518
5518
|
return e(void 0, void 0, void 0, function() {
|
|
5519
5519
|
var p, Q, v, b;
|
|
5520
5520
|
return t(this, function(y) {
|
|
@@ -5524,7 +5524,7 @@ function bp() {
|
|
|
5524
5524
|
return setTimeout(m, I);
|
|
5525
5525
|
})] : [3, 3];
|
|
5526
5526
|
case 1:
|
|
5527
|
-
return y.sent(), d += I, I * 2 <= r.MAX_BACKOFF_LIMIT ? I *= 2 : I = r.MAX_BACKOFF_LIMIT, console.log("Heimdall: Fetch token post doubling conflict retry delay", I), p = C.retryDelay, Q = C.configs, v = C.apiParams, b = C.appUI, [4, g(p, I, d, Q, v,
|
|
5527
|
+
return y.sent(), d += I, I * 2 <= r.MAX_BACKOFF_LIMIT ? I *= 2 : I = r.MAX_BACKOFF_LIMIT, console.log("Heimdall: Fetch token post doubling conflict retry delay", I), p = C.retryDelay, Q = C.configs, v = C.apiParams, b = C.appUI, [4, g(p, I, d, Q, v, h, B, b)];
|
|
5528
5528
|
case 2:
|
|
5529
5529
|
y.sent(), y.label = 3;
|
|
5530
5530
|
case 3:
|
|
@@ -5532,21 +5532,21 @@ function bp() {
|
|
|
5532
5532
|
}
|
|
5533
5533
|
});
|
|
5534
5534
|
});
|
|
5535
|
-
}, g = function(I, d, C,
|
|
5535
|
+
}, g = function(I, d, C, h, B, p, Q, v, b) {
|
|
5536
5536
|
return v === void 0 && (v = "default"), e(void 0, void 0, void 0, function() {
|
|
5537
5537
|
var y, m, x, M, F, J, z, P, ie, Ee, Qe, Te, oe, U;
|
|
5538
5538
|
return t(this, function(j) {
|
|
5539
5539
|
switch (j.label) {
|
|
5540
5540
|
case 0:
|
|
5541
|
-
return j.trys.push([0, 2, , 12]), console.log("Heimdall: Interval Set on fetch token in fetchAndSaveToken:", a), [4, (0, n.getAccessToken)(r.CONFIG_HIVER,
|
|
5541
|
+
return j.trys.push([0, 2, , 12]), console.log("Heimdall: Interval Set on fetch token in fetchAndSaveToken:", a), [4, (0, n.getAccessToken)(r.CONFIG_HIVER, h, B, p, v)];
|
|
5542
5542
|
case 1:
|
|
5543
5543
|
return y = j.sent(), m = y.atToken, x = y.expiryTime, M = y.userId, F = y.userGroupId, m && x && (0, A.setTokenAndExpiry)(m, x), M && F && (0, A.setUserDetails)(M, F), I = r.INITIAL_RETRY_DELAY, d = r.INITIAL_RETRY_DELAY, C = 0, [3, 12];
|
|
5544
5544
|
case 2:
|
|
5545
|
-
return J = j.sent(), console.log("ERROR: Heimdall fetch token", J), ((ie = J.response) === null || ie === void 0 ? void 0 : ie.status) === 401 || ((Ee = J.request) === null || Ee === void 0 ? void 0 : Ee.status) === 401 ? (z = 1, [4, l(
|
|
5545
|
+
return J = j.sent(), console.log("ERROR: Heimdall fetch token", J), ((ie = J.response) === null || ie === void 0 ? void 0 : ie.status) === 401 || ((Ee = J.request) === null || Ee === void 0 ? void 0 : Ee.status) === 401 ? (z = 1, [4, l(h, B, z, p, Q, b)]) : [3, 4];
|
|
5546
5546
|
case 3:
|
|
5547
5547
|
return j.sent(), [3, 11];
|
|
5548
5548
|
case 4:
|
|
5549
|
-
return ((Qe = J.response) === null || Qe === void 0 ? void 0 : Qe.status) === 409 || ((Te = J.request) === null || Te === void 0 ? void 0 : Te.status) === 409 ? (console.log("Heimdall: Fetching token post 409 in fetch And Save Token"), P = { retryDelay: I, configs:
|
|
5549
|
+
return ((Qe = J.response) === null || Qe === void 0 ? void 0 : Qe.status) === 409 || ((Te = J.request) === null || Te === void 0 ? void 0 : Te.status) === 409 ? (console.log("Heimdall: Fetching token post 409 in fetch And Save Token"), P = { retryDelay: I, configs: h, apiParams: B, appUI: b }, [4, c(d, C, P, p, Q)]) : [3, 6];
|
|
5550
5550
|
case 5:
|
|
5551
5551
|
if (j.sent(), C >= r.MAX_CONFLICT_RETRY_DELAY)
|
|
5552
5552
|
throw J;
|
|
@@ -5559,7 +5559,7 @@ function bp() {
|
|
|
5559
5559
|
return setTimeout(_, I);
|
|
5560
5560
|
})] : [3, 10];
|
|
5561
5561
|
case 8:
|
|
5562
|
-
return j.sent(), I *= 2, console.log("Heimdall: Fetch token post doubling retry delay", I), [4, g(I, d, C,
|
|
5562
|
+
return j.sent(), I *= 2, console.log("Heimdall: Fetch token post doubling retry delay", I), [4, g(I, d, C, h, B, p, Q, b)];
|
|
5563
5563
|
case 9:
|
|
5564
5564
|
return j.sent(), [3, 11];
|
|
5565
5565
|
case 10:
|
|
@@ -5571,15 +5571,15 @@ function bp() {
|
|
|
5571
5571
|
}
|
|
5572
5572
|
});
|
|
5573
5573
|
});
|
|
5574
|
-
}, E = function(I, d, C,
|
|
5575
|
-
return C === void 0 && (C = r.INITIAL_RETRY_DELAY),
|
|
5574
|
+
}, E = function(I, d, C, h, B, p, Q, v) {
|
|
5575
|
+
return C === void 0 && (C = r.INITIAL_RETRY_DELAY), h === void 0 && (h = r.INITIAL_RETRY_DELAY), e(void 0, void 0, void 0, function() {
|
|
5576
5576
|
var b, y, m;
|
|
5577
5577
|
return t(this, function(x) {
|
|
5578
5578
|
switch (x.label) {
|
|
5579
5579
|
case 0:
|
|
5580
5580
|
return x.trys.push([0, 4, , 5]), b = (0, A.isTokenInExpiryWindow)(), b ? (y = (0, A.getRandomDelay)(), [4, (0, A.introduceDelay)(y)]) : [3, 3];
|
|
5581
5581
|
case 1:
|
|
5582
|
-
return x.sent(), console.log("Heimdall: Fetching token - in expiry window"), [4, g(C,
|
|
5582
|
+
return x.sent(), console.log("Heimdall: Fetching token - in expiry window"), [4, g(C, h, B, I, d, p, Q, v)];
|
|
5583
5583
|
case 2:
|
|
5584
5584
|
x.sent(), x.label = 3;
|
|
5585
5585
|
case 3:
|
|
@@ -5591,7 +5591,7 @@ function bp() {
|
|
|
5591
5591
|
}
|
|
5592
5592
|
});
|
|
5593
5593
|
});
|
|
5594
|
-
}, f = function(I, d, C,
|
|
5594
|
+
}, f = function(I, d, C, h, B, p, Q) {
|
|
5595
5595
|
return e(void 0, void 0, void 0, function() {
|
|
5596
5596
|
var v, b, y, m, x, M;
|
|
5597
5597
|
return t(this, function(F) {
|
|
@@ -5599,16 +5599,16 @@ function bp() {
|
|
|
5599
5599
|
case 0:
|
|
5600
5600
|
i = I, s = d, v = r.INITIAL_RETRY_DELAY, b = r.INITIAL_RETRY_DELAY, y = 0, m = (0, A.getConfig)(i, s), console.log("Instance: Fetch Call"), F.label = 1;
|
|
5601
5601
|
case 1:
|
|
5602
|
-
return F.trys.push([1, 3, , 4]), [4, g(v, b, y, m, C,
|
|
5602
|
+
return F.trys.push([1, 3, , 4]), [4, g(v, b, y, m, C, h, B, p, Q)];
|
|
5603
5603
|
case 2:
|
|
5604
5604
|
return F.sent(), console.log("Heimdall: Interval Set on fetch token when fetch token is called:", a), clearInterval(a), a = setInterval(function() {
|
|
5605
|
-
return E(m, C, r.INITIAL_RETRY_DELAY, r.INITIAL_RETRY_DELAY, 0,
|
|
5605
|
+
return E(m, C, r.INITIAL_RETRY_DELAY, r.INITIAL_RETRY_DELAY, 0, h, B, Q);
|
|
5606
5606
|
}, r.REFETCH_CHECK_DELAY), x = function() {
|
|
5607
5607
|
return e(void 0, void 0, void 0, function() {
|
|
5608
5608
|
return t(this, function(J) {
|
|
5609
5609
|
switch (J.label) {
|
|
5610
5610
|
case 0:
|
|
5611
|
-
return [4, E(m, C, r.INITIAL_RETRY_DELAY, r.INITIAL_RETRY_DELAY, 0,
|
|
5611
|
+
return [4, E(m, C, r.INITIAL_RETRY_DELAY, r.INITIAL_RETRY_DELAY, 0, h, B, Q)];
|
|
5612
5612
|
case 1:
|
|
5613
5613
|
return J.sent(), [2];
|
|
5614
5614
|
}
|
|
@@ -5631,29 +5631,29 @@ function yp() {
|
|
|
5631
5631
|
$E = 1;
|
|
5632
5632
|
var e = qe && qe.__assign || function() {
|
|
5633
5633
|
return e = Object.assign || function(d) {
|
|
5634
|
-
for (var C,
|
|
5635
|
-
C = arguments[
|
|
5634
|
+
for (var C, h = 1, B = arguments.length; h < B; h++) {
|
|
5635
|
+
C = arguments[h];
|
|
5636
5636
|
for (var p in C) Object.prototype.hasOwnProperty.call(C, p) && (d[p] = C[p]);
|
|
5637
5637
|
}
|
|
5638
5638
|
return d;
|
|
5639
5639
|
}, e.apply(this, arguments);
|
|
5640
|
-
}, t = qe && qe.__awaiter || function(d, C,
|
|
5640
|
+
}, t = qe && qe.__awaiter || function(d, C, h, B) {
|
|
5641
5641
|
function p(Q) {
|
|
5642
|
-
return Q instanceof
|
|
5642
|
+
return Q instanceof h ? Q : new h(function(v) {
|
|
5643
5643
|
v(Q);
|
|
5644
5644
|
});
|
|
5645
5645
|
}
|
|
5646
|
-
return new (
|
|
5646
|
+
return new (h || (h = Promise))(function(Q, v) {
|
|
5647
5647
|
function b(x) {
|
|
5648
5648
|
try {
|
|
5649
|
-
m(
|
|
5649
|
+
m(B.next(x));
|
|
5650
5650
|
} catch (M) {
|
|
5651
5651
|
v(M);
|
|
5652
5652
|
}
|
|
5653
5653
|
}
|
|
5654
5654
|
function y(x) {
|
|
5655
5655
|
try {
|
|
5656
|
-
m(
|
|
5656
|
+
m(B.throw(x));
|
|
5657
5657
|
} catch (M) {
|
|
5658
5658
|
v(M);
|
|
5659
5659
|
}
|
|
@@ -5661,13 +5661,13 @@ function yp() {
|
|
|
5661
5661
|
function m(x) {
|
|
5662
5662
|
x.done ? Q(x.value) : p(x.value).then(b, y);
|
|
5663
5663
|
}
|
|
5664
|
-
m((
|
|
5664
|
+
m((B = B.apply(d, C || [])).next());
|
|
5665
5665
|
});
|
|
5666
5666
|
}, n = qe && qe.__generator || function(d, C) {
|
|
5667
|
-
var
|
|
5667
|
+
var h = { label: 0, sent: function() {
|
|
5668
5668
|
if (Q[0] & 1) throw Q[1];
|
|
5669
5669
|
return Q[1];
|
|
5670
|
-
}, trys: [], ops: [] },
|
|
5670
|
+
}, trys: [], ops: [] }, B, p, Q, v;
|
|
5671
5671
|
return v = { next: b(0), throw: b(1), return: b(2) }, typeof Symbol == "function" && (v[Symbol.iterator] = function() {
|
|
5672
5672
|
return this;
|
|
5673
5673
|
}), v;
|
|
@@ -5677,47 +5677,47 @@ function yp() {
|
|
|
5677
5677
|
};
|
|
5678
5678
|
}
|
|
5679
5679
|
function y(m) {
|
|
5680
|
-
if (
|
|
5681
|
-
for (; v && (v = 0, m[0] && (
|
|
5682
|
-
if (
|
|
5680
|
+
if (B) throw new TypeError("Generator is already executing.");
|
|
5681
|
+
for (; v && (v = 0, m[0] && (h = 0)), h; ) try {
|
|
5682
|
+
if (B = 1, p && (Q = m[0] & 2 ? p.return : m[0] ? p.throw || ((Q = p.return) && Q.call(p), 0) : p.next) && !(Q = Q.call(p, m[1])).done) return Q;
|
|
5683
5683
|
switch (p = 0, Q && (m = [m[0] & 2, Q.value]), m[0]) {
|
|
5684
5684
|
case 0:
|
|
5685
5685
|
case 1:
|
|
5686
5686
|
Q = m;
|
|
5687
5687
|
break;
|
|
5688
5688
|
case 4:
|
|
5689
|
-
return
|
|
5689
|
+
return h.label++, { value: m[1], done: !1 };
|
|
5690
5690
|
case 5:
|
|
5691
|
-
|
|
5691
|
+
h.label++, p = m[1], m = [0];
|
|
5692
5692
|
continue;
|
|
5693
5693
|
case 7:
|
|
5694
|
-
m =
|
|
5694
|
+
m = h.ops.pop(), h.trys.pop();
|
|
5695
5695
|
continue;
|
|
5696
5696
|
default:
|
|
5697
|
-
if (Q =
|
|
5698
|
-
|
|
5697
|
+
if (Q = h.trys, !(Q = Q.length > 0 && Q[Q.length - 1]) && (m[0] === 6 || m[0] === 2)) {
|
|
5698
|
+
h = 0;
|
|
5699
5699
|
continue;
|
|
5700
5700
|
}
|
|
5701
5701
|
if (m[0] === 3 && (!Q || m[1] > Q[0] && m[1] < Q[3])) {
|
|
5702
|
-
|
|
5702
|
+
h.label = m[1];
|
|
5703
5703
|
break;
|
|
5704
5704
|
}
|
|
5705
|
-
if (m[0] === 6 &&
|
|
5706
|
-
|
|
5705
|
+
if (m[0] === 6 && h.label < Q[1]) {
|
|
5706
|
+
h.label = Q[1], Q = m;
|
|
5707
5707
|
break;
|
|
5708
5708
|
}
|
|
5709
|
-
if (Q &&
|
|
5710
|
-
|
|
5709
|
+
if (Q && h.label < Q[2]) {
|
|
5710
|
+
h.label = Q[2], h.ops.push(m);
|
|
5711
5711
|
break;
|
|
5712
5712
|
}
|
|
5713
|
-
Q[2] &&
|
|
5713
|
+
Q[2] && h.ops.pop(), h.trys.pop();
|
|
5714
5714
|
continue;
|
|
5715
5715
|
}
|
|
5716
|
-
m = C.call(d,
|
|
5716
|
+
m = C.call(d, h);
|
|
5717
5717
|
} catch (x) {
|
|
5718
5718
|
m = [6, x], p = 0;
|
|
5719
5719
|
} finally {
|
|
5720
|
-
|
|
5720
|
+
B = Q = 0;
|
|
5721
5721
|
}
|
|
5722
5722
|
if (m[0] & 5) throw m[1];
|
|
5723
5723
|
return { value: m[0] ? m[1] : void 0, done: !0 };
|
|
@@ -5725,19 +5725,19 @@ function yp() {
|
|
|
5725
5725
|
};
|
|
5726
5726
|
Object.defineProperty(lo, "__esModule", { value: !0 }), lo.hiverAxiosCall = lo.performAxiosCall = void 0;
|
|
5727
5727
|
var r = Qp, A = mt, o = bp(), i = iA, s = Ao, a, l = 2, c = function(d, C) {
|
|
5728
|
-
var
|
|
5729
|
-
d.formData ? d.formData.append("_csrf_token",
|
|
5728
|
+
var h = C.fetchCsrfToken();
|
|
5729
|
+
d.formData ? d.formData.append("_csrf_token", h) : (d.data = d.data || {}, d.data._csrf_token = h);
|
|
5730
5730
|
}, g = function(d, C) {
|
|
5731
|
-
var
|
|
5732
|
-
!d.method || d.method.toLowerCase() === "get" ?
|
|
5733
|
-
var
|
|
5734
|
-
return
|
|
5731
|
+
var h = {};
|
|
5732
|
+
!d.method || d.method.toLowerCase() === "get" ? h = { params: d.params ? d.params : d.data } : h = d.params ? { params: d, data: d.data } : { data: d.data };
|
|
5733
|
+
var B = e(e({ method: d.method, url: "".concat(d.root_url).concat(d.url), headers: d.headers }, h), { withCredentials: C, responseType: (d == null ? void 0 : d.responseType) || "" });
|
|
5734
|
+
return B;
|
|
5735
5735
|
};
|
|
5736
5736
|
function E(d, C) {
|
|
5737
5737
|
return C === void 0 && (C = !0), t(this, void 0, void 0, function() {
|
|
5738
|
-
var
|
|
5739
|
-
return n(this, function(
|
|
5740
|
-
return
|
|
5738
|
+
var h;
|
|
5739
|
+
return n(this, function(B) {
|
|
5740
|
+
return h = g(d, C), [2, (0, r.default)(h).then(function(p) {
|
|
5741
5741
|
return p;
|
|
5742
5742
|
}).catch(function(p) {
|
|
5743
5743
|
throw p;
|
|
@@ -5746,13 +5746,13 @@ function yp() {
|
|
|
5746
5746
|
});
|
|
5747
5747
|
}
|
|
5748
5748
|
lo.performAxiosCall = E;
|
|
5749
|
-
function f(d, C,
|
|
5749
|
+
function f(d, C, h) {
|
|
5750
5750
|
return t(this, void 0, void 0, function() {
|
|
5751
|
-
var
|
|
5751
|
+
var B, p, Q;
|
|
5752
5752
|
return n(this, function(v) {
|
|
5753
5753
|
switch (v.label) {
|
|
5754
5754
|
case 0:
|
|
5755
|
-
return v.trys.push([0, 6, , 8]), d.authTokenFetchingInProgress ? [3, 2] : (d.authTokenFetchingInProgress = !0,
|
|
5755
|
+
return v.trys.push([0, 6, , 8]), d.authTokenFetchingInProgress ? [3, 2] : (d.authTokenFetchingInProgress = !0, B = d.appEnv, p = d.tier, [4, (0, o.fetchAccessToken)(B, p, C, d.tenantPlatform, d.getTokenForLogin, h)]);
|
|
5756
5756
|
case 1:
|
|
5757
5757
|
return v.sent(), d.authTokenFetchingInProgress = !1, [3, 5];
|
|
5758
5758
|
case 2:
|
|
@@ -5760,13 +5760,13 @@ function yp() {
|
|
|
5760
5760
|
return setTimeout(b, 100);
|
|
5761
5761
|
})];
|
|
5762
5762
|
case 3:
|
|
5763
|
-
return v.sent(), console.log("Heimdall: Retrying fetchAccessToken after 100ms..."), [4, f(d, C,
|
|
5763
|
+
return v.sent(), console.log("Heimdall: Retrying fetchAccessToken after 100ms..."), [4, f(d, C, h)];
|
|
5764
5764
|
case 4:
|
|
5765
5765
|
v.sent(), v.label = 5;
|
|
5766
5766
|
case 5:
|
|
5767
5767
|
return [3, 8];
|
|
5768
5768
|
case 6:
|
|
5769
|
-
return Q = v.sent(), console.log("Error while fetching Auth Token :", Q), d.authTokenFetchingInProgress = !1, [4, f(d, C,
|
|
5769
|
+
return Q = v.sent(), console.log("Error while fetching Auth Token :", Q), d.authTokenFetchingInProgress = !1, [4, f(d, C, h)];
|
|
5770
5770
|
case 7:
|
|
5771
5771
|
return v.sent(), [3, 8];
|
|
5772
5772
|
case 8:
|
|
@@ -5775,29 +5775,29 @@ function yp() {
|
|
|
5775
5775
|
});
|
|
5776
5776
|
});
|
|
5777
5777
|
}
|
|
5778
|
-
function I(d, C,
|
|
5778
|
+
function I(d, C, h, B, p) {
|
|
5779
5779
|
var Q, v;
|
|
5780
5780
|
return p === void 0 && (p = 0), t(this, void 0, void 0, function() {
|
|
5781
5781
|
var b, y, m, x, M, F, J;
|
|
5782
5782
|
return n(this, function(z) {
|
|
5783
5783
|
switch (z.label) {
|
|
5784
5784
|
case 0:
|
|
5785
|
-
if (z.trys.push([0, 4, , 5]), !(
|
|
5785
|
+
if (z.trys.push([0, 4, , 5]), !(h.getToken && !(0, A.hasValidToken)(C))) return [3, 2];
|
|
5786
5786
|
if (b = d.appEnv, y = d.tier, !b || !y)
|
|
5787
5787
|
throw Error("appEnv or tier missing : ".concat(b, "/").concat(y));
|
|
5788
5788
|
return "userId" in C && "usergroupId" in C ? (m = {
|
|
5789
5789
|
userId: C.userId,
|
|
5790
5790
|
usergroupId: C.usergroupId
|
|
5791
|
-
}, [4, f(d, m,
|
|
5791
|
+
}, [4, f(d, m, B)]) : [3, 2];
|
|
5792
5792
|
case 1:
|
|
5793
5793
|
z.sent(), z.label = 2;
|
|
5794
5794
|
case 2:
|
|
5795
|
-
return d.csrfToken && c(C,
|
|
5795
|
+
return d.csrfToken && c(C, h), x = d.tenantPlatform === s.TENANT_PLATFORM.HIVERWEB ? s.TENANT_PLATFORM.HIVERWEB : s.TENANT_PLATFORM.GMAIL, C.headers = e(e({}, C.headers), { "x-hiver-tenant": x, "x-hiver-userid": (0, i.getItemFromStorage)("hiverAuthUserId") || "0", "x-hiver-usergroupid": (0, i.getItemFromStorage)("hiverAuthUserGroupId") || "0" }), h.getToken && (a = (0, i.getItemFromStorage)("hiverAuthToken") || "", C.headers = e(e({}, C.headers), { Authorization: "Bearer ".concat(a) })), console.log("Performing axios call for:", C), [4, E(C, d.withCredentials)];
|
|
5796
5796
|
case 3:
|
|
5797
5797
|
return M = z.sent(), C.onSuccess && C.onSuccess(M), [2, M];
|
|
5798
5798
|
case 4:
|
|
5799
5799
|
if (F = z.sent(), J = ((Q = F.response) === null || Q === void 0 ? void 0 : Q.status) === 403 || ((v = F.request) === null || v === void 0 ? void 0 : v.status) === 403, p < l && J)
|
|
5800
|
-
return (0, A.expireToken)(), [2, I(d, C,
|
|
5800
|
+
return (0, A.expireToken)(), [2, I(d, C, h, B, p + 1)];
|
|
5801
5801
|
if (p >= l && J || !J)
|
|
5802
5802
|
throw C.onFail && C.onFail(F), console.log("ERROR: Reached make Axios", F), F;
|
|
5803
5803
|
return [3, 5];
|
|
@@ -6065,39 +6065,39 @@ function kx() {
|
|
|
6065
6065
|
if (eI) return hA;
|
|
6066
6066
|
eI = 1;
|
|
6067
6067
|
var e = qe && qe.__awaiter || function(E, f, I, d) {
|
|
6068
|
-
function C(
|
|
6069
|
-
return
|
|
6070
|
-
h
|
|
6068
|
+
function C(h) {
|
|
6069
|
+
return h instanceof I ? h : new I(function(B) {
|
|
6070
|
+
B(h);
|
|
6071
6071
|
});
|
|
6072
6072
|
}
|
|
6073
|
-
return new (I || (I = Promise))(function(
|
|
6073
|
+
return new (I || (I = Promise))(function(h, B) {
|
|
6074
6074
|
function p(b) {
|
|
6075
6075
|
try {
|
|
6076
6076
|
v(d.next(b));
|
|
6077
6077
|
} catch (y) {
|
|
6078
|
-
|
|
6078
|
+
B(y);
|
|
6079
6079
|
}
|
|
6080
6080
|
}
|
|
6081
6081
|
function Q(b) {
|
|
6082
6082
|
try {
|
|
6083
6083
|
v(d.throw(b));
|
|
6084
6084
|
} catch (y) {
|
|
6085
|
-
|
|
6085
|
+
B(y);
|
|
6086
6086
|
}
|
|
6087
6087
|
}
|
|
6088
6088
|
function v(b) {
|
|
6089
|
-
b.done ?
|
|
6089
|
+
b.done ? h(b.value) : C(b.value).then(p, Q);
|
|
6090
6090
|
}
|
|
6091
6091
|
v((d = d.apply(E, f || [])).next());
|
|
6092
6092
|
});
|
|
6093
6093
|
}, t = qe && qe.__generator || function(E, f) {
|
|
6094
6094
|
var I = { label: 0, sent: function() {
|
|
6095
|
-
if (
|
|
6096
|
-
return
|
|
6097
|
-
}, trys: [], ops: [] }, d, C,
|
|
6098
|
-
return
|
|
6095
|
+
if (h[0] & 1) throw h[1];
|
|
6096
|
+
return h[1];
|
|
6097
|
+
}, trys: [], ops: [] }, d, C, h, B;
|
|
6098
|
+
return B = { next: p(0), throw: p(1), return: p(2) }, typeof Symbol == "function" && (B[Symbol.iterator] = function() {
|
|
6099
6099
|
return this;
|
|
6100
|
-
}),
|
|
6100
|
+
}), B;
|
|
6101
6101
|
function p(v) {
|
|
6102
6102
|
return function(b) {
|
|
6103
6103
|
return Q([v, b]);
|
|
@@ -6105,12 +6105,12 @@ function kx() {
|
|
|
6105
6105
|
}
|
|
6106
6106
|
function Q(v) {
|
|
6107
6107
|
if (d) throw new TypeError("Generator is already executing.");
|
|
6108
|
-
for (;
|
|
6109
|
-
if (d = 1, C && (
|
|
6110
|
-
switch (C = 0,
|
|
6108
|
+
for (; B && (B = 0, v[0] && (I = 0)), I; ) try {
|
|
6109
|
+
if (d = 1, C && (h = v[0] & 2 ? C.return : v[0] ? C.throw || ((h = C.return) && h.call(C), 0) : C.next) && !(h = h.call(C, v[1])).done) return h;
|
|
6110
|
+
switch (C = 0, h && (v = [v[0] & 2, h.value]), v[0]) {
|
|
6111
6111
|
case 0:
|
|
6112
6112
|
case 1:
|
|
6113
|
-
|
|
6113
|
+
h = v;
|
|
6114
6114
|
break;
|
|
6115
6115
|
case 4:
|
|
6116
6116
|
return I.label++, { value: v[1], done: !1 };
|
|
@@ -6121,30 +6121,30 @@ function kx() {
|
|
|
6121
6121
|
v = I.ops.pop(), I.trys.pop();
|
|
6122
6122
|
continue;
|
|
6123
6123
|
default:
|
|
6124
|
-
if (
|
|
6124
|
+
if (h = I.trys, !(h = h.length > 0 && h[h.length - 1]) && (v[0] === 6 || v[0] === 2)) {
|
|
6125
6125
|
I = 0;
|
|
6126
6126
|
continue;
|
|
6127
6127
|
}
|
|
6128
|
-
if (v[0] === 3 && (!
|
|
6128
|
+
if (v[0] === 3 && (!h || v[1] > h[0] && v[1] < h[3])) {
|
|
6129
6129
|
I.label = v[1];
|
|
6130
6130
|
break;
|
|
6131
6131
|
}
|
|
6132
|
-
if (v[0] === 6 && I.label <
|
|
6133
|
-
I.label =
|
|
6132
|
+
if (v[0] === 6 && I.label < h[1]) {
|
|
6133
|
+
I.label = h[1], h = v;
|
|
6134
6134
|
break;
|
|
6135
6135
|
}
|
|
6136
|
-
if (
|
|
6137
|
-
I.label =
|
|
6136
|
+
if (h && I.label < h[2]) {
|
|
6137
|
+
I.label = h[2], I.ops.push(v);
|
|
6138
6138
|
break;
|
|
6139
6139
|
}
|
|
6140
|
-
|
|
6140
|
+
h[2] && I.ops.pop(), I.trys.pop();
|
|
6141
6141
|
continue;
|
|
6142
6142
|
}
|
|
6143
6143
|
v = f.call(E, I);
|
|
6144
6144
|
} catch (b) {
|
|
6145
6145
|
v = [6, b], C = 0;
|
|
6146
6146
|
} finally {
|
|
6147
|
-
d =
|
|
6147
|
+
d = h = 0;
|
|
6148
6148
|
}
|
|
6149
6149
|
if (v[0] & 5) throw v[1];
|
|
6150
6150
|
return { value: v[0] ? v[1] : void 0, done: !0 };
|
|
@@ -6188,24 +6188,24 @@ function kx() {
|
|
|
6188
6188
|
};
|
|
6189
6189
|
}, l = function(E, f, I, d) {
|
|
6190
6190
|
return e(void 0, void 0, void 0, function() {
|
|
6191
|
-
var C,
|
|
6191
|
+
var C, h, B, p, Q, v, b;
|
|
6192
6192
|
return t(this, function(y) {
|
|
6193
6193
|
switch (y.label) {
|
|
6194
6194
|
case 0:
|
|
6195
6195
|
return y.trys.push([0, 4, , 5]), (0, A.validateToken)(I) ? [3, 2] : (console.log("HEIMDALL: No valid token, fetching token"), C = o(f, I, d), [4, (0, r.makeAxiosCall)(C, E)]);
|
|
6196
6196
|
case 1:
|
|
6197
|
-
return
|
|
6198
|
-
atToken: (p =
|
|
6199
|
-
expiryTime: (Q =
|
|
6200
|
-
userId: (v =
|
|
6201
|
-
userGroupId: (b =
|
|
6197
|
+
return h = y.sent(), [2, {
|
|
6198
|
+
atToken: (p = h == null ? void 0 : h.data.at) === null || p === void 0 ? void 0 : p.token,
|
|
6199
|
+
expiryTime: (Q = h == null ? void 0 : h.data.at) === null || Q === void 0 ? void 0 : Q.expires_at,
|
|
6200
|
+
userId: (v = h == null ? void 0 : h.data) === null || v === void 0 ? void 0 : v.user_id,
|
|
6201
|
+
userGroupId: (b = h == null ? void 0 : h.data) === null || b === void 0 ? void 0 : b.usergroup_id
|
|
6202
6202
|
}];
|
|
6203
6203
|
case 2:
|
|
6204
6204
|
return console.log("Heimdall: Valid token already exists"), [2, {}];
|
|
6205
6205
|
case 3:
|
|
6206
6206
|
return [3, 5];
|
|
6207
6207
|
case 4:
|
|
6208
|
-
throw
|
|
6208
|
+
throw B = y.sent(), B;
|
|
6209
6209
|
case 5:
|
|
6210
6210
|
return [2];
|
|
6211
6211
|
}
|
|
@@ -6215,7 +6215,7 @@ function kx() {
|
|
|
6215
6215
|
hA.getAccessToken = l;
|
|
6216
6216
|
var c = function(E, f, I) {
|
|
6217
6217
|
return e(void 0, void 0, void 0, function() {
|
|
6218
|
-
var d, C,
|
|
6218
|
+
var d, C, h, B, p, Q, v;
|
|
6219
6219
|
return t(this, function(b) {
|
|
6220
6220
|
switch (b.label) {
|
|
6221
6221
|
case 0:
|
|
@@ -6224,13 +6224,13 @@ function kx() {
|
|
|
6224
6224
|
return b.trys.push([1, 3, , 4]), [4, (0, r.makeAxiosCall)(d, f)];
|
|
6225
6225
|
case 2:
|
|
6226
6226
|
return C = b.sent(), [2, {
|
|
6227
|
-
userId: (
|
|
6227
|
+
userId: (B = C == null ? void 0 : C.data) === null || B === void 0 ? void 0 : B.user_id,
|
|
6228
6228
|
userGroupId: (p = C == null ? void 0 : C.data) === null || p === void 0 ? void 0 : p.usergroup_id,
|
|
6229
6229
|
atToken: (Q = C == null ? void 0 : C.data.at) === null || Q === void 0 ? void 0 : Q.token,
|
|
6230
6230
|
expiryTime: (v = C == null ? void 0 : C.data.at) === null || v === void 0 ? void 0 : v.expires_at
|
|
6231
6231
|
}];
|
|
6232
6232
|
case 3:
|
|
6233
|
-
throw
|
|
6233
|
+
throw h = b.sent(), h;
|
|
6234
6234
|
case 4:
|
|
6235
6235
|
return [2];
|
|
6236
6236
|
}
|
|
@@ -6240,15 +6240,15 @@ function kx() {
|
|
|
6240
6240
|
hA.getLoginToken = c;
|
|
6241
6241
|
var g = function(E, f, I) {
|
|
6242
6242
|
return e(void 0, void 0, void 0, function() {
|
|
6243
|
-
var d, C,
|
|
6244
|
-
return t(this, function(
|
|
6245
|
-
switch (
|
|
6243
|
+
var d, C, h;
|
|
6244
|
+
return t(this, function(B) {
|
|
6245
|
+
switch (B.label) {
|
|
6246
6246
|
case 0:
|
|
6247
|
-
return
|
|
6247
|
+
return B.trys.push([0, 2, , 3]), console.log("ERROR debug: in getV2loginCode:", I), d = a(f, I), [4, (0, r.makeAxiosCall)(d, E)];
|
|
6248
6248
|
case 1:
|
|
6249
|
-
return C =
|
|
6249
|
+
return C = B.sent(), console.log("DEBUG HEIMDALL: local storage:", C == null ? void 0 : C.data), [2, C == null ? void 0 : C.data.code];
|
|
6250
6250
|
case 2:
|
|
6251
|
-
throw
|
|
6251
|
+
throw h = B.sent(), h;
|
|
6252
6252
|
case 3:
|
|
6253
6253
|
return [2];
|
|
6254
6254
|
}
|
|
@@ -6262,12 +6262,12 @@ function Tp() {
|
|
|
6262
6262
|
if (tI) return da;
|
|
6263
6263
|
tI = 1;
|
|
6264
6264
|
var e = qe && qe.__awaiter || function(f, I, d, C) {
|
|
6265
|
-
function B
|
|
6266
|
-
return
|
|
6267
|
-
p(
|
|
6265
|
+
function h(B) {
|
|
6266
|
+
return B instanceof d ? B : new d(function(p) {
|
|
6267
|
+
p(B);
|
|
6268
6268
|
});
|
|
6269
6269
|
}
|
|
6270
|
-
return new (d || (d = Promise))(function(
|
|
6270
|
+
return new (d || (d = Promise))(function(B, p) {
|
|
6271
6271
|
function Q(y) {
|
|
6272
6272
|
try {
|
|
6273
6273
|
b(C.next(y));
|
|
@@ -6283,15 +6283,15 @@ function Tp() {
|
|
|
6283
6283
|
}
|
|
6284
6284
|
}
|
|
6285
6285
|
function b(y) {
|
|
6286
|
-
y.done ?
|
|
6286
|
+
y.done ? B(y.value) : h(y.value).then(Q, v);
|
|
6287
6287
|
}
|
|
6288
6288
|
b((C = C.apply(f, I || [])).next());
|
|
6289
6289
|
});
|
|
6290
6290
|
}, t = qe && qe.__generator || function(f, I) {
|
|
6291
6291
|
var d = { label: 0, sent: function() {
|
|
6292
|
-
if (
|
|
6293
|
-
return
|
|
6294
|
-
}, trys: [], ops: [] }, C,
|
|
6292
|
+
if (B[0] & 1) throw B[1];
|
|
6293
|
+
return B[1];
|
|
6294
|
+
}, trys: [], ops: [] }, C, h, B, p;
|
|
6295
6295
|
return p = { next: Q(0), throw: Q(1), return: Q(2) }, typeof Symbol == "function" && (p[Symbol.iterator] = function() {
|
|
6296
6296
|
return this;
|
|
6297
6297
|
}), p;
|
|
@@ -6303,45 +6303,45 @@ function Tp() {
|
|
|
6303
6303
|
function v(b) {
|
|
6304
6304
|
if (C) throw new TypeError("Generator is already executing.");
|
|
6305
6305
|
for (; p && (p = 0, b[0] && (d = 0)), d; ) try {
|
|
6306
|
-
if (C = 1,
|
|
6307
|
-
switch (
|
|
6306
|
+
if (C = 1, h && (B = b[0] & 2 ? h.return : b[0] ? h.throw || ((B = h.return) && B.call(h), 0) : h.next) && !(B = B.call(h, b[1])).done) return B;
|
|
6307
|
+
switch (h = 0, B && (b = [b[0] & 2, B.value]), b[0]) {
|
|
6308
6308
|
case 0:
|
|
6309
6309
|
case 1:
|
|
6310
|
-
|
|
6310
|
+
B = b;
|
|
6311
6311
|
break;
|
|
6312
6312
|
case 4:
|
|
6313
6313
|
return d.label++, { value: b[1], done: !1 };
|
|
6314
6314
|
case 5:
|
|
6315
|
-
d.label++,
|
|
6315
|
+
d.label++, h = b[1], b = [0];
|
|
6316
6316
|
continue;
|
|
6317
6317
|
case 7:
|
|
6318
6318
|
b = d.ops.pop(), d.trys.pop();
|
|
6319
6319
|
continue;
|
|
6320
6320
|
default:
|
|
6321
|
-
if (
|
|
6321
|
+
if (B = d.trys, !(B = B.length > 0 && B[B.length - 1]) && (b[0] === 6 || b[0] === 2)) {
|
|
6322
6322
|
d = 0;
|
|
6323
6323
|
continue;
|
|
6324
6324
|
}
|
|
6325
|
-
if (b[0] === 3 && (!
|
|
6325
|
+
if (b[0] === 3 && (!B || b[1] > B[0] && b[1] < B[3])) {
|
|
6326
6326
|
d.label = b[1];
|
|
6327
6327
|
break;
|
|
6328
6328
|
}
|
|
6329
|
-
if (b[0] === 6 && d.label <
|
|
6330
|
-
d.label =
|
|
6329
|
+
if (b[0] === 6 && d.label < B[1]) {
|
|
6330
|
+
d.label = B[1], B = b;
|
|
6331
6331
|
break;
|
|
6332
6332
|
}
|
|
6333
|
-
if (
|
|
6334
|
-
d.label =
|
|
6333
|
+
if (B && d.label < B[2]) {
|
|
6334
|
+
d.label = B[2], d.ops.push(b);
|
|
6335
6335
|
break;
|
|
6336
6336
|
}
|
|
6337
|
-
|
|
6337
|
+
B[2] && d.ops.pop(), d.trys.pop();
|
|
6338
6338
|
continue;
|
|
6339
6339
|
}
|
|
6340
6340
|
b = I.call(f, d);
|
|
6341
6341
|
} catch (y) {
|
|
6342
|
-
b = [6, y],
|
|
6342
|
+
b = [6, y], h = 0;
|
|
6343
6343
|
} finally {
|
|
6344
|
-
C =
|
|
6344
|
+
C = B = 0;
|
|
6345
6345
|
}
|
|
6346
6346
|
if (b[0] & 5) throw b[1];
|
|
6347
6347
|
return { value: b[0] ? b[1] : void 0, done: !0 };
|
|
@@ -6350,7 +6350,7 @@ function Tp() {
|
|
|
6350
6350
|
Object.defineProperty(da, "__esModule", { value: !0 }), da.fetchToken = void 0;
|
|
6351
6351
|
var n = kx(), r = Kt, A = kt, o, i, s, a = function(f, I, d) {
|
|
6352
6352
|
return d === void 0 && (d = r.APP_UI.DEFAULT), e(void 0, void 0, void 0, function() {
|
|
6353
|
-
var C,
|
|
6353
|
+
var C, h, B, p, Q, v, b, y, m;
|
|
6354
6354
|
return t(this, function(x) {
|
|
6355
6355
|
switch (x.label) {
|
|
6356
6356
|
case 0:
|
|
@@ -6358,9 +6358,9 @@ function Tp() {
|
|
|
6358
6358
|
case 1:
|
|
6359
6359
|
return x.trys.push([1, 4, , 9]), console.log("ERROR debug: in login:", d), [4, (0, n.getV2LoginCode)(r.CONFIG_HIVER, f, d)];
|
|
6360
6360
|
case 2:
|
|
6361
|
-
return
|
|
6361
|
+
return h = x.sent(), [4, (0, n.getLoginToken)(h, r.CONFIG_HIVER, f)];
|
|
6362
6362
|
case 3:
|
|
6363
|
-
return
|
|
6363
|
+
return B = x.sent(), p = B.userId, Q = B.userGroupId, v = B.atToken, b = B.expiryTime, (0, A.setTokenAndExpiry)(v, b), (0, A.setUserDetails)(p, Q), [3, 9];
|
|
6364
6364
|
case 4:
|
|
6365
6365
|
y = x.sent(), console.log("ERROR debug: in error login:", y, d), m = I, x.label = 5;
|
|
6366
6366
|
case 5:
|
|
@@ -6378,7 +6378,7 @@ function Tp() {
|
|
|
6378
6378
|
});
|
|
6379
6379
|
}, l = function(f, I, d) {
|
|
6380
6380
|
return e(void 0, void 0, void 0, function() {
|
|
6381
|
-
var C,
|
|
6381
|
+
var C, h, B, p;
|
|
6382
6382
|
return t(this, function(Q) {
|
|
6383
6383
|
switch (Q.label) {
|
|
6384
6384
|
case 0:
|
|
@@ -6386,7 +6386,7 @@ function Tp() {
|
|
|
6386
6386
|
return setTimeout(v, f);
|
|
6387
6387
|
})] : [3, 3];
|
|
6388
6388
|
case 1:
|
|
6389
|
-
return Q.sent(), I += f, f * 2 <= r.MAX_BACKOFF_LIMIT ? f *= 2 : f = r.MAX_BACKOFF_LIMIT, console.log("Heimdall: Fetch token post doubling conflict retry delay", f), C = d.retryDelay,
|
|
6389
|
+
return Q.sent(), I += f, f * 2 <= r.MAX_BACKOFF_LIMIT ? f *= 2 : f = r.MAX_BACKOFF_LIMIT, console.log("Heimdall: Fetch token post doubling conflict retry delay", f), C = d.retryDelay, h = d.configs, B = d.api_params, p = d.appUI, [4, c(C, f, I, h, B, p)];
|
|
6390
6390
|
case 2:
|
|
6391
6391
|
Q.sent(), Q.label = 3;
|
|
6392
6392
|
case 3:
|
|
@@ -6394,13 +6394,13 @@ function Tp() {
|
|
|
6394
6394
|
}
|
|
6395
6395
|
});
|
|
6396
6396
|
});
|
|
6397
|
-
}, c = function(f, I, d, C,
|
|
6398
|
-
return
|
|
6397
|
+
}, c = function(f, I, d, C, h, B, p) {
|
|
6398
|
+
return B === void 0 && (B = "default"), e(void 0, void 0, void 0, function() {
|
|
6399
6399
|
var Q, v, b, y, m, x, M, F, J, z, P, ie, Ee, Qe;
|
|
6400
6400
|
return t(this, function(Te) {
|
|
6401
6401
|
switch (Te.label) {
|
|
6402
6402
|
case 0:
|
|
6403
|
-
return Te.trys.push([0, 2, , 12]), console.log("Heimdall: Interval Set on fetch token in fetchAndSaveToken:", s), [4, (0, n.getAccessToken)(r.CONFIG_HIVER, C,
|
|
6403
|
+
return Te.trys.push([0, 2, , 12]), console.log("Heimdall: Interval Set on fetch token in fetchAndSaveToken:", s), [4, (0, n.getAccessToken)(r.CONFIG_HIVER, C, h, B)];
|
|
6404
6404
|
case 1:
|
|
6405
6405
|
return Q = Te.sent(), v = Q.atToken, b = Q.expiryTime, y = Q.userId, m = Q.userGroupId, v && b && (0, A.setTokenAndExpiry)(v, b), y && m && (0, A.setUserDetails)(y, m), f = r.INITIAL_RETRY_DELAY, I = r.INITIAL_RETRY_DELAY, d = 0, [3, 12];
|
|
6406
6406
|
case 2:
|
|
@@ -6408,7 +6408,7 @@ function Tp() {
|
|
|
6408
6408
|
case 3:
|
|
6409
6409
|
return Te.sent(), [3, 11];
|
|
6410
6410
|
case 4:
|
|
6411
|
-
return ((P = x.response) === null || P === void 0 ? void 0 : P.status) === 409 || ((ie = x.request) === null || ie === void 0 ? void 0 : ie.status) === 409 ? (console.log("Heimdall: Fetching token post 409 in fetch And Save Token"), F = { retryDelay: f, configs: C, api_params:
|
|
6411
|
+
return ((P = x.response) === null || P === void 0 ? void 0 : P.status) === 409 || ((ie = x.request) === null || ie === void 0 ? void 0 : ie.status) === 409 ? (console.log("Heimdall: Fetching token post 409 in fetch And Save Token"), F = { retryDelay: f, configs: C, api_params: h, appUI: p }, [4, l(I, d, F)]) : [3, 6];
|
|
6412
6412
|
case 5:
|
|
6413
6413
|
if (Te.sent(), d >= r.MAX_CONFLICT_RETRY_DELAY)
|
|
6414
6414
|
throw x;
|
|
@@ -6421,7 +6421,7 @@ function Tp() {
|
|
|
6421
6421
|
return setTimeout(oe, f);
|
|
6422
6422
|
})] : [3, 10];
|
|
6423
6423
|
case 8:
|
|
6424
|
-
return Te.sent(), f *= 2, console.log("Heimdall: Fetch token post doubling retry delay", f), [4, c(f, I, d, C,
|
|
6424
|
+
return Te.sent(), f *= 2, console.log("Heimdall: Fetch token post doubling retry delay", f), [4, c(f, I, d, C, h, p)];
|
|
6425
6425
|
case 9:
|
|
6426
6426
|
return Te.sent(), [3, 11];
|
|
6427
6427
|
case 10:
|
|
@@ -6433,15 +6433,15 @@ function Tp() {
|
|
|
6433
6433
|
}
|
|
6434
6434
|
});
|
|
6435
6435
|
});
|
|
6436
|
-
}, g = function(f, I, d, C,
|
|
6437
|
-
return d === void 0 && (d = r.INITIAL_RETRY_DELAY), C === void 0 && (C = r.INITIAL_RETRY_DELAY),
|
|
6436
|
+
}, g = function(f, I, d, C, h, B) {
|
|
6437
|
+
return d === void 0 && (d = r.INITIAL_RETRY_DELAY), C === void 0 && (C = r.INITIAL_RETRY_DELAY), h === void 0 && (h = 0), e(void 0, void 0, void 0, function() {
|
|
6438
6438
|
var p, Q, v;
|
|
6439
6439
|
return t(this, function(b) {
|
|
6440
6440
|
switch (b.label) {
|
|
6441
6441
|
case 0:
|
|
6442
6442
|
return b.trys.push([0, 4, , 5]), p = (0, A.isTokenInExpiryWindow)(), p ? (Q = (0, A.getRandomDelay)(), [4, (0, A.introduceDelay)(Q)]) : [3, 3];
|
|
6443
6443
|
case 1:
|
|
6444
|
-
return b.sent(), console.log("Heimdall: Fetching token - in expiry window"), [4, c(d, C,
|
|
6444
|
+
return b.sent(), console.log("Heimdall: Fetching token - in expiry window"), [4, c(d, C, h, f, I, B)];
|
|
6445
6445
|
case 2:
|
|
6446
6446
|
b.sent(), b.label = 3;
|
|
6447
6447
|
case 3:
|
|
@@ -6453,7 +6453,7 @@ function Tp() {
|
|
|
6453
6453
|
}
|
|
6454
6454
|
});
|
|
6455
6455
|
});
|
|
6456
|
-
}, E = function(f, I, d, C,
|
|
6456
|
+
}, E = function(f, I, d, C, h, B) {
|
|
6457
6457
|
return e(void 0, void 0, void 0, function() {
|
|
6458
6458
|
var p, Q, v, b, y;
|
|
6459
6459
|
return t(this, function(m) {
|
|
@@ -6461,7 +6461,7 @@ function Tp() {
|
|
|
6461
6461
|
case 0:
|
|
6462
6462
|
o = f, i = I, p = r.INITIAL_RETRY_DELAY, Q = r.INITIAL_RETRY_DELAY, v = 0, b = (0, A.getConfig)(o, i, C), m.label = 1;
|
|
6463
6463
|
case 1:
|
|
6464
|
-
return m.trys.push([1, 3, , 4]), [4, c(p, Q, v, b, d,
|
|
6464
|
+
return m.trys.push([1, 3, , 4]), [4, c(p, Q, v, b, d, h, B)];
|
|
6465
6465
|
case 2:
|
|
6466
6466
|
return m.sent(), console.log("Heimdall: Interval Set on fetch token when fetch token is called:", s), clearInterval(s), s = setInterval(function() {
|
|
6467
6467
|
return g(b, d);
|
|
@@ -6500,39 +6500,39 @@ function Sp() {
|
|
|
6500
6500
|
return E;
|
|
6501
6501
|
}, e.apply(this, arguments);
|
|
6502
6502
|
}, t = qe && qe.__awaiter || function(E, f, I, d) {
|
|
6503
|
-
function C(
|
|
6504
|
-
return
|
|
6505
|
-
h
|
|
6503
|
+
function C(h) {
|
|
6504
|
+
return h instanceof I ? h : new I(function(B) {
|
|
6505
|
+
B(h);
|
|
6506
6506
|
});
|
|
6507
6507
|
}
|
|
6508
|
-
return new (I || (I = Promise))(function(
|
|
6508
|
+
return new (I || (I = Promise))(function(h, B) {
|
|
6509
6509
|
function p(b) {
|
|
6510
6510
|
try {
|
|
6511
6511
|
v(d.next(b));
|
|
6512
6512
|
} catch (y) {
|
|
6513
|
-
|
|
6513
|
+
B(y);
|
|
6514
6514
|
}
|
|
6515
6515
|
}
|
|
6516
6516
|
function Q(b) {
|
|
6517
6517
|
try {
|
|
6518
6518
|
v(d.throw(b));
|
|
6519
6519
|
} catch (y) {
|
|
6520
|
-
|
|
6520
|
+
B(y);
|
|
6521
6521
|
}
|
|
6522
6522
|
}
|
|
6523
6523
|
function v(b) {
|
|
6524
|
-
b.done ?
|
|
6524
|
+
b.done ? h(b.value) : C(b.value).then(p, Q);
|
|
6525
6525
|
}
|
|
6526
6526
|
v((d = d.apply(E, f || [])).next());
|
|
6527
6527
|
});
|
|
6528
6528
|
}, n = qe && qe.__generator || function(E, f) {
|
|
6529
6529
|
var I = { label: 0, sent: function() {
|
|
6530
|
-
if (
|
|
6531
|
-
return
|
|
6532
|
-
}, trys: [], ops: [] }, d, C,
|
|
6533
|
-
return
|
|
6530
|
+
if (h[0] & 1) throw h[1];
|
|
6531
|
+
return h[1];
|
|
6532
|
+
}, trys: [], ops: [] }, d, C, h, B;
|
|
6533
|
+
return B = { next: p(0), throw: p(1), return: p(2) }, typeof Symbol == "function" && (B[Symbol.iterator] = function() {
|
|
6534
6534
|
return this;
|
|
6535
|
-
}),
|
|
6535
|
+
}), B;
|
|
6536
6536
|
function p(v) {
|
|
6537
6537
|
return function(b) {
|
|
6538
6538
|
return Q([v, b]);
|
|
@@ -6540,12 +6540,12 @@ function Sp() {
|
|
|
6540
6540
|
}
|
|
6541
6541
|
function Q(v) {
|
|
6542
6542
|
if (d) throw new TypeError("Generator is already executing.");
|
|
6543
|
-
for (;
|
|
6544
|
-
if (d = 1, C && (
|
|
6545
|
-
switch (C = 0,
|
|
6543
|
+
for (; B && (B = 0, v[0] && (I = 0)), I; ) try {
|
|
6544
|
+
if (d = 1, C && (h = v[0] & 2 ? C.return : v[0] ? C.throw || ((h = C.return) && h.call(C), 0) : C.next) && !(h = h.call(C, v[1])).done) return h;
|
|
6545
|
+
switch (C = 0, h && (v = [v[0] & 2, h.value]), v[0]) {
|
|
6546
6546
|
case 0:
|
|
6547
6547
|
case 1:
|
|
6548
|
-
|
|
6548
|
+
h = v;
|
|
6549
6549
|
break;
|
|
6550
6550
|
case 4:
|
|
6551
6551
|
return I.label++, { value: v[1], done: !1 };
|
|
@@ -6556,30 +6556,30 @@ function Sp() {
|
|
|
6556
6556
|
v = I.ops.pop(), I.trys.pop();
|
|
6557
6557
|
continue;
|
|
6558
6558
|
default:
|
|
6559
|
-
if (
|
|
6559
|
+
if (h = I.trys, !(h = h.length > 0 && h[h.length - 1]) && (v[0] === 6 || v[0] === 2)) {
|
|
6560
6560
|
I = 0;
|
|
6561
6561
|
continue;
|
|
6562
6562
|
}
|
|
6563
|
-
if (v[0] === 3 && (!
|
|
6563
|
+
if (v[0] === 3 && (!h || v[1] > h[0] && v[1] < h[3])) {
|
|
6564
6564
|
I.label = v[1];
|
|
6565
6565
|
break;
|
|
6566
6566
|
}
|
|
6567
|
-
if (v[0] === 6 && I.label <
|
|
6568
|
-
I.label =
|
|
6567
|
+
if (v[0] === 6 && I.label < h[1]) {
|
|
6568
|
+
I.label = h[1], h = v;
|
|
6569
6569
|
break;
|
|
6570
6570
|
}
|
|
6571
|
-
if (
|
|
6572
|
-
I.label =
|
|
6571
|
+
if (h && I.label < h[2]) {
|
|
6572
|
+
I.label = h[2], I.ops.push(v);
|
|
6573
6573
|
break;
|
|
6574
6574
|
}
|
|
6575
|
-
|
|
6575
|
+
h[2] && I.ops.pop(), I.trys.pop();
|
|
6576
6576
|
continue;
|
|
6577
6577
|
}
|
|
6578
6578
|
v = f.call(E, I);
|
|
6579
6579
|
} catch (b) {
|
|
6580
6580
|
v = [6, b], C = 0;
|
|
6581
6581
|
} finally {
|
|
6582
|
-
d =
|
|
6582
|
+
d = h = 0;
|
|
6583
6583
|
}
|
|
6584
6584
|
if (v[0] & 5) throw v[1];
|
|
6585
6585
|
return { value: v[0] ? v[1] : void 0, done: !0 };
|
|
@@ -6606,19 +6606,19 @@ function Sp() {
|
|
|
6606
6606
|
});
|
|
6607
6607
|
}
|
|
6608
6608
|
function g(E, f, I, d) {
|
|
6609
|
-
var C,
|
|
6609
|
+
var C, h;
|
|
6610
6610
|
return d === void 0 && (d = 0), t(this, void 0, void 0, function() {
|
|
6611
|
-
var
|
|
6611
|
+
var B, p, Q, v, b, y;
|
|
6612
6612
|
return n(this, function(m) {
|
|
6613
6613
|
switch (m.label) {
|
|
6614
6614
|
case 0:
|
|
6615
6615
|
if (m.trys.push([0, 4, , 5]), !(f.getToken && !(0, A.hasValidToken)(E))) return [3, 2];
|
|
6616
|
-
if (
|
|
6617
|
-
throw Error("app_env or tier missing : ".concat(
|
|
6616
|
+
if (B = E.app_env, p = E.tier, !B || !p)
|
|
6617
|
+
throw Error("app_env or tier missing : ".concat(B, "/").concat(p));
|
|
6618
6618
|
return "userId" in E && "usergroupId" in E ? (Q = {
|
|
6619
6619
|
userId: E.userId,
|
|
6620
6620
|
usergroupId: E.usergroupId
|
|
6621
|
-
}, typeof f.isHiverApiDomain != "boolean" && (f.isHiverApiDomain = !0), [4, (0, o.fetchToken)(
|
|
6621
|
+
}, typeof f.isHiverApiDomain != "boolean" && (f.isHiverApiDomain = !0), [4, (0, o.fetchToken)(B, p, Q, f.isHiverApiDomain, I)]) : [3, 2];
|
|
6622
6622
|
case 1:
|
|
6623
6623
|
m.sent(), m.label = 2;
|
|
6624
6624
|
case 2:
|
|
@@ -6626,7 +6626,7 @@ function Sp() {
|
|
|
6626
6626
|
case 3:
|
|
6627
6627
|
return v = m.sent(), E.onSuccess && E.onSuccess(v), [2, v];
|
|
6628
6628
|
case 4:
|
|
6629
|
-
if (b = m.sent(), y = ((C = b.response) === null || C === void 0 ? void 0 : C.status) === 403 || ((
|
|
6629
|
+
if (b = m.sent(), y = ((C = b.response) === null || C === void 0 ? void 0 : C.status) === 403 || ((h = b.request) === null || h === void 0 ? void 0 : h.status) === 403, d < s && y)
|
|
6630
6630
|
return (0, A.expireToken)(), [2, g(E, f, I, d + 1)];
|
|
6631
6631
|
if (d >= s && y || !y)
|
|
6632
6632
|
throw E.onFail && E.onFail(b), console.log("ERROR: Reached make Axios", b), b;
|
|
@@ -6641,12 +6641,12 @@ function Sp() {
|
|
|
6641
6641
|
}
|
|
6642
6642
|
(function(e) {
|
|
6643
6643
|
var t = qe && qe.__awaiter || function(f, I, d, C) {
|
|
6644
|
-
function B
|
|
6645
|
-
return
|
|
6646
|
-
p(
|
|
6644
|
+
function h(B) {
|
|
6645
|
+
return B instanceof d ? B : new d(function(p) {
|
|
6646
|
+
p(B);
|
|
6647
6647
|
});
|
|
6648
6648
|
}
|
|
6649
|
-
return new (d || (d = Promise))(function(
|
|
6649
|
+
return new (d || (d = Promise))(function(B, p) {
|
|
6650
6650
|
function Q(y) {
|
|
6651
6651
|
try {
|
|
6652
6652
|
b(C.next(y));
|
|
@@ -6662,15 +6662,15 @@ function Sp() {
|
|
|
6662
6662
|
}
|
|
6663
6663
|
}
|
|
6664
6664
|
function b(y) {
|
|
6665
|
-
y.done ?
|
|
6665
|
+
y.done ? B(y.value) : h(y.value).then(Q, v);
|
|
6666
6666
|
}
|
|
6667
6667
|
b((C = C.apply(f, I || [])).next());
|
|
6668
6668
|
});
|
|
6669
6669
|
}, n = qe && qe.__generator || function(f, I) {
|
|
6670
6670
|
var d = { label: 0, sent: function() {
|
|
6671
|
-
if (
|
|
6672
|
-
return
|
|
6673
|
-
}, trys: [], ops: [] }, C,
|
|
6671
|
+
if (B[0] & 1) throw B[1];
|
|
6672
|
+
return B[1];
|
|
6673
|
+
}, trys: [], ops: [] }, C, h, B, p;
|
|
6674
6674
|
return p = { next: Q(0), throw: Q(1), return: Q(2) }, typeof Symbol == "function" && (p[Symbol.iterator] = function() {
|
|
6675
6675
|
return this;
|
|
6676
6676
|
}), p;
|
|
@@ -6682,45 +6682,45 @@ function Sp() {
|
|
|
6682
6682
|
function v(b) {
|
|
6683
6683
|
if (C) throw new TypeError("Generator is already executing.");
|
|
6684
6684
|
for (; p && (p = 0, b[0] && (d = 0)), d; ) try {
|
|
6685
|
-
if (C = 1,
|
|
6686
|
-
switch (
|
|
6685
|
+
if (C = 1, h && (B = b[0] & 2 ? h.return : b[0] ? h.throw || ((B = h.return) && B.call(h), 0) : h.next) && !(B = B.call(h, b[1])).done) return B;
|
|
6686
|
+
switch (h = 0, B && (b = [b[0] & 2, B.value]), b[0]) {
|
|
6687
6687
|
case 0:
|
|
6688
6688
|
case 1:
|
|
6689
|
-
|
|
6689
|
+
B = b;
|
|
6690
6690
|
break;
|
|
6691
6691
|
case 4:
|
|
6692
6692
|
return d.label++, { value: b[1], done: !1 };
|
|
6693
6693
|
case 5:
|
|
6694
|
-
d.label++,
|
|
6694
|
+
d.label++, h = b[1], b = [0];
|
|
6695
6695
|
continue;
|
|
6696
6696
|
case 7:
|
|
6697
6697
|
b = d.ops.pop(), d.trys.pop();
|
|
6698
6698
|
continue;
|
|
6699
6699
|
default:
|
|
6700
|
-
if (
|
|
6700
|
+
if (B = d.trys, !(B = B.length > 0 && B[B.length - 1]) && (b[0] === 6 || b[0] === 2)) {
|
|
6701
6701
|
d = 0;
|
|
6702
6702
|
continue;
|
|
6703
6703
|
}
|
|
6704
|
-
if (b[0] === 3 && (!
|
|
6704
|
+
if (b[0] === 3 && (!B || b[1] > B[0] && b[1] < B[3])) {
|
|
6705
6705
|
d.label = b[1];
|
|
6706
6706
|
break;
|
|
6707
6707
|
}
|
|
6708
|
-
if (b[0] === 6 && d.label <
|
|
6709
|
-
d.label =
|
|
6708
|
+
if (b[0] === 6 && d.label < B[1]) {
|
|
6709
|
+
d.label = B[1], B = b;
|
|
6710
6710
|
break;
|
|
6711
6711
|
}
|
|
6712
|
-
if (
|
|
6713
|
-
d.label =
|
|
6712
|
+
if (B && d.label < B[2]) {
|
|
6713
|
+
d.label = B[2], d.ops.push(b);
|
|
6714
6714
|
break;
|
|
6715
6715
|
}
|
|
6716
|
-
|
|
6716
|
+
B[2] && d.ops.pop(), d.trys.pop();
|
|
6717
6717
|
continue;
|
|
6718
6718
|
}
|
|
6719
6719
|
b = I.call(f, d);
|
|
6720
6720
|
} catch (y) {
|
|
6721
|
-
b = [6, y],
|
|
6721
|
+
b = [6, y], h = 0;
|
|
6722
6722
|
} finally {
|
|
6723
|
-
C =
|
|
6723
|
+
C = B = 0;
|
|
6724
6724
|
}
|
|
6725
6725
|
if (b[0] & 5) throw b[1];
|
|
6726
6726
|
return { value: b[0] ? b[1] : void 0, done: !0 };
|
|
@@ -6742,22 +6742,22 @@ function Sp() {
|
|
|
6742
6742
|
return c.fetchToken;
|
|
6743
6743
|
} });
|
|
6744
6744
|
var g = aA, E = function() {
|
|
6745
|
-
function f(I, d, C,
|
|
6746
|
-
C === void 0 && (C = o.TENANT_PLATFORM.GMAIL),
|
|
6745
|
+
function f(I, d, C, h, B, p) {
|
|
6746
|
+
C === void 0 && (C = o.TENANT_PLATFORM.GMAIL), h === void 0 && (h = null), B === void 0 && (B = !0), p === void 0 && (p = !1), this.setEnvironment(), this.appEnv = I, this.tier = d, this.tenantPlatform = C, this.authTokenFetchingInProgress = !1, this.getTokenForLogin = h, this.withCredentials = B, this.csrfToken = p;
|
|
6747
6747
|
}
|
|
6748
6748
|
return f.prototype.setEnvironment = function() {
|
|
6749
6749
|
typeof window < "u" && window.document ? (0, g.setValue)("PLATFORM", o.PLATFORM.WEB) : (0, g.setValue)("PLATFORM", o.PLATFORM.MOBILE);
|
|
6750
|
-
}, f.prototype.hiverAxios = function(I, d, C,
|
|
6750
|
+
}, f.prototype.hiverAxios = function(I, d, C, h) {
|
|
6751
6751
|
return d === void 0 && (d = o.DEFAULT_INIT_CONFIG_HIVER), t(this, void 0, void 0, function() {
|
|
6752
|
-
var
|
|
6752
|
+
var B, p;
|
|
6753
6753
|
return n(this, function(Q) {
|
|
6754
6754
|
switch (Q.label) {
|
|
6755
6755
|
case 0:
|
|
6756
|
-
return Q.trys.push([0, 4, , 5]),
|
|
6756
|
+
return Q.trys.push([0, 4, , 5]), h && h < 2 ? (B = {
|
|
6757
6757
|
userId: I.userId,
|
|
6758
6758
|
usergroupId: I.usergroupId,
|
|
6759
|
-
apiRetry:
|
|
6760
|
-
}, console.log("THIS IS THE TENNANTPLAORM -> ", this.tenantPlatform), [4, (0, A.fetchAccessToken)(this.appEnv, this.tier,
|
|
6759
|
+
apiRetry: h
|
|
6760
|
+
}, console.log("THIS IS THE TENNANTPLAORM -> ", this.tenantPlatform), [4, (0, A.fetchAccessToken)(this.appEnv, this.tier, B, this.tenantPlatform, this.getTokenForLogin, o.API_CALL_ORIGIN.API_RETRY)]) : [3, 2];
|
|
6761
6761
|
case 1:
|
|
6762
6762
|
Q.sent(), Q.label = 2;
|
|
6763
6763
|
case 2:
|
|
@@ -6773,25 +6773,25 @@ function Sp() {
|
|
|
6773
6773
|
});
|
|
6774
6774
|
}, f.prototype.fetchAuthToken = function(I, d, C) {
|
|
6775
6775
|
return t(this, void 0, void 0, function() {
|
|
6776
|
-
var
|
|
6777
|
-
return n(this, function(
|
|
6778
|
-
switch (
|
|
6776
|
+
var h;
|
|
6777
|
+
return n(this, function(B) {
|
|
6778
|
+
switch (B.label) {
|
|
6779
6779
|
case 0:
|
|
6780
|
-
return
|
|
6780
|
+
return B.trys.push([0, 4, 7, 8]), this.authTokenFetchingInProgress ? [3, 2] : (this.authTokenFetchingInProgress = !0, [4, (0, A.fetchAccessToken)(this.appEnv, this.tier, I, this.tenantPlatform, this.getTokenForLogin, d, C)]);
|
|
6781
6781
|
case 1:
|
|
6782
|
-
return
|
|
6782
|
+
return B.sent(), [3, 3];
|
|
6783
6783
|
case 2:
|
|
6784
|
-
console.log("Heimdall: AuthToken Fetching InProgress", this.authTokenFetchingInProgress),
|
|
6784
|
+
console.log("Heimdall: AuthToken Fetching InProgress", this.authTokenFetchingInProgress), B.label = 3;
|
|
6785
6785
|
case 3:
|
|
6786
6786
|
return [3, 8];
|
|
6787
6787
|
case 4:
|
|
6788
|
-
return
|
|
6788
|
+
return h = B.sent(), console.log("ERROR: Fetching token failed", h), this.authTokenFetchingInProgress = !1, [4, new Promise(function(p) {
|
|
6789
6789
|
return setTimeout(p, 100);
|
|
6790
6790
|
})];
|
|
6791
6791
|
case 5:
|
|
6792
|
-
return
|
|
6792
|
+
return B.sent(), console.log("Heimdall: Retrying fetchAccessToken after 100ms..."), [4, this.fetchAuthToken(I, d, C)];
|
|
6793
6793
|
case 6:
|
|
6794
|
-
return
|
|
6794
|
+
return B.sent(), [3, 8];
|
|
6795
6795
|
case 7:
|
|
6796
6796
|
return this.authTokenFetchingInProgress = !1, [7];
|
|
6797
6797
|
case 8:
|
|
@@ -7567,8 +7567,8 @@ function jp(e) {
|
|
|
7567
7567
|
r || (r = !0, (C = e.onError) == null || C.call(e, d), A == null || A(), o.reject(d));
|
|
7568
7568
|
}, f = () => new Promise((d) => {
|
|
7569
7569
|
var C;
|
|
7570
|
-
A = (
|
|
7571
|
-
(r || l()) && d(
|
|
7570
|
+
A = (h) => {
|
|
7571
|
+
(r || l()) && d(h);
|
|
7572
7572
|
}, (C = e.onPause) == null || C.call(e);
|
|
7573
7573
|
}).then(() => {
|
|
7574
7574
|
var d;
|
|
@@ -7580,20 +7580,20 @@ function jp(e) {
|
|
|
7580
7580
|
const C = n === 0 ? e.initialPromise : void 0;
|
|
7581
7581
|
try {
|
|
7582
7582
|
d = C ?? e.fn();
|
|
7583
|
-
} catch (
|
|
7584
|
-
d = Promise.reject(
|
|
7583
|
+
} catch (h) {
|
|
7584
|
+
d = Promise.reject(h);
|
|
7585
7585
|
}
|
|
7586
|
-
Promise.resolve(d).then(g).catch((
|
|
7586
|
+
Promise.resolve(d).then(g).catch((h) => {
|
|
7587
7587
|
var b;
|
|
7588
7588
|
if (r)
|
|
7589
7589
|
return;
|
|
7590
|
-
const
|
|
7590
|
+
const B = e.retry ?? (Mo ? 0 : 3), p = e.retryDelay ?? Rw, Q = typeof p == "function" ? p(n, h) : p, v = B === !0 || typeof B == "number" && n < B || typeof B == "function" && B(n, h);
|
|
7591
7591
|
if (t || !v) {
|
|
7592
|
-
E(
|
|
7592
|
+
E(h);
|
|
7593
7593
|
return;
|
|
7594
7594
|
}
|
|
7595
|
-
n++, (b = e.onFail) == null || b.call(e, n,
|
|
7596
|
-
t ? E(
|
|
7595
|
+
n++, (b = e.onFail) == null || b.call(e, n, h), xw(Q).then(() => l() ? void 0 : f()).then(() => {
|
|
7596
|
+
t ? E(h) : I();
|
|
7597
7597
|
});
|
|
7598
7598
|
});
|
|
7599
7599
|
};
|
|
@@ -8082,7 +8082,7 @@ var Xr, JB, Nw = (JB = class extends Vi {
|
|
|
8082
8082
|
this.execute(this.state.variables);
|
|
8083
8083
|
}
|
|
8084
8084
|
async execute(t) {
|
|
8085
|
-
var A, o, i, s, a, l, c, g, E, f, I, d, C,
|
|
8085
|
+
var A, o, i, s, a, l, c, g, E, f, I, d, C, h, B, p, Q, v, b, y;
|
|
8086
8086
|
De(this, To, jp({
|
|
8087
8087
|
fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
|
|
8088
8088
|
onFail: (m, x) => {
|
|
@@ -8132,14 +8132,14 @@ var Xr, JB, Nw = (JB = class extends Vi {
|
|
|
8132
8132
|
)), await ((d = (I = this.options).onSettled) == null ? void 0 : d.call(I, m, null, t, this.state.context)), tt(this, qr, MA).call(this, { type: "success", data: m }), m;
|
|
8133
8133
|
} catch (m) {
|
|
8134
8134
|
try {
|
|
8135
|
-
throw await ((
|
|
8135
|
+
throw await ((h = (C = L(this, Un).config).onError) == null ? void 0 : h.call(
|
|
8136
8136
|
C,
|
|
8137
8137
|
m,
|
|
8138
8138
|
t,
|
|
8139
8139
|
this.state.context,
|
|
8140
8140
|
this
|
|
8141
|
-
)), await ((p = (
|
|
8142
|
-
|
|
8141
|
+
)), await ((p = (B = this.options).onError) == null ? void 0 : p.call(
|
|
8142
|
+
B,
|
|
8143
8143
|
m,
|
|
8144
8144
|
t,
|
|
8145
8145
|
this.state.context
|
|
@@ -8354,7 +8354,7 @@ function lI(e) {
|
|
|
8354
8354
|
d = !0;
|
|
8355
8355
|
}), t.signal)
|
|
8356
8356
|
});
|
|
8357
|
-
},
|
|
8357
|
+
}, h = Pp(t.options, t.fetchOptions), B = async (p, Q, v) => {
|
|
8358
8358
|
if (d)
|
|
8359
8359
|
return Promise.reject();
|
|
8360
8360
|
if (Q == null && p.pages.length)
|
|
@@ -8367,7 +8367,7 @@ function lI(e) {
|
|
|
8367
8367
|
meta: t.options.meta
|
|
8368
8368
|
};
|
|
8369
8369
|
C(b);
|
|
8370
|
-
const y = await
|
|
8370
|
+
const y = await h(
|
|
8371
8371
|
b
|
|
8372
8372
|
), { maxPages: m } = t.options, x = v ? Tw : ww;
|
|
8373
8373
|
return {
|
|
@@ -8380,14 +8380,14 @@ function lI(e) {
|
|
|
8380
8380
|
pages: o,
|
|
8381
8381
|
pageParams: i
|
|
8382
8382
|
}, b = Q(r, v);
|
|
8383
|
-
s = await
|
|
8383
|
+
s = await B(v, b, p);
|
|
8384
8384
|
} else {
|
|
8385
8385
|
const p = e ?? o.length;
|
|
8386
8386
|
do {
|
|
8387
8387
|
const Q = a === 0 ? i[0] ?? r.initialPageParam : cI(r, s);
|
|
8388
8388
|
if (a > 0 && Q == null)
|
|
8389
8389
|
break;
|
|
8390
|
-
s = await
|
|
8390
|
+
s = await B(s, Q), a++;
|
|
8391
8391
|
} while (a < p);
|
|
8392
8392
|
}
|
|
8393
8393
|
return s;
|
|
@@ -8774,10 +8774,10 @@ var Xt, HA, WA, mi, vi, zA, bi, yi, qB, Hp = (qB = class {
|
|
|
8774
8774
|
), E = !0);
|
|
8775
8775
|
}
|
|
8776
8776
|
L(this, Zr) && (I = L(this, Zr), f = L(this, wi), d = Date.now(), C = "error");
|
|
8777
|
-
const
|
|
8777
|
+
const h = g.fetchStatus === "fetching", B = C === "pending", p = C === "error", Q = B && h, v = f !== void 0, y = {
|
|
8778
8778
|
status: C,
|
|
8779
8779
|
fetchStatus: g.fetchStatus,
|
|
8780
|
-
isPending:
|
|
8780
|
+
isPending: B,
|
|
8781
8781
|
isSuccess: C === "success",
|
|
8782
8782
|
isError: p,
|
|
8783
8783
|
isInitialLoading: Q,
|
|
@@ -8791,8 +8791,8 @@ var Xt, HA, WA, mi, vi, zA, bi, yi, qB, Hp = (qB = class {
|
|
|
8791
8791
|
errorUpdateCount: g.errorUpdateCount,
|
|
8792
8792
|
isFetched: g.dataUpdateCount > 0 || g.errorUpdateCount > 0,
|
|
8793
8793
|
isFetchedAfterMount: g.dataUpdateCount > l.dataUpdateCount || g.errorUpdateCount > l.errorUpdateCount,
|
|
8794
|
-
isFetching:
|
|
8795
|
-
isRefetching:
|
|
8794
|
+
isFetching: h,
|
|
8795
|
+
isRefetching: h && !B,
|
|
8796
8796
|
isLoadingError: p && !v,
|
|
8797
8797
|
isPaused: g.fetchStatus === "paused",
|
|
8798
8798
|
isPlaceholderData: E,
|
|
@@ -9056,8 +9056,8 @@ function $w(e, t, n) {
|
|
|
9056
9056
|
if (S.useSyncExternalStore(
|
|
9057
9057
|
S.useCallback(
|
|
9058
9058
|
(C) => {
|
|
9059
|
-
const
|
|
9060
|
-
return a.updateResult(),
|
|
9059
|
+
const h = c ? a.subscribe(Cn.batchCalls(C)) : zg;
|
|
9060
|
+
return a.updateResult(), h;
|
|
9061
9061
|
},
|
|
9062
9062
|
[a, c]
|
|
9063
9063
|
),
|
|
@@ -9248,18 +9248,18 @@ function o3(e, t, n, r) {
|
|
|
9248
9248
|
}
|
|
9249
9249
|
function g() {
|
|
9250
9250
|
s = an.Pop;
|
|
9251
|
-
let C = c(),
|
|
9251
|
+
let C = c(), h = C == null ? null : C - l;
|
|
9252
9252
|
l = C, a && a({
|
|
9253
9253
|
action: s,
|
|
9254
9254
|
location: d.location,
|
|
9255
|
-
delta:
|
|
9255
|
+
delta: h
|
|
9256
9256
|
});
|
|
9257
9257
|
}
|
|
9258
|
-
function E(C,
|
|
9258
|
+
function E(C, h) {
|
|
9259
9259
|
s = an.Push;
|
|
9260
|
-
let
|
|
9260
|
+
let B = Za(d.location, C, h);
|
|
9261
9261
|
l = c() + 1;
|
|
9262
|
-
let p = EI(
|
|
9262
|
+
let p = EI(B, l), Q = d.createHref(B);
|
|
9263
9263
|
try {
|
|
9264
9264
|
i.pushState(p, "", Q);
|
|
9265
9265
|
} catch (v) {
|
|
@@ -9273,11 +9273,11 @@ function o3(e, t, n, r) {
|
|
|
9273
9273
|
delta: 1
|
|
9274
9274
|
});
|
|
9275
9275
|
}
|
|
9276
|
-
function f(C,
|
|
9276
|
+
function f(C, h) {
|
|
9277
9277
|
s = an.Replace;
|
|
9278
|
-
let
|
|
9278
|
+
let B = Za(d.location, C, h);
|
|
9279
9279
|
l = c();
|
|
9280
|
-
let p = EI(
|
|
9280
|
+
let p = EI(B, l), Q = d.createHref(B);
|
|
9281
9281
|
i.replaceState(p, "", Q), o && a && a({
|
|
9282
9282
|
action: s,
|
|
9283
9283
|
location: d.location,
|
|
@@ -9285,8 +9285,8 @@ function o3(e, t, n, r) {
|
|
|
9285
9285
|
});
|
|
9286
9286
|
}
|
|
9287
9287
|
function I(C) {
|
|
9288
|
-
let
|
|
9289
|
-
return
|
|
9288
|
+
let h = A.location.origin !== "null" ? A.location.origin : A.location.href, B = typeof C == "string" ? C : to(C);
|
|
9289
|
+
return B = B.replace(/ $/, "%20"), Ge(h, "No window.location.(origin|href) available to create URL for href: " + B), new URL(B, h);
|
|
9290
9290
|
}
|
|
9291
9291
|
let d = {
|
|
9292
9292
|
get action() {
|
|
@@ -9307,11 +9307,11 @@ function o3(e, t, n, r) {
|
|
|
9307
9307
|
},
|
|
9308
9308
|
createURL: I,
|
|
9309
9309
|
encodeLocation(C) {
|
|
9310
|
-
let
|
|
9310
|
+
let h = I(C);
|
|
9311
9311
|
return {
|
|
9312
|
-
pathname:
|
|
9313
|
-
search:
|
|
9314
|
-
hash:
|
|
9312
|
+
pathname: h.pathname,
|
|
9313
|
+
search: h.search,
|
|
9314
|
+
hash: h.hash
|
|
9315
9315
|
};
|
|
9316
9316
|
},
|
|
9317
9317
|
push: E,
|
|
@@ -9620,7 +9620,7 @@ function O3(e) {
|
|
|
9620
9620
|
v7_prependBasename: !1,
|
|
9621
9621
|
v7_relativeSplatPath: !1,
|
|
9622
9622
|
v7_skipActionErrorRevalidation: !1
|
|
9623
|
-
}, e.future), E = null, f = /* @__PURE__ */ new Set(), I = 1e3, d = /* @__PURE__ */ new Set(), C = null,
|
|
9623
|
+
}, e.future), E = null, f = /* @__PURE__ */ new Set(), I = 1e3, d = /* @__PURE__ */ new Set(), C = null, h = null, B = null, p = e.hydrationData != null, Q = Bo(i, e.history.location, a), v = null;
|
|
9624
9624
|
if (Q == null && !c) {
|
|
9625
9625
|
let D = Vn(404, {
|
|
9626
9626
|
pathname: e.history.location.pathname
|
|
@@ -10577,7 +10577,7 @@ function O3(e) {
|
|
|
10577
10577
|
}), k;
|
|
10578
10578
|
}
|
|
10579
10579
|
function tn(D, k, X) {
|
|
10580
|
-
if (C = D,
|
|
10580
|
+
if (C = D, B = k, h = X || null, !p && m.navigation === Lu) {
|
|
10581
10581
|
p = !0;
|
|
10582
10582
|
let w = Yn(m.location, m.matches);
|
|
10583
10583
|
w != null && Fe({
|
|
@@ -10585,16 +10585,16 @@ function O3(e) {
|
|
|
10585
10585
|
});
|
|
10586
10586
|
}
|
|
10587
10587
|
return () => {
|
|
10588
|
-
C = null,
|
|
10588
|
+
C = null, B = null, h = null;
|
|
10589
10589
|
};
|
|
10590
10590
|
}
|
|
10591
10591
|
function rn(D, k) {
|
|
10592
|
-
return
|
|
10592
|
+
return h && h(D, k.map((w) => s3(w, m.loaderData))) || D.key;
|
|
10593
10593
|
}
|
|
10594
10594
|
function fn(D, k) {
|
|
10595
|
-
if (C &&
|
|
10595
|
+
if (C && B) {
|
|
10596
10596
|
let X = rn(D, k);
|
|
10597
|
-
C[X] =
|
|
10597
|
+
C[X] = B();
|
|
10598
10598
|
}
|
|
10599
10599
|
}
|
|
10600
10600
|
function Yn(D, k) {
|
|
@@ -10839,7 +10839,7 @@ function N3(e, t) {
|
|
|
10839
10839
|
return n;
|
|
10840
10840
|
}
|
|
10841
10841
|
function BI(e, t, n, r, A, o, i, s, a, l, c, g, E, f, I, d) {
|
|
10842
|
-
let C = d ? lr(d[1]) ? d[1].error : d[1].data : void 0,
|
|
10842
|
+
let C = d ? lr(d[1]) ? d[1].error : d[1].data : void 0, h = e.createURL(t.location), B = e.createURL(A), p = d && lr(d[1]) ? d[0] : void 0, Q = p ? N3(n, p) : n, v = d ? d[1].statusCode : void 0, b = i && v && v >= 400, y = Q.filter((x, M) => {
|
|
10843
10843
|
let {
|
|
10844
10844
|
route: F
|
|
10845
10845
|
} = x;
|
|
@@ -10854,17 +10854,17 @@ function BI(e, t, n, r, A, o, i, s, a, l, c, g, E, f, I, d) {
|
|
|
10854
10854
|
return !0;
|
|
10855
10855
|
let J = t.matches[M], z = x;
|
|
10856
10856
|
return hI(x, Wt({
|
|
10857
|
-
currentUrl:
|
|
10857
|
+
currentUrl: h,
|
|
10858
10858
|
currentParams: J.params,
|
|
10859
|
-
nextUrl:
|
|
10859
|
+
nextUrl: B,
|
|
10860
10860
|
nextParams: z.params
|
|
10861
10861
|
}, r, {
|
|
10862
10862
|
actionResult: C,
|
|
10863
10863
|
actionStatus: v,
|
|
10864
10864
|
defaultShouldRevalidate: b ? !1 : (
|
|
10865
10865
|
// Forced revalidation due to submission, useRevalidator, or X-Remix-Revalidate
|
|
10866
|
-
s ||
|
|
10867
|
-
|
|
10866
|
+
s || h.pathname + h.search === B.pathname + B.search || // Search params affect all loaders
|
|
10867
|
+
h.search !== B.search || tQ(J, z)
|
|
10868
10868
|
)
|
|
10869
10869
|
}));
|
|
10870
10870
|
}), m = [];
|
|
@@ -10885,9 +10885,9 @@ function BI(e, t, n, r, A, o, i, s, a, l, c, g, E, f, I, d) {
|
|
|
10885
10885
|
}
|
|
10886
10886
|
let J = t.fetchers.get(M), z = Sa(F, x.path), P = !1;
|
|
10887
10887
|
E.has(M) ? P = !1 : l.has(M) ? (l.delete(M), P = !0) : J && J.state !== "idle" && J.data === void 0 ? P = s : P = hI(z, Wt({
|
|
10888
|
-
currentUrl:
|
|
10888
|
+
currentUrl: h,
|
|
10889
10889
|
currentParams: t.matches[t.matches.length - 1].params,
|
|
10890
|
-
nextUrl:
|
|
10890
|
+
nextUrl: B,
|
|
10891
10891
|
nextParams: n[n.length - 1].params
|
|
10892
10892
|
}, r, {
|
|
10893
10893
|
actionResult: C,
|
|
@@ -10984,10 +10984,10 @@ async function M3(e) {
|
|
|
10984
10984
|
}
|
|
10985
10985
|
async function j3(e, t, n, r, A, o, i, s, a, l) {
|
|
10986
10986
|
let c = o.map((f) => f.route.lazy ? k3(f.route, a, s) : void 0), g = o.map((f, I) => {
|
|
10987
|
-
let d = c[I], C = A.some((
|
|
10987
|
+
let d = c[I], C = A.some((B) => B.route.id === f.route.id);
|
|
10988
10988
|
return Wt({}, f, {
|
|
10989
10989
|
shouldLoad: C,
|
|
10990
|
-
resolve: async (
|
|
10990
|
+
resolve: async (B) => (B && r.method === "GET" && (f.route.lazy || f.route.loader) && (C = !0), C ? U3(t, r, f, d, B, l) : Promise.resolve({
|
|
10991
10991
|
type: Lt.data,
|
|
10992
10992
|
result: void 0
|
|
10993
10993
|
}))
|
|
@@ -11688,32 +11688,32 @@ function aT(e, t, n, r) {
|
|
|
11688
11688
|
matches: o
|
|
11689
11689
|
} = S.useContext(Gr), i = o[o.length - 1], s = i ? i.params : {}, a = i ? i.pathname : "/", l = i ? i.pathnameBase : "/", c = i && i.route;
|
|
11690
11690
|
if (process.env.NODE_ENV !== "production") {
|
|
11691
|
-
let
|
|
11692
|
-
sQ(a, !c ||
|
|
11691
|
+
let h = c && c.path || "";
|
|
11692
|
+
sQ(a, !c || h.endsWith("*"), "You rendered descendant <Routes> (or called `useRoutes()`) at " + ('"' + a + '" (under <Route path="' + h + '">) but the ') + `parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
11693
11693
|
|
|
11694
|
-
` + ('Please change the parent <Route path="' +
|
|
11694
|
+
` + ('Please change the parent <Route path="' + h + '"> to <Route ') + ('path="' + (h === "/" ? "*" : h + "/*") + '">.'));
|
|
11695
11695
|
}
|
|
11696
11696
|
let g = io(), E;
|
|
11697
11697
|
E = g;
|
|
11698
11698
|
let f = E.pathname || "/", I = f;
|
|
11699
11699
|
if (l !== "/") {
|
|
11700
|
-
let
|
|
11701
|
-
I = "/" + f.replace(/^\//, "").split("/").slice(
|
|
11700
|
+
let h = l.replace(/^\//, "").split("/");
|
|
11701
|
+
I = "/" + f.replace(/^\//, "").split("/").slice(h.length).join("/");
|
|
11702
11702
|
}
|
|
11703
11703
|
let d = Bo(e, {
|
|
11704
11704
|
pathname: I
|
|
11705
11705
|
});
|
|
11706
|
-
return process.env.NODE_ENV !== "production" && (process.env.NODE_ENV !== "production" && En(c || d != null, 'No routes matched location "' + E.pathname + E.search + E.hash + '" '), process.env.NODE_ENV !== "production" && En(d == null || d[d.length - 1].route.element !== void 0 || d[d.length - 1].route.Component !== void 0 || d[d.length - 1].route.lazy !== void 0, 'Matched leaf route at location "' + E.pathname + E.search + E.hash + '" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.')), gT(d && d.map((
|
|
11707
|
-
params: Object.assign({}, s,
|
|
11706
|
+
return process.env.NODE_ENV !== "production" && (process.env.NODE_ENV !== "production" && En(c || d != null, 'No routes matched location "' + E.pathname + E.search + E.hash + '" '), process.env.NODE_ENV !== "production" && En(d == null || d[d.length - 1].route.element !== void 0 || d[d.length - 1].route.Component !== void 0 || d[d.length - 1].route.lazy !== void 0, 'Matched leaf route at location "' + E.pathname + E.search + E.hash + '" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.')), gT(d && d.map((h) => Object.assign({}, h, {
|
|
11707
|
+
params: Object.assign({}, s, h.params),
|
|
11708
11708
|
pathname: sA([
|
|
11709
11709
|
l,
|
|
11710
11710
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
11711
|
-
A.encodeLocation ? A.encodeLocation(
|
|
11711
|
+
A.encodeLocation ? A.encodeLocation(h.pathname).pathname : h.pathname
|
|
11712
11712
|
]),
|
|
11713
|
-
pathnameBase:
|
|
11713
|
+
pathnameBase: h.pathnameBase === "/" ? l : sA([
|
|
11714
11714
|
l,
|
|
11715
11715
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
11716
|
-
A.encodeLocation ? A.encodeLocation(
|
|
11716
|
+
A.encodeLocation ? A.encodeLocation(h.pathnameBase).pathname : h.pathnameBase
|
|
11717
11717
|
])
|
|
11718
11718
|
})), o, n, r);
|
|
11719
11719
|
}
|
|
@@ -11820,13 +11820,13 @@ function gT(e, t, n, r) {
|
|
|
11820
11820
|
return i.reduceRight((c, g, E) => {
|
|
11821
11821
|
let f, I = !1, d = null, C = null;
|
|
11822
11822
|
n && (f = s && g.route.id ? s[g.route.id] : void 0, d = g.route.errorElement || lT, a && (l < 0 && E === 0 ? (sQ("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), I = !0, C = null) : l === E && (I = !0, C = g.route.hydrateFallbackElement || null)));
|
|
11823
|
-
let
|
|
11823
|
+
let h = t.concat(i.slice(0, E + 1)), B = () => {
|
|
11824
11824
|
let p;
|
|
11825
11825
|
return f ? p = d : I ? p = C : g.route.Component ? p = /* @__PURE__ */ S.createElement(g.route.Component, null) : g.route.element ? p = g.route.element : p = c, /* @__PURE__ */ S.createElement(uT, {
|
|
11826
11826
|
match: g,
|
|
11827
11827
|
routeContext: {
|
|
11828
11828
|
outlet: c,
|
|
11829
|
-
matches:
|
|
11829
|
+
matches: h,
|
|
11830
11830
|
isDataRoute: n != null
|
|
11831
11831
|
},
|
|
11832
11832
|
children: p
|
|
@@ -11837,13 +11837,13 @@ function gT(e, t, n, r) {
|
|
|
11837
11837
|
revalidation: n.revalidation,
|
|
11838
11838
|
component: d,
|
|
11839
11839
|
error: f,
|
|
11840
|
-
children:
|
|
11840
|
+
children: B(),
|
|
11841
11841
|
routeContext: {
|
|
11842
11842
|
outlet: null,
|
|
11843
|
-
matches:
|
|
11843
|
+
matches: h,
|
|
11844
11844
|
isDataRoute: !0
|
|
11845
11845
|
}
|
|
11846
|
-
}) :
|
|
11846
|
+
}) : B();
|
|
11847
11847
|
}, null);
|
|
11848
11848
|
}
|
|
11849
11849
|
var aQ = /* @__PURE__ */ function(e) {
|
|
@@ -12161,10 +12161,10 @@ function uQ(e) {
|
|
|
12161
12161
|
} = e, [A, o] = S.useState(n.state), [i, s] = S.useState(), [a, l] = S.useState({
|
|
12162
12162
|
isTransitioning: !1
|
|
12163
12163
|
}), [c, g] = S.useState(), [E, f] = S.useState(), [I, d] = S.useState(), C = S.useRef(/* @__PURE__ */ new Map()), {
|
|
12164
|
-
v7_startTransition:
|
|
12165
|
-
} = r || {},
|
|
12166
|
-
|
|
12167
|
-
}, [
|
|
12164
|
+
v7_startTransition: h
|
|
12165
|
+
} = r || {}, B = S.useCallback((m) => {
|
|
12166
|
+
h ? MT(m) : m();
|
|
12167
|
+
}, [h]), p = S.useCallback((m, x) => {
|
|
12168
12168
|
let {
|
|
12169
12169
|
deletedFetchers: M,
|
|
12170
12170
|
unstable_flushSync: F,
|
|
@@ -12175,7 +12175,7 @@ function uQ(e) {
|
|
|
12175
12175
|
});
|
|
12176
12176
|
let z = n.window == null || n.window.document == null || typeof n.window.document.startViewTransition != "function";
|
|
12177
12177
|
if (!J || z) {
|
|
12178
|
-
F ? Ia(() => o(m)) :
|
|
12178
|
+
F ? Ia(() => o(m)) : B(() => o(m));
|
|
12179
12179
|
return;
|
|
12180
12180
|
}
|
|
12181
12181
|
if (F) {
|
|
@@ -12209,13 +12209,13 @@ function uQ(e) {
|
|
|
12209
12209
|
currentLocation: J.currentLocation,
|
|
12210
12210
|
nextLocation: J.nextLocation
|
|
12211
12211
|
}));
|
|
12212
|
-
}, [n.window, E, c, C,
|
|
12212
|
+
}, [n.window, E, c, C, B]);
|
|
12213
12213
|
S.useLayoutEffect(() => n.subscribe(p), [n, p]), S.useEffect(() => {
|
|
12214
12214
|
a.isTransitioning && !a.flushSync && g(new jT());
|
|
12215
12215
|
}, [a]), S.useEffect(() => {
|
|
12216
12216
|
if (c && i && n.window) {
|
|
12217
12217
|
let m = i, x = c.promise, M = n.window.document.startViewTransition(async () => {
|
|
12218
|
-
|
|
12218
|
+
B(() => o(m)), await x;
|
|
12219
12219
|
});
|
|
12220
12220
|
M.finished.finally(() => {
|
|
12221
12221
|
g(void 0), f(void 0), s(void 0), l({
|
|
@@ -12223,7 +12223,7 @@ function uQ(e) {
|
|
|
12223
12223
|
});
|
|
12224
12224
|
}), f(M);
|
|
12225
12225
|
}
|
|
12226
|
-
}, [
|
|
12226
|
+
}, [B, i, c, n.window]), S.useEffect(() => {
|
|
12227
12227
|
c && i && A.location.key === i.location.key && c.resolve();
|
|
12228
12228
|
}, [c, E, A.location, i]), S.useEffect(() => {
|
|
12229
12229
|
!a.isTransitioning && I && (s(I.state), l({
|
|
@@ -12309,7 +12309,7 @@ const VT = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
|
12309
12309
|
}
|
|
12310
12310
|
let C = rT(l, {
|
|
12311
12311
|
relative: A
|
|
12312
|
-
}),
|
|
12312
|
+
}), h = JT(l, {
|
|
12313
12313
|
replace: i,
|
|
12314
12314
|
state: s,
|
|
12315
12315
|
target: a,
|
|
@@ -12317,14 +12317,14 @@ const VT = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
|
12317
12317
|
relative: A,
|
|
12318
12318
|
unstable_viewTransition: g
|
|
12319
12319
|
});
|
|
12320
|
-
function
|
|
12321
|
-
r && r(p), p.defaultPrevented ||
|
|
12320
|
+
function B(p) {
|
|
12321
|
+
r && r(p), p.defaultPrevented || h(p);
|
|
12322
12322
|
}
|
|
12323
12323
|
return (
|
|
12324
12324
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
12325
12325
|
/* @__PURE__ */ S.createElement("a", no({}, E, {
|
|
12326
12326
|
href: I || C,
|
|
12327
|
-
onClick: d || o ? r :
|
|
12327
|
+
onClick: d || o ? r : B,
|
|
12328
12328
|
ref: n,
|
|
12329
12329
|
target: a
|
|
12330
12330
|
}))
|
|
@@ -12346,17 +12346,17 @@ const WT = /* @__PURE__ */ S.forwardRef(function(t, n) {
|
|
|
12346
12346
|
}), f = io(), I = S.useContext(Vc), {
|
|
12347
12347
|
navigator: d,
|
|
12348
12348
|
basename: C
|
|
12349
|
-
} = S.useContext(Ur),
|
|
12349
|
+
} = S.useContext(Ur), h = I != null && // Conditional usage is OK here because the usage of a data router is static
|
|
12350
12350
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
12351
|
-
eS(E) && l === !0,
|
|
12352
|
-
A || (p = p.toLowerCase(), Q = Q ? Q.toLowerCase() : null,
|
|
12353
|
-
const v =
|
|
12354
|
-
let b = p ===
|
|
12351
|
+
eS(E) && l === !0, B = d.encodeLocation ? d.encodeLocation(E).pathname : E.pathname, p = f.pathname, Q = I && I.navigation && I.navigation.location ? I.navigation.location.pathname : null;
|
|
12352
|
+
A || (p = p.toLowerCase(), Q = Q ? Q.toLowerCase() : null, B = B.toLowerCase()), Q && C && (Q = kr(Q, C) || Q);
|
|
12353
|
+
const v = B !== "/" && B.endsWith("/") ? B.length - 1 : B.length;
|
|
12354
|
+
let b = p === B || !i && p.startsWith(B) && p.charAt(v) === "/", y = Q != null && (Q === B || !i && Q.startsWith(B) && Q.charAt(B.length) === "/"), m = {
|
|
12355
12355
|
isActive: b,
|
|
12356
12356
|
isPending: y,
|
|
12357
|
-
isTransitioning:
|
|
12357
|
+
isTransitioning: h
|
|
12358
12358
|
}, x = b ? r : void 0, M;
|
|
12359
|
-
typeof o == "function" ? M = o(m) : M = [o, b ? "active" : null, y ? "pending" : null,
|
|
12359
|
+
typeof o == "function" ? M = o(m) : M = [o, b ? "active" : null, y ? "pending" : null, h ? "transitioning" : null].filter(Boolean).join(" ");
|
|
12360
12360
|
let F = typeof s == "function" ? s(m) : s;
|
|
12361
12361
|
return /* @__PURE__ */ S.createElement(gQ, no({}, g, {
|
|
12362
12362
|
"aria-current": x,
|
|
@@ -12383,11 +12383,11 @@ const zT = /* @__PURE__ */ S.forwardRef((e, t) => {
|
|
|
12383
12383
|
unstable_viewTransition: E
|
|
12384
12384
|
} = e, f = lC(e, OT), I = ZT(), d = $T(a, {
|
|
12385
12385
|
relative: c
|
|
12386
|
-
}), C = s.toLowerCase() === "get" ? "get" : "post",
|
|
12387
|
-
if (l && l(
|
|
12388
|
-
|
|
12389
|
-
let p =
|
|
12390
|
-
I(p ||
|
|
12386
|
+
}), C = s.toLowerCase() === "get" ? "get" : "post", h = (B) => {
|
|
12387
|
+
if (l && l(B), B.defaultPrevented) return;
|
|
12388
|
+
B.preventDefault();
|
|
12389
|
+
let p = B.nativeEvent.submitter, Q = (p == null ? void 0 : p.getAttribute("formmethod")) || s;
|
|
12390
|
+
I(p || B.currentTarget, {
|
|
12391
12391
|
fetcherKey: n,
|
|
12392
12392
|
method: Q,
|
|
12393
12393
|
navigate: r,
|
|
@@ -12402,7 +12402,7 @@ const zT = /* @__PURE__ */ S.forwardRef((e, t) => {
|
|
|
12402
12402
|
ref: t,
|
|
12403
12403
|
method: C,
|
|
12404
12404
|
action: d,
|
|
12405
|
-
onSubmit: A ? l :
|
|
12405
|
+
onSubmit: A ? l : h
|
|
12406
12406
|
}, f));
|
|
12407
12407
|
});
|
|
12408
12408
|
process.env.NODE_ENV !== "production" && (zT.displayName = "Form");
|
|
@@ -14111,8 +14111,8 @@ class MQ {
|
|
|
14111
14111
|
} = r.current;
|
|
14112
14112
|
for (const d of I) {
|
|
14113
14113
|
const C = t.code, {
|
|
14114
|
-
isTop:
|
|
14115
|
-
isRight:
|
|
14114
|
+
isTop: h,
|
|
14115
|
+
isRight: B,
|
|
14116
14116
|
isLeft: p,
|
|
14117
14117
|
isBottom: Q,
|
|
14118
14118
|
maxScroll: v,
|
|
@@ -14120,7 +14120,7 @@ class MQ {
|
|
|
14120
14120
|
} = FQ(d), y = Y_(d), m = {
|
|
14121
14121
|
x: Math.min(C === Tt.Right ? y.right - y.width / 2 : y.right, Math.max(C === Tt.Right ? y.left : y.left + y.width / 2, g.x)),
|
|
14122
14122
|
y: Math.min(C === Tt.Down ? y.bottom - y.height / 2 : y.bottom, Math.max(C === Tt.Down ? y.top : y.top + y.height / 2, g.y))
|
|
14123
|
-
}, x = C === Tt.Right && !
|
|
14123
|
+
}, x = C === Tt.Right && !B || C === Tt.Left && !p, M = C === Tt.Down && !Q || C === Tt.Up && !h;
|
|
14124
14124
|
if (x && m.x !== g.x) {
|
|
14125
14125
|
const F = d.scrollLeft + E.x, J = C === Tt.Right && F <= v.x || C === Tt.Left && F >= b.x;
|
|
14126
14126
|
if (J && !E.y) {
|
|
@@ -14435,10 +14435,10 @@ function o5(e) {
|
|
|
14435
14435
|
}), [I, d] = f_(), C = Me({
|
|
14436
14436
|
x: 0,
|
|
14437
14437
|
y: 0
|
|
14438
|
-
}),
|
|
14438
|
+
}), h = Me({
|
|
14439
14439
|
x: 0,
|
|
14440
14440
|
y: 0
|
|
14441
|
-
}),
|
|
14441
|
+
}), B = Le(() => {
|
|
14442
14442
|
switch (n) {
|
|
14443
14443
|
case Ma.Pointer:
|
|
14444
14444
|
return a ? {
|
|
@@ -14454,12 +14454,12 @@ function o5(e) {
|
|
|
14454
14454
|
const b = p.current;
|
|
14455
14455
|
if (!b)
|
|
14456
14456
|
return;
|
|
14457
|
-
const y = C.current.x *
|
|
14457
|
+
const y = C.current.x * h.current.x, m = C.current.y * h.current.y;
|
|
14458
14458
|
b.scrollBy(y, m);
|
|
14459
14459
|
}, []), v = Le(() => s === sc.TreeOrder ? [...l].reverse() : l, [s, l]);
|
|
14460
14460
|
be(
|
|
14461
14461
|
() => {
|
|
14462
|
-
if (!o || !l.length || !
|
|
14462
|
+
if (!o || !l.length || !B) {
|
|
14463
14463
|
d();
|
|
14464
14464
|
return;
|
|
14465
14465
|
}
|
|
@@ -14472,18 +14472,18 @@ function o5(e) {
|
|
|
14472
14472
|
const {
|
|
14473
14473
|
direction: x,
|
|
14474
14474
|
speed: M
|
|
14475
|
-
} = z_(b, m,
|
|
14475
|
+
} = z_(b, m, B, t, E);
|
|
14476
14476
|
for (const F of ["x", "y"])
|
|
14477
14477
|
f[F][x[F]] || (M[F] = 0, x[F] = 0);
|
|
14478
14478
|
if (M.x > 0 || M.y > 0) {
|
|
14479
|
-
d(), p.current = b, I(Q, i), C.current = M,
|
|
14479
|
+
d(), p.current = b, I(Q, i), C.current = M, h.current = x;
|
|
14480
14480
|
return;
|
|
14481
14481
|
}
|
|
14482
14482
|
}
|
|
14483
14483
|
C.current = {
|
|
14484
14484
|
x: 0,
|
|
14485
14485
|
y: 0
|
|
14486
|
-
},
|
|
14486
|
+
}, h.current = {
|
|
14487
14487
|
x: 0,
|
|
14488
14488
|
y: 0
|
|
14489
14489
|
}, d();
|
|
@@ -14497,7 +14497,7 @@ function o5(e) {
|
|
|
14497
14497
|
o,
|
|
14498
14498
|
i,
|
|
14499
14499
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
14500
|
-
JSON.stringify(
|
|
14500
|
+
JSON.stringify(B),
|
|
14501
14501
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
14502
14502
|
JSON.stringify(f),
|
|
14503
14503
|
I,
|
|
@@ -14581,26 +14581,26 @@ function c5(e, t) {
|
|
|
14581
14581
|
frequency: s,
|
|
14582
14582
|
measure: a,
|
|
14583
14583
|
strategy: l
|
|
14584
|
-
} = A, c = Me(e), g = C(), E = ns(g), f = rt(function(
|
|
14585
|
-
|
|
14586
|
-
}, [E]), I = Me(null), d = Qs((
|
|
14584
|
+
} = A, c = Me(e), g = C(), E = ns(g), f = rt(function(h) {
|
|
14585
|
+
h === void 0 && (h = []), !E.current && i((B) => B === null ? h : B.concat(h.filter((p) => !B.includes(p))));
|
|
14586
|
+
}, [E]), I = Me(null), d = Qs((h) => {
|
|
14587
14587
|
if (g && !n)
|
|
14588
14588
|
return HI;
|
|
14589
|
-
if (!
|
|
14590
|
-
const
|
|
14589
|
+
if (!h || h === HI || c.current !== e || o != null) {
|
|
14590
|
+
const B = /* @__PURE__ */ new Map();
|
|
14591
14591
|
for (let p of e) {
|
|
14592
14592
|
if (!p)
|
|
14593
14593
|
continue;
|
|
14594
14594
|
if (o && o.length > 0 && !o.includes(p.id) && p.rect.current) {
|
|
14595
|
-
|
|
14595
|
+
B.set(p.id, p.rect.current);
|
|
14596
14596
|
continue;
|
|
14597
14597
|
}
|
|
14598
14598
|
const Q = p.node.current, v = Q ? new pC(a(Q), Q) : null;
|
|
14599
|
-
p.rect.current = v, v &&
|
|
14599
|
+
p.rect.current = v, v && B.set(p.id, v);
|
|
14600
14600
|
}
|
|
14601
|
-
return
|
|
14601
|
+
return B;
|
|
14602
14602
|
}
|
|
14603
|
-
return
|
|
14603
|
+
return h;
|
|
14604
14604
|
}, [e, o, n, g, a]);
|
|
14605
14605
|
return be(() => {
|
|
14606
14606
|
c.current = e;
|
|
@@ -15181,7 +15181,7 @@ const HQ = /* @__PURE__ */ q1(function(t) {
|
|
|
15181
15181
|
modifiers: f,
|
|
15182
15182
|
...I
|
|
15183
15183
|
} = t;
|
|
15184
|
-
const d = Sd(w5, void 0, x5), [C,
|
|
15184
|
+
const d = Sd(w5, void 0, x5), [C, h] = d, [B, p] = x_(), [Q, v] = de(UA.Uninitialized), b = Q === UA.Initialized, {
|
|
15185
15185
|
draggable: {
|
|
15186
15186
|
active: y,
|
|
15187
15187
|
nodes: m,
|
|
@@ -15292,18 +15292,18 @@ const HQ = /* @__PURE__ */ q1(function(t) {
|
|
|
15292
15292
|
}
|
|
15293
15293
|
};
|
|
15294
15294
|
Ls(() => {
|
|
15295
|
-
sr == null || sr(Ln), v(UA.Initializing),
|
|
15295
|
+
sr == null || sr(Ln), v(UA.Initializing), h({
|
|
15296
15296
|
type: dn.DragStart,
|
|
15297
15297
|
initialCoordinates: An,
|
|
15298
15298
|
active: Mt
|
|
15299
|
-
}),
|
|
15299
|
+
}), B({
|
|
15300
15300
|
type: "onDragStart",
|
|
15301
15301
|
event: Ln
|
|
15302
15302
|
}), Ee(On.current), Te(rn);
|
|
15303
15303
|
});
|
|
15304
15304
|
},
|
|
15305
15305
|
onMove(An) {
|
|
15306
|
-
|
|
15306
|
+
h({
|
|
15307
15307
|
type: dn.DragMove,
|
|
15308
15308
|
coordinates: An
|
|
15309
15309
|
});
|
|
@@ -15334,13 +15334,13 @@ const HQ = /* @__PURE__ */ q1(function(t) {
|
|
|
15334
15334
|
}, An === dn.DragEnd && typeof X == "function" && await Promise.resolve(X(k)) && (An = dn.DragCancel);
|
|
15335
15335
|
}
|
|
15336
15336
|
P.current = null, Ls(() => {
|
|
15337
|
-
|
|
15337
|
+
h({
|
|
15338
15338
|
type: An
|
|
15339
15339
|
}), v(UA.Uninitialized), fA(null), Ee(null), Te(null), On.current = null;
|
|
15340
15340
|
const X = An === dn.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
15341
15341
|
if (k) {
|
|
15342
15342
|
const w = oe.current[X];
|
|
15343
|
-
w == null || w(k),
|
|
15343
|
+
w == null || w(k), B({
|
|
15344
15344
|
type: X,
|
|
15345
15345
|
event: k
|
|
15346
15346
|
});
|
|
@@ -15392,7 +15392,7 @@ const HQ = /* @__PURE__ */ q1(function(t) {
|
|
|
15392
15392
|
over: tn
|
|
15393
15393
|
};
|
|
15394
15394
|
Ls(() => {
|
|
15395
|
-
Rt == null || Rt(rn),
|
|
15395
|
+
Rt == null || Rt(rn), B({
|
|
15396
15396
|
type: "onDragMove",
|
|
15397
15397
|
event: rn
|
|
15398
15398
|
});
|
|
@@ -15429,7 +15429,7 @@ const HQ = /* @__PURE__ */ q1(function(t) {
|
|
|
15429
15429
|
over: Yn
|
|
15430
15430
|
};
|
|
15431
15431
|
Ls(() => {
|
|
15432
|
-
fA(Yn), rn == null || rn(An),
|
|
15432
|
+
fA(Yn), rn == null || rn(An), B({
|
|
15433
15433
|
type: "onDragOver",
|
|
15434
15434
|
event: An
|
|
15435
15435
|
});
|
|
@@ -15490,11 +15490,11 @@ const HQ = /* @__PURE__ */ q1(function(t) {
|
|
|
15490
15490
|
ariaDescribedById: {
|
|
15491
15491
|
draggable: U
|
|
15492
15492
|
},
|
|
15493
|
-
dispatch:
|
|
15493
|
+
dispatch: h,
|
|
15494
15494
|
draggableNodes: m,
|
|
15495
15495
|
over: jt,
|
|
15496
15496
|
measureDroppableContainers: N
|
|
15497
|
-
}), [Qe, wr, z, se,
|
|
15497
|
+
}), [Qe, wr, z, se, h, U, m, jt, N]);
|
|
15498
15498
|
return Ce.createElement(wQ.Provider, {
|
|
15499
15499
|
value: p
|
|
15500
15500
|
}, Ce.createElement(Kc.Provider, {
|
|
@@ -15538,12 +15538,12 @@ function L5(e) {
|
|
|
15538
15538
|
role: f = XI,
|
|
15539
15539
|
roleDescription: I = "draggable",
|
|
15540
15540
|
tabIndex: d = 0
|
|
15541
|
-
} = A ?? {}, C = (a == null ? void 0 : a.id) === t,
|
|
15541
|
+
} = A ?? {}, C = (a == null ? void 0 : a.id) === t, h = ze(C ? VQ : D5), [B, p] = oc(), [Q, v] = oc(), b = B5(i, t), y = ns(n);
|
|
15542
15542
|
gA(
|
|
15543
15543
|
() => (g.set(t, {
|
|
15544
15544
|
id: t,
|
|
15545
15545
|
key: o,
|
|
15546
|
-
node:
|
|
15546
|
+
node: B,
|
|
15547
15547
|
activatorNode: Q,
|
|
15548
15548
|
data: y
|
|
15549
15549
|
}), () => {
|
|
@@ -15568,11 +15568,11 @@ function L5(e) {
|
|
|
15568
15568
|
attributes: m,
|
|
15569
15569
|
isDragging: C,
|
|
15570
15570
|
listeners: r ? void 0 : b,
|
|
15571
|
-
node:
|
|
15571
|
+
node: B,
|
|
15572
15572
|
over: E,
|
|
15573
15573
|
setNodeRef: p,
|
|
15574
15574
|
setActivatorNodeRef: v,
|
|
15575
|
-
transform:
|
|
15575
|
+
transform: h
|
|
15576
15576
|
};
|
|
15577
15577
|
}
|
|
15578
15578
|
function N5() {
|
|
@@ -15602,20 +15602,20 @@ function k5(e) {
|
|
|
15602
15602
|
} = {
|
|
15603
15603
|
...P5,
|
|
15604
15604
|
...A
|
|
15605
|
-
},
|
|
15605
|
+
}, h = ns(d ?? r), B = rt(
|
|
15606
15606
|
() => {
|
|
15607
15607
|
if (!g.current) {
|
|
15608
15608
|
g.current = !0;
|
|
15609
15609
|
return;
|
|
15610
15610
|
}
|
|
15611
15611
|
f.current != null && clearTimeout(f.current), f.current = setTimeout(() => {
|
|
15612
|
-
l(Array.isArray(
|
|
15612
|
+
l(Array.isArray(h.current) ? h.current : [h.current]), f.current = null;
|
|
15613
15613
|
}, C);
|
|
15614
15614
|
},
|
|
15615
15615
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
15616
15616
|
[C]
|
|
15617
15617
|
), p = Xc({
|
|
15618
|
-
callback:
|
|
15618
|
+
callback: B,
|
|
15619
15619
|
disabled: I || !i
|
|
15620
15620
|
}), Q = rt((m, x) => {
|
|
15621
15621
|
p && (x && (p.unobserve(x), g.current = !1), m && p.observe(m));
|
|
@@ -15769,11 +15769,11 @@ function XQ(e) {
|
|
|
15769
15769
|
droppableRects: a,
|
|
15770
15770
|
over: l,
|
|
15771
15771
|
measureDroppableContainers: c
|
|
15772
|
-
} = N5(), g = ms(YQ, n), E = s.rect !== null, f = Le(() => r.map((b) => typeof b == "object" && "id" in b ? b.id : b), [r]), I = i != null, d = i ? f.indexOf(i.id) : -1, C = l ? f.indexOf(l.id) : -1,
|
|
15772
|
+
} = N5(), g = ms(YQ, n), E = s.rect !== null, f = Le(() => r.map((b) => typeof b == "object" && "id" in b ? b.id : b), [r]), I = i != null, d = i ? f.indexOf(i.id) : -1, C = l ? f.indexOf(l.id) : -1, h = Me(f), B = !j5(f, h.current), p = C !== -1 && d === -1 || B, Q = U5(o);
|
|
15773
15773
|
gA(() => {
|
|
15774
|
-
|
|
15775
|
-
}, [
|
|
15776
|
-
|
|
15774
|
+
B && I && c(f);
|
|
15775
|
+
}, [B, f, I, c]), be(() => {
|
|
15776
|
+
h.current = f;
|
|
15777
15777
|
}, [f]);
|
|
15778
15778
|
const v = Le(
|
|
15779
15779
|
() => ({
|
|
@@ -15873,8 +15873,8 @@ function qQ(e) {
|
|
|
15873
15873
|
disableTransforms: I,
|
|
15874
15874
|
sortedRects: d,
|
|
15875
15875
|
overIndex: C,
|
|
15876
|
-
useDragOverlay:
|
|
15877
|
-
strategy:
|
|
15876
|
+
useDragOverlay: h,
|
|
15877
|
+
strategy: B
|
|
15878
15878
|
} = ze(JQ), p = X5(r, f), Q = c.indexOf(i), v = Le(() => ({
|
|
15879
15879
|
sortable: {
|
|
15880
15880
|
containerId: g,
|
|
@@ -15914,7 +15914,7 @@ function qQ(e) {
|
|
|
15914
15914
|
...n
|
|
15915
15915
|
},
|
|
15916
15916
|
disabled: p.draggable
|
|
15917
|
-
}), j = I_(M, ie), _ = !!F, R = _ && !I && Hs(E) && Hs(C), N = !
|
|
15917
|
+
}), j = I_(M, ie), _ = !!F, R = _ && !I && Hs(E) && Hs(C), N = !h && Qe, Y = N && R ? U : null, te = R ? Y ?? (s ?? B)({
|
|
15918
15918
|
rects: d,
|
|
15919
15919
|
activeNodeRect: z,
|
|
15920
15920
|
activeIndex: E,
|
|
@@ -16044,14 +16044,14 @@ const K5 = T(V)`
|
|
|
16044
16044
|
}
|
|
16045
16045
|
}
|
|
16046
16046
|
`, Z5 = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cellipse%20cx='7.48148'%20cy='4.94'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='7.48148'%20cy='10.7'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='7.48148'%20cy='16.46'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='12.42'%20cy='4.94'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='12.42'%20cy='10.7'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='12.42'%20cy='16.46'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3c/svg%3e", $5 = ({ field: e, toggleSelected: t, hideNewChip: n }) => {
|
|
16047
|
-
const { availableFeatures: r } = ze(In), { key: A, label: o, enabled: i, isFieldNew: s } = e, { attributes: a, listeners: l, setNodeRef: c, transform: g, transition: E } = qQ({ id: A }), f = Me(null), [I, d] = de(!1), C = Xa(r) && s && !n,
|
|
16047
|
+
const { availableFeatures: r } = ze(In), { key: A, label: o, enabled: i, isFieldNew: s } = e, { attributes: a, listeners: l, setNodeRef: c, transform: g, transition: E } = qQ({ id: A }), f = Me(null), [I, d] = de(!1), C = Xa(r) && s && !n, h = {
|
|
16048
16048
|
transform: Li.Transform.toString(g),
|
|
16049
16049
|
transition: E
|
|
16050
16050
|
};
|
|
16051
16051
|
return be(() => {
|
|
16052
|
-
const
|
|
16053
|
-
|
|
16054
|
-
}, [o]), /* @__PURE__ */ u.jsxs(K5, { ref: c, style:
|
|
16052
|
+
const B = f.current;
|
|
16053
|
+
B && d(B.scrollWidth > B.clientWidth || B.scrollHeight > B.clientHeight);
|
|
16054
|
+
}, [o]), /* @__PURE__ */ u.jsxs(K5, { ref: c, style: h, ...a, children: [
|
|
16055
16055
|
/* @__PURE__ */ u.jsx("img", { className: "field-drag-handle", ...l, src: Z5 }),
|
|
16056
16056
|
/* @__PURE__ */ u.jsx(Yo, { checked: i, onChange: () => t(A), sx: { marginLeft: "-6px" } }),
|
|
16057
16057
|
/* @__PURE__ */ u.jsx(Zt, { title: o, disableHoverListener: !I, children: /* @__PURE__ */ u.jsxs(V, { direction: "row", gap: "5px", alignItems: "center", children: [
|
|
@@ -16343,7 +16343,7 @@ const K5 = T(V)`
|
|
|
16343
16343
|
fields: s,
|
|
16344
16344
|
setVisitedFieldVisTab: a
|
|
16345
16345
|
}) => {
|
|
16346
|
-
const { availableFeatures: l, sendTrackingEvent: c } = ze(In), g = so(), E = dt(zc), f = dt(mQ) ?? [], I = dt(QQ) ?? [], d = dt(_4), C = dt(S4), { userId:
|
|
16346
|
+
const { availableFeatures: l, sendTrackingEvent: c } = ze(In), g = so(), E = dt(zc), f = dt(mQ) ?? [], I = dt(QQ) ?? [], d = dt(_4), C = dt(S4), { userId: h } = RA() || {}, [B, p] = de(
|
|
16347
16347
|
() => (I == null ? void 0 : I.filter((R) => n == null ? void 0 : n.includes(R.id))) ?? []
|
|
16348
16348
|
), [Q, v] = de(
|
|
16349
16349
|
() => (f == null ? void 0 : f.find((R) => A == null ? void 0 : A.includes(R.name))) ?? {}
|
|
@@ -16358,7 +16358,7 @@ const K5 = T(V)`
|
|
|
16358
16358
|
}, [g, t]), be(() => {
|
|
16359
16359
|
d[t] && y((R) => KI(R, d[t] || []));
|
|
16360
16360
|
}, [d, t]);
|
|
16361
|
-
const M = Le(() => !Array.isArray(n) || n.length !==
|
|
16361
|
+
const M = Le(() => !Array.isArray(n) || n.length !== B.length ? !1 : n.every((R) => B.some(({ id: N }) => N === R)), [n, B]), F = Le(() => Array.isArray(A) ? A.length ? !!(A != null && A.every((R) => Q.name === R)) : !Object.keys(Q).length : !1, [A, Q]), J = Le(() => {
|
|
16362
16362
|
const R = d[t] || [];
|
|
16363
16363
|
if (!Array.isArray(s)) return !1;
|
|
16364
16364
|
const N = KI(s, R);
|
|
@@ -16369,9 +16369,9 @@ const K5 = T(V)`
|
|
|
16369
16369
|
return !1;
|
|
16370
16370
|
}
|
|
16371
16371
|
return !0;
|
|
16372
|
-
}, [s, b, d, t]), z =
|
|
16372
|
+
}, [s, b, d, t]), z = B.length !== 0 && b.filter((R) => R.enabled).length === 0, P = C === Ne.LOADING || M && F && J || z, ie = Le(() => !!(s != null && s.some((R) => R.isFieldNew)), [s]), Ee = h && mC(t, h), Te = Xa(l) && ie && !Ee ? e0 : "", oe = (R) => {
|
|
16373
16373
|
R.stopPropagation();
|
|
16374
|
-
const N = Q != null && Q.name ? [Q.name] : [], Y =
|
|
16374
|
+
const N = Q != null && Q.name ? [Q.name] : [], Y = B.map((te) => te.id), K = b.map((te, ge) => ({ ...te, priority: ge + 1 }));
|
|
16375
16375
|
g(
|
|
16376
16376
|
gl({
|
|
16377
16377
|
cardId: t,
|
|
@@ -16421,7 +16421,7 @@ const K5 = T(V)`
|
|
|
16421
16421
|
/* @__PURE__ */ u.jsx("div", { hidden: m !== uo.CARD_VISIBILITY.ID, children: /* @__PURE__ */ u.jsx(
|
|
16422
16422
|
dR,
|
|
16423
16423
|
{
|
|
16424
|
-
selectedEmailInboxes:
|
|
16424
|
+
selectedEmailInboxes: B,
|
|
16425
16425
|
setSelectedEmailInboxes: p,
|
|
16426
16426
|
selectedRoles: Q,
|
|
16427
16427
|
setSelectedRoles: v
|
|
@@ -16493,18 +16493,18 @@ const IR = T(V)`
|
|
|
16493
16493
|
}
|
|
16494
16494
|
`, hR = ({ infoCard: e, currentConnectorId: t, setShowEnabledModal: n }) => {
|
|
16495
16495
|
var y, m;
|
|
16496
|
-
const r = ((y = e.inboxes) == null ? void 0 : y.email) || [], A = ((m = e.inboxes) == null ? void 0 : m.chat) || [], o = e.roles ?? [], i = e.fields ?? [], { isCardNew: s } = e, a = r.length + A.length, l = a > 0 && o.length > 0, [c, g] = de(!1), [E, f] = de(!1), { availableFeatures: I, userPermissions: d, sendTrackingEvent: C } = ze(In),
|
|
16497
|
-
g(x), !x &&
|
|
16496
|
+
const r = ((y = e.inboxes) == null ? void 0 : y.email) || [], A = ((m = e.inboxes) == null ? void 0 : m.chat) || [], o = e.roles ?? [], i = e.fields ?? [], { isCardNew: s } = e, a = r.length + A.length, l = a > 0 && o.length > 0, [c, g] = de(!1), [E, f] = de(!1), { availableFeatures: I, userPermissions: d, sendTrackingEvent: C } = ze(In), h = uy(d), { userId: B } = RA() || {}, p = (x) => {
|
|
16497
|
+
g(x), !x && B && (rR(e.id, B), E && nR(e.id, B));
|
|
16498
16498
|
}, Q = () => {
|
|
16499
16499
|
g(!0), C(vt.CONFIGURE_VISIBILITY_CLICKED);
|
|
16500
16500
|
}, v = Le(
|
|
16501
|
-
() => Xa(I) && s &&
|
|
16501
|
+
() => Xa(I) && s && B && !AR(e.id, B),
|
|
16502
16502
|
/* eslint-disable-next-line react-hooks/exhaustive-deps */
|
|
16503
|
-
[I, e,
|
|
16503
|
+
[I, e, B, c, s]
|
|
16504
16504
|
), b = Le(
|
|
16505
|
-
() =>
|
|
16505
|
+
() => B && Xa(I) && i.some((x) => x.isFieldNew) && !mC(e.id, B),
|
|
16506
16506
|
/* eslint-disable-next-line react-hooks/exhaustive-deps */
|
|
16507
|
-
[I, e,
|
|
16507
|
+
[I, e, B, c, i]
|
|
16508
16508
|
);
|
|
16509
16509
|
return /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
16510
16510
|
/* @__PURE__ */ u.jsxs(ER, { children: [
|
|
@@ -16518,7 +16518,7 @@ const IR = T(V)`
|
|
|
16518
16518
|
/* @__PURE__ */ u.jsxs(IR, { children: [
|
|
16519
16519
|
/* @__PURE__ */ u.jsx(ue, { className: "hover__text", variant: "caption", children: l ? `Visible across ${a} Shared mailbox${a > 1 ? "es" : ""}` : GS }),
|
|
16520
16520
|
/* @__PURE__ */ u.jsx(d_, { children: /* @__PURE__ */ u.jsx(fR, {}) }),
|
|
16521
|
-
/* @__PURE__ */ u.jsx(Zt, { title:
|
|
16521
|
+
/* @__PURE__ */ u.jsx(Zt, { title: h ? fQ : VS, placement: "bottom", children: /* @__PURE__ */ u.jsx(BR, { className: "visibilityIcon", onClick: Q, disabled: !h, children: l ? /* @__PURE__ */ u.jsx(C_, {}) : /* @__PURE__ */ u.jsx(E_, {}) }) })
|
|
16522
16522
|
] })
|
|
16523
16523
|
] }),
|
|
16524
16524
|
/* @__PURE__ */ u.jsx(CC, { shown: c, setShown: p, customPaperProps: { overflow: "inherit" }, children: /* @__PURE__ */ u.jsx(
|
|
@@ -16575,8 +16575,8 @@ const IR = T(V)`
|
|
|
16575
16575
|
isEdit: n = !1,
|
|
16576
16576
|
isConnectorCard: r = !1
|
|
16577
16577
|
}) => {
|
|
16578
|
-
const { sendTrackingEvent: A } = ze(In), { id: o, name: i, logo: s, description: a, isAuthenticated: l, showUpgradeButton: c = !1, updates: g } = e, E = dt(T4), f = dt(pQ), I = dt(dC), [d, C] = de(!1),
|
|
16579
|
-
P == null || P.stopPropagation(),
|
|
16578
|
+
const { sendTrackingEvent: A } = ze(In), { id: o, name: i, logo: s, description: a, isAuthenticated: l, showUpgradeButton: c = !1, updates: g } = e, E = dt(T4), f = dt(pQ), I = dt(dC), [d, C] = de(!1), h = so(), B = mn(), p = (P, ie) => {
|
|
16579
|
+
P == null || P.stopPropagation(), h(cl({ id: ie, enabled: P.target.checked })).unwrap().then(() => {
|
|
16580
16580
|
P.target.checked ? A(vt.TOGGLE_ENABLED, { connector_name: i }) : (A(vt.TOGGLE_DISABLED, { connector_name: i }), oA({
|
|
16581
16581
|
message: G4,
|
|
16582
16582
|
type: vQ
|
|
@@ -16588,13 +16588,13 @@ const IR = T(V)`
|
|
|
16588
16588
|
});
|
|
16589
16589
|
});
|
|
16590
16590
|
}, Q = (P, ie) => {
|
|
16591
|
-
P == null || P.stopPropagation(), A(vt.ADD_CONNECTOR_CLICKED, { connector_name: i }),
|
|
16591
|
+
P == null || P.stopPropagation(), A(vt.ADD_CONNECTOR_CLICKED, { connector_name: i }), B(`${ct.BASEPATH}${ct.CONNECTOR_SETTINGS}/${ie}`);
|
|
16592
16592
|
}, v = (P, ie) => {
|
|
16593
|
-
P == null || P.stopPropagation(), A(vt.SETTINGS_CLICKED, { connector_name: i }),
|
|
16593
|
+
P == null || P.stopPropagation(), A(vt.SETTINGS_CLICKED, { connector_name: i }), B(`${ct.BASEPATH}${ct.CONNECTOR_SETTINGS}/${ie}?isEdit=true`);
|
|
16594
16594
|
}, b = (P, ie = "") => {
|
|
16595
|
-
P == null || P.preventDefault(), P == null || P.stopPropagation(), !t &&
|
|
16595
|
+
P == null || P.preventDefault(), P == null || P.stopPropagation(), !t && B(`${ct.BASEPATH}${ct.API_VIEW}/${ie}?isEdit=true`);
|
|
16596
16596
|
}, y = (P) => {
|
|
16597
|
-
P == null || P.stopPropagation(),
|
|
16597
|
+
P == null || P.stopPropagation(), B(`${ct.BASEPATH}${ct.CONNECTOR_SETTINGS}/${o}?isEdit=true`);
|
|
16598
16598
|
};
|
|
16599
16599
|
let m = !1;
|
|
16600
16600
|
"isEnabled" in e && typeof e.isEnabled == "boolean" && (m = e.isEnabled);
|
|
@@ -16780,17 +16780,17 @@ const IR = T(V)`
|
|
|
16780
16780
|
connectorType: n,
|
|
16781
16781
|
isApi: r = !1
|
|
16782
16782
|
}) => {
|
|
16783
|
-
const { sendTrackingEvent: A } = ze(In), o = so(), i = dt(yR), s = dt(xR), a = dt(n0), [l, c] = de(""), [g, E] = de([]), [f, I] = de([]), [d, C] = de(!1), [
|
|
16783
|
+
const { sendTrackingEvent: A } = ze(In), o = so(), i = dt(yR), s = dt(xR), a = dt(n0), [l, c] = de(""), [g, E] = de([]), [f, I] = de([]), [d, C] = de(!1), [h, B] = de(!1), p = () => {
|
|
16784
16784
|
const y = r ? DI.API : DI.CONNECTOR, m = f.map((x) => x.id);
|
|
16785
16785
|
o(Bl({ type: y, values: m, description: l })).unwrap().then(() => {
|
|
16786
16786
|
A(
|
|
16787
16787
|
r ? vt.REQUEST_NEW_FEATURE_SUBMIT_CLICKED : vt.REQUEST_NEW_CONNECTOR_SUBMIT_CLICKED
|
|
16788
|
-
),
|
|
16788
|
+
), B(!0);
|
|
16789
16789
|
}).catch(() => {
|
|
16790
16790
|
oA({ message: LS, type: No });
|
|
16791
16791
|
});
|
|
16792
16792
|
};
|
|
16793
|
-
be(() => (e &&
|
|
16793
|
+
be(() => (e && h && B(!1), () => {
|
|
16794
16794
|
I([]), c("");
|
|
16795
16795
|
}), [e]), be(() => {
|
|
16796
16796
|
var y;
|
|
@@ -16812,7 +16812,7 @@ const IR = T(V)`
|
|
|
16812
16812
|
}, [s, i, r, n]), be(() => {
|
|
16813
16813
|
C(f.length > 0);
|
|
16814
16814
|
}, [f, l]);
|
|
16815
|
-
const Q =
|
|
16815
|
+
const Q = h && a !== Ne.LOADING, v = (y) => {
|
|
16816
16816
|
y || A(
|
|
16817
16817
|
r ? vt.REQUEST_NEW_FEATURE_CLOSE_CLICKED : vt.REQUEST_NEW_CONNECTOR_CLOSE_CLICKED
|
|
16818
16818
|
), t(y);
|
|
@@ -17158,7 +17158,7 @@ var $I;
|
|
|
17158
17158
|
function pD() {
|
|
17159
17159
|
if ($I) return bt;
|
|
17160
17160
|
$I = 1;
|
|
17161
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, A = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, a = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, E = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, d = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117,
|
|
17161
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, A = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, a = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, E = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, d = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, B = e ? Symbol.for("react.scope") : 60119;
|
|
17162
17162
|
function p(v) {
|
|
17163
17163
|
if (typeof v == "object" && v !== null) {
|
|
17164
17164
|
var b = v.$$typeof;
|
|
@@ -17217,7 +17217,7 @@ function pD() {
|
|
|
17217
17217
|
}, bt.isSuspense = function(v) {
|
|
17218
17218
|
return p(v) === g;
|
|
17219
17219
|
}, bt.isValidElementType = function(v) {
|
|
17220
|
-
return typeof v == "string" || typeof v == "function" || v === r || v === l || v === o || v === A || v === g || v === E || typeof v == "object" && v !== null && (v.$$typeof === I || v.$$typeof === f || v.$$typeof === i || v.$$typeof === s || v.$$typeof === c || v.$$typeof === C || v.$$typeof ===
|
|
17220
|
+
return typeof v == "string" || typeof v == "function" || v === r || v === l || v === o || v === A || v === g || v === E || typeof v == "object" && v !== null && (v.$$typeof === I || v.$$typeof === f || v.$$typeof === i || v.$$typeof === s || v.$$typeof === c || v.$$typeof === C || v.$$typeof === h || v.$$typeof === B || v.$$typeof === d);
|
|
17221
17221
|
}, bt.typeOf = p, bt;
|
|
17222
17222
|
}
|
|
17223
17223
|
var yt = {};
|
|
@@ -17232,10 +17232,10 @@ var yt = {};
|
|
|
17232
17232
|
var ef;
|
|
17233
17233
|
function QD() {
|
|
17234
17234
|
return ef || (ef = 1, process.env.NODE_ENV !== "production" && function() {
|
|
17235
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, A = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, a = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, E = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, d = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117,
|
|
17235
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, A = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, a = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, E = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, d = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, B = e ? Symbol.for("react.scope") : 60119;
|
|
17236
17236
|
function p(H) {
|
|
17237
17237
|
return typeof H == "string" || typeof H == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
17238
|
-
H === r || H === l || H === o || H === A || H === g || H === E || typeof H == "object" && H !== null && (H.$$typeof === I || H.$$typeof === f || H.$$typeof === i || H.$$typeof === s || H.$$typeof === c || H.$$typeof === C || H.$$typeof ===
|
|
17238
|
+
H === r || H === l || H === o || H === A || H === g || H === E || typeof H == "object" && H !== null && (H.$$typeof === I || H.$$typeof === f || H.$$typeof === i || H.$$typeof === s || H.$$typeof === c || H.$$typeof === C || H.$$typeof === h || H.$$typeof === B || H.$$typeof === d);
|
|
17239
17239
|
}
|
|
17240
17240
|
function Q(H) {
|
|
17241
17241
|
if (typeof H == "object" && H !== null) {
|
|
@@ -17452,15 +17452,15 @@ function bD() {
|
|
|
17452
17452
|
return j;
|
|
17453
17453
|
}
|
|
17454
17454
|
var E = "<<anonymous>>", f = {
|
|
17455
|
-
array:
|
|
17456
|
-
bigint:
|
|
17457
|
-
bool:
|
|
17458
|
-
func:
|
|
17459
|
-
number:
|
|
17460
|
-
object:
|
|
17461
|
-
string:
|
|
17462
|
-
symbol:
|
|
17463
|
-
any:
|
|
17455
|
+
array: h("array"),
|
|
17456
|
+
bigint: h("bigint"),
|
|
17457
|
+
bool: h("boolean"),
|
|
17458
|
+
func: h("function"),
|
|
17459
|
+
number: h("number"),
|
|
17460
|
+
object: h("object"),
|
|
17461
|
+
string: h("string"),
|
|
17462
|
+
symbol: h("symbol"),
|
|
17463
|
+
any: B(),
|
|
17464
17464
|
arrayOf: p,
|
|
17465
17465
|
element: Q(),
|
|
17466
17466
|
elementType: v(),
|
|
@@ -17502,7 +17502,7 @@ function bD() {
|
|
|
17502
17502
|
var N = R.bind(null, !1);
|
|
17503
17503
|
return N.isRequired = R.bind(null, !0), N;
|
|
17504
17504
|
}
|
|
17505
|
-
function
|
|
17505
|
+
function h(U) {
|
|
17506
17506
|
function j(_, R, N, Y, K, te) {
|
|
17507
17507
|
var ge = _[R], ne = Ee(ge);
|
|
17508
17508
|
if (ne !== U) {
|
|
@@ -17516,7 +17516,7 @@ function bD() {
|
|
|
17516
17516
|
}
|
|
17517
17517
|
return C(j);
|
|
17518
17518
|
}
|
|
17519
|
-
function
|
|
17519
|
+
function B() {
|
|
17520
17520
|
return C(i);
|
|
17521
17521
|
}
|
|
17522
17522
|
function p(U) {
|
|
@@ -17968,12 +17968,12 @@ const ND = /* @__PURE__ */ wc(c0);
|
|
|
17968
17968
|
I[d(O, $)] = I[$];
|
|
17969
17969
|
});
|
|
17970
17970
|
});
|
|
17971
|
-
var
|
|
17971
|
+
var h = function(O, q) {
|
|
17972
17972
|
return typeof q == "number" ? I[O] ? "" + q : q + "px" : "" + q;
|
|
17973
|
-
},
|
|
17973
|
+
}, B = function(O, q) {
|
|
17974
17974
|
return (
|
|
17975
17975
|
/* : string */
|
|
17976
|
-
v(
|
|
17976
|
+
v(h(O, q))
|
|
17977
17977
|
);
|
|
17978
17978
|
}, p = function(O, q) {
|
|
17979
17979
|
return (
|
|
@@ -18752,7 +18752,7 @@ const ND = /* @__PURE__ */ wc(c0);
|
|
|
18752
18752
|
q.keyOrder.unshift(he[ve]);
|
|
18753
18753
|
}
|
|
18754
18754
|
}
|
|
18755
|
-
for (var et = Z === !1 ?
|
|
18755
|
+
for (var et = Z === !1 ? h : B, ft = [], ht = 0; ht < q.keyOrder.length; ht++) {
|
|
18756
18756
|
var Nt = q.keyOrder[ht], on = me[Nt];
|
|
18757
18757
|
if (Array.isArray(on))
|
|
18758
18758
|
for (var Jn = 0; Jn < on.length; Jn++)
|
|
@@ -19463,40 +19463,40 @@ Hn.default = lO;
|
|
|
19463
19463
|
function l(C) {
|
|
19464
19464
|
if (C && C.__esModule)
|
|
19465
19465
|
return C;
|
|
19466
|
-
var
|
|
19466
|
+
var h = {};
|
|
19467
19467
|
if (C != null) {
|
|
19468
|
-
for (var
|
|
19469
|
-
if (Object.prototype.hasOwnProperty.call(C,
|
|
19470
|
-
var p = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(C,
|
|
19471
|
-
p.get || p.set ? Object.defineProperty(
|
|
19468
|
+
for (var B in C)
|
|
19469
|
+
if (Object.prototype.hasOwnProperty.call(C, B)) {
|
|
19470
|
+
var p = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(C, B) : {};
|
|
19471
|
+
p.get || p.set ? Object.defineProperty(h, B, p) : h[B] = C[B];
|
|
19472
19472
|
}
|
|
19473
19473
|
}
|
|
19474
|
-
return
|
|
19474
|
+
return h.default = C, h;
|
|
19475
19475
|
}
|
|
19476
19476
|
function c() {
|
|
19477
19477
|
return c = Object.assign || function(C) {
|
|
19478
|
-
for (var
|
|
19479
|
-
var
|
|
19480
|
-
for (var p in
|
|
19481
|
-
Object.prototype.hasOwnProperty.call(
|
|
19478
|
+
for (var h = 1; h < arguments.length; h++) {
|
|
19479
|
+
var B = arguments[h];
|
|
19480
|
+
for (var p in B)
|
|
19481
|
+
Object.prototype.hasOwnProperty.call(B, p) && (C[p] = B[p]);
|
|
19482
19482
|
}
|
|
19483
19483
|
return C;
|
|
19484
19484
|
}, c.apply(this, arguments);
|
|
19485
19485
|
}
|
|
19486
|
-
function g(C,
|
|
19487
|
-
C.prototype = Object.create(
|
|
19486
|
+
function g(C, h) {
|
|
19487
|
+
C.prototype = Object.create(h.prototype), C.prototype.constructor = C, C.__proto__ = h;
|
|
19488
19488
|
}
|
|
19489
|
-
var E = function(
|
|
19490
|
-
return
|
|
19491
|
-
return (0, r.default)(
|
|
19489
|
+
var E = function(h, B) {
|
|
19490
|
+
return h && B && B.split(" ").forEach(function(p) {
|
|
19491
|
+
return (0, r.default)(h, p);
|
|
19492
19492
|
});
|
|
19493
|
-
}, f = function(
|
|
19494
|
-
return
|
|
19495
|
-
return (0, A.default)(
|
|
19493
|
+
}, f = function(h, B) {
|
|
19494
|
+
return h && B && B.split(" ").forEach(function(p) {
|
|
19495
|
+
return (0, A.default)(h, p);
|
|
19496
19496
|
});
|
|
19497
19497
|
}, I = /* @__PURE__ */ function(C) {
|
|
19498
|
-
g(
|
|
19499
|
-
function
|
|
19498
|
+
g(h, C);
|
|
19499
|
+
function h() {
|
|
19500
19500
|
for (var p, Q = arguments.length, v = new Array(Q), b = 0; b < Q; b++)
|
|
19501
19501
|
v[b] = arguments[b];
|
|
19502
19502
|
return p = C.call.apply(C, [this].concat(v)) || this, p.onEnter = function(y, m) {
|
|
@@ -19526,13 +19526,13 @@ Hn.default = lO;
|
|
|
19526
19526
|
};
|
|
19527
19527
|
}, p;
|
|
19528
19528
|
}
|
|
19529
|
-
var
|
|
19530
|
-
return
|
|
19529
|
+
var B = h.prototype;
|
|
19530
|
+
return B.removeClasses = function(Q, v) {
|
|
19531
19531
|
var b = this.getClassNames(v), y = b.className, m = b.activeClassName, x = b.doneClassName;
|
|
19532
19532
|
y && f(Q, y), m && f(Q, m), x && f(Q, x);
|
|
19533
|
-
},
|
|
19533
|
+
}, B.reflowAndAddClass = function(Q, v) {
|
|
19534
19534
|
v && (Q && Q.scrollTop, E(Q, v));
|
|
19535
|
-
},
|
|
19535
|
+
}, B.render = function() {
|
|
19536
19536
|
var Q = c({}, this.props);
|
|
19537
19537
|
return delete Q.classNames, o.default.createElement(i.default, c({}, Q, {
|
|
19538
19538
|
onEnter: this.onEnter,
|
|
@@ -19542,7 +19542,7 @@ Hn.default = lO;
|
|
|
19542
19542
|
onExiting: this.onExiting,
|
|
19543
19543
|
onExited: this.onExited
|
|
19544
19544
|
}));
|
|
19545
|
-
},
|
|
19545
|
+
}, h;
|
|
19546
19546
|
}(o.default.Component);
|
|
19547
19547
|
I.defaultProps = {
|
|
19548
19548
|
classNames: ""
|
|
@@ -19733,17 +19733,17 @@ function gO(e, t, n) {
|
|
|
19733
19733
|
}
|
|
19734
19734
|
function s(d, C) {
|
|
19735
19735
|
if (d == null) return {};
|
|
19736
|
-
var
|
|
19737
|
-
for (Q = 0; Q <
|
|
19738
|
-
p =
|
|
19739
|
-
return
|
|
19736
|
+
var h = {}, B = Object.keys(d), p, Q;
|
|
19737
|
+
for (Q = 0; Q < B.length; Q++)
|
|
19738
|
+
p = B[Q], !(C.indexOf(p) >= 0) && (h[p] = d[p]);
|
|
19739
|
+
return h;
|
|
19740
19740
|
}
|
|
19741
19741
|
function a() {
|
|
19742
19742
|
return a = Object.assign || function(d) {
|
|
19743
19743
|
for (var C = 1; C < arguments.length; C++) {
|
|
19744
|
-
var
|
|
19745
|
-
for (var
|
|
19746
|
-
Object.prototype.hasOwnProperty.call(
|
|
19744
|
+
var h = arguments[C];
|
|
19745
|
+
for (var B in h)
|
|
19746
|
+
Object.prototype.hasOwnProperty.call(h, B) && (d[B] = h[B]);
|
|
19747
19747
|
}
|
|
19748
19748
|
return d;
|
|
19749
19749
|
}, a.apply(this, arguments);
|
|
@@ -19781,25 +19781,25 @@ function gO(e, t, n) {
|
|
|
19781
19781
|
*/
|
|
19782
19782
|
}, f = /* @__PURE__ */ function(d) {
|
|
19783
19783
|
l(C, d);
|
|
19784
|
-
function C(
|
|
19784
|
+
function C(B, p) {
|
|
19785
19785
|
var Q;
|
|
19786
|
-
Q = d.call(this,
|
|
19786
|
+
Q = d.call(this, B, p) || this;
|
|
19787
19787
|
var v = Q.handleExited.bind(c(c(Q)));
|
|
19788
19788
|
return Q.state = {
|
|
19789
19789
|
handleExited: v,
|
|
19790
19790
|
firstRender: !0
|
|
19791
19791
|
}, Q;
|
|
19792
19792
|
}
|
|
19793
|
-
var
|
|
19794
|
-
return
|
|
19793
|
+
var h = C.prototype;
|
|
19794
|
+
return h.getChildContext = function() {
|
|
19795
19795
|
return {
|
|
19796
19796
|
transitionGroup: {
|
|
19797
19797
|
isMounting: !this.appeared
|
|
19798
19798
|
}
|
|
19799
19799
|
};
|
|
19800
|
-
},
|
|
19800
|
+
}, h.componentDidMount = function() {
|
|
19801
19801
|
this.appeared = !0, this.mounted = !0;
|
|
19802
|
-
},
|
|
19802
|
+
}, h.componentWillUnmount = function() {
|
|
19803
19803
|
this.mounted = !1;
|
|
19804
19804
|
}, C.getDerivedStateFromProps = function(p, Q) {
|
|
19805
19805
|
var v = Q.children, b = Q.handleExited, y = Q.firstRender;
|
|
@@ -19807,7 +19807,7 @@ function gO(e, t, n) {
|
|
|
19807
19807
|
children: y ? (0, o.getInitialChildMapping)(p, b) : (0, o.getNextChildMapping)(p, v, b),
|
|
19808
19808
|
firstRender: !1
|
|
19809
19809
|
};
|
|
19810
|
-
},
|
|
19810
|
+
}, h.handleExited = function(p, Q) {
|
|
19811
19811
|
var v = (0, o.getChildMapping)(this.props.children);
|
|
19812
19812
|
p.key in v || (p.props.onExited && p.props.onExited(Q), this.mounted && this.setState(function(b) {
|
|
19813
19813
|
var y = a({}, b.children);
|
|
@@ -19815,7 +19815,7 @@ function gO(e, t, n) {
|
|
|
19815
19815
|
children: y
|
|
19816
19816
|
};
|
|
19817
19817
|
}));
|
|
19818
|
-
},
|
|
19818
|
+
}, h.render = function() {
|
|
19819
19819
|
var p = this.props, Q = p.component, v = p.childFactory, b = s(p, ["component", "childFactory"]), y = g(this.state.children).map(v);
|
|
19820
19820
|
return delete b.appear, delete b.enter, delete b.exit, Q === null ? y : r.default.createElement(Q, b, y);
|
|
19821
19821
|
}, C;
|
|
@@ -19898,41 +19898,41 @@ var h0 = cd.exports;
|
|
|
19898
19898
|
var l = /* @__PURE__ */ function(g) {
|
|
19899
19899
|
a(E, g);
|
|
19900
19900
|
function E() {
|
|
19901
|
-
for (var I, d = arguments.length, C = new Array(d),
|
|
19902
|
-
C[
|
|
19901
|
+
for (var I, d = arguments.length, C = new Array(d), h = 0; h < d; h++)
|
|
19902
|
+
C[h] = arguments[h];
|
|
19903
19903
|
return I = g.call.apply(g, [this].concat(C)) || this, I.handleEnter = function() {
|
|
19904
|
-
for (var
|
|
19904
|
+
for (var B = arguments.length, p = new Array(B), Q = 0; Q < B; Q++)
|
|
19905
19905
|
p[Q] = arguments[Q];
|
|
19906
19906
|
return I.handleLifecycle("onEnter", 0, p);
|
|
19907
19907
|
}, I.handleEntering = function() {
|
|
19908
|
-
for (var
|
|
19908
|
+
for (var B = arguments.length, p = new Array(B), Q = 0; Q < B; Q++)
|
|
19909
19909
|
p[Q] = arguments[Q];
|
|
19910
19910
|
return I.handleLifecycle("onEntering", 0, p);
|
|
19911
19911
|
}, I.handleEntered = function() {
|
|
19912
|
-
for (var
|
|
19912
|
+
for (var B = arguments.length, p = new Array(B), Q = 0; Q < B; Q++)
|
|
19913
19913
|
p[Q] = arguments[Q];
|
|
19914
19914
|
return I.handleLifecycle("onEntered", 0, p);
|
|
19915
19915
|
}, I.handleExit = function() {
|
|
19916
|
-
for (var
|
|
19916
|
+
for (var B = arguments.length, p = new Array(B), Q = 0; Q < B; Q++)
|
|
19917
19917
|
p[Q] = arguments[Q];
|
|
19918
19918
|
return I.handleLifecycle("onExit", 1, p);
|
|
19919
19919
|
}, I.handleExiting = function() {
|
|
19920
|
-
for (var
|
|
19920
|
+
for (var B = arguments.length, p = new Array(B), Q = 0; Q < B; Q++)
|
|
19921
19921
|
p[Q] = arguments[Q];
|
|
19922
19922
|
return I.handleLifecycle("onExiting", 1, p);
|
|
19923
19923
|
}, I.handleExited = function() {
|
|
19924
|
-
for (var
|
|
19924
|
+
for (var B = arguments.length, p = new Array(B), Q = 0; Q < B; Q++)
|
|
19925
19925
|
p[Q] = arguments[Q];
|
|
19926
19926
|
return I.handleLifecycle("onExited", 1, p);
|
|
19927
19927
|
}, I;
|
|
19928
19928
|
}
|
|
19929
19929
|
var f = E.prototype;
|
|
19930
|
-
return f.handleLifecycle = function(d, C,
|
|
19931
|
-
var
|
|
19932
|
-
Q.props[d] && (
|
|
19930
|
+
return f.handleLifecycle = function(d, C, h) {
|
|
19931
|
+
var B, p = this.props.children, Q = r.default.Children.toArray(p)[C];
|
|
19932
|
+
Q.props[d] && (B = Q.props)[d].apply(B, h), this.props[d] && this.props[d]((0, A.findDOMNode)(this));
|
|
19933
19933
|
}, f.render = function() {
|
|
19934
|
-
var d = this.props, C = d.children,
|
|
19935
|
-
return delete
|
|
19934
|
+
var d = this.props, C = d.children, h = d.in, B = s(d, ["children", "in"]), p = r.default.Children.toArray(C), Q = p[0], v = p[1];
|
|
19935
|
+
return delete B.onEnter, delete B.onEntering, delete B.onEntered, delete B.onExit, delete B.onExiting, delete B.onExited, r.default.createElement(o.default, B, h ? r.default.cloneElement(Q, {
|
|
19936
19936
|
key: "first",
|
|
19937
19937
|
onEnter: this.handleEnter,
|
|
19938
19938
|
onEntering: this.handleEntering,
|
|
@@ -20229,9 +20229,9 @@ var DO = Yt(function(e, t) {
|
|
|
20229
20229
|
if ((0, o.default)(I))
|
|
20230
20230
|
E[f] = g(I);
|
|
20231
20231
|
else if (Array.isArray(I)) {
|
|
20232
|
-
for (var d = [], C = 0,
|
|
20233
|
-
var
|
|
20234
|
-
(0, A.default)(d,
|
|
20232
|
+
for (var d = [], C = 0, h = I.length; C < h; ++C) {
|
|
20233
|
+
var B = (0, r.default)(c, f, I[C], E, l);
|
|
20234
|
+
(0, A.default)(d, B || I[C]);
|
|
20235
20235
|
}
|
|
20236
20236
|
d.length > 0 && (E[f] = d);
|
|
20237
20237
|
} else {
|
|
@@ -20430,8 +20430,8 @@ var FO = Yt(function(e, t) {
|
|
|
20430
20430
|
try {
|
|
20431
20431
|
for (var d = l[Symbol.iterator](), C; !(E = (C = d.next()).done) && (g.push(C.value), !(c && g.length === c)); E = !0)
|
|
20432
20432
|
;
|
|
20433
|
-
} catch (
|
|
20434
|
-
f = !0, I =
|
|
20433
|
+
} catch (h) {
|
|
20434
|
+
f = !0, I = h;
|
|
20435
20435
|
} finally {
|
|
20436
20436
|
try {
|
|
20437
20437
|
!E && d.return && d.return();
|
|
@@ -20646,11 +20646,11 @@ var C9 = Yt(function(e, t) {
|
|
|
20646
20646
|
return c;
|
|
20647
20647
|
for (var E = c.split(/,(?![^()]*(?:\([^()]*\))?\))/g), f = 0, I = E.length; f < I; ++f) {
|
|
20648
20648
|
var d = E[f], C = [d];
|
|
20649
|
-
for (var
|
|
20650
|
-
var
|
|
20651
|
-
if (d.indexOf(
|
|
20652
|
-
for (var p = g[
|
|
20653
|
-
C.unshift(d.replace(
|
|
20649
|
+
for (var h in g) {
|
|
20650
|
+
var B = (0, n.default)(h);
|
|
20651
|
+
if (d.indexOf(B) > -1 && B !== "order")
|
|
20652
|
+
for (var p = g[h], Q = 0, v = p.length; Q < v; ++Q)
|
|
20653
|
+
C.unshift(d.replace(B, s[p[Q]] + B));
|
|
20654
20654
|
}
|
|
20655
20655
|
E[f] = C.join(",");
|
|
20656
20656
|
}
|
|
@@ -20658,13 +20658,13 @@ var C9 = Yt(function(e, t) {
|
|
|
20658
20658
|
}
|
|
20659
20659
|
function l(c, g, E, f) {
|
|
20660
20660
|
if (typeof g == "string" && i.hasOwnProperty(c)) {
|
|
20661
|
-
var I = a(g, f), d = I.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(
|
|
20662
|
-
return !/-moz-|-ms-/.test(
|
|
20661
|
+
var I = a(g, f), d = I.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(h) {
|
|
20662
|
+
return !/-moz-|-ms-/.test(h);
|
|
20663
20663
|
}).join(",");
|
|
20664
20664
|
if (c.indexOf("Webkit") > -1)
|
|
20665
20665
|
return d;
|
|
20666
|
-
var C = I.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(
|
|
20667
|
-
return !/-webkit-|-ms-/.test(
|
|
20666
|
+
var C = I.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(h) {
|
|
20667
|
+
return !/-webkit-|-ms-/.test(h);
|
|
20668
20668
|
}).join(",");
|
|
20669
20669
|
return c.indexOf("Moz") > -1 ? C : (E["Webkit" + (0, A.default)(c)] = d, E["Moz" + (0, A.default)(c)] = C, I);
|
|
20670
20670
|
}
|
|
@@ -20846,8 +20846,8 @@ var C9 = Yt(function(e, t) {
|
|
|
20846
20846
|
for (var E = A === !1 ? Q0 : TO, f = [], I = 0; I < n.keyOrder.length; I++) {
|
|
20847
20847
|
var d = n.keyOrder[I], C = s[d];
|
|
20848
20848
|
if (Array.isArray(C))
|
|
20849
|
-
for (var
|
|
20850
|
-
f.push(If(d, C[
|
|
20849
|
+
for (var h = 0; h < C.length; h++)
|
|
20850
|
+
f.push(If(d, C[h], E));
|
|
20851
20851
|
else
|
|
20852
20852
|
f.push(If(d, C, E));
|
|
20853
20853
|
}
|
|
@@ -22514,25 +22514,25 @@ const _6 = {
|
|
|
22514
22514
|
be(() => {
|
|
22515
22515
|
s(c ? Pa(a) : Fa(a));
|
|
22516
22516
|
}, [c, s, a]);
|
|
22517
|
-
const f = (
|
|
22518
|
-
|
|
22519
|
-
}, I = c ? g : E, d = !!(I != null && I.carouselImages) && I.carouselImages.length > 0, C = o === Ne.LOADING || i === Ne.LOADING,
|
|
22517
|
+
const f = (B) => {
|
|
22518
|
+
B == null || B.stopPropagation(), t(vt.CONNECTOR_BACK_CLICKED, { connector_name: I == null ? void 0 : I.name }), n(ct.BASEPATH);
|
|
22519
|
+
}, I = c ? g : E, d = !!(I != null && I.carouselImages) && I.carouselImages.length > 0, C = o === Ne.LOADING || i === Ne.LOADING, h = uA(e, Kb) && (C || d);
|
|
22520
22520
|
return /* @__PURE__ */ u.jsxs(Ce.Fragment, { children: [
|
|
22521
22521
|
c ? null : /* @__PURE__ */ u.jsx(bC, { isApiViewPage: !0 }),
|
|
22522
22522
|
/* @__PURE__ */ u.jsxs(X6, { "data-testid": "connector-config", children: [
|
|
22523
22523
|
/* @__PURE__ */ u.jsx(Zt, { title: "Back", placement: "bottom", children: /* @__PURE__ */ u.jsx(K6, { onClick: f, children: /* @__PURE__ */ u.jsx("img", { src: J6 }) }) }),
|
|
22524
22524
|
I ? /* @__PURE__ */ u.jsx(t0, { isConfigSettingsPage: !0, connector: I, isEdit: c }) : null,
|
|
22525
|
-
|
|
22525
|
+
h && (d ? /* @__PURE__ */ u.jsx(
|
|
22526
22526
|
V6,
|
|
22527
22527
|
{
|
|
22528
22528
|
carouselImages: I.carouselImages,
|
|
22529
22529
|
templateDescription: I.templateDescription,
|
|
22530
22530
|
connectorName: I.name,
|
|
22531
22531
|
isEdit: c,
|
|
22532
|
-
renderModal: ({ showModal:
|
|
22532
|
+
renderModal: ({ showModal: B, setShowModal: p }) => /* @__PURE__ */ u.jsx(
|
|
22533
22533
|
vC,
|
|
22534
22534
|
{
|
|
22535
|
-
shown:
|
|
22535
|
+
shown: B,
|
|
22536
22536
|
setShown: p,
|
|
22537
22537
|
connectorType: I.type,
|
|
22538
22538
|
isApi: !0
|
|
@@ -22540,10 +22540,10 @@ const _6 = {
|
|
|
22540
22540
|
)
|
|
22541
22541
|
}
|
|
22542
22542
|
) : /* @__PURE__ */ u.jsx(Y6, {})),
|
|
22543
|
-
!
|
|
22543
|
+
!h && /* @__PURE__ */ u.jsx(
|
|
22544
22544
|
hD,
|
|
22545
22545
|
{
|
|
22546
|
-
isLoading: C && !
|
|
22546
|
+
isLoading: C && !h,
|
|
22547
22547
|
apiList: (I == null ? void 0 : I.apiList) || [],
|
|
22548
22548
|
connectorName: (I == null ? void 0 : I.name) || "",
|
|
22549
22549
|
connectorType: I == null ? void 0 : I.type,
|
|
@@ -22719,16 +22719,16 @@ function Vr(e, t) {
|
|
|
22719
22719
|
}
|
|
22720
22720
|
var mL = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
|
|
22721
22721
|
function kC(e) {
|
|
22722
|
-
var t = e.defaultInputValue, n = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, A = r === void 0 ? !1 : r, o = e.defaultValue, i = o === void 0 ? null : o, s = e.inputValue, a = e.menuIsOpen, l = e.onChange, c = e.onInputChange, g = e.onMenuClose, E = e.onMenuOpen, f = e.value, I = Vr(e, mL), d = de(s !== void 0 ? s : n), C = hn(d, 2),
|
|
22722
|
+
var t = e.defaultInputValue, n = t === void 0 ? "" : t, r = e.defaultMenuIsOpen, A = r === void 0 ? !1 : r, o = e.defaultValue, i = o === void 0 ? null : o, s = e.inputValue, a = e.menuIsOpen, l = e.onChange, c = e.onInputChange, g = e.onMenuClose, E = e.onMenuOpen, f = e.value, I = Vr(e, mL), d = de(s !== void 0 ? s : n), C = hn(d, 2), h = C[0], B = C[1], p = de(a !== void 0 ? a : A), Q = hn(p, 2), v = Q[0], b = Q[1], y = de(f !== void 0 ? f : i), m = hn(y, 2), x = m[0], M = m[1], F = rt(function(Te, oe) {
|
|
22723
22723
|
typeof l == "function" && l(Te, oe), M(Te);
|
|
22724
22724
|
}, [l]), J = rt(function(Te, oe) {
|
|
22725
22725
|
var U;
|
|
22726
|
-
typeof c == "function" && (U = c(Te, oe)),
|
|
22726
|
+
typeof c == "function" && (U = c(Te, oe)), B(U !== void 0 ? U : Te);
|
|
22727
22727
|
}, [c]), z = rt(function() {
|
|
22728
22728
|
typeof E == "function" && E(), b(!0);
|
|
22729
22729
|
}, [E]), P = rt(function() {
|
|
22730
22730
|
typeof g == "function" && g(), b(!1);
|
|
22731
|
-
}, [g]), ie = s !== void 0 ? s :
|
|
22731
|
+
}, [g]), ie = s !== void 0 ? s : h, Ee = a !== void 0 ? a : v, Qe = f !== void 0 ? f : x;
|
|
22732
22732
|
return ke(ke({}, I), {}, {
|
|
22733
22733
|
inputValue: ie,
|
|
22734
22734
|
menuIsOpen: Ee,
|
|
@@ -23011,17 +23011,17 @@ function XL(e) {
|
|
|
23011
23011
|
return im(wl("", null, null, null, [""], e = om(e), 0, [0], e));
|
|
23012
23012
|
}
|
|
23013
23013
|
function wl(e, t, n, r, A, o, i, s, a) {
|
|
23014
|
-
for (var l = 0, c = 0, g = i, E = 0, f = 0, I = 0, d = 1, C = 1,
|
|
23015
|
-
switch (I =
|
|
23014
|
+
for (var l = 0, c = 0, g = i, E = 0, f = 0, I = 0, d = 1, C = 1, h = 1, B = 0, p = "", Q = A, v = o, b = r, y = p; C; )
|
|
23015
|
+
switch (I = B, B = Cr()) {
|
|
23016
23016
|
case 40:
|
|
23017
23017
|
if (I != 108 && Tn(y, g - 1) == 58) {
|
|
23018
|
-
fd(y += Qt(xl(
|
|
23018
|
+
fd(y += Qt(xl(B), "&", "&\f"), "&\f") != -1 && (h = -1);
|
|
23019
23019
|
break;
|
|
23020
23020
|
}
|
|
23021
23021
|
case 34:
|
|
23022
23022
|
case 39:
|
|
23023
23023
|
case 91:
|
|
23024
|
-
y += xl(
|
|
23024
|
+
y += xl(B);
|
|
23025
23025
|
break;
|
|
23026
23026
|
case 9:
|
|
23027
23027
|
case 10:
|
|
@@ -23043,21 +23043,21 @@ function wl(e, t, n, r, A, o, i, s, a) {
|
|
|
23043
23043
|
}
|
|
23044
23044
|
break;
|
|
23045
23045
|
case 123 * d:
|
|
23046
|
-
s[l++] = $r(y) *
|
|
23046
|
+
s[l++] = $r(y) * h;
|
|
23047
23047
|
case 125 * d:
|
|
23048
23048
|
case 59:
|
|
23049
23049
|
case 0:
|
|
23050
|
-
switch (
|
|
23050
|
+
switch (B) {
|
|
23051
23051
|
case 0:
|
|
23052
23052
|
case 125:
|
|
23053
23053
|
C = 0;
|
|
23054
23054
|
case 59 + c:
|
|
23055
|
-
|
|
23055
|
+
h == -1 && (y = Qt(y, /\f/g, "")), f > 0 && $r(y) - g && Ks(f > 32 ? Df(y + ";", r, n, g - 1) : Df(Qt(y, " ", "") + ";", r, n, g - 2), a);
|
|
23056
23056
|
break;
|
|
23057
23057
|
case 59:
|
|
23058
23058
|
y += ";";
|
|
23059
23059
|
default:
|
|
23060
|
-
if (Ks(b = Rf(y, t, n, l, c, A, s, p, Q = [], v = [], g), o),
|
|
23060
|
+
if (Ks(b = Rf(y, t, n, l, c, A, s, p, Q = [], v = [], g), o), B === 123)
|
|
23061
23061
|
if (c === 0)
|
|
23062
23062
|
wl(y, t, b, b, Q, o, g, s, v);
|
|
23063
23063
|
else
|
|
@@ -23072,26 +23072,26 @@ function wl(e, t, n, r, A, o, i, s, a) {
|
|
|
23072
23072
|
wl(y, b, b, b, [""], v, 0, s, v);
|
|
23073
23073
|
}
|
|
23074
23074
|
}
|
|
23075
|
-
l = c = f = 0, d =
|
|
23075
|
+
l = c = f = 0, d = h = 1, p = y = "", g = i;
|
|
23076
23076
|
break;
|
|
23077
23077
|
case 58:
|
|
23078
23078
|
g = 1 + $r(y), f = I;
|
|
23079
23079
|
default:
|
|
23080
23080
|
if (d < 1) {
|
|
23081
|
-
if (
|
|
23081
|
+
if (B == 123)
|
|
23082
23082
|
--d;
|
|
23083
|
-
else if (
|
|
23083
|
+
else if (B == 125 && d++ == 0 && HL() == 125)
|
|
23084
23084
|
continue;
|
|
23085
23085
|
}
|
|
23086
|
-
switch (y += nu(
|
|
23086
|
+
switch (y += nu(B), B * d) {
|
|
23087
23087
|
case 38:
|
|
23088
|
-
|
|
23088
|
+
h = c > 0 ? 1 : (y += "\f", -1);
|
|
23089
23089
|
break;
|
|
23090
23090
|
case 44:
|
|
23091
|
-
s[l++] = ($r(y) - 1) *
|
|
23091
|
+
s[l++] = ($r(y) - 1) * h, h = 1;
|
|
23092
23092
|
break;
|
|
23093
23093
|
case 64:
|
|
23094
|
-
lA() === 45 && (y += xl(Cr())), E = lA(), c = g = $r(p = y += JL(yl())),
|
|
23094
|
+
lA() === 45 && (y += xl(Cr())), E = lA(), c = g = $r(p = y += JL(yl())), B++;
|
|
23095
23095
|
break;
|
|
23096
23096
|
case 45:
|
|
23097
23097
|
I === 45 && $r(y) == 2 && (d = 0);
|
|
@@ -23101,8 +23101,8 @@ function wl(e, t, n, r, A, o, i, s, a) {
|
|
|
23101
23101
|
}
|
|
23102
23102
|
function Rf(e, t, n, r, A, o, i, s, a, l, c) {
|
|
23103
23103
|
for (var g = A - 1, E = A === 0 ? o : [""], f = UC(E), I = 0, d = 0, C = 0; I < r; ++I)
|
|
23104
|
-
for (var
|
|
23105
|
-
(p = rm(d > 0 ? E[
|
|
23104
|
+
for (var h = 0, B = os(e, g + 1, g = kL(d = i[I])), p = e; h < f; ++h)
|
|
23105
|
+
(p = rm(d > 0 ? E[h] + " " + B : Qt(B, /&\f/g, E[h]))) && (a[C++] = p);
|
|
23106
23106
|
return Au(e, t, n, A === 0 ? MC : s, a, l, c);
|
|
23107
23107
|
}
|
|
23108
23108
|
function KL(e, t, n) {
|
|
@@ -23353,8 +23353,8 @@ var iN = function(t, n, r, A) {
|
|
|
23353
23353
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
23354
23354
|
document.querySelectorAll('style[data-emotion^="' + n + ' "]'),
|
|
23355
23355
|
function(d) {
|
|
23356
|
-
for (var C = d.getAttribute("data-emotion").split(" "),
|
|
23357
|
-
o[C[
|
|
23356
|
+
for (var C = d.getAttribute("data-emotion").split(" "), h = 1; h < C.length; h++)
|
|
23357
|
+
o[C[h]] = !0;
|
|
23358
23358
|
s.push(d);
|
|
23359
23359
|
}
|
|
23360
23360
|
);
|
|
@@ -23365,8 +23365,8 @@ var iN = function(t, n, r, A) {
|
|
|
23365
23365
|
})], E = ZL(l.concat(A, g)), f = function(C) {
|
|
23366
23366
|
return Ii(XL(C), E);
|
|
23367
23367
|
};
|
|
23368
|
-
a = function(C,
|
|
23369
|
-
c =
|
|
23368
|
+
a = function(C, h, B, p) {
|
|
23369
|
+
c = B, f(C ? C + "{" + h.styles + "}" : h.styles), p && (I.inserted[h.name] = !0);
|
|
23370
23370
|
};
|
|
23371
23371
|
}
|
|
23372
23372
|
var I = {
|
|
@@ -23398,7 +23398,7 @@ var Lf;
|
|
|
23398
23398
|
function lN() {
|
|
23399
23399
|
if (Lf) return xt;
|
|
23400
23400
|
Lf = 1;
|
|
23401
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, A = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, a = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, E = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, d = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117,
|
|
23401
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, A = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, a = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, E = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, d = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, B = e ? Symbol.for("react.scope") : 60119;
|
|
23402
23402
|
function p(v) {
|
|
23403
23403
|
if (typeof v == "object" && v !== null) {
|
|
23404
23404
|
var b = v.$$typeof;
|
|
@@ -23457,7 +23457,7 @@ function lN() {
|
|
|
23457
23457
|
}, xt.isSuspense = function(v) {
|
|
23458
23458
|
return p(v) === g;
|
|
23459
23459
|
}, xt.isValidElementType = function(v) {
|
|
23460
|
-
return typeof v == "string" || typeof v == "function" || v === r || v === l || v === o || v === A || v === g || v === E || typeof v == "object" && v !== null && (v.$$typeof === I || v.$$typeof === f || v.$$typeof === i || v.$$typeof === s || v.$$typeof === c || v.$$typeof === C || v.$$typeof ===
|
|
23460
|
+
return typeof v == "string" || typeof v == "function" || v === r || v === l || v === o || v === A || v === g || v === E || typeof v == "object" && v !== null && (v.$$typeof === I || v.$$typeof === f || v.$$typeof === i || v.$$typeof === s || v.$$typeof === c || v.$$typeof === C || v.$$typeof === h || v.$$typeof === B || v.$$typeof === d);
|
|
23461
23461
|
}, xt.typeOf = p, xt;
|
|
23462
23462
|
}
|
|
23463
23463
|
var wt = {};
|
|
@@ -23472,10 +23472,10 @@ var wt = {};
|
|
|
23472
23472
|
var Nf;
|
|
23473
23473
|
function cN() {
|
|
23474
23474
|
return Nf || (Nf = 1, process.env.NODE_ENV !== "production" && function() {
|
|
23475
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, A = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, a = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, E = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, d = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117,
|
|
23475
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, A = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, a = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, g = e ? Symbol.for("react.suspense") : 60113, E = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, d = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117, h = e ? Symbol.for("react.responder") : 60118, B = e ? Symbol.for("react.scope") : 60119;
|
|
23476
23476
|
function p(H) {
|
|
23477
23477
|
return typeof H == "string" || typeof H == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
23478
|
-
H === r || H === l || H === o || H === A || H === g || H === E || typeof H == "object" && H !== null && (H.$$typeof === I || H.$$typeof === f || H.$$typeof === i || H.$$typeof === s || H.$$typeof === c || H.$$typeof === C || H.$$typeof ===
|
|
23478
|
+
H === r || H === l || H === o || H === A || H === g || H === E || typeof H == "object" && H !== null && (H.$$typeof === I || H.$$typeof === f || H.$$typeof === i || H.$$typeof === s || H.$$typeof === c || H.$$typeof === C || H.$$typeof === h || H.$$typeof === B || H.$$typeof === d);
|
|
23479
23479
|
}
|
|
23480
23480
|
function Q(H) {
|
|
23481
23481
|
if (typeof H == "object" && H !== null) {
|
|
@@ -24016,7 +24016,7 @@ function Uf(e, t, n, r) {
|
|
|
24016
24016
|
const E = SA(o), f = r;
|
|
24017
24017
|
let I = E, d = Qd(I);
|
|
24018
24018
|
for (; d && r && f !== I; ) {
|
|
24019
|
-
const C = jf(d),
|
|
24019
|
+
const C = jf(d), h = d.getBoundingClientRect(), B = WC(d), p = h.left + (d.clientLeft + parseFloat(B.paddingLeft)) * C.x, Q = h.top + (d.clientTop + parseFloat(B.paddingTop)) * C.y;
|
|
24020
24020
|
a *= C.x, l *= C.y, c *= C.x, g *= C.y, a += p, l += Q, I = SA(d), d = Qd(I);
|
|
24021
24021
|
}
|
|
24022
24022
|
}
|
|
@@ -24044,7 +24044,7 @@ function YN(e, t) {
|
|
|
24044
24044
|
} = e.getBoundingClientRect();
|
|
24045
24045
|
if (s || t(), !g || !E)
|
|
24046
24046
|
return;
|
|
24047
|
-
const f = qs(c), I = qs(A.clientWidth - (l + g)), d = qs(A.clientHeight - (c + E)), C = qs(l),
|
|
24047
|
+
const f = qs(c), I = qs(A.clientWidth - (l + g)), d = qs(A.clientHeight - (c + E)), C = qs(l), B = {
|
|
24048
24048
|
rootMargin: -f + "px " + -I + "px " + -d + "px " + -C + "px",
|
|
24049
24049
|
threshold: PN(0, FN(1, a)) || 1
|
|
24050
24050
|
};
|
|
@@ -24062,12 +24062,12 @@ function YN(e, t) {
|
|
|
24062
24062
|
}
|
|
24063
24063
|
try {
|
|
24064
24064
|
n = new IntersectionObserver(Q, {
|
|
24065
|
-
...
|
|
24065
|
+
...B,
|
|
24066
24066
|
// Handle <iframe>s
|
|
24067
24067
|
root: A.ownerDocument
|
|
24068
24068
|
});
|
|
24069
24069
|
} catch {
|
|
24070
|
-
n = new IntersectionObserver(Q,
|
|
24070
|
+
n = new IntersectionObserver(Q, B);
|
|
24071
24071
|
}
|
|
24072
24072
|
n.observe(e);
|
|
24073
24073
|
}
|
|
@@ -24082,16 +24082,16 @@ function JN(e, t, n, r) {
|
|
|
24082
24082
|
layoutShift: s = typeof IntersectionObserver == "function",
|
|
24083
24083
|
animationFrame: a = !1
|
|
24084
24084
|
} = r, l = zC(e), c = A || o ? [...l ? Ic(l) : [], ...Ic(t)] : [];
|
|
24085
|
-
c.forEach((
|
|
24086
|
-
A &&
|
|
24085
|
+
c.forEach((h) => {
|
|
24086
|
+
A && h.addEventListener("scroll", n, {
|
|
24087
24087
|
passive: !0
|
|
24088
|
-
}), o &&
|
|
24088
|
+
}), o && h.addEventListener("resize", n);
|
|
24089
24089
|
});
|
|
24090
24090
|
const g = l && s ? YN(l, n) : null;
|
|
24091
24091
|
let E = -1, f = null;
|
|
24092
|
-
i && (f = new ResizeObserver((
|
|
24093
|
-
let [
|
|
24094
|
-
|
|
24092
|
+
i && (f = new ResizeObserver((h) => {
|
|
24093
|
+
let [B] = h;
|
|
24094
|
+
B && B.target === l && f && (f.unobserve(t), cancelAnimationFrame(E), E = requestAnimationFrame(() => {
|
|
24095
24095
|
var p;
|
|
24096
24096
|
(p = f) == null || p.observe(t);
|
|
24097
24097
|
})), n();
|
|
@@ -24099,14 +24099,14 @@ function JN(e, t, n, r) {
|
|
|
24099
24099
|
let I, d = a ? Uf(e) : null;
|
|
24100
24100
|
a && C();
|
|
24101
24101
|
function C() {
|
|
24102
|
-
const
|
|
24103
|
-
d && (
|
|
24102
|
+
const h = Uf(e);
|
|
24103
|
+
d && (h.x !== d.x || h.y !== d.y || h.width !== d.width || h.height !== d.height) && n(), d = h, I = requestAnimationFrame(C);
|
|
24104
24104
|
}
|
|
24105
24105
|
return n(), () => {
|
|
24106
|
-
var
|
|
24107
|
-
c.forEach((
|
|
24108
|
-
A &&
|
|
24109
|
-
}), g == null || g(), (
|
|
24106
|
+
var h;
|
|
24107
|
+
c.forEach((B) => {
|
|
24108
|
+
A && B.removeEventListener("scroll", n), o && B.removeEventListener("resize", n);
|
|
24109
|
+
}), g == null || g(), (h = f) == null || h.disconnect(), f = null, a && cancelAnimationFrame(I);
|
|
24110
24110
|
};
|
|
24111
24111
|
}
|
|
24112
24112
|
var md = vc, XN = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"], fc = function() {
|
|
@@ -24246,7 +24246,7 @@ function u8(e) {
|
|
|
24246
24246
|
maxHeight: t
|
|
24247
24247
|
};
|
|
24248
24248
|
if (!n || !n.offsetParent) return l;
|
|
24249
|
-
var c = a.getBoundingClientRect(), g = c.height, E = n.getBoundingClientRect(), f = E.bottom, I = E.height, d = E.top, C = n.offsetParent.getBoundingClientRect(),
|
|
24249
|
+
var c = a.getBoundingClientRect(), g = c.height, E = n.getBoundingClientRect(), f = E.bottom, I = E.height, d = E.top, C = n.offsetParent.getBoundingClientRect(), h = C.top, B = i ? window.innerHeight : $N(a), p = pm(a), Q = parseInt(getComputedStyle(n).marginBottom, 10), v = parseInt(getComputedStyle(n).marginTop, 10), b = h - v, y = B - d, m = b + p, x = g - p - d, M = f - B + p + Q, F = p + d - v, J = 160;
|
|
24250
24250
|
switch (A) {
|
|
24251
24251
|
case "auto":
|
|
24252
24252
|
case "bottom":
|
|
@@ -24329,7 +24329,7 @@ var mm = function(t) {
|
|
|
24329
24329
|
marginTop: s.menuGutter
|
|
24330
24330
|
});
|
|
24331
24331
|
}, vm = /* @__PURE__ */ _A(null), C8 = function(t) {
|
|
24332
|
-
var n = t.children, r = t.minMenuHeight, A = t.maxMenuHeight, o = t.menuPlacement, i = t.menuPosition, s = t.menuShouldScrollIntoView, a = t.theme, l = ze(vm) || {}, c = l.setPortalPlacement, g = Me(null), E = de(A), f = hn(E, 2), I = f[0], d = f[1], C = de(null),
|
|
24332
|
+
var n = t.children, r = t.minMenuHeight, A = t.maxMenuHeight, o = t.menuPlacement, i = t.menuPosition, s = t.menuShouldScrollIntoView, a = t.theme, l = ze(vm) || {}, c = l.setPortalPlacement, g = Me(null), E = de(A), f = hn(E, 2), I = f[0], d = f[1], C = de(null), h = hn(C, 2), B = h[0], p = h[1], Q = a.spacing.controlHeight;
|
|
24333
24333
|
return md(function() {
|
|
24334
24334
|
var v = g.current;
|
|
24335
24335
|
if (v) {
|
|
@@ -24347,7 +24347,7 @@ var mm = function(t) {
|
|
|
24347
24347
|
}, [A, o, i, s, r, c, Q]), n({
|
|
24348
24348
|
ref: g,
|
|
24349
24349
|
placerProps: ke(ke({}, t), {}, {
|
|
24350
|
-
placement:
|
|
24350
|
+
placement: B || mm(o),
|
|
24351
24351
|
maxHeight: I
|
|
24352
24352
|
})
|
|
24353
24353
|
});
|
|
@@ -24418,15 +24418,15 @@ var mm = function(t) {
|
|
|
24418
24418
|
return {
|
|
24419
24419
|
setPortalPlacement: f
|
|
24420
24420
|
};
|
|
24421
|
-
}, []), d = de(null), C = hn(d, 2),
|
|
24421
|
+
}, []), d = de(null), C = hn(d, 2), h = C[0], B = C[1], p = rt(function() {
|
|
24422
24422
|
if (A) {
|
|
24423
24423
|
var y = n8(A), m = s === "fixed" ? 0 : window.pageYOffset, x = y[E] + m;
|
|
24424
|
-
(x !== (
|
|
24424
|
+
(x !== (h == null ? void 0 : h.offset) || y.left !== (h == null ? void 0 : h.rect.left) || y.width !== (h == null ? void 0 : h.rect.width)) && B({
|
|
24425
24425
|
offset: x,
|
|
24426
24426
|
rect: y
|
|
24427
24427
|
});
|
|
24428
24428
|
}
|
|
24429
|
-
}, [A, s, E,
|
|
24429
|
+
}, [A, s, E, h == null ? void 0 : h.offset, h == null ? void 0 : h.rect.left, h == null ? void 0 : h.rect.width]);
|
|
24430
24430
|
md(function() {
|
|
24431
24431
|
p();
|
|
24432
24432
|
}, [p]);
|
|
@@ -24441,13 +24441,13 @@ var mm = function(t) {
|
|
|
24441
24441
|
var v = rt(function(y) {
|
|
24442
24442
|
a.current = y, Q();
|
|
24443
24443
|
}, [Q]);
|
|
24444
|
-
if (!n && s !== "fixed" || !
|
|
24444
|
+
if (!n && s !== "fixed" || !h) return null;
|
|
24445
24445
|
var b = Ve("div", He({
|
|
24446
24446
|
ref: v
|
|
24447
24447
|
}, qt(ke(ke({}, t), {}, {
|
|
24448
|
-
offset:
|
|
24448
|
+
offset: h.offset,
|
|
24449
24449
|
position: s,
|
|
24450
|
-
rect:
|
|
24450
|
+
rect: h.rect
|
|
24451
24451
|
}), "menuPortal", {
|
|
24452
24452
|
"menu-portal": !0
|
|
24453
24453
|
}), o), r);
|
|
@@ -25020,7 +25020,7 @@ var wF = process.env.NODE_ENV === "production" ? {
|
|
|
25020
25020
|
return "".concat(r).concat(n ? " for search term " + n : "", ".");
|
|
25021
25021
|
}
|
|
25022
25022
|
}, _F = function(t) {
|
|
25023
|
-
var n = t.ariaSelection, r = t.focusedOption, A = t.focusedValue, o = t.focusableOptions, i = t.isFocused, s = t.selectValue, a = t.selectProps, l = t.id, c = t.isAppleDevice, g = a.ariaLiveMessages, E = a.getOptionLabel, f = a.inputValue, I = a.isMulti, d = a.isOptionDisabled, C = a.isSearchable,
|
|
25023
|
+
var n = t.ariaSelection, r = t.focusedOption, A = t.focusedValue, o = t.focusableOptions, i = t.isFocused, s = t.selectValue, a = t.selectProps, l = t.id, c = t.isAppleDevice, g = a.ariaLiveMessages, E = a.getOptionLabel, f = a.inputValue, I = a.isMulti, d = a.isOptionDisabled, C = a.isSearchable, h = a.menuIsOpen, B = a.options, p = a.screenReaderStatus, Q = a.tabSelectsValue, v = a.isLoading, b = a["aria-label"], y = a["aria-live"], m = Le(function() {
|
|
25024
25024
|
return ke(ke({}, SF), g || {});
|
|
25025
25025
|
}, [g]), x = Le(function() {
|
|
25026
25026
|
var ie = "";
|
|
@@ -25055,7 +25055,7 @@ var wF = process.env.NODE_ENV === "production" ? {
|
|
|
25055
25055
|
return ie;
|
|
25056
25056
|
}, [r, A, E, d, m, o, s, c]), F = Le(function() {
|
|
25057
25057
|
var ie = "";
|
|
25058
|
-
if (
|
|
25058
|
+
if (h && B.length && !v && m.onFilter) {
|
|
25059
25059
|
var Ee = p({
|
|
25060
25060
|
count: o.length
|
|
25061
25061
|
});
|
|
@@ -25065,10 +25065,10 @@ var wF = process.env.NODE_ENV === "production" ? {
|
|
|
25065
25065
|
});
|
|
25066
25066
|
}
|
|
25067
25067
|
return ie;
|
|
25068
|
-
}, [o, f,
|
|
25068
|
+
}, [o, f, h, m, B, p, v]), J = (n == null ? void 0 : n.action) === "initial-input-focus", z = Le(function() {
|
|
25069
25069
|
var ie = "";
|
|
25070
25070
|
if (m.guidance) {
|
|
25071
|
-
var Ee = A ? "value" :
|
|
25071
|
+
var Ee = A ? "value" : h ? "menu" : "input";
|
|
25072
25072
|
ie = m.guidance({
|
|
25073
25073
|
"aria-label": b,
|
|
25074
25074
|
context: Ee,
|
|
@@ -25080,7 +25080,7 @@ var wF = process.env.NODE_ENV === "production" ? {
|
|
|
25080
25080
|
});
|
|
25081
25081
|
}
|
|
25082
25082
|
return ie;
|
|
25083
|
-
}, [b, r, A, I, d, C,
|
|
25083
|
+
}, [b, r, A, I, d, C, h, m, s, Q, J]), P = Ve(Ul, null, Ve("span", {
|
|
25084
25084
|
id: "aria-selection"
|
|
25085
25085
|
}, x), Ve("span", {
|
|
25086
25086
|
id: "aria-focused"
|
|
@@ -25408,24 +25408,24 @@ var kF = function(t) {
|
|
|
25408
25408
|
t.cancelable && t.preventDefault(), t.stopPropagation();
|
|
25409
25409
|
};
|
|
25410
25410
|
function MF(e) {
|
|
25411
|
-
var t = e.isEnabled, n = e.onBottomArrive, r = e.onBottomLeave, A = e.onTopArrive, o = e.onTopLeave, i = Me(!1), s = Me(!1), a = Me(0), l = Me(null), c = rt(function(C,
|
|
25411
|
+
var t = e.isEnabled, n = e.onBottomArrive, r = e.onBottomLeave, A = e.onTopArrive, o = e.onTopLeave, i = Me(!1), s = Me(!1), a = Me(0), l = Me(null), c = rt(function(C, h) {
|
|
25412
25412
|
if (l.current !== null) {
|
|
25413
|
-
var
|
|
25414
|
-
m >
|
|
25413
|
+
var B = l.current, p = B.scrollTop, Q = B.scrollHeight, v = B.clientHeight, b = l.current, y = h > 0, m = Q - v - p, x = !1;
|
|
25414
|
+
m > h && i.current && (r && r(C), i.current = !1), y && s.current && (o && o(C), s.current = !1), y && h > m ? (n && !i.current && n(C), b.scrollTop = Q, x = !0, i.current = !0) : !y && -h > p && (A && !s.current && A(C), b.scrollTop = 0, x = !0, s.current = !0), x && kF(C);
|
|
25415
25415
|
}
|
|
25416
25416
|
}, [n, r, A, o]), g = rt(function(C) {
|
|
25417
25417
|
c(C, C.deltaY);
|
|
25418
25418
|
}, [c]), E = rt(function(C) {
|
|
25419
25419
|
a.current = C.changedTouches[0].clientY;
|
|
25420
25420
|
}, []), f = rt(function(C) {
|
|
25421
|
-
var
|
|
25422
|
-
c(C,
|
|
25421
|
+
var h = a.current - C.changedTouches[0].clientY;
|
|
25422
|
+
c(C, h);
|
|
25423
25423
|
}, [c]), I = rt(function(C) {
|
|
25424
25424
|
if (C) {
|
|
25425
|
-
var
|
|
25425
|
+
var h = o8 ? {
|
|
25426
25426
|
passive: !1
|
|
25427
25427
|
} : !1;
|
|
25428
|
-
C.addEventListener("wheel", g,
|
|
25428
|
+
C.addEventListener("wheel", g, h), C.addEventListener("touchstart", E, h), C.addEventListener("touchmove", f, h);
|
|
25429
25429
|
}
|
|
25430
25430
|
}, [f, E, g]), d = rt(function(C) {
|
|
25431
25431
|
C && (C.removeEventListener("wheel", g, !1), C.removeEventListener("touchstart", E, !1), C.removeEventListener("touchmove", f, !1));
|
|
@@ -25835,8 +25835,8 @@ var Um = function(t) {
|
|
|
25835
25835
|
var l = A.props, c = l.blurInputOnSelect, g = l.isMulti, E = l.name, f = A.state.selectValue, I = g && A.isOptionSelected(a, f), d = A.isOptionDisabled(a, f);
|
|
25836
25836
|
if (I) {
|
|
25837
25837
|
var C = A.getOptionValue(a);
|
|
25838
|
-
A.setValue(f.filter(function(
|
|
25839
|
-
return A.getOptionValue(
|
|
25838
|
+
A.setValue(f.filter(function(h) {
|
|
25839
|
+
return A.getOptionValue(h) !== C;
|
|
25840
25840
|
}), "deselect-option", a);
|
|
25841
25841
|
} else if (!d)
|
|
25842
25842
|
g ? A.setValue([].concat(Ei(f), [a]), "select-option", a) : A.setValue(a, "select-option");
|
|
@@ -25991,8 +25991,8 @@ var Um = function(t) {
|
|
|
25991
25991
|
}, A.onValueInputFocus = function(a) {
|
|
25992
25992
|
a.preventDefault(), a.stopPropagation(), A.focus();
|
|
25993
25993
|
}, A.onKeyDown = function(a) {
|
|
25994
|
-
var l = A.props, c = l.isMulti, g = l.backspaceRemovesValue, E = l.escapeClearsValue, f = l.inputValue, I = l.isClearable, d = l.isDisabled, C = l.menuIsOpen,
|
|
25995
|
-
if (!d && !(typeof
|
|
25994
|
+
var l = A.props, c = l.isMulti, g = l.backspaceRemovesValue, E = l.escapeClearsValue, f = l.inputValue, I = l.isClearable, d = l.isDisabled, C = l.menuIsOpen, h = l.onKeyDown, B = l.tabSelectsValue, p = l.openMenuOnFocus, Q = A.state, v = Q.focusedOption, b = Q.focusedValue, y = Q.selectValue;
|
|
25995
|
+
if (!d && !(typeof h == "function" && (h(a), a.defaultPrevented))) {
|
|
25996
25996
|
switch (A.blockOptionHover = !0, a.key) {
|
|
25997
25997
|
case "ArrowLeft":
|
|
25998
25998
|
if (!c || f) return;
|
|
@@ -26013,7 +26013,7 @@ var Um = function(t) {
|
|
|
26013
26013
|
}
|
|
26014
26014
|
break;
|
|
26015
26015
|
case "Tab":
|
|
26016
|
-
if (A.isComposing || a.shiftKey || !C || !
|
|
26016
|
+
if (A.isComposing || a.shiftKey || !C || !B || !v || // don't capture the event if the menu opens on focus and the focused
|
|
26017
26017
|
// option is already selected; it breaks the flow of navigation
|
|
26018
26018
|
p && A.isOptionSelected(v, y))
|
|
26019
26019
|
return;
|
|
@@ -26313,7 +26313,7 @@ var Um = function(t) {
|
|
|
26313
26313
|
// Renderers
|
|
26314
26314
|
// ==============================
|
|
26315
26315
|
function() {
|
|
26316
|
-
var A = this.props, o = A.isDisabled, i = A.isSearchable, s = A.inputId, a = A.inputValue, l = A.tabIndex, c = A.form, g = A.menuIsOpen, E = A.required, f = this.getComponents(), I = f.Input, d = this.state, C = d.inputIsHidden,
|
|
26316
|
+
var A = this.props, o = A.isDisabled, i = A.isSearchable, s = A.inputId, a = A.inputValue, l = A.tabIndex, c = A.form, g = A.menuIsOpen, E = A.required, f = this.getComponents(), I = f.Input, d = this.state, C = d.inputIsHidden, h = d.ariaSelection, B = this.commonProps, p = s || this.getElementId("input"), Q = ke(ke(ke({
|
|
26317
26317
|
"aria-autocomplete": "list",
|
|
26318
26318
|
"aria-expanded": g,
|
|
26319
26319
|
"aria-haspopup": !0,
|
|
@@ -26328,12 +26328,12 @@ var Um = function(t) {
|
|
|
26328
26328
|
"aria-controls": this.getElementId("listbox")
|
|
26329
26329
|
}), !i && {
|
|
26330
26330
|
"aria-readonly": !0
|
|
26331
|
-
}), this.hasValue() ? (
|
|
26331
|
+
}), this.hasValue() ? (h == null ? void 0 : h.action) === "initial-input-focus" && {
|
|
26332
26332
|
"aria-describedby": this.getElementId("live-region")
|
|
26333
26333
|
} : {
|
|
26334
26334
|
"aria-describedby": this.getElementId("placeholder")
|
|
26335
26335
|
});
|
|
26336
|
-
return i ? /* @__PURE__ */ S.createElement(I, He({},
|
|
26336
|
+
return i ? /* @__PURE__ */ S.createElement(I, He({}, B, {
|
|
26337
26337
|
autoCapitalize: "none",
|
|
26338
26338
|
autoComplete: "off",
|
|
26339
26339
|
autoCorrect: "off",
|
|
@@ -26366,16 +26366,16 @@ var Um = function(t) {
|
|
|
26366
26366
|
}, {
|
|
26367
26367
|
key: "renderPlaceholderOrValue",
|
|
26368
26368
|
value: function() {
|
|
26369
|
-
var A = this, o = this.getComponents(), i = o.MultiValue, s = o.MultiValueContainer, a = o.MultiValueLabel, l = o.MultiValueRemove, c = o.SingleValue, g = o.Placeholder, E = this.commonProps, f = this.props, I = f.controlShouldRenderValue, d = f.isDisabled, C = f.isMulti,
|
|
26369
|
+
var A = this, o = this.getComponents(), i = o.MultiValue, s = o.MultiValueContainer, a = o.MultiValueLabel, l = o.MultiValueRemove, c = o.SingleValue, g = o.Placeholder, E = this.commonProps, f = this.props, I = f.controlShouldRenderValue, d = f.isDisabled, C = f.isMulti, h = f.inputValue, B = f.placeholder, p = this.state, Q = p.selectValue, v = p.focusedValue, b = p.isFocused;
|
|
26370
26370
|
if (!this.hasValue() || !I)
|
|
26371
|
-
return
|
|
26371
|
+
return h ? null : /* @__PURE__ */ S.createElement(g, He({}, E, {
|
|
26372
26372
|
key: "placeholder",
|
|
26373
26373
|
isDisabled: d,
|
|
26374
26374
|
isFocused: b,
|
|
26375
26375
|
innerProps: {
|
|
26376
26376
|
id: this.getElementId("placeholder")
|
|
26377
26377
|
}
|
|
26378
|
-
}),
|
|
26378
|
+
}), B);
|
|
26379
26379
|
if (C)
|
|
26380
26380
|
return Q.map(function(m, x) {
|
|
26381
26381
|
var M = m === v, F = "".concat(A.getOptionLabel(m), "-").concat(A.getOptionValue(m));
|
|
@@ -26403,7 +26403,7 @@ var Um = function(t) {
|
|
|
26403
26403
|
data: m
|
|
26404
26404
|
}), A.formatOptionLabel(m, "value"));
|
|
26405
26405
|
});
|
|
26406
|
-
if (
|
|
26406
|
+
if (h)
|
|
26407
26407
|
return null;
|
|
26408
26408
|
var y = Q[0];
|
|
26409
26409
|
return /* @__PURE__ */ S.createElement(c, He({}, E, {
|
|
@@ -26471,7 +26471,7 @@ var Um = function(t) {
|
|
|
26471
26471
|
}, {
|
|
26472
26472
|
key: "renderMenu",
|
|
26473
26473
|
value: function() {
|
|
26474
|
-
var A = this, o = this.getComponents(), i = o.Group, s = o.GroupHeading, a = o.Menu, l = o.MenuList, c = o.MenuPortal, g = o.LoadingMessage, E = o.NoOptionsMessage, f = o.Option, I = this.commonProps, d = this.state.focusedOption, C = this.props,
|
|
26474
|
+
var A = this, o = this.getComponents(), i = o.Group, s = o.GroupHeading, a = o.Menu, l = o.MenuList, c = o.MenuPortal, g = o.LoadingMessage, E = o.NoOptionsMessage, f = o.Option, I = this.commonProps, d = this.state.focusedOption, C = this.props, h = C.captureMenuScroll, B = C.inputValue, p = C.isLoading, Q = C.loadingMessage, v = C.minMenuHeight, b = C.maxMenuHeight, y = C.menuIsOpen, m = C.menuPlacement, x = C.menuPosition, M = C.menuPortalTarget, F = C.menuShouldBlockScroll, J = C.menuShouldScrollIntoView, z = C.noOptionsMessage, P = C.onMenuScrollToTop, ie = C.onMenuScrollToBottom;
|
|
26475
26475
|
if (!y) return null;
|
|
26476
26476
|
var Ee = function(R, N) {
|
|
26477
26477
|
var Y = R.type, K = R.data, te = R.isDisabled, ge = R.isSelected, ne = R.label, se = R.value, Ze = d === K, H = te ? void 0 : function() {
|
|
@@ -26523,13 +26523,13 @@ var Um = function(t) {
|
|
|
26523
26523
|
});
|
|
26524
26524
|
else if (p) {
|
|
26525
26525
|
var Te = Q({
|
|
26526
|
-
inputValue:
|
|
26526
|
+
inputValue: B
|
|
26527
26527
|
});
|
|
26528
26528
|
if (Te === null) return null;
|
|
26529
26529
|
Qe = /* @__PURE__ */ S.createElement(g, I, Te);
|
|
26530
26530
|
} else {
|
|
26531
26531
|
var oe = z({
|
|
26532
|
-
inputValue:
|
|
26532
|
+
inputValue: B
|
|
26533
26533
|
});
|
|
26534
26534
|
if (oe === null) return null;
|
|
26535
26535
|
Qe = /* @__PURE__ */ S.createElement(E, I, oe);
|
|
@@ -26551,7 +26551,7 @@ var Um = function(t) {
|
|
|
26551
26551
|
isLoading: p,
|
|
26552
26552
|
placement: Y
|
|
26553
26553
|
}), /* @__PURE__ */ S.createElement(HF, {
|
|
26554
|
-
captureEnabled:
|
|
26554
|
+
captureEnabled: h,
|
|
26555
26555
|
onTopArrive: P,
|
|
26556
26556
|
onBottomArrive: ie,
|
|
26557
26557
|
lockEnabled: F
|
|
@@ -26667,11 +26667,11 @@ var Um = function(t) {
|
|
|
26667
26667
|
}], [{
|
|
26668
26668
|
key: "getDerivedStateFromProps",
|
|
26669
26669
|
value: function(A, o) {
|
|
26670
|
-
var i = o.prevProps, s = o.clearFocusValueOnUpdate, a = o.inputIsHiddenAfterUpdate, l = o.ariaSelection, c = o.isFocused, g = o.prevWasFocused, E = o.instancePrefix, f = A.options, I = A.value, d = A.menuIsOpen, C = A.inputValue,
|
|
26670
|
+
var i = o.prevProps, s = o.clearFocusValueOnUpdate, a = o.inputIsHiddenAfterUpdate, l = o.ariaSelection, c = o.isFocused, g = o.prevWasFocused, E = o.instancePrefix, f = A.options, I = A.value, d = A.menuIsOpen, C = A.inputValue, h = A.isMulti, B = Bc(I), p = {};
|
|
26671
26671
|
if (i && (I !== i.value || f !== i.options || d !== i.menuIsOpen || C !== i.inputValue)) {
|
|
26672
|
-
var Q = d ? sP(A,
|
|
26672
|
+
var Q = d ? sP(A, B) : [], v = d ? nB(Tl(A, B), "".concat(E, "-option")) : [], b = s ? lP(o, B) : null, y = cP(o, Q), m = og(v, y);
|
|
26673
26673
|
p = {
|
|
26674
|
-
selectValue:
|
|
26674
|
+
selectValue: B,
|
|
26675
26675
|
focusedOption: y,
|
|
26676
26676
|
focusedOptionId: m,
|
|
26677
26677
|
focusableOptionsWithIds: v,
|
|
@@ -26684,8 +26684,8 @@ var Um = function(t) {
|
|
|
26684
26684
|
inputIsHiddenAfterUpdate: void 0
|
|
26685
26685
|
} : {}, M = l, F = c && g;
|
|
26686
26686
|
return c && !F && (M = {
|
|
26687
|
-
value: Ra(
|
|
26688
|
-
options:
|
|
26687
|
+
value: Ra(h, B, B[0] || null),
|
|
26688
|
+
options: B,
|
|
26689
26689
|
action: "initial-input-focus"
|
|
26690
26690
|
}, F = !g), (l == null ? void 0 : l.action) === "initial-input-focus" && (M = null), ke(ke(ke({}, p), x), {}, {
|
|
26691
26691
|
prevProps: A,
|
|
@@ -26862,8 +26862,8 @@ var Jm = /* @__PURE__ */ ((e) => (e.DATE = "DD/MM/YYYY", e))(Jm || {}), QP = ["d
|
|
|
26862
26862
|
function Xm(e) {
|
|
26863
26863
|
var t = e.defaultOptions, n = t === void 0 ? !1 : t, r = e.cacheOptions, A = r === void 0 ? !1 : r, o = e.loadOptions;
|
|
26864
26864
|
e.options;
|
|
26865
|
-
var i = e.isLoading, s = i === void 0 ? !1 : i, a = e.onInputChange, l = e.filterOption, c = l === void 0 ? null : l, g = Vr(e, QP), E = g.inputValue, f = Me(void 0), I = Me(!1), d = de(Array.isArray(n) ? n : void 0), C = hn(d, 2),
|
|
26866
|
-
A !== Ke && (K({}), Fe(A)), n !== ne && (
|
|
26865
|
+
var i = e.isLoading, s = i === void 0 ? !1 : i, a = e.onInputChange, l = e.filterOption, c = l === void 0 ? null : l, g = Vr(e, QP), E = g.inputValue, f = Me(void 0), I = Me(!1), d = de(Array.isArray(n) ? n : void 0), C = hn(d, 2), h = C[0], B = C[1], p = de(typeof E < "u" ? E : ""), Q = hn(p, 2), v = Q[0], b = Q[1], y = de(n === !0), m = hn(y, 2), x = m[0], M = m[1], F = de(void 0), J = hn(F, 2), z = J[0], P = J[1], ie = de([]), Ee = hn(ie, 2), Qe = Ee[0], Te = Ee[1], oe = de(!1), U = hn(oe, 2), j = U[0], _ = U[1], R = de({}), N = hn(R, 2), Y = N[0], K = N[1], te = de(void 0), ge = hn(te, 2), ne = ge[0], se = ge[1], Ze = de(void 0), H = hn(Ze, 2), Ke = H[0], Fe = H[1];
|
|
26866
|
+
A !== Ke && (K({}), Fe(A)), n !== ne && (B(Array.isArray(n) ? n : void 0), se(n)), be(function() {
|
|
26867
26867
|
return I.current = !0, function() {
|
|
26868
26868
|
I.current = !1;
|
|
26869
26869
|
};
|
|
@@ -26877,7 +26877,7 @@ function Xm(e) {
|
|
|
26877
26877
|
}, [o]);
|
|
26878
26878
|
be(function() {
|
|
26879
26879
|
n === !0 && ot(v, function(en) {
|
|
26880
|
-
I.current && (
|
|
26880
|
+
I.current && (B(en || []), M(!!f.current));
|
|
26881
26881
|
});
|
|
26882
26882
|
}, []);
|
|
26883
26883
|
var Gt = rt(function(en, un) {
|
|
@@ -26894,7 +26894,7 @@ function Xm(e) {
|
|
|
26894
26894
|
I && or === f.current && (f.current = void 0, M(!1), P(Dt), Te(_n || []), _(!1), K(_n ? ke(ke({}, Y), {}, li({}, Dt, _n)) : Y));
|
|
26895
26895
|
});
|
|
26896
26896
|
}
|
|
26897
|
-
}, [A, ot, z, Y, a]), bn = j ? [] : v && z ? Qe :
|
|
26897
|
+
}, [A, ot, z, Y, a]), bn = j ? [] : v && z ? Qe : h || [];
|
|
26898
26898
|
return ke(ke({}, g), {}, {
|
|
26899
26899
|
options: bn,
|
|
26900
26900
|
isLoading: x || s,
|
|
@@ -26930,12 +26930,12 @@ var mP = /* @__PURE__ */ yc(function(e, t) {
|
|
|
26930
26930
|
}
|
|
26931
26931
|
};
|
|
26932
26932
|
function yP(e) {
|
|
26933
|
-
var t = e.allowCreateWhileLoading, n = t === void 0 ? !1 : t, r = e.createOptionPosition, A = r === void 0 ? "last" : r, o = e.formatCreateLabel, i = o === void 0 ? ig.formatCreateLabel : o, s = e.isValidNewOption, a = s === void 0 ? ig.isValidNewOption : s, l = e.getNewOptionData, c = l === void 0 ? ig.getNewOptionData : l, g = e.onCreateOption, E = e.options, f = E === void 0 ? [] : E, I = e.onChange, d = Vr(e, bP), C = d.getOptionValue,
|
|
26933
|
+
var t = e.allowCreateWhileLoading, n = t === void 0 ? !1 : t, r = e.createOptionPosition, A = r === void 0 ? "last" : r, o = e.formatCreateLabel, i = o === void 0 ? ig.formatCreateLabel : o, s = e.isValidNewOption, a = s === void 0 ? ig.isValidNewOption : s, l = e.getNewOptionData, c = l === void 0 ? ig.getNewOptionData : l, g = e.onCreateOption, E = e.options, f = E === void 0 ? [] : E, I = e.onChange, d = Vr(e, bP), C = d.getOptionValue, h = C === void 0 ? Lm : C, B = d.getOptionLabel, p = B === void 0 ? Om : B, Q = d.inputValue, v = d.isLoading, b = d.isMulti, y = d.value, m = d.name, x = Le(function() {
|
|
26934
26934
|
return a(Q, Bc(y), f, {
|
|
26935
|
-
getOptionValue:
|
|
26935
|
+
getOptionValue: h,
|
|
26936
26936
|
getOptionLabel: p
|
|
26937
26937
|
}) ? c(Q, i(Q)) : void 0;
|
|
26938
|
-
}, [i, c, p,
|
|
26938
|
+
}, [i, c, p, h, Q, a, f, y]), M = Le(function() {
|
|
26939
26939
|
return (n || !v) && x ? A === "first" ? [x].concat(Ei(f)) : [].concat(Ei(f), [x]) : f;
|
|
26940
26940
|
}, [n, A, v, x, f]), F = rt(function(J, z) {
|
|
26941
26941
|
if (z.action !== "select-option")
|
|
@@ -26997,7 +26997,7 @@ function DP({ stackIndex: e, isScrollTarget: t, ...n }) {
|
|
|
26997
26997
|
isApiSearchEnabled: f = !1,
|
|
26998
26998
|
isInfiniteScrollable: I = !1,
|
|
26999
26999
|
loadOptionsOnFocus: d = !1
|
|
27000
|
-
} = n, { getValue: C, closeMenuOnScroll:
|
|
27000
|
+
} = n, { getValue: C, closeMenuOnScroll: h } = Wm({ options: r, isMulti: c, isScrollTarget: t }), B = (z, P, ie) => (l.current && l.current.abort("stale data"), l.current = new AbortController(), E == null ? void 0 : E(z, P, ie, l.current)), p = SP(
|
|
27001
27001
|
(z, P) => {
|
|
27002
27002
|
if (i(z), r.length > 0 && !f) {
|
|
27003
27003
|
const Ee = r.filter((Qe) => Qe && typeof Qe == "object" && "label" in Qe && typeof Qe.label == "string" ? Qe.label.toLowerCase().includes(z.toLowerCase()) : !1);
|
|
@@ -27007,14 +27007,14 @@ function DP({ stackIndex: e, isScrollTarget: t, ...n }) {
|
|
|
27007
27007
|
const ie = (Ee) => {
|
|
27008
27008
|
P(Ee), A(Ee);
|
|
27009
27009
|
};
|
|
27010
|
-
|
|
27010
|
+
B == null || B(z, ie, !1);
|
|
27011
27011
|
},
|
|
27012
27012
|
300
|
|
27013
27013
|
), Q = (z, P) => {
|
|
27014
27014
|
a(!1), !(P && "isError" in P && P.isError) && A(z);
|
|
27015
27015
|
}, v = (z) => {
|
|
27016
27016
|
var P;
|
|
27017
|
-
(P = n.onMenuScrollToBottom) == null || P.call(n, z), I && E && !s && (a(!0),
|
|
27017
|
+
(P = n.onMenuScrollToBottom) == null || P.call(n, z), I && E && !s && (a(!0), B(o, Q, !0));
|
|
27018
27018
|
}, b = (z, P) => {
|
|
27019
27019
|
var ie;
|
|
27020
27020
|
(ie = n.onInputChange) == null || ie.call(n, z, P), P.action === "input-change" && f && (i(z), A([]), z || (a(!0), p(z, Q)));
|
|
@@ -27023,7 +27023,7 @@ function DP({ stackIndex: e, isScrollTarget: t, ...n }) {
|
|
|
27023
27023
|
i(""), (P = n.onBlur) == null || P.call(n, z);
|
|
27024
27024
|
}, m = (z) => {
|
|
27025
27025
|
var P;
|
|
27026
|
-
(P = n.onFocus) == null || P.call(n, z), !s && d && (A([]), a(!0),
|
|
27026
|
+
(P = n.onFocus) == null || P.call(n, z), !s && d && (A([]), a(!0), B == null || B(o, Q, !1));
|
|
27027
27027
|
}, x = (z) => (P) => {
|
|
27028
27028
|
var Ee;
|
|
27029
27029
|
const ie = P.find((Qe) => Qe.label === z);
|
|
@@ -27035,7 +27035,7 @@ function DP({ stackIndex: e, isScrollTarget: t, ...n }) {
|
|
|
27035
27035
|
}, M = (z) => {
|
|
27036
27036
|
a(!0), g == null || g(z, x(z));
|
|
27037
27037
|
}, F = () => {
|
|
27038
|
-
a(!0),
|
|
27038
|
+
a(!0), B == null || B(o, Q, !1);
|
|
27039
27039
|
}, J = g ? wP : vP;
|
|
27040
27040
|
return /* @__PURE__ */ u.jsx(
|
|
27041
27041
|
J,
|
|
@@ -27059,7 +27059,7 @@ function DP({ stackIndex: e, isScrollTarget: t, ...n }) {
|
|
|
27059
27059
|
IndicatorSeparator: () => null,
|
|
27060
27060
|
Option: Gm
|
|
27061
27061
|
},
|
|
27062
|
-
closeMenuOnScroll:
|
|
27062
|
+
closeMenuOnScroll: h,
|
|
27063
27063
|
...g ? {
|
|
27064
27064
|
formatCreateLabel: RP,
|
|
27065
27065
|
createOptionPosition: "first",
|
|
@@ -27313,7 +27313,7 @@ const JP = {
|
|
|
27313
27313
|
onFocus: f,
|
|
27314
27314
|
onValidationError: I
|
|
27315
27315
|
}) => {
|
|
27316
|
-
const d = t ?? [], C = (A == null ? void 0 : A.validations) ?? {},
|
|
27316
|
+
const d = t ?? [], C = (A == null ? void 0 : A.validations) ?? {}, h = Me(), B = Me({}), [p, Q] = de({}), { colsLength: v, colsTemplate: b, colWidth: y } = Le(() => {
|
|
27317
27317
|
let _ = 0, R = "";
|
|
27318
27318
|
for (const N of r) {
|
|
27319
27319
|
let Y = N.cols ? Number(N.cols) : 1;
|
|
@@ -27350,7 +27350,7 @@ const JP = {
|
|
|
27350
27350
|
E(_);
|
|
27351
27351
|
}, [t, E, o]);
|
|
27352
27352
|
const M = () => {
|
|
27353
|
-
const _ = Object.entries(
|
|
27353
|
+
const _ = Object.entries(B.current).filter((R) => !!R[1])[0];
|
|
27354
27354
|
return (_ == null ? void 0 : _[1]) ?? "";
|
|
27355
27355
|
}, F = () => {
|
|
27356
27356
|
const _ = {
|
|
@@ -27363,8 +27363,8 @@ const JP = {
|
|
|
27363
27363
|
...N,
|
|
27364
27364
|
[_]: {}
|
|
27365
27365
|
}));
|
|
27366
|
-
for (const N in
|
|
27367
|
-
N.startsWith(`${_}.`) && delete
|
|
27366
|
+
for (const N in B.current)
|
|
27367
|
+
N.startsWith(`${_}.`) && delete B.current[N];
|
|
27368
27368
|
I == null || I(e, M());
|
|
27369
27369
|
}, z = (_, { columnNames: R = [], operationType: N }) => {
|
|
27370
27370
|
const Y = R.map((K) => _[K]);
|
|
@@ -27421,13 +27421,13 @@ const JP = {
|
|
|
27421
27421
|
Y && Q((K) => {
|
|
27422
27422
|
const te = K[_] ?? {};
|
|
27423
27423
|
return { ...K, [_]: { ...te, [R]: N } };
|
|
27424
|
-
}),
|
|
27425
|
-
...
|
|
27424
|
+
}), B.current = {
|
|
27425
|
+
...B.current,
|
|
27426
27426
|
[`${_}.${R}`]: typeof N == "string" ? N : ""
|
|
27427
27427
|
}, I == null || I(e, M());
|
|
27428
|
-
}, j = (_) =>
|
|
27428
|
+
}, j = (_) => h.current === _;
|
|
27429
27429
|
return /* @__PURE__ */ u.jsxs(OP, { children: [
|
|
27430
|
-
/* @__PURE__ */ u.jsx(LP, { ref:
|
|
27430
|
+
/* @__PURE__ */ u.jsx(LP, { ref: h, children: /* @__PURE__ */ u.jsxs(NP, { gridColumns: b, minWidth: `calc( ${v} * ${y} )`, children: [
|
|
27431
27431
|
/* @__PURE__ */ u.jsx(PP, { children: r.map(({ name: _, label: R, isRequired: N }) => /* @__PURE__ */ u.jsx(ag, { children: /* @__PURE__ */ u.jsx($m, { label: R, isRequired: N }) }, _)) }),
|
|
27432
27432
|
d.map(({ [fo]: _, ...R }) => /* @__PURE__ */ u.jsxs(qm, { children: [
|
|
27433
27433
|
r.map(({ name: N, key: Y, ...K }) => {
|
|
@@ -27740,15 +27740,15 @@ const qP = T(pe)`
|
|
|
27740
27740
|
helperText: I,
|
|
27741
27741
|
id: d,
|
|
27742
27742
|
label: C,
|
|
27743
|
-
name:
|
|
27744
|
-
type:
|
|
27743
|
+
name: h,
|
|
27744
|
+
type: B,
|
|
27745
27745
|
validateOnBlur: p = !0,
|
|
27746
27746
|
validateOnChange: Q = !0,
|
|
27747
27747
|
isRequired: v,
|
|
27748
27748
|
labelSpacing: b = 1,
|
|
27749
27749
|
showGlobalLoader: y = !1,
|
|
27750
27750
|
hideHelperText: m = !1,
|
|
27751
|
-
meta: { isExpandable: x =
|
|
27751
|
+
meta: { isExpandable: x = B === "table", isExpanded: M = !0 } = {}
|
|
27752
27752
|
} = E, [F, J] = de(!1), [z, P] = de(""), [ie, Ee] = de(M);
|
|
27753
27753
|
be(() => {
|
|
27754
27754
|
F || Te(E.value, !1);
|
|
@@ -27763,12 +27763,12 @@ const qP = T(pe)`
|
|
|
27763
27763
|
const Fe = f.isRequired(ne);
|
|
27764
27764
|
Fe && typeof Fe == "boolean" ? H = AB : Fe && (H = Fe);
|
|
27765
27765
|
}
|
|
27766
|
-
let Ke = { id: d, name:
|
|
27766
|
+
let Ke = { id: d, name: h, label: C };
|
|
27767
27767
|
if (E.type === "date" ? Ke = { ...Ke, disableFuture: E.disableFuture, disablePast: E.disablePast } : E.type === "number" ? Ke = { ...Ke, min: E.min, max: E.max } : E.type === "text" && E.multiline && (Ke = { ...Ke, maxCharacters: E.maxCharacters }), ne && !H && (f != null && f.validate)) {
|
|
27768
27768
|
const Fe = f.validate(ne, { ...Ke, ...Ze });
|
|
27769
27769
|
typeof Fe == "boolean" && Fe === !1 ? H = pP : typeof Fe == "string" && (H = Fe);
|
|
27770
27770
|
}
|
|
27771
|
-
se && P(H), i == null || i(
|
|
27771
|
+
se && P(H), i == null || i(h, H, se);
|
|
27772
27772
|
}
|
|
27773
27773
|
const oe = (ne) => {
|
|
27774
27774
|
var se;
|
|
@@ -27780,9 +27780,9 @@ const qP = T(pe)`
|
|
|
27780
27780
|
}, R = (ne, se) => {
|
|
27781
27781
|
a == null || a(ne, se), ne && !F && J(!0), ne && typeof ne == "object" && "value" in ne && F && Q && Te(ne.value);
|
|
27782
27782
|
}, N = (ne, se) => {
|
|
27783
|
-
l == null || l(
|
|
27783
|
+
l == null || l(h, ne, se), ne && !F && J(!0), F && Q && Te(ne);
|
|
27784
27784
|
}, Y = (ne) => {
|
|
27785
|
-
c == null || c(
|
|
27785
|
+
c == null || c(h, ne);
|
|
27786
27786
|
}, K = (ne, se) => {
|
|
27787
27787
|
F && (i == null || i(ne, se), P(typeof se == "string" ? se : ""));
|
|
27788
27788
|
}, te = (ne) => {
|
|
@@ -27941,15 +27941,15 @@ const qP = T(pe)`
|
|
|
27941
27941
|
labelSpacing: I = 1,
|
|
27942
27942
|
fetchConfig: d,
|
|
27943
27943
|
createConfig: C,
|
|
27944
|
-
showGlobalLoader:
|
|
27945
|
-
cols:
|
|
27944
|
+
showGlobalLoader: h = !1,
|
|
27945
|
+
cols: B = 1
|
|
27946
27946
|
}) => {
|
|
27947
27947
|
const p = (Q) => (v, b) => {
|
|
27948
27948
|
n == null || n(v, b, Q);
|
|
27949
27949
|
};
|
|
27950
27950
|
return /* @__PURE__ */ u.jsx(i7, { spacing: E, children: e.map(({ id: Q, title: v, formFields: b }) => b.every((m) => m.hideInUI) ? null : /* @__PURE__ */ u.jsxs(Ce.Fragment, { children: [
|
|
27951
27951
|
v && b.length ? /* @__PURE__ */ u.jsx(ue, { variant: "h3", className: "authform__section-title", children: v }) : null,
|
|
27952
|
-
/* @__PURE__ */ u.jsx(a7, { useFlexGap: !0, spacing: f, cols:
|
|
27952
|
+
/* @__PURE__ */ u.jsx(a7, { useFlexGap: !0, spacing: f, cols: B, children: b.map((m) => {
|
|
27953
27953
|
var x;
|
|
27954
27954
|
return s && typeof s == "object" && m.name in s && s[m.name] === !1 || m.hideInUI ? null : /* @__PURE__ */ u.jsx(s7, { cols: m.cols ?? 1, children: /* @__PURE__ */ u.jsx(
|
|
27955
27955
|
n1,
|
|
@@ -27969,7 +27969,7 @@ const qP = T(pe)`
|
|
|
27969
27969
|
labelSpacing: I,
|
|
27970
27970
|
fetchConfig: d == null ? void 0 : d[m.name],
|
|
27971
27971
|
createConfig: C == null ? void 0 : C[m.name],
|
|
27972
|
-
showGlobalLoader:
|
|
27972
|
+
showGlobalLoader: h
|
|
27973
27973
|
}
|
|
27974
27974
|
) }, ((x = d == null ? void 0 : d[m.name]) == null ? void 0 : x.key) || m.name);
|
|
27975
27975
|
}) })
|
|
@@ -28657,7 +28657,7 @@ const Q7 = (e, t) => {
|
|
|
28657
28657
|
authStatus: A,
|
|
28658
28658
|
authMutate: o
|
|
28659
28659
|
}) => {
|
|
28660
|
-
const { sendTrackingEvent: i, availableFeatures: s } = ze(In), [a, l] = Sd(_7, S7), [c, g] = de(!1), E = r ? r.name : "", f = r ? r.description : "", I = r ? r.isAuthenticated : !1, d = (r == null ? void 0 : r.advancedSettingsFields) ?? [], C = Jh(s),
|
|
28660
|
+
const { sendTrackingEvent: i, availableFeatures: s } = ze(In), [a, l] = Sd(_7, S7), [c, g] = de(!1), E = r ? r.name : "", f = r ? r.description : "", I = r ? r.isAuthenticated : !1, d = (r == null ? void 0 : r.advancedSettingsFields) ?? [], C = Jh(s), h = r == null ? void 0 : r.oneClickAuthEnabled, B = (r == null ? void 0 : r.hiddenFields) ?? [], { variableConfigs: p, variableKeys: Q } = Le(() => {
|
|
28661
28661
|
const oe = r && r.variablesConfig ? r.variablesConfig : [], U = Object.fromEntries(oe.map((j) => [j.name, j.name]));
|
|
28662
28662
|
return { variableConfigs: oe, variableKeys: U };
|
|
28663
28663
|
}, [r]), v = Le(() => !C || !(r != null && r.interpolationFields) ? {} : m7(r == null ? void 0 : r.interpolationFields), [r == null ? void 0 : r.interpolationFields, C]);
|
|
@@ -28741,7 +28741,7 @@ const Q7 = (e, t) => {
|
|
|
28741
28741
|
..._,
|
|
28742
28742
|
formFields: _.formFields.map((R) => ({
|
|
28743
28743
|
...R,
|
|
28744
|
-
hideInUI: !!(
|
|
28744
|
+
hideInUI: !!(h && B.includes(R.name))
|
|
28745
28745
|
}))
|
|
28746
28746
|
}));
|
|
28747
28747
|
}, F = () => {
|
|
@@ -29072,16 +29072,16 @@ const Z7 = T(V)`
|
|
|
29072
29072
|
n.removeQueries({ queryKey: r, exact: !0 });
|
|
29073
29073
|
}, [n, r]), A;
|
|
29074
29074
|
}, lk = () => {
|
|
29075
|
-
const { sendTrackingEvent: e, availableFeatures: t } = ze(In), [n, r] = de(!1), A = dt(zc), o = dt(Xd), i = dt(dC), s = dt(Rp), a = Me(null), l = mn(), { id: c = "" } = ao(), [g] = zi(), E = g.get("isEdit") === "true", f = (A == null ? void 0 : A[c]) || null, I = (o == null ? void 0 : o[c]) || null, d = E ? f : I, C = !!(d != null && d.showUpgradeButton),
|
|
29076
|
-
data:
|
|
29075
|
+
const { sendTrackingEvent: e, availableFeatures: t } = ze(In), [n, r] = de(!1), A = dt(zc), o = dt(Xd), i = dt(dC), s = dt(Rp), a = Me(null), l = mn(), { id: c = "" } = ao(), [g] = zi(), E = g.get("isEdit") === "true", f = (A == null ? void 0 : A[c]) || null, I = (o == null ? void 0 : o[c]) || null, d = E ? f : I, C = !!(d != null && d.showUpgradeButton), h = uA(t, qb), {
|
|
29076
|
+
data: B,
|
|
29077
29077
|
mutateStatus: p,
|
|
29078
29078
|
mutate: Q
|
|
29079
29079
|
} = ik({
|
|
29080
29080
|
connectorId: c,
|
|
29081
29081
|
onSuccess: () => {
|
|
29082
|
-
|
|
29082
|
+
h && r(!0);
|
|
29083
29083
|
}
|
|
29084
|
-
}), v = sk({ connectorId: (
|
|
29084
|
+
}), v = sk({ connectorId: (B == null ? void 0 : B.id) || "", enabled: n }), { status: b } = v.data || {}, y = (B == null ? void 0 : B.authStatus) || at.IDLE, m = (B == null ? void 0 : B.authUrl) || "", x = so();
|
|
29085
29085
|
be(
|
|
29086
29086
|
() => () => {
|
|
29087
29087
|
x(dw());
|
|
@@ -29113,8 +29113,8 @@ const Z7 = T(V)`
|
|
|
29113
29113
|
window.removeEventListener("message", P), clearTimeout(J), clearInterval(z);
|
|
29114
29114
|
};
|
|
29115
29115
|
}, [m, x, p]), be(() => {
|
|
29116
|
-
b && b !== "pending" && a.current &&
|
|
29117
|
-
}, [b, p,
|
|
29116
|
+
b && b !== "pending" && a.current && h && (a.current.close(), a.current = null, p(b === "success" ? at.OAUTH_SUCCESS : at.OAUTH_FAILED));
|
|
29117
|
+
}, [b, p, h]), be(() => {
|
|
29118
29118
|
switch ((y === at.OAUTH1_SUCCESS || y === at.OAUTH1_FAILED || y === at.OAUTH_SUCCESS || y === at.OAUTH_FAILED || y === at.API_KEY_SUCCESS || y === at.API_KEY_FAILED || y === at.BASIC_AUTH_SUCCESS || y === at.BASIC_AUTH_FAILED) && l(ct.BASEPATH), y) {
|
|
29119
29119
|
case at.BASIC_AUTH_SUCCESS:
|
|
29120
29120
|
case at.OAUTH1_SUCCESS:
|
|
@@ -30850,6 +30850,8 @@ const Da = {
|
|
|
30850
30850
|
availableFeatures: {},
|
|
30851
30851
|
sendTrackingEvent: () => {
|
|
30852
30852
|
},
|
|
30853
|
+
gainsightIdentify: () => {
|
|
30854
|
+
},
|
|
30853
30855
|
userPermissions: [],
|
|
30854
30856
|
metaData: void 0,
|
|
30855
30857
|
nativeIntegrations: []
|
|
@@ -30881,6 +30883,8 @@ const Da = {
|
|
|
30881
30883
|
availableFeatures: n ?? {},
|
|
30882
30884
|
sendTrackingEvent: (r == null ? void 0 : r.sendTrackingEvent) ?? (() => {
|
|
30883
30885
|
}),
|
|
30886
|
+
gainsightIdentify: (r == null ? void 0 : r.gainsightIdentify) ?? (() => {
|
|
30887
|
+
}),
|
|
30884
30888
|
userPermissions: (r == null ? void 0 : r.userPermissions) ?? [],
|
|
30885
30889
|
metaData: r == null ? void 0 : r.metaData,
|
|
30886
30890
|
connectorFunctions: A,
|
|
@@ -31343,17 +31347,17 @@ const Da = {
|
|
|
31343
31347
|
}), [e]), be(() => {
|
|
31344
31348
|
E(l.length > 0);
|
|
31345
31349
|
}, [l, s]);
|
|
31346
|
-
const C = f && i !== ye.LOADING,
|
|
31350
|
+
const C = f && i !== ye.LOADING, h = (p) => {
|
|
31347
31351
|
p || A(
|
|
31348
31352
|
r ? ut.REQUEST_NEW_FEATURE_CLOSE_CLICKED : ut.REQUEST_NEW_CONNECTOR_CLOSE_CLICKED
|
|
31349
31353
|
), t(p);
|
|
31350
|
-
},
|
|
31354
|
+
}, B = () => {
|
|
31351
31355
|
t(!1), A(
|
|
31352
31356
|
r ? ut.REQUEST_NEW_FEATURE_DONE_CLICKED : ut.REQUEST_NEW_CONNECTOR_DONE_CLICKED
|
|
31353
31357
|
);
|
|
31354
31358
|
};
|
|
31355
|
-
return /* @__PURE__ */ u.jsxs(oE, { shown: e, setShown:
|
|
31356
|
-
C ? /* @__PURE__ */ u.jsx(wU, { handleClose:
|
|
31359
|
+
return /* @__PURE__ */ u.jsxs(oE, { shown: e, setShown: h, showCloseButton: !0, children: [
|
|
31360
|
+
C ? /* @__PURE__ */ u.jsx(wU, { handleClose: B }) : /* @__PURE__ */ u.jsx(
|
|
31357
31361
|
bU,
|
|
31358
31362
|
{
|
|
31359
31363
|
connectors: n,
|
|
@@ -31552,21 +31556,21 @@ const Da = {
|
|
|
31552
31556
|
name: I,
|
|
31553
31557
|
logo: d,
|
|
31554
31558
|
isInboxLevConnector: C = !1,
|
|
31555
|
-
featureKey:
|
|
31556
|
-
isDeprecated:
|
|
31559
|
+
featureKey: h,
|
|
31560
|
+
isDeprecated: B = !1,
|
|
31557
31561
|
replacementName: p = ""
|
|
31558
31562
|
} = E;
|
|
31559
|
-
return yr(t,
|
|
31563
|
+
return yr(t, h) ? /* @__PURE__ */ u.jsx(
|
|
31560
31564
|
AE,
|
|
31561
31565
|
{
|
|
31562
31566
|
id: f,
|
|
31563
31567
|
name: I,
|
|
31564
31568
|
logo: d,
|
|
31565
|
-
onClick: (Q) => l(Q, C,
|
|
31569
|
+
onClick: (Q) => l(Q, C, B),
|
|
31566
31570
|
isEnabled: !0,
|
|
31567
31571
|
isAuthenticated: !0,
|
|
31568
|
-
isDeprecated:
|
|
31569
|
-
showIcons:
|
|
31572
|
+
isDeprecated: B,
|
|
31573
|
+
showIcons: B,
|
|
31570
31574
|
replacementName: p,
|
|
31571
31575
|
showTooltip: !0
|
|
31572
31576
|
},
|
|
@@ -31588,52 +31592,57 @@ const Da = {
|
|
|
31588
31592
|
}, [r, n, e, t]), o = A.length > 0;
|
|
31589
31593
|
return { requestOptions: A, requestable: o };
|
|
31590
31594
|
}, xB = () => {
|
|
31591
|
-
const e = Hr(), { sendTrackingEvent: t } = ze($t), { nativeIntegrations:
|
|
31595
|
+
const e = Hr(), { sendTrackingEvent: t, gainsightIdentify: n } = ze($t), { nativeIntegrations: r, availableFeatures: A } = ze($t), [o, i] = de(!1), s = Me(!1), a = We(Ko), l = Le(() => a || {}, [a]), c = We(y1), g = We(E1), E = We(tE), f = We(EM), { requestOptions: I, requestable: d } = sE({ isApi: !1 }), C = !!c.length, h = !!g.length, B = E === ye.LOADING, p = f === ye.LOADING;
|
|
31592
31596
|
be(() => {
|
|
31593
31597
|
(async () => {
|
|
31594
|
-
const
|
|
31598
|
+
const y = performance.now();
|
|
31595
31599
|
nl.info("Dispatching fetchConnectors ###", performance.now());
|
|
31596
|
-
const
|
|
31600
|
+
const m = e(Va());
|
|
31597
31601
|
nl.info("Dispatching fetchConnectorRequests ###", performance.now());
|
|
31598
|
-
const
|
|
31602
|
+
const x = e(Pl());
|
|
31599
31603
|
nl.info("Dispatching fetchConnectorTemplates ###", performance.now());
|
|
31600
|
-
const
|
|
31601
|
-
await Promise.all([
|
|
31602
|
-
const
|
|
31603
|
-
nl.info(`All done in ${
|
|
31604
|
+
const M = e(Sl());
|
|
31605
|
+
await Promise.all([m, x, M]);
|
|
31606
|
+
const F = performance.now();
|
|
31607
|
+
nl.info(`All done in ${F - y} ms ###`);
|
|
31604
31608
|
})();
|
|
31605
31609
|
}, [e]);
|
|
31606
|
-
const
|
|
31607
|
-
if (Object.keys(
|
|
31608
|
-
return $C(
|
|
31609
|
-
}, [
|
|
31610
|
+
const Q = Le(() => {
|
|
31611
|
+
if (Object.keys(l).length > 0)
|
|
31612
|
+
return $C(l);
|
|
31613
|
+
}, [l]);
|
|
31610
31614
|
be(() => {
|
|
31611
|
-
!
|
|
31612
|
-
|
|
31613
|
-
|
|
31614
|
-
|
|
31615
|
-
|
|
31616
|
-
|
|
31615
|
+
!s.current && Q && (t(ut.CONNECTOR_SECTION_VIEWED, Q), n({
|
|
31616
|
+
...Q,
|
|
31617
|
+
// stringifying it because GX attributes don't accept objects or arrays
|
|
31618
|
+
apps_auth_status: JSON.stringify(Q.apps_auth_status),
|
|
31619
|
+
apps_enabled_status: JSON.stringify(Q.apps_enabled_status)
|
|
31620
|
+
}), s.current = !0);
|
|
31621
|
+
}, [t, Q, n]);
|
|
31622
|
+
const v = (y, m = !1) => {
|
|
31623
|
+
i(y), m && t(ut.REQUEST_NEW_CLICKED);
|
|
31624
|
+
}, b = r == null ? void 0 : r.filter(
|
|
31625
|
+
(y) => yr(A, y.featureKey)
|
|
31617
31626
|
);
|
|
31618
31627
|
return /* @__PURE__ */ u.jsxs(OU, { "data-testid": "connector-dashboard", children: [
|
|
31619
31628
|
/* @__PURE__ */ u.jsx(aE, {}),
|
|
31620
31629
|
/* @__PURE__ */ u.jsx(LU, { children: /* @__PURE__ */ u.jsx(NU, { variant: "h2", children: SU }) }),
|
|
31621
31630
|
B ? /* @__PURE__ */ u.jsx(jl, {}) : null,
|
|
31622
|
-
!B &&
|
|
31631
|
+
!B && C ? /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
31623
31632
|
/* @__PURE__ */ u.jsx("h3", { className: "text-h3 my-4", children: _U }),
|
|
31624
31633
|
/* @__PURE__ */ u.jsx(pU, {})
|
|
31625
31634
|
] }) : null,
|
|
31626
|
-
|
|
31627
|
-
|
|
31635
|
+
b.length > 0 && B ? /* @__PURE__ */ u.jsx(jl, {}) : null,
|
|
31636
|
+
b.length > 0 && !B ? /* @__PURE__ */ u.jsxs("div", { className: "mt-8", children: [
|
|
31628
31637
|
/* @__PURE__ */ u.jsx("h3", { className: "text-h3 mb-4", children: DU }),
|
|
31629
31638
|
/* @__PURE__ */ u.jsx(tG, {})
|
|
31630
31639
|
] }) : null,
|
|
31631
|
-
|
|
31632
|
-
|
|
31640
|
+
p ? /* @__PURE__ */ u.jsx(jl, {}) : null,
|
|
31641
|
+
h && !p ? /* @__PURE__ */ u.jsxs("div", { className: "mt-8", children: [
|
|
31633
31642
|
/* @__PURE__ */ u.jsx("h3", { className: "text-h3 mb-4", children: RU }),
|
|
31634
31643
|
/* @__PURE__ */ u.jsx(BU, {})
|
|
31635
31644
|
] }) : null,
|
|
31636
|
-
!B &&
|
|
31645
|
+
!B && d ? /* @__PURE__ */ u.jsxs("div", { className: "flex bg-gray-6a w-full py-4.5 px-6 justify-between rounded-lg mt-10.5 items-center", children: [
|
|
31637
31646
|
/* @__PURE__ */ u.jsxs("div", { children: [
|
|
31638
31647
|
/* @__PURE__ */ u.jsx("h3", { className: "text-h3", children: m1 }),
|
|
31639
31648
|
/* @__PURE__ */ u.jsx("p", { className: "text-body2", children: v1 })
|
|
@@ -31642,7 +31651,7 @@ const Da = {
|
|
|
31642
31651
|
Dj,
|
|
31643
31652
|
{
|
|
31644
31653
|
"data-testid": "connector-available-request-new",
|
|
31645
|
-
onClick: () =>
|
|
31654
|
+
onClick: () => v(!0, !0),
|
|
31646
31655
|
variant: "outlined",
|
|
31647
31656
|
size: "small",
|
|
31648
31657
|
className: "h-8",
|
|
@@ -31654,9 +31663,9 @@ const Da = {
|
|
|
31654
31663
|
/* @__PURE__ */ u.jsx(
|
|
31655
31664
|
iE,
|
|
31656
31665
|
{
|
|
31657
|
-
shown:
|
|
31658
|
-
setShown:
|
|
31659
|
-
requestOptions:
|
|
31666
|
+
shown: o,
|
|
31667
|
+
setShown: v,
|
|
31668
|
+
requestOptions: I,
|
|
31660
31669
|
isApi: !1
|
|
31661
31670
|
}
|
|
31662
31671
|
)
|
|
@@ -31903,14 +31912,14 @@ const Da = {
|
|
|
31903
31912
|
}
|
|
31904
31913
|
}
|
|
31905
31914
|
`, _G = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cellipse%20cx='7.48148'%20cy='4.94'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='7.48148'%20cy='10.7'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='7.48148'%20cy='16.46'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='12.42'%20cy='4.94'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='12.42'%20cy='10.7'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3cellipse%20cx='12.42'%20cy='16.46'%20rx='1.48148'%20ry='1.44'%20fill='%23828EA5'/%3e%3c/svg%3e", RG = ({ field: e, toggleSelected: t, hideNewChip: n }) => {
|
|
31906
|
-
const { availableFeatures: r } = ze($t), { key: A, label: o, enabled: i, isFieldNew: s } = e, { attributes: a, listeners: l, setNodeRef: c, transform: g, transition: E } = qQ({ id: A }), f = Me(null), [I, d] = de(!1), C = ss(r) && s && !n,
|
|
31915
|
+
const { availableFeatures: r } = ze($t), { key: A, label: o, enabled: i, isFieldNew: s } = e, { attributes: a, listeners: l, setNodeRef: c, transform: g, transition: E } = qQ({ id: A }), f = Me(null), [I, d] = de(!1), C = ss(r) && s && !n, h = {
|
|
31907
31916
|
transform: Li.Transform.toString(g),
|
|
31908
31917
|
transition: E
|
|
31909
31918
|
};
|
|
31910
31919
|
return be(() => {
|
|
31911
|
-
const
|
|
31912
|
-
|
|
31913
|
-
}, [o]), /* @__PURE__ */ u.jsxs(TG, { ref: c, style:
|
|
31920
|
+
const B = f.current;
|
|
31921
|
+
B && d(B.scrollWidth > B.clientWidth || B.scrollHeight > B.clientHeight);
|
|
31922
|
+
}, [o]), /* @__PURE__ */ u.jsxs(TG, { ref: c, style: h, ...a, children: [
|
|
31914
31923
|
/* @__PURE__ */ u.jsx("img", { className: "field-drag-handle", ...l, src: _G }),
|
|
31915
31924
|
/* @__PURE__ */ u.jsx(Yo, { checked: i, onChange: () => t(A), sx: { marginLeft: "-6px" } }),
|
|
31916
31925
|
/* @__PURE__ */ u.jsx(Zt, { title: o, disableHoverListener: !I, children: /* @__PURE__ */ u.jsxs(V, { direction: "row", gap: "5px", alignItems: "center", children: [
|
|
@@ -32189,7 +32198,7 @@ const Da = {
|
|
|
32189
32198
|
fields: s,
|
|
32190
32199
|
setVisitedFieldVisTab: a
|
|
32191
32200
|
}) => {
|
|
32192
|
-
const { availableFeatures: l, sendTrackingEvent: c } = ze($t), g = Hr(), E = We(Ko), f = We(nE) ?? [], I = We(gu) ?? [], d = We(Fj), C = We(Nj), { userId:
|
|
32201
|
+
const { availableFeatures: l, sendTrackingEvent: c } = ze($t), g = Hr(), E = We(Ko), f = We(nE) ?? [], I = We(gu) ?? [], d = We(Fj), C = We(Nj), { userId: h } = RA() || {}, [B, p] = de(
|
|
32193
32202
|
() => (I == null ? void 0 : I.filter((R) => n == null ? void 0 : n.includes(R.id))) ?? []
|
|
32194
32203
|
), [Q, v] = de(
|
|
32195
32204
|
() => (f == null ? void 0 : f.find((R) => A == null ? void 0 : A.includes(R.name))) ?? {}
|
|
@@ -32204,7 +32213,7 @@ const Da = {
|
|
|
32204
32213
|
}, [g, t]), be(() => {
|
|
32205
32214
|
d[t] && y((R) => TB(R, d[t] || []));
|
|
32206
32215
|
}, [d, t]);
|
|
32207
|
-
const M = Le(() => !Array.isArray(n) || n.length !==
|
|
32216
|
+
const M = Le(() => !Array.isArray(n) || n.length !== B.length ? !1 : n.every((R) => B.some(({ id: N }) => N === R)), [n, B]), F = Le(() => Array.isArray(A) ? A.length ? !!(A != null && A.every((R) => Q.name === R)) : !Object.keys(Q).length : !1, [A, Q]), J = Le(() => {
|
|
32208
32217
|
const R = d[t] || [];
|
|
32209
32218
|
if (!Array.isArray(s)) return !1;
|
|
32210
32219
|
const N = TB(s, R);
|
|
@@ -32215,9 +32224,9 @@ const Da = {
|
|
|
32215
32224
|
return !1;
|
|
32216
32225
|
}
|
|
32217
32226
|
return !0;
|
|
32218
|
-
}, [s, b, d, t]), z =
|
|
32227
|
+
}, [s, b, d, t]), z = B.length !== 0 && b.filter((R) => R.enabled).length === 0, P = C === ye.LOADING || M && F && J || z, ie = Le(() => !!(s != null && s.some((R) => R.isFieldNew)), [s]), Ee = h && cE(t, h), Te = ss(l) && ie && !Ee ? N1 : "", oe = (R) => {
|
|
32219
32228
|
R.stopPropagation();
|
|
32220
|
-
const N = Q != null && Q.name ? [Q.name] : [], Y =
|
|
32229
|
+
const N = Q != null && Q.name ? [Q.name] : [], Y = B.map((te) => te.id), K = b.map((te, ge) => ({ ...te, priority: ge + 1 }));
|
|
32221
32230
|
g(
|
|
32222
32231
|
_l({
|
|
32223
32232
|
cardId: t,
|
|
@@ -32267,7 +32276,7 @@ const Da = {
|
|
|
32267
32276
|
/* @__PURE__ */ u.jsx("div", { hidden: m !== go.CARD_VISIBILITY.ID, children: /* @__PURE__ */ u.jsx(
|
|
32268
32277
|
GG,
|
|
32269
32278
|
{
|
|
32270
|
-
selectedEmailInboxes:
|
|
32279
|
+
selectedEmailInboxes: B,
|
|
32271
32280
|
setSelectedEmailInboxes: p,
|
|
32272
32281
|
selectedRoles: Q,
|
|
32273
32282
|
setSelectedRoles: v
|
|
@@ -32341,7 +32350,7 @@ const zG = T(nr)`
|
|
|
32341
32350
|
}
|
|
32342
32351
|
`, SB = ({ infoCard: e, currentConnectorId: t, setShowEnabledModal: n }) => {
|
|
32343
32352
|
var F, J;
|
|
32344
|
-
const r = Hr(), A = ((F = e.inboxes) == null ? void 0 : F.email) || [], o = ((J = e.inboxes) == null ? void 0 : J.chat) || [], i = e.roles ?? [], s = e.fields ?? [], { isCardNew: a = !1 } = e, l = A.length + o.length, c = l > 0 && i.length > 0, [g, E] = de(!1), [f, I] = de(!1), { availableFeatures: d, userPermissions: C, sendTrackingEvent:
|
|
32353
|
+
const r = Hr(), A = ((F = e.inboxes) == null ? void 0 : F.email) || [], o = ((J = e.inboxes) == null ? void 0 : J.chat) || [], i = e.roles ?? [], s = e.fields ?? [], { isCardNew: a = !1 } = e, l = A.length + o.length, c = l > 0 && i.length > 0, [g, E] = de(!1), [f, I] = de(!1), { availableFeatures: d, userPermissions: C, sendTrackingEvent: h } = ze($t), B = lM(C), p = We(jj), Q = Le(
|
|
32345
32354
|
() => Object.values(p).some((z) => z === ye.LOADING),
|
|
32346
32355
|
[p]
|
|
32347
32356
|
), v = e.cardKey ? p[e.cardKey] === ye.LOADING : !1, { userId: b } = RA() || {}, y = (z) => {
|
|
@@ -32349,7 +32358,7 @@ const zG = T(nr)`
|
|
|
32349
32358
|
}, m = () => {
|
|
32350
32359
|
e.isEnabledCustomCard ? E(!0) : r(Ll({ connectorId: t, data: e })).unwrap().then(() => {
|
|
32351
32360
|
E(!0);
|
|
32352
|
-
}),
|
|
32361
|
+
}), h(ut.CONFIGURE_VISIBILITY_CLICKED);
|
|
32353
32362
|
}, x = Le(
|
|
32354
32363
|
() => ss(d) && a && b && e.isEnabledCustomCard && !FG(e.id, b),
|
|
32355
32364
|
/* eslint-disable-next-line react-hooks/exhaustive-deps */
|
|
@@ -32370,12 +32379,12 @@ const zG = T(nr)`
|
|
|
32370
32379
|
] }),
|
|
32371
32380
|
/* @__PURE__ */ u.jsxs(WG, { children: [
|
|
32372
32381
|
/* @__PURE__ */ u.jsx(ue, { className: "hover__text", variant: "caption", children: c ? `Visible across ${l} Shared mailbox${l > 1 ? "es" : ""}` : Gj }),
|
|
32373
|
-
/* @__PURE__ */ u.jsx(Zt, { title:
|
|
32382
|
+
/* @__PURE__ */ u.jsx(Zt, { title: B ? w1 : Vj, placement: "bottom", children: /* @__PURE__ */ u.jsx(
|
|
32374
32383
|
zG,
|
|
32375
32384
|
{
|
|
32376
32385
|
className: "visibilityIcon",
|
|
32377
32386
|
onClick: m,
|
|
32378
|
-
disabled: !
|
|
32387
|
+
disabled: !B || Q,
|
|
32379
32388
|
children: v ? /* @__PURE__ */ u.jsx(zo, { size: 20 }) : c ? /* @__PURE__ */ u.jsx(xG, {}) : /* @__PURE__ */ u.jsx(wG, {})
|
|
32380
32389
|
}
|
|
32381
32390
|
) })
|
|
@@ -32468,8 +32477,8 @@ const zG = T(nr)`
|
|
|
32468
32477
|
isEdit: n = !1,
|
|
32469
32478
|
isConnectorCard: r = !1
|
|
32470
32479
|
}) => {
|
|
32471
|
-
const { sendTrackingEvent: A } = ze($t), { id: o, name: i, logo: s, description: a, isAuthenticated: l, showUpgradeButton: c = !1, updates: g } = e, E = We(x1), f = We(tE), I = We(_s), [d, C] = de(!1),
|
|
32472
|
-
P == null || P.stopPropagation(),
|
|
32480
|
+
const { sendTrackingEvent: A } = ze($t), { id: o, name: i, logo: s, description: a, isAuthenticated: l, showUpgradeButton: c = !1, updates: g } = e, E = We(x1), f = We(tE), I = We(_s), [d, C] = de(!1), h = Hr(), B = mn(), p = (P, ie) => {
|
|
32481
|
+
P == null || P.stopPropagation(), h(Ga({ id: ie, enabled: P.target.checked })).unwrap().then(() => {
|
|
32473
32482
|
P.target.checked ? A(ut.TOGGLE_ENABLED, { connector_name: i }) : (A(ut.TOGGLE_DISABLED, { connector_name: i }), Mn({
|
|
32474
32483
|
message: h1,
|
|
32475
32484
|
type: eE
|
|
@@ -32481,13 +32490,13 @@ const zG = T(nr)`
|
|
|
32481
32490
|
});
|
|
32482
32491
|
});
|
|
32483
32492
|
}, Q = (P, ie) => {
|
|
32484
|
-
P == null || P.stopPropagation(), A(ut.ADD_CONNECTOR_CLICKED, { connector_name: i }),
|
|
32493
|
+
P == null || P.stopPropagation(), A(ut.ADD_CONNECTOR_CLICKED, { connector_name: i }), B(`${nt.BASEPATH}${nt.CONNECTOR_SETTINGS}/${ie}`);
|
|
32485
32494
|
}, v = (P, ie) => {
|
|
32486
|
-
P == null || P.stopPropagation(), A(ut.SETTINGS_CLICKED, { connector_name: i }),
|
|
32495
|
+
P == null || P.stopPropagation(), A(ut.SETTINGS_CLICKED, { connector_name: i }), B(`${nt.BASEPATH}${nt.CONNECTOR_SETTINGS}/${ie}?isEdit=true`);
|
|
32487
32496
|
}, b = (P, ie = "") => {
|
|
32488
|
-
P == null || P.preventDefault(), P == null || P.stopPropagation(), !t &&
|
|
32497
|
+
P == null || P.preventDefault(), P == null || P.stopPropagation(), !t && B(`${nt.BASEPATH}${nt.API_VIEW}/${ie}?isEdit=true`);
|
|
32489
32498
|
}, y = (P) => {
|
|
32490
|
-
P == null || P.stopPropagation(),
|
|
32499
|
+
P == null || P.stopPropagation(), B(`${nt.BASEPATH}${nt.CONNECTOR_SETTINGS}/${o}?isEdit=true`);
|
|
32491
32500
|
};
|
|
32492
32501
|
let m = !1;
|
|
32493
32502
|
"isEnabled" in e && typeof e.isEnabled == "boolean" && (m = e.isEnabled);
|
|
@@ -32755,15 +32764,15 @@ const zG = T(nr)`
|
|
|
32755
32764
|
be(() => {
|
|
32756
32765
|
s(c ? Ha(a) : Ua(a));
|
|
32757
32766
|
}, [c, s, a]);
|
|
32758
|
-
const f = (
|
|
32759
|
-
|
|
32760
|
-
}, I = c ? g : E, d = !!(I != null && I.carouselImages) && I.carouselImages.length > 0, C = o === ye.LOADING || i === ye.LOADING,
|
|
32767
|
+
const f = (B) => {
|
|
32768
|
+
B == null || B.stopPropagation(), t(ut.CONNECTOR_BACK_CLICKED, { connector_name: I == null ? void 0 : I.name }), n(nt.BASEPATH);
|
|
32769
|
+
}, I = c ? g : E, d = !!(I != null && I.carouselImages) && I.carouselImages.length > 0, C = o === ye.LOADING || i === ye.LOADING, h = yr(e, Mk) && (C || d);
|
|
32761
32770
|
return /* @__PURE__ */ u.jsxs(Ce.Fragment, { children: [
|
|
32762
32771
|
c ? null : /* @__PURE__ */ u.jsx(aE, { isApiViewPage: !0 }),
|
|
32763
32772
|
/* @__PURE__ */ u.jsxs(EV, { "data-testid": "connector-config", children: [
|
|
32764
32773
|
/* @__PURE__ */ u.jsx(Zt, { title: "Back", placement: "bottom", children: /* @__PURE__ */ u.jsx(IV, { onClick: f, children: /* @__PURE__ */ u.jsx("img", { src: k1 }) }) }),
|
|
32765
32774
|
I ? /* @__PURE__ */ u.jsx(KG, { isConfigSettingsPage: !0, connector: I, isEdit: c }) : null,
|
|
32766
|
-
|
|
32775
|
+
h && (d ? /* @__PURE__ */ u.jsx(
|
|
32767
32776
|
cV,
|
|
32768
32777
|
{
|
|
32769
32778
|
carouselImages: I.carouselImages,
|
|
@@ -32771,10 +32780,10 @@ const zG = T(nr)`
|
|
|
32771
32780
|
connectorName: I.name,
|
|
32772
32781
|
isEdit: c,
|
|
32773
32782
|
connectorType: I.type,
|
|
32774
|
-
renderModal: ({ showModal:
|
|
32783
|
+
renderModal: ({ showModal: B, requestOptions: p, setShowModal: Q }) => /* @__PURE__ */ u.jsx(
|
|
32775
32784
|
iE,
|
|
32776
32785
|
{
|
|
32777
|
-
shown:
|
|
32786
|
+
shown: B,
|
|
32778
32787
|
requestOptions: p,
|
|
32779
32788
|
setShown: Q,
|
|
32780
32789
|
isApi: !0
|
|
@@ -32782,10 +32791,10 @@ const zG = T(nr)`
|
|
|
32782
32791
|
)
|
|
32783
32792
|
}
|
|
32784
32793
|
) : /* @__PURE__ */ u.jsx(CV, {})),
|
|
32785
|
-
!
|
|
32794
|
+
!h && /* @__PURE__ */ u.jsx(
|
|
32786
32795
|
lG,
|
|
32787
32796
|
{
|
|
32788
|
-
isLoading: C && !
|
|
32797
|
+
isLoading: C && !h,
|
|
32789
32798
|
apiList: (I == null ? void 0 : I.apiList) || [],
|
|
32790
32799
|
connectorName: (I == null ? void 0 : I.name) || "",
|
|
32791
32800
|
connectorType: I == null ? void 0 : I.type,
|
|
@@ -33543,7 +33552,7 @@ const sH = T(ue)`
|
|
|
33543
33552
|
authStatus: o,
|
|
33544
33553
|
authMutate: i
|
|
33545
33554
|
}) => {
|
|
33546
|
-
const { sendTrackingEvent: s, availableFeatures: a } = ze($t), [l, c] = Sd(iH, oH), [g, E] = de(!1), f = r ? r.name : "", I = r ? r.description : "", d = r ? r.isAuthenticated : !1, C = r ? r.showUpgradeButton : !1,
|
|
33555
|
+
const { sendTrackingEvent: s, availableFeatures: a } = ze($t), [l, c] = Sd(iH, oH), [g, E] = de(!1), f = r ? r.name : "", I = r ? r.description : "", d = r ? r.isAuthenticated : !1, C = r ? r.showUpgradeButton : !1, h = (r == null ? void 0 : r.advancedSettingsFields) ?? [], B = g1(a), p = r == null ? void 0 : r.oneClickAuthEnabled, Q = (r == null ? void 0 : r.hiddenFields) ?? [], v = Le(() => !B || !(r != null && r.interpolationFields) ? {} : ZV(r == null ? void 0 : r.interpolationFields), [r == null ? void 0 : r.interpolationFields, B]), { variableConfigs: b, variableKeys: y } = Le(() => {
|
|
33547
33556
|
const j = r && r.variablesConfig ? r.variablesConfig : [], _ = Object.fromEntries(j.map((R) => [R.name, R.name]));
|
|
33548
33557
|
return { variableConfigs: j, variableKeys: _ };
|
|
33549
33558
|
}, [r]);
|
|
@@ -33567,7 +33576,7 @@ const sH = T(ue)`
|
|
|
33567
33576
|
}), r != null && r.redirectUrl && c({
|
|
33568
33577
|
type: AA.SET_FIELD_VALUE,
|
|
33569
33578
|
payload: { name: Re.oAuthRedirectUrl, value: r == null ? void 0 : r.redirectUrl }
|
|
33570
|
-
}),
|
|
33579
|
+
}), B && (r != null && r.interpolationFields) && (r != null && r.variables)) {
|
|
33571
33580
|
const _ = OB((j = r == null ? void 0 : r.authDetails) == null ? void 0 : j.authType);
|
|
33572
33581
|
Object.entries(r.interpolationFields).forEach(([R, N]) => {
|
|
33573
33582
|
const Y = _[R];
|
|
@@ -33577,12 +33586,12 @@ const sH = T(ue)`
|
|
|
33577
33586
|
});
|
|
33578
33587
|
});
|
|
33579
33588
|
}
|
|
33580
|
-
}, [r,
|
|
33589
|
+
}, [r, B]);
|
|
33581
33590
|
const m = (j, _) => {
|
|
33582
33591
|
var te, ge;
|
|
33583
33592
|
c({ type: AA.SET_FIELD_VALUE, payload: { value: _, name: j } });
|
|
33584
33593
|
const R = typeof _ == "object" ? _.value : _, N = v[j];
|
|
33585
|
-
if (!
|
|
33594
|
+
if (!B || !(N != null && N.length))
|
|
33586
33595
|
return;
|
|
33587
33596
|
const Y = (te = l.values) == null ? void 0 : te.authType, K = OB(typeof Y == "object" ? Y.value : void 0);
|
|
33588
33597
|
for (const ne of N) {
|
|
@@ -33608,18 +33617,18 @@ const sH = T(ue)`
|
|
|
33608
33617
|
}, J = () => {
|
|
33609
33618
|
const j = { ...eH };
|
|
33610
33619
|
if (b)
|
|
33611
|
-
if (
|
|
33612
|
-
const { advanced: N, basic: Y } = G1(b,
|
|
33620
|
+
if (B) {
|
|
33621
|
+
const { advanced: N, basic: Y } = G1(b, h);
|
|
33613
33622
|
ya.formFields = N, j.formFields = Y;
|
|
33614
33623
|
} else
|
|
33615
33624
|
ya.formFields = [...b];
|
|
33616
33625
|
let _ = [];
|
|
33617
33626
|
ya.formFields && ya.formFields.length && (_ = [ya]);
|
|
33618
33627
|
const R = l.values.authType;
|
|
33619
|
-
if (
|
|
33628
|
+
if (B) {
|
|
33620
33629
|
const N = typeof R == "object" ? R.value : void 0, Y = [...xa];
|
|
33621
33630
|
N === rA.apiToken.value ? Y.push(...NB) : N === rA.oAuth2.value ? Y.push(...PB) : N === rA.oAuth1.value ? Y.push(...FB) : Y.push(...kB);
|
|
33622
|
-
const { basicFields: K, advancedConfigs: te } = JV(Y,
|
|
33631
|
+
const { basicFields: K, advancedConfigs: te } = JV(Y, h, N);
|
|
33623
33632
|
j.formFields.push(...K), _.push(...te), j.formFields.length && _.push(j);
|
|
33624
33633
|
} else
|
|
33625
33634
|
typeof R == "object" && R.value === rA.apiToken.value ? _ = [..._, ...xa, ...NB] : typeof R == "object" && R.value === rA.oAuth2.value ? _ = [..._, ...xa, ...PB] : typeof R == "object" && R.value === rA.oAuth1.value ? _ = [..._, ...xa, ...FB] : _ = [..._, ...xa, ...kB];
|
|
@@ -33687,7 +33696,7 @@ const sH = T(ue)`
|
|
|
33687
33696
|
/* @__PURE__ */ u.jsx(
|
|
33688
33697
|
Qc,
|
|
33689
33698
|
{
|
|
33690
|
-
formConfig:
|
|
33699
|
+
formConfig: B ? Te : J(),
|
|
33691
33700
|
selectChangeHandler: M,
|
|
33692
33701
|
inputChangeHandler: x,
|
|
33693
33702
|
predicates: z(),
|
|
@@ -33697,7 +33706,7 @@ const sH = T(ue)`
|
|
|
33697
33706
|
icons: Qe
|
|
33698
33707
|
}
|
|
33699
33708
|
),
|
|
33700
|
-
|
|
33709
|
+
B && U && /* @__PURE__ */ u.jsx(WV, { titleNode: /* @__PURE__ */ u.jsx(ue, { variant: "h3", children: "Advanced settings" }), children: /* @__PURE__ */ u.jsx(
|
|
33701
33710
|
Qc,
|
|
33702
33711
|
{
|
|
33703
33712
|
formConfig: oe,
|
|
@@ -33968,13 +33977,13 @@ const wH = T(V)`
|
|
|
33968
33977
|
data: I,
|
|
33969
33978
|
mutateStatus: d,
|
|
33970
33979
|
isLoading: C,
|
|
33971
|
-
mutate:
|
|
33980
|
+
mutate: h
|
|
33972
33981
|
} = NH({
|
|
33973
33982
|
connectorId: l,
|
|
33974
33983
|
onSuccess: () => {
|
|
33975
33984
|
f && A(!0);
|
|
33976
33985
|
}
|
|
33977
|
-
}),
|
|
33986
|
+
}), B = PH({ connectorId: (I == null ? void 0 : I.id) || "", enabled: r }), { status: p } = B.data || {}, Q = (I == null ? void 0 : I.authStatus) || st.IDLE, v = (I == null ? void 0 : I.authUrl) || "", b = Hr();
|
|
33978
33987
|
be(
|
|
33979
33988
|
() => () => {
|
|
33980
33989
|
b($M());
|
|
@@ -34049,7 +34058,7 @@ const wH = T(V)`
|
|
|
34049
34058
|
connectorData: e,
|
|
34050
34059
|
authStatus: Q,
|
|
34051
34060
|
isLoading: y,
|
|
34052
|
-
authMutate:
|
|
34061
|
+
authMutate: h,
|
|
34053
34062
|
isAuthPending: C
|
|
34054
34063
|
}
|
|
34055
34064
|
) }),
|
|
@@ -34185,7 +34194,7 @@ const zH = ({ id: e, heading: t, subHeading: n, isEnabled: r, icon: A, connector
|
|
|
34185
34194
|
return Number.isNaN(b) || b < 0 ? 0 : b > Al.length - 1 ? Al.length - 1 : b;
|
|
34186
34195
|
}), f = (b, y) => {
|
|
34187
34196
|
E(y);
|
|
34188
|
-
}, I = (o == null ? void 0 : o[s]) || null, d = (i == null ? void 0 : i[s]) || null, C = l ? I : d,
|
|
34197
|
+
}, I = (o == null ? void 0 : o[s]) || null, d = (i == null ? void 0 : i[s]) || null, C = l ? I : d, h = !(C != null && C.isAuthenticated), B = !!(C != null && C.isEnabled), p = [n, r].includes(ye.LOADING) || h, Q = [
|
|
34189
34198
|
{ name: mc, route: `${nt.BASEPATH}${nt.DASHBOARD}` },
|
|
34190
34199
|
{
|
|
34191
34200
|
name: (C == null ? void 0 : C.name) || "",
|
|
@@ -34214,8 +34223,8 @@ const zH = ({ id: e, heading: t, subHeading: n, isEnabled: r, icon: A, connector
|
|
|
34214
34223
|
/* @__PURE__ */ u.jsx(
|
|
34215
34224
|
yV,
|
|
34216
34225
|
{
|
|
34217
|
-
active:
|
|
34218
|
-
label: /* @__PURE__ */ u.jsx(ue, { variant: "body2", children:
|
|
34226
|
+
active: B,
|
|
34227
|
+
label: /* @__PURE__ */ u.jsx(ue, { variant: "body2", children: B ? "Active" : "Inactive" })
|
|
34219
34228
|
}
|
|
34220
34229
|
),
|
|
34221
34230
|
/* @__PURE__ */ u.jsx(
|
|
@@ -34223,7 +34232,7 @@ const zH = ({ id: e, heading: t, subHeading: n, isEnabled: r, icon: A, connector
|
|
|
34223
34232
|
{
|
|
34224
34233
|
isLoading: (A == null ? void 0 : A[s]) === ye.LOADING,
|
|
34225
34234
|
id: `switch_${s}`,
|
|
34226
|
-
checked:
|
|
34235
|
+
checked: B,
|
|
34227
34236
|
disabled: p,
|
|
34228
34237
|
onClick: (b) => b == null ? void 0 : b.stopPropagation(),
|
|
34229
34238
|
onChange: (b) => v(b, s)
|
|
@@ -34309,10 +34318,10 @@ const zH = ({ id: e, heading: t, subHeading: n, isEnabled: r, icon: A, connector
|
|
|
34309
34318
|
] }, a);
|
|
34310
34319
|
});
|
|
34311
34320
|
}, aW = () => {
|
|
34312
|
-
const { sendTrackingEvent: e } = ze($t), t = mn(), n = Hr(), r = We(nE) ?? [], A = We(gu) ?? [], o = r.find((b) => b.name === Da.MEMBER), i = We(Ss), s = We(Uj) === ye.LOADING, [a, l] = de([]), [c, g] = de(o), [E, f] = de(!1), { id: I = "" } = ao(), [d] = zi(), C = d.get("connectorId"),
|
|
34321
|
+
const { sendTrackingEvent: e } = ze($t), t = mn(), n = Hr(), r = We(nE) ?? [], A = We(gu) ?? [], o = r.find((b) => b.name === Da.MEMBER), i = We(Ss), s = We(Uj) === ye.LOADING, [a, l] = de([]), [c, g] = de(o), [E, f] = de(!1), { id: I = "" } = ao(), [d] = zi(), C = d.get("connectorId"), h = (i == null ? void 0 : i[I]) || null, B = s || !a.length || !c.name, p = [
|
|
34313
34322
|
{ name: mc, route: `${nt.BASEPATH}${nt.DASHBOARD}` },
|
|
34314
34323
|
{
|
|
34315
|
-
name: (
|
|
34324
|
+
name: (h == null ? void 0 : h.name) || "",
|
|
34316
34325
|
route: `${nt.BASEPATH}${nt.API_VIEW}/${I}`
|
|
34317
34326
|
},
|
|
34318
34327
|
{ name: mV }
|
|
@@ -34340,19 +34349,19 @@ const zH = ({ id: e, heading: t, subHeading: n, isEnabled: r, icon: A, connector
|
|
|
34340
34349
|
t(nt.BASEPATH);
|
|
34341
34350
|
};
|
|
34342
34351
|
return /* @__PURE__ */ u.jsxs("div", { className: "w-135 h-full flex flex-col", children: [
|
|
34343
|
-
|
|
34352
|
+
h != null && h.name ? /* @__PURE__ */ u.jsx(
|
|
34344
34353
|
lE,
|
|
34345
34354
|
{
|
|
34346
34355
|
shown: E,
|
|
34347
34356
|
setShown: f,
|
|
34348
|
-
connectorName:
|
|
34357
|
+
connectorName: h == null ? void 0 : h.name,
|
|
34349
34358
|
onClose: v
|
|
34350
34359
|
}
|
|
34351
34360
|
) : null,
|
|
34352
34361
|
/* @__PURE__ */ u.jsx("div", { className: "mb-9", children: /* @__PURE__ */ u.jsx(M1, { options: p }) }),
|
|
34353
34362
|
/* @__PURE__ */ u.jsxs(ue, { className: "!mb-6", variant: "h2", children: [
|
|
34354
34363
|
"Configure ",
|
|
34355
|
-
|
|
34364
|
+
h == null ? void 0 : h.name,
|
|
34356
34365
|
" across Shared Mailboxes and roles"
|
|
34357
34366
|
] }),
|
|
34358
34367
|
/* @__PURE__ */ u.jsxs("div", { className: "grow overflow-auto", children: [
|
|
@@ -34367,7 +34376,7 @@ const zH = ({ id: e, heading: t, subHeading: n, isEnabled: r, icon: A, connector
|
|
|
34367
34376
|
inboxes: A
|
|
34368
34377
|
}
|
|
34369
34378
|
),
|
|
34370
|
-
/* @__PURE__ */ u.jsx(Ct, { className: "!mt-4", onClick: Q, disabled:
|
|
34379
|
+
/* @__PURE__ */ u.jsx(Ct, { className: "!mt-4", onClick: Q, disabled: B, children: "Save and enable" })
|
|
34371
34380
|
] })
|
|
34372
34381
|
] });
|
|
34373
34382
|
}, sW = (e) => lQ(
|