@carto/ps-react-ui 4.4.1 → 4.4.2
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/components.js.map +1 -1
- package/dist/error-CEkRPccv.js.map +1 -1
- package/dist/exports-Cr43OCul.js.map +1 -1
- package/dist/formatter-B1Xh8XDH.js +5 -0
- package/dist/formatter-B1Xh8XDH.js.map +1 -0
- package/dist/lasso-tool-BYbxrJ-7.js.map +1 -1
- package/dist/note-t51drNe0.js.map +1 -1
- package/dist/options-D9wflre6.js.map +1 -1
- package/dist/row-DTCV0Ocm.js.map +1 -1
- package/dist/series-CYNOu2Ju.js.map +1 -1
- package/dist/smart-tooltip-D4vwQpFf.js.map +1 -1
- package/dist/styles-C_8vOEep.js +167 -0
- package/dist/styles-C_8vOEep.js.map +1 -0
- package/dist/tooltip-BDnrRKrp.js.map +1 -1
- package/dist/types/components/basemaps/basemaps.d.ts +20 -0
- package/dist/types/components/geolocation-controls/geolocation-controls.d.ts +11 -0
- package/dist/types/components/lasso-tool/lasso-tool-inline.d.ts +17 -0
- package/dist/types/components/lasso-tool/lasso-tool.d.ts +21 -0
- package/dist/types/components/list-data/list-data.d.ts +16 -0
- package/dist/types/components/measurement-tools/measurement-tools.d.ts +20 -0
- package/dist/types/components/smart-tooltip/smart-tooltip.d.ts +17 -0
- package/dist/types/components/tooltip/tooltip.d.ts +13 -0
- package/dist/types/components/zoom-controls/zoom-controls.d.ts +16 -0
- package/dist/types/hooks/use-widget-ref.d.ts +4 -4
- package/dist/types/widgets/actions/download/download.d.ts +11 -0
- package/dist/types/widgets/actions/download/exports.d.ts +15 -0
- package/dist/types/widgets/actions/fullscreen/fullscreen.d.ts +13 -0
- package/dist/types/widgets/actions/index.d.ts +1 -1
- package/dist/types/widgets/actions/relative-data/relative-data.d.ts +1 -0
- package/dist/types/widgets/bar/config.d.ts +8 -4
- package/dist/types/widgets/category/category-ui.d.ts +3 -0
- package/dist/types/widgets/category/components/category-bar.d.ts +3 -0
- package/dist/types/widgets/category/components/category-legend.d.ts +3 -0
- package/dist/types/widgets/category/components/category-row-multi.d.ts +3 -0
- package/dist/types/widgets/category/components/category-row-other.d.ts +3 -0
- package/dist/types/widgets/category/components/category-row-single.d.ts +3 -0
- package/dist/types/widgets/category/config.d.ts +11 -0
- package/dist/types/widgets/echart/echart-ui.d.ts +7 -0
- package/dist/types/widgets/echart/echart.d.ts +6 -0
- package/dist/types/widgets/echart/options.d.ts +7 -0
- package/dist/types/widgets/echart/types.d.ts +1 -0
- package/dist/types/widgets/echart/utils.d.ts +41 -0
- package/dist/types/widgets/error/error.d.ts +10 -0
- package/dist/types/widgets/formula/components/item.d.ts +3 -0
- package/dist/types/widgets/formula/components/prefix.d.ts +3 -0
- package/dist/types/widgets/formula/components/row.d.ts +3 -0
- package/dist/types/widgets/formula/components/series.d.ts +3 -0
- package/dist/types/widgets/formula/components/suffix.d.ts +3 -0
- package/dist/types/widgets/formula/components/value.d.ts +3 -0
- package/dist/types/widgets/formula/config.d.ts +11 -0
- package/dist/types/widgets/formula/formula-ui.d.ts +3 -0
- package/dist/types/widgets/histogram/config.d.ts +8 -4
- package/dist/types/widgets/loader/loader.d.ts +22 -0
- package/dist/types/widgets/loader/utils.d.ts +26 -3
- package/dist/types/widgets/markdown/config.d.ts +10 -0
- package/dist/types/widgets/markdown/markdown-ui.d.ts +7 -0
- package/dist/types/widgets/markdown/markdown.d.ts +3 -0
- package/dist/types/widgets/note/note.d.ts +10 -0
- package/dist/types/widgets/pie/config.d.ts +8 -4
- package/dist/types/widgets/range/components/range-item.d.ts +3 -0
- package/dist/types/widgets/range/config.d.ts +5 -0
- package/dist/types/widgets/range/range-ui.d.ts +3 -0
- package/dist/types/widgets/scatterplot/config.d.ts +7 -3
- package/dist/types/widgets/selection-summary/selection-summary.d.ts +11 -0
- package/dist/types/widgets/skeleton-loader/skeleton-loader.d.ts +10 -0
- package/dist/types/widgets/spread/components/max-value.d.ts +3 -0
- package/dist/types/widgets/spread/components/min-value.d.ts +3 -0
- package/dist/types/widgets/spread/components/separator.d.ts +3 -0
- package/dist/types/widgets/spread/config.d.ts +11 -0
- package/dist/types/widgets/spread/spread-ui.d.ts +3 -0
- package/dist/types/widgets/subheader/subheader.d.ts +11 -0
- package/dist/types/widgets/table/config.d.ts +8 -3
- package/dist/types/widgets/table/hooks/use-pagination.d.ts +11 -3
- package/dist/types/widgets/table/hooks/use-selection.d.ts +11 -2
- package/dist/types/widgets/table/hooks/use-sort.d.ts +11 -3
- package/dist/types/widgets/timeseries/config.d.ts +8 -4
- package/dist/types/widgets/utils/chart-config/download-config.d.ts +3 -0
- package/dist/types/widgets/{_shared → utils}/chart-config/index.d.ts +2 -0
- package/dist/types/widgets/{_shared → utils}/chart-config/option-builders.d.ts +1 -1
- package/dist/types/widgets/utils/formatter.d.ts +1 -0
- package/dist/types/widgets/utils/index.d.ts +7 -0
- package/dist/types/widgets/wrapper/components/actions.d.ts +3 -0
- package/dist/types/widgets/wrapper/components/options.d.ts +3 -0
- package/dist/types/widgets/wrapper/components/title.d.ts +3 -0
- package/dist/types/widgets/wrapper/wrapper-ui.d.ts +14 -0
- package/dist/types/widgets/wrapper/wrapper.d.ts +14 -0
- package/dist/use-widget-ref-wtFLDFCD.js.map +1 -1
- package/dist/utils-BOhInag6.js.map +1 -1
- package/dist/widgets/actions.js +651 -628
- package/dist/widgets/actions.js.map +1 -1
- package/dist/widgets/bar.js +66 -86
- package/dist/widgets/bar.js.map +1 -1
- package/dist/widgets/category.js +21 -21
- package/dist/widgets/category.js.map +1 -1
- package/dist/widgets/echart.js.map +1 -1
- package/dist/widgets/formula.js +54 -54
- package/dist/widgets/formula.js.map +1 -1
- package/dist/widgets/histogram.js +45 -65
- package/dist/widgets/histogram.js.map +1 -1
- package/dist/widgets/loader.js.map +1 -1
- package/dist/widgets/markdown.js.map +1 -1
- package/dist/widgets/pie.js +122 -99
- package/dist/widgets/pie.js.map +1 -1
- package/dist/widgets/range.js +23 -22
- package/dist/widgets/range.js.map +1 -1
- package/dist/widgets/scatterplot.js +39 -59
- package/dist/widgets/scatterplot.js.map +1 -1
- package/dist/widgets/selection-summary.js.map +1 -1
- package/dist/widgets/skeleton-loader.js.map +1 -1
- package/dist/widgets/spread.js +40 -41
- package/dist/widgets/spread.js.map +1 -1
- package/dist/widgets/subheader.js.map +1 -1
- package/dist/widgets/table.js.map +1 -1
- package/dist/widgets/timeseries.js +39 -59
- package/dist/widgets/timeseries.js.map +1 -1
- package/dist/widgets/utils.js +31 -0
- package/dist/widgets/utils.js.map +1 -0
- package/dist/widgets/wrapper.js.map +1 -1
- package/package.json +5 -1
- package/src/components/basemaps/basemaps.tsx +20 -0
- package/src/components/geolocation-controls/geolocation-controls.tsx +11 -0
- package/src/components/lasso-tool/lasso-tool-inline.tsx +17 -0
- package/src/components/lasso-tool/lasso-tool.tsx +21 -0
- package/src/components/list-data/list-data.tsx +16 -0
- package/src/components/measurement-tools/measurement-tools.tsx +20 -0
- package/src/components/smart-tooltip/smart-tooltip.tsx +17 -0
- package/src/components/tooltip/tooltip.tsx +13 -0
- package/src/components/zoom-controls/zoom-controls.tsx +16 -0
- package/src/hooks/use-widget-ref.ts +4 -4
- package/src/widgets/README.md +10 -10
- package/src/widgets/actions/download/download.tsx +11 -0
- package/src/widgets/actions/download/exports.tsx +15 -0
- package/src/widgets/actions/fullscreen/fullscreen.tsx +13 -0
- package/src/widgets/actions/index.ts +1 -0
- package/src/widgets/actions/relative-data/relative-data.test.tsx +62 -1
- package/src/widgets/actions/relative-data/relative-data.tsx +62 -39
- package/src/widgets/bar/config.ts +12 -20
- package/src/widgets/bar/style.ts +1 -1
- package/src/widgets/category/category-ui.tsx +4 -2
- package/src/widgets/category/components/category-bar.tsx +3 -0
- package/src/widgets/category/components/category-legend.tsx +3 -0
- package/src/widgets/category/components/category-row-multi.tsx +3 -0
- package/src/widgets/category/components/category-row-other.tsx +3 -0
- package/src/widgets/category/components/category-row-single.tsx +3 -0
- package/src/widgets/category/config.ts +11 -0
- package/src/widgets/echart/echart-ui.tsx +7 -0
- package/src/widgets/echart/echart.tsx +6 -0
- package/src/widgets/echart/options.ts +7 -0
- package/src/widgets/echart/types.ts +1 -0
- package/src/widgets/echart/utils.ts +41 -0
- package/src/widgets/error/error.tsx +10 -0
- package/src/widgets/formula/components/item.tsx +3 -0
- package/src/widgets/formula/components/prefix.tsx +3 -0
- package/src/widgets/formula/components/row.tsx +3 -0
- package/src/widgets/formula/components/series.tsx +3 -0
- package/src/widgets/formula/components/suffix.tsx +3 -0
- package/src/widgets/formula/components/value.tsx +4 -2
- package/src/widgets/formula/config.ts +11 -0
- package/src/widgets/formula/formula-ui.tsx +3 -0
- package/src/widgets/histogram/config.ts +11 -20
- package/src/widgets/histogram/style.ts +1 -1
- package/src/widgets/loader/loader.tsx +22 -0
- package/src/widgets/loader/utils.ts +26 -3
- package/src/widgets/markdown/config.ts +10 -0
- package/src/widgets/markdown/markdown-ui.tsx +7 -0
- package/src/widgets/markdown/markdown.tsx +3 -0
- package/src/widgets/note/note.tsx +10 -0
- package/src/widgets/pie/config.ts +85 -30
- package/src/widgets/pie/style.ts +1 -1
- package/src/widgets/range/components/range-item.tsx +5 -2
- package/src/widgets/range/config.ts +5 -0
- package/src/widgets/range/range-ui.tsx +3 -0
- package/src/widgets/scatterplot/config.ts +11 -20
- package/src/widgets/scatterplot/style.ts +1 -1
- package/src/widgets/selection-summary/selection-summary.tsx +11 -0
- package/src/widgets/skeleton-loader/skeleton-loader.tsx +10 -0
- package/src/widgets/spread/components/max-value.tsx +4 -2
- package/src/widgets/spread/components/min-value.tsx +4 -2
- package/src/widgets/spread/components/separator.tsx +3 -0
- package/src/widgets/spread/config.ts +11 -0
- package/src/widgets/spread/spread-ui.tsx +3 -0
- package/src/widgets/subheader/subheader.tsx +11 -0
- package/src/widgets/table/config.ts +8 -3
- package/src/widgets/table/hooks/use-pagination.ts +11 -3
- package/src/widgets/table/hooks/use-selection.ts +11 -2
- package/src/widgets/table/hooks/use-sort.ts +11 -3
- package/src/widgets/timeseries/config.ts +11 -20
- package/src/widgets/timeseries/style.ts +1 -1
- package/src/widgets/utils/chart-config/download-config.ts +22 -0
- package/src/widgets/{_shared → utils}/chart-config/index.ts +4 -0
- package/src/widgets/{_shared → utils}/chart-config/option-builders.ts +1 -1
- package/src/widgets/utils/formatter.ts +1 -0
- package/src/widgets/utils/index.ts +26 -0
- package/src/widgets/wrapper/components/actions.tsx +3 -0
- package/src/widgets/wrapper/components/options.tsx +3 -0
- package/src/widgets/wrapper/components/title.tsx +3 -0
- package/src/widgets/wrapper/wrapper-ui.tsx +14 -0
- package/src/widgets/wrapper/wrapper.tsx +14 -0
- package/dist/styles-CAroD5Rc.js +0 -123
- package/dist/styles-CAroD5Rc.js.map +0 -1
- /package/dist/types/widgets/{_shared → utils}/chart-config/config-factory.d.ts +0 -0
- /package/dist/types/widgets/{_shared → utils}/chart-config/csv-modifiers.d.ts +0 -0
- /package/dist/types/widgets/{_shared → utils}/chart-config/option-builders.test.d.ts +0 -0
- /package/dist/types/widgets/{_shared → utils}/skeleton/index.d.ts +0 -0
- /package/dist/types/widgets/{_shared → utils}/skeleton/styles.d.ts +0 -0
- /package/src/widgets/{_shared → utils}/chart-config/config-factory.ts +0 -0
- /package/src/widgets/{_shared → utils}/chart-config/csv-modifiers.ts +0 -0
- /package/src/widgets/{_shared → utils}/chart-config/option-builders.test.ts +0 -0
- /package/src/widgets/{_shared → utils}/skeleton/index.ts +0 -0
- /package/src/widgets/{_shared → utils}/skeleton/styles.ts +0 -0
package/dist/widgets/actions.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as T, jsxs as ie, Fragment as Te } from "react/jsx-runtime";
|
|
2
2
|
import { c as Y } from "react/compiler-runtime";
|
|
3
|
-
import { IconButton as q, DialogContent as
|
|
3
|
+
import { IconButton as q, DialogContent as Re, Dialog as Pe, Typography as Me, DialogTitle as Fe, CircularProgress as Ge, MenuItem as Le, ListItemIcon as Ve, ListItemText as xe, Menu as Oe, useTheme as Ze, Box as $e, TextField as He, InputAdornment as _e, SvgIcon as Ne } from "@mui/material";
|
|
4
4
|
import { u as D } from "../widget-store-CzDt8oSK.js";
|
|
5
|
-
import { FullscreenOutlined as
|
|
5
|
+
import { FullscreenOutlined as je, Close as Ue, FileDownloadOutlined as Ke, PercentOutlined as Ye, SubdirectoryArrowLeftOutlined as qe, ZoomInOutlined as Je, CheckBoxOutlined as Qe, SearchOutlined as we, ClearOutlined as Xe, HighlightAltOutlined as et } from "@mui/icons-material";
|
|
6
6
|
import { useShallow as te } from "zustand/shallow";
|
|
7
|
-
import { useState as
|
|
7
|
+
import { useState as pe, useRef as ae, useEffect as K } from "react";
|
|
8
8
|
import "react-markdown";
|
|
9
|
-
import { a as
|
|
9
|
+
import { a as Nn, d as jn } from "../exports-Cr43OCul.js";
|
|
10
10
|
import "../lasso-tool-BYbxrJ-7.js";
|
|
11
11
|
import "../cjs-D4KH3azB.js";
|
|
12
12
|
import { T as se } from "../tooltip-BDnrRKrp.js";
|
|
13
|
-
import { b as
|
|
14
|
-
import { useSensors as
|
|
15
|
-
import { useSortable as
|
|
16
|
-
import { CSS as
|
|
17
|
-
const
|
|
13
|
+
import { b as tt, a as nt, D as ot, g as Se } from "../utils-BOhInag6.js";
|
|
14
|
+
import { useSensors as lt, useSensor as ve, PointerSensor as st, KeyboardSensor as rt, DndContext as it, closestCenter as ct } from "@dnd-kit/core";
|
|
15
|
+
import { useSortable as at, sortableKeyboardCoordinates as dt, arrayMove as ut, SortableContext as ft, verticalListSortingStrategy as gt } from "@dnd-kit/sortable";
|
|
16
|
+
import { CSS as mt } from "@dnd-kit/utilities";
|
|
17
|
+
const ye = {
|
|
18
18
|
title: {
|
|
19
19
|
container: {
|
|
20
20
|
display: "flex",
|
|
@@ -30,268 +30,290 @@ const ve = {
|
|
|
30
30
|
spacing: n
|
|
31
31
|
}) => n(1)
|
|
32
32
|
}
|
|
33
|
-
},
|
|
34
|
-
function
|
|
33
|
+
}, ht = {};
|
|
34
|
+
function Wn(n) {
|
|
35
35
|
const e = Y(47), {
|
|
36
36
|
id: t,
|
|
37
|
-
labels:
|
|
38
|
-
children:
|
|
37
|
+
labels: f,
|
|
38
|
+
children: _,
|
|
39
39
|
Icon: c,
|
|
40
40
|
IconButtonProps: S,
|
|
41
41
|
DialogContentProps: v,
|
|
42
|
-
DialogProps:
|
|
43
|
-
} = n,
|
|
44
|
-
let
|
|
45
|
-
e[0] !==
|
|
46
|
-
sx:
|
|
47
|
-
...
|
|
48
|
-
} =
|
|
49
|
-
let
|
|
50
|
-
e[3] !== t ? (
|
|
51
|
-
const r = D(te(
|
|
52
|
-
let
|
|
53
|
-
e[5] !== t ? (
|
|
54
|
-
const
|
|
55
|
-
let
|
|
56
|
-
e[7] !== t || e[8] !== i ? (
|
|
42
|
+
DialogProps: g
|
|
43
|
+
} = n, m = v === void 0 ? ht : v;
|
|
44
|
+
let a, b;
|
|
45
|
+
e[0] !== m ? ({
|
|
46
|
+
sx: b,
|
|
47
|
+
...a
|
|
48
|
+
} = m, e[0] = m, e[1] = a, e[2] = b) : (a = e[1], b = e[2]);
|
|
49
|
+
let o;
|
|
50
|
+
e[3] !== t ? (o = (p) => p.getWidget(t)?.isFullScreen, e[3] = t, e[4] = o) : o = e[4];
|
|
51
|
+
const r = D(te(o));
|
|
52
|
+
let d;
|
|
53
|
+
e[5] !== t ? (d = (p) => p.getWidget(t)?.title, e[5] = t, e[6] = d) : d = e[6];
|
|
54
|
+
const l = D(te(d)), i = D(pt);
|
|
55
|
+
let I;
|
|
56
|
+
e[7] !== t || e[8] !== i ? (I = (p) => {
|
|
57
57
|
i(t, {
|
|
58
|
-
isFullScreen:
|
|
58
|
+
isFullScreen: p.isFullScreen
|
|
59
59
|
});
|
|
60
|
-
}, e[7] = t, e[8] = i, e[9] =
|
|
61
|
-
const
|
|
62
|
-
let
|
|
63
|
-
e[10] !==
|
|
60
|
+
}, e[7] = t, e[8] = i, e[9] = I) : I = e[9];
|
|
61
|
+
const s = I;
|
|
62
|
+
let u;
|
|
63
|
+
e[10] !== s ? (u = () => s({
|
|
64
64
|
isFullScreen: !0
|
|
65
|
-
}), e[10] =
|
|
65
|
+
}), e[10] = s, e[11] = u) : u = e[11];
|
|
66
66
|
let C;
|
|
67
|
-
e[12] !== c ? (C = c ?? /* @__PURE__ */
|
|
68
|
-
let
|
|
69
|
-
e[14] !== S || e[15] !==
|
|
70
|
-
const x = !!r,
|
|
71
|
-
let
|
|
72
|
-
e[18] !==
|
|
67
|
+
e[12] !== c ? (C = c ?? /* @__PURE__ */ T(je, {}), e[12] = c, e[13] = C) : C = e[13];
|
|
68
|
+
let h;
|
|
69
|
+
e[14] !== S || e[15] !== u || e[16] !== C ? (h = /* @__PURE__ */ T(q, { ...S, onClick: u, children: C }), e[14] = S, e[15] = u, e[16] = C, e[17] = h) : h = e[17];
|
|
70
|
+
const x = !!r, $ = f?.ariaLabel ?? `fullscreen-dialog-title-${t}`;
|
|
71
|
+
let y;
|
|
72
|
+
e[18] !== s ? (y = () => s({
|
|
73
73
|
isFullScreen: !1
|
|
74
|
-
}), e[18] =
|
|
74
|
+
}), e[18] = s, e[19] = y) : y = e[19];
|
|
75
75
|
const z = `fullscreen-dialog-title-${t}`;
|
|
76
|
-
let w;
|
|
77
|
-
e[20] !== s ? (w = /* @__PURE__ */ p(Me, { variant: "subtitle1", component: "span", children: s }), e[20] = s, e[21] = w) : w = e[21];
|
|
78
|
-
let P;
|
|
79
|
-
e[22] !== g ? (P = () => g({
|
|
80
|
-
isFullScreen: !1
|
|
81
|
-
}), e[22] = g, e[23] = P) : P = e[23];
|
|
82
|
-
let B;
|
|
83
|
-
e[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ p(je, {}), e[24] = B) : B = e[24];
|
|
84
|
-
let $;
|
|
85
|
-
e[25] !== P ? ($ = /* @__PURE__ */ p(q, { onClick: P, children: B }), e[25] = P, e[26] = $) : $ = e[26];
|
|
86
76
|
let W;
|
|
87
|
-
e[
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
e[31] !== _ ? (L = {
|
|
93
|
-
...ve.content,
|
|
94
|
-
..._
|
|
95
|
-
}, e[31] = _, e[32] = L) : L = e[32];
|
|
77
|
+
e[20] !== l ? (W = /* @__PURE__ */ T(Me, { variant: "subtitle1", component: "span", children: l }), e[20] = l, e[21] = W) : W = e[21];
|
|
78
|
+
let B;
|
|
79
|
+
e[22] !== s ? (B = () => s({
|
|
80
|
+
isFullScreen: !1
|
|
81
|
+
}), e[22] = s, e[23] = B) : B = e[23];
|
|
96
82
|
let A;
|
|
97
|
-
e[
|
|
98
|
-
let
|
|
99
|
-
e[
|
|
83
|
+
e[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ T(Ue, {}), e[24] = A) : A = e[24];
|
|
84
|
+
let w;
|
|
85
|
+
e[25] !== B ? (w = /* @__PURE__ */ T(q, { onClick: B, children: A }), e[25] = B, e[26] = w) : w = e[26];
|
|
86
|
+
let O;
|
|
87
|
+
e[27] !== z || e[28] !== W || e[29] !== w ? (O = /* @__PURE__ */ ie(Fe, { id: z, sx: ye.title.container, children: [
|
|
100
88
|
W,
|
|
101
|
-
|
|
102
|
-
] }), e[
|
|
89
|
+
w
|
|
90
|
+
] }), e[27] = z, e[28] = W, e[29] = w, e[30] = O) : O = e[30];
|
|
103
91
|
let E;
|
|
104
|
-
|
|
105
|
-
|
|
92
|
+
e[31] !== b ? (E = {
|
|
93
|
+
...ye.content,
|
|
94
|
+
...b
|
|
95
|
+
}, e[31] = b, e[32] = E) : E = e[32];
|
|
96
|
+
let R;
|
|
97
|
+
e[33] !== a || e[34] !== _ || e[35] !== E ? (R = /* @__PURE__ */ T(Re, { sx: E, ...a, children: _ }), e[33] = a, e[34] = _, e[35] = E, e[36] = R) : R = e[36];
|
|
98
|
+
let k;
|
|
99
|
+
e[37] !== g || e[38] !== $ || e[39] !== y || e[40] !== O || e[41] !== R || e[42] !== x ? (k = /* @__PURE__ */ ie(Pe, { maxWidth: !1, open: x, keepMounted: !0, "aria-labelledby": $, ...g, onClose: y, children: [
|
|
100
|
+
O,
|
|
101
|
+
R
|
|
102
|
+
] }), e[37] = g, e[38] = $, e[39] = y, e[40] = O, e[41] = R, e[42] = x, e[43] = k) : k = e[43];
|
|
103
|
+
let L;
|
|
104
|
+
return e[44] !== k || e[45] !== h ? (L = /* @__PURE__ */ ie(Te, { children: [
|
|
105
|
+
h,
|
|
106
106
|
k
|
|
107
|
-
] }), e[44] = k, e[45] =
|
|
107
|
+
] }), e[44] = k, e[45] = h, e[46] = L) : L = e[46], L;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function pt(n) {
|
|
110
110
|
return n.setWidget;
|
|
111
111
|
}
|
|
112
|
-
const
|
|
113
|
-
function
|
|
112
|
+
const bt = {};
|
|
113
|
+
function Bn(n) {
|
|
114
114
|
const e = Y(33), {
|
|
115
115
|
id: t,
|
|
116
|
-
items:
|
|
117
|
-
labels:
|
|
116
|
+
items: f,
|
|
117
|
+
labels: _,
|
|
118
118
|
Icon: c,
|
|
119
119
|
IconButtonProps: S
|
|
120
|
-
} = n, v =
|
|
121
|
-
let
|
|
122
|
-
e[0] !== t ? (
|
|
123
|
-
const
|
|
124
|
-
let
|
|
125
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
120
|
+
} = n, v = _ === void 0 ? bt : _;
|
|
121
|
+
let g;
|
|
122
|
+
e[0] !== t ? (g = (k) => k.getWidget(t)?.data, e[0] = t, e[1] = g) : g = e[1];
|
|
123
|
+
const m = D(te(g)), [a, b] = pe(!1), [o, r] = pe(null);
|
|
124
|
+
let d;
|
|
125
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = (k) => {
|
|
126
126
|
k.stopPropagation(), r(k.currentTarget);
|
|
127
|
-
}, e[2] =
|
|
128
|
-
const
|
|
127
|
+
}, e[2] = d) : d = e[2];
|
|
128
|
+
const l = d;
|
|
129
129
|
let i;
|
|
130
|
-
e[3] !== t ? (i = (k,
|
|
131
|
-
const
|
|
132
|
-
|
|
130
|
+
e[3] !== t ? (i = (k, L) => {
|
|
131
|
+
const p = document.createElement("a");
|
|
132
|
+
p.href = k, p.download = L.filename ?? t, p.style.display = "none", document.body.appendChild(p), p.click(), document.body.removeChild(p), L.callback?.(p.href);
|
|
133
133
|
}, e[3] = t, e[4] = i) : i = e[4];
|
|
134
|
-
const
|
|
135
|
-
let
|
|
136
|
-
e[5] !==
|
|
137
|
-
k.stopPropagation(),
|
|
138
|
-
const
|
|
139
|
-
if (!
|
|
140
|
-
|
|
134
|
+
const I = i;
|
|
135
|
+
let s;
|
|
136
|
+
e[5] !== m || e[6] !== I ? (s = async (k, L) => {
|
|
137
|
+
k.stopPropagation(), b(!0), r(null);
|
|
138
|
+
const p = await L.modifier(m);
|
|
139
|
+
if (!p) {
|
|
140
|
+
b(!1);
|
|
141
141
|
return;
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
}, e[5] =
|
|
145
|
-
const
|
|
146
|
-
let
|
|
147
|
-
e[8] !== c || e[9] !==
|
|
148
|
-
let
|
|
149
|
-
e[11] !== S || e[12] !== C || e[13] !==
|
|
150
|
-
let z,
|
|
143
|
+
I(p, L), b(!1);
|
|
144
|
+
}, e[5] = m, e[6] = I, e[7] = s) : s = e[7];
|
|
145
|
+
const u = s, C = v.ariaLabel ?? "download options", h = a || f.length === 0, x = a || o ? "active" : "";
|
|
146
|
+
let $;
|
|
147
|
+
e[8] !== c || e[9] !== a ? ($ = a ? /* @__PURE__ */ T(Ge, { size: 18, color: "inherit" }) : c ?? /* @__PURE__ */ T(Ke, {}), e[8] = c, e[9] = a, e[10] = $) : $ = e[10];
|
|
148
|
+
let y;
|
|
149
|
+
e[11] !== S || e[12] !== C || e[13] !== h || e[14] !== x || e[15] !== $ ? (y = /* @__PURE__ */ T(q, { size: "small", "aria-label": C, "aria-controls": "options-menu", "aria-haspopup": "true", onClick: l, ...S, disabled: h, className: x, children: $ }), e[11] = S, e[12] = C, e[13] = h, e[14] = x, e[15] = $, e[16] = y) : y = e[16];
|
|
150
|
+
let z, W;
|
|
151
151
|
e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = {
|
|
152
152
|
vertical: "bottom",
|
|
153
153
|
horizontal: "right"
|
|
154
|
-
},
|
|
154
|
+
}, W = {
|
|
155
155
|
vertical: "top",
|
|
156
156
|
horizontal: "right"
|
|
157
|
-
}, e[17] = z, e[18] =
|
|
158
|
-
const
|
|
159
|
-
let
|
|
160
|
-
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
157
|
+
}, e[17] = z, e[18] = W) : (z = e[17], W = e[18]);
|
|
158
|
+
const B = !!o;
|
|
159
|
+
let A, w;
|
|
160
|
+
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = () => r(null), w = {
|
|
161
161
|
sx: {
|
|
162
162
|
paddingBottom: 0
|
|
163
163
|
}
|
|
164
|
-
}, e[19] =
|
|
165
|
-
let
|
|
166
|
-
if (e[21] !==
|
|
164
|
+
}, e[19] = A, e[20] = w) : (A = e[19], w = e[20]);
|
|
165
|
+
let O;
|
|
166
|
+
if (e[21] !== u || e[22] !== f) {
|
|
167
167
|
let k;
|
|
168
|
-
e[24] !==
|
|
169
|
-
|
|
168
|
+
e[24] !== u ? (k = (L) => /* @__PURE__ */ ie(Le, { disabled: L.disabled, onClick: (p) => {
|
|
169
|
+
u(p, L);
|
|
170
170
|
}, children: [
|
|
171
|
-
|
|
171
|
+
L.icon && /* @__PURE__ */ T(Ve, { sx: {
|
|
172
172
|
color: "text.primary"
|
|
173
|
-
}, children:
|
|
174
|
-
/* @__PURE__ */
|
|
175
|
-
] },
|
|
173
|
+
}, children: L.icon }),
|
|
174
|
+
/* @__PURE__ */ T(xe, { children: L.label })
|
|
175
|
+
] }, L.id), e[24] = u, e[25] = k) : k = e[25], O = f.map(k), e[21] = u, e[22] = f, e[23] = O;
|
|
176
176
|
} else
|
|
177
|
-
|
|
178
|
-
let
|
|
179
|
-
e[26] !==
|
|
180
|
-
let
|
|
181
|
-
return e[30] !==
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
] }), e[30] =
|
|
177
|
+
O = e[23];
|
|
178
|
+
let E;
|
|
179
|
+
e[26] !== o || e[27] !== B || e[28] !== O ? (E = /* @__PURE__ */ T(Oe, { variant: "menu", elevation: 8, anchorOrigin: z, transformOrigin: W, anchorEl: o, open: B, onClose: A, MenuListProps: w, children: O }), e[26] = o, e[27] = B, e[28] = O, e[29] = E) : E = e[29];
|
|
180
|
+
let R;
|
|
181
|
+
return e[30] !== y || e[31] !== E ? (R = /* @__PURE__ */ ie(Te, { children: [
|
|
182
|
+
y,
|
|
183
|
+
E
|
|
184
|
+
] }), e[30] = y, e[31] = E, e[32] = R) : R = e[32], R;
|
|
185
185
|
}
|
|
186
|
-
const
|
|
186
|
+
const ue = {
|
|
187
187
|
trigger: {
|
|
188
188
|
'&[data-active="true"]': {
|
|
189
189
|
background: (n) => n.palette.primary.relatedLight
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
};
|
|
193
|
-
function
|
|
194
|
-
return n.reduce((e, t) => t.reduce((
|
|
195
|
-
if (Array.isArray(
|
|
196
|
-
const c =
|
|
197
|
-
return typeof c == "number" ?
|
|
193
|
+
function Tt(n) {
|
|
194
|
+
return n.reduce((e, t) => t.reduce((f, _) => {
|
|
195
|
+
if (Array.isArray(_)) {
|
|
196
|
+
const c = _.at(-1);
|
|
197
|
+
return typeof c == "number" ? f + c : f;
|
|
198
198
|
}
|
|
199
|
-
return Object.entries(
|
|
199
|
+
return Object.entries(_).reduce((c, [S, v]) => S === "name" ? c : typeof v == "number" ? c + v : c, f);
|
|
200
200
|
}, e), 0);
|
|
201
201
|
}
|
|
202
|
-
function
|
|
203
|
-
return e === 0 ? n : n.map((t) => t.map((
|
|
204
|
-
if (Array.isArray(
|
|
205
|
-
return
|
|
206
|
-
const
|
|
207
|
-
for (const [c, S] of Object.entries(
|
|
202
|
+
function _t(n, e) {
|
|
203
|
+
return e === 0 ? n : n.map((t) => t.map((f) => {
|
|
204
|
+
if (Array.isArray(f))
|
|
205
|
+
return f.map((c, S) => S === f.length - 1 && typeof c == "number" ? c / e * 100 : c);
|
|
206
|
+
const _ = {};
|
|
207
|
+
for (const [c, S] of Object.entries(f)) {
|
|
208
208
|
if (c === "name") {
|
|
209
|
-
|
|
209
|
+
_[c] = S;
|
|
210
210
|
continue;
|
|
211
211
|
}
|
|
212
|
-
|
|
212
|
+
_[c] = typeof S == "number" ? S / e * 100 : S;
|
|
213
213
|
}
|
|
214
|
-
return
|
|
214
|
+
return _;
|
|
215
215
|
}));
|
|
216
216
|
}
|
|
217
|
-
const
|
|
218
|
-
function
|
|
219
|
-
const e = Y(
|
|
217
|
+
const he = "relative-data", ce = "relative-data-config";
|
|
218
|
+
function zn(n) {
|
|
219
|
+
const e = Y(33), {
|
|
220
220
|
id: t,
|
|
221
|
-
order:
|
|
222
|
-
defaultIsRelative:
|
|
221
|
+
order: f,
|
|
222
|
+
defaultIsRelative: _,
|
|
223
223
|
labels: c,
|
|
224
224
|
Icon: S,
|
|
225
225
|
IconButtonProps: v
|
|
226
|
-
} = n,
|
|
227
|
-
let
|
|
228
|
-
e[0] !== t ? (
|
|
229
|
-
const
|
|
230
|
-
let
|
|
231
|
-
e[2] !==
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
226
|
+
} = n, g = f === void 0 ? 10 : f, m = _ === void 0 ? !1 : _, a = ae(void 0), b = D(kt), o = D(Et), r = D(Ct), d = D(It), l = D(yt);
|
|
227
|
+
let i;
|
|
228
|
+
e[0] !== t ? (i = (O) => O.widgets[t]?.registeredTools?.find(vt)?.config?.isRelative, e[0] = t, e[1] = i) : i = e[1];
|
|
229
|
+
const s = D(i) ?? m;
|
|
230
|
+
let u, C;
|
|
231
|
+
e[2] !== m || e[3] !== t || e[4] !== g || e[5] !== o || e[6] !== r ? (u = () => (o(t, {
|
|
232
|
+
id: he,
|
|
233
|
+
order: g,
|
|
234
|
+
enabled: m,
|
|
235
|
+
fn: St
|
|
236
|
+
}), () => r(t, he)), C = [t, g, o, r, m], e[2] = m, e[3] = t, e[4] = g, e[5] = o, e[6] = r, e[7] = u, e[8] = C) : (u = e[7], C = e[8]), K(u, C);
|
|
237
|
+
let h, x;
|
|
238
|
+
e[9] !== m || e[10] !== t || e[11] !== g || e[12] !== o || e[13] !== r ? (h = () => (o(t, {
|
|
239
|
+
id: ce,
|
|
240
|
+
type: "config",
|
|
241
|
+
order: g,
|
|
242
|
+
enabled: !0,
|
|
243
|
+
fn: (O, E) => {
|
|
244
|
+
const R = O;
|
|
245
|
+
if (E?.isRelative) {
|
|
246
|
+
if (!a.current) {
|
|
247
|
+
const k = E?.locale;
|
|
248
|
+
a.current = (L) => new Intl.NumberFormat(k, {
|
|
249
|
+
style: "percent",
|
|
250
|
+
minimumFractionDigits: 1,
|
|
251
|
+
maximumFractionDigits: 1
|
|
252
|
+
}).format(L / 100);
|
|
253
|
+
}
|
|
254
|
+
return {
|
|
255
|
+
...R,
|
|
256
|
+
formatter: a.current,
|
|
257
|
+
max: 100
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
return a.current = void 0, E && "originalFormatter" in E ? {
|
|
261
|
+
...R,
|
|
262
|
+
formatter: E.originalFormatter,
|
|
263
|
+
max: E.originalMax
|
|
264
|
+
} : R;
|
|
265
|
+
},
|
|
266
|
+
config: {
|
|
267
|
+
isRelative: m
|
|
253
268
|
}
|
|
254
|
-
|
|
255
|
-
isRelative: L,
|
|
256
|
-
max: A,
|
|
257
|
-
formatter: L ? (k) => {
|
|
258
|
-
const E = r(t);
|
|
259
|
-
return new Intl.NumberFormat(E?.locale, {
|
|
260
|
-
style: "percent",
|
|
261
|
-
minimumFractionDigits: 1,
|
|
262
|
-
maximumFractionDigits: 1
|
|
263
|
-
}).format(k / 100);
|
|
264
|
-
} : _.current
|
|
265
|
-
});
|
|
266
|
-
}, e[15] = r, e[16] = t, e[17] = o, e[18] = i, e[19] = l, e[20] = I) : I = e[20];
|
|
267
|
-
const z = I, w = o ? c?.absolute ?? "Show absolute values" : c?.relative ?? "Show relative values", P = c?.ariaLabel ?? w;
|
|
268
|
-
let B;
|
|
269
|
-
e[21] !== S ? (B = S ?? /* @__PURE__ */ p(Ke, {}), e[21] = S, e[22] = B) : B = e[22];
|
|
269
|
+
}), () => r(t, ce)), x = [t, g, o, r, m], e[9] = m, e[10] = t, e[11] = g, e[12] = o, e[13] = r, e[14] = h, e[15] = x) : (h = e[14], x = e[15]), K(h, x);
|
|
270
270
|
let $;
|
|
271
|
-
e[
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
271
|
+
e[16] !== b || e[17] !== t || e[18] !== s || e[19] !== d || e[20] !== l ? ($ = () => {
|
|
272
|
+
const O = !s;
|
|
273
|
+
if (d(t, he, O), O) {
|
|
274
|
+
const E = b(t);
|
|
275
|
+
l(t, ce, {
|
|
276
|
+
isRelative: !0,
|
|
277
|
+
originalFormatter: E?.formatter,
|
|
278
|
+
originalMax: E?.max,
|
|
279
|
+
locale: E?.locale
|
|
280
|
+
});
|
|
281
|
+
} else
|
|
282
|
+
a.current = void 0, l(t, ce, {
|
|
283
|
+
isRelative: !1
|
|
284
|
+
});
|
|
285
|
+
}, e[16] = b, e[17] = t, e[18] = s, e[19] = d, e[20] = l, e[21] = $) : $ = e[21];
|
|
286
|
+
const y = $, z = s ? c?.absolute ?? "Show absolute values" : c?.relative ?? "Show relative values", W = c?.ariaLabel ?? z;
|
|
287
|
+
let B;
|
|
288
|
+
e[22] !== S ? (B = S ?? /* @__PURE__ */ T(Ye, {}), e[22] = S, e[23] = B) : B = e[23];
|
|
289
|
+
let A;
|
|
290
|
+
e[24] !== v || e[25] !== y || e[26] !== s || e[27] !== B || e[28] !== W ? (A = /* @__PURE__ */ T(q, { size: "small", "aria-label": W, onClick: y, sx: ue.trigger, "data-active": s, ...v, children: B }), e[24] = v, e[25] = y, e[26] = s, e[27] = B, e[28] = W, e[29] = A) : A = e[29];
|
|
291
|
+
let w;
|
|
292
|
+
return e[30] !== A || e[31] !== z ? (w = /* @__PURE__ */ T(se, { title: z, children: A }), e[30] = A, e[31] = z, e[32] = w) : w = e[32], w;
|
|
278
293
|
}
|
|
279
|
-
function
|
|
280
|
-
|
|
294
|
+
function St(n) {
|
|
295
|
+
const e = n, t = Tt(e);
|
|
296
|
+
return _t(e, t);
|
|
281
297
|
}
|
|
282
298
|
function vt(n) {
|
|
283
|
-
return n.
|
|
299
|
+
return n.id === ce;
|
|
284
300
|
}
|
|
285
301
|
function yt(n) {
|
|
286
|
-
return n.
|
|
302
|
+
return n.updateToolConfig;
|
|
287
303
|
}
|
|
288
304
|
function It(n) {
|
|
289
|
-
return n.
|
|
305
|
+
return n.setToolEnabled;
|
|
290
306
|
}
|
|
291
307
|
function Ct(n) {
|
|
292
|
-
return n.
|
|
308
|
+
return n.unregisterTool;
|
|
293
309
|
}
|
|
294
|
-
|
|
310
|
+
function Et(n) {
|
|
311
|
+
return n.registerTool;
|
|
312
|
+
}
|
|
313
|
+
function kt(n) {
|
|
314
|
+
return n.getWidget;
|
|
315
|
+
}
|
|
316
|
+
const Ie = {
|
|
295
317
|
container: {
|
|
296
318
|
display: "flex",
|
|
297
319
|
alignItems: "center",
|
|
@@ -305,51 +327,51 @@ const ye = {
|
|
|
305
327
|
}
|
|
306
328
|
}
|
|
307
329
|
}, ee = "zoom-toggle";
|
|
308
|
-
function
|
|
330
|
+
function An(n) {
|
|
309
331
|
const e = Y(50), {
|
|
310
332
|
id: t,
|
|
311
|
-
defaultZoom:
|
|
312
|
-
defaultZoomStart:
|
|
333
|
+
defaultZoom: f,
|
|
334
|
+
defaultZoomStart: _,
|
|
313
335
|
defaultZoomEnd: c,
|
|
314
336
|
labels: S,
|
|
315
337
|
Icon: v,
|
|
316
|
-
ResetIcon:
|
|
317
|
-
IconButtonProps:
|
|
318
|
-
} = n,
|
|
319
|
-
let
|
|
320
|
-
e[0] !== t ? (
|
|
321
|
-
const C = D(te(
|
|
322
|
-
let
|
|
323
|
-
e[2] !== t || e[3] !==
|
|
324
|
-
const
|
|
325
|
-
U !== void 0 && j !== void 0 && (
|
|
338
|
+
ResetIcon: g,
|
|
339
|
+
IconButtonProps: m
|
|
340
|
+
} = n, a = f === void 0 ? !1 : f, b = _ === void 0 ? 0 : _, o = c === void 0 ? 100 : c, r = Ze(), d = D(Wt), l = D(Dt), i = D(wt), I = D($t), s = D(Ot);
|
|
341
|
+
let u;
|
|
342
|
+
e[0] !== t ? (u = (F) => (F.getWidget(t)?.registeredTools ?? []).find(xt), e[0] = t, e[1] = u) : u = e[1];
|
|
343
|
+
const C = D(te(u)), h = C?.enabled ?? a, x = C?.config?.start ?? b, $ = C?.config?.end ?? o;
|
|
344
|
+
let y;
|
|
345
|
+
e[2] !== t || e[3] !== I || e[4] !== s ? (y = (F) => {
|
|
346
|
+
const P = F, U = P.start ?? P.batch?.[0]?.start, j = P.end ?? P.batch?.[0]?.end;
|
|
347
|
+
U !== void 0 && j !== void 0 && (I(t, ee, !0), s(t, ee, {
|
|
326
348
|
start: U,
|
|
327
349
|
end: j
|
|
328
350
|
}));
|
|
329
|
-
}, e[2] = t, e[3] =
|
|
330
|
-
const z =
|
|
331
|
-
let
|
|
332
|
-
e[6] !==
|
|
333
|
-
const F =
|
|
334
|
-
return
|
|
351
|
+
}, e[2] = t, e[3] = I, e[4] = s, e[5] = y) : y = e[5];
|
|
352
|
+
const z = y;
|
|
353
|
+
let W, B;
|
|
354
|
+
e[6] !== a || e[7] !== o || e[8] !== b || e[9] !== d || e[10] !== z || e[11] !== t || e[12] !== l || e[13] !== r || e[14] !== i ? (W = () => {
|
|
355
|
+
const F = d(t)?.registeredTools?.find(Lt), P = F?.enabled ?? a, U = F?.config?.start ?? b, j = F?.config?.end ?? o;
|
|
356
|
+
return l(t, {
|
|
335
357
|
id: ee,
|
|
336
358
|
type: "config",
|
|
337
359
|
order: 20,
|
|
338
|
-
enabled:
|
|
360
|
+
enabled: P,
|
|
339
361
|
fn: (oe, J) => {
|
|
340
|
-
const Q = oe, re = Q.option, le = Q.onEvents ?? {},
|
|
341
|
-
start:
|
|
362
|
+
const Q = oe, re = Q.option, le = Q.onEvents ?? {}, me = J?.start ?? 0, X = J?.end ?? 100, ne = re?.legend, De = ne?.show !== !1 && ne !== void 0, We = parseInt(r?.spacing?.(4) ?? "32"), Be = tt({
|
|
363
|
+
start: me,
|
|
342
364
|
end: X
|
|
343
365
|
}, {
|
|
344
366
|
inside: !0,
|
|
345
367
|
xSlider: !0,
|
|
346
368
|
ySlider: !1,
|
|
347
|
-
bottomOffset:
|
|
348
|
-
}, r),
|
|
369
|
+
bottomOffset: De ? 28 : 0
|
|
370
|
+
}, r), fe = re?.grid, ze = (typeof fe?.bottom == "number" ? fe.bottom : parseInt(fe?.bottom ?? "24")) + We + 8;
|
|
349
371
|
({
|
|
350
372
|
...le
|
|
351
373
|
});
|
|
352
|
-
const
|
|
374
|
+
const Ae = {
|
|
353
375
|
...le,
|
|
354
376
|
dataZoom: z
|
|
355
377
|
};
|
|
@@ -357,13 +379,13 @@ function Bn(n) {
|
|
|
357
379
|
...Q,
|
|
358
380
|
option: {
|
|
359
381
|
...re,
|
|
360
|
-
...
|
|
382
|
+
...Be,
|
|
361
383
|
grid: {
|
|
362
|
-
...
|
|
363
|
-
bottom:
|
|
384
|
+
...fe,
|
|
385
|
+
bottom: ze
|
|
364
386
|
}
|
|
365
387
|
},
|
|
366
|
-
onEvents:
|
|
388
|
+
onEvents: Ae
|
|
367
389
|
};
|
|
368
390
|
},
|
|
369
391
|
config: {
|
|
@@ -371,537 +393,537 @@ function Bn(n) {
|
|
|
371
393
|
end: j
|
|
372
394
|
}
|
|
373
395
|
}), () => i(t, ee);
|
|
374
|
-
},
|
|
375
|
-
let
|
|
376
|
-
e[17] !== t || e[18] !==
|
|
377
|
-
const F = !
|
|
378
|
-
|
|
396
|
+
}, B = [a, o, b, d, z, t, l, r, i], e[6] = a, e[7] = o, e[8] = b, e[9] = d, e[10] = z, e[11] = t, e[12] = l, e[13] = r, e[14] = i, e[15] = W, e[16] = B) : (W = e[15], B = e[16]), K(W, B);
|
|
397
|
+
let A;
|
|
398
|
+
e[17] !== t || e[18] !== I || e[19] !== s || e[20] !== h || e[21] !== $ || e[22] !== x ? (A = () => {
|
|
399
|
+
const F = !h;
|
|
400
|
+
I(t, ee, F), s(t, ee, {
|
|
379
401
|
start: F ? x : 0,
|
|
380
|
-
end: F ?
|
|
402
|
+
end: F ? $ : 100
|
|
381
403
|
});
|
|
382
|
-
}, e[17] = t, e[18] =
|
|
383
|
-
const
|
|
384
|
-
let
|
|
385
|
-
e[24] !==
|
|
386
|
-
|
|
387
|
-
start:
|
|
388
|
-
end:
|
|
404
|
+
}, e[17] = t, e[18] = I, e[19] = s, e[20] = h, e[21] = $, e[22] = x, e[23] = A) : A = e[23];
|
|
405
|
+
const w = A;
|
|
406
|
+
let O;
|
|
407
|
+
e[24] !== o || e[25] !== b || e[26] !== t || e[27] !== I || e[28] !== s ? (O = () => {
|
|
408
|
+
I(t, ee, !0), s(t, ee, {
|
|
409
|
+
start: b,
|
|
410
|
+
end: o
|
|
389
411
|
});
|
|
390
|
-
}, e[24] =
|
|
391
|
-
const
|
|
412
|
+
}, e[24] = o, e[25] = b, e[26] = t, e[27] = I, e[28] = s, e[29] = O) : O = e[29];
|
|
413
|
+
const E = O, R = S?.enable ?? "Enable zoom", k = S?.disable ?? "Disable zoom", L = S?.reset ?? "Reset zoom", p = h ? k : R, M = S?.ariaLabel ?? p;
|
|
392
414
|
let N;
|
|
393
|
-
e[30] !== v ? (N = v ?? /* @__PURE__ */
|
|
394
|
-
let G;
|
|
395
|
-
e[32] !== y || e[33] !== $ || e[34] !== R || e[35] !== N || e[36] !== f ? (G = /* @__PURE__ */ p(q, { size: "small", "aria-label": R, onClick: $, sx: ye.trigger, "data-active": f, ...y, children: N }), e[32] = y, e[33] = $, e[34] = R, e[35] = N, e[36] = f, e[37] = G) : G = e[37];
|
|
396
|
-
let H;
|
|
397
|
-
e[38] !== G || e[39] !== m ? (H = /* @__PURE__ */ p(se, { title: m, children: G }), e[38] = G, e[39] = m, e[40] = H) : H = e[40];
|
|
415
|
+
e[30] !== v ? (N = v ?? /* @__PURE__ */ T(Je, {}), e[30] = v, e[31] = N) : N = e[31];
|
|
398
416
|
let V;
|
|
399
|
-
e[
|
|
417
|
+
e[32] !== m || e[33] !== w || e[34] !== M || e[35] !== N || e[36] !== h ? (V = /* @__PURE__ */ T(q, { size: "small", "aria-label": M, onClick: w, sx: Ie.trigger, "data-active": h, ...m, children: N }), e[32] = m, e[33] = w, e[34] = M, e[35] = N, e[36] = h, e[37] = V) : V = e[37];
|
|
418
|
+
let H;
|
|
419
|
+
e[38] !== V || e[39] !== p ? (H = /* @__PURE__ */ T(se, { title: p, children: V }), e[38] = V, e[39] = p, e[40] = H) : H = e[40];
|
|
420
|
+
let G;
|
|
421
|
+
e[41] !== m || e[42] !== g || e[43] !== E || e[44] !== L || e[45] !== h ? (G = h && /* @__PURE__ */ T(se, { title: L, children: /* @__PURE__ */ T(q, { size: "small", "aria-label": L, onClick: E, ...m, children: g ?? /* @__PURE__ */ T(qe, {}) }) }), e[41] = m, e[42] = g, e[43] = E, e[44] = L, e[45] = h, e[46] = G) : G = e[46];
|
|
400
422
|
let Z;
|
|
401
|
-
return e[47] !== H || e[48] !==
|
|
423
|
+
return e[47] !== H || e[48] !== G ? (Z = /* @__PURE__ */ ie($e, { sx: Ie.container, children: [
|
|
402
424
|
H,
|
|
403
|
-
|
|
404
|
-
] }), e[47] = H, e[48] =
|
|
425
|
+
G
|
|
426
|
+
] }), e[47] = H, e[48] = G, e[49] = Z) : Z = e[49], Z;
|
|
405
427
|
}
|
|
406
|
-
function
|
|
428
|
+
function Lt(n) {
|
|
407
429
|
return n.id === ee;
|
|
408
430
|
}
|
|
409
|
-
function
|
|
431
|
+
function xt(n) {
|
|
410
432
|
return n.id === ee;
|
|
411
433
|
}
|
|
412
|
-
function
|
|
434
|
+
function Ot(n) {
|
|
413
435
|
return n.updateToolConfig;
|
|
414
436
|
}
|
|
415
|
-
function
|
|
437
|
+
function $t(n) {
|
|
416
438
|
return n.setToolEnabled;
|
|
417
439
|
}
|
|
418
|
-
function
|
|
440
|
+
function wt(n) {
|
|
419
441
|
return n.unregisterTool;
|
|
420
442
|
}
|
|
421
|
-
function
|
|
443
|
+
function Dt(n) {
|
|
422
444
|
return n.registerTool;
|
|
423
445
|
}
|
|
424
|
-
function
|
|
446
|
+
function Wt(n) {
|
|
425
447
|
return n.getWidget;
|
|
426
448
|
}
|
|
427
|
-
const
|
|
449
|
+
const Bt = () => {
|
|
428
450
|
const n = Y(1);
|
|
429
451
|
let e;
|
|
430
|
-
return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
431
|
-
},
|
|
432
|
-
function
|
|
452
|
+
return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ T("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ T("path", { d: "M4 20V8H8V20H4ZM9 20V13H13V20H9ZM16 20V4H20V20H16Z", fill: "currentColor" }) }), n[0] = e) : e = n[0], e;
|
|
453
|
+
}, Ce = "stack-toggle";
|
|
454
|
+
function Rn(n) {
|
|
433
455
|
const e = Y(40), {
|
|
434
456
|
id: t,
|
|
435
|
-
defaultIsStacked:
|
|
436
|
-
labels:
|
|
457
|
+
defaultIsStacked: f,
|
|
458
|
+
labels: _,
|
|
437
459
|
Icon: c,
|
|
438
460
|
IconButtonProps: S
|
|
439
|
-
} = n, v =
|
|
440
|
-
let
|
|
441
|
-
e[0] !== t ? (
|
|
442
|
-
const
|
|
461
|
+
} = n, v = f === void 0 ? !1 : f, g = D(Ft), m = D(Mt), a = D(Pt);
|
|
462
|
+
let b;
|
|
463
|
+
e[0] !== t ? (b = (E) => E.getWidget(t)?.isStacked, e[0] = t, e[1] = b) : b = e[1];
|
|
464
|
+
const o = D(te(b));
|
|
443
465
|
let r;
|
|
444
|
-
e[2] !== t ? (r = (
|
|
445
|
-
const
|
|
446
|
-
let
|
|
466
|
+
e[2] !== t ? (r = (E) => E.getWidget(t)?.option, e[2] = t, e[3] = r) : r = e[3];
|
|
467
|
+
const d = D(te(r));
|
|
468
|
+
let l;
|
|
447
469
|
e: {
|
|
448
|
-
if (!
|
|
449
|
-
let
|
|
450
|
-
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
470
|
+
if (!d) {
|
|
471
|
+
let M;
|
|
472
|
+
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = {
|
|
451
473
|
hasMultiSeries: !1,
|
|
452
474
|
hasStackInSeries: !1
|
|
453
|
-
}, e[4] =
|
|
475
|
+
}, e[4] = M) : M = e[4], l = M;
|
|
454
476
|
break e;
|
|
455
477
|
}
|
|
456
|
-
let L;
|
|
457
|
-
e[5] !== a.series ? (L = Array.isArray(a.series) ? a.series : [a.series], e[5] = a.series, e[6] = L) : L = e[6];
|
|
458
|
-
const A = L, k = A.length > 1;
|
|
459
478
|
let E;
|
|
460
|
-
e[
|
|
461
|
-
|
|
462
|
-
|
|
479
|
+
e[5] !== d.series ? (E = Array.isArray(d.series) ? d.series : [d.series], e[5] = d.series, e[6] = E) : E = e[6];
|
|
480
|
+
const R = E, k = R.length > 1;
|
|
481
|
+
let L;
|
|
482
|
+
e[7] !== R ? (L = R.some(Rt), e[7] = R, e[8] = L) : L = e[8];
|
|
483
|
+
let p;
|
|
484
|
+
e[9] !== k || e[10] !== L ? (p = {
|
|
463
485
|
hasMultiSeries: k,
|
|
464
|
-
hasStackInSeries:
|
|
465
|
-
}, e[9] = k, e[10] =
|
|
486
|
+
hasStackInSeries: L
|
|
487
|
+
}, e[9] = k, e[10] = L, e[11] = p) : p = e[11], l = p;
|
|
466
488
|
}
|
|
467
489
|
const {
|
|
468
490
|
hasMultiSeries: i,
|
|
469
|
-
hasStackInSeries:
|
|
470
|
-
} =
|
|
471
|
-
let C,
|
|
472
|
-
e[12] !== i || e[13] !== t || e[14] !==
|
|
473
|
-
id:
|
|
491
|
+
hasStackInSeries: I
|
|
492
|
+
} = l, s = I || v, u = o ?? s;
|
|
493
|
+
let C, h;
|
|
494
|
+
e[12] !== i || e[13] !== t || e[14] !== u || e[15] !== m || e[16] !== a ? (C = () => (m(t, {
|
|
495
|
+
id: Ce,
|
|
474
496
|
type: "config",
|
|
475
497
|
order: 10,
|
|
476
|
-
enabled:
|
|
477
|
-
fn:
|
|
478
|
-
}), () =>
|
|
479
|
-
let x,
|
|
480
|
-
e[19] !==
|
|
481
|
-
|
|
482
|
-
isStacked:
|
|
498
|
+
enabled: u && i,
|
|
499
|
+
fn: zt
|
|
500
|
+
}), () => a(t, Ce)), h = [t, m, a, u, i], e[12] = i, e[13] = t, e[14] = u, e[15] = m, e[16] = a, e[17] = C, e[18] = h) : (C = e[17], h = e[18]), K(C, h);
|
|
501
|
+
let x, $;
|
|
502
|
+
e[19] !== s || e[20] !== t || e[21] !== g || e[22] !== o ? (x = () => {
|
|
503
|
+
o === void 0 && g(t, {
|
|
504
|
+
isStacked: s
|
|
483
505
|
});
|
|
484
|
-
},
|
|
485
|
-
let
|
|
486
|
-
e[25] !== t || e[26] !==
|
|
487
|
-
|
|
488
|
-
isStacked: !
|
|
506
|
+
}, $ = [s, t, g, o], e[19] = s, e[20] = t, e[21] = g, e[22] = o, e[23] = x, e[24] = $) : (x = e[23], $ = e[24]), K(x, $);
|
|
507
|
+
let y;
|
|
508
|
+
e[25] !== t || e[26] !== u || e[27] !== g ? (y = () => {
|
|
509
|
+
g(t, {
|
|
510
|
+
isStacked: !u
|
|
489
511
|
});
|
|
490
|
-
}, e[25] = t, e[26] =
|
|
491
|
-
const z =
|
|
512
|
+
}, e[25] = t, e[26] = u, e[27] = g, e[28] = y) : y = e[28];
|
|
513
|
+
const z = y, W = u ? _?.unstacked ?? "Disable stacking" : _?.stacked ?? "Enable stacking";
|
|
492
514
|
if (!i)
|
|
493
515
|
return null;
|
|
494
|
-
const
|
|
495
|
-
let
|
|
496
|
-
e[29] !== c ? (
|
|
497
|
-
let
|
|
498
|
-
e[31] !== S || e[32] !== z || e[33] !==
|
|
499
|
-
let
|
|
500
|
-
return e[37] !==
|
|
516
|
+
const B = _?.ariaLabel ?? W;
|
|
517
|
+
let A;
|
|
518
|
+
e[29] !== c ? (A = c ?? /* @__PURE__ */ T(Bt, {}), e[29] = c, e[30] = A) : A = e[30];
|
|
519
|
+
let w;
|
|
520
|
+
e[31] !== S || e[32] !== z || e[33] !== u || e[34] !== B || e[35] !== A ? (w = /* @__PURE__ */ T(q, { size: "small", "aria-label": B, onClick: z, sx: ue.trigger, "data-active": u, ...S, children: A }), e[31] = S, e[32] = z, e[33] = u, e[34] = B, e[35] = A, e[36] = w) : w = e[36];
|
|
521
|
+
let O;
|
|
522
|
+
return e[37] !== w || e[38] !== W ? (O = /* @__PURE__ */ T(se, { title: W, children: w }), e[37] = w, e[38] = W, e[39] = O) : O = e[39], O;
|
|
501
523
|
}
|
|
502
|
-
function
|
|
524
|
+
function zt(n) {
|
|
503
525
|
const e = n, t = e.option;
|
|
504
526
|
if (!t)
|
|
505
527
|
return n;
|
|
506
|
-
const
|
|
528
|
+
const _ = (Array.isArray(t.series) ? t.series : [t.series]).map(At);
|
|
507
529
|
return {
|
|
508
530
|
...e,
|
|
509
531
|
option: {
|
|
510
532
|
...t,
|
|
511
|
-
series:
|
|
533
|
+
series: _
|
|
512
534
|
}
|
|
513
535
|
};
|
|
514
536
|
}
|
|
515
|
-
function
|
|
537
|
+
function At(n) {
|
|
516
538
|
const e = n?.stack;
|
|
517
539
|
return {
|
|
518
540
|
...n,
|
|
519
|
-
...
|
|
541
|
+
...nt(typeof e == "string" ? e : ot)
|
|
520
542
|
};
|
|
521
543
|
}
|
|
522
|
-
function
|
|
544
|
+
function Rt(n) {
|
|
523
545
|
return n?.stack;
|
|
524
546
|
}
|
|
525
547
|
function Pt(n) {
|
|
526
548
|
return n.unregisterTool;
|
|
527
549
|
}
|
|
528
|
-
function
|
|
550
|
+
function Mt(n) {
|
|
529
551
|
return n.registerTool;
|
|
530
552
|
}
|
|
531
|
-
function
|
|
553
|
+
function Ft(n) {
|
|
532
554
|
return n.setWidget;
|
|
533
555
|
}
|
|
534
|
-
const
|
|
556
|
+
const be = "lock-selection";
|
|
535
557
|
function Pn(n) {
|
|
536
558
|
const e = Y(29), {
|
|
537
559
|
id: t,
|
|
538
|
-
selectedItems:
|
|
539
|
-
order:
|
|
560
|
+
selectedItems: f,
|
|
561
|
+
order: _,
|
|
540
562
|
labels: c,
|
|
541
563
|
Icon: S,
|
|
542
564
|
IconButtonProps: v
|
|
543
|
-
} = n,
|
|
565
|
+
} = n, g = _ === void 0 ? 30 : _, m = D(Ht), a = D(Zt), b = D(Vt);
|
|
566
|
+
let o;
|
|
567
|
+
e[0] !== t ? (o = (W) => W.getWidget(t)?.isLocked, e[0] = t, e[1] = o) : o = e[1];
|
|
568
|
+
const d = D(te(o)) ?? !1;
|
|
544
569
|
let l;
|
|
545
|
-
e[
|
|
546
|
-
const
|
|
547
|
-
let s;
|
|
548
|
-
e[
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
order: T,
|
|
554
|
-
enabled: a,
|
|
555
|
-
fn: Rt,
|
|
570
|
+
e[2] !== d || e[3] !== f ? (l = d ? f : [], e[2] = d, e[3] = f, e[4] = l) : l = e[4];
|
|
571
|
+
const i = l;
|
|
572
|
+
let I, s;
|
|
573
|
+
e[5] !== t || e[6] !== d || e[7] !== i || e[8] !== g || e[9] !== a || e[10] !== b ? (I = () => (a(t, {
|
|
574
|
+
id: be,
|
|
575
|
+
order: g,
|
|
576
|
+
enabled: d,
|
|
577
|
+
fn: Gt,
|
|
556
578
|
config: {
|
|
557
579
|
lockedItems: i
|
|
558
580
|
}
|
|
559
|
-
}), () =>
|
|
560
|
-
let
|
|
561
|
-
e[13] !== t || e[14] !==
|
|
562
|
-
|
|
581
|
+
}), () => b(t, be)), s = [t, g, a, b, d, i], e[5] = t, e[6] = d, e[7] = i, e[8] = g, e[9] = a, e[10] = b, e[11] = I, e[12] = s) : (I = e[11], s = e[12]), K(I, s);
|
|
582
|
+
let u;
|
|
583
|
+
e[13] !== t || e[14] !== d || e[15] !== f || e[16] !== m ? (u = () => {
|
|
584
|
+
d ? m(t, {
|
|
563
585
|
isLocked: !1,
|
|
564
586
|
lockedItems: []
|
|
565
|
-
}) :
|
|
587
|
+
}) : m(t, {
|
|
566
588
|
isLocked: !0,
|
|
567
|
-
lockedItems:
|
|
589
|
+
lockedItems: f
|
|
568
590
|
});
|
|
569
|
-
}, e[13] = t, e[14] =
|
|
570
|
-
const C =
|
|
571
|
-
if (
|
|
591
|
+
}, e[13] = t, e[14] = d, e[15] = f, e[16] = m, e[17] = u) : u = e[17];
|
|
592
|
+
const C = u;
|
|
593
|
+
if (f.length === 0)
|
|
572
594
|
return null;
|
|
573
|
-
const
|
|
574
|
-
let
|
|
575
|
-
e[18] !== S ? (
|
|
576
|
-
let
|
|
577
|
-
e[20] !== v || e[21] !== x || e[22] !== C || e[23] !==
|
|
595
|
+
const h = d ? c?.unlock ?? "Unlock selection" : c?.lock ?? "Lock selection", x = c?.ariaLabel ?? h;
|
|
596
|
+
let $;
|
|
597
|
+
e[18] !== S ? ($ = S ?? /* @__PURE__ */ T(Qe, { fontSize: "small" }), e[18] = S, e[19] = $) : $ = e[19];
|
|
598
|
+
let y;
|
|
599
|
+
e[20] !== v || e[21] !== x || e[22] !== C || e[23] !== d || e[24] !== $ ? (y = /* @__PURE__ */ T(q, { size: "small", "aria-label": x, onClick: C, sx: ue.trigger, "data-active": d, ...v, children: $ }), e[20] = v, e[21] = x, e[22] = C, e[23] = d, e[24] = $, e[25] = y) : y = e[25];
|
|
578
600
|
let z;
|
|
579
|
-
return e[26] !==
|
|
601
|
+
return e[26] !== y || e[27] !== h ? (z = /* @__PURE__ */ T(se, { title: h, children: y }), e[26] = y, e[27] = h, e[28] = z) : z = e[28], z;
|
|
580
602
|
}
|
|
581
|
-
function
|
|
603
|
+
function Gt(n, e) {
|
|
582
604
|
const t = e?.lockedItems || [];
|
|
583
|
-
return t.length === 0 ? n :
|
|
605
|
+
return t.length === 0 ? n : Nt(n, t);
|
|
584
606
|
}
|
|
585
|
-
function
|
|
607
|
+
function Vt(n) {
|
|
586
608
|
return n.unregisterTool;
|
|
587
609
|
}
|
|
588
|
-
function
|
|
610
|
+
function Zt(n) {
|
|
589
611
|
return n.registerTool;
|
|
590
612
|
}
|
|
591
|
-
function
|
|
613
|
+
function Ht(n) {
|
|
592
614
|
return n.setWidget;
|
|
593
615
|
}
|
|
594
|
-
function
|
|
595
|
-
return n.map((t) => t.filter((
|
|
596
|
-
const
|
|
597
|
-
return typeof
|
|
616
|
+
function Nt(n, e) {
|
|
617
|
+
return n.map((t) => t.filter((f) => {
|
|
618
|
+
const _ = f.name;
|
|
619
|
+
return typeof _ == "string" && e.includes(_);
|
|
598
620
|
}));
|
|
599
621
|
}
|
|
600
|
-
const
|
|
601
|
-
function
|
|
622
|
+
const ge = "searcher", jt = 300;
|
|
623
|
+
function Mn(n) {
|
|
602
624
|
const e = Y(44), {
|
|
603
625
|
id: t,
|
|
604
|
-
filterFn:
|
|
605
|
-
order:
|
|
626
|
+
filterFn: f,
|
|
627
|
+
order: _,
|
|
606
628
|
labels: c,
|
|
607
629
|
TextFieldProps: S,
|
|
608
630
|
ClearIcon: v,
|
|
609
|
-
debounceDelay:
|
|
610
|
-
} = n,
|
|
631
|
+
debounceDelay: g
|
|
632
|
+
} = n, m = _ === void 0 ? 20 : _, a = g === void 0 ? jt : g, b = ae(null), o = ae(null);
|
|
611
633
|
let r;
|
|
612
|
-
e[0] !== t ? (r = (
|
|
613
|
-
const
|
|
614
|
-
let
|
|
615
|
-
e[2] !== t || e[3] !==
|
|
616
|
-
|
|
617
|
-
searchText:
|
|
634
|
+
e[0] !== t ? (r = (P) => P.getWidget(t), e[0] = t, e[1] = r) : r = e[1];
|
|
635
|
+
const d = D(r), l = d?.isSearchEnabled ?? !1, i = d?.searchText ?? "", I = ae(l), s = f ?? Jt, u = D(qt), C = D(Yt), h = D(Kt), x = D(Ut);
|
|
636
|
+
let $;
|
|
637
|
+
e[2] !== t || e[3] !== u ? ($ = (P) => {
|
|
638
|
+
u(t, {
|
|
639
|
+
searchText: P
|
|
618
640
|
});
|
|
619
|
-
}, e[2] = t, e[3] =
|
|
620
|
-
const
|
|
621
|
-
let z,
|
|
622
|
-
e[5] !==
|
|
623
|
-
id:
|
|
624
|
-
order:
|
|
625
|
-
enabled:
|
|
626
|
-
fn: async (
|
|
641
|
+
}, e[2] = t, e[3] = u, e[4] = $) : $ = e[4];
|
|
642
|
+
const y = $;
|
|
643
|
+
let z, W;
|
|
644
|
+
e[5] !== l || e[6] !== s || e[7] !== t || e[8] !== m || e[9] !== C || e[10] !== i || e[11] !== h ? (z = () => (C(t, {
|
|
645
|
+
id: ge,
|
|
646
|
+
order: m,
|
|
647
|
+
enabled: l,
|
|
648
|
+
fn: async (P, U) => {
|
|
627
649
|
const j = U?.searchText || "";
|
|
628
|
-
return
|
|
650
|
+
return s(P, j);
|
|
629
651
|
},
|
|
630
652
|
config: {
|
|
631
653
|
searchText: i
|
|
632
654
|
},
|
|
633
|
-
disables: [
|
|
634
|
-
}), () =>
|
|
635
|
-
let
|
|
636
|
-
e[14] !==
|
|
637
|
-
|
|
638
|
-
x(t,
|
|
639
|
-
searchText:
|
|
655
|
+
disables: [be]
|
|
656
|
+
}), () => h(t, ge)), W = [t, m, s, C, h, l, i], e[5] = l, e[6] = s, e[7] = t, e[8] = m, e[9] = C, e[10] = i, e[11] = h, e[12] = z, e[13] = W) : (z = e[12], W = e[13]), K(z, W);
|
|
657
|
+
let B;
|
|
658
|
+
e[14] !== a || e[15] !== t || e[16] !== x ? (B = (P) => {
|
|
659
|
+
o.current && clearTimeout(o.current), o.current = setTimeout(() => {
|
|
660
|
+
x(t, ge, {
|
|
661
|
+
searchText: P
|
|
640
662
|
});
|
|
641
|
-
},
|
|
642
|
-
}, e[14] =
|
|
643
|
-
const
|
|
644
|
-
let
|
|
645
|
-
e[18] !==
|
|
646
|
-
|
|
647
|
-
},
|
|
648
|
-
let
|
|
649
|
-
e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
650
|
-
|
|
651
|
-
},
|
|
663
|
+
}, a);
|
|
664
|
+
}, e[14] = a, e[15] = t, e[16] = x, e[17] = B) : B = e[17];
|
|
665
|
+
const A = B;
|
|
666
|
+
let w, O;
|
|
667
|
+
e[18] !== l ? (w = () => {
|
|
668
|
+
l && !I.current && b.current && b.current.focus(), I.current = l;
|
|
669
|
+
}, O = [l], e[18] = l, e[19] = w, e[20] = O) : (w = e[19], O = e[20]), K(w, O);
|
|
670
|
+
let E, R;
|
|
671
|
+
e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = () => () => {
|
|
672
|
+
o.current && clearTimeout(o.current);
|
|
673
|
+
}, R = [], e[21] = E, e[22] = R) : (E = e[21], R = e[22]), K(E, R);
|
|
652
674
|
let k;
|
|
653
|
-
e[23] !==
|
|
654
|
-
const U =
|
|
655
|
-
|
|
656
|
-
}, e[23] =
|
|
657
|
-
const
|
|
658
|
-
let
|
|
659
|
-
e[26] !== t || e[27] !==
|
|
660
|
-
|
|
675
|
+
e[23] !== A || e[24] !== y ? (k = (P) => {
|
|
676
|
+
const U = P.target.value;
|
|
677
|
+
y(U), A(U);
|
|
678
|
+
}, e[23] = A, e[24] = y, e[25] = k) : k = e[25];
|
|
679
|
+
const L = k;
|
|
680
|
+
let p;
|
|
681
|
+
e[26] !== t || e[27] !== y || e[28] !== x ? (p = () => {
|
|
682
|
+
y(""), x(t, ge, {
|
|
661
683
|
searchText: ""
|
|
662
|
-
}),
|
|
663
|
-
}, e[26] = t, e[27] =
|
|
664
|
-
const
|
|
665
|
-
if (!
|
|
684
|
+
}), b.current && b.current.focus();
|
|
685
|
+
}, e[26] = t, e[27] = y, e[28] = x, e[29] = p) : p = e[29];
|
|
686
|
+
const M = p;
|
|
687
|
+
if (!l)
|
|
666
688
|
return null;
|
|
667
|
-
const N = c?.placeholder ?? "Search...",
|
|
689
|
+
const N = c?.placeholder ?? "Search...", V = c?.clearAriaLabel ?? "Clear search";
|
|
668
690
|
let H;
|
|
669
|
-
e[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */
|
|
670
|
-
let
|
|
671
|
-
e[31] !== v || e[32] !==
|
|
691
|
+
e[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ T(_e, { position: "start", children: /* @__PURE__ */ T(we, {}) }), e[30] = H) : H = e[30];
|
|
692
|
+
let G;
|
|
693
|
+
e[31] !== v || e[32] !== V || e[33] !== M || e[34] !== i ? (G = i ? /* @__PURE__ */ T(_e, { position: "end", children: /* @__PURE__ */ T(q, { size: "small", "aria-label": V, onClick: M, edge: "end", children: v ?? /* @__PURE__ */ T(Xe, { fontSize: "small" }) }) }) : null, e[31] = v, e[32] = V, e[33] = M, e[34] = i, e[35] = G) : G = e[35];
|
|
672
694
|
let Z;
|
|
673
|
-
e[36] !==
|
|
695
|
+
e[36] !== G ? (Z = {
|
|
674
696
|
startAdornment: H,
|
|
675
|
-
endAdornment:
|
|
676
|
-
}, e[36] =
|
|
697
|
+
endAdornment: G
|
|
698
|
+
}, e[36] = G, e[37] = Z) : Z = e[37];
|
|
677
699
|
let F;
|
|
678
|
-
return e[38] !== S || e[39] !==
|
|
700
|
+
return e[38] !== S || e[39] !== L || e[40] !== N || e[41] !== i || e[42] !== Z ? (F = /* @__PURE__ */ T(He, { inputRef: b, size: "small", fullWidth: !0, variant: "filled", placeholder: N, value: i, onChange: L, InputProps: Z, ...S }), e[38] = S, e[39] = L, e[40] = N, e[41] = i, e[42] = Z, e[43] = F) : F = e[43], F;
|
|
679
701
|
}
|
|
680
|
-
function
|
|
702
|
+
function Ut(n) {
|
|
681
703
|
return n.updateToolConfig;
|
|
682
704
|
}
|
|
683
|
-
function
|
|
705
|
+
function Kt(n) {
|
|
684
706
|
return n.unregisterTool;
|
|
685
707
|
}
|
|
686
|
-
function
|
|
708
|
+
function Yt(n) {
|
|
687
709
|
return n.registerTool;
|
|
688
710
|
}
|
|
689
|
-
function
|
|
711
|
+
function qt(n) {
|
|
690
712
|
return n.setWidget;
|
|
691
713
|
}
|
|
692
|
-
const
|
|
714
|
+
const Jt = (n, e) => {
|
|
693
715
|
if (!e.trim()) return Promise.resolve(n);
|
|
694
716
|
const t = e.toLowerCase();
|
|
695
|
-
return Promise.resolve(n.map((
|
|
717
|
+
return Promise.resolve(n.map((f) => f.filter((_) => Object.values(_).some((c) => typeof c == "string" && c.toLowerCase().includes(t)))));
|
|
696
718
|
};
|
|
697
|
-
function
|
|
719
|
+
function Fn(n) {
|
|
698
720
|
const e = Y(23), {
|
|
699
721
|
id: t,
|
|
700
|
-
defaultEnabled:
|
|
701
|
-
labels:
|
|
722
|
+
defaultEnabled: f,
|
|
723
|
+
labels: _,
|
|
702
724
|
Icon: c,
|
|
703
725
|
IconButtonProps: S
|
|
704
|
-
} = n, v =
|
|
705
|
-
let
|
|
706
|
-
e[0] !== t ? (
|
|
707
|
-
const
|
|
708
|
-
let r,
|
|
709
|
-
e[2] !== v || e[3] !==
|
|
710
|
-
|
|
726
|
+
} = n, v = f === void 0 ? !1 : f, g = D(Xt), m = D(Qt);
|
|
727
|
+
let a;
|
|
728
|
+
e[0] !== t ? (a = (x) => x.getWidget(t)?.isSearchEnabled, e[0] = t, e[1] = a) : a = e[1];
|
|
729
|
+
const o = D(te(a)) ?? v;
|
|
730
|
+
let r, d;
|
|
731
|
+
e[2] !== v || e[3] !== m || e[4] !== t || e[5] !== g ? (r = () => {
|
|
732
|
+
m(t)?.isSearchEnabled === void 0 && g(t, {
|
|
711
733
|
isSearchEnabled: v
|
|
712
734
|
});
|
|
713
|
-
},
|
|
714
|
-
let
|
|
715
|
-
e[8] !== t || e[9] !==
|
|
716
|
-
|
|
717
|
-
isSearchEnabled: !
|
|
735
|
+
}, d = [v, m, t, g], e[2] = v, e[3] = m, e[4] = t, e[5] = g, e[6] = r, e[7] = d) : (r = e[6], d = e[7]), K(r, d);
|
|
736
|
+
let l;
|
|
737
|
+
e[8] !== t || e[9] !== o || e[10] !== g ? (l = () => {
|
|
738
|
+
g(t, {
|
|
739
|
+
isSearchEnabled: !o
|
|
718
740
|
});
|
|
719
|
-
}, e[8] = t, e[9] =
|
|
720
|
-
const i =
|
|
721
|
-
let
|
|
722
|
-
e[12] !== c ? (
|
|
741
|
+
}, e[8] = t, e[9] = o, e[10] = g, e[11] = l) : l = e[11];
|
|
742
|
+
const i = l, I = o ? _?.disable ?? "Disable search" : _?.enable ?? "Enable search", s = _?.ariaLabel ?? I;
|
|
743
|
+
let u;
|
|
744
|
+
e[12] !== c ? (u = c ?? /* @__PURE__ */ T(we, { fontSize: "small" }), e[12] = c, e[13] = u) : u = e[13];
|
|
723
745
|
let C;
|
|
724
|
-
e[14] !== S || e[15] !==
|
|
725
|
-
let
|
|
726
|
-
return e[20] !== C || e[21] !==
|
|
746
|
+
e[14] !== S || e[15] !== s || e[16] !== i || e[17] !== o || e[18] !== u ? (C = /* @__PURE__ */ T(q, { size: "small", "aria-label": s, onClick: i, sx: ue.trigger, "data-active": o, ...S, children: u }), e[14] = S, e[15] = s, e[16] = i, e[17] = o, e[18] = u, e[19] = C) : C = e[19];
|
|
747
|
+
let h;
|
|
748
|
+
return e[20] !== C || e[21] !== I ? (h = /* @__PURE__ */ T(se, { title: I, children: C }), e[20] = C, e[21] = I, e[22] = h) : h = e[22], h;
|
|
727
749
|
}
|
|
728
|
-
function
|
|
750
|
+
function Qt(n) {
|
|
729
751
|
return n.getWidget;
|
|
730
752
|
}
|
|
731
|
-
function
|
|
753
|
+
function Xt(n) {
|
|
732
754
|
return n.setWidget;
|
|
733
755
|
}
|
|
734
|
-
const
|
|
756
|
+
const en = () => {
|
|
735
757
|
const n = Y(1);
|
|
736
758
|
let e;
|
|
737
|
-
return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
759
|
+
return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ T("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 18 18", children: /* @__PURE__ */ T("path", { fill: "currentColor", fillRule: "evenodd", d: "M14.25 2.25H3.75c-.825 0-1.5.675-1.5 1.5v10.5c0 .825.675 1.5 1.5 1.5h10.5c.825 0 1.5-.675 1.5-1.5V3.75c0-.825-.675-1.5-1.5-1.5m-3.75 12h-3V3.75h3zM3.75 3.75H6v10.5H3.75zM12 14.25V3.75h2.25v10.5z", clipRule: "evenodd" }) }), n[0] = e) : e = n[0], e;
|
|
738
760
|
};
|
|
739
|
-
function
|
|
761
|
+
function tn(n) {
|
|
740
762
|
const e = Y(18), {
|
|
741
763
|
column: t
|
|
742
764
|
} = n;
|
|
743
|
-
let
|
|
744
|
-
e[0] !== t.id ? (
|
|
765
|
+
let f;
|
|
766
|
+
e[0] !== t.id ? (f = {
|
|
745
767
|
id: t.id
|
|
746
|
-
}, e[0] = t.id, e[1] =
|
|
768
|
+
}, e[0] = t.id, e[1] = f) : f = e[1];
|
|
747
769
|
const {
|
|
748
|
-
attributes:
|
|
770
|
+
attributes: _,
|
|
749
771
|
listeners: c,
|
|
750
772
|
setNodeRef: S,
|
|
751
773
|
transform: v,
|
|
752
|
-
transition:
|
|
753
|
-
isDragging:
|
|
754
|
-
} =
|
|
755
|
-
let
|
|
756
|
-
e[2] !== v ? (
|
|
757
|
-
const
|
|
774
|
+
transition: g,
|
|
775
|
+
isDragging: m
|
|
776
|
+
} = at(f);
|
|
777
|
+
let a;
|
|
778
|
+
e[2] !== v ? (a = mt.Transform.toString(v), e[2] = v, e[3] = a) : a = e[3];
|
|
779
|
+
const b = m ? 0.5 : 1, o = m ? "grabbing" : "grab";
|
|
758
780
|
let r;
|
|
759
|
-
e[4] !==
|
|
760
|
-
transform:
|
|
761
|
-
transition:
|
|
762
|
-
opacity:
|
|
763
|
-
cursor:
|
|
764
|
-
}, e[4] =
|
|
765
|
-
const
|
|
766
|
-
let
|
|
767
|
-
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
781
|
+
e[4] !== a || e[5] !== b || e[6] !== o || e[7] !== g ? (r = {
|
|
782
|
+
transform: a,
|
|
783
|
+
transition: g,
|
|
784
|
+
opacity: b,
|
|
785
|
+
cursor: o
|
|
786
|
+
}, e[4] = a, e[5] = b, e[6] = o, e[7] = g, e[8] = r) : r = e[8];
|
|
787
|
+
const d = r;
|
|
788
|
+
let l;
|
|
789
|
+
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = {
|
|
768
790
|
"&:focus-visible": {
|
|
769
|
-
outline:
|
|
791
|
+
outline: nn,
|
|
770
792
|
outlineOffset: -2
|
|
771
793
|
}
|
|
772
|
-
}, e[9] =
|
|
794
|
+
}, e[9] = l) : l = e[9];
|
|
773
795
|
let i;
|
|
774
|
-
e[10] !== t.label ? (i = /* @__PURE__ */
|
|
775
|
-
let
|
|
776
|
-
return e[12] !==
|
|
796
|
+
e[10] !== t.label ? (i = /* @__PURE__ */ T(xe, { children: t.label }), e[10] = t.label, e[11] = i) : i = e[11];
|
|
797
|
+
let I;
|
|
798
|
+
return e[12] !== _ || e[13] !== c || e[14] !== S || e[15] !== d || e[16] !== i ? (I = /* @__PURE__ */ T(Le, { ref: S, style: d, ..._, ...c, role: "menuitem", tabIndex: 0, sx: l, children: i }), e[12] = _, e[13] = c, e[14] = S, e[15] = d, e[16] = i, e[17] = I) : I = e[17], I;
|
|
777
799
|
}
|
|
778
|
-
function
|
|
800
|
+
function nn(n) {
|
|
779
801
|
return `2px solid ${n.palette.primary.main}`;
|
|
780
802
|
}
|
|
781
|
-
const
|
|
782
|
-
function
|
|
803
|
+
const Ee = "change-column";
|
|
804
|
+
function Gn(n) {
|
|
783
805
|
const e = Y(50), {
|
|
784
806
|
id: t,
|
|
785
|
-
labels:
|
|
786
|
-
Icon:
|
|
807
|
+
labels: f,
|
|
808
|
+
Icon: _,
|
|
787
809
|
IconButtonProps: c,
|
|
788
810
|
MenuProps: S
|
|
789
|
-
} = n, [v,
|
|
790
|
-
let
|
|
791
|
-
e[0] !== t ? (
|
|
792
|
-
const r = D(te(
|
|
793
|
-
let
|
|
794
|
-
e[2] !== t ? (
|
|
811
|
+
} = n, [v, g] = pe(null), m = D(an), a = D(cn), b = D(rn);
|
|
812
|
+
let o;
|
|
813
|
+
e[0] !== t ? (o = (P) => P.getWidget(t)?.columns, e[0] = t, e[1] = o) : o = e[1];
|
|
814
|
+
const r = D(te(o));
|
|
815
|
+
let d;
|
|
816
|
+
e[2] !== t ? (d = (P) => {
|
|
795
817
|
const j = D.getState().getWidget(t)?.columns;
|
|
796
818
|
if (!j || j.length === 0)
|
|
797
|
-
return
|
|
798
|
-
const oe =
|
|
819
|
+
return P;
|
|
820
|
+
const oe = P, J = oe.columns;
|
|
799
821
|
if (!J || J.length === 0 || J.length === j.length && J.every((X, ne) => X.id === j[ne]?.id))
|
|
800
|
-
return
|
|
801
|
-
const re = new Map(J.map(
|
|
822
|
+
return P;
|
|
823
|
+
const re = new Map(J.map(sn)), le = [];
|
|
802
824
|
for (const X of j) {
|
|
803
825
|
const ne = re.get(X.id);
|
|
804
826
|
ne && (le.push(ne), re.delete(X.id));
|
|
805
827
|
}
|
|
806
828
|
for (const X of re.values())
|
|
807
829
|
le.push(X);
|
|
808
|
-
const
|
|
830
|
+
const me = le.length === j.length && le.every((X, ne) => X.id === j[ne]?.id);
|
|
809
831
|
return {
|
|
810
832
|
...oe,
|
|
811
|
-
columns:
|
|
833
|
+
columns: me ? j : le
|
|
812
834
|
};
|
|
813
|
-
}, e[2] = t, e[3] =
|
|
814
|
-
const
|
|
835
|
+
}, e[2] = t, e[3] = d) : d = e[3];
|
|
836
|
+
const l = d;
|
|
815
837
|
let i;
|
|
816
838
|
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
|
|
817
|
-
coordinateGetter:
|
|
839
|
+
coordinateGetter: dt
|
|
818
840
|
}, e[4] = i) : i = e[4];
|
|
819
|
-
const
|
|
820
|
-
let
|
|
821
|
-
e[5] !== r ? (
|
|
822
|
-
const
|
|
823
|
-
let C,
|
|
824
|
-
e[7] !== t || e[8] !==
|
|
825
|
-
id:
|
|
841
|
+
const I = lt(ve(st), ve(rt, i));
|
|
842
|
+
let s;
|
|
843
|
+
e[5] !== r ? (s = r?.map(ln) ?? [], e[5] = r, e[6] = s) : s = e[6];
|
|
844
|
+
const u = s;
|
|
845
|
+
let C, h;
|
|
846
|
+
e[7] !== t || e[8] !== a || e[9] !== l || e[10] !== b ? (C = () => (a(t, {
|
|
847
|
+
id: Ee,
|
|
826
848
|
type: "config",
|
|
827
849
|
order: 100,
|
|
828
850
|
enabled: !0,
|
|
829
|
-
fn:
|
|
830
|
-
}), () =>
|
|
851
|
+
fn: l
|
|
852
|
+
}), () => b(t, Ee)), h = [t, a, b, l], e[7] = t, e[8] = a, e[9] = l, e[10] = b, e[11] = C, e[12] = h) : (C = e[11], h = e[12]), K(C, h);
|
|
831
853
|
let x;
|
|
832
|
-
e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = (
|
|
833
|
-
|
|
854
|
+
e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = (P) => {
|
|
855
|
+
P.stopPropagation(), g(P.currentTarget);
|
|
834
856
|
}, e[13] = x) : x = e[13];
|
|
835
|
-
const
|
|
836
|
-
let
|
|
837
|
-
e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
838
|
-
|
|
839
|
-
}, e[14] =
|
|
840
|
-
const z =
|
|
841
|
-
let
|
|
842
|
-
e[15] !== r || e[16] !== t || e[17] !==
|
|
857
|
+
const $ = x;
|
|
858
|
+
let y;
|
|
859
|
+
e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = () => {
|
|
860
|
+
g(null);
|
|
861
|
+
}, e[14] = y) : y = e[14];
|
|
862
|
+
const z = y;
|
|
863
|
+
let W;
|
|
864
|
+
e[15] !== r || e[16] !== t || e[17] !== m ? (W = (P) => {
|
|
843
865
|
const {
|
|
844
866
|
active: U,
|
|
845
867
|
over: j
|
|
846
|
-
} =
|
|
868
|
+
} = P;
|
|
847
869
|
if (!j || U.id === j.id || !r)
|
|
848
870
|
return;
|
|
849
871
|
const oe = r.findIndex((Q) => Q.id === U.id), J = r.findIndex((Q) => Q.id === j.id);
|
|
850
872
|
if (oe !== -1 && J !== -1) {
|
|
851
|
-
const Q =
|
|
852
|
-
|
|
873
|
+
const Q = ut(r, oe, J);
|
|
874
|
+
m(t, {
|
|
853
875
|
columns: Q
|
|
854
876
|
});
|
|
855
877
|
}
|
|
856
|
-
}, e[15] = r, e[16] = t, e[17] =
|
|
857
|
-
const
|
|
878
|
+
}, e[15] = r, e[16] = t, e[17] = m, e[18] = W) : W = e[18];
|
|
879
|
+
const B = W;
|
|
858
880
|
if (!r || r.length < 2)
|
|
859
881
|
return null;
|
|
860
|
-
const
|
|
882
|
+
const A = f?.tooltip ?? "Change column", w = !!v, O = f?.ariaLabel ?? A, E = w ? "change-column-menu" : void 0, R = w ? "true" : void 0;
|
|
861
883
|
let k;
|
|
862
|
-
e[19] !==
|
|
863
|
-
let
|
|
864
|
-
e[21] !== c || e[22] !==
|
|
865
|
-
let
|
|
866
|
-
e[28] !==
|
|
867
|
-
let
|
|
868
|
-
e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
884
|
+
e[19] !== _ ? (k = _ ?? /* @__PURE__ */ T(Ne, { children: /* @__PURE__ */ T(en, {}) }), e[19] = _, e[20] = k) : k = e[20];
|
|
885
|
+
let L;
|
|
886
|
+
e[21] !== c || e[22] !== w || e[23] !== O || e[24] !== E || e[25] !== R || e[26] !== k ? (L = /* @__PURE__ */ T(q, { size: "small", "aria-label": O, "aria-controls": E, "aria-haspopup": "true", "aria-expanded": R, onClick: $, "data-active": w, sx: ue.trigger, ...c, children: k }), e[21] = c, e[22] = w, e[23] = O, e[24] = E, e[25] = R, e[26] = k, e[27] = L) : L = e[27];
|
|
887
|
+
let p;
|
|
888
|
+
e[28] !== L || e[29] !== A ? (p = /* @__PURE__ */ T(se, { title: A, children: L }), e[28] = L, e[29] = A, e[30] = p) : p = e[30];
|
|
889
|
+
let M, N;
|
|
890
|
+
e[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = {
|
|
869
891
|
vertical: "bottom",
|
|
870
892
|
horizontal: "right"
|
|
871
893
|
}, N = {
|
|
872
894
|
vertical: "top",
|
|
873
895
|
horizontal: "right"
|
|
874
|
-
}, e[31] =
|
|
875
|
-
let G;
|
|
876
|
-
e[33] !== r ? (G = r.map(tn), e[33] = r, e[34] = G) : G = e[34];
|
|
877
|
-
let H;
|
|
878
|
-
e[35] !== o || e[36] !== G ? (H = /* @__PURE__ */ p(ut, { items: o, strategy: ft, children: G }), e[35] = o, e[36] = G, e[37] = H) : H = e[37];
|
|
896
|
+
}, e[31] = M, e[32] = N) : (M = e[31], N = e[32]);
|
|
879
897
|
let V;
|
|
880
|
-
e[
|
|
898
|
+
e[33] !== r ? (V = r.map(on), e[33] = r, e[34] = V) : V = e[34];
|
|
899
|
+
let H;
|
|
900
|
+
e[35] !== u || e[36] !== V ? (H = /* @__PURE__ */ T(ft, { items: u, strategy: gt, children: V }), e[35] = u, e[36] = V, e[37] = H) : H = e[37];
|
|
901
|
+
let G;
|
|
902
|
+
e[38] !== S || e[39] !== v || e[40] !== w || e[41] !== H ? (G = /* @__PURE__ */ T(Oe, { id: "change-column-menu", anchorEl: v, open: w, onClose: z, anchorOrigin: M, transformOrigin: N, ...S, children: H }), e[38] = S, e[39] = v, e[40] = w, e[41] = H, e[42] = G) : G = e[42];
|
|
881
903
|
let Z;
|
|
882
|
-
e[43] !==
|
|
904
|
+
e[43] !== B || e[44] !== I || e[45] !== G ? (Z = /* @__PURE__ */ T(it, { sensors: I, collisionDetection: ct, onDragEnd: B, children: G }), e[43] = B, e[44] = I, e[45] = G, e[46] = Z) : Z = e[46];
|
|
883
905
|
let F;
|
|
884
|
-
return e[47] !==
|
|
885
|
-
|
|
906
|
+
return e[47] !== p || e[48] !== Z ? (F = /* @__PURE__ */ ie(Te, { children: [
|
|
907
|
+
p,
|
|
886
908
|
Z
|
|
887
|
-
] }), e[47] =
|
|
909
|
+
] }), e[47] = p, e[48] = Z, e[49] = F) : F = e[49], F;
|
|
888
910
|
}
|
|
889
|
-
function
|
|
890
|
-
return /* @__PURE__ */
|
|
911
|
+
function on(n) {
|
|
912
|
+
return /* @__PURE__ */ T(tn, { column: n }, n.id);
|
|
891
913
|
}
|
|
892
|
-
function
|
|
914
|
+
function ln(n) {
|
|
893
915
|
return n.id;
|
|
894
916
|
}
|
|
895
|
-
function
|
|
917
|
+
function sn(n) {
|
|
896
918
|
return [n.id, n];
|
|
897
919
|
}
|
|
898
|
-
function
|
|
920
|
+
function rn(n) {
|
|
899
921
|
return n.unregisterTool;
|
|
900
922
|
}
|
|
901
|
-
function
|
|
923
|
+
function cn(n) {
|
|
902
924
|
return n.registerTool;
|
|
903
925
|
}
|
|
904
|
-
function
|
|
926
|
+
function an(n) {
|
|
905
927
|
return n.setWidget;
|
|
906
928
|
}
|
|
907
929
|
const ke = {
|
|
@@ -917,42 +939,42 @@ const ke = {
|
|
|
917
939
|
background: (n) => n.palette.primary.relatedLight
|
|
918
940
|
}
|
|
919
941
|
}
|
|
920
|
-
},
|
|
921
|
-
function
|
|
942
|
+
}, de = "brush-toggle";
|
|
943
|
+
function Vn(n) {
|
|
922
944
|
const e = Y(40), {
|
|
923
945
|
id: t,
|
|
924
|
-
onBrushSelected:
|
|
925
|
-
labels:
|
|
946
|
+
onBrushSelected: f,
|
|
947
|
+
labels: _,
|
|
926
948
|
Icon: c,
|
|
927
949
|
IconButtonProps: S
|
|
928
|
-
} = n, v = D(
|
|
929
|
-
let
|
|
930
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
931
|
-
const
|
|
950
|
+
} = n, v = D(hn), g = D(mn), m = D(gn), a = D(fn);
|
|
951
|
+
let b;
|
|
952
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = [], e[0] = b) : b = e[0];
|
|
953
|
+
const o = ae(b);
|
|
932
954
|
let r;
|
|
933
|
-
e[1] !== t ? (r = (
|
|
934
|
-
const
|
|
955
|
+
e[1] !== t ? (r = (p) => (p.getWidget(t)?.registeredTools ?? []).find(un), e[1] = t, e[2] = r) : r = e[2];
|
|
956
|
+
const l = D(te(r))?.enabled;
|
|
935
957
|
let i;
|
|
936
|
-
e[3] !== t || e[4] !==
|
|
937
|
-
|
|
938
|
-
}, e[3] = t, e[4] =
|
|
939
|
-
const
|
|
940
|
-
let
|
|
941
|
-
e[6] !==
|
|
942
|
-
const
|
|
943
|
-
|
|
944
|
-
}, e[6] =
|
|
945
|
-
const
|
|
946
|
-
let C,
|
|
947
|
-
e[10] !==
|
|
948
|
-
if (!
|
|
958
|
+
e[3] !== t || e[4] !== a ? (i = (p) => {
|
|
959
|
+
a(t, de, p);
|
|
960
|
+
}, e[3] = t, e[4] = a, e[5] = i) : i = e[5];
|
|
961
|
+
const I = i;
|
|
962
|
+
let s;
|
|
963
|
+
e[6] !== l || e[7] !== f || e[8] !== I ? (s = () => {
|
|
964
|
+
const p = !l;
|
|
965
|
+
I(p), p && f?.([]);
|
|
966
|
+
}, e[6] = l, e[7] = f, e[8] = I, e[9] = s) : s = e[9];
|
|
967
|
+
const u = s;
|
|
968
|
+
let C, h;
|
|
969
|
+
e[10] !== l || e[11] !== v || e[12] !== t ? (C = () => {
|
|
970
|
+
if (!l)
|
|
949
971
|
return;
|
|
950
|
-
const
|
|
951
|
-
if (!
|
|
972
|
+
const p = v(t)?.instance?.current;
|
|
973
|
+
if (!p)
|
|
952
974
|
return;
|
|
953
|
-
const
|
|
954
|
-
const N =
|
|
955
|
-
|
|
975
|
+
const M = () => {
|
|
976
|
+
const N = Se();
|
|
977
|
+
p.dispatchAction({
|
|
956
978
|
type: "takeGlobalCursor",
|
|
957
979
|
key: "brush",
|
|
958
980
|
brushOption: {
|
|
@@ -961,44 +983,44 @@ function Fn(n) {
|
|
|
961
983
|
}
|
|
962
984
|
});
|
|
963
985
|
};
|
|
964
|
-
return
|
|
965
|
-
|
|
986
|
+
return M(), p.on("rendered", M), () => {
|
|
987
|
+
p.off("rendered", M);
|
|
966
988
|
};
|
|
967
|
-
},
|
|
989
|
+
}, h = [l, v, t], e[10] = l, e[11] = v, e[12] = t, e[13] = C, e[14] = h) : (C = e[13], h = e[14]), K(C, h);
|
|
968
990
|
let x;
|
|
969
|
-
e[15] !== v || e[16] !== t ? (x = (
|
|
970
|
-
const
|
|
971
|
-
const
|
|
991
|
+
e[15] !== v || e[16] !== t ? (x = (p) => {
|
|
992
|
+
const M = p, V = v(t)?.data ?? [], H = [...new Set(M.batch?.flatMap((G) => G.selected?.flatMap((Z) => Z.dataIndex?.map((F) => {
|
|
993
|
+
const P = V[Z.seriesIndex ?? 0]?.[F], U = P ? Object.values(P)[0] : void 0;
|
|
972
994
|
return String(typeof U == "string" || typeof U == "number" ? U : F);
|
|
973
995
|
}) ?? []) ?? []))];
|
|
974
|
-
|
|
996
|
+
o.current = H ?? [];
|
|
975
997
|
}, e[15] = v, e[16] = t, e[17] = x) : x = e[17];
|
|
976
|
-
const
|
|
977
|
-
let
|
|
978
|
-
e[18] !==
|
|
979
|
-
|
|
980
|
-
}, e[18] =
|
|
981
|
-
const z =
|
|
982
|
-
let
|
|
983
|
-
e[21] !== v || e[22] !== z || e[23] !==
|
|
984
|
-
const
|
|
985
|
-
return
|
|
986
|
-
id:
|
|
998
|
+
const $ = x;
|
|
999
|
+
let y;
|
|
1000
|
+
e[18] !== f || e[19] !== I ? (y = () => {
|
|
1001
|
+
f?.(o.current), I(!1);
|
|
1002
|
+
}, e[18] = f, e[19] = I, e[20] = y) : y = e[20];
|
|
1003
|
+
const z = y;
|
|
1004
|
+
let W, B;
|
|
1005
|
+
e[21] !== v || e[22] !== z || e[23] !== $ || e[24] !== t || e[25] !== g || e[26] !== m ? (B = () => {
|
|
1006
|
+
const M = v(t)?.registeredTools?.find(dn)?.enabled ?? !1;
|
|
1007
|
+
return g(t, {
|
|
1008
|
+
id: de,
|
|
987
1009
|
type: "config",
|
|
988
1010
|
order: 25,
|
|
989
|
-
enabled:
|
|
1011
|
+
enabled: M,
|
|
990
1012
|
fn: (N) => {
|
|
991
|
-
const
|
|
1013
|
+
const V = N, H = V.option, G = V.onEvents ?? {}, Z = Se();
|
|
992
1014
|
({
|
|
993
|
-
...
|
|
1015
|
+
...G
|
|
994
1016
|
});
|
|
995
1017
|
const F = {
|
|
996
|
-
...
|
|
997
|
-
brushSelected:
|
|
1018
|
+
...G,
|
|
1019
|
+
brushSelected: $,
|
|
998
1020
|
brushEnd: z
|
|
999
1021
|
};
|
|
1000
1022
|
return {
|
|
1001
|
-
...
|
|
1023
|
+
...V,
|
|
1002
1024
|
option: {
|
|
1003
1025
|
...H,
|
|
1004
1026
|
...Z
|
|
@@ -1006,53 +1028,54 @@ function Fn(n) {
|
|
|
1006
1028
|
onEvents: F
|
|
1007
1029
|
};
|
|
1008
1030
|
}
|
|
1009
|
-
}), () =>
|
|
1010
|
-
},
|
|
1011
|
-
const
|
|
1012
|
-
let
|
|
1013
|
-
e[29] !== c ? (
|
|
1031
|
+
}), () => m(t, de);
|
|
1032
|
+
}, W = [v, z, $, t, g, m], e[21] = v, e[22] = z, e[23] = $, e[24] = t, e[25] = g, e[26] = m, e[27] = W, e[28] = B) : (W = e[27], B = e[28]), K(B, W);
|
|
1033
|
+
const A = _?.enable ?? "Enable brush selection", w = _?.disable ?? "Disable brush selection", O = l ? w : A, E = _?.ariaLabel ?? O;
|
|
1034
|
+
let R;
|
|
1035
|
+
e[29] !== c ? (R = c ?? /* @__PURE__ */ T(et, {}), e[29] = c, e[30] = R) : R = e[30];
|
|
1014
1036
|
let k;
|
|
1015
|
-
e[31] !== S || e[32] !==
|
|
1016
|
-
let
|
|
1017
|
-
return e[37] !== k || e[38] !==
|
|
1037
|
+
e[31] !== S || e[32] !== l || e[33] !== u || e[34] !== E || e[35] !== R ? (k = /* @__PURE__ */ T(q, { size: "small", "aria-label": E, onClick: u, sx: ke.trigger, "data-active": l, ...S, children: R }), e[31] = S, e[32] = l, e[33] = u, e[34] = E, e[35] = R, e[36] = k) : k = e[36];
|
|
1038
|
+
let L;
|
|
1039
|
+
return e[37] !== k || e[38] !== O ? (L = /* @__PURE__ */ T($e, { sx: ke.container, children: /* @__PURE__ */ T(se, { title: O, children: k }) }), e[37] = k, e[38] = O, e[39] = L) : L = e[39], L;
|
|
1018
1040
|
}
|
|
1019
|
-
function
|
|
1020
|
-
return n.id ===
|
|
1041
|
+
function dn(n) {
|
|
1042
|
+
return n.id === de;
|
|
1021
1043
|
}
|
|
1022
|
-
function
|
|
1023
|
-
return n.id ===
|
|
1044
|
+
function un(n) {
|
|
1045
|
+
return n.id === de;
|
|
1024
1046
|
}
|
|
1025
|
-
function
|
|
1047
|
+
function fn(n) {
|
|
1026
1048
|
return n.setToolEnabled;
|
|
1027
1049
|
}
|
|
1028
|
-
function
|
|
1050
|
+
function gn(n) {
|
|
1029
1051
|
return n.unregisterTool;
|
|
1030
1052
|
}
|
|
1031
|
-
function
|
|
1053
|
+
function mn(n) {
|
|
1032
1054
|
return n.registerTool;
|
|
1033
1055
|
}
|
|
1034
|
-
function
|
|
1056
|
+
function hn(n) {
|
|
1035
1057
|
return n.getWidget;
|
|
1036
1058
|
}
|
|
1037
1059
|
export {
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1060
|
+
de as BRUSH_TOGGLE_TOOL_ID,
|
|
1061
|
+
Vn as BrushToggle,
|
|
1062
|
+
Ee as CHANGE_COLUMN_TOOL_ID,
|
|
1063
|
+
Gn as ChangeColumn,
|
|
1064
|
+
Bn as Download,
|
|
1065
|
+
Wn as FullScreen,
|
|
1066
|
+
be as LOCK_SELECTION_TOOL_ID,
|
|
1045
1067
|
Pn as LockSelection,
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
Mn as
|
|
1052
|
-
|
|
1068
|
+
ce as RELATIVE_DATA_CONFIG_TOOL_ID,
|
|
1069
|
+
he as RELATIVE_DATA_TOOL_ID,
|
|
1070
|
+
zn as RelativeData,
|
|
1071
|
+
ge as SEARCHER_TOOL_ID,
|
|
1072
|
+
Ce as STACK_TOGGLE_TOOL_ID,
|
|
1073
|
+
Mn as Searcher,
|
|
1074
|
+
Fn as SearcherToggle,
|
|
1075
|
+
Rn as StackToggle,
|
|
1053
1076
|
ee as ZOOM_TOGGLE_TOOL_ID,
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1077
|
+
An as ZoomToggle,
|
|
1078
|
+
Nn as downloadToCSV,
|
|
1079
|
+
jn as downloadToPNG
|
|
1057
1080
|
};
|
|
1058
1081
|
//# sourceMappingURL=actions.js.map
|