@carto/ps-react-ui 4.4.1 → 4.4.3

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