@carto/ps-react-ui 6.4.0 → 6.5.1

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