@carto/ps-react-ui 4.3.5 → 4.3.7

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