@carto/ps-react-ui 4.3.6 → 4.3.8

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