@carto/ps-react-ui 4.9.0 → 4.9.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.
- package/dist/{change-column-Cidl_M-4.js → change-column-B4IT0rh6.js} +2 -2
- package/dist/{change-column-Cidl_M-4.js.map → change-column-B4IT0rh6.js.map} +1 -1
- package/dist/components.js +4 -3
- package/dist/components.js.map +1 -1
- package/dist/{data-zoom-layout-BH0LPwSy.js → data-zoom-layout-0QSptXG_.js} +2 -2
- package/dist/{data-zoom-layout-BH0LPwSy.js.map → data-zoom-layout-0QSptXG_.js.map} +1 -1
- package/dist/{download-config-DNLkypdN.js → download-config-CzmjOT2T.js} +2 -2
- package/dist/{download-config-DNLkypdN.js.map → download-config-CzmjOT2T.js.map} +1 -1
- package/dist/{lasso-tool-BYbxrJ-7.js → lasso-tool-CDFj4zKY.js} +2 -1
- package/dist/lasso-tool-CDFj4zKY.js.map +1 -0
- package/dist/{spread-CTuIXZSM.js → spread-Y9R1f5dm.js} +2 -2
- package/dist/{spread-CTuIXZSM.js.map → spread-Y9R1f5dm.js.map} +1 -1
- package/dist/types/components/lasso-tool/styles.d.ts +1 -0
- package/dist/types/components/measurement-tools/styles.d.ts +1 -0
- package/dist/types/widgets/actions/brush-toggle/style.d.ts +1 -1
- package/dist/types/widgets/actions/shared/styles.d.ts +1 -1
- package/dist/types/widgets/actions/zoom-toggle/style.d.ts +1 -1
- package/dist/types/widgets/echart/types.d.ts +1 -1
- package/dist/types/widgets/toolbar-actions/styles.d.ts +1 -1
- package/dist/types/widgets-v2/actions/brush-toggle/style.d.ts +1 -1
- package/dist/types/widgets-v2/actions/change-column/style.d.ts +1 -1
- package/dist/types/widgets-v2/actions/fullscreen/style.d.ts +1 -1
- package/dist/types/widgets-v2/actions/lock-selection/style.d.ts +1 -1
- package/dist/types/widgets-v2/actions/relative-data/style.d.ts +1 -1
- package/dist/types/widgets-v2/actions/searcher/style.d.ts +1 -1
- package/dist/types/widgets-v2/actions/stack-toggle/style.d.ts +1 -1
- package/dist/types/widgets-v2/actions/zoom-toggle/style.d.ts +1 -1
- package/dist/types/widgets-v2/wrapper/style.d.ts +1 -2
- package/dist/types/widgets-v2/wrapper/widget-wrapper.d.ts +6 -1
- package/dist/widgets/actions.js +1 -1
- package/dist/widgets/bar.js +1 -1
- package/dist/widgets/category.js +1 -1
- package/dist/widgets/formula.js +1 -1
- package/dist/widgets/histogram.js +1 -1
- package/dist/widgets/markdown.js +1 -1
- package/dist/widgets/pie.js +1 -1
- package/dist/widgets/scatterplot.js +1 -1
- package/dist/widgets/spread.js +1 -1
- package/dist/widgets/table.js +1 -1
- package/dist/widgets/timeseries.js +1 -1
- package/dist/widgets/utils.js +1 -1
- package/dist/widgets/wrapper.js +1 -1
- package/dist/widgets-v2/actions.js +1 -1
- package/dist/widgets-v2/bar.js +2 -2
- package/dist/widgets-v2/category.js +1 -1
- package/dist/widgets-v2/formula.js +1 -1
- package/dist/widgets-v2/histogram.js +2 -2
- package/dist/widgets-v2/markdown.js +1 -1
- package/dist/widgets-v2/pie.js +1 -1
- package/dist/widgets-v2/scatterplot.js +1 -1
- package/dist/widgets-v2/spread.js +2 -2
- package/dist/widgets-v2/table.js +1 -1
- package/dist/widgets-v2/timeseries.js +2 -2
- package/dist/widgets-v2/utils.js +1 -1
- package/dist/widgets-v2.js +227 -227
- package/dist/widgets-v2.js.map +1 -1
- package/package.json +3 -1
- package/src/components/lasso-tool/styles.ts +1 -0
- package/src/components/measurement-tools/styles.ts +1 -0
- package/src/widgets/echart/types.ts +1 -1
- package/src/widgets-v2/wrapper/style.ts +1 -2
- package/src/widgets-v2/wrapper/widget-wrapper.test.tsx +30 -0
- package/src/widgets-v2/wrapper/widget-wrapper.tsx +11 -1
- package/dist/lasso-tool-BYbxrJ-7.js.map +0 -1
package/dist/widgets-v2.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import { useState as
|
|
1
|
+
import { jsx as a, jsxs as G, Fragment as re } from "react/jsx-runtime";
|
|
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
4
|
import { W as Se, u as fe } from "./widget-context-DTGO0Yta.js";
|
|
5
|
-
import { j as we, i as
|
|
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";
|
|
6
6
|
import "zustand";
|
|
7
|
-
import { Box as
|
|
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";
|
|
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";
|
|
11
11
|
import Ge from "@mui/icons-material/Close";
|
|
12
12
|
import { WidgetOptions as qe } from "@carto/meridian-ds/custom-icons";
|
|
13
|
-
import "./lasso-tool-
|
|
13
|
+
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
17
|
import { o as Ze, a as Ke, E as Ye } from "./echart-CU0KmClP.js";
|
|
18
18
|
import { D as $n } from "./echart-CU0KmClP.js";
|
|
19
19
|
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-
|
|
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
21
|
import "html2canvas";
|
|
22
22
|
import "@mui/icons-material/ImageOutlined";
|
|
23
23
|
import { a as ft, F as pt } from "./formula-DuC0NQLH.js";
|
|
24
24
|
import "react-markdown";
|
|
25
|
-
import { b as ut, a as mt } from "./spread-
|
|
25
|
+
import { b as ut, a as mt } from "./spread-Y9R1f5dm.js";
|
|
26
26
|
import { a as gt, R as ht } from "./range-l4fNHLEg.js";
|
|
27
27
|
import { f as yt, C as xt } from "./category-DwaeYjpX.js";
|
|
28
28
|
import { c as bt, T as vt } from "./table-CQCAnDLb.js";
|
|
29
29
|
function St(t) {
|
|
30
|
-
const e =
|
|
30
|
+
const e = T(31), {
|
|
31
31
|
id: n,
|
|
32
32
|
data: r,
|
|
33
33
|
isLoading: o,
|
|
@@ -35,14 +35,14 @@ function St(t) {
|
|
|
35
35
|
error: s,
|
|
36
36
|
formatter: c,
|
|
37
37
|
labelFormatter: p,
|
|
38
|
-
keepAlive:
|
|
39
|
-
children:
|
|
40
|
-
} = t, f =
|
|
38
|
+
keepAlive: m,
|
|
39
|
+
children: u
|
|
40
|
+
} = t, f = m === void 0 ? !1 : m;
|
|
41
41
|
let g;
|
|
42
42
|
e[0] !== r || e[1] !== s || e[2] !== c || e[3] !== n || e[4] !== i || e[5] !== o || e[6] !== p ? (g = () => {
|
|
43
43
|
if (we(n))
|
|
44
|
-
return
|
|
45
|
-
const
|
|
44
|
+
return Ee(n);
|
|
45
|
+
const E = Ce(n, {
|
|
46
46
|
data: r,
|
|
47
47
|
isLoading: o,
|
|
48
48
|
isFetching: i,
|
|
@@ -50,50 +50,49 @@ function St(t) {
|
|
|
50
50
|
formatter: c,
|
|
51
51
|
labelFormatter: p
|
|
52
52
|
});
|
|
53
|
-
return Te(n,
|
|
53
|
+
return Te(n, E), E;
|
|
54
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
|
-
const [l] =
|
|
55
|
+
const [l] = V(g);
|
|
56
56
|
let d, h;
|
|
57
57
|
e[8] !== n || e[9] !== f || e[10] !== l ? (d = () => (ke(n, l), () => {
|
|
58
58
|
_e(n, {
|
|
59
59
|
keepAlive: f
|
|
60
60
|
});
|
|
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]),
|
|
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
62
|
let x, y;
|
|
63
63
|
e[13] !== r || e[14] !== l ? (x = () => {
|
|
64
64
|
l.setState({
|
|
65
65
|
rawData: r
|
|
66
66
|
});
|
|
67
|
-
}, y = [l, r], e[13] = r, e[14] = l, e[15] = x, e[16] = y) : (x = e[15], y = e[16]),
|
|
68
|
-
let
|
|
69
|
-
e[17] !== s || e[18] !== i || e[19] !== o || e[20] !== l ? (
|
|
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 = () => {
|
|
70
70
|
l.setState({
|
|
71
71
|
isLoading: o ?? !1,
|
|
72
72
|
isFetching: i ?? !1,
|
|
73
73
|
error: s
|
|
74
74
|
});
|
|
75
|
-
},
|
|
76
|
-
let
|
|
77
|
-
e[23] !== c || e[24] !== p || e[25] !== l ? (
|
|
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 = () => {
|
|
78
78
|
l.setState({
|
|
79
79
|
rawFormatter: c,
|
|
80
80
|
formatter: c,
|
|
81
81
|
labelFormatter: p
|
|
82
82
|
});
|
|
83
|
-
},
|
|
84
|
-
let
|
|
85
|
-
return e[28] !==
|
|
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;
|
|
86
86
|
}
|
|
87
|
-
const
|
|
87
|
+
const j = {
|
|
88
88
|
root: {
|
|
89
89
|
position: "relative",
|
|
90
90
|
width: "100%",
|
|
91
91
|
minWidth: 0,
|
|
92
92
|
bgcolor: "background.paper",
|
|
93
|
-
border: "1px solid",
|
|
94
|
-
borderColor: "divider",
|
|
95
93
|
borderRadius: 1,
|
|
96
94
|
overflow: "hidden",
|
|
95
|
+
boxShadow: "none",
|
|
97
96
|
// MUI Accordion ships its own collapsed-state divider rules; clear them
|
|
98
97
|
// so they don't fight our card border.
|
|
99
98
|
"&::before": {
|
|
@@ -232,104 +231,105 @@ const N = {
|
|
|
232
231
|
}
|
|
233
232
|
};
|
|
234
233
|
function ue(t) {
|
|
235
|
-
const e =
|
|
234
|
+
const e = T(5), {
|
|
236
235
|
sx: n,
|
|
237
236
|
children: r
|
|
238
237
|
} = t;
|
|
239
238
|
let o;
|
|
240
239
|
e[0] !== n ? (o = {
|
|
241
|
-
...
|
|
240
|
+
...j.actions,
|
|
242
241
|
...n
|
|
243
242
|
}, e[0] = n, e[1] = o) : o = e[1];
|
|
244
243
|
let i;
|
|
245
|
-
return e[2] !== r || e[3] !== o ? (i = /* @__PURE__ */ a(
|
|
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;
|
|
246
245
|
}
|
|
247
246
|
function wt(t) {
|
|
248
247
|
return t.stopPropagation();
|
|
249
248
|
}
|
|
250
249
|
function me(t) {
|
|
251
|
-
const e =
|
|
250
|
+
const e = T(5), {
|
|
252
251
|
sx: n,
|
|
253
252
|
children: r
|
|
254
253
|
} = t;
|
|
255
254
|
let o;
|
|
256
255
|
e[0] !== n ? (o = {
|
|
257
|
-
...
|
|
256
|
+
...j.options,
|
|
258
257
|
...n
|
|
259
258
|
}, e[0] = n, e[1] = o) : o = e[1];
|
|
260
259
|
let i;
|
|
261
|
-
return e[2] !== r || e[3] !== o ? (i = /* @__PURE__ */ a(
|
|
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;
|
|
262
261
|
}
|
|
263
|
-
function
|
|
262
|
+
function Et(t) {
|
|
264
263
|
return t.stopPropagation();
|
|
265
264
|
}
|
|
266
|
-
const
|
|
265
|
+
const Ct = {
|
|
267
266
|
collapse: "Collapse",
|
|
268
267
|
expand: "Expand",
|
|
269
268
|
errorFallbackTitle: "Widget failed to render"
|
|
270
269
|
};
|
|
271
270
|
function Tt(t) {
|
|
272
|
-
const e =
|
|
271
|
+
const e = T(35), {
|
|
273
272
|
title: n,
|
|
274
273
|
collapsed: r,
|
|
275
274
|
onCollapseChange: o,
|
|
276
275
|
defaultCollapsed: i,
|
|
277
276
|
disabled: s,
|
|
278
|
-
|
|
279
|
-
|
|
277
|
+
variant: c,
|
|
278
|
+
labels: p,
|
|
279
|
+
expandIcon: m,
|
|
280
280
|
iconProps: u,
|
|
281
|
-
sx:
|
|
282
|
-
children:
|
|
283
|
-
} = t,
|
|
284
|
-
let
|
|
285
|
-
e[0] !== o ? (
|
|
286
|
-
const
|
|
287
|
-
o?.(
|
|
288
|
-
}, e[0] = o, e[1] =
|
|
289
|
-
const
|
|
290
|
-
let w;
|
|
291
|
-
e[2] !== c ? (w = {
|
|
292
|
-
...Et,
|
|
293
|
-
...c
|
|
294
|
-
}, e[2] = c, e[3] = w) : w = e[3];
|
|
295
|
-
const D = w;
|
|
281
|
+
sx: f,
|
|
282
|
+
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
|
+
let E;
|
|
285
|
+
e[0] !== o ? (E = (H, N) => {
|
|
286
|
+
const Z = !N;
|
|
287
|
+
o?.(Z), k(Z);
|
|
288
|
+
}, e[0] = o, e[1] = E) : E = e[1];
|
|
289
|
+
const F = E;
|
|
296
290
|
let _;
|
|
297
|
-
e[
|
|
291
|
+
e[2] !== p ? (_ = {
|
|
292
|
+
...Ct,
|
|
293
|
+
...p
|
|
294
|
+
}, e[2] = p, e[3] = _) : _ = e[3];
|
|
295
|
+
const A = _;
|
|
296
|
+
let S;
|
|
297
|
+
e[4] !== g ? (S = _t(g), e[4] = g, e[5] = S) : S = e[5];
|
|
298
298
|
const {
|
|
299
|
-
summary:
|
|
300
|
-
details:
|
|
301
|
-
} =
|
|
302
|
-
let A;
|
|
303
|
-
e[6] !== m ? (A = {
|
|
304
|
-
...N.root,
|
|
305
|
-
...m
|
|
306
|
-
}, e[6] = m, e[7] = A) : A = e[7];
|
|
307
|
-
let P;
|
|
308
|
-
e[8] !== x ? (P = x ? /* @__PURE__ */ a(We, { sx: N.loading, color: "primary" }) : null, e[8] = x, e[9] = P) : P = e[9];
|
|
309
|
-
let F;
|
|
310
|
-
e[10] !== d || e[11] !== u ? (F = /* @__PURE__ */ a(d, { fontSize: "small", ...u }), e[10] = d, e[11] = u, e[12] = F) : F = e[12];
|
|
311
|
-
let B;
|
|
312
|
-
e[13] !== n ? (B = (j) => {
|
|
313
|
-
const {
|
|
314
|
-
ref: q
|
|
315
|
-
} = j;
|
|
316
|
-
return /* @__PURE__ */ a($, { sx: N.titleCell, children: /* @__PURE__ */ a(Z, { ref: q, variant: "subtitle1", sx: N.titleText, textTransform: "none", children: n }) });
|
|
317
|
-
}, e[13] = n, e[14] = B) : B = e[14];
|
|
299
|
+
summary: b,
|
|
300
|
+
details: q
|
|
301
|
+
} = S, ee = I ? A.expand : A.collapse, B = I ? "true" : void 0, X = !I;
|
|
318
302
|
let O;
|
|
319
|
-
e[
|
|
303
|
+
e[6] !== f ? (O = {
|
|
304
|
+
...j.root,
|
|
305
|
+
...f
|
|
306
|
+
}, e[6] = f, e[7] = O) : O = e[7];
|
|
320
307
|
let M;
|
|
321
|
-
e[
|
|
322
|
-
O,
|
|
323
|
-
I
|
|
324
|
-
] }), e[18] = b, e[19] = I, e[20] = F, e[21] = O, e[22] = M) : M = e[22];
|
|
325
|
-
let U;
|
|
326
|
-
e[23] !== C ? (U = /* @__PURE__ */ a(De, { sx: N.detail, children: C }), e[23] = C, e[24] = U) : U = e[24];
|
|
308
|
+
e[8] !== v ? (M = v ? /* @__PURE__ */ a(We, { sx: j.loading, color: "primary" }) : null, e[8] = v, e[9] = M) : M = e[9];
|
|
327
309
|
let R;
|
|
328
|
-
|
|
329
|
-
|
|
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
|
+
let P;
|
|
312
|
+
e[13] !== n ? (P = (H) => {
|
|
313
|
+
const {
|
|
314
|
+
ref: N
|
|
315
|
+
} = 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
|
+
}, e[13] = n, e[14] = P) : P = e[14];
|
|
318
|
+
let U;
|
|
319
|
+
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
|
+
let $;
|
|
326
|
+
e[23] !== q ? ($ = /* @__PURE__ */ a(De, { sx: j.detail, children: q }), e[23] = q, e[24] = $) : $ = e[24];
|
|
327
|
+
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: [
|
|
330
329
|
M,
|
|
331
|
-
|
|
332
|
-
|
|
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;
|
|
333
333
|
}
|
|
334
334
|
function kt(t) {
|
|
335
335
|
return t.isFetching;
|
|
@@ -347,30 +347,30 @@ function se(t, e) {
|
|
|
347
347
|
return ce(t) && t.type === e;
|
|
348
348
|
}
|
|
349
349
|
function It(t) {
|
|
350
|
-
const e =
|
|
350
|
+
const e = T(5), {
|
|
351
351
|
sx: n,
|
|
352
352
|
children: r
|
|
353
353
|
} = t;
|
|
354
354
|
let o;
|
|
355
355
|
e[0] !== n ? (o = {
|
|
356
|
-
...
|
|
356
|
+
...j.content,
|
|
357
357
|
...n
|
|
358
358
|
}, e[0] = n, e[1] = o) : o = e[1];
|
|
359
359
|
let i;
|
|
360
|
-
return e[2] !== r || e[3] !== o ? (i = /* @__PURE__ */ a(
|
|
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
361
|
}
|
|
362
362
|
function At(t) {
|
|
363
|
-
const e =
|
|
363
|
+
const e = T(5), {
|
|
364
364
|
sx: n,
|
|
365
365
|
children: r
|
|
366
366
|
} = t;
|
|
367
367
|
let o;
|
|
368
368
|
e[0] !== n ? (o = {
|
|
369
|
-
...
|
|
369
|
+
...j.footer,
|
|
370
370
|
...n
|
|
371
371
|
}, e[0] = n, e[1] = o) : o = e[1];
|
|
372
372
|
let i;
|
|
373
|
-
return e[2] !== r || e[3] !== o ? (i = /* @__PURE__ */ a(
|
|
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
374
|
}
|
|
375
375
|
const Lt = {
|
|
376
376
|
root: {
|
|
@@ -383,7 +383,7 @@ const Lt = {
|
|
|
383
383
|
}
|
|
384
384
|
};
|
|
385
385
|
function Wt(t) {
|
|
386
|
-
const e =
|
|
386
|
+
const e = T(5), {
|
|
387
387
|
sx: n,
|
|
388
388
|
children: r
|
|
389
389
|
} = t;
|
|
@@ -393,7 +393,7 @@ function Wt(t) {
|
|
|
393
393
|
...n
|
|
394
394
|
}, e[0] = n, e[1] = o) : o = e[1];
|
|
395
395
|
let i;
|
|
396
|
-
return e[2] !== r || e[3] !== o ? (i = /* @__PURE__ */ a(
|
|
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
397
|
}
|
|
398
398
|
const ge = {
|
|
399
399
|
emptyRoot: {
|
|
@@ -429,33 +429,33 @@ const ge = {
|
|
|
429
429
|
rawData: t.rawData
|
|
430
430
|
});
|
|
431
431
|
function Ft(t) {
|
|
432
|
-
const e =
|
|
432
|
+
const e = T(17), {
|
|
433
433
|
skeleton: n,
|
|
434
434
|
children: r,
|
|
435
435
|
isEmpty: o,
|
|
436
436
|
fallback: i,
|
|
437
437
|
labels: s
|
|
438
|
-
} = t, c = o === void 0 ? Rt : o, p = fe(),
|
|
439
|
-
let
|
|
440
|
-
e[0] !== s ? (
|
|
438
|
+
} = t, c = o === void 0 ? Rt : o, p = fe(), m = Ae(p, Dt);
|
|
439
|
+
let u;
|
|
440
|
+
e[0] !== s ? (u = {
|
|
441
441
|
...$t,
|
|
442
442
|
...s
|
|
443
|
-
}, e[0] = s, e[1] =
|
|
444
|
-
const f =
|
|
445
|
-
if (
|
|
443
|
+
}, e[0] = s, e[1] = u) : u = e[1];
|
|
444
|
+
const f = u;
|
|
445
|
+
if (m.isLoading) {
|
|
446
446
|
let d;
|
|
447
447
|
return e[2] !== n ? (d = /* @__PURE__ */ a(re, { children: n }), e[2] = n, e[3] = d) : d = e[3], d;
|
|
448
448
|
}
|
|
449
|
-
if (
|
|
449
|
+
if (m.error !== void 0 && m.error !== null) {
|
|
450
450
|
let d;
|
|
451
|
-
if (e[4] !== f || e[5] !== i || e[6] !==
|
|
452
|
-
const h = Pt(
|
|
453
|
-
d = i ? /* @__PURE__ */ a(re, { children: i(h) }) : /* @__PURE__ */ a(he, { error: h, labels: f }), e[4] = f, e[5] = i, e[6] =
|
|
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;
|
|
454
454
|
} else
|
|
455
455
|
d = e[7];
|
|
456
456
|
return d;
|
|
457
457
|
}
|
|
458
|
-
if (c(
|
|
458
|
+
if (c(m.rawData)) {
|
|
459
459
|
let d;
|
|
460
460
|
return e[8] !== f ? (d = /* @__PURE__ */ a(Ot, { labels: f }), e[8] = f, e[9] = d) : d = e[9], d;
|
|
461
461
|
}
|
|
@@ -465,7 +465,7 @@ function Ft(t) {
|
|
|
465
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
466
|
}
|
|
467
467
|
function Bt(t) {
|
|
468
|
-
const e =
|
|
468
|
+
const e = T(5), {
|
|
469
469
|
id: n,
|
|
470
470
|
children: r
|
|
471
471
|
} = t;
|
|
@@ -473,10 +473,10 @@ function Bt(t) {
|
|
|
473
473
|
e[0] !== n ? (o = (c) => Le(n, c), e[0] = n, e[1] = o) : o = e[1];
|
|
474
474
|
const i = o;
|
|
475
475
|
let s;
|
|
476
|
-
return e[2] !== r || e[3] !== i ? (s = /* @__PURE__ */ a(
|
|
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
477
|
}
|
|
478
478
|
function he(t) {
|
|
479
|
-
const e =
|
|
479
|
+
const e = T(8), {
|
|
480
480
|
error: n,
|
|
481
481
|
labels: r
|
|
482
482
|
} = t;
|
|
@@ -485,21 +485,21 @@ function he(t) {
|
|
|
485
485
|
let i;
|
|
486
486
|
e[2] !== n || e[3] !== r ? (i = r.errorMessage(n), e[2] = n, e[3] = r, e[4] = i) : i = e[4];
|
|
487
487
|
let s;
|
|
488
|
-
return e[5] !== o || e[6] !== i ? (s = /* @__PURE__ */
|
|
488
|
+
return e[5] !== o || e[6] !== i ? (s = /* @__PURE__ */ G(Oe, { severity: "error", children: [
|
|
489
489
|
o,
|
|
490
490
|
i
|
|
491
491
|
] }), e[5] = o, e[6] = i, e[7] = s) : s = e[7], s;
|
|
492
492
|
}
|
|
493
493
|
function Ot(t) {
|
|
494
|
-
const e =
|
|
494
|
+
const e = T(7), {
|
|
495
495
|
labels: n
|
|
496
496
|
} = t;
|
|
497
497
|
let r;
|
|
498
|
-
e[0] !== n.emptyTitle ? (r = /* @__PURE__ */ a(
|
|
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
499
|
let o;
|
|
500
|
-
e[2] !== n.emptyDescription ? (o = /* @__PURE__ */ a(
|
|
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
501
|
let i;
|
|
502
|
-
return e[4] !== r || e[5] !== o ? (i = /* @__PURE__ */
|
|
502
|
+
return e[4] !== r || e[5] !== o ? (i = /* @__PURE__ */ G(L, { sx: ge.emptyRoot, children: [
|
|
503
503
|
r,
|
|
504
504
|
o
|
|
505
505
|
] }), e[4] = r, e[5] = o, e[6] = i) : i = e[6], i;
|
|
@@ -552,7 +552,7 @@ const Ut = {
|
|
|
552
552
|
}
|
|
553
553
|
};
|
|
554
554
|
function Nt(t) {
|
|
555
|
-
const e =
|
|
555
|
+
const e = T(28), {
|
|
556
556
|
count: n,
|
|
557
557
|
total: r,
|
|
558
558
|
onClear: o,
|
|
@@ -562,37 +562,37 @@ function Nt(t) {
|
|
|
562
562
|
} = t;
|
|
563
563
|
if (r === 0)
|
|
564
564
|
return null;
|
|
565
|
-
let p,
|
|
565
|
+
let p, m, u, f, g, l, d, h;
|
|
566
566
|
if (e[0] !== s || e[1] !== n || e[2] !== c || e[3] !== i) {
|
|
567
567
|
h = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
568
568
|
e: {
|
|
569
|
-
if (
|
|
569
|
+
if (u = {
|
|
570
570
|
...Ut,
|
|
571
571
|
...i
|
|
572
572
|
}, n === 0) {
|
|
573
|
-
let
|
|
574
|
-
e[12] !== s || e[13] !== c ? (
|
|
575
|
-
|
|
576
|
-
/* @__PURE__ */ a(
|
|
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
577
|
] });
|
|
578
578
|
break e;
|
|
579
579
|
}
|
|
580
|
-
|
|
580
|
+
m = L, d = te.root, p = Y, f = "caption", g = te.label, l = u.selections(n);
|
|
581
581
|
}
|
|
582
|
-
e[0] = s, e[1] = n, e[2] = c, e[3] = i, e[4] = p, e[5] =
|
|
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;
|
|
583
583
|
} else
|
|
584
|
-
p = e[4],
|
|
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
585
|
if (h !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
|
|
586
586
|
return h;
|
|
587
587
|
let x;
|
|
588
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
589
|
let y;
|
|
590
|
-
e[20] !==
|
|
591
|
-
let
|
|
592
|
-
return e[23] !==
|
|
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: [
|
|
593
593
|
x,
|
|
594
594
|
y
|
|
595
|
-
] }), e[23] =
|
|
595
|
+
] }), e[23] = m, e[24] = d, e[25] = x, e[26] = y, e[27] = v) : v = e[27], v;
|
|
596
596
|
}
|
|
597
597
|
const jt = {
|
|
598
598
|
trigger: "More actions",
|
|
@@ -630,7 +630,7 @@ const jt = {
|
|
|
630
630
|
}
|
|
631
631
|
};
|
|
632
632
|
function zt(t) {
|
|
633
|
-
const e =
|
|
633
|
+
const e = T(44), {
|
|
634
634
|
visibleCount: n,
|
|
635
635
|
labels: r,
|
|
636
636
|
icon: o,
|
|
@@ -638,98 +638,98 @@ function zt(t) {
|
|
|
638
638
|
direction: s,
|
|
639
639
|
sx: c,
|
|
640
640
|
children: p
|
|
641
|
-
} = t,
|
|
641
|
+
} = t, m = o === void 0 ? qe : o, u = s === void 0 ? "right" : s;
|
|
642
642
|
let f;
|
|
643
643
|
e[0] !== r ? (f = {
|
|
644
644
|
...jt,
|
|
645
645
|
...r
|
|
646
646
|
}, e[0] = r, e[1] = f) : f = e[1];
|
|
647
|
-
const g = f, [l, d] =
|
|
648
|
-
let
|
|
649
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
650
|
-
const
|
|
651
|
-
let
|
|
652
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
653
|
-
x(
|
|
654
|
-
}, e[3] =
|
|
655
|
-
const
|
|
656
|
-
let _,
|
|
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;
|
|
651
|
+
let E;
|
|
652
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = (C) => {
|
|
653
|
+
x(C);
|
|
654
|
+
}, e[3] = E) : E = e[3];
|
|
655
|
+
const F = E;
|
|
656
|
+
let _, A;
|
|
657
657
|
e[4] !== l ? (_ = () => {
|
|
658
658
|
if (!l)
|
|
659
659
|
return;
|
|
660
|
-
const
|
|
661
|
-
|
|
660
|
+
const C = (J) => {
|
|
661
|
+
J.key === "Escape" && d(!1);
|
|
662
662
|
};
|
|
663
|
-
return document.addEventListener("keydown",
|
|
664
|
-
},
|
|
665
|
-
const [
|
|
666
|
-
let b,
|
|
667
|
-
e[7] !== p ? (b = ae.toArray(p).filter(Vt),
|
|
668
|
-
const
|
|
669
|
-
let
|
|
663
|
+
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
|
+
const B = n !== void 0 && q > n;
|
|
669
|
+
let X;
|
|
670
670
|
e: {
|
|
671
|
-
if (!
|
|
672
|
-
|
|
671
|
+
if (!B || n === void 0) {
|
|
672
|
+
X = null;
|
|
673
673
|
break e;
|
|
674
674
|
}
|
|
675
|
-
let
|
|
676
|
-
e[10] !== b || e[11] !== n ? (
|
|
675
|
+
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;
|
|
677
677
|
}
|
|
678
|
-
const
|
|
679
|
-
!
|
|
680
|
-
let
|
|
681
|
-
if (e[13] !==
|
|
682
|
-
const
|
|
683
|
-
|
|
684
|
-
},
|
|
678
|
+
const O = X;
|
|
679
|
+
!B && l && d(!1);
|
|
680
|
+
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;
|
|
683
|
+
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)
|
|
685
685
|
return null;
|
|
686
|
-
const
|
|
687
|
-
let
|
|
688
|
-
e[19] !== U || e[20] !== c ? (
|
|
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 = {
|
|
689
689
|
...ne.root,
|
|
690
690
|
flexDirection: U,
|
|
691
691
|
...c
|
|
692
|
-
}, e[19] = U, e[20] = c, e[21] =
|
|
693
|
-
let
|
|
694
|
-
e[22] !==
|
|
695
|
-
/* @__PURE__ */ a(Xe, { title:
|
|
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
696
|
...l && ne.triggerActive
|
|
697
|
-
}, children: l ? /* @__PURE__ */ a(Ge, { fontSize: "small" }) : /* @__PURE__ */ a(
|
|
697
|
+
}, children: l ? /* @__PURE__ */ a(Ge, { fontSize: "small" }) : /* @__PURE__ */ a(m, { fontSize: "small", ...i }) }) }),
|
|
698
698
|
/* @__PURE__ */ a(Pe, { orientation: "vertical", flexItem: !0, sx: {
|
|
699
699
|
mx: 0.5
|
|
700
700
|
} })
|
|
701
|
-
] }), e[22] =
|
|
702
|
-
let q;
|
|
703
|
-
e[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = /* @__PURE__ */ a($, { ref: E, sx: ne.preview }), e[28] = q) : q = e[28];
|
|
701
|
+
] }), e[22] = m, e[23] = i, e[24] = l, e[25] = B, e[26] = P, e[27] = $) : $ = e[27];
|
|
704
702
|
let z;
|
|
705
|
-
e[
|
|
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];
|
|
704
|
+
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: [{
|
|
706
706
|
name: "flip",
|
|
707
707
|
enabled: !1
|
|
708
708
|
}], sx: {
|
|
709
709
|
zIndex: "tooltip",
|
|
710
710
|
mt: 0
|
|
711
|
-
}, children: (
|
|
711
|
+
}, children: (C) => {
|
|
712
712
|
const {
|
|
713
|
-
TransitionProps:
|
|
714
|
-
} =
|
|
715
|
-
return /* @__PURE__ */ a(Ne, { ...
|
|
716
|
-
transformOrigin:
|
|
717
|
-
}, children: /* @__PURE__ */ a(je, { ref:
|
|
718
|
-
} }), e[29] = h, e[30] =
|
|
719
|
-
let
|
|
720
|
-
e[34] !==
|
|
721
|
-
const le = l || !
|
|
713
|
+
TransitionProps: J
|
|
714
|
+
} = C;
|
|
715
|
+
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];
|
|
719
|
+
let N;
|
|
720
|
+
e[34] !== S || e[35] !== O || e[36] !== b || e[37] !== l ? (N = S ? Ve(b.map((C, J) => {
|
|
721
|
+
const le = l || !O || O.has(J), xe = C.key ?? J;
|
|
722
722
|
return /* @__PURE__ */ a("div", { "data-toolbox-item-visible": le ? "true" : "false", style: {
|
|
723
723
|
display: le ? "contents" : "none"
|
|
724
|
-
}, children:
|
|
725
|
-
}),
|
|
726
|
-
let
|
|
727
|
-
return e[39] !==
|
|
728
|
-
|
|
729
|
-
q,
|
|
724
|
+
}, 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
|
+
$,
|
|
730
729
|
z,
|
|
731
|
-
|
|
732
|
-
|
|
730
|
+
H,
|
|
731
|
+
N
|
|
732
|
+
] }), e[39] = W, e[40] = $, e[41] = H, e[42] = N, e[43] = Z) : Z = e[43], Z;
|
|
733
733
|
}
|
|
734
734
|
function Ht(t, e) {
|
|
735
735
|
return t + (ie(e) ? 0 : 1);
|
|
@@ -787,8 +787,8 @@ const Zt = {
|
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
789
|
};
|
|
790
|
-
function
|
|
791
|
-
const e =
|
|
790
|
+
function K(t) {
|
|
791
|
+
const e = T(3), {
|
|
792
792
|
children: n
|
|
793
793
|
} = t;
|
|
794
794
|
let r;
|
|
@@ -796,18 +796,18 @@ function X(t) {
|
|
|
796
796
|
m: 0
|
|
797
797
|
}, e[0] = r) : r = e[0];
|
|
798
798
|
let o;
|
|
799
|
-
return e[1] !== n ? (o = /* @__PURE__ */ a(
|
|
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;
|
|
800
800
|
}
|
|
801
801
|
const Kt = {
|
|
802
802
|
// Headings demoted to caption typography — a Note can't introduce a
|
|
803
803
|
// heading into the page outline.
|
|
804
|
-
h1:
|
|
805
|
-
h2:
|
|
806
|
-
h3:
|
|
807
|
-
h4:
|
|
808
|
-
h5:
|
|
809
|
-
h6:
|
|
810
|
-
p:
|
|
804
|
+
h1: K,
|
|
805
|
+
h2: K,
|
|
806
|
+
h3: K,
|
|
807
|
+
h4: K,
|
|
808
|
+
h5: K,
|
|
809
|
+
h6: K,
|
|
810
|
+
p: K,
|
|
811
811
|
// External-safe link defaults; inherit colour from the muted caption.
|
|
812
812
|
a: ({
|
|
813
813
|
children: t,
|
|
@@ -815,18 +815,18 @@ const Kt = {
|
|
|
815
815
|
}) => /* @__PURE__ */ a(pe, { href: e, target: "_blank", rel: "noopener noreferrer", color: "inherit", underline: "always", children: t })
|
|
816
816
|
};
|
|
817
817
|
function Yt(t) {
|
|
818
|
-
const e =
|
|
818
|
+
const e = T(7), {
|
|
819
819
|
lineClamp: n,
|
|
820
820
|
labels: r,
|
|
821
821
|
children: o
|
|
822
822
|
} = t, i = n === void 0 ? 3 : n;
|
|
823
823
|
let s;
|
|
824
|
-
e[0] !== o ? (s = /* @__PURE__ */ a(
|
|
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];
|
|
825
825
|
let c;
|
|
826
826
|
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
827
|
}
|
|
828
828
|
function Jt(t) {
|
|
829
|
-
const e =
|
|
829
|
+
const e = T(7), {
|
|
830
830
|
content: n,
|
|
831
831
|
lineClamp: r,
|
|
832
832
|
labels: o
|
|
@@ -840,7 +840,7 @@ const Qt = Object.assign(Yt, {
|
|
|
840
840
|
Markdown: Jt
|
|
841
841
|
});
|
|
842
842
|
function ye(t) {
|
|
843
|
-
const e =
|
|
843
|
+
const e = T(27), {
|
|
844
844
|
lineClamp: n,
|
|
845
845
|
labels: r,
|
|
846
846
|
dependency: o,
|
|
@@ -851,11 +851,11 @@ function ye(t) {
|
|
|
851
851
|
...Zt,
|
|
852
852
|
...r
|
|
853
853
|
}, e[0] = r, e[1] = s) : s = e[1];
|
|
854
|
-
const c = s, p = ve(null), [
|
|
854
|
+
const c = s, p = ve(null), [m, u] = V(!1), [f, g] = V(!1), l = n <= 0;
|
|
855
855
|
let d;
|
|
856
856
|
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = () => {
|
|
857
857
|
const b = p.current;
|
|
858
|
-
b &&
|
|
858
|
+
b && u(b.scrollHeight > b.clientHeight + 1);
|
|
859
859
|
}, e[2] = d) : d = e[2];
|
|
860
860
|
const h = d;
|
|
861
861
|
let x;
|
|
@@ -868,31 +868,31 @@ function ye(t) {
|
|
|
868
868
|
}, e[3] = l, e[4] = x) : x = e[4];
|
|
869
869
|
let y;
|
|
870
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
|
|
872
|
-
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
873
|
-
const
|
|
874
|
-
let
|
|
875
|
-
e[9] !==
|
|
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 ? {
|
|
876
876
|
...oe.clamped,
|
|
877
877
|
WebkitLineClamp: n
|
|
878
|
-
} : null, e[9] =
|
|
879
|
-
const
|
|
880
|
-
let
|
|
881
|
-
e[12] !==
|
|
882
|
-
let
|
|
883
|
-
e[14] !==
|
|
878
|
+
} : null, e[9] = D, e[10] = n, e[11] = k) : k = e[11];
|
|
879
|
+
const I = k;
|
|
880
|
+
let E;
|
|
881
|
+
e[12] !== I ? (E = I ?? {}, e[12] = I, e[13] = E) : E = e[13];
|
|
882
|
+
let F;
|
|
883
|
+
e[14] !== E ? (F = {
|
|
884
884
|
...oe.text,
|
|
885
|
-
...
|
|
886
|
-
}, e[14] =
|
|
885
|
+
...E
|
|
886
|
+
}, e[14] = E, e[15] = F) : F = e[15];
|
|
887
887
|
let _;
|
|
888
|
-
e[16] !== i || e[17] !==
|
|
889
|
-
let
|
|
890
|
-
e[19] !== c || e[20] !== l || e[21] !== f || e[22] !==
|
|
891
|
-
let
|
|
892
|
-
return e[24] !==
|
|
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];
|
|
891
|
+
let S;
|
|
892
|
+
return e[24] !== A || e[25] !== _ ? (S = /* @__PURE__ */ G(L, { sx: oe.root, children: [
|
|
893
893
|
_,
|
|
894
|
-
|
|
895
|
-
] }), e[24] =
|
|
894
|
+
A
|
|
895
|
+
] }), e[24] = A, e[25] = _, e[26] = S) : S = e[26], S;
|
|
896
896
|
}
|
|
897
897
|
function en(t) {
|
|
898
898
|
return !t;
|
|
@@ -947,7 +947,7 @@ export {
|
|
|
947
947
|
Ut as DEFAULT_SELECTION_SUMMARY_LABELS,
|
|
948
948
|
$t as DEFAULT_STATE_LABELS,
|
|
949
949
|
jt as DEFAULT_TOOLBOX_LABELS,
|
|
950
|
-
|
|
950
|
+
Ct as DEFAULT_WRAPPER_LABELS,
|
|
951
951
|
An as Widget
|
|
952
952
|
};
|
|
953
953
|
//# sourceMappingURL=widgets-v2.js.map
|