react-semaphor 0.1.139 → 0.1.141
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/dist/chunks/{dashboard-controls-CycUpkzN.js → dashboard-controls-BHvVGLlv.js} +1 -1
- package/dist/chunks/{dashboard-controls-FAtMQrth.js → dashboard-controls-EsDrzl-D.js} +3 -3
- package/dist/chunks/{dashboard-export-dialog-BOeaIkB4.js → dashboard-export-dialog-B_RzsH3b.js} +3 -3
- package/dist/chunks/{dashboard-export-dialog-BkGfu2Ur.js → dashboard-export-dialog-Dblukxo3.js} +1 -1
- package/dist/chunks/{dashboard-json-CUnn97AA.js → dashboard-json-DrBVWyRS.js} +1 -1
- package/dist/chunks/{dashboard-json-vWf6j3ir.js → dashboard-json-zSw_5SRL.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-WvBAW290.js → edit-dashboard-visual-BMXrqb3-.js} +2719 -2602
- package/dist/chunks/edit-dashboard-visual-Q8wLkFTO.js +200 -0
- package/dist/chunks/{editor-action-buttons-BaYDKpMq.js → editor-action-buttons-Cmxam_Sd.js} +1 -1
- package/dist/chunks/{editor-action-buttons-hyOjCHRm.js → editor-action-buttons-D0RwjamH.js} +2 -2
- package/dist/chunks/{index-BAZxSdVh.js → index-B2rFHGiO.js} +112 -112
- package/dist/chunks/{index-C0aUsTJw.js → index-Doz0_7AF.js} +833 -821
- package/dist/chunks/{resource-management-panel-Chg6-H5n.js → resource-management-panel-BofFhw2g.js} +1 -1
- package/dist/chunks/{resource-management-panel-B2XgOmvv.js → resource-management-panel-TN0oDdug.js} +2 -2
- package/dist/chunks/{use-visual-utils-DIuorLLH.js → use-visual-utils-BqWwpDIB.js} +1 -1
- package/dist/chunks/{use-visual-utils-DyjCJ47j.js → use-visual-utils-DlCUQPEz.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/dashboard.d.ts +14 -0
- package/dist/types/main.d.ts +14 -0
- package/dist/types/surfboard.d.ts +14 -0
- package/dist/types/types.d.ts +14 -0
- package/package.json +1 -1
- package/dist/chunks/edit-dashboard-visual-QX1EfVIC.js +0 -200
|
@@ -265,7 +265,7 @@ const Bn = (e) => {
|
|
|
265
265
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
266
266
|
Jee.test(e) && !ete.test(e)
|
|
267
267
|
), M6 = () => !1, dte = (e) => tte.test(e), fte = (e) => nte.test(e), hte = () => {
|
|
268
|
-
const e = Bn("colors"), t = Bn("spacing"), n = Bn("blur"), r = Bn("brightness"), o = Bn("borderColor"), i = Bn("borderRadius"), a = Bn("borderSpacing"), s = Bn("borderWidth"), l = Bn("contrast"), c = Bn("grayscale"), u = Bn("hueRotate"), d = Bn("invert"), h = Bn("gap"), p = Bn("gradientColorStops"), m = Bn("gradientColorStopPositions"), g = Bn("inset"), b = Bn("margin"), y = Bn("opacity"), v = Bn("padding"), x = Bn("saturate"), w = Bn("scale"), N = Bn("sepia"), C = Bn("skew"), k = Bn("space"), D = Bn("translate"), _ = () => ["auto", "contain", "none"], E = () => ["auto", "hidden", "clip", "visible", "scroll"], M = () => ["auto", Pt, t], R = () => [Pt, t], F = () => ["", Ls, Pl], I = () => ["auto", eh, Pt], A = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], z = () => ["solid", "dashed", "dotted", "double", "none"], $ = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"],
|
|
268
|
+
const e = Bn("colors"), t = Bn("spacing"), n = Bn("blur"), r = Bn("brightness"), o = Bn("borderColor"), i = Bn("borderRadius"), a = Bn("borderSpacing"), s = Bn("borderWidth"), l = Bn("contrast"), c = Bn("grayscale"), u = Bn("hueRotate"), d = Bn("invert"), h = Bn("gap"), p = Bn("gradientColorStops"), m = Bn("gradientColorStopPositions"), g = Bn("inset"), b = Bn("margin"), y = Bn("opacity"), v = Bn("padding"), x = Bn("saturate"), w = Bn("scale"), N = Bn("sepia"), C = Bn("skew"), k = Bn("space"), D = Bn("translate"), _ = () => ["auto", "contain", "none"], E = () => ["auto", "hidden", "clip", "visible", "scroll"], M = () => ["auto", Pt, t], R = () => [Pt, t], F = () => ["", Ls, Pl], I = () => ["auto", eh, Pt], A = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], z = () => ["solid", "dashed", "dotted", "double", "none"], $ = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], H = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], L = () => ["", "0", Pt], O = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], U = () => [eh, Pt];
|
|
269
269
|
return {
|
|
270
270
|
cacheSize: 500,
|
|
271
271
|
separator: ":",
|
|
@@ -669,7 +669,7 @@ const Bn = (e) => {
|
|
|
669
669
|
* @see https://tailwindcss.com/docs/justify-content
|
|
670
670
|
*/
|
|
671
671
|
"justify-content": [{
|
|
672
|
-
justify: ["normal", ...
|
|
672
|
+
justify: ["normal", ...H()]
|
|
673
673
|
}],
|
|
674
674
|
/**
|
|
675
675
|
* Justify Items
|
|
@@ -690,7 +690,7 @@ const Bn = (e) => {
|
|
|
690
690
|
* @see https://tailwindcss.com/docs/align-content
|
|
691
691
|
*/
|
|
692
692
|
"align-content": [{
|
|
693
|
-
content: ["normal", ...
|
|
693
|
+
content: ["normal", ...H(), "baseline"]
|
|
694
694
|
}],
|
|
695
695
|
/**
|
|
696
696
|
* Align Items
|
|
@@ -711,7 +711,7 @@ const Bn = (e) => {
|
|
|
711
711
|
* @see https://tailwindcss.com/docs/place-content
|
|
712
712
|
*/
|
|
713
713
|
"place-content": [{
|
|
714
|
-
"place-content": [...
|
|
714
|
+
"place-content": [...H(), "baseline"]
|
|
715
715
|
}],
|
|
716
716
|
/**
|
|
717
717
|
* Place Items
|
|
@@ -9151,11 +9151,11 @@ const Yr = (e) => /boolean/i.test(e) ? "boolean" : /date|timestamp/i.test(e) ? "
|
|
|
9151
9151
|
var sx = { exports: {} };
|
|
9152
9152
|
sx.exports;
|
|
9153
9153
|
(function(e, t) {
|
|
9154
|
-
var n = 200, r = "__lodash_hash_undefined__", o = 800, i = 16, a = 9007199254740991, s = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", u = "[object Boolean]", d = "[object Date]", h = "[object Error]", p = "[object Function]", m = "[object GeneratorFunction]", g = "[object Map]", b = "[object Number]", y = "[object Null]", v = "[object Object]", x = "[object Proxy]", w = "[object RegExp]", N = "[object Set]", C = "[object String]", k = "[object Undefined]", D = "[object WeakMap]", _ = "[object ArrayBuffer]", E = "[object DataView]", M = "[object Float32Array]", R = "[object Float64Array]", F = "[object Int8Array]", I = "[object Int16Array]", A = "[object Int32Array]", z = "[object Uint8Array]", $ = "[object Uint8ClampedArray]",
|
|
9155
|
-
P[M] = P[R] = P[F] = P[I] = P[A] = P[z] = P[$] = P[
|
|
9156
|
-
var Y = typeof nl == "object" && nl && nl.Object === Object && nl, B = typeof self == "object" && self && self.Object === Object && self, q = Y || B || Function("return this")(), W = t && !t.nodeType && t,
|
|
9154
|
+
var n = 200, r = "__lodash_hash_undefined__", o = 800, i = 16, a = 9007199254740991, s = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", u = "[object Boolean]", d = "[object Date]", h = "[object Error]", p = "[object Function]", m = "[object GeneratorFunction]", g = "[object Map]", b = "[object Number]", y = "[object Null]", v = "[object Object]", x = "[object Proxy]", w = "[object RegExp]", N = "[object Set]", C = "[object String]", k = "[object Undefined]", D = "[object WeakMap]", _ = "[object ArrayBuffer]", E = "[object DataView]", M = "[object Float32Array]", R = "[object Float64Array]", F = "[object Int8Array]", I = "[object Int16Array]", A = "[object Int32Array]", z = "[object Uint8Array]", $ = "[object Uint8ClampedArray]", H = "[object Uint16Array]", L = "[object Uint32Array]", O = /[\\^$.*+?()[\]{}|]/g, U = /^\[object .+?Constructor\]$/, V = /^(?:0|[1-9]\d*)$/, P = {};
|
|
9155
|
+
P[M] = P[R] = P[F] = P[I] = P[A] = P[z] = P[$] = P[H] = P[L] = !0, P[s] = P[l] = P[_] = P[u] = P[E] = P[d] = P[h] = P[p] = P[g] = P[b] = P[v] = P[w] = P[N] = P[C] = P[D] = !1;
|
|
9156
|
+
var Y = typeof nl == "object" && nl && nl.Object === Object && nl, B = typeof self == "object" && self && self.Object === Object && self, q = Y || B || Function("return this")(), W = t && !t.nodeType && t, j = W && !0 && e && !e.nodeType && e, G = j && j.exports === W, K = G && Y.process, re = function() {
|
|
9157
9157
|
try {
|
|
9158
|
-
var te =
|
|
9158
|
+
var te = j && j.require && j.require("util").types;
|
|
9159
9159
|
return te || K && K.binding && K.binding("util");
|
|
9160
9160
|
} catch {
|
|
9161
9161
|
}
|
|
@@ -11988,7 +11988,7 @@ function Aie({
|
|
|
11988
11988
|
);
|
|
11989
11989
|
const z = J(
|
|
11990
11990
|
(B) => B.actions.setFilterValues
|
|
11991
|
-
), $ = J((B) => B.filterValues),
|
|
11991
|
+
), $ = J((B) => B.filterValues), H = J(
|
|
11992
11992
|
(B) => B.actions.setThemeStyle
|
|
11993
11993
|
), L = J(
|
|
11994
11994
|
(B) => B.actions.setDashboardTheme
|
|
@@ -12008,13 +12008,13 @@ function Aie({
|
|
|
12008
12008
|
const U = ge(() => {
|
|
12009
12009
|
const B = Ah(ex), q = kg(B, k);
|
|
12010
12010
|
if (e) {
|
|
12011
|
-
const W = kg(q, e),
|
|
12012
|
-
j
|
|
12011
|
+
const W = kg(q, e), j = wP(N, W);
|
|
12012
|
+
H(j), M(W);
|
|
12013
12013
|
} else {
|
|
12014
12014
|
const W = wP(N, q);
|
|
12015
|
-
|
|
12015
|
+
H(W), M(ex);
|
|
12016
12016
|
}
|
|
12017
|
-
}, [N, e, k,
|
|
12017
|
+
}, [N, e, k, H, M]);
|
|
12018
12018
|
return pe(() => {
|
|
12019
12019
|
u && u.dashboard && U();
|
|
12020
12020
|
}, [N, e, k, U, u]), pe(() => {
|
|
@@ -12070,13 +12070,13 @@ function Aie({
|
|
|
12070
12070
|
if (!u || !u.dashboard) return;
|
|
12071
12071
|
const {
|
|
12072
12072
|
dashboard: W,
|
|
12073
|
-
filterValues:
|
|
12073
|
+
filterValues: j,
|
|
12074
12074
|
defaultLensId: G,
|
|
12075
12075
|
lenses: K
|
|
12076
12076
|
} = u;
|
|
12077
12077
|
function re() {
|
|
12078
|
-
if (
|
|
12079
|
-
return
|
|
12078
|
+
if (j && (j == null ? void 0 : j.length) > 0)
|
|
12079
|
+
return j;
|
|
12080
12080
|
const xe = [...q(
|
|
12081
12081
|
W.filters,
|
|
12082
12082
|
m
|
|
@@ -14894,20 +14894,20 @@ const Tse = (e) => ({
|
|
|
14894
14894
|
placement: A
|
|
14895
14895
|
}
|
|
14896
14896
|
};
|
|
14897
|
-
let z = (R = E.filter(($) => $.overflows[0] <= 0).sort(($,
|
|
14897
|
+
let z = (R = E.filter(($) => $.overflows[0] <= 0).sort(($, H) => $.overflows[1] - H.overflows[1])[0]) == null ? void 0 : R.placement;
|
|
14898
14898
|
if (!z)
|
|
14899
14899
|
switch (p) {
|
|
14900
14900
|
case "bestFit": {
|
|
14901
14901
|
var F;
|
|
14902
|
-
const $ = (F = E.filter((
|
|
14902
|
+
const $ = (F = E.filter((H) => {
|
|
14903
14903
|
if (C) {
|
|
14904
|
-
const L = Mc(
|
|
14904
|
+
const L = Mc(H.placement);
|
|
14905
14905
|
return L === v || // Create a bias to the `y` side axis due to horizontal
|
|
14906
14906
|
// reading directions favoring greater width.
|
|
14907
14907
|
L === "y";
|
|
14908
14908
|
}
|
|
14909
14909
|
return !0;
|
|
14910
|
-
}).map((
|
|
14910
|
+
}).map((H) => [H.placement, H.overflows.filter((L) => L > 0).reduce((L, O) => L + O, 0)]).sort((H, L) => H[1] - L[1])[0]) == null ? void 0 : F[0];
|
|
14911
14911
|
$ && (z = $);
|
|
14912
14912
|
break;
|
|
14913
14913
|
}
|
|
@@ -15722,19 +15722,19 @@ function Ez(e) {
|
|
|
15722
15722
|
isPositioned: !1
|
|
15723
15723
|
}), [h, p] = T.useState(r);
|
|
15724
15724
|
vx(h, r) || p(r);
|
|
15725
|
-
const [m, g] = T.useState(null), [b, y] = T.useState(null), v = T.useCallback((
|
|
15726
|
-
|
|
15727
|
-
}, []), x = T.useCallback((
|
|
15728
|
-
|
|
15725
|
+
const [m, g] = T.useState(null), [b, y] = T.useState(null), v = T.useCallback((H) => {
|
|
15726
|
+
H !== C.current && (C.current = H, g(H));
|
|
15727
|
+
}, []), x = T.useCallback((H) => {
|
|
15728
|
+
H !== k.current && (k.current = H, y(H));
|
|
15729
15729
|
}, []), w = i || m, N = a || b, C = T.useRef(null), k = T.useRef(null), D = T.useRef(u), _ = l != null, E = AC(l), M = AC(o), R = AC(c), F = T.useCallback(() => {
|
|
15730
15730
|
if (!C.current || !k.current)
|
|
15731
15731
|
return;
|
|
15732
|
-
const
|
|
15732
|
+
const H = {
|
|
15733
15733
|
placement: t,
|
|
15734
15734
|
strategy: n,
|
|
15735
15735
|
middleware: h
|
|
15736
15736
|
};
|
|
15737
|
-
M.current && (
|
|
15737
|
+
M.current && (H.platform = M.current), ale(C.current, k.current, H).then((L) => {
|
|
15738
15738
|
const O = {
|
|
15739
15739
|
...L,
|
|
15740
15740
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -15749,8 +15749,8 @@ function Ez(e) {
|
|
|
15749
15749
|
});
|
|
15750
15750
|
}, [h, t, n, M, R]);
|
|
15751
15751
|
Mv(() => {
|
|
15752
|
-
c === !1 && D.current.isPositioned && (D.current.isPositioned = !1, d((
|
|
15753
|
-
...
|
|
15752
|
+
c === !1 && D.current.isPositioned && (D.current.isPositioned = !1, d((H) => ({
|
|
15753
|
+
...H,
|
|
15754
15754
|
isPositioned: !1
|
|
15755
15755
|
})));
|
|
15756
15756
|
}, [c]);
|
|
@@ -15773,16 +15773,16 @@ function Ez(e) {
|
|
|
15773
15773
|
reference: w,
|
|
15774
15774
|
floating: N
|
|
15775
15775
|
}), [w, N]), $ = T.useMemo(() => {
|
|
15776
|
-
const
|
|
15776
|
+
const H = {
|
|
15777
15777
|
position: n,
|
|
15778
15778
|
left: 0,
|
|
15779
15779
|
top: 0
|
|
15780
15780
|
};
|
|
15781
15781
|
if (!z.floating)
|
|
15782
|
-
return
|
|
15782
|
+
return H;
|
|
15783
15783
|
const L = qP(z.floating, u.x), O = qP(z.floating, u.y);
|
|
15784
15784
|
return s ? {
|
|
15785
|
-
...
|
|
15785
|
+
...H,
|
|
15786
15786
|
transform: "translate(" + L + "px, " + O + "px)",
|
|
15787
15787
|
...kz(z.floating) >= 1.5 && {
|
|
15788
15788
|
willChange: "transform"
|
|
@@ -15899,7 +15899,7 @@ var Pz = "PopperAnchor", Oz = T.forwardRef(
|
|
|
15899
15899
|
Oz.displayName = Pz;
|
|
15900
15900
|
var QD = "PopperContent", [ple, mle] = Rz(QD), Fz = T.forwardRef(
|
|
15901
15901
|
(e, t) => {
|
|
15902
|
-
var W,
|
|
15902
|
+
var W, j, G, K, re, Z;
|
|
15903
15903
|
const {
|
|
15904
15904
|
__scopePopper: n,
|
|
15905
15905
|
side: r = "bottom",
|
|
@@ -15920,7 +15920,7 @@ var QD = "PopperContent", [ple, mle] = Rz(QD), Fz = T.forwardRef(
|
|
|
15920
15920
|
boundary: M.filter(ble),
|
|
15921
15921
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
15922
15922
|
altBoundary: R
|
|
15923
|
-
}, { refs: I, floatingStyles: A, placement: z, isPositioned: $, middlewareData:
|
|
15923
|
+
}, { refs: I, floatingStyles: A, placement: z, isPositioned: $, middlewareData: H } = Ez({
|
|
15924
15924
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
15925
15925
|
strategy: "fixed",
|
|
15926
15926
|
placement: _,
|
|
@@ -15954,7 +15954,7 @@ var QD = "PopperContent", [ple, mle] = Rz(QD), Fz = T.forwardRef(
|
|
|
15954
15954
|
Kr(() => {
|
|
15955
15955
|
$ && (U == null || U());
|
|
15956
15956
|
}, [$, U]);
|
|
15957
|
-
const V = (W =
|
|
15957
|
+
const V = (W = H.arrow) == null ? void 0 : W.x, P = (j = H.arrow) == null ? void 0 : j.y, Y = ((G = H.arrow) == null ? void 0 : G.centerOffset) !== 0, [B, q] = T.useState();
|
|
15958
15958
|
return Kr(() => {
|
|
15959
15959
|
y && q(window.getComputedStyle(y).zIndex);
|
|
15960
15960
|
}, [y]), /* @__PURE__ */ f(
|
|
@@ -15969,13 +15969,13 @@ var QD = "PopperContent", [ple, mle] = Rz(QD), Fz = T.forwardRef(
|
|
|
15969
15969
|
minWidth: "max-content",
|
|
15970
15970
|
zIndex: B,
|
|
15971
15971
|
"--radix-popper-transform-origin": [
|
|
15972
|
-
(K =
|
|
15973
|
-
(re =
|
|
15972
|
+
(K = H.transformOrigin) == null ? void 0 : K.x,
|
|
15973
|
+
(re = H.transformOrigin) == null ? void 0 : re.y
|
|
15974
15974
|
].join(" "),
|
|
15975
15975
|
// hide the content if using the hide middleware and should be hidden
|
|
15976
15976
|
// set visibility to hidden and disable pointer events so the UI behaves
|
|
15977
15977
|
// as if the PopperContent isn't there at all
|
|
15978
|
-
...((Z =
|
|
15978
|
+
...((Z = H.hide) == null ? void 0 : Z.referenceHidden) && {
|
|
15979
15979
|
visibility: "hidden",
|
|
15980
15980
|
pointerEvents: "none"
|
|
15981
15981
|
}
|
|
@@ -16982,14 +16982,14 @@ var Ki = "MenuContent", [Rce, rT] = nf(Ki), s9 = T.forwardRef(
|
|
|
16982
16982
|
disableOutsideScroll: m,
|
|
16983
16983
|
...g
|
|
16984
16984
|
} = e, b = Wc(Ki, n), y = $b(Ki, n), v = Fb(n), x = n9(n), w = Ece(n), [N, C] = T.useState(null), k = T.useRef(null), D = Nt(t, k, b.onContentChange), _ = T.useRef(0), E = T.useRef(""), M = T.useRef(0), R = T.useRef(null), F = T.useRef("right"), I = T.useRef(0), A = m ? xp : T.Fragment, z = m ? { as: Wz, allowPinchZoom: !0 } : void 0, $ = (L) => {
|
|
16985
|
-
var W,
|
|
16986
|
-
const O = E.current + L, U = w().filter((G) => !G.disabled), V = document.activeElement, P = (W = U.find((G) => G.ref.current === V)) == null ? void 0 : W.textValue, Y = U.map((G) => G.textValue), B = Wce(Y, O, P), q = (
|
|
16985
|
+
var W, j;
|
|
16986
|
+
const O = E.current + L, U = w().filter((G) => !G.disabled), V = document.activeElement, P = (W = U.find((G) => G.ref.current === V)) == null ? void 0 : W.textValue, Y = U.map((G) => G.textValue), B = Wce(Y, O, P), q = (j = U.find((G) => G.textValue === B)) == null ? void 0 : j.ref.current;
|
|
16987
16987
|
(function G(K) {
|
|
16988
16988
|
E.current = K, window.clearTimeout(_.current), K !== "" && (_.current = window.setTimeout(() => G(""), 1e3));
|
|
16989
16989
|
})(O), q && setTimeout(() => q.focus());
|
|
16990
16990
|
};
|
|
16991
16991
|
T.useEffect(() => () => window.clearTimeout(_.current), []), f1();
|
|
16992
|
-
const
|
|
16992
|
+
const H = T.useCallback((L) => {
|
|
16993
16993
|
var U, V;
|
|
16994
16994
|
return F.current === ((U = R.current) == null ? void 0 : U.side) && Yce(L, (V = R.current) == null ? void 0 : V.area);
|
|
16995
16995
|
}, []);
|
|
@@ -17000,22 +17000,22 @@ var Ki = "MenuContent", [Rce, rT] = nf(Ki), s9 = T.forwardRef(
|
|
|
17000
17000
|
searchRef: E,
|
|
17001
17001
|
onItemEnter: T.useCallback(
|
|
17002
17002
|
(L) => {
|
|
17003
|
-
|
|
17003
|
+
H(L) && L.preventDefault();
|
|
17004
17004
|
},
|
|
17005
|
-
[
|
|
17005
|
+
[H]
|
|
17006
17006
|
),
|
|
17007
17007
|
onItemLeave: T.useCallback(
|
|
17008
17008
|
(L) => {
|
|
17009
17009
|
var O;
|
|
17010
|
-
|
|
17010
|
+
H(L) || ((O = k.current) == null || O.focus(), C(null));
|
|
17011
17011
|
},
|
|
17012
|
-
[
|
|
17012
|
+
[H]
|
|
17013
17013
|
),
|
|
17014
17014
|
onTriggerLeave: T.useCallback(
|
|
17015
17015
|
(L) => {
|
|
17016
|
-
|
|
17016
|
+
H(L) && L.preventDefault();
|
|
17017
17017
|
},
|
|
17018
|
-
[
|
|
17018
|
+
[H]
|
|
17019
17019
|
),
|
|
17020
17020
|
pointerGraceTimerRef: M,
|
|
17021
17021
|
onPointerGraceIntentChange: T.useCallback((L) => {
|
|
@@ -17856,14 +17856,14 @@ function rde(e) {
|
|
|
17856
17856
|
}
|
|
17857
17857
|
var ode = (e) => {
|
|
17858
17858
|
var t, n, r, o, i, a, s, l, c, u, d;
|
|
17859
|
-
let { invert: h, toast: p, unstyled: m, interacting: g, setHeights: b, visibleToasts: y, heights: v, index: x, toasts: w, expanded: N, removeToast: C, defaultRichColors: k, closeButton: D, style: _, cancelButtonStyle: E, actionButtonStyle: M, className: R = "", descriptionClassName: F = "", duration: I, position: A, gap: z, loadingIcon: $, expandByDefault:
|
|
17859
|
+
let { invert: h, toast: p, unstyled: m, interacting: g, setHeights: b, visibleToasts: y, heights: v, index: x, toasts: w, expanded: N, removeToast: C, defaultRichColors: k, closeButton: D, style: _, cancelButtonStyle: E, actionButtonStyle: M, className: R = "", descriptionClassName: F = "", duration: I, position: A, gap: z, loadingIcon: $, expandByDefault: H, classNames: L, icons: O, closeButtonAriaLabel: U = "Close toast", pauseWhenPageIsHidden: V } = e, [P, Y] = Q.useState(null), [B, q] = Q.useState(null), [W, j] = Q.useState(!1), [G, K] = Q.useState(!1), [re, Z] = Q.useState(!1), [ne, ae] = Q.useState(!1), [de, ie] = Q.useState(!1), [me, Te] = Q.useState(0), [le, xe] = Q.useState(0), fe = Q.useRef(p.duration || I || JP), Ee = Q.useRef(null), De = Q.useRef(null), it = x === 0, tt = x + 1 <= y, ue = p.type, Ne = p.dismissible !== !1, qe = p.className || "", ve = p.descriptionClassName || "", Ae = Q.useMemo(() => v.findIndex((ze) => ze.toastId === p.id) || 0, [v, p.id]), Ue = Q.useMemo(() => {
|
|
17860
17860
|
var ze;
|
|
17861
17861
|
return (ze = p.closeButton) != null ? ze : D;
|
|
17862
17862
|
}, [p.closeButton, D]), Ze = Q.useMemo(() => p.duration || I || JP, [p.duration, I]), Be = Q.useRef(0), ut = Q.useRef(0), Re = Q.useRef(0), St = Q.useRef(null), [Bt, Ge] = A.split("-"), Qe = Q.useMemo(() => v.reduce((ze, Ke, ht) => ht >= Ae ? ze : ze + Ke.height, 0), [v, Ae]), xt = jue(), Je = p.invert || h, at = ue === "loading";
|
|
17863
17863
|
ut.current = Q.useMemo(() => Ae * z + Qe, [Ae, Qe]), Q.useEffect(() => {
|
|
17864
17864
|
fe.current = Ze;
|
|
17865
17865
|
}, [Ze]), Q.useEffect(() => {
|
|
17866
|
-
|
|
17866
|
+
j(!0);
|
|
17867
17867
|
}, []), Q.useEffect(() => {
|
|
17868
17868
|
let ze = De.current;
|
|
17869
17869
|
if (ze) {
|
|
@@ -17902,7 +17902,7 @@ var ode = (e) => {
|
|
|
17902
17902
|
var ze, Ke, ht;
|
|
17903
17903
|
return O != null && O.loading ? Q.createElement("div", { className: oa(L == null ? void 0 : L.loader, (ze = p == null ? void 0 : p.classNames) == null ? void 0 : ze.loader, "sonner-loader"), "data-visible": ue === "loading" }, O.loading) : $ ? Q.createElement("div", { className: oa(L == null ? void 0 : L.loader, (Ke = p == null ? void 0 : p.classNames) == null ? void 0 : Ke.loader, "sonner-loader"), "data-visible": ue === "loading" }, $) : Q.createElement(Fue, { className: oa(L == null ? void 0 : L.loader, (ht = p == null ? void 0 : p.classNames) == null ? void 0 : ht.loader), visible: ue === "loading" });
|
|
17904
17904
|
}
|
|
17905
|
-
return Q.createElement("li", { tabIndex: 0, ref: De, className: oa(R, qe, L == null ? void 0 : L.toast, (t = p == null ? void 0 : p.classNames) == null ? void 0 : t.toast, L == null ? void 0 : L.default, L == null ? void 0 : L[ue], (n = p == null ? void 0 : p.classNames) == null ? void 0 : n[ue]), "data-sonner-toast": "", "data-rich-colors": (r = p.richColors) != null ? r : k, "data-styled": !(p.jsx || p.unstyled || m), "data-mounted": W, "data-promise": !!p.promise, "data-swiped": de, "data-removed": G, "data-visible": tt, "data-y-position": Bt, "data-x-position": Ge, "data-index": x, "data-front": it, "data-swiping": re, "data-dismissible": Ne, "data-type": ue, "data-invert": Je, "data-swipe-out": ne, "data-swipe-direction": B, "data-expanded": !!(N ||
|
|
17905
|
+
return Q.createElement("li", { tabIndex: 0, ref: De, className: oa(R, qe, L == null ? void 0 : L.toast, (t = p == null ? void 0 : p.classNames) == null ? void 0 : t.toast, L == null ? void 0 : L.default, L == null ? void 0 : L[ue], (n = p == null ? void 0 : p.classNames) == null ? void 0 : n[ue]), "data-sonner-toast": "", "data-rich-colors": (r = p.richColors) != null ? r : k, "data-styled": !(p.jsx || p.unstyled || m), "data-mounted": W, "data-promise": !!p.promise, "data-swiped": de, "data-removed": G, "data-visible": tt, "data-y-position": Bt, "data-x-position": Ge, "data-index": x, "data-front": it, "data-swiping": re, "data-dismissible": Ne, "data-type": ue, "data-invert": Je, "data-swipe-out": ne, "data-swipe-direction": B, "data-expanded": !!(N || H && W), style: { "--index": x, "--toasts-before": x, "--z-index": w.length - x, "--offset": `${G ? me : ut.current}px`, "--initial-height": H ? "auto" : `${le}px`, ..._, ...p.style }, onDragEnd: () => {
|
|
17906
17906
|
Z(!1), Y(null), St.current = null;
|
|
17907
17907
|
}, onPointerDown: (ze) => {
|
|
17908
17908
|
at || !Ne || (Ee.current = /* @__PURE__ */ new Date(), Te(ut.current), ze.target.setPointerCapture(ze.pointerId), ze.target.tagName !== "BUTTON" && (Z(!0), St.current = { x: ze.clientX, y: ze.clientY }));
|
|
@@ -17955,7 +17955,7 @@ function ide(e, t) {
|
|
|
17955
17955
|
}), n;
|
|
17956
17956
|
}
|
|
17957
17957
|
var ade = Qr(function(e, t) {
|
|
17958
|
-
let { invert: n, position: r = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: i, closeButton: a, className: s, offset: l, mobileOffset: c, theme: u = "light", richColors: d, duration: h, style: p, visibleToasts: m = Zue, toastOptions: g, dir: b = eO(), gap: y = ede, loadingIcon: v, icons: x, containerAriaLabel: w = "Notifications", pauseWhenPageIsHidden: N } = e, [C, k] = Q.useState([]), D = Q.useMemo(() => Array.from(new Set([r].concat(C.filter((V) => V.position).map((V) => V.position)))), [C, r]), [_, E] = Q.useState([]), [M, R] = Q.useState(!1), [F, I] = Q.useState(!1), [A, z] = Q.useState(u !== "system" ? u : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), $ = Q.useRef(null),
|
|
17958
|
+
let { invert: n, position: r = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: i, closeButton: a, className: s, offset: l, mobileOffset: c, theme: u = "light", richColors: d, duration: h, style: p, visibleToasts: m = Zue, toastOptions: g, dir: b = eO(), gap: y = ede, loadingIcon: v, icons: x, containerAriaLabel: w = "Notifications", pauseWhenPageIsHidden: N } = e, [C, k] = Q.useState([]), D = Q.useMemo(() => Array.from(new Set([r].concat(C.filter((V) => V.position).map((V) => V.position)))), [C, r]), [_, E] = Q.useState([]), [M, R] = Q.useState(!1), [F, I] = Q.useState(!1), [A, z] = Q.useState(u !== "system" ? u : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), $ = Q.useRef(null), H = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), L = Q.useRef(null), O = Q.useRef(!1), U = Q.useCallback((V) => {
|
|
17959
17959
|
k((P) => {
|
|
17960
17960
|
var Y;
|
|
17961
17961
|
return (Y = P.find((B) => B.id === V.id)) != null && Y.delete || Wo.dismiss(V.id), P.filter(({ id: B }) => B !== V.id);
|
|
@@ -18006,7 +18006,7 @@ var ade = Qr(function(e, t) {
|
|
|
18006
18006
|
if ($.current) return () => {
|
|
18007
18007
|
L.current && (L.current.focus({ preventScroll: !0 }), L.current = null, O.current = !1);
|
|
18008
18008
|
};
|
|
18009
|
-
}, [$.current]), Q.createElement("section", { ref: t, "aria-label": `${w} ${
|
|
18009
|
+
}, [$.current]), Q.createElement("section", { ref: t, "aria-label": `${w} ${H}`, tabIndex: -1, "aria-live": "polite", "aria-relevant": "additions text", "aria-atomic": "false", suppressHydrationWarning: !0 }, D.map((V, P) => {
|
|
18010
18010
|
var Y;
|
|
18011
18011
|
let [B, q] = V.split("-");
|
|
18012
18012
|
return C.length ? Q.createElement("ol", { key: V, dir: b === "auto" ? eO() : b, tabIndex: -1, ref: $, className: s, "data-sonner-toaster": !0, "data-theme": A, "data-y-position": B, "data-lifted": M && C.length > 1 && !i, "data-x-position": q, style: { "--front-toast-height": `${((Y = _[0]) == null ? void 0 : Y.height) || 0}px`, "--width": `${Jue}px`, "--gap": `${y}px`, ...p, ...ide(l, c) }, onBlur: (W) => {
|
|
@@ -18017,9 +18017,9 @@ var ade = Qr(function(e, t) {
|
|
|
18017
18017
|
F || R(!1);
|
|
18018
18018
|
}, onDragEnd: () => R(!1), onPointerDown: (W) => {
|
|
18019
18019
|
W.target instanceof HTMLElement && W.target.dataset.dismissible === "false" || I(!0);
|
|
18020
|
-
}, onPointerUp: () => I(!1) }, C.filter((W) => !W.position && P === 0 || W.position === V).map((W,
|
|
18020
|
+
}, onPointerUp: () => I(!1) }, C.filter((W) => !W.position && P === 0 || W.position === V).map((W, j) => {
|
|
18021
18021
|
var G, K;
|
|
18022
|
-
return Q.createElement(ode, { key: W.id, icons: x, index:
|
|
18022
|
+
return Q.createElement(ode, { key: W.id, icons: x, index: j, toast: W, defaultRichColors: d, duration: (G = g == null ? void 0 : g.duration) != null ? G : h, className: g == null ? void 0 : g.className, descriptionClassName: g == null ? void 0 : g.descriptionClassName, invert: n, visibleToasts: m, closeButton: (K = g == null ? void 0 : g.closeButton) != null ? K : a, interacting: F, position: V, style: g == null ? void 0 : g.style, unstyled: g == null ? void 0 : g.unstyled, classNames: g == null ? void 0 : g.classNames, cancelButtonStyle: g == null ? void 0 : g.cancelButtonStyle, actionButtonStyle: g == null ? void 0 : g.actionButtonStyle, removeToast: U, toasts: C.filter((re) => re.position == W.position), heights: _.filter((re) => re.position == W.position), setHeights: E, expandByDefault: i, gap: y, loadingIcon: v, expanded: M, pauseWhenPageIsHidden: N, swipeDirections: e.swipeDirections });
|
|
18023
18023
|
})) : null;
|
|
18024
18024
|
}));
|
|
18025
18025
|
});
|
|
@@ -23051,7 +23051,7 @@ function epe(e) {
|
|
|
23051
23051
|
cardFilterValues: C,
|
|
23052
23052
|
resolvedGroupBy: A.groupByColumns,
|
|
23053
23053
|
resolvedSortBy: A.sortByColumns
|
|
23054
|
-
}),
|
|
23054
|
+
}), H = o ? {} : {
|
|
23055
23055
|
refetchInterval: k
|
|
23056
23056
|
}, L = {
|
|
23057
23057
|
databaseName: (w == null ? void 0 : w.lastSelectedDatabase) || "",
|
|
@@ -23067,10 +23067,10 @@ function epe(e) {
|
|
|
23067
23067
|
D
|
|
23068
23068
|
);
|
|
23069
23069
|
if (!B && !q) return null;
|
|
23070
|
-
const W = Qhe(w, o, l),
|
|
23070
|
+
const W = Qhe(w, o, l), j = s.mode === "table-print", G = Dd(w.config) && kx(w) && !w.sql, K = (
|
|
23071
23071
|
// isPaginatedCardType(card) &&
|
|
23072
23072
|
w.sql && ((de = (ae = w.preferences) == null ? void 0 : ae.tablePrefs) == null ? void 0 : de.enableDevModePagination)
|
|
23073
|
-
), re = !
|
|
23073
|
+
), re = !j && (G || K);
|
|
23074
23074
|
try {
|
|
23075
23075
|
const fe = {
|
|
23076
23076
|
connection_id: W,
|
|
@@ -23111,7 +23111,7 @@ function epe(e) {
|
|
|
23111
23111
|
card: w,
|
|
23112
23112
|
queryKey: $,
|
|
23113
23113
|
queryFn: U,
|
|
23114
|
-
config:
|
|
23114
|
+
config: H,
|
|
23115
23115
|
isFilteringCard: _,
|
|
23116
23116
|
isSingleCardFrame: R,
|
|
23117
23117
|
appliedClickFilters: D,
|
|
@@ -24126,7 +24126,7 @@ function cy(e, t, n, r, o) {
|
|
|
24126
24126
|
};
|
|
24127
24127
|
}
|
|
24128
24128
|
function Np(e, t, n, r) {
|
|
24129
|
-
var D, _, E, M, R, F, I, A, z, $,
|
|
24129
|
+
var D, _, E, M, R, F, I, A, z, $, H, L, O, U, V;
|
|
24130
24130
|
const o = (_ = (D = n == null ? void 0 : n.chartOptions) == null ? void 0 : D.plugins) == null ? void 0 : _.datalabels, i = (o == null ? void 0 : o.display) !== !1 && ((o == null ? void 0 : o.anchor) || (o == null ? void 0 : o.align));
|
|
24131
24131
|
if (r === "heatmap")
|
|
24132
24132
|
return {
|
|
@@ -24184,17 +24184,17 @@ function Np(e, t, n, r) {
|
|
|
24184
24184
|
const W = (typeof (B == null ? void 0 : B.y) == "number" ? B == null ? void 0 : B.y : Number(B == null ? void 0 : B.y)) ?? (typeof (B == null ? void 0 : B.x) == "number" ? B == null ? void 0 : B.x : Number(B == null ? void 0 : B.x)) ?? Number(P);
|
|
24185
24185
|
if (!Number.isFinite(W))
|
|
24186
24186
|
return "";
|
|
24187
|
-
const
|
|
24188
|
-
return
|
|
24187
|
+
const j = t.format;
|
|
24188
|
+
return j === "none" ? W : qr(
|
|
24189
24189
|
W,
|
|
24190
|
-
!
|
|
24190
|
+
!j || j === "auto" ? "number" : j,
|
|
24191
24191
|
t.formatOptions || {}
|
|
24192
24192
|
);
|
|
24193
24193
|
} : vO(
|
|
24194
24194
|
t,
|
|
24195
24195
|
m,
|
|
24196
24196
|
// Pass legacy formatter if needed
|
|
24197
|
-
(L = (
|
|
24197
|
+
(L = (H = e.plugins) == null ? void 0 : H.datalabels) == null ? void 0 : L.formatter,
|
|
24198
24198
|
s
|
|
24199
24199
|
),
|
|
24200
24200
|
// Color - pass anchor and align for smart contrast
|
|
@@ -24223,16 +24223,21 @@ function Np(e, t, n, r) {
|
|
|
24223
24223
|
display: function(P) {
|
|
24224
24224
|
if (t.display === !1) return !1;
|
|
24225
24225
|
const Y = P.dataset.data[P.dataIndex], B = P.dataset.data.reduce(
|
|
24226
|
-
(W,
|
|
24226
|
+
(W, j) => W + j,
|
|
24227
24227
|
0
|
|
24228
24228
|
);
|
|
24229
24229
|
return Y / B * 100 > 5;
|
|
24230
24230
|
}
|
|
24231
24231
|
})), s === "funnel" && t.enabled && (Object.assign(k, {
|
|
24232
24232
|
display: function(P) {
|
|
24233
|
+
var B;
|
|
24233
24234
|
if (t.display === !1) return !1;
|
|
24234
|
-
const Y =
|
|
24235
|
-
|
|
24235
|
+
const Y = (((B = n == null ? void 0 : n.funnelConfig) == null ? void 0 : B.labelThreshold) ?? 0) / 100;
|
|
24236
|
+
if (Y > 0) {
|
|
24237
|
+
const q = P.dataset.data, W = q[P.dataIndex], j = q.reduce((K, re) => K + re, 0);
|
|
24238
|
+
return (j > 0 ? W / j : 0) >= Y;
|
|
24239
|
+
}
|
|
24240
|
+
return !0;
|
|
24236
24241
|
},
|
|
24237
24242
|
anchor: function(P) {
|
|
24238
24243
|
return P.dataset.data[P.dataIndex] < 0.02 ? "end" : "start";
|
|
@@ -24248,7 +24253,7 @@ function Np(e, t, n, r) {
|
|
|
24248
24253
|
const Y = P.chart.data.datasets.length;
|
|
24249
24254
|
return P.datasetIndex === Y - 1;
|
|
24250
24255
|
}, k.formatter = function(P, Y) {
|
|
24251
|
-
var
|
|
24256
|
+
var j, G;
|
|
24252
24257
|
let B = 0;
|
|
24253
24258
|
const q = Y.dataIndex;
|
|
24254
24259
|
return Y.chart.data.datasets.forEach((K) => {
|
|
@@ -24257,7 +24262,7 @@ function Np(e, t, n, r) {
|
|
|
24257
24262
|
}), vO(
|
|
24258
24263
|
t,
|
|
24259
24264
|
m,
|
|
24260
|
-
(G = (
|
|
24265
|
+
(G = (j = e.plugins) == null ? void 0 : j.datalabels) == null ? void 0 : G.formatter,
|
|
24261
24266
|
s
|
|
24262
24267
|
)(B);
|
|
24263
24268
|
}, k.anchor = "end", k.align = p ? "right" : "top", k.color = cy(
|
|
@@ -24492,7 +24497,7 @@ function Ex({
|
|
|
24492
24497
|
customCfg: r,
|
|
24493
24498
|
card: o
|
|
24494
24499
|
}) {
|
|
24495
|
-
var g, b, y, v, x, w, N, C, k, D, _, E, M, R, F, I, A, z, $,
|
|
24500
|
+
var g, b, y, v, x, w, N, C, k, D, _, E, M, R, F, I, A, z, $, H, L, O, U, V, P, Y, B, q, W, j, G, K, re, Z, ne;
|
|
24496
24501
|
const i = J.getState().themeStyle, a = fV(t, n), s = br(
|
|
24497
24502
|
(t == null ? void 0 : t.options) || {},
|
|
24498
24503
|
n == null ? void 0 : n.chartOptions
|
|
@@ -24537,7 +24542,7 @@ function Ex({
|
|
|
24537
24542
|
return ae.raw !== void 0 && ae.raw !== null && ae.raw !== 0;
|
|
24538
24543
|
},
|
|
24539
24544
|
// Footer styling
|
|
24540
|
-
footerColor: ((
|
|
24545
|
+
footerColor: ((H = ($ = (z = (A = i == null ? void 0 : i.chart) == null ? void 0 : A.options) == null ? void 0 : z.plugins) == null ? void 0 : $.tooltip) == null ? void 0 : H.footerColor) || "#999",
|
|
24541
24546
|
footerFont: {
|
|
24542
24547
|
size: 11,
|
|
24543
24548
|
weight: "normal"
|
|
@@ -24596,7 +24601,7 @@ function Ex({
|
|
|
24596
24601
|
...(L = c == null ? void 0 : c.plugins) == null ? void 0 : L.tooltip,
|
|
24597
24602
|
backgroundColor: (P = (V = (U = (O = i == null ? void 0 : i.chart) == null ? void 0 : O.options) == null ? void 0 : U.plugins) == null ? void 0 : V.tooltip) == null ? void 0 : P.backgroundColor,
|
|
24598
24603
|
bodyColor: (W = (q = (B = (Y = i == null ? void 0 : i.chart) == null ? void 0 : Y.options) == null ? void 0 : B.plugins) == null ? void 0 : q.tooltip) == null ? void 0 : W.bodyColor,
|
|
24599
|
-
titleColor: (re = (K = (G = (
|
|
24604
|
+
titleColor: (re = (K = (G = (j = i == null ? void 0 : i.chart) == null ? void 0 : j.options) == null ? void 0 : G.plugins) == null ? void 0 : K.tooltip) == null ? void 0 : re.titleColor
|
|
24600
24605
|
}
|
|
24601
24606
|
}
|
|
24602
24607
|
}, { plugins: h, options: p } = Yc((n == null ? void 0 : n.customVisualCode) || "");
|
|
@@ -29464,7 +29469,7 @@ class Kc extends ta {
|
|
|
29464
29469
|
}
|
|
29465
29470
|
const I = vt(o.ticks.maxTicksLimit, d), A = Math.max(1, Math.ceil(d / I));
|
|
29466
29471
|
for (x = 0; x < d; x += A) {
|
|
29467
|
-
const z = this.getContext(x), $ = i.setContext(z),
|
|
29472
|
+
const z = this.getContext(x), $ = i.setContext(z), H = s.setContext(z), L = $.lineWidth, O = $.color, U = H.dash || [], V = H.dashOffset, P = $.tickWidth, Y = $.tickColor, B = $.tickBorderDash || [], q = $.tickBorderDashOffset;
|
|
29468
29473
|
w = bbe(this, x, l), w !== void 0 && (N = hu(r, w, L), c ? C = D = E = R = N : k = _ = M = F = N, p.push({
|
|
29469
29474
|
tx1: C,
|
|
29470
29475
|
ty1: k,
|
|
@@ -29522,7 +29527,7 @@ class Kc extends ta {
|
|
|
29522
29527
|
x = s[y], w = x.label;
|
|
29523
29528
|
const A = i.setContext(this.getContext(y));
|
|
29524
29529
|
D = this.getPixelForTick(y) + i.labelOffset, _ = this._resolveTickFontOptions(y), E = _.lineHeight, M = _n(w) ? w.length : 1;
|
|
29525
|
-
const z = M / 2, $ = A.color,
|
|
29530
|
+
const z = M / 2, $ = A.color, H = A.textStrokeColor, L = A.textStrokeWidth;
|
|
29526
29531
|
let O = k;
|
|
29527
29532
|
a ? (N = D, k === "inner" && (y === v - 1 ? O = this.options.reverse ? "left" : "right" : y === 0 ? O = this.options.reverse ? "right" : "left" : O = "center"), o === "top" ? c === "near" || g !== 0 ? R = -M * E + E / 2 : c === "center" ? R = -I.highest.height / 2 - z * E + E : R = -I.highest.height + E / 2 : c === "near" || g !== 0 ? R = E / 2 : c === "center" ? R = I.highest.height / 2 - z * E : R = I.highest.height - M * E, d && (R *= -1), g !== 0 && !A.showLabelBackdrop && (N += E / 2 * Math.sin(g))) : (C = D, R = (1 - M) * E / 2);
|
|
29528
29533
|
let U;
|
|
@@ -29563,7 +29568,7 @@ class Kc extends ta {
|
|
|
29563
29568
|
options: {
|
|
29564
29569
|
rotation: g,
|
|
29565
29570
|
color: $,
|
|
29566
|
-
strokeColor:
|
|
29571
|
+
strokeColor: H,
|
|
29567
29572
|
strokeWidth: L,
|
|
29568
29573
|
textAlign: O,
|
|
29569
29574
|
textBaseline: F,
|
|
@@ -30776,8 +30781,8 @@ function Px(e, t, n, r, o, i) {
|
|
|
30776
30781
|
let p = 0;
|
|
30777
30782
|
const m = o - l;
|
|
30778
30783
|
if (r) {
|
|
30779
|
-
const A = u > 0 ? u - r : 0, z = d > 0 ? d - r : 0, $ = (A + z) / 2,
|
|
30780
|
-
p = (m -
|
|
30784
|
+
const A = u > 0 ? u - r : 0, z = d > 0 ? d - r : 0, $ = (A + z) / 2, H = $ !== 0 ? m * $ / ($ + r) : m;
|
|
30785
|
+
p = (m - H) / 2;
|
|
30781
30786
|
}
|
|
30782
30787
|
const g = Math.max(1e-3, m * d - n / qn) / d, b = (m - g) / 2, y = l + b + p, v = o - b - p, { outerStart: x, outerEnd: w, innerStart: N, innerEnd: C } = Kbe(t, h, d, v - y), k = d - x, D = d - w, _ = y + x / k, E = v - w / D, M = h + N, R = h + C, F = y + N / M, I = v - C / R;
|
|
30783
30788
|
if (e.beginPath(), i) {
|
|
@@ -30796,8 +30801,8 @@ function Px(e, t, n, r, o, i) {
|
|
|
30796
30801
|
const L = Sf(M, F, a, s);
|
|
30797
30802
|
e.arc(L.x, L.y, N, F + Math.PI, y - vr);
|
|
30798
30803
|
}
|
|
30799
|
-
const
|
|
30800
|
-
if (e.lineTo(
|
|
30804
|
+
const H = Sf(k, y, a, s);
|
|
30805
|
+
if (e.lineTo(H.x, H.y), x > 0) {
|
|
30801
30806
|
const L = Sf(k, _, a, s);
|
|
30802
30807
|
e.arc(L.x, L.y, x, y - vr, _);
|
|
30803
30808
|
}
|
|
@@ -30805,8 +30810,8 @@ function Px(e, t, n, r, o, i) {
|
|
|
30805
30810
|
e.moveTo(a, s);
|
|
30806
30811
|
const A = Math.cos(_) * d + a, z = Math.sin(_) * d + s;
|
|
30807
30812
|
e.lineTo(A, z);
|
|
30808
|
-
const $ = Math.cos(E) * d + a,
|
|
30809
|
-
e.lineTo($,
|
|
30813
|
+
const $ = Math.cos(E) * d + a, H = Math.sin(E) * d + s;
|
|
30814
|
+
e.lineTo($, H);
|
|
30810
30815
|
}
|
|
30811
30816
|
e.closePath();
|
|
30812
30817
|
}
|
|
@@ -34174,10 +34179,10 @@ function zye(e) {
|
|
|
34174
34179
|
if (!(R < 0)) {
|
|
34175
34180
|
var F = Ao(R), I = Ey(_, (-E - F) / M);
|
|
34176
34181
|
if (iN(I, k), I = pE(I), !h) return I;
|
|
34177
|
-
var A = u[0], z = d[0], $ = u[1],
|
|
34182
|
+
var A = u[0], z = d[0], $ = u[1], H = d[1], L;
|
|
34178
34183
|
z < A && (L = A, A = z, z = L);
|
|
34179
34184
|
var O = z - A, U = nn(O - Vt) < yt, V = U || O < yt;
|
|
34180
|
-
if (!U &&
|
|
34185
|
+
if (!U && H < $ && (L = $, $ = H, H = L), V ? U ? $ + H > 0 ^ I[1] < (nn(I[0] - A) < yt ? $ : H) : $ <= I[1] && I[1] <= H : O > Vt ^ (A <= I[0] && I[0] <= z)) {
|
|
34181
34186
|
var P = Ey(_, (-E + F) / M);
|
|
34182
34187
|
return iN(P, k), [I, pE(P)];
|
|
34183
34188
|
}
|
|
@@ -34266,8 +34271,8 @@ function Vye(e, t, n, r) {
|
|
|
34266
34271
|
}
|
|
34267
34272
|
function _() {
|
|
34268
34273
|
for (var A = 0, z = 0, $ = p.length; z < $; ++z)
|
|
34269
|
-
for (var
|
|
34270
|
-
V = Y, P = B, U =
|
|
34274
|
+
for (var H = p[z], L = 1, O = H.length, U = H[0], V, P, Y = U[0], B = U[1]; L < O; ++L)
|
|
34275
|
+
V = Y, P = B, U = H[L], Y = U[0], B = U[1], P <= r ? B > r && (Y - V) * (r - P) > (B - P) * (e - V) && ++A : B <= r && (Y - V) * (r - P) < (B - P) * (e - V) && --A;
|
|
34271
34276
|
return A;
|
|
34272
34277
|
}
|
|
34273
34278
|
function E() {
|
|
@@ -34289,8 +34294,8 @@ function Vye(e, t, n, r) {
|
|
|
34289
34294
|
g = A, b = z, y = $, N = !1, $ && (u.lineStart(), u.point(A, z));
|
|
34290
34295
|
else if ($ && w) u.point(A, z);
|
|
34291
34296
|
else {
|
|
34292
|
-
var
|
|
34293
|
-
Bye(
|
|
34297
|
+
var H = [v = Math.max(Dy, Math.min(Tm, v)), x = Math.max(Dy, Math.min(Tm, x))], L = [A = Math.max(Dy, Math.min(Tm, A)), z = Math.max(Dy, Math.min(Tm, z))];
|
|
34298
|
+
Bye(H, L, e, t, n, r) ? (w || (u.lineStart(), u.point(H[0], H[1])), u.point(L[0], L[1]), $ || u.lineEnd(), C = !1) : $ && (u.lineStart(), u.point(A, z), C = !1);
|
|
34294
34299
|
}
|
|
34295
34300
|
v = A, x = z, w = $;
|
|
34296
34301
|
}
|
|
@@ -37064,7 +37069,7 @@ function Awe({
|
|
|
37064
37069
|
isDevMode: s = !1,
|
|
37065
37070
|
card: l
|
|
37066
37071
|
}) {
|
|
37067
|
-
var A, z, $,
|
|
37072
|
+
var A, z, $, H, L, O, U, V, P, Y, B;
|
|
37068
37073
|
if (!e || e.length === 0)
|
|
37069
37074
|
return {
|
|
37070
37075
|
type: o,
|
|
@@ -37076,7 +37081,7 @@ function Awe({
|
|
|
37076
37081
|
type: o,
|
|
37077
37082
|
data: { labels: [], datasets: [] }
|
|
37078
37083
|
};
|
|
37079
|
-
const d = J.getState(), h = i ?? d.themeStyle, p = Fwe(e, u, c, o), m = Lwe(p, h, r, o), g = Td(m, n), b = jwe(r), y = uV(o), v = (z = (A = r == null ? void 0 : r.chartOptions) == null ? void 0 : A.plugins) == null ? void 0 : z.legend, x = dV(y, v), w = !!(v != null && v.labels || (L = (
|
|
37084
|
+
const d = J.getState(), h = i ?? d.themeStyle, p = Fwe(e, u, c, o), m = Lwe(p, h, r, o), g = Td(m, n), b = jwe(r), y = uV(o), v = (z = (A = r == null ? void 0 : r.chartOptions) == null ? void 0 : A.plugins) == null ? void 0 : z.legend, x = dV(y, v), w = !!(v != null && v.labels || (L = (H = ($ = t == null ? void 0 : t.options) == null ? void 0 : $.plugins) == null ? void 0 : H.legend) != null && L.labels || (V = (U = (O = n == null ? void 0 : n.options) == null ? void 0 : O.plugins) == null ? void 0 : U.legend) != null && V.labels);
|
|
37080
37085
|
(v == null ? void 0 : v.display) === void 0 && (x.display = u.grouping.enabled);
|
|
37081
37086
|
const N = Uwe(l);
|
|
37082
37087
|
let C = Bwe({
|
|
@@ -37469,7 +37474,7 @@ function Gwe({
|
|
|
37469
37474
|
cardType: o,
|
|
37470
37475
|
card: i
|
|
37471
37476
|
}) {
|
|
37472
|
-
var F, I, A, z, $,
|
|
37477
|
+
var F, I, A, z, $, H, L;
|
|
37473
37478
|
const a = ((F = r == null ? void 0 : r.chartOptions) == null ? void 0 : F.indexAxis) || "y", s = {
|
|
37474
37479
|
...t,
|
|
37475
37480
|
options: {
|
|
@@ -37486,8 +37491,8 @@ function Gwe({
|
|
|
37486
37491
|
u
|
|
37487
37492
|
), h = Td(d, n);
|
|
37488
37493
|
h.forEach((O, U) => {
|
|
37489
|
-
var V, P, Y;
|
|
37490
|
-
O.shrinkAnchor = ((Y = (P = (V = n == null ? void 0 : n.data) == null ? void 0 : V.datasets) == null ? void 0 : P[U]) == null ? void 0 : Y.shrinkAnchor) || "top";
|
|
37494
|
+
var V, P, Y, B, q, W, j;
|
|
37495
|
+
O.shrinkAnchor = ((Y = (P = (V = n == null ? void 0 : n.data) == null ? void 0 : V.datasets) == null ? void 0 : P[U]) == null ? void 0 : Y.shrinkAnchor) || "top", O.shrinkFraction = ((B = r == null ? void 0 : r.funnelConfig) == null ? void 0 : B.shrinkFraction) ?? ((j = (W = (q = n == null ? void 0 : n.data) == null ? void 0 : q.datasets) == null ? void 0 : W[U]) == null ? void 0 : j.shrinkFraction) ?? 1;
|
|
37491
37496
|
});
|
|
37492
37497
|
const { plugins: p, options: m } = Yc(
|
|
37493
37498
|
(r == null ? void 0 : r.customVisualCode) || ""
|
|
@@ -37502,7 +37507,7 @@ function Gwe({
|
|
|
37502
37507
|
const w = e.map((O) => O[g]), N = e.map((O) => O[c[0]]), C = (z = h[0]) == null ? void 0 : z.backgroundColor.slice(), k = (O) => {
|
|
37503
37508
|
var P, Y, B, q, W;
|
|
37504
37509
|
const U = (q = (B = (Y = (P = O == null ? void 0 : O.chart) == null ? void 0 : P.data) == null ? void 0 : Y.datasets) == null ? void 0 : B[(O == null ? void 0 : O.datasetIndex) || 0]) == null ? void 0 : q.data;
|
|
37505
|
-
return ((U && U.length > 0 ? U : (W = O == null ? void 0 : O.dataset) == null ? void 0 : W.data) ?? N).map((
|
|
37510
|
+
return ((U && U.length > 0 ? U : (W = O == null ? void 0 : O.dataset) == null ? void 0 : W.data) ?? N).map((j) => Number(j));
|
|
37506
37511
|
}, D = {
|
|
37507
37512
|
...v,
|
|
37508
37513
|
plugins: {
|
|
@@ -37525,19 +37530,24 @@ function Gwe({
|
|
|
37525
37530
|
},
|
|
37526
37531
|
// Remove/restore data on click
|
|
37527
37532
|
onClick: (O, U, V) => {
|
|
37528
|
-
const P = V.chart, Y = U.index, B = w[Y], q = P.data.datasets[0], W = P.data.labels,
|
|
37529
|
-
K >= 0 ? (W.splice(K, 1),
|
|
37533
|
+
const P = V.chart, Y = U.index, B = w[Y], q = P.data.datasets[0], W = P.data.labels, j = q.data, G = q.backgroundColor, K = W.indexOf(B.toString());
|
|
37534
|
+
K >= 0 ? (W.splice(K, 1), j.splice(K, 1), G.splice(K, 1)) : (W.splice(Y, 0, w[Y].toString()), j.splice(Y, 0, Number(N[Y])), G.splice(Y, 0, C[Y])), P.update();
|
|
37530
37535
|
}
|
|
37531
37536
|
},
|
|
37532
37537
|
// Legacy datalabels config - will be overridden if new config exists
|
|
37533
37538
|
datalabels: {
|
|
37534
|
-
...(
|
|
37535
|
-
// Hide labels for segments that are too small (< 10% of total)
|
|
37539
|
+
...(H = v.plugins) == null ? void 0 : H.datalabels,
|
|
37536
37540
|
display: function(O) {
|
|
37537
|
-
|
|
37538
|
-
|
|
37539
|
-
|
|
37540
|
-
|
|
37541
|
+
var V;
|
|
37542
|
+
if (x === !1) return !1;
|
|
37543
|
+
if (typeof x == "function")
|
|
37544
|
+
return x(O);
|
|
37545
|
+
const U = (((V = r == null ? void 0 : r.funnelConfig) == null ? void 0 : V.labelThreshold) ?? 0) / 100;
|
|
37546
|
+
if (U > 0) {
|
|
37547
|
+
const P = k(O), Y = P[O.dataIndex], B = P.reduce((W, j) => W + j, 0);
|
|
37548
|
+
return (B > 0 ? Y / B : 0) >= U;
|
|
37549
|
+
}
|
|
37550
|
+
return !0;
|
|
37541
37551
|
},
|
|
37542
37552
|
anchor: (O) => k(O)[O.dataIndex] < 0.02 ? "end" : "start",
|
|
37543
37553
|
align: (O) => k(O)[O.dataIndex] < 0.02 ? "end" : "center",
|
|
@@ -37561,8 +37571,8 @@ function Gwe({
|
|
|
37561
37571
|
...(L = v.plugins) == null ? void 0 : L.tooltip,
|
|
37562
37572
|
callbacks: {
|
|
37563
37573
|
title: function(O) {
|
|
37564
|
-
var B, q, W,
|
|
37565
|
-
const U = (q = (B = O == null ? void 0 : O[0]) == null ? void 0 : B.dataset) == null ? void 0 : q.data, V = (W = O == null ? void 0 : O[0]) == null ? void 0 : W.parsed[a === "x" ? "y" : "x"], P = ((
|
|
37574
|
+
var B, q, W, j, G;
|
|
37575
|
+
const U = (q = (B = O == null ? void 0 : O[0]) == null ? void 0 : B.dataset) == null ? void 0 : q.data, V = (W = O == null ? void 0 : O[0]) == null ? void 0 : W.parsed[a === "x" ? "y" : "x"], P = ((j = r == null ? void 0 : r.funnelConfig) == null ? void 0 : j.percentMode) ?? "percentOfTotal", Y = Ywe(
|
|
37566
37576
|
V,
|
|
37567
37577
|
U,
|
|
37568
37578
|
P
|
|
@@ -37570,7 +37580,7 @@ function Gwe({
|
|
|
37570
37580
|
return `${(G = O == null ? void 0 : O[0]) == null ? void 0 : G.label} (${Y}%)`;
|
|
37571
37581
|
},
|
|
37572
37582
|
label: function(O) {
|
|
37573
|
-
var
|
|
37583
|
+
var j, G, K, re;
|
|
37574
37584
|
O.dataset.label;
|
|
37575
37585
|
const U = O.dataset.data;
|
|
37576
37586
|
U.reduce(
|
|
@@ -37579,7 +37589,7 @@ function Gwe({
|
|
|
37579
37589
|
);
|
|
37580
37590
|
const V = O.parsed[a === "x" ? "y" : "x"], P = U.indexOf(V), Y = U[P - 1], B = To({
|
|
37581
37591
|
number: Number(V),
|
|
37582
|
-
decimalPlaces: ((
|
|
37592
|
+
decimalPlaces: ((j = r == null ? void 0 : r.numberAxisFormat) == null ? void 0 : j.decimalPlaces) || 0,
|
|
37583
37593
|
useSuffix: !!((G = r == null ? void 0 : r.numberAxisFormat) != null && G.suffix),
|
|
37584
37594
|
customSuffix: "",
|
|
37585
37595
|
locale: ((K = r == null ? void 0 : r.numberAxisFormat) == null ? void 0 : K.locale) || "",
|
|
@@ -38274,12 +38284,12 @@ function h1e({
|
|
|
38274
38284
|
});
|
|
38275
38285
|
const q = (xe = (le = r == null ? void 0 : r.chartOptions) == null ? void 0 : le.plugins) == null ? void 0 : xe.legend;
|
|
38276
38286
|
B = IT(B, q);
|
|
38277
|
-
const { plugins: W = [], options:
|
|
38287
|
+
const { plugins: W = [], options: j } = Yc((r == null ? void 0 : r.customVisualCode) || ""), G = I1e([
|
|
38278
38288
|
B,
|
|
38279
38289
|
t == null ? void 0 : t.options,
|
|
38280
38290
|
(r == null ? void 0 : r.chartOptions) || void 0,
|
|
38281
38291
|
n == null ? void 0 : n.options,
|
|
38282
|
-
|
|
38292
|
+
j
|
|
38283
38293
|
]), K = b.some((fe) => fe.target != null) && x > 0 ? N1e({
|
|
38284
38294
|
series: b,
|
|
38285
38295
|
orientation: C,
|
|
@@ -38754,8 +38764,8 @@ function P1e({
|
|
|
38754
38764
|
if (!c)
|
|
38755
38765
|
return Oy;
|
|
38756
38766
|
const u = a[1], d = l.find(
|
|
38757
|
-
(
|
|
38758
|
-
) ?? u, h = !u && (!d || typeof ((B = e[0]) == null ? void 0 : B[d]) != "string") && s.length > 1, p = s[0] ?? l.find((
|
|
38767
|
+
(j) => j !== c && !s.includes(j) && j !== u
|
|
38768
|
+
) ?? u, h = !u && (!d || typeof ((B = e[0]) == null ? void 0 : B[d]) != "string") && s.length > 1, p = s[0] ?? l.find((j) => j !== c && j !== d);
|
|
38759
38769
|
if (!p && !h)
|
|
38760
38770
|
return Oy;
|
|
38761
38771
|
const m = r == null ? void 0 : r.heatmapConfig, g = (m == null ? void 0 : m.legendPosition) ?? "bottom", b = h ? F1e({
|
|
@@ -38770,8 +38780,8 @@ function P1e({
|
|
|
38770
38780
|
});
|
|
38771
38781
|
if (b.length === 0)
|
|
38772
38782
|
return Oy;
|
|
38773
|
-
const y = h ? s.map(Jh) : mN(b.map((
|
|
38774
|
-
h ? e.map((
|
|
38783
|
+
const y = h ? s.map(Jh) : mN(b.map((j) => j.x)), v = mN(
|
|
38784
|
+
h ? e.map((j) => Jh(j == null ? void 0 : j[c])) : b.map((j) => j.y)
|
|
38775
38785
|
), x = $1e(b), w = i ?? J.getState().themeStyle, N = H1e({
|
|
38776
38786
|
min: x.min,
|
|
38777
38787
|
max: x.max,
|
|
@@ -38820,7 +38830,7 @@ function P1e({
|
|
|
38820
38830
|
(r == null ? void 0 : r.chartOptions) || void 0,
|
|
38821
38831
|
n == null ? void 0 : n.options,
|
|
38822
38832
|
z
|
|
38823
|
-
]),
|
|
38833
|
+
]), H = (m == null ? void 0 : m.showLegend) === !1 ? null : U1e({
|
|
38824
38834
|
stops: N.stops,
|
|
38825
38835
|
min: x.min,
|
|
38826
38836
|
max: x.max,
|
|
@@ -38832,7 +38842,7 @@ function P1e({
|
|
|
38832
38842
|
datasets: [F]
|
|
38833
38843
|
},
|
|
38834
38844
|
options: $,
|
|
38835
|
-
plugins:
|
|
38845
|
+
plugins: H ? [...A, H] : A
|
|
38836
38846
|
};
|
|
38837
38847
|
L.options = Np(
|
|
38838
38848
|
L.options || {},
|
|
@@ -39316,13 +39326,13 @@ function fH({
|
|
|
39316
39326
|
}
|
|
39317
39327
|
}
|
|
39318
39328
|
}
|
|
39319
|
-
}, { keys: M } = xr(p), R = _.map((
|
|
39329
|
+
}, { keys: M } = xr(p), R = _.map((H) => {
|
|
39320
39330
|
var V;
|
|
39321
39331
|
const L = M == null ? void 0 : M[0], O = M == null ? void 0 : M[1], U = (V = p.find(
|
|
39322
|
-
(P) => (P == null ? void 0 : P[L]) ===
|
|
39332
|
+
(P) => (P == null ? void 0 : P[L]) === H.properties.NAME || (P == null ? void 0 : P[L]) === H.properties.name
|
|
39323
39333
|
)) == null ? void 0 : V[O];
|
|
39324
39334
|
return {
|
|
39325
|
-
feature:
|
|
39335
|
+
feature: H,
|
|
39326
39336
|
value: U
|
|
39327
39337
|
};
|
|
39328
39338
|
}), I = Td(
|
|
@@ -39339,7 +39349,7 @@ function fH({
|
|
|
39339
39349
|
type: "choropleth",
|
|
39340
39350
|
data: {
|
|
39341
39351
|
labels: _.map(
|
|
39342
|
-
(
|
|
39352
|
+
(H) => H.properties.NAME || H.properties.name
|
|
39343
39353
|
),
|
|
39344
39354
|
datasets: I
|
|
39345
39355
|
},
|
|
@@ -39468,11 +39478,11 @@ function fH({
|
|
|
39468
39478
|
o
|
|
39469
39479
|
), { plugins: I, options: A } = Yc(
|
|
39470
39480
|
(s == null ? void 0 : s.customVisualCode) || ""
|
|
39471
|
-
), z = E[0], $ = Kb(p, z),
|
|
39481
|
+
), z = E[0], $ = Kb(p, z), H = br(
|
|
39472
39482
|
(D == null ? void 0 : D.options) || {},
|
|
39473
39483
|
(o == null ? void 0 : o.options) || {}
|
|
39474
39484
|
), L = br(
|
|
39475
|
-
|
|
39485
|
+
H,
|
|
39476
39486
|
(s == null ? void 0 : s.chartOptions) || {}
|
|
39477
39487
|
), O = {
|
|
39478
39488
|
...L,
|
|
@@ -39481,10 +39491,10 @@ function fH({
|
|
|
39481
39491
|
datalabels: {
|
|
39482
39492
|
...(C = L.plugins) == null ? void 0 : C.datalabels,
|
|
39483
39493
|
formatter: (q, W) => {
|
|
39484
|
-
var
|
|
39494
|
+
var j, G, K, re;
|
|
39485
39495
|
return To({
|
|
39486
39496
|
number: Number(q),
|
|
39487
|
-
decimalPlaces: ((
|
|
39497
|
+
decimalPlaces: ((j = s == null ? void 0 : s.numberAxisFormat) == null ? void 0 : j.decimalPlaces) || 0,
|
|
39488
39498
|
useSuffix: !!((G = s == null ? void 0 : s.numberAxisFormat) != null && G.suffix),
|
|
39489
39499
|
customSuffix: "",
|
|
39490
39500
|
locale: ((K = s == null ? void 0 : s.numberAxisFormat) == null ? void 0 : K.locale) || "",
|
|
@@ -39498,7 +39508,7 @@ function fH({
|
|
|
39498
39508
|
label: function(q) {
|
|
39499
39509
|
var Z, ne, ae, de;
|
|
39500
39510
|
q.dataset.label;
|
|
39501
|
-
const
|
|
39511
|
+
const j = q.dataset.data.reduce(
|
|
39502
39512
|
(ie, me) => ie + me,
|
|
39503
39513
|
0
|
|
39504
39514
|
), G = q.parsed, K = To({
|
|
@@ -39508,12 +39518,12 @@ function fH({
|
|
|
39508
39518
|
customSuffix: "",
|
|
39509
39519
|
locale: ((ae = s == null ? void 0 : s.numberAxisFormat) == null ? void 0 : ae.locale) || "",
|
|
39510
39520
|
currency: ((de = s == null ? void 0 : s.numberAxisFormat) == null ? void 0 : de.currency) || ""
|
|
39511
|
-
}), re = (G /
|
|
39521
|
+
}), re = (G / j * 100).toFixed(2);
|
|
39512
39522
|
return K + ` (${re}%)`;
|
|
39513
39523
|
},
|
|
39514
39524
|
footer: function(q) {
|
|
39515
|
-
var
|
|
39516
|
-
return (((G = (
|
|
39525
|
+
var j, G, K, re;
|
|
39526
|
+
return (((G = (j = e == null ? void 0 : e.interactionConfig) == null ? void 0 : j.drillHierarchies) == null ? void 0 : G.length) ?? 0) > 0 || (((re = (K = e == null ? void 0 : e.interactionConfig) == null ? void 0 : K.interactions) == null ? void 0 : re.some(
|
|
39517
39527
|
(Z) => Z.mode === "drillDown" || Z.mode === "drillToDetail" || Z.mode === "drillThrough" || Z.mode === "drillToURL"
|
|
39518
39528
|
)) ?? !1) ? ["─────────────────", "Click to drill"] : [];
|
|
39519
39529
|
}
|
|
@@ -39541,7 +39551,7 @@ function fH({
|
|
|
39541
39551
|
options: P,
|
|
39542
39552
|
plugins: [n === "doughnut" ? {
|
|
39543
39553
|
id: "doughnutLabel",
|
|
39544
|
-
beforeDatasetsDraw: function(q, W,
|
|
39554
|
+
beforeDatasetsDraw: function(q, W, j) {
|
|
39545
39555
|
var me, Te, le, xe;
|
|
39546
39556
|
const { ctx: G, data: K } = q;
|
|
39547
39557
|
G.save();
|
|
@@ -40313,7 +40323,7 @@ function e0(e) {
|
|
|
40313
40323
|
var O;
|
|
40314
40324
|
if (hSe(e))
|
|
40315
40325
|
return;
|
|
40316
|
-
let
|
|
40326
|
+
let H = !1;
|
|
40317
40327
|
if (!(g != null && g.records)) return;
|
|
40318
40328
|
const L = eSe({
|
|
40319
40329
|
card: e,
|
|
@@ -40327,7 +40337,7 @@ function e0(e) {
|
|
|
40327
40337
|
const U = e.id;
|
|
40328
40338
|
p(U), m(e);
|
|
40329
40339
|
} else {
|
|
40330
|
-
if (
|
|
40340
|
+
if (H = !0, !L) return;
|
|
40331
40341
|
const U = [];
|
|
40332
40342
|
L.forEach((V, P) => {
|
|
40333
40343
|
const Y = u == null ? void 0 : u.find((q) => q.columnIndex === P);
|
|
@@ -40355,7 +40365,7 @@ function e0(e) {
|
|
|
40355
40365
|
datasetIndex: A,
|
|
40356
40366
|
cardType: e.type,
|
|
40357
40367
|
cfg: E,
|
|
40358
|
-
apply:
|
|
40368
|
+
apply: H
|
|
40359
40369
|
});
|
|
40360
40370
|
}
|
|
40361
40371
|
}
|
|
@@ -42097,16 +42107,16 @@ function YSe({
|
|
|
42097
42107
|
y.setCurrentMode("specificOrgUsers");
|
|
42098
42108
|
else if (B === "all_users") {
|
|
42099
42109
|
y.setCurrentMode("allOrgUsers");
|
|
42100
|
-
const
|
|
42101
|
-
|
|
42110
|
+
const j = (W = (q = k == null ? void 0 : k.shares) == null ? void 0 : q.orgUsersOnly) == null ? void 0 : W[0];
|
|
42111
|
+
j && j.role !== void 0 && y.setOrgWideRole(j.role);
|
|
42102
42112
|
}
|
|
42103
42113
|
}, E = C.filter(
|
|
42104
42114
|
(Y) => Y.name.toLowerCase().includes(c.toLowerCase()) || Y.email.toLowerCase().includes(c.toLowerCase())
|
|
42105
42115
|
), M = C.filter(
|
|
42106
42116
|
(Y) => h.some((B) => B.id === Y.id)
|
|
42107
42117
|
), R = (Y) => {
|
|
42108
|
-
var
|
|
42109
|
-
const B = h.some((K) => K.id === Y), q = p.includes(Y), W = (G = (
|
|
42118
|
+
var j, G;
|
|
42119
|
+
const B = h.some((K) => K.id === Y), q = p.includes(Y), W = (G = (j = k == null ? void 0 : k.shares) == null ? void 0 : j.specificOrgUsers) == null ? void 0 : G.some(
|
|
42110
42120
|
(K) => K.orgUserId === Y
|
|
42111
42121
|
);
|
|
42112
42122
|
B ? y.removeSelectedUser(Y) : q ? y.removeUserFromRemove(Y) : W || y.addSelectedUser({ id: Y, role: "VIEWER" });
|
|
@@ -42120,7 +42130,7 @@ function YSe({
|
|
|
42120
42130
|
y.removeUserFromUpdate(Y);
|
|
42121
42131
|
}, $ = (Y, B) => {
|
|
42122
42132
|
y.setOrgWideRole(B);
|
|
42123
|
-
},
|
|
42133
|
+
}, H = () => {
|
|
42124
42134
|
y.setOrgWideRole((L == null ? void 0 : L.role) || "NONE");
|
|
42125
42135
|
}, L = (P = (V = k == null ? void 0 : k.shares) == null ? void 0 : V.orgUsersOnly) == null ? void 0 : P[0];
|
|
42126
42136
|
Q.useEffect(() => {
|
|
@@ -42214,7 +42224,7 @@ function YSe({
|
|
|
42214
42224
|
isUpdating: i,
|
|
42215
42225
|
isRemoving: a,
|
|
42216
42226
|
onUpdateAccess: $,
|
|
42217
|
-
onRemoveAccess:
|
|
42227
|
+
onRemoveAccess: H,
|
|
42218
42228
|
allUsersToUpdate: g === "allOrgUsers" && b !== ((L == null ? void 0 : L.role) || "NONE") ? {
|
|
42219
42229
|
currentRole: (L == null ? void 0 : L.role) || "NONE",
|
|
42220
42230
|
newRole: b
|
|
@@ -42589,8 +42599,8 @@ var nCe = [" ", "Enter", "ArrowUp", "ArrowDown"], rCe = [" ", "Enter"], o0 = "Se
|
|
|
42589
42599
|
}, []),
|
|
42590
42600
|
onNativeOptionRemove: T.useCallback((z) => {
|
|
42591
42601
|
I(($) => {
|
|
42592
|
-
const
|
|
42593
|
-
return
|
|
42602
|
+
const H = new Set($);
|
|
42603
|
+
return H.delete(z), H;
|
|
42594
42604
|
});
|
|
42595
42605
|
}, []),
|
|
42596
42606
|
children: n
|
|
@@ -42736,9 +42746,9 @@ var la = 10, [oU, Jc] = Op(Fd), uCe = "SelectContentImpl", iU = T.forwardRef(
|
|
|
42736
42746
|
}, [x]), f1();
|
|
42737
42747
|
const z = T.useCallback(
|
|
42738
42748
|
(W) => {
|
|
42739
|
-
const [
|
|
42749
|
+
const [j, ...G] = R().map((Z) => Z.ref.current), [K] = G.slice(-1), re = document.activeElement;
|
|
42740
42750
|
for (const Z of W)
|
|
42741
|
-
if (Z === re || (Z == null || Z.scrollIntoView({ block: "nearest" }), Z ===
|
|
42751
|
+
if (Z === re || (Z == null || Z.scrollIntoView({ block: "nearest" }), Z === j && N && (N.scrollTop = 0), Z === K && N && (N.scrollTop = N.scrollHeight), Z == null || Z.focus(), document.activeElement !== re)) return;
|
|
42742
42752
|
},
|
|
42743
42753
|
[R, N]
|
|
42744
42754
|
), $ = T.useCallback(
|
|
@@ -42748,42 +42758,42 @@ var la = 10, [oU, Jc] = Op(Fd), uCe = "SelectContentImpl", iU = T.forwardRef(
|
|
|
42748
42758
|
T.useEffect(() => {
|
|
42749
42759
|
F && $();
|
|
42750
42760
|
}, [F, $]);
|
|
42751
|
-
const { onOpenChange:
|
|
42761
|
+
const { onOpenChange: H, triggerPointerDownPosRef: L } = v;
|
|
42752
42762
|
T.useEffect(() => {
|
|
42753
42763
|
if (x) {
|
|
42754
42764
|
let W = { x: 0, y: 0 };
|
|
42755
|
-
const
|
|
42765
|
+
const j = (K) => {
|
|
42756
42766
|
var re, Z;
|
|
42757
42767
|
W = {
|
|
42758
42768
|
x: Math.abs(Math.round(K.pageX) - (((re = L.current) == null ? void 0 : re.x) ?? 0)),
|
|
42759
42769
|
y: Math.abs(Math.round(K.pageY) - (((Z = L.current) == null ? void 0 : Z.y) ?? 0))
|
|
42760
42770
|
};
|
|
42761
42771
|
}, G = (K) => {
|
|
42762
|
-
W.x <= 10 && W.y <= 10 ? K.preventDefault() : x.contains(K.target) ||
|
|
42772
|
+
W.x <= 10 && W.y <= 10 ? K.preventDefault() : x.contains(K.target) || H(!1), document.removeEventListener("pointermove", j), L.current = null;
|
|
42763
42773
|
};
|
|
42764
|
-
return L.current !== null && (document.addEventListener("pointermove",
|
|
42765
|
-
document.removeEventListener("pointermove",
|
|
42774
|
+
return L.current !== null && (document.addEventListener("pointermove", j), document.addEventListener("pointerup", G, { capture: !0, once: !0 })), () => {
|
|
42775
|
+
document.removeEventListener("pointermove", j), document.removeEventListener("pointerup", G, { capture: !0 });
|
|
42766
42776
|
};
|
|
42767
42777
|
}
|
|
42768
|
-
}, [x,
|
|
42769
|
-
const W = () =>
|
|
42778
|
+
}, [x, H, L]), T.useEffect(() => {
|
|
42779
|
+
const W = () => H(!1);
|
|
42770
42780
|
return window.addEventListener("blur", W), window.addEventListener("resize", W), () => {
|
|
42771
42781
|
window.removeEventListener("blur", W), window.removeEventListener("resize", W);
|
|
42772
42782
|
};
|
|
42773
|
-
}, [
|
|
42783
|
+
}, [H]);
|
|
42774
42784
|
const [O, U] = CU((W) => {
|
|
42775
|
-
const
|
|
42785
|
+
const j = R().filter((re) => !re.disabled), G = j.find((re) => re.ref.current === document.activeElement), K = NU(j, W, G);
|
|
42776
42786
|
K && setTimeout(() => K.ref.current.focus());
|
|
42777
42787
|
}), V = T.useCallback(
|
|
42778
|
-
(W,
|
|
42788
|
+
(W, j, G) => {
|
|
42779
42789
|
const K = !A.current && !G;
|
|
42780
|
-
(v.value !== void 0 && v.value ===
|
|
42790
|
+
(v.value !== void 0 && v.value === j || K) && (_(W), K && (A.current = !0));
|
|
42781
42791
|
},
|
|
42782
42792
|
[v.value]
|
|
42783
42793
|
), P = T.useCallback(() => x == null ? void 0 : x.focus(), [x]), Y = T.useCallback(
|
|
42784
|
-
(W,
|
|
42794
|
+
(W, j, G) => {
|
|
42785
42795
|
const K = !A.current && !G;
|
|
42786
|
-
(v.value !== void 0 && v.value ===
|
|
42796
|
+
(v.value !== void 0 && v.value === j || K) && M(W);
|
|
42787
42797
|
},
|
|
42788
42798
|
[v.value]
|
|
42789
42799
|
), B = r === "popper" ? OE : aU, q = B === OE ? {
|
|
@@ -42823,8 +42833,8 @@ var la = 10, [oU, Jc] = Op(Fd), uCe = "SelectContentImpl", iU = T.forwardRef(
|
|
|
42823
42833
|
W.preventDefault();
|
|
42824
42834
|
},
|
|
42825
42835
|
onUnmountAutoFocus: Fe(o, (W) => {
|
|
42826
|
-
var
|
|
42827
|
-
(
|
|
42836
|
+
var j;
|
|
42837
|
+
(j = v.trigger) == null || j.focus({ preventScroll: !0 }), W.preventDefault();
|
|
42828
42838
|
}),
|
|
42829
42839
|
children: /* @__PURE__ */ f(
|
|
42830
42840
|
ef,
|
|
@@ -42856,8 +42866,8 @@ var la = 10, [oU, Jc] = Op(Fd), uCe = "SelectContentImpl", iU = T.forwardRef(
|
|
|
42856
42866
|
...y.style
|
|
42857
42867
|
},
|
|
42858
42868
|
onKeyDown: Fe(y.onKeyDown, (W) => {
|
|
42859
|
-
const
|
|
42860
|
-
if (W.key === "Tab" && W.preventDefault(), !
|
|
42869
|
+
const j = W.ctrlKey || W.altKey || W.metaKey;
|
|
42870
|
+
if (W.key === "Tab" && W.preventDefault(), !j && W.key.length === 1 && U(W.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(W.key)) {
|
|
42861
42871
|
let K = R().filter((re) => !re.disabled).map((re) => re.ref.current);
|
|
42862
42872
|
if (["ArrowUp", "End"].includes(W.key) && (K = K.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(W.key)) {
|
|
42863
42873
|
const re = W.target, Z = K.indexOf(re);
|
|
@@ -42899,15 +42909,15 @@ var dCe = "SelectItemAlignedPosition", aU = T.forwardRef((e, t) => {
|
|
|
42899
42909
|
]);
|
|
42900
42910
|
s.style.minWidth = ae + "px", s.style.right = me + "px";
|
|
42901
42911
|
}
|
|
42902
|
-
const M = h(), R = window.innerHeight - la * 2, F = g.scrollHeight, I = window.getComputedStyle(c), A = parseInt(I.borderTopWidth, 10), z = parseInt(I.paddingTop, 10), $ = parseInt(I.borderBottomWidth, 10),
|
|
42903
|
-
if (
|
|
42912
|
+
const M = h(), R = window.innerHeight - la * 2, F = g.scrollHeight, I = window.getComputedStyle(c), A = parseInt(I.borderTopWidth, 10), z = parseInt(I.paddingTop, 10), $ = parseInt(I.borderBottomWidth, 10), H = parseInt(I.paddingBottom, 10), L = A + z + F + H + $, O = Math.min(b.offsetHeight * 5, L), U = window.getComputedStyle(g), V = parseInt(U.paddingTop, 10), P = parseInt(U.paddingBottom, 10), Y = k.top + k.height / 2 - la, B = R - Y, q = b.offsetHeight / 2, W = b.offsetTop + q, j = A + z + W, G = L - j;
|
|
42913
|
+
if (j <= Y) {
|
|
42904
42914
|
const re = M.length > 0 && b === M[M.length - 1].ref.current;
|
|
42905
42915
|
s.style.bottom = "0px";
|
|
42906
42916
|
const Z = c.clientHeight - g.offsetTop - g.offsetHeight, ne = Math.max(
|
|
42907
42917
|
B,
|
|
42908
42918
|
q + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
42909
42919
|
(re ? P : 0) + Z + $
|
|
42910
|
-
), ae =
|
|
42920
|
+
), ae = j + ne;
|
|
42911
42921
|
s.style.height = ae + "px";
|
|
42912
42922
|
} else {
|
|
42913
42923
|
const re = M.length > 0 && b === M[0].ref.current;
|
|
@@ -42917,7 +42927,7 @@ var dCe = "SelectItemAlignedPosition", aU = T.forwardRef((e, t) => {
|
|
|
42917
42927
|
A + g.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
42918
42928
|
(re ? V : 0) + q
|
|
42919
42929
|
) + G;
|
|
42920
|
-
s.style.height = ne + "px", g.scrollTop =
|
|
42930
|
+
s.style.height = ne + "px", g.scrollTop = j - Y + g.offsetTop;
|
|
42921
42931
|
}
|
|
42922
42932
|
s.style.margin = `${la}px 0`, s.style.minHeight = O + "px", s.style.maxHeight = R + "px", r == null || r(), requestAnimationFrame(() => p.current = !0);
|
|
42923
42933
|
}
|
|
@@ -43471,7 +43481,7 @@ function z5({
|
|
|
43471
43481
|
isLoadingUsers: A,
|
|
43472
43482
|
isErrorLoadingUsers: z,
|
|
43473
43483
|
isLoadingShares: $,
|
|
43474
|
-
isErrorLoadingShares:
|
|
43484
|
+
isErrorLoadingShares: H
|
|
43475
43485
|
} = ep({
|
|
43476
43486
|
debouncedSearchQuery: l,
|
|
43477
43487
|
resourceId: (e == null ? void 0 : e.id) || "",
|
|
@@ -43499,7 +43509,7 @@ function z5({
|
|
|
43499
43509
|
_ === "all_tenant_users" ? w.setTenantWideRole(Ee) : _ === "all_tenants" && w.setAllTenantsRole(Ee);
|
|
43500
43510
|
}, q = () => {
|
|
43501
43511
|
_ === "all_tenant_users" ? w.setTenantWideRole("VIEWER") : _ === "all_tenants" && w.setAllTenantsRole("VIEWER");
|
|
43502
|
-
},
|
|
43512
|
+
}, j = (() => {
|
|
43503
43513
|
var fe, Ee, De, it;
|
|
43504
43514
|
return b === "allTenants" ? (Ee = (fe = I == null ? void 0 : I.shares) == null ? void 0 : fe.allTenantsOnly) == null ? void 0 : Ee[0] : b === "allTenantUsers" ? (it = (De = I == null ? void 0 : I.shares) == null ? void 0 : De.tenantWide) == null ? void 0 : it[0] : null;
|
|
43505
43515
|
})();
|
|
@@ -43537,7 +43547,7 @@ function z5({
|
|
|
43537
43547
|
return (tt == null ? void 0 : tt.type) === "TENANT_GROUP";
|
|
43538
43548
|
}
|
|
43539
43549
|
);
|
|
43540
|
-
}, [I, k]), me = A || $ || _ === "groups" && D, Te = z ||
|
|
43550
|
+
}, [I, k]), me = A || $ || _ === "groups" && D, Te = z || H, le = () => (n == null ? void 0 : n.type) === "tenant" || _ === "all_tenants" || _ === "groups" ? !0 : x && (_ === "specific_tenant_users" || _ === "all_tenant_users");
|
|
43541
43551
|
return /* @__PURE__ */ S(Ie, { children: [
|
|
43542
43552
|
Te && /* @__PURE__ */ f("div", { className: "flex items-center justify-center py-8", children: /* @__PURE__ */ S("div", { className: "text-center", children: [
|
|
43543
43553
|
/* @__PURE__ */ f(Ph, { className: "mx-auto mb-2 h-8 w-8 text-destructive" }),
|
|
@@ -43727,17 +43737,17 @@ function z5({
|
|
|
43727
43737
|
HH,
|
|
43728
43738
|
{
|
|
43729
43739
|
currentUser: n,
|
|
43730
|
-
currentShare:
|
|
43740
|
+
currentShare: j,
|
|
43731
43741
|
isSharing: o,
|
|
43732
43742
|
isUpdating: i,
|
|
43733
43743
|
isRemoving: a,
|
|
43734
43744
|
onUpdateAccess: B,
|
|
43735
43745
|
onRemoveAccess: q,
|
|
43736
|
-
allUsersToUpdate: b === "allTenantUsers" && ((
|
|
43737
|
-
currentRole: (
|
|
43746
|
+
allUsersToUpdate: b === "allTenantUsers" && ((j == null ? void 0 : j.role) === void 0 || y !== j.role) || b === "allTenants" && ((j == null ? void 0 : j.role) === void 0 || v !== j.role) ? {
|
|
43747
|
+
currentRole: (j == null ? void 0 : j.role) || "VIEWER",
|
|
43738
43748
|
newRole: b === "allTenantUsers" ? y : v
|
|
43739
43749
|
} : null,
|
|
43740
|
-
allUsersToRemove: b === "allTenantUsers" && (
|
|
43750
|
+
allUsersToRemove: b === "allTenantUsers" && (j == null ? void 0 : j.role) === void 0 || b === "allTenants" && (j == null ? void 0 : j.role) === void 0
|
|
43741
43751
|
}
|
|
43742
43752
|
) }) : null }) : (
|
|
43743
43753
|
/* Show message for org users when no tenant is selected */
|
|
@@ -43771,28 +43781,28 @@ function MCe({
|
|
|
43771
43781
|
debouncedSearchQuery: "",
|
|
43772
43782
|
resourceId: (e == null ? void 0 : e.id) || "",
|
|
43773
43783
|
resourceType: t
|
|
43774
|
-
}), D = N.filter((
|
|
43784
|
+
}), D = N.filter((H) => p === "org_groups" && H.type !== "ORG_GROUP" || p === "tenant_groups" && H.type !== "TENANT_GROUP" || p === "tenant_groups" && (n == null ? void 0 : n.type) === "organization" && (!g || H.tenantId && H.tenantId !== g) ? !1 : H.name.toLowerCase().includes(s.toLowerCase()) || H.description && H.description.toLowerCase().includes(s.toLowerCase())), _ = ((z = k == null ? void 0 : k.shares) == null ? void 0 : z.specificGroups) || (($ = k == null ? void 0 : k.shares) == null ? void 0 : $.groups) || [];
|
|
43775
43785
|
Q.useEffect(() => {
|
|
43776
43786
|
h.setCurrentContext("group-share"), h.setCurrentMode("specificGroups");
|
|
43777
43787
|
}, [h]);
|
|
43778
|
-
const E = (
|
|
43779
|
-
const L =
|
|
43788
|
+
const E = (H) => {
|
|
43789
|
+
const L = H;
|
|
43780
43790
|
m(L), L === "org_groups" && b(""), r == null || r(
|
|
43781
43791
|
L === "org_groups" ? "specific_groups" : "all_groups"
|
|
43782
43792
|
), h.setCurrentContext("group-share"), h.setCurrentMode("specificGroups");
|
|
43783
43793
|
}, M = N.filter(
|
|
43784
|
-
(
|
|
43785
|
-
), R = (
|
|
43786
|
-
const L = c.some((V) => V.id ===
|
|
43787
|
-
(V) => V.groupId ===
|
|
43794
|
+
(H) => c.some((L) => L.id === H.id)
|
|
43795
|
+
), R = (H) => {
|
|
43796
|
+
const L = c.some((V) => V.id === H), O = u.includes(H), U = _ == null ? void 0 : _.some(
|
|
43797
|
+
(V) => V.groupId === H
|
|
43788
43798
|
);
|
|
43789
|
-
L ? h.removeSelectedGroup(
|
|
43790
|
-
}, F = (
|
|
43791
|
-
h.updateSelectedGroupRole(
|
|
43792
|
-
}, I = (
|
|
43793
|
-
h.addGroupToRemove(
|
|
43794
|
-
}, A = (
|
|
43795
|
-
h.addGroupToUpdate({ id:
|
|
43799
|
+
L ? h.removeSelectedGroup(H) : O ? h.removeGroupFromRemove(H) : U || h.addSelectedGroup({ id: H, role: "VIEWER" });
|
|
43800
|
+
}, F = (H, L) => {
|
|
43801
|
+
h.updateSelectedGroupRole(H, L);
|
|
43802
|
+
}, I = (H) => {
|
|
43803
|
+
h.addGroupToRemove(H), h.removeSelectedGroup(H);
|
|
43804
|
+
}, A = (H, L, O) => {
|
|
43805
|
+
h.addGroupToUpdate({ id: H, currentRole: L, newRole: O });
|
|
43796
43806
|
};
|
|
43797
43807
|
return n ? /* @__PURE__ */ S(Ie, { children: [
|
|
43798
43808
|
/* @__PURE__ */ f(
|
|
@@ -43832,14 +43842,14 @@ function MCe({
|
|
|
43832
43842
|
placeholder: v ? "Loading tenants..." : "Select a tenant to view its groups"
|
|
43833
43843
|
}
|
|
43834
43844
|
) }),
|
|
43835
|
-
/* @__PURE__ */ f(ct, { className: "z-[51]", children: x.map((
|
|
43845
|
+
/* @__PURE__ */ f(ct, { className: "z-[51]", children: x.map((H) => /* @__PURE__ */ f(
|
|
43836
43846
|
we,
|
|
43837
43847
|
{
|
|
43838
43848
|
className: "hover:bg-muted",
|
|
43839
|
-
value:
|
|
43840
|
-
children:
|
|
43849
|
+
value: H.id,
|
|
43850
|
+
children: H.name
|
|
43841
43851
|
},
|
|
43842
|
-
|
|
43852
|
+
H.id
|
|
43843
43853
|
)) })
|
|
43844
43854
|
]
|
|
43845
43855
|
}
|
|
@@ -44050,11 +44060,11 @@ function B5({
|
|
|
44050
44060
|
else {
|
|
44051
44061
|
const $ = y();
|
|
44052
44062
|
if ($ && v($)) {
|
|
44053
|
-
const
|
|
44063
|
+
const H = {
|
|
44054
44064
|
...$,
|
|
44055
44065
|
updateAccess: !0
|
|
44056
44066
|
};
|
|
44057
|
-
i(
|
|
44067
|
+
i(H);
|
|
44058
44068
|
}
|
|
44059
44069
|
}
|
|
44060
44070
|
}
|
|
@@ -44070,11 +44080,11 @@ function B5({
|
|
|
44070
44080
|
else {
|
|
44071
44081
|
const $ = y();
|
|
44072
44082
|
if ($ && v($)) {
|
|
44073
|
-
const
|
|
44083
|
+
const H = {
|
|
44074
44084
|
...$,
|
|
44075
44085
|
updateAccess: !0
|
|
44076
44086
|
};
|
|
44077
|
-
i(
|
|
44087
|
+
i(H);
|
|
44078
44088
|
}
|
|
44079
44089
|
}
|
|
44080
44090
|
}
|
|
@@ -44816,7 +44826,7 @@ function FCe({
|
|
|
44816
44826
|
onShareSuccess: r,
|
|
44817
44827
|
onRemoveSuccess: o
|
|
44818
44828
|
}) {
|
|
44819
|
-
var F, I, A, z, $,
|
|
44829
|
+
var F, I, A, z, $, H, L, O;
|
|
44820
44830
|
const { currentUser: i } = ri(), [a, s] = Q.useState("specific_users"), [l, c] = Q.useState("specific_users"), [u, d] = Q.useState("specific_groups"), h = Xc(), p = fM(), m = Zc(), g = p7(), b = m7(), { handleShareSubmit: y, handleRemoveAccess: v } = OCe(
|
|
44821
44831
|
e.id,
|
|
44822
44832
|
(U, V) => {
|
|
@@ -45008,7 +45018,7 @@ function FCe({
|
|
|
45008
45018
|
onShare: y,
|
|
45009
45019
|
onClose: n,
|
|
45010
45020
|
shareTabType: u,
|
|
45011
|
-
currentAllGroupsShare: (i == null ? void 0 : i.type) === "organization" ? (
|
|
45021
|
+
currentAllGroupsShare: (i == null ? void 0 : i.type) === "organization" ? (H = ($ = k == null ? void 0 : k.shares) == null ? void 0 : $.allOrgGroups) == null ? void 0 : H[0] : (O = (L = C == null ? void 0 : C.shares) == null ? void 0 : L.allTenantGroups) == null ? void 0 : O[0],
|
|
45012
45022
|
onRemoveAccess: v
|
|
45013
45023
|
}
|
|
45014
45024
|
)
|
|
@@ -45120,10 +45130,10 @@ function $Ce({
|
|
|
45120
45130
|
] }) }) });
|
|
45121
45131
|
}
|
|
45122
45132
|
function LCe({ onDashboardSelect: e }) {
|
|
45123
|
-
var W,
|
|
45133
|
+
var W, j;
|
|
45124
45134
|
const { authToken: t } = nt(), [n, r] = ee(!1), [o, i] = ee(!1), [a, s] = ee(null), [l, c] = ee(!1), [u, d] = ee(null), [h, p] = ee(null), [m, g] = ee(null), { data: b } = Ufe(), y = ((W = b == null ? void 0 : b.preference) == null ? void 0 : W.defaultDashboardId) || null, v = Xo(
|
|
45125
45135
|
(G) => G.actions.selectDashboard
|
|
45126
|
-
), { userContext: x } = ri(), w = ((
|
|
45136
|
+
), { userContext: x } = ri(), w = ((j = x == null ? void 0 : x.permissions) == null ? void 0 : j.canCreateDashboard) ?? !1, { onCreateSuccess: N } = Zde({ onDashboardSelect: e }), {
|
|
45127
45137
|
resources: C,
|
|
45128
45138
|
isLoading: k,
|
|
45129
45139
|
isError: D,
|
|
@@ -45144,7 +45154,7 @@ function LCe({ onDashboardSelect: e }) {
|
|
|
45144
45154
|
), {
|
|
45145
45155
|
startUpdating: z,
|
|
45146
45156
|
stopUpdating: $,
|
|
45147
|
-
isUpdating:
|
|
45157
|
+
isUpdating: H
|
|
45148
45158
|
} = Gde(), L = (G) => {
|
|
45149
45159
|
const K = C.find((re) => re.id === G);
|
|
45150
45160
|
K && (v(K), e == null || e(G));
|
|
@@ -45289,7 +45299,7 @@ function LCe({ onDashboardSelect: e }) {
|
|
|
45289
45299
|
}
|
|
45290
45300
|
});
|
|
45291
45301
|
},
|
|
45292
|
-
isSaving:
|
|
45302
|
+
isSaving: H(m.id)
|
|
45293
45303
|
}
|
|
45294
45304
|
),
|
|
45295
45305
|
/* @__PURE__ */ f(E1, { open: l, onOpenChange: c, children: /* @__PURE__ */ S(jb, { children: [
|
|
@@ -45606,43 +45616,43 @@ var BU = { exports: {} }, s0 = {}, BE = { exports: {} };
|
|
|
45606
45616
|
(function(n, r) {
|
|
45607
45617
|
r(t);
|
|
45608
45618
|
})(nl, function(n) {
|
|
45609
|
-
function r(
|
|
45619
|
+
function r(j) {
|
|
45610
45620
|
return function(K, re, Z, ne, ae, de, ie) {
|
|
45611
|
-
return
|
|
45621
|
+
return j(K, re, ie);
|
|
45612
45622
|
};
|
|
45613
45623
|
}
|
|
45614
|
-
function o(
|
|
45624
|
+
function o(j) {
|
|
45615
45625
|
return function(K, re, Z, ne) {
|
|
45616
45626
|
if (!K || !re || typeof K != "object" || typeof re != "object")
|
|
45617
|
-
return
|
|
45627
|
+
return j(K, re, Z, ne);
|
|
45618
45628
|
var ae = ne.get(K), de = ne.get(re);
|
|
45619
45629
|
if (ae && de)
|
|
45620
45630
|
return ae === re && de === K;
|
|
45621
45631
|
ne.set(K, re), ne.set(re, K);
|
|
45622
|
-
var ie =
|
|
45632
|
+
var ie = j(K, re, Z, ne);
|
|
45623
45633
|
return ne.delete(K), ne.delete(re), ie;
|
|
45624
45634
|
};
|
|
45625
45635
|
}
|
|
45626
|
-
function i(
|
|
45636
|
+
function i(j, G) {
|
|
45627
45637
|
var K = {};
|
|
45628
|
-
for (var re in
|
|
45629
|
-
K[re] =
|
|
45638
|
+
for (var re in j)
|
|
45639
|
+
K[re] = j[re];
|
|
45630
45640
|
for (var re in G)
|
|
45631
45641
|
K[re] = G[re];
|
|
45632
45642
|
return K;
|
|
45633
45643
|
}
|
|
45634
|
-
function a(
|
|
45635
|
-
return
|
|
45644
|
+
function a(j) {
|
|
45645
|
+
return j.constructor === Object || j.constructor == null;
|
|
45636
45646
|
}
|
|
45637
|
-
function s(
|
|
45638
|
-
return typeof
|
|
45647
|
+
function s(j) {
|
|
45648
|
+
return typeof j.then == "function";
|
|
45639
45649
|
}
|
|
45640
|
-
function l(
|
|
45641
|
-
return
|
|
45650
|
+
function l(j, G) {
|
|
45651
|
+
return j === G || j !== j && G !== G;
|
|
45642
45652
|
}
|
|
45643
45653
|
var c = "[object Arguments]", u = "[object Boolean]", d = "[object Date]", h = "[object RegExp]", p = "[object Map]", m = "[object Number]", g = "[object Object]", b = "[object Set]", y = "[object String]", v = Object.prototype.toString;
|
|
45644
|
-
function x(
|
|
45645
|
-
var G =
|
|
45654
|
+
function x(j) {
|
|
45655
|
+
var G = j.areArraysEqual, K = j.areDatesEqual, re = j.areMapsEqual, Z = j.areObjectsEqual, ne = j.areRegExpsEqual, ae = j.areSetsEqual, de = j.createIsNestedEqual, ie = de(me);
|
|
45646
45656
|
function me(Te, le, xe) {
|
|
45647
45657
|
if (Te === le)
|
|
45648
45658
|
return !0;
|
|
@@ -45658,67 +45668,67 @@ var BU = { exports: {} }, s0 = {}, BE = { exports: {} };
|
|
|
45658
45668
|
}
|
|
45659
45669
|
return me;
|
|
45660
45670
|
}
|
|
45661
|
-
function w(
|
|
45662
|
-
var Z =
|
|
45671
|
+
function w(j, G, K, re) {
|
|
45672
|
+
var Z = j.length;
|
|
45663
45673
|
if (G.length !== Z)
|
|
45664
45674
|
return !1;
|
|
45665
45675
|
for (; Z-- > 0; )
|
|
45666
|
-
if (!K(
|
|
45676
|
+
if (!K(j[Z], G[Z], Z, Z, j, G, re))
|
|
45667
45677
|
return !1;
|
|
45668
45678
|
return !0;
|
|
45669
45679
|
}
|
|
45670
45680
|
var N = o(w);
|
|
45671
|
-
function C(
|
|
45672
|
-
return l(
|
|
45681
|
+
function C(j, G) {
|
|
45682
|
+
return l(j.valueOf(), G.valueOf());
|
|
45673
45683
|
}
|
|
45674
|
-
function k(
|
|
45675
|
-
var Z =
|
|
45684
|
+
function k(j, G, K, re) {
|
|
45685
|
+
var Z = j.size === G.size;
|
|
45676
45686
|
if (!Z)
|
|
45677
45687
|
return !1;
|
|
45678
|
-
if (!
|
|
45688
|
+
if (!j.size)
|
|
45679
45689
|
return !0;
|
|
45680
45690
|
var ne = {}, ae = 0;
|
|
45681
|
-
return
|
|
45691
|
+
return j.forEach(function(de, ie) {
|
|
45682
45692
|
if (Z) {
|
|
45683
45693
|
var me = !1, Te = 0;
|
|
45684
45694
|
G.forEach(function(le, xe) {
|
|
45685
|
-
!me && !ne[Te] && (me = K(ie, xe, ae, Te,
|
|
45695
|
+
!me && !ne[Te] && (me = K(ie, xe, ae, Te, j, G, re) && K(de, le, ie, xe, j, G, re)) && (ne[Te] = !0), Te++;
|
|
45686
45696
|
}), ae++, Z = me;
|
|
45687
45697
|
}
|
|
45688
45698
|
}), Z;
|
|
45689
45699
|
}
|
|
45690
45700
|
var D = o(k), _ = "_owner", E = Object.prototype.hasOwnProperty;
|
|
45691
|
-
function M(
|
|
45692
|
-
var Z = Object.keys(
|
|
45701
|
+
function M(j, G, K, re) {
|
|
45702
|
+
var Z = Object.keys(j), ne = Z.length;
|
|
45693
45703
|
if (Object.keys(G).length !== ne)
|
|
45694
45704
|
return !1;
|
|
45695
45705
|
for (var ae; ne-- > 0; ) {
|
|
45696
45706
|
if (ae = Z[ne], ae === _) {
|
|
45697
|
-
var de = !!
|
|
45707
|
+
var de = !!j.$$typeof, ie = !!G.$$typeof;
|
|
45698
45708
|
if ((de || ie) && de !== ie)
|
|
45699
45709
|
return !1;
|
|
45700
45710
|
}
|
|
45701
|
-
if (!E.call(G, ae) || !K(
|
|
45711
|
+
if (!E.call(G, ae) || !K(j[ae], G[ae], ae, ae, j, G, re))
|
|
45702
45712
|
return !1;
|
|
45703
45713
|
}
|
|
45704
45714
|
return !0;
|
|
45705
45715
|
}
|
|
45706
45716
|
var R = o(M);
|
|
45707
|
-
function F(
|
|
45708
|
-
return
|
|
45717
|
+
function F(j, G) {
|
|
45718
|
+
return j.source === G.source && j.flags === G.flags;
|
|
45709
45719
|
}
|
|
45710
|
-
function I(
|
|
45711
|
-
var Z =
|
|
45720
|
+
function I(j, G, K, re) {
|
|
45721
|
+
var Z = j.size === G.size;
|
|
45712
45722
|
if (!Z)
|
|
45713
45723
|
return !1;
|
|
45714
|
-
if (!
|
|
45724
|
+
if (!j.size)
|
|
45715
45725
|
return !0;
|
|
45716
45726
|
var ne = {};
|
|
45717
|
-
return
|
|
45727
|
+
return j.forEach(function(ae, de) {
|
|
45718
45728
|
if (Z) {
|
|
45719
45729
|
var ie = !1, me = 0;
|
|
45720
45730
|
G.forEach(function(Te, le) {
|
|
45721
|
-
!ie && !ne[me] && (ie = K(ae, Te, de, le,
|
|
45731
|
+
!ie && !ne[me] && (ie = K(ae, Te, de, le, j, G, re)) && (ne[me] = !0), me++;
|
|
45722
45732
|
}), Z = ie;
|
|
45723
45733
|
}
|
|
45724
45734
|
}), Z;
|
|
@@ -45739,33 +45749,33 @@ var BU = { exports: {} }, s0 = {}, BE = { exports: {} };
|
|
|
45739
45749
|
areRegExpsEqual: F,
|
|
45740
45750
|
areSetsEqual: A,
|
|
45741
45751
|
createIsNestedEqual: r
|
|
45742
|
-
}),
|
|
45743
|
-
function L(
|
|
45744
|
-
return j
|
|
45752
|
+
}), H = x(z);
|
|
45753
|
+
function L(j, G) {
|
|
45754
|
+
return H(j, G, void 0);
|
|
45745
45755
|
}
|
|
45746
45756
|
var O = x(i(z, { createIsNestedEqual: function() {
|
|
45747
45757
|
return l;
|
|
45748
45758
|
} }));
|
|
45749
|
-
function U(
|
|
45750
|
-
return O(
|
|
45759
|
+
function U(j, G) {
|
|
45760
|
+
return O(j, G, void 0);
|
|
45751
45761
|
}
|
|
45752
45762
|
var V = x($);
|
|
45753
|
-
function P(
|
|
45754
|
-
return V(
|
|
45763
|
+
function P(j, G) {
|
|
45764
|
+
return V(j, G, /* @__PURE__ */ new WeakMap());
|
|
45755
45765
|
}
|
|
45756
45766
|
var Y = x(i($, {
|
|
45757
45767
|
createIsNestedEqual: function() {
|
|
45758
45768
|
return l;
|
|
45759
45769
|
}
|
|
45760
45770
|
}));
|
|
45761
|
-
function B(
|
|
45762
|
-
return Y(
|
|
45771
|
+
function B(j, G) {
|
|
45772
|
+
return Y(j, G, /* @__PURE__ */ new WeakMap());
|
|
45763
45773
|
}
|
|
45764
|
-
function q(
|
|
45765
|
-
return x(i(z,
|
|
45774
|
+
function q(j) {
|
|
45775
|
+
return x(i(z, j(z)));
|
|
45766
45776
|
}
|
|
45767
|
-
function W(
|
|
45768
|
-
var G = x(i($,
|
|
45777
|
+
function W(j) {
|
|
45778
|
+
var G = x(i($, j($)));
|
|
45769
45779
|
return function(K, re, Z) {
|
|
45770
45780
|
return Z === void 0 && (Z = /* @__PURE__ */ new WeakMap()), G(K, re, Z);
|
|
45771
45781
|
};
|
|
@@ -46331,9 +46341,9 @@ function gNe() {
|
|
|
46331
46341
|
}
|
|
46332
46342
|
}
|
|
46333
46343
|
}
|
|
46334
|
-
var N = l, C = c, k = s, D = a, _ = t, E = u, M = r, R = m, F = p, I = n, A = i, z = o, $ = d,
|
|
46344
|
+
var N = l, C = c, k = s, D = a, _ = t, E = u, M = r, R = m, F = p, I = n, A = i, z = o, $ = d, H = !1;
|
|
46335
46345
|
function L(Z) {
|
|
46336
|
-
return
|
|
46346
|
+
return H || (H = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), O(Z) || w(Z) === l;
|
|
46337
46347
|
}
|
|
46338
46348
|
function O(Z) {
|
|
46339
46349
|
return w(Z) === c;
|
|
@@ -46359,7 +46369,7 @@ function gNe() {
|
|
|
46359
46369
|
function W(Z) {
|
|
46360
46370
|
return w(Z) === p;
|
|
46361
46371
|
}
|
|
46362
|
-
function
|
|
46372
|
+
function j(Z) {
|
|
46363
46373
|
return w(Z) === n;
|
|
46364
46374
|
}
|
|
46365
46375
|
function G(Z) {
|
|
@@ -46371,7 +46381,7 @@ function gNe() {
|
|
|
46371
46381
|
function re(Z) {
|
|
46372
46382
|
return w(Z) === d;
|
|
46373
46383
|
}
|
|
46374
|
-
hn.AsyncMode = N, hn.ConcurrentMode = C, hn.ContextConsumer = k, hn.ContextProvider = D, hn.Element = _, hn.ForwardRef = E, hn.Fragment = M, hn.Lazy = R, hn.Memo = F, hn.Portal = I, hn.Profiler = A, hn.StrictMode = z, hn.Suspense = $, hn.isAsyncMode = L, hn.isConcurrentMode = O, hn.isContextConsumer = U, hn.isContextProvider = V, hn.isElement = P, hn.isForwardRef = Y, hn.isFragment = B, hn.isLazy = q, hn.isMemo = W, hn.isPortal =
|
|
46384
|
+
hn.AsyncMode = N, hn.ConcurrentMode = C, hn.ContextConsumer = k, hn.ContextProvider = D, hn.Element = _, hn.ForwardRef = E, hn.Fragment = M, hn.Lazy = R, hn.Memo = F, hn.Portal = I, hn.Profiler = A, hn.StrictMode = z, hn.Suspense = $, hn.isAsyncMode = L, hn.isConcurrentMode = O, hn.isContextConsumer = U, hn.isContextProvider = V, hn.isElement = P, hn.isForwardRef = Y, hn.isFragment = B, hn.isLazy = q, hn.isMemo = W, hn.isPortal = j, hn.isProfiler = G, hn.isStrictMode = K, hn.isSuspense = re, hn.isValidElementType = x, hn.typeOf = w;
|
|
46375
46385
|
}()), hn;
|
|
46376
46386
|
}
|
|
46377
46387
|
var W5;
|
|
@@ -46544,31 +46554,31 @@ function vNe() {
|
|
|
46544
46554
|
function b(O) {
|
|
46545
46555
|
if (process.env.NODE_ENV !== "production")
|
|
46546
46556
|
var U = {}, V = 0;
|
|
46547
|
-
function P(B, q, W,
|
|
46548
|
-
if (
|
|
46557
|
+
function P(B, q, W, j, G, K, re) {
|
|
46558
|
+
if (j = j || h, K = K || W, re !== n) {
|
|
46549
46559
|
if (l) {
|
|
46550
46560
|
var Z = new Error(
|
|
46551
46561
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
46552
46562
|
);
|
|
46553
46563
|
throw Z.name = "Invariant Violation", Z;
|
|
46554
46564
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
46555
|
-
var ne =
|
|
46565
|
+
var ne = j + ":" + W;
|
|
46556
46566
|
!U[ne] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
46557
46567
|
V < 3 && (i(
|
|
46558
|
-
"You are manually calling a React.PropTypes validation function for the `" + K + "` prop on `" +
|
|
46568
|
+
"You are manually calling a React.PropTypes validation function for the `" + K + "` prop on `" + j + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
46559
46569
|
), U[ne] = !0, V++);
|
|
46560
46570
|
}
|
|
46561
46571
|
}
|
|
46562
|
-
return q[W] == null ? B ? q[W] === null ? new g("The " + G + " `" + K + "` is marked as required " + ("in `" +
|
|
46572
|
+
return q[W] == null ? B ? q[W] === null ? new g("The " + G + " `" + K + "` is marked as required " + ("in `" + j + "`, but its value is `null`.")) : new g("The " + G + " `" + K + "` is marked as required in " + ("`" + j + "`, but its value is `undefined`.")) : null : O(q, W, j, G, K);
|
|
46563
46573
|
}
|
|
46564
46574
|
var Y = P.bind(null, !1);
|
|
46565
46575
|
return Y.isRequired = P.bind(null, !0), Y;
|
|
46566
46576
|
}
|
|
46567
46577
|
function y(O) {
|
|
46568
46578
|
function U(V, P, Y, B, q, W) {
|
|
46569
|
-
var
|
|
46579
|
+
var j = V[P], G = z(j);
|
|
46570
46580
|
if (G !== O) {
|
|
46571
|
-
var K = $(
|
|
46581
|
+
var K = $(j);
|
|
46572
46582
|
return new g(
|
|
46573
46583
|
"Invalid " + B + " `" + q + "` of type " + ("`" + K + "` supplied to `" + Y + "`, expected ") + ("`" + O + "`."),
|
|
46574
46584
|
{ expectedType: O }
|
|
@@ -46587,8 +46597,8 @@ function vNe() {
|
|
|
46587
46597
|
return new g("Property `" + q + "` of component `" + Y + "` has invalid PropType notation inside arrayOf.");
|
|
46588
46598
|
var W = V[P];
|
|
46589
46599
|
if (!Array.isArray(W)) {
|
|
46590
|
-
var
|
|
46591
|
-
return new g("Invalid " + B + " `" + q + "` of type " + ("`" +
|
|
46600
|
+
var j = z(W);
|
|
46601
|
+
return new g("Invalid " + B + " `" + q + "` of type " + ("`" + j + "` supplied to `" + Y + "`, expected an array."));
|
|
46592
46602
|
}
|
|
46593
46603
|
for (var G = 0; G < W.length; G++) {
|
|
46594
46604
|
var K = O(W, G, Y, B, q + "[" + G + "]", n);
|
|
@@ -46624,8 +46634,8 @@ function vNe() {
|
|
|
46624
46634
|
function C(O) {
|
|
46625
46635
|
function U(V, P, Y, B, q) {
|
|
46626
46636
|
if (!(V[P] instanceof O)) {
|
|
46627
|
-
var W = O.name || h,
|
|
46628
|
-
return new g("Invalid " + B + " `" + q + "` of type " + ("`" +
|
|
46637
|
+
var W = O.name || h, j = L(V[P]);
|
|
46638
|
+
return new g("Invalid " + B + " `" + q + "` of type " + ("`" + j + "` supplied to `" + Y + "`, expected ") + ("instance of `" + W + "`."));
|
|
46629
46639
|
}
|
|
46630
46640
|
return null;
|
|
46631
46641
|
}
|
|
@@ -46637,8 +46647,8 @@ function vNe() {
|
|
|
46637
46647
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
46638
46648
|
) : i("Invalid argument supplied to oneOf, expected an array.")), a;
|
|
46639
46649
|
function U(V, P, Y, B, q) {
|
|
46640
|
-
for (var W = V[P],
|
|
46641
|
-
if (m(W, O[
|
|
46650
|
+
for (var W = V[P], j = 0; j < O.length; j++)
|
|
46651
|
+
if (m(W, O[j]))
|
|
46642
46652
|
return null;
|
|
46643
46653
|
var G = JSON.stringify(O, function(re, Z) {
|
|
46644
46654
|
var ne = $(Z);
|
|
@@ -46652,9 +46662,9 @@ function vNe() {
|
|
|
46652
46662
|
function U(V, P, Y, B, q) {
|
|
46653
46663
|
if (typeof O != "function")
|
|
46654
46664
|
return new g("Property `" + q + "` of component `" + Y + "` has invalid PropType notation inside objectOf.");
|
|
46655
|
-
var W = V[P],
|
|
46656
|
-
if (
|
|
46657
|
-
return new g("Invalid " + B + " `" + q + "` of type " + ("`" +
|
|
46665
|
+
var W = V[P], j = z(W);
|
|
46666
|
+
if (j !== "object")
|
|
46667
|
+
return new g("Invalid " + B + " `" + q + "` of type " + ("`" + j + "` supplied to `" + Y + "`, expected an object."));
|
|
46658
46668
|
for (var G in W)
|
|
46659
46669
|
if (r(W, G)) {
|
|
46660
46670
|
var K = O(W, G, Y, B, q + "." + G, n);
|
|
@@ -46672,18 +46682,18 @@ function vNe() {
|
|
|
46672
46682
|
var V = O[U];
|
|
46673
46683
|
if (typeof V != "function")
|
|
46674
46684
|
return i(
|
|
46675
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
46685
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + H(V) + " at index " + U + "."
|
|
46676
46686
|
), a;
|
|
46677
46687
|
}
|
|
46678
|
-
function P(Y, B, q, W,
|
|
46688
|
+
function P(Y, B, q, W, j) {
|
|
46679
46689
|
for (var G = [], K = 0; K < O.length; K++) {
|
|
46680
|
-
var re = O[K], Z = re(Y, B, q, W,
|
|
46690
|
+
var re = O[K], Z = re(Y, B, q, W, j, n);
|
|
46681
46691
|
if (Z == null)
|
|
46682
46692
|
return null;
|
|
46683
46693
|
Z.data && r(Z.data, "expectedType") && G.push(Z.data.expectedType);
|
|
46684
46694
|
}
|
|
46685
46695
|
var ne = G.length > 0 ? ", expected one of type [" + G.join(", ") + "]" : "";
|
|
46686
|
-
return new g("Invalid " + W + " `" +
|
|
46696
|
+
return new g("Invalid " + W + " `" + j + "` supplied to " + ("`" + q + "`" + ne + "."));
|
|
46687
46697
|
}
|
|
46688
46698
|
return b(P);
|
|
46689
46699
|
}
|
|
@@ -46700,9 +46710,9 @@ function vNe() {
|
|
|
46700
46710
|
}
|
|
46701
46711
|
function R(O) {
|
|
46702
46712
|
function U(V, P, Y, B, q) {
|
|
46703
|
-
var W = V[P],
|
|
46704
|
-
if (
|
|
46705
|
-
return new g("Invalid " + B + " `" + q + "` of type `" +
|
|
46713
|
+
var W = V[P], j = z(W);
|
|
46714
|
+
if (j !== "object")
|
|
46715
|
+
return new g("Invalid " + B + " `" + q + "` of type `" + j + "` " + ("supplied to `" + Y + "`, expected `object`."));
|
|
46706
46716
|
for (var G in O) {
|
|
46707
46717
|
var K = O[G];
|
|
46708
46718
|
if (typeof K != "function")
|
|
@@ -46717,9 +46727,9 @@ function vNe() {
|
|
|
46717
46727
|
}
|
|
46718
46728
|
function F(O) {
|
|
46719
46729
|
function U(V, P, Y, B, q) {
|
|
46720
|
-
var W = V[P],
|
|
46721
|
-
if (
|
|
46722
|
-
return new g("Invalid " + B + " `" + q + "` of type `" +
|
|
46730
|
+
var W = V[P], j = z(W);
|
|
46731
|
+
if (j !== "object")
|
|
46732
|
+
return new g("Invalid " + B + " `" + q + "` of type `" + j + "` " + ("supplied to `" + Y + "`, expected `object`."));
|
|
46723
46733
|
var G = t({}, V[P], O);
|
|
46724
46734
|
for (var K in G) {
|
|
46725
46735
|
var re = O[K];
|
|
@@ -46790,7 +46800,7 @@ Valid keys: ` + JSON.stringify(Object.keys(O), null, " ")
|
|
|
46790
46800
|
}
|
|
46791
46801
|
return U;
|
|
46792
46802
|
}
|
|
46793
|
-
function
|
|
46803
|
+
function H(O) {
|
|
46794
46804
|
var U = $(O);
|
|
46795
46805
|
switch (U) {
|
|
46796
46806
|
case "array":
|
|
@@ -47677,11 +47687,11 @@ So(Q1, "defaultProps", {
|
|
|
47677
47687
|
...F
|
|
47678
47688
|
} = this.props;
|
|
47679
47689
|
let I = {}, A = null;
|
|
47680
|
-
const $ = !!!E || this.state.dragging,
|
|
47690
|
+
const $ = !!!E || this.state.dragging, H = E || C, L = {
|
|
47681
47691
|
// Set left if horizontal drag is enabled
|
|
47682
|
-
x: (0, a.canDragX)(this) && $ ? this.state.x :
|
|
47692
|
+
x: (0, a.canDragX)(this) && $ ? this.state.x : H.x,
|
|
47683
47693
|
// Set top if vertical drag is enabled
|
|
47684
|
-
y: (0, a.canDragY)(this) && $ ? this.state.y :
|
|
47694
|
+
y: (0, a.canDragY)(this) && $ ? this.state.y : H.y
|
|
47685
47695
|
};
|
|
47686
47696
|
this.state.isElementSVG ? A = (0, i.createSVGTransform)(L, M) : I = (0, i.createCSSTransform)(L, M);
|
|
47687
47697
|
const O = (0, o.default)(N.props.className || "", k, {
|
|
@@ -51548,8 +51558,8 @@ function hEe(e, t = {}, n) {
|
|
|
51548
51558
|
$ = !0;
|
|
51549
51559
|
else {
|
|
51550
51560
|
$ = F.fieldValues[A] !== I.fieldValues[A];
|
|
51551
|
-
for (let
|
|
51552
|
-
F.fieldValues[
|
|
51561
|
+
for (let H = 0; H < A && !$; H++)
|
|
51562
|
+
F.fieldValues[H] !== I.fieldValues[H] && ($ = !0);
|
|
51553
51563
|
}
|
|
51554
51564
|
$ && g.filter((L) => {
|
|
51555
51565
|
const O = z.alias || z.name;
|
|
@@ -51628,7 +51638,7 @@ function hEe(e, t = {}, n) {
|
|
|
51628
51638
|
E[I] || (E[I] = {}), h.forEach((A) => {
|
|
51629
51639
|
if (!(A in R)) return;
|
|
51630
51640
|
const z = R[A], $ = o.find(
|
|
51631
|
-
(
|
|
51641
|
+
(H) => H.isMetricColumn && A.startsWith(H.alias)
|
|
51632
51642
|
);
|
|
51633
51643
|
E[I][A] = {
|
|
51634
51644
|
value: z,
|
|
@@ -51641,10 +51651,10 @@ function hEe(e, t = {}, n) {
|
|
|
51641
51651
|
const M = [];
|
|
51642
51652
|
return m.forEach((R) => {
|
|
51643
51653
|
const F = {};
|
|
51644
|
-
h.forEach((
|
|
51645
|
-
if (
|
|
51646
|
-
const L = R[
|
|
51647
|
-
F[
|
|
51654
|
+
h.forEach((H) => {
|
|
51655
|
+
if (H in R) {
|
|
51656
|
+
const L = R[H];
|
|
51657
|
+
F[H] = {
|
|
51648
51658
|
value: L,
|
|
51649
51659
|
metricId: "",
|
|
51650
51660
|
formattedValue: AN(L, t.numberFormat)
|
|
@@ -52314,8 +52324,8 @@ function qW({
|
|
|
52314
52324
|
if (!r || !["table", "aggregateTable", "pivotTable"].includes(r.type))
|
|
52315
52325
|
return 0;
|
|
52316
52326
|
if (r.type === "pivotTable") {
|
|
52317
|
-
const
|
|
52318
|
-
return
|
|
52327
|
+
const j = Array.isArray(F == null ? void 0 : F.records) ? F == null ? void 0 : F.records : Array.isArray(F) ? F : [];
|
|
52328
|
+
return j.length > 0 ? j.length : (q = k == null ? void 0 : k.data) != null && q.rowData && k.data.rowData.length > 0 ? k.data.rowData.length : ((W = C == null ? void 0 : C.records) == null ? void 0 : W.length) || 0;
|
|
52319
52329
|
}
|
|
52320
52330
|
return (Array.isArray(F == null ? void 0 : F.records) ? F == null ? void 0 : F.records : Array.isArray(F) ? F : []).length;
|
|
52321
52331
|
})();
|
|
@@ -52343,48 +52353,48 @@ function qW({
|
|
|
52343
52353
|
card: r,
|
|
52344
52354
|
showRowTotals: (O = k.options) == null ? void 0 : O.showRowTotals
|
|
52345
52355
|
}));
|
|
52346
|
-
const
|
|
52356
|
+
const H = (r ? WW(r) : "client") === "server";
|
|
52347
52357
|
u(!0);
|
|
52348
52358
|
try {
|
|
52349
52359
|
if (p.format === "csv") {
|
|
52350
52360
|
let B = "";
|
|
52351
52361
|
const q = `${D.replace(/[^a-z0-9]/gi, "_")}.csv`, W = (r == null ? void 0 : r.type) && ["table", "aggregateTable", "pivotTable"].includes(r.type);
|
|
52352
|
-
if (r.type === "table" &&
|
|
52362
|
+
if (r.type === "table" && H)
|
|
52353
52363
|
try {
|
|
52354
|
-
const
|
|
52364
|
+
const j = await wEe({
|
|
52355
52365
|
apiServiceUrl: a.apiServiceUrl,
|
|
52356
52366
|
authToken: (i == null ? void 0 : i.accessToken) || "",
|
|
52357
52367
|
card: r,
|
|
52358
52368
|
cardFilterValues: y || [],
|
|
52359
52369
|
cardConfig: N
|
|
52360
52370
|
});
|
|
52361
|
-
|
|
52371
|
+
j.rowLimitExceeded && We.warning(
|
|
52362
52372
|
"Dataset exceeds 10,000 rows. Exporting first 10,000 records. Please apply filters to reduce dataset size.",
|
|
52363
52373
|
{
|
|
52364
52374
|
duration: 5e3
|
|
52365
52375
|
}
|
|
52366
52376
|
);
|
|
52367
|
-
const G =
|
|
52377
|
+
const G = j.records || [];
|
|
52368
52378
|
f4(G, q, w, {
|
|
52369
52379
|
delimiter: p.delimiter,
|
|
52370
52380
|
includeHeaders: p.includeHeaders,
|
|
52371
52381
|
useFormattedValues: !0
|
|
52372
52382
|
}), We.success("CSV exported successfully"), E();
|
|
52373
52383
|
return;
|
|
52374
|
-
} catch (
|
|
52375
|
-
We.error(`Export failed: ${
|
|
52384
|
+
} catch (j) {
|
|
52385
|
+
We.error(`Export failed: ${j.message || "Unknown error"}`), console.error("Export error:", j);
|
|
52376
52386
|
return;
|
|
52377
52387
|
}
|
|
52378
52388
|
if (W)
|
|
52379
52389
|
switch (r.type) {
|
|
52380
52390
|
case "table": {
|
|
52381
|
-
const
|
|
52382
|
-
if (!
|
|
52391
|
+
const j = Array.isArray(F) ? F : (F == null ? void 0 : F.records) || [];
|
|
52392
|
+
if (!j || j.length === 0) {
|
|
52383
52393
|
We.error("No data available to export");
|
|
52384
52394
|
return;
|
|
52385
52395
|
}
|
|
52386
52396
|
f4(
|
|
52387
|
-
|
|
52397
|
+
j,
|
|
52388
52398
|
q,
|
|
52389
52399
|
w,
|
|
52390
52400
|
{
|
|
@@ -52396,12 +52406,12 @@ function qW({
|
|
|
52396
52406
|
return;
|
|
52397
52407
|
}
|
|
52398
52408
|
case "aggregateTable": {
|
|
52399
|
-
const
|
|
52400
|
-
if (!
|
|
52409
|
+
const j = Array.isArray(F) ? F : (F == null ? void 0 : F.records) || [];
|
|
52410
|
+
if (!j || j.length === 0) {
|
|
52401
52411
|
We.error("No data available to export");
|
|
52402
52412
|
return;
|
|
52403
52413
|
}
|
|
52404
|
-
const G = (F == null ? void 0 : F.groupByColumns) || ((U = r.config) == null ? void 0 : U.groupByColumns) || [], K = (F == null ? void 0 : F.pivotSchema) || [], re = XM(
|
|
52414
|
+
const G = (F == null ? void 0 : F.groupByColumns) || ((U = r.config) == null ? void 0 : U.groupByColumns) || [], K = (F == null ? void 0 : F.pivotSchema) || [], re = XM(j, G), Z = QM(j), ne = (P = (V = r == null ? void 0 : r.preferences) == null ? void 0 : V.tablePrefs) == null ? void 0 : P.columnSettingsMap, ae = PW(
|
|
52405
52415
|
re,
|
|
52406
52416
|
Z,
|
|
52407
52417
|
G,
|
|
@@ -52439,18 +52449,18 @@ function qW({
|
|
|
52439
52449
|
throw new Error(`Unsupported table type: ${r.type}`);
|
|
52440
52450
|
}
|
|
52441
52451
|
else {
|
|
52442
|
-
const
|
|
52443
|
-
if (!
|
|
52452
|
+
const j = Array.isArray(F) ? F : (F == null ? void 0 : F.records) || [];
|
|
52453
|
+
if (!j || j.length === 0) {
|
|
52444
52454
|
We.error("No data available to export");
|
|
52445
52455
|
return;
|
|
52446
52456
|
}
|
|
52447
|
-
const G = Object.keys(
|
|
52457
|
+
const G = Object.keys(j[0]), K = (Z) => {
|
|
52448
52458
|
if (Z == null) return "";
|
|
52449
52459
|
const ne = String(Z);
|
|
52450
52460
|
return ne.includes(p.delimiter) || ne.includes('"') || ne.includes(`
|
|
52451
52461
|
`) || ne.includes("\r") ? `"${ne.replace(/"/g, '""')}"` : ne;
|
|
52452
52462
|
}, re = [];
|
|
52453
|
-
p.includeHeaders && re.push(G.map(K).join(p.delimiter)),
|
|
52463
|
+
p.includeHeaders && re.push(G.map(K).join(p.delimiter)), j.forEach((Z) => {
|
|
52454
52464
|
const ne = G.map((ae) => K(Z[ae]));
|
|
52455
52465
|
re.push(ne.join(p.delimiter));
|
|
52456
52466
|
}), B = re.join(`
|
|
@@ -52478,7 +52488,7 @@ function qW({
|
|
|
52478
52488
|
filterValues: y
|
|
52479
52489
|
};
|
|
52480
52490
|
let W = !1;
|
|
52481
|
-
r.type && ["table", "aggregateTable", "pivotTable"].includes(r.type) && A > 0 && A <= KM && !
|
|
52491
|
+
r.type && ["table", "aggregateTable", "pivotTable"].includes(r.type) && A > 0 && A <= KM && !H && !!z && (W = await Jke(
|
|
52482
52492
|
a.apiServiceUrl,
|
|
52483
52493
|
i,
|
|
52484
52494
|
r.id,
|
|
@@ -55686,10 +55696,10 @@ function mR({
|
|
|
55686
55696
|
colorRanges: [...t.colorRanges, { ...d }]
|
|
55687
55697
|
}), h(h4());
|
|
55688
55698
|
}, v = ($) => {
|
|
55689
|
-
const
|
|
55690
|
-
|
|
55699
|
+
const H = [...t.colorRanges];
|
|
55700
|
+
H.splice($, 1), n({
|
|
55691
55701
|
...t,
|
|
55692
|
-
colorRanges:
|
|
55702
|
+
colorRanges: H
|
|
55693
55703
|
});
|
|
55694
55704
|
};
|
|
55695
55705
|
return /* @__PURE__ */ f(Po, { open: a, onOpenChange: s, children: /* @__PURE__ */ S(po, { className: "max-w-2xl", children: [
|
|
@@ -55878,13 +55888,13 @@ function mR({
|
|
|
55878
55888
|
/* @__PURE__ */ S(ct, { children: [
|
|
55879
55889
|
gq.map(($) => /* @__PURE__ */ S(DCe, { children: [
|
|
55880
55890
|
/* @__PURE__ */ f(PU, { className: "bg-muted", children: $.label }),
|
|
55881
|
-
$.formats.map((
|
|
55891
|
+
$.formats.map((H) => /* @__PURE__ */ f(
|
|
55882
55892
|
we,
|
|
55883
55893
|
{
|
|
55884
|
-
value:
|
|
55885
|
-
children:
|
|
55894
|
+
value: H.value,
|
|
55895
|
+
children: H.label
|
|
55886
55896
|
},
|
|
55887
|
-
|
|
55897
|
+
H.value
|
|
55888
55898
|
))
|
|
55889
55899
|
] }, $.label)),
|
|
55890
55900
|
/* @__PURE__ */ f(we, { value: "custom", children: "Custom" })
|
|
@@ -56458,7 +56468,7 @@ function mR({
|
|
|
56458
56468
|
/* @__PURE__ */ f("div", { className: "col-span-1" })
|
|
56459
56469
|
] }),
|
|
56460
56470
|
/* @__PURE__ */ f(Ko, {}),
|
|
56461
|
-
t.colorRanges.map(($,
|
|
56471
|
+
t.colorRanges.map(($, H) => /* @__PURE__ */ S(
|
|
56462
56472
|
"div",
|
|
56463
56473
|
{
|
|
56464
56474
|
className: "grid grid-cols-12 items-center gap-2",
|
|
@@ -56470,7 +56480,7 @@ function mR({
|
|
|
56470
56480
|
value: $.min,
|
|
56471
56481
|
onChange: (L) => {
|
|
56472
56482
|
const O = [...t.colorRanges];
|
|
56473
|
-
O[
|
|
56483
|
+
O[H].min = Number(
|
|
56474
56484
|
L.target.value
|
|
56475
56485
|
), n({
|
|
56476
56486
|
...t,
|
|
@@ -56487,7 +56497,7 @@ function mR({
|
|
|
56487
56497
|
value: $.max,
|
|
56488
56498
|
onChange: (L) => {
|
|
56489
56499
|
const O = [...t.colorRanges];
|
|
56490
|
-
O[
|
|
56500
|
+
O[H].max = Number(
|
|
56491
56501
|
L.target.value
|
|
56492
56502
|
), n({
|
|
56493
56503
|
...t,
|
|
@@ -56503,7 +56513,7 @@ function mR({
|
|
|
56503
56513
|
color: $.color,
|
|
56504
56514
|
onChange: (L) => {
|
|
56505
56515
|
const O = [...t.colorRanges];
|
|
56506
|
-
O[
|
|
56516
|
+
O[H].color = L, n({
|
|
56507
56517
|
...t,
|
|
56508
56518
|
colorRanges: O
|
|
56509
56519
|
});
|
|
@@ -56516,7 +56526,7 @@ function mR({
|
|
|
56516
56526
|
value: $.applyTo,
|
|
56517
56527
|
onValueChange: (L) => {
|
|
56518
56528
|
const O = [...t.colorRanges];
|
|
56519
|
-
O[
|
|
56529
|
+
O[H].applyTo = L, n({
|
|
56520
56530
|
...t,
|
|
56521
56531
|
colorRanges: O
|
|
56522
56532
|
});
|
|
@@ -56528,13 +56538,13 @@ function mR({
|
|
|
56528
56538
|
pr,
|
|
56529
56539
|
{
|
|
56530
56540
|
value: "cell",
|
|
56531
|
-
id: `cell-${
|
|
56541
|
+
id: `cell-${H}`
|
|
56532
56542
|
}
|
|
56533
56543
|
),
|
|
56534
56544
|
/* @__PURE__ */ f(
|
|
56535
56545
|
he,
|
|
56536
56546
|
{
|
|
56537
|
-
htmlFor: `cell-${
|
|
56547
|
+
htmlFor: `cell-${H}`,
|
|
56538
56548
|
className: "text-xs",
|
|
56539
56549
|
children: "Cell only"
|
|
56540
56550
|
}
|
|
@@ -56545,13 +56555,13 @@ function mR({
|
|
|
56545
56555
|
pr,
|
|
56546
56556
|
{
|
|
56547
56557
|
value: "row",
|
|
56548
|
-
id: `row-${
|
|
56558
|
+
id: `row-${H}`
|
|
56549
56559
|
}
|
|
56550
56560
|
),
|
|
56551
56561
|
/* @__PURE__ */ f(
|
|
56552
56562
|
he,
|
|
56553
56563
|
{
|
|
56554
|
-
htmlFor: `row-${
|
|
56564
|
+
htmlFor: `row-${H}`,
|
|
56555
56565
|
className: "text-xs",
|
|
56556
56566
|
children: "Entire row"
|
|
56557
56567
|
}
|
|
@@ -56565,14 +56575,14 @@ function mR({
|
|
|
56565
56575
|
{
|
|
56566
56576
|
variant: "ghost",
|
|
56567
56577
|
size: "icon",
|
|
56568
|
-
onClick: () => v(
|
|
56578
|
+
onClick: () => v(H),
|
|
56569
56579
|
className: "h-8 w-8",
|
|
56570
56580
|
children: /* @__PURE__ */ f(hp, { className: "h-4 w-4" })
|
|
56571
56581
|
}
|
|
56572
56582
|
) })
|
|
56573
56583
|
]
|
|
56574
56584
|
},
|
|
56575
|
-
|
|
56585
|
+
H
|
|
56576
56586
|
))
|
|
56577
56587
|
] }) : /* @__PURE__ */ f("div", { className: "py-4 text-center text-sm text-muted-foreground", children: "No color ranges defined yet. Add one below." }),
|
|
56578
56588
|
/* @__PURE__ */ S("div", { className: "mt-4 border-t pt-4", children: [
|
|
@@ -56951,7 +56961,7 @@ function $_e({
|
|
|
56951
56961
|
enableResizing: !0,
|
|
56952
56962
|
header: ({ column: C }) => {
|
|
56953
56963
|
const k = t.findIndex(
|
|
56954
|
-
(
|
|
56964
|
+
(H) => H.id === C.id
|
|
56955
56965
|
), _ = k !== -1 ? t[k].desc ? "desc" : "asc" : null, E = n[C.id] || Wg(y, e, void 0, l == null ? void 0 : l.config), M = E.textAlign || "left", R = M === "right", F = M === "center", I = E, A = (I == null ? void 0 : I.type) === "date";
|
|
56956
56966
|
let z, $ = !1;
|
|
56957
56967
|
return A && (I != null && I.dateFormat) && (I.dateFormat.timezone && I.dateFormat.timezone !== "auto" ? z = I.dateFormat.timezone : z = a || s, $ = z !== s), R ? /* @__PURE__ */ S(
|
|
@@ -56967,9 +56977,9 @@ function $_e({
|
|
|
56967
56977
|
"flex cursor-pointer items-center justify-end transition-all duration-200",
|
|
56968
56978
|
i && "group-hover/table-head:mr-7"
|
|
56969
56979
|
),
|
|
56970
|
-
onClick: (
|
|
56971
|
-
|
|
56972
|
-
const L =
|
|
56980
|
+
onClick: (H) => {
|
|
56981
|
+
H.preventDefault();
|
|
56982
|
+
const L = H.shiftKey;
|
|
56973
56983
|
C.toggleSorting(
|
|
56974
56984
|
C.getIsSorted() === "asc",
|
|
56975
56985
|
L
|
|
@@ -57000,8 +57010,8 @@ function $_e({
|
|
|
57000
57010
|
variant: "ghost",
|
|
57001
57011
|
size: "icon",
|
|
57002
57012
|
className: "absolute right-0 hidden h-6 w-6 group-hover/table-head:flex",
|
|
57003
|
-
onClick: (
|
|
57004
|
-
|
|
57013
|
+
onClick: (H) => {
|
|
57014
|
+
H.stopPropagation(), o(C.id);
|
|
57005
57015
|
},
|
|
57006
57016
|
children: [
|
|
57007
57017
|
/* @__PURE__ */ f(nh, { className: "h-3 w-3" }),
|
|
@@ -57021,9 +57031,9 @@ function $_e({
|
|
|
57021
57031
|
"div",
|
|
57022
57032
|
{
|
|
57023
57033
|
className: "flex w-full items-center justify-center",
|
|
57024
|
-
onClick: (
|
|
57025
|
-
|
|
57026
|
-
const L =
|
|
57034
|
+
onClick: (H) => {
|
|
57035
|
+
H.preventDefault();
|
|
57036
|
+
const L = H.shiftKey;
|
|
57027
57037
|
C.toggleSorting(
|
|
57028
57038
|
C.getIsSorted() === "asc",
|
|
57029
57039
|
L
|
|
@@ -57054,8 +57064,8 @@ function $_e({
|
|
|
57054
57064
|
variant: "ghost",
|
|
57055
57065
|
size: "icon",
|
|
57056
57066
|
className: "absolute right-1 h-6 w-6 opacity-0 transition-opacity group-hover/table-head:opacity-100",
|
|
57057
|
-
onClick: (
|
|
57058
|
-
|
|
57067
|
+
onClick: (H) => {
|
|
57068
|
+
H.stopPropagation(), o(C.id);
|
|
57059
57069
|
},
|
|
57060
57070
|
children: [
|
|
57061
57071
|
/* @__PURE__ */ f(nh, { className: "h-3 w-3" }),
|
|
@@ -57075,9 +57085,9 @@ function $_e({
|
|
|
57075
57085
|
"div",
|
|
57076
57086
|
{
|
|
57077
57087
|
className: "flex items-center",
|
|
57078
|
-
onClick: (
|
|
57079
|
-
|
|
57080
|
-
const L =
|
|
57088
|
+
onClick: (H) => {
|
|
57089
|
+
H.preventDefault();
|
|
57090
|
+
const L = H.shiftKey;
|
|
57081
57091
|
C.toggleSorting(
|
|
57082
57092
|
C.getIsSorted() === "asc",
|
|
57083
57093
|
L
|
|
@@ -57108,8 +57118,8 @@ function $_e({
|
|
|
57108
57118
|
variant: "ghost",
|
|
57109
57119
|
size: "icon",
|
|
57110
57120
|
className: "h-6 w-6 opacity-0 transition-opacity group-hover/table-head:opacity-100",
|
|
57111
|
-
onClick: (
|
|
57112
|
-
|
|
57121
|
+
onClick: (H) => {
|
|
57122
|
+
H.stopPropagation(), o(C.id);
|
|
57113
57123
|
},
|
|
57114
57124
|
children: [
|
|
57115
57125
|
/* @__PURE__ */ f(nh, { className: "h-3 w-3" }),
|
|
@@ -57159,8 +57169,8 @@ function $_e({
|
|
|
57159
57169
|
const A = e.map((O) => {
|
|
57160
57170
|
const U = O[y];
|
|
57161
57171
|
return typeof U == "number" ? U : null;
|
|
57162
|
-
}).filter((O) => O !== null), z = _.numberFormat.dataBarMinValue !== void 0 ? _.numberFormat.dataBarMinValue : Math.min(...A),
|
|
57163
|
-
Math.max(0, (D - z) /
|
|
57172
|
+
}).filter((O) => O !== null), z = _.numberFormat.dataBarMinValue !== void 0 ? _.numberFormat.dataBarMinValue : Math.min(...A), H = (_.numberFormat.dataBarMaxValue !== void 0 ? _.numberFormat.dataBarMaxValue : Math.max(...A)) - z, L = H <= 0 ? 0 : Math.min(
|
|
57173
|
+
Math.max(0, (D - z) / H * 100),
|
|
57164
57174
|
100
|
|
57165
57175
|
);
|
|
57166
57176
|
F = /* @__PURE__ */ S("div", { className: "relative flex h-5 w-full items-center", children: [
|
|
@@ -57205,12 +57215,12 @@ function $_e({
|
|
|
57205
57215
|
}
|
|
57206
57216
|
else if (_.type === "link" && D) {
|
|
57207
57217
|
const I = _.linkFormat || Ua(), A = I.urlTemplate || "{value}", z = String(D), $ = A.trim() === "{value}";
|
|
57208
|
-
let
|
|
57209
|
-
$ ?
|
|
57218
|
+
let H;
|
|
57219
|
+
$ ? H = z : (H = A.replace(/{value}/g, encodeURIComponent(z)), H = H.replace(/{([^}]+)}/g, (U, V) => {
|
|
57210
57220
|
if (V === "value") return U;
|
|
57211
57221
|
const P = C.original[V];
|
|
57212
57222
|
return P != null ? encodeURIComponent(String(P)) : "";
|
|
57213
|
-
})),
|
|
57223
|
+
})), H.startsWith("http://") || H.startsWith("https://") || H.startsWith("mailto:") || H.startsWith("tel:") || H.startsWith("/") || (H = "https://" + H);
|
|
57214
57224
|
let O;
|
|
57215
57225
|
switch (I.labelType) {
|
|
57216
57226
|
case "static":
|
|
@@ -57225,7 +57235,7 @@ function $_e({
|
|
|
57225
57235
|
F = /* @__PURE__ */ f(
|
|
57226
57236
|
"a",
|
|
57227
57237
|
{
|
|
57228
|
-
href:
|
|
57238
|
+
href: H,
|
|
57229
57239
|
target: I.openInNewTab ? "_blank" : "_self",
|
|
57230
57240
|
rel: I.openInNewTab ? "noopener noreferrer" : void 0,
|
|
57231
57241
|
className: "text-blue-600 hover:underline",
|
|
@@ -57289,14 +57299,14 @@ function bq(e) {
|
|
|
57289
57299
|
onPaginationChange: v
|
|
57290
57300
|
} = e, { displayPreferences: x } = qc(), [w, N] = ee(p || []), [C, k] = ee([]), [D, _] = ee(""), [E, M] = ee({}), R = x.mode === "table-print", F = b ? WW(b, x.mode) : R ? "disabled" : "client", I = F === "server" && !(b != null && b.sql), A = F === "disabled" ? Number.MAX_SAFE_INTEGER : n || 50, [z, $] = ee(
|
|
57291
57301
|
y && F === "server" ? y.page - 1 : 0
|
|
57292
|
-
), [
|
|
57302
|
+
), [H, L] = ee(A), O = {
|
|
57293
57303
|
pageIndex: z,
|
|
57294
|
-
pageSize: F === "client" ?
|
|
57304
|
+
pageSize: F === "client" ? H : A
|
|
57295
57305
|
};
|
|
57296
57306
|
pe(() => {
|
|
57297
57307
|
b && b.type === "table" && b.config && !b.paginationConfig && v && v(0, A);
|
|
57298
57308
|
}, [b, A, v]);
|
|
57299
|
-
const [U, V] = ee(!1), [P, Y] = ee(null), [B, q] = ee({}), W = r || B, [
|
|
57309
|
+
const [U, V] = ee(!1), [P, Y] = ee(null), [B, q] = ee({}), W = r || B, [j, G] = ee(
|
|
57300
57310
|
Gi()
|
|
57301
57311
|
), [K, re] = ee(a || !1);
|
|
57302
57312
|
pe(() => {
|
|
@@ -57422,7 +57432,7 @@ function bq(e) {
|
|
|
57422
57432
|
if (P) {
|
|
57423
57433
|
const Me = {
|
|
57424
57434
|
...W,
|
|
57425
|
-
[P]: { ...
|
|
57435
|
+
[P]: { ...j }
|
|
57426
57436
|
};
|
|
57427
57437
|
u ? u(Me) : q(Me), V(!1);
|
|
57428
57438
|
}
|
|
@@ -57514,7 +57524,7 @@ function bq(e) {
|
|
|
57514
57524
|
setRowSelection: M,
|
|
57515
57525
|
columnSettingsOpen: U,
|
|
57516
57526
|
activeColumnId: P,
|
|
57517
|
-
tempColumnSettings:
|
|
57527
|
+
tempColumnSettings: j,
|
|
57518
57528
|
isHandlingVisibilityChange: me,
|
|
57519
57529
|
themeStyle: Te,
|
|
57520
57530
|
tableRef: ie,
|
|
@@ -58239,7 +58249,7 @@ function tDe(e) {
|
|
|
58239
58249
|
// Override defaultSelectColumnVisible to show checkboxes only for clickFilter
|
|
58240
58250
|
// Hide checkboxes in print mode (for paginated PDF reports)
|
|
58241
58251
|
defaultSelectColumnVisible: g && !h
|
|
58242
|
-
}),
|
|
58252
|
+
}), H = fD(t), { handlePointerInteraction: L } = j6(
|
|
58243
58253
|
t,
|
|
58244
58254
|
r || "",
|
|
58245
58255
|
o || "",
|
|
@@ -58254,7 +58264,7 @@ function tDe(e) {
|
|
|
58254
58264
|
getScrollElement: () => a.current,
|
|
58255
58265
|
estimateSize: () => 42,
|
|
58256
58266
|
overscan: 10
|
|
58257
|
-
}), B = Y.getVirtualItems(), q = P && B.length > 0 ? B[0].start : 0, W = P && B.length > 0 ? Y.getTotalSize() - B[B.length - 1].end : 0,
|
|
58267
|
+
}), B = Y.getVirtualItems(), q = P && B.length > 0 ? B[0].start : 0, W = P && B.length > 0 ? Y.getTotalSize() - B[B.length - 1].end : 0, j = Math.max(E.length, 1), G = jt(
|
|
58258
58268
|
(Z) => Z.interactionStates[t.id]
|
|
58259
58269
|
);
|
|
58260
58270
|
pe(() => {
|
|
@@ -58272,7 +58282,7 @@ function tDe(e) {
|
|
|
58272
58282
|
const de = b.getFilteredSelectedRowModel().rows.map((ie) => {
|
|
58273
58283
|
var Ee;
|
|
58274
58284
|
const me = S4({
|
|
58275
|
-
resolvedCardConfig:
|
|
58285
|
+
resolvedCardConfig: H,
|
|
58276
58286
|
card: t,
|
|
58277
58287
|
row: ie
|
|
58278
58288
|
});
|
|
@@ -58312,7 +58322,7 @@ function tDe(e) {
|
|
|
58312
58322
|
if (Z.stopPropagation(), !O || !r || !o)
|
|
58313
58323
|
return;
|
|
58314
58324
|
const ae = S4({
|
|
58315
|
-
resolvedCardConfig:
|
|
58325
|
+
resolvedCardConfig: H,
|
|
58316
58326
|
card: t,
|
|
58317
58327
|
row: ne
|
|
58318
58328
|
});
|
|
@@ -58415,7 +58425,7 @@ function tDe(e) {
|
|
|
58415
58425
|
children: /* @__PURE__ */ f(
|
|
58416
58426
|
En,
|
|
58417
58427
|
{
|
|
58418
|
-
colSpan:
|
|
58428
|
+
colSpan: j,
|
|
58419
58429
|
style: {
|
|
58420
58430
|
height: q,
|
|
58421
58431
|
padding: 0,
|
|
@@ -58481,7 +58491,7 @@ function tDe(e) {
|
|
|
58481
58491
|
children: /* @__PURE__ */ f(
|
|
58482
58492
|
En,
|
|
58483
58493
|
{
|
|
58484
|
-
colSpan:
|
|
58494
|
+
colSpan: j,
|
|
58485
58495
|
style: {
|
|
58486
58496
|
height: W,
|
|
58487
58497
|
padding: 0,
|
|
@@ -58622,8 +58632,8 @@ function aDe({
|
|
|
58622
58632
|
sheetId: l,
|
|
58623
58633
|
onMultipleInteractions: c
|
|
58624
58634
|
}) {
|
|
58625
|
-
var E, M, R, F, I, A, z, $,
|
|
58626
|
-
const u = J((V) => V.isVisualEditing), d = (M = (E = t == null ? void 0 : t.preferences) == null ? void 0 : E.tablePrefs) == null ? void 0 : M.columnSettingsMap, h = (F = (R = t == null ? void 0 : t.preferences) == null ? void 0 : R.tablePrefs) == null ? void 0 : F.columnVisibility, p = (A = (I = t == null ? void 0 : t.preferences) == null ? void 0 : I.tablePrefs) == null ? void 0 : A.columnSizing, m = ($ = (z = t == null ? void 0 : t.preferences) == null ? void 0 : z.tablePrefs) == null ? void 0 : $.selectColumnVisible, g = ((
|
|
58635
|
+
var E, M, R, F, I, A, z, $, H, L, O, U;
|
|
58636
|
+
const u = J((V) => V.isVisualEditing), d = (M = (E = t == null ? void 0 : t.preferences) == null ? void 0 : E.tablePrefs) == null ? void 0 : M.columnSettingsMap, h = (F = (R = t == null ? void 0 : t.preferences) == null ? void 0 : R.tablePrefs) == null ? void 0 : F.columnVisibility, p = (A = (I = t == null ? void 0 : t.preferences) == null ? void 0 : I.tablePrefs) == null ? void 0 : A.columnSizing, m = ($ = (z = t == null ? void 0 : t.preferences) == null ? void 0 : z.tablePrefs) == null ? void 0 : $.selectColumnVisible, g = ((H = t == null ? void 0 : t.paginationConfig) == null ? void 0 : H.pageSize) || ((O = (L = t == null ? void 0 : t.preferences) == null ? void 0 : L.tablePrefs) == null ? void 0 : O.pageSize), {
|
|
58627
58637
|
updateColumnSettingsMap: b,
|
|
58628
58638
|
updateColumnVisibility: y,
|
|
58629
58639
|
updateColumnSizing: v,
|
|
@@ -59776,7 +59786,7 @@ function yR({
|
|
|
59776
59786
|
columnSizing: k
|
|
59777
59787
|
},
|
|
59778
59788
|
onPaginationChange: z ? void 0 : I
|
|
59779
|
-
}), { setRowSelection:
|
|
59789
|
+
}), { setRowSelection: H, paginationMode: L } = bq({
|
|
59780
59790
|
data: _,
|
|
59781
59791
|
card: e,
|
|
59782
59792
|
pageSize: A,
|
|
@@ -59915,7 +59925,7 @@ function yR({
|
|
|
59915
59925
|
canNextPage: L === "server" && o ? o.hasNextPage ?? !1 : $.getCanNextPage(),
|
|
59916
59926
|
previousPage: $.previousPage,
|
|
59917
59927
|
nextPage: $.nextPage,
|
|
59918
|
-
onClearSelection: () =>
|
|
59928
|
+
onClearSelection: () => H({}),
|
|
59919
59929
|
paginationMode: L
|
|
59920
59930
|
}
|
|
59921
59931
|
),
|
|
@@ -62109,8 +62119,8 @@ function MMe(e, t, n = 1, r = 1, o = 1) {
|
|
|
62109
62119
|
const [s, l, c] = Array.from(e.lab()), [u, d, h] = Array.from(t.lab()), p = (s + u) / 2, m = Bs(Nr(l, 2) + Nr(c, 2)), g = Bs(Nr(d, 2) + Nr(h, 2)), b = (m + g) / 2, y = 0.5 * (1 - Bs(Nr(b, 7) / (Nr(b, 7) + Nr(25, 7)))), v = l * (1 + y), x = d * (1 + y), w = Bs(Nr(v, 2) + Nr(c, 2)), N = Bs(Nr(x, 2) + Nr(h, 2)), C = (w + N) / 2, k = i(B4(c, v)), D = i(B4(h, x)), _ = k >= 0 ? k : k + 360, E = D >= 0 ? D : D + 360, M = V4(_ - E) > 180 ? (_ + E + 360) / 2 : (_ + E) / 2, R = 1 - 0.17 * tv(a(M - 30)) + 0.24 * tv(a(2 * M)) + 0.32 * tv(a(3 * M + 6)) - 0.2 * tv(a(4 * M - 63));
|
|
62110
62120
|
let F = E - _;
|
|
62111
62121
|
F = V4(F) <= 180 ? F : E <= _ ? F + 360 : F - 360, F = 2 * Bs(w * N) * j4(a(F) / 2);
|
|
62112
|
-
const I = u - s, A = N - w, z = 1 + 0.015 * Nr(p - 50, 2) / Bs(20 + Nr(p - 50, 2)), $ = 1 + 0.045 * C,
|
|
62113
|
-
Nr(I / (n * z), 2) + Nr(A / (r * $), 2) + Nr(F / (o *
|
|
62122
|
+
const I = u - s, A = N - w, z = 1 + 0.015 * Nr(p - 50, 2) / Bs(20 + Nr(p - 50, 2)), $ = 1 + 0.045 * C, H = 1 + 0.015 * C * R, L = 30 * TMe(-Nr((M - 275) / 25, 2)), U = -(2 * Bs(Nr(C, 7) / (Nr(C, 7) + Nr(25, 7)))) * j4(2 * a(L)), V = Bs(
|
|
62123
|
+
Nr(I / (n * z), 2) + Nr(A / (r * $), 2) + Nr(F / (o * H), 2) + U * (A / (r * $)) * (F / (o * H))
|
|
62114
62124
|
);
|
|
62115
62125
|
return DMe(0, _Me(100, V));
|
|
62116
62126
|
}
|
|
@@ -66439,9 +66449,9 @@ function rOe(e) {
|
|
|
66439
66449
|
t.formatters,
|
|
66440
66450
|
t.labels,
|
|
66441
66451
|
t.classNames
|
|
66442
|
-
]), { captionLayout: l, mode: c, navLayout: u, numberOfMonths: d = 1, onDayBlur: h, onDayClick: p, onDayFocus: m, onDayKeyDown: g, onDayMouseEnter: b, onDayMouseLeave: y, onNextClick: v, onPrevClick: x, showWeekNumber: w, styles: N } = t, { formatCaption: C, formatDay: k, formatMonthDropdown: D, formatWeekNumber: _, formatWeekNumberHeader: E, formatWeekdayName: M, formatYearDropdown: R } = r, F = qPe(t, i), { days: I, months: A, navStart: z, navEnd: $, previousMonth:
|
|
66443
|
-
|
|
66444
|
-
}, [
|
|
66452
|
+
]), { captionLayout: l, mode: c, navLayout: u, numberOfMonths: d = 1, onDayBlur: h, onDayClick: p, onDayFocus: m, onDayKeyDown: g, onDayMouseEnter: b, onDayMouseLeave: y, onNextClick: v, onPrevClick: x, showWeekNumber: w, styles: N } = t, { formatCaption: C, formatDay: k, formatMonthDropdown: D, formatWeekNumber: _, formatWeekNumberHeader: E, formatWeekdayName: M, formatYearDropdown: R } = r, F = qPe(t, i), { days: I, months: A, navStart: z, navEnd: $, previousMonth: H, nextMonth: L, goToMonth: O } = F, U = iPe(I, t, z, $, i), { isSelected: V, select: P, selected: Y } = nOe(t, i) ?? {}, { blur: B, focused: q, isFocusTarget: W, moveFocus: j, setFocused: G } = KPe(t, F, U, V ?? (() => !1), i), { labelDayButton: K, labelGridcell: re, labelGrid: Z, labelMonthDropdown: ne, labelNav: ae, labelPrevious: de, labelNext: ie, labelWeekday: me, labelWeekNumber: Te, labelWeekNumberHeader: le, labelYearDropdown: xe } = o, fe = be(() => xPe(i, t.ISOWeek), [i, t.ISOWeek]), Ee = c !== void 0 || p !== void 0, De = ge(() => {
|
|
66453
|
+
H && (O(H), x == null || x(H));
|
|
66454
|
+
}, [H, O, x]), it = ge(() => {
|
|
66445
66455
|
L && (O(L), v == null || v(L));
|
|
66446
66456
|
}, [O, L, v]), tt = ge((Qe, xt) => (Je) => {
|
|
66447
66457
|
Je.preventDefault(), Je.stopPropagation(), G(Qe), P == null || P(Qe.date, xt, Je), p == null || p(Qe.date, xt, Je);
|
|
@@ -66469,10 +66479,10 @@ function rOe(e) {
|
|
|
66469
66479
|
if (at[Je.key]) {
|
|
66470
66480
|
Je.preventDefault(), Je.stopPropagation();
|
|
66471
66481
|
const [Me, Pe] = at[Je.key];
|
|
66472
|
-
|
|
66482
|
+
j(Me, Pe);
|
|
66473
66483
|
}
|
|
66474
66484
|
g == null || g(Qe.date, xt, Je);
|
|
66475
|
-
}, [
|
|
66485
|
+
}, [j, g, t.dir]), ve = ge((Qe, xt) => (Je) => {
|
|
66476
66486
|
b == null || b(Qe.date, xt, Je);
|
|
66477
66487
|
}, [b]), Ae = ge((Qe, xt) => (Je) => {
|
|
66478
66488
|
y == null || y(Qe.date, xt, Je);
|
|
@@ -66499,7 +66509,7 @@ function rOe(e) {
|
|
|
66499
66509
|
isSelected: V,
|
|
66500
66510
|
months: A,
|
|
66501
66511
|
nextMonth: L,
|
|
66502
|
-
previousMonth:
|
|
66512
|
+
previousMonth: H,
|
|
66503
66513
|
goToMonth: O,
|
|
66504
66514
|
getModifiers: U,
|
|
66505
66515
|
components: n,
|
|
@@ -66517,7 +66527,7 @@ function rOe(e) {
|
|
|
66517
66527
|
Q.createElement(
|
|
66518
66528
|
n.Months,
|
|
66519
66529
|
{ className: s[st.Months], style: N == null ? void 0 : N[st.Months] },
|
|
66520
|
-
!t.hideNavigation && !u && Q.createElement(n.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: s[st.Nav], style: N == null ? void 0 : N[st.Nav], "aria-label": ae(), onPreviousClick: De, onNextClick: it, previousMonth:
|
|
66530
|
+
!t.hideNavigation && !u && Q.createElement(n.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: s[st.Nav], style: N == null ? void 0 : N[st.Nav], "aria-label": ae(), onPreviousClick: De, onNextClick: it, previousMonth: H, nextMonth: L }),
|
|
66521
66531
|
A.map((Qe, xt) => Q.createElement(
|
|
66522
66532
|
n.Month,
|
|
66523
66533
|
{
|
|
@@ -66531,8 +66541,8 @@ function rOe(e) {
|
|
|
66531
66541
|
},
|
|
66532
66542
|
u === "around" && !t.hideNavigation && xt === 0 && Q.createElement(
|
|
66533
66543
|
n.PreviousMonthButton,
|
|
66534
|
-
{ type: "button", className: s[st.PreviousMonthButton], tabIndex:
|
|
66535
|
-
Q.createElement(n.Chevron, { disabled:
|
|
66544
|
+
{ type: "button", className: s[st.PreviousMonthButton], tabIndex: H ? void 0 : -1, "aria-disabled": H ? void 0 : !0, "aria-label": de(H), onClick: De, "data-animated-button": t.animate ? "true" : void 0 },
|
|
66545
|
+
Q.createElement(n.Chevron, { disabled: H ? void 0 : !0, className: s[st.Chevron], orientation: t.dir === "rtl" ? "right" : "left" })
|
|
66536
66546
|
),
|
|
66537
66547
|
Q.createElement(n.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: s[st.MonthCaption], style: N == null ? void 0 : N[st.MonthCaption], calendarMonth: Qe, displayIndex: xt }, l != null && l.startsWith("dropdown") ? Q.createElement(
|
|
66538
66548
|
n.DropdownNav,
|
|
@@ -66560,7 +66570,7 @@ function rOe(e) {
|
|
|
66560
66570
|
{ type: "button", className: s[st.NextMonthButton], tabIndex: L ? void 0 : -1, "aria-disabled": L ? void 0 : !0, "aria-label": ie(L), onClick: it, "data-animated-button": t.animate ? "true" : void 0 },
|
|
66561
66571
|
Q.createElement(n.Chevron, { disabled: L ? void 0 : !0, className: s[st.Chevron], orientation: t.dir === "rtl" ? "left" : "right" })
|
|
66562
66572
|
),
|
|
66563
|
-
xt === d - 1 && u === "after" && !t.hideNavigation && Q.createElement(n.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: s[st.Nav], style: N == null ? void 0 : N[st.Nav], "aria-label": ae(), onPreviousClick: De, onNextClick: it, previousMonth:
|
|
66573
|
+
xt === d - 1 && u === "after" && !t.hideNavigation && Q.createElement(n.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: s[st.Nav], style: N == null ? void 0 : N[st.Nav], "aria-label": ae(), onPreviousClick: De, onNextClick: it, previousMonth: H, nextMonth: L }),
|
|
66564
66574
|
Q.createElement(
|
|
66565
66575
|
n.MonthGrid,
|
|
66566
66576
|
{ role: "grid", "aria-multiselectable": c === "multiple" || c === "range", "aria-label": Z(Qe.date, i.options, i) || void 0, className: s[st.MonthGrid], style: N == null ? void 0 : N[st.MonthGrid] },
|
|
@@ -67004,7 +67014,7 @@ function XY({
|
|
|
67004
67014
|
const U = Wi(_.from, M), V = wi(_.to, M);
|
|
67005
67015
|
t == null || t({ from: U, to: V }), h(!1);
|
|
67006
67016
|
}
|
|
67007
|
-
},
|
|
67017
|
+
}, H = () => {
|
|
67008
67018
|
E(e);
|
|
67009
67019
|
}, L = () => {
|
|
67010
67020
|
const U = /* @__PURE__ */ new Date(), V = parseInt(N, 10), P = parseInt(k, 10);
|
|
@@ -67048,8 +67058,8 @@ function XY({
|
|
|
67048
67058
|
}[x],
|
|
67049
67059
|
from: V,
|
|
67050
67060
|
to: P
|
|
67051
|
-
},
|
|
67052
|
-
t == null || t(
|
|
67061
|
+
}, j = { from: Y, to: B };
|
|
67062
|
+
t == null || t(j), n == null || n(j, W), h(!1);
|
|
67053
67063
|
}, O = (U) => {
|
|
67054
67064
|
h(U), U && E(e);
|
|
67055
67065
|
};
|
|
@@ -67210,7 +67220,7 @@ function XY({
|
|
|
67210
67220
|
size: "sm",
|
|
67211
67221
|
variant: "outline",
|
|
67212
67222
|
className: "h-8 flex-1",
|
|
67213
|
-
onClick:
|
|
67223
|
+
onClick: H,
|
|
67214
67224
|
children: "Cancel"
|
|
67215
67225
|
}
|
|
67216
67226
|
),
|
|
@@ -67797,10 +67807,10 @@ function uOe(e, t, n, r = {}) {
|
|
|
67797
67807
|
y
|
|
67798
67808
|
);
|
|
67799
67809
|
}
|
|
67800
|
-
const
|
|
67810
|
+
const H = /\{\{\s*filters\s*\|\s*where\s*\}\}/i.test(
|
|
67801
67811
|
e.sql
|
|
67802
67812
|
), L = /\{\{\s*filters\s*\|\s*and\s*\}\}/i.test(e.sql);
|
|
67803
|
-
if (
|
|
67813
|
+
if (H)
|
|
67804
67814
|
return e.sql.replace(
|
|
67805
67815
|
/\{\{\s*filters\s*\|\s*where\s*\}\}/i,
|
|
67806
67816
|
`WHERE (${A}) {{ filters | and }}`
|
|
@@ -67905,11 +67915,11 @@ function v0(e, t) {
|
|
|
67905
67915
|
]), w = be(() => {
|
|
67906
67916
|
var q;
|
|
67907
67917
|
return e.column ? (q = m == null ? void 0 : m.records) == null ? void 0 : q.map((W) => {
|
|
67908
|
-
let
|
|
67909
|
-
return W[
|
|
67910
|
-
id: W[
|
|
67918
|
+
let j = e.column.split(".").slice(-1)[0].replace(/"/g, "");
|
|
67919
|
+
return W[j] === void 0 && (j = j.toLowerCase()), {
|
|
67920
|
+
id: W[j],
|
|
67911
67921
|
// Use actual value as ID for consistent selection
|
|
67912
|
-
value: W[
|
|
67922
|
+
value: W[j]
|
|
67913
67923
|
// this is needed if
|
|
67914
67924
|
};
|
|
67915
67925
|
}) : [];
|
|
@@ -68007,13 +68017,13 @@ function v0(e, t) {
|
|
|
68007
68017
|
}), [z, $] = ee([]);
|
|
68008
68018
|
pe(() => {
|
|
68009
68019
|
R.length > 0 && $((B) => {
|
|
68010
|
-
const q = [...B], W = new Set(B.map((
|
|
68011
|
-
return R.forEach((
|
|
68012
|
-
W.has(
|
|
68020
|
+
const q = [...B], W = new Set(B.map((j) => j.value));
|
|
68021
|
+
return R.forEach((j) => {
|
|
68022
|
+
W.has(j.value) || (q.push(j), W.add(j.value));
|
|
68013
68023
|
}), q;
|
|
68014
68024
|
});
|
|
68015
68025
|
}, [R]);
|
|
68016
|
-
const
|
|
68026
|
+
const H = be(() => {
|
|
68017
68027
|
if (!w) return z || [];
|
|
68018
68028
|
const B = [...w], q = new Set(w.map((W) => W.value));
|
|
68019
68029
|
return z == null || z.forEach((W) => {
|
|
@@ -68044,13 +68054,13 @@ function v0(e, t) {
|
|
|
68044
68054
|
return;
|
|
68045
68055
|
}
|
|
68046
68056
|
if (B.operation === "in") {
|
|
68047
|
-
const q =
|
|
68057
|
+
const q = H == null ? void 0 : H.filter(
|
|
68048
68058
|
(W) => B.values.includes(W.value)
|
|
68049
68059
|
);
|
|
68050
68060
|
q && r(q);
|
|
68051
68061
|
}
|
|
68052
68062
|
}
|
|
68053
|
-
}, [m, l, p, e.id,
|
|
68063
|
+
}, [m, l, p, e.id, H]), {
|
|
68054
68064
|
isLoading: g,
|
|
68055
68065
|
isFetching: b,
|
|
68056
68066
|
isError: y,
|
|
@@ -69632,17 +69642,17 @@ function c5e({ children: e, enabled: t = !0 }) {
|
|
|
69632
69642
|
if (!M) return;
|
|
69633
69643
|
let I = x.elements.floating;
|
|
69634
69644
|
if (!I) return;
|
|
69635
|
-
let A = parseFloat(getComputedStyle(I).scrollPaddingBottom) || 0, z = Math.min(O3, I.childElementCount), $ = 0,
|
|
69645
|
+
let A = parseFloat(getComputedStyle(I).scrollPaddingBottom) || 0, z = Math.min(O3, I.childElementCount), $ = 0, H = 0;
|
|
69636
69646
|
for (let L of (F = (R = x.elements.floating) == null ? void 0 : R.childNodes) != null ? F : []) if (L instanceof HTMLElement) {
|
|
69637
69647
|
let O = L.offsetTop, U = O + L.clientHeight + A, V = I.scrollTop, P = V + I.clientHeight;
|
|
69638
69648
|
if (O >= V && U <= P) z--;
|
|
69639
69649
|
else {
|
|
69640
|
-
|
|
69650
|
+
H = Math.max(0, Math.min(U, P) - Math.max(O, V)), $ = L.clientHeight;
|
|
69641
69651
|
break;
|
|
69642
69652
|
}
|
|
69643
69653
|
}
|
|
69644
69654
|
z >= 1 && i((L) => {
|
|
69645
|
-
let O = $ * z -
|
|
69655
|
+
let O = $ * z - H + A;
|
|
69646
69656
|
return L >= O ? L : O;
|
|
69647
69657
|
});
|
|
69648
69658
|
} }) : null, Tz({ padding: p, apply({ availableWidth: M, availableHeight: R, elements: F }) {
|
|
@@ -69994,20 +70004,20 @@ function z5e(e, t) {
|
|
|
69994
70004
|
C.dataRef.current = I;
|
|
69995
70005
|
}, [I]);
|
|
69996
70006
|
let A = I.comboboxState === 0;
|
|
69997
|
-
wFe(A, [I.buttonElement, I.inputElement, I.optionsElement], () =>
|
|
70007
|
+
wFe(A, [I.buttonElement, I.inputElement, I.optionsElement], () => j.closeCombobox());
|
|
69998
70008
|
let z = be(() => {
|
|
69999
70009
|
var ae, de, ie;
|
|
70000
70010
|
return { open: I.comboboxState === 0, disabled: d, activeIndex: I.activeOptionIndex, activeOption: I.activeOptionIndex === null ? null : I.virtual ? I.virtual.options[(ae = I.activeOptionIndex) != null ? ae : 0] : (ie = (de = I.options[I.activeOptionIndex]) == null ? void 0 : de.dataRef.current.value) != null ? ie : null, value: w };
|
|
70001
70011
|
}, [I, d, w]), $ = Mt(() => {
|
|
70002
70012
|
if (I.activeOptionIndex !== null) {
|
|
70003
|
-
if (
|
|
70013
|
+
if (j.setIsTyping(!1), I.virtual) P(I.virtual.options[I.activeOptionIndex]);
|
|
70004
70014
|
else {
|
|
70005
70015
|
let { dataRef: ae } = I.options[I.activeOptionIndex];
|
|
70006
70016
|
P(ae.current.value);
|
|
70007
70017
|
}
|
|
70008
|
-
|
|
70018
|
+
j.goToOption(Dr.Specific, I.activeOptionIndex);
|
|
70009
70019
|
}
|
|
70010
|
-
}),
|
|
70020
|
+
}), H = Mt(() => {
|
|
70011
70021
|
k({ type: 0 }), D.current = !0;
|
|
70012
70022
|
}), L = Mt(() => {
|
|
70013
70023
|
k({ type: 1 }), D.current = !1, h == null || h();
|
|
@@ -70028,10 +70038,10 @@ function z5e(e, t) {
|
|
|
70028
70038
|
k({ type: 9, element: ae });
|
|
70029
70039
|
}), W = Mt((ae) => {
|
|
70030
70040
|
k({ type: 10, element: ae });
|
|
70031
|
-
}),
|
|
70041
|
+
}), j = be(() => ({ onChange: P, registerOption: V, goToOption: U, setIsTyping: O, closeCombobox: L, openCombobox: H, setActivationTrigger: Y, selectActiveOption: $, setInputElement: B, setButtonElement: q, setOptionsElement: W }), []), [G, K] = tFe(), re = t === null ? {} : { ref: t }, Z = ge(() => {
|
|
70032
70042
|
if (x !== void 0) return N == null ? void 0 : N(x);
|
|
70033
70043
|
}, [N, x]), ne = $a();
|
|
70034
|
-
return Q.createElement(K, { value: G, props: { htmlFor: (r = I.inputElement) == null ? void 0 : r.id }, slot: { open: I.comboboxState === 0, disabled: d } }, Q.createElement(c5e, null, Q.createElement(qR.Provider, { value:
|
|
70044
|
+
return Q.createElement(K, { value: G, props: { htmlFor: (r = I.inputElement) == null ? void 0 : r.id }, slot: { open: I.comboboxState === 0, disabled: d } }, Q.createElement(c5e, null, Q.createElement(qR.Provider, { value: j }, Q.createElement(Jg.Provider, { value: I }, Q.createElement(p5e, { value: bl(I.comboboxState, { 0: Qg.Open, 1: Qg.Closed }) }, c != null && Q.createElement(WOe, { disabled: d, data: w != null ? { [c]: w } : {}, form: l, onReset: Z }), ne({ ourProps: re, theirProps: v, slot: z, defaultTag: L5e, name: "Combobox" }))))));
|
|
70035
70045
|
}
|
|
70036
70046
|
let B5e = "input";
|
|
70037
70047
|
function V5e(e, t) {
|
|
@@ -70047,16 +70057,16 @@ function V5e(e, t) {
|
|
|
70047
70057
|
let W = v.current;
|
|
70048
70058
|
W && ((q === 0 && Y === 1 || P !== B) && (W.value = P), requestAnimationFrame(() => {
|
|
70049
70059
|
if (s.isTyping || !W || (w == null ? void 0 : w.activeElement) !== W) return;
|
|
70050
|
-
let { selectionStart:
|
|
70051
|
-
Math.abs((G ?? 0) - (
|
|
70060
|
+
let { selectionStart: j, selectionEnd: G } = W;
|
|
70061
|
+
Math.abs((G ?? 0) - (j ?? 0)) === 0 && j === 0 && W.setSelectionRange(W.value.length, W.value.length);
|
|
70052
70062
|
}));
|
|
70053
70063
|
}, [k, s.comboboxState, w, s.isTyping]), T3(([P], [Y]) => {
|
|
70054
70064
|
if (P === 0 && Y === 1) {
|
|
70055
70065
|
if (s.isTyping) return;
|
|
70056
70066
|
let B = v.current;
|
|
70057
70067
|
if (!B) return;
|
|
70058
|
-
let q = B.value, { selectionStart: W, selectionEnd:
|
|
70059
|
-
B.value = "", B.value = q, G !== null ? B.setSelectionRange(W,
|
|
70068
|
+
let q = B.value, { selectionStart: W, selectionEnd: j, selectionDirection: G } = B;
|
|
70069
|
+
B.value = "", B.value = q, G !== null ? B.setSelectionRange(W, j, G) : B.setSelectionRange(W, j);
|
|
70060
70070
|
}
|
|
70061
70071
|
}, [s.comboboxState]);
|
|
70062
70072
|
let D = Se(!1), _ = Mt(() => {
|
|
@@ -70102,15 +70112,15 @@ function V5e(e, t) {
|
|
|
70102
70112
|
h == null || h(P), s.mode === 0 && P.target.value === "" && C(), l.openCombobox();
|
|
70103
70113
|
}), F = Mt((P) => {
|
|
70104
70114
|
var Y, B, q;
|
|
70105
|
-
let W = (Y = P.relatedTarget) != null ? Y : Au.find((
|
|
70115
|
+
let W = (Y = P.relatedTarget) != null ? Y : Au.find((j) => j !== P.currentTarget);
|
|
70106
70116
|
if (!((B = s.optionsElement) != null && B.contains(W)) && !((q = s.buttonElement) != null && q.contains(W)) && s.comboboxState === 0) return P.preventDefault(), s.mode === 0 && s.value === null && C(), l.closeCombobox();
|
|
70107
70117
|
}), I = Mt((P) => {
|
|
70108
70118
|
var Y, B, q;
|
|
70109
|
-
let W = (Y = P.relatedTarget) != null ? Y : Au.find((
|
|
70119
|
+
let W = (Y = P.relatedTarget) != null ? Y : Au.find((j) => j !== P.currentTarget);
|
|
70110
70120
|
(B = s.buttonElement) != null && B.contains(W) || (q = s.optionsElement) != null && q.contains(W) || s.disabled || s.immediate && s.comboboxState !== 0 && N.microTask(() => {
|
|
70111
70121
|
Ou(() => l.openCombobox()), l.setActivationTrigger(1);
|
|
70112
70122
|
});
|
|
70113
|
-
}), A = gS(), z = XOe(), { isFocused: $, focusProps:
|
|
70123
|
+
}), A = gS(), z = XOe(), { isFocused: $, focusProps: H } = lG({ autoFocus: g }), { isHovered: L, hoverProps: O } = sG({ isDisabled: m }), U = be(() => ({ open: s.comboboxState === 0, disabled: m, hover: L, focus: $, autofocus: g }), [s, L, $, g, m]), V = zR({ ref: x, id: d, role: "combobox", type: b, "aria-controls": (n = s.optionsElement) == null ? void 0 : n.id, "aria-expanded": s.comboboxState === 0, "aria-activedescendant": s.activeOptionIndex === null ? void 0 : s.virtual ? (r = s.options.find((P) => !P.dataRef.current.disabled && s.compare(P.dataRef.current.value, s.virtual.options[s.activeOptionIndex]))) == null ? void 0 : r.id : (o = s.options[s.activeOptionIndex]) == null ? void 0 : o.id, "aria-labelledby": A, "aria-describedby": z, "aria-autocomplete": "list", defaultValue: (a = (i = e.defaultValue) != null ? i : s.defaultValue !== void 0 ? p == null ? void 0 : p(s.defaultValue) : null) != null ? a : s.defaultValue, disabled: m || void 0, autoFocus: g, onCompositionStart: _, onCompositionEnd: E, onKeyDown: M, onChange: R, onFocus: I, onBlur: F }, H, O);
|
|
70114
70124
|
return $a()({ ourProps: V, theirProps: y, slot: U, defaultTag: B5e, name: "Combobox.Input" });
|
|
70115
70125
|
}
|
|
70116
70126
|
let j5e = "button";
|
|
@@ -70164,10 +70174,10 @@ function q5e(e, t) {
|
|
|
70164
70174
|
m.setActivationTrigger(0);
|
|
70165
70175
|
}), A = Mt((V) => {
|
|
70166
70176
|
V.preventDefault(), m.setActivationTrigger(0);
|
|
70167
|
-
}), z = zR(g ? w() : {}, { "aria-labelledby": R, role: "listbox", "aria-multiselectable": p.mode === 1 ? !0 : void 0, id: a, ref: N, style: { ...h.style, ...y, "--input-width": S3(p.inputElement, !0).width, "--button-width": S3(p.buttonElement, !0).width }, onWheel: p.activationTrigger === 0 ? void 0 : I, onMouseDown: A, ...AFe(_) }), $ = D && p.comboboxState === 1,
|
|
70177
|
+
}), z = zR(g ? w() : {}, { "aria-labelledby": R, role: "listbox", "aria-multiselectable": p.mode === 1 ? !0 : void 0, id: a, ref: N, style: { ...h.style, ...y, "--input-width": S3(p.inputElement, !0).width, "--button-width": S3(p.buttonElement, !0).width }, onWheel: p.activationTrigger === 0 ? void 0 : I, onMouseDown: A, ...AFe(_) }), $ = D && p.comboboxState === 1, H = b_($, (r = p.virtual) == null ? void 0 : r.options), L = b_($, p.value), O = Mt((V) => p.compare(L, V));
|
|
70168
70178
|
if (p.virtual) {
|
|
70169
|
-
if (
|
|
70170
|
-
Object.assign(h, { children: Q.createElement(Jg.Provider, { value:
|
|
70179
|
+
if (H === void 0) throw new Error("Missing `options` in virtual mode");
|
|
70180
|
+
Object.assign(h, { children: Q.createElement(Jg.Provider, { value: H !== p.virtual.options ? { ...p, virtual: { ...p.virtual, options: H } } : p }, Q.createElement(F5e, { slot: F }, h.children)) });
|
|
70171
70181
|
}
|
|
70172
70182
|
let U = $a();
|
|
70173
70183
|
return Q.createElement(M5e, { enabled: c ? e.static || D : !1 }, Q.createElement(Jg.Provider, { value: p.mode === 1 ? p : { ...p, isSelected: O } }, U({ ourProps: z, theirProps: { ...h, children: Q.createElement(f5e, { freeze: $ }, typeof h.children == "function" ? (o = h.children) == null ? void 0 : o.call(h, F) : h.children) }, slot: F, defaultTag: U5e, features: W5e, visible: D, name: "Combobox.Options" })));
|
|
@@ -70261,7 +70271,7 @@ function e4e({
|
|
|
70261
70271
|
function D(I, A) {
|
|
70262
70272
|
if (A) return "";
|
|
70263
70273
|
const z = [">", "<", ">=", "<=", "="];
|
|
70264
|
-
return (g ? ms(g) : !1) && y && z.includes(y.operation) ? `${y.operation}${y.values[0]}` : I != null && I.length ? I == null ? void 0 : I.map((
|
|
70274
|
+
return (g ? ms(g) : !1) && y && z.includes(y.operation) ? `${y.operation}${y.values[0]}` : I != null && I.length ? I == null ? void 0 : I.map((H) => H.value).join(", ") : "";
|
|
70265
70275
|
}
|
|
70266
70276
|
function _(I) {
|
|
70267
70277
|
Array.isArray(I) || (I = [I]), t(I);
|
|
@@ -71081,17 +71091,17 @@ function f4e({
|
|
|
71081
71091
|
card: e,
|
|
71082
71092
|
frame: t
|
|
71083
71093
|
}) {
|
|
71084
|
-
var A, z, $,
|
|
71094
|
+
var A, z, $, H, L, O, U, V, P, Y, B, q;
|
|
71085
71095
|
const [n, r] = ee(
|
|
71086
71096
|
[]
|
|
71087
71097
|
), { theme: o } = s1(), { authToken: i } = nt(), a = v8(i == null ? void 0 : i.accessToken), s = J((W) => W.themeStyle), l = {
|
|
71088
71098
|
colors: ((z = (A = s == null ? void 0 : s.chart) == null ? void 0 : A.dataset) == null ? void 0 : z.backgroundColor) || [],
|
|
71089
71099
|
mode: o || "system"
|
|
71090
|
-
}, [c, u] = ee(!1), { getCard: d } = TR((($ = e.customCardPreferences) == null ? void 0 : $.url) || ""), h = ((
|
|
71100
|
+
}, [c, u] = ee(!1), { getCard: d } = TR((($ = e.customCardPreferences) == null ? void 0 : $.url) || ""), h = ((H = e.customCardPreferences) == null ? void 0 : H.visualType) || "single", p = (L = e.customCardPreferences) == null ? void 0 : L.componentName, { data: m } = wl(e), g = jt(
|
|
71091
71101
|
(W) => W.interactionStates
|
|
71092
71102
|
), b = J((W) => {
|
|
71093
|
-
var
|
|
71094
|
-
return (
|
|
71103
|
+
var j;
|
|
71104
|
+
return (j = W.dashboard) == null ? void 0 : j.id;
|
|
71095
71105
|
}), y = J((W) => W.dashboard.filters), v = J((W) => W.filterValues), x = J((W) => W.selectedSheetId), w = J(
|
|
71096
71106
|
(W) => W.inlineFilterValuesMap[e.id]
|
|
71097
71107
|
), N = be(
|
|
@@ -71123,10 +71133,10 @@ function f4e({
|
|
|
71123
71133
|
v,
|
|
71124
71134
|
x
|
|
71125
71135
|
]
|
|
71126
|
-
), E = ge((W,
|
|
71136
|
+
), E = ge((W, j) => {
|
|
71127
71137
|
r((G) => ({
|
|
71128
71138
|
...G,
|
|
71129
|
-
[W]:
|
|
71139
|
+
[W]: j
|
|
71130
71140
|
}));
|
|
71131
71141
|
}, []);
|
|
71132
71142
|
if (!p)
|
|
@@ -71135,7 +71145,7 @@ function f4e({
|
|
|
71135
71145
|
((O = e.customCardPreferences) == null ? void 0 : O.dataInputCardIds) || {}
|
|
71136
71146
|
).map((W) => {
|
|
71137
71147
|
var K, re, Z;
|
|
71138
|
-
const
|
|
71148
|
+
const j = (re = (K = e.customCardPreferences) == null ? void 0 : K.dataInputCardIds) == null ? void 0 : re[W].cardId, G = (Z = t == null ? void 0 : t.cards) == null ? void 0 : Z.find((ne) => ne.id === j);
|
|
71139
71149
|
return G || null;
|
|
71140
71150
|
});
|
|
71141
71151
|
function F(W) {
|
|
@@ -71177,8 +71187,8 @@ function f4e({
|
|
|
71177
71187
|
((B = e.customCardPreferences) == null ? void 0 : B.dataInputCardIds) || {}
|
|
71178
71188
|
).map((W) => {
|
|
71179
71189
|
var K, re, Z;
|
|
71180
|
-
const
|
|
71181
|
-
(ne) => ne.id ===
|
|
71190
|
+
const j = (re = (K = e.customCardPreferences) == null ? void 0 : K.dataInputCardIds) == null ? void 0 : re[W].cardId, G = (Z = t == null ? void 0 : t.cards) == null ? void 0 : Z.find(
|
|
71191
|
+
(ne) => ne.id === j
|
|
71182
71192
|
);
|
|
71183
71193
|
if (G)
|
|
71184
71194
|
return /* @__PURE__ */ f(
|
|
@@ -71207,8 +71217,8 @@ function f4e({
|
|
|
71207
71217
|
chartSettings: (q = e.customCardPreferences) == null ? void 0 : q.settings,
|
|
71208
71218
|
settings: R.map(
|
|
71209
71219
|
(W) => {
|
|
71210
|
-
var
|
|
71211
|
-
return (
|
|
71220
|
+
var j;
|
|
71221
|
+
return (j = W == null ? void 0 : W.customCardPreferences) == null ? void 0 : j.settings;
|
|
71212
71222
|
}
|
|
71213
71223
|
),
|
|
71214
71224
|
data: R.map((W) => W != null && W.id ? n == null ? void 0 : n[W.id] : []),
|
|
@@ -71562,7 +71572,7 @@ function w4e({
|
|
|
71562
71572
|
const p = ((k = t.config) == null ? void 0 : k.pivotByColumns) || [], m = p.length, g = ((D = e.groupByColumns) == null ? void 0 : D.length) || 1, b = e.columnHeaders.length;
|
|
71563
71573
|
function y(_, E, M, R = []) {
|
|
71564
71574
|
_.forEach((F, I) => {
|
|
71565
|
-
var z, $,
|
|
71575
|
+
var z, $, H;
|
|
71566
71576
|
const A = F.level;
|
|
71567
71577
|
if (A < m) {
|
|
71568
71578
|
const L = F.columnKey || `${A}-${R.join("-")}-${F.name}-${I}`, O = F.children ? 1 : m - A, U = `pivot-${L}`, V = l === U;
|
|
@@ -71589,7 +71599,7 @@ function w4e({
|
|
|
71589
71599
|
pivotByFields: ((z = t.config) == null ? void 0 : z.pivotByColumns) || [],
|
|
71590
71600
|
currentAggregation: {
|
|
71591
71601
|
rowAggregates: ($ = t.config) == null ? void 0 : $.rowAggregates,
|
|
71592
|
-
columnAggregates: (
|
|
71602
|
+
columnAggregates: (H = t.config) == null ? void 0 : H.columnAggregates
|
|
71593
71603
|
},
|
|
71594
71604
|
onAggregationChange: a,
|
|
71595
71605
|
onOpenChange: (P) => c(P ? U : null)
|
|
@@ -71612,7 +71622,7 @@ function w4e({
|
|
|
71612
71622
|
function v(_, E = []) {
|
|
71613
71623
|
const M = [];
|
|
71614
71624
|
return _.forEach((R, F) => {
|
|
71615
|
-
var I, A, z, $,
|
|
71625
|
+
var I, A, z, $, H;
|
|
71616
71626
|
if (R.columnKey) {
|
|
71617
71627
|
const L = R.columnKey || `metric-${E.join("-")}-${R.name}-${F}`, O = v4e(R.columnKey), U = x4e(
|
|
71618
71628
|
R.columnKey,
|
|
@@ -71708,7 +71718,7 @@ function w4e({
|
|
|
71708
71718
|
{
|
|
71709
71719
|
className: "block truncate px-2",
|
|
71710
71720
|
title: (($ = e.columnDisplayNames) == null ? void 0 : $[R.columnKey]) || R.name || "Metric",
|
|
71711
|
-
children: ((
|
|
71721
|
+
children: ((H = e.columnDisplayNames) == null ? void 0 : H[R.columnKey]) || R.name || "Metric"
|
|
71712
71722
|
}
|
|
71713
71723
|
)
|
|
71714
71724
|
},
|
|
@@ -71723,7 +71733,7 @@ function w4e({
|
|
|
71723
71733
|
}
|
|
71724
71734
|
const x = /* @__PURE__ */ S(yr, { "data-header-type": "pivot-hierarchy", "data-header-row-index": "0", "data-repeat-header": "true", children: [
|
|
71725
71735
|
e.groupByColumns && e.groupByColumns.length > 0 ? e.groupByColumns.map((_, E) => {
|
|
71726
|
-
var A, z, $,
|
|
71736
|
+
var A, z, $, H, L;
|
|
71727
71737
|
const M = (A = n.getHeaderGroups()[0]) == null ? void 0 : A.headers.find((O) => O.column.id === `rowLevel${E}`), R = M == null ? void 0 : M.getSize(), F = `row-header-${E}`, I = l === F;
|
|
71728
71738
|
return /* @__PURE__ */ f(
|
|
71729
71739
|
mi,
|
|
@@ -71793,7 +71803,7 @@ function w4e({
|
|
|
71793
71803
|
{
|
|
71794
71804
|
className: X(
|
|
71795
71805
|
"h-3 w-3 flex-shrink-0",
|
|
71796
|
-
((
|
|
71806
|
+
((H = r.find((O) => O.id === `rowLevel${E}`)) == null ? void 0 : H.desc) === !1 ? "hidden group-hover/rowheader:block" : "hidden"
|
|
71797
71807
|
)
|
|
71798
71808
|
}
|
|
71799
71809
|
),
|
|
@@ -71985,7 +71995,7 @@ function w4e({
|
|
|
71985
71995
|
let N = [];
|
|
71986
71996
|
e.columnGroups && e.columnGroups.length > 0 ? N = v(e.columnGroups, []) : e.columnHeaders.forEach((_) => {
|
|
71987
71997
|
var R, F, I, A, z, $;
|
|
71988
|
-
const E = n.getColumn(_), M = (R = n.getHeaderGroups()[0]) == null ? void 0 : R.headers.find((
|
|
71998
|
+
const E = n.getColumn(_), M = (R = n.getHeaderGroups()[0]) == null ? void 0 : R.headers.find((H) => H.column.id === _);
|
|
71989
71999
|
N.push(
|
|
71990
72000
|
/* @__PURE__ */ f(
|
|
71991
72001
|
mi,
|
|
@@ -72006,8 +72016,8 @@ function w4e({
|
|
|
72006
72016
|
variant: "ghost",
|
|
72007
72017
|
className: "h-auto flex-shrink-0 p-0 hover:bg-transparent",
|
|
72008
72018
|
onClick: () => {
|
|
72009
|
-
const
|
|
72010
|
-
o(
|
|
72019
|
+
const H = E.getIsSorted();
|
|
72020
|
+
o(H ? H === "asc" ? [{ id: E.id, desc: !0 }] : [] : [{ id: E.id, desc: !1 }]);
|
|
72011
72021
|
},
|
|
72012
72022
|
"aria-label": `Sort ${((F = e.columnDisplayNames) == null ? void 0 : F[_]) || _}`,
|
|
72013
72023
|
children: [
|
|
@@ -72055,8 +72065,8 @@ function w4e({
|
|
|
72055
72065
|
variant: "ghost",
|
|
72056
72066
|
size: "icon",
|
|
72057
72067
|
className: "h-5 w-5 p-0 opacity-0 transition-opacity group-hover/colheader:opacity-100",
|
|
72058
|
-
onClick: (
|
|
72059
|
-
|
|
72068
|
+
onClick: (H) => {
|
|
72069
|
+
H.stopPropagation(), s(_);
|
|
72060
72070
|
},
|
|
72061
72071
|
children: /* @__PURE__ */ f(nh, { className: "h-3 w-3" })
|
|
72062
72072
|
}
|
|
@@ -72083,7 +72093,7 @@ function w4e({
|
|
|
72083
72093
|
});
|
|
72084
72094
|
const C = /* @__PURE__ */ S(yr, { "data-header-type": "metrics", "data-header-row-index": m > 0 ? m + 1 : 0, "data-repeat-header": "true", children: [
|
|
72085
72095
|
m === 0 && (e.groupByColumns && e.groupByColumns.length > 0 ? e.groupByColumns.map((_, E) => {
|
|
72086
|
-
var A, z, $,
|
|
72096
|
+
var A, z, $, H;
|
|
72087
72097
|
const M = (A = n.getHeaderGroups()[0]) == null ? void 0 : A.headers.find((L) => L.column.id === `rowLevel${E}`), R = M == null ? void 0 : M.getSize(), F = `metric-row-${E}`, I = l === F;
|
|
72088
72098
|
return /* @__PURE__ */ f(
|
|
72089
72099
|
mi,
|
|
@@ -72114,7 +72124,7 @@ function w4e({
|
|
|
72114
72124
|
pivotByFields: ((z = t.config) == null ? void 0 : z.pivotByColumns) || [],
|
|
72115
72125
|
currentAggregation: {
|
|
72116
72126
|
rowAggregates: ($ = t.config) == null ? void 0 : $.rowAggregates,
|
|
72117
|
-
columnAggregates: (
|
|
72127
|
+
columnAggregates: (H = t.config) == null ? void 0 : H.columnAggregates
|
|
72118
72128
|
},
|
|
72119
72129
|
onAggregationChange: a,
|
|
72120
72130
|
onOpenChange: (L) => c(L ? F : null)
|
|
@@ -72436,13 +72446,13 @@ function C4e({
|
|
|
72436
72446
|
for (let z = w - 1; z >= 0; z--) {
|
|
72437
72447
|
const $ = k[z].original;
|
|
72438
72448
|
if ($.isSubtotal || $.isGrandTotal) break;
|
|
72439
|
-
let
|
|
72449
|
+
let H = !0;
|
|
72440
72450
|
for (let L = 0; L <= I; L++)
|
|
72441
72451
|
if (C.fieldValues[L] !== $.fieldValues[L]) {
|
|
72442
|
-
|
|
72452
|
+
H = !1;
|
|
72443
72453
|
break;
|
|
72444
72454
|
}
|
|
72445
|
-
if (
|
|
72455
|
+
if (H)
|
|
72446
72456
|
return null;
|
|
72447
72457
|
}
|
|
72448
72458
|
let A = 1;
|
|
@@ -72450,13 +72460,13 @@ function C4e({
|
|
|
72450
72460
|
for (let z = w + 1; z < k.length; z++) {
|
|
72451
72461
|
const $ = k[z].original;
|
|
72452
72462
|
if ($.isSubtotal || $.isGrandTotal) break;
|
|
72453
|
-
let
|
|
72463
|
+
let H = !0;
|
|
72454
72464
|
for (let L = 0; L <= I; L++)
|
|
72455
72465
|
if (C.fieldValues[L] !== $.fieldValues[L]) {
|
|
72456
|
-
|
|
72466
|
+
H = !1;
|
|
72457
72467
|
break;
|
|
72458
72468
|
}
|
|
72459
|
-
if (
|
|
72469
|
+
if (H)
|
|
72460
72470
|
A++;
|
|
72461
72471
|
else
|
|
72462
72472
|
break;
|
|
@@ -72845,7 +72855,7 @@ function vS({
|
|
|
72845
72855
|
onAggregationChange: r,
|
|
72846
72856
|
onAggregationLabelChange: o
|
|
72847
72857
|
}) {
|
|
72848
|
-
var W,
|
|
72858
|
+
var W, j, G;
|
|
72849
72859
|
const i = J((K) => K.themeStyle), { displayPreferences: a, shouldShowElement: s } = qc(), l = a.mode === "table-print", c = Se(null), u = n.showRowTotals ?? !1, { columnSizing: d, onColumnSizingChange: h } = gR({ card: t }), { subtotalColumnKeys: p, grandTotalColumnKeys: m } = be(
|
|
72850
72860
|
() => nEe(e.columnSubtotalMeta),
|
|
72851
72861
|
[e.columnSubtotalMeta]
|
|
@@ -72928,8 +72938,8 @@ function vS({
|
|
|
72928
72938
|
enableColumnResizing: !0,
|
|
72929
72939
|
columnResizeMode: "onChange",
|
|
72930
72940
|
onColumnSizingChange: h
|
|
72931
|
-
}),
|
|
72932
|
-
count: O ?
|
|
72941
|
+
}), H = $.getRowModel().rows, O = !l && H.length > 75, U = bR({
|
|
72942
|
+
count: O ? H.length : 0,
|
|
72933
72943
|
getScrollElement: () => c.current,
|
|
72934
72944
|
estimateSize: () => 32,
|
|
72935
72945
|
overscan: 10
|
|
@@ -72961,7 +72971,7 @@ function vS({
|
|
|
72961
72971
|
onMouseDown: (K) => K.stopPropagation(),
|
|
72962
72972
|
"data-pivot-table": "true",
|
|
72963
72973
|
"data-row-levels": ((W = e.groupByColumns) == null ? void 0 : W.length) || 1,
|
|
72964
|
-
"data-pivot-levels": e.columnGroups && ((G = (
|
|
72974
|
+
"data-pivot-levels": e.columnGroups && ((G = (j = t.config) == null ? void 0 : j.pivotByColumns) == null ? void 0 : G.length) || 0,
|
|
72965
72975
|
children: [
|
|
72966
72976
|
/* @__PURE__ */ f(f0, { className: "sticky top-0 z-20 bg-background", children: q }),
|
|
72967
72977
|
/* @__PURE__ */ f(rp, { children: /* @__PURE__ */ f(
|
|
@@ -73066,10 +73076,10 @@ function D4e({
|
|
|
73066
73076
|
if ((r == null ? void 0 : r.type) === "aggregateTable") {
|
|
73067
73077
|
const $ = _.records.find(
|
|
73068
73078
|
(O) => O.isGrandTotal
|
|
73069
|
-
),
|
|
73079
|
+
), H = _.records.filter(
|
|
73070
73080
|
(O) => !O.isGrandTotal
|
|
73071
73081
|
), L = PW(
|
|
73072
|
-
|
|
73082
|
+
H,
|
|
73073
73083
|
$,
|
|
73074
73084
|
_.groupByColumns || [],
|
|
73075
73085
|
_.pivotSchema || [],
|
|
@@ -73090,8 +73100,8 @@ function D4e({
|
|
|
73090
73100
|
}
|
|
73091
73101
|
);
|
|
73092
73102
|
else if ((r == null ? void 0 : r.type) === "table") {
|
|
73093
|
-
const $ = ((I = (F = r == null ? void 0 : r.preferences) == null ? void 0 : F.tablePrefs) == null ? void 0 : I.columnSettingsMap) || {},
|
|
73094
|
-
(U) =>
|
|
73103
|
+
const $ = ((I = (F = r == null ? void 0 : r.preferences) == null ? void 0 : F.tablePrefs) == null ? void 0 : I.columnSettingsMap) || {}, H = ((z = (A = r == null ? void 0 : r.preferences) == null ? void 0 : A.tablePrefs) == null ? void 0 : z.columnVisibility) || {}, O = Object.keys(_.records[0] || {}).filter(
|
|
73104
|
+
(U) => H[U] !== !1
|
|
73095
73105
|
// undefined or true means visible
|
|
73096
73106
|
);
|
|
73097
73107
|
kEe(
|
|
@@ -73105,10 +73115,10 @@ function D4e({
|
|
|
73105
73115
|
// browserTimezone
|
|
73106
73116
|
);
|
|
73107
73117
|
} else {
|
|
73108
|
-
const $ = [],
|
|
73109
|
-
$.push(
|
|
73118
|
+
const $ = [], H = Object.keys(_.records[0]);
|
|
73119
|
+
$.push(H.join(","));
|
|
73110
73120
|
for (const O of _.records) {
|
|
73111
|
-
const U =
|
|
73121
|
+
const U = H.map((V) => `"${("" + O[V]).replace(/"/g, '""')}"`);
|
|
73112
73122
|
$.push(U.join(","));
|
|
73113
73123
|
}
|
|
73114
73124
|
const L = $.join(`
|
|
@@ -75164,7 +75174,7 @@ function c3e(e = {}) {
|
|
|
75164
75174
|
R.time,
|
|
75165
75175
|
R.frequency,
|
|
75166
75176
|
R.weekdays
|
|
75167
|
-
), { authToken: A, ...z } = t === "DASHBOARD" ? ZM(h) : {}, $ = AW(w || []),
|
|
75177
|
+
), { authToken: A, ...z } = t === "DASHBOARD" ? ZM(h) : {}, $ = AW(w || []), H = {
|
|
75168
75178
|
recipients: R.recipients,
|
|
75169
75179
|
// Send as Recipients object
|
|
75170
75180
|
recipientsString: void 0,
|
|
@@ -75195,10 +75205,10 @@ function c3e(e = {}) {
|
|
|
75195
75205
|
}))
|
|
75196
75206
|
} : R.reportParams || {}
|
|
75197
75207
|
};
|
|
75198
|
-
t && (t === "DASHBOARD" ? (
|
|
75208
|
+
t && (t === "DASHBOARD" ? (H.reportParams || (H.reportParams = {}), H.dashboardParams = {
|
|
75199
75209
|
...z,
|
|
75200
75210
|
filterLine: $
|
|
75201
|
-
}) : t === "VISUAL" && r && (
|
|
75211
|
+
}) : t === "VISUAL" && r && (H.reportParams = {
|
|
75202
75212
|
attachments: [
|
|
75203
75213
|
{
|
|
75204
75214
|
type: "visual",
|
|
@@ -75215,7 +75225,7 @@ function c3e(e = {}) {
|
|
|
75215
75225
|
const L = `${p.apiServiceUrl}/v1/schedules`, O = await Uc(
|
|
75216
75226
|
L,
|
|
75217
75227
|
(h == null ? void 0 : h.accessToken) || "",
|
|
75218
|
-
|
|
75228
|
+
H
|
|
75219
75229
|
);
|
|
75220
75230
|
return We.success("Schedule created successfully!", {
|
|
75221
75231
|
description: `Reports will be sent ${R.frequency} at ${R.time}`
|
|
@@ -75295,7 +75305,7 @@ function u3e({
|
|
|
75295
75305
|
o ? [o] : []
|
|
75296
75306
|
), [g, b] = ee(!1), [y, v] = ee(!1), { currentUser: x } = ri(), w = J((ie) => ie.dashboard), N = be(() => (w == null ? void 0 : w.sheets) || [], [w == null ? void 0 : w.sheets]), C = J((ie) => ie.selectedSheetId), k = N.find((ie) => ie.id === C), [D, _] = ee("daily"), [E, M] = ee("09:00"), [R, F] = ee(
|
|
75297
75307
|
Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
75298
|
-
), [I, A] = ee([1, 2, 3, 4, 5]), [z, $] = ee(/* @__PURE__ */ new Date()), [
|
|
75308
|
+
), [I, A] = ee([1, 2, 3, 4, 5]), [z, $] = ee(/* @__PURE__ */ new Date()), [H, L] = ee(), {
|
|
75299
75309
|
schedules: O,
|
|
75300
75310
|
isLoading: U,
|
|
75301
75311
|
createSchedule: V,
|
|
@@ -75365,7 +75375,7 @@ function u3e({
|
|
|
75365
75375
|
}, [e]);
|
|
75366
75376
|
const W = (ie) => {
|
|
75367
75377
|
m(ie), b(!1);
|
|
75368
|
-
},
|
|
75378
|
+
}, j = (ie) => {
|
|
75369
75379
|
m(p.filter((me, Te) => Te !== ie));
|
|
75370
75380
|
}, G = (ie, me) => {
|
|
75371
75381
|
const Te = [...p];
|
|
@@ -75388,7 +75398,7 @@ function u3e({
|
|
|
75388
75398
|
timezone: R,
|
|
75389
75399
|
weekdays: D === "weekly" ? I : void 0,
|
|
75390
75400
|
startDate: ac(z, "yyyy-MM-dd"),
|
|
75391
|
-
endDate:
|
|
75401
|
+
endDate: H ? ac(H, "yyyy-MM-dd") : void 0,
|
|
75392
75402
|
reportParams: {
|
|
75393
75403
|
attachments: p.map((ie) => ({
|
|
75394
75404
|
type: ie.type,
|
|
@@ -75492,7 +75502,7 @@ function u3e({
|
|
|
75492
75502
|
Z4e,
|
|
75493
75503
|
{
|
|
75494
75504
|
attachments: p,
|
|
75495
|
-
onRemove:
|
|
75505
|
+
onRemove: j,
|
|
75496
75506
|
onUpdate: G
|
|
75497
75507
|
}
|
|
75498
75508
|
) : /* @__PURE__ */ f("div", { className: "rounded-lg border-2 border-dashed p-4 text-center text-sm text-muted-foreground", children: "No attachments selected" })
|
|
@@ -75616,11 +75626,11 @@ function u3e({
|
|
|
75616
75626
|
variant: "outline",
|
|
75617
75627
|
className: X(
|
|
75618
75628
|
"w-full justify-start text-left font-normal",
|
|
75619
|
-
!
|
|
75629
|
+
!H && "text-muted-foreground"
|
|
75620
75630
|
),
|
|
75621
75631
|
children: [
|
|
75622
75632
|
/* @__PURE__ */ f(Mo, { className: "mr-2 h-4 w-4" }),
|
|
75623
|
-
|
|
75633
|
+
H ? ac(H, "PPP") : "No end date"
|
|
75624
75634
|
]
|
|
75625
75635
|
}
|
|
75626
75636
|
) }),
|
|
@@ -75628,7 +75638,7 @@ function u3e({
|
|
|
75628
75638
|
hw,
|
|
75629
75639
|
{
|
|
75630
75640
|
mode: "single",
|
|
75631
|
-
selected:
|
|
75641
|
+
selected: H,
|
|
75632
75642
|
onSelect: L,
|
|
75633
75643
|
disabled: (ie) => ie <= z,
|
|
75634
75644
|
initialFocus: !0
|
|
@@ -75718,7 +75728,7 @@ function UG({
|
|
|
75718
75728
|
(ie) => ie.actions
|
|
75719
75729
|
), $ = e.cards.find(
|
|
75720
75730
|
(ie) => ie.id === e.activeCardId
|
|
75721
|
-
), { handleEditVisual:
|
|
75731
|
+
), { handleEditVisual: H, card: L, data: O } = Pke(e), { cardFilterValues: U } = TT((L == null ? void 0 : L.id) || ""), { permissions: V } = Bke(), P = J(
|
|
75722
75732
|
(ie) => ie.inlineFilterValuesMap[(L == null ? void 0 : L.id) || ""]
|
|
75723
75733
|
), Y = [
|
|
75724
75734
|
...U || [],
|
|
@@ -75735,7 +75745,7 @@ function UG({
|
|
|
75735
75745
|
}, 300);
|
|
75736
75746
|
}, W = () => {
|
|
75737
75747
|
s(!1), D.current && clearTimeout(D.current);
|
|
75738
|
-
},
|
|
75748
|
+
}, j = async () => {
|
|
75739
75749
|
if (!g) return;
|
|
75740
75750
|
u(!1), b(""), v(!1);
|
|
75741
75751
|
const ie = We.loading(
|
|
@@ -75957,7 +75967,7 @@ function UG({
|
|
|
75957
75967
|
size: "sm",
|
|
75958
75968
|
className: "h-6 w-6 p-0 transition-colors hover:bg-primary hover:text-primary-foreground",
|
|
75959
75969
|
onClick: (ie) => {
|
|
75960
|
-
ie.stopPropagation(),
|
|
75970
|
+
ie.stopPropagation(), H();
|
|
75961
75971
|
},
|
|
75962
75972
|
disabled: !1,
|
|
75963
75973
|
title: "Edit Visual",
|
|
@@ -75990,7 +76000,7 @@ function UG({
|
|
|
75990
76000
|
placeholder: "Enter password",
|
|
75991
76001
|
className: "pr-10",
|
|
75992
76002
|
onKeyDown: (ie) => {
|
|
75993
|
-
ie.key === "Enter" && g &&
|
|
76003
|
+
ie.key === "Enter" && g && j();
|
|
75994
76004
|
}
|
|
75995
76005
|
}
|
|
75996
76006
|
),
|
|
@@ -76019,7 +76029,7 @@ function UG({
|
|
|
76019
76029
|
/* @__PURE__ */ f(
|
|
76020
76030
|
se,
|
|
76021
76031
|
{
|
|
76022
|
-
onClick:
|
|
76032
|
+
onClick: j,
|
|
76023
76033
|
disabled: !g || E,
|
|
76024
76034
|
children: "Download"
|
|
76025
76035
|
}
|
|
@@ -77046,7 +77056,7 @@ function B3e({
|
|
|
77046
77056
|
data: t,
|
|
77047
77057
|
isPending: n
|
|
77048
77058
|
}) {
|
|
77049
|
-
var C, k, D, _, E, M, R, F, I, A, z, $,
|
|
77059
|
+
var C, k, D, _, E, M, R, F, I, A, z, $, H, L, O, U, V, P, Y, B, q, W, j, G, K, re, Z, ne, ae, de, ie, me, Te, le, xe, fe, Ee, De, it, tt, ue, Ne, qe, ve;
|
|
77050
77060
|
const r = e.config, { setTitle: o, isEditable: i, isVisualEditing: a } = tK(e), { setCardDescription: s } = Sr(), { getCurrency: l, getLocale: c } = xS(e), u = (r == null ? void 0 : r.metricColumns) || [], d = (D = (k = (C = e.preferences) == null ? void 0 : C.kpiVisualOptions) == null ? void 0 : k.metricComparison) == null ? void 0 : D.enabled, h = (Ae, Ue = !1) => {
|
|
77051
77061
|
var Bt, Ge, Qe, xt, Je, at, Me, Pe, ze, Ke, ht, sn, Kt, ln;
|
|
77052
77062
|
const Ze = (Ge = (Bt = e.preferences) == null ? void 0 : Bt.formatNumber) == null ? void 0 : Ge.enabled, Be = (xt = (Qe = e.preferences) == null ? void 0 : Qe.kpiVisualOptions) == null ? void 0 : xt.formatOptions;
|
|
@@ -77132,7 +77142,7 @@ function B3e({
|
|
|
77132
77142
|
{
|
|
77133
77143
|
primaryValue: g,
|
|
77134
77144
|
secondaryValue: b,
|
|
77135
|
-
comparisonConfig: ((
|
|
77145
|
+
comparisonConfig: ((H = ($ = e.preferences) == null ? void 0 : $.kpiVisualOptions) == null ? void 0 : H.metricComparison) || {},
|
|
77136
77146
|
locale: c() || "en-US",
|
|
77137
77147
|
currency: l(),
|
|
77138
77148
|
decimalPlaces: (O = (L = e.preferences) == null ? void 0 : L.formatNumber) == null ? void 0 : O.decimalPlaces,
|
|
@@ -77162,7 +77172,7 @@ function B3e({
|
|
|
77162
77172
|
{
|
|
77163
77173
|
primaryValue: g,
|
|
77164
77174
|
secondaryValue: b,
|
|
77165
|
-
comparisonConfig: ((
|
|
77175
|
+
comparisonConfig: ((j = (W = e.preferences) == null ? void 0 : W.kpiVisualOptions) == null ? void 0 : j.metricComparison) || {},
|
|
77166
77176
|
locale: c() || "en-US",
|
|
77167
77177
|
currency: l(),
|
|
77168
77178
|
decimalPlaces: (K = (G = e.preferences) == null ? void 0 : G.formatNumber) == null ? void 0 : K.decimalPlaces,
|
|
@@ -77215,7 +77225,7 @@ function V3e({
|
|
|
77215
77225
|
data: t,
|
|
77216
77226
|
isPending: n
|
|
77217
77227
|
}) {
|
|
77218
|
-
var L, O, U, V, P, Y, B, q, W,
|
|
77228
|
+
var L, O, U, V, P, Y, B, q, W, j, G, K, re, Z, ne, ae;
|
|
77219
77229
|
const { setTitle: r, isEditable: o, isVisualEditing: i } = tK(e), { setCardDescription: a, setLowerIsBetter: s } = Sr(), { getCurrency: l, getLocale: c } = xS(e), u = (O = (L = e.preferences) == null ? void 0 : L.kpiVisualOptions) == null ? void 0 : O.countryLogoId, d = be(
|
|
77220
77230
|
() => S3e.find((de) => de.id === u),
|
|
77221
77231
|
[u]
|
|
@@ -77243,7 +77253,7 @@ function V3e({
|
|
|
77243
77253
|
(me) => me.segment === de || me.Segment === de
|
|
77244
77254
|
);
|
|
77245
77255
|
return (ie == null ? void 0 : ie.value) || (ie == null ? void 0 : ie.Value) || 0;
|
|
77246
|
-
}, v = y("current"), x = y("comparison"), w = ((U = e.config) == null ? void 0 : U.comparisonType) || "none", N = (P = (V = e.preferences) == null ? void 0 : V.kpiVisualOptions) == null ? void 0 : P.lowerIsBetter, C = (B = (Y = e.preferences) == null ? void 0 : Y.kpiVisualOptions) == null ? void 0 : B.metricComparison, k = p && w !== "none" && x !== 0 && (C == null ? void 0 : C.enabled) !== !1, D = (q = e.config) == null ? void 0 : q.targetValue, _ = typeof v == "number" && !isNaN(v) ? v : 0, E = typeof D == "number" && !isNaN(D) ? D : 0, M = E > 0 ? Math.min(_ / E, 1) : 0, R = E > 0 ? Math.max(E - _, 0) : 0, F = E > 0 ? Math.max(_ - E, 0) : 0, I = p && w === "target" && E > 0, A = p && (w === "previous_period" || w === "same_period_last_year"), z = (
|
|
77256
|
+
}, v = y("current"), x = y("comparison"), w = ((U = e.config) == null ? void 0 : U.comparisonType) || "none", N = (P = (V = e.preferences) == null ? void 0 : V.kpiVisualOptions) == null ? void 0 : P.lowerIsBetter, C = (B = (Y = e.preferences) == null ? void 0 : Y.kpiVisualOptions) == null ? void 0 : B.metricComparison, k = p && w !== "none" && x !== 0 && (C == null ? void 0 : C.enabled) !== !1, D = (q = e.config) == null ? void 0 : q.targetValue, _ = typeof v == "number" && !isNaN(v) ? v : 0, E = typeof D == "number" && !isNaN(D) ? D : 0, M = E > 0 ? Math.min(_ / E, 1) : 0, R = E > 0 ? Math.max(E - _, 0) : 0, F = E > 0 ? Math.max(_ - E, 0) : 0, I = p && w === "target" && E > 0, A = p && (w === "previous_period" || w === "same_period_last_year"), z = (j = (W = e.preferences) == null ? void 0 : W.formatNumber) == null ? void 0 : j.colorRanges, $ = z1(v, z);
|
|
77247
77257
|
if (n) {
|
|
77248
77258
|
const de = e.description;
|
|
77249
77259
|
return /* @__PURE__ */ S(Qi, { className: "grow border-none shadow-none", children: [
|
|
@@ -77257,7 +77267,7 @@ function V3e({
|
|
|
77257
77267
|
] }) })
|
|
77258
77268
|
] });
|
|
77259
77269
|
}
|
|
77260
|
-
function
|
|
77270
|
+
function H() {
|
|
77261
77271
|
return e.title ? e.title : o ? "Enter title" : "";
|
|
77262
77272
|
}
|
|
77263
77273
|
return /* @__PURE__ */ f(Xn, { children: /* @__PURE__ */ S(
|
|
@@ -77272,7 +77282,7 @@ function V3e({
|
|
|
77272
77282
|
{
|
|
77273
77283
|
displayClassName: "text-sm font-medium text-gray-900 dark:text-gray-100",
|
|
77274
77284
|
inputClassName: "text-sm font-medium text-gray-900 dark:text-gray-100",
|
|
77275
|
-
value:
|
|
77285
|
+
value: H(),
|
|
77276
77286
|
isEditable: o,
|
|
77277
77287
|
onSave: r
|
|
77278
77288
|
}
|
|
@@ -77387,7 +77397,7 @@ function j3e({
|
|
|
77387
77397
|
isPending: n,
|
|
77388
77398
|
isError: r
|
|
77389
77399
|
}) {
|
|
77390
|
-
var k, D, _, E, M, R, F, I, A, z, $,
|
|
77400
|
+
var k, D, _, E, M, R, F, I, A, z, $, H, L, O, U, V, P, Y;
|
|
77391
77401
|
const o = J((B) => B.actions.setCardTitle), i = J(
|
|
77392
77402
|
(B) => B.actions.setCardDescription
|
|
77393
77403
|
), a = J((B) => B.isVisualEditing), s = Oe((B) => B.card), l = Oe((B) => B.actions.setCard);
|
|
@@ -77418,7 +77428,7 @@ function j3e({
|
|
|
77418
77428
|
let N = "";
|
|
77419
77429
|
g && (N = To({
|
|
77420
77430
|
number: g,
|
|
77421
|
-
decimalPlaces: ((
|
|
77431
|
+
decimalPlaces: ((H = ($ = e.preferences) == null ? void 0 : $.formatNumber) == null ? void 0 : H.decimalPlaces) || 0,
|
|
77422
77432
|
useSuffix: !!((O = (L = e.preferences) == null ? void 0 : L.formatNumber) != null && O.suffix),
|
|
77423
77433
|
customSuffix: ((V = (U = e.preferences) == null ? void 0 : U.formatNumber) == null ? void 0 : V.suffix) || "",
|
|
77424
77434
|
locale: u() || "",
|
|
@@ -77847,7 +77857,7 @@ function H3({
|
|
|
77847
77857
|
return p == null ? void 0 : p.filter(
|
|
77848
77858
|
(xe) => (le == null ? void 0 : le.some((fe) => fe.id === xe.filterId)) || xe.filterId.endsWith(b)
|
|
77849
77859
|
);
|
|
77850
|
-
})(),
|
|
77860
|
+
})(), H = ($ == null ? void 0 : $.map((le) => {
|
|
77851
77861
|
const xe = m == null ? void 0 : m.find((fe) => fe.id === le.filterId);
|
|
77852
77862
|
return {
|
|
77853
77863
|
filterId: le.filterId,
|
|
@@ -77859,9 +77869,9 @@ function H3({
|
|
|
77859
77869
|
isDateFilter: gs((xe == null ? void 0 : xe.dataType) || "")
|
|
77860
77870
|
};
|
|
77861
77871
|
})) || [], L = U6(e || ""), O = (i == null ? void 0 : i.length) || 0;
|
|
77862
|
-
if (!u &&
|
|
77872
|
+
if (!u && H.length === 0 && L.length === 0 && n === 0 && O === 0)
|
|
77863
77873
|
return null;
|
|
77864
|
-
const U =
|
|
77874
|
+
const U = H.length + L.length + n + O;
|
|
77865
77875
|
function V(le) {
|
|
77866
77876
|
return le instanceof Date ? ar(le, E, "MM/dd/yyyy") : le;
|
|
77867
77877
|
}
|
|
@@ -77872,7 +77882,7 @@ function H3({
|
|
|
77872
77882
|
xe && x(xe), v(le.filterId);
|
|
77873
77883
|
}
|
|
77874
77884
|
function Y(le) {
|
|
77875
|
-
|
|
77885
|
+
H.filter(
|
|
77876
77886
|
(fe) => fe.fieldName === le
|
|
77877
77887
|
).forEach((fe) => {
|
|
77878
77888
|
P(fe);
|
|
@@ -77889,7 +77899,7 @@ function H3({
|
|
|
77889
77899
|
function W() {
|
|
77890
77900
|
N([]), w([]), z(), e && u && R(e), q();
|
|
77891
77901
|
}
|
|
77892
|
-
function
|
|
77902
|
+
function j(le) {
|
|
77893
77903
|
function xe() {
|
|
77894
77904
|
return le.values.map((Ee, De) => /* @__PURE__ */ f(
|
|
77895
77905
|
He,
|
|
@@ -78233,9 +78243,9 @@ function H3({
|
|
|
78233
78243
|
] }) }),
|
|
78234
78244
|
/* @__PURE__ */ S("div", { className: "space-y-2.5 p-3", children: [
|
|
78235
78245
|
/* @__PURE__ */ S("div", { className: "max-h-[280px] space-y-2.5 overflow-y-auto", children: [
|
|
78236
|
-
|
|
78246
|
+
H.length > 0 && /* @__PURE__ */ S("div", { className: "space-y-1.5", children: [
|
|
78237
78247
|
/* @__PURE__ */ f("span", { className: "text-xs font-medium text-muted-foreground", children: "Dashboard Filters" }),
|
|
78238
|
-
/* @__PURE__ */ f("div", { className: "space-y-1.5", children:
|
|
78248
|
+
/* @__PURE__ */ f("div", { className: "space-y-1.5", children: H == null ? void 0 : H.map((le) => /* @__PURE__ */ f("div", { children: j(le) }, le.filterId)) })
|
|
78239
78249
|
] }),
|
|
78240
78250
|
/* @__PURE__ */ f(Y3e, { cardId: e }),
|
|
78241
78251
|
ae(),
|
|
@@ -78856,7 +78866,7 @@ function r$e({
|
|
|
78856
78866
|
return;
|
|
78857
78867
|
}
|
|
78858
78868
|
const R = N[0], I = Object.keys(n[0]).filter(
|
|
78859
|
-
(
|
|
78869
|
+
(H) => H !== D
|
|
78860
78870
|
)[a], z = (I ? (y = n == null ? void 0 : n[s]) == null ? void 0 : y[I] : (v = n == null ? void 0 : n[s]) == null ? void 0 : v[M.label]) ?? l, $ = [
|
|
78861
78871
|
{ field: _, operator: "=", value: E }
|
|
78862
78872
|
];
|
|
@@ -79180,7 +79190,7 @@ function G3({ card: e, frame: t }) {
|
|
|
79180
79190
|
position: null,
|
|
79181
79191
|
interactions: [],
|
|
79182
79192
|
context: null
|
|
79183
|
-
}), { breadcrumbs: $, hierarchyId:
|
|
79193
|
+
}), { breadcrumbs: $, hierarchyId: H } = jt(
|
|
79184
79194
|
(ve) => {
|
|
79185
79195
|
var Ae, Ue;
|
|
79186
79196
|
return {
|
|
@@ -79194,7 +79204,7 @@ function G3({ card: e, frame: t }) {
|
|
|
79194
79204
|
mode: "drillUp",
|
|
79195
79205
|
trigger: (St = ve[0]) == null ? void 0 : St.trigger,
|
|
79196
79206
|
label: "Drill Up",
|
|
79197
|
-
hierarchyId:
|
|
79207
|
+
hierarchyId: H
|
|
79198
79208
|
}] : [], Be = [];
|
|
79199
79209
|
for (const Bt of ve)
|
|
79200
79210
|
if (Bt.mode === "dynamicDrill" && Bt.availableFields) {
|
|
@@ -79306,7 +79316,7 @@ function G3({ card: e, frame: t }) {
|
|
|
79306
79316
|
position: { x: ve.clientX, y: ve.clientY }
|
|
79307
79317
|
});
|
|
79308
79318
|
}
|
|
79309
|
-
function
|
|
79319
|
+
function j() {
|
|
79310
79320
|
var ve, Ae, Ue;
|
|
79311
79321
|
if (n && n.length > 0) {
|
|
79312
79322
|
const Ze = n.find((Be) => Be.cardId === e.id);
|
|
@@ -79721,7 +79731,7 @@ function G3({ card: e, frame: t }) {
|
|
|
79721
79731
|
className: X(ne && ae ? "flex h-full flex-col" : ne && !ae ? "flex h-full flex-col overflow-hidden" : !ne && !ae ? "h-full" : "h-full overflow-auto", {
|
|
79722
79732
|
"animate-pulse": C || k
|
|
79723
79733
|
}),
|
|
79724
|
-
children:
|
|
79734
|
+
children: j()
|
|
79725
79735
|
}
|
|
79726
79736
|
),
|
|
79727
79737
|
(C || k) && (E == null ? void 0 : E.records) && E.records.length > 0 && /* @__PURE__ */ f("div", { className: "absolute inset-0 z-20 flex items-center justify-center bg-background/50", children: /* @__PURE__ */ f($d, { size: "md", color: "muted", "aria-label": "Loading data" }) })
|
|
@@ -84154,7 +84164,7 @@ const fI = /* @__PURE__ */ Aa(function(t) {
|
|
|
84154
84164
|
data: (at = M == null ? void 0 : M.data) != null ? at : KLe,
|
|
84155
84165
|
rect: R
|
|
84156
84166
|
} : null;
|
|
84157
|
-
}, [k, M]), I = Se(null), [A, z] = ee(null), [$,
|
|
84167
|
+
}, [k, M]), I = Se(null), [A, z] = ee(null), [$, H] = ee(null), L = nb(m, Object.values(m)), O = D0("DndDescribedBy", a), U = be(() => E.getEnabled(), [E]), V = e6e(h), {
|
|
84158
84168
|
droppableRects: P,
|
|
84159
84169
|
measureDroppableContainers: Y,
|
|
84160
84170
|
measuringScheduled: B
|
|
@@ -84162,10 +84172,10 @@ const fI = /* @__PURE__ */ Aa(function(t) {
|
|
|
84162
84172
|
dragging: C,
|
|
84163
84173
|
dependencies: [_.x, _.y],
|
|
84164
84174
|
config: V.droppable
|
|
84165
|
-
}), q = OLe(D, k), W = be(() => $ ? kw($) : null, [$]),
|
|
84175
|
+
}), q = OLe(D, k), W = be(() => $ ? kw($) : null, [$]), j = Je(), G = LLe(q, V.draggable.measure);
|
|
84166
84176
|
t6e({
|
|
84167
84177
|
activeNode: k != null ? D.get(k) : null,
|
|
84168
|
-
config:
|
|
84178
|
+
config: j.layoutShiftCompensation,
|
|
84169
84179
|
initialRect: G,
|
|
84170
84180
|
measure: V.draggable.measure
|
|
84171
84181
|
});
|
|
@@ -84281,7 +84291,7 @@ const fI = /* @__PURE__ */ Aa(function(t) {
|
|
|
84281
84291
|
}), v({
|
|
84282
84292
|
type: "onDragStart",
|
|
84283
84293
|
event: lu
|
|
84284
|
-
}), z(Re.current),
|
|
84294
|
+
}), z(Re.current), H(ht);
|
|
84285
84295
|
});
|
|
84286
84296
|
},
|
|
84287
84297
|
onMove(ln) {
|
|
@@ -84318,7 +84328,7 @@ const fI = /* @__PURE__ */ Aa(function(t) {
|
|
|
84318
84328
|
I.current = null, q0(() => {
|
|
84319
84329
|
y({
|
|
84320
84330
|
type: ln
|
|
84321
|
-
}), N(Wl.Uninitialized), Ze(null), z(null),
|
|
84331
|
+
}), N(Wl.Uninitialized), Ze(null), z(null), H(null), Re.current = null;
|
|
84322
84332
|
const cu = ln === Ar.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
84323
84333
|
if (za) {
|
|
84324
84334
|
const Zp = L.current[cu];
|
|
@@ -84439,7 +84449,7 @@ const fI = /* @__PURE__ */ Aa(function(t) {
|
|
|
84439
84449
|
translated: qe
|
|
84440
84450
|
};
|
|
84441
84451
|
}, [F, q, ve, qe, D, de, ie, P, E, Ue, xe, Ne]), ILe({
|
|
84442
|
-
...
|
|
84452
|
+
...j,
|
|
84443
84453
|
delta: _,
|
|
84444
84454
|
draggingRect: qe,
|
|
84445
84455
|
pointerCoordinates: De,
|
|
@@ -85213,7 +85223,7 @@ function pI(e) {
|
|
|
85213
85223
|
setNodeRef: A,
|
|
85214
85224
|
listeners: z,
|
|
85215
85225
|
isDragging: $,
|
|
85216
|
-
over:
|
|
85226
|
+
over: H,
|
|
85217
85227
|
setActivatorNodeRef: L,
|
|
85218
85228
|
transform: O
|
|
85219
85229
|
} = o6e({
|
|
@@ -85230,7 +85240,7 @@ function pI(e) {
|
|
|
85230
85240
|
activeIndex: h,
|
|
85231
85241
|
overIndex: b,
|
|
85232
85242
|
index: w
|
|
85233
|
-
}) : null,
|
|
85243
|
+
}) : null, j = av(h) && av(b) ? i({
|
|
85234
85244
|
id: a,
|
|
85235
85245
|
items: u,
|
|
85236
85246
|
activeIndex: h,
|
|
@@ -85238,7 +85248,7 @@ function pI(e) {
|
|
|
85238
85248
|
}) : w, G = M == null ? void 0 : M.id, K = Se({
|
|
85239
85249
|
activeId: G,
|
|
85240
85250
|
items: u,
|
|
85241
|
-
newIndex:
|
|
85251
|
+
newIndex: j,
|
|
85242
85252
|
containerId: d
|
|
85243
85253
|
}), re = u !== K.current.items, Z = t({
|
|
85244
85254
|
active: M,
|
|
@@ -85260,8 +85270,8 @@ function pI(e) {
|
|
|
85260
85270
|
rect: k
|
|
85261
85271
|
});
|
|
85262
85272
|
return pe(() => {
|
|
85263
|
-
V && K.current.newIndex !==
|
|
85264
|
-
}, [V,
|
|
85273
|
+
V && K.current.newIndex !== j && (K.current.newIndex = j), d !== K.current.containerId && (K.current.containerId = d), u !== K.current.items && (K.current.items = u);
|
|
85274
|
+
}, [V, j, d, u]), pe(() => {
|
|
85265
85275
|
if (G === K.current.activeId)
|
|
85266
85276
|
return;
|
|
85267
85277
|
if (G != null && K.current.activeId == null) {
|
|
@@ -85279,7 +85289,7 @@ function pI(e) {
|
|
|
85279
85289
|
data: N,
|
|
85280
85290
|
rect: k,
|
|
85281
85291
|
index: w,
|
|
85282
|
-
newIndex:
|
|
85292
|
+
newIndex: j,
|
|
85283
85293
|
items: u,
|
|
85284
85294
|
isOver: _,
|
|
85285
85295
|
isSorting: V,
|
|
@@ -85287,7 +85297,7 @@ function pI(e) {
|
|
|
85287
85297
|
listeners: z,
|
|
85288
85298
|
node: D,
|
|
85289
85299
|
overIndex: b,
|
|
85290
|
-
over:
|
|
85300
|
+
over: H,
|
|
85291
85301
|
setNodeRef: U,
|
|
85292
85302
|
setActivatorNodeRef: L,
|
|
85293
85303
|
setDroppableNodeRef: E,
|
|
@@ -85778,7 +85788,7 @@ var bm = '[cmdk-group=""]', N2 = '[cmdk-group-items=""]', Z6e = '[cmdk-group-hea
|
|
|
85778
85788
|
C(6, F);
|
|
85779
85789
|
}, []);
|
|
85780
85790
|
let k = T.useMemo(() => ({ subscribe: (V) => (a.current.add(V), () => a.current.delete(V)), snapshot: () => n.current, setState: (V, P, Y) => {
|
|
85781
|
-
var B, q, W,
|
|
85791
|
+
var B, q, W, j;
|
|
85782
85792
|
if (!Object.is(n.current[V], P)) {
|
|
85783
85793
|
if (n.current[V] = P, V === "search") R(), E(), C(1, M);
|
|
85784
85794
|
else if (V === "value") {
|
|
@@ -85791,7 +85801,7 @@ var bm = '[cmdk-group=""]', N2 = '[cmdk-group-items=""]', Z6e = '[cmdk-group-hea
|
|
|
85791
85801
|
n.current.selectedItemId = (G = I()) == null ? void 0 : G.id, k.emit();
|
|
85792
85802
|
}), Y || C(5, F), ((q = s.current) == null ? void 0 : q.value) !== void 0) {
|
|
85793
85803
|
let G = P ?? "";
|
|
85794
|
-
(
|
|
85804
|
+
(j = (W = s.current).onValueChange) == null || j.call(W, G);
|
|
85795
85805
|
return;
|
|
85796
85806
|
}
|
|
85797
85807
|
}
|
|
@@ -85825,16 +85835,16 @@ var bm = '[cmdk-group=""]', N2 = '[cmdk-group-items=""]', Z6e = '[cmdk-group-hea
|
|
|
85825
85835
|
let V = n.current.filtered.items, P = [];
|
|
85826
85836
|
n.current.filtered.groups.forEach((B) => {
|
|
85827
85837
|
let q = o.current.get(B), W = 0;
|
|
85828
|
-
q.forEach((
|
|
85829
|
-
let G = V.get(
|
|
85838
|
+
q.forEach((j) => {
|
|
85839
|
+
let G = V.get(j);
|
|
85830
85840
|
W = Math.max(G, W);
|
|
85831
85841
|
}), P.push([B, W]);
|
|
85832
85842
|
});
|
|
85833
85843
|
let Y = N.current;
|
|
85834
85844
|
A().sort((B, q) => {
|
|
85835
|
-
var W,
|
|
85845
|
+
var W, j;
|
|
85836
85846
|
let G = B.getAttribute("id"), K = q.getAttribute("id");
|
|
85837
|
-
return ((W = V.get(K)) != null ? W : 0) - ((
|
|
85847
|
+
return ((W = V.get(K)) != null ? W : 0) - ((j = V.get(G)) != null ? j : 0);
|
|
85838
85848
|
}).forEach((B) => {
|
|
85839
85849
|
let q = B.closest(N2);
|
|
85840
85850
|
q ? q.appendChild(B.parentElement === q ? B : B.closest(`${N2} > *`)) : Y.appendChild(B.parentElement === Y ? B : B.closest(`${N2} > *`));
|
|
@@ -85857,10 +85867,10 @@ var bm = '[cmdk-group=""]', N2 = '[cmdk-group-items=""]', Z6e = '[cmdk-group-hea
|
|
|
85857
85867
|
n.current.filtered.groups = /* @__PURE__ */ new Set();
|
|
85858
85868
|
let q = 0;
|
|
85859
85869
|
for (let W of r.current) {
|
|
85860
|
-
let
|
|
85870
|
+
let j = (P = (V = i.current.get(W)) == null ? void 0 : V.value) != null ? P : "", G = (B = (Y = i.current.get(W)) == null ? void 0 : Y.keywords) != null ? B : [], K = _(j, G);
|
|
85861
85871
|
n.current.filtered.items.set(W, K), K > 0 && q++;
|
|
85862
85872
|
}
|
|
85863
|
-
for (let [W,
|
|
85873
|
+
for (let [W, j] of o.current) for (let G of j) if (n.current.filtered.items.get(G) > 0) {
|
|
85864
85874
|
n.current.filtered.groups.add(W);
|
|
85865
85875
|
break;
|
|
85866
85876
|
}
|
|
@@ -85885,18 +85895,18 @@ var bm = '[cmdk-group=""]', N2 = '[cmdk-group-items=""]', Z6e = '[cmdk-group-hea
|
|
|
85885
85895
|
}
|
|
85886
85896
|
function $(V) {
|
|
85887
85897
|
var P;
|
|
85888
|
-
let Y = I(), B = A(), q = B.findIndex((
|
|
85898
|
+
let Y = I(), B = A(), q = B.findIndex((j) => j === Y), W = B[q + V];
|
|
85889
85899
|
(P = s.current) != null && P.loop && (W = q + V < 0 ? B[B.length - 1] : q + V === B.length ? B[0] : B[q + V]), W && k.setState("value", W.getAttribute(Ff));
|
|
85890
85900
|
}
|
|
85891
|
-
function
|
|
85901
|
+
function H(V) {
|
|
85892
85902
|
let P = I(), Y = P == null ? void 0 : P.closest(bm), B;
|
|
85893
85903
|
for (; Y && !B; ) Y = V > 0 ? a8e(Y, bm) : s8e(Y, bm), B = Y == null ? void 0 : Y.querySelector(f$);
|
|
85894
85904
|
B ? k.setState("value", B.getAttribute(Ff)) : $(V);
|
|
85895
85905
|
}
|
|
85896
85906
|
let L = () => z(A().length - 1), O = (V) => {
|
|
85897
|
-
V.preventDefault(), V.metaKey ? L() : V.altKey ?
|
|
85907
|
+
V.preventDefault(), V.metaKey ? L() : V.altKey ? H(1) : $(1);
|
|
85898
85908
|
}, U = (V) => {
|
|
85899
|
-
V.preventDefault(), V.metaKey ? z(0) : V.altKey ?
|
|
85909
|
+
V.preventDefault(), V.metaKey ? z(0) : V.altKey ? H(-1) : $(-1);
|
|
85900
85910
|
};
|
|
85901
85911
|
return T.createElement(Xe.div, { ref: t, tabIndex: -1, ...y, "cmdk-root": "", onKeyDown: (V) => {
|
|
85902
85912
|
var P;
|
|
@@ -86450,7 +86460,7 @@ function m8e({
|
|
|
86450
86460
|
$ && ($.dataType === "date" || $.dataType === "timestamp") && (I = $);
|
|
86451
86461
|
} else if (F.type === "metric") {
|
|
86452
86462
|
const $ = (z = (A = n.config) == null ? void 0 : A.groupByColumns) == null ? void 0 : z.find(
|
|
86453
|
-
(
|
|
86463
|
+
(H) => H.dataType === "date" || H.dataType === "timestamp"
|
|
86454
86464
|
);
|
|
86455
86465
|
$ && (I = $);
|
|
86456
86466
|
}
|
|
@@ -86496,10 +86506,10 @@ function m8e({
|
|
|
86496
86506
|
steps: A
|
|
86497
86507
|
};
|
|
86498
86508
|
if (o) {
|
|
86499
|
-
const $ = b.findIndex((
|
|
86509
|
+
const $ = b.findIndex((H) => H.id === R.id);
|
|
86500
86510
|
if ($ >= 0) {
|
|
86501
|
-
const
|
|
86502
|
-
|
|
86511
|
+
const H = [...b];
|
|
86512
|
+
H[$] = z, o(H);
|
|
86503
86513
|
} else
|
|
86504
86514
|
o([...b, z]);
|
|
86505
86515
|
}
|
|
@@ -86522,10 +86532,10 @@ function m8e({
|
|
|
86522
86532
|
steps: A
|
|
86523
86533
|
};
|
|
86524
86534
|
if (o) {
|
|
86525
|
-
const $ = b.findIndex((
|
|
86535
|
+
const $ = b.findIndex((H) => H.id === R.id);
|
|
86526
86536
|
if ($ >= 0) {
|
|
86527
|
-
const
|
|
86528
|
-
|
|
86537
|
+
const H = [...b];
|
|
86538
|
+
H[$] = z, o(H);
|
|
86529
86539
|
} else
|
|
86530
86540
|
o([...b, z]);
|
|
86531
86541
|
}
|
|
@@ -86632,23 +86642,23 @@ function m8e({
|
|
|
86632
86642
|
dt,
|
|
86633
86643
|
{
|
|
86634
86644
|
value: z,
|
|
86635
|
-
onValueChange: (
|
|
86645
|
+
onValueChange: (H) => {
|
|
86636
86646
|
_(
|
|
86637
86647
|
x,
|
|
86638
86648
|
F,
|
|
86639
|
-
|
|
86649
|
+
H
|
|
86640
86650
|
);
|
|
86641
86651
|
},
|
|
86642
86652
|
children: [
|
|
86643
86653
|
/* @__PURE__ */ f(lt, { className: "h-8 text-xs", children: /* @__PURE__ */ f(mt, {}) }),
|
|
86644
|
-
/* @__PURE__ */ f(ct, { children: A.map((
|
|
86654
|
+
/* @__PURE__ */ f(ct, { children: A.map((H) => /* @__PURE__ */ f(
|
|
86645
86655
|
we,
|
|
86646
86656
|
{
|
|
86647
|
-
value:
|
|
86657
|
+
value: H.value,
|
|
86648
86658
|
className: "text-xs",
|
|
86649
|
-
children:
|
|
86659
|
+
children: H.label
|
|
86650
86660
|
},
|
|
86651
|
-
|
|
86661
|
+
H.value
|
|
86652
86662
|
)) })
|
|
86653
86663
|
]
|
|
86654
86664
|
}
|
|
@@ -86659,11 +86669,11 @@ function m8e({
|
|
|
86659
86669
|
{
|
|
86660
86670
|
placeholder: "Enter custom format (e.g., YYYY-MM-DD)",
|
|
86661
86671
|
value: R.field.customFormat || m[F] || "",
|
|
86662
|
-
onChange: (
|
|
86672
|
+
onChange: (H) => {
|
|
86663
86673
|
E(
|
|
86664
86674
|
x,
|
|
86665
86675
|
F,
|
|
86666
|
-
|
|
86676
|
+
H.target.value
|
|
86667
86677
|
);
|
|
86668
86678
|
},
|
|
86669
86679
|
className: "h-8 text-xs"
|
|
@@ -88031,14 +88041,14 @@ function B8e({
|
|
|
88031
88041
|
] });
|
|
88032
88042
|
}
|
|
88033
88043
|
function V8e() {
|
|
88034
|
-
var z, $,
|
|
88044
|
+
var z, $, H;
|
|
88035
88045
|
const { open: e, frameId: t, cardId: n, closePopover: r, anchorPosition: o } = GM(), i = Yhe(), a = Ghe(), { updateCurrentDashboardCard: s } = rn(), { setCard: l } = Sr(), c = J((L) => L.dashboard), u = ((z = c == null ? void 0 : c.sheets) == null ? void 0 : z.flatMap((L) => L.frames || []).find((L) => (L == null ? void 0 : L.id) === t)) || null, d = u && n ? u.cards.find((L) => L.id === n) : null;
|
|
88036
88046
|
pe(() => {
|
|
88037
88047
|
e && d && l(d);
|
|
88038
88048
|
}, [e, d, l]);
|
|
88039
88049
|
const { columns: h } = hH(), { metricFields: p, groupByFields: m, pivotByFields: g } = Zoe();
|
|
88040
88050
|
[...m, ...g];
|
|
88041
|
-
const b = h, y = p, v = [...m, ...g], x = (($ = i.interactionConfig) == null ? void 0 : $.drillHierarchies) || [], w = ((
|
|
88051
|
+
const b = h, y = p, v = [...m, ...g], x = (($ = i.interactionConfig) == null ? void 0 : $.drillHierarchies) || [], w = ((H = i.interactionConfig) == null ? void 0 : H.allowedDrillTargets) || [], [N, C] = ee(x), [k, D] = ee(
|
|
88042
88052
|
w || []
|
|
88043
88053
|
), [_, E] = ee(
|
|
88044
88054
|
null
|
|
@@ -89327,7 +89337,7 @@ function NZ({
|
|
|
89327
89337
|
panelDataArray: q
|
|
89328
89338
|
} = k.current, W = w$({
|
|
89329
89339
|
layout: P,
|
|
89330
|
-
panelConstraints: q.map((
|
|
89340
|
+
panelConstraints: q.map((j) => j.constraints)
|
|
89331
89341
|
});
|
|
89332
89342
|
v$(B, W) || (y(W), k.current.layout = W, Y && Y(W), If(q, W, x.current));
|
|
89333
89343
|
}
|
|
@@ -89364,13 +89374,13 @@ function NZ({
|
|
|
89364
89374
|
} = k.current;
|
|
89365
89375
|
if (P.constraints.collapsible) {
|
|
89366
89376
|
const W = q.map((re) => re.constraints), {
|
|
89367
|
-
collapsedSize:
|
|
89377
|
+
collapsedSize: j = 0,
|
|
89368
89378
|
panelSize: G,
|
|
89369
89379
|
pivotIndices: K
|
|
89370
89380
|
} = vu(q, P, B);
|
|
89371
|
-
if (zt(G != null, `Panel size not found for panel "${P.id}"`), !tl(G,
|
|
89381
|
+
if (zt(G != null, `Panel size not found for panel "${P.id}"`), !tl(G, j)) {
|
|
89372
89382
|
w.current.set(P.id, G);
|
|
89373
|
-
const Z = Lf(q, P) === q.length - 1 ? G -
|
|
89383
|
+
const Z = Lf(q, P) === q.length - 1 ? G - j : j - G, ne = zm({
|
|
89374
89384
|
delta: Z,
|
|
89375
89385
|
initialLayout: B,
|
|
89376
89386
|
panelConstraints: W,
|
|
@@ -89389,7 +89399,7 @@ function NZ({
|
|
|
89389
89399
|
panelDataArray: W
|
|
89390
89400
|
} = k.current;
|
|
89391
89401
|
if (P.constraints.collapsible) {
|
|
89392
|
-
const
|
|
89402
|
+
const j = W.map((ae) => ae.constraints), {
|
|
89393
89403
|
collapsedSize: G = 0,
|
|
89394
89404
|
panelSize: K = 0,
|
|
89395
89405
|
minSize: re = 0,
|
|
@@ -89399,7 +89409,7 @@ function NZ({
|
|
|
89399
89409
|
const ae = w.current.get(P.id), de = ae != null && ae >= ne ? ae : ne, me = Lf(W, P) === W.length - 1 ? K - de : de - K, Te = zm({
|
|
89400
89410
|
delta: me,
|
|
89401
89411
|
initialLayout: q,
|
|
89402
|
-
panelConstraints:
|
|
89412
|
+
panelConstraints: j,
|
|
89403
89413
|
pivotIndices: Z,
|
|
89404
89414
|
prevLayout: q,
|
|
89405
89415
|
trigger: "imperative-api"
|
|
@@ -89433,9 +89443,9 @@ function NZ({
|
|
|
89433
89443
|
} = k.current, {
|
|
89434
89444
|
collapsedSize: q = 0,
|
|
89435
89445
|
collapsible: W,
|
|
89436
|
-
panelSize:
|
|
89446
|
+
panelSize: j
|
|
89437
89447
|
} = vu(B, P, Y);
|
|
89438
|
-
return zt(
|
|
89448
|
+
return zt(j != null, `Panel size not found for panel "${P.id}"`), W === !0 && tl(j, q);
|
|
89439
89449
|
}, []), F = Bo((P) => {
|
|
89440
89450
|
const {
|
|
89441
89451
|
layout: Y,
|
|
@@ -89443,16 +89453,16 @@ function NZ({
|
|
|
89443
89453
|
} = k.current, {
|
|
89444
89454
|
collapsedSize: q = 0,
|
|
89445
89455
|
collapsible: W,
|
|
89446
|
-
panelSize:
|
|
89456
|
+
panelSize: j
|
|
89447
89457
|
} = vu(B, P, Y);
|
|
89448
|
-
return zt(
|
|
89458
|
+
return zt(j != null, `Panel size not found for panel "${P.id}"`), !W || Ud(j, q) > 0;
|
|
89449
89459
|
}, []), I = Bo((P) => {
|
|
89450
89460
|
const {
|
|
89451
89461
|
panelDataArray: Y
|
|
89452
89462
|
} = k.current;
|
|
89453
89463
|
Y.push(P), Y.sort((B, q) => {
|
|
89454
|
-
const W = B.order,
|
|
89455
|
-
return W == null &&
|
|
89464
|
+
const W = B.order, j = q.order;
|
|
89465
|
+
return W == null && j == null ? 0 : W == null ? -1 : j == null ? 1 : W - j;
|
|
89456
89466
|
}), k.current.panelDataArrayChanged = !0, v();
|
|
89457
89467
|
}, [v]);
|
|
89458
89468
|
pd(() => {
|
|
@@ -89466,16 +89476,16 @@ function NZ({
|
|
|
89466
89476
|
layout: q,
|
|
89467
89477
|
panelDataArray: W
|
|
89468
89478
|
} = k.current;
|
|
89469
|
-
let
|
|
89479
|
+
let j = null;
|
|
89470
89480
|
if (P) {
|
|
89471
89481
|
const K = bze(P, W, B);
|
|
89472
|
-
K && (w.current = new Map(Object.entries(K.expandToSizes)),
|
|
89482
|
+
K && (w.current = new Map(Object.entries(K.expandToSizes)), j = K.layout);
|
|
89473
89483
|
}
|
|
89474
|
-
|
|
89484
|
+
j == null && (j = pze({
|
|
89475
89485
|
panelDataArray: W
|
|
89476
89486
|
}));
|
|
89477
89487
|
const G = w$({
|
|
89478
|
-
layout:
|
|
89488
|
+
layout: j,
|
|
89479
89489
|
panelConstraints: W.map((K) => K.constraints)
|
|
89480
89490
|
});
|
|
89481
89491
|
v$(q, G) || (y(G), k.current.layout = G, Y && Y(G), If(W, G, x.current));
|
|
@@ -89491,8 +89501,8 @@ function NZ({
|
|
|
89491
89501
|
const B = p.current;
|
|
89492
89502
|
return B && window.getComputedStyle(B, null).getPropertyValue("direction") === "rtl" && (Y = !0), function(W) {
|
|
89493
89503
|
W.preventDefault();
|
|
89494
|
-
const
|
|
89495
|
-
if (!
|
|
89504
|
+
const j = p.current;
|
|
89505
|
+
if (!j)
|
|
89496
89506
|
return () => null;
|
|
89497
89507
|
const {
|
|
89498
89508
|
direction: G,
|
|
@@ -89505,8 +89515,8 @@ function NZ({
|
|
|
89505
89515
|
panelDataArray: de
|
|
89506
89516
|
} = k.current, {
|
|
89507
89517
|
initialLayout: ie
|
|
89508
|
-
} = K ?? {}, me = yZ(re, P,
|
|
89509
|
-
let Te = hze(W, P, G, K, Z,
|
|
89518
|
+
} = K ?? {}, me = yZ(re, P, j);
|
|
89519
|
+
let Te = hze(W, P, G, K, Z, j);
|
|
89510
89520
|
const le = G === "horizontal";
|
|
89511
89521
|
le && Y && (Te = -Te);
|
|
89512
89522
|
const xe = de.map((De) => De.constraints), fe = zm({
|
|
@@ -89525,7 +89535,7 @@ function NZ({
|
|
|
89525
89535
|
} = C.current, {
|
|
89526
89536
|
layout: q,
|
|
89527
89537
|
panelDataArray: W
|
|
89528
|
-
} = k.current,
|
|
89538
|
+
} = k.current, j = W.map((ae) => ae.constraints), {
|
|
89529
89539
|
panelSize: G,
|
|
89530
89540
|
pivotIndices: K
|
|
89531
89541
|
} = vu(W, P, q);
|
|
@@ -89533,7 +89543,7 @@ function NZ({
|
|
|
89533
89543
|
const Z = Lf(W, P) === W.length - 1 ? G - Y : Y - G, ne = zm({
|
|
89534
89544
|
delta: Z,
|
|
89535
89545
|
initialLayout: q,
|
|
89536
|
-
panelConstraints:
|
|
89546
|
+
panelConstraints: j,
|
|
89537
89547
|
pivotIndices: K,
|
|
89538
89548
|
prevLayout: q,
|
|
89539
89549
|
trigger: "imperative-api"
|
|
@@ -89545,7 +89555,7 @@ function NZ({
|
|
|
89545
89555
|
panelDataArray: q
|
|
89546
89556
|
} = k.current, {
|
|
89547
89557
|
collapsedSize: W = 0,
|
|
89548
|
-
collapsible:
|
|
89558
|
+
collapsible: j
|
|
89549
89559
|
} = Y, {
|
|
89550
89560
|
collapsedSize: G = 0,
|
|
89551
89561
|
collapsible: K,
|
|
@@ -89554,8 +89564,8 @@ function NZ({
|
|
|
89554
89564
|
} = P.constraints, {
|
|
89555
89565
|
panelSize: ne
|
|
89556
89566
|
} = vu(q, P, B);
|
|
89557
|
-
ne != null && (
|
|
89558
|
-
}, [z]),
|
|
89567
|
+
ne != null && (j && K && tl(ne, W) ? tl(W, G) || z(P, G) : ne < Z ? z(P, Z) : ne > re && z(P, re));
|
|
89568
|
+
}, [z]), H = Bo((P, Y) => {
|
|
89559
89569
|
const {
|
|
89560
89570
|
direction: B
|
|
89561
89571
|
} = C.current, {
|
|
@@ -89565,11 +89575,11 @@ function NZ({
|
|
|
89565
89575
|
return;
|
|
89566
89576
|
const W = FS(P, p.current);
|
|
89567
89577
|
zt(W, `Drag handle element not found for id "${P}"`);
|
|
89568
|
-
const
|
|
89578
|
+
const j = xZ(B, Y);
|
|
89569
89579
|
g({
|
|
89570
89580
|
dragHandleId: P,
|
|
89571
89581
|
dragHandleRect: W.getBoundingClientRect(),
|
|
89572
|
-
initialCursorPosition:
|
|
89582
|
+
initialCursorPosition: j,
|
|
89573
89583
|
initialLayout: q
|
|
89574
89584
|
});
|
|
89575
89585
|
}, []), L = Bo(() => {
|
|
@@ -89593,11 +89603,11 @@ function NZ({
|
|
|
89593
89603
|
registerPanel: I,
|
|
89594
89604
|
registerResizeHandle: A,
|
|
89595
89605
|
resizePanel: z,
|
|
89596
|
-
startDragging:
|
|
89606
|
+
startDragging: H,
|
|
89597
89607
|
stopDragging: L,
|
|
89598
89608
|
unregisterPanel: O,
|
|
89599
89609
|
panelGroupElement: p.current
|
|
89600
|
-
}), [D, m, r, _, E, M, h, R, F, $, I, A, z,
|
|
89610
|
+
}), [D, m, r, _, E, M, h, R, F, $, I, A, z, H, L, O]), V = {
|
|
89601
89611
|
display: "flex",
|
|
89602
89612
|
flexDirection: r === "horizontal" ? "row" : "column",
|
|
89603
89613
|
height: "100%",
|
|
@@ -89720,16 +89730,16 @@ function _I({
|
|
|
89720
89730
|
if (n)
|
|
89721
89731
|
F(null);
|
|
89722
89732
|
else {
|
|
89723
|
-
const
|
|
89724
|
-
F(() =>
|
|
89733
|
+
const H = x(k);
|
|
89734
|
+
F(() => H);
|
|
89725
89735
|
}
|
|
89726
89736
|
}, [n, k, x]);
|
|
89727
89737
|
const A = (h = r == null ? void 0 : r.coarse) !== null && h !== void 0 ? h : 15, z = (p = r == null ? void 0 : r.fine) !== null && p !== void 0 ? p : 5;
|
|
89728
89738
|
return hd(() => {
|
|
89729
89739
|
if (n || R == null)
|
|
89730
89740
|
return;
|
|
89731
|
-
const
|
|
89732
|
-
return zt(
|
|
89741
|
+
const H = m.current;
|
|
89742
|
+
return zt(H, "Element ref not attached"), aze(k, H, y, {
|
|
89733
89743
|
coarse: A,
|
|
89734
89744
|
fine: z
|
|
89735
89745
|
}, (O, U, V) => {
|
|
@@ -92923,14 +92933,14 @@ function P7e(e, t, n) {
|
|
|
92923
92933
|
return P === 45 ? (e.consume(P), O) : R(P);
|
|
92924
92934
|
}
|
|
92925
92935
|
function $(P) {
|
|
92926
|
-
return P === 47 ? (e.consume(P), a = "",
|
|
92936
|
+
return P === 47 ? (e.consume(P), a = "", H) : R(P);
|
|
92927
92937
|
}
|
|
92928
|
-
function
|
|
92938
|
+
function H(P) {
|
|
92929
92939
|
if (P === 62) {
|
|
92930
92940
|
const Y = a.toLowerCase();
|
|
92931
92941
|
return j$.includes(Y) ? (e.consume(P), U) : R(P);
|
|
92932
92942
|
}
|
|
92933
|
-
return Do(P) && a.length < 8 ? (e.consume(P), a += String.fromCharCode(P),
|
|
92943
|
+
return Do(P) && a.length < 8 ? (e.consume(P), a += String.fromCharCode(P), H) : R(P);
|
|
92934
92944
|
}
|
|
92935
92945
|
function L(P) {
|
|
92936
92946
|
return P === 93 ? (e.consume(P), O) : R(P);
|
|
@@ -93049,9 +93059,9 @@ function L7e(e, t, n) {
|
|
|
93049
93059
|
return O === 62 ? (e.consume(O), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(O);
|
|
93050
93060
|
}
|
|
93051
93061
|
function $(O) {
|
|
93052
|
-
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(O), e.exit("lineEnding"),
|
|
93062
|
+
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(O), e.exit("lineEnding"), H;
|
|
93053
93063
|
}
|
|
93054
|
-
function
|
|
93064
|
+
function H(O) {
|
|
93055
93065
|
return qt(O) ? en(e, L, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(O) : L(O);
|
|
93056
93066
|
}
|
|
93057
93067
|
function L(O) {
|
|
@@ -93676,7 +93686,7 @@ function kBe(e, t, n) {
|
|
|
93676
93686
|
function k(M, R) {
|
|
93677
93687
|
return F;
|
|
93678
93688
|
function F(I, A, z) {
|
|
93679
|
-
let $,
|
|
93689
|
+
let $, H, L, O;
|
|
93680
93690
|
return Array.isArray(I) ? (
|
|
93681
93691
|
/* c8 ignore next 1 */
|
|
93682
93692
|
V(I)
|
|
@@ -93689,22 +93699,22 @@ function kBe(e, t, n) {
|
|
|
93689
93699
|
) : U(I);
|
|
93690
93700
|
function U(q) {
|
|
93691
93701
|
return W;
|
|
93692
|
-
function W(
|
|
93693
|
-
const G =
|
|
93702
|
+
function W(j) {
|
|
93703
|
+
const G = j !== null && q[j], K = j !== null && q.null, re = [
|
|
93694
93704
|
// To do: add more extension tests.
|
|
93695
93705
|
/* c8 ignore next 2 */
|
|
93696
93706
|
...Array.isArray(G) ? G : G ? [G] : [],
|
|
93697
93707
|
...Array.isArray(K) ? K : K ? [K] : []
|
|
93698
93708
|
];
|
|
93699
|
-
return V(re)(
|
|
93709
|
+
return V(re)(j);
|
|
93700
93710
|
}
|
|
93701
93711
|
}
|
|
93702
93712
|
function V(q) {
|
|
93703
|
-
return $ = q,
|
|
93713
|
+
return $ = q, H = 0, q.length === 0 ? z : P(q[H]);
|
|
93704
93714
|
}
|
|
93705
93715
|
function P(q) {
|
|
93706
93716
|
return W;
|
|
93707
|
-
function W(
|
|
93717
|
+
function W(j) {
|
|
93708
93718
|
return O = _(), L = q, q.partial || (c.currentConstruct = q), q.name && c.parser.constructs.disable.null.includes(q.name) ? B() : q.tokenize.call(
|
|
93709
93719
|
// If we do have fields, create an object w/ `context` as its
|
|
93710
93720
|
// prototype.
|
|
@@ -93713,14 +93723,14 @@ function kBe(e, t, n) {
|
|
|
93713
93723
|
l,
|
|
93714
93724
|
Y,
|
|
93715
93725
|
B
|
|
93716
|
-
)(
|
|
93726
|
+
)(j);
|
|
93717
93727
|
}
|
|
93718
93728
|
}
|
|
93719
93729
|
function Y(q) {
|
|
93720
93730
|
return M(L, O), A;
|
|
93721
93731
|
}
|
|
93722
93732
|
function B(q) {
|
|
93723
|
-
return O.restore(), ++
|
|
93733
|
+
return O.restore(), ++H < $.length ? P($[H]) : z;
|
|
93724
93734
|
}
|
|
93725
93735
|
}
|
|
93726
93736
|
}
|
|
@@ -93927,7 +93937,7 @@ function OBe(e) {
|
|
|
93927
93937
|
atxHeadingSequence: N,
|
|
93928
93938
|
autolink: l(),
|
|
93929
93939
|
autolinkEmail: G,
|
|
93930
|
-
autolinkProtocol:
|
|
93940
|
+
autolinkProtocol: j,
|
|
93931
93941
|
blockQuote: l(),
|
|
93932
93942
|
characterEscapeValue: E,
|
|
93933
93943
|
characterReferenceMarkerHexadecimal: B,
|
|
@@ -93956,7 +93966,7 @@ function OBe(e) {
|
|
|
93956
93966
|
htmlTextData: E,
|
|
93957
93967
|
image: l($),
|
|
93958
93968
|
label: L,
|
|
93959
|
-
labelText:
|
|
93969
|
+
labelText: H,
|
|
93960
93970
|
lineEnding: M,
|
|
93961
93971
|
link: l(z),
|
|
93962
93972
|
listItem: l(),
|
|
@@ -94226,7 +94236,7 @@ function OBe(e) {
|
|
|
94226
94236
|
delete ue.identifier, delete ue.label;
|
|
94227
94237
|
this.data.referenceType = void 0;
|
|
94228
94238
|
}
|
|
94229
|
-
function
|
|
94239
|
+
function H(ue) {
|
|
94230
94240
|
const Ne = this.sliceSerialize(ue), qe = this.stack[this.stack.length - 2];
|
|
94231
94241
|
qe.label = IBe(Ne), qe.identifier = Na(Ne).toLowerCase();
|
|
94232
94242
|
}
|
|
@@ -94270,7 +94280,7 @@ function OBe(e) {
|
|
|
94270
94280
|
const Ne = this.stack.pop();
|
|
94271
94281
|
Ne.position.end = Bl(ue.end);
|
|
94272
94282
|
}
|
|
94273
|
-
function
|
|
94283
|
+
function j(ue) {
|
|
94274
94284
|
E.call(this, ue);
|
|
94275
94285
|
const Ne = this.stack[this.stack.length - 1];
|
|
94276
94286
|
Ne.url = this.sliceSerialize(ue);
|
|
@@ -97071,26 +97081,26 @@ var aje = Object.create, HS = Object.defineProperty, sje = Object.defineProperti
|
|
|
97071
97081
|
if (g.length > m.length)
|
|
97072
97082
|
return;
|
|
97073
97083
|
if (!(z instanceof s)) {
|
|
97074
|
-
var $ = 1,
|
|
97084
|
+
var $ = 1, H;
|
|
97075
97085
|
if (E) {
|
|
97076
|
-
if (
|
|
97086
|
+
if (H = l(F, A, m, _), !H || H.index >= m.length)
|
|
97077
97087
|
break;
|
|
97078
|
-
var V =
|
|
97088
|
+
var V = H.index, L = H.index + H[0].length, O = A;
|
|
97079
97089
|
for (O += I.value.length; V >= O; )
|
|
97080
97090
|
I = I.next, O += I.value.length;
|
|
97081
97091
|
if (O -= I.value.length, A = O, I.value instanceof s)
|
|
97082
97092
|
continue;
|
|
97083
97093
|
for (var U = I; U !== g.tail && (O < L || typeof U.value == "string"); U = U.next)
|
|
97084
97094
|
$++, O += U.value.length;
|
|
97085
|
-
$--, z = m.slice(A, O),
|
|
97086
|
-
} else if (
|
|
97095
|
+
$--, z = m.slice(A, O), H.index -= A;
|
|
97096
|
+
} else if (H = l(F, 0, z, _), !H)
|
|
97087
97097
|
continue;
|
|
97088
|
-
var V =
|
|
97098
|
+
var V = H.index, P = H[0], Y = z.slice(0, V), B = z.slice(V + P.length), q = A + z.length;
|
|
97089
97099
|
x && q > x.reach && (x.reach = q);
|
|
97090
97100
|
var W = I.prev;
|
|
97091
97101
|
Y && (W = d(g, W, Y), A += Y.length), h(g, W, $);
|
|
97092
|
-
var
|
|
97093
|
-
if (I = d(g, W,
|
|
97102
|
+
var j = new s(w, D ? a.tokenize(P, D) : P, M, P);
|
|
97103
|
+
if (I = d(g, W, j), B && d(g, I, B), $ > 1) {
|
|
97094
97104
|
var G = {
|
|
97095
97105
|
cause: w + "," + C,
|
|
97096
97106
|
reach: q
|
|
@@ -102288,13 +102298,13 @@ function PWe({
|
|
|
102288
102298
|
), b = be(() => (e == null ? void 0 : e.toolCallId) ?? Lr(), [e]), { queueMessage: y } = a0(), v = SM(), x = i0(), { tokenProps: w } = Gt(l1), N = (w == null ? void 0 : w.type) === "dashboard";
|
|
102289
102299
|
ri();
|
|
102290
102300
|
const C = () => {
|
|
102291
|
-
const
|
|
102301
|
+
const j = e.toolCallId;
|
|
102292
102302
|
B().label;
|
|
102293
|
-
const G = `Can you explain how this visual was calculated? [ref: ${
|
|
102303
|
+
const G = `Can you explain how this visual was calculated? [ref: ${j}]`;
|
|
102294
102304
|
y("dashboard", G);
|
|
102295
102305
|
}, k = () => {
|
|
102296
102306
|
var ne;
|
|
102297
|
-
const
|
|
102307
|
+
const j = n == null ? void 0 : n.filter((ae) => ae.role === "user").pop(), G = (ne = j == null ? void 0 : j.parts) == null ? void 0 : ne.find(
|
|
102298
102308
|
(ae) => ae.type === "text"
|
|
102299
102309
|
), K = (G == null ? void 0 : G.text) || "", re = v === "dashboard" ? qd.DASHBOARD_ASSISTANT : qd.EDITOR_ASSISTANT, Z = GI(re, {
|
|
102300
102310
|
// Error information
|
|
@@ -102313,11 +102323,11 @@ function PWe({
|
|
|
102313
102323
|
generatedSql: i == null ? void 0 : i.sql
|
|
102314
102324
|
});
|
|
102315
102325
|
g(Z), p(!0);
|
|
102316
|
-
}, D = i == null ? void 0 : i.chartType, _ = i == null ? void 0 : i.connectionId, E = i == null ? void 0 : i.cardConfig, M = i == null ? void 0 : i.chartTitle, R = i == null ? void 0 : i.sql, F = (q = o == null ? void 0 : o.data) == null ? void 0 : q.userSql, I = i == null ? void 0 : i.python, A = (W = o == null ? void 0 : o.data) == null ? void 0 : W.records, z = o == null ? void 0 : o.dataSource, $ = Fy(A ?? [], gSe),
|
|
102326
|
+
}, D = i == null ? void 0 : i.chartType, _ = i == null ? void 0 : i.connectionId, E = i == null ? void 0 : i.cardConfig, M = i == null ? void 0 : i.chartTitle, R = i == null ? void 0 : i.sql, F = (q = o == null ? void 0 : o.data) == null ? void 0 : q.userSql, I = i == null ? void 0 : i.python, A = (W = o == null ? void 0 : o.data) == null ? void 0 : W.records, z = o == null ? void 0 : o.dataSource, $ = Fy(A ?? [], gSe), H = Fy(z), L = Fy(E), O = Fy(D), U = be(() => O ? {
|
|
102317
102327
|
id: b,
|
|
102318
102328
|
config: L,
|
|
102319
102329
|
type: O,
|
|
102320
|
-
dataSource:
|
|
102330
|
+
dataSource: H,
|
|
102321
102331
|
preferences: {
|
|
102322
102332
|
tablePrefs: {
|
|
102323
102333
|
pageSize: 10,
|
|
@@ -102326,7 +102336,7 @@ function PWe({
|
|
|
102326
102336
|
// AI returns complete datasets, use client-side pagination
|
|
102327
102337
|
}
|
|
102328
102338
|
}
|
|
102329
|
-
} : null, [b, L, O,
|
|
102339
|
+
} : null, [b, L, O, H]), V = be(() => !U || O === "pivotTable" ? null : fH({
|
|
102330
102340
|
card: U,
|
|
102331
102341
|
cardType: O,
|
|
102332
102342
|
data: $ || [],
|
|
@@ -102334,21 +102344,21 @@ function PWe({
|
|
|
102334
102344
|
}), [U, O, $]), P = be(() => {
|
|
102335
102345
|
var Z, ne, ae, de;
|
|
102336
102346
|
if (O !== "pivotTable" || !o) return null;
|
|
102337
|
-
const
|
|
102347
|
+
const j = ((Z = o.data) == null ? void 0 : Z.pivotSchema) || [], G = ((ne = o.data) == null ? void 0 : ne.subtotalColumns) || [], K = (ae = o.data) == null ? void 0 : ae.columnSubtotalMeta, re = (de = o.data) == null ? void 0 : de.groupByColumns;
|
|
102338
102348
|
return {
|
|
102339
102349
|
records: $ || [],
|
|
102340
|
-
pivotSchema:
|
|
102350
|
+
pivotSchema: j,
|
|
102341
102351
|
subtotalColumns: G,
|
|
102342
102352
|
columnSubtotalMeta: K,
|
|
102343
102353
|
groupByColumns: re
|
|
102344
102354
|
};
|
|
102345
102355
|
}, [O, o, $]), Y = d0(U, P), B = () => {
|
|
102346
|
-
const
|
|
102356
|
+
const j = U ? Dd(U.config) : !1, G = ZR.find((re) => re.id === O), K = G == null ? void 0 : G.icon;
|
|
102347
102357
|
return I ? {
|
|
102348
102358
|
type: "advanced",
|
|
102349
102359
|
label: "Advanced Analysis",
|
|
102350
102360
|
icons: [xc, CP]
|
|
102351
|
-
} :
|
|
102361
|
+
} : j && K ? {
|
|
102352
102362
|
type: "standard",
|
|
102353
102363
|
label: "Standard Analysis",
|
|
102354
102364
|
icons: [K]
|
|
@@ -102360,7 +102370,7 @@ function PWe({
|
|
|
102360
102370
|
};
|
|
102361
102371
|
if (!o) return null;
|
|
102362
102372
|
if (o.error) {
|
|
102363
|
-
const
|
|
102373
|
+
const j = o.errorType || "unknown", G = o.hint || "", K = o.rootCause || o.error, re = o.shouldRetry !== !1, Z = o.validationErrors || [], ne = o.suggestions || [], ae = Z.length > 0, de = ae ? {
|
|
102364
102374
|
border: "border-purple-500/60 dark:border-purple-500/50",
|
|
102365
102375
|
bg: "bg-purple-50 dark:bg-purple-500/10",
|
|
102366
102376
|
text: "text-purple-800 dark:text-purple-300",
|
|
@@ -102374,7 +102384,7 @@ function PWe({
|
|
|
102374
102384
|
iconColor: "text-yellow-600 dark:text-yellow-500",
|
|
102375
102385
|
accentBg: "bg-yellow-100 dark:bg-yellow-900/30",
|
|
102376
102386
|
accentText: "text-yellow-900 dark:text-yellow-200"
|
|
102377
|
-
}, ie = () => ae ? re ? "Configuration validation failed. Retrying..." : "Configuration validation failed" :
|
|
102387
|
+
}, ie = () => ae ? re ? "Configuration validation failed. Retrying..." : "Configuration validation failed" : j === "group_by_error" ? re ? "SQL grouping error. Retrying..." : "SQL grouping error" : j === "syntax_error" ? re ? "SQL syntax error. Retrying..." : "SQL syntax error" : j === "type_mismatch" ? re ? "Data type mismatch. Retrying..." : "Data type mismatch" : re ? "Retrying..." : "Couldn't generate this visual";
|
|
102378
102388
|
if (!r) {
|
|
102379
102389
|
const me = re ? "Let me try that a different way..." : "I'm ready with a revised plan.", Te = G || (K && K !== o.error ? K : "");
|
|
102380
102390
|
return /* @__PURE__ */ f("div", { className: "mt-2 rounded-md border border-border/40 bg-muted/30 p-3 text-xs", children: /* @__PURE__ */ S("div", { className: "flex items-start gap-2", children: [
|
|
@@ -102554,7 +102564,7 @@ function PWe({
|
|
|
102554
102564
|
t == null || t({
|
|
102555
102565
|
sql: R || "",
|
|
102556
102566
|
data: $ || [],
|
|
102557
|
-
dataSource:
|
|
102567
|
+
dataSource: H || XI,
|
|
102558
102568
|
cardConfig: E,
|
|
102559
102569
|
cardTitle: M || "Untitled Chart",
|
|
102560
102570
|
connectionId: _ || "",
|
|
@@ -102603,10 +102613,10 @@ function PWe({
|
|
|
102603
102613
|
(R || I || U && Dd(U.config)) && /* @__PURE__ */ S(Bd, { open: a, onOpenChange: s, children: [
|
|
102604
102614
|
/* @__PURE__ */ S("div", { className: "flex items-center justify-between border-t border-muted/40 pb-2 pt-2", children: [
|
|
102605
102615
|
/* @__PURE__ */ f("div", { className: "flex items-center gap-2", children: (() => {
|
|
102606
|
-
const
|
|
102616
|
+
const j = B();
|
|
102607
102617
|
return /* @__PURE__ */ S("div", { className: "flex items-center gap-1.5 text-xs text-muted-foreground", children: [
|
|
102608
|
-
|
|
102609
|
-
/* @__PURE__ */ f("span", { children:
|
|
102618
|
+
j.icons.map((G, K) => /* @__PURE__ */ f(G, { className: "h-3 w-3" }, K)),
|
|
102619
|
+
/* @__PURE__ */ f("span", { children: j.label }),
|
|
102610
102620
|
/* @__PURE__ */ f(
|
|
102611
102621
|
se,
|
|
102612
102622
|
{
|
|
@@ -102665,8 +102675,8 @@ function PWe({
|
|
|
102665
102675
|
$w,
|
|
102666
102676
|
{
|
|
102667
102677
|
open: h,
|
|
102668
|
-
onOpenChange: (
|
|
102669
|
-
p(
|
|
102678
|
+
onOpenChange: (j) => {
|
|
102679
|
+
p(j), j || g(null);
|
|
102670
102680
|
},
|
|
102671
102681
|
feedbackData: m
|
|
102672
102682
|
}
|
|
@@ -111008,109 +111018,109 @@ const QQ = Qr(
|
|
|
111008
111018
|
removeFileAttachment: D,
|
|
111009
111019
|
clearFileAttachments: _,
|
|
111010
111020
|
getFileAttachments: E
|
|
111011
|
-
} = LU(), M = $U(l), R = Oe((
|
|
111012
|
-
(
|
|
111021
|
+
} = LU(), M = $U(l), R = Oe((j) => j.card.dataSource), F = J((j) => j.dashboard.aiContext), I = J(
|
|
111022
|
+
(j) => {
|
|
111013
111023
|
var G;
|
|
111014
|
-
return (G =
|
|
111024
|
+
return (G = j.dashboard.aiContext) == null ? void 0 : G.selectedEntities;
|
|
111015
111025
|
}
|
|
111016
111026
|
);
|
|
111017
111027
|
pe(() => {
|
|
111018
111028
|
c && "current" in c && (c.current = b.current);
|
|
111019
111029
|
}, [c]);
|
|
111020
111030
|
const A = ge(() => {
|
|
111021
|
-
const
|
|
111022
|
-
if (
|
|
111031
|
+
const j = b.current;
|
|
111032
|
+
if (j) {
|
|
111023
111033
|
if (!e || e.length === 0) {
|
|
111024
|
-
|
|
111034
|
+
j.style.height = "10px";
|
|
111025
111035
|
return;
|
|
111026
111036
|
}
|
|
111027
|
-
|
|
111028
|
-
const G = Math.min(Math.max(
|
|
111029
|
-
|
|
111037
|
+
j.style.height = "auto";
|
|
111038
|
+
const G = Math.min(Math.max(j.scrollHeight, 10), 200);
|
|
111039
|
+
j.style.height = `${G}px`;
|
|
111030
111040
|
}
|
|
111031
111041
|
}, [e]);
|
|
111032
111042
|
pe(() => {
|
|
111033
111043
|
A();
|
|
111034
111044
|
}, [A]), pe(() => {
|
|
111035
|
-
const
|
|
111045
|
+
const j = setTimeout(() => {
|
|
111036
111046
|
A();
|
|
111037
111047
|
}, 0);
|
|
111038
|
-
return () => clearTimeout(
|
|
111048
|
+
return () => clearTimeout(j);
|
|
111039
111049
|
}, [A]);
|
|
111040
111050
|
const z = () => {
|
|
111041
|
-
const
|
|
111042
|
-
!
|
|
111051
|
+
const j = e.trim();
|
|
111052
|
+
!j && M.length === 0 || (s !== "ready" ? (C(l, j, M), t(""), _(l)) : r({
|
|
111043
111053
|
preventDefault: () => {
|
|
111044
111054
|
}
|
|
111045
111055
|
}));
|
|
111046
|
-
}, $ = (
|
|
111047
|
-
|
|
111048
|
-
},
|
|
111049
|
-
(
|
|
111050
|
-
const G = TWe(
|
|
111051
|
-
G.length > 0 && (
|
|
111056
|
+
}, $ = (j) => {
|
|
111057
|
+
j.key === "Enter" && !j.shiftKey && (j.preventDefault(), z()), j.key === "@" && (W(), d(!0));
|
|
111058
|
+
}, H = ge(
|
|
111059
|
+
(j) => {
|
|
111060
|
+
const G = TWe(j.nativeEvent);
|
|
111061
|
+
G.length > 0 && (j.preventDefault(), G.forEach(async (K) => {
|
|
111052
111062
|
const re = await ZI(K);
|
|
111053
111063
|
k(l, re);
|
|
111054
111064
|
}));
|
|
111055
111065
|
},
|
|
111056
111066
|
[k, l]
|
|
111057
111067
|
), L = ge(
|
|
111058
|
-
(
|
|
111059
|
-
|
|
111068
|
+
(j) => {
|
|
111069
|
+
j.forEach((G) => {
|
|
111060
111070
|
k(l, G);
|
|
111061
111071
|
});
|
|
111062
111072
|
},
|
|
111063
111073
|
[k, l]
|
|
111064
111074
|
), O = ge(
|
|
111065
|
-
(
|
|
111066
|
-
|
|
111075
|
+
(j) => {
|
|
111076
|
+
j.forEach((G) => {
|
|
111067
111077
|
k(l, G);
|
|
111068
111078
|
});
|
|
111069
111079
|
},
|
|
111070
111080
|
[k, l]
|
|
111071
111081
|
), U = ge(
|
|
111072
|
-
(
|
|
111073
|
-
D(l,
|
|
111082
|
+
(j) => {
|
|
111083
|
+
D(l, j);
|
|
111074
111084
|
},
|
|
111075
111085
|
[D, l]
|
|
111076
|
-
), V = (
|
|
111086
|
+
), V = (j) => {
|
|
111077
111087
|
if (y.selectedEntities.some(
|
|
111078
|
-
(K) => K.id && K.id ===
|
|
111088
|
+
(K) => K.id && K.id === j.id || K.name === j.name
|
|
111079
111089
|
)) {
|
|
111080
111090
|
const K = y.selectedEntities.filter(
|
|
111081
|
-
(re) => !(re.id && re.id ===
|
|
111091
|
+
(re) => !(re.id && re.id === j.id || re.name === j.name)
|
|
111082
111092
|
);
|
|
111083
111093
|
v({ selectedEntities: K });
|
|
111084
111094
|
} else {
|
|
111085
|
-
const K = [...y.selectedEntities,
|
|
111095
|
+
const K = [...y.selectedEntities, j];
|
|
111086
111096
|
v({ selectedEntities: K });
|
|
111087
111097
|
}
|
|
111088
|
-
}, P = (
|
|
111089
|
-
V(
|
|
111090
|
-
}, Y = (
|
|
111098
|
+
}, P = (j) => {
|
|
111099
|
+
V(j);
|
|
111100
|
+
}, Y = (j) => {
|
|
111091
111101
|
var re;
|
|
111092
111102
|
if (!y.selectedEntities.some(
|
|
111093
|
-
(Z) => Z.id && Z.id ===
|
|
111103
|
+
(Z) => Z.id && Z.id === j.id || Z.name === j.name
|
|
111094
111104
|
)) {
|
|
111095
|
-
const Z = [...y.selectedEntities,
|
|
111105
|
+
const Z = [...y.selectedEntities, j];
|
|
111096
111106
|
v({ selectedEntities: Z });
|
|
111097
111107
|
}
|
|
111098
|
-
const K = "label" in
|
|
111108
|
+
const K = "label" in j ? j.label : j.name;
|
|
111099
111109
|
t(e + `@${K} `), d(!1), (re = b.current) == null || re.focus();
|
|
111100
|
-
}, B = (
|
|
111110
|
+
}, B = (j) => {
|
|
111101
111111
|
const G = y.selectedEntities.filter(
|
|
111102
|
-
(Z) => !(Z.id && Z.id ===
|
|
111112
|
+
(Z) => !(Z.id && Z.id === j.id || Z.name === j.name)
|
|
111103
111113
|
);
|
|
111104
111114
|
v({ selectedEntities: G });
|
|
111105
|
-
const re = `@${"label" in
|
|
111115
|
+
const re = `@${"label" in j ? j.label : j.name}`;
|
|
111106
111116
|
e.includes(re) && t(e.replace(re, "").trim());
|
|
111107
|
-
}, q = (
|
|
111108
|
-
const G = new Set(
|
|
111117
|
+
}, q = (j) => {
|
|
111118
|
+
const G = new Set(j.map((Z) => Z.id || Z.name)), K = y.selectedEntities.filter(
|
|
111109
111119
|
(Z) => !G.has(Z.id || Z.name)
|
|
111110
111120
|
);
|
|
111111
111121
|
v({ selectedEntities: K });
|
|
111112
111122
|
let re = e;
|
|
111113
|
-
|
|
111123
|
+
j.forEach((Z) => {
|
|
111114
111124
|
const ae = `@${"label" in Z ? Z.label : Z.name}`;
|
|
111115
111125
|
re = re.replace(ae, "").trim();
|
|
111116
111126
|
}), t(re);
|
|
@@ -111153,7 +111163,7 @@ const QQ = Qr(
|
|
|
111153
111163
|
value: e,
|
|
111154
111164
|
onChange: n,
|
|
111155
111165
|
onKeyDown: $,
|
|
111156
|
-
onPaste:
|
|
111166
|
+
onPaste: H,
|
|
111157
111167
|
onFocus: () => {
|
|
111158
111168
|
A(), a == null || a();
|
|
111159
111169
|
},
|
|
@@ -111171,8 +111181,8 @@ const QQ = Qr(
|
|
|
111171
111181
|
ei,
|
|
111172
111182
|
{
|
|
111173
111183
|
open: u,
|
|
111174
|
-
onOpenChange: (
|
|
111175
|
-
|
|
111184
|
+
onOpenChange: (j) => {
|
|
111185
|
+
j && W(), d(j);
|
|
111176
111186
|
},
|
|
111177
111187
|
children: [
|
|
111178
111188
|
/* @__PURE__ */ f(ti, { asChild: !0, children: /* @__PURE__ */ f(
|
|
@@ -111192,7 +111202,7 @@ const QQ = Qr(
|
|
|
111192
111202
|
align: "start",
|
|
111193
111203
|
side: "top",
|
|
111194
111204
|
sideOffset: 8,
|
|
111195
|
-
onOpenAutoFocus: (
|
|
111205
|
+
onOpenAutoFocus: (j) => j.preventDefault(),
|
|
111196
111206
|
children: /* @__PURE__ */ f(
|
|
111197
111207
|
oQe,
|
|
111198
111208
|
{
|
|
@@ -111200,8 +111210,8 @@ const QQ = Qr(
|
|
|
111200
111210
|
onSelect: V,
|
|
111201
111211
|
onDeselect: P,
|
|
111202
111212
|
onClose: () => {
|
|
111203
|
-
var
|
|
111204
|
-
d(!1), (
|
|
111213
|
+
var j;
|
|
111214
|
+
d(!1), (j = b.current) == null || j.focus();
|
|
111205
111215
|
},
|
|
111206
111216
|
availableEntities: I || [],
|
|
111207
111217
|
selectedEntities: y.selectedEntities,
|
|
@@ -111369,13 +111379,13 @@ function CQe(e, t = {}) {
|
|
|
111369
111379
|
return;
|
|
111370
111380
|
}
|
|
111371
111381
|
g.current = _.scrollTop, y.current = _.scrollHeight;
|
|
111372
|
-
const E = w.current, M = e[e.length - 1], R = (M == null ? void 0 : M.id) ?? (M == null ? void 0 : M.messageId) ?? (M == null ? void 0 : M.createdAt) ?? (M == null ? void 0 : M.timestamp) ?? e.length, F = Array.isArray(M == null ? void 0 : M.parts) ? M.parts.reduce((L, O) => O ? typeof O == "string" ? L + O.length : typeof O.text == "string" ? L + O.text.length : typeof O.content == "string" ? L + O.content.length : typeof O.value == "string" ? L + O.value.length : L : L, 0) : typeof (M == null ? void 0 : M.content) == "string" ? M.content.length : typeof (M == null ? void 0 : M.text) == "string" ? M.text.length : 0, I = e.length > E.count, A = R !== E.key, z = F > E.length, $ = o && (M == null ? void 0 : M.role) === "assistant" && !I && (A || z),
|
|
111382
|
+
const E = w.current, M = e[e.length - 1], R = (M == null ? void 0 : M.id) ?? (M == null ? void 0 : M.messageId) ?? (M == null ? void 0 : M.createdAt) ?? (M == null ? void 0 : M.timestamp) ?? e.length, F = Array.isArray(M == null ? void 0 : M.parts) ? M.parts.reduce((L, O) => O ? typeof O == "string" ? L + O.length : typeof O.text == "string" ? L + O.text.length : typeof O.content == "string" ? L + O.content.length : typeof O.value == "string" ? L + O.value.length : L : L, 0) : typeof (M == null ? void 0 : M.content) == "string" ? M.content.length : typeof (M == null ? void 0 : M.text) == "string" ? M.text.length : 0, I = e.length > E.count, A = R !== E.key, z = F > E.length, $ = o && (M == null ? void 0 : M.role) === "assistant" && !I && (A || z), H = i || $;
|
|
111373
111383
|
if (w.current = {
|
|
111374
111384
|
key: R,
|
|
111375
111385
|
count: e.length,
|
|
111376
111386
|
length: F
|
|
111377
|
-
}, s && (I || A || z ||
|
|
111378
|
-
C({ force: !1, instant:
|
|
111387
|
+
}, s && (I || A || z || H)) {
|
|
111388
|
+
C({ force: !1, instant: H });
|
|
111379
111389
|
return;
|
|
111380
111390
|
}
|
|
111381
111391
|
if (!s && I) {
|
|
@@ -111499,7 +111509,7 @@ function _Qe({
|
|
|
111499
111509
|
updateSelectedEntities: E,
|
|
111500
111510
|
setReasoningEffort: M,
|
|
111501
111511
|
setShowReasoning: R
|
|
111502
|
-
} = CM(), { clearQueue: F } = a0(), { clearFileAttachments: I, getFileAttachments: A } = LU(), z = $U("dashboard"), $ = J((Ge) => Ge.dashboard.aiContext),
|
|
111512
|
+
} = CM(), { clearQueue: F } = a0(), { clearFileAttachments: I, getFileAttachments: A } = LU(), z = $U("dashboard"), $ = J((Ge) => Ge.dashboard.aiContext), H = Oe((Ge) => Ge.card.dataSource), { assistantProfile: L } = nQe(), O = J(
|
|
111503
111513
|
(Ge) => Ge.handleOpenAssistantProfile
|
|
111504
111514
|
), {
|
|
111505
111515
|
sendMessage: U,
|
|
@@ -111510,7 +111520,7 @@ function _Qe({
|
|
|
111510
111520
|
status: B,
|
|
111511
111521
|
stop: q,
|
|
111512
111522
|
errorMessage: W,
|
|
111513
|
-
clearError:
|
|
111523
|
+
clearError: j
|
|
111514
111524
|
} = tQe(), G = ge(
|
|
111515
111525
|
(Ge) => {
|
|
111516
111526
|
r == null || r(Ge), n === void 0 && m(Ge);
|
|
@@ -111758,7 +111768,7 @@ function _Qe({
|
|
|
111758
111768
|
className: "h-7 p-2 text-muted-foreground hover:text-foreground",
|
|
111759
111769
|
tooltip: "New Chat",
|
|
111760
111770
|
onClick: () => {
|
|
111761
|
-
Y([]), F("dashboard"),
|
|
111771
|
+
Y([]), F("dashboard"), j(), fe();
|
|
111762
111772
|
},
|
|
111763
111773
|
children: /* @__PURE__ */ f(LD, { className: "size-4" })
|
|
111764
111774
|
}
|
|
@@ -111878,7 +111888,7 @@ function _Qe({
|
|
|
111878
111888
|
incomingSelectedEntities: ($ == null ? void 0 : $.selectedEntities) || [],
|
|
111879
111889
|
open: d,
|
|
111880
111890
|
onOpenChange: h,
|
|
111881
|
-
dataSource:
|
|
111891
|
+
dataSource: H || XI,
|
|
111882
111892
|
dialogMode: "aiContext"
|
|
111883
111893
|
}
|
|
111884
111894
|
)
|
|
@@ -112373,23 +112383,23 @@ function JQ() {
|
|
|
112373
112383
|
mT(Yt.DASHBOARD);
|
|
112374
112384
|
const { setSelectedSheetId: I, setSheetTitle: A, addSheet: z, setSheets: $ } = rn();
|
|
112375
112385
|
DQe(a);
|
|
112376
|
-
const { setActiveAssistantType:
|
|
112386
|
+
const { setActiveAssistantType: H } = CM();
|
|
112377
112387
|
pe(() => {
|
|
112378
112388
|
if (C) {
|
|
112379
112389
|
const ne = _();
|
|
112380
112390
|
F(ne);
|
|
112381
112391
|
}
|
|
112382
112392
|
}, [C, _]), pe(() => {
|
|
112383
|
-
g ?
|
|
112393
|
+
g ? H("dashboard") : p === "dashboard" && c(null);
|
|
112384
112394
|
}, [
|
|
112385
112395
|
g,
|
|
112386
|
-
|
|
112396
|
+
H,
|
|
112387
112397
|
p,
|
|
112388
112398
|
c
|
|
112389
112399
|
]);
|
|
112390
112400
|
function L(ne) {
|
|
112391
112401
|
var ae, de;
|
|
112392
|
-
ne ? ((ae = i.current) == null || ae.resize(40), u("dashboard", !0),
|
|
112402
|
+
ne ? ((ae = i.current) == null || ae.resize(40), u("dashboard", !0), H("dashboard")) : (u("dashboard", !1), c(null), (de = i.current) == null || de.resize(0), H(null));
|
|
112393
112403
|
}
|
|
112394
112404
|
function O() {
|
|
112395
112405
|
const ne = {
|
|
@@ -112403,7 +112413,7 @@ function JQ() {
|
|
|
112403
112413
|
R === ne ? (M(), F(null), We.success("Default sheet cleared")) : (E(ne), F(ne), We.success(`"${ae}" set as default sheet`));
|
|
112404
112414
|
}
|
|
112405
112415
|
function V(ne) {
|
|
112406
|
-
ne < 1 ? (u("dashboard", !1), c(null),
|
|
112416
|
+
ne < 1 ? (u("dashboard", !1), c(null), H(null)) : (g || u("dashboard", !0), H("dashboard"));
|
|
112407
112417
|
}
|
|
112408
112418
|
function P() {
|
|
112409
112419
|
return (v == null ? void 0 : v.canvasTheme) === "muted" || !(v != null && v.canvasTheme) ? "hsl(var(--semaphor-muted))" : (v == null ? void 0 : v.canvasTheme) === "clear" ? "" : v == null ? void 0 : v.canvasTheme;
|
|
@@ -112418,7 +112428,7 @@ function JQ() {
|
|
|
112418
112428
|
const ie = Array.from(x || []), [me] = ie.splice(parseInt(de), 1);
|
|
112419
112429
|
ie.splice(ae, 0, me), $(ie);
|
|
112420
112430
|
}, W = t.orgUserId || t.tenantId && t.endUserId && t.endUserEmail;
|
|
112421
|
-
function
|
|
112431
|
+
function j() {
|
|
112422
112432
|
var ne, ae;
|
|
112423
112433
|
if (x && x.length > 1 || w)
|
|
112424
112434
|
return /* @__PURE__ */ S(
|
|
@@ -112557,7 +112567,7 @@ function JQ() {
|
|
|
112557
112567
|
},
|
|
112558
112568
|
value: N || ((ne = x == null ? void 0 : x[0]) == null ? void 0 : ne.id),
|
|
112559
112569
|
children: [
|
|
112560
|
-
|
|
112570
|
+
j(),
|
|
112561
112571
|
/* @__PURE__ */ f(
|
|
112562
112572
|
nu,
|
|
112563
112573
|
{
|
|
@@ -112841,20 +112851,20 @@ const jQe = (e) => {
|
|
|
112841
112851
|
), b = ge(
|
|
112842
112852
|
(I, A, z) => {
|
|
112843
112853
|
if (!p) return;
|
|
112844
|
-
const
|
|
112845
|
-
if (
|
|
112854
|
+
const H = m(I)[A];
|
|
112855
|
+
if (H)
|
|
112846
112856
|
switch (I) {
|
|
112847
112857
|
case "groupBy":
|
|
112848
|
-
o(p,
|
|
112858
|
+
o(p, H.id, { label: z });
|
|
112849
112859
|
break;
|
|
112850
112860
|
case "metrics":
|
|
112851
|
-
i(p,
|
|
112861
|
+
i(p, H.id, { label: z });
|
|
112852
112862
|
break;
|
|
112853
112863
|
case "pivotBy":
|
|
112854
|
-
a(p,
|
|
112864
|
+
a(p, H.id, { label: z });
|
|
112855
112865
|
break;
|
|
112856
112866
|
case "sortBy":
|
|
112857
|
-
s(p,
|
|
112867
|
+
s(p, H.id, { label: z });
|
|
112858
112868
|
break;
|
|
112859
112869
|
}
|
|
112860
112870
|
},
|
|
@@ -112882,12 +112892,12 @@ const jQe = (e) => {
|
|
|
112882
112892
|
), v = ge(
|
|
112883
112893
|
(I, A, z) => {
|
|
112884
112894
|
if (!p) return;
|
|
112885
|
-
const
|
|
112886
|
-
if (!
|
|
112895
|
+
const H = m("groupBy")[I];
|
|
112896
|
+
if (!H) return;
|
|
112887
112897
|
const L = {
|
|
112888
112898
|
dateFormat: A
|
|
112889
112899
|
};
|
|
112890
|
-
A === "custom" && z ? L.customFormat = z : L.customFormat = void 0, o(p,
|
|
112900
|
+
A === "custom" && z ? L.customFormat = z : L.customFormat = void 0, o(p, H.id, L);
|
|
112891
112901
|
},
|
|
112892
112902
|
[p, m, o]
|
|
112893
112903
|
), x = ge(
|
|
@@ -112984,14 +112994,14 @@ const jQe = (e) => {
|
|
|
112984
112994
|
});
|
|
112985
112995
|
return;
|
|
112986
112996
|
}
|
|
112987
|
-
const
|
|
112997
|
+
const H = BQe(
|
|
112988
112998
|
I,
|
|
112989
112999
|
$,
|
|
112990
113000
|
h
|
|
112991
113001
|
);
|
|
112992
|
-
if (!
|
|
113002
|
+
if (!H.isValid) {
|
|
112993
113003
|
We.error("Invalid Field Type", {
|
|
112994
|
-
description:
|
|
113004
|
+
description: H.reason,
|
|
112995
113005
|
position: "top-center",
|
|
112996
113006
|
duration: 3e3
|
|
112997
113007
|
});
|
|
@@ -113028,10 +113038,10 @@ const jQe = (e) => {
|
|
|
113028
113038
|
const $ = m(I)[A];
|
|
113029
113039
|
if ($) {
|
|
113030
113040
|
if (I !== "sortBy") {
|
|
113031
|
-
const
|
|
113041
|
+
const H = m("sortBy"), L = H.filter(
|
|
113032
113042
|
(O) => !(O.name === $.name && O.qualifiedEntityName === $.qualifiedEntityName)
|
|
113033
113043
|
);
|
|
113034
|
-
L.length !==
|
|
113044
|
+
L.length !== H.length && r(p, {
|
|
113035
113045
|
sortByColumns: L
|
|
113036
113046
|
});
|
|
113037
113047
|
}
|
|
@@ -113137,7 +113147,7 @@ function GS(e, t) {
|
|
|
113137
113147
|
}), I = _ == null ? void 0 : _.type, A = (_ == null ? void 0 : _.type) === "API" || (_ == null ? void 0 : _.type) === "S3", {
|
|
113138
113148
|
data: z,
|
|
113139
113149
|
isLoading: $,
|
|
113140
|
-
isFetching:
|
|
113150
|
+
isFetching: H,
|
|
113141
113151
|
isError: L,
|
|
113142
113152
|
refetch: O
|
|
113143
113153
|
} = xn({
|
|
@@ -113172,7 +113182,7 @@ function GS(e, t) {
|
|
|
113172
113182
|
}), {
|
|
113173
113183
|
data: q,
|
|
113174
113184
|
isLoading: W,
|
|
113175
|
-
isFetching:
|
|
113185
|
+
isFetching: j,
|
|
113176
113186
|
isError: G,
|
|
113177
113187
|
refetch: K
|
|
113178
113188
|
} = xn({
|
|
@@ -113267,7 +113277,7 @@ function GS(e, t) {
|
|
|
113267
113277
|
isModelsError: F,
|
|
113268
113278
|
selectedDatabaseName: u,
|
|
113269
113279
|
databaseItems: tt,
|
|
113270
|
-
isDatabasesLoadingOrFetching: $ ||
|
|
113280
|
+
isDatabasesLoadingOrFetching: $ || H,
|
|
113271
113281
|
isDatabaseError: L,
|
|
113272
113282
|
schemaItems: ue,
|
|
113273
113283
|
selectedSchemaName: d,
|
|
@@ -113275,7 +113285,7 @@ function GS(e, t) {
|
|
|
113275
113285
|
isSchemaError: Y,
|
|
113276
113286
|
tableItems: Ne,
|
|
113277
113287
|
selectedTableName: h,
|
|
113278
|
-
isTableLoadingOrFetching: W ||
|
|
113288
|
+
isTableLoadingOrFetching: W || j,
|
|
113279
113289
|
isTableError: G,
|
|
113280
113290
|
columns: re,
|
|
113281
113291
|
isColumnsLoadingOrFetching: Z || ne,
|
|
@@ -113728,7 +113738,7 @@ function GQe({
|
|
|
113728
113738
|
} = pI({
|
|
113729
113739
|
id: e.id,
|
|
113730
113740
|
disabled: s
|
|
113731
|
-
}), [I, A] = ee(!1), z = Oe((q) => q.card), { handleFieldClick: $ } = jQe(z), { handleDevModeFieldClick:
|
|
113741
|
+
}), [I, A] = ee(!1), z = Oe((q) => q.card), { handleFieldClick: $ } = jQe(z), { handleDevModeFieldClick: H, isNumberField: L } = oJ(), O = () => {
|
|
113732
113742
|
v && (console.log(
|
|
113733
113743
|
"[SourceField] Removing multi-sheet filter:",
|
|
113734
113744
|
v.id
|
|
@@ -113747,7 +113757,7 @@ function GQe({
|
|
|
113747
113757
|
qualifiedFieldName: e.qualifiedFieldName
|
|
113748
113758
|
};
|
|
113749
113759
|
y && x ? (k({ column: q, field: e }), N(!0)) : h(q, "sheet", e);
|
|
113750
|
-
} else i ?
|
|
113760
|
+
} else i ? H(e) : $(e);
|
|
113751
113761
|
}, V = {
|
|
113752
113762
|
column_name: e.name,
|
|
113753
113763
|
data_type: e.dataType,
|
|
@@ -114197,7 +114207,7 @@ function uJe({
|
|
|
114197
114207
|
onFieldSelect: t,
|
|
114198
114208
|
inlineFilters: n
|
|
114199
114209
|
} = {}) {
|
|
114200
|
-
var A, z, $,
|
|
114210
|
+
var A, z, $, H;
|
|
114201
114211
|
const [r, o] = ee(""), [i, a] = ee("all");
|
|
114202
114212
|
Oe((L) => L.isDevMode);
|
|
114203
114213
|
const s = Oe((L) => L.card.dataSource), l = Oe((L) => L.card.config), c = Oe((L) => L.card), { autoJoinMetadata: u } = wl(c), {
|
|
@@ -114209,7 +114219,7 @@ function uJe({
|
|
|
114209
114219
|
...(l == null ? void 0 : l.groupByColumns) || [],
|
|
114210
114220
|
...(l == null ? void 0 : l.metricColumns) || []
|
|
114211
114221
|
];
|
|
114212
|
-
(z = (A = l == null ? void 0 : l.joinPlan) == null ? void 0 : A.baseEntity) == null || z.name, (
|
|
114222
|
+
(z = (A = l == null ? void 0 : l.joinPlan) == null ? void 0 : A.baseEntity) == null || z.name, (H = ($ = u == null ? void 0 : u.resolvedJoinPlan) == null ? void 0 : $.baseEntity) == null || H.name, oJ();
|
|
114213
114223
|
const v = d.filter(
|
|
114214
114224
|
(L) => L.name.toLowerCase().includes(r.toLowerCase()) || L.dataType.toLowerCase().includes(r.toLowerCase()) || L.label && L.label.toLowerCase().includes(r.toLowerCase()) || L.qualifiedEntityName && L.qualifiedEntityName.toLowerCase().includes(r.toLowerCase())
|
|
114215
114225
|
), x = (L) => {
|
|
@@ -114530,10 +114540,10 @@ function gJe() {
|
|
|
114530
114540
|
}
|
|
114531
114541
|
);
|
|
114532
114542
|
}
|
|
114533
|
-
const bJe = Zw(() => import("./dashboard-controls-
|
|
114534
|
-
() => import("./edit-dashboard-visual-
|
|
114535
|
-
), vJe = Zw(() => import("./dashboard-json-
|
|
114536
|
-
() => import("./resource-management-panel-
|
|
114543
|
+
const bJe = Zw(() => import("./dashboard-controls-EsDrzl-D.js")), yJe = Zw(
|
|
114544
|
+
() => import("./edit-dashboard-visual-BMXrqb3-.js")
|
|
114545
|
+
), vJe = Zw(() => import("./dashboard-json-zSw_5SRL.js")), xJe = Zw(
|
|
114546
|
+
() => import("./resource-management-panel-TN0oDdug.js").then(
|
|
114537
114547
|
(e) => ({ default: e.ResourceManagementPanel })
|
|
114538
114548
|
)
|
|
114539
114549
|
);
|
|
@@ -115183,9 +115193,9 @@ function Oet({ original: e, modified: t, language: n, originalLanguage: r, modif
|
|
|
115183
115193
|
!w && !v && F();
|
|
115184
115194
|
}, [w, v, F]);
|
|
115185
115195
|
function I() {
|
|
115186
|
-
var z, $,
|
|
115196
|
+
var z, $, H, L;
|
|
115187
115197
|
let A = (z = C.current) == null ? void 0 : z.getModel();
|
|
115188
|
-
s || (($ = A == null ? void 0 : A.original) == null || $.dispose()), l || ((
|
|
115198
|
+
s || (($ = A == null ? void 0 : A.original) == null || $.dispose()), l || ((H = A == null ? void 0 : A.modified) == null || H.dispose()), (L = C.current) == null || L.dispose();
|
|
115189
115199
|
}
|
|
115190
115200
|
return Q.createElement(kJ, { width: p, height: h, isEditorReady: v, loading: u, _ref: D, className: m, wrapperProps: g });
|
|
115191
115201
|
}
|
|
@@ -115209,7 +115219,7 @@ function Let(e) {
|
|
|
115209
115219
|
}
|
|
115210
115220
|
var zet = Let, Cv = /* @__PURE__ */ new Map();
|
|
115211
115221
|
function Bet({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, language: o, path: i, theme: a = "light", line: s, loading: l = "Loading...", options: c = {}, overrideServices: u = {}, saveViewState: d = !0, keepCurrentModel: h = !1, width: p = "100%", height: m = "100%", className: g, wrapperProps: b = {}, beforeMount: y = yg, onMount: v = yg, onChange: x, onValidate: w = yg }) {
|
|
115212
|
-
let [N, C] = ee(!1), [k, D] = ee(!0), _ = Se(null), E = Se(null), M = Se(null), R = Se(v), F = Se(y), I = Se(), A = Se(r), z = zet(i), $ = Se(!1),
|
|
115222
|
+
let [N, C] = ee(!1), [k, D] = ee(!0), _ = Se(null), E = Se(null), M = Se(null), R = Se(v), F = Se(y), I = Se(), A = Se(r), z = zet(i), $ = Se(!1), H = Se(!1);
|
|
115213
115223
|
hA(() => {
|
|
115214
115224
|
let U = Gw.init();
|
|
115215
115225
|
return U.then((V) => (_.current = V) && D(!1)).catch((V) => (V == null ? void 0 : V.type) !== "cancelation" && console.error("Monaco initialization: error:", V)), () => E.current ? O() : U.cancel();
|
|
@@ -115221,7 +115231,7 @@ function Bet({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, la
|
|
|
115221
115231
|
var U;
|
|
115222
115232
|
(U = E.current) == null || U.updateOptions(c);
|
|
115223
115233
|
}, [c], N), xi(() => {
|
|
115224
|
-
!E.current || r === void 0 || (E.current.getOption(_.current.editor.EditorOption.readOnly) ? E.current.setValue(r) : r !== E.current.getValue() && (
|
|
115234
|
+
!E.current || r === void 0 || (E.current.getOption(_.current.editor.EditorOption.readOnly) ? E.current.setValue(r) : r !== E.current.getValue() && (H.current = !0, E.current.executeEdits("", [{ range: E.current.getModel().getFullModelRange(), text: r, forceMoveMarkers: !0 }]), E.current.pushUndoStop(), H.current = !1));
|
|
115225
115235
|
}, [r], N), xi(() => {
|
|
115226
115236
|
var V, P;
|
|
115227
115237
|
let U = (V = E.current) == null ? void 0 : V.getModel();
|
|
@@ -115248,7 +115258,7 @@ function Bet({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, la
|
|
|
115248
115258
|
}, [k, N, L]), A.current = r, pe(() => {
|
|
115249
115259
|
var U, V;
|
|
115250
115260
|
N && x && ((U = I.current) == null || U.dispose(), I.current = (V = E.current) == null ? void 0 : V.onDidChangeModelContent((P) => {
|
|
115251
|
-
|
|
115261
|
+
H.current || x(E.current.getValue(), P);
|
|
115252
115262
|
}));
|
|
115253
115263
|
}, [N, x]), pe(() => {
|
|
115254
115264
|
if (N) {
|
|
@@ -115275,7 +115285,7 @@ function Bet({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, la
|
|
|
115275
115285
|
}
|
|
115276
115286
|
var Vet = Bet, jet = Aa(Vet), Ent = jet;
|
|
115277
115287
|
function Het({ card: e }) {
|
|
115278
|
-
var I, A, z, $,
|
|
115288
|
+
var I, A, z, $, H, L, O, U, V, P, Y;
|
|
115279
115289
|
const [t, n] = ee(!1), [r, o] = ee(
|
|
115280
115290
|
[]
|
|
115281
115291
|
), { authToken: i } = nt(), { theme: a } = s1(), s = v8(i == null ? void 0 : i.accessToken), l = J((B) => B.themeStyle), c = {
|
|
@@ -115283,7 +115293,7 @@ function Het({ card: e }) {
|
|
|
115283
115293
|
colors: ((A = (I = l == null ? void 0 : l.chart) == null ? void 0 : I.dataset) == null ? void 0 : A.backgroundColor) || []
|
|
115284
115294
|
};
|
|
115285
115295
|
(z = e.customCardPreferences) != null && z.inputData;
|
|
115286
|
-
const { getCard: u } = TR((($ = e.customCardPreferences) == null ? void 0 : $.url) || ""), d = ((
|
|
115296
|
+
const { getCard: u } = TR((($ = e.customCardPreferences) == null ? void 0 : $.url) || ""), d = ((H = e.customCardPreferences) == null ? void 0 : H.visualType) || "single", h = Oe((B) => B.frame), { setCustomCardPreferences: p } = Sr(), { data: m } = wl(e), g = jt(
|
|
115287
115297
|
(B) => B.interactionStates
|
|
115288
115298
|
), b = J((B) => {
|
|
115289
115299
|
var q;
|
|
@@ -115336,8 +115346,8 @@ function Het({ card: e }) {
|
|
|
115336
115346
|
const F = Object.keys(
|
|
115337
115347
|
((U = e.customCardPreferences) == null ? void 0 : U.dataInputCardIds) || {}
|
|
115338
115348
|
).map((B) => {
|
|
115339
|
-
var
|
|
115340
|
-
const q = (G = (
|
|
115349
|
+
var j, G, K;
|
|
115350
|
+
const q = (G = (j = e.customCardPreferences) == null ? void 0 : j.dataInputCardIds) == null ? void 0 : G[B].cardId, W = (K = h == null ? void 0 : h.cards) == null ? void 0 : K.find((re) => re.id === q);
|
|
115341
115351
|
return W || null;
|
|
115342
115352
|
});
|
|
115343
115353
|
return /* @__PURE__ */ f("div", { className: "semaphor-custom mb-3 flex grow basis-0 flex-col space-y-2 overflow-y-auto", children: /* @__PURE__ */ S(
|
|
@@ -115366,8 +115376,8 @@ function Het({ card: e }) {
|
|
|
115366
115376
|
Object.keys(
|
|
115367
115377
|
((P = e.customCardPreferences) == null ? void 0 : P.dataInputCardIds) || {}
|
|
115368
115378
|
).map((B) => {
|
|
115369
|
-
var
|
|
115370
|
-
const q = (G = (
|
|
115379
|
+
var j, G, K;
|
|
115380
|
+
const q = (G = (j = e.customCardPreferences) == null ? void 0 : j.dataInputCardIds) == null ? void 0 : G[B].cardId, W = (K = h == null ? void 0 : h.cards) == null ? void 0 : K.find(
|
|
115371
115381
|
(re) => re.id === q
|
|
115372
115382
|
);
|
|
115373
115383
|
if (W)
|
|
@@ -115711,11 +115721,11 @@ var MJ = ["PageUp", "PageDown"], RJ = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
115711
115721
|
function E(M, R, { commit: F } = { commit: !1 }) {
|
|
115712
115722
|
const I = gtt(i), A = btt(Math.round((M - r) / i) * i + r, I), z = _J(A, [r, o]);
|
|
115713
115723
|
N(($ = []) => {
|
|
115714
|
-
const
|
|
115715
|
-
if (mtt(
|
|
115716
|
-
y.current =
|
|
115717
|
-
const L = String(
|
|
115718
|
-
return L && F && h(
|
|
115724
|
+
const H = utt($, z, R);
|
|
115725
|
+
if (mtt(H, l * i)) {
|
|
115726
|
+
y.current = H.indexOf(z);
|
|
115727
|
+
const L = String(H) !== String($);
|
|
115728
|
+
return L && F && h(H), L ? H : $;
|
|
115719
115729
|
} else
|
|
115720
115730
|
return $;
|
|
115721
115731
|
});
|
|
@@ -115753,8 +115763,8 @@ var MJ = ["PageUp", "PageDown"], RJ = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
|
|
|
115753
115763
|
onEndKeyDown: () => !s && E(o, w.length - 1, { commit: !0 }),
|
|
115754
115764
|
onStepKeyDown: ({ event: M, direction: R }) => {
|
|
115755
115765
|
if (!s) {
|
|
115756
|
-
const A = MJ.includes(M.key) || M.shiftKey && RJ.includes(M.key) ? 10 : 1, z = y.current, $ = w[z],
|
|
115757
|
-
E($ +
|
|
115766
|
+
const A = MJ.includes(M.key) || M.shiftKey && RJ.includes(M.key) ? 10 : 1, z = y.current, $ = w[z], H = i * A * R;
|
|
115767
|
+
E($ + H, z, { commit: !0 });
|
|
115758
115768
|
}
|
|
115759
115769
|
}
|
|
115760
115770
|
}
|
|
@@ -116397,7 +116407,7 @@ export {
|
|
|
116397
116407
|
jd as cy,
|
|
116398
116408
|
md as cz,
|
|
116399
116409
|
jet as d,
|
|
116400
|
-
|
|
116410
|
+
va as d$,
|
|
116401
116411
|
cz as d0,
|
|
116402
116412
|
G3e as d1,
|
|
116403
116413
|
fS as d2,
|
|
@@ -116431,10 +116441,10 @@ export {
|
|
|
116431
116441
|
yJ as dU,
|
|
116432
116442
|
vJ as dV,
|
|
116433
116443
|
xJ as dW,
|
|
116434
|
-
|
|
116435
|
-
|
|
116436
|
-
|
|
116437
|
-
|
|
116444
|
+
tje as dX,
|
|
116445
|
+
vWe as dY,
|
|
116446
|
+
Du as dZ,
|
|
116447
|
+
Dae as d_,
|
|
116438
116448
|
Tb as da,
|
|
116439
116449
|
kg as db,
|
|
116440
116450
|
Iie as dc,
|
|
@@ -116461,115 +116471,117 @@ export {
|
|
|
116461
116471
|
Av as dy,
|
|
116462
116472
|
fI as dz,
|
|
116463
116473
|
Sr as e,
|
|
116464
|
-
|
|
116465
|
-
|
|
116466
|
-
|
|
116467
|
-
|
|
116468
|
-
|
|
116469
|
-
|
|
116470
|
-
|
|
116471
|
-
|
|
116472
|
-
|
|
116473
|
-
|
|
116474
|
-
|
|
116475
|
-
|
|
116476
|
-
|
|
116477
|
-
|
|
116478
|
-
|
|
116479
|
-
|
|
116480
|
-
|
|
116481
|
-
|
|
116482
|
-
|
|
116483
|
-
|
|
116484
|
-
|
|
116485
|
-
|
|
116486
|
-
|
|
116487
|
-
|
|
116488
|
-
|
|
116489
|
-
|
|
116490
|
-
|
|
116491
|
-
|
|
116492
|
-
|
|
116493
|
-
|
|
116494
|
-
|
|
116495
|
-
|
|
116496
|
-
|
|
116497
|
-
|
|
116498
|
-
|
|
116499
|
-
|
|
116500
|
-
|
|
116501
|
-
|
|
116502
|
-
|
|
116503
|
-
|
|
116504
|
-
|
|
116505
|
-
|
|
116506
|
-
|
|
116507
|
-
|
|
116508
|
-
|
|
116509
|
-
|
|
116510
|
-
|
|
116511
|
-
|
|
116512
|
-
|
|
116513
|
-
|
|
116514
|
-
|
|
116515
|
-
|
|
116516
|
-
|
|
116517
|
-
|
|
116518
|
-
|
|
116519
|
-
|
|
116520
|
-
|
|
116521
|
-
|
|
116522
|
-
|
|
116523
|
-
|
|
116524
|
-
|
|
116525
|
-
|
|
116526
|
-
|
|
116527
|
-
|
|
116474
|
+
Yr as e$,
|
|
116475
|
+
vc as e0,
|
|
116476
|
+
xne as e1,
|
|
116477
|
+
RT as e2,
|
|
116478
|
+
Hie as e3,
|
|
116479
|
+
WQe as e4,
|
|
116480
|
+
lK as e5,
|
|
116481
|
+
hnt as e6,
|
|
116482
|
+
w$e as e7,
|
|
116483
|
+
ax as e8,
|
|
116484
|
+
Pn as e9,
|
|
116485
|
+
i0 as eA,
|
|
116486
|
+
CM as eB,
|
|
116487
|
+
a0 as eC,
|
|
116488
|
+
LU as eD,
|
|
116489
|
+
$U as eE,
|
|
116490
|
+
nQe as eF,
|
|
116491
|
+
NQe as eG,
|
|
116492
|
+
CQe as eH,
|
|
116493
|
+
SQe as eI,
|
|
116494
|
+
kQe as eJ,
|
|
116495
|
+
oz as eK,
|
|
116496
|
+
OD as eL,
|
|
116497
|
+
LD as eM,
|
|
116498
|
+
nu as eN,
|
|
116499
|
+
UWe as eO,
|
|
116500
|
+
HWe as eP,
|
|
116501
|
+
WWe as eQ,
|
|
116502
|
+
rQe as eR,
|
|
116503
|
+
wQe as eS,
|
|
116504
|
+
QQ as eT,
|
|
116505
|
+
XI as eU,
|
|
116506
|
+
ZR as eV,
|
|
116507
|
+
D_ as eW,
|
|
116508
|
+
fnt as eX,
|
|
116509
|
+
Sw as eY,
|
|
116510
|
+
xn as eZ,
|
|
116511
|
+
gD as e_,
|
|
116512
|
+
Att as ea,
|
|
116513
|
+
Cp as eb,
|
|
116514
|
+
hO as ec,
|
|
116515
|
+
Ktt as ed,
|
|
116516
|
+
Uet as ee,
|
|
116517
|
+
Zb as ef,
|
|
116518
|
+
yO as eg,
|
|
116519
|
+
bO as eh,
|
|
116520
|
+
bpe as ei,
|
|
116521
|
+
uV as ej,
|
|
116522
|
+
xpe as ek,
|
|
116523
|
+
T1 as el,
|
|
116524
|
+
A1e as em,
|
|
116525
|
+
O5 as en,
|
|
116526
|
+
Q8 as eo,
|
|
116527
|
+
wtt as ep,
|
|
116528
|
+
Rs as eq,
|
|
116529
|
+
XXe as er,
|
|
116530
|
+
YQ as es,
|
|
116531
|
+
jCe as et,
|
|
116532
|
+
eQe as eu,
|
|
116533
|
+
bnt as ev,
|
|
116534
|
+
gnt as ew,
|
|
116535
|
+
mnt as ex,
|
|
116536
|
+
JXe as ey,
|
|
116537
|
+
Z6 as ez,
|
|
116528
116538
|
Oe as f,
|
|
116529
|
-
|
|
116530
|
-
|
|
116531
|
-
|
|
116532
|
-
|
|
116533
|
-
|
|
116534
|
-
|
|
116535
|
-
|
|
116536
|
-
|
|
116537
|
-
|
|
116538
|
-
|
|
116539
|
-
|
|
116540
|
-
|
|
116541
|
-
|
|
116542
|
-
|
|
116543
|
-
|
|
116544
|
-
|
|
116545
|
-
|
|
116546
|
-
|
|
116547
|
-
|
|
116548
|
-
|
|
116549
|
-
|
|
116550
|
-
|
|
116551
|
-
|
|
116552
|
-
|
|
116553
|
-
|
|
116554
|
-
|
|
116555
|
-
|
|
116556
|
-
|
|
116557
|
-
|
|
116558
|
-
|
|
116559
|
-
|
|
116560
|
-
|
|
116561
|
-
|
|
116562
|
-
|
|
116563
|
-
|
|
116564
|
-
|
|
116565
|
-
|
|
116566
|
-
|
|
116567
|
-
|
|
116568
|
-
|
|
116569
|
-
|
|
116570
|
-
|
|
116571
|
-
|
|
116572
|
-
|
|
116539
|
+
Ctt as f0,
|
|
116540
|
+
ktt as f1,
|
|
116541
|
+
pI as f2,
|
|
116542
|
+
jQe as f3,
|
|
116543
|
+
ks as f4,
|
|
116544
|
+
Jtt as f5,
|
|
116545
|
+
p8e as f6,
|
|
116546
|
+
pne as f7,
|
|
116547
|
+
Qie as f8,
|
|
116548
|
+
s6e as f9,
|
|
116549
|
+
Iue as fA,
|
|
116550
|
+
Z9 as fB,
|
|
116551
|
+
X9 as fC,
|
|
116552
|
+
N6e as fD,
|
|
116553
|
+
x6e as fE,
|
|
116554
|
+
Ea as fF,
|
|
116555
|
+
uh as fG,
|
|
116556
|
+
zCe as fH,
|
|
116557
|
+
BCe as fI,
|
|
116558
|
+
VCe as fJ,
|
|
116559
|
+
BQe as fa,
|
|
116560
|
+
uae as fb,
|
|
116561
|
+
pae as fc,
|
|
116562
|
+
Y8 as fd,
|
|
116563
|
+
$ie as fe,
|
|
116564
|
+
RS as ff,
|
|
116565
|
+
YG as fg,
|
|
116566
|
+
XY as fh,
|
|
116567
|
+
gK as fi,
|
|
116568
|
+
_w as fj,
|
|
116569
|
+
VK as fk,
|
|
116570
|
+
_S as fl,
|
|
116571
|
+
DS as fm,
|
|
116572
|
+
S_ as fn,
|
|
116573
|
+
cae as fo,
|
|
116574
|
+
nJ as fp,
|
|
116575
|
+
cSe as fq,
|
|
116576
|
+
fSe as fr,
|
|
116577
|
+
pH as fs,
|
|
116578
|
+
lSe as ft,
|
|
116579
|
+
aSe as fu,
|
|
116580
|
+
VQe as fv,
|
|
116581
|
+
oDe as fw,
|
|
116582
|
+
H3 as fx,
|
|
116583
|
+
K3e as fy,
|
|
116584
|
+
GI as fz,
|
|
116573
116585
|
rn as g,
|
|
116574
116586
|
Ii as h,
|
|
116575
116587
|
ztt as i,
|