@carto/ps-react-ui 4.3.6 → 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 (119) 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/index.d.ts +2 -2
  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/types.d.ts +0 -4
  24. package/dist/types/widgets/echart/types.d.ts +0 -4
  25. package/dist/types/widgets/echart/utils.d.ts +2 -1
  26. package/dist/types/widgets/error/error.d.ts +1 -1
  27. package/dist/types/widgets/error/types.d.ts +8 -0
  28. package/dist/types/widgets/loader/loader.d.ts +1 -1
  29. package/dist/types/widgets/loader/types.d.ts +1 -1
  30. package/dist/types/widgets/stores/types.d.ts +1 -1
  31. package/dist/{use-widget-ref-B8x4sHIj.js → use-widget-ref-P-2i0MJG.js} +2 -2
  32. package/dist/{use-widget-ref-B8x4sHIj.js.map → use-widget-ref-P-2i0MJG.js.map} +1 -1
  33. package/dist/{utils-D3-eQyDR.js → utils-idmvq0Oa.js} +17 -16
  34. package/dist/utils-idmvq0Oa.js.map +1 -0
  35. package/dist/{widget-store-Dn0Bnc4h.js → widget-store-CzDt8oSK.js} +31 -46
  36. package/dist/widget-store-CzDt8oSK.js.map +1 -0
  37. package/dist/widgets/actions.js +690 -716
  38. package/dist/widgets/actions.js.map +1 -1
  39. package/dist/widgets/bar.js +67 -63
  40. package/dist/widgets/bar.js.map +1 -1
  41. package/dist/widgets/category.js +250 -241
  42. package/dist/widgets/category.js.map +1 -1
  43. package/dist/widgets/echart.js +93 -100
  44. package/dist/widgets/echart.js.map +1 -1
  45. package/dist/widgets/error.js +1 -1
  46. package/dist/widgets/formula.js +64 -72
  47. package/dist/widgets/formula.js.map +1 -1
  48. package/dist/widgets/histogram.js +75 -73
  49. package/dist/widgets/histogram.js.map +1 -1
  50. package/dist/widgets/loader.js +1 -1
  51. package/dist/widgets/loader.js.map +1 -1
  52. package/dist/widgets/markdown.js +2 -2
  53. package/dist/widgets/no-data.js +1 -1
  54. package/dist/widgets/pie.js +4 -4
  55. package/dist/widgets/range.js +97 -105
  56. package/dist/widgets/range.js.map +1 -1
  57. package/dist/widgets/scatterplot.js +8 -8
  58. package/dist/widgets/skeleton-loader.js +1 -1
  59. package/dist/widgets/spread.js +84 -100
  60. package/dist/widgets/spread.js.map +1 -1
  61. package/dist/widgets/stores.js +1 -1
  62. package/dist/widgets/table.js +493 -485
  63. package/dist/widgets/table.js.map +1 -1
  64. package/dist/widgets/timeseries.js +4 -4
  65. package/dist/widgets/wrapper.js +156 -156
  66. package/dist/widgets/wrapper.js.map +1 -1
  67. package/dist/widgets.js +4 -4
  68. package/package.json +3 -3
  69. package/src/components/lasso-tool/lasso-tool-inline.tsx +19 -17
  70. package/src/components/lasso-tool/lasso-tool.tsx +22 -20
  71. package/src/components/lasso-tool/types.ts +4 -3
  72. package/src/widgets/_shared/chart-config/index.ts +1 -0
  73. package/src/widgets/_shared/chart-config/option-builders.test.ts +40 -0
  74. package/src/widgets/_shared/chart-config/option-builders.ts +12 -0
  75. package/src/widgets/actions/fullscreen/fullscreen.tsx +5 -8
  76. package/src/widgets/actions/index.ts +2 -5
  77. package/src/widgets/actions/lock-selection/lock-selection.test.tsx +28 -30
  78. package/src/widgets/actions/lock-selection/lock-selection.tsx +25 -26
  79. package/src/widgets/actions/lock-selection/types.ts +0 -17
  80. package/src/widgets/actions/relative-data/relative-data.test.tsx +13 -13
  81. package/src/widgets/actions/relative-data/relative-data.tsx +18 -21
  82. package/src/widgets/actions/relative-data/types.ts +0 -7
  83. package/src/widgets/actions/searcher/searcher.tsx +40 -22
  84. package/src/widgets/actions/searcher/types.ts +0 -2
  85. package/src/widgets/actions/stack-toggle/stack-toggle.test.tsx +19 -9
  86. package/src/widgets/actions/stack-toggle/stack-toggle.tsx +32 -22
  87. package/src/widgets/actions/stack-toggle/types.ts +0 -8
  88. package/src/widgets/actions/zoom-toggle/zoom-toggle.tsx +113 -95
  89. package/src/widgets/bar/config.ts +37 -28
  90. package/src/widgets/category/category-ui.tsx +25 -22
  91. package/src/widgets/echart/echart-ui.test.tsx +3 -18
  92. package/src/widgets/echart/echart-ui.tsx +4 -22
  93. package/src/widgets/echart/echart.test.tsx +9 -25
  94. package/src/widgets/echart/echart.tsx +36 -29
  95. package/src/widgets/echart/types.ts +0 -4
  96. package/src/widgets/echart/utils.ts +3 -1
  97. package/src/widgets/error/error.tsx +17 -14
  98. package/src/widgets/error/types.ts +10 -0
  99. package/src/widgets/formula/components/value.tsx +13 -13
  100. package/src/widgets/histogram/config.ts +36 -29
  101. package/src/widgets/loader/loader.tsx +3 -1
  102. package/src/widgets/loader/types.ts +3 -1
  103. package/src/widgets/no-data/no-data.tsx +8 -11
  104. package/src/widgets/range/components/range-item.tsx +9 -13
  105. package/src/widgets/spread/components/max-value.tsx +13 -13
  106. package/src/widgets/spread/components/min-value.tsx +13 -13
  107. package/src/widgets/stores/types.ts +1 -4
  108. package/src/widgets/stores/widget-store.ts +1 -27
  109. package/src/widgets/table/hooks/use-pagination.ts +44 -35
  110. package/src/widgets/table/hooks/use-sort.ts +25 -23
  111. package/src/widgets/wrapper/wrapper-ui.tsx +16 -17
  112. package/dist/error-piB8FwYO.js +0 -38
  113. package/dist/error-piB8FwYO.js.map +0 -1
  114. package/dist/lasso-tool-BctzdzBu.js.map +0 -1
  115. package/dist/no-data-jdlbMef0.js +0 -61
  116. package/dist/no-data-jdlbMef0.js.map +0 -1
  117. package/dist/styles-CCZnY17y.js.map +0 -1
  118. package/dist/utils-D3-eQyDR.js.map +0 -1
  119. package/dist/widget-store-Dn0Bnc4h.js.map +0 -1
@@ -1,19 +1,19 @@
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 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 xn, d as zn } from "../exports-Cr43OCul.js";
10
- import "../lasso-tool-BctzdzBu.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 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";
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
17
  const ve = {
18
18
  title: {
19
19
  container: {
@@ -31,276 +31,268 @@ const ve = {
31
31
  }) => n(1)
32
32
  }
33
33
  };
34
- function hn(n) {
35
- const e = U(46), {
34
+ function Ln(n) {
35
+ const e = N(48), {
36
36
  id: t,
37
- labels: d,
38
- children: g,
39
- Icon: a,
40
- IconButtonProps: p,
37
+ labels: c,
38
+ children: u,
39
+ Icon: s,
40
+ IconButtonProps: f,
41
41
  DialogContentProps: T
42
42
  } = n;
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
+ let i;
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));
53
+ let r;
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);
43
56
  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
57
+ e[9] !== t || e[10] !== o ? (h = (x) => {
58
+ o(t, {
59
+ isFullScreen: x.isFullScreen
66
60
  });
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({
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] = 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({
66
+ }), e[12] = l, e[13] = b) : b = e[13];
67
+ let y;
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] = x) : x = e[19];
82
- const I = `fullscreen-dialog-title-${t}`;
75
+ }), e[20] = l, e[21] = C) : C = e[21];
76
+ const k = `fullscreen-dialog-title-${t}`;
83
77
  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({
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] = 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];
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];
93
85
  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];
86
+ e[27] !== _ ? (E = /* @__PURE__ */ p(q, { onClick: _, children: w }), e[27] = _, e[28] = E) : E = e[28];
98
87
  let $;
99
- e[31] !== S ? ($ = {
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 = {
100
94
  ...ve.content,
101
- ...S
102
- }, e[31] = S, e[32] = $) : $ = e[32];
95
+ ...m
96
+ }, e[33] = m, e[34] = A) : A = e[34];
97
+ let I;
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];
103
99
  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];
105
- 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,
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,
108
107
  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,
113
- A
114
- ] }), e[43] = A, e[44] = m, e[45] = O) : O = e[45], O;
108
+ ] }), e[45] = W, e[46] = v, e[47] = F) : F = e[47], F;
115
109
  }
116
- function at(n) {
110
+ function ft(n) {
117
111
  return n.setWidget;
118
112
  }
119
- function bn(n) {
120
- const e = U(35), {
113
+ function wn(n) {
114
+ const e = N(35), {
121
115
  id: t,
122
- items: d,
123
- labels: g,
124
- Icon: a,
125
- IconButtonProps: p
116
+ items: c,
117
+ labels: u,
118
+ Icon: s,
119
+ IconButtonProps: f
126
120
  } = n;
127
121
  let T;
128
- e[0] !== g ? (T = g === void 0 ? {} : g, e[0] = g, e[1] = T) : T = e[1];
129
- const h = T;
130
- 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) => {
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;
132
+ let l;
133
+ e[5] !== t ? (l = (x, B) => {
140
134
  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);
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
- r(!1);
143
+ g(!1);
150
144
  return;
151
145
  }
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" : "";
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];
155
151
  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 = {
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
- }, y = {
157
+ }, w = {
164
158
  vertical: "top",
165
159
  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 = {
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] = $, 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);
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
- D.icon && /* @__PURE__ */ b(Ae, { sx: {
174
+ B.icon && /* @__PURE__ */ p(Re, { sx: {
181
175
  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;
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
- 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;
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: [
185
+ L,
186
+ W
187
+ ] }), e[32] = L, e[33] = W, e[34] = F) : F = e[34], F;
194
188
  }
195
- const ue = {
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 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;
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(g).reduce((a, [p, T]) => p === "name" ? a : typeof T == "number" ? a + T : a, d);
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 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;
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
- g[a] = typeof p == "number" ? p / e * 100 : p;
215
+ u[s] = typeof f == "number" ? f / e * 100 : f;
222
216
  }
223
- return g;
217
+ return u;
224
218
  }));
225
219
  }
226
- const he = "relative-data";
227
- function Sn(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: d,
231
- defaultIsRelative: g,
232
- labels: a,
233
- Icon: p,
224
+ order: c,
225
+ defaultIsRelative: u,
226
+ labels: s,
227
+ Icon: f,
234
228
  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, {
242
- isRelative: f
243
- });
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;
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
- r(t, {
267
- isRelative: R,
268
- max: w,
269
- formatter: R ? (D) => {
270
- const P = u(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(D / 100);
276
- } : s.current
261
+ }).format(I / 100);
262
+ } : i.current
277
263
  });
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;
280
- let W;
281
- e[25] !== p ? (W = p ?? /* @__PURE__ */ b(He, {}), e[25] = p, e[26] = W) : W = e[26];
282
- 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;
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;
286
272
  }
287
- function ft(n) {
288
- const e = n, t = dt(e);
289
- return ut(e, t);
273
+ function pt(n) {
274
+ const e = n, t = mt(e);
275
+ return gt(e, t);
290
276
  }
291
- function mt(n) {
277
+ function ht(n) {
278
+ return n.id === ae;
279
+ }
280
+ function bt(n) {
281
+ return n.id === ae;
282
+ }
283
+ function Tt(n) {
292
284
  return n.setToolEnabled;
293
285
  }
294
- function gt(n) {
286
+ function St(n) {
295
287
  return n.unregisterTool;
296
288
  }
297
- function pt(n) {
289
+ function _t(n) {
298
290
  return n.registerTool;
299
291
  }
300
- function ht(n) {
292
+ function vt(n) {
301
293
  return n.getWidget;
302
294
  }
303
- function bt(n) {
295
+ function Ct(n) {
304
296
  return n.setWidget;
305
297
  }
306
298
  const Ce = {
@@ -316,638 +308,620 @@ const Ce = {
316
308
  background: (n) => n.palette.primary.relatedLight
317
309
  }
318
310
  }
319
- }, ge = "zoom-toggle";
320
- function _n(n) {
321
- const e = U(78), {
311
+ }, J = "zoom-toggle";
312
+ function On(n) {
313
+ const e = N(50), {
322
314
  id: t,
323
- defaultZoom: d,
324
- defaultZoomStart: g,
325
- defaultZoomEnd: a,
326
- labels: p,
315
+ defaultZoom: c,
316
+ defaultZoomStart: u,
317
+ defaultZoomEnd: s,
318
+ labels: f,
327
319
  Icon: T,
328
- ResetIcon: h,
329
- 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: {
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);
323
+ let y;
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;
326
+ let k;
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
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);
392
- 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
399
- });
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
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
426
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
427
388
  });
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;
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
397
+ });
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];
402
+ let V;
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];
404
+ let M;
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];
406
+ let G;
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];
408
+ let K;
409
+ return e[47] !== M || e[48] !== G ? (K = /* @__PURE__ */ oe(Me, { sx: Ce.container, children: [
410
+ M,
411
+ G
412
+ ] }), e[47] = M, e[48] = G, e[49] = K) : K = e[49], K;
443
413
  }
444
- function St(n) {
414
+ function It(n) {
415
+ return n.id === J;
416
+ }
417
+ function xt(n) {
418
+ return n.id === J;
419
+ }
420
+ function yt(n) {
445
421
  return n.updateToolConfig;
446
422
  }
447
- function _t(n) {
423
+ function kt(n) {
448
424
  return n.setToolEnabled;
449
425
  }
450
- function Tt(n) {
426
+ function Et(n) {
451
427
  return n.unregisterTool;
452
428
  }
453
- function vt(n) {
429
+ function $t(n) {
454
430
  return n.registerTool;
455
431
  }
456
- function Ct(n) {
432
+ function Lt(n) {
457
433
  return n.getWidget;
458
434
  }
459
- function It(n) {
460
- return n.setWidget;
461
- }
462
- const kt = () => {
463
- const n = U(1);
435
+ const wt = () => {
436
+ const n = N(1);
464
437
  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), {
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), {
469
442
  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;
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;
482
455
  e: {
483
- if (!o) {
484
- let H;
485
- e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = {
456
+ if (!h) {
457
+ let P;
458
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = {
486
459
  hasMultiSeries: !1,
487
460
  hasStackInSeries: !1
488
- }, e[4] = H) : H = e[4], k = H;
461
+ }, e[4] = P) : P = e[4], l = P;
489
462
  break e;
490
463
  }
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;
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];
494
469
  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;
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;
501
474
  }
502
475
  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,
509
- type: "config",
510
- order: 10,
511
- enabled: l && _,
512
- fn: yt,
513
- config: {
514
- stacked: l
515
- }
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, {
520
- stacked: l
521
- });
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
527
- });
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, {
532
- isStacked: !l
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
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
533
498
  });
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 (!_)
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";
501
+ if (!b)
537
502
  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;
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];
506
+ let $;
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;
545
510
  }
546
- function yt(n, e) {
547
- const t = n, d = t.option;
548
- if (!d)
511
+ function Dt(n, e) {
512
+ const t = n, c = t.option;
513
+ if (!c)
549
514
  return n;
550
- const g = e?.stacked ?? !1, p = (Array.isArray(d.series) ? d.series : [d.series]).map((T) => {
551
- const h = T?.stack;
515
+ const u = e?.stacked ?? !1, f = (Array.isArray(c.series) ? c.series : [c.series]).map((T) => {
516
+ const S = T?.stack;
552
517
  return {
553
518
  ...T,
554
- ...qe(g, typeof h == "string" ? h : Je)
519
+ ...Xe(u, typeof S == "string" ? S : et)
555
520
  };
556
521
  });
557
522
  return {
558
523
  ...t,
559
524
  option: {
560
- ...d,
561
- series: p
525
+ ...c,
526
+ series: f
562
527
  }
563
528
  };
564
529
  }
565
- function Et(n) {
530
+ function Ot(n) {
531
+ return n.id === se;
532
+ }
533
+ function Wt(n) {
566
534
  return n?.stack;
567
535
  }
568
- function xt(n) {
536
+ function zt(n) {
537
+ return n.id === se;
538
+ }
539
+ function At(n) {
569
540
  return n.updateToolConfig;
570
541
  }
571
- function zt(n) {
542
+ function Bt(n) {
572
543
  return n.setToolEnabled;
573
544
  }
574
- function Lt(n) {
545
+ function Pt(n) {
575
546
  return n.unregisterTool;
576
547
  }
577
- function $t(n) {
548
+ function Ft(n) {
578
549
  return n.registerTool;
579
550
  }
580
- function wt(n) {
581
- return n.setWidget;
551
+ function Rt(n) {
552
+ return n.getWidget;
582
553
  }
583
- const ae = "lock-selection";
584
- function vn(n) {
585
- const e = U(36), {
554
+ const X = "lock-selection";
555
+ function zn(n) {
556
+ const e = N(26), {
586
557
  id: t,
587
- selectedItems: d,
588
- order: g,
589
- labels: a,
590
- Icon: p,
558
+ selectedItems: c,
559
+ order: u,
560
+ labels: s,
561
+ Icon: f,
591
562
  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,
603
- enabled: o,
604
- fn: Dt,
605
- config: {
606
- lockedItems: _
607
- }
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: _
613
- });
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 = () => {
617
- o ? f(t, {
618
- isLocked: !1,
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, {
619
583
  lockedItems: []
620
- }) : f(t, {
621
- isLocked: !0,
622
- lockedItems: d
623
- });
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)
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)
627
590
  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], $;
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];
594
+ let k;
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;
635
598
  }
636
- function Dt(n, e) {
599
+ function Zt(n, e) {
637
600
  const t = e?.lockedItems || [];
638
- return t.length === 0 ? n : Pt(n, t);
601
+ return t.length === 0 ? n : Ut(n, t);
639
602
  }
640
- function Wt(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) {
641
610
  return n.updateToolConfig;
642
611
  }
643
- function Ot(n) {
612
+ function Ht(n) {
644
613
  return n.setToolEnabled;
645
614
  }
646
- function Rt(n) {
615
+ function jt(n) {
647
616
  return n.unregisterTool;
648
617
  }
649
- function At(n) {
618
+ function Nt(n) {
650
619
  return n.registerTool;
651
620
  }
652
- function Ft(n) {
653
- return n.setWidget;
621
+ function Kt(n) {
622
+ return n.getWidget;
654
623
  }
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);
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);
659
628
  }));
660
629
  }
661
- const ce = "searcher", Bt = 300;
662
- function Cn(n) {
663
- const e = U(49), {
630
+ const ne = "searcher", Yt = 300;
631
+ function An(n) {
632
+ const e = N(49), {
664
633
  id: t,
665
- filterFn: d,
666
- order: g,
667
- labels: a,
668
- TextFieldProps: p,
634
+ filterFn: c,
635
+ order: u,
636
+ labels: s,
637
+ TextFieldProps: f,
669
638
  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, {
678
- searchText: j
679
- });
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,
685
- order: f,
686
- enabled: c,
687
- fn: async (j, J) => {
688
- const ne = J?.searchText || "";
689
- return _(j, ne);
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);
644
+ let b;
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);
690
655
  },
691
656
  config: {
692
- searchText: o
657
+ searchText: l(t)?.registeredTools?.find(qt)?.config?.searchText ?? ""
693
658
  },
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, $);
700
- 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, {
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, {
704
669
  searchText: j
705
670
  });
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;
723
- let B;
724
- e[31] !== t || e[32] !== v || e[33] !== I ? (B = () => {
725
- v(""), I(t, ce, {
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, {
726
678
  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)
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;
691
+ let M;
692
+ e[32] !== t || e[33] !== _ ? (M = () => {
693
+ v(""), _(t, ne, {
694
+ searchText: ""
695
+ }), i.current && i.current.focus();
696
+ }, e[32] = t, e[33] = _, e[34] = M) : M = e[34];
697
+ const G = M;
698
+ if (!o)
731
699
  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;
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;
744
712
  }
745
- function Mt(n) {
713
+ function qt(n) {
714
+ return n.id === ne;
715
+ }
716
+ function Jt(n) {
746
717
  return n.updateToolConfig;
747
718
  }
748
- function Vt(n) {
719
+ function Qt(n) {
749
720
  return n.setToolEnabled;
750
721
  }
751
- function Zt(n) {
722
+ function Xt(n) {
752
723
  return n.unregisterTool;
753
724
  }
754
- function Gt(n) {
725
+ function en(n) {
755
726
  return n.registerTool;
756
727
  }
757
- function Ht(n) {
758
- return n.setWidget;
728
+ function tn(n) {
729
+ return n.id === ne;
730
+ }
731
+ function nn(n) {
732
+ return n.getWidget;
759
733
  }
760
- const jt = (n, e) => {
734
+ const on = (n, e) => {
761
735
  if (!e.trim()) return Promise.resolve(n);
762
736
  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)))));
737
+ return Promise.resolve(n.map((c) => c.filter((u) => Object.values(u).some((s) => typeof s == "string" && s.toLowerCase().includes(t)))));
764
738
  };
765
- function In(n) {
766
- const e = U(23), {
739
+ function Bn(n) {
740
+ const e = N(23), {
767
741
  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, {
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, {
779
753
  isSearchEnabled: T
780
754
  });
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
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
786
760
  });
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];
793
- 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;
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;
795
769
  }
796
- function Nt(n) {
770
+ function ln(n) {
797
771
  return n.getWidget;
798
772
  }
799
- function Kt(n) {
773
+ function sn(n) {
800
774
  return n.setWidget;
801
775
  }
802
- const Ut = () => {
803
- const n = U(1);
776
+ const rn = () => {
777
+ const n = N(1);
804
778
  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;
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;
806
780
  };
807
- function Yt(n) {
808
- const e = U(18), {
781
+ function cn(n) {
782
+ const e = N(18), {
809
783
  column: t
810
784
  } = n;
811
- let d;
812
- e[0] !== t.id ? (d = {
785
+ let c;
786
+ e[0] !== t.id ? (c = {
813
787
  id: t.id
814
- }, e[0] = t.id, e[1] = d) : d = e[1];
788
+ }, e[0] = t.id, e[1] = c) : c = e[1];
815
789
  const {
816
- attributes: g,
817
- listeners: a,
818
- setNodeRef: p,
790
+ attributes: u,
791
+ listeners: s,
792
+ setNodeRef: f,
819
793
  transform: T,
820
- transition: h,
821
- 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 = {
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,
804
+ opacity: i,
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 = {
836
810
  "&:focus-visible": {
837
- outline: qt,
811
+ outline: an,
838
812
  outlineOffset: -2
839
813
  }
840
- }, e[9] = c) : c = e[9];
841
- 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;
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;
845
819
  }
846
- function qt(n) {
820
+ function an(n) {
847
821
  return `2px solid ${n.palette.primary.main}`;
848
822
  }
849
- function kn(n) {
850
- const e = U(42), {
823
+ function Pn(n) {
824
+ const e = N(42), {
851
825
  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));
865
- let i;
866
- e[3] !== s ? (i = s?.map(Qt) ?? [], e[3] = s, e[4] = i) : i = e[4];
867
- const c = i;
868
- 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) => {
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;
852
+ let v;
853
+ e[7] !== i || e[8] !== t || e[9] !== a ? (v = (Z) => {
880
854
  const {
881
- active: B,
882
- over: G
883
- } = M;
884
- if (!G || B.id === G.id || !s)
855
+ active: V,
856
+ over: M
857
+ } = Z;
858
+ if (!M || V.id === M.id || !i)
885
859
  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);
889
- f(t, {
890
- columns: N
860
+ const G = i.findIndex((R) => R.id === V.id), K = i.findIndex((R) => R.id === M.id);
861
+ if (G !== -1 && K !== -1) {
862
+ const R = ct(i, G, K);
863
+ a(t, {
864
+ columns: R
891
865
  });
892
866
  }
893
- }, e[7] = s, e[8] = t, e[9] = f, e[10] = C) : C = e[10];
894
- const l = C;
895
- if (!s || s.length < 2)
867
+ }, e[7] = i, e[8] = t, e[9] = a, e[10] = v) : v = e[10];
868
+ const d = v;
869
+ if (!i || i.length < 2)
896
870
  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];
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];
900
874
  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];
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];
902
876
  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 = {
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 = {
906
880
  vertical: "bottom",
907
881
  horizontal: "right"
908
- }, A = {
882
+ }, I = {
909
883
  vertical: "top",
910
884
  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];
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];
920
894
  let P;
921
- return e[39] !== $ || e[40] !== D ? (P = /* @__PURE__ */ le(Se, { children: [
895
+ return e[39] !== $ || e[40] !== B ? (P = /* @__PURE__ */ oe(pe, { children: [
922
896
  $,
923
- D
924
- ] }), e[39] = $, e[40] = D, e[41] = P) : P = e[41], P;
897
+ B
898
+ ] }), e[39] = $, e[40] = B, e[41] = P) : P = e[41], P;
925
899
  }
926
- function Jt(n) {
927
- return /* @__PURE__ */ b(Yt, { column: n }, n.id);
900
+ function dn(n) {
901
+ return /* @__PURE__ */ p(cn, { column: n }, n.id);
928
902
  }
929
- function Qt(n) {
903
+ function un(n) {
930
904
  return n.id;
931
905
  }
932
- function Xt(n) {
906
+ function fn(n) {
933
907
  return n.setWidget;
934
908
  }
935
909
  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
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
952
926
  };
953
927
  //# sourceMappingURL=actions.js.map