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