@carto/ps-react-ui 4.3.9 → 4.4.0-chat-ui.0

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