@carto/ps-react-ui 4.21.1 → 4.23.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 (113) hide show
  1. package/dist/actions-D7LB9DvT.js +1161 -0
  2. package/dist/actions-D7LB9DvT.js.map +1 -0
  3. package/dist/category-Ca5XDx0N.js +839 -0
  4. package/dist/category-Ca5XDx0N.js.map +1 -0
  5. package/dist/{download-C7he8mSh.js → download--wRRnf19.js} +81 -80
  6. package/dist/download--wRRnf19.js.map +1 -0
  7. package/dist/{echart-DSz2Tu0z.js → echart-CgOQw9XB.js} +29 -29
  8. package/dist/echart-CgOQw9XB.js.map +1 -0
  9. package/dist/{formula-Cqj84ZGX.js → formula-DRuMIVo8.js} +6 -6
  10. package/dist/formula-DRuMIVo8.js.map +1 -0
  11. package/dist/{markdown-CV_KP-at.js → markdown-C3OX9jyy.js} +6 -6
  12. package/dist/markdown-C3OX9jyy.js.map +1 -0
  13. package/dist/{spread-C8T12Nfh.js → spread-BT07rCJw.js} +7 -7
  14. package/dist/spread-BT07rCJw.js.map +1 -0
  15. package/dist/{table-CNQijNNB.js → table-CRG9eOs9.js} +3 -3
  16. package/dist/table-CRG9eOs9.js.map +1 -0
  17. package/dist/types/widgets-v2/actions/download/csv-item.d.ts +3 -3
  18. package/dist/types/widgets-v2/actions/download/index.d.ts +1 -1
  19. package/dist/types/widgets-v2/actions/download/png-item.d.ts +2 -2
  20. package/dist/types/widgets-v2/actions/download/types.d.ts +12 -1
  21. package/dist/types/widgets-v2/actions/fullscreen/fullscreen.d.ts +42 -16
  22. package/dist/types/widgets-v2/actions/fullscreen/style.d.ts +9 -0
  23. package/dist/types/widgets-v2/actions/index.d.ts +1 -1
  24. package/dist/types/widgets-v2/bar/download.d.ts +3 -3
  25. package/dist/types/widgets-v2/category/category-ui.d.ts +9 -1
  26. package/dist/types/widgets-v2/category/download.d.ts +3 -3
  27. package/dist/types/widgets-v2/echart/echart-ui.d.ts +2 -2
  28. package/dist/types/widgets-v2/echart/echart.d.ts +9 -1
  29. package/dist/types/widgets-v2/echart/style.d.ts +2 -0
  30. package/dist/types/widgets-v2/formula/download.d.ts +3 -3
  31. package/dist/types/widgets-v2/histogram/download.d.ts +3 -3
  32. package/dist/types/widgets-v2/index.d.ts +2 -2
  33. package/dist/types/widgets-v2/markdown/download.d.ts +3 -3
  34. package/dist/types/widgets-v2/pie/download.d.ts +3 -3
  35. package/dist/types/widgets-v2/scatterplot/download.d.ts +3 -3
  36. package/dist/types/widgets-v2/spread/download.d.ts +3 -3
  37. package/dist/types/widgets-v2/table/download.d.ts +3 -3
  38. package/dist/types/widgets-v2/timeseries/download.d.ts +3 -3
  39. package/dist/types/widgets-v2/toolbox/toolbox.d.ts +1 -1
  40. package/dist/widgets-v2/actions.js +2 -2
  41. package/dist/widgets-v2/bar.js +7 -7
  42. package/dist/widgets-v2/bar.js.map +1 -1
  43. package/dist/widgets-v2/category.js +1 -1
  44. package/dist/widgets-v2/echart.js +1 -1
  45. package/dist/widgets-v2/formula.js +1 -1
  46. package/dist/widgets-v2/histogram.js +10 -10
  47. package/dist/widgets-v2/histogram.js.map +1 -1
  48. package/dist/widgets-v2/markdown.js +1 -1
  49. package/dist/widgets-v2/pie.js +10 -11
  50. package/dist/widgets-v2/pie.js.map +1 -1
  51. package/dist/widgets-v2/scatterplot.js +9 -9
  52. package/dist/widgets-v2/scatterplot.js.map +1 -1
  53. package/dist/widgets-v2/spread.js +1 -1
  54. package/dist/widgets-v2/table.js +1 -1
  55. package/dist/widgets-v2/timeseries.js +12 -12
  56. package/dist/widgets-v2/timeseries.js.map +1 -1
  57. package/dist/widgets-v2.js +274 -333
  58. package/dist/widgets-v2.js.map +1 -1
  59. package/package.json +3 -3
  60. package/src/widgets-v2/actions/download/csv-item.test.tsx +3 -3
  61. package/src/widgets-v2/actions/download/csv-item.tsx +6 -6
  62. package/src/widgets-v2/actions/download/download.tsx +5 -3
  63. package/src/widgets-v2/actions/download/index.ts +1 -1
  64. package/src/widgets-v2/actions/download/png-item.test.tsx +5 -3
  65. package/src/widgets-v2/actions/download/png-item.tsx +4 -4
  66. package/src/widgets-v2/actions/download/types.ts +15 -1
  67. package/src/widgets-v2/actions/fullscreen/fullscreen-store.test.tsx +155 -0
  68. package/src/widgets-v2/actions/fullscreen/fullscreen.test.tsx +93 -33
  69. package/src/widgets-v2/actions/fullscreen/fullscreen.tsx +272 -86
  70. package/src/widgets-v2/actions/fullscreen/style.ts +31 -4
  71. package/src/widgets-v2/actions/index.ts +1 -0
  72. package/src/widgets-v2/actions/searcher/searcher.tsx +17 -2
  73. package/src/widgets-v2/bar/download.test.tsx +5 -3
  74. package/src/widgets-v2/bar/download.tsx +5 -4
  75. package/src/widgets-v2/category/category-ui.tsx +20 -9
  76. package/src/widgets-v2/category/category.tsx +37 -2
  77. package/src/widgets-v2/category/download.test.ts +4 -2
  78. package/src/widgets-v2/category/download.ts +5 -4
  79. package/src/widgets-v2/echart/echart-ui.test.tsx +6 -3
  80. package/src/widgets-v2/echart/echart-ui.tsx +6 -2
  81. package/src/widgets-v2/echart/echart.test.tsx +1 -1
  82. package/src/widgets-v2/echart/echart.tsx +10 -0
  83. package/src/widgets-v2/echart/style.ts +16 -1
  84. package/src/widgets-v2/formula/download.test.tsx +3 -1
  85. package/src/widgets-v2/formula/download.tsx +5 -4
  86. package/src/widgets-v2/histogram/download.test.ts +6 -4
  87. package/src/widgets-v2/histogram/download.ts +5 -4
  88. package/src/widgets-v2/index.ts +1 -0
  89. package/src/widgets-v2/markdown/download.test.ts +2 -2
  90. package/src/widgets-v2/markdown/download.tsx +5 -4
  91. package/src/widgets-v2/pie/download.test.ts +7 -3
  92. package/src/widgets-v2/pie/download.ts +5 -4
  93. package/src/widgets-v2/pie/options.test.ts +8 -0
  94. package/src/widgets-v2/pie/options.ts +3 -8
  95. package/src/widgets-v2/scatterplot/download.test.ts +4 -2
  96. package/src/widgets-v2/scatterplot/download.ts +5 -4
  97. package/src/widgets-v2/spread/download.test.ts +3 -1
  98. package/src/widgets-v2/spread/download.ts +5 -4
  99. package/src/widgets-v2/table/download.test.ts +5 -3
  100. package/src/widgets-v2/table/download.ts +4 -3
  101. package/src/widgets-v2/timeseries/download.test.ts +6 -4
  102. package/src/widgets-v2/timeseries/download.ts +5 -4
  103. package/src/widgets-v2/toolbox/toolbox.tsx +1 -1
  104. package/dist/actions-C7ZAO0FG.js +0 -1004
  105. package/dist/actions-C7ZAO0FG.js.map +0 -1
  106. package/dist/category-DZt6yiST.js +0 -826
  107. package/dist/category-DZt6yiST.js.map +0 -1
  108. package/dist/download-C7he8mSh.js.map +0 -1
  109. package/dist/echart-DSz2Tu0z.js.map +0 -1
  110. package/dist/formula-Cqj84ZGX.js.map +0 -1
  111. package/dist/markdown-CV_KP-at.js.map +0 -1
  112. package/dist/spread-C8T12Nfh.js.map +0 -1
  113. package/dist/table-CNQijNNB.js.map +0 -1
@@ -1,86 +1,27 @@
1
1
  import { t as e } from "./tooltip-DJUGNZxY.js";
2
2
  import "./components-DKjBezcJ.js";
3
3
  import { t } from "./smart-tooltip-CwGHCqab.js";
4
- import { C as n, S as r, T as i, _ as a, h as o, l as s, m as c, p as l, w as u, x as d, y as f } from "./stores-BVFMfgyo.js";
5
- import { i as p, n as m, o as h, r as g } from "./echart-DSz2Tu0z.js";
6
- import { t as _ } from "./markdown-content-BzKoX3eu.js";
7
- import { C as v, S as y, c as b, f as x, g as S, o as C, r as w, t as T, y as E } from "./actions-C7ZAO0FG.js";
8
- import { t as D } from "./zoom-toggle-KA63b6-J.js";
9
- import { s as O } from "./download-C7he8mSh.js";
10
- import { i as k, r as A } from "./formula-Cqj84ZGX.js";
11
- import { i as j, r as M } from "./markdown-CV_KP-at.js";
12
- import { a as N, i as P } from "./spread-C8T12Nfh.js";
13
- import { n as F, r as I } from "./range-BPWVrAsY.js";
14
- import { i as L, r as R } from "./category-DZt6yiST.js";
15
- import { d as z, i as B } from "./table-CNQijNNB.js";
16
- import { c as V } from "react/compiler-runtime";
17
- import { Children as H, Component as U, isValidElement as W, useEffect as G, useLayoutEffect as K, useRef as q, useState as J } from "react";
18
- import { Accordion as ee, AccordionDetails as te, AccordionSummary as ne, Alert as re, AlertTitle as ie, Box as Y, Button as ae, Divider as oe, Grow as se, IconButton as ce, LinearProgress as le, Link as ue, Paper as de, Popper as fe, Typography as X } from "@mui/material";
19
- import { Fragment as pe, jsx as Z, jsxs as Q } from "react/jsx-runtime";
20
- import { Close as me, ExpandMore as he } from "@mui/icons-material";
21
- import { WidgetOptions as ge } from "@carto/meridian-ds/custom-icons";
22
- import { createPortal as _e } from "react-dom";
23
- //#region src/widgets-v2/provider/widget-provider.tsx
24
- function ve(e) {
25
- let t = V(31), { id: n, data: r, isLoading: i, isFetching: a, error: p, formatter: m, labelFormatter: h, keepAlive: g, children: _ } = e, v = g !== void 0 && g, y;
26
- t[0] !== r || t[1] !== p || t[2] !== m || t[3] !== n || t[4] !== a || t[5] !== i || t[6] !== h ? (y = () => {
27
- if (c(n)) return l(n);
28
- let e = s(n, {
29
- data: r,
30
- isLoading: i,
31
- isFetching: a,
32
- error: p,
33
- formatter: m,
34
- labelFormatter: h
35
- });
36
- return f(n, e), e;
37
- }, t[0] = r, t[1] = p, t[2] = m, t[3] = n, t[4] = a, t[5] = i, t[6] = h, t[7] = y) : y = t[7];
38
- let [b] = J(y), x, S;
39
- t[8] !== n || t[9] !== v || t[10] !== b ? (x = () => (o(n, b), () => {
40
- d(n, { keepAlive: v });
41
- }), S = [
42
- n,
43
- b,
44
- v
45
- ], t[8] = n, t[9] = v, t[10] = b, t[11] = x, t[12] = S) : (x = t[11], S = t[12]), K(x, S);
46
- let C, w;
47
- t[13] !== r || t[14] !== b ? (C = () => {
48
- b.setState({ rawData: r });
49
- }, w = [b, r], t[13] = r, t[14] = b, t[15] = C, t[16] = w) : (C = t[15], w = t[16]), K(C, w);
50
- let T, E;
51
- t[17] !== p || t[18] !== a || t[19] !== i || t[20] !== b ? (T = () => {
52
- b.setState({
53
- isLoading: i ?? !1,
54
- isFetching: a ?? !1,
55
- error: p
56
- });
57
- }, E = [
58
- b,
59
- i,
60
- a,
61
- p
62
- ], t[17] = p, t[18] = a, t[19] = i, t[20] = b, t[21] = T, t[22] = E) : (T = t[21], E = t[22]), K(T, E);
63
- let D, O;
64
- t[23] !== m || t[24] !== h || t[25] !== b ? (O = () => {
65
- b.setState({
66
- rawFormatter: m,
67
- formatter: m,
68
- labelFormatter: h
69
- });
70
- }, D = [
71
- b,
72
- m,
73
- h
74
- ], t[23] = m, t[24] = h, t[25] = b, t[26] = D, t[27] = O) : (D = t[26], O = t[27]), K(O, D);
75
- let k;
76
- return t[28] !== _ || t[29] !== n ? (k = /* @__PURE__ */ Z(u.Provider, {
77
- value: n,
78
- children: _
79
- }), t[28] = _, t[29] = n, t[30] = k) : k = t[30], k;
80
- }
81
- //#endregion
4
+ import { C as n, S as r, T as i, _ as a } from "./stores-BVFMfgyo.js";
5
+ import { C as o, D as s, S as c, c as l, f as u, g as d, o as f, r as p, t as m, y as h } from "./actions-D7LB9DvT.js";
6
+ import { i as g, n as _, o as v, r as y } from "./echart-CgOQw9XB.js";
7
+ import { t as b } from "./markdown-content-BzKoX3eu.js";
8
+ import { t as x } from "./zoom-toggle-KA63b6-J.js";
9
+ import { s as S } from "./download--wRRnf19.js";
10
+ import { i as C, r as w } from "./formula-DRuMIVo8.js";
11
+ import { i as T, r as E } from "./markdown-C3OX9jyy.js";
12
+ import { a as D, i as O } from "./spread-BT07rCJw.js";
13
+ import { n as k, r as A } from "./range-BPWVrAsY.js";
14
+ import { i as j, r as M } from "./category-Ca5XDx0N.js";
15
+ import { d as N, i as P } from "./table-CRG9eOs9.js";
16
+ import { c as F } from "react/compiler-runtime";
17
+ import { Children as ee, Component as I, isValidElement as L, useEffect as R, useLayoutEffect as te, useRef as z, useState as B } from "react";
18
+ import { Accordion as V, AccordionDetails as H, AccordionSummary as ne, Alert as U, AlertTitle as W, Box as G, Button as K, Divider as q, Grow as J, IconButton as re, LinearProgress as ie, Link as ae, Paper as oe, Popper as se, Typography as Y } from "@mui/material";
19
+ import { Fragment as ce, jsx as X, jsxs as Z } from "react/jsx-runtime";
20
+ import { Close as le, ExpandMore as ue } from "@mui/icons-material";
21
+ import { WidgetOptions as de } from "@carto/meridian-ds/custom-icons";
22
+ import { createPortal as fe } from "react-dom";
82
23
  //#region src/widgets-v2/wrapper/style.ts
83
- var $ = {
24
+ var Q = {
84
25
  root: {
85
26
  position: "relative",
86
27
  width: "100%",
@@ -169,50 +110,50 @@ var $ = {
169
110
  };
170
111
  //#endregion
171
112
  //#region src/widgets-v2/wrapper/widget-actions.tsx
172
- function ye(e) {
173
- let t = V(5), { sx: n, children: r } = e, i;
113
+ function pe(e) {
114
+ let t = F(5), { sx: n, children: r } = e, i;
174
115
  t[0] === n ? i = t[1] : (i = {
175
- ...$.actions,
116
+ ...Q.actions,
176
117
  ...n
177
118
  }, t[0] = n, t[1] = i);
178
119
  let a;
179
- return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(Y, {
120
+ return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ X(G, {
180
121
  className: "widget-wrapper-actions",
181
- onClick: be,
122
+ onClick: me,
182
123
  sx: i,
183
124
  children: r
184
125
  }), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
185
126
  }
186
- function be(e) {
127
+ function me(e) {
187
128
  return e.stopPropagation();
188
129
  }
189
- function xe(e) {
190
- let t = V(5), { sx: n, children: r } = e, i;
130
+ function he(e) {
131
+ let t = F(5), { sx: n, children: r } = e, i;
191
132
  t[0] === n ? i = t[1] : (i = {
192
- ...$.options,
133
+ ...Q.options,
193
134
  ...n
194
135
  }, t[0] = n, t[1] = i);
195
136
  let a;
196
- return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(Y, {
197
- onClick: Se,
137
+ return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ X(G, {
138
+ onClick: ge,
198
139
  sx: i,
199
140
  children: r
200
141
  }), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
201
142
  }
202
- function Se(e) {
143
+ function ge(e) {
203
144
  return e.stopPropagation();
204
145
  }
205
146
  //#endregion
206
147
  //#region src/widgets-v2/wrapper/labels.ts
207
- var Ce = {
148
+ var _e = {
208
149
  collapse: "Collapse",
209
150
  expand: "Expand",
210
151
  errorFallbackTitle: "Widget failed to render"
211
152
  };
212
153
  //#endregion
213
154
  //#region src/widgets-v2/wrapper/widget-wrapper.tsx
214
- function we(e) {
215
- let n = V(40), { title: a, collapsed: o, onCollapseChange: s, defaultCollapsed: c, disabled: l, variant: u, labels: d, expandIcon: f, iconProps: p, sx: m, children: h } = e, g = c !== void 0 && c, _ = l !== void 0 && l, v = u === void 0 ? "elevation" : u, y = f === void 0 ? he : f, b = i(), x = r(b, Te), S = o !== void 0, [C, w] = J(g), T = S ? o : C, E;
155
+ function ve(e) {
156
+ let n = F(40), { title: a, collapsed: o, onCollapseChange: s, defaultCollapsed: c, disabled: l, variant: u, labels: d, expandIcon: f, iconProps: p, sx: m, children: h } = e, g = c !== void 0 && c, _ = l !== void 0 && l, v = u === void 0 ? "elevation" : u, y = f === void 0 ? ue : f, b = i(), x = r(b, ye), S = o !== void 0, [C, w] = B(g), T = S ? o : C, E;
216
157
  n[0] !== _ || n[1] !== s ? (E = (e, t) => {
217
158
  if (_) return;
218
159
  let n = !t;
@@ -220,67 +161,67 @@ function we(e) {
220
161
  }, n[0] = _, n[1] = s, n[2] = E) : E = n[2];
221
162
  let D = E, O;
222
163
  n[3] === d ? O = n[4] : (O = {
223
- ...Ce,
164
+ ..._e,
224
165
  ...d
225
166
  }, n[3] = d, n[4] = O);
226
167
  let k = O, A;
227
- n[5] === h ? A = n[6] : (A = Ee(h), n[5] = h, n[6] = A);
228
- let { summary: j, details: M } = A, N = T ? k.expand : k.collapse, P = T ? "true" : void 0, F = !T, I;
168
+ n[5] === h ? A = n[6] : (A = be(h), n[5] = h, n[6] = A);
169
+ let { summary: j, details: M } = A, N = T ? k.expand : k.collapse, P = T ? "true" : void 0, ee = !T, I;
229
170
  n[7] === m ? I = n[8] : (I = {
230
- ...$.root,
171
+ ...Q.root,
231
172
  ...m
232
173
  }, n[7] = m, n[8] = I);
233
174
  let L;
234
- n[9] === x ? L = n[10] : (L = x ? /* @__PURE__ */ Z(le, {
235
- sx: $.loading,
175
+ n[9] === x ? L = n[10] : (L = x ? /* @__PURE__ */ X(ie, {
176
+ sx: Q.loading,
236
177
  color: "primary"
237
178
  }) : null, n[9] = x, n[10] = L);
238
179
  let R;
239
- n[11] !== y || n[12] !== _ || n[13] !== p ? (R = _ ? null : /* @__PURE__ */ Z(y, {
180
+ n[11] !== y || n[12] !== _ || n[13] !== p ? (R = _ ? null : /* @__PURE__ */ X(y, {
240
181
  fontSize: "small",
241
182
  ...p
242
183
  }), n[11] = y, n[12] = _, n[13] = p, n[14] = R) : R = n[14];
243
- let z = _ || void 0, B = _ ? $.summaryDisabled : null, H;
244
- n[15] === B ? H = n[16] : (H = {
245
- ...$.summary,
246
- ...B
247
- }, n[15] = B, n[16] = H);
248
- let U;
249
- n[17] === a ? U = n[18] : (U = (e) => {
184
+ let te = _ || void 0, z = _ ? Q.summaryDisabled : null, U;
185
+ n[15] === z ? U = n[16] : (U = {
186
+ ...Q.summary,
187
+ ...z
188
+ }, n[15] = z, n[16] = U);
189
+ let W;
190
+ n[17] === a ? W = n[18] : (W = (e) => {
250
191
  let { ref: t } = e;
251
- return /* @__PURE__ */ Z(Y, {
252
- sx: $.titleCell,
253
- children: /* @__PURE__ */ Z(X, {
192
+ return /* @__PURE__ */ X(G, {
193
+ sx: Q.titleCell,
194
+ children: /* @__PURE__ */ X(Y, {
254
195
  ref: t,
255
196
  variant: "subtitle1",
256
- sx: $.titleText,
197
+ sx: Q.titleText,
257
198
  textTransform: "none",
258
199
  children: a
259
200
  })
260
201
  });
261
- }, n[17] = a, n[18] = U);
262
- let W;
263
- n[19] !== U || n[20] !== a ? (W = /* @__PURE__ */ Z(t, {
202
+ }, n[17] = a, n[18] = W);
203
+ let K;
204
+ n[19] !== W || n[20] !== a ? (K = /* @__PURE__ */ X(t, {
264
205
  title: a,
265
- children: U
266
- }), n[19] = U, n[20] = a, n[21] = W) : W = n[21];
267
- let G;
268
- n[22] !== N || n[23] !== j || n[24] !== R || n[25] !== z || n[26] !== H || n[27] !== W ? (G = /* @__PURE__ */ Q(ne, {
206
+ children: W
207
+ }), n[19] = W, n[20] = a, n[21] = K) : K = n[21];
208
+ let q;
209
+ n[22] !== N || n[23] !== j || n[24] !== R || n[25] !== te || n[26] !== U || n[27] !== K ? (q = /* @__PURE__ */ Z(ne, {
269
210
  expandIcon: R,
270
211
  "aria-label": N,
271
- "aria-disabled": z,
272
- sx: H,
273
- children: [W, j]
274
- }), n[22] = N, n[23] = j, n[24] = R, n[25] = z, n[26] = H, n[27] = W, n[28] = G) : G = n[28];
275
- let K;
276
- n[29] === M ? K = n[30] : (K = /* @__PURE__ */ Z(te, {
277
- sx: $.detail,
212
+ "aria-disabled": te,
213
+ sx: U,
214
+ children: [K, j]
215
+ }), n[22] = N, n[23] = j, n[24] = R, n[25] = te, n[26] = U, n[27] = K, n[28] = q) : q = n[28];
216
+ let J;
217
+ n[29] === M ? J = n[30] : (J = /* @__PURE__ */ X(H, {
218
+ sx: Q.detail,
278
219
  children: M
279
- }), n[29] = M, n[30] = K);
280
- let q;
281
- return n[31] !== D || n[32] !== I || n[33] !== L || n[34] !== G || n[35] !== K || n[36] !== P || n[37] !== F || n[38] !== v ? (q = /* @__PURE__ */ Q(ee, {
220
+ }), n[29] = M, n[30] = J);
221
+ let re;
222
+ return n[31] !== D || n[32] !== I || n[33] !== L || n[34] !== q || n[35] !== J || n[36] !== P || n[37] !== ee || n[38] !== v ? (re = /* @__PURE__ */ Z(V, {
282
223
  "data-collapsed": P,
283
- expanded: F,
224
+ expanded: ee,
284
225
  onChange: D,
285
226
  disableGutters: !0,
286
227
  elevation: 0,
@@ -289,48 +230,48 @@ function we(e) {
289
230
  sx: I,
290
231
  children: [
291
232
  L,
292
- G,
293
- K
233
+ q,
234
+ J
294
235
  ]
295
- }), n[31] = D, n[32] = I, n[33] = L, n[34] = G, n[35] = K, n[36] = P, n[37] = F, n[38] = v, n[39] = q) : q = n[39], q;
236
+ }), n[31] = D, n[32] = I, n[33] = L, n[34] = q, n[35] = J, n[36] = P, n[37] = ee, n[38] = v, n[39] = re) : re = n[39], re;
296
237
  }
297
- function Te(e) {
238
+ function ye(e) {
298
239
  return e.isFetching;
299
240
  }
300
- function Ee(e) {
241
+ function be(e) {
301
242
  let t = [], n = [];
302
- for (let r of H.toArray(e)) De(r, ye) || De(r, xe) ? t.push(r) : n.push(r);
243
+ for (let r of ee.toArray(e)) xe(r, pe) || xe(r, he) ? t.push(r) : n.push(r);
303
244
  return {
304
245
  summary: t,
305
246
  details: n
306
247
  };
307
248
  }
308
- function De(e, t) {
309
- return W(e) && e.type === t;
249
+ function xe(e, t) {
250
+ return L(e) && e.type === t;
310
251
  }
311
252
  //#endregion
312
253
  //#region src/widgets-v2/wrapper/widget-content.tsx
313
- function Oe(e) {
314
- let t = V(5), { sx: n, children: r } = e, i;
254
+ function Se(e) {
255
+ let t = F(5), { sx: n, children: r } = e, i;
315
256
  t[0] === n ? i = t[1] : (i = {
316
- ...$.content,
257
+ ...Q.content,
317
258
  ...n
318
259
  }, t[0] = n, t[1] = i);
319
260
  let a;
320
- return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(Y, {
261
+ return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ X(G, {
321
262
  "data-slot": "content",
322
263
  sx: i,
323
264
  children: r
324
265
  }), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
325
266
  }
326
- function ke(e) {
327
- let t = V(5), { sx: n, children: r } = e, i;
267
+ function Ce(e) {
268
+ let t = F(5), { sx: n, children: r } = e, i;
328
269
  t[0] === n ? i = t[1] : (i = {
329
- ...$.footer,
270
+ ...Q.footer,
330
271
  ...n
331
272
  }, t[0] = n, t[1] = i);
332
273
  let a;
333
- return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(Y, {
274
+ return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ X(G, {
334
275
  "data-slot": "footer",
335
276
  sx: i,
336
277
  children: r
@@ -338,7 +279,7 @@ function ke(e) {
338
279
  }
339
280
  //#endregion
340
281
  //#region src/widgets-v2/subheader/style.ts
341
- var Ae = { root: {
282
+ var we = { root: {
342
283
  display: "grid",
343
284
  gridTemplateColumns: "1fr auto",
344
285
  alignItems: "center",
@@ -348,21 +289,21 @@ var Ae = { root: {
348
289
  } };
349
290
  //#endregion
350
291
  //#region src/widgets-v2/subheader/subheader.tsx
351
- function je(e) {
352
- let t = V(5), { sx: n, children: r } = e, i;
292
+ function Te(e) {
293
+ let t = F(5), { sx: n, children: r } = e, i;
353
294
  t[0] === n ? i = t[1] : (i = {
354
- ...Ae.root,
295
+ ...we.root,
355
296
  ...n
356
297
  }, t[0] = n, t[1] = i);
357
298
  let a;
358
- return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ Z(Y, {
299
+ return t[2] !== r || t[3] !== i ? (a = /* @__PURE__ */ X(G, {
359
300
  sx: i,
360
301
  children: r
361
302
  }), t[2] = r, t[3] = i, t[4] = a) : a = t[4], a;
362
303
  }
363
304
  //#endregion
364
305
  //#region src/widgets-v2/state/style.ts
365
- var Me = {
306
+ var Ee = {
366
307
  emptyRoot: {
367
308
  display: "flex",
368
309
  flexDirection: "column",
@@ -380,33 +321,33 @@ var Me = {
380
321
  flexDirection: "column",
381
322
  flex: 1
382
323
  }
383
- }, Ne = {
324
+ }, De = {
384
325
  errorTitle: "Something went wrong",
385
326
  errorMessage: (e) => e instanceof Error ? e.message : typeof e == "string" ? e : e && typeof e == "object" && "message" in e ? String(e.message) : "Unknown error",
386
327
  emptyTitle: "No data",
387
328
  emptyDescription: "Try adjusting filters or wait for data to load."
388
- }, Pe = (e) => ({
329
+ }, Oe = (e) => ({
389
330
  isLoading: e.isLoading,
390
331
  isFetching: e.isFetching,
391
332
  error: e.error,
392
333
  rawData: e.rawData
393
334
  });
394
- function Fe(e) {
395
- let t = V(17), { skeleton: r, children: a, isEmpty: o, fallback: s, labels: c } = e, l = o === void 0 ? Be : o, u = i(), d = n(u, Pe), f;
335
+ function ke(e) {
336
+ let t = F(17), { skeleton: r, children: a, isEmpty: o, fallback: s, labels: c } = e, l = o === void 0 ? Pe : o, u = i(), d = n(u, Oe), f;
396
337
  t[0] === c ? f = t[1] : (f = {
397
- ...Ne,
338
+ ...De,
398
339
  ...c
399
340
  }, t[0] = c, t[1] = f);
400
341
  let p = f;
401
342
  if (d.isLoading) {
402
343
  let e;
403
- return t[2] === r ? e = t[3] : (e = /* @__PURE__ */ Z(pe, { children: r }), t[2] = r, t[3] = e), e;
344
+ return t[2] === r ? e = t[3] : (e = /* @__PURE__ */ X(ce, { children: r }), t[2] = r, t[3] = e), e;
404
345
  }
405
346
  if (d.error !== void 0 && d.error !== null) {
406
347
  let e;
407
348
  if (t[4] !== p || t[5] !== s || t[6] !== d.error) {
408
- let n = Ve(d.error);
409
- e = s ? /* @__PURE__ */ Z(pe, { children: s(n) }) : /* @__PURE__ */ Z(Le, {
349
+ let n = Fe(d.error);
350
+ e = s ? /* @__PURE__ */ X(ce, { children: s(n) }) : /* @__PURE__ */ X(je, {
410
351
  error: n,
411
352
  labels: p
412
353
  }), t[4] = p, t[5] = s, t[6] = d.error, t[7] = e;
@@ -415,61 +356,61 @@ function Fe(e) {
415
356
  }
416
357
  if (l(d.rawData)) {
417
358
  let e;
418
- return t[8] === p ? e = t[9] : (e = /* @__PURE__ */ Z(Re, { labels: p }), t[8] = p, t[9] = e), e;
359
+ return t[8] === p ? e = t[9] : (e = /* @__PURE__ */ X(Me, { labels: p }), t[8] = p, t[9] = e), e;
419
360
  }
420
361
  let m;
421
- t[10] !== a || t[11] !== u ? (m = /* @__PURE__ */ Z(Ie, {
362
+ t[10] !== a || t[11] !== u ? (m = /* @__PURE__ */ X(Ae, {
422
363
  id: u,
423
364
  children: a
424
365
  }), t[10] = a, t[11] = u, t[12] = m) : m = t[12];
425
366
  let h;
426
- return t[13] !== p || t[14] !== s || t[15] !== m ? (h = /* @__PURE__ */ Z(ze, {
367
+ return t[13] !== p || t[14] !== s || t[15] !== m ? (h = /* @__PURE__ */ X(Ne, {
427
368
  fallback: s,
428
369
  labels: p,
429
370
  children: m
430
371
  }), t[13] = p, t[14] = s, t[15] = m, t[16] = h) : h = t[16], h;
431
372
  }
432
- function Ie(e) {
433
- let t = V(5), { id: n, children: r } = e, i;
373
+ function Ae(e) {
374
+ let t = F(5), { id: n, children: r } = e, i;
434
375
  t[0] === n ? i = t[1] : (i = (e) => a(n, e), t[0] = n, t[1] = i);
435
376
  let o = i, s;
436
- return t[2] !== r || t[3] !== o ? (s = /* @__PURE__ */ Z(Y, {
377
+ return t[2] !== r || t[3] !== o ? (s = /* @__PURE__ */ X(G, {
437
378
  ref: o,
438
- sx: Me.captureBox,
379
+ sx: Ee.captureBox,
439
380
  children: r
440
381
  }), t[2] = r, t[3] = o, t[4] = s) : s = t[4], s;
441
382
  }
442
- function Le(e) {
443
- let t = V(8), { error: n, labels: r } = e, i;
444
- t[0] === r.errorTitle ? i = t[1] : (i = /* @__PURE__ */ Z(ie, { children: r.errorTitle }), t[0] = r.errorTitle, t[1] = i);
383
+ function je(e) {
384
+ let t = F(8), { error: n, labels: r } = e, i;
385
+ t[0] === r.errorTitle ? i = t[1] : (i = /* @__PURE__ */ X(W, { children: r.errorTitle }), t[0] = r.errorTitle, t[1] = i);
445
386
  let a;
446
387
  t[2] !== n || t[3] !== r ? (a = r.errorMessage(n), t[2] = n, t[3] = r, t[4] = a) : a = t[4];
447
388
  let o;
448
- return t[5] !== i || t[6] !== a ? (o = /* @__PURE__ */ Q(re, {
389
+ return t[5] !== i || t[6] !== a ? (o = /* @__PURE__ */ Z(U, {
449
390
  severity: "error",
450
391
  children: [i, a]
451
392
  }), t[5] = i, t[6] = a, t[7] = o) : o = t[7], o;
452
393
  }
453
- function Re(e) {
454
- let t = V(7), { labels: n } = e, r;
455
- t[0] === n.emptyTitle ? r = t[1] : (r = /* @__PURE__ */ Z(X, {
394
+ function Me(e) {
395
+ let t = F(7), { labels: n } = e, r;
396
+ t[0] === n.emptyTitle ? r = t[1] : (r = /* @__PURE__ */ X(Y, {
456
397
  variant: "body2",
457
398
  color: "text.primary",
458
399
  children: n.emptyTitle
459
400
  }), t[0] = n.emptyTitle, t[1] = r);
460
401
  let i;
461
- t[2] === n.emptyDescription ? i = t[3] : (i = /* @__PURE__ */ Z(X, {
402
+ t[2] === n.emptyDescription ? i = t[3] : (i = /* @__PURE__ */ X(Y, {
462
403
  variant: "caption",
463
404
  color: "text.secondary",
464
405
  children: n.emptyDescription
465
406
  }), t[2] = n.emptyDescription, t[3] = i);
466
407
  let a;
467
- return t[4] !== r || t[5] !== i ? (a = /* @__PURE__ */ Q(Y, {
468
- sx: Me.emptyRoot,
408
+ return t[4] !== r || t[5] !== i ? (a = /* @__PURE__ */ Z(G, {
409
+ sx: Ee.emptyRoot,
469
410
  children: [r, i]
470
411
  }), t[4] = r, t[5] = i, t[6] = a) : a = t[6], a;
471
412
  }
472
- var ze = class extends U {
413
+ var Ne = class extends I {
473
414
  state = { error: null };
474
415
  static getDerivedStateFromError(e) {
475
416
  return { error: e };
@@ -481,7 +422,7 @@ var ze = class extends U {
481
422
  let { error: e } = this.state;
482
423
  if (e !== null) {
483
424
  let { fallback: t, labels: n } = this.props;
484
- return t ? t(e) : /* @__PURE__ */ Z(Le, {
425
+ return t ? t(e) : /* @__PURE__ */ X(je, {
485
426
  error: e,
486
427
  labels: n
487
428
  });
@@ -489,15 +430,15 @@ var ze = class extends U {
489
430
  return this.props.children;
490
431
  }
491
432
  };
492
- function Be(e) {
433
+ function Pe(e) {
493
434
  return e == null ? !0 : Array.isArray(e) ? !!(e.length === 0 || e.every((e) => Array.isArray(e) && e.length === 0)) : typeof e == "object" && Object.keys(e).length === 0;
494
435
  }
495
- function Ve(e) {
436
+ function Fe(e) {
496
437
  return e instanceof Error ? e : typeof e == "string" ? Error(e) : e && typeof e == "object" && "message" in e ? Error(String(e.message)) : /* @__PURE__ */ Error("Unknown error");
497
438
  }
498
439
  //#endregion
499
440
  //#region src/widgets-v2/selection-summary/labels.ts
500
- var He = { clear: "Clear" }, Ue = {
441
+ var Ie = { clear: "Clear" }, Le = {
501
442
  root: {
502
443
  display: "flex",
503
444
  alignItems: "center",
@@ -529,56 +470,56 @@ var He = { clear: "Clear" }, Ue = {
529
470
  };
530
471
  //#endregion
531
472
  //#region src/widgets-v2/selection-summary/selection-summary.tsx
532
- function We(e) {
533
- let t = V(33), { count: n, total: r, onClear: i, labels: a, icon: o, iconProps: s } = e;
473
+ function Re(e) {
474
+ let t = F(33), { count: n, total: r, onClear: i, labels: a, icon: o, iconProps: s } = e;
534
475
  if (!r) return null;
535
476
  let c, l, u, d, f, p, m, h, g;
536
477
  if (t[0] !== o || t[1] !== n || t[2] !== s || t[3] !== a || t[4] !== r) {
537
478
  u = {
538
- ...He,
479
+ ...Ie,
539
480
  ...a
540
481
  };
541
482
  let e = n === 0 ? r : n;
542
- l = Y, h = Ue.root, t[14] !== o || t[15] !== s ? (g = o ? /* @__PURE__ */ Z(o, {
483
+ l = G, h = Le.root, t[14] !== o || t[15] !== s ? (g = o ? /* @__PURE__ */ X(o, {
543
484
  fontSize: "small",
544
485
  ...s
545
- }) : null, t[14] = o, t[15] = s, t[16] = g) : g = t[16], c = Y, d = "span", f = Ue.count, p = `${e} / ${r}`, m = u.summary ? u.summary(e, r) : /* @__PURE__ */ Q(pe, { children: [
546
- /* @__PURE__ */ Z(X, {
486
+ }) : null, t[14] = o, t[15] = s, t[16] = g) : g = t[16], c = G, d = "span", f = Le.count, p = `${e} / ${r}`, m = u.summary ? u.summary(e, r) : /* @__PURE__ */ Z(ce, { children: [
487
+ /* @__PURE__ */ X(Y, {
547
488
  component: "span",
548
489
  variant: "caption",
549
- sx: Ue.selected,
490
+ sx: Le.selected,
550
491
  children: e
551
492
  }),
552
- /* @__PURE__ */ Z(X, {
493
+ /* @__PURE__ */ X(Y, {
553
494
  component: "span",
554
495
  variant: "caption",
555
- sx: Ue.separator,
496
+ sx: Le.separator,
556
497
  children: "/"
557
498
  }),
558
- /* @__PURE__ */ Z(X, {
499
+ /* @__PURE__ */ X(Y, {
559
500
  component: "span",
560
501
  variant: "caption",
561
- sx: Ue.total,
502
+ sx: Le.total,
562
503
  children: r
563
504
  })
564
505
  ] }), t[0] = o, t[1] = n, t[2] = s, t[3] = a, t[4] = r, t[5] = c, t[6] = l, t[7] = u, t[8] = d, t[9] = f, t[10] = p, t[11] = m, t[12] = h, t[13] = g;
565
506
  } else c = t[5], l = t[6], u = t[7], d = t[8], f = t[9], p = t[10], m = t[11], h = t[12], g = t[13];
566
507
  let _;
567
- t[17] !== c || t[18] !== d || t[19] !== f || t[20] !== p || t[21] !== m ? (_ = /* @__PURE__ */ Z(c, {
508
+ t[17] !== c || t[18] !== d || t[19] !== f || t[20] !== p || t[21] !== m ? (_ = /* @__PURE__ */ X(c, {
568
509
  component: d,
569
510
  sx: f,
570
511
  "aria-label": p,
571
512
  children: m
572
513
  }), t[17] = c, t[18] = d, t[19] = f, t[20] = p, t[21] = m, t[22] = _) : _ = t[22];
573
514
  let v;
574
- t[23] !== u || t[24] !== n || t[25] !== i ? (v = n > 0 && i && /* @__PURE__ */ Z(ae, {
515
+ t[23] !== u || t[24] !== n || t[25] !== i ? (v = n > 0 && i && /* @__PURE__ */ X(K, {
575
516
  size: "small",
576
517
  variant: "text",
577
518
  onClick: i,
578
519
  children: u.clear
579
520
  }), t[23] = u, t[24] = n, t[25] = i, t[26] = v) : v = t[26];
580
521
  let y;
581
- return t[27] !== l || t[28] !== h || t[29] !== g || t[30] !== _ || t[31] !== v ? (y = /* @__PURE__ */ Q(l, {
522
+ return t[27] !== l || t[28] !== h || t[29] !== g || t[30] !== _ || t[31] !== v ? (y = /* @__PURE__ */ Z(l, {
582
523
  sx: h,
583
524
  children: [
584
525
  g,
@@ -589,10 +530,10 @@ function We(e) {
589
530
  }
590
531
  //#endregion
591
532
  //#region src/widgets-v2/toolbox/labels.ts
592
- var Ge = {
533
+ var ze = {
593
534
  trigger: "More actions",
594
535
  close: "Close"
595
- }, Ke = {
536
+ }, Be = {
596
537
  root: {
597
538
  display: "flex",
598
539
  alignItems: "center",
@@ -622,14 +563,14 @@ var Ge = {
622
563
  };
623
564
  //#endregion
624
565
  //#region src/widgets-v2/toolbox/toolbox.tsx
625
- function qe(t) {
626
- let n = V(44), { visibleCount: r, labels: i, icon: a, iconProps: o, direction: s, sx: c, children: l } = t, u = a === void 0 ? ge : a, d = s === void 0 ? "right" : s, f;
566
+ function Ve(t) {
567
+ let n = F(44), { visibleCount: r, labels: i, icon: a, iconProps: o, direction: s, sx: c, children: l } = t, u = a === void 0 ? de : a, d = s === void 0 ? "right" : s, f;
627
568
  n[0] === i ? f = n[1] : (f = {
628
- ...Ge,
569
+ ...ze,
629
570
  ...i
630
571
  }, n[0] = i, n[1] = f);
631
- let p = f, [m, h] = J(!1), [g, _] = J(null), [v, y] = J(null), [b, x] = J(null), S;
632
- n[2] === Symbol.for("react.memo_cache_sentinel") ? (S = () => h(Ze), n[2] = S) : S = n[2];
572
+ let p = f, [m, h] = B(!1), [g, _] = B(null), [v, y] = B(null), [b, x] = B(null), S;
573
+ n[2] === Symbol.for("react.memo_cache_sentinel") ? (S = () => h(Ge), n[2] = S) : S = n[2];
633
574
  let C = S, w;
634
575
  n[3] === Symbol.for("react.memo_cache_sentinel") ? (w = (e) => {
635
576
  _(e);
@@ -641,9 +582,9 @@ function qe(t) {
641
582
  e.key === "Escape" && h(!1);
642
583
  };
643
584
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
644
- }, D = [m], n[4] = m, n[5] = E, n[6] = D), G(E, D);
645
- let [O] = J(Xe), k, A;
646
- n[7] === l ? (k = n[8], A = n[9]) : (k = H.toArray(l).filter(Ye), A = k.reduce(Je, 0), n[7] = l, n[8] = k, n[9] = A);
585
+ }, D = [m], n[4] = m, n[5] = E, n[6] = D), R(E, D);
586
+ let [O] = B(We), k, A;
587
+ n[7] === l ? (k = n[8], A = n[9]) : (k = ee.toArray(l).filter(Ue), A = k.reduce(He, 0), n[7] = l, n[8] = k, n[9] = A);
647
588
  let j = r !== void 0 && A > r, M;
648
589
  bb0: {
649
590
  if (!j || r === void 0) {
@@ -651,54 +592,54 @@ function qe(t) {
651
592
  break bb0;
652
593
  }
653
594
  let e;
654
- n[10] !== k || n[11] !== r ? (e = $e(k, r), n[10] = k, n[11] = r, n[12] = e) : e = n[12], M = e;
595
+ n[10] !== k || n[11] !== r ? (e = qe(k, r), n[10] = k, n[11] = r, n[12] = e) : e = n[12], M = e;
655
596
  }
656
597
  let N = M;
657
598
  !j && m && h(!1);
658
- let P, F;
599
+ let P, I;
659
600
  if (n[13] !== O || n[14] !== v || n[15] !== m || n[16] !== b ? (P = () => {
660
601
  let e = m && b ? b : v;
661
602
  O && e && O.parentNode !== e && e.appendChild(O);
662
- }, F = [
603
+ }, I = [
663
604
  m,
664
605
  v,
665
606
  b,
666
607
  O
667
- ], n[13] = O, n[14] = v, n[15] = m, n[16] = b, n[17] = P, n[18] = F) : (P = n[17], F = n[18]), K(P, F), k.length === 0) return null;
668
- let I = m ? p.close : p.trigger, L = d === "left" ? "row-reverse" : "row", R;
669
- n[19] !== L || n[20] !== c ? (R = {
670
- ...Ke.root,
671
- flexDirection: L,
608
+ ], n[13] = O, n[14] = v, n[15] = m, n[16] = b, n[17] = P, n[18] = I) : (P = n[17], I = n[18]), te(P, I), k.length === 0) return null;
609
+ let L = m ? p.close : p.trigger, z = d === "left" ? "row-reverse" : "row", V;
610
+ n[19] !== z || n[20] !== c ? (V = {
611
+ ...Be.root,
612
+ flexDirection: z,
672
613
  ...c
673
- }, n[19] = L, n[20] = c, n[21] = R) : R = n[21];
674
- let z;
675
- n[22] !== u || n[23] !== o || n[24] !== m || n[25] !== j || n[26] !== I ? (z = j && /* @__PURE__ */ Q(pe, { children: [/* @__PURE__ */ Z(e, {
676
- title: I,
677
- children: /* @__PURE__ */ Z(ce, {
614
+ }, n[19] = z, n[20] = c, n[21] = V) : V = n[21];
615
+ let H;
616
+ n[22] !== u || n[23] !== o || n[24] !== m || n[25] !== j || n[26] !== L ? (H = j && /* @__PURE__ */ Z(ce, { children: [/* @__PURE__ */ X(e, {
617
+ title: L,
618
+ children: /* @__PURE__ */ X(re, {
678
619
  ref: T,
679
620
  size: "small",
680
- "aria-label": I,
621
+ "aria-label": L,
681
622
  "aria-pressed": m,
682
623
  onClick: C,
683
624
  className: m ? "active" : void 0,
684
- sx: { ...m && Ke.triggerActive },
685
- children: m ? /* @__PURE__ */ Z(me, { fontSize: "small" }) : /* @__PURE__ */ Z(u, {
625
+ sx: { ...m && Be.triggerActive },
626
+ children: m ? /* @__PURE__ */ X(le, { fontSize: "small" }) : /* @__PURE__ */ X(u, {
686
627
  fontSize: "small",
687
628
  ...o
688
629
  })
689
630
  })
690
- }), /* @__PURE__ */ Z(oe, {
631
+ }), /* @__PURE__ */ X(q, {
691
632
  orientation: "vertical",
692
633
  flexItem: !0,
693
634
  sx: { mx: .5 }
694
- })] }), n[22] = u, n[23] = o, n[24] = m, n[25] = j, n[26] = I, n[27] = z) : z = n[27];
695
- let B;
696
- n[28] === Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ Z(Y, {
635
+ })] }), n[22] = u, n[23] = o, n[24] = m, n[25] = j, n[26] = L, n[27] = H) : H = n[27];
636
+ let ne;
637
+ n[28] === Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ X(G, {
697
638
  ref: y,
698
- sx: Ke.preview
699
- }), n[28] = B) : B = n[28];
639
+ sx: Be.preview
640
+ }), n[28] = ne) : ne = n[28];
700
641
  let U;
701
- n[29] !== g || n[30] !== d || n[31] !== m || n[32] !== j ? (U = j && /* @__PURE__ */ Z(fe, {
642
+ n[29] !== g || n[30] !== d || n[31] !== m || n[32] !== j ? (U = j && /* @__PURE__ */ X(se, {
702
643
  open: m,
703
644
  anchorEl: g,
704
645
  placement: d === "left" ? "left" : "right",
@@ -713,65 +654,65 @@ function qe(t) {
713
654
  },
714
655
  children: (e) => {
715
656
  let { TransitionProps: t } = e;
716
- return /* @__PURE__ */ Z(se, {
657
+ return /* @__PURE__ */ X(J, {
717
658
  ...t,
718
659
  style: { transformOrigin: d === "left" ? "right center" : "left center" },
719
- children: /* @__PURE__ */ Z(de, {
660
+ children: /* @__PURE__ */ X(oe, {
720
661
  ref: x,
721
- sx: Ke.paper
662
+ sx: Be.paper
722
663
  })
723
664
  });
724
665
  }
725
666
  }), n[29] = g, n[30] = d, n[31] = m, n[32] = j, n[33] = U) : U = n[33];
726
667
  let W;
727
- n[34] !== O || n[35] !== N || n[36] !== k || n[37] !== m ? (W = O ? _e(k.map((e, t) => {
668
+ n[34] !== O || n[35] !== N || n[36] !== k || n[37] !== m ? (W = O ? fe(k.map((e, t) => {
728
669
  let n = m || !N || N.has(t), r = e.key ?? t;
729
- return /* @__PURE__ */ Z("div", {
670
+ return /* @__PURE__ */ X("div", {
730
671
  "data-toolbox-item-visible": n ? "true" : "false",
731
672
  style: { display: n ? "contents" : "none" },
732
673
  children: e
733
674
  }, r);
734
675
  }), O) : null, n[34] = O, n[35] = N, n[36] = k, n[37] = m, n[38] = W) : W = n[38];
735
- let q;
736
- return n[39] !== R || n[40] !== z || n[41] !== U || n[42] !== W ? (q = /* @__PURE__ */ Q(Y, {
737
- sx: R,
676
+ let K;
677
+ return n[39] !== V || n[40] !== H || n[41] !== U || n[42] !== W ? (K = /* @__PURE__ */ Z(G, {
678
+ sx: V,
738
679
  children: [
739
- z,
740
- B,
680
+ H,
681
+ ne,
741
682
  U,
742
683
  W
743
684
  ]
744
- }), n[39] = R, n[40] = z, n[41] = U, n[42] = W, n[43] = q) : q = n[43], q;
685
+ }), n[39] = V, n[40] = H, n[41] = U, n[42] = W, n[43] = K) : K = n[43], K;
745
686
  }
746
- function Je(e, t) {
747
- return e + +!Qe(t);
687
+ function He(e, t) {
688
+ return e + +!Ke(t);
748
689
  }
749
- function Ye(e) {
750
- return W(e);
690
+ function Ue(e) {
691
+ return L(e);
751
692
  }
752
- function Xe() {
693
+ function We() {
753
694
  if (typeof document > "u") return null;
754
695
  let e = document.createElement("div");
755
696
  return e.style.display = "contents", e;
756
697
  }
757
- function Ze(e) {
698
+ function Ge(e) {
758
699
  return !e;
759
700
  }
760
- function Qe(e) {
701
+ function Ke(e) {
761
702
  return e.props["data-toolbar-hidden"] === !0;
762
703
  }
763
- function $e(e, t) {
704
+ function qe(e, t) {
764
705
  let n = [], r = 0;
765
- for (let i = 0; i < e.length && !(r >= t); i++) n.push(i), Qe(e[i]) || r++;
766
- for (; n.length > 0 && Qe(e[n[n.length - 1]]);) n.pop();
706
+ for (let i = 0; i < e.length && !(r >= t); i++) n.push(i), Ke(e[i]) || r++;
707
+ for (; n.length > 0 && Ke(e[n[n.length - 1]]);) n.pop();
767
708
  return new Set(n);
768
709
  }
769
710
  //#endregion
770
711
  //#region src/widgets-v2/note/labels.ts
771
- var et = {
712
+ var Je = {
772
713
  showMore: "Show more",
773
714
  showLess: "Show less"
774
- }, tt = {
715
+ }, Ye = {
775
716
  root: {
776
717
  display: "flex",
777
718
  flexDirection: "column",
@@ -797,11 +738,11 @@ var et = {
797
738
  };
798
739
  //#endregion
799
740
  //#region src/widgets-v2/note/widget-note.tsx
800
- function nt(e) {
801
- let t = V(3), { children: n } = e, r;
741
+ function $(e) {
742
+ let t = F(3), { children: n } = e, r;
802
743
  t[0] === Symbol.for("react.memo_cache_sentinel") ? (r = { m: 0 }, t[0] = r) : r = t[0];
803
744
  let i;
804
- return t[1] === n ? i = t[2] : (i = /* @__PURE__ */ Z(X, {
745
+ return t[1] === n ? i = t[2] : (i = /* @__PURE__ */ X(Y, {
805
746
  variant: "caption",
806
747
  component: "p",
807
748
  color: "inherit",
@@ -809,15 +750,15 @@ function nt(e) {
809
750
  children: n
810
751
  }), t[1] = n, t[2] = i), i;
811
752
  }
812
- var rt = {
813
- h1: nt,
814
- h2: nt,
815
- h3: nt,
816
- h4: nt,
817
- h5: nt,
818
- h6: nt,
819
- p: nt,
820
- a: ({ children: e, href: t }) => /* @__PURE__ */ Z(ue, {
753
+ var Xe = {
754
+ h1: $,
755
+ h2: $,
756
+ h3: $,
757
+ h4: $,
758
+ h5: $,
759
+ h6: $,
760
+ p: $,
761
+ a: ({ children: e, href: t }) => /* @__PURE__ */ X(ae, {
821
762
  href: t,
822
763
  target: "_blank",
823
764
  rel: "noopener noreferrer",
@@ -826,139 +767,139 @@ var rt = {
826
767
  children: e
827
768
  })
828
769
  };
829
- function it(e) {
830
- let t = V(7), { lineClamp: n, labels: r, children: i } = e, a = n === void 0 ? 3 : n, o;
831
- t[0] === i ? o = t[1] : (o = /* @__PURE__ */ Z(X, {
770
+ function Ze(e) {
771
+ let t = F(7), { lineClamp: n, labels: r, children: i } = e, a = n === void 0 ? 3 : n, o;
772
+ t[0] === i ? o = t[1] : (o = /* @__PURE__ */ X(Y, {
832
773
  variant: "caption",
833
774
  component: "div",
834
775
  color: "inherit",
835
776
  children: i
836
777
  }), t[0] = i, t[1] = o);
837
778
  let s;
838
- return t[2] !== i || t[3] !== r || t[4] !== a || t[5] !== o ? (s = /* @__PURE__ */ Z(st, {
779
+ return t[2] !== i || t[3] !== r || t[4] !== a || t[5] !== o ? (s = /* @__PURE__ */ X(et, {
839
780
  lineClamp: a,
840
781
  labels: r,
841
782
  dependency: i,
842
783
  children: o
843
784
  }), t[2] = i, t[3] = r, t[4] = a, t[5] = o, t[6] = s) : s = t[6], s;
844
785
  }
845
- function at(e) {
846
- let t = V(7), { content: n, lineClamp: r, labels: i } = e, a = r === void 0 ? 3 : r, o;
847
- t[0] === n ? o = t[1] : (o = /* @__PURE__ */ Z(_, {
786
+ function Qe(e) {
787
+ let t = F(7), { content: n, lineClamp: r, labels: i } = e, a = r === void 0 ? 3 : r, o;
788
+ t[0] === n ? o = t[1] : (o = /* @__PURE__ */ X(b, {
848
789
  content: n,
849
- components: rt
790
+ components: Xe
850
791
  }), t[0] = n, t[1] = o);
851
792
  let s;
852
- return t[2] !== n || t[3] !== i || t[4] !== a || t[5] !== o ? (s = /* @__PURE__ */ Z(st, {
793
+ return t[2] !== n || t[3] !== i || t[4] !== a || t[5] !== o ? (s = /* @__PURE__ */ X(et, {
853
794
  lineClamp: a,
854
795
  labels: i,
855
796
  dependency: n,
856
797
  children: o
857
798
  }), t[2] = n, t[3] = i, t[4] = a, t[5] = o, t[6] = s) : s = t[6], s;
858
799
  }
859
- var ot = Object.assign(it, { Markdown: at });
860
- function st(e) {
861
- let t = V(27), { lineClamp: n, labels: r, dependency: i, children: a } = e, o;
800
+ var $e = Object.assign(Ze, { Markdown: Qe });
801
+ function et(e) {
802
+ let t = F(27), { lineClamp: n, labels: r, dependency: i, children: a } = e, o;
862
803
  t[0] === r ? o = t[1] : (o = {
863
- ...et,
804
+ ...Je,
864
805
  ...r
865
806
  }, t[0] = r, t[1] = o);
866
- let s = o, c = q(null), [l, u] = J(!1), [d, f] = J(!1), p = n <= 0, m;
807
+ let s = o, c = z(null), [l, u] = B(!1), [d, f] = B(!1), p = n <= 0, m;
867
808
  t[2] === Symbol.for("react.memo_cache_sentinel") ? (m = () => {
868
809
  let e = c.current;
869
810
  e && u(e.scrollHeight > e.clientHeight + 1);
870
811
  }, t[2] = m) : m = t[2];
871
- let g = m, _;
872
- t[3] === p ? _ = t[4] : (_ = () => {
812
+ let h = m, g;
813
+ t[3] === p ? g = t[4] : (g = () => {
873
814
  if (p) return;
874
815
  let e = c.current;
875
- if (e) return g(), h(e, g);
876
- }, t[3] = p, t[4] = _);
877
- let v;
878
- t[5] !== p || t[6] !== i ? (v = [
879
- g,
816
+ if (e) return h(), v(e, h);
817
+ }, t[3] = p, t[4] = g);
818
+ let _;
819
+ t[5] !== p || t[6] !== i ? (_ = [
820
+ h,
880
821
  i,
881
822
  p
882
- ], t[5] = p, t[6] = i, t[7] = v) : v = t[7], G(_, v);
823
+ ], t[5] = p, t[6] = i, t[7] = _) : _ = t[7], R(g, _);
883
824
  let y;
884
- t[8] === Symbol.for("react.memo_cache_sentinel") ? (y = () => f(ct), t[8] = y) : y = t[8];
825
+ t[8] === Symbol.for("react.memo_cache_sentinel") ? (y = () => f(tt), t[8] = y) : y = t[8];
885
826
  let b = y, x = !d && !p, S;
886
827
  t[9] !== x || t[10] !== n ? (S = x ? {
887
- ...tt.clamped,
828
+ ...Ye.clamped,
888
829
  WebkitLineClamp: n
889
830
  } : null, t[9] = x, t[10] = n, t[11] = S) : S = t[11];
890
831
  let C = S, w;
891
832
  t[12] === C ? w = t[13] : (w = C ?? {}, t[12] = C, t[13] = w);
892
833
  let T;
893
834
  t[14] === w ? T = t[15] : (T = {
894
- ...tt.text,
835
+ ...Ye.text,
895
836
  ...w
896
837
  }, t[14] = w, t[15] = T);
897
838
  let E;
898
- t[16] !== a || t[17] !== T ? (E = /* @__PURE__ */ Z(Y, {
839
+ t[16] !== a || t[17] !== T ? (E = /* @__PURE__ */ X(G, {
899
840
  ref: c,
900
841
  sx: T,
901
842
  children: a
902
843
  }), t[16] = a, t[17] = T, t[18] = E) : E = t[18];
903
844
  let D;
904
- t[19] !== s || t[20] !== p || t[21] !== d || t[22] !== l ? (D = !p && (l || d) && /* @__PURE__ */ Z(ue, {
845
+ t[19] !== s || t[20] !== p || t[21] !== d || t[22] !== l ? (D = !p && (l || d) && /* @__PURE__ */ X(ae, {
905
846
  component: "button",
906
847
  variant: "caption",
907
848
  underline: "none",
908
849
  onClick: b,
909
- sx: tt.toggle,
850
+ sx: Ye.toggle,
910
851
  children: d ? s.showLess : s.showMore
911
852
  }), t[19] = s, t[20] = p, t[21] = d, t[22] = l, t[23] = D) : D = t[23];
912
853
  let O;
913
- return t[24] !== D || t[25] !== E ? (O = /* @__PURE__ */ Q(Y, {
914
- sx: tt.root,
854
+ return t[24] !== D || t[25] !== E ? (O = /* @__PURE__ */ Z(G, {
855
+ sx: Ye.root,
915
856
  children: [E, D]
916
857
  }), t[24] = D, t[25] = E, t[26] = O) : O = t[26], O;
917
858
  }
918
- function ct(e) {
859
+ function tt(e) {
919
860
  return !e;
920
861
  }
921
862
  //#endregion
922
863
  //#region src/widgets-v2/index.ts
923
- var lt = {
924
- Provider: ve,
925
- Wrapper: we,
926
- Actions: ye,
927
- Options: xe,
928
- Content: Oe,
929
- Footer: ke,
930
- Subheader: je,
931
- State: Fe,
932
- SelectionSummary: We,
933
- Toolbox: qe,
934
- Note: ot,
935
- Echart: m,
936
- EchartUI: p,
937
- Searcher: y,
938
- SearcherToggle: v,
939
- StackToggle: E,
940
- ShowAllToggle: S,
941
- ZoomToggle: D,
942
- BrushToggle: x,
943
- RelativeData: b,
944
- Download: O,
945
- FullScreen: C,
946
- LockSelection: w,
947
- ChangeColumn: T,
948
- Formula: A,
949
- FormulaUI: k,
950
- Markdown: M,
951
- MarkdownUI: j,
952
- Spread: P,
953
- SpreadUI: N,
954
- Range: F,
955
- RangeUI: I,
956
- Category: R,
957
- CategoryUI: L,
958
- Table: B,
959
- TableUI: z
864
+ var nt = {
865
+ Provider: s,
866
+ Wrapper: ve,
867
+ Actions: pe,
868
+ Options: he,
869
+ Content: Se,
870
+ Footer: Ce,
871
+ Subheader: Te,
872
+ State: ke,
873
+ SelectionSummary: Re,
874
+ Toolbox: Ve,
875
+ Note: $e,
876
+ Echart: _,
877
+ EchartUI: g,
878
+ Searcher: c,
879
+ SearcherToggle: o,
880
+ StackToggle: h,
881
+ ShowAllToggle: d,
882
+ ZoomToggle: x,
883
+ BrushToggle: u,
884
+ RelativeData: l,
885
+ Download: S,
886
+ FullScreen: f,
887
+ LockSelection: p,
888
+ ChangeColumn: m,
889
+ Formula: w,
890
+ FormulaUI: C,
891
+ Markdown: E,
892
+ MarkdownUI: T,
893
+ Spread: O,
894
+ SpreadUI: D,
895
+ Range: k,
896
+ RangeUI: A,
897
+ Category: M,
898
+ CategoryUI: j,
899
+ Table: P,
900
+ TableUI: N
960
901
  };
961
902
  //#endregion
962
- export { g as DEFAULT_INIT_OPTS, et as DEFAULT_NOTE_LABELS, He as DEFAULT_SELECTION_SUMMARY_LABELS, Ne as DEFAULT_STATE_LABELS, Ge as DEFAULT_TOOLBOX_LABELS, Ce as DEFAULT_WRAPPER_LABELS, lt as Widget };
903
+ export { y as DEFAULT_INIT_OPTS, Je as DEFAULT_NOTE_LABELS, Ie as DEFAULT_SELECTION_SUMMARY_LABELS, De as DEFAULT_STATE_LABELS, ze as DEFAULT_TOOLBOX_LABELS, _e as DEFAULT_WRAPPER_LABELS, nt as Widget };
963
904
 
964
905
  //# sourceMappingURL=widgets-v2.js.map