@carto/ps-react-ui 4.3.0-widgets.0 → 5.0.0-widgets.2

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