@carto/ps-react-ui 4.4.2 → 4.4.3

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