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