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