@sheetxl/utils-mui 0.8.0-beta.22 → 0.8.0-beta.24
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/browser/esm/B9_cmnQyFrR3VxA1.mjs +2588 -0
- package/browser/esm/{ChwH4cpKNUXWYosE.mjs → CkQpEyDkcGs4Dx9X.mjs} +2 -2
- package/browser/esm/index.mjs +896 -754
- package/licenses/dependencies.txt +1 -1
- package/node/esm/{dXZXZwMw1BlQOopL.mjs → B9bsJW-sDycQWnod.mjs} +1 -1
- package/node/esm/index.mjs +764 -826
- package/package.json +4 -4
- package/types/src/theme/index.d.ts +0 -1
- package/browser/esm/BoeNTbAcS-FGpa_7.mjs +0 -2691
- package/types/src/theme/ScrollbarTheming.d.ts +0 -12
package/node/esm/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.24
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
|
-
import { Backdrop as e, Box as t, Button as
|
|
8
|
-
import { Fragment as
|
|
9
|
-
import { Children as P, Suspense as T, cloneElement as R, createContext as D, forwardRef as I, isValidElement as $, memo as z, useCallback as B, useContext as L, useEffect as N, useId as O, useLayoutEffect as E, useMemo as A, useReducer as
|
|
7
|
+
import { Backdrop as e, Box as t, Button as n, Chip as o, CircularProgress as r, DialogActions as i, DialogContent as a, DialogTitle as l, Divider as s, Fade as d, IconButton as c, Input as p, LinearProgress as u, ListItemButton as m, ListItemIcon as h, Paper as f, Toolbar as g, Tooltip as x, Typography as y, Unstable_TrapFocus as b, createTheme as v, useTheme as w, useThemeProps as C } from "@mui/material";
|
|
8
|
+
import { Fragment as k, jsx as M, jsxs as S } from "react/jsx-runtime";
|
|
9
|
+
import { Children as P, Suspense as T, cloneElement as R, createContext as D, forwardRef as I, isValidElement as $, memo as z, useCallback as B, useContext as L, useEffect as N, useId as O, useLayoutEffect as E, useMemo as A, useReducer as K, useRef as F, useState as W } from "react";
|
|
10
10
|
import H from "clsx";
|
|
11
11
|
import { alpha as V, darken as q, lighten as j } from "@mui/system";
|
|
12
12
|
import { CommonUtils as Q, ErrorUtils as G, defineLazyModule as U } from "@sheetxl/utils";
|
|
13
|
-
import { Command as X, CommandButtonType as Y, CommandFocusProvider as _, DynamicIcon as J, FloatPopper as Z, FloatProvider as ee, FloatStackProvider as te, KeyCodes as
|
|
13
|
+
import { Command as X, CommandButtonType as Y, CommandFocusProvider as _, DynamicIcon as J, FloatPopper as Z, FloatProvider as ee, FloatStackProvider as te, KeyCodes as ne, KeyModifiers as oe, NotifierType as re, ReactUtils as ie, RenderSlot as ae, ScrollbarOrientation as le, defaultRenderScrollButtonEdge as se, floatThemeScopeProps as de, lazyComponent as ce, scrollbarThemedClassName as pe, useCallbackRef as ue, useCommandButtonRegistry as me, useCommands as he, useFloat as fe, useFloatStack as ge, useFloatSurface as xe, useFullscreenPortal as ye, useImperativeElement as be, useIsomorphicLayoutEffect as ve, useLazyRetry as we, useMeasure as Ce, useTranslator as ke, zIndexVar as Me } from "@sheetxl/utils-react";
|
|
14
14
|
import { useMergeRefs as Se } from "react-merge-refs";
|
|
15
15
|
import { deepmerge as Pe } from "@mui/utils";
|
|
16
16
|
import Te, { useModal as Re } from "mui-modal-provider";
|
|
@@ -28,11 +28,11 @@ var Ne = {
|
|
|
28
28
|
paddingLeft: (e) => e.spacing(.25),
|
|
29
29
|
paddingRight: (e) => e.spacing(.25)
|
|
30
30
|
};
|
|
31
|
-
function Oe(e,
|
|
32
|
-
const o = null !=
|
|
31
|
+
function Oe(e, n) {
|
|
32
|
+
const o = null != n && !1 !== n && "" !== n ? M(y, {
|
|
33
33
|
component: "div",
|
|
34
34
|
sx: Ne,
|
|
35
|
-
children:
|
|
35
|
+
children: n
|
|
36
36
|
}) : null;
|
|
37
37
|
return e && o ? S(t, {
|
|
38
38
|
sx: {
|
|
@@ -43,17 +43,17 @@ function Oe(e, r) {
|
|
|
43
43
|
}) : e ?? o ?? void 0;
|
|
44
44
|
}
|
|
45
45
|
var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
46
|
-
const
|
|
47
|
-
return M(
|
|
46
|
+
const n = ke();
|
|
47
|
+
return M(k, t ? { children: n(e ? "scroll.edgeLeft" : "scroll.edgeTop") } : { children: n(e ? "scroll.edgeRight" : "scroll.edgeBottom") });
|
|
48
48
|
}, Ae = (e) => {
|
|
49
49
|
const t = {
|
|
50
50
|
style: { cursor: "pointer" },
|
|
51
51
|
...e
|
|
52
52
|
};
|
|
53
|
-
let
|
|
53
|
+
let n = se(t);
|
|
54
54
|
if (void 0 !== e.isBefore && !e.disabled) {
|
|
55
55
|
const t = e.orientation === le.Horizontal;
|
|
56
|
-
|
|
56
|
+
n = M($t, {
|
|
57
57
|
title: M(Ee, {
|
|
58
58
|
isHorizontal: t,
|
|
59
59
|
isBefore: e.isBefore
|
|
@@ -62,27 +62,27 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
62
62
|
enterNextDelay: 1600,
|
|
63
63
|
children: e.disabled ? M("div", {
|
|
64
64
|
style: { display: "flex" },
|
|
65
|
-
children:
|
|
66
|
-
}) :
|
|
65
|
+
children: n
|
|
66
|
+
}) : n
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
return
|
|
70
|
-
},
|
|
71
|
-
const { style:
|
|
69
|
+
return n;
|
|
70
|
+
}, Ke = (e, t, n, o) => {
|
|
71
|
+
const { style: r, ...i } = e, a = M(c, {
|
|
72
72
|
component: "div",
|
|
73
73
|
...i,
|
|
74
74
|
style: {
|
|
75
|
-
...
|
|
75
|
+
...r,
|
|
76
76
|
padding: "0px"
|
|
77
77
|
},
|
|
78
78
|
sx: { padding: "0" },
|
|
79
79
|
color: e.disabled ? void 0 : "primary",
|
|
80
|
-
"aria-label":
|
|
80
|
+
"aria-label": n,
|
|
81
81
|
size: "small",
|
|
82
82
|
children: t
|
|
83
83
|
});
|
|
84
|
-
return M(
|
|
85
|
-
title: e.disabled ?
|
|
84
|
+
return M($t, {
|
|
85
|
+
title: e.disabled ? n : o,
|
|
86
86
|
enterDelay: 800,
|
|
87
87
|
enterNextDelay: 1600,
|
|
88
88
|
children: e.disabled ? M("div", {
|
|
@@ -90,20 +90,20 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
90
90
|
children: a
|
|
91
91
|
}) : a
|
|
92
92
|
});
|
|
93
|
-
},
|
|
93
|
+
}, Fe = (e) => Ke(e, le.Horizontal ? M(J, {
|
|
94
94
|
iconKey: "ArrowLeft",
|
|
95
95
|
size: "small"
|
|
96
96
|
}) : M(J, {
|
|
97
97
|
iconKey: "ArrowUpward",
|
|
98
98
|
size: "small"
|
|
99
|
-
}), "Scroll " + (e.orientation === le.Horizontal ? "Left" : "Up"), `Scroll ${e.orientation === le.Horizontal ? "left" : "up"}, 'Ctrl+Click' to scroll to the beginning`), We = (e) =>
|
|
99
|
+
}), "Scroll " + (e.orientation === le.Horizontal ? "Left" : "Up"), `Scroll ${e.orientation === le.Horizontal ? "left" : "up"}, 'Ctrl+Click' to scroll to the beginning`), We = (e) => Ke(e, le.Horizontal ? M(J, {
|
|
100
100
|
iconKey: "ArrowRight",
|
|
101
101
|
size: "small"
|
|
102
102
|
}) : M(J, {
|
|
103
103
|
iconKey: "ArrowDownward",
|
|
104
104
|
size: "small"
|
|
105
105
|
}), "Scroll " + (e.orientation === le.Horizontal ? "Right" : "Down"), `Scroll ${e.orientation === le.Horizontal ? "right" : "down"}, 'Ctrl+Click' to scroll to the end`), He = z(I((e, t) => {
|
|
106
|
-
const { orientation:
|
|
106
|
+
const { orientation: n = "vertical", sx: o, ...r } = e, i = "vertical" === n;
|
|
107
107
|
return M(s, {
|
|
108
108
|
ref: t,
|
|
109
109
|
sx: {
|
|
@@ -115,23 +115,23 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
115
115
|
borderColor: (e) => e.palette.divider,
|
|
116
116
|
...o
|
|
117
117
|
},
|
|
118
|
-
orientation:
|
|
118
|
+
orientation: n,
|
|
119
119
|
variant: "middle",
|
|
120
120
|
flexItem: !0,
|
|
121
|
-
...
|
|
121
|
+
...r
|
|
122
122
|
});
|
|
123
123
|
})), Ve = "_traverse-ellipsis_14l1h_1", qe = z((e) => {
|
|
124
|
-
const { sx:
|
|
124
|
+
const { sx: n, speed: o = 2, size: r = 70, ...i } = e;
|
|
125
125
|
return M(t, {
|
|
126
126
|
sx: {
|
|
127
|
-
width: `${
|
|
128
|
-
height: `${
|
|
127
|
+
width: `${r}px`,
|
|
128
|
+
height: `${r}px`,
|
|
129
129
|
zIndex: 1,
|
|
130
130
|
"& .primary": {
|
|
131
131
|
stroke: (e) => e.palette.grey[600],
|
|
132
132
|
fill: "none"
|
|
133
133
|
},
|
|
134
|
-
...
|
|
134
|
+
...n
|
|
135
135
|
},
|
|
136
136
|
...i,
|
|
137
137
|
children: S("svg", {
|
|
@@ -184,11 +184,11 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
184
184
|
})
|
|
185
185
|
});
|
|
186
186
|
}), je = z((e) => {
|
|
187
|
-
const { sx:
|
|
187
|
+
const { sx: n, speed: o = 1.5, size: r = 70, ...i } = e;
|
|
188
188
|
return M(t, {
|
|
189
189
|
sx: {
|
|
190
|
-
width: `${
|
|
191
|
-
height: `${
|
|
190
|
+
width: `${r}px`,
|
|
191
|
+
height: `${r}px`,
|
|
192
192
|
zIndex: 1,
|
|
193
193
|
"& .primary": { fill: (e) => e.palette.grey[600] },
|
|
194
194
|
"& .secondary": {
|
|
@@ -196,7 +196,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
196
196
|
fill: "none",
|
|
197
197
|
opacity: .5
|
|
198
198
|
},
|
|
199
|
-
...
|
|
199
|
+
...n
|
|
200
200
|
},
|
|
201
201
|
...i,
|
|
202
202
|
children: S("svg", {
|
|
@@ -224,13 +224,13 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
224
224
|
})
|
|
225
225
|
});
|
|
226
226
|
}), Qe = z((e) => {
|
|
227
|
-
const { sx:
|
|
227
|
+
const { sx: n, speed: o = 1, size: r = 70, ...i } = e;
|
|
228
228
|
return M(t, {
|
|
229
229
|
sx: {
|
|
230
|
-
width: `${
|
|
231
|
-
height: `${
|
|
230
|
+
width: `${r}px`,
|
|
231
|
+
height: `${r}px`,
|
|
232
232
|
zIndex: 1,
|
|
233
|
-
...
|
|
233
|
+
...n
|
|
234
234
|
},
|
|
235
235
|
...i,
|
|
236
236
|
children: S("svg", {
|
|
@@ -281,17 +281,17 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
281
281
|
})
|
|
282
282
|
});
|
|
283
283
|
}), Ge = z((e) => {
|
|
284
|
-
const { sx:
|
|
284
|
+
const { sx: n, speed: o = 1, size: r = 70, ...i } = e;
|
|
285
285
|
return M(t, {
|
|
286
286
|
sx: {
|
|
287
|
-
width: `${
|
|
288
|
-
height: `${
|
|
287
|
+
width: `${r}px`,
|
|
288
|
+
height: `${r}px`,
|
|
289
289
|
zIndex: 1,
|
|
290
290
|
"& .primary": {
|
|
291
291
|
fill: (e) => e.palette.grey[600],
|
|
292
292
|
stroke: "none"
|
|
293
293
|
},
|
|
294
|
-
...
|
|
294
|
+
...n
|
|
295
295
|
},
|
|
296
296
|
...i,
|
|
297
297
|
children: S("svg", {
|
|
@@ -345,11 +345,11 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
345
345
|
})
|
|
346
346
|
});
|
|
347
347
|
}), Ue = z((e) => {
|
|
348
|
-
const { sx:
|
|
348
|
+
const { sx: n, speed: o = 2, size: r = 70, ...i } = e;
|
|
349
349
|
return M(t, {
|
|
350
350
|
sx: {
|
|
351
|
-
width: `${
|
|
352
|
-
height: `${
|
|
351
|
+
width: `${r}px`,
|
|
352
|
+
height: `${r}px`,
|
|
353
353
|
zIndex: 1,
|
|
354
354
|
"& .primary": {
|
|
355
355
|
stroke: (e) => e.palette.grey[600],
|
|
@@ -361,7 +361,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
361
361
|
opacity: .8,
|
|
362
362
|
stroke: (e) => e.palette.background.paper
|
|
363
363
|
},
|
|
364
|
-
...
|
|
364
|
+
...n
|
|
365
365
|
},
|
|
366
366
|
...i,
|
|
367
367
|
children: S("svg", {
|
|
@@ -392,18 +392,18 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
392
392
|
})
|
|
393
393
|
});
|
|
394
394
|
}), Xe = z((e) => {
|
|
395
|
-
const { sx:
|
|
395
|
+
const { sx: n, speed: o = 1, size: r = 13, width: i = 64, height: a = 17, ...l } = e;
|
|
396
396
|
return S(t, {
|
|
397
397
|
sx: {
|
|
398
398
|
width: `${i}px`,
|
|
399
399
|
height: `${a}px`,
|
|
400
400
|
"& .primary": {
|
|
401
401
|
backgroundColor: (e) => e.palette.grey[600],
|
|
402
|
-
top: `${(a -
|
|
403
|
-
width: () => `${
|
|
404
|
-
height: () => `${
|
|
402
|
+
top: `${(a - r) / 2}px`,
|
|
403
|
+
width: () => `${r}px`,
|
|
404
|
+
height: () => `${r}px`
|
|
405
405
|
},
|
|
406
|
-
...
|
|
406
|
+
...n
|
|
407
407
|
},
|
|
408
408
|
className: H(Ve, "animated-icon"),
|
|
409
409
|
...l,
|
|
@@ -417,22 +417,22 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
417
417
|
}), Ye = M(je, {}), _e = (e, t) => {
|
|
418
418
|
if (!e) return null;
|
|
419
419
|
if (void 0 !== t) {
|
|
420
|
-
const
|
|
421
|
-
|
|
420
|
+
const n = e.querySelector("[data-sxl-loading-label]");
|
|
421
|
+
n && (n.textContent = t);
|
|
422
422
|
}
|
|
423
423
|
if (e.classList.contains("animating")) return null;
|
|
424
424
|
e.classList.remove("animating-idle"), e.offsetHeight, e.classList.add("animating");
|
|
425
|
-
const
|
|
426
|
-
return 0 ===
|
|
425
|
+
const n = "function" == typeof e.getAnimations ? e.getAnimations() : null;
|
|
426
|
+
return 0 === n?.length ? null : new Promise((e) => {
|
|
427
427
|
const t = setTimeout(e, 250), o = () => {
|
|
428
428
|
clearTimeout(t), e();
|
|
429
429
|
};
|
|
430
|
-
|
|
430
|
+
n ? Promise.all(n.map((e) => e.ready)).then(o, o) : requestAnimationFrame(() => requestAnimationFrame(o));
|
|
431
431
|
});
|
|
432
432
|
}, Je = (e) => {
|
|
433
433
|
e && e.classList.contains("animating") && (e.classList.add("animating-idle"), e.classList.remove("animating"));
|
|
434
|
-
}, Ze = z(I((e,
|
|
435
|
-
const { sx: o, style:
|
|
434
|
+
}, Ze = z(I((e, n) => {
|
|
435
|
+
const { sx: o, style: r, onMount: i, onUnmount: a, transitionDelay: l = "1200ms", panel: s = !1, autoStart: d = !0, transparentBackground: c = !0, icon: p = Ye, label: m, progress: h = null, ...g } = e, x = A(() => "string" == typeof m || !d && null == m ? M(y, {
|
|
436
436
|
"data-sxl-loading-label": "",
|
|
437
437
|
variant: "caption",
|
|
438
438
|
component: "div",
|
|
@@ -442,7 +442,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
442
442
|
letterSpacing: "0.01071em"
|
|
443
443
|
},
|
|
444
444
|
children: "string" == typeof m ? m : ""
|
|
445
|
-
}) : m, [m,
|
|
445
|
+
}) : m, [m, d]), b = A(() => {
|
|
446
446
|
if ("number" != typeof h) return p;
|
|
447
447
|
const e = Math.max(0, Math.min(100, Math.round(100 * h)));
|
|
448
448
|
return M(t, {
|
|
@@ -472,7 +472,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
472
472
|
}
|
|
473
473
|
})
|
|
474
474
|
});
|
|
475
|
-
}, [h, p]), v =
|
|
475
|
+
}, [h, p]), v = F(null), w = Se([v, n]), C = A(() => {
|
|
476
476
|
let e = S(t, {
|
|
477
477
|
sx: {
|
|
478
478
|
display: "flex",
|
|
@@ -480,7 +480,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
480
480
|
alignItems: "center",
|
|
481
481
|
rowGap: "8px"
|
|
482
482
|
},
|
|
483
|
-
children: [x,
|
|
483
|
+
children: [x, b]
|
|
484
484
|
});
|
|
485
485
|
return !0 === s && (e = M(f, {
|
|
486
486
|
elevation: 0,
|
|
@@ -522,7 +522,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
522
522
|
flexDirection: "column",
|
|
523
523
|
willChange: "opacity",
|
|
524
524
|
"&:not(.animating) *": { animationPlayState: "paused" },
|
|
525
|
-
opacity:
|
|
525
|
+
opacity: c ? .001 : 1,
|
|
526
526
|
transitionProperty: "opacity",
|
|
527
527
|
transitionDelay: l,
|
|
528
528
|
transitionDuration: "320ms",
|
|
@@ -541,7 +541,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
541
541
|
transition: "opacity 210ms"
|
|
542
542
|
},
|
|
543
543
|
...o,
|
|
544
|
-
...
|
|
544
|
+
...r
|
|
545
545
|
},
|
|
546
546
|
children: S(t, {
|
|
547
547
|
className: "center",
|
|
@@ -558,8 +558,8 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
558
558
|
children: [M(t, {
|
|
559
559
|
className: "backdrop",
|
|
560
560
|
sx: {
|
|
561
|
-
opacity: (e) =>
|
|
562
|
-
background: (e) =>
|
|
561
|
+
opacity: (e) => c ? 1.5 * e.palette.action.disabledOpacity : void 0,
|
|
562
|
+
background: (e) => c ? void 0 : e.palette.background.paper,
|
|
563
563
|
backdropFilter: "blur(4px)",
|
|
564
564
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
565
565
|
zIndex: -1,
|
|
@@ -575,53 +575,53 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
575
575
|
o,
|
|
576
576
|
s,
|
|
577
577
|
x,
|
|
578
|
-
|
|
578
|
+
b,
|
|
579
579
|
w
|
|
580
|
-
]),
|
|
580
|
+
]), k = F(!1);
|
|
581
581
|
return ve(() => {
|
|
582
|
-
if (!1 ===
|
|
582
|
+
if (!1 === d) return;
|
|
583
583
|
const e = v.current;
|
|
584
|
-
e && !
|
|
585
|
-
}, [v.current,
|
|
586
|
-
|
|
587
|
-
}, []),
|
|
584
|
+
e && !k.current && (k.current = !0, e.classList.contains("animatable") && !e.classList.contains("animating") && (e.offsetHeight, e.classList.add("animating")), i?.());
|
|
585
|
+
}, [v.current, d]), N(() => () => {
|
|
586
|
+
k.current && (v.current?.classList.remove("animating"), k.current = !1, a?.());
|
|
587
|
+
}, []), C;
|
|
588
588
|
}));
|
|
589
589
|
Ze.displayName = "AnimatedLoadingPanel";
|
|
590
|
-
var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt = /^\s*at\s+(?:(async|new|await)\s+)?(.+?):(\d+):(\d+)\s*$/,
|
|
590
|
+
var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt = /^\s*at\s+(?:(async|new|await)\s+)?(.+?):(\d+):(\d+)\s*$/, nt = (e) => {
|
|
591
591
|
if (!e) return "";
|
|
592
592
|
try {
|
|
593
593
|
e = new URL(e).pathname;
|
|
594
594
|
} catch {}
|
|
595
595
|
return e = (e = e.replace(/^\/+/, "")).replace(/^@?fs[\\/]/, "");
|
|
596
|
-
}, ot = z(({ error: e, maxLines:
|
|
597
|
-
const
|
|
596
|
+
}, ot = z(({ error: e, maxLines: n = Number.MAX_SAFE_INTEGER, hideLineNumbers: o = !1 }) => {
|
|
597
|
+
const r = ke(), [i, a] = W(null);
|
|
598
598
|
if (!e?.stack) return null;
|
|
599
599
|
const l = G.collectErrorChain(e).reverse(), s = [];
|
|
600
600
|
l.forEach(({ error: e }, t) => {
|
|
601
|
-
const
|
|
601
|
+
const n = (e.stack || "").split("\n").filter(Boolean).map((e) => {
|
|
602
602
|
let t = e.match(et);
|
|
603
603
|
if (t) {
|
|
604
|
-
const [, e = "",
|
|
604
|
+
const [, e = "", n, o, r, i] = t;
|
|
605
605
|
return {
|
|
606
|
-
line: `at ${e ? e + " " : ""}${
|
|
607
|
-
location: `${
|
|
606
|
+
line: `at ${e ? e + " " : ""}${n}`,
|
|
607
|
+
location: `${nt(o).split(/[\\/]/).pop()}:${r}:${i}`
|
|
608
608
|
};
|
|
609
609
|
}
|
|
610
610
|
if (t = e.match(tt), t) {
|
|
611
|
-
const [, e = "",
|
|
611
|
+
const [, e = "", n, o, r] = t, i = nt(n), a = `${i.split(/[\\/]/).pop()}:${o}:${r}`;
|
|
612
612
|
return {
|
|
613
613
|
line: `at ${e ? e + " " : ""}${a}`,
|
|
614
|
-
location: i !== a ? `${i}:${o}:${
|
|
614
|
+
location: i !== a ? `${i}:${o}:${r}` : void 0
|
|
615
615
|
};
|
|
616
616
|
}
|
|
617
617
|
return { line: e.trim() };
|
|
618
618
|
});
|
|
619
|
-
|
|
620
|
-
line: t ? `Caused by: ${
|
|
619
|
+
n.length && (s.push({
|
|
620
|
+
line: t ? `Caused by: ${n[0].line}` : n[0].line,
|
|
621
621
|
isBoundary: !0
|
|
622
|
-
}), s.push(...
|
|
622
|
+
}), s.push(...n.slice(1)));
|
|
623
623
|
});
|
|
624
|
-
const
|
|
624
|
+
const d = n ? s.slice(0, n) : s, p = n && s.length > n;
|
|
625
625
|
return S(t, {
|
|
626
626
|
sx: {
|
|
627
627
|
width: "100%",
|
|
@@ -637,17 +637,17 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
637
637
|
py: .5
|
|
638
638
|
},
|
|
639
639
|
children: [
|
|
640
|
-
M(
|
|
640
|
+
M(y, {
|
|
641
641
|
variant: "caption",
|
|
642
642
|
component: "div",
|
|
643
643
|
sx: {
|
|
644
644
|
fontSize: "0.75rem",
|
|
645
645
|
opacity: .8
|
|
646
646
|
},
|
|
647
|
-
children: l.length > 1 ?
|
|
647
|
+
children: l.length > 1 ? r("stackTrace.headingFrames", { count: l.length }) : r("stackTrace.heading")
|
|
648
648
|
}),
|
|
649
649
|
M(t, { sx: { flex: 1 } }),
|
|
650
|
-
i && M(
|
|
650
|
+
i && M(y, {
|
|
651
651
|
variant: "caption",
|
|
652
652
|
component: "div",
|
|
653
653
|
sx: {
|
|
@@ -656,7 +656,7 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
656
656
|
},
|
|
657
657
|
children: i
|
|
658
658
|
}),
|
|
659
|
-
M(
|
|
659
|
+
M(c, {
|
|
660
660
|
size: "small",
|
|
661
661
|
onClick: async () => {
|
|
662
662
|
try {
|
|
@@ -664,8 +664,8 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
664
664
|
const t = s.map((t) => {
|
|
665
665
|
if (t.isBoundary) return e = 0, t.line;
|
|
666
666
|
e++;
|
|
667
|
-
let
|
|
668
|
-
return e >= 1 && (
|
|
667
|
+
let n = t.location && t.line !== t.location ? `${t.line} (${t.location})` : t.line;
|
|
668
|
+
return e >= 1 && (n = ` ${n}`), n;
|
|
669
669
|
}).join("\n");
|
|
670
670
|
await navigator.clipboard.writeText(t), a("Copied!"), setTimeout(() => a(null), 2e3);
|
|
671
671
|
} catch (e) {
|
|
@@ -677,13 +677,13 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
677
677
|
opacity: .7,
|
|
678
678
|
"&:hover": { opacity: 1 }
|
|
679
679
|
},
|
|
680
|
-
title:
|
|
680
|
+
title: r("stackTrace.copy"),
|
|
681
681
|
children: M(J, {
|
|
682
682
|
iconKey: "ContentCopy",
|
|
683
683
|
style: { fontSize: "0.875rem" }
|
|
684
684
|
})
|
|
685
685
|
}),
|
|
686
|
-
M(
|
|
686
|
+
M(c, {
|
|
687
687
|
size: "small",
|
|
688
688
|
onClick: () => {
|
|
689
689
|
a("Logged!"), setTimeout(() => a(null), 2e3), console.warn(e);
|
|
@@ -693,7 +693,7 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
693
693
|
opacity: .7,
|
|
694
694
|
"&:hover": { opacity: 1 }
|
|
695
695
|
},
|
|
696
|
-
title:
|
|
696
|
+
title: r("stackTrace.log"),
|
|
697
697
|
children: M(J, {
|
|
698
698
|
iconKey: "BugReport",
|
|
699
699
|
style: { fontSize: "0.875rem" }
|
|
@@ -712,14 +712,14 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
712
712
|
fontSize: "0.75rem",
|
|
713
713
|
lineHeight: 1.4
|
|
714
714
|
},
|
|
715
|
-
children: [
|
|
715
|
+
children: [d.map((e, n) => e.isBoundary ? M(t, {
|
|
716
716
|
sx: {
|
|
717
717
|
py: 1,
|
|
718
|
-
mt:
|
|
718
|
+
mt: n > 0 ? 1 : 0,
|
|
719
719
|
mb: .5,
|
|
720
|
-
borderTop:
|
|
720
|
+
borderTop: n > 0 ? "1px solid rgba(255, 255, 255, 0.1)" : "none"
|
|
721
721
|
},
|
|
722
|
-
children: M(
|
|
722
|
+
children: M(y, {
|
|
723
723
|
variant: "caption",
|
|
724
724
|
component: "div",
|
|
725
725
|
sx: {
|
|
@@ -730,7 +730,7 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
730
730
|
},
|
|
731
731
|
children: e.line
|
|
732
732
|
})
|
|
733
|
-
}, `error-${
|
|
733
|
+
}, `error-${n}`) : S(t, {
|
|
734
734
|
sx: {
|
|
735
735
|
display: "flex",
|
|
736
736
|
alignItems: "flex-start",
|
|
@@ -739,7 +739,7 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
739
739
|
pl: 1,
|
|
740
740
|
"&:hover": { backgroundColor: "rgba(255, 255, 255, 0.05)" }
|
|
741
741
|
},
|
|
742
|
-
children: [!o && M(
|
|
742
|
+
children: [!o && M(y, {
|
|
743
743
|
variant: "caption",
|
|
744
744
|
component: "div",
|
|
745
745
|
sx: {
|
|
@@ -749,13 +749,13 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
749
749
|
textAlign: "right",
|
|
750
750
|
userSelect: "none"
|
|
751
751
|
},
|
|
752
|
-
children:
|
|
752
|
+
children: n + 1
|
|
753
753
|
}), S(t, {
|
|
754
754
|
sx: {
|
|
755
755
|
flex: 1,
|
|
756
756
|
overflow: "hidden"
|
|
757
757
|
},
|
|
758
|
-
children: [M(
|
|
758
|
+
children: [M(y, {
|
|
759
759
|
variant: "caption",
|
|
760
760
|
component: "div",
|
|
761
761
|
sx: {
|
|
@@ -766,7 +766,7 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
766
766
|
color: "inherit"
|
|
767
767
|
},
|
|
768
768
|
children: e.line
|
|
769
|
-
}), e.location && e.line !== e.location && M(
|
|
769
|
+
}), e.location && e.line !== e.location && M(y, {
|
|
770
770
|
variant: "caption",
|
|
771
771
|
component: "div",
|
|
772
772
|
sx: {
|
|
@@ -777,7 +777,7 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
777
777
|
children: e.location
|
|
778
778
|
})]
|
|
779
779
|
})]
|
|
780
|
-
}, `stack-${
|
|
780
|
+
}, `stack-${n}`)), p && M(y, {
|
|
781
781
|
variant: "caption",
|
|
782
782
|
component: "div",
|
|
783
783
|
sx: {
|
|
@@ -788,25 +788,25 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
788
788
|
display: "block",
|
|
789
789
|
mt: 1
|
|
790
790
|
},
|
|
791
|
-
children:
|
|
791
|
+
children: r("stackTrace.moreFrames", { count: s.length - n })
|
|
792
792
|
})]
|
|
793
793
|
})]
|
|
794
794
|
});
|
|
795
795
|
});
|
|
796
796
|
ot.displayName = "StackTrace";
|
|
797
|
-
var
|
|
798
|
-
const { sx: o, icon:
|
|
797
|
+
var rt = z(I((e, n) => {
|
|
798
|
+
const { sx: o, icon: r = M(J, {
|
|
799
799
|
iconKey: "Error",
|
|
800
800
|
style: { fontSize: 48 }
|
|
801
|
-
}), error: i, hideStackTrace: a = !1, stackTraceExpanded: l = !1, fullscreen: s = !1, ...
|
|
801
|
+
}), error: i, hideStackTrace: a = !1, stackTraceExpanded: l = !1, fullscreen: s = !1, ...d } = e, c = ke(), p = A(() => it(i, a, l, s, c), [
|
|
802
802
|
i,
|
|
803
803
|
a,
|
|
804
804
|
l,
|
|
805
805
|
s,
|
|
806
|
-
|
|
806
|
+
c
|
|
807
807
|
]);
|
|
808
808
|
return A(() => M(t, {
|
|
809
|
-
ref:
|
|
809
|
+
ref: n,
|
|
810
810
|
sx: {
|
|
811
811
|
boxSizing: "border-box",
|
|
812
812
|
alignItems: "center",
|
|
@@ -818,7 +818,7 @@ var nt = z(I((e, r) => {
|
|
|
818
818
|
height: "100%",
|
|
819
819
|
...o
|
|
820
820
|
},
|
|
821
|
-
...
|
|
821
|
+
...d,
|
|
822
822
|
children: S(t, {
|
|
823
823
|
sx: {
|
|
824
824
|
display: "flex",
|
|
@@ -879,10 +879,10 @@ var nt = z(I((e, r) => {
|
|
|
879
879
|
display: "flex",
|
|
880
880
|
color: (e) => e.palette.error.main
|
|
881
881
|
},
|
|
882
|
-
children: "string" == typeof
|
|
883
|
-
iconKey:
|
|
882
|
+
children: "string" == typeof r ? M(J, {
|
|
883
|
+
iconKey: r,
|
|
884
884
|
style: { fontSize: 48 }
|
|
885
|
-
}) :
|
|
885
|
+
}) : r
|
|
886
886
|
}), p]
|
|
887
887
|
})
|
|
888
888
|
})
|
|
@@ -890,23 +890,23 @@ var nt = z(I((e, r) => {
|
|
|
890
890
|
})
|
|
891
891
|
}), [
|
|
892
892
|
o,
|
|
893
|
-
|
|
893
|
+
r,
|
|
894
894
|
p
|
|
895
895
|
]);
|
|
896
896
|
}));
|
|
897
|
-
|
|
898
|
-
var it = (e,
|
|
897
|
+
rt.displayName = "StackTraceErrorPanel";
|
|
898
|
+
var it = (e, n = !1, o = !1, r = !1, i = (e) => e) => {
|
|
899
899
|
if ($(e)) return e;
|
|
900
900
|
if (e instanceof Error) return S(t, {
|
|
901
901
|
sx: {
|
|
902
902
|
display: "flex",
|
|
903
903
|
flexDirection: "column",
|
|
904
|
-
minWidth:
|
|
905
|
-
maxWidth:
|
|
904
|
+
minWidth: r ? "70vw" : "300px",
|
|
905
|
+
maxWidth: r ? void 0 : "500px",
|
|
906
906
|
width: "100%"
|
|
907
907
|
},
|
|
908
908
|
children: [
|
|
909
|
-
M(
|
|
909
|
+
M(y, {
|
|
910
910
|
variant: "caption",
|
|
911
911
|
component: "div",
|
|
912
912
|
sx: {
|
|
@@ -916,7 +916,7 @@ var it = (e, r = !1, o = !1, n = !1, i = (e) => e) => {
|
|
|
916
916
|
},
|
|
917
917
|
children: e.message
|
|
918
918
|
}),
|
|
919
|
-
e.cause ? M(
|
|
919
|
+
e.cause ? M(y, {
|
|
920
920
|
variant: "caption",
|
|
921
921
|
component: "div",
|
|
922
922
|
sx: {
|
|
@@ -928,14 +928,14 @@ var it = (e, r = !1, o = !1, n = !1, i = (e) => e) => {
|
|
|
928
928
|
},
|
|
929
929
|
children: i("stackTrace.causedBy", { cause: e.cause instanceof Error ? e.cause.message : String(e.cause) })
|
|
930
930
|
}) : null,
|
|
931
|
-
!
|
|
931
|
+
!n && M(ot, {
|
|
932
932
|
error: e,
|
|
933
933
|
hideLineNumbers: !0
|
|
934
934
|
})
|
|
935
935
|
]
|
|
936
936
|
});
|
|
937
937
|
const a = "string" === e ? e : `Unknown Error: ${String(e)}`;
|
|
938
|
-
return M(
|
|
938
|
+
return M(y, {
|
|
939
939
|
variant: "caption",
|
|
940
940
|
component: "div",
|
|
941
941
|
sx: {
|
|
@@ -946,8 +946,8 @@ var it = (e, r = !1, o = !1, n = !1, i = (e) => e) => {
|
|
|
946
946
|
children: a
|
|
947
947
|
});
|
|
948
948
|
}, at = z((e) => {
|
|
949
|
-
const { error: o, ...
|
|
950
|
-
return M(
|
|
949
|
+
const { error: o, ...r } = e, i = we(), a = ke(), l = o instanceof Error ? o.message : String(o);
|
|
950
|
+
return M(rt, {
|
|
951
951
|
hideStackTrace: !0,
|
|
952
952
|
error: S(t, {
|
|
953
953
|
sx: {
|
|
@@ -956,46 +956,46 @@ var it = (e, r = !1, o = !1, n = !1, i = (e) => e) => {
|
|
|
956
956
|
alignItems: "flex-start",
|
|
957
957
|
gap: 1
|
|
958
958
|
},
|
|
959
|
-
children: [M(
|
|
959
|
+
children: [M(y, {
|
|
960
960
|
variant: "body2",
|
|
961
961
|
component: "div",
|
|
962
962
|
children: l
|
|
963
|
-
}), i ? M(
|
|
963
|
+
}), i ? M(n, {
|
|
964
964
|
variant: "outlined",
|
|
965
965
|
size: "small",
|
|
966
966
|
onClick: i,
|
|
967
967
|
children: a("lazyLoad.retry")
|
|
968
968
|
}) : null]
|
|
969
969
|
}),
|
|
970
|
-
...
|
|
970
|
+
...r
|
|
971
971
|
});
|
|
972
972
|
});
|
|
973
973
|
function lt(e) {
|
|
974
|
-
const t =
|
|
974
|
+
const t = ce(e, { renderError: ({ error: e }) => M(at, { error: e }) });
|
|
975
975
|
return (e) => M(T, {
|
|
976
976
|
fallback: M(Ze, {}),
|
|
977
977
|
children: M(t, { ...e })
|
|
978
978
|
});
|
|
979
979
|
}
|
|
980
980
|
at.displayName = "LazyLoadErrorPanel";
|
|
981
|
-
var st = z(I((e,
|
|
982
|
-
const { chips:
|
|
983
|
-
if (!
|
|
984
|
-
const e = Array.isArray(
|
|
985
|
-
for (let
|
|
986
|
-
const
|
|
981
|
+
var st = z(I((e, n) => {
|
|
982
|
+
const { chips: r, sx: i, ...a } = e, l = A(() => {
|
|
983
|
+
if (!r) return null;
|
|
984
|
+
const e = Array.isArray(r) ? r : [r], t = [], n = e.length;
|
|
985
|
+
for (let r = 0; r < n; r++) {
|
|
986
|
+
const n = e[r];
|
|
987
987
|
let i = null;
|
|
988
|
-
"string" == typeof
|
|
989
|
-
label:
|
|
988
|
+
"string" == typeof n ? i = M(o, {
|
|
989
|
+
label: n,
|
|
990
990
|
color: "primary",
|
|
991
991
|
size: "small",
|
|
992
992
|
sx: { scale: "0.8" }
|
|
993
|
-
}, "chip-" +
|
|
993
|
+
}, "chip-" + r) : R(n, { key: "chip-" + r }), t.push(i);
|
|
994
994
|
}
|
|
995
995
|
return t;
|
|
996
|
-
}, [
|
|
996
|
+
}, [r]);
|
|
997
997
|
return M(t, {
|
|
998
|
-
ref:
|
|
998
|
+
ref: n,
|
|
999
999
|
sx: {
|
|
1000
1000
|
display: "flex",
|
|
1001
1001
|
flexDirection: "row",
|
|
@@ -1006,9 +1006,9 @@ var st = z(I((e, r) => {
|
|
|
1006
1006
|
...a,
|
|
1007
1007
|
children: l
|
|
1008
1008
|
});
|
|
1009
|
-
})),
|
|
1009
|
+
})), dt = (e) => {
|
|
1010
1010
|
if ("dark" === e.palette.mode) return `drop-shadow(0px 0px 1px ${"dark" === e.palette.mode ? e.palette.text.primary : e.palette.divider})`;
|
|
1011
|
-
},
|
|
1011
|
+
}, ct = (e = 1) => (t) => {
|
|
1012
1012
|
if ("dark" === t.palette.mode) return `drop-shadow(0px 0px ${e}px ${"dark" === t.palette.mode ? t.palette.text.primary : t.palette.divider})`;
|
|
1013
1013
|
}, pt = (e) => M(J, {
|
|
1014
1014
|
...e,
|
|
@@ -1018,14 +1018,14 @@ var st = z(I((e, r) => {
|
|
|
1018
1018
|
iconKey: "ArrowRightOutline"
|
|
1019
1019
|
}), mt = /^#?([a-f\d])([a-f\d])([a-f\d])$/i, ht = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i, ft = function(e, t = null) {
|
|
1020
1020
|
if (!e) return e;
|
|
1021
|
-
e = e.replace(mt, function(e, t,
|
|
1022
|
-
return t + t +
|
|
1021
|
+
e = e.replace(mt, function(e, t, n, o) {
|
|
1022
|
+
return t + t + n + n + o + o;
|
|
1023
1023
|
});
|
|
1024
|
-
let
|
|
1025
|
-
return
|
|
1026
|
-
}, gt = function(e, t = .2,
|
|
1024
|
+
let n = ht.exec(e);
|
|
1025
|
+
return n ? null === t ? `rgb(${parseInt(n[1], 16)}, ${parseInt(n[2], 16)}, ${parseInt(n[3], 16)})` : `rgb(${parseInt(n[1], 16)} ${parseInt(n[2], 16)} ${parseInt(n[3], 16)} / ${100 * t}%)` : e;
|
|
1026
|
+
}, gt = function(e, t = .2, n = "light") {
|
|
1027
1027
|
if (!e) return e;
|
|
1028
|
-
let o = "dark" !==
|
|
1028
|
+
let o = "dark" !== n;
|
|
1029
1029
|
t < 0 && (o = !o, t *= -1), e = ft(e);
|
|
1030
1030
|
try {
|
|
1031
1031
|
return o ? q(e, Math.max(0, Math.min(1, 1 * t))) : j(e, Math.max(0, Math.min(1, 1.5 * t)));
|
|
@@ -1034,23 +1034,23 @@ var st = z(I((e, r) => {
|
|
|
1034
1034
|
}
|
|
1035
1035
|
}, xt = (e) => {
|
|
1036
1036
|
e.stopPropagation();
|
|
1037
|
-
},
|
|
1037
|
+
}, yt = {
|
|
1038
1038
|
onMouseDown: xt,
|
|
1039
1039
|
onTouchStart: xt
|
|
1040
|
-
},
|
|
1041
|
-
let
|
|
1040
|
+
}, bt = (e, t) => {
|
|
1041
|
+
let n = v({ palette: { mode: e ? "dark" : "light" } });
|
|
1042
1042
|
const o = {
|
|
1043
|
-
"--icon-shadow": e ?
|
|
1043
|
+
"--icon-shadow": e ? n.palette.text.primary : n.palette.divider,
|
|
1044
1044
|
"--icon-size": "1.25rem",
|
|
1045
1045
|
"@media (pointer: coarse)": { "--icon-size": "1.75rem" }
|
|
1046
1046
|
};
|
|
1047
|
-
let
|
|
1047
|
+
let r = {
|
|
1048
1048
|
typography: {},
|
|
1049
1049
|
palette: {
|
|
1050
1050
|
mode: e ? "dark" : "light",
|
|
1051
1051
|
text: {
|
|
1052
|
-
secondary: e ?
|
|
1053
|
-
icon: e ? V(
|
|
1052
|
+
secondary: e ? n.palette.text.secondary : V(n.palette.text.secondary, .75),
|
|
1053
|
+
icon: e ? V(n.palette.text.secondary, .7) : V(n.palette.text.primary, .75)
|
|
1054
1054
|
}
|
|
1055
1055
|
},
|
|
1056
1056
|
components: {
|
|
@@ -1060,7 +1060,7 @@ var st = z(I((e, r) => {
|
|
|
1060
1060
|
IconComponent: pt,
|
|
1061
1061
|
MenuProps: {
|
|
1062
1062
|
container: () => document.fullscreenElement,
|
|
1063
|
-
...
|
|
1063
|
+
...yt
|
|
1064
1064
|
}
|
|
1065
1065
|
},
|
|
1066
1066
|
styleOverrides: { icon: { top: "unset" } }
|
|
@@ -1089,7 +1089,7 @@ var st = z(I((e, r) => {
|
|
|
1089
1089
|
MuiMenu: {
|
|
1090
1090
|
defaultProps: {
|
|
1091
1091
|
container: () => document.fullscreenElement,
|
|
1092
|
-
...
|
|
1092
|
+
...yt
|
|
1093
1093
|
},
|
|
1094
1094
|
styleOverrides: { root: {
|
|
1095
1095
|
paddingTop: "2px",
|
|
@@ -1124,7 +1124,7 @@ var st = z(I((e, r) => {
|
|
|
1124
1124
|
backgroundImage: "none"
|
|
1125
1125
|
} } },
|
|
1126
1126
|
MuiPopover: { styleOverrides: { paper: {
|
|
1127
|
-
backgroundColor: `var(--sxl-color-elevated, var(--sxl-color-base-100, ${
|
|
1127
|
+
backgroundColor: `var(--sxl-color-elevated, var(--sxl-color-base-100, ${n.palette.background.paper}))`,
|
|
1128
1128
|
border: "1px solid var(--sxl-color-elevated-border, transparent)"
|
|
1129
1129
|
} } },
|
|
1130
1130
|
MuiPopper: { styleOverrides: { root: { "& .menu": {
|
|
@@ -1136,92 +1136,31 @@ var st = z(I((e, r) => {
|
|
|
1136
1136
|
automatic: {
|
|
1137
1137
|
transition: "opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
|
|
1138
1138
|
color: function() {
|
|
1139
|
-
return
|
|
1139
|
+
return n.palette.text.secondary;
|
|
1140
1140
|
}
|
|
1141
1141
|
},
|
|
1142
1142
|
dirty: {
|
|
1143
1143
|
fontStyle: "italic",
|
|
1144
1144
|
color: function() {
|
|
1145
|
-
return
|
|
1145
|
+
return n.palette.text.secondary;
|
|
1146
1146
|
}
|
|
1147
1147
|
}
|
|
1148
1148
|
} }
|
|
1149
1149
|
}
|
|
1150
|
-
}, i =
|
|
1151
|
-
return t && (i = Pe(
|
|
1152
|
-
}
|
|
1153
|
-
function vt(e, t) {
|
|
1154
|
-
return t = Pe({
|
|
1155
|
-
track: gt(e.palette.background.paper, .05, e?.palette.mode),
|
|
1156
|
-
thumb: gt(e.palette.background.paper, .3, e?.palette.mode),
|
|
1157
|
-
active: e.palette.primary.main,
|
|
1158
|
-
corner: e.palette.background.paper,
|
|
1159
|
-
outline: !1
|
|
1160
|
-
}, t || {}), de({
|
|
1161
|
-
track: V(t.track, .2),
|
|
1162
|
-
thumb: t.thumb,
|
|
1163
|
-
button: t.button,
|
|
1164
|
-
active: t.active,
|
|
1165
|
-
corner: t.corner || t.thumb,
|
|
1166
|
-
border: t.track
|
|
1167
|
-
});
|
|
1168
|
-
}
|
|
1169
|
-
function wt(e, t) {
|
|
1170
|
-
const r = vt(e, t), o = {
|
|
1171
|
-
...r,
|
|
1172
|
-
"& .scrollbar, & .vsb-track, & .vsb-thumb": { ...r },
|
|
1173
|
-
"&::-webkit-scrollbar, & *::-webkit-scrollbar": {
|
|
1174
|
-
backgroundColor: "var(--scrollbar-track-color)",
|
|
1175
|
-
width: "var(--scrollbar-width)",
|
|
1176
|
-
height: "var(--scrollbar-height)"
|
|
1177
|
-
},
|
|
1178
|
-
"&::-webkit-scrollbar-button": { display: "none" },
|
|
1179
|
-
"& .scrollbar-button": {
|
|
1180
|
-
fill: "var(--scrollbar-thumb-color)",
|
|
1181
|
-
backgroundColor: "transparent",
|
|
1182
|
-
transition: "fill opacity 260ms ease",
|
|
1183
|
-
width: "var(--scrollbar-width)",
|
|
1184
|
-
height: "var(--scrollbar-height)"
|
|
1185
|
-
},
|
|
1186
|
-
"& .scrollbar-button:hover:not([disabled])": { fill: "var(--scrollbar-active-color)" },
|
|
1187
|
-
"& .scrollbar-button:disabled": { opacity: .8 },
|
|
1188
|
-
"&::-webkit-scrollbar-track, & *::-webkit-scrollbar-track": {},
|
|
1189
|
-
"&::-webkit-scrollbar-track-piece, & *::-webkit-scrollbar-track-piece": {},
|
|
1190
|
-
"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb": {
|
|
1191
|
-
borderRadius: "var(--scrollbar-border-radius)",
|
|
1192
|
-
backgroundColor: "var(--scrollbar-thumb-color)",
|
|
1193
|
-
minHeight: "var(--scrollbar-min-thumb-size)",
|
|
1194
|
-
minWidth: "var(--scrollbar-min-thumb-size)",
|
|
1195
|
-
border: "var(--scrollbar-border-width) solid var(--scrollbar-border-color)"
|
|
1196
|
-
},
|
|
1197
|
-
"&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus": {
|
|
1198
|
-
backgroundColor: "var(--scrollbar-active-color)",
|
|
1199
|
-
border: t?.outline ? t.outline : void 0
|
|
1200
|
-
},
|
|
1201
|
-
"&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active": {
|
|
1202
|
-
backgroundColor: "var(--scrollbar-active-color)",
|
|
1203
|
-
border: t?.outline ? t.outline : void 0
|
|
1204
|
-
},
|
|
1205
|
-
"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover": {
|
|
1206
|
-
backgroundColor: "var(--scrollbar-active-color)",
|
|
1207
|
-
border: t?.outline ? t.outline : void 0
|
|
1208
|
-
},
|
|
1209
|
-
"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner": { backgroundColor: "var(--scrollbar-corner-color)" }
|
|
1210
|
-
};
|
|
1211
|
-
return Q.getPlatform() === Q.OSType.Firefox && (o["* .pseudo-scrollbar"] = { scrollbarColor: "var(--scrollbar-thumb-color) transparent" }, o["* .pseudo-scrollbar:hover:not([disabled])"] = { scrollbarColor: "var(--scrollbar-active-color) transparent" }), o;
|
|
1212
|
-
}
|
|
1213
|
-
var kt = {
|
|
1150
|
+
}, i = r;
|
|
1151
|
+
return t && (i = Pe(r, t)), v(i);
|
|
1152
|
+
}, vt = {
|
|
1214
1153
|
Popup: "popup",
|
|
1215
1154
|
Anchor: "anchor"
|
|
1216
|
-
},
|
|
1155
|
+
}, wt = {
|
|
1217
1156
|
ByPopup: "popupDone",
|
|
1218
1157
|
Cancel: "popupCancel",
|
|
1219
1158
|
ClickAway: "clickAway"
|
|
1220
|
-
},
|
|
1159
|
+
}, Ct = {
|
|
1221
1160
|
Toolbar: "toolbar",
|
|
1222
1161
|
Menuitem: "menuitem"
|
|
1223
|
-
},
|
|
1224
|
-
const { closeFloat:
|
|
1162
|
+
}, kt = (e) => {
|
|
1163
|
+
const { closeFloat: n, closeFloatAll: o, floatReference: r, popupContainer: i, children: a, className: l, sx: s, ...d } = e;
|
|
1225
1164
|
return M(t, {
|
|
1226
1165
|
className: H("menu", l),
|
|
1227
1166
|
sx: {
|
|
@@ -1231,12 +1170,12 @@ var kt = {
|
|
|
1231
1170
|
paddingBottom: (e) => `${e.shape.borderRadius}px`,
|
|
1232
1171
|
...s
|
|
1233
1172
|
},
|
|
1234
|
-
...
|
|
1173
|
+
...d,
|
|
1235
1174
|
children: a
|
|
1236
1175
|
});
|
|
1237
|
-
},
|
|
1176
|
+
}, Mt = (e, t, n) => {
|
|
1238
1177
|
let o = "";
|
|
1239
|
-
return
|
|
1178
|
+
return n && (o = (o ? o + " " : "") + "rotate(180deg)"), M(pt, {
|
|
1240
1179
|
style: {
|
|
1241
1180
|
marginLeft: e ? void 0 : t ? "-0.25rem" : "-3px",
|
|
1242
1181
|
marginRight: e ? void 0 : t ? "-0.25rem" : "-6px",
|
|
@@ -1244,18 +1183,19 @@ var kt = {
|
|
|
1244
1183
|
},
|
|
1245
1184
|
color: "inherit"
|
|
1246
1185
|
});
|
|
1247
|
-
},
|
|
1248
|
-
const { open:
|
|
1249
|
-
|
|
1250
|
-
}, [
|
|
1186
|
+
}, St = z(I((e, t) => {
|
|
1187
|
+
const { open: n, anchorEl: o, anchorPosition: r, label: i, floatReference: a, renderPopupPanel: l = kt, propsPopper: s, onMount: d, onClosing: c, onClose: p, onOpening: u, onOpen: m, children: h, sx: g, ...x } = e, y = ue(c ?? (() => {}), [c]), b = ue(p ?? (() => {}), [p]), v = ue(u ?? (() => {}), [u]), w = ue(m ?? (() => {}), [m]), [C, k] = W(), S = F(null), P = ue((e, t) => {
|
|
1188
|
+
k(e), d?.(S.current, t);
|
|
1189
|
+
}, [d]), T = A(() => {
|
|
1251
1190
|
const e = {
|
|
1252
|
-
popupContainer:
|
|
1191
|
+
popupContainer: C,
|
|
1253
1192
|
floatReference: a,
|
|
1254
1193
|
children: h,
|
|
1255
1194
|
...x
|
|
1256
1195
|
};
|
|
1257
1196
|
return M(f, {
|
|
1258
1197
|
elevation: 8,
|
|
1198
|
+
className: pe,
|
|
1259
1199
|
ref: S,
|
|
1260
1200
|
sx: {
|
|
1261
1201
|
display: "flex",
|
|
@@ -1263,8 +1203,7 @@ var kt = {
|
|
|
1263
1203
|
overflowY: "auto",
|
|
1264
1204
|
outline: "none",
|
|
1265
1205
|
backgroundColor: "var(--sxl-color-elevated, var(--sxl-color-base-100, #fff))",
|
|
1266
|
-
border: "1px solid var(--sxl-color-elevated-border, transparent)"
|
|
1267
|
-
"&.MuiPaper-root": (e) => wt(e)
|
|
1206
|
+
border: "1px solid var(--sxl-color-elevated-border, transparent)"
|
|
1268
1207
|
},
|
|
1269
1208
|
tabIndex: 0,
|
|
1270
1209
|
children: M(ae, {
|
|
@@ -1275,44 +1214,44 @@ var kt = {
|
|
|
1275
1214
|
}, [
|
|
1276
1215
|
l,
|
|
1277
1216
|
h,
|
|
1278
|
-
|
|
1217
|
+
C,
|
|
1279
1218
|
a
|
|
1280
1219
|
]);
|
|
1281
1220
|
return M(Z, {
|
|
1282
1221
|
ref: t,
|
|
1283
1222
|
anchorEl: o,
|
|
1284
|
-
anchorPosition:
|
|
1223
|
+
anchorPosition: r,
|
|
1285
1224
|
label: i,
|
|
1286
|
-
open:
|
|
1225
|
+
open: n,
|
|
1287
1226
|
onMount: P,
|
|
1288
1227
|
onOpening: v,
|
|
1289
1228
|
onOpen: w,
|
|
1290
|
-
onClosing:
|
|
1291
|
-
onClose:
|
|
1229
|
+
onClosing: y,
|
|
1230
|
+
onClose: b,
|
|
1292
1231
|
...s,
|
|
1293
1232
|
children: T
|
|
1294
1233
|
});
|
|
1295
1234
|
}));
|
|
1296
|
-
|
|
1297
|
-
var
|
|
1235
|
+
St.displayName = "ExhibitFloatPanel";
|
|
1236
|
+
var Pt = (e) => M(St, { ...e }), Tt = (e) => M(ee, {
|
|
1298
1237
|
...e,
|
|
1299
|
-
renderFloatPanel:
|
|
1300
|
-
renderPopupPanel:
|
|
1301
|
-
}),
|
|
1302
|
-
const { nestedChildren: o, variant:
|
|
1238
|
+
renderFloatPanel: Pt,
|
|
1239
|
+
renderPopupPanel: kt
|
|
1240
|
+
}), Rt = z(I((e, n) => {
|
|
1241
|
+
const { nestedChildren: o, variant: r, disabled: i, renderPopupPanel: a, ...l } = e, s = {
|
|
1303
1242
|
disabled: i,
|
|
1304
1243
|
renderPopupPanel: ue((e) => {
|
|
1305
|
-
if (!o || 0 === o.length) return M(
|
|
1306
|
-
const { popupContainer:
|
|
1244
|
+
if (!o || 0 === o.length) return M(k, {});
|
|
1245
|
+
const { popupContainer: r, floatReference: i, ref: a, ...l } = e, s = [];
|
|
1307
1246
|
for (let e = 0; e < o.length; e++) {
|
|
1308
1247
|
const t = o[e];
|
|
1309
|
-
t && s.push(M(
|
|
1248
|
+
t && s.push(M(Rt, {
|
|
1310
1249
|
...l,
|
|
1311
1250
|
...t
|
|
1312
1251
|
}, e));
|
|
1313
1252
|
}
|
|
1314
1253
|
return S(t, {
|
|
1315
|
-
ref:
|
|
1254
|
+
ref: n,
|
|
1316
1255
|
sx: {
|
|
1317
1256
|
display: "flex",
|
|
1318
1257
|
flexDirection: "column",
|
|
@@ -1322,50 +1261,50 @@ var Rt = (e) => M(Tt, { ...e }), Dt = (e) => M(ee, {
|
|
|
1322
1261
|
children: [
|
|
1323
1262
|
"Children here",
|
|
1324
1263
|
s,
|
|
1325
|
-
M(
|
|
1264
|
+
M(Wt, { children: "Close other children" })
|
|
1326
1265
|
]
|
|
1327
1266
|
});
|
|
1328
1267
|
}, [o]),
|
|
1329
1268
|
...l
|
|
1330
1269
|
};
|
|
1331
|
-
return M(
|
|
1332
|
-
})),
|
|
1333
|
-
const { children:
|
|
1334
|
-
if (!$(
|
|
1335
|
-
const
|
|
1336
|
-
...
|
|
1270
|
+
return M(r === Ct.Toolbar ? Vt : Qt, { ...s });
|
|
1271
|
+
})), Dt = { placement: "right-start" }, It = z(I((e, t) => {
|
|
1272
|
+
const { children: n, sx: o, parentFloat: r, renderPopupPanel: i, propsPopper: a = Dt, label: l, ...s } = e;
|
|
1273
|
+
if (!$(n)) throw new Error("Must supply a child component to enable a context menu.");
|
|
1274
|
+
const d = n, c = A(() => ({
|
|
1275
|
+
...d?.props,
|
|
1337
1276
|
...s,
|
|
1338
1277
|
onContextMenu: (e) => {
|
|
1339
|
-
|
|
1278
|
+
d?.props?.onContextMenu?.(e), e.isDefaultPrevented() || (s?.onContextMenu?.(e), e.isDefaultPrevented() || (m(e), e.preventDefault()));
|
|
1340
1279
|
}
|
|
1341
|
-
}), [s,
|
|
1280
|
+
}), [s, d?.props]), p = ue(i ?? (() => {}), [i]), [u, m] = W(null), { reference: h, component: f } = ge({
|
|
1342
1281
|
label: l ?? "contextMenu",
|
|
1343
1282
|
propsPopper: a,
|
|
1344
|
-
parentFloat:
|
|
1283
|
+
parentFloat: r,
|
|
1345
1284
|
anchor: { getBoundingClientRect: () => new DOMRect(u?.clientX || 0, u?.clientY || 0) },
|
|
1346
1285
|
onClose: () => m(null),
|
|
1347
1286
|
renderPopupPanel: p
|
|
1348
1287
|
});
|
|
1349
1288
|
return N(() => {
|
|
1350
1289
|
u ? h.open(0) : h.close(0);
|
|
1351
|
-
}, [u]), S(
|
|
1352
|
-
})),
|
|
1353
|
-
const { slotProps:
|
|
1290
|
+
}, [u]), S(k, { children: [R(n, c), f] });
|
|
1291
|
+
})), $t = I((e, t) => {
|
|
1292
|
+
const { slotProps: n, ...o } = e, { getPortalContainer: r, isFullscreen: i } = ye();
|
|
1354
1293
|
return M(x, {
|
|
1355
1294
|
ref: t,
|
|
1356
1295
|
slotProps: {
|
|
1357
|
-
...
|
|
1296
|
+
...n,
|
|
1358
1297
|
popper: {
|
|
1359
|
-
container: i ?
|
|
1360
|
-
...
|
|
1298
|
+
container: i ? r : void 0,
|
|
1299
|
+
...n?.popper || {}
|
|
1361
1300
|
}
|
|
1362
1301
|
},
|
|
1363
1302
|
...o
|
|
1364
1303
|
});
|
|
1365
1304
|
});
|
|
1366
|
-
|
|
1367
|
-
var
|
|
1368
|
-
const { modifier:
|
|
1305
|
+
$t.displayName = "SimpleTooltip";
|
|
1306
|
+
var zt = z((e) => {
|
|
1307
|
+
const { modifier: n, sx: o, ...r } = e;
|
|
1369
1308
|
return M(t, {
|
|
1370
1309
|
sx: {
|
|
1371
1310
|
marginLeft: "1px",
|
|
@@ -1391,7 +1330,7 @@ var Lt = z((e) => {
|
|
|
1391
1330
|
overflow: "hidden",
|
|
1392
1331
|
...o
|
|
1393
1332
|
},
|
|
1394
|
-
...
|
|
1333
|
+
...r,
|
|
1395
1334
|
children: M(t, {
|
|
1396
1335
|
sx: {
|
|
1397
1336
|
display: "flex",
|
|
@@ -1400,13 +1339,13 @@ var Lt = z((e) => {
|
|
|
1400
1339
|
textAlign: "center",
|
|
1401
1340
|
"& *": { fontWeight: "500" }
|
|
1402
1341
|
},
|
|
1403
|
-
children:
|
|
1342
|
+
children: n
|
|
1404
1343
|
})
|
|
1405
1344
|
});
|
|
1406
|
-
}),
|
|
1345
|
+
}), Bt = (e, n, o = !1, r = null) => {
|
|
1407
1346
|
if (Array.isArray(e)) {
|
|
1408
1347
|
let i = [], a = e;
|
|
1409
|
-
for (let e = 0; e < a.length; e++) i.push(
|
|
1348
|
+
for (let e = 0; e < a.length; e++) i.push(Bt(a[e], n, o, r ?? "" + e));
|
|
1410
1349
|
return M(t, {
|
|
1411
1350
|
sx: {
|
|
1412
1351
|
display: "flex",
|
|
@@ -1414,22 +1353,22 @@ var Lt = z((e) => {
|
|
|
1414
1353
|
flexDirection: "column"
|
|
1415
1354
|
},
|
|
1416
1355
|
children: i
|
|
1417
|
-
},
|
|
1356
|
+
}, r);
|
|
1418
1357
|
}
|
|
1419
1358
|
if (!e?.key) return null;
|
|
1420
1359
|
const i = {};
|
|
1421
1360
|
for (let t = 0; e.modifiers && t < e.modifiers.length; t++) i[e.modifiers[t]] = !0;
|
|
1422
|
-
const a = [], l = Q.getPlatform() === Q.OSType.MacOS || Q.getPlatform() === Q.OSType.IOS ?
|
|
1423
|
-
return i?.[oe.Ctrl] && (a.push(M(
|
|
1361
|
+
const a = [], l = Q.getPlatform() === Q.OSType.MacOS || Q.getPlatform() === Q.OSType.IOS ? n("shortcut.modifier.cmd") : n("shortcut.modifier.ctrl");
|
|
1362
|
+
return i?.[oe.Ctrl] && (a.push(M(zt, { modifier: o ? "^" : M("div", {
|
|
1424
1363
|
style: { paddingRight: "1px" },
|
|
1425
1364
|
children: l
|
|
1426
|
-
}) }, "ctrl")), a.push("+")), i?.[oe.Alt] && (a.push(M(
|
|
1365
|
+
}) }, "ctrl")), a.push("+")), i?.[oe.Alt] && (a.push(M(zt, { modifier: o ? "⌥" : n("shortcut.modifier.alt") }, "alt")), a.push("+")), i?.[oe.Shift] && (a.push(M(zt, { modifier: o ? "⇧" : M("div", {
|
|
1427
1366
|
style: { paddingRight: "1px" },
|
|
1428
|
-
children:
|
|
1429
|
-
}) }, "shift")), a.push("+")), i?.[oe.Meta] && (a.push(M(
|
|
1367
|
+
children: n("shortcut.modifier.shift")
|
|
1368
|
+
}) }, "shift")), a.push("+")), i?.[oe.Meta] && (a.push(M(zt, { modifier: o ? M("div", {
|
|
1430
1369
|
style: { paddingTop: "1px" },
|
|
1431
1370
|
children: "⌘"
|
|
1432
|
-
}) :
|
|
1371
|
+
}) : n("shortcut.modifier.meta") }, "meta")), a.push("+")), a.push(M(zt, { modifier: ie.toPrettyKeyCode(e.key) }, "character")), M(t, {
|
|
1433
1372
|
sx: {
|
|
1434
1373
|
display: "flex",
|
|
1435
1374
|
alignItems: "center",
|
|
@@ -1437,18 +1376,18 @@ var Lt = z((e) => {
|
|
|
1437
1376
|
whiteSpace: "nowrap"
|
|
1438
1377
|
},
|
|
1439
1378
|
children: a
|
|
1440
|
-
},
|
|
1441
|
-
},
|
|
1442
|
-
const { disabled: o = !1, label:
|
|
1379
|
+
}, r);
|
|
1380
|
+
}, Lt = z(I((e, n) => {
|
|
1381
|
+
const { disabled: o = !1, label: r, shortcut: i, chips: a, description: l, maxWidth: s = 280, useModifierSymbols: d = !1, children: c, simple: p, componentDisabled: u = !1, sx: m, ...h } = e, f = ke();
|
|
1443
1382
|
let g = null;
|
|
1444
|
-
i && (g =
|
|
1445
|
-
const [x,
|
|
1383
|
+
i && (g = Bt(i, f, d));
|
|
1384
|
+
const [x, b] = W(null);
|
|
1446
1385
|
N(() => {
|
|
1447
|
-
Promise.resolve(
|
|
1448
|
-
|
|
1386
|
+
Promise.resolve(r).then((e) => {
|
|
1387
|
+
b(e);
|
|
1449
1388
|
});
|
|
1450
|
-
}, [
|
|
1451
|
-
return M(
|
|
1389
|
+
}, [r]);
|
|
1390
|
+
return M($t, {
|
|
1452
1391
|
slotProps: { popper: {
|
|
1453
1392
|
sx: {
|
|
1454
1393
|
"& .MuiTooltip-tooltip": { marginTop: "0px !important" },
|
|
@@ -1463,7 +1402,7 @@ var Lt = z((e) => {
|
|
|
1463
1402
|
tabIndex: -1,
|
|
1464
1403
|
title: !o && x ? S(t, {
|
|
1465
1404
|
sx: { maxWidth: `${s}px` },
|
|
1466
|
-
ref:
|
|
1405
|
+
ref: n,
|
|
1467
1406
|
children: [S(t, {
|
|
1468
1407
|
sx: {
|
|
1469
1408
|
display: "flex",
|
|
@@ -1471,24 +1410,24 @@ var Lt = z((e) => {
|
|
|
1471
1410
|
marginBottom: l ? "4px" : "0px"
|
|
1472
1411
|
},
|
|
1473
1412
|
children: [
|
|
1474
|
-
M(
|
|
1413
|
+
M(y, {
|
|
1475
1414
|
variant: "subtitle1",
|
|
1476
1415
|
component: "div",
|
|
1477
1416
|
sx: { flex: "1 1 100%" },
|
|
1478
1417
|
children: x
|
|
1479
1418
|
}),
|
|
1480
1419
|
a ? M(st, { chips: a }) : null,
|
|
1481
|
-
g ? M(t, { sx: { marginLeft: "8px" } }, "leadingSpace") : M(
|
|
1420
|
+
g ? M(t, { sx: { marginLeft: "8px" } }, "leadingSpace") : M(k, {}),
|
|
1482
1421
|
g
|
|
1483
1422
|
]
|
|
1484
|
-
}), l ? M(
|
|
1423
|
+
}), l ? M(y, {
|
|
1485
1424
|
variant: "caption",
|
|
1486
1425
|
sx: {
|
|
1487
1426
|
whiteSpace: "pre-line",
|
|
1488
1427
|
lineHeight: "1.4"
|
|
1489
1428
|
},
|
|
1490
1429
|
children: l
|
|
1491
|
-
}) : M(
|
|
1430
|
+
}) : M(k, {})]
|
|
1492
1431
|
}) : "",
|
|
1493
1432
|
enterDelay: 260,
|
|
1494
1433
|
enterNextDelay: 130,
|
|
@@ -1501,22 +1440,22 @@ var Lt = z((e) => {
|
|
|
1501
1440
|
alignItems: "stretch",
|
|
1502
1441
|
justifyContent: "stretch"
|
|
1503
1442
|
},
|
|
1504
|
-
children:
|
|
1443
|
+
children: c
|
|
1505
1444
|
})
|
|
1506
1445
|
});
|
|
1507
|
-
})),
|
|
1508
|
-
const { dense: o = !0, outlined:
|
|
1446
|
+
})), Nt = M(J, {}), Ot = M(J, { iconKey: "Check" }), Et = z(I((e, n) => {
|
|
1447
|
+
const { dense: o = !0, outlined: r = !1, disableHover: i = !1, selected: a, icon: l, propsTooltip: s, children: d, primary: p, sx: u, disabled: m, className: h, onFocus: f, onBlur: g, ...x } = e, [y, b] = W(!1), v = {
|
|
1509
1448
|
marginRight: "0px",
|
|
1510
1449
|
padding: o ? "2px" : "7px",
|
|
1511
1450
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
1512
1451
|
color: (e) => p ? void 0 : e.palette.text.icon ?? e.palette.action.active,
|
|
1513
|
-
border: (e) => `solid ${
|
|
1452
|
+
border: (e) => `solid ${r ? e.palette.divider : "transparent"} 1px`,
|
|
1514
1453
|
"& .MuiTouchRipple-child": { borderRadius: (e) => `${e.shape.borderRadius}px !important` },
|
|
1515
1454
|
"&.Mui-selected": {
|
|
1516
1455
|
backgroundColor: (e) => V(e.palette.text.primary, e.palette.action.selectedOpacity),
|
|
1517
|
-
border: (e) => `solid ${
|
|
1456
|
+
border: (e) => `solid ${r ? e.palette.text?.primary : e.palette.divider} 1px`
|
|
1518
1457
|
},
|
|
1519
|
-
"&.Mui-disabled": { border: (e) => `solid ${
|
|
1458
|
+
"&.Mui-disabled": { border: (e) => `solid ${r ? e.palette.divider : "transparent"} 1px` },
|
|
1520
1459
|
"&.Mui-disabled > .icon path": {
|
|
1521
1460
|
filter: "grayscale(65%)",
|
|
1522
1461
|
opacity: ".8"
|
|
@@ -1529,9 +1468,9 @@ var Lt = z((e) => {
|
|
|
1529
1468
|
}, w = {
|
|
1530
1469
|
"@media (hover: hover)": { "&:hover:not(.Mui-disabled, [disabled])": {
|
|
1531
1470
|
color: (e) => e.palette.text.primary,
|
|
1532
|
-
border: (e) => `solid ${
|
|
1471
|
+
border: (e) => `solid ${r ? e.palette.text?.primary : e.palette.divider} 1px`,
|
|
1533
1472
|
"&.Mui-selected": { backgroundColor: (e) => V(e.palette.text.primary, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity) },
|
|
1534
|
-
"> .outline-hover": { outline: (e) => `solid ${
|
|
1473
|
+
"> .outline-hover": { outline: (e) => `solid ${r ? e.palette.text?.primary : e.palette.divider} 1px` },
|
|
1535
1474
|
backgroundColor: (e) => V(e.palette.action.active, e.palette.action.hoverOpacity)
|
|
1536
1475
|
} },
|
|
1537
1476
|
"&.Mui-focusVisible": {
|
|
@@ -1540,37 +1479,37 @@ var Lt = z((e) => {
|
|
|
1540
1479
|
zIndex: 1
|
|
1541
1480
|
}
|
|
1542
1481
|
};
|
|
1543
|
-
let
|
|
1544
|
-
i || (
|
|
1545
|
-
const
|
|
1482
|
+
let C = v;
|
|
1483
|
+
i || (C = Q.mergeContentful(v, w));
|
|
1484
|
+
const k = A(() => {
|
|
1546
1485
|
let e = "function" == typeof l ? l() : l;
|
|
1547
|
-
return null === e ? e : e || (void 0 === a ?
|
|
1486
|
+
return null === e ? e : e || (void 0 === a ? Nt : Ot);
|
|
1548
1487
|
}, [l, a]);
|
|
1549
|
-
let P = S(
|
|
1488
|
+
let P = S(c, {
|
|
1550
1489
|
component: "div",
|
|
1551
|
-
ref:
|
|
1490
|
+
ref: n,
|
|
1552
1491
|
className: H({
|
|
1553
|
-
"Mui-focusVisible":
|
|
1492
|
+
"Mui-focusVisible": y,
|
|
1554
1493
|
"Mui-selected": a,
|
|
1555
1494
|
"Mui-disabled": m
|
|
1556
1495
|
}, h),
|
|
1557
1496
|
onFocus: (e) => {
|
|
1558
|
-
|
|
1497
|
+
b(!0), f?.(e);
|
|
1559
1498
|
},
|
|
1560
1499
|
onBlur: (e) => {
|
|
1561
|
-
|
|
1500
|
+
b(!1), g?.(e);
|
|
1562
1501
|
},
|
|
1563
1502
|
size: "small",
|
|
1564
1503
|
TouchRippleProps: { center: !1 },
|
|
1565
|
-
sx:
|
|
1504
|
+
sx: C,
|
|
1566
1505
|
edge: "end",
|
|
1567
1506
|
...x,
|
|
1568
1507
|
disabled: m || !1,
|
|
1569
|
-
children: [
|
|
1508
|
+
children: [k, d]
|
|
1570
1509
|
});
|
|
1571
1510
|
if (s) if (s.simple && s.label && !s.disabled) {
|
|
1572
|
-
const { label: e, description:
|
|
1573
|
-
P = M(
|
|
1511
|
+
const { label: e, description: n, maxWidth: o, shortcut: r, useModifierSymbols: i, componentDisabled: a, simple: l, chips: d, ref: c, ...p } = s;
|
|
1512
|
+
P = M($t, {
|
|
1574
1513
|
disableInteractive: !0,
|
|
1575
1514
|
title: e ?? "",
|
|
1576
1515
|
...p,
|
|
@@ -1579,30 +1518,30 @@ var Lt = z((e) => {
|
|
|
1579
1518
|
children: P
|
|
1580
1519
|
})
|
|
1581
1520
|
});
|
|
1582
|
-
} else P = M(
|
|
1521
|
+
} else P = M(Lt, {
|
|
1583
1522
|
children: P,
|
|
1584
1523
|
...s
|
|
1585
1524
|
});
|
|
1586
1525
|
return P;
|
|
1587
|
-
})),
|
|
1526
|
+
})), At = M(J, {}), Kt = {
|
|
1588
1527
|
marginLeft: "4px",
|
|
1589
1528
|
marginRight: "4px",
|
|
1590
1529
|
paddingLeft: "6px",
|
|
1591
1530
|
paddingRight: "18px"
|
|
1592
|
-
},
|
|
1593
|
-
const { icon:
|
|
1531
|
+
}, Ft = (e) => e.icon, Wt = z(I((e, t) => {
|
|
1532
|
+
const { icon: n = At, renderIcon: o = Ft, className: r, onFocus: i, selected: a, onBlur: l, onMouseOver: s, onMouseOut: d, onMouseEnter: c, disabled: p, children: u, sx: f, propsTooltip: g, chips: x, primary: y, ...b } = e, v = fe(), [w, C] = W(!1), [k, P] = W(!1), T = A(() => {
|
|
1594
1533
|
const e = o?.({
|
|
1595
|
-
icon:
|
|
1534
|
+
icon: n,
|
|
1596
1535
|
disabled: p,
|
|
1597
1536
|
selected: a
|
|
1598
1537
|
});
|
|
1599
1538
|
return e ? M(h, {
|
|
1600
1539
|
className: H({
|
|
1601
1540
|
"Mui-focusVisible": w,
|
|
1602
|
-
"Mui-hovered":
|
|
1541
|
+
"Mui-hovered": k
|
|
1603
1542
|
}),
|
|
1604
1543
|
sx: {
|
|
1605
|
-
"& .MuiSvgIcon-root": { color: (e) =>
|
|
1544
|
+
"& .MuiSvgIcon-root": { color: (e) => y ? void 0 : e.palette.text.icon ?? e.palette.action.active },
|
|
1606
1545
|
"&.Mui-hovered:not(.Mui-disabled, [disabled])": { "& .MuiSvgIcon-root": { color: (e) => e.palette.text.primary } }
|
|
1607
1546
|
},
|
|
1608
1547
|
children: e
|
|
@@ -1610,10 +1549,10 @@ var Lt = z((e) => {
|
|
|
1610
1549
|
}, [
|
|
1611
1550
|
o,
|
|
1612
1551
|
p,
|
|
1613
|
-
|
|
1552
|
+
n,
|
|
1614
1553
|
w,
|
|
1615
|
-
|
|
1616
|
-
|
|
1554
|
+
k,
|
|
1555
|
+
y,
|
|
1617
1556
|
a
|
|
1618
1557
|
]);
|
|
1619
1558
|
let R = S(m, {
|
|
@@ -1624,21 +1563,21 @@ var Lt = z((e) => {
|
|
|
1624
1563
|
s?.(e), e.isDefaultPrevented() || P(!0);
|
|
1625
1564
|
},
|
|
1626
1565
|
onMouseOut: (e) => {
|
|
1627
|
-
|
|
1566
|
+
d?.(e), e.isDefaultPrevented() || P(!1);
|
|
1628
1567
|
},
|
|
1629
1568
|
onMouseEnter: (e) => {
|
|
1630
|
-
|
|
1569
|
+
c?.(e), e.isDefaultPrevented() || v?.closeChild();
|
|
1631
1570
|
},
|
|
1632
1571
|
TouchRippleProps: { center: !1 },
|
|
1633
1572
|
className: H({
|
|
1634
1573
|
"Mui-focusVisible": w,
|
|
1635
|
-
"Mui-hovered":
|
|
1636
|
-
},
|
|
1574
|
+
"Mui-hovered": k
|
|
1575
|
+
}, r),
|
|
1637
1576
|
onFocus: (e) => {
|
|
1638
|
-
i?.(e),
|
|
1577
|
+
i?.(e), C(!0);
|
|
1639
1578
|
},
|
|
1640
1579
|
onBlur: (e) => {
|
|
1641
|
-
l?.(e),
|
|
1580
|
+
l?.(e), C(!1);
|
|
1642
1581
|
},
|
|
1643
1582
|
sx: {
|
|
1644
1583
|
flex: "1 1 100%",
|
|
@@ -1648,7 +1587,7 @@ var Lt = z((e) => {
|
|
|
1648
1587
|
lineHeight: 1.5,
|
|
1649
1588
|
paddingTop: "2px",
|
|
1650
1589
|
paddingBottom: "2px",
|
|
1651
|
-
...
|
|
1590
|
+
...Kt,
|
|
1652
1591
|
borderRadius: "4px",
|
|
1653
1592
|
fontSize: "0.875em",
|
|
1654
1593
|
"@media (pointer: coarse)": { fontSize: "1em" },
|
|
@@ -1658,21 +1597,21 @@ var Lt = z((e) => {
|
|
|
1658
1597
|
"&.Mui-hovered:not(.Mui-disabled, [disabled])": { color: (e) => e.palette.text.primary },
|
|
1659
1598
|
...f
|
|
1660
1599
|
},
|
|
1661
|
-
...
|
|
1600
|
+
...b,
|
|
1662
1601
|
children: [
|
|
1663
1602
|
T,
|
|
1664
1603
|
u,
|
|
1665
1604
|
x ? M(st, { chips: x }) : null
|
|
1666
1605
|
]
|
|
1667
1606
|
});
|
|
1668
|
-
return g && (R = M(
|
|
1607
|
+
return g && (R = M(Lt, {
|
|
1669
1608
|
children: R,
|
|
1670
1609
|
placement: "right-start",
|
|
1671
1610
|
...g
|
|
1672
1611
|
})), R;
|
|
1673
|
-
})),
|
|
1674
|
-
const { children:
|
|
1675
|
-
return M(
|
|
1612
|
+
})), Ht = z(I((e, t) => {
|
|
1613
|
+
const { children: n, sx: o, primary: r = !1, variant: i = "subtitle1", ...a } = e;
|
|
1614
|
+
return M(k, { children: M(y, {
|
|
1676
1615
|
ref: t,
|
|
1677
1616
|
variant: i,
|
|
1678
1617
|
component: "div",
|
|
@@ -1682,17 +1621,17 @@ var Lt = z((e) => {
|
|
|
1682
1621
|
paddingLeft: "8px",
|
|
1683
1622
|
paddingTop: "subtitle1" === i ? "2px" : void 0,
|
|
1684
1623
|
paddingBottom: "subtitle1" === i ? "2px" : void 0,
|
|
1685
|
-
color: (e) =>
|
|
1624
|
+
color: (e) => r ? void 0 : e.palette.text.secondary,
|
|
1686
1625
|
...o
|
|
1687
1626
|
},
|
|
1688
1627
|
...a,
|
|
1689
|
-
children:
|
|
1628
|
+
children: n
|
|
1690
1629
|
}) });
|
|
1691
|
-
})),
|
|
1692
|
-
const { dense: o = !0, outlined:
|
|
1693
|
-
const e = (e, t,
|
|
1694
|
-
const i = "boolean" == typeof
|
|
1695
|
-
return "function" == typeof i ? i(t) : i || (
|
|
1630
|
+
})), Vt = z(I((e, n) => {
|
|
1631
|
+
const { dense: o = !0, outlined: r = !1, label: i, showLabel: a = !1, selected: l = !1, onQuickClick: s, parentFloat: d, renderPopupPanel: p, propsPopup: u, onPopupOpen: m, onPopupClose: h, propsQuickButton: f, renderQuickButton: g, tooltip: x = "", renderTooltip: y, icon: b, disabled: v, propsButton: C = Q.EmptyObject, disableHover: P, ripple: T, primary: R, children: D, sx: I, className: $, ...z } = e, B = w(), L = A(() => {
|
|
1632
|
+
const e = (e, t, n, o = n) => {
|
|
1633
|
+
const i = "boolean" == typeof r ? null : r[e];
|
|
1634
|
+
return "function" == typeof i ? i(t) : i || (r ? n : o);
|
|
1696
1635
|
};
|
|
1697
1636
|
return {
|
|
1698
1637
|
outline: {
|
|
@@ -1703,11 +1642,11 @@ var Lt = z((e) => {
|
|
|
1703
1642
|
active: "dark" === B.palette.mode ? B.palette.text.secondary : B.palette.text.primary,
|
|
1704
1643
|
text: B.palette.text.icon ?? B.palette.action.active
|
|
1705
1644
|
};
|
|
1706
|
-
}, [
|
|
1645
|
+
}, [r, B]), [N, O] = W(!1), [E, K] = W(!1), [q, j] = W(!1), G = F(null), U = F(null), X = ge({
|
|
1707
1646
|
anchor: G.current,
|
|
1708
1647
|
label: i,
|
|
1709
1648
|
renderPopupPanel: p,
|
|
1710
|
-
parentFloat:
|
|
1649
|
+
parentFloat: d,
|
|
1711
1650
|
propsPopper: u?.propsPopper,
|
|
1712
1651
|
onClose: () => {
|
|
1713
1652
|
O(!1), h?.();
|
|
@@ -1722,7 +1661,7 @@ var Lt = z((e) => {
|
|
|
1722
1661
|
}, [
|
|
1723
1662
|
N,
|
|
1724
1663
|
X,
|
|
1725
|
-
|
|
1664
|
+
d,
|
|
1726
1665
|
i
|
|
1727
1666
|
]), J = A(() => {
|
|
1728
1667
|
const e = {
|
|
@@ -1763,7 +1702,7 @@ var Lt = z((e) => {
|
|
|
1763
1702
|
backgroundColor: (e) => V(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
1764
1703
|
"@media (hover: none)": { backgroundColor: (e) => V(e.palette.primary.main, e.palette.action.selectedOpacity) }
|
|
1765
1704
|
}
|
|
1766
|
-
} },
|
|
1705
|
+
} }, n = {
|
|
1767
1706
|
maxHeight: "100%",
|
|
1768
1707
|
"&.Mui-selected": {
|
|
1769
1708
|
backgroundColor: (e) => V(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity),
|
|
@@ -1787,42 +1726,42 @@ var Lt = z((e) => {
|
|
|
1787
1726
|
},
|
|
1788
1727
|
padding: () => o ? "2px 3px" : "7px",
|
|
1789
1728
|
marginRight: "0"
|
|
1790
|
-
},
|
|
1729
|
+
}, r = Q.mergeContentful(n, e), i = Q.mergeContentful(r, t), a = Q.mergeContentful(n, e);
|
|
1791
1730
|
return {
|
|
1792
|
-
quickButtonStyling:
|
|
1731
|
+
quickButtonStyling: r,
|
|
1793
1732
|
openQuickButtonStyling: i,
|
|
1794
1733
|
compoundStyling: a,
|
|
1795
1734
|
openCompoundStyling: Q.mergeContentful(a, t)
|
|
1796
1735
|
};
|
|
1797
1736
|
}, [L, P]), Z = ue((e) => {
|
|
1798
|
-
const { children: t, ref:
|
|
1799
|
-
return M(
|
|
1800
|
-
ref:
|
|
1801
|
-
...
|
|
1737
|
+
const { children: t, ref: n, disabled: o, ...r } = e;
|
|
1738
|
+
return M($t, {
|
|
1739
|
+
ref: n,
|
|
1740
|
+
...r,
|
|
1802
1741
|
disableInteractive: !0,
|
|
1803
1742
|
children: t
|
|
1804
1743
|
});
|
|
1805
1744
|
}, []), ee = s || g, te = ee && (f?.tooltip || f?.renderTooltip), oe = (e) => {
|
|
1806
|
-
const { tooltip: t, renderTooltip:
|
|
1807
|
-
let i = M(
|
|
1745
|
+
const { tooltip: t, renderTooltip: n, sx: o, ...r } = e;
|
|
1746
|
+
let i = M(c, {
|
|
1808
1747
|
sx: { ...o },
|
|
1809
1748
|
component: "div",
|
|
1810
|
-
...
|
|
1749
|
+
...r
|
|
1811
1750
|
});
|
|
1812
1751
|
return te ? (i = M(ae, {
|
|
1813
|
-
render:
|
|
1752
|
+
render: n ?? Z,
|
|
1814
1753
|
props: {
|
|
1815
1754
|
title: N ? "" : t ?? x,
|
|
1816
1755
|
children: M("div", { children: i }),
|
|
1817
1756
|
disabled: N
|
|
1818
1757
|
}
|
|
1819
1758
|
}), i) : i;
|
|
1820
|
-
},
|
|
1821
|
-
e.keyCode ===
|
|
1759
|
+
}, re = { onKeyDown: (e) => {
|
|
1760
|
+
e.keyCode === ne.Space ? _() : e.keyCode === ne.F4 || e.keyCode === ne.Down ? X.reference.open(0) : e.keyCode === ne.Up && X.reference.close(0);
|
|
1822
1761
|
} };
|
|
1823
|
-
let ie = M(
|
|
1824
|
-
const le = A(() => Oe(("function" == typeof
|
|
1825
|
-
|
|
1762
|
+
let ie = M(k, {});
|
|
1763
|
+
const le = A(() => Oe(("function" == typeof b ? b() : b) ?? (ee ? qt : null), a ? i : null), [
|
|
1764
|
+
b,
|
|
1826
1765
|
i,
|
|
1827
1766
|
a,
|
|
1828
1767
|
ee
|
|
@@ -1841,7 +1780,7 @@ var Lt = z((e) => {
|
|
|
1841
1780
|
0 === e.button && (e.preventDefault(), Y(e));
|
|
1842
1781
|
},
|
|
1843
1782
|
disableRipple: !!T,
|
|
1844
|
-
children: S(
|
|
1783
|
+
children: S(k, { children: [le, T] }),
|
|
1845
1784
|
...f,
|
|
1846
1785
|
className: H({
|
|
1847
1786
|
"Mui-focusVisible": E || N,
|
|
@@ -1857,19 +1796,19 @@ var Lt = z((e) => {
|
|
|
1857
1796
|
height: "100%",
|
|
1858
1797
|
...f?.sx
|
|
1859
1798
|
}
|
|
1860
|
-
},
|
|
1799
|
+
}, n = M(ae, {
|
|
1861
1800
|
render: g ?? oe,
|
|
1862
1801
|
props: t
|
|
1863
1802
|
});
|
|
1864
|
-
let
|
|
1865
|
-
te && (
|
|
1866
|
-
render:
|
|
1803
|
+
let r = Mt(!0, o, N);
|
|
1804
|
+
te && (r = M(ae, {
|
|
1805
|
+
render: y ?? Z,
|
|
1867
1806
|
props: {
|
|
1868
1807
|
title: N ? "" : x,
|
|
1869
|
-
children:
|
|
1808
|
+
children: r,
|
|
1870
1809
|
disabled: N
|
|
1871
1810
|
}
|
|
1872
|
-
})), ie = S(
|
|
1811
|
+
})), ie = S(k, { children: [n, M(c, {
|
|
1873
1812
|
ref: U,
|
|
1874
1813
|
component: "div",
|
|
1875
1814
|
className: H({
|
|
@@ -1896,11 +1835,11 @@ var Lt = z((e) => {
|
|
|
1896
1835
|
onMouseDown: (e) => {
|
|
1897
1836
|
0 === e.button && (e.preventDefault(), _());
|
|
1898
1837
|
},
|
|
1899
|
-
children:
|
|
1838
|
+
children: r
|
|
1900
1839
|
})] });
|
|
1901
1840
|
} else {
|
|
1902
1841
|
let e = N ? J.openCompoundStyling : J.compoundStyling;
|
|
1903
|
-
ie = M(
|
|
1842
|
+
ie = M(Et, {
|
|
1904
1843
|
ref: U,
|
|
1905
1844
|
tabIndex: -1,
|
|
1906
1845
|
disabled: v,
|
|
@@ -1923,16 +1862,16 @@ var Lt = z((e) => {
|
|
|
1923
1862
|
onMouseDown: (e) => {
|
|
1924
1863
|
0 === e.button && (e.preventDefault(), _());
|
|
1925
1864
|
},
|
|
1926
|
-
children:
|
|
1865
|
+
children: Mt(!1, o, N)
|
|
1927
1866
|
});
|
|
1928
1867
|
}
|
|
1929
|
-
const { className: se, sx:
|
|
1868
|
+
const { className: se, sx: de, ...ce } = C;
|
|
1930
1869
|
let pe = M(t, {
|
|
1931
|
-
onFocus: () =>
|
|
1932
|
-
onBlur: () =>
|
|
1870
|
+
onFocus: () => K(!0),
|
|
1871
|
+
onBlur: () => K(!1),
|
|
1933
1872
|
onMouseOver: () => j(!0),
|
|
1934
1873
|
onMouseOut: () => j(!1),
|
|
1935
|
-
...
|
|
1874
|
+
...re,
|
|
1936
1875
|
"aria-label": "split button",
|
|
1937
1876
|
ref: G,
|
|
1938
1877
|
tabIndex: v ? void 0 : 0,
|
|
@@ -1948,20 +1887,20 @@ var Lt = z((e) => {
|
|
|
1948
1887
|
alignItems: "stretch",
|
|
1949
1888
|
width: "fit-content",
|
|
1950
1889
|
"&:not(.Mui-disabled)": { cursor: "pointer" },
|
|
1951
|
-
marginLeft:
|
|
1952
|
-
marginRight:
|
|
1890
|
+
marginLeft: r ? "1px" : "0px",
|
|
1891
|
+
marginRight: r ? "1px" : "0px",
|
|
1953
1892
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
1954
1893
|
"&.Mui-focusVisible": {
|
|
1955
1894
|
outline: (e) => `solid ${e.palette.primary.main} 1px`,
|
|
1956
1895
|
zIndex: 2
|
|
1957
1896
|
},
|
|
1958
|
-
...
|
|
1897
|
+
...de
|
|
1959
1898
|
},
|
|
1960
|
-
...
|
|
1899
|
+
...ce,
|
|
1961
1900
|
children: ie
|
|
1962
1901
|
});
|
|
1963
1902
|
return te || (pe = M(ae, {
|
|
1964
|
-
render:
|
|
1903
|
+
render: y ?? Z,
|
|
1965
1904
|
props: {
|
|
1966
1905
|
title: N ? "" : x,
|
|
1967
1906
|
children: pe,
|
|
@@ -1969,7 +1908,7 @@ var Lt = z((e) => {
|
|
|
1969
1908
|
}
|
|
1970
1909
|
})), S(t, {
|
|
1971
1910
|
className: H($, "popupIconButton"),
|
|
1972
|
-
ref:
|
|
1911
|
+
ref: n,
|
|
1973
1912
|
...z,
|
|
1974
1913
|
sx: {
|
|
1975
1914
|
zIndex: E || N ? 2 : void 0,
|
|
@@ -1980,20 +1919,20 @@ var Lt = z((e) => {
|
|
|
1980
1919
|
children: [pe, X.component]
|
|
1981
1920
|
});
|
|
1982
1921
|
}));
|
|
1983
|
-
|
|
1984
|
-
var
|
|
1985
|
-
const { selected: o = !1, label:
|
|
1986
|
-
if (!
|
|
1987
|
-
const { propsPopper: e } =
|
|
1922
|
+
Vt.displayName = "ExhibitPopupIconButton";
|
|
1923
|
+
var qt = M(J, { iconKey: "Check" }), jt = {}, Qt = z(I((e, n) => {
|
|
1924
|
+
const { selected: o = !1, label: r, showLabel: i, onQuickClick: a, parentFloat: l, renderPopupPanel: d, propsPopup: c = jt, onPopupOpen: p, onPopupClose: u, propsQuickButton: h, renderQuickButton: f, tooltip: g = "", renderTooltip: x, icon: y, disabled: b, ripple: v, primary: w, children: C, sx: P, ...T } = e, [R, D] = W(!1), [I, $] = W(!1), [z, L] = W(!1), [N, O] = W(!1), E = F(null), K = F(null), V = A(() => {
|
|
1925
|
+
if (!c) return;
|
|
1926
|
+
const { propsPopper: e } = c;
|
|
1988
1927
|
return {
|
|
1989
1928
|
placement: "right-start",
|
|
1990
1929
|
offsets: [-4, -2],
|
|
1991
1930
|
...e
|
|
1992
1931
|
};
|
|
1993
|
-
}, [
|
|
1932
|
+
}, [c]), q = ge({
|
|
1994
1933
|
anchor: E.current,
|
|
1995
|
-
label:
|
|
1996
|
-
renderPopupPanel:
|
|
1934
|
+
label: r,
|
|
1935
|
+
renderPopupPanel: d,
|
|
1997
1936
|
parentFloat: l,
|
|
1998
1937
|
propsPopper: V,
|
|
1999
1938
|
onClose: () => {
|
|
@@ -2008,17 +1947,17 @@ var Qt = M(J, { iconKey: "Check" }), Gt = {}, Ut = z(I((e, r) => {
|
|
|
2008
1947
|
color: (e) => e.palette.text.primary,
|
|
2009
1948
|
"& svg * ": { color: (e) => e.palette.text.primary }
|
|
2010
1949
|
} }, U = B((e) => {
|
|
2011
|
-
const { children: t, ref:
|
|
2012
|
-
return M(
|
|
2013
|
-
ref:
|
|
2014
|
-
...
|
|
1950
|
+
const { children: t, ref: n, disabled: o, ...r } = e;
|
|
1951
|
+
return M($t, {
|
|
1952
|
+
ref: n,
|
|
1953
|
+
...r,
|
|
2015
1954
|
disableInteractive: !0,
|
|
2016
1955
|
children: t
|
|
2017
1956
|
});
|
|
2018
1957
|
}, []), X = a || f, Y = (e) => {
|
|
2019
|
-
const { tooltip: t, renderTooltip:
|
|
2020
|
-
return S(
|
|
2021
|
-
icon:
|
|
1958
|
+
const { tooltip: t, renderTooltip: n, ...o } = e;
|
|
1959
|
+
return S(Wt, {
|
|
1960
|
+
icon: y,
|
|
2022
1961
|
disableRipple: !!v,
|
|
2023
1962
|
className: H({ "Mui-hovered": z }),
|
|
2024
1963
|
sx: {
|
|
@@ -2026,7 +1965,7 @@ var Qt = M(J, { iconKey: "Check" }), Gt = {}, Ut = z(I((e, r) => {
|
|
|
2026
1965
|
...G
|
|
2027
1966
|
},
|
|
2028
1967
|
...o,
|
|
2029
|
-
children: [
|
|
1968
|
+
children: [r, v]
|
|
2030
1969
|
});
|
|
2031
1970
|
}, _ = {
|
|
2032
1971
|
onFocus: () => {
|
|
@@ -2046,11 +1985,11 @@ var Qt = M(J, { iconKey: "Check" }), Gt = {}, Ut = z(I((e, r) => {
|
|
|
2046
1985
|
0 === e.button && e.preventDefault();
|
|
2047
1986
|
}
|
|
2048
1987
|
};
|
|
2049
|
-
let J = M(
|
|
1988
|
+
let J = M(k, {});
|
|
2050
1989
|
if (X) {
|
|
2051
1990
|
const e = {
|
|
2052
1991
|
tabIndex: -1,
|
|
2053
|
-
disabled:
|
|
1992
|
+
disabled: b,
|
|
2054
1993
|
onMouseEnter: () => {
|
|
2055
1994
|
q.reference.parent?.closeChild();
|
|
2056
1995
|
},
|
|
@@ -2060,7 +1999,7 @@ var Qt = M(J, { iconKey: "Check" }), Gt = {}, Ut = z(I((e, r) => {
|
|
|
2060
1999
|
className: H("quick-left", {}, h?.className),
|
|
2061
2000
|
...h
|
|
2062
2001
|
};
|
|
2063
|
-
J = S(
|
|
2002
|
+
J = S(k, { children: [
|
|
2064
2003
|
M(ae, {
|
|
2065
2004
|
render: f ?? Y,
|
|
2066
2005
|
props: e
|
|
@@ -2075,7 +2014,7 @@ var Qt = M(J, { iconKey: "Check" }), Gt = {}, Ut = z(I((e, r) => {
|
|
|
2075
2014
|
flexItem: !0
|
|
2076
2015
|
}),
|
|
2077
2016
|
M(m, {
|
|
2078
|
-
ref:
|
|
2017
|
+
ref: K,
|
|
2079
2018
|
className: H({
|
|
2080
2019
|
"Mui-selected": R,
|
|
2081
2020
|
"Mui-hovered": z
|
|
@@ -2095,7 +2034,7 @@ var Qt = M(J, { iconKey: "Check" }), Gt = {}, Ut = z(I((e, r) => {
|
|
|
2095
2034
|
...G
|
|
2096
2035
|
},
|
|
2097
2036
|
tabIndex: -1,
|
|
2098
|
-
disabled:
|
|
2037
|
+
disabled: b,
|
|
2099
2038
|
..._,
|
|
2100
2039
|
children: M(t, {
|
|
2101
2040
|
className: "expand-icon",
|
|
@@ -2120,11 +2059,11 @@ var Qt = M(J, { iconKey: "Check" }), Gt = {}, Ut = z(I((e, r) => {
|
|
|
2120
2059
|
})
|
|
2121
2060
|
})
|
|
2122
2061
|
] });
|
|
2123
|
-
} else J = S(
|
|
2124
|
-
ref:
|
|
2062
|
+
} else J = S(Wt, {
|
|
2063
|
+
ref: K,
|
|
2125
2064
|
tabIndex: -1,
|
|
2126
|
-
disabled:
|
|
2127
|
-
icon:
|
|
2065
|
+
disabled: b,
|
|
2066
|
+
icon: y,
|
|
2128
2067
|
className: H({
|
|
2129
2068
|
"Mui-selected": R || o,
|
|
2130
2069
|
"Mui-hovered": z
|
|
@@ -2140,7 +2079,7 @@ var Qt = M(J, { iconKey: "Check" }), Gt = {}, Ut = z(I((e, r) => {
|
|
|
2140
2079
|
..._,
|
|
2141
2080
|
children: [M("div", {
|
|
2142
2081
|
style: { flex: "1 1 100%" },
|
|
2143
|
-
children:
|
|
2082
|
+
children: r
|
|
2144
2083
|
}), M(t, {
|
|
2145
2084
|
className: "expand-icon",
|
|
2146
2085
|
sx: {
|
|
@@ -2154,9 +2093,9 @@ var Qt = M(J, { iconKey: "Check" }), Gt = {}, Ut = z(I((e, r) => {
|
|
|
2154
2093
|
let Z = M(t, {
|
|
2155
2094
|
"aria-label": "split button",
|
|
2156
2095
|
ref: E,
|
|
2157
|
-
tabIndex:
|
|
2096
|
+
tabIndex: b ? void 0 : 0,
|
|
2158
2097
|
className: H({
|
|
2159
|
-
"Mui-disabled":
|
|
2098
|
+
"Mui-disabled": b,
|
|
2160
2099
|
"Mui-selected": R,
|
|
2161
2100
|
"Mui-focusVisible": I || R,
|
|
2162
2101
|
"Mui-hovered": z
|
|
@@ -2185,7 +2124,7 @@ var Qt = M(J, { iconKey: "Check" }), Gt = {}, Ut = z(I((e, r) => {
|
|
|
2185
2124
|
disabled: R
|
|
2186
2125
|
}
|
|
2187
2126
|
})), S(t, {
|
|
2188
|
-
ref:
|
|
2127
|
+
ref: n,
|
|
2189
2128
|
sx: {
|
|
2190
2129
|
zIndex: I || R ? 2 : void 0,
|
|
2191
2130
|
display: "flex",
|
|
@@ -2196,12 +2135,12 @@ var Qt = M(J, { iconKey: "Check" }), Gt = {}, Ut = z(I((e, r) => {
|
|
|
2196
2135
|
},
|
|
2197
2136
|
children: [Z, q.component]
|
|
2198
2137
|
});
|
|
2199
|
-
})),
|
|
2200
|
-
const { onSelectToggle:
|
|
2201
|
-
return M(
|
|
2202
|
-
label:
|
|
2138
|
+
})), Gt = z(I((e, t) => {
|
|
2139
|
+
const { onSelectToggle: n, selected: o = !1, label: r, shortcut: i, tabIndex: a = 0, preventFocus: l = !1, ...s } = e;
|
|
2140
|
+
return M(Lt, {
|
|
2141
|
+
label: r,
|
|
2203
2142
|
shortcut: i,
|
|
2204
|
-
children: M(
|
|
2143
|
+
children: M(Et, {
|
|
2205
2144
|
ref: t,
|
|
2206
2145
|
outlined: !1,
|
|
2207
2146
|
tabIndex: a,
|
|
@@ -2210,29 +2149,29 @@ var Qt = M(J, { iconKey: "Check" }), Gt = {}, Ut = z(I((e, r) => {
|
|
|
2210
2149
|
l && e.preventDefault();
|
|
2211
2150
|
},
|
|
2212
2151
|
onClick: () => {
|
|
2213
|
-
|
|
2152
|
+
n?.(!o);
|
|
2214
2153
|
},
|
|
2215
2154
|
...s
|
|
2216
2155
|
})
|
|
2217
2156
|
});
|
|
2218
|
-
})),
|
|
2219
|
-
const { children: o, selected:
|
|
2157
|
+
})), Ut = M(J, {}), Xt = M(J, { iconKey: "Check" }), Yt = z(I((e, n) => {
|
|
2158
|
+
const { children: o, selected: r = !0, outlined: i = !0, sx: a, ...l } = e, s = A(() => ({
|
|
2220
2159
|
display: "flex",
|
|
2221
|
-
border: (e) =>
|
|
2160
|
+
border: (e) => r ? `solid ${i ? e.palette.divider : "transparent"} 1px` : "solid transparent 1px",
|
|
2222
2161
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
2223
2162
|
backgroundColor: (e) => {
|
|
2224
|
-
if (
|
|
2163
|
+
if (r) return V(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity);
|
|
2225
2164
|
},
|
|
2226
2165
|
...a
|
|
2227
2166
|
}), [a]);
|
|
2228
|
-
let
|
|
2229
|
-
return null ===
|
|
2230
|
-
ref:
|
|
2167
|
+
let d = o;
|
|
2168
|
+
return null === d && (d = Ut), d || (d = Xt), M(t, {
|
|
2169
|
+
ref: n,
|
|
2231
2170
|
sx: s,
|
|
2232
2171
|
...l,
|
|
2233
|
-
children:
|
|
2172
|
+
children: d
|
|
2234
2173
|
});
|
|
2235
|
-
})),
|
|
2174
|
+
})), _t = {
|
|
2236
2175
|
"dialog.cancel": "Cancel",
|
|
2237
2176
|
"dialog.ok": "Ok",
|
|
2238
2177
|
"lazyLoad.retry": "Retry",
|
|
@@ -2254,61 +2193,61 @@ var Qt = M(J, { iconKey: "Check" }), Gt = {}, Ut = z(I((e, r) => {
|
|
|
2254
2193
|
"stackTrace.log": "Log error to console",
|
|
2255
2194
|
"stackTrace.moreFrames": "... and {count} more frames",
|
|
2256
2195
|
"window.close": "Close"
|
|
2257
|
-
}, { DefaultCommandCatalogService:
|
|
2258
|
-
function
|
|
2259
|
-
|
|
2196
|
+
}, { DefaultCommandCatalogService: Jt } = X, Zt = !1;
|
|
2197
|
+
function en() {
|
|
2198
|
+
Zt || (Zt = !0, Jt.registerFromManifest("@sheetxl/utils-mui", import.meta.url, { messages: _t }));
|
|
2260
2199
|
}
|
|
2261
|
-
|
|
2262
|
-
var
|
|
2200
|
+
en();
|
|
2201
|
+
var tn = {
|
|
2263
2202
|
inline: null,
|
|
2264
2203
|
popup: []
|
|
2265
|
-
},
|
|
2266
|
-
const { children: o, sx:
|
|
2267
|
-
T.current =
|
|
2204
|
+
}, nn = z(I((e, n) => {
|
|
2205
|
+
const { children: o, sx: r, ...i } = e, a = ke(), l = be(n, () => ({}), []), [s, d] = Ce(), c = F(null), p = F(null), [u, m] = K((e) => e + 1, 0), [h, f] = W(null), [g, x] = W(null), y = g?.popup ?? null, b = F(0), [v, w] = W(!1), C = F(!1), k = fe(), T = F(k);
|
|
2206
|
+
T.current = k;
|
|
2268
2207
|
const D = B(() => {
|
|
2269
2208
|
T.current?.closeChild(0);
|
|
2270
2209
|
}, []), I = B(() => {
|
|
2271
|
-
|
|
2210
|
+
C.current = !0, w(!0);
|
|
2272
2211
|
}, []), $ = B(() => {
|
|
2273
|
-
|
|
2274
|
-
}, []), z =
|
|
2212
|
+
C.current = !1, w(!1);
|
|
2213
|
+
}, []), z = F(null), L = F(/* @__PURE__ */ new Map()), N = B(() => {
|
|
2275
2214
|
L.current.clear(), x(null), m();
|
|
2276
2215
|
}, []);
|
|
2277
2216
|
E(() => {
|
|
2278
2217
|
p.current = { refs: [] };
|
|
2279
|
-
const e = [],
|
|
2280
|
-
let
|
|
2281
|
-
|
|
2218
|
+
const e = [], n = P.toArray(o);
|
|
2219
|
+
let r = 0;
|
|
2220
|
+
n.forEach((o, i) => {
|
|
2282
2221
|
e.push(M(t, {
|
|
2283
2222
|
sx: {
|
|
2284
2223
|
display: "flex",
|
|
2285
2224
|
flex: "0 0 auto"
|
|
2286
2225
|
},
|
|
2287
2226
|
ref: (e) => {
|
|
2288
|
-
|
|
2227
|
+
r++, r === n.length && m();
|
|
2289
2228
|
const t = { current: null };
|
|
2290
2229
|
t.current = e, p.current.refs[i] = t;
|
|
2291
2230
|
},
|
|
2292
2231
|
children: o
|
|
2293
2232
|
}, i));
|
|
2294
2233
|
}), f(e);
|
|
2295
|
-
}, [o,
|
|
2234
|
+
}, [o, d]), E(() => {
|
|
2296
2235
|
if (!h) return;
|
|
2297
2236
|
const e = p.current?.refs ?? [], t = e.length;
|
|
2298
2237
|
if (!l.current || 0 === t) return void x(null);
|
|
2299
|
-
const
|
|
2300
|
-
let
|
|
2301
|
-
|
|
2238
|
+
const n = l.current?.getBoundingClientRect(), o = [], r = [], i = () => {
|
|
2239
|
+
let n = z.current;
|
|
2240
|
+
n ? n.disconnect() : n = z.current = new ResizeObserver((e) => {
|
|
2302
2241
|
for (let t = 0; t < e.length; t++) {
|
|
2303
|
-
const
|
|
2304
|
-
if (!
|
|
2305
|
-
const o = L.current.get(
|
|
2306
|
-
if (void 0 !== o && Math.abs(
|
|
2242
|
+
const n = e[t].target;
|
|
2243
|
+
if (!n.isConnected) continue;
|
|
2244
|
+
const o = L.current.get(n);
|
|
2245
|
+
if (void 0 !== o && Math.abs(n.getBoundingClientRect().width - o) > .5) return void N();
|
|
2307
2246
|
}
|
|
2308
2247
|
}), L.current.clear();
|
|
2309
2248
|
for (let o = 0; o < t; o++) {
|
|
2310
2249
|
const t = e[o]?.current;
|
|
2311
|
-
t && (L.current.set(t, t.getBoundingClientRect().width),
|
|
2250
|
+
t && (L.current.set(t, t.getBoundingClientRect().width), n.observe(t));
|
|
2312
2251
|
}
|
|
2313
2252
|
};
|
|
2314
2253
|
let a = 0, s = !1;
|
|
@@ -2319,48 +2258,48 @@ var or = {
|
|
|
2319
2258
|
s = !0;
|
|
2320
2259
|
continue;
|
|
2321
2260
|
}
|
|
2322
|
-
const
|
|
2323
|
-
a +=
|
|
2261
|
+
const r = t.current.getBoundingClientRect();
|
|
2262
|
+
a += r?.width, a > n.width && (s = !0);
|
|
2324
2263
|
}
|
|
2325
|
-
if (!s) return i(),
|
|
2326
|
-
const
|
|
2327
|
-
|
|
2328
|
-
const u =
|
|
2264
|
+
if (!s) return i(), C.current && D(), void x(tn);
|
|
2265
|
+
const d = c.current?.getBoundingClientRect();
|
|
2266
|
+
d?.width && (b.current = d.width);
|
|
2267
|
+
const u = n.width - b.current;
|
|
2329
2268
|
a = 0;
|
|
2330
|
-
for (let
|
|
2331
|
-
const t = e[
|
|
2269
|
+
for (let n = 0; n < t; n++) {
|
|
2270
|
+
const t = e[n];
|
|
2332
2271
|
let i = !1;
|
|
2333
2272
|
if (t.current) {
|
|
2334
2273
|
const e = t.current.getBoundingClientRect();
|
|
2335
2274
|
a += e?.width, a <= u && (i = !0);
|
|
2336
2275
|
}
|
|
2337
|
-
i ? o.push(h[
|
|
2276
|
+
i ? o.push(h[n]) : r.push(h[n]);
|
|
2338
2277
|
}
|
|
2339
2278
|
i(), x({
|
|
2340
2279
|
inline: o,
|
|
2341
|
-
popup:
|
|
2280
|
+
popup: r
|
|
2342
2281
|
});
|
|
2343
2282
|
}, [
|
|
2344
2283
|
o,
|
|
2345
2284
|
h,
|
|
2346
|
-
|
|
2285
|
+
d,
|
|
2347
2286
|
u
|
|
2348
2287
|
]), E(() => () => {
|
|
2349
2288
|
z.current?.disconnect(), z.current = null;
|
|
2350
2289
|
}, []);
|
|
2351
2290
|
const O = B((e) => {
|
|
2352
|
-
const
|
|
2291
|
+
const n = [], o = y?.length ?? 0;
|
|
2353
2292
|
for (let e = 0; e < o; e++) {
|
|
2354
|
-
const t = P.toArray(
|
|
2293
|
+
const t = P.toArray(y[e])[0];
|
|
2355
2294
|
P.toArray(t.props.children?.props?.children ?? t.props.children).forEach((t, o) => {
|
|
2356
|
-
const
|
|
2357
|
-
...
|
|
2358
|
-
key: `overflow-${e}-${o}${
|
|
2359
|
-
}, a = R(
|
|
2360
|
-
|
|
2295
|
+
const r = t, i = {
|
|
2296
|
+
...r.props,
|
|
2297
|
+
key: `overflow-${e}-${o}${r.key ?? ""}`
|
|
2298
|
+
}, a = R(r, i);
|
|
2299
|
+
n.push(a);
|
|
2361
2300
|
});
|
|
2362
2301
|
}
|
|
2363
|
-
return
|
|
2302
|
+
return kt({
|
|
2364
2303
|
...e,
|
|
2365
2304
|
children: M(t, {
|
|
2366
2305
|
className: "overflow-palette-popup-panel",
|
|
@@ -2375,13 +2314,13 @@ var or = {
|
|
|
2375
2314
|
paddingRight: (e) => e.spacing(1),
|
|
2376
2315
|
overflow: "hidden"
|
|
2377
2316
|
},
|
|
2378
|
-
children:
|
|
2317
|
+
children: n
|
|
2379
2318
|
})
|
|
2380
2319
|
});
|
|
2381
|
-
}, [
|
|
2320
|
+
}, [y]), A = Se([
|
|
2382
2321
|
l,
|
|
2383
2322
|
s,
|
|
2384
|
-
|
|
2323
|
+
n
|
|
2385
2324
|
]);
|
|
2386
2325
|
return S(t, {
|
|
2387
2326
|
className: "overflow-palette",
|
|
@@ -2394,7 +2333,7 @@ var or = {
|
|
|
2394
2333
|
maxWidth: "100%",
|
|
2395
2334
|
minWidth: 0,
|
|
2396
2335
|
overflow: "hidden",
|
|
2397
|
-
...
|
|
2336
|
+
...r
|
|
2398
2337
|
},
|
|
2399
2338
|
ref: A,
|
|
2400
2339
|
...i,
|
|
@@ -2413,16 +2352,16 @@ var or = {
|
|
|
2413
2352
|
}), M(t, {
|
|
2414
2353
|
className: "overflow-palette-popup-button",
|
|
2415
2354
|
sx: {
|
|
2416
|
-
display: v || null ===
|
|
2355
|
+
display: v || null === y || 0 !== y.length ? "flex" : "none",
|
|
2417
2356
|
flex: "0 0 auto",
|
|
2418
2357
|
alignItems: "center"
|
|
2419
2358
|
},
|
|
2420
|
-
children: M(
|
|
2359
|
+
children: M(Vt, {
|
|
2421
2360
|
renderPopupPanel: O,
|
|
2422
|
-
ref:
|
|
2361
|
+
ref: c,
|
|
2423
2362
|
onPopupOpen: I,
|
|
2424
2363
|
onPopupClose: $,
|
|
2425
|
-
renderTooltip: ({ children: e, disabled: t }) => M(
|
|
2364
|
+
renderTooltip: ({ children: e, disabled: t }) => M(Lt, {
|
|
2426
2365
|
label: a("overflow.more"),
|
|
2427
2366
|
description: a("overflow.moreDescription"),
|
|
2428
2367
|
disabled: t,
|
|
@@ -2432,18 +2371,18 @@ var or = {
|
|
|
2432
2371
|
})
|
|
2433
2372
|
})]
|
|
2434
2373
|
});
|
|
2435
|
-
})),
|
|
2436
|
-
const t = L(
|
|
2374
|
+
})), on = D(void 0), rn = ({ error: e }) => {
|
|
2375
|
+
const t = L(on);
|
|
2437
2376
|
return N(() => {
|
|
2438
2377
|
t?.(e);
|
|
2439
2378
|
}, [e]), null;
|
|
2440
2379
|
};
|
|
2441
|
-
function
|
|
2442
|
-
const t =
|
|
2380
|
+
function an(e) {
|
|
2381
|
+
const t = ce(e, { renderError: ({ error: e }) => M(rn, { error: e }) });
|
|
2443
2382
|
return (e) => {
|
|
2444
|
-
const { onLoadError:
|
|
2445
|
-
return M(
|
|
2446
|
-
value:
|
|
2383
|
+
const { onLoadError: n, ...o } = e;
|
|
2384
|
+
return M(on.Provider, {
|
|
2385
|
+
value: n,
|
|
2447
2386
|
children: M(T, {
|
|
2448
2387
|
fallback: null,
|
|
2449
2388
|
children: M(t, { ...o })
|
|
@@ -2451,41 +2390,41 @@ function lr(e) {
|
|
|
2451
2390
|
});
|
|
2452
2391
|
};
|
|
2453
2392
|
}
|
|
2454
|
-
function
|
|
2455
|
-
const [t,
|
|
2393
|
+
function ln(e) {
|
|
2394
|
+
const [t, n] = W(() => /* @__PURE__ */ new Map()), o = F(null);
|
|
2456
2395
|
null === o.current && (o.current = /* @__PURE__ */ new Map());
|
|
2457
|
-
const { showModal:
|
|
2458
|
-
return (s,
|
|
2396
|
+
const { showModal: r, updateModal: i, destroyModal: a, hideModal: l } = Re({ disableAutoDestroy: !0 });
|
|
2397
|
+
return (s, d, c, p) => new Promise((u, m) => {
|
|
2459
2398
|
let h = !1;
|
|
2460
|
-
void 0 !==
|
|
2399
|
+
void 0 !== c?.disableAutoDestroy && (h = c.disableAutoDestroy, delete (c = { ...c }).disableAutoDestroy);
|
|
2461
2400
|
let f = !1;
|
|
2462
|
-
if (void 0 !==
|
|
2401
|
+
if (void 0 !== c?.prewarm && (f = c.prewarm, delete (c = { ...c }).prewarm, f && (h = !0)), f && t.get(s)) return void u(t.get(s).element);
|
|
2463
2402
|
const g = {
|
|
2464
2403
|
...e,
|
|
2465
|
-
...
|
|
2404
|
+
...c,
|
|
2466
2405
|
...p,
|
|
2467
2406
|
onHide: () => {
|
|
2468
2407
|
if (p?.onHide?.(), h) return;
|
|
2469
2408
|
const e = t.get(s);
|
|
2470
|
-
|
|
2409
|
+
n((e) => (e.delete(s), e)), e?.id && l(e.id);
|
|
2471
2410
|
},
|
|
2472
2411
|
onDone: (e) => {
|
|
2473
2412
|
if (p?.onDone?.(e), h) return;
|
|
2474
2413
|
const o = t.get(s);
|
|
2475
|
-
|
|
2414
|
+
n((e) => (e.delete(s), e)), o?.id && a(o.id);
|
|
2476
2415
|
},
|
|
2477
2416
|
onShown: (e) => {
|
|
2478
|
-
|
|
2479
|
-
const
|
|
2480
|
-
return
|
|
2481
|
-
...
|
|
2482
|
-
element: e ??
|
|
2417
|
+
n((t) => {
|
|
2418
|
+
const n = t.get(s);
|
|
2419
|
+
return n && t.set(s, {
|
|
2420
|
+
...n,
|
|
2421
|
+
element: e ?? n.element
|
|
2483
2422
|
}), t;
|
|
2484
2423
|
}), u(e);
|
|
2485
2424
|
},
|
|
2486
2425
|
onLoadError: (e) => {
|
|
2487
2426
|
const o = t.get(s);
|
|
2488
|
-
|
|
2427
|
+
n((e) => (e.delete(s), e)), o?.id && a(o.id), m(e);
|
|
2489
2428
|
},
|
|
2490
2429
|
disableAutoDestroy: h,
|
|
2491
2430
|
revealToken: 0,
|
|
@@ -2497,174 +2436,173 @@ function sr(e) {
|
|
|
2497
2436
|
i(x.id, {
|
|
2498
2437
|
...g,
|
|
2499
2438
|
revealToken: e
|
|
2500
|
-
}),
|
|
2501
|
-
const
|
|
2502
|
-
return
|
|
2503
|
-
...
|
|
2439
|
+
}), n((t) => {
|
|
2440
|
+
const n = t.get(s);
|
|
2441
|
+
return n && t.set(s, {
|
|
2442
|
+
...n,
|
|
2504
2443
|
revealToken: e
|
|
2505
2444
|
}), t;
|
|
2506
2445
|
}), u(x.element);
|
|
2507
2446
|
return;
|
|
2508
2447
|
}
|
|
2509
|
-
if (!
|
|
2510
|
-
let
|
|
2511
|
-
|
|
2512
|
-
const
|
|
2513
|
-
|
|
2514
|
-
id:
|
|
2448
|
+
if (!d) return void m(`Invalid function for window '${s}'`);
|
|
2449
|
+
let y = o.current.get(s);
|
|
2450
|
+
y || (y = an(d), o.current.set(s, y));
|
|
2451
|
+
const b = r(y, g, { destroyOnClose: !h });
|
|
2452
|
+
n((e) => (e.set(s, {
|
|
2453
|
+
id: b.id,
|
|
2515
2454
|
element: null,
|
|
2516
2455
|
revealToken: 0
|
|
2517
2456
|
}), e)), f && u(null);
|
|
2518
2457
|
});
|
|
2519
2458
|
}
|
|
2520
|
-
|
|
2521
|
-
var
|
|
2459
|
+
en();
|
|
2460
|
+
var sn = {
|
|
2522
2461
|
x: 0,
|
|
2523
2462
|
y: 0
|
|
2524
|
-
},
|
|
2525
|
-
const { defaultPosition:
|
|
2463
|
+
}, dn = z(I((e, t) => {
|
|
2464
|
+
const { defaultPosition: n = sn, PaperComponent: o = f, onDragStop: r, rootSel: i = ".MuiModal-root", handleSel: a = ".draggable-title", titleSize: l, rootSize: s, ...d } = e, c = F(null), p = A(() => l?.width && l?.height && s?.width && s?.height ? {
|
|
2526
2465
|
left: 0,
|
|
2527
2466
|
top: 0,
|
|
2528
2467
|
right: s.width - l.width,
|
|
2529
2468
|
bottom: s.height - l.height
|
|
2530
|
-
} : null, [l, s]), [u, m] = W(null), [h, g] = W(null), x = u ??
|
|
2469
|
+
} : null, [l, s]), [u, m] = W(null), [h, g] = W(null), x = u ?? n ?? null, y = A(() => x && p ? {
|
|
2531
2470
|
x: Math.max(0, Math.min(x.x, p.right)),
|
|
2532
2471
|
y: Math.max(0, Math.min(x.y, p.bottom))
|
|
2533
|
-
} : x, [x, p]),
|
|
2472
|
+
} : x, [x, p]), b = Se([c, t]);
|
|
2534
2473
|
return M(Ie, {
|
|
2535
|
-
nodeRef:
|
|
2474
|
+
nodeRef: c,
|
|
2536
2475
|
handle: a,
|
|
2537
2476
|
cancel: "[class*=\"MuiDialogContent-root\"]",
|
|
2538
|
-
position:
|
|
2477
|
+
position: y ?? void 0,
|
|
2539
2478
|
bounds: p ?? ".MuiModal-root",
|
|
2540
2479
|
enableUserSelectHack: !1,
|
|
2541
|
-
onStop:
|
|
2480
|
+
onStop: r,
|
|
2542
2481
|
onStart: (e, t) => {
|
|
2543
|
-
const
|
|
2482
|
+
const n = e;
|
|
2544
2483
|
g({
|
|
2545
|
-
x: (
|
|
2546
|
-
y: (
|
|
2484
|
+
x: (n.clientX ?? n.touches?.[0]?.clientX) - t.x,
|
|
2485
|
+
y: (n.clientY ?? n.touches?.[0]?.clientY) - t.y
|
|
2547
2486
|
});
|
|
2548
2487
|
},
|
|
2549
2488
|
onDrag: (e, t) => {
|
|
2550
|
-
const
|
|
2489
|
+
const n = e;
|
|
2551
2490
|
if (!h) return;
|
|
2552
|
-
const o =
|
|
2491
|
+
const o = n.clientX ?? n.touches?.[0]?.clientX, r = n.clientY ?? n.touches?.[0]?.clientY;
|
|
2553
2492
|
m({
|
|
2554
2493
|
x: o - h.x,
|
|
2555
|
-
y:
|
|
2494
|
+
y: r - h.y
|
|
2556
2495
|
});
|
|
2557
2496
|
},
|
|
2558
2497
|
children: M(o, {
|
|
2559
|
-
ref:
|
|
2560
|
-
...
|
|
2498
|
+
ref: b,
|
|
2499
|
+
...d
|
|
2561
2500
|
})
|
|
2562
2501
|
});
|
|
2563
|
-
})),
|
|
2502
|
+
})), cn = {
|
|
2564
2503
|
x: "50",
|
|
2565
2504
|
y: "50"
|
|
2566
|
-
},
|
|
2567
|
-
const
|
|
2568
|
-
props:
|
|
2505
|
+
}, pn = z(I((n, o) => {
|
|
2506
|
+
const r = C({
|
|
2507
|
+
props: n,
|
|
2569
2508
|
name: "MuiDialog"
|
|
2570
|
-
}), i = w(), a =
|
|
2509
|
+
}), i = w(), a = ke(), s = {
|
|
2571
2510
|
enter: .66 * i.transitions.duration.enteringScreen,
|
|
2572
2511
|
exit: .66 * i.transitions.duration.leavingScreen
|
|
2573
|
-
}, { title: p = "SheetXL", onCancel: u, onDone: m, onShow: h, onShown: g, onHide: x, onClose:
|
|
2574
|
-
let Y = D.transition ??
|
|
2512
|
+
}, { title: p = "SheetXL", onCancel: u, onDone: m, onShow: h, onShown: g, onHide: x, onClose: y, open: v, autoFocusSel: k, children: P, transitionDuration: T = s, TransitionProps: R, slots: D = Q.EmptyArray, slotProps: I = Q.EmptyArray, sx: $, className: z, onMouseDown: B, initialPosition: L = cn, isModal: A = !1, suspendModal: K = !1, restoreFocus: q = !0, disableAutoDestroy: j = !1, revealToken: G, startHidden: U = !1, ...X } = r;
|
|
2513
|
+
let Y = D.transition ?? d;
|
|
2575
2514
|
const _ = D.backdrop ?? e, Z = D.paper ?? f;
|
|
2576
2515
|
let ee = I.transition;
|
|
2577
2516
|
R && (ee = {
|
|
2578
2517
|
...R,
|
|
2579
2518
|
...ee
|
|
2580
2519
|
});
|
|
2581
|
-
const te = I.backdrop, oe = I.paper, [
|
|
2520
|
+
const te = I.backdrop, oe = I.paper, [re, ie] = W(null), [ae, le] = W(!1), [se, ce] = W(!1), me = F(null), [he, fe] = Ce(), ge = F(null), ve = F(null), [we, Pe] = Ce(), Te = F(null), Re = O(), Ie = F(null);
|
|
2582
2521
|
E(() => {
|
|
2583
|
-
if (!
|
|
2522
|
+
if (!re || U) return;
|
|
2584
2523
|
const e = !!v;
|
|
2585
|
-
|
|
2524
|
+
Ie.current !== e && (Ie.current = e, le(e));
|
|
2586
2525
|
}, [
|
|
2587
2526
|
v,
|
|
2588
|
-
|
|
2527
|
+
re,
|
|
2589
2528
|
U
|
|
2590
2529
|
]);
|
|
2591
|
-
const
|
|
2530
|
+
const $e = ue(() => {
|
|
2592
2531
|
u?.(), le(!1);
|
|
2593
2532
|
}, [u]);
|
|
2594
2533
|
E(() => {
|
|
2595
|
-
if (
|
|
2596
|
-
const e =
|
|
2534
|
+
if (re) return;
|
|
2535
|
+
const e = ge.current, t = Te.current;
|
|
2597
2536
|
if (!e || !t) return;
|
|
2598
|
-
const
|
|
2599
|
-
if (0 ===
|
|
2600
|
-
const
|
|
2601
|
-
let a = .5 * i, l = .5 *
|
|
2602
|
-
"number" == typeof L?.x ? a = L.x : "string" == typeof L?.x && (a = i * (parseFloat(L.x) / 100)), "number" == typeof L?.y ? l = L.y : "string" == typeof L?.y && (l =
|
|
2537
|
+
const n = e.getBoundingClientRect(), o = t.getBoundingClientRect();
|
|
2538
|
+
if (0 === n.width && 0 === n.height || 0 === o.width && 0 === o.height) return;
|
|
2539
|
+
const r = n.height - o.height, i = n.width - o.width;
|
|
2540
|
+
let a = .5 * i, l = .5 * r;
|
|
2541
|
+
"number" == typeof L?.x ? a = L.x : "string" == typeof L?.x && (a = i * (parseFloat(L.x) / 100)), "number" == typeof L?.y ? l = L.y : "string" == typeof L?.y && (l = r * (parseFloat(L.y) / 100)), ie({
|
|
2603
2542
|
x: a,
|
|
2604
2543
|
y: l
|
|
2605
2544
|
});
|
|
2606
2545
|
});
|
|
2607
|
-
const [
|
|
2608
|
-
if (
|
|
2609
|
-
if (
|
|
2610
|
-
const t =
|
|
2546
|
+
const [ze, Be] = W(!1), [Le, Ne] = W(null), [Oe, Ee] = W(null), Ae = ue((e) => {
|
|
2547
|
+
if (Le) return Le.focus(e), !0;
|
|
2548
|
+
if (k) {
|
|
2549
|
+
const t = ve.current?.querySelectorAll?.(k);
|
|
2611
2550
|
if (t && t.length > 0) return t[0]?.focus?.(e), !0;
|
|
2612
2551
|
}
|
|
2613
|
-
return
|
|
2614
|
-
}, [
|
|
2615
|
-
|
|
2616
|
-
} }), []), Fe =
|
|
2552
|
+
return ve.current?.focus?.(e), !1;
|
|
2553
|
+
}, [Le, k]), Ke = be(o, () => ({ focus: (e) => {
|
|
2554
|
+
Ae(e);
|
|
2555
|
+
} }), []), Fe = F(G);
|
|
2617
2556
|
N(() => {
|
|
2618
2557
|
G !== Fe.current && (Fe.current = G, le(!0));
|
|
2619
2558
|
}, [G]);
|
|
2620
|
-
const
|
|
2559
|
+
const We = {
|
|
2621
2560
|
...ee,
|
|
2622
2561
|
onExited: (e) => {
|
|
2623
2562
|
m?.(null), j || ee?.onExited?.(e);
|
|
2624
2563
|
},
|
|
2625
2564
|
onExit: (e) => {
|
|
2626
|
-
const t =
|
|
2627
|
-
t && !1 !==
|
|
2628
|
-
|
|
2629
|
-
}), x?.(),
|
|
2565
|
+
const t = Oe, n = "function" == typeof q ? q() : q;
|
|
2566
|
+
t && !1 !== n && requestAnimationFrame(() => {
|
|
2567
|
+
Ke.current?.contains(document.activeElement) && t.focus();
|
|
2568
|
+
}), x?.(), ce(!1), ee?.onExit?.(e);
|
|
2630
2569
|
},
|
|
2631
2570
|
onEntered: (e, t) => {
|
|
2632
2571
|
h?.(), ee?.onEntered?.(e, t);
|
|
2633
2572
|
},
|
|
2634
2573
|
onEntering: (e, t) => {
|
|
2635
|
-
|
|
2574
|
+
ce(!0), g?.(Ke.current);
|
|
2636
2575
|
}
|
|
2637
2576
|
};
|
|
2638
2577
|
N(() => {
|
|
2639
|
-
se &&
|
|
2578
|
+
se && Ae();
|
|
2640
2579
|
}, [se]);
|
|
2641
|
-
const
|
|
2642
|
-
let
|
|
2580
|
+
const He = Se([Te, o]);
|
|
2581
|
+
let Ve = M(b, {
|
|
2643
2582
|
open: se,
|
|
2644
2583
|
disableAutoFocus: !0,
|
|
2645
|
-
disableEnforceFocus:
|
|
2584
|
+
disableEnforceFocus: !ze,
|
|
2646
2585
|
disableRestoreFocus: !0 !== q,
|
|
2647
2586
|
children: M(Y, {
|
|
2648
2587
|
in: ae,
|
|
2649
2588
|
timeout: T,
|
|
2650
2589
|
role: "presentation",
|
|
2651
|
-
...
|
|
2590
|
+
...We,
|
|
2652
2591
|
children: M(t, {
|
|
2653
2592
|
className: "MuiDialog-container",
|
|
2654
|
-
ref:
|
|
2593
|
+
ref: ve,
|
|
2655
2594
|
tabIndex: 0,
|
|
2656
2595
|
sx: {
|
|
2657
2596
|
outline: "none",
|
|
2658
2597
|
position: "relative"
|
|
2659
2598
|
},
|
|
2660
2599
|
onKeyDown: (e) => {
|
|
2661
|
-
e.which ===
|
|
2600
|
+
e.which === ne.Escape && ($e(), me.current?.start(e, { center: !1 }), setTimeout(() => me.current?.stop(e), 180)), e.stopPropagation();
|
|
2662
2601
|
},
|
|
2663
|
-
children: S(
|
|
2664
|
-
ref:
|
|
2665
|
-
className: H({ "Mui-focusVisible":
|
|
2602
|
+
children: S(dn, {
|
|
2603
|
+
ref: He,
|
|
2604
|
+
className: H({ "Mui-focusVisible": ze }, z, "draggable", pe),
|
|
2666
2605
|
sx: {
|
|
2667
|
-
"& *": (e) => wt(e),
|
|
2668
2606
|
pointerEvents: "auto",
|
|
2669
2607
|
userSelect: "none",
|
|
2670
2608
|
backgroundColor: "var(--sxl-color-elevated, var(--sxl-color-base-100))",
|
|
@@ -2675,14 +2613,14 @@ var cr = {
|
|
|
2675
2613
|
maxWidth: "100%",
|
|
2676
2614
|
...$
|
|
2677
2615
|
},
|
|
2678
|
-
defaultPosition:
|
|
2679
|
-
titleSize:
|
|
2680
|
-
rootSize:
|
|
2616
|
+
defaultPosition: re,
|
|
2617
|
+
titleSize: Pe,
|
|
2618
|
+
rootSize: fe,
|
|
2681
2619
|
PaperComponent: Z,
|
|
2682
2620
|
...X,
|
|
2683
2621
|
...oe,
|
|
2684
2622
|
children: [p ? M(l, {
|
|
2685
|
-
className: H({ "Mui-selected":
|
|
2623
|
+
className: H({ "Mui-selected": ze }, "draggable-title"),
|
|
2686
2624
|
sx: {
|
|
2687
2625
|
cursor: "move",
|
|
2688
2626
|
display: "flex",
|
|
@@ -2698,7 +2636,7 @@ var cr = {
|
|
|
2698
2636
|
},
|
|
2699
2637
|
backgroundColor: (e) => V(e.palette.action.hover, .03)
|
|
2700
2638
|
},
|
|
2701
|
-
ref:
|
|
2639
|
+
ref: we,
|
|
2702
2640
|
children: S(t, {
|
|
2703
2641
|
sx: {
|
|
2704
2642
|
display: "flex",
|
|
@@ -2716,16 +2654,16 @@ var cr = {
|
|
|
2716
2654
|
paddingLeft: (e) => e.spacing(1)
|
|
2717
2655
|
},
|
|
2718
2656
|
children: p
|
|
2719
|
-
}), M(
|
|
2657
|
+
}), M(Lt, {
|
|
2720
2658
|
label: a("window.close"),
|
|
2721
|
-
children: M(
|
|
2659
|
+
children: M(c, {
|
|
2722
2660
|
"aria-label": "close",
|
|
2723
2661
|
sx: { color: (e) => e.palette.text.icon ?? e.palette.action.active },
|
|
2724
|
-
touchRippleRef:
|
|
2662
|
+
touchRippleRef: me,
|
|
2725
2663
|
onPointerDown: (e) => {
|
|
2726
|
-
|
|
2664
|
+
me.current?.start(e, { center: !1 }), e.stopPropagation(), e.preventDefault();
|
|
2727
2665
|
},
|
|
2728
|
-
onPointerUp:
|
|
2666
|
+
onPointerUp: $e,
|
|
2729
2667
|
children: M(J, { iconKey: "Close" })
|
|
2730
2668
|
})
|
|
2731
2669
|
})]
|
|
@@ -2734,29 +2672,29 @@ var cr = {
|
|
|
2734
2672
|
})
|
|
2735
2673
|
})
|
|
2736
2674
|
})
|
|
2737
|
-
}),
|
|
2738
|
-
A && !
|
|
2675
|
+
}), qe = null;
|
|
2676
|
+
A && !K && (qe = M(_, {
|
|
2739
2677
|
...te,
|
|
2740
2678
|
open: ae,
|
|
2741
2679
|
onMouseDown: (e) => {
|
|
2742
|
-
|
|
2680
|
+
$e(), te?.onMouseDown?.(e);
|
|
2743
2681
|
},
|
|
2744
2682
|
onClick: (e) => {
|
|
2745
|
-
|
|
2683
|
+
y?.(e, "backdropClick"), te?.onClick?.(e);
|
|
2746
2684
|
},
|
|
2747
2685
|
sx: {
|
|
2748
2686
|
pointerEvents: "auto",
|
|
2749
2687
|
...te?.sx
|
|
2750
2688
|
}
|
|
2751
2689
|
}));
|
|
2752
|
-
const { getPortalContainer:
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2690
|
+
const { getPortalContainer: je } = ye(), { className: Qe, attrs: Ge } = de(xe()?.themeScope), Ue = Se([
|
|
2691
|
+
Ke,
|
|
2692
|
+
he,
|
|
2693
|
+
ge
|
|
2756
2694
|
]);
|
|
2757
2695
|
return De(S(t, {
|
|
2758
|
-
className: H("MuiModal-root",
|
|
2759
|
-
...
|
|
2696
|
+
className: H("MuiModal-root", Qe),
|
|
2697
|
+
...Ge,
|
|
2760
2698
|
sx: {
|
|
2761
2699
|
position: "fixed",
|
|
2762
2700
|
zIndex: Me("popup"),
|
|
@@ -2768,45 +2706,45 @@ var cr = {
|
|
|
2768
2706
|
display: "block",
|
|
2769
2707
|
pointerEvents: "none"
|
|
2770
2708
|
},
|
|
2771
|
-
ref:
|
|
2709
|
+
ref: Ue,
|
|
2772
2710
|
onPointerDown: (e) => {
|
|
2773
|
-
|
|
2711
|
+
ze && (e.target === ve.current || e.target.tabIndex < 0) && ve.current?.contains(document.activeElement);
|
|
2774
2712
|
},
|
|
2775
2713
|
onContextMenu: (e) => {
|
|
2776
2714
|
e.isPropagationStopped() || e.preventDefault();
|
|
2777
2715
|
},
|
|
2778
2716
|
onFocus: (e) => {
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
}, 100),
|
|
2717
|
+
!ze && (e.target === ve.current || e.target.tabIndex < 0) && setTimeout(() => {
|
|
2718
|
+
Ae();
|
|
2719
|
+
}, 100), Be(!0), ve.current?.contains(e.target) && e.target !== ve.current && Ne(e.target), e.relatedTarget && !Oe && Ee(e.relatedTarget);
|
|
2782
2720
|
},
|
|
2783
2721
|
onBlur: (e) => {
|
|
2784
|
-
|
|
2785
|
-
},
|
|
2786
|
-
children: [
|
|
2787
|
-
}),
|
|
2788
|
-
})),
|
|
2789
|
-
[
|
|
2790
|
-
[
|
|
2791
|
-
[
|
|
2792
|
-
[
|
|
2793
|
-
},
|
|
2794
|
-
const { description: l, type: s, icon:
|
|
2795
|
-
const e = "string" == typeof
|
|
2722
|
+
Ke?.current?.contains(e.relatedTarget) || (Ee(null), Be(!1));
|
|
2723
|
+
},
|
|
2724
|
+
children: [qe, Ve]
|
|
2725
|
+
}), je(), Re);
|
|
2726
|
+
})), un = ["Ok", "Cancel"], mn = {
|
|
2727
|
+
[re.Info]: "ValidationInformation",
|
|
2728
|
+
[re.Warning]: "ValidationWarning",
|
|
2729
|
+
[re.Error]: "ValidationStop",
|
|
2730
|
+
[re.Success]: "Check"
|
|
2731
|
+
}, hn = (e) => "string" == typeof e ? e : e.id ?? e, fn = (e, t) => void 0 !== t && hn(e) === hn(t), gn = (e) => "string" != typeof e && ("function" == typeof e.disabled ? e.disabled() : !0 === e.disabled), xn = z(I((e, o) => {
|
|
2732
|
+
const { description: l, type: s, icon: d, onCancel: c, onOption: p, onDone: u, onValidateOption: m, options: h = un, autoFocusSel: f = ".defaultOption", defaultOption: g = h[0], cancelOption: x = "Cancel", autoFocus: b, children: v, ...w } = e, C = Be({ shouldUseNativeValidation: !1 }), { handleSubmit: k, formState: P } = C, T = F(null), R = F(null), D = ke(), I = A(() => {
|
|
2733
|
+
const e = "string" == typeof d ? d : d ? void 0 : mn[s];
|
|
2796
2734
|
return e ? M(J, {
|
|
2797
2735
|
iconKey: e,
|
|
2798
2736
|
size: 32,
|
|
2799
2737
|
ariaHidden: !0
|
|
2800
|
-
}) :
|
|
2801
|
-
}, [
|
|
2802
|
-
const t =
|
|
2738
|
+
}) : d ?? null;
|
|
2739
|
+
}, [d, s]), $ = ue((e) => "string" != typeof e ? "function" == typeof e.label ? e.label() : e.label : "Ok" === e ? D("dialog.ok") : "Cancel" === e ? D("dialog.cancel") : e, [D]), z = F(null), [B, L] = W(null), N = ue(async (e) => {
|
|
2740
|
+
const t = hn(e);
|
|
2803
2741
|
if (null !== B) return;
|
|
2804
|
-
if (
|
|
2805
|
-
const
|
|
2742
|
+
if (gn(e)) return;
|
|
2743
|
+
const n = fn(e, x);
|
|
2806
2744
|
let o;
|
|
2807
2745
|
try {
|
|
2808
|
-
if (L(t), o = !!
|
|
2809
|
-
await Promise.resolve(p?.(t,
|
|
2746
|
+
if (L(t), o = !!n || (await Promise.resolve(m?.(t)) ?? !0), !0 !== o) return;
|
|
2747
|
+
await Promise.resolve(p?.(t, n, fn(e, g))), u?.(t);
|
|
2810
2748
|
} catch (e) {} finally {
|
|
2811
2749
|
L(null);
|
|
2812
2750
|
}
|
|
@@ -2822,14 +2760,14 @@ var cr = {
|
|
|
2822
2760
|
N(g);
|
|
2823
2761
|
}, 180);
|
|
2824
2762
|
}, [N, g]), E = ue(() => {
|
|
2825
|
-
p?.(
|
|
2763
|
+
p?.(hn(x), !0, !1), c?.(), u?.(null);
|
|
2826
2764
|
}, [
|
|
2827
2765
|
p,
|
|
2828
2766
|
x,
|
|
2829
|
-
|
|
2767
|
+
c,
|
|
2830
2768
|
u
|
|
2831
|
-
]),
|
|
2832
|
-
const i =
|
|
2769
|
+
]), K = P && (Object.keys(P.errors).length > 0 || P.disabled || P.isSubmitting), H = ue((e, t, o) => {
|
|
2770
|
+
const i = fn(e, x), a = {
|
|
2833
2771
|
className: t ? "defaultOption" : "action",
|
|
2834
2772
|
type: t ? "submit" : "button",
|
|
2835
2773
|
style: { minWidth: "75px" },
|
|
@@ -2844,26 +2782,26 @@ var cr = {
|
|
|
2844
2782
|
isDefaultOption: t
|
|
2845
2783
|
}
|
|
2846
2784
|
}, `action:${o}`);
|
|
2847
|
-
const s = null !== B &&
|
|
2785
|
+
const s = null !== B && fn(e, B), d = {
|
|
2848
2786
|
className: t ? "defaultOption" : "action",
|
|
2849
2787
|
variant: t ? "contained" : "outlined",
|
|
2850
2788
|
size: "small",
|
|
2851
|
-
disabled: !i && (
|
|
2789
|
+
disabled: !i && (K || gn(e)) || null !== B && !s,
|
|
2852
2790
|
color: "primary",
|
|
2853
2791
|
...a
|
|
2854
2792
|
};
|
|
2855
2793
|
if (t || i) {
|
|
2856
2794
|
const e = t ? T : R;
|
|
2857
|
-
|
|
2795
|
+
d.touchRippleRef = e, d.onPointerDown = (t) => {
|
|
2858
2796
|
e.current?.start(t, { center: !1 }), t.stopPropagation(), t.preventDefault();
|
|
2859
2797
|
};
|
|
2860
2798
|
}
|
|
2861
|
-
return S(
|
|
2862
|
-
...
|
|
2799
|
+
return S(n, {
|
|
2800
|
+
...d,
|
|
2863
2801
|
children: [M("div", {
|
|
2864
2802
|
style: { visibility: s ? "hidden" : void 0 },
|
|
2865
2803
|
children: $(e)
|
|
2866
|
-
}), m && !i ? M(
|
|
2804
|
+
}), m && !i ? M(r, {
|
|
2867
2805
|
size: 16,
|
|
2868
2806
|
color: "inherit",
|
|
2869
2807
|
style: { opacity: s ? 1 : 0 },
|
|
@@ -2887,8 +2825,8 @@ var cr = {
|
|
|
2887
2825
|
]), q = A(() => {
|
|
2888
2826
|
const e = [];
|
|
2889
2827
|
for (let t = 0; t < h.length; t++) {
|
|
2890
|
-
const
|
|
2891
|
-
e.push(H(
|
|
2828
|
+
const n = h[t], o = void 0 !== g ? fn(n, g) : 0 === t;
|
|
2829
|
+
e.push(H(n, o, t));
|
|
2892
2830
|
}
|
|
2893
2831
|
return e;
|
|
2894
2832
|
}, [
|
|
@@ -2898,7 +2836,7 @@ var cr = {
|
|
|
2898
2836
|
D,
|
|
2899
2837
|
B
|
|
2900
2838
|
]);
|
|
2901
|
-
return M(
|
|
2839
|
+
return M(pn, {
|
|
2902
2840
|
onCancel: E,
|
|
2903
2841
|
initialPosition: { y: "touch" === $e ? "15" : "35" },
|
|
2904
2842
|
onDone: u,
|
|
@@ -2907,26 +2845,26 @@ var cr = {
|
|
|
2907
2845
|
ref: o,
|
|
2908
2846
|
...w,
|
|
2909
2847
|
children: M(ze, {
|
|
2910
|
-
...
|
|
2848
|
+
...C,
|
|
2911
2849
|
children: S("form", {
|
|
2912
2850
|
ref: z,
|
|
2913
|
-
onSubmit:
|
|
2851
|
+
onSubmit: k(O),
|
|
2914
2852
|
children: [M(a, {
|
|
2915
2853
|
dividers: !0,
|
|
2916
2854
|
onKeyDown: (e) => {
|
|
2917
2855
|
if (e.isDefaultPrevented()) return;
|
|
2918
2856
|
e.stopPropagation();
|
|
2919
|
-
let t = null,
|
|
2920
|
-
const o = e.which ===
|
|
2857
|
+
let t = null, n = null;
|
|
2858
|
+
const o = e.which === ne.Escape && x;
|
|
2921
2859
|
if (o) {
|
|
2922
2860
|
if (null !== B) return;
|
|
2923
|
-
t = x,
|
|
2861
|
+
t = x, n = R;
|
|
2924
2862
|
} else {
|
|
2925
|
-
if (
|
|
2926
|
-
e.which ===
|
|
2863
|
+
if (K || null !== B) return;
|
|
2864
|
+
e.which === ne.Enter && (t = g ?? h[0], n = T);
|
|
2927
2865
|
}
|
|
2928
|
-
t && (
|
|
2929
|
-
|
|
2866
|
+
t && (n?.current?.start(e, { center: !1 }), setTimeout(() => {
|
|
2867
|
+
n?.current?.stop(e), o && E();
|
|
2930
2868
|
}, 180));
|
|
2931
2869
|
},
|
|
2932
2870
|
children: S(t, {
|
|
@@ -2949,7 +2887,7 @@ var cr = {
|
|
|
2949
2887
|
flex: "none"
|
|
2950
2888
|
},
|
|
2951
2889
|
children: I
|
|
2952
|
-
}) : null, M(
|
|
2890
|
+
}) : null, M(y, {
|
|
2953
2891
|
sx: { alignSelf: "center" },
|
|
2954
2892
|
children: l
|
|
2955
2893
|
})]
|
|
@@ -2968,38 +2906,38 @@ var cr = {
|
|
|
2968
2906
|
})
|
|
2969
2907
|
})
|
|
2970
2908
|
});
|
|
2971
|
-
})),
|
|
2909
|
+
})), yn = (e) => {
|
|
2972
2910
|
const { showModal: t } = Re();
|
|
2973
|
-
return (
|
|
2974
|
-
const
|
|
2911
|
+
return (n) => new Promise((o) => {
|
|
2912
|
+
const r = t(xn, {
|
|
2975
2913
|
...e,
|
|
2976
|
-
...
|
|
2977
|
-
onOption(e, t,
|
|
2978
|
-
|
|
2914
|
+
...n,
|
|
2915
|
+
onOption(e, t, r) {
|
|
2916
|
+
n?.onOption?.(e, t, r), o(e);
|
|
2979
2917
|
},
|
|
2980
2918
|
onDone: () => {
|
|
2981
|
-
|
|
2919
|
+
n?.onDone?.(), r.hide();
|
|
2982
2920
|
}
|
|
2983
2921
|
});
|
|
2984
2922
|
});
|
|
2985
|
-
},
|
|
2923
|
+
}, bn = an(U("utils-mui:inputDialog", () => import("./B9bsJW-sDycQWnod.mjs")).load), vn = (e) => {
|
|
2986
2924
|
const { showModal: t } = Re();
|
|
2987
|
-
return (
|
|
2988
|
-
const { defaultOption: o =
|
|
2989
|
-
return new Promise((
|
|
2990
|
-
const l = t(
|
|
2925
|
+
return (n) => {
|
|
2926
|
+
const { defaultOption: o = n.options?.[0], cancelOption: r = "Cancel", ...i } = n;
|
|
2927
|
+
return new Promise((n, a) => {
|
|
2928
|
+
const l = t(bn, {
|
|
2991
2929
|
...e,
|
|
2992
2930
|
defaultOption: o,
|
|
2993
|
-
cancelOption:
|
|
2931
|
+
cancelOption: r,
|
|
2994
2932
|
...i,
|
|
2995
2933
|
onOption(e, t, o) {
|
|
2996
|
-
i?.onOption?.(e, t, o),
|
|
2934
|
+
i?.onOption?.(e, t, o), n({
|
|
2997
2935
|
input: "",
|
|
2998
2936
|
option: e
|
|
2999
2937
|
});
|
|
3000
2938
|
},
|
|
3001
2939
|
onInput(e, t) {
|
|
3002
|
-
i?.onInput?.(e, t),
|
|
2940
|
+
i?.onInput?.(e, t), n({
|
|
3003
2941
|
input: e,
|
|
3004
2942
|
option: t
|
|
3005
2943
|
});
|
|
@@ -3013,15 +2951,15 @@ var cr = {
|
|
|
3013
2951
|
});
|
|
3014
2952
|
});
|
|
3015
2953
|
};
|
|
3016
|
-
},
|
|
3017
|
-
const { commandKey:
|
|
3018
|
-
return M(
|
|
2954
|
+
}, wn = z(I((e, t) => {
|
|
2955
|
+
const { commandKey: n, command: o, disabled: r, shortcut: i, children: a, ...l } = e, [s] = he(n ?? []), d = o ?? s, c = d?.getShortcut();
|
|
2956
|
+
return M(Lt, {
|
|
3019
2957
|
ref: t,
|
|
3020
|
-
label: void 0 !==
|
|
3021
|
-
shortcut: void 0 !== i ? i : Array.isArray(
|
|
3022
|
-
description:
|
|
3023
|
-
disabled:
|
|
3024
|
-
componentDisabled:
|
|
2958
|
+
label: void 0 !== r ? d?.getLabel() : "",
|
|
2959
|
+
shortcut: void 0 !== i ? i : Array.isArray(c) ? c[0] : c,
|
|
2960
|
+
description: d?.getDescription(),
|
|
2961
|
+
disabled: r,
|
|
2962
|
+
componentDisabled: d?.disabled(),
|
|
3025
2963
|
...l,
|
|
3026
2964
|
children: M("div", {
|
|
3027
2965
|
style: {
|
|
@@ -3031,11 +2969,11 @@ var cr = {
|
|
|
3031
2969
|
children: a
|
|
3032
2970
|
})
|
|
3033
2971
|
});
|
|
3034
|
-
})),
|
|
3035
|
-
function
|
|
3036
|
-
const e =
|
|
2972
|
+
})), Cn = Le;
|
|
2973
|
+
function kn() {
|
|
2974
|
+
const e = F(null);
|
|
3037
2975
|
return {
|
|
3038
|
-
ripple: A(() => M(
|
|
2976
|
+
ripple: A(() => M(Cn, {
|
|
3039
2977
|
ref: e,
|
|
3040
2978
|
center: !1
|
|
3041
2979
|
}), []),
|
|
@@ -3044,85 +2982,85 @@ function Mr() {
|
|
|
3044
2982
|
}, [])
|
|
3045
2983
|
};
|
|
3046
2984
|
}
|
|
3047
|
-
var
|
|
3048
|
-
const { commandKey:
|
|
2985
|
+
var Mn = M(J, {}), Sn = z(I((e, t) => {
|
|
2986
|
+
const { commandKey: n, command: o, groupKey: r, icon: i, label: a, showLabel: l = !1, disabled: s, variant: d = Y.Toolbar, shortcut: c, commandState: p, propsTooltip: u, ...m } = e, { ripple: h, trigger: f } = kn(), g = A(() => ({ onExecute() {
|
|
3049
2987
|
f();
|
|
3050
|
-
} }), [f]), [x] = he(
|
|
2988
|
+
} }), [f]), [x] = he(n ?? [], g), y = o ?? x, b = B((e) => {
|
|
3051
2989
|
0 === e.button && e.preventDefault();
|
|
3052
2990
|
}, []), v = B(async (e) => {
|
|
3053
|
-
0 === e.button &&
|
|
3054
|
-
}, [
|
|
3055
|
-
e.keyCode !==
|
|
3056
|
-
}, [
|
|
3057
|
-
if (null === i) return
|
|
2991
|
+
0 === e.button && y && await y.execute(p);
|
|
2992
|
+
}, [y, p]), w = B((e) => {
|
|
2993
|
+
e.keyCode !== ne.Enter && e.keyCode !== ne.Space || y?.execute(p);
|
|
2994
|
+
}, [y, p]), C = s ?? (!y || y.disabled()), k = y?.getState(), P = A(() => {
|
|
2995
|
+
if (null === i) return Mn;
|
|
3058
2996
|
let e;
|
|
3059
|
-
return e = "function" == typeof i ?
|
|
2997
|
+
return e = "function" == typeof i ? y ? i(y) : void 0 : i, e || (e = y?.getIcon(r)), e ? ("string" == typeof e && (e = M(J, { iconKey: e })), e) : d === Y.Toolbar || k ? void 0 : Mn;
|
|
3060
2998
|
}, [
|
|
3061
|
-
|
|
3062
|
-
|
|
2999
|
+
y,
|
|
3000
|
+
r,
|
|
3063
3001
|
i,
|
|
3064
|
-
|
|
3065
|
-
|
|
3002
|
+
k,
|
|
3003
|
+
d
|
|
3066
3004
|
]), T = {
|
|
3067
3005
|
tabIndex: 0,
|
|
3068
3006
|
ref: t,
|
|
3069
|
-
selected: !!
|
|
3070
|
-
icon:
|
|
3071
|
-
selected:
|
|
3007
|
+
selected: !!k,
|
|
3008
|
+
icon: d === Y.Toolbar ? l ? Oe(P, a ?? y?.getLabel(r)) : P : M(Yt, {
|
|
3009
|
+
selected: k ?? !1,
|
|
3072
3010
|
children: P
|
|
3073
3011
|
}),
|
|
3074
3012
|
disableRipple: !0,
|
|
3075
|
-
disabled:
|
|
3076
|
-
onMouseDown:
|
|
3013
|
+
disabled: C,
|
|
3014
|
+
onMouseDown: b,
|
|
3077
3015
|
onMouseUp: v,
|
|
3078
3016
|
onKeyDown: w
|
|
3079
3017
|
};
|
|
3080
3018
|
let R;
|
|
3081
|
-
return R =
|
|
3019
|
+
return R = d === Y.Menuitem ? S(Wt, {
|
|
3082
3020
|
...m,
|
|
3083
3021
|
...T,
|
|
3084
|
-
children: [a ??
|
|
3085
|
-
}) : M(
|
|
3022
|
+
children: [a ?? y?.getLabel(r), h]
|
|
3023
|
+
}) : M(Et, {
|
|
3086
3024
|
...m,
|
|
3087
3025
|
...T,
|
|
3088
3026
|
children: h
|
|
3089
|
-
}), a ||
|
|
3090
|
-
commandKey:
|
|
3027
|
+
}), a || y?.getLabel() ? (C && (R = M("div", { children: R })), R = M(wn, {
|
|
3028
|
+
commandKey: n,
|
|
3091
3029
|
command: o,
|
|
3092
|
-
disabled:
|
|
3093
|
-
placement:
|
|
3094
|
-
shortcut:
|
|
3030
|
+
disabled: C,
|
|
3031
|
+
placement: d === Y.Toolbar ? "bottom-start" : "right-start",
|
|
3032
|
+
shortcut: c,
|
|
3095
3033
|
...u,
|
|
3096
3034
|
children: R
|
|
3097
3035
|
}), R) : R;
|
|
3098
3036
|
}));
|
|
3099
|
-
|
|
3100
|
-
var
|
|
3101
|
-
const { commandKey:
|
|
3037
|
+
Sn.displayName = "CommandButton";
|
|
3038
|
+
var Pn = M(J, {}), Tn = z(I((e, t) => {
|
|
3039
|
+
const { commandKey: n, groupKey: o, icon: r, commandState: i, label: a, variant: l = Y.Toolbar, disabled: s, parseInput: d, inputProps: u, inputRef: m, ...h } = e, { ripple: f, trigger: g } = kn(), x = A(() => ({ onExecute() {
|
|
3102
3040
|
g();
|
|
3103
|
-
} }), [g]),
|
|
3041
|
+
} }), [g]), y = he(n ?? [], x)[0], b = () => y?.getState()?.toString() || "", [v, w] = W(""), C = F(b()), k = ue(() => {
|
|
3104
3042
|
let e = v;
|
|
3105
|
-
if (
|
|
3106
|
-
e =
|
|
3043
|
+
if (d) try {
|
|
3044
|
+
e = d(v);
|
|
3107
3045
|
} catch (e) {
|
|
3108
|
-
w(
|
|
3046
|
+
w(b());
|
|
3109
3047
|
return;
|
|
3110
3048
|
}
|
|
3111
|
-
|
|
3049
|
+
C.current !== v ? (C.current = v, y?.execute(e)) : w(b());
|
|
3112
3050
|
}, [
|
|
3113
|
-
y,
|
|
3114
3051
|
b,
|
|
3052
|
+
y,
|
|
3115
3053
|
v,
|
|
3116
|
-
|
|
3054
|
+
d
|
|
3117
3055
|
]);
|
|
3118
3056
|
N(() => {
|
|
3119
|
-
w(
|
|
3120
|
-
}, [
|
|
3057
|
+
w(b());
|
|
3058
|
+
}, [y?.getState()]);
|
|
3121
3059
|
const P = A(() => {
|
|
3122
|
-
if (null ===
|
|
3060
|
+
if (null === r) return Pn;
|
|
3123
3061
|
let e;
|
|
3124
|
-
return e = "function" == typeof
|
|
3125
|
-
}, [
|
|
3062
|
+
return e = "function" == typeof r ? y ? r(y) : void 0 : r, e || (e = y?.getIcon()), e ? ("string" == typeof e && (e = M(J, { iconKey: e })), e) : l === Y.Toolbar || y?.getState() ? void 0 : Pn;
|
|
3063
|
+
}, [y?.getIcon(), r]), T = A(() => void 0 === a ? y?.getLabel(o) : "function" == typeof a ? a() : a, [a, y?.getLabel(o)]), R = s ?? (!y || y.disabled()), D = A(() => M(c, {
|
|
3126
3064
|
...h,
|
|
3127
3065
|
sx: {
|
|
3128
3066
|
paddingTop: "0px",
|
|
@@ -3142,7 +3080,7 @@ var Tr = M(J, {}), Rr = z(I((e, t) => {
|
|
|
3142
3080
|
inputRef: m,
|
|
3143
3081
|
inputProps: {
|
|
3144
3082
|
tabIndex: 0,
|
|
3145
|
-
name: `input-${
|
|
3083
|
+
name: `input-${y?.getKey()}`,
|
|
3146
3084
|
autoComplete: "off",
|
|
3147
3085
|
...u
|
|
3148
3086
|
},
|
|
@@ -3169,18 +3107,18 @@ var Tr = M(J, {}), Rr = z(I((e, t) => {
|
|
|
3169
3107
|
e.target?.select();
|
|
3170
3108
|
},
|
|
3171
3109
|
onKeyDown: (e) => {
|
|
3172
|
-
if (e.which ===
|
|
3173
|
-
else if (e.which ===
|
|
3110
|
+
if (e.which === ne.Enter) b() !== v && (e.stopPropagation(), e.preventDefault(), k());
|
|
3111
|
+
else if (e.which === ne.Escape) b() !== v && (w(b()), setTimeout(() => {
|
|
3174
3112
|
e.target?.select();
|
|
3175
3113
|
}, 0), e.stopPropagation(), e.preventDefault());
|
|
3176
3114
|
else {
|
|
3177
3115
|
if (e.key.match("[-]")) return e.stopPropagation(), void e.preventDefault();
|
|
3178
3116
|
if (e.key.match("[0-9.]") && (v + e.key).length > 4) return e.stopPropagation(), void e.preventDefault();
|
|
3179
|
-
if (e.which ===
|
|
3117
|
+
if (e.which === ne.Space) return void e.preventDefault();
|
|
3180
3118
|
}
|
|
3181
3119
|
},
|
|
3182
3120
|
onBlur: () => {
|
|
3183
|
-
|
|
3121
|
+
k();
|
|
3184
3122
|
},
|
|
3185
3123
|
onChange: (e) => {
|
|
3186
3124
|
if (e.target.value.length > 4) return e.stopPropagation(), void e.preventDefault();
|
|
@@ -3197,19 +3135,19 @@ var Tr = M(J, {}), Rr = z(I((e, t) => {
|
|
|
3197
3135
|
ref: t,
|
|
3198
3136
|
icon: P,
|
|
3199
3137
|
disableRipple: !0,
|
|
3200
|
-
disabled: s || !
|
|
3138
|
+
disabled: s || !y || y.disabled(),
|
|
3201
3139
|
onMouseDown: (e) => {
|
|
3202
3140
|
0 === e.button && e.preventDefault();
|
|
3203
3141
|
},
|
|
3204
3142
|
onMouseUp: (e) => {
|
|
3205
|
-
0 !== e.button || e.isPropagationStopped() || e.isDefaultPrevented() || e.isDefaultPrevented() || (e.preventDefault(),
|
|
3143
|
+
0 !== e.button || e.isPropagationStopped() || e.isDefaultPrevented() || e.isDefaultPrevented() || (e.preventDefault(), k());
|
|
3206
3144
|
},
|
|
3207
3145
|
onKeyDown: (e) => {
|
|
3208
|
-
e.keyCode !==
|
|
3146
|
+
e.keyCode !== ne.Enter && e.keyCode !== ne.Tab || k();
|
|
3209
3147
|
}
|
|
3210
3148
|
};
|
|
3211
3149
|
let $;
|
|
3212
|
-
return $ = l === Y.Menuitem ? S(
|
|
3150
|
+
return $ = l === Y.Menuitem ? S(Wt, {
|
|
3213
3151
|
...h,
|
|
3214
3152
|
...I,
|
|
3215
3153
|
children: [
|
|
@@ -3217,19 +3155,19 @@ var Tr = M(J, {}), Rr = z(I((e, t) => {
|
|
|
3217
3155
|
D,
|
|
3218
3156
|
f
|
|
3219
3157
|
]
|
|
3220
|
-
}) : M(
|
|
3158
|
+
}) : M(Et, {
|
|
3221
3159
|
...h,
|
|
3222
3160
|
...I,
|
|
3223
3161
|
children: f
|
|
3224
|
-
}),
|
|
3225
|
-
commandKey:
|
|
3162
|
+
}), y?.getLabel() ? ((y.disabled() || s) && ($ = M("div", { children: $ })), $ = M(wn, {
|
|
3163
|
+
commandKey: n,
|
|
3226
3164
|
placement: l === Y.Toolbar ? "bottom-start" : "right-start",
|
|
3227
3165
|
children: $
|
|
3228
3166
|
}), $) : $;
|
|
3229
|
-
})),
|
|
3230
|
-
const { variant:
|
|
3167
|
+
})), Rn = z(I((e, t) => {
|
|
3168
|
+
const { variant: n = Y.Toolbar, quickCommand: o, onQuickClick: r, commandState: i, disabled: a, label: l, icon: s, renderPopupPanel: d, tooltip: c, selected: p, groupKey: u, ...m } = e, { ripple: h, trigger: f } = kn(), g = A(() => ({ onExecute() {
|
|
3231
3169
|
f();
|
|
3232
|
-
} }), [f]), [x] = he(o ?? [], g), { label:
|
|
3170
|
+
} }), [f]), [x] = he(o ?? [], g), { label: y, icon: b } = A(() => {
|
|
3233
3171
|
let e = null;
|
|
3234
3172
|
l && (e = "function" == typeof l ? x ? l(x) : null : l), e || (e = x?.getLabel?.(u));
|
|
3235
3173
|
let t = s;
|
|
@@ -3244,74 +3182,74 @@ var Tr = M(J, {}), Rr = z(I((e, t) => {
|
|
|
3244
3182
|
]), v = {
|
|
3245
3183
|
disabled: a || !(x || !o),
|
|
3246
3184
|
ripple: h,
|
|
3247
|
-
onQuickClick:
|
|
3248
|
-
tooltip:
|
|
3249
|
-
label:
|
|
3250
|
-
icon:
|
|
3185
|
+
onQuickClick: r,
|
|
3186
|
+
tooltip: c,
|
|
3187
|
+
label: y,
|
|
3188
|
+
icon: b
|
|
3251
3189
|
};
|
|
3252
|
-
(
|
|
3253
|
-
label:
|
|
3254
|
-
description:
|
|
3190
|
+
(y || c) && (v.renderTooltip = ({ children: e, disabled: t }) => M(Lt, {
|
|
3191
|
+
label: y,
|
|
3192
|
+
description: c,
|
|
3255
3193
|
disabled: t,
|
|
3256
3194
|
children: e
|
|
3257
3195
|
}));
|
|
3258
|
-
const w = ue((e) =>
|
|
3259
|
-
return x ? (v.propsQuickButton = {}, v.propsQuickButton.renderTooltip = ({ children: e, placement: t, disabled:
|
|
3196
|
+
const w = ue((e) => d?.(e), [d]), C = ue((e) => x?.execute(i), [x]);
|
|
3197
|
+
return x ? (v.propsQuickButton = {}, v.propsQuickButton.renderTooltip = ({ children: e, placement: t, disabled: r }) => M(wn, {
|
|
3260
3198
|
commandKey: o,
|
|
3261
|
-
placement: t ??
|
|
3262
|
-
disabled:
|
|
3199
|
+
placement: t ?? n === Y.Toolbar ? "bottom-start" : "right-start",
|
|
3200
|
+
disabled: r,
|
|
3263
3201
|
children: e
|
|
3264
|
-
}), v.disabled = v.disabled ?? x?.disabled(),
|
|
3202
|
+
}), v.disabled = v.disabled ?? x?.disabled(), r || (v.onQuickClick = C)) : o && (v.onQuickClick = () => {}), v.selected = p ?? x?.getState(), v.renderPopupPanel = w, n === Y.Toolbar ? M(Vt, {
|
|
3265
3203
|
...m,
|
|
3266
3204
|
...v,
|
|
3267
3205
|
ref: t
|
|
3268
|
-
}) : M(
|
|
3206
|
+
}) : M(Qt, {
|
|
3269
3207
|
...m,
|
|
3270
3208
|
...v,
|
|
3271
3209
|
ref: t
|
|
3272
3210
|
});
|
|
3273
3211
|
}));
|
|
3274
|
-
function
|
|
3275
|
-
const { variant:
|
|
3276
|
-
void 0 !==
|
|
3277
|
-
const
|
|
3278
|
-
void 0 !==
|
|
3279
|
-
const p = (e, t,
|
|
3212
|
+
function Dn(e, t = {}) {
|
|
3213
|
+
const { variant: n, dividerOrientation: o = "vertical", groupKey: r, commandState: i, propsCommandButton: a, propsCommandPopup: l, registry: s } = t, d = { ...a };
|
|
3214
|
+
void 0 !== n && (d.variant = n);
|
|
3215
|
+
const c = { ...l };
|
|
3216
|
+
void 0 !== n && (c.variant = n);
|
|
3217
|
+
const p = (e, t, n) => {
|
|
3280
3218
|
const o = {
|
|
3281
|
-
...
|
|
3282
|
-
groupKey:
|
|
3219
|
+
...d,
|
|
3220
|
+
groupKey: r,
|
|
3283
3221
|
commandKey: e,
|
|
3284
3222
|
commandState: void 0 !== t ? t : i,
|
|
3285
|
-
label:
|
|
3286
|
-
icon:
|
|
3287
|
-
showLabel:
|
|
3223
|
+
label: n?.getLabel?.(r),
|
|
3224
|
+
icon: n?.getIcon?.(r),
|
|
3225
|
+
showLabel: n?.showLabel
|
|
3288
3226
|
};
|
|
3289
|
-
return (
|
|
3227
|
+
return (n?.render ? n.render(o, r) : M(Sn, { ...o })) ?? null;
|
|
3290
3228
|
}, u = (e) => {
|
|
3291
|
-
const t = "string" == typeof e ? e : e.key,
|
|
3292
|
-
if (!t) return ((e) => Array.isArray(e.members) ? e.render ? e.render({ ...
|
|
3293
|
-
...
|
|
3229
|
+
const t = "string" == typeof e ? e : e.key, n = "string" == typeof e ? void 0 : e;
|
|
3230
|
+
if (!t) return ((e) => Array.isArray(e.members) ? e.render ? e.render({ ...c }, void 0) ?? null : M(In, {
|
|
3231
|
+
...c,
|
|
3294
3232
|
members: e.members,
|
|
3295
3233
|
icon: e.getIcon?.(),
|
|
3296
3234
|
label: e.getLabel?.(),
|
|
3297
3235
|
tooltip: e.getDescription?.()
|
|
3298
|
-
}) : (e.render ? e.render({ ...
|
|
3236
|
+
}) : (e.render ? e.render({ ...c }, r) : null) ?? null)(e);
|
|
3299
3237
|
const o = s?.get(t) ?? null;
|
|
3300
|
-
return o ? ((e, t,
|
|
3301
|
-
if (Array.isArray(e.members)) return e.render ? e.render({ ...
|
|
3302
|
-
...
|
|
3238
|
+
return o ? ((e, t, n) => {
|
|
3239
|
+
if (Array.isArray(e.members)) return e.render ? e.render({ ...c }, t) ?? null : M(In, {
|
|
3240
|
+
...c,
|
|
3303
3241
|
groupKey: t,
|
|
3304
|
-
icon:
|
|
3305
|
-
label:
|
|
3306
|
-
showLabel:
|
|
3242
|
+
icon: n?.getIcon?.(t),
|
|
3243
|
+
label: n?.getLabel?.(t) ?? (r ? e.getLabel?.(r) : void 0),
|
|
3244
|
+
showLabel: n?.showLabel
|
|
3307
3245
|
});
|
|
3308
|
-
if (e.render) return e.render({ ...
|
|
3309
|
-
const o =
|
|
3246
|
+
if (e.render) return e.render({ ...c }, r) ?? null;
|
|
3247
|
+
const o = n ? {
|
|
3310
3248
|
...e,
|
|
3311
|
-
...
|
|
3249
|
+
...n
|
|
3312
3250
|
} : e;
|
|
3313
3251
|
return p(e.defaultKey ?? t, o.state, o);
|
|
3314
|
-
})(o, t,
|
|
3252
|
+
})(o, t, n) : p(t, n?.state, n);
|
|
3315
3253
|
}, m = [];
|
|
3316
3254
|
let h = 0, f = !1, g = !1;
|
|
3317
3255
|
const x = e ?? [];
|
|
@@ -3321,32 +3259,32 @@ function Ir(e, t = {}) {
|
|
|
3321
3259
|
g && (f = !0);
|
|
3322
3260
|
continue;
|
|
3323
3261
|
}
|
|
3324
|
-
const
|
|
3325
|
-
|
|
3262
|
+
const n = u(t);
|
|
3263
|
+
n && (f && (m.push(M(He, { orientation: o }, "member-" + h++)), f = !1), m.push(R(n, { key: "member-" + h++ })), g = !0);
|
|
3326
3264
|
}
|
|
3327
3265
|
return m;
|
|
3328
3266
|
}
|
|
3329
|
-
|
|
3330
|
-
var
|
|
3331
|
-
const { groupKey:
|
|
3267
|
+
Rn.displayName = "CommandPopupButton";
|
|
3268
|
+
var In = z(I((e, t) => {
|
|
3269
|
+
const { groupKey: n, members: o, registry: r, quickCommand: i, icon: a, label: l, showLabel: s, tooltip: d, commandState: c, disabled: p, ...u } = e, m = me(), h = r ?? m, f = !o && n ? h.get(n) : null, g = f && Array.isArray(f.members) ? f : null, x = A(() => o ?? (n ? h.resolveMembers(n) : null) ?? null, [
|
|
3332
3270
|
o,
|
|
3333
|
-
|
|
3271
|
+
n,
|
|
3334
3272
|
h
|
|
3335
|
-
]),
|
|
3336
|
-
const e = [], t = /* @__PURE__ */ new Set(),
|
|
3337
|
-
for (let
|
|
3338
|
-
const i = o[
|
|
3273
|
+
]), y = n, b = i ?? g?.defaultKey, v = a ?? g?.getIcon?.(y), w = l ?? g?.getLabel?.(y), C = s ?? g?.showLabel, k = d ?? g?.getDescription?.(y), S = A(() => {
|
|
3274
|
+
const e = [], t = /* @__PURE__ */ new Set(), n = (o) => {
|
|
3275
|
+
for (let r = 0; r < o.length; r++) {
|
|
3276
|
+
const i = o[r];
|
|
3339
3277
|
if (!i || "-" === i) continue;
|
|
3340
3278
|
const a = "string" == typeof i ? i : i.key;
|
|
3341
3279
|
if (!a) continue;
|
|
3342
3280
|
if (t.has(a)) continue;
|
|
3343
3281
|
t.add(a);
|
|
3344
3282
|
const l = Array.isArray(h.get(a)?.members) ? h.resolveMembers(a) : null;
|
|
3345
|
-
l ?
|
|
3283
|
+
l ? n(l) : e.push(a);
|
|
3346
3284
|
}
|
|
3347
3285
|
};
|
|
3348
|
-
return
|
|
3349
|
-
}, [x, h]), P = he(
|
|
3286
|
+
return n(x ?? []), e;
|
|
3287
|
+
}, [x, h]), P = he(b ? [b, ...S] : S), T = A(() => {
|
|
3350
3288
|
for (let e = 0; e < P.length; e++) {
|
|
3351
3289
|
const t = P[e];
|
|
3352
3290
|
if (t && !t.disabled()) return !1;
|
|
@@ -3355,48 +3293,48 @@ var $r = z(I((e, t) => {
|
|
|
3355
3293
|
}, [P]), R = B((e) => {
|
|
3356
3294
|
const t = {};
|
|
3357
3295
|
void 0 !== p && (t.disabled = p);
|
|
3358
|
-
const
|
|
3296
|
+
const n = Dn(x, {
|
|
3359
3297
|
variant: Y.Menuitem,
|
|
3360
3298
|
dividerOrientation: "horizontal",
|
|
3361
|
-
groupKey:
|
|
3362
|
-
commandState:
|
|
3299
|
+
groupKey: y,
|
|
3300
|
+
commandState: c,
|
|
3363
3301
|
propsCommandButton: t,
|
|
3364
3302
|
propsCommandPopup: t,
|
|
3365
3303
|
registry: h
|
|
3366
3304
|
});
|
|
3367
|
-
return
|
|
3305
|
+
return kt({
|
|
3368
3306
|
...e,
|
|
3369
|
-
children:
|
|
3307
|
+
children: n
|
|
3370
3308
|
});
|
|
3371
3309
|
}, [
|
|
3372
3310
|
x,
|
|
3373
3311
|
h,
|
|
3374
|
-
|
|
3375
|
-
|
|
3312
|
+
y,
|
|
3313
|
+
c,
|
|
3376
3314
|
p
|
|
3377
3315
|
]);
|
|
3378
|
-
return x ? M(
|
|
3316
|
+
return x ? M(Rn, {
|
|
3379
3317
|
ref: t,
|
|
3380
|
-
quickCommand:
|
|
3318
|
+
quickCommand: b,
|
|
3381
3319
|
icon: v,
|
|
3382
3320
|
label: w,
|
|
3383
|
-
showLabel:
|
|
3384
|
-
tooltip:
|
|
3385
|
-
commandState:
|
|
3321
|
+
showLabel: C,
|
|
3322
|
+
tooltip: k,
|
|
3323
|
+
commandState: c,
|
|
3386
3324
|
disabled: p ?? T,
|
|
3387
3325
|
renderPopupPanel: R,
|
|
3388
3326
|
...u
|
|
3389
3327
|
}) : null;
|
|
3390
3328
|
}));
|
|
3391
|
-
|
|
3392
|
-
var
|
|
3393
|
-
const { commandKey:
|
|
3329
|
+
In.displayName = "CommandGroup";
|
|
3330
|
+
var $n = M(J, { iconKey: "Check" }), zn = (e) => {
|
|
3331
|
+
const { commandKey: n, label: o, groupKey: r, icon: i, sx: a, ...l } = e, [s] = he(n ?? []), d = A(() => {
|
|
3394
3332
|
if (void 0 !== i) return i;
|
|
3395
|
-
let e = s?.getIcon(
|
|
3396
|
-
return e ? ("string" == typeof e && (e = M(J, { iconKey: e })), e) :
|
|
3333
|
+
let e = s?.getIcon(r);
|
|
3334
|
+
return e ? ("string" == typeof e && (e = M(J, { iconKey: e })), e) : $n;
|
|
3397
3335
|
}, [
|
|
3398
3336
|
i,
|
|
3399
|
-
|
|
3337
|
+
r,
|
|
3400
3338
|
s
|
|
3401
3339
|
]);
|
|
3402
3340
|
return S(t, {
|
|
@@ -3409,7 +3347,7 @@ var zr = M(J, { iconKey: "Check" }), Br = (e) => {
|
|
|
3409
3347
|
...a
|
|
3410
3348
|
},
|
|
3411
3349
|
...l,
|
|
3412
|
-
children: [
|
|
3350
|
+
children: [d, M(y, {
|
|
3413
3351
|
component: "div",
|
|
3414
3352
|
sx: {
|
|
3415
3353
|
whiteSpace: "nowrap",
|
|
@@ -3418,21 +3356,21 @@ var zr = M(J, { iconKey: "Check" }), Br = (e) => {
|
|
|
3418
3356
|
paddingRight: (e) => e.spacing(.25),
|
|
3419
3357
|
fontSize: "inherit"
|
|
3420
3358
|
},
|
|
3421
|
-
children: o ?? s?.getLabel(
|
|
3359
|
+
children: o ?? s?.getLabel(r)
|
|
3422
3360
|
})]
|
|
3423
3361
|
});
|
|
3424
|
-
},
|
|
3425
|
-
const { sx:
|
|
3362
|
+
}, Bn = z(I((e, t) => {
|
|
3363
|
+
const { sx: n, propsCommandButton: o, parentFloat: r, groupKey: i, members: a, registry: l, renderToolbarPalette: s, children: d, ...c } = e, p = me(), u = l ?? p, m = A(() => a ?? (i ? u.resolveMembers(i) : null) ?? null, [
|
|
3426
3364
|
a,
|
|
3427
3365
|
i,
|
|
3428
3366
|
u,
|
|
3429
3367
|
u.getVersion()
|
|
3430
|
-
]), h =
|
|
3368
|
+
]), h = be(t, () => ({}), []), [f, x] = W(null), { reference: y } = ge({
|
|
3431
3369
|
label: "toolbar",
|
|
3432
3370
|
anchor: h.current,
|
|
3433
|
-
parentFloat:
|
|
3371
|
+
parentFloat: r,
|
|
3434
3372
|
renderPopupPanel: null
|
|
3435
|
-
}),
|
|
3373
|
+
}), b = ue(() => {
|
|
3436
3374
|
const e = f;
|
|
3437
3375
|
e && requestAnimationFrame(() => {
|
|
3438
3376
|
h.current?.contains(document.activeElement) && e.focus();
|
|
@@ -3440,23 +3378,23 @@ var zr = M(J, { iconKey: "Check" }), Br = (e) => {
|
|
|
3440
3378
|
}, [f]), v = A(() => ({
|
|
3441
3379
|
dense: !0,
|
|
3442
3380
|
outlined: !1
|
|
3443
|
-
}), []), w = A(() => ({ ...o || {} }), [o]),
|
|
3381
|
+
}), []), w = A(() => ({ ...o || {} }), [o]), C = A(() => ({
|
|
3444
3382
|
...v,
|
|
3445
3383
|
...w
|
|
3446
|
-
}), [v, w]),
|
|
3384
|
+
}), [v, w]), k = A(() => ({ ...w }), [C, o]);
|
|
3447
3385
|
let S = 0;
|
|
3448
3386
|
v.dense || (S += 2), v.outlined && S++;
|
|
3449
3387
|
let P = 2;
|
|
3450
3388
|
v.dense || (P = 4);
|
|
3451
3389
|
const T = A(() => {
|
|
3452
3390
|
const e = {
|
|
3453
|
-
propsCommandButton:
|
|
3391
|
+
propsCommandButton: C,
|
|
3454
3392
|
propsCommandPopup: {
|
|
3455
|
-
...
|
|
3393
|
+
...k,
|
|
3456
3394
|
...o
|
|
3457
3395
|
}
|
|
3458
3396
|
};
|
|
3459
|
-
return s ? s(e) : m ? M(
|
|
3397
|
+
return s ? s(e) : m ? M(nn, { children: Dn(m, {
|
|
3460
3398
|
dividerOrientation: "vertical",
|
|
3461
3399
|
groupKey: i,
|
|
3462
3400
|
propsCommandButton: e.propsCommandButton,
|
|
@@ -3464,8 +3402,8 @@ var zr = M(J, { iconKey: "Check" }), Br = (e) => {
|
|
|
3464
3402
|
registry: u
|
|
3465
3403
|
}) }) : null;
|
|
3466
3404
|
}, [
|
|
3467
|
-
k,
|
|
3468
3405
|
C,
|
|
3406
|
+
k,
|
|
3469
3407
|
o,
|
|
3470
3408
|
s,
|
|
3471
3409
|
m,
|
|
@@ -3487,7 +3425,7 @@ var zr = M(J, { iconKey: "Check" }), Br = (e) => {
|
|
|
3487
3425
|
flexGrow: 1,
|
|
3488
3426
|
display: "flex",
|
|
3489
3427
|
overflow: "hidden",
|
|
3490
|
-
...
|
|
3428
|
+
...n
|
|
3491
3429
|
},
|
|
3492
3430
|
ref: h,
|
|
3493
3431
|
onFocus: (e) => {
|
|
@@ -3497,9 +3435,9 @@ var zr = M(J, { iconKey: "Check" }), Br = (e) => {
|
|
|
3497
3435
|
f && !h?.current?.contains(e.relatedTarget) && x(null);
|
|
3498
3436
|
},
|
|
3499
3437
|
onKeyDown: (e) => {
|
|
3500
|
-
f && e.which ===
|
|
3438
|
+
f && e.which === ne.Escape && f.focus();
|
|
3501
3439
|
},
|
|
3502
|
-
...
|
|
3440
|
+
...c,
|
|
3503
3441
|
children: M("div", {
|
|
3504
3442
|
ref: h,
|
|
3505
3443
|
style: {
|
|
@@ -3512,29 +3450,29 @@ var zr = M(J, { iconKey: "Check" }), Br = (e) => {
|
|
|
3512
3450
|
maxWidth: "100%"
|
|
3513
3451
|
},
|
|
3514
3452
|
children: M(te, {
|
|
3515
|
-
value:
|
|
3453
|
+
value: y,
|
|
3516
3454
|
children: M(_, {
|
|
3517
|
-
value:
|
|
3455
|
+
value: b,
|
|
3518
3456
|
children: T
|
|
3519
3457
|
})
|
|
3520
3458
|
})
|
|
3521
3459
|
})
|
|
3522
3460
|
});
|
|
3523
3461
|
}));
|
|
3524
|
-
|
|
3525
|
-
var
|
|
3526
|
-
const { groupKey:
|
|
3462
|
+
Bn.displayName = "CommandToolbar";
|
|
3463
|
+
var Ln = z(I((e, t) => {
|
|
3464
|
+
const { groupKey: n, members: o, registry: r, projectAs: i = "quick", defaultIcon: a, ...l } = e, s = me(), d = r ?? s, c = A(() => o ?? (n ? d.resolveMembers(n) : null) ?? null, [
|
|
3527
3465
|
o,
|
|
3528
|
-
|
|
3529
|
-
|
|
3466
|
+
n,
|
|
3467
|
+
d
|
|
3530
3468
|
]), p = A(() => {
|
|
3531
|
-
const e = [], t =
|
|
3532
|
-
for (let
|
|
3533
|
-
const o = t[
|
|
3469
|
+
const e = [], t = c ?? [];
|
|
3470
|
+
for (let n = 0; n < t.length; n++) {
|
|
3471
|
+
const o = t[n];
|
|
3534
3472
|
o && "-" !== o && ("string" == typeof o ? e.push(o) : o.key && e.push(o.key));
|
|
3535
3473
|
}
|
|
3536
3474
|
return e;
|
|
3537
|
-
}, [
|
|
3475
|
+
}, [c]), u = he(p);
|
|
3538
3476
|
let m = null, h = null;
|
|
3539
3477
|
for (let e = 0; !m && e < u.length; e++) {
|
|
3540
3478
|
const t = u[e];
|
|
@@ -3547,14 +3485,14 @@ var Nr = z(I((e, t) => {
|
|
|
3547
3485
|
quickCommand: m ?? p[0],
|
|
3548
3486
|
icon: void 0
|
|
3549
3487
|
};
|
|
3550
|
-
return M(
|
|
3488
|
+
return M(In, {
|
|
3551
3489
|
ref: t,
|
|
3552
|
-
groupKey:
|
|
3490
|
+
groupKey: n,
|
|
3553
3491
|
members: o,
|
|
3554
|
-
registry:
|
|
3492
|
+
registry: d,
|
|
3555
3493
|
...l,
|
|
3556
3494
|
...f
|
|
3557
3495
|
});
|
|
3558
3496
|
}));
|
|
3559
|
-
|
|
3560
|
-
export { Ge as AnimatedBouncingEllipsisIcon, je as AnimatedCircleIcon, qe as AnimatedClockIcon, Qe as AnimatedFadingEllipsisIcon, Ze as AnimatedLoadingPanel, Ue as AnimatedOrbitIcon, Xe as AnimatedTraversingEllipsisIcon, pt as ArrowDownIcon, ut as ArrowRightIcon, st as ChipStrip,
|
|
3497
|
+
Ln.displayName = "ToggleGroupButton";
|
|
3498
|
+
export { Ge as AnimatedBouncingEllipsisIcon, je as AnimatedCircleIcon, qe as AnimatedClockIcon, Qe as AnimatedFadingEllipsisIcon, Ze as AnimatedLoadingPanel, Ue as AnimatedOrbitIcon, Xe as AnimatedTraversingEllipsisIcon, pt as ArrowDownIcon, ut as ArrowRightIcon, st as ChipStrip, wt as ClosingReason, Sn as CommandButton, In as CommandGroup, Rn as CommandPopupButton, Bn as CommandToolbar, wn as CommandTooltip, It as ContextMenu, He as ExhibitDivider, St as ExhibitFloatPanel, Tt as ExhibitFloatProvider, Et as ExhibitIconButton, Ht as ExhibitMenuHeader, Wt as ExhibitMenuItem, Gt as ExhibitOptionButton, Vt as ExhibitPopupIconButton, Qt as ExhibitPopupMenuItem, Lt as ExhibitTooltip, Tn as InputCommandButton, pn as InternalWindow, zn as LabelIcon, at as LazyLoadErrorPanel, Kt as MenuItemInsets, Te as ModalProvider, Rt as NestingPopupButton, xn as OptionsDialog, nn as OverflowPalette, vt as PopupAutoFocus, Ct as PopupButtonType, Yt as SelectedIcon, $t as SimpleTooltip, ot as StackTrace, rt as StackTraceErrorPanel, Ln as ToggleGroupButton, Ne as buttonLabelSx, Oe as composeButtonContent, Mt as createDownArrow, bt as createExhibitTheme, Ke as createScrollButton, ct as createStrokeShadowFilter, kt as defaultRenderPopupPanel, Ae as defaultRenderScrollButtonEdge, We as defaultRenderScrollButtonEnd, Fe as defaultRenderScrollButtonStart, gt as elevateColor, ft as hexToRGB, Je as hideLoadingPanel, an as lazyModal, lt as lazyPanel, hn as optionIdentity, en as registerUtilsMuiLocales, Dn as renderMembers, _e as showLoadingPanel, dt as strokeShadowFilter, Bt as toShortcutElements, vn as useInputDialog, ln as useLazyWindow, yn as useOptionsDialog };
|