@carto/ps-react-ui 4.11.1 → 4.11.3
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/echart-BMPpj7n_.js +250 -0
- package/dist/echart-BMPpj7n_.js.map +1 -0
- package/dist/types/widgets-v2/echart/edge-label-clamp.d.ts +57 -0
- package/dist/types/widgets-v2/echart/edge-label-clamp.test.d.ts +1 -0
- package/dist/types/widgets-v2/wrapper/style.d.ts +5 -12
- package/dist/widgets-v2/bar.js +87 -99
- package/dist/widgets-v2/bar.js.map +1 -1
- package/dist/widgets-v2/echart.js +1 -1
- package/dist/widgets-v2/histogram.js +96 -107
- package/dist/widgets-v2/histogram.js.map +1 -1
- package/dist/widgets-v2/timeseries.js +104 -116
- package/dist/widgets-v2/timeseries.js.map +1 -1
- package/dist/widgets-v2.js +248 -244
- package/dist/widgets-v2.js.map +1 -1
- package/package.json +1 -1
- package/src/widgets-v2/bar/options.test.ts +31 -4
- package/src/widgets-v2/bar/options.ts +18 -22
- package/src/widgets-v2/echart/echart-ui.test.tsx +70 -0
- package/src/widgets-v2/echart/echart-ui.tsx +28 -0
- package/src/widgets-v2/echart/edge-label-clamp.test.ts +198 -0
- package/src/widgets-v2/echart/edge-label-clamp.ts +216 -0
- package/src/widgets-v2/histogram/options.test.ts +11 -4
- package/src/widgets-v2/histogram/options.ts +17 -21
- package/src/widgets-v2/timeseries/options.test.ts +9 -4
- package/src/widgets-v2/timeseries/options.ts +17 -22
- package/src/widgets-v2/wrapper/style.ts +13 -18
- package/src/widgets-v2/wrapper/widget-wrapper.test.tsx +66 -0
- package/src/widgets-v2/wrapper/widget-wrapper.tsx +7 -4
- package/dist/echart-CU0KmClP.js +0 -176
- package/dist/echart-CU0KmClP.js.map +0 -1
package/dist/widgets-v2.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as a, jsxs as G, Fragment as
|
|
1
|
+
import { jsx as a, jsxs as G, Fragment as ie } from "react/jsx-runtime";
|
|
2
2
|
import { c as T } from "react/compiler-runtime";
|
|
3
|
-
import { useState as V, useLayoutEffect as
|
|
4
|
-
import { W as Se, u 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
|
|
3
|
+
import { useState as V, useLayoutEffect as te, 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 Le, s as Ae } from "./widget-store-registry-_W4Z4xp-.js";
|
|
6
6
|
import "zustand";
|
|
7
|
-
import { Box as W, LinearProgress as We, Typography as
|
|
7
|
+
import { Box as W, LinearProgress as We, Typography as Z, AccordionSummary as $e, AccordionDetails as De, Accordion as Fe, AlertTitle as Be, Alert as Oe, Button as Re, IconButton as Me, Divider as Pe, Popper as Ue, Grow as Ne, Paper as je, Link as pe } from "@mui/material";
|
|
8
8
|
import { ExpandMore as ze, Close as He } from "@mui/icons-material";
|
|
9
9
|
import { S as Ve } from "./smart-tooltip-D4vwQpFf.js";
|
|
10
10
|
import { createPortal as Ge } from "react-dom";
|
|
@@ -13,12 +13,12 @@ import "./lasso-tool-CDFj4zKY.js";
|
|
|
13
13
|
import "./cjs-D4KH3azB.js";
|
|
14
14
|
import { T as Xe } from "./tooltip-BDnrRKrp.js";
|
|
15
15
|
import "@carto/ps-utils";
|
|
16
|
-
import { o as Ze, a as Ke, E as Ye } from "./echart-
|
|
17
|
-
import { D as Wn } from "./echart-
|
|
16
|
+
import { o as Ze, a as Ke, E as Ye } from "./echart-BMPpj7n_.js";
|
|
17
|
+
import { D as Wn } from "./echart-BMPpj7n_.js";
|
|
18
18
|
import { a as Je, b as Qe, M as et } from "./markdown-BD1jcknS.js";
|
|
19
|
-
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
|
|
19
|
+
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 ft } from "./change-column-DjjwoPt1.js";
|
|
20
20
|
import "html2canvas";
|
|
21
|
-
import { a as
|
|
21
|
+
import { a as pt, F as mt } from "./formula-DuC0NQLH.js";
|
|
22
22
|
import "react-markdown";
|
|
23
23
|
import { b as ut, a as gt } from "./spread-DYNpzgh_.js";
|
|
24
24
|
import { a as ht, R as yt } from "./range-l4fNHLEg.js";
|
|
@@ -31,56 +31,56 @@ function wt(t) {
|
|
|
31
31
|
isLoading: o,
|
|
32
32
|
isFetching: i,
|
|
33
33
|
error: s,
|
|
34
|
-
formatter:
|
|
35
|
-
labelFormatter:
|
|
34
|
+
formatter: d,
|
|
35
|
+
labelFormatter: p,
|
|
36
36
|
keepAlive: u,
|
|
37
37
|
children: m
|
|
38
|
-
} = t,
|
|
38
|
+
} = t, f = u === void 0 ? !1 : u;
|
|
39
39
|
let g;
|
|
40
|
-
e[0] !== r || e[1] !== s || e[2] !==
|
|
40
|
+
e[0] !== r || e[1] !== s || e[2] !== d || e[3] !== n || e[4] !== i || e[5] !== o || e[6] !== p ? (g = () => {
|
|
41
41
|
if (we(n))
|
|
42
42
|
return Ee(n);
|
|
43
|
-
const
|
|
43
|
+
const C = Ce(n, {
|
|
44
44
|
data: r,
|
|
45
45
|
isLoading: o,
|
|
46
46
|
isFetching: i,
|
|
47
47
|
error: s,
|
|
48
|
-
formatter:
|
|
49
|
-
labelFormatter:
|
|
48
|
+
formatter: d,
|
|
49
|
+
labelFormatter: p
|
|
50
50
|
});
|
|
51
|
-
return Te(n,
|
|
52
|
-
}, e[0] = r, e[1] = s, e[2] =
|
|
51
|
+
return Te(n, C), C;
|
|
52
|
+
}, e[0] = r, e[1] = s, e[2] = d, e[3] = n, e[4] = i, e[5] = o, e[6] = p, e[7] = g) : g = e[7];
|
|
53
53
|
const [l] = V(g);
|
|
54
|
-
let
|
|
55
|
-
e[8] !== n || e[9] !==
|
|
54
|
+
let c, h;
|
|
55
|
+
e[8] !== n || e[9] !== f || e[10] !== l ? (c = () => (ke(n, l), () => {
|
|
56
56
|
_e(n, {
|
|
57
|
-
keepAlive:
|
|
57
|
+
keepAlive: f
|
|
58
58
|
});
|
|
59
|
-
}), h = [n, l,
|
|
59
|
+
}), h = [n, l, f], e[8] = n, e[9] = f, e[10] = l, e[11] = c, e[12] = h) : (c = e[11], h = e[12]), te(c, h);
|
|
60
60
|
let y, x;
|
|
61
61
|
e[13] !== r || e[14] !== l ? (y = () => {
|
|
62
62
|
l.setState({
|
|
63
63
|
rawData: r
|
|
64
64
|
});
|
|
65
|
-
}, x = [l, r], e[13] = r, e[14] = l, e[15] = y, e[16] = x) : (y = e[15], x = e[16]),
|
|
66
|
-
let b,
|
|
65
|
+
}, x = [l, r], e[13] = r, e[14] = l, e[15] = y, e[16] = x) : (y = e[15], x = e[16]), te(y, x);
|
|
66
|
+
let b, E;
|
|
67
67
|
e[17] !== s || e[18] !== i || e[19] !== o || e[20] !== l ? (b = () => {
|
|
68
68
|
l.setState({
|
|
69
69
|
isLoading: o ?? !1,
|
|
70
70
|
isFetching: i ?? !1,
|
|
71
71
|
error: s
|
|
72
72
|
});
|
|
73
|
-
},
|
|
73
|
+
}, E = [l, o, i, s], e[17] = s, e[18] = i, e[19] = o, e[20] = l, e[21] = b, e[22] = E) : (b = e[21], E = e[22]), te(b, E);
|
|
74
74
|
let k, _;
|
|
75
|
-
e[23] !==
|
|
75
|
+
e[23] !== d || e[24] !== p || e[25] !== l ? (_ = () => {
|
|
76
76
|
l.setState({
|
|
77
|
-
rawFormatter:
|
|
78
|
-
formatter:
|
|
79
|
-
labelFormatter:
|
|
77
|
+
rawFormatter: d,
|
|
78
|
+
formatter: d,
|
|
79
|
+
labelFormatter: p
|
|
80
80
|
});
|
|
81
|
-
}, k = [l,
|
|
82
|
-
let
|
|
83
|
-
return e[28] !== m || e[29] !== n ? (
|
|
81
|
+
}, k = [l, d, p], e[23] = d, e[24] = p, e[25] = l, e[26] = k, e[27] = _) : (k = e[26], _ = e[27]), te(_, k);
|
|
82
|
+
let L;
|
|
83
|
+
return e[28] !== m || e[29] !== n ? (L = /* @__PURE__ */ a(Se.Provider, { value: n, children: m }), e[28] = m, e[29] = n, e[30] = L) : L = e[30], L;
|
|
84
84
|
}
|
|
85
85
|
const j = {
|
|
86
86
|
root: {
|
|
@@ -131,23 +131,6 @@ const j = {
|
|
|
131
131
|
"&.active": {
|
|
132
132
|
opacity: 1
|
|
133
133
|
}
|
|
134
|
-
},
|
|
135
|
-
// Disabled state — only block interaction; keep visuals unchanged.
|
|
136
|
-
// MUI's default `.Mui-disabled` rules dim the AccordionSummary's color
|
|
137
|
-
// and add a faded background; we override them so the wrapper looks
|
|
138
|
-
// identical to its enabled form. The single behavioral change is
|
|
139
|
-
// `pointer-events: none`, which propagates to every descendant.
|
|
140
|
-
"&.Mui-disabled": {
|
|
141
|
-
pointerEvents: "none",
|
|
142
|
-
bgcolor: "background.paper",
|
|
143
|
-
"& .MuiAccordionSummary-root.Mui-disabled": {
|
|
144
|
-
opacity: 1,
|
|
145
|
-
color: "inherit",
|
|
146
|
-
backgroundColor: "transparent"
|
|
147
|
-
},
|
|
148
|
-
"& .MuiAccordionSummary-expandIconWrapper": {
|
|
149
|
-
display: "none"
|
|
150
|
-
}
|
|
151
134
|
}
|
|
152
135
|
},
|
|
153
136
|
loading: {
|
|
@@ -174,6 +157,19 @@ const j = {
|
|
|
174
157
|
alignItems: "center"
|
|
175
158
|
}
|
|
176
159
|
},
|
|
160
|
+
// Disabled state — only the collapse toggle is inert (enforced by the
|
|
161
|
+
// guarded `onChange` handler, not `pointer-events`). Actions and Options in
|
|
162
|
+
// the summary row, and the details panel, all keep their events. We just
|
|
163
|
+
// drop the toggle affordance: hide the chevron (handled in the component)
|
|
164
|
+
// and clear the pointer cursor. MUI's AccordionSummary sets
|
|
165
|
+
// `cursor: pointer` via `&:hover:not(.Mui-disabled)` — a two-class selector
|
|
166
|
+
// that outranks a plain `cursor` rule — so we override at matching
|
|
167
|
+
// specificity. Action/Option buttons restore their own pointer cursor.
|
|
168
|
+
summaryDisabled: {
|
|
169
|
+
"&, &:hover:not(.Mui-disabled)": {
|
|
170
|
+
cursor: "default"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
177
173
|
titleCell: {
|
|
178
174
|
flexGrow: 1,
|
|
179
175
|
flexShrink: 1,
|
|
@@ -266,68 +262,76 @@ const Tt = {
|
|
|
266
262
|
errorFallbackTitle: "Widget failed to render"
|
|
267
263
|
};
|
|
268
264
|
function kt(t) {
|
|
269
|
-
const e = T(
|
|
265
|
+
const e = T(40), {
|
|
270
266
|
title: n,
|
|
271
267
|
collapsed: r,
|
|
272
268
|
onCollapseChange: o,
|
|
273
269
|
defaultCollapsed: i,
|
|
274
270
|
disabled: s,
|
|
275
|
-
variant:
|
|
276
|
-
labels:
|
|
271
|
+
variant: d,
|
|
272
|
+
labels: p,
|
|
277
273
|
expandIcon: u,
|
|
278
274
|
iconProps: m,
|
|
279
|
-
sx:
|
|
275
|
+
sx: f,
|
|
280
276
|
children: g
|
|
281
|
-
} = t, l = i === void 0 ? !1 : i,
|
|
282
|
-
let
|
|
283
|
-
e[0] !== o ? (
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
277
|
+
} = t, l = i === void 0 ? !1 : i, c = s === void 0 ? !1 : s, h = d === void 0 ? "elevation" : d, y = u === void 0 ? ze : u, x = fe(), b = Ie(x, _t), E = r !== void 0, [k, _] = V(l), L = E ? r : k;
|
|
278
|
+
let C;
|
|
279
|
+
e[0] !== c || e[1] !== o ? (C = (S, z) => {
|
|
280
|
+
if (c)
|
|
281
|
+
return;
|
|
282
|
+
const Q = !z;
|
|
283
|
+
o?.(Q), _(Q);
|
|
284
|
+
}, e[0] = c, e[1] = o, e[2] = C) : C = e[2];
|
|
285
|
+
const O = C;
|
|
288
286
|
let I;
|
|
289
|
-
e[
|
|
287
|
+
e[3] !== p ? (I = {
|
|
290
288
|
...Tt,
|
|
291
|
-
...
|
|
292
|
-
}, e[
|
|
293
|
-
const
|
|
294
|
-
let
|
|
295
|
-
e[
|
|
289
|
+
...p
|
|
290
|
+
}, e[3] = p, e[4] = I) : I = e[4];
|
|
291
|
+
const A = I;
|
|
292
|
+
let w;
|
|
293
|
+
e[5] !== g ? (w = It(g), e[5] = g, e[6] = w) : w = e[6];
|
|
296
294
|
const {
|
|
297
295
|
summary: v,
|
|
298
296
|
details: q
|
|
299
|
-
} =
|
|
300
|
-
let O;
|
|
301
|
-
e[6] !== p ? (O = {
|
|
302
|
-
...j.root,
|
|
303
|
-
...p
|
|
304
|
-
}, e[6] = p, e[7] = O) : O = e[7];
|
|
297
|
+
} = w, ne = L ? A.expand : A.collapse, R = L ? "true" : void 0, K = !L;
|
|
305
298
|
let M;
|
|
306
|
-
e[
|
|
307
|
-
|
|
308
|
-
|
|
299
|
+
e[7] !== f ? (M = {
|
|
300
|
+
...j.root,
|
|
301
|
+
...f
|
|
302
|
+
}, e[7] = f, e[8] = M) : M = e[8];
|
|
309
303
|
let P;
|
|
310
|
-
e[
|
|
311
|
-
const {
|
|
312
|
-
ref: N
|
|
313
|
-
} = H;
|
|
314
|
-
return /* @__PURE__ */ a(W, { sx: j.titleCell, children: /* @__PURE__ */ a(X, { ref: N, variant: "subtitle1", sx: j.titleText, textTransform: "none", children: n }) });
|
|
315
|
-
}, e[13] = n, e[14] = P) : P = e[14];
|
|
304
|
+
e[9] !== b ? (P = b ? /* @__PURE__ */ a(We, { sx: j.loading, color: "primary" }) : null, e[9] = b, e[10] = P) : P = e[10];
|
|
316
305
|
let U;
|
|
317
|
-
e[
|
|
306
|
+
e[11] !== y || e[12] !== c || e[13] !== m ? (U = c ? null : /* @__PURE__ */ a(y, { fontSize: "small", ...m }), e[11] = y, e[12] = c, e[13] = m, e[14] = U) : U = e[14];
|
|
307
|
+
const X = c || void 0, Y = c ? j.summaryDisabled : null;
|
|
318
308
|
let $;
|
|
319
|
-
e[
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
309
|
+
e[15] !== Y ? ($ = {
|
|
310
|
+
...j.summary,
|
|
311
|
+
...Y
|
|
312
|
+
}, e[15] = Y, e[16] = $) : $ = e[16];
|
|
323
313
|
let D;
|
|
324
|
-
e[
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
314
|
+
e[17] !== n ? (D = (S) => {
|
|
315
|
+
const {
|
|
316
|
+
ref: z
|
|
317
|
+
} = S;
|
|
318
|
+
return /* @__PURE__ */ a(W, { sx: j.titleCell, children: /* @__PURE__ */ a(Z, { ref: z, variant: "subtitle1", sx: j.titleText, textTransform: "none", children: n }) });
|
|
319
|
+
}, e[17] = n, e[18] = D) : D = e[18];
|
|
320
|
+
let N;
|
|
321
|
+
e[19] !== D || e[20] !== n ? (N = /* @__PURE__ */ a(Ve, { title: n, children: D }), e[19] = D, e[20] = n, e[21] = N) : N = e[21];
|
|
322
|
+
let F;
|
|
323
|
+
e[22] !== ne || e[23] !== v || e[24] !== U || e[25] !== X || e[26] !== $ || e[27] !== N ? (F = /* @__PURE__ */ G($e, { expandIcon: U, "aria-label": ne, "aria-disabled": X, sx: $, children: [
|
|
324
|
+
N,
|
|
325
|
+
v
|
|
326
|
+
] }), e[22] = ne, e[23] = v, e[24] = U, e[25] = X, e[26] = $, e[27] = N, e[28] = F) : F = e[28];
|
|
327
|
+
let B;
|
|
328
|
+
e[29] !== q ? (B = /* @__PURE__ */ a(De, { sx: j.detail, children: q }), e[29] = q, e[30] = B) : B = e[30];
|
|
329
|
+
let H;
|
|
330
|
+
return e[31] !== O || e[32] !== M || e[33] !== P || e[34] !== F || e[35] !== B || e[36] !== R || e[37] !== K || e[38] !== h ? (H = /* @__PURE__ */ G(Fe, { "data-collapsed": R, expanded: K, onChange: O, disableGutters: !0, elevation: 0, variant: h, square: !0, sx: M, children: [
|
|
331
|
+
P,
|
|
332
|
+
F,
|
|
333
|
+
B
|
|
334
|
+
] }), e[31] = O, e[32] = M, e[33] = P, e[34] = F, e[35] = B, e[36] = R, e[37] = K, e[38] = h, e[39] = H) : H = e[39], H;
|
|
331
335
|
}
|
|
332
336
|
function _t(t) {
|
|
333
337
|
return t.isFetching;
|
|
@@ -344,7 +348,7 @@ function It(t) {
|
|
|
344
348
|
function se(t, e) {
|
|
345
349
|
return ce(t) && t.type === e;
|
|
346
350
|
}
|
|
347
|
-
function
|
|
351
|
+
function Lt(t) {
|
|
348
352
|
const e = T(5), {
|
|
349
353
|
sx: n,
|
|
350
354
|
children: r
|
|
@@ -357,7 +361,7 @@ function At(t) {
|
|
|
357
361
|
let i;
|
|
358
362
|
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;
|
|
359
363
|
}
|
|
360
|
-
function
|
|
364
|
+
function At(t) {
|
|
361
365
|
const e = T(5), {
|
|
362
366
|
sx: n,
|
|
363
367
|
children: r
|
|
@@ -433,34 +437,34 @@ function Bt(t) {
|
|
|
433
437
|
isEmpty: o,
|
|
434
438
|
fallback: i,
|
|
435
439
|
labels: s
|
|
436
|
-
} = t,
|
|
440
|
+
} = t, d = o === void 0 ? Pt : o, p = fe(), u = Le(p, Ft);
|
|
437
441
|
let m;
|
|
438
442
|
e[0] !== s ? (m = {
|
|
439
443
|
...Dt,
|
|
440
444
|
...s
|
|
441
445
|
}, e[0] = s, e[1] = m) : m = e[1];
|
|
442
|
-
const
|
|
446
|
+
const f = m;
|
|
443
447
|
if (u.isLoading) {
|
|
444
|
-
let
|
|
445
|
-
return e[2] !== n ? (
|
|
448
|
+
let c;
|
|
449
|
+
return e[2] !== n ? (c = /* @__PURE__ */ a(ie, { children: n }), e[2] = n, e[3] = c) : c = e[3], c;
|
|
446
450
|
}
|
|
447
451
|
if (u.error !== void 0 && u.error !== null) {
|
|
448
|
-
let
|
|
449
|
-
if (e[4] !==
|
|
452
|
+
let c;
|
|
453
|
+
if (e[4] !== f || e[5] !== i || e[6] !== u.error) {
|
|
450
454
|
const h = Ut(u.error);
|
|
451
|
-
|
|
455
|
+
c = i ? /* @__PURE__ */ a(ie, { children: i(h) }) : /* @__PURE__ */ a(he, { error: h, labels: f }), e[4] = f, e[5] = i, e[6] = u.error, e[7] = c;
|
|
452
456
|
} else
|
|
453
|
-
|
|
454
|
-
return
|
|
457
|
+
c = e[7];
|
|
458
|
+
return c;
|
|
455
459
|
}
|
|
456
|
-
if (
|
|
457
|
-
let
|
|
458
|
-
return e[8] !==
|
|
460
|
+
if (d(u.rawData)) {
|
|
461
|
+
let c;
|
|
462
|
+
return e[8] !== f ? (c = /* @__PURE__ */ a(Rt, { labels: f }), e[8] = f, e[9] = c) : c = e[9], c;
|
|
459
463
|
}
|
|
460
464
|
let g;
|
|
461
|
-
e[10] !== r || e[11] !==
|
|
465
|
+
e[10] !== r || e[11] !== p ? (g = /* @__PURE__ */ a(Ot, { id: p, children: r }), e[10] = r, e[11] = p, e[12] = g) : g = e[12];
|
|
462
466
|
let l;
|
|
463
|
-
return e[13] !==
|
|
467
|
+
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;
|
|
464
468
|
}
|
|
465
469
|
function Ot(t) {
|
|
466
470
|
const e = T(5), {
|
|
@@ -468,7 +472,7 @@ function Ot(t) {
|
|
|
468
472
|
children: r
|
|
469
473
|
} = t;
|
|
470
474
|
let o;
|
|
471
|
-
e[0] !== n ? (o = (
|
|
475
|
+
e[0] !== n ? (o = (d) => Ae(n, d), e[0] = n, e[1] = o) : o = e[1];
|
|
472
476
|
const i = o;
|
|
473
477
|
let s;
|
|
474
478
|
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;
|
|
@@ -488,21 +492,21 @@ function he(t) {
|
|
|
488
492
|
i
|
|
489
493
|
] }), e[5] = o, e[6] = i, e[7] = s) : s = e[7], s;
|
|
490
494
|
}
|
|
491
|
-
function
|
|
495
|
+
function Rt(t) {
|
|
492
496
|
const e = T(7), {
|
|
493
497
|
labels: n
|
|
494
498
|
} = t;
|
|
495
499
|
let r;
|
|
496
|
-
e[0] !== n.emptyTitle ? (r = /* @__PURE__ */ a(
|
|
500
|
+
e[0] !== n.emptyTitle ? (r = /* @__PURE__ */ a(Z, { variant: "body2", color: "text.primary", children: n.emptyTitle }), e[0] = n.emptyTitle, e[1] = r) : r = e[1];
|
|
497
501
|
let o;
|
|
498
|
-
e[2] !== n.emptyDescription ? (o = /* @__PURE__ */ a(
|
|
502
|
+
e[2] !== n.emptyDescription ? (o = /* @__PURE__ */ a(Z, { variant: "caption", color: "text.secondary", children: n.emptyDescription }), e[2] = n.emptyDescription, e[3] = o) : o = e[3];
|
|
499
503
|
let i;
|
|
500
504
|
return e[4] !== r || e[5] !== o ? (i = /* @__PURE__ */ G(W, { sx: ge.emptyRoot, children: [
|
|
501
505
|
r,
|
|
502
506
|
o
|
|
503
507
|
] }), e[4] = r, e[5] = o, e[6] = i) : i = e[6], i;
|
|
504
508
|
}
|
|
505
|
-
class
|
|
509
|
+
class Mt extends be {
|
|
506
510
|
state = {
|
|
507
511
|
error: null
|
|
508
512
|
};
|
|
@@ -536,7 +540,7 @@ function Ut(t) {
|
|
|
536
540
|
}
|
|
537
541
|
const Nt = {
|
|
538
542
|
clear: "Clear"
|
|
539
|
-
},
|
|
543
|
+
}, ee = {
|
|
540
544
|
root: {
|
|
541
545
|
display: "flex",
|
|
542
546
|
alignItems: "center",
|
|
@@ -566,39 +570,39 @@ function jt(t) {
|
|
|
566
570
|
onClear: o,
|
|
567
571
|
labels: i,
|
|
568
572
|
icon: s,
|
|
569
|
-
iconProps:
|
|
573
|
+
iconProps: d
|
|
570
574
|
} = t;
|
|
571
575
|
if (!r)
|
|
572
576
|
return null;
|
|
573
|
-
let
|
|
574
|
-
if (e[0] !== s || e[1] !== n || e[2] !==
|
|
577
|
+
let p, u, m, f, g, l, c, h, y;
|
|
578
|
+
if (e[0] !== s || e[1] !== n || e[2] !== d || e[3] !== i || e[4] !== r) {
|
|
575
579
|
m = {
|
|
576
580
|
...Nt,
|
|
577
581
|
...i
|
|
578
582
|
};
|
|
579
583
|
const k = n === 0 ? r : n;
|
|
580
|
-
u = W, h =
|
|
581
|
-
/* @__PURE__ */ a(
|
|
582
|
-
/* @__PURE__ */ a(
|
|
583
|
-
/* @__PURE__ */ a(
|
|
584
|
-
] }), e[0] = s, e[1] = n, e[2] =
|
|
584
|
+
u = W, h = ee.root, e[14] !== s || e[15] !== d ? (y = s ? /* @__PURE__ */ a(s, { fontSize: "small", ...d }) : null, e[14] = s, e[15] = d, e[16] = y) : y = e[16], p = W, f = "span", g = ee.count, l = `${k} / ${r}`, c = m.summary ? m.summary(k, r) : /* @__PURE__ */ G(ie, { children: [
|
|
585
|
+
/* @__PURE__ */ a(Z, { component: "span", variant: "caption", sx: ee.selected, children: k }),
|
|
586
|
+
/* @__PURE__ */ a(Z, { component: "span", variant: "caption", sx: ee.separator, children: "/" }),
|
|
587
|
+
/* @__PURE__ */ a(Z, { component: "span", variant: "caption", sx: ee.total, children: r })
|
|
588
|
+
] }), e[0] = s, e[1] = n, e[2] = d, e[3] = i, e[4] = r, e[5] = p, e[6] = u, e[7] = m, e[8] = f, e[9] = g, e[10] = l, e[11] = c, e[12] = h, e[13] = y;
|
|
585
589
|
} else
|
|
586
|
-
|
|
590
|
+
p = e[5], u = e[6], m = e[7], f = e[8], g = e[9], l = e[10], c = e[11], h = e[12], y = e[13];
|
|
587
591
|
let x;
|
|
588
|
-
e[17] !==
|
|
592
|
+
e[17] !== p || e[18] !== f || e[19] !== g || e[20] !== l || e[21] !== c ? (x = /* @__PURE__ */ a(p, { component: f, sx: g, "aria-label": l, children: c }), e[17] = p, e[18] = f, e[19] = g, e[20] = l, e[21] = c, e[22] = x) : x = e[22];
|
|
589
593
|
let b;
|
|
590
|
-
e[23] !== m || e[24] !== n || e[25] !== o ? (b = n > 0 && o && /* @__PURE__ */ a(
|
|
591
|
-
let
|
|
592
|
-
return e[27] !== u || e[28] !== h || e[29] !== y || e[30] !== x || e[31] !== b ? (
|
|
594
|
+
e[23] !== m || e[24] !== n || e[25] !== o ? (b = n > 0 && o && /* @__PURE__ */ a(Re, { size: "small", variant: "text", onClick: o, children: m.clear }), e[23] = m, e[24] = n, e[25] = o, e[26] = b) : b = e[26];
|
|
595
|
+
let E;
|
|
596
|
+
return e[27] !== u || e[28] !== h || e[29] !== y || e[30] !== x || e[31] !== b ? (E = /* @__PURE__ */ G(u, { sx: h, children: [
|
|
593
597
|
y,
|
|
594
598
|
x,
|
|
595
599
|
b
|
|
596
|
-
] }), e[27] = u, e[28] = h, e[29] = y, e[30] = x, e[31] = b, e[32] =
|
|
600
|
+
] }), e[27] = u, e[28] = h, e[29] = y, e[30] = x, e[31] = b, e[32] = E) : E = e[32], E;
|
|
597
601
|
}
|
|
598
602
|
const zt = {
|
|
599
603
|
trigger: "More actions",
|
|
600
604
|
close: "Close"
|
|
601
|
-
},
|
|
605
|
+
}, oe = {
|
|
602
606
|
root: {
|
|
603
607
|
display: "flex",
|
|
604
608
|
alignItems: "center",
|
|
@@ -637,103 +641,103 @@ function Ht(t) {
|
|
|
637
641
|
icon: o,
|
|
638
642
|
iconProps: i,
|
|
639
643
|
direction: s,
|
|
640
|
-
sx:
|
|
641
|
-
children:
|
|
644
|
+
sx: d,
|
|
645
|
+
children: p
|
|
642
646
|
} = t, u = o === void 0 ? qe : o, m = s === void 0 ? "right" : s;
|
|
643
|
-
let
|
|
644
|
-
e[0] !== r ? (
|
|
647
|
+
let f;
|
|
648
|
+
e[0] !== r ? (f = {
|
|
645
649
|
...zt,
|
|
646
650
|
...r
|
|
647
|
-
}, e[0] = r, e[1] =
|
|
648
|
-
const g =
|
|
651
|
+
}, e[0] = r, e[1] = f) : f = e[1];
|
|
652
|
+
const g = f, [l, c] = V(!1), [h, y] = V(null), [x, b] = V(null), [E, k] = V(null);
|
|
649
653
|
let _;
|
|
650
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = () =>
|
|
651
|
-
const
|
|
652
|
-
let
|
|
653
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
654
|
-
y(
|
|
655
|
-
}, e[3] =
|
|
656
|
-
const
|
|
657
|
-
let I,
|
|
654
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = () => c(Xt), e[2] = _) : _ = e[2];
|
|
655
|
+
const L = _;
|
|
656
|
+
let C;
|
|
657
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = (S) => {
|
|
658
|
+
y(S);
|
|
659
|
+
}, e[3] = C) : C = e[3];
|
|
660
|
+
const O = C;
|
|
661
|
+
let I, A;
|
|
658
662
|
e[4] !== l ? (I = () => {
|
|
659
663
|
if (!l)
|
|
660
664
|
return;
|
|
661
|
-
const
|
|
662
|
-
|
|
665
|
+
const S = (z) => {
|
|
666
|
+
z.key === "Escape" && c(!1);
|
|
663
667
|
};
|
|
664
|
-
return document.addEventListener("keydown",
|
|
665
|
-
},
|
|
666
|
-
const [
|
|
668
|
+
return document.addEventListener("keydown", S), () => document.removeEventListener("keydown", S);
|
|
669
|
+
}, A = [l], e[4] = l, e[5] = I, e[6] = A) : (I = e[5], A = e[6]), de(I, A);
|
|
670
|
+
const [w] = V(qt);
|
|
667
671
|
let v, q;
|
|
668
|
-
e[7] !==
|
|
669
|
-
const
|
|
670
|
-
let
|
|
672
|
+
e[7] !== p ? (v = ae.toArray(p).filter(Gt), q = v.reduce(Vt, 0), e[7] = p, e[8] = v, e[9] = q) : (v = e[8], q = e[9]);
|
|
673
|
+
const R = n !== void 0 && q > n;
|
|
674
|
+
let K;
|
|
671
675
|
e: {
|
|
672
|
-
if (!
|
|
673
|
-
|
|
676
|
+
if (!R || n === void 0) {
|
|
677
|
+
K = null;
|
|
674
678
|
break e;
|
|
675
679
|
}
|
|
676
|
-
let
|
|
677
|
-
e[10] !== v || e[11] !== n ? (
|
|
680
|
+
let S;
|
|
681
|
+
e[10] !== v || e[11] !== n ? (S = Zt(v, n), e[10] = v, e[11] = n, e[12] = S) : S = e[12], K = S;
|
|
678
682
|
}
|
|
679
|
-
const
|
|
680
|
-
!
|
|
681
|
-
let
|
|
682
|
-
if (e[13] !==
|
|
683
|
-
const
|
|
684
|
-
|
|
685
|
-
},
|
|
683
|
+
const M = K;
|
|
684
|
+
!R && l && c(!1);
|
|
685
|
+
let P, U;
|
|
686
|
+
if (e[13] !== w || e[14] !== x || e[15] !== l || e[16] !== E ? (P = () => {
|
|
687
|
+
const S = l && E ? E : x;
|
|
688
|
+
w && S && w.parentNode !== S && S.appendChild(w);
|
|
689
|
+
}, U = [l, x, E, w], e[13] = w, e[14] = x, e[15] = l, e[16] = E, e[17] = P, e[18] = U) : (P = e[17], U = e[18]), te(P, U), v.length === 0)
|
|
686
690
|
return null;
|
|
687
|
-
const
|
|
691
|
+
const X = l ? g.close : g.trigger, Y = m === "left" ? "row-reverse" : "row";
|
|
688
692
|
let $;
|
|
689
|
-
e[19] !==
|
|
690
|
-
...
|
|
691
|
-
flexDirection:
|
|
692
|
-
...
|
|
693
|
-
}, e[19] =
|
|
693
|
+
e[19] !== Y || e[20] !== d ? ($ = {
|
|
694
|
+
...oe.root,
|
|
695
|
+
flexDirection: Y,
|
|
696
|
+
...d
|
|
697
|
+
}, e[19] = Y, e[20] = d, e[21] = $) : $ = e[21];
|
|
694
698
|
let D;
|
|
695
|
-
e[22] !== u || e[23] !== i || e[24] !== l || e[25] !==
|
|
696
|
-
/* @__PURE__ */ a(Xe, { title:
|
|
697
|
-
...l &&
|
|
699
|
+
e[22] !== u || e[23] !== i || e[24] !== l || e[25] !== R || e[26] !== X ? (D = R && /* @__PURE__ */ G(ie, { children: [
|
|
700
|
+
/* @__PURE__ */ a(Xe, { title: X, children: /* @__PURE__ */ a(Me, { ref: O, size: "small", "aria-label": X, "aria-pressed": l, onClick: L, className: l ? "active" : void 0, sx: {
|
|
701
|
+
...l && oe.triggerActive
|
|
698
702
|
}, children: l ? /* @__PURE__ */ a(He, { fontSize: "small" }) : /* @__PURE__ */ a(u, { fontSize: "small", ...i }) }) }),
|
|
699
703
|
/* @__PURE__ */ a(Pe, { orientation: "vertical", flexItem: !0, sx: {
|
|
700
704
|
mx: 0.5
|
|
701
705
|
} })
|
|
702
|
-
] }), e[22] = u, e[23] = i, e[24] = l, e[25] =
|
|
703
|
-
let
|
|
704
|
-
e[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
705
|
-
let
|
|
706
|
-
e[29] !== h || e[30] !== m || e[31] !== l || e[32] !==
|
|
706
|
+
] }), e[22] = u, e[23] = i, e[24] = l, e[25] = R, e[26] = X, e[27] = D) : D = e[27];
|
|
707
|
+
let N;
|
|
708
|
+
e[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ a(W, { ref: b, sx: oe.preview }), e[28] = N) : N = e[28];
|
|
709
|
+
let F;
|
|
710
|
+
e[29] !== h || e[30] !== m || e[31] !== l || e[32] !== R ? (F = R && /* @__PURE__ */ a(Ue, { open: l, anchorEl: h, placement: m === "left" ? "left" : "right", transition: !0, modifiers: [{
|
|
707
711
|
name: "flip",
|
|
708
712
|
enabled: !1
|
|
709
713
|
}], sx: {
|
|
710
714
|
zIndex: "tooltip",
|
|
711
715
|
mt: 0
|
|
712
|
-
}, children: (
|
|
716
|
+
}, children: (S) => {
|
|
713
717
|
const {
|
|
714
|
-
TransitionProps:
|
|
715
|
-
} =
|
|
716
|
-
return /* @__PURE__ */ a(Ne, { ...
|
|
718
|
+
TransitionProps: z
|
|
719
|
+
} = S;
|
|
720
|
+
return /* @__PURE__ */ a(Ne, { ...z, style: {
|
|
717
721
|
transformOrigin: m === "left" ? "right center" : "left center"
|
|
718
|
-
}, children: /* @__PURE__ */ a(je, { ref: k, sx:
|
|
719
|
-
} }), e[29] = h, e[30] = m, e[31] = l, e[32] =
|
|
720
|
-
let
|
|
721
|
-
e[34] !==
|
|
722
|
-
const
|
|
723
|
-
return /* @__PURE__ */ a("div", { "data-toolbox-item-visible":
|
|
724
|
-
display:
|
|
725
|
-
}, children:
|
|
726
|
-
}),
|
|
727
|
-
let
|
|
728
|
-
return e[39] !== $ || e[40] !== D || e[41] !==
|
|
722
|
+
}, children: /* @__PURE__ */ a(je, { ref: k, sx: oe.paper }) });
|
|
723
|
+
} }), e[29] = h, e[30] = m, e[31] = l, e[32] = R, e[33] = F) : F = e[33];
|
|
724
|
+
let B;
|
|
725
|
+
e[34] !== w || e[35] !== M || e[36] !== v || e[37] !== l ? (B = w ? Ge(v.map((S, z) => {
|
|
726
|
+
const Q = l || !M || M.has(z), xe = S.key ?? z;
|
|
727
|
+
return /* @__PURE__ */ a("div", { "data-toolbox-item-visible": Q ? "true" : "false", style: {
|
|
728
|
+
display: Q ? "contents" : "none"
|
|
729
|
+
}, children: S }, xe);
|
|
730
|
+
}), w) : null, e[34] = w, e[35] = M, e[36] = v, e[37] = l, e[38] = B) : B = e[38];
|
|
731
|
+
let H;
|
|
732
|
+
return e[39] !== $ || e[40] !== D || e[41] !== F || e[42] !== B ? (H = /* @__PURE__ */ G(W, { sx: $, children: [
|
|
729
733
|
D,
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
] }), e[39] = $, e[40] = D, e[41] =
|
|
734
|
+
N,
|
|
735
|
+
F,
|
|
736
|
+
B
|
|
737
|
+
] }), e[39] = $, e[40] = D, e[41] = F, e[42] = B, e[43] = H) : H = e[43], H;
|
|
734
738
|
}
|
|
735
739
|
function Vt(t, e) {
|
|
736
|
-
return t + (
|
|
740
|
+
return t + (le(e) ? 0 : 1);
|
|
737
741
|
}
|
|
738
742
|
function Gt(t) {
|
|
739
743
|
return ce(t);
|
|
@@ -747,22 +751,22 @@ function qt() {
|
|
|
747
751
|
function Xt(t) {
|
|
748
752
|
return !t;
|
|
749
753
|
}
|
|
750
|
-
function
|
|
754
|
+
function le(t) {
|
|
751
755
|
return t.props["data-toolbar-hidden"] === !0;
|
|
752
756
|
}
|
|
753
757
|
function Zt(t, e) {
|
|
754
758
|
const n = [];
|
|
755
759
|
let r = 0;
|
|
756
760
|
for (let o = 0; o < t.length && !(r >= e); o++)
|
|
757
|
-
n.push(o),
|
|
758
|
-
for (; n.length > 0 &&
|
|
761
|
+
n.push(o), le(t[o]) || r++;
|
|
762
|
+
for (; n.length > 0 && le(t[n[n.length - 1]]); )
|
|
759
763
|
n.pop();
|
|
760
764
|
return new Set(n);
|
|
761
765
|
}
|
|
762
766
|
const Kt = {
|
|
763
767
|
showMore: "Show more",
|
|
764
768
|
showLess: "Show less"
|
|
765
|
-
},
|
|
769
|
+
}, re = {
|
|
766
770
|
root: {
|
|
767
771
|
display: "flex",
|
|
768
772
|
flexDirection: "column",
|
|
@@ -788,7 +792,7 @@ const Kt = {
|
|
|
788
792
|
}
|
|
789
793
|
}
|
|
790
794
|
};
|
|
791
|
-
function
|
|
795
|
+
function J(t) {
|
|
792
796
|
const e = T(3), {
|
|
793
797
|
children: n
|
|
794
798
|
} = t;
|
|
@@ -797,23 +801,23 @@ function Y(t) {
|
|
|
797
801
|
m: 0
|
|
798
802
|
}, e[0] = r) : r = e[0];
|
|
799
803
|
let o;
|
|
800
|
-
return e[1] !== n ? (o = /* @__PURE__ */ a(
|
|
804
|
+
return e[1] !== n ? (o = /* @__PURE__ */ a(Z, { variant: "caption", component: "p", color: "inherit", sx: r, children: n }), e[1] = n, e[2] = o) : o = e[2], o;
|
|
801
805
|
}
|
|
802
806
|
const Yt = {
|
|
803
807
|
// Headings demoted to caption typography — a Note can't introduce a
|
|
804
808
|
// heading into the page outline.
|
|
805
|
-
h1:
|
|
806
|
-
h2:
|
|
807
|
-
h3:
|
|
808
|
-
h4:
|
|
809
|
-
h5:
|
|
810
|
-
h6:
|
|
811
|
-
p:
|
|
809
|
+
h1: J,
|
|
810
|
+
h2: J,
|
|
811
|
+
h3: J,
|
|
812
|
+
h4: J,
|
|
813
|
+
h5: J,
|
|
814
|
+
h6: J,
|
|
815
|
+
p: J,
|
|
812
816
|
// External-safe link defaults; inherit colour from the muted caption.
|
|
813
817
|
a: ({
|
|
814
818
|
children: t,
|
|
815
819
|
href: e
|
|
816
|
-
}) => /* @__PURE__ */ a(
|
|
820
|
+
}) => /* @__PURE__ */ a(pe, { href: e, target: "_blank", rel: "noopener noreferrer", color: "inherit", underline: "always", children: t })
|
|
817
821
|
};
|
|
818
822
|
function Jt(t) {
|
|
819
823
|
const e = T(7), {
|
|
@@ -822,9 +826,9 @@ function Jt(t) {
|
|
|
822
826
|
children: o
|
|
823
827
|
} = t, i = n === void 0 ? 3 : n;
|
|
824
828
|
let s;
|
|
825
|
-
e[0] !== o ? (s = /* @__PURE__ */ a(
|
|
826
|
-
let
|
|
827
|
-
return e[2] !== o || e[3] !== r || e[4] !== i || e[5] !== s ? (
|
|
829
|
+
e[0] !== o ? (s = /* @__PURE__ */ a(Z, { variant: "caption", component: "div", color: "inherit", children: o }), e[0] = o, e[1] = s) : s = e[1];
|
|
830
|
+
let d;
|
|
831
|
+
return e[2] !== o || e[3] !== r || e[4] !== i || e[5] !== s ? (d = /* @__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] = d) : d = e[6], d;
|
|
828
832
|
}
|
|
829
833
|
function Qt(t) {
|
|
830
834
|
const e = T(7), {
|
|
@@ -834,8 +838,8 @@ function Qt(t) {
|
|
|
834
838
|
} = t, i = r === void 0 ? 3 : r;
|
|
835
839
|
let s;
|
|
836
840
|
e[0] !== n ? (s = /* @__PURE__ */ a(Je, { content: n, components: Yt }), e[0] = n, e[1] = s) : s = e[1];
|
|
837
|
-
let
|
|
838
|
-
return e[2] !== n || e[3] !== o || e[4] !== i || e[5] !== s ? (
|
|
841
|
+
let d;
|
|
842
|
+
return e[2] !== n || e[3] !== o || e[4] !== i || e[5] !== s ? (d = /* @__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] = d) : d = e[6], d;
|
|
839
843
|
}
|
|
840
844
|
const en = Object.assign(Jt, {
|
|
841
845
|
Markdown: Qt
|
|
@@ -852,18 +856,18 @@ function ye(t) {
|
|
|
852
856
|
...Kt,
|
|
853
857
|
...r
|
|
854
858
|
}, e[0] = r, e[1] = s) : s = e[1];
|
|
855
|
-
const
|
|
856
|
-
let
|
|
857
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
858
|
-
const v =
|
|
859
|
+
const d = s, p = ve(null), [u, m] = V(!1), [f, g] = V(!1), l = n <= 0;
|
|
860
|
+
let c;
|
|
861
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = () => {
|
|
862
|
+
const v = p.current;
|
|
859
863
|
v && m(v.scrollHeight > v.clientHeight + 1);
|
|
860
|
-
}, e[2] =
|
|
861
|
-
const h =
|
|
864
|
+
}, e[2] = c) : c = e[2];
|
|
865
|
+
const h = c;
|
|
862
866
|
let y;
|
|
863
867
|
e[3] !== l ? (y = () => {
|
|
864
868
|
if (l)
|
|
865
869
|
return;
|
|
866
|
-
const v =
|
|
870
|
+
const v = p.current;
|
|
867
871
|
if (v)
|
|
868
872
|
return h(), Ze(v, h);
|
|
869
873
|
}, e[3] = l, e[4] = y) : y = e[4];
|
|
@@ -871,29 +875,29 @@ function ye(t) {
|
|
|
871
875
|
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);
|
|
872
876
|
let b;
|
|
873
877
|
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = () => g(tn), e[8] = b) : b = e[8];
|
|
874
|
-
const
|
|
878
|
+
const E = b, k = !f && !l;
|
|
875
879
|
let _;
|
|
876
880
|
e[9] !== k || e[10] !== n ? (_ = k ? {
|
|
877
|
-
...
|
|
881
|
+
...re.clamped,
|
|
878
882
|
WebkitLineClamp: n
|
|
879
883
|
} : null, e[9] = k, e[10] = n, e[11] = _) : _ = e[11];
|
|
880
|
-
const
|
|
881
|
-
let
|
|
882
|
-
e[12] !==
|
|
883
|
-
let
|
|
884
|
-
e[14] !==
|
|
885
|
-
...
|
|
886
|
-
...
|
|
887
|
-
}, e[14] =
|
|
884
|
+
const L = _;
|
|
885
|
+
let C;
|
|
886
|
+
e[12] !== L ? (C = L ?? {}, e[12] = L, e[13] = C) : C = e[13];
|
|
887
|
+
let O;
|
|
888
|
+
e[14] !== C ? (O = {
|
|
889
|
+
...re.text,
|
|
890
|
+
...C
|
|
891
|
+
}, e[14] = C, e[15] = O) : O = e[15];
|
|
888
892
|
let I;
|
|
889
|
-
e[16] !== i || e[17] !==
|
|
890
|
-
let
|
|
891
|
-
e[19] !==
|
|
892
|
-
let
|
|
893
|
-
return e[24] !==
|
|
893
|
+
e[16] !== i || e[17] !== O ? (I = /* @__PURE__ */ a(W, { ref: p, sx: O, children: i }), e[16] = i, e[17] = O, e[18] = I) : I = e[18];
|
|
894
|
+
let A;
|
|
895
|
+
e[19] !== d || e[20] !== l || e[21] !== f || e[22] !== u ? (A = !l && (u || f) && /* @__PURE__ */ a(pe, { component: "button", variant: "caption", underline: "none", onClick: E, sx: re.toggle, children: f ? d.showLess : d.showMore }), e[19] = d, e[20] = l, e[21] = f, e[22] = u, e[23] = A) : A = e[23];
|
|
896
|
+
let w;
|
|
897
|
+
return e[24] !== A || e[25] !== I ? (w = /* @__PURE__ */ G(W, { sx: re.root, children: [
|
|
894
898
|
I,
|
|
895
|
-
|
|
896
|
-
] }), e[24] =
|
|
899
|
+
A
|
|
900
|
+
] }), e[24] = A, e[25] = I, e[26] = w) : w = e[26], w;
|
|
897
901
|
}
|
|
898
902
|
function tn(t) {
|
|
899
903
|
return !t;
|
|
@@ -904,8 +908,8 @@ const In = {
|
|
|
904
908
|
Wrapper: kt,
|
|
905
909
|
Actions: me,
|
|
906
910
|
Options: ue,
|
|
907
|
-
Content:
|
|
908
|
-
Footer:
|
|
911
|
+
Content: Lt,
|
|
912
|
+
Footer: At,
|
|
909
913
|
Subheader: $t,
|
|
910
914
|
State: Bt,
|
|
911
915
|
SelectionSummary: jt,
|
|
@@ -915,7 +919,7 @@ const In = {
|
|
|
915
919
|
Echart: Ye,
|
|
916
920
|
EchartUI: Ke,
|
|
917
921
|
// Actions
|
|
918
|
-
Searcher:
|
|
922
|
+
Searcher: ft,
|
|
919
923
|
SearcherToggle: dt,
|
|
920
924
|
StackToggle: ct,
|
|
921
925
|
ShowAllToggle: at,
|
|
@@ -931,7 +935,7 @@ const In = {
|
|
|
931
935
|
// compositions of these primitives and live outside the library —
|
|
932
936
|
// see `apps/storybook/stories/modules/widgets/` for canonical examples.
|
|
933
937
|
Formula: mt,
|
|
934
|
-
FormulaUI:
|
|
938
|
+
FormulaUI: pt,
|
|
935
939
|
Markdown: et,
|
|
936
940
|
MarkdownUI: Qe,
|
|
937
941
|
Spread: gt,
|