@carto/ps-react-ui 4.9.1 → 4.11.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 (188) hide show
  1. package/dist/category-Dnd2_j0x.js +719 -0
  2. package/dist/category-Dnd2_j0x.js.map +1 -0
  3. package/dist/change-column-BiuuHCDN.js +1156 -0
  4. package/dist/change-column-BiuuHCDN.js.map +1 -0
  5. package/dist/chat.js +1507 -0
  6. package/dist/chat.js.map +1 -0
  7. package/dist/components.js +122 -120
  8. package/dist/components.js.map +1 -1
  9. package/dist/copy-button-DGL1tyli.js +26 -0
  10. package/dist/copy-button-DGL1tyli.js.map +1 -0
  11. package/dist/{data-zoom-layout-0QSptXG_.js → data-zoom-layout--YiY6ko_.js} +4 -3
  12. package/dist/{data-zoom-layout-0QSptXG_.js.map → data-zoom-layout--YiY6ko_.js.map} +1 -1
  13. package/dist/{download-config-CzmjOT2T.js → download-config-oJIFZ2WC.js} +9 -8
  14. package/dist/{download-config-CzmjOT2T.js.map → download-config-oJIFZ2WC.js.map} +1 -1
  15. package/dist/{spread-Y9R1f5dm.js → spread-CPis22AE.js} +4 -3
  16. package/dist/{spread-Y9R1f5dm.js.map → spread-CPis22AE.js.map} +1 -1
  17. package/dist/types/chat/bubbles/chat-error-message.d.ts +2 -0
  18. package/dist/types/chat/bubbles/chat-suggestion-button.d.ts +2 -0
  19. package/dist/types/chat/bubbles/chat-user-message.d.ts +2 -0
  20. package/dist/types/chat/bubbles/index.d.ts +4 -0
  21. package/dist/types/chat/const.d.ts +4 -0
  22. package/dist/types/chat/containers/chat-content.d.ts +2 -0
  23. package/dist/types/chat/containers/chat-footer.d.ts +2 -0
  24. package/dist/types/chat/containers/chat-header.d.ts +2 -0
  25. package/dist/types/chat/containers/chat-starter.d.ts +2 -0
  26. package/dist/types/chat/containers/index.d.ts +4 -0
  27. package/dist/types/chat/containers/styles.d.ts +93 -0
  28. package/dist/types/chat/feedback/chat-loader.d.ts +2 -0
  29. package/dist/types/chat/feedback/chat-rating-action.d.ts +2 -0
  30. package/dist/types/chat/feedback/chat-thinking.d.ts +2 -0
  31. package/dist/types/chat/feedback/chat-tool-code-area.d.ts +2 -0
  32. package/dist/types/chat/feedback/chat-tool-full-view-dialog.d.ts +2 -0
  33. package/dist/types/chat/feedback/chat-tool-group.d.ts +2 -0
  34. package/dist/types/chat/feedback/chat-tool-trace.d.ts +3 -0
  35. package/dist/types/chat/feedback/get-tool-label.d.ts +2 -0
  36. package/dist/types/chat/feedback/index.d.ts +8 -0
  37. package/dist/types/chat/feedback/styles.d.ts +211 -0
  38. package/dist/types/chat/index.d.ts +20 -0
  39. package/dist/types/chat/types.d.ts +184 -0
  40. package/dist/types/chat/use-typewriter.d.ts +30 -0
  41. package/dist/types/components/copy-button/copy-button.d.ts +2 -0
  42. package/dist/types/components/copy-button/types.d.ts +6 -0
  43. package/dist/types/components/index.d.ts +2 -0
  44. package/dist/types/widgets/actions/brush-toggle/style.d.ts +1 -1
  45. package/dist/types/widgets/actions/shared/styles.d.ts +1 -1
  46. package/dist/types/widgets/actions/zoom-toggle/style.d.ts +1 -1
  47. package/dist/types/widgets/echart/types.d.ts +1 -1
  48. package/dist/types/widgets/toolbar-actions/styles.d.ts +1 -1
  49. package/dist/types/widgets-v2/actions/brush-toggle/style.d.ts +1 -1
  50. package/dist/types/widgets-v2/actions/change-column/style.d.ts +1 -1
  51. package/dist/types/widgets-v2/actions/fullscreen/style.d.ts +1 -1
  52. package/dist/types/widgets-v2/actions/index.d.ts +1 -0
  53. package/dist/types/widgets-v2/actions/lock-selection/style.d.ts +1 -1
  54. package/dist/types/widgets-v2/actions/relative-data/style.d.ts +1 -1
  55. package/dist/types/widgets-v2/actions/searcher/style.d.ts +1 -1
  56. package/dist/types/widgets-v2/actions/show-all/index.d.ts +2 -0
  57. package/dist/types/widgets-v2/actions/show-all/labels.d.ts +5 -0
  58. package/dist/types/widgets-v2/actions/show-all/show-all.d.ts +33 -0
  59. package/dist/types/widgets-v2/actions/show-all/style.d.ts +8 -0
  60. package/dist/types/widgets-v2/actions/stack-toggle/style.d.ts +1 -1
  61. package/dist/types/widgets-v2/actions/zoom-toggle/style.d.ts +1 -1
  62. package/dist/types/widgets-v2/category/category-ui.d.ts +9 -2
  63. package/dist/types/widgets-v2/category/category.d.ts +9 -2
  64. package/dist/types/widgets-v2/category/components/category-row-other.d.ts +19 -6
  65. package/dist/types/widgets-v2/category/style.d.ts +21 -2
  66. package/dist/types/widgets-v2/category/types.d.ts +2 -0
  67. package/dist/types/widgets-v2/index.d.ts +3 -2
  68. package/dist/types/widgets-v2/selection-summary/labels.d.ts +7 -2
  69. package/dist/types/widgets-v2/selection-summary/selection-summary.d.ts +13 -6
  70. package/dist/types/widgets-v2/selection-summary/style.d.ts +15 -0
  71. package/dist/widgets/actions.js +115 -114
  72. package/dist/widgets/actions.js.map +1 -1
  73. package/dist/widgets/bar.js +1 -1
  74. package/dist/widgets/category.js +9 -8
  75. package/dist/widgets/category.js.map +1 -1
  76. package/dist/widgets/formula.js +11 -10
  77. package/dist/widgets/formula.js.map +1 -1
  78. package/dist/widgets/histogram.js +7 -6
  79. package/dist/widgets/histogram.js.map +1 -1
  80. package/dist/widgets/markdown.js +9 -8
  81. package/dist/widgets/markdown.js.map +1 -1
  82. package/dist/widgets/pie.js +1 -1
  83. package/dist/widgets/scatterplot.js +1 -1
  84. package/dist/widgets/spread.js +9 -8
  85. package/dist/widgets/spread.js.map +1 -1
  86. package/dist/widgets/table.js +17 -16
  87. package/dist/widgets/table.js.map +1 -1
  88. package/dist/widgets/timeseries.js +1 -1
  89. package/dist/widgets/utils.js +1 -1
  90. package/dist/widgets/wrapper.js +3 -2
  91. package/dist/widgets/wrapper.js.map +1 -1
  92. package/dist/widgets-v2/actions.js +41 -37
  93. package/dist/widgets-v2/bar.js +8 -7
  94. package/dist/widgets-v2/bar.js.map +1 -1
  95. package/dist/widgets-v2/category.js +22 -21
  96. package/dist/widgets-v2/category.js.map +1 -1
  97. package/dist/widgets-v2/formula.js +23 -22
  98. package/dist/widgets-v2/formula.js.map +1 -1
  99. package/dist/widgets-v2/histogram.js +10 -9
  100. package/dist/widgets-v2/histogram.js.map +1 -1
  101. package/dist/widgets-v2/markdown.js +9 -8
  102. package/dist/widgets-v2/markdown.js.map +1 -1
  103. package/dist/widgets-v2/pie.js +7 -6
  104. package/dist/widgets-v2/pie.js.map +1 -1
  105. package/dist/widgets-v2/scatterplot.js +9 -8
  106. package/dist/widgets-v2/scatterplot.js.map +1 -1
  107. package/dist/widgets-v2/spread.js +9 -8
  108. package/dist/widgets-v2/spread.js.map +1 -1
  109. package/dist/widgets-v2/table.js +16 -15
  110. package/dist/widgets-v2/table.js.map +1 -1
  111. package/dist/widgets-v2/timeseries.js +8 -7
  112. package/dist/widgets-v2/timeseries.js.map +1 -1
  113. package/dist/widgets-v2/utils.js +1 -1
  114. package/dist/widgets-v2.js +276 -271
  115. package/dist/widgets-v2.js.map +1 -1
  116. package/package.json +7 -3
  117. package/src/chat/bubbles/chat-agent-message.test.tsx +30 -0
  118. package/src/chat/bubbles/chat-agent-message.tsx +11 -0
  119. package/src/chat/bubbles/chat-error-message.test.tsx +40 -0
  120. package/src/chat/bubbles/chat-error-message.tsx +47 -0
  121. package/src/chat/bubbles/chat-suggestion-button.test.tsx +24 -0
  122. package/src/chat/bubbles/chat-suggestion-button.tsx +27 -0
  123. package/src/chat/bubbles/chat-user-message.test.tsx +27 -0
  124. package/src/chat/bubbles/chat-user-message.tsx +27 -0
  125. package/src/chat/bubbles/index.ts +4 -0
  126. package/src/chat/bubbles/styles.ts +148 -0
  127. package/src/chat/const.ts +4 -0
  128. package/src/chat/containers/chat-content.test.tsx +269 -0
  129. package/src/chat/containers/chat-content.tsx +142 -0
  130. package/src/chat/containers/chat-footer.test.tsx +34 -0
  131. package/src/chat/containers/chat-footer.tsx +78 -0
  132. package/src/chat/containers/chat-header.test.tsx +28 -0
  133. package/src/chat/containers/chat-header.tsx +29 -0
  134. package/src/chat/containers/chat-starter.test.tsx +32 -0
  135. package/src/chat/containers/chat-starter.tsx +75 -0
  136. package/src/chat/containers/index.ts +4 -0
  137. package/src/chat/containers/styles.ts +96 -0
  138. package/src/chat/feedback/chat-actions-container.test.tsx +64 -0
  139. package/src/chat/feedback/chat-actions-container.tsx +7 -0
  140. package/src/chat/feedback/chat-loader.test.tsx +10 -0
  141. package/src/chat/feedback/chat-loader.tsx +31 -0
  142. package/src/chat/feedback/chat-rating-action.tsx +43 -0
  143. package/src/chat/feedback/chat-thinking.test.tsx +15 -0
  144. package/src/chat/feedback/chat-thinking.tsx +23 -0
  145. package/src/chat/feedback/chat-tool-code-area.test.tsx +23 -0
  146. package/src/chat/feedback/chat-tool-code-area.tsx +71 -0
  147. package/src/chat/feedback/chat-tool-full-view-dialog.test.tsx +39 -0
  148. package/src/chat/feedback/chat-tool-full-view-dialog.tsx +121 -0
  149. package/src/chat/feedback/chat-tool-group.test.tsx +84 -0
  150. package/src/chat/feedback/chat-tool-group.tsx +156 -0
  151. package/src/chat/feedback/chat-tool-trace.test.tsx +81 -0
  152. package/src/chat/feedback/chat-tool-trace.tsx +192 -0
  153. package/src/chat/feedback/get-tool-label.test.tsx +91 -0
  154. package/src/chat/feedback/get-tool-label.ts +13 -0
  155. package/src/chat/feedback/index.ts +8 -0
  156. package/src/chat/feedback/styles.ts +229 -0
  157. package/src/chat/index.ts +59 -0
  158. package/src/chat/types.ts +215 -0
  159. package/src/chat/use-typewriter.test.tsx +38 -0
  160. package/src/chat/use-typewriter.ts +82 -0
  161. package/src/components/copy-button/copy-button.test.tsx +41 -0
  162. package/src/components/copy-button/copy-button.tsx +31 -0
  163. package/src/components/copy-button/types.ts +10 -0
  164. package/src/components/index.ts +3 -0
  165. package/src/widgets/echart/types.ts +1 -1
  166. package/src/widgets-v2/actions/index.ts +8 -0
  167. package/src/widgets-v2/actions/show-all/index.ts +7 -0
  168. package/src/widgets-v2/actions/show-all/labels.ts +8 -0
  169. package/src/widgets-v2/actions/show-all/show-all.test.tsx +50 -0
  170. package/src/widgets-v2/actions/show-all/show-all.tsx +72 -0
  171. package/src/widgets-v2/actions/show-all/style.ts +8 -0
  172. package/src/widgets-v2/category/category-ui.test.tsx +26 -10
  173. package/src/widgets-v2/category/category-ui.tsx +13 -3
  174. package/src/widgets-v2/category/category.test.tsx +4 -4
  175. package/src/widgets-v2/category/category.tsx +10 -1
  176. package/src/widgets-v2/category/components/category-row-other.test.tsx +36 -7
  177. package/src/widgets-v2/category/components/category-row-other.tsx +64 -13
  178. package/src/widgets-v2/category/style.ts +35 -4
  179. package/src/widgets-v2/category/types.ts +2 -0
  180. package/src/widgets-v2/index.ts +3 -0
  181. package/src/widgets-v2/selection-summary/labels.ts +8 -4
  182. package/src/widgets-v2/selection-summary/selection-summary.test.tsx +15 -9
  183. package/src/widgets-v2/selection-summary/selection-summary.tsx +42 -22
  184. package/src/widgets-v2/selection-summary/style.ts +15 -0
  185. package/dist/category-DwaeYjpX.js +0 -656
  186. package/dist/category-DwaeYjpX.js.map +0 -1
  187. package/dist/change-column-B4IT0rh6.js +0 -1110
  188. package/dist/change-column-B4IT0rh6.js.map +0 -1
@@ -1,10 +1,10 @@
1
1
  import { jsx as a, jsxs as G, Fragment as re } from "react/jsx-runtime";
2
2
  import { c as T } from "react/compiler-runtime";
3
- import { useState as V, useLayoutEffect as Q, Children as ae, isValidElement as ce, Component as be, useEffect as de, useRef as ve } from "react";
4
- import { W as Se, u as fe } from "./widget-context-DTGO0Yta.js";
5
- import { j as we, i as Ee, e as Ce, n as Te, r as ke, q as _e, v as Ie, u as Ae, s as Le } from "./widget-store-registry-_W4Z4xp-.js";
3
+ import { useState as V, useLayoutEffect as ee, Children as ae, isValidElement as ce, Component as be, useEffect as de, useRef as ve } from "react";
4
+ import { W as Se, u as pe } from "./widget-context-DTGO0Yta.js";
5
+ import { j as we, i as Ee, e as Ce, n as Te, r as ke, q as Ie, v as _e, u as Ae, s as Le } from "./widget-store-registry-_W4Z4xp-.js";
6
6
  import "zustand";
7
- import { Box as L, LinearProgress as We, Typography as Y, AccordionSummary as $e, AccordionDetails as De, Accordion as Fe, AlertTitle as Be, Alert as Oe, Button as Me, IconButton as Re, Divider as Pe, Popper as Ue, Grow as Ne, Paper as je, Link as pe } from "@mui/material";
7
+ import { Box as W, LinearProgress as We, Typography as X, AccordionSummary as $e, AccordionDetails as De, Accordion as Fe, AlertTitle as Be, Alert as Oe, Button as Me, IconButton as Re, Divider as Pe, Popper as Ue, Grow as Ne, Paper as je, Link as fe } from "@mui/material";
8
8
  import ze from "@mui/icons-material/ExpandMore";
9
9
  import { S as He } from "./smart-tooltip-D4vwQpFf.js";
10
10
  import { createPortal as Ve } from "react-dom";
@@ -14,19 +14,20 @@ import "./lasso-tool-CDFj4zKY.js";
14
14
  import "./cjs-D4KH3azB.js";
15
15
  import { T as Xe } from "./tooltip-BDnrRKrp.js";
16
16
  import "@mui/icons-material";
17
+ import "@carto/ps-utils";
17
18
  import { o as Ze, a as Ke, E as Ye } from "./echart-CU0KmClP.js";
18
- import { D as $n } from "./echart-CU0KmClP.js";
19
+ import { D as Fn } from "./echart-CU0KmClP.js";
19
20
  import { a as Je, b as Qe, M as et } from "./markdown-BD1jcknS.js";
20
- import { C as tt, L as nt, F as ot, i as rt, R as it, B as lt, Z as st, k as at, j as ct, S as dt } from "./change-column-B4IT0rh6.js";
21
+ import { C as tt, L as nt, F as ot, j as rt, R as it, B as lt, Z as st, m as at, n as ct, l as dt, k as pt } from "./change-column-BiuuHCDN.js";
21
22
  import "html2canvas";
22
23
  import "@mui/icons-material/ImageOutlined";
23
- import { a as ft, F as pt } from "./formula-DuC0NQLH.js";
24
+ import { a as ft, F as mt } from "./formula-DuC0NQLH.js";
24
25
  import "react-markdown";
25
- import { b as ut, a as mt } from "./spread-Y9R1f5dm.js";
26
- import { a as gt, R as ht } from "./range-l4fNHLEg.js";
27
- import { f as yt, C as xt } from "./category-DwaeYjpX.js";
28
- import { c as bt, T as vt } from "./table-CQCAnDLb.js";
29
- function St(t) {
26
+ import { b as ut, a as gt } from "./spread-CPis22AE.js";
27
+ import { a as ht, R as yt } from "./range-l4fNHLEg.js";
28
+ import { f as xt, C as bt } from "./category-Dnd2_j0x.js";
29
+ import { c as vt, T as St } from "./table-CQCAnDLb.js";
30
+ function wt(t) {
30
31
  const e = T(31), {
31
32
  id: n,
32
33
  data: r,
@@ -34,12 +35,12 @@ function St(t) {
34
35
  isFetching: i,
35
36
  error: s,
36
37
  formatter: c,
37
- labelFormatter: p,
38
- keepAlive: m,
39
- children: u
40
- } = t, f = m === void 0 ? !1 : m;
38
+ labelFormatter: f,
39
+ keepAlive: u,
40
+ children: m
41
+ } = t, p = u === void 0 ? !1 : u;
41
42
  let g;
42
- e[0] !== r || e[1] !== s || e[2] !== c || e[3] !== n || e[4] !== i || e[5] !== o || e[6] !== p ? (g = () => {
43
+ e[0] !== r || e[1] !== s || e[2] !== c || e[3] !== n || e[4] !== i || e[5] !== o || e[6] !== f ? (g = () => {
43
44
  if (we(n))
44
45
  return Ee(n);
45
46
  const E = Ce(n, {
@@ -48,41 +49,41 @@ function St(t) {
48
49
  isFetching: i,
49
50
  error: s,
50
51
  formatter: c,
51
- labelFormatter: p
52
+ labelFormatter: f
52
53
  });
53
54
  return Te(n, E), E;
54
- }, e[0] = r, e[1] = s, e[2] = c, e[3] = n, e[4] = i, e[5] = o, e[6] = p, e[7] = g) : g = e[7];
55
+ }, e[0] = r, e[1] = s, e[2] = c, e[3] = n, e[4] = i, e[5] = o, e[6] = f, e[7] = g) : g = e[7];
55
56
  const [l] = V(g);
56
57
  let d, h;
57
- e[8] !== n || e[9] !== f || e[10] !== l ? (d = () => (ke(n, l), () => {
58
- _e(n, {
59
- keepAlive: f
58
+ e[8] !== n || e[9] !== p || e[10] !== l ? (d = () => (ke(n, l), () => {
59
+ Ie(n, {
60
+ keepAlive: p
60
61
  });
61
- }), h = [n, l, f], e[8] = n, e[9] = f, e[10] = l, e[11] = d, e[12] = h) : (d = e[11], h = e[12]), Q(d, h);
62
- let x, y;
63
- e[13] !== r || e[14] !== l ? (x = () => {
62
+ }), h = [n, l, p], e[8] = n, e[9] = p, e[10] = l, e[11] = d, e[12] = h) : (d = e[11], h = e[12]), ee(d, h);
63
+ let y, x;
64
+ e[13] !== r || e[14] !== l ? (y = () => {
64
65
  l.setState({
65
66
  rawData: r
66
67
  });
67
- }, y = [l, r], e[13] = r, e[14] = l, e[15] = x, e[16] = y) : (x = e[15], y = e[16]), Q(x, y);
68
- let v, w;
69
- e[17] !== s || e[18] !== i || e[19] !== o || e[20] !== l ? (v = () => {
68
+ }, x = [l, r], e[13] = r, e[14] = l, e[15] = y, e[16] = x) : (y = e[15], x = e[16]), ee(y, x);
69
+ let b, w;
70
+ e[17] !== s || e[18] !== i || e[19] !== o || e[20] !== l ? (b = () => {
70
71
  l.setState({
71
72
  isLoading: o ?? !1,
72
73
  isFetching: i ?? !1,
73
74
  error: s
74
75
  });
75
- }, w = [l, o, i, s], e[17] = s, e[18] = i, e[19] = o, e[20] = l, e[21] = v, e[22] = w) : (v = e[21], w = e[22]), Q(v, w);
76
- let D, k;
77
- e[23] !== c || e[24] !== p || e[25] !== l ? (k = () => {
76
+ }, w = [l, o, i, s], e[17] = s, e[18] = i, e[19] = o, e[20] = l, e[21] = b, e[22] = w) : (b = e[21], w = e[22]), ee(b, w);
77
+ let k, I;
78
+ e[23] !== c || e[24] !== f || e[25] !== l ? (I = () => {
78
79
  l.setState({
79
80
  rawFormatter: c,
80
81
  formatter: c,
81
- labelFormatter: p
82
+ labelFormatter: f
82
83
  });
83
- }, D = [l, c, p], e[23] = c, e[24] = p, e[25] = l, e[26] = D, e[27] = k) : (D = e[26], k = e[27]), Q(k, D);
84
- let I;
85
- return e[28] !== u || e[29] !== n ? (I = /* @__PURE__ */ a(Se.Provider, { value: n, children: u }), e[28] = u, e[29] = n, e[30] = I) : I = e[30], I;
84
+ }, k = [l, c, f], e[23] = c, e[24] = f, e[25] = l, e[26] = k, e[27] = I) : (k = e[26], I = e[27]), ee(I, k);
85
+ let A;
86
+ return e[28] !== m || e[29] !== n ? (A = /* @__PURE__ */ a(Se.Provider, { value: n, children: m }), e[28] = m, e[29] = n, e[30] = A) : A = e[30], A;
86
87
  }
87
88
  const j = {
88
89
  root: {
@@ -230,7 +231,7 @@ const j = {
230
231
  pt: 1
231
232
  }
232
233
  };
233
- function ue(t) {
234
+ function me(t) {
234
235
  const e = T(5), {
235
236
  sx: n,
236
237
  children: r
@@ -241,12 +242,12 @@ function ue(t) {
241
242
  ...n
242
243
  }, e[0] = n, e[1] = o) : o = e[1];
243
244
  let i;
244
- return e[2] !== r || e[3] !== o ? (i = /* @__PURE__ */ a(L, { className: "widget-wrapper-actions", onClick: wt, sx: o, children: r }), e[2] = r, e[3] = o, e[4] = i) : i = e[4], i;
245
+ return e[2] !== r || e[3] !== o ? (i = /* @__PURE__ */ a(W, { className: "widget-wrapper-actions", onClick: Et, sx: o, children: r }), e[2] = r, e[3] = o, e[4] = i) : i = e[4], i;
245
246
  }
246
- function wt(t) {
247
+ function Et(t) {
247
248
  return t.stopPropagation();
248
249
  }
249
- function me(t) {
250
+ function ue(t) {
250
251
  const e = T(5), {
251
252
  sx: n,
252
253
  children: r
@@ -257,17 +258,17 @@ function me(t) {
257
258
  ...n
258
259
  }, e[0] = n, e[1] = o) : o = e[1];
259
260
  let i;
260
- return e[2] !== r || e[3] !== o ? (i = /* @__PURE__ */ a(L, { onClick: Et, sx: o, children: r }), e[2] = r, e[3] = o, e[4] = i) : i = e[4], i;
261
+ return e[2] !== r || e[3] !== o ? (i = /* @__PURE__ */ a(W, { onClick: Ct, sx: o, children: r }), e[2] = r, e[3] = o, e[4] = i) : i = e[4], i;
261
262
  }
262
- function Et(t) {
263
+ function Ct(t) {
263
264
  return t.stopPropagation();
264
265
  }
265
- const Ct = {
266
+ const Tt = {
266
267
  collapse: "Collapse",
267
268
  expand: "Expand",
268
269
  errorFallbackTitle: "Widget failed to render"
269
270
  };
270
- function Tt(t) {
271
+ function kt(t) {
271
272
  const e = T(35), {
272
273
  title: n,
273
274
  collapsed: r,
@@ -275,69 +276,69 @@ function Tt(t) {
275
276
  defaultCollapsed: i,
276
277
  disabled: s,
277
278
  variant: c,
278
- labels: p,
279
- expandIcon: m,
280
- iconProps: u,
281
- sx: f,
279
+ labels: f,
280
+ expandIcon: u,
281
+ iconProps: m,
282
+ sx: p,
282
283
  children: g
283
- } = t, l = i === void 0 ? !1 : i, d = s === void 0 ? !1 : s, h = c === void 0 ? "elevation" : c, x = m === void 0 ? ze : m, y = fe(), v = Ie(y, kt), w = r !== void 0, [D, k] = V(l), I = w ? r : D;
284
+ } = t, l = i === void 0 ? !1 : i, d = s === void 0 ? !1 : s, h = c === void 0 ? "elevation" : c, y = u === void 0 ? ze : u, x = pe(), b = _e(x, It), w = r !== void 0, [k, I] = V(l), A = w ? r : k;
284
285
  let E;
285
286
  e[0] !== o ? (E = (H, N) => {
286
- const Z = !N;
287
- o?.(Z), k(Z);
287
+ const K = !N;
288
+ o?.(K), I(K);
288
289
  }, e[0] = o, e[1] = E) : E = e[1];
289
290
  const F = E;
290
291
  let _;
291
- e[2] !== p ? (_ = {
292
- ...Ct,
293
- ...p
294
- }, e[2] = p, e[3] = _) : _ = e[3];
295
- const A = _;
292
+ e[2] !== f ? (_ = {
293
+ ...Tt,
294
+ ...f
295
+ }, e[2] = f, e[3] = _) : _ = e[3];
296
+ const L = _;
296
297
  let S;
297
298
  e[4] !== g ? (S = _t(g), e[4] = g, e[5] = S) : S = e[5];
298
299
  const {
299
- summary: b,
300
+ summary: v,
300
301
  details: q
301
- } = S, ee = I ? A.expand : A.collapse, B = I ? "true" : void 0, X = !I;
302
+ } = S, te = A ? L.expand : L.collapse, B = A ? "true" : void 0, Z = !A;
302
303
  let O;
303
- e[6] !== f ? (O = {
304
+ e[6] !== p ? (O = {
304
305
  ...j.root,
305
- ...f
306
- }, e[6] = f, e[7] = O) : O = e[7];
306
+ ...p
307
+ }, e[6] = p, e[7] = O) : O = e[7];
307
308
  let M;
308
- e[8] !== v ? (M = v ? /* @__PURE__ */ a(We, { sx: j.loading, color: "primary" }) : null, e[8] = v, e[9] = M) : M = e[9];
309
+ e[8] !== b ? (M = b ? /* @__PURE__ */ a(We, { sx: j.loading, color: "primary" }) : null, e[8] = b, e[9] = M) : M = e[9];
309
310
  let R;
310
- e[10] !== x || e[11] !== u ? (R = /* @__PURE__ */ a(x, { fontSize: "small", ...u }), e[10] = x, e[11] = u, e[12] = R) : R = e[12];
311
+ e[10] !== y || e[11] !== m ? (R = /* @__PURE__ */ a(y, { fontSize: "small", ...m }), e[10] = y, e[11] = m, e[12] = R) : R = e[12];
311
312
  let P;
312
313
  e[13] !== n ? (P = (H) => {
313
314
  const {
314
315
  ref: N
315
316
  } = H;
316
- return /* @__PURE__ */ a(L, { sx: j.titleCell, children: /* @__PURE__ */ a(Y, { ref: N, variant: "subtitle1", sx: j.titleText, textTransform: "none", children: n }) });
317
+ return /* @__PURE__ */ a(W, { sx: j.titleCell, children: /* @__PURE__ */ a(X, { ref: N, variant: "subtitle1", sx: j.titleText, textTransform: "none", children: n }) });
317
318
  }, e[13] = n, e[14] = P) : P = e[14];
318
319
  let U;
319
320
  e[15] !== P || e[16] !== n ? (U = /* @__PURE__ */ a(He, { title: n, children: P }), e[15] = P, e[16] = n, e[17] = U) : U = e[17];
320
- let W;
321
- e[18] !== ee || e[19] !== b || e[20] !== R || e[21] !== U ? (W = /* @__PURE__ */ G($e, { expandIcon: R, "aria-label": ee, sx: j.summary, children: [
322
- U,
323
- b
324
- ] }), e[18] = ee, e[19] = b, e[20] = R, e[21] = U, e[22] = W) : W = e[22];
325
321
  let $;
326
- e[23] !== q ? ($ = /* @__PURE__ */ a(De, { sx: j.detail, children: q }), e[23] = q, e[24] = $) : $ = e[24];
322
+ e[18] !== te || e[19] !== v || e[20] !== R || e[21] !== U ? ($ = /* @__PURE__ */ G($e, { expandIcon: R, "aria-label": te, sx: j.summary, children: [
323
+ U,
324
+ v
325
+ ] }), e[18] = te, e[19] = v, e[20] = R, e[21] = U, e[22] = $) : $ = e[22];
326
+ let D;
327
+ e[23] !== q ? (D = /* @__PURE__ */ a(De, { sx: j.detail, children: q }), e[23] = q, e[24] = D) : D = e[24];
327
328
  let z;
328
- return e[25] !== d || e[26] !== F || e[27] !== O || e[28] !== M || e[29] !== W || e[30] !== $ || e[31] !== B || e[32] !== X || e[33] !== h ? (z = /* @__PURE__ */ G(Fe, { "data-collapsed": B, expanded: X, onChange: F, disabled: d, disableGutters: !0, elevation: 0, variant: h, square: !0, sx: O, children: [
329
+ return e[25] !== d || e[26] !== F || e[27] !== O || e[28] !== M || e[29] !== $ || e[30] !== D || e[31] !== B || e[32] !== Z || e[33] !== h ? (z = /* @__PURE__ */ G(Fe, { "data-collapsed": B, expanded: Z, onChange: F, disabled: d, disableGutters: !0, elevation: 0, variant: h, square: !0, sx: O, children: [
329
330
  M,
330
- W,
331
- $
332
- ] }), e[25] = d, e[26] = F, e[27] = O, e[28] = M, e[29] = W, e[30] = $, e[31] = B, e[32] = X, e[33] = h, e[34] = z) : z = e[34], z;
331
+ $,
332
+ D
333
+ ] }), e[25] = d, e[26] = F, e[27] = O, e[28] = M, e[29] = $, e[30] = D, e[31] = B, e[32] = Z, e[33] = h, e[34] = z) : z = e[34], z;
333
334
  }
334
- function kt(t) {
335
+ function It(t) {
335
336
  return t.isFetching;
336
337
  }
337
338
  function _t(t) {
338
339
  const e = [], n = [];
339
340
  for (const r of ae.toArray(t))
340
- se(r, ue) || se(r, me) ? e.push(r) : n.push(r);
341
+ se(r, me) || se(r, ue) ? e.push(r) : n.push(r);
341
342
  return {
342
343
  summary: e,
343
344
  details: n
@@ -346,7 +347,7 @@ function _t(t) {
346
347
  function se(t, e) {
347
348
  return ce(t) && t.type === e;
348
349
  }
349
- function It(t) {
350
+ function At(t) {
350
351
  const e = T(5), {
351
352
  sx: n,
352
353
  children: r
@@ -357,9 +358,9 @@ function It(t) {
357
358
  ...n
358
359
  }, e[0] = n, e[1] = o) : o = e[1];
359
360
  let i;
360
- return e[2] !== r || e[3] !== o ? (i = /* @__PURE__ */ a(L, { "data-slot": "content", sx: o, children: r }), e[2] = r, e[3] = o, e[4] = i) : i = e[4], i;
361
+ return e[2] !== r || e[3] !== o ? (i = /* @__PURE__ */ a(W, { "data-slot": "content", sx: o, children: r }), e[2] = r, e[3] = o, e[4] = i) : i = e[4], i;
361
362
  }
362
- function At(t) {
363
+ function Lt(t) {
363
364
  const e = T(5), {
364
365
  sx: n,
365
366
  children: r
@@ -370,9 +371,9 @@ function At(t) {
370
371
  ...n
371
372
  }, e[0] = n, e[1] = o) : o = e[1];
372
373
  let i;
373
- return e[2] !== r || e[3] !== o ? (i = /* @__PURE__ */ a(L, { "data-slot": "footer", sx: o, children: r }), e[2] = r, e[3] = o, e[4] = i) : i = e[4], i;
374
+ return e[2] !== r || e[3] !== o ? (i = /* @__PURE__ */ a(W, { "data-slot": "footer", sx: o, children: r }), e[2] = r, e[3] = o, e[4] = i) : i = e[4], i;
374
375
  }
375
- const Lt = {
376
+ const Wt = {
376
377
  root: {
377
378
  display: "grid",
378
379
  gridTemplateColumns: "1fr auto",
@@ -382,18 +383,18 @@ const Lt = {
382
383
  pb: 1
383
384
  }
384
385
  };
385
- function Wt(t) {
386
+ function $t(t) {
386
387
  const e = T(5), {
387
388
  sx: n,
388
389
  children: r
389
390
  } = t;
390
391
  let o;
391
392
  e[0] !== n ? (o = {
392
- ...Lt.root,
393
+ ...Wt.root,
393
394
  ...n
394
395
  }, e[0] = n, e[1] = o) : o = e[1];
395
396
  let i;
396
- return e[2] !== r || e[3] !== o ? (i = /* @__PURE__ */ a(L, { sx: o, children: r }), e[2] = r, e[3] = o, e[4] = i) : i = e[4], i;
397
+ return e[2] !== r || e[3] !== o ? (i = /* @__PURE__ */ a(W, { sx: o, children: r }), e[2] = r, e[3] = o, e[4] = i) : i = e[4], i;
397
398
  }
398
399
  const ge = {
399
400
  emptyRoot: {
@@ -417,54 +418,54 @@ const ge = {
417
418
  flexDirection: "column",
418
419
  flex: 1
419
420
  }
420
- }, $t = {
421
+ }, Dt = {
421
422
  errorTitle: "Something went wrong",
422
423
  errorMessage: (t) => t instanceof Error ? t.message : typeof t == "string" ? t : t && typeof t == "object" && "message" in t ? String(t.message) : "Unknown error",
423
424
  emptyTitle: "No data",
424
425
  emptyDescription: "Try adjusting filters or wait for data to load."
425
- }, Dt = (t) => ({
426
+ }, Ft = (t) => ({
426
427
  isLoading: t.isLoading,
427
428
  isFetching: t.isFetching,
428
429
  error: t.error,
429
430
  rawData: t.rawData
430
431
  });
431
- function Ft(t) {
432
+ function Bt(t) {
432
433
  const e = T(17), {
433
434
  skeleton: n,
434
435
  children: r,
435
436
  isEmpty: o,
436
437
  fallback: i,
437
438
  labels: s
438
- } = t, c = o === void 0 ? Rt : o, p = fe(), m = Ae(p, Dt);
439
- let u;
440
- e[0] !== s ? (u = {
441
- ...$t,
439
+ } = t, c = o === void 0 ? Pt : o, f = pe(), u = Ae(f, Ft);
440
+ let m;
441
+ e[0] !== s ? (m = {
442
+ ...Dt,
442
443
  ...s
443
- }, e[0] = s, e[1] = u) : u = e[1];
444
- const f = u;
445
- if (m.isLoading) {
444
+ }, e[0] = s, e[1] = m) : m = e[1];
445
+ const p = m;
446
+ if (u.isLoading) {
446
447
  let d;
447
448
  return e[2] !== n ? (d = /* @__PURE__ */ a(re, { children: n }), e[2] = n, e[3] = d) : d = e[3], d;
448
449
  }
449
- if (m.error !== void 0 && m.error !== null) {
450
+ if (u.error !== void 0 && u.error !== null) {
450
451
  let d;
451
- if (e[4] !== f || e[5] !== i || e[6] !== m.error) {
452
- const h = Pt(m.error);
453
- d = i ? /* @__PURE__ */ a(re, { children: i(h) }) : /* @__PURE__ */ a(he, { error: h, labels: f }), e[4] = f, e[5] = i, e[6] = m.error, e[7] = d;
452
+ if (e[4] !== p || e[5] !== i || e[6] !== u.error) {
453
+ const h = Ut(u.error);
454
+ d = i ? /* @__PURE__ */ a(re, { children: i(h) }) : /* @__PURE__ */ a(he, { error: h, labels: p }), e[4] = p, e[5] = i, e[6] = u.error, e[7] = d;
454
455
  } else
455
456
  d = e[7];
456
457
  return d;
457
458
  }
458
- if (c(m.rawData)) {
459
+ if (c(u.rawData)) {
459
460
  let d;
460
- return e[8] !== f ? (d = /* @__PURE__ */ a(Ot, { labels: f }), e[8] = f, e[9] = d) : d = e[9], d;
461
+ return e[8] !== p ? (d = /* @__PURE__ */ a(Mt, { labels: p }), e[8] = p, e[9] = d) : d = e[9], d;
461
462
  }
462
463
  let g;
463
- e[10] !== r || e[11] !== p ? (g = /* @__PURE__ */ a(Bt, { id: p, children: r }), e[10] = r, e[11] = p, e[12] = g) : g = e[12];
464
+ e[10] !== r || e[11] !== f ? (g = /* @__PURE__ */ a(Ot, { id: f, children: r }), e[10] = r, e[11] = f, e[12] = g) : g = e[12];
464
465
  let l;
465
- return e[13] !== f || e[14] !== i || e[15] !== g ? (l = /* @__PURE__ */ a(Mt, { fallback: i, labels: f, children: g }), e[13] = f, e[14] = i, e[15] = g, e[16] = l) : l = e[16], l;
466
+ return e[13] !== p || e[14] !== i || e[15] !== g ? (l = /* @__PURE__ */ a(Rt, { fallback: i, labels: p, children: g }), e[13] = p, e[14] = i, e[15] = g, e[16] = l) : l = e[16], l;
466
467
  }
467
- function Bt(t) {
468
+ function Ot(t) {
468
469
  const e = T(5), {
469
470
  id: n,
470
471
  children: r
@@ -473,7 +474,7 @@ function Bt(t) {
473
474
  e[0] !== n ? (o = (c) => Le(n, c), e[0] = n, e[1] = o) : o = e[1];
474
475
  const i = o;
475
476
  let s;
476
- return e[2] !== r || e[3] !== i ? (s = /* @__PURE__ */ a(L, { ref: i, sx: ge.captureBox, children: r }), e[2] = r, e[3] = i, e[4] = s) : s = e[4], s;
477
+ return e[2] !== r || e[3] !== i ? (s = /* @__PURE__ */ a(W, { ref: i, sx: ge.captureBox, children: r }), e[2] = r, e[3] = i, e[4] = s) : s = e[4], s;
477
478
  }
478
479
  function he(t) {
479
480
  const e = T(8), {
@@ -490,21 +491,21 @@ function he(t) {
490
491
  i
491
492
  ] }), e[5] = o, e[6] = i, e[7] = s) : s = e[7], s;
492
493
  }
493
- function Ot(t) {
494
+ function Mt(t) {
494
495
  const e = T(7), {
495
496
  labels: n
496
497
  } = t;
497
498
  let r;
498
- e[0] !== n.emptyTitle ? (r = /* @__PURE__ */ a(Y, { variant: "body2", color: "text.primary", children: n.emptyTitle }), e[0] = n.emptyTitle, e[1] = r) : r = e[1];
499
+ e[0] !== n.emptyTitle ? (r = /* @__PURE__ */ a(X, { variant: "body2", color: "text.primary", children: n.emptyTitle }), e[0] = n.emptyTitle, e[1] = r) : r = e[1];
499
500
  let o;
500
- e[2] !== n.emptyDescription ? (o = /* @__PURE__ */ a(Y, { variant: "caption", color: "text.secondary", children: n.emptyDescription }), e[2] = n.emptyDescription, e[3] = o) : o = e[3];
501
+ e[2] !== n.emptyDescription ? (o = /* @__PURE__ */ a(X, { variant: "caption", color: "text.secondary", children: n.emptyDescription }), e[2] = n.emptyDescription, e[3] = o) : o = e[3];
501
502
  let i;
502
- return e[4] !== r || e[5] !== o ? (i = /* @__PURE__ */ G(L, { sx: ge.emptyRoot, children: [
503
+ return e[4] !== r || e[5] !== o ? (i = /* @__PURE__ */ G(W, { sx: ge.emptyRoot, children: [
503
504
  r,
504
505
  o
505
506
  ] }), e[4] = r, e[5] = o, e[6] = i) : i = e[6], i;
506
507
  }
507
- class Mt extends be {
508
+ class Rt extends be {
508
509
  state = {
509
510
  error: null
510
511
  };
@@ -530,29 +531,39 @@ class Mt extends be {
530
531
  return this.props.children;
531
532
  }
532
533
  }
533
- function Rt(t) {
534
+ function Pt(t) {
534
535
  return t == null ? !0 : Array.isArray(t) ? !!(t.length === 0 || t.every((e) => Array.isArray(e) && e.length === 0)) : typeof t == "object" && Object.keys(t).length === 0;
535
536
  }
536
- function Pt(t) {
537
+ function Ut(t) {
537
538
  return t instanceof Error ? t : typeof t == "string" ? new Error(t) : t && typeof t == "object" && "message" in t ? new Error(String(t.message)) : new Error("Unknown error");
538
539
  }
539
- const Ut = {
540
- allSelected: "All selected",
541
- selections: (t) => `${t} selected`,
540
+ const Nt = {
542
541
  clear: "Clear"
543
- }, te = {
542
+ }, Q = {
544
543
  root: {
545
544
  display: "flex",
546
545
  alignItems: "center",
547
546
  gap: 0.5,
548
547
  minHeight: 24
549
548
  },
550
- label: {
549
+ count: {
550
+ display: "inline-flex",
551
+ alignItems: "baseline",
552
+ gap: 0.5
553
+ },
554
+ selected: {
555
+ color: "text.primary",
556
+ fontWeight: 600
557
+ },
558
+ separator: {
559
+ color: "text.secondary"
560
+ },
561
+ total: {
551
562
  color: "text.secondary"
552
563
  }
553
564
  };
554
- function Nt(t) {
555
- const e = T(28), {
565
+ function jt(t) {
566
+ const e = T(33), {
556
567
  count: n,
557
568
  total: r,
558
569
  onClear: o,
@@ -560,41 +571,34 @@ function Nt(t) {
560
571
  icon: s,
561
572
  iconProps: c
562
573
  } = t;
563
- if (r === 0)
574
+ if (!r)
564
575
  return null;
565
- let p, m, u, f, g, l, d, h;
566
- if (e[0] !== s || e[1] !== n || e[2] !== c || e[3] !== i) {
567
- h = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
568
- e: {
569
- if (u = {
570
- ...Ut,
571
- ...i
572
- }, n === 0) {
573
- let w;
574
- e[12] !== s || e[13] !== c ? (w = s ? /* @__PURE__ */ a(s, { fontSize: "small", ...c }) : null, e[12] = s, e[13] = c, e[14] = w) : w = e[14], h = /* @__PURE__ */ G(L, { sx: te.root, children: [
575
- w,
576
- /* @__PURE__ */ a(Y, { variant: "caption", sx: te.label, children: u.allSelected })
577
- ] });
578
- break e;
579
- }
580
- m = L, d = te.root, p = Y, f = "caption", g = te.label, l = u.selections(n);
581
- }
582
- e[0] = s, e[1] = n, e[2] = c, e[3] = i, e[4] = p, e[5] = m, e[6] = u, e[7] = f, e[8] = g, e[9] = l, e[10] = d, e[11] = h;
576
+ let f, u, m, p, g, l, d, h, y;
577
+ if (e[0] !== s || e[1] !== n || e[2] !== c || e[3] !== i || e[4] !== r) {
578
+ m = {
579
+ ...Nt,
580
+ ...i
581
+ };
582
+ const k = n === 0 ? r : n;
583
+ u = W, h = Q.root, e[14] !== s || e[15] !== c ? (y = s ? /* @__PURE__ */ a(s, { fontSize: "small", ...c }) : null, e[14] = s, e[15] = c, e[16] = y) : y = e[16], f = W, p = "span", g = Q.count, l = `${k} / ${r}`, d = m.summary ? m.summary(k, r) : /* @__PURE__ */ G(re, { children: [
584
+ /* @__PURE__ */ a(X, { component: "span", variant: "caption", sx: Q.selected, children: k }),
585
+ /* @__PURE__ */ a(X, { component: "span", variant: "caption", sx: Q.separator, children: "/" }),
586
+ /* @__PURE__ */ a(X, { component: "span", variant: "caption", sx: Q.total, children: r })
587
+ ] }), e[0] = s, e[1] = n, e[2] = c, e[3] = i, e[4] = r, e[5] = f, e[6] = u, e[7] = m, e[8] = p, e[9] = g, e[10] = l, e[11] = d, e[12] = h, e[13] = y;
583
588
  } else
584
- p = e[4], m = e[5], u = e[6], f = e[7], g = e[8], l = e[9], d = e[10], h = e[11];
585
- if (h !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
586
- return h;
589
+ f = e[5], u = e[6], m = e[7], p = e[8], g = e[9], l = e[10], d = e[11], h = e[12], y = e[13];
587
590
  let x;
588
- e[15] !== p || e[16] !== f || e[17] !== g || e[18] !== l ? (x = /* @__PURE__ */ a(p, { variant: f, sx: g, children: l }), e[15] = p, e[16] = f, e[17] = g, e[18] = l, e[19] = x) : x = e[19];
589
- let y;
590
- e[20] !== u || e[21] !== o ? (y = o && /* @__PURE__ */ a(Me, { size: "small", variant: "text", onClick: o, children: u.clear }), e[20] = u, e[21] = o, e[22] = y) : y = e[22];
591
- let v;
592
- return e[23] !== m || e[24] !== d || e[25] !== x || e[26] !== y ? (v = /* @__PURE__ */ G(m, { sx: d, children: [
591
+ e[17] !== f || e[18] !== p || e[19] !== g || e[20] !== l || e[21] !== d ? (x = /* @__PURE__ */ a(f, { component: p, sx: g, "aria-label": l, children: d }), e[17] = f, e[18] = p, e[19] = g, e[20] = l, e[21] = d, e[22] = x) : x = e[22];
592
+ let b;
593
+ e[23] !== m || e[24] !== n || e[25] !== o ? (b = n > 0 && o && /* @__PURE__ */ a(Me, { size: "small", variant: "text", onClick: o, children: m.clear }), e[23] = m, e[24] = n, e[25] = o, e[26] = b) : b = e[26];
594
+ let w;
595
+ return e[27] !== u || e[28] !== h || e[29] !== y || e[30] !== x || e[31] !== b ? (w = /* @__PURE__ */ G(u, { sx: h, children: [
596
+ y,
593
597
  x,
594
- y
595
- ] }), e[23] = m, e[24] = d, e[25] = x, e[26] = y, e[27] = v) : v = e[27], v;
598
+ b
599
+ ] }), e[27] = u, e[28] = h, e[29] = y, e[30] = x, e[31] = b, e[32] = w) : w = e[32], w;
596
600
  }
597
- const jt = {
601
+ const zt = {
598
602
  trigger: "More actions",
599
603
  close: "Close"
600
604
  }, ne = {
@@ -629,7 +633,7 @@ const jt = {
629
633
  borderRadius: 0.5
630
634
  }
631
635
  };
632
- function zt(t) {
636
+ function Ht(t) {
633
637
  const e = T(44), {
634
638
  visibleCount: n,
635
639
  labels: r,
@@ -637,23 +641,23 @@ function zt(t) {
637
641
  iconProps: i,
638
642
  direction: s,
639
643
  sx: c,
640
- children: p
641
- } = t, m = o === void 0 ? qe : o, u = s === void 0 ? "right" : s;
642
- let f;
643
- e[0] !== r ? (f = {
644
- ...jt,
644
+ children: f
645
+ } = t, u = o === void 0 ? qe : o, m = s === void 0 ? "right" : s;
646
+ let p;
647
+ e[0] !== r ? (p = {
648
+ ...zt,
645
649
  ...r
646
- }, e[0] = r, e[1] = f) : f = e[1];
647
- const g = f, [l, d] = V(!1), [h, x] = V(null), [y, v] = V(null), [w, D] = V(null);
648
- let k;
649
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = () => d(qt), e[2] = k) : k = e[2];
650
- const I = k;
650
+ }, e[0] = r, e[1] = p) : p = e[1];
651
+ const g = p, [l, d] = V(!1), [h, y] = V(null), [x, b] = V(null), [w, k] = V(null);
652
+ let I;
653
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = () => d(Xt), e[2] = I) : I = e[2];
654
+ const A = I;
651
655
  let E;
652
656
  e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = (C) => {
653
- x(C);
657
+ y(C);
654
658
  }, e[3] = E) : E = e[3];
655
659
  const F = E;
656
- let _, A;
660
+ let _, L;
657
661
  e[4] !== l ? (_ = () => {
658
662
  if (!l)
659
663
  return;
@@ -661,48 +665,48 @@ function zt(t) {
661
665
  J.key === "Escape" && d(!1);
662
666
  };
663
667
  return document.addEventListener("keydown", C), () => document.removeEventListener("keydown", C);
664
- }, A = [l], e[4] = l, e[5] = _, e[6] = A) : (_ = e[5], A = e[6]), de(_, A);
665
- const [S] = V(Gt);
666
- let b, q;
667
- e[7] !== p ? (b = ae.toArray(p).filter(Vt), q = b.reduce(Ht, 0), e[7] = p, e[8] = b, e[9] = q) : (b = e[8], q = e[9]);
668
+ }, L = [l], e[4] = l, e[5] = _, e[6] = L) : (_ = e[5], L = e[6]), de(_, L);
669
+ const [S] = V(qt);
670
+ let v, q;
671
+ e[7] !== f ? (v = ae.toArray(f).filter(Gt), q = v.reduce(Vt, 0), e[7] = f, e[8] = v, e[9] = q) : (v = e[8], q = e[9]);
668
672
  const B = n !== void 0 && q > n;
669
- let X;
673
+ let Z;
670
674
  e: {
671
675
  if (!B || n === void 0) {
672
- X = null;
676
+ Z = null;
673
677
  break e;
674
678
  }
675
679
  let C;
676
- e[10] !== b || e[11] !== n ? (C = Xt(b, n), e[10] = b, e[11] = n, e[12] = C) : C = e[12], X = C;
680
+ e[10] !== v || e[11] !== n ? (C = Zt(v, n), e[10] = v, e[11] = n, e[12] = C) : C = e[12], Z = C;
677
681
  }
678
- const O = X;
682
+ const O = Z;
679
683
  !B && l && d(!1);
680
684
  let M, R;
681
- if (e[13] !== S || e[14] !== y || e[15] !== l || e[16] !== w ? (M = () => {
682
- const C = l && w ? w : y;
685
+ if (e[13] !== S || e[14] !== x || e[15] !== l || e[16] !== w ? (M = () => {
686
+ const C = l && w ? w : x;
683
687
  S && C && S.parentNode !== C && C.appendChild(S);
684
- }, R = [l, y, w, S], e[13] = S, e[14] = y, e[15] = l, e[16] = w, e[17] = M, e[18] = R) : (M = e[17], R = e[18]), Q(M, R), b.length === 0)
688
+ }, R = [l, x, w, S], e[13] = S, e[14] = x, e[15] = l, e[16] = w, e[17] = M, e[18] = R) : (M = e[17], R = e[18]), ee(M, R), v.length === 0)
685
689
  return null;
686
- const P = l ? g.close : g.trigger, U = u === "left" ? "row-reverse" : "row";
687
- let W;
688
- e[19] !== U || e[20] !== c ? (W = {
690
+ const P = l ? g.close : g.trigger, U = m === "left" ? "row-reverse" : "row";
691
+ let $;
692
+ e[19] !== U || e[20] !== c ? ($ = {
689
693
  ...ne.root,
690
694
  flexDirection: U,
691
695
  ...c
692
- }, e[19] = U, e[20] = c, e[21] = W) : W = e[21];
693
- let $;
694
- e[22] !== m || e[23] !== i || e[24] !== l || e[25] !== B || e[26] !== P ? ($ = B && /* @__PURE__ */ G(re, { children: [
695
- /* @__PURE__ */ a(Xe, { title: P, children: /* @__PURE__ */ a(Re, { ref: F, size: "small", "aria-label": P, "aria-pressed": l, onClick: I, className: l ? "active" : void 0, sx: {
696
+ }, e[19] = U, e[20] = c, e[21] = $) : $ = e[21];
697
+ let D;
698
+ e[22] !== u || e[23] !== i || e[24] !== l || e[25] !== B || e[26] !== P ? (D = B && /* @__PURE__ */ G(re, { children: [
699
+ /* @__PURE__ */ a(Xe, { title: P, children: /* @__PURE__ */ a(Re, { ref: F, size: "small", "aria-label": P, "aria-pressed": l, onClick: A, className: l ? "active" : void 0, sx: {
696
700
  ...l && ne.triggerActive
697
- }, children: l ? /* @__PURE__ */ a(Ge, { fontSize: "small" }) : /* @__PURE__ */ a(m, { fontSize: "small", ...i }) }) }),
701
+ }, children: l ? /* @__PURE__ */ a(Ge, { fontSize: "small" }) : /* @__PURE__ */ a(u, { fontSize: "small", ...i }) }) }),
698
702
  /* @__PURE__ */ a(Pe, { orientation: "vertical", flexItem: !0, sx: {
699
703
  mx: 0.5
700
704
  } })
701
- ] }), e[22] = m, e[23] = i, e[24] = l, e[25] = B, e[26] = P, e[27] = $) : $ = e[27];
705
+ ] }), e[22] = u, e[23] = i, e[24] = l, e[25] = B, e[26] = P, e[27] = D) : D = e[27];
702
706
  let z;
703
- e[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ a(L, { ref: v, sx: ne.preview }), e[28] = z) : z = e[28];
707
+ e[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ a(W, { ref: b, sx: ne.preview }), e[28] = z) : z = e[28];
704
708
  let H;
705
- e[29] !== h || e[30] !== u || e[31] !== l || e[32] !== B ? (H = B && /* @__PURE__ */ a(Ue, { open: l, anchorEl: h, placement: u === "left" ? "left" : "right", transition: !0, modifiers: [{
709
+ e[29] !== h || e[30] !== m || e[31] !== l || e[32] !== B ? (H = B && /* @__PURE__ */ a(Ue, { open: l, anchorEl: h, placement: m === "left" ? "left" : "right", transition: !0, modifiers: [{
706
710
  name: "flip",
707
711
  enabled: !1
708
712
  }], sx: {
@@ -713,43 +717,43 @@ function zt(t) {
713
717
  TransitionProps: J
714
718
  } = C;
715
719
  return /* @__PURE__ */ a(Ne, { ...J, style: {
716
- transformOrigin: u === "left" ? "right center" : "left center"
717
- }, children: /* @__PURE__ */ a(je, { ref: D, sx: ne.paper }) });
718
- } }), e[29] = h, e[30] = u, e[31] = l, e[32] = B, e[33] = H) : H = e[33];
720
+ transformOrigin: m === "left" ? "right center" : "left center"
721
+ }, children: /* @__PURE__ */ a(je, { ref: k, sx: ne.paper }) });
722
+ } }), e[29] = h, e[30] = m, e[31] = l, e[32] = B, e[33] = H) : H = e[33];
719
723
  let N;
720
- e[34] !== S || e[35] !== O || e[36] !== b || e[37] !== l ? (N = S ? Ve(b.map((C, J) => {
724
+ e[34] !== S || e[35] !== O || e[36] !== v || e[37] !== l ? (N = S ? Ve(v.map((C, J) => {
721
725
  const le = l || !O || O.has(J), xe = C.key ?? J;
722
726
  return /* @__PURE__ */ a("div", { "data-toolbox-item-visible": le ? "true" : "false", style: {
723
727
  display: le ? "contents" : "none"
724
728
  }, children: C }, xe);
725
- }), S) : null, e[34] = S, e[35] = O, e[36] = b, e[37] = l, e[38] = N) : N = e[38];
726
- let Z;
727
- return e[39] !== W || e[40] !== $ || e[41] !== H || e[42] !== N ? (Z = /* @__PURE__ */ G(L, { sx: W, children: [
728
- $,
729
+ }), S) : null, e[34] = S, e[35] = O, e[36] = v, e[37] = l, e[38] = N) : N = e[38];
730
+ let K;
731
+ return e[39] !== $ || e[40] !== D || e[41] !== H || e[42] !== N ? (K = /* @__PURE__ */ G(W, { sx: $, children: [
732
+ D,
729
733
  z,
730
734
  H,
731
735
  N
732
- ] }), e[39] = W, e[40] = $, e[41] = H, e[42] = N, e[43] = Z) : Z = e[43], Z;
736
+ ] }), e[39] = $, e[40] = D, e[41] = H, e[42] = N, e[43] = K) : K = e[43], K;
733
737
  }
734
- function Ht(t, e) {
738
+ function Vt(t, e) {
735
739
  return t + (ie(e) ? 0 : 1);
736
740
  }
737
- function Vt(t) {
741
+ function Gt(t) {
738
742
  return ce(t);
739
743
  }
740
- function Gt() {
744
+ function qt() {
741
745
  if (typeof document > "u")
742
746
  return null;
743
747
  const t = document.createElement("div");
744
748
  return t.style.display = "contents", t;
745
749
  }
746
- function qt(t) {
750
+ function Xt(t) {
747
751
  return !t;
748
752
  }
749
753
  function ie(t) {
750
754
  return t.props["data-toolbar-hidden"] === !0;
751
755
  }
752
- function Xt(t, e) {
756
+ function Zt(t, e) {
753
757
  const n = [];
754
758
  let r = 0;
755
759
  for (let o = 0; o < t.length && !(r >= e); o++)
@@ -758,7 +762,7 @@ function Xt(t, e) {
758
762
  n.pop();
759
763
  return new Set(n);
760
764
  }
761
- const Zt = {
765
+ const Kt = {
762
766
  showMore: "Show more",
763
767
  showLess: "Show less"
764
768
  }, oe = {
@@ -787,7 +791,7 @@ const Zt = {
787
791
  }
788
792
  }
789
793
  };
790
- function K(t) {
794
+ function Y(t) {
791
795
  const e = T(3), {
792
796
  children: n
793
797
  } = t;
@@ -796,48 +800,48 @@ function K(t) {
796
800
  m: 0
797
801
  }, e[0] = r) : r = e[0];
798
802
  let o;
799
- return e[1] !== n ? (o = /* @__PURE__ */ a(Y, { variant: "caption", component: "p", color: "inherit", sx: r, children: n }), e[1] = n, e[2] = o) : o = e[2], o;
803
+ return e[1] !== n ? (o = /* @__PURE__ */ a(X, { variant: "caption", component: "p", color: "inherit", sx: r, children: n }), e[1] = n, e[2] = o) : o = e[2], o;
800
804
  }
801
- const Kt = {
805
+ const Yt = {
802
806
  // Headings demoted to caption typography — a Note can't introduce a
803
807
  // heading into the page outline.
804
- h1: K,
805
- h2: K,
806
- h3: K,
807
- h4: K,
808
- h5: K,
809
- h6: K,
810
- p: K,
808
+ h1: Y,
809
+ h2: Y,
810
+ h3: Y,
811
+ h4: Y,
812
+ h5: Y,
813
+ h6: Y,
814
+ p: Y,
811
815
  // External-safe link defaults; inherit colour from the muted caption.
812
816
  a: ({
813
817
  children: t,
814
818
  href: e
815
- }) => /* @__PURE__ */ a(pe, { href: e, target: "_blank", rel: "noopener noreferrer", color: "inherit", underline: "always", children: t })
819
+ }) => /* @__PURE__ */ a(fe, { href: e, target: "_blank", rel: "noopener noreferrer", color: "inherit", underline: "always", children: t })
816
820
  };
817
- function Yt(t) {
821
+ function Jt(t) {
818
822
  const e = T(7), {
819
823
  lineClamp: n,
820
824
  labels: r,
821
825
  children: o
822
826
  } = t, i = n === void 0 ? 3 : n;
823
827
  let s;
824
- e[0] !== o ? (s = /* @__PURE__ */ a(Y, { variant: "caption", component: "div", color: "inherit", children: o }), e[0] = o, e[1] = s) : s = e[1];
828
+ e[0] !== o ? (s = /* @__PURE__ */ a(X, { variant: "caption", component: "div", color: "inherit", children: o }), e[0] = o, e[1] = s) : s = e[1];
825
829
  let c;
826
830
  return e[2] !== o || e[3] !== r || e[4] !== i || e[5] !== s ? (c = /* @__PURE__ */ a(ye, { lineClamp: i, labels: r, dependency: o, children: s }), e[2] = o, e[3] = r, e[4] = i, e[5] = s, e[6] = c) : c = e[6], c;
827
831
  }
828
- function Jt(t) {
832
+ function Qt(t) {
829
833
  const e = T(7), {
830
834
  content: n,
831
835
  lineClamp: r,
832
836
  labels: o
833
837
  } = t, i = r === void 0 ? 3 : r;
834
838
  let s;
835
- e[0] !== n ? (s = /* @__PURE__ */ a(Je, { content: n, components: Kt }), e[0] = n, e[1] = s) : s = e[1];
839
+ e[0] !== n ? (s = /* @__PURE__ */ a(Je, { content: n, components: Yt }), e[0] = n, e[1] = s) : s = e[1];
836
840
  let c;
837
841
  return e[2] !== n || e[3] !== o || e[4] !== i || e[5] !== s ? (c = /* @__PURE__ */ a(ye, { lineClamp: i, labels: o, dependency: n, children: s }), e[2] = n, e[3] = o, e[4] = i, e[5] = s, e[6] = c) : c = e[6], c;
838
842
  }
839
- const Qt = Object.assign(Yt, {
840
- Markdown: Jt
843
+ const en = Object.assign(Jt, {
844
+ Markdown: Qt
841
845
  });
842
846
  function ye(t) {
843
847
  const e = T(27), {
@@ -848,75 +852,76 @@ function ye(t) {
848
852
  } = t;
849
853
  let s;
850
854
  e[0] !== r ? (s = {
851
- ...Zt,
855
+ ...Kt,
852
856
  ...r
853
857
  }, e[0] = r, e[1] = s) : s = e[1];
854
- const c = s, p = ve(null), [m, u] = V(!1), [f, g] = V(!1), l = n <= 0;
858
+ const c = s, f = ve(null), [u, m] = V(!1), [p, g] = V(!1), l = n <= 0;
855
859
  let d;
856
860
  e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = () => {
857
- const b = p.current;
858
- b && u(b.scrollHeight > b.clientHeight + 1);
861
+ const v = f.current;
862
+ v && m(v.scrollHeight > v.clientHeight + 1);
859
863
  }, e[2] = d) : d = e[2];
860
864
  const h = d;
861
- let x;
862
- e[3] !== l ? (x = () => {
865
+ let y;
866
+ e[3] !== l ? (y = () => {
863
867
  if (l)
864
868
  return;
865
- const b = p.current;
866
- if (b)
867
- return h(), Ze(b, h);
868
- }, e[3] = l, e[4] = x) : x = e[4];
869
- let y;
870
- e[5] !== l || e[6] !== o ? (y = [h, o, l], e[5] = l, e[6] = o, e[7] = y) : y = e[7], de(x, y);
871
- let v;
872
- e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = () => g(en), e[8] = v) : v = e[8];
873
- const w = v, D = !f && !l;
874
- let k;
875
- e[9] !== D || e[10] !== n ? (k = D ? {
869
+ const v = f.current;
870
+ if (v)
871
+ return h(), Ze(v, h);
872
+ }, e[3] = l, e[4] = y) : y = e[4];
873
+ let x;
874
+ e[5] !== l || e[6] !== o ? (x = [h, o, l], e[5] = l, e[6] = o, e[7] = x) : x = e[7], de(y, x);
875
+ let b;
876
+ e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = () => g(tn), e[8] = b) : b = e[8];
877
+ const w = b, k = !p && !l;
878
+ let I;
879
+ e[9] !== k || e[10] !== n ? (I = k ? {
876
880
  ...oe.clamped,
877
881
  WebkitLineClamp: n
878
- } : null, e[9] = D, e[10] = n, e[11] = k) : k = e[11];
879
- const I = k;
882
+ } : null, e[9] = k, e[10] = n, e[11] = I) : I = e[11];
883
+ const A = I;
880
884
  let E;
881
- e[12] !== I ? (E = I ?? {}, e[12] = I, e[13] = E) : E = e[13];
885
+ e[12] !== A ? (E = A ?? {}, e[12] = A, e[13] = E) : E = e[13];
882
886
  let F;
883
887
  e[14] !== E ? (F = {
884
888
  ...oe.text,
885
889
  ...E
886
890
  }, e[14] = E, e[15] = F) : F = e[15];
887
891
  let _;
888
- e[16] !== i || e[17] !== F ? (_ = /* @__PURE__ */ a(L, { ref: p, sx: F, children: i }), e[16] = i, e[17] = F, e[18] = _) : _ = e[18];
889
- let A;
890
- e[19] !== c || e[20] !== l || e[21] !== f || e[22] !== m ? (A = !l && (m || f) && /* @__PURE__ */ a(pe, { component: "button", variant: "caption", underline: "none", onClick: w, sx: oe.toggle, children: f ? c.showLess : c.showMore }), e[19] = c, e[20] = l, e[21] = f, e[22] = m, e[23] = A) : A = e[23];
892
+ e[16] !== i || e[17] !== F ? (_ = /* @__PURE__ */ a(W, { ref: f, sx: F, children: i }), e[16] = i, e[17] = F, e[18] = _) : _ = e[18];
893
+ let L;
894
+ e[19] !== c || e[20] !== l || e[21] !== p || e[22] !== u ? (L = !l && (u || p) && /* @__PURE__ */ a(fe, { component: "button", variant: "caption", underline: "none", onClick: w, sx: oe.toggle, children: p ? c.showLess : c.showMore }), e[19] = c, e[20] = l, e[21] = p, e[22] = u, e[23] = L) : L = e[23];
891
895
  let S;
892
- return e[24] !== A || e[25] !== _ ? (S = /* @__PURE__ */ G(L, { sx: oe.root, children: [
896
+ return e[24] !== L || e[25] !== _ ? (S = /* @__PURE__ */ G(W, { sx: oe.root, children: [
893
897
  _,
894
- A
895
- ] }), e[24] = A, e[25] = _, e[26] = S) : S = e[26], S;
898
+ L
899
+ ] }), e[24] = L, e[25] = _, e[26] = S) : S = e[26], S;
896
900
  }
897
- function en(t) {
901
+ function tn(t) {
898
902
  return !t;
899
903
  }
900
- const An = {
904
+ const Wn = {
901
905
  // Composition shell
902
- Provider: St,
903
- Wrapper: Tt,
904
- Actions: ue,
905
- Options: me,
906
- Content: It,
907
- Footer: At,
908
- Subheader: Wt,
909
- State: Ft,
910
- SelectionSummary: Nt,
911
- Toolbox: zt,
912
- Note: Qt,
906
+ Provider: wt,
907
+ Wrapper: kt,
908
+ Actions: me,
909
+ Options: ue,
910
+ Content: At,
911
+ Footer: Lt,
912
+ Subheader: $t,
913
+ State: Bt,
914
+ SelectionSummary: jt,
915
+ Toolbox: Ht,
916
+ Note: en,
913
917
  // ECharts bridge
914
918
  Echart: Ye,
915
919
  EchartUI: Ke,
916
920
  // Actions
917
- Searcher: dt,
918
- SearcherToggle: ct,
919
- StackToggle: at,
921
+ Searcher: pt,
922
+ SearcherToggle: dt,
923
+ StackToggle: ct,
924
+ ShowAllToggle: at,
920
925
  ZoomToggle: st,
921
926
  BrushToggle: lt,
922
927
  RelativeData: it,
@@ -928,26 +933,26 @@ const An = {
928
933
  // modules (Bar, FormulaWidget, TableWidget, etc.) are application-level
929
934
  // compositions of these primitives and live outside the library —
930
935
  // see `apps/storybook/stories/modules/widgets/` for canonical examples.
931
- Formula: pt,
936
+ Formula: mt,
932
937
  FormulaUI: ft,
933
938
  Markdown: et,
934
939
  MarkdownUI: Qe,
935
- Spread: mt,
940
+ Spread: gt,
936
941
  SpreadUI: ut,
937
- Range: ht,
938
- RangeUI: gt,
939
- Category: xt,
940
- CategoryUI: yt,
941
- Table: vt,
942
- TableUI: bt
942
+ Range: yt,
943
+ RangeUI: ht,
944
+ Category: bt,
945
+ CategoryUI: xt,
946
+ Table: St,
947
+ TableUI: vt
943
948
  };
944
949
  export {
945
- $n as DEFAULT_INIT_OPTS,
946
- Zt as DEFAULT_NOTE_LABELS,
947
- Ut as DEFAULT_SELECTION_SUMMARY_LABELS,
948
- $t as DEFAULT_STATE_LABELS,
949
- jt as DEFAULT_TOOLBOX_LABELS,
950
- Ct as DEFAULT_WRAPPER_LABELS,
951
- An as Widget
950
+ Fn as DEFAULT_INIT_OPTS,
951
+ Kt as DEFAULT_NOTE_LABELS,
952
+ Nt as DEFAULT_SELECTION_SUMMARY_LABELS,
953
+ Dt as DEFAULT_STATE_LABELS,
954
+ zt as DEFAULT_TOOLBOX_LABELS,
955
+ Tt as DEFAULT_WRAPPER_LABELS,
956
+ Wn as Widget
952
957
  };
953
958
  //# sourceMappingURL=widgets-v2.js.map