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