@carto/ps-react-ui 5.0.0-widgets.7 → 5.0.0-widgets.9

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