@carto/ps-react-ui 5.0.0-widgets.1 → 5.0.0-widgets.10

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