@sheetxl/utils-mui 0.8.0-beta.1 → 0.8.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/esm/BfHjPJF6LKjMxxHM.mjs +2685 -0
- package/browser/esm/{DL0kfA1tkA8abU1N.mjs → C-5x5uhaeRkhCSzY.mjs} +6 -6
- package/browser/esm/index.mjs +919 -798
- package/licenses/dependencies.txt +2 -74
- package/node/esm/index.mjs +919 -768
- package/node/esm/{Dil2ramfxzB8VR3D.mjs → nxST0XJIy9Y6DTRo.mjs} +3 -3
- package/package.json +10 -13
- package/resources/locales/en/ui.msg.json +1 -0
- package/types/src/button/ExhibitMenuItem.d.ts +12 -0
- package/types/src/components/AnimatedLoadingPanel.d.ts +42 -0
- package/types/src/components/LazyLoadErrorPanel.d.ts +16 -0
- package/types/src/components/index.d.ts +2 -0
- package/types/src/components/lazyPanel.d.ts +23 -0
- package/types/src/dialog/index.d.ts +1 -0
- package/types/src/dialog/lazyModal.d.ts +25 -0
- package/types/src/theme/ExhibitTheme.d.ts +0 -36
- package/browser/cjs/CMDyOaq_TZmhbR3R.cjs +0 -1
- package/browser/cjs/GeHQP4M_1ydWv9v4.cjs +0 -3
- package/browser/cjs/index.cjs +0 -4
- package/browser/esm/DBwwZFuNSwPGoi8L.mjs +0 -2544
package/node/esm/index.mjs
CHANGED
|
@@ -1,28 +1,26 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.11
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { Backdrop as e, Box as t, Button as r, Chip as o, CircularProgress as n, DialogActions as i, DialogContent as a, DialogTitle as l, Divider as s, Fade as c, IconButton as d, Input as p, LinearProgress as u, ListItemButton as m, ListItemIcon as h, Paper as f, Toolbar as g, Tooltip as x, Typography as b, Unstable_TrapFocus as y, createTheme as v, useTheme as
|
|
7
|
+
import { Backdrop as e, Box as t, Button as r, Chip as o, CircularProgress as n, DialogActions as i, DialogContent as a, DialogTitle as l, Divider as s, Fade as c, IconButton as d, Input as p, LinearProgress as u, ListItemButton as m, ListItemIcon as h, Paper as f, Toolbar as g, Tooltip as x, Typography as b, Unstable_TrapFocus as y, createTheme as v, useTheme as w, useThemeProps as k } from "@mui/material";
|
|
8
8
|
import { Fragment as C, jsx as M, jsxs as S } from "react/jsx-runtime";
|
|
9
|
-
import { Children as
|
|
10
|
-
import
|
|
11
|
-
import { alpha as
|
|
12
|
-
import { CommonUtils as
|
|
13
|
-
import { Command as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import { FormProvider as Te, useForm as Pe } from "react-hook-form";
|
|
23
|
-
import Re from "@mui/material/ButtonBase/TouchRipple";
|
|
9
|
+
import { Children as P, Fragment as T, Suspense as R, cloneElement as D, createContext as I, forwardRef as $, isValidElement as z, memo as B, useCallback as L, useContext as N, useEffect as O, useId as E, useLayoutEffect as F, useMemo as A, useReducer as K, useRef as W, useState as H } from "react";
|
|
10
|
+
import V from "clsx";
|
|
11
|
+
import { alpha as q, darken as j, lighten as Q } from "@mui/system";
|
|
12
|
+
import { CommonUtils as G, ErrorUtils as U, defineLazyModule as X } from "@sheetxl/utils";
|
|
13
|
+
import { Command as Y, CommandButtonType as _, CommandFocusProvider as J, DynamicIcon as Z, FloatPopper as ee, FloatProvider as te, FloatStackProvider as re, KeyCodes as oe, KeyModifiers as ne, NotifierType as ie, ReactUtils as ae, ScrollbarOrientation as le, defaultCreateScrollEdgeButton as se, floatThemeScopeProps as ce, getScrollbarCssVariables as de, lazyComponent as pe, useCallbackRef as ue, useCommandButtonRegistry as me, useCommands as he, useFloat as fe, useFloatStack as ge, useFloatSurface as xe, useFullscreenPortal as be, useImperativeElement as ye, useIsomorphicLayoutEffect as ve, useLazyRetry as we, useMeasure as ke, useTranslator as Ce, zIndexVar as Me } from "@sheetxl/utils-react";
|
|
14
|
+
import { useMergeRefs as Se } from "react-merge-refs";
|
|
15
|
+
import { deepmerge as Pe } from "@mui/utils";
|
|
16
|
+
import Te, { useModal as Re } from "mui-modal-provider";
|
|
17
|
+
import { createPortal as De } from "react-dom";
|
|
18
|
+
import Ie from "react-draggable";
|
|
19
|
+
import { primaryInput as $e } from "detect-it";
|
|
20
|
+
import { FormProvider as ze, useForm as Be } from "react-hook-form";
|
|
21
|
+
import Le from "@mui/material/ButtonBase/TouchRipple";
|
|
24
22
|
export * from "mui-modal-provider";
|
|
25
|
-
var
|
|
23
|
+
var Ne = {
|
|
26
24
|
whiteSpace: "nowrap",
|
|
27
25
|
textTransform: "none",
|
|
28
26
|
lineHeight: 1,
|
|
@@ -30,10 +28,10 @@ var De = {
|
|
|
30
28
|
paddingLeft: (e) => e.spacing(.25),
|
|
31
29
|
paddingRight: (e) => e.spacing(.25)
|
|
32
30
|
};
|
|
33
|
-
function
|
|
31
|
+
function Oe(e, r) {
|
|
34
32
|
const o = null != r && !1 !== r && "" !== r ? M(b, {
|
|
35
33
|
component: "div",
|
|
36
|
-
sx:
|
|
34
|
+
sx: Ne,
|
|
37
35
|
children: r
|
|
38
36
|
}) : null;
|
|
39
37
|
return e && o ? S(t, {
|
|
@@ -44,28 +42,32 @@ function $e(e, r) {
|
|
|
44
42
|
children: [e, o]
|
|
45
43
|
}) : e ?? o ?? void 0;
|
|
46
44
|
}
|
|
47
|
-
var
|
|
48
|
-
const r =
|
|
45
|
+
var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
46
|
+
const r = Ce();
|
|
49
47
|
return M(C, t ? { children: r(e ? "scroll.edgeLeft" : "scroll.edgeTop") } : { children: r(e ? "scroll.edgeRight" : "scroll.edgeBottom") });
|
|
50
|
-
},
|
|
51
|
-
|
|
48
|
+
}, Fe = (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
|
-
}
|
|
52
|
+
};
|
|
53
|
+
let r = se(t);
|
|
54
|
+
if (void 0 !== e.isBefore && !e.disabled) {
|
|
55
|
+
const t = e.orientation === le.Horizontal;
|
|
56
|
+
r = M(Bt, {
|
|
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: r
|
|
66
|
+
}) : r
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
return r;
|
|
70
|
+
}, Ae = (e, t, r, o) => {
|
|
69
71
|
const { style: n, ...i } = e, a = M(d, {
|
|
70
72
|
component: "div",
|
|
71
73
|
...i,
|
|
@@ -79,7 +81,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
79
81
|
size: "small",
|
|
80
82
|
children: t
|
|
81
83
|
});
|
|
82
|
-
return M(
|
|
84
|
+
return M(Bt, {
|
|
83
85
|
title: e.disabled ? r : o,
|
|
84
86
|
enterDelay: 800,
|
|
85
87
|
enterNextDelay: 1600,
|
|
@@ -88,19 +90,19 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
88
90
|
children: a
|
|
89
91
|
}) : a
|
|
90
92
|
});
|
|
91
|
-
},
|
|
93
|
+
}, Ke = (e) => Ae(e, le.Horizontal ? M(Z, {
|
|
92
94
|
iconKey: "ArrowLeft",
|
|
93
95
|
size: "small"
|
|
94
|
-
}) : M(
|
|
96
|
+
}) : M(Z, {
|
|
95
97
|
iconKey: "ArrowUpward",
|
|
96
98
|
size: "small"
|
|
97
|
-
}), "Scroll " + (e.orientation ===
|
|
99
|
+
}), "Scroll " + (e.orientation === le.Horizontal ? "Left" : "Up"), `Scroll ${e.orientation === le.Horizontal ? "left" : "up"}, 'Ctrl+Click' to scroll to the beginning`), We = (e) => Ae(e, le.Horizontal ? M(Z, {
|
|
98
100
|
iconKey: "ArrowRight",
|
|
99
101
|
size: "small"
|
|
100
|
-
}) : M(
|
|
102
|
+
}) : M(Z, {
|
|
101
103
|
iconKey: "ArrowDownward",
|
|
102
104
|
size: "small"
|
|
103
|
-
}), "Scroll " + (e.orientation ===
|
|
105
|
+
}), "Scroll " + (e.orientation === le.Horizontal ? "Right" : "Down"), `Scroll ${e.orientation === le.Horizontal ? "right" : "down"}, 'Ctrl+Click' to scroll to the end`), He = B($((e, t) => {
|
|
104
106
|
const { orientation: r = "vertical", sx: o, ...n } = e, i = "vertical" === r;
|
|
105
107
|
return M(s, {
|
|
106
108
|
ref: t,
|
|
@@ -118,7 +120,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
118
120
|
flexItem: !0,
|
|
119
121
|
...n
|
|
120
122
|
});
|
|
121
|
-
})),
|
|
123
|
+
})), Ve = "_traverse-ellipsis_14l1h_1", qe = B((e) => {
|
|
122
124
|
const { sx: r, speed: o = 2, size: n = 70, ...i } = e;
|
|
123
125
|
return M(t, {
|
|
124
126
|
sx: {
|
|
@@ -181,7 +183,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
181
183
|
]
|
|
182
184
|
})
|
|
183
185
|
});
|
|
184
|
-
}),
|
|
186
|
+
}), je = B((e) => {
|
|
185
187
|
const { sx: r, speed: o = 1.5, size: n = 70, ...i } = e;
|
|
186
188
|
return M(t, {
|
|
187
189
|
sx: {
|
|
@@ -221,7 +223,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
221
223
|
})]
|
|
222
224
|
})
|
|
223
225
|
});
|
|
224
|
-
}),
|
|
226
|
+
}), Qe = B((e) => {
|
|
225
227
|
const { sx: r, speed: o = 1, size: n = 70, ...i } = e;
|
|
226
228
|
return M(t, {
|
|
227
229
|
sx: {
|
|
@@ -278,7 +280,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
278
280
|
]
|
|
279
281
|
})
|
|
280
282
|
});
|
|
281
|
-
}),
|
|
283
|
+
}), Ge = B((e) => {
|
|
282
284
|
const { sx: r, speed: o = 1, size: n = 70, ...i } = e;
|
|
283
285
|
return M(t, {
|
|
284
286
|
sx: {
|
|
@@ -342,7 +344,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
342
344
|
]
|
|
343
345
|
})
|
|
344
346
|
});
|
|
345
|
-
}),
|
|
347
|
+
}), Ue = B((e) => {
|
|
346
348
|
const { sx: r, speed: o = 2, size: n = 70, ...i } = e;
|
|
347
349
|
return M(t, {
|
|
348
350
|
sx: {
|
|
@@ -389,7 +391,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
389
391
|
})]
|
|
390
392
|
})
|
|
391
393
|
});
|
|
392
|
-
}),
|
|
394
|
+
}), Xe = B((e) => {
|
|
393
395
|
const { sx: r, speed: o = 1, size: n = 13, width: i = 64, height: a = 17, ...l } = e;
|
|
394
396
|
return S(t, {
|
|
395
397
|
sx: {
|
|
@@ -403,7 +405,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
403
405
|
},
|
|
404
406
|
...r
|
|
405
407
|
},
|
|
406
|
-
className:
|
|
408
|
+
className: V(Ve, "animated-icon"),
|
|
407
409
|
...l,
|
|
408
410
|
children: [
|
|
409
411
|
M("div", { className: "primary" }),
|
|
@@ -412,8 +414,26 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
412
414
|
M("div", { className: "primary" })
|
|
413
415
|
]
|
|
414
416
|
});
|
|
415
|
-
}),
|
|
416
|
-
|
|
417
|
+
}), Ye = M(je, {}), _e = (e, t) => {
|
|
418
|
+
if (!e) return null;
|
|
419
|
+
if (void 0 !== t) {
|
|
420
|
+
const r = e.querySelector("[data-sxl-loading-label]");
|
|
421
|
+
r && (r.textContent = t);
|
|
422
|
+
}
|
|
423
|
+
if (e.classList.contains("animating")) return null;
|
|
424
|
+
e.classList.remove("animating-idle"), e.offsetHeight, e.classList.add("animating");
|
|
425
|
+
const r = "function" == typeof e.getAnimations ? e.getAnimations() : null;
|
|
426
|
+
return 0 === r?.length ? null : new Promise((e) => {
|
|
427
|
+
const t = setTimeout(e, 250), o = () => {
|
|
428
|
+
clearTimeout(t), e();
|
|
429
|
+
};
|
|
430
|
+
r ? Promise.all(r.map((e) => e.ready)).then(o, o) : requestAnimationFrame(() => requestAnimationFrame(o));
|
|
431
|
+
});
|
|
432
|
+
}, Je = (e) => {
|
|
433
|
+
e && e.classList.contains("animating") && (e.classList.add("animating-idle"), e.classList.remove("animating"));
|
|
434
|
+
}, Ze = B($((e, r) => {
|
|
435
|
+
const { sx: o, style: n, onMount: i, onUnmount: a, transitionDelay: l = "1200ms", panel: s = !1, autoStart: c = !0, transparentBackground: d = !0, icon: p = Ye, label: m, progress: h = null, ...g } = e, x = A(() => "string" == typeof m || !c && null == m ? M(b, {
|
|
436
|
+
"data-sxl-loading-label": "",
|
|
417
437
|
variant: "caption",
|
|
418
438
|
component: "div",
|
|
419
439
|
sx: {
|
|
@@ -421,10 +441,10 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
421
441
|
lineHeight: 1.43,
|
|
422
442
|
letterSpacing: "0.01071em"
|
|
423
443
|
},
|
|
424
|
-
children:
|
|
425
|
-
}) :
|
|
426
|
-
if ("number" != typeof
|
|
427
|
-
const e = Math.max(0, Math.min(100, Math.round(100 *
|
|
444
|
+
children: "string" == typeof m ? m : ""
|
|
445
|
+
}) : m, [m, c]), y = A(() => {
|
|
446
|
+
if ("number" != typeof h) return p;
|
|
447
|
+
const e = Math.max(0, Math.min(100, Math.round(100 * h)));
|
|
428
448
|
return M(t, {
|
|
429
449
|
sx: {
|
|
430
450
|
display: "flex",
|
|
@@ -452,7 +472,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
452
472
|
}
|
|
453
473
|
})
|
|
454
474
|
});
|
|
455
|
-
}, [
|
|
475
|
+
}, [h, p]), v = W(null), w = Se([v, r]), k = A(() => {
|
|
456
476
|
let e = S(t, {
|
|
457
477
|
sx: {
|
|
458
478
|
display: "flex",
|
|
@@ -460,7 +480,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
460
480
|
alignItems: "center",
|
|
461
481
|
rowGap: "8px"
|
|
462
482
|
},
|
|
463
|
-
children: [
|
|
483
|
+
children: [x, y]
|
|
464
484
|
});
|
|
465
485
|
return !0 === s && (e = M(f, {
|
|
466
486
|
elevation: 0,
|
|
@@ -481,7 +501,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
481
501
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
482
502
|
boxShadow: (e) => e.shadows[2],
|
|
483
503
|
"& .primary": {
|
|
484
|
-
background: (e) => `${
|
|
504
|
+
background: (e) => `${q(e.palette.info.contrastText, .9)} !important`,
|
|
485
505
|
boxShadow: (e) => `0 0 0 1px ${"dark" === e.palette.mode ? e.palette.text.secondary : e.palette.divider}`,
|
|
486
506
|
boxSizing: "content-box",
|
|
487
507
|
border: "solid transparent"
|
|
@@ -490,8 +510,8 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
490
510
|
},
|
|
491
511
|
children: e
|
|
492
512
|
})), M(t, {
|
|
493
|
-
...
|
|
494
|
-
ref:
|
|
513
|
+
...g,
|
|
514
|
+
ref: w,
|
|
495
515
|
className: "animatable",
|
|
496
516
|
sx: {
|
|
497
517
|
cursor: "wait",
|
|
@@ -501,7 +521,8 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
501
521
|
display: "flex",
|
|
502
522
|
flexDirection: "column",
|
|
503
523
|
willChange: "opacity",
|
|
504
|
-
|
|
524
|
+
"&:not(.animating) *": { animationPlayState: "paused" },
|
|
525
|
+
opacity: d ? .001 : 1,
|
|
505
526
|
transitionProperty: "opacity",
|
|
506
527
|
transitionDelay: l,
|
|
507
528
|
transitionDuration: "320ms",
|
|
@@ -514,6 +535,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
514
535
|
minHeight: 0,
|
|
515
536
|
zIndex: 99999,
|
|
516
537
|
"&.animating": { opacity: 1 },
|
|
538
|
+
"&.animating-idle": { transition: "none" },
|
|
517
539
|
"&.animating-exit": {
|
|
518
540
|
opacity: 0,
|
|
519
541
|
transition: "opacity 210ms"
|
|
@@ -536,8 +558,8 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
536
558
|
children: [M(t, {
|
|
537
559
|
className: "backdrop",
|
|
538
560
|
sx: {
|
|
539
|
-
opacity: (e) =>
|
|
540
|
-
background: (e) =>
|
|
561
|
+
opacity: (e) => d ? 1.5 * e.palette.action.disabledOpacity : void 0,
|
|
562
|
+
background: (e) => d ? void 0 : e.palette.background.paper,
|
|
541
563
|
backdropFilter: "blur(4px)",
|
|
542
564
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
543
565
|
zIndex: -1,
|
|
@@ -552,53 +574,41 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
552
574
|
}, [
|
|
553
575
|
o,
|
|
554
576
|
s,
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
once: !0,
|
|
567
|
-
capture: !0,
|
|
568
|
-
passive: !0
|
|
569
|
-
}), w.current && y.current && (window.getComputedStyle(y.current, null).opacity, y.current.classList.add("animating")), setTimeout(() => {
|
|
570
|
-
!e && w.current && y.current && (y.current?.removeEventListener("transitionrun", t), t());
|
|
571
|
-
}, 100);
|
|
572
|
-
} else k.current = !0, w.current = !1, i?.();
|
|
573
|
-
return () => {};
|
|
574
|
-
}
|
|
575
|
-
}, [y.current]), N(() => () => {
|
|
576
|
-
k.current && (y.current?.classList.remove("animating"), k.current = !1, w.current = !1, a?.());
|
|
577
|
-
}, []), v;
|
|
577
|
+
x,
|
|
578
|
+
y,
|
|
579
|
+
w
|
|
580
|
+
]), C = W(!1);
|
|
581
|
+
return ve(() => {
|
|
582
|
+
if (!1 === c) return;
|
|
583
|
+
const e = v.current;
|
|
584
|
+
e && !C.current && (C.current = !0, e.classList.contains("animatable") && !e.classList.contains("animating") && (e.offsetHeight, e.classList.add("animating")), i?.());
|
|
585
|
+
}, [v.current, c]), O(() => () => {
|
|
586
|
+
C.current && (v.current?.classList.remove("animating"), C.current = !1, a?.());
|
|
587
|
+
}, []), k;
|
|
578
588
|
}));
|
|
579
|
-
|
|
580
|
-
var
|
|
589
|
+
Ze.displayName = "AnimatedLoadingPanel";
|
|
590
|
+
var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt = /^\s*at\s+(?:(async|new|await)\s+)?(.+?):(\d+):(\d+)\s*$/, rt = (e) => {
|
|
581
591
|
if (!e) return "";
|
|
582
592
|
try {
|
|
583
593
|
e = new URL(e).pathname;
|
|
584
594
|
} catch {}
|
|
585
595
|
return e = (e = e.replace(/^\/+/, "")).replace(/^@?fs[\\/]/, "");
|
|
586
|
-
},
|
|
587
|
-
const n =
|
|
596
|
+
}, ot = B(({ error: e, maxLines: r = Number.MAX_SAFE_INTEGER, hideLineNumbers: o = !1 }) => {
|
|
597
|
+
const n = Ce(), [i, a] = H(null);
|
|
588
598
|
if (!e?.stack) return null;
|
|
589
|
-
const l =
|
|
599
|
+
const l = U.collectErrorChain(e).reverse(), s = [];
|
|
590
600
|
l.forEach(({ error: e }, t) => {
|
|
591
601
|
const r = (e.stack || "").split("\n").filter(Boolean).map((e) => {
|
|
592
|
-
let t = e.match(
|
|
602
|
+
let t = e.match(et);
|
|
593
603
|
if (t) {
|
|
594
604
|
const [, e = "", r, o, n, i] = t;
|
|
595
605
|
return {
|
|
596
606
|
line: `at ${e ? e + " " : ""}${r}`,
|
|
597
|
-
location: `${
|
|
607
|
+
location: `${rt(o).split(/[\\/]/).pop()}:${n}:${i}`
|
|
598
608
|
};
|
|
599
609
|
}
|
|
600
|
-
if (t = e.match(
|
|
601
|
-
const [, e = "", r, o, n] = t, i =
|
|
610
|
+
if (t = e.match(tt), t) {
|
|
611
|
+
const [, e = "", r, o, n] = t, i = rt(r), a = `${i.split(/[\\/]/).pop()}:${o}:${n}`;
|
|
602
612
|
return {
|
|
603
613
|
line: `at ${e ? e + " " : ""}${a}`,
|
|
604
614
|
location: i !== a ? `${i}:${o}:${n}` : void 0
|
|
@@ -668,7 +678,7 @@ var Qe = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue
|
|
|
668
678
|
"&:hover": { opacity: 1 }
|
|
669
679
|
},
|
|
670
680
|
title: n("stackTrace.copy"),
|
|
671
|
-
children: M(
|
|
681
|
+
children: M(Z, {
|
|
672
682
|
iconKey: "ContentCopy",
|
|
673
683
|
style: { fontSize: "0.875rem" }
|
|
674
684
|
})
|
|
@@ -684,7 +694,7 @@ var Qe = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue
|
|
|
684
694
|
"&:hover": { opacity: 1 }
|
|
685
695
|
},
|
|
686
696
|
title: n("stackTrace.log"),
|
|
687
|
-
children: M(
|
|
697
|
+
children: M(Z, {
|
|
688
698
|
iconKey: "BugReport",
|
|
689
699
|
style: { fontSize: "0.875rem" }
|
|
690
700
|
})
|
|
@@ -783,19 +793,19 @@ var Qe = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue
|
|
|
783
793
|
})]
|
|
784
794
|
});
|
|
785
795
|
});
|
|
786
|
-
|
|
787
|
-
var
|
|
788
|
-
const { sx: o, icon: n = M(
|
|
796
|
+
ot.displayName = "StackTrace";
|
|
797
|
+
var nt = B($((e, r) => {
|
|
798
|
+
const { sx: o, icon: n = M(Z, {
|
|
789
799
|
iconKey: "Error",
|
|
790
800
|
style: { fontSize: 48 }
|
|
791
|
-
}), error: i, hideStackTrace: a = !1, stackTraceExpanded: l = !1, fullscreen: s = !1, ...c } = e, d =
|
|
801
|
+
}), error: i, hideStackTrace: a = !1, stackTraceExpanded: l = !1, fullscreen: s = !1, ...c } = e, d = Ce(), p = A(() => it(i, a, l, s, d), [
|
|
792
802
|
i,
|
|
793
803
|
a,
|
|
794
804
|
l,
|
|
795
805
|
s,
|
|
796
806
|
d
|
|
797
807
|
]);
|
|
798
|
-
return
|
|
808
|
+
return A(() => M(t, {
|
|
799
809
|
ref: r,
|
|
800
810
|
sx: {
|
|
801
811
|
boxSizing: "border-box",
|
|
@@ -869,7 +879,7 @@ var Ye = B(D((e, r) => {
|
|
|
869
879
|
display: "flex",
|
|
870
880
|
color: (e) => e.palette.error.main
|
|
871
881
|
},
|
|
872
|
-
children: "string" == typeof n ? M(
|
|
882
|
+
children: "string" == typeof n ? M(Z, {
|
|
873
883
|
iconKey: n,
|
|
874
884
|
style: { fontSize: 48 }
|
|
875
885
|
}) : n
|
|
@@ -884,54 +894,92 @@ var Ye = B(D((e, r) => {
|
|
|
884
894
|
p
|
|
885
895
|
]);
|
|
886
896
|
}));
|
|
887
|
-
|
|
888
|
-
var
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
897
|
+
nt.displayName = "StackTraceErrorPanel";
|
|
898
|
+
var it = (e, r = !1, o = !1, n = !1, i = (e) => e) => {
|
|
899
|
+
if (z(e)) return e;
|
|
900
|
+
if (e instanceof Error) return S(t, {
|
|
901
|
+
sx: {
|
|
902
|
+
display: "flex",
|
|
903
|
+
flexDirection: "column",
|
|
904
|
+
minWidth: n ? "70vw" : "300px",
|
|
905
|
+
maxWidth: n ? void 0 : "500px",
|
|
906
|
+
width: "100%"
|
|
907
|
+
},
|
|
908
|
+
children: [
|
|
909
|
+
M(b, {
|
|
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(b, {
|
|
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
|
+
!r && M(ot, {
|
|
932
|
+
error: e,
|
|
933
|
+
hideLineNumbers: !0
|
|
934
|
+
})
|
|
935
|
+
]
|
|
936
|
+
});
|
|
937
|
+
const a = "string" === e ? e : `Unknown Error: ${String(e)}`;
|
|
938
|
+
return M(b, {
|
|
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 = B((e) => {
|
|
949
|
+
const { error: o, ...n } = e, i = we(), a = Ce(), l = o instanceof Error ? o.message : String(o);
|
|
950
|
+
return M(nt, {
|
|
951
|
+
hideStackTrace: !0,
|
|
952
|
+
error: S(t, {
|
|
900
953
|
sx: {
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
954
|
+
display: "flex",
|
|
955
|
+
flexDirection: "column",
|
|
956
|
+
alignItems: "flex-start",
|
|
957
|
+
gap: 1
|
|
904
958
|
},
|
|
905
|
-
children:
|
|
959
|
+
children: [M(b, {
|
|
960
|
+
variant: "body2",
|
|
961
|
+
component: "div",
|
|
962
|
+
children: l
|
|
963
|
+
}), i ? M(r, {
|
|
964
|
+
variant: "outlined",
|
|
965
|
+
size: "small",
|
|
966
|
+
onClick: i,
|
|
967
|
+
children: a("lazyLoad.retry")
|
|
968
|
+
}) : null]
|
|
906
969
|
}),
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
error: e,
|
|
921
|
-
hideLineNumbers: !0
|
|
922
|
-
})
|
|
923
|
-
]
|
|
924
|
-
}) : M(b, {
|
|
925
|
-
variant: "caption",
|
|
926
|
-
component: "div",
|
|
927
|
-
sx: {
|
|
928
|
-
fontSize: "0.875rem",
|
|
929
|
-
lineHeight: 1.43,
|
|
930
|
-
letterSpacing: "0.01071em"
|
|
931
|
-
},
|
|
932
|
-
children: "string" === e ? e : `Unknown Error: ${String(e)}`
|
|
933
|
-
}), Je = B(D((e, r) => {
|
|
934
|
-
const { chips: n, sx: i, ...a } = e, l = E(() => {
|
|
970
|
+
...n
|
|
971
|
+
});
|
|
972
|
+
});
|
|
973
|
+
function lt(e) {
|
|
974
|
+
const t = pe(e, { renderError: (e) => M(at, { error: e }) });
|
|
975
|
+
return (e) => M(R, {
|
|
976
|
+
fallback: M(Ze, {}),
|
|
977
|
+
children: M(t, { ...e })
|
|
978
|
+
});
|
|
979
|
+
}
|
|
980
|
+
at.displayName = "LazyLoadErrorPanel";
|
|
981
|
+
var st = B($((e, r) => {
|
|
982
|
+
const { chips: n, sx: i, ...a } = e, l = A(() => {
|
|
935
983
|
if (!n) return null;
|
|
936
984
|
const e = Array.isArray(n) ? n : [n], t = [], r = e.length;
|
|
937
985
|
for (let n = 0; n < r; n++) {
|
|
@@ -942,7 +990,7 @@ var _e = (e, r = !1, o = !1, n = !1, i = (e) => e) => $(e) ? e : e instanceof Er
|
|
|
942
990
|
color: "primary",
|
|
943
991
|
size: "small",
|
|
944
992
|
sx: { scale: "0.8" }
|
|
945
|
-
}, "chip-" + n) :
|
|
993
|
+
}, "chip-" + n) : D(r, { key: "chip-" + n }), t.push(i);
|
|
946
994
|
}
|
|
947
995
|
return t;
|
|
948
996
|
}, [n]);
|
|
@@ -958,40 +1006,38 @@ var _e = (e, r = !1, o = !1, n = !1, i = (e) => e) => $(e) ? e : e instanceof Er
|
|
|
958
1006
|
...a,
|
|
959
1007
|
children: l
|
|
960
1008
|
});
|
|
961
|
-
})),
|
|
1009
|
+
})), ct = (e) => {
|
|
962
1010
|
if ("dark" === e.palette.mode) return `drop-shadow(0px 0px 1px ${"dark" === e.palette.mode ? e.palette.text.primary : e.palette.divider})`;
|
|
963
|
-
},
|
|
1011
|
+
}, dt = (e = 1) => (t) => {
|
|
964
1012
|
if ("dark" === t.palette.mode) return `drop-shadow(0px 0px ${e}px ${"dark" === t.palette.mode ? t.palette.text.primary : t.palette.divider})`;
|
|
965
|
-
},
|
|
1013
|
+
}, pt = (e) => M(Z, {
|
|
966
1014
|
...e,
|
|
967
1015
|
iconKey: "ArrowDownOutline"
|
|
968
|
-
}),
|
|
1016
|
+
}), ut = (e) => M(Z, {
|
|
969
1017
|
...e,
|
|
970
1018
|
iconKey: "ArrowRightOutline"
|
|
971
|
-
}),
|
|
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) {
|
|
972
1020
|
if (!e) return e;
|
|
973
|
-
e = e.replace(
|
|
1021
|
+
e = e.replace(mt, function(e, t, r, o) {
|
|
974
1022
|
return t + t + r + r + o + o;
|
|
975
1023
|
});
|
|
976
|
-
let r =
|
|
1024
|
+
let r = ht.exec(e);
|
|
977
1025
|
return r ? null === t ? `rgb(${parseInt(r[1], 16)}, ${parseInt(r[2], 16)}, ${parseInt(r[3], 16)})` : `rgb(${parseInt(r[1], 16)} ${parseInt(r[2], 16)} ${parseInt(r[3], 16)} / ${100 * t}%)` : e;
|
|
978
|
-
},
|
|
1026
|
+
}, gt = function(e, t = .2, r = "light") {
|
|
979
1027
|
if (!e) return e;
|
|
980
1028
|
let o = "dark" !== r;
|
|
981
|
-
t < 0 && (o = !o, t *= -1), e =
|
|
1029
|
+
t < 0 && (o = !o, t *= -1), e = ft(e);
|
|
982
1030
|
try {
|
|
983
|
-
return o ?
|
|
1031
|
+
return o ? j(e, Math.max(0, Math.min(1, 1 * t))) : Q(e, Math.max(0, Math.min(1, 1.5 * t)));
|
|
984
1032
|
} catch {
|
|
985
1033
|
return e;
|
|
986
1034
|
}
|
|
987
|
-
},
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
return `var(--sxl-surface-raised, linear-gradient(${r}, ${r}))`;
|
|
994
|
-
}, ct = st(2), dt = st(8), pt = (e, t) => {
|
|
1035
|
+
}, xt = (e) => {
|
|
1036
|
+
e.stopPropagation();
|
|
1037
|
+
}, bt = {
|
|
1038
|
+
onMouseDown: xt,
|
|
1039
|
+
onTouchStart: xt
|
|
1040
|
+
}, yt = (e, t) => {
|
|
995
1041
|
let r = v({ palette: { mode: e ? "dark" : "light" } });
|
|
996
1042
|
const o = {
|
|
997
1043
|
"--icon-shadow": e ? r.palette.text.primary : r.palette.divider,
|
|
@@ -1003,16 +1049,19 @@ var _e = (e, r = !1, o = !1, n = !1, i = (e) => e) => $(e) ? e : e instanceof Er
|
|
|
1003
1049
|
palette: {
|
|
1004
1050
|
mode: e ? "dark" : "light",
|
|
1005
1051
|
text: {
|
|
1006
|
-
secondary: e ? r.palette.text.secondary :
|
|
1007
|
-
icon: e ?
|
|
1052
|
+
secondary: e ? r.palette.text.secondary : q(r.palette.text.secondary, .75),
|
|
1053
|
+
icon: e ? q(r.palette.text.secondary, .7) : q(r.palette.text.primary, .75)
|
|
1008
1054
|
}
|
|
1009
1055
|
},
|
|
1010
1056
|
components: {
|
|
1011
1057
|
MuiDialogTitle: { styleOverrides: { root: { fontWeight: "normal" } } },
|
|
1012
1058
|
MuiSelect: {
|
|
1013
1059
|
defaultProps: {
|
|
1014
|
-
IconComponent:
|
|
1015
|
-
MenuProps: {
|
|
1060
|
+
IconComponent: pt,
|
|
1061
|
+
MenuProps: {
|
|
1062
|
+
container: () => document.fullscreenElement,
|
|
1063
|
+
...bt
|
|
1064
|
+
}
|
|
1016
1065
|
},
|
|
1017
1066
|
styleOverrides: { icon: { top: "unset" } }
|
|
1018
1067
|
},
|
|
@@ -1038,7 +1087,10 @@ var _e = (e, r = !1, o = !1, n = !1, i = (e) => e) => $(e) ? e : e instanceof Er
|
|
|
1038
1087
|
"&.Mui-selected": {}
|
|
1039
1088
|
} } },
|
|
1040
1089
|
MuiMenu: {
|
|
1041
|
-
defaultProps: {
|
|
1090
|
+
defaultProps: {
|
|
1091
|
+
container: () => document.fullscreenElement,
|
|
1092
|
+
...bt
|
|
1093
|
+
},
|
|
1042
1094
|
styleOverrides: { root: {
|
|
1043
1095
|
paddingTop: "2px",
|
|
1044
1096
|
paddingBottom: "2px",
|
|
@@ -1069,7 +1121,7 @@ var _e = (e, r = !1, o = !1, n = !1, i = (e) => e) => $(e) ? e : e instanceof Er
|
|
|
1069
1121
|
MuiInputBase: { styleOverrides: { root: {} } },
|
|
1070
1122
|
MuiPaper: { styleOverrides: { root: {
|
|
1071
1123
|
...o,
|
|
1072
|
-
backgroundImage: "
|
|
1124
|
+
backgroundImage: "none"
|
|
1073
1125
|
} } },
|
|
1074
1126
|
MuiPopover: { styleOverrides: { paper: {
|
|
1075
1127
|
backgroundColor: `var(--sxl-color-elevated, var(--sxl-color-base-100, ${r.palette.background.paper}))`,
|
|
@@ -1096,17 +1148,17 @@ var _e = (e, r = !1, o = !1, n = !1, i = (e) => e) => $(e) ? e : e instanceof Er
|
|
|
1096
1148
|
} }
|
|
1097
1149
|
}
|
|
1098
1150
|
}, i = n;
|
|
1099
|
-
return t && (i =
|
|
1151
|
+
return t && (i = Pe(n, t)), v(i);
|
|
1100
1152
|
};
|
|
1101
|
-
function
|
|
1102
|
-
return t =
|
|
1103
|
-
track:
|
|
1104
|
-
thumb:
|
|
1153
|
+
function vt(e, t) {
|
|
1154
|
+
return t = Pe({
|
|
1155
|
+
track: gt(e.palette.background.paper, .05, e?.palette.mode),
|
|
1156
|
+
thumb: gt(e.palette.background.paper, .3, e?.palette.mode),
|
|
1105
1157
|
active: e.palette.primary.main,
|
|
1106
1158
|
corner: e.palette.background.paper,
|
|
1107
1159
|
outline: !1
|
|
1108
|
-
}, t || {}),
|
|
1109
|
-
track:
|
|
1160
|
+
}, t || {}), de({
|
|
1161
|
+
track: q(t.track, .2),
|
|
1110
1162
|
thumb: t.thumb,
|
|
1111
1163
|
button: t.button,
|
|
1112
1164
|
active: t.active,
|
|
@@ -1114,8 +1166,8 @@ function ut(e, t) {
|
|
|
1114
1166
|
border: t.track
|
|
1115
1167
|
});
|
|
1116
1168
|
}
|
|
1117
|
-
function
|
|
1118
|
-
const r =
|
|
1169
|
+
function wt(e, t) {
|
|
1170
|
+
const r = vt(e, t), o = {
|
|
1119
1171
|
...r,
|
|
1120
1172
|
"& .scrollbar, & .vsb-track, & .vsb-thumb": { ...r },
|
|
1121
1173
|
"&::-webkit-scrollbar, & *::-webkit-scrollbar": {
|
|
@@ -1156,22 +1208,22 @@ function mt(e, t) {
|
|
|
1156
1208
|
},
|
|
1157
1209
|
"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner": { backgroundColor: "var(--scrollbar-corner-color)" }
|
|
1158
1210
|
};
|
|
1159
|
-
return
|
|
1211
|
+
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;
|
|
1160
1212
|
}
|
|
1161
|
-
var
|
|
1213
|
+
var kt = {
|
|
1162
1214
|
Popup: "popup",
|
|
1163
1215
|
Anchor: "anchor"
|
|
1164
|
-
},
|
|
1216
|
+
}, Ct = {
|
|
1165
1217
|
ByPopup: "popupDone",
|
|
1166
1218
|
Cancel: "popupCancel",
|
|
1167
1219
|
ClickAway: "clickAway"
|
|
1168
|
-
},
|
|
1220
|
+
}, Mt = {
|
|
1169
1221
|
Toolbar: "toolbar",
|
|
1170
1222
|
Menuitem: "menuitem"
|
|
1171
|
-
},
|
|
1223
|
+
}, St = (e) => {
|
|
1172
1224
|
const { closeFloat: r, closeFloatAll: o, floatReference: n, popupContainer: i, children: a, className: l, sx: s, ...c } = e;
|
|
1173
1225
|
return M(t, {
|
|
1174
|
-
className:
|
|
1226
|
+
className: V("menu", l),
|
|
1175
1227
|
sx: {
|
|
1176
1228
|
display: "flex",
|
|
1177
1229
|
flexDirection: "column",
|
|
@@ -1182,9 +1234,9 @@ var ht = {
|
|
|
1182
1234
|
...c,
|
|
1183
1235
|
children: a
|
|
1184
1236
|
});
|
|
1185
|
-
},
|
|
1237
|
+
}, Pt = (e, t, r) => {
|
|
1186
1238
|
let o = "";
|
|
1187
|
-
return r && (o = (o ? o + " " : "") + "rotate(180deg)"), M(
|
|
1239
|
+
return r && (o = (o ? o + " " : "") + "rotate(180deg)"), M(pt, {
|
|
1188
1240
|
style: {
|
|
1189
1241
|
marginLeft: e ? void 0 : t ? "-0.25rem" : "-3px",
|
|
1190
1242
|
marginRight: e ? void 0 : t ? "-0.25rem" : "-6px",
|
|
@@ -1192,12 +1244,12 @@ var ht = {
|
|
|
1192
1244
|
},
|
|
1193
1245
|
color: "inherit"
|
|
1194
1246
|
});
|
|
1195
|
-
},
|
|
1196
|
-
const { open: r, anchorEl: o, anchorPosition: n, label: i, floatReference: a, createPopupPanel: l =
|
|
1247
|
+
}, Tt = B($((e, t) => {
|
|
1248
|
+
const { open: r, anchorEl: o, anchorPosition: n, label: i, floatReference: a, createPopupPanel: l = St, propsPopper: s, onMount: c, onClosing: d, onClose: p, onOpening: u, onOpen: m, children: h, sx: g, ...x } = e, b = ue(d ?? (() => {}), [d]), y = ue(p ?? (() => {}), [p]), v = ue(u ?? (() => {}), [u]), w = ue(m ?? (() => {}), [m]), [k, C] = H(), S = W(null), P = ue((e, t) => {
|
|
1197
1249
|
C(e), c?.(S.current, t);
|
|
1198
|
-
}, [c]),
|
|
1250
|
+
}, [c]), T = A(() => {
|
|
1199
1251
|
const e = {
|
|
1200
|
-
popupContainer:
|
|
1252
|
+
popupContainer: k,
|
|
1201
1253
|
floatReference: a,
|
|
1202
1254
|
children: h,
|
|
1203
1255
|
...x
|
|
@@ -1212,7 +1264,7 @@ var ht = {
|
|
|
1212
1264
|
outline: "none",
|
|
1213
1265
|
backgroundColor: "var(--sxl-color-elevated, var(--sxl-color-base-100, #fff))",
|
|
1214
1266
|
border: "1px solid var(--sxl-color-elevated-border, transparent)",
|
|
1215
|
-
"&.MuiPaper-root": (e) =>
|
|
1267
|
+
"&.MuiPaper-root": (e) => wt(e)
|
|
1216
1268
|
},
|
|
1217
1269
|
tabIndex: 0,
|
|
1218
1270
|
children: t
|
|
@@ -1220,38 +1272,38 @@ var ht = {
|
|
|
1220
1272
|
}, [
|
|
1221
1273
|
l,
|
|
1222
1274
|
h,
|
|
1223
|
-
|
|
1275
|
+
k,
|
|
1224
1276
|
a
|
|
1225
1277
|
]);
|
|
1226
|
-
return M(
|
|
1278
|
+
return M(ee, {
|
|
1227
1279
|
ref: t,
|
|
1228
1280
|
anchorEl: o,
|
|
1229
1281
|
anchorPosition: n,
|
|
1230
1282
|
label: i,
|
|
1231
1283
|
open: r,
|
|
1232
|
-
onMount:
|
|
1284
|
+
onMount: P,
|
|
1233
1285
|
onOpening: v,
|
|
1234
|
-
onOpen:
|
|
1286
|
+
onOpen: w,
|
|
1235
1287
|
onClosing: b,
|
|
1236
1288
|
onClose: y,
|
|
1237
1289
|
...s,
|
|
1238
|
-
children:
|
|
1290
|
+
children: T
|
|
1239
1291
|
});
|
|
1240
1292
|
}));
|
|
1241
|
-
|
|
1242
|
-
var
|
|
1243
|
-
renderFloatPanel:
|
|
1244
|
-
createPopupPanel:
|
|
1293
|
+
Tt.displayName = "ExhibitFloatPanel";
|
|
1294
|
+
var Rt = (e) => M(Tt, { ...e }), Dt = (e) => M(te, {
|
|
1295
|
+
renderFloatPanel: Rt,
|
|
1296
|
+
createPopupPanel: St,
|
|
1245
1297
|
...e
|
|
1246
|
-
}),
|
|
1298
|
+
}), It = B($((e, r) => {
|
|
1247
1299
|
const { nestedChildren: o, variant: n, disabled: i, createPopupPanel: a, ...l } = e, s = {
|
|
1248
1300
|
disabled: i,
|
|
1249
|
-
createPopupPanel:
|
|
1301
|
+
createPopupPanel: ue((e) => {
|
|
1250
1302
|
if (!o || 0 === o.length) return M(C, {});
|
|
1251
1303
|
const { popupContainer: n, floatReference: i, ref: a, ...l } = e, s = [];
|
|
1252
1304
|
for (let e = 0; e < o.length; e++) {
|
|
1253
1305
|
const t = o[e];
|
|
1254
|
-
t && s.push(M(
|
|
1306
|
+
t && s.push(M(It, {
|
|
1255
1307
|
...l,
|
|
1256
1308
|
...t
|
|
1257
1309
|
}, e));
|
|
@@ -1267,23 +1319,23 @@ var vt = (e) => M(yt, { ...e }), kt = (e) => M(J, {
|
|
|
1267
1319
|
children: [
|
|
1268
1320
|
"Children here",
|
|
1269
1321
|
s,
|
|
1270
|
-
M(
|
|
1322
|
+
M(Vt, { children: "Close other children" })
|
|
1271
1323
|
]
|
|
1272
1324
|
});
|
|
1273
1325
|
}, [o]),
|
|
1274
1326
|
...l
|
|
1275
1327
|
};
|
|
1276
|
-
return M(n ===
|
|
1277
|
-
})),
|
|
1278
|
-
const { children: r, sx: o, parentFloat: n, createPopupPanel: i, propsPopper: a =
|
|
1279
|
-
|
|
1280
|
-
const c = r, d =
|
|
1328
|
+
return M(n === Mt.Toolbar ? jt : Ut, { ...s });
|
|
1329
|
+
})), $t = { placement: "right-start" }, zt = B($((e, t) => {
|
|
1330
|
+
const { children: r, sx: o, parentFloat: n, createPopupPanel: i, propsPopper: a = $t, label: l, ...s } = e;
|
|
1331
|
+
if (!z(r)) throw new Error("Must supply a child component to enable a context menu.");
|
|
1332
|
+
const c = r, d = A(() => ({
|
|
1281
1333
|
...c?.props,
|
|
1282
1334
|
...s,
|
|
1283
1335
|
onContextMenu: (e) => {
|
|
1284
1336
|
c?.props?.onContextMenu?.(e), e.isDefaultPrevented() || (s?.onContextMenu?.(e), e.isDefaultPrevented() || (m(e), e.preventDefault()));
|
|
1285
1337
|
}
|
|
1286
|
-
}), [s, c?.props]), p =
|
|
1338
|
+
}), [s, c?.props]), p = ue(i ?? (() => {}), [i]), [u, m] = H(null), { reference: h, component: f } = ge({
|
|
1287
1339
|
label: l ?? "contextMenu",
|
|
1288
1340
|
propsPopper: a,
|
|
1289
1341
|
parentFloat: n,
|
|
@@ -1291,11 +1343,11 @@ var vt = (e) => M(yt, { ...e }), kt = (e) => M(J, {
|
|
|
1291
1343
|
onClose: () => m(null),
|
|
1292
1344
|
createPopupPanel: p
|
|
1293
1345
|
});
|
|
1294
|
-
return
|
|
1346
|
+
return O(() => {
|
|
1295
1347
|
u ? h.open(0) : h.close(0);
|
|
1296
|
-
}, [u]), S(C, { children: [
|
|
1297
|
-
})),
|
|
1298
|
-
const { slotProps: r, ...o } = e, { getPortalContainer: n, isFullscreen: i } =
|
|
1348
|
+
}, [u]), S(C, { children: [D(r, d), f] });
|
|
1349
|
+
})), Bt = $((e, t) => {
|
|
1350
|
+
const { slotProps: r, ...o } = e, { getPortalContainer: n, isFullscreen: i } = be();
|
|
1299
1351
|
return M(x, {
|
|
1300
1352
|
ref: t,
|
|
1301
1353
|
slotProps: {
|
|
@@ -1308,8 +1360,8 @@ var vt = (e) => M(yt, { ...e }), kt = (e) => M(J, {
|
|
|
1308
1360
|
...o
|
|
1309
1361
|
});
|
|
1310
1362
|
});
|
|
1311
|
-
|
|
1312
|
-
var
|
|
1363
|
+
Bt.displayName = "SimpleTooltip";
|
|
1364
|
+
var Lt = B((e) => {
|
|
1313
1365
|
const { modifier: r, sx: o, ...n } = e;
|
|
1314
1366
|
return M(t, {
|
|
1315
1367
|
sx: {
|
|
@@ -1321,11 +1373,11 @@ var Tt = B((e) => {
|
|
|
1321
1373
|
borderLeftWidth: "1px",
|
|
1322
1374
|
borderRightWidth: "1px",
|
|
1323
1375
|
borderBottomWidth: "2px",
|
|
1324
|
-
borderTopColor: (e) =>
|
|
1325
|
-
borderLeftColor: (e) =>
|
|
1326
|
-
borderRightColor: (e) =>
|
|
1327
|
-
borderBottomColor: (e) =>
|
|
1328
|
-
backgroundColor: (e) =>
|
|
1376
|
+
borderTopColor: (e) => q(e.palette.background.paper, e.palette.action.disabledOpacity),
|
|
1377
|
+
borderLeftColor: (e) => q(e.palette.background.paper, e.palette.action.disabledOpacity),
|
|
1378
|
+
borderRightColor: (e) => q(e.palette.background.paper, e.palette.action.disabledOpacity),
|
|
1379
|
+
borderBottomColor: (e) => q(e.palette.background.paper, 1 - e.palette.action.disabledOpacity),
|
|
1380
|
+
backgroundColor: (e) => q(e.palette.action.hover, e.palette.action.disabledOpacity),
|
|
1329
1381
|
paddingLeft: "4px",
|
|
1330
1382
|
paddingRight: "4px",
|
|
1331
1383
|
minHeight: "1.6em",
|
|
@@ -1348,10 +1400,10 @@ var Tt = B((e) => {
|
|
|
1348
1400
|
children: r
|
|
1349
1401
|
})
|
|
1350
1402
|
});
|
|
1351
|
-
}),
|
|
1403
|
+
}), Nt = (e, r, o = !1, n = null) => {
|
|
1352
1404
|
if (Array.isArray(e)) {
|
|
1353
1405
|
let i = [], a = e;
|
|
1354
|
-
for (let e = 0; e < a.length; e++) i.push(
|
|
1406
|
+
for (let e = 0; e < a.length; e++) i.push(Nt(a[e], r, o, n ?? "" + e));
|
|
1355
1407
|
return M(t, {
|
|
1356
1408
|
sx: {
|
|
1357
1409
|
display: "flex",
|
|
@@ -1364,34 +1416,36 @@ var Tt = B((e) => {
|
|
|
1364
1416
|
if (!e?.key) return null;
|
|
1365
1417
|
const i = {};
|
|
1366
1418
|
for (let t = 0; e.modifiers && t < e.modifiers.length; t++) i[e.modifiers[t]] = !0;
|
|
1367
|
-
const a = [], l =
|
|
1368
|
-
return i?.[
|
|
1419
|
+
const a = [], l = G.getPlatform() === G.OSType.MacOS || G.getPlatform() === G.OSType.IOS ? r("shortcut.modifier.cmd") : r("shortcut.modifier.ctrl");
|
|
1420
|
+
return i?.[ne.Ctrl] && (a.push(M(Lt, { modifier: o ? "^" : M("div", {
|
|
1369
1421
|
style: { paddingRight: "1px" },
|
|
1370
1422
|
children: l
|
|
1371
|
-
}) }, "ctrl")), a.push("+")), i?.[
|
|
1423
|
+
}) }, "ctrl")), a.push("+")), i?.[ne.Alt] && (a.push(M(Lt, { modifier: o ? "⌥" : r("shortcut.modifier.alt") }, "alt")), a.push("+")), i?.[ne.Shift] && (a.push(M(Lt, { modifier: o ? "⇧" : M("div", {
|
|
1372
1424
|
style: { paddingRight: "1px" },
|
|
1373
1425
|
children: r("shortcut.modifier.shift")
|
|
1374
|
-
}) }, "shift")), a.push("+")), i?.[
|
|
1426
|
+
}) }, "shift")), a.push("+")), i?.[ne.Meta] && (a.push(M(Lt, { modifier: o ? M("div", {
|
|
1375
1427
|
style: { paddingTop: "1px" },
|
|
1376
1428
|
children: "⌘"
|
|
1377
|
-
}) : r("shortcut.modifier.meta") }, "meta")), a.push("+")), a.push(M(
|
|
1429
|
+
}) : r("shortcut.modifier.meta") }, "meta")), a.push("+")), a.push(M(Lt, { modifier: ae.toPrettyKeyCode(e.key) }, "character")), M(t, {
|
|
1378
1430
|
sx: {
|
|
1379
1431
|
display: "flex",
|
|
1380
|
-
alignItems: "center"
|
|
1432
|
+
alignItems: "center",
|
|
1433
|
+
flexShrink: 0,
|
|
1434
|
+
whiteSpace: "nowrap"
|
|
1381
1435
|
},
|
|
1382
1436
|
children: a
|
|
1383
1437
|
}, n);
|
|
1384
|
-
},
|
|
1385
|
-
const { disabled: o = !1, label: n, shortcut: i, chips: a, description: l, maxWidth: s = 280, useModifierSymbols: c = !1, children: d, simple: p, componentDisabled: u = !1, sx: m, ...h } = e, f =
|
|
1438
|
+
}, Ot = B($((e, r) => {
|
|
1439
|
+
const { disabled: o = !1, label: n, shortcut: i, chips: a, description: l, maxWidth: s = 280, useModifierSymbols: c = !1, children: d, simple: p, componentDisabled: u = !1, sx: m, ...h } = e, f = Ce();
|
|
1386
1440
|
let g = null;
|
|
1387
|
-
i && (g =
|
|
1388
|
-
const [x, y] =
|
|
1389
|
-
|
|
1441
|
+
i && (g = Nt(i, f, c));
|
|
1442
|
+
const [x, y] = H(null);
|
|
1443
|
+
O(() => {
|
|
1390
1444
|
Promise.resolve(n).then((e) => {
|
|
1391
1445
|
y(e);
|
|
1392
1446
|
});
|
|
1393
1447
|
}, [n]);
|
|
1394
|
-
return M(
|
|
1448
|
+
return M(Bt, {
|
|
1395
1449
|
slotProps: { popper: {
|
|
1396
1450
|
sx: {
|
|
1397
1451
|
"& .MuiTooltip-tooltip": { marginTop: "0px !important" },
|
|
@@ -1420,7 +1474,7 @@ var Tt = B((e) => {
|
|
|
1420
1474
|
sx: { flex: "1 1 100%" },
|
|
1421
1475
|
children: x
|
|
1422
1476
|
}),
|
|
1423
|
-
a ? M(
|
|
1477
|
+
a ? M(st, { chips: a }) : null,
|
|
1424
1478
|
g ? M(t, { sx: { marginLeft: "8px" } }, "leadingSpace") : M(C, {}),
|
|
1425
1479
|
g
|
|
1426
1480
|
]
|
|
@@ -1447,8 +1501,8 @@ var Tt = B((e) => {
|
|
|
1447
1501
|
children: d
|
|
1448
1502
|
})
|
|
1449
1503
|
});
|
|
1450
|
-
})),
|
|
1451
|
-
const { dense: o = !0, outlined: n = !1, disableHover: i = !1, selected: a, icon: l, propsTooltip: s, children: c, primary: p, sx: u, disabled: m, className: h, onFocus: f, onBlur: g, ...x } = e, [b, y] =
|
|
1504
|
+
})), Et = M(Z, {}), Ft = M(Z, { iconKey: "Check" }), At = B($((e, r) => {
|
|
1505
|
+
const { dense: o = !0, outlined: n = !1, disableHover: i = !1, selected: a, icon: l, propsTooltip: s, children: c, primary: p, sx: u, disabled: m, className: h, onFocus: f, onBlur: g, ...x } = e, [b, y] = H(!1), v = {
|
|
1452
1506
|
marginRight: "0px",
|
|
1453
1507
|
padding: o ? "2px" : "7px",
|
|
1454
1508
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
@@ -1456,7 +1510,7 @@ var Tt = B((e) => {
|
|
|
1456
1510
|
border: (e) => `solid ${n ? e.palette.divider : "transparent"} 1px`,
|
|
1457
1511
|
"& .MuiTouchRipple-child": { borderRadius: (e) => `${e.shape.borderRadius}px !important` },
|
|
1458
1512
|
"&.Mui-selected": {
|
|
1459
|
-
backgroundColor: (e) =>
|
|
1513
|
+
backgroundColor: (e) => q(e.palette.text.primary, e.palette.action.selectedOpacity),
|
|
1460
1514
|
border: (e) => `solid ${n ? e.palette.text?.primary : e.palette.divider} 1px`
|
|
1461
1515
|
},
|
|
1462
1516
|
"&.Mui-disabled": { border: (e) => `solid ${n ? e.palette.divider : "transparent"} 1px` },
|
|
@@ -1469,30 +1523,30 @@ var Tt = B((e) => {
|
|
|
1469
1523
|
border: "1px solid transparent"
|
|
1470
1524
|
},
|
|
1471
1525
|
...u
|
|
1472
|
-
},
|
|
1473
|
-
"&:hover:not(.Mui-disabled, [disabled])": {
|
|
1526
|
+
}, w = {
|
|
1527
|
+
"@media (hover: hover)": { "&:hover:not(.Mui-disabled, [disabled])": {
|
|
1474
1528
|
color: (e) => e.palette.text.primary,
|
|
1475
1529
|
border: (e) => `solid ${n ? e.palette.text?.primary : e.palette.divider} 1px`,
|
|
1476
|
-
"&.Mui-selected": { backgroundColor: (e) =>
|
|
1530
|
+
"&.Mui-selected": { backgroundColor: (e) => q(e.palette.text.primary, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity) },
|
|
1477
1531
|
"> .outline-hover": { outline: (e) => `solid ${n ? e.palette.text?.primary : e.palette.divider} 1px` },
|
|
1478
|
-
backgroundColor:
|
|
1479
|
-
},
|
|
1532
|
+
backgroundColor: (e) => q(e.palette.action.active, e.palette.action.hoverOpacity)
|
|
1533
|
+
} },
|
|
1480
1534
|
"&.Mui-focusVisible": {
|
|
1481
1535
|
outline: (e) => `solid ${e.palette.primary.main} 1px`,
|
|
1482
1536
|
border: (e) => `1px solid ${e.palette?.primary?.main}`,
|
|
1483
1537
|
zIndex: 1
|
|
1484
1538
|
}
|
|
1485
1539
|
};
|
|
1486
|
-
let
|
|
1487
|
-
i || (
|
|
1488
|
-
const C =
|
|
1540
|
+
let k = v;
|
|
1541
|
+
i || (k = G.mergeContentful(v, w));
|
|
1542
|
+
const C = A(() => {
|
|
1489
1543
|
let e = "function" == typeof l ? l() : l;
|
|
1490
|
-
return null === e ? e : e || (void 0 === a ?
|
|
1544
|
+
return null === e ? e : e || (void 0 === a ? Et : Ft);
|
|
1491
1545
|
}, [l, a]);
|
|
1492
|
-
let
|
|
1546
|
+
let P = S(d, {
|
|
1493
1547
|
component: "div",
|
|
1494
1548
|
ref: r,
|
|
1495
|
-
className:
|
|
1549
|
+
className: V({
|
|
1496
1550
|
"Mui-focusVisible": b,
|
|
1497
1551
|
"Mui-selected": a,
|
|
1498
1552
|
"Mui-disabled": m
|
|
@@ -1505,7 +1559,7 @@ var Tt = B((e) => {
|
|
|
1505
1559
|
},
|
|
1506
1560
|
size: "small",
|
|
1507
1561
|
TouchRippleProps: { center: !1 },
|
|
1508
|
-
sx:
|
|
1562
|
+
sx: k,
|
|
1509
1563
|
edge: "end",
|
|
1510
1564
|
...x,
|
|
1511
1565
|
disabled: m || !1,
|
|
@@ -1513,30 +1567,35 @@ var Tt = B((e) => {
|
|
|
1513
1567
|
});
|
|
1514
1568
|
if (s) if (s.simple && s.label && !s.disabled) {
|
|
1515
1569
|
const { label: e, description: r, maxWidth: o, shortcut: n, useModifierSymbols: i, componentDisabled: a, simple: l, chips: c, ref: d, ...p } = s;
|
|
1516
|
-
|
|
1570
|
+
P = M(Bt, {
|
|
1517
1571
|
disableInteractive: !0,
|
|
1518
1572
|
title: e ?? "",
|
|
1519
1573
|
...p,
|
|
1520
1574
|
children: M(t, {
|
|
1521
1575
|
sx: { display: "flex" },
|
|
1522
|
-
children:
|
|
1576
|
+
children: P
|
|
1523
1577
|
})
|
|
1524
1578
|
});
|
|
1525
|
-
} else
|
|
1526
|
-
children:
|
|
1579
|
+
} else P = M(Ot, {
|
|
1580
|
+
children: P,
|
|
1527
1581
|
...s
|
|
1528
1582
|
});
|
|
1529
|
-
return
|
|
1530
|
-
})),
|
|
1531
|
-
|
|
1583
|
+
return P;
|
|
1584
|
+
})), Kt = M(Z, {}), Wt = {
|
|
1585
|
+
marginLeft: "4px",
|
|
1586
|
+
marginRight: "4px",
|
|
1587
|
+
paddingLeft: "6px",
|
|
1588
|
+
paddingRight: "18px"
|
|
1589
|
+
}, Ht = (e) => e.icon, Vt = B($((e, t) => {
|
|
1590
|
+
const { icon: r = Kt, renderIcon: o = Ht, className: n, onFocus: i, selected: a, onBlur: l, onMouseOver: s, onMouseOut: c, onMouseEnter: d, disabled: p, children: u, sx: f, propsTooltip: g, chips: x, primary: b, ...y } = e, v = fe(), [w, k] = H(!1), [C, P] = H(!1), T = A(() => {
|
|
1532
1591
|
const e = o?.({
|
|
1533
1592
|
icon: r,
|
|
1534
1593
|
disabled: p,
|
|
1535
1594
|
selected: a
|
|
1536
1595
|
});
|
|
1537
1596
|
return e ? M(h, {
|
|
1538
|
-
className:
|
|
1539
|
-
"Mui-focusVisible":
|
|
1597
|
+
className: V({
|
|
1598
|
+
"Mui-focusVisible": w,
|
|
1540
1599
|
"Mui-hovered": C
|
|
1541
1600
|
}),
|
|
1542
1601
|
sx: {
|
|
@@ -1549,7 +1608,7 @@ var Tt = B((e) => {
|
|
|
1549
1608
|
o,
|
|
1550
1609
|
p,
|
|
1551
1610
|
r,
|
|
1552
|
-
|
|
1611
|
+
w,
|
|
1553
1612
|
C,
|
|
1554
1613
|
b,
|
|
1555
1614
|
a
|
|
@@ -1559,36 +1618,34 @@ var Tt = B((e) => {
|
|
|
1559
1618
|
role: "menuitem",
|
|
1560
1619
|
disabled: p,
|
|
1561
1620
|
onMouseOver: (e) => {
|
|
1562
|
-
s?.(e), e.isDefaultPrevented() ||
|
|
1621
|
+
s?.(e), e.isDefaultPrevented() || P(!0);
|
|
1563
1622
|
},
|
|
1564
1623
|
onMouseOut: (e) => {
|
|
1565
|
-
c?.(e), e.isDefaultPrevented() ||
|
|
1624
|
+
c?.(e), e.isDefaultPrevented() || P(!1);
|
|
1566
1625
|
},
|
|
1567
1626
|
onMouseEnter: (e) => {
|
|
1568
1627
|
d?.(e), e.isDefaultPrevented() || v?.closeChild();
|
|
1569
1628
|
},
|
|
1570
1629
|
TouchRippleProps: { center: !1 },
|
|
1571
|
-
className:
|
|
1572
|
-
"Mui-focusVisible":
|
|
1630
|
+
className: V({
|
|
1631
|
+
"Mui-focusVisible": w,
|
|
1573
1632
|
"Mui-hovered": C
|
|
1574
1633
|
}, n),
|
|
1575
1634
|
onFocus: (e) => {
|
|
1576
|
-
i?.(e),
|
|
1635
|
+
i?.(e), k(!0);
|
|
1577
1636
|
},
|
|
1578
1637
|
onBlur: (e) => {
|
|
1579
|
-
l?.(e),
|
|
1638
|
+
l?.(e), k(!1);
|
|
1580
1639
|
},
|
|
1581
1640
|
sx: {
|
|
1582
1641
|
flex: "1 1 100%",
|
|
1642
|
+
whiteSpace: "nowrap",
|
|
1583
1643
|
fontFamily: (e) => e.typography.fontFamily,
|
|
1584
1644
|
fontWeight: 400,
|
|
1585
1645
|
lineHeight: 1.5,
|
|
1586
1646
|
paddingTop: "2px",
|
|
1587
1647
|
paddingBottom: "2px",
|
|
1588
|
-
|
|
1589
|
-
marginRight: "4px",
|
|
1590
|
-
paddingLeft: "6px",
|
|
1591
|
-
paddingRight: "18px",
|
|
1648
|
+
...Wt,
|
|
1592
1649
|
borderRadius: "4px",
|
|
1593
1650
|
fontSize: "0.875em",
|
|
1594
1651
|
"@media (pointer: coarse)": { fontSize: "1em" },
|
|
@@ -1600,17 +1657,17 @@ var Tt = B((e) => {
|
|
|
1600
1657
|
},
|
|
1601
1658
|
...y,
|
|
1602
1659
|
children: [
|
|
1603
|
-
|
|
1660
|
+
T,
|
|
1604
1661
|
u,
|
|
1605
|
-
x ? M(
|
|
1662
|
+
x ? M(st, { chips: x }) : null
|
|
1606
1663
|
]
|
|
1607
1664
|
});
|
|
1608
|
-
return g && (R = M(
|
|
1665
|
+
return g && (R = M(Ot, {
|
|
1609
1666
|
children: R,
|
|
1610
1667
|
placement: "right-start",
|
|
1611
1668
|
...g
|
|
1612
1669
|
})), R;
|
|
1613
|
-
})),
|
|
1670
|
+
})), qt = B($((e, t) => {
|
|
1614
1671
|
const { children: r, sx: o, primary: n = !1, variant: i = "subtitle1", ...a } = e;
|
|
1615
1672
|
return M(C, { children: M(b, {
|
|
1616
1673
|
ref: t,
|
|
@@ -1628,8 +1685,8 @@ var Tt = B((e) => {
|
|
|
1628
1685
|
...a,
|
|
1629
1686
|
children: r
|
|
1630
1687
|
}) });
|
|
1631
|
-
})),
|
|
1632
|
-
const { dense: o = !0, outlined: n = !1, label: i, showLabel: a = !1, selected: l = !1, onQuickClick: s, parentFloat: c, createPopupPanel: p, propsPopup: u, onPopupOpen: m, onPopupClose: h, propsQuickButton: f, renderQuickButton: g, tooltip: x = "", createTooltip: b, icon: y, disabled: v, propsButton:
|
|
1688
|
+
})), jt = B($((e, r) => {
|
|
1689
|
+
const { dense: o = !0, outlined: n = !1, label: i, showLabel: a = !1, selected: l = !1, onQuickClick: s, parentFloat: c, createPopupPanel: p, propsPopup: u, onPopupOpen: m, onPopupClose: h, propsQuickButton: f, renderQuickButton: g, tooltip: x = "", createTooltip: b, icon: y, disabled: v, propsButton: k = G.EmptyObject, disableHover: P, ripple: T, primary: R, children: D, sx: I, className: $, ...z } = e, B = w(), L = A(() => {
|
|
1633
1690
|
const e = (e, t, r, o = r) => {
|
|
1634
1691
|
const i = "boolean" == typeof n ? null : n[e];
|
|
1635
1692
|
return "function" == typeof i ? i(t) : i || (n ? r : o);
|
|
@@ -1640,11 +1697,11 @@ var Tt = B((e) => {
|
|
|
1640
1697
|
hoverColor: (t) => e("hoverColor", t, t.palette.text?.primary, t.palette.divider),
|
|
1641
1698
|
focusColor: (t) => e("focusColor", t, t.palette?.primary?.main)
|
|
1642
1699
|
},
|
|
1643
|
-
active: "dark" ===
|
|
1644
|
-
text:
|
|
1700
|
+
active: "dark" === B.palette.mode ? B.palette.text.secondary : B.palette.text.primary,
|
|
1701
|
+
text: B.palette.text.icon ?? B.palette.action.active
|
|
1645
1702
|
};
|
|
1646
|
-
}, [n,
|
|
1647
|
-
anchor:
|
|
1703
|
+
}, [n, B]), [N, O] = H(!1), [E, F] = H(!1), [K, j] = H(!1), Q = W(null), U = W(null), X = ge({
|
|
1704
|
+
anchor: Q.current,
|
|
1648
1705
|
label: i,
|
|
1649
1706
|
createPopupPanel: p,
|
|
1650
1707
|
parentFloat: c,
|
|
@@ -1655,30 +1712,30 @@ var Tt = B((e) => {
|
|
|
1655
1712
|
onOpen: () => {
|
|
1656
1713
|
O(!0), m?.();
|
|
1657
1714
|
}
|
|
1658
|
-
}), Y =
|
|
1715
|
+
}), Y = ue((e) => {
|
|
1659
1716
|
s?.(e), X.reference.close(0);
|
|
1660
|
-
}, [s, X]), _ =
|
|
1661
|
-
|
|
1717
|
+
}, [s, X]), _ = ue(() => {
|
|
1718
|
+
N ? X.reference.close(0) : X.reference.open(0);
|
|
1662
1719
|
}, [
|
|
1663
|
-
|
|
1720
|
+
N,
|
|
1664
1721
|
X,
|
|
1665
1722
|
c,
|
|
1666
1723
|
i
|
|
1667
|
-
]), J =
|
|
1724
|
+
]), J = A(() => {
|
|
1668
1725
|
const e = {
|
|
1669
1726
|
"&.bordered": {
|
|
1670
1727
|
borderWidth: "1px",
|
|
1671
1728
|
borderRadius: "0px",
|
|
1672
1729
|
borderTopStyle: "solid",
|
|
1673
1730
|
borderBottomStyle: "solid",
|
|
1674
|
-
borderColor: (e) =>
|
|
1675
|
-
"&.Mui-focusVisible": { border: (e) => `1px solid ${
|
|
1731
|
+
borderColor: (e) => L.outline.color(e),
|
|
1732
|
+
"&.Mui-focusVisible": { border: (e) => `1px solid ${L.outline.focusColor(e)} !important` },
|
|
1676
1733
|
"&:hover:not(.Mui-disabled, [disabled])": {
|
|
1677
|
-
borderColor: () =>
|
|
1678
|
-
backgroundColor: () =>
|
|
1734
|
+
borderColor: () => P ? "transparent" : void 0,
|
|
1735
|
+
backgroundColor: () => P ? "transparent" : void 0
|
|
1679
1736
|
},
|
|
1680
|
-
"&.Mui-hovered:not(.Mui-disabled, [disabled])": { borderColor: (e) =>
|
|
1681
|
-
"&.Mui-selected:not(.Mui-disabled, [disabled])": { borderColor: (e) =>
|
|
1737
|
+
"&.Mui-hovered:not(.Mui-disabled, [disabled])": { borderColor: (e) => L.outline.hoverColor(e) },
|
|
1738
|
+
"&.Mui-selected:not(.Mui-disabled, [disabled])": { borderColor: (e) => L.outline.hoverColor(e) },
|
|
1682
1739
|
"&.left": {
|
|
1683
1740
|
borderTopLeftRadius: (e) => `${e.shape.borderRadius}px`,
|
|
1684
1741
|
borderBottomLeftRadius: (e) => `${e.shape.borderRadius}px`,
|
|
@@ -1687,7 +1744,7 @@ var Tt = B((e) => {
|
|
|
1687
1744
|
"&.hard-right": {
|
|
1688
1745
|
borderRightStyle: "solid",
|
|
1689
1746
|
borderRightWidth: "1px",
|
|
1690
|
-
borderRightColor: (e) =>
|
|
1747
|
+
borderRightColor: (e) => L.outline.color(e)
|
|
1691
1748
|
},
|
|
1692
1749
|
"&.right": {
|
|
1693
1750
|
borderTopRightRadius: (e) => `${e.shape.borderRadius}px`,
|
|
@@ -1698,22 +1755,28 @@ var Tt = B((e) => {
|
|
|
1698
1755
|
},
|
|
1699
1756
|
"& .MuiTouchRipple-child": { borderRadius: (e) => `${e.shape.borderRadius}px !important` }
|
|
1700
1757
|
}, t = { "&.Mui-selected": {
|
|
1701
|
-
backgroundColor: (e) =>
|
|
1758
|
+
backgroundColor: (e) => q(e.palette.primary.main, e.palette.action.selectedOpacity),
|
|
1702
1759
|
"&:hover:not(.Mui-disabled)": {
|
|
1703
|
-
backgroundColor: (e) =>
|
|
1704
|
-
"@media (hover: none)": { backgroundColor: (e) =>
|
|
1760
|
+
backgroundColor: (e) => q(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
1761
|
+
"@media (hover: none)": { backgroundColor: (e) => q(e.palette.primary.main, e.palette.action.selectedOpacity) }
|
|
1705
1762
|
}
|
|
1706
1763
|
} }, r = {
|
|
1707
1764
|
maxHeight: "100%",
|
|
1708
1765
|
"&.Mui-selected": {
|
|
1709
|
-
backgroundColor: (e) =>
|
|
1766
|
+
backgroundColor: (e) => q(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity),
|
|
1710
1767
|
"&:hover:not(.Mui-disabled)": {
|
|
1711
|
-
backgroundColor: (e) =>
|
|
1712
|
-
"@media (hover: none)": { backgroundColor: (e) =>
|
|
1768
|
+
backgroundColor: (e) => q(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
1769
|
+
"@media (hover: none)": { backgroundColor: (e) => q(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity) }
|
|
1713
1770
|
}
|
|
1714
1771
|
},
|
|
1715
|
-
"&:hover:not(.Mui-disabled, [disabled])": {
|
|
1716
|
-
|
|
1772
|
+
"&:hover:not(.Mui-disabled, [disabled])": {
|
|
1773
|
+
color: (e) => e.palette.text.primary,
|
|
1774
|
+
...P ? null : {
|
|
1775
|
+
backgroundColor: (e) => q(e.palette.action.active, e.palette.action.hoverOpacity),
|
|
1776
|
+
"@media (hover: none)": { backgroundColor: "transparent" }
|
|
1777
|
+
}
|
|
1778
|
+
},
|
|
1779
|
+
backgroundColor: () => P ? "transparent" : void 0,
|
|
1717
1780
|
color: (e) => e.palette.text.icon,
|
|
1718
1781
|
"&.Mui-disabled > .icon path": {
|
|
1719
1782
|
filter: "grayscale(65%)",
|
|
@@ -1721,45 +1784,45 @@ var Tt = B((e) => {
|
|
|
1721
1784
|
},
|
|
1722
1785
|
padding: () => o ? "2px 3px" : "7px",
|
|
1723
1786
|
marginRight: "0"
|
|
1724
|
-
}, n =
|
|
1787
|
+
}, n = G.mergeContentful(r, e), i = G.mergeContentful(n, t), a = G.mergeContentful(r, e);
|
|
1725
1788
|
return {
|
|
1726
1789
|
quickButtonStyling: n,
|
|
1727
1790
|
openQuickButtonStyling: i,
|
|
1728
1791
|
compoundStyling: a,
|
|
1729
|
-
openCompoundStyling:
|
|
1792
|
+
openCompoundStyling: G.mergeContentful(a, t)
|
|
1730
1793
|
};
|
|
1731
|
-
}, [
|
|
1794
|
+
}, [L, P]), Z = ue((e) => {
|
|
1732
1795
|
const { children: t, ref: r, ...o } = e;
|
|
1733
|
-
return M(
|
|
1796
|
+
return M(Bt, {
|
|
1734
1797
|
ref: r,
|
|
1735
1798
|
...o,
|
|
1736
1799
|
disableInteractive: !0,
|
|
1737
1800
|
children: t
|
|
1738
1801
|
});
|
|
1739
|
-
}, []),
|
|
1802
|
+
}, []), ee = s || g, te = ee && (f?.tooltip || f?.createTooltip), re = (e) => {
|
|
1740
1803
|
const { tooltip: t, createTooltip: r, sx: o, ...n } = e;
|
|
1741
1804
|
let i = M(d, {
|
|
1742
1805
|
sx: { ...o },
|
|
1743
1806
|
component: "div",
|
|
1744
1807
|
...n
|
|
1745
1808
|
});
|
|
1746
|
-
return
|
|
1747
|
-
title:
|
|
1809
|
+
return te ? (i = (r ?? Z)({
|
|
1810
|
+
title: N ? "" : t ?? x,
|
|
1748
1811
|
children: M("div", { children: i })
|
|
1749
|
-
},
|
|
1812
|
+
}, N), i) : i;
|
|
1750
1813
|
}, ne = { onKeyDown: (e) => {
|
|
1751
|
-
e.keyCode ===
|
|
1814
|
+
e.keyCode === oe.Space ? _() : e.keyCode === oe.F4 || e.keyCode === oe.Down ? X.reference.open(0) : e.keyCode === oe.Up && X.reference.close(0);
|
|
1752
1815
|
} };
|
|
1753
1816
|
let ie = M(C, {});
|
|
1754
|
-
const ae =
|
|
1817
|
+
const ae = A(() => Oe(("function" == typeof y ? y() : y) ?? (ee ? Qt : null), a ? i : null), [
|
|
1755
1818
|
y,
|
|
1756
1819
|
i,
|
|
1757
1820
|
a,
|
|
1758
|
-
|
|
1821
|
+
ee
|
|
1759
1822
|
]);
|
|
1760
|
-
if (
|
|
1761
|
-
let e =
|
|
1762
|
-
const t = (g ||
|
|
1823
|
+
if (ee) {
|
|
1824
|
+
let e = N ? J.openQuickButtonStyling : J.quickButtonStyling;
|
|
1825
|
+
const t = (g || re)({
|
|
1763
1826
|
tabIndex: -1,
|
|
1764
1827
|
disabled: v,
|
|
1765
1828
|
size: "small",
|
|
@@ -1770,13 +1833,13 @@ var Tt = B((e) => {
|
|
|
1770
1833
|
onMouseDown: (e) => {
|
|
1771
1834
|
0 === e.button && (e.preventDefault(), Y(e));
|
|
1772
1835
|
},
|
|
1773
|
-
disableRipple: !!
|
|
1774
|
-
children: S(C, { children: [ae,
|
|
1836
|
+
disableRipple: !!T,
|
|
1837
|
+
children: S(C, { children: [ae, T] }),
|
|
1775
1838
|
...f,
|
|
1776
|
-
className:
|
|
1777
|
-
"Mui-focusVisible":
|
|
1839
|
+
className: V({
|
|
1840
|
+
"Mui-focusVisible": E || N,
|
|
1778
1841
|
"Mui-selected": l,
|
|
1779
|
-
"Mui-hovered":
|
|
1842
|
+
"Mui-hovered": K || N,
|
|
1780
1843
|
"Mui-disabled": v,
|
|
1781
1844
|
bordered: !0,
|
|
1782
1845
|
left: !0,
|
|
@@ -1788,18 +1851,18 @@ var Tt = B((e) => {
|
|
|
1788
1851
|
...f?.sx
|
|
1789
1852
|
}
|
|
1790
1853
|
});
|
|
1791
|
-
let r =
|
|
1792
|
-
|
|
1793
|
-
title:
|
|
1854
|
+
let r = Pt(!0, o, N);
|
|
1855
|
+
te && (r = (b ?? Z)({
|
|
1856
|
+
title: N ? "" : x,
|
|
1794
1857
|
children: r
|
|
1795
|
-
},
|
|
1796
|
-
ref:
|
|
1858
|
+
}, N)), ie = S(C, { children: [t, M(d, {
|
|
1859
|
+
ref: U,
|
|
1797
1860
|
component: "div",
|
|
1798
|
-
className:
|
|
1799
|
-
"Mui-selected":
|
|
1800
|
-
"Mui-hovered":
|
|
1861
|
+
className: V({
|
|
1862
|
+
"Mui-selected": N,
|
|
1863
|
+
"Mui-hovered": K || N,
|
|
1801
1864
|
"Mui-disabled": v,
|
|
1802
|
-
"Mui-focusVisible":
|
|
1865
|
+
"Mui-focusVisible": E || N,
|
|
1803
1866
|
bordered: !0,
|
|
1804
1867
|
right: !0,
|
|
1805
1868
|
divider: !0
|
|
@@ -1822,46 +1885,47 @@ var Tt = B((e) => {
|
|
|
1822
1885
|
children: r
|
|
1823
1886
|
})] });
|
|
1824
1887
|
} else {
|
|
1825
|
-
let e =
|
|
1826
|
-
ie = M(
|
|
1827
|
-
ref:
|
|
1888
|
+
let e = N ? J.openCompoundStyling : J.compoundStyling;
|
|
1889
|
+
ie = M(At, {
|
|
1890
|
+
ref: U,
|
|
1828
1891
|
tabIndex: -1,
|
|
1829
1892
|
disabled: v,
|
|
1830
1893
|
size: "small",
|
|
1831
1894
|
icon: ae,
|
|
1832
|
-
className:
|
|
1833
|
-
"Mui-selected":
|
|
1834
|
-
"Mui-hovered":
|
|
1895
|
+
className: V({
|
|
1896
|
+
"Mui-selected": N || l,
|
|
1897
|
+
"Mui-hovered": K,
|
|
1835
1898
|
"Mui-disabled": v,
|
|
1836
|
-
"Mui-focusVisible":
|
|
1899
|
+
"Mui-focusVisible": E || N,
|
|
1837
1900
|
bordered: !0,
|
|
1838
1901
|
left: !0,
|
|
1839
1902
|
right: !0
|
|
1840
1903
|
}),
|
|
1841
1904
|
sx: {
|
|
1905
|
+
flex: "1 1 auto",
|
|
1842
1906
|
...J.quickButtonStyling,
|
|
1843
1907
|
...e
|
|
1844
1908
|
},
|
|
1845
1909
|
onMouseDown: (e) => {
|
|
1846
1910
|
0 === e.button && (e.preventDefault(), _());
|
|
1847
1911
|
},
|
|
1848
|
-
children:
|
|
1912
|
+
children: Pt(!1, o, N)
|
|
1849
1913
|
});
|
|
1850
1914
|
}
|
|
1851
|
-
const { className:
|
|
1852
|
-
let
|
|
1853
|
-
onFocus: () =>
|
|
1854
|
-
onBlur: () =>
|
|
1855
|
-
onMouseOver: () =>
|
|
1856
|
-
onMouseOut: () =>
|
|
1915
|
+
const { className: le, sx: se, ...ce } = k;
|
|
1916
|
+
let de = M(t, {
|
|
1917
|
+
onFocus: () => F(!0),
|
|
1918
|
+
onBlur: () => F(!1),
|
|
1919
|
+
onMouseOver: () => j(!0),
|
|
1920
|
+
onMouseOut: () => j(!1),
|
|
1857
1921
|
...ne,
|
|
1858
1922
|
"aria-label": "split button",
|
|
1859
|
-
ref:
|
|
1923
|
+
ref: Q,
|
|
1860
1924
|
tabIndex: v ? void 0 : 0,
|
|
1861
|
-
className:
|
|
1862
|
-
"Mui-focusVisible":
|
|
1863
|
-
"Mui-selected":
|
|
1864
|
-
"Mui-hovered":
|
|
1925
|
+
className: V(le, "split-button-root", {
|
|
1926
|
+
"Mui-focusVisible": E || N,
|
|
1927
|
+
"Mui-selected": N || l,
|
|
1928
|
+
"Mui-hovered": K,
|
|
1865
1929
|
"Mui-disabled": v
|
|
1866
1930
|
}),
|
|
1867
1931
|
sx: {
|
|
@@ -1877,30 +1941,30 @@ var Tt = B((e) => {
|
|
|
1877
1941
|
outline: (e) => `solid ${e.palette.primary.main} 1px`,
|
|
1878
1942
|
zIndex: 2
|
|
1879
1943
|
},
|
|
1880
|
-
...
|
|
1944
|
+
...se
|
|
1881
1945
|
},
|
|
1882
|
-
...
|
|
1946
|
+
...ce,
|
|
1883
1947
|
children: ie
|
|
1884
1948
|
});
|
|
1885
|
-
return
|
|
1886
|
-
title:
|
|
1887
|
-
children:
|
|
1888
|
-
},
|
|
1889
|
-
className:
|
|
1949
|
+
return te || (de = (b ?? Z)({
|
|
1950
|
+
title: N ? "" : x,
|
|
1951
|
+
children: de
|
|
1952
|
+
}, N)), S(t, {
|
|
1953
|
+
className: V($, "popupIconButton"),
|
|
1890
1954
|
ref: r,
|
|
1891
|
-
...
|
|
1955
|
+
...z,
|
|
1892
1956
|
sx: {
|
|
1893
|
-
zIndex:
|
|
1957
|
+
zIndex: E || N ? 2 : void 0,
|
|
1894
1958
|
display: "flex",
|
|
1895
1959
|
alignItems: "center",
|
|
1896
|
-
|
|
1960
|
+
...I
|
|
1897
1961
|
},
|
|
1898
|
-
children: [
|
|
1962
|
+
children: [de, X.component]
|
|
1899
1963
|
});
|
|
1900
1964
|
}));
|
|
1901
|
-
|
|
1902
|
-
var
|
|
1903
|
-
const { selected: o = !1, label: n, showLabel: i, onQuickClick: a, parentFloat: l, createPopupPanel: c, propsPopup: d =
|
|
1965
|
+
jt.displayName = "ExhibitPopupIconButton";
|
|
1966
|
+
var Qt = M(Z, { iconKey: "Check" }), Gt = {}, Ut = B($((e, r) => {
|
|
1967
|
+
const { selected: o = !1, label: n, showLabel: i, onQuickClick: a, parentFloat: l, createPopupPanel: c, propsPopup: d = Gt, onPopupOpen: p, onPopupClose: u, propsQuickButton: h, renderQuickButton: f, tooltip: g = "", createTooltip: x, icon: b, disabled: y, ripple: v, primary: w, children: k, sx: P, ...T } = e, [R, D] = H(!1), [I, $] = H(!1), [z, B] = H(!1), [N, O] = H(!1), E = W(null), F = W(null), K = A(() => {
|
|
1904
1968
|
if (!d) return;
|
|
1905
1969
|
const { propsPopper: e } = d;
|
|
1906
1970
|
return {
|
|
@@ -1908,26 +1972,26 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
|
|
|
1908
1972
|
offsets: [-4, -2],
|
|
1909
1973
|
...e
|
|
1910
1974
|
};
|
|
1911
|
-
}, [d]), q =
|
|
1912
|
-
anchor:
|
|
1975
|
+
}, [d]), q = ge({
|
|
1976
|
+
anchor: E.current,
|
|
1913
1977
|
label: n,
|
|
1914
1978
|
createPopupPanel: c,
|
|
1915
1979
|
parentFloat: l,
|
|
1916
|
-
propsPopper:
|
|
1980
|
+
propsPopper: K,
|
|
1917
1981
|
onClose: () => {
|
|
1918
1982
|
D(!1), u?.();
|
|
1919
1983
|
},
|
|
1920
1984
|
onOpen: () => {
|
|
1921
1985
|
D(!0), p?.();
|
|
1922
1986
|
}
|
|
1923
|
-
}), j =
|
|
1987
|
+
}), j = ue((e) => {
|
|
1924
1988
|
0 === e.button && (a?.(e), q.reference.close(0));
|
|
1925
|
-
}, [a]), Q = M(
|
|
1989
|
+
}, [a]), Q = M(ut, {}), G = { "&.Mui-selected": {
|
|
1926
1990
|
color: (e) => e.palette.text.primary,
|
|
1927
1991
|
"& svg * ": { color: (e) => e.palette.text.primary }
|
|
1928
|
-
} },
|
|
1992
|
+
} }, U = L((e) => {
|
|
1929
1993
|
const { children: t, ref: r, ...o } = e;
|
|
1930
|
-
return M(
|
|
1994
|
+
return M(Bt, {
|
|
1931
1995
|
ref: r,
|
|
1932
1996
|
...o,
|
|
1933
1997
|
disableInteractive: !0,
|
|
@@ -1935,27 +1999,27 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
|
|
|
1935
1999
|
});
|
|
1936
2000
|
}, []), X = a || f, Y = (e) => {
|
|
1937
2001
|
const { tooltip: t, createTooltip: r, ...o } = e;
|
|
1938
|
-
return S(
|
|
2002
|
+
return S(Vt, {
|
|
1939
2003
|
icon: b,
|
|
1940
2004
|
disableRipple: !!v,
|
|
1941
|
-
className:
|
|
2005
|
+
className: V({ "Mui-hovered": z }),
|
|
1942
2006
|
sx: {
|
|
1943
2007
|
flex: "1 1 100%",
|
|
1944
|
-
...
|
|
2008
|
+
...G
|
|
1945
2009
|
},
|
|
1946
2010
|
...o,
|
|
1947
2011
|
children: [n, v]
|
|
1948
2012
|
});
|
|
1949
2013
|
}, _ = {
|
|
1950
2014
|
onFocus: () => {
|
|
1951
|
-
|
|
2015
|
+
$(!0);
|
|
1952
2016
|
},
|
|
1953
|
-
onBlur: () =>
|
|
2017
|
+
onBlur: () => $(!1),
|
|
1954
2018
|
onMouseOver: () => {
|
|
1955
|
-
|
|
2019
|
+
B(!0);
|
|
1956
2020
|
},
|
|
1957
2021
|
onMouseLeave: () => {
|
|
1958
|
-
|
|
2022
|
+
B(!1);
|
|
1959
2023
|
},
|
|
1960
2024
|
onMouseEnter: (e) => {
|
|
1961
2025
|
e.preventDefault(), q.reference.open();
|
|
@@ -1966,7 +2030,7 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
|
|
|
1966
2030
|
};
|
|
1967
2031
|
let J = M(C, {});
|
|
1968
2032
|
if (X) {
|
|
1969
|
-
const e = {
|
|
2033
|
+
const e = (f || Y)({
|
|
1970
2034
|
tabIndex: -1,
|
|
1971
2035
|
disabled: y,
|
|
1972
2036
|
onMouseEnter: () => {
|
|
@@ -1975,11 +2039,11 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
|
|
|
1975
2039
|
onMouseDown: (e) => {
|
|
1976
2040
|
0 === e.button && (e.preventDefault(), j(e));
|
|
1977
2041
|
},
|
|
1978
|
-
className:
|
|
2042
|
+
className: V("quick-left", {}, h?.className),
|
|
1979
2043
|
...h
|
|
1980
|
-
};
|
|
2044
|
+
});
|
|
1981
2045
|
J = S(C, { children: [
|
|
1982
|
-
|
|
2046
|
+
e,
|
|
1983
2047
|
M(s, {
|
|
1984
2048
|
sx: {
|
|
1985
2049
|
ml: "0px",
|
|
@@ -1990,10 +2054,10 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
|
|
|
1990
2054
|
flexItem: !0
|
|
1991
2055
|
}),
|
|
1992
2056
|
M(m, {
|
|
1993
|
-
ref:
|
|
1994
|
-
className:
|
|
2057
|
+
ref: F,
|
|
2058
|
+
className: V({
|
|
1995
2059
|
"Mui-selected": R,
|
|
1996
|
-
"Mui-hovered":
|
|
2060
|
+
"Mui-hovered": z
|
|
1997
2061
|
}),
|
|
1998
2062
|
sx: {
|
|
1999
2063
|
borderTopLeftRadius: "0px",
|
|
@@ -2005,9 +2069,9 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
|
|
|
2005
2069
|
paddingBottom: "2px",
|
|
2006
2070
|
marginLeft: "0px",
|
|
2007
2071
|
marginRight: "6px",
|
|
2008
|
-
color: (e) =>
|
|
2072
|
+
color: (e) => w ? void 0 : e.palette.text.secondary,
|
|
2009
2073
|
"&.Mui-hovered:not(.Mui-disabled, [disabled])": { color: (e) => e.palette.text.primary },
|
|
2010
|
-
...
|
|
2074
|
+
...G
|
|
2011
2075
|
},
|
|
2012
2076
|
tabIndex: -1,
|
|
2013
2077
|
disabled: y,
|
|
@@ -2020,7 +2084,7 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
|
|
|
2020
2084
|
border: "1px solid transparent",
|
|
2021
2085
|
paddingTop: "1px",
|
|
2022
2086
|
paddingBottom: "1px",
|
|
2023
|
-
color: (e) =>
|
|
2087
|
+
color: (e) => w ? void 0 : e.palette.text.icon ?? e.palette.action.active
|
|
2024
2088
|
},
|
|
2025
2089
|
onMouseOver: (e) => {
|
|
2026
2090
|
e.preventDefault(), O(!0);
|
|
@@ -2035,19 +2099,19 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
|
|
|
2035
2099
|
})
|
|
2036
2100
|
})
|
|
2037
2101
|
] });
|
|
2038
|
-
} else J = S(
|
|
2039
|
-
ref:
|
|
2102
|
+
} else J = S(Vt, {
|
|
2103
|
+
ref: F,
|
|
2040
2104
|
tabIndex: -1,
|
|
2041
2105
|
disabled: y,
|
|
2042
2106
|
icon: b,
|
|
2043
|
-
className:
|
|
2107
|
+
className: V({
|
|
2044
2108
|
"Mui-selected": R || o,
|
|
2045
|
-
"Mui-hovered":
|
|
2109
|
+
"Mui-hovered": z
|
|
2046
2110
|
}),
|
|
2047
2111
|
sx: {
|
|
2048
2112
|
flex: "1 1 100%",
|
|
2049
2113
|
paddingRight: "0px",
|
|
2050
|
-
...
|
|
2114
|
+
...G
|
|
2051
2115
|
},
|
|
2052
2116
|
onClick: (e) => {
|
|
2053
2117
|
e.preventDefault(), R ? q.reference.close() : q.reference.open();
|
|
@@ -2061,20 +2125,20 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
|
|
|
2061
2125
|
sx: {
|
|
2062
2126
|
flex: "none",
|
|
2063
2127
|
display: "flex",
|
|
2064
|
-
color: (e) =>
|
|
2128
|
+
color: (e) => w ? void 0 : e.palette.text.icon ?? e.palette.action.active
|
|
2065
2129
|
},
|
|
2066
2130
|
children: Q
|
|
2067
2131
|
})]
|
|
2068
2132
|
});
|
|
2069
2133
|
let Z = M(t, {
|
|
2070
2134
|
"aria-label": "split button",
|
|
2071
|
-
ref:
|
|
2135
|
+
ref: E,
|
|
2072
2136
|
tabIndex: y ? void 0 : 0,
|
|
2073
|
-
className:
|
|
2137
|
+
className: V({
|
|
2074
2138
|
"Mui-disabled": y,
|
|
2075
2139
|
"Mui-selected": R,
|
|
2076
|
-
"Mui-focusVisible":
|
|
2077
|
-
"Mui-hovered":
|
|
2140
|
+
"Mui-focusVisible": I || R,
|
|
2141
|
+
"Mui-hovered": z
|
|
2078
2142
|
}),
|
|
2079
2143
|
sx: {
|
|
2080
2144
|
display: "flex",
|
|
@@ -2087,18 +2151,18 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
|
|
|
2087
2151
|
marginRight: "-1px"
|
|
2088
2152
|
},
|
|
2089
2153
|
"&.Mui-disabled > .icon path": { filter: "grayscale(65%)" },
|
|
2090
|
-
...
|
|
2154
|
+
...P
|
|
2091
2155
|
},
|
|
2092
|
-
...
|
|
2156
|
+
...T,
|
|
2093
2157
|
children: J
|
|
2094
2158
|
});
|
|
2095
|
-
return X && !
|
|
2159
|
+
return X && !N && (h?.tooltip || h?.createTooltip) && (Z = (h?.createTooltip ?? U)({
|
|
2096
2160
|
title: R ? "" : Z ?? h?.tooltip,
|
|
2097
2161
|
children: Z
|
|
2098
2162
|
}, R)), S(t, {
|
|
2099
2163
|
ref: r,
|
|
2100
2164
|
sx: {
|
|
2101
|
-
zIndex:
|
|
2165
|
+
zIndex: I || R ? 2 : void 0,
|
|
2102
2166
|
display: "flex",
|
|
2103
2167
|
" .tooltip-wrapper": {
|
|
2104
2168
|
display: "flex",
|
|
@@ -2107,12 +2171,12 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
|
|
|
2107
2171
|
},
|
|
2108
2172
|
children: [Z, q.component]
|
|
2109
2173
|
});
|
|
2110
|
-
})),
|
|
2174
|
+
})), Xt = B($((e, t) => {
|
|
2111
2175
|
const { onSelectToggle: r, selected: o = !1, label: n, shortcut: i, tabIndex: a = 0, preventFocus: l = !1, ...s } = e;
|
|
2112
|
-
return M(
|
|
2176
|
+
return M(Ot, {
|
|
2113
2177
|
label: n,
|
|
2114
2178
|
shortcut: i,
|
|
2115
|
-
children: M(
|
|
2179
|
+
children: M(At, {
|
|
2116
2180
|
ref: t,
|
|
2117
2181
|
outlined: !1,
|
|
2118
2182
|
tabIndex: a,
|
|
@@ -2126,26 +2190,27 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
|
|
|
2126
2190
|
...s
|
|
2127
2191
|
})
|
|
2128
2192
|
});
|
|
2129
|
-
})),
|
|
2130
|
-
const { children: o, selected: n = !0, outlined: i = !0, sx: a, ...l } = e, s =
|
|
2193
|
+
})), Yt = M(Z, {}), _t = M(Z, { iconKey: "Check" }), Jt = B($((e, r) => {
|
|
2194
|
+
const { children: o, selected: n = !0, outlined: i = !0, sx: a, ...l } = e, s = A(() => ({
|
|
2131
2195
|
display: "flex",
|
|
2132
2196
|
border: (e) => n ? `solid ${i ? e.palette.divider : "transparent"} 1px` : "solid transparent 1px",
|
|
2133
2197
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
2134
2198
|
backgroundColor: (e) => {
|
|
2135
|
-
if (n) return
|
|
2199
|
+
if (n) return q(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity);
|
|
2136
2200
|
},
|
|
2137
2201
|
...a
|
|
2138
2202
|
}), [a]);
|
|
2139
2203
|
let c = o;
|
|
2140
|
-
return null === c && (c =
|
|
2204
|
+
return null === c && (c = Yt), c || (c = _t), M(t, {
|
|
2141
2205
|
ref: r,
|
|
2142
2206
|
sx: s,
|
|
2143
2207
|
...l,
|
|
2144
2208
|
children: c
|
|
2145
2209
|
});
|
|
2146
|
-
})),
|
|
2210
|
+
})), Zt = {
|
|
2147
2211
|
"dialog.cancel": "Cancel",
|
|
2148
2212
|
"dialog.ok": "Ok",
|
|
2213
|
+
"lazyLoad.retry": "Retry",
|
|
2149
2214
|
"overflow.more": "More",
|
|
2150
2215
|
"overflow.moreDescription": "More toolbar options…",
|
|
2151
2216
|
"scroll.edgeBottom": " Bottom: ''Ctrl+Click'' to scroll to the end",
|
|
@@ -2164,22 +2229,36 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
|
|
|
2164
2229
|
"stackTrace.log": "Log error to console",
|
|
2165
2230
|
"stackTrace.moreFrames": "... and {count} more frames",
|
|
2166
2231
|
"window.close": "Close"
|
|
2167
|
-
}, { DefaultCommandCatalogService:
|
|
2168
|
-
function
|
|
2169
|
-
|
|
2232
|
+
}, { DefaultCommandCatalogService: er } = Y, tr = !1;
|
|
2233
|
+
function rr() {
|
|
2234
|
+
tr || (tr = !0, er.registerFromManifest("@sheetxl/utils-mui", import.meta.url, { messages: Zt }));
|
|
2170
2235
|
}
|
|
2171
|
-
|
|
2172
|
-
var
|
|
2173
|
-
|
|
2174
|
-
|
|
2236
|
+
rr();
|
|
2237
|
+
var or = {
|
|
2238
|
+
inline: null,
|
|
2239
|
+
popup: []
|
|
2240
|
+
}, nr = B($((e, r) => {
|
|
2241
|
+
const { children: o, sx: n, ...i } = e, a = Ce(), l = ye(r, () => ({}), []), [s, c] = ke(), d = W(null), p = W(null), [u, m] = K((e) => e + 1, 0), [h, f] = H(null), [g, x] = H(null), b = g?.popup ?? null, y = W(0), [v, w] = H(!1), k = W(!1), C = fe(), T = W(C);
|
|
2242
|
+
T.current = C;
|
|
2243
|
+
const R = L(() => {
|
|
2244
|
+
T.current?.closeChild(0);
|
|
2245
|
+
}, []), I = L(() => {
|
|
2246
|
+
k.current = !0, w(!0);
|
|
2247
|
+
}, []), $ = L(() => {
|
|
2248
|
+
k.current = !1, w(!1);
|
|
2249
|
+
}, []), z = W(null), B = W(/* @__PURE__ */ new Map()), N = L(() => {
|
|
2250
|
+
B.current.clear(), x(null), m();
|
|
2175
2251
|
}, []);
|
|
2176
|
-
|
|
2252
|
+
F(() => {
|
|
2177
2253
|
p.current = { refs: [] };
|
|
2178
|
-
const e = [], r =
|
|
2254
|
+
const e = [], r = P.toArray(o);
|
|
2179
2255
|
let n = 0;
|
|
2180
2256
|
r.forEach((o, i) => {
|
|
2181
2257
|
e.push(M(t, {
|
|
2182
|
-
sx: {
|
|
2258
|
+
sx: {
|
|
2259
|
+
display: "flex",
|
|
2260
|
+
flex: "0 0 auto"
|
|
2261
|
+
},
|
|
2183
2262
|
ref: (e) => {
|
|
2184
2263
|
n++, n === r.length && m();
|
|
2185
2264
|
const t = { current: null };
|
|
@@ -2188,23 +2267,23 @@ var Gt = B(D((e, r) => {
|
|
|
2188
2267
|
children: o
|
|
2189
2268
|
}, i));
|
|
2190
2269
|
}), f(e);
|
|
2191
|
-
}, [o, c]),
|
|
2270
|
+
}, [o, c]), F(() => {
|
|
2192
2271
|
if (!h) return;
|
|
2193
2272
|
const e = p.current?.refs ?? [], t = e.length;
|
|
2194
|
-
if (!l.current || 0 === t) return
|
|
2273
|
+
if (!l.current || 0 === t) return void x(null);
|
|
2195
2274
|
const r = l.current?.getBoundingClientRect(), o = [], n = [], i = () => {
|
|
2196
|
-
let r =
|
|
2197
|
-
r ? r.disconnect() : r =
|
|
2275
|
+
let r = z.current;
|
|
2276
|
+
r ? r.disconnect() : r = z.current = new ResizeObserver((e) => {
|
|
2198
2277
|
for (let t = 0; t < e.length; t++) {
|
|
2199
2278
|
const r = e[t].target;
|
|
2200
2279
|
if (!r.isConnected) continue;
|
|
2201
|
-
const o =
|
|
2202
|
-
if (void 0 !== o && Math.abs(r.getBoundingClientRect().width - o) > .5) return void
|
|
2280
|
+
const o = B.current.get(r);
|
|
2281
|
+
if (void 0 !== o && Math.abs(r.getBoundingClientRect().width - o) > .5) return void N();
|
|
2203
2282
|
}
|
|
2204
|
-
}),
|
|
2283
|
+
}), B.current.clear();
|
|
2205
2284
|
for (let o = 0; o < t; o++) {
|
|
2206
2285
|
const t = e[o]?.current;
|
|
2207
|
-
t && (
|
|
2286
|
+
t && (B.current.set(t, t.getBoundingClientRect().width), r.observe(t));
|
|
2208
2287
|
}
|
|
2209
2288
|
};
|
|
2210
2289
|
let a = 0, s = !1;
|
|
@@ -2218,40 +2297,45 @@ var Gt = B(D((e, r) => {
|
|
|
2218
2297
|
const n = t.current.getBoundingClientRect();
|
|
2219
2298
|
a += n?.width, a > r.width && (s = !0);
|
|
2220
2299
|
}
|
|
2221
|
-
if (!s) return i(),
|
|
2300
|
+
if (!s) return i(), k.current && R(), void x(or);
|
|
2222
2301
|
const c = d.current?.getBoundingClientRect();
|
|
2302
|
+
c?.width && (y.current = c.width);
|
|
2303
|
+
const u = r.width - y.current;
|
|
2223
2304
|
a = 0;
|
|
2224
|
-
for (let
|
|
2225
|
-
const t = e[
|
|
2226
|
-
let
|
|
2305
|
+
for (let r = 0; r < t; r++) {
|
|
2306
|
+
const t = e[r];
|
|
2307
|
+
let i = !1;
|
|
2227
2308
|
if (t.current) {
|
|
2228
2309
|
const e = t.current.getBoundingClientRect();
|
|
2229
|
-
a += e?.width, a
|
|
2310
|
+
a += e?.width, a <= u && (i = !0);
|
|
2230
2311
|
}
|
|
2231
|
-
|
|
2312
|
+
i ? o.push(h[r]) : n.push(h[r]);
|
|
2232
2313
|
}
|
|
2233
|
-
i(), x(
|
|
2314
|
+
i(), x({
|
|
2315
|
+
inline: o,
|
|
2316
|
+
popup: n
|
|
2317
|
+
});
|
|
2234
2318
|
}, [
|
|
2235
2319
|
o,
|
|
2236
2320
|
h,
|
|
2237
2321
|
c,
|
|
2238
2322
|
u
|
|
2239
|
-
]),
|
|
2240
|
-
|
|
2323
|
+
]), F(() => () => {
|
|
2324
|
+
z.current?.disconnect(), z.current = null;
|
|
2241
2325
|
}, []);
|
|
2242
|
-
const
|
|
2326
|
+
const O = L((e) => {
|
|
2243
2327
|
const r = [], o = b?.length ?? 0;
|
|
2244
2328
|
for (let e = 0; e < o; e++) {
|
|
2245
|
-
const t =
|
|
2246
|
-
|
|
2247
|
-
const n = t, i =
|
|
2329
|
+
const t = P.toArray(b[e])[0];
|
|
2330
|
+
P.toArray(t.props.children?.props?.children ?? t.props.children).forEach((t, o) => {
|
|
2331
|
+
const n = t, i = {
|
|
2248
2332
|
...n.props,
|
|
2249
2333
|
key: `overflow-${e}-${o}${n.key ?? ""}`
|
|
2250
|
-
});
|
|
2251
|
-
r.push(
|
|
2334
|
+
}, a = D(n, i);
|
|
2335
|
+
r.push(a);
|
|
2252
2336
|
});
|
|
2253
2337
|
}
|
|
2254
|
-
return
|
|
2338
|
+
return St({
|
|
2255
2339
|
...e,
|
|
2256
2340
|
children: M(t, {
|
|
2257
2341
|
className: "overflow-palette-popup-panel",
|
|
@@ -2269,56 +2353,83 @@ var Gt = B(D((e, r) => {
|
|
|
2269
2353
|
children: r
|
|
2270
2354
|
})
|
|
2271
2355
|
});
|
|
2272
|
-
}, [b])
|
|
2356
|
+
}, [b]), E = Se([
|
|
2357
|
+
l,
|
|
2358
|
+
s,
|
|
2359
|
+
r
|
|
2360
|
+
]);
|
|
2273
2361
|
return S(t, {
|
|
2274
2362
|
className: "overflow-palette",
|
|
2275
2363
|
sx: {
|
|
2276
2364
|
display: "flex",
|
|
2277
2365
|
flexDirection: "row",
|
|
2366
|
+
flexWrap: "nowrap",
|
|
2278
2367
|
flex: "1 1 100%",
|
|
2279
2368
|
width: "100%",
|
|
2280
2369
|
maxWidth: "100%",
|
|
2370
|
+
minWidth: 0,
|
|
2371
|
+
overflow: "hidden",
|
|
2281
2372
|
...n
|
|
2282
2373
|
},
|
|
2283
|
-
ref:
|
|
2284
|
-
l,
|
|
2285
|
-
s,
|
|
2286
|
-
r
|
|
2287
|
-
]),
|
|
2374
|
+
ref: E,
|
|
2288
2375
|
...i,
|
|
2289
2376
|
children: [M(t, {
|
|
2290
2377
|
sx: {
|
|
2291
2378
|
flexDirection: "row",
|
|
2292
2379
|
display: "flex",
|
|
2380
|
+
flexWrap: "nowrap",
|
|
2293
2381
|
maxWidth: "100%",
|
|
2294
2382
|
flex: "1 1 100%",
|
|
2383
|
+
minWidth: 0,
|
|
2384
|
+
overflow: "hidden",
|
|
2295
2385
|
alignItems: "center"
|
|
2296
2386
|
},
|
|
2297
|
-
children: g ?? h
|
|
2387
|
+
children: g?.inline ?? h
|
|
2298
2388
|
}), M(t, {
|
|
2299
2389
|
className: "overflow-palette-popup-button",
|
|
2300
2390
|
sx: {
|
|
2301
|
-
display: null
|
|
2302
|
-
flex: "
|
|
2391
|
+
display: v || null === b || 0 !== b.length ? "flex" : "none",
|
|
2392
|
+
flex: "0 0 auto",
|
|
2393
|
+
alignItems: "center"
|
|
2303
2394
|
},
|
|
2304
|
-
children: M(
|
|
2305
|
-
createPopupPanel:
|
|
2395
|
+
children: M(jt, {
|
|
2396
|
+
createPopupPanel: O,
|
|
2306
2397
|
ref: d,
|
|
2307
|
-
|
|
2398
|
+
onPopupOpen: I,
|
|
2399
|
+
onPopupClose: $,
|
|
2400
|
+
createTooltip: ({ children: e }, t) => M(Ot, {
|
|
2308
2401
|
label: a("overflow.more"),
|
|
2309
2402
|
description: a("overflow.moreDescription"),
|
|
2310
2403
|
disabled: t,
|
|
2311
2404
|
children: e
|
|
2312
2405
|
}),
|
|
2313
|
-
icon: M(
|
|
2406
|
+
icon: M(Z, { iconKey: "MoreHorizontal" })
|
|
2314
2407
|
})
|
|
2315
2408
|
})]
|
|
2316
2409
|
});
|
|
2317
|
-
}))
|
|
2318
|
-
|
|
2319
|
-
|
|
2410
|
+
})), ir = I(void 0), ar = ({ error: e }) => {
|
|
2411
|
+
const t = N(ir);
|
|
2412
|
+
return O(() => {
|
|
2413
|
+
t?.(e);
|
|
2414
|
+
}, [e]), null;
|
|
2415
|
+
};
|
|
2416
|
+
function lr(e) {
|
|
2417
|
+
const t = pe(e, { renderError: (e) => M(ar, { error: e }) });
|
|
2418
|
+
return (e) => {
|
|
2419
|
+
const { onLoadError: r, ...o } = e;
|
|
2420
|
+
return M(ir.Provider, {
|
|
2421
|
+
value: r,
|
|
2422
|
+
children: M(R, {
|
|
2423
|
+
fallback: null,
|
|
2424
|
+
children: M(t, { ...o })
|
|
2425
|
+
})
|
|
2426
|
+
});
|
|
2427
|
+
};
|
|
2428
|
+
}
|
|
2429
|
+
function sr(e) {
|
|
2430
|
+
const [t, r] = H(() => /* @__PURE__ */ new Map()), o = W(null);
|
|
2320
2431
|
null === o.current && (o.current = /* @__PURE__ */ new Map());
|
|
2321
|
-
const { showModal: n, updateModal: i, destroyModal: a, hideModal: l } =
|
|
2432
|
+
const { showModal: n, updateModal: i, destroyModal: a, hideModal: l } = Re({ disableAutoDestroy: !0 });
|
|
2322
2433
|
return (s, c, d, p) => new Promise((u, m) => {
|
|
2323
2434
|
let h = !1;
|
|
2324
2435
|
void 0 !== d?.disableAutoDestroy && (h = d.disableAutoDestroy, delete (d = { ...d }).disableAutoDestroy);
|
|
@@ -2347,6 +2458,10 @@ function Xt(e) {
|
|
|
2347
2458
|
}), t;
|
|
2348
2459
|
}), u(e);
|
|
2349
2460
|
},
|
|
2461
|
+
onLoadError: (e) => {
|
|
2462
|
+
const o = t.get(s);
|
|
2463
|
+
r((e) => (e.delete(s), e)), o?.id && a(o.id), m(e);
|
|
2464
|
+
},
|
|
2350
2465
|
disableAutoDestroy: h,
|
|
2351
2466
|
revealToken: 0,
|
|
2352
2467
|
startHidden: f,
|
|
@@ -2368,7 +2483,7 @@ function Xt(e) {
|
|
|
2368
2483
|
}
|
|
2369
2484
|
if (!c) return void m(`Invalid function for window '${s}'`);
|
|
2370
2485
|
let b = o.current.get(s);
|
|
2371
|
-
b || (b =
|
|
2486
|
+
b || (b = lr(c), o.current.set(s, b));
|
|
2372
2487
|
const y = n(b, g, { destroyOnClose: !h });
|
|
2373
2488
|
r((e) => (e.set(s, {
|
|
2374
2489
|
id: y.id,
|
|
@@ -2377,25 +2492,25 @@ function Xt(e) {
|
|
|
2377
2492
|
}), e)), f && u(null);
|
|
2378
2493
|
});
|
|
2379
2494
|
}
|
|
2380
|
-
|
|
2381
|
-
var
|
|
2495
|
+
rr();
|
|
2496
|
+
var cr = {
|
|
2382
2497
|
x: 0,
|
|
2383
2498
|
y: 0
|
|
2384
|
-
},
|
|
2385
|
-
const { defaultPosition: r =
|
|
2499
|
+
}, dr = B($((e, t) => {
|
|
2500
|
+
const { defaultPosition: r = cr, PaperComponent: o = f, onDragStop: n, rootSel: i = ".MuiModal-root", handleSel: a = ".draggable-title", titleSize: l, rootSize: s, ...c } = e, d = W(null), p = A(() => l?.width && l?.height && s?.width && s?.height ? {
|
|
2386
2501
|
left: 0,
|
|
2387
2502
|
top: 0,
|
|
2388
2503
|
right: s.width - l.width,
|
|
2389
2504
|
bottom: s.height - l.height
|
|
2390
|
-
} : null, [l, s]), [u, m] =
|
|
2391
|
-
|
|
2505
|
+
} : null, [l, s]), [u, m] = H(null), [h, g] = H(null), x = u ?? r ?? null, b = A(() => x && p ? {
|
|
2506
|
+
x: Math.max(0, Math.min(x.x, p.right)),
|
|
2507
|
+
y: Math.max(0, Math.min(x.y, p.bottom))
|
|
2508
|
+
} : x, [x, p]), y = Se([d, t]);
|
|
2509
|
+
return M(Ie, {
|
|
2392
2510
|
nodeRef: d,
|
|
2393
2511
|
handle: a,
|
|
2394
2512
|
cancel: "[class*=\"MuiDialogContent-root\"]",
|
|
2395
|
-
position:
|
|
2396
|
-
x: Math.max(0, Math.min(x.x, p.right)),
|
|
2397
|
-
y: Math.max(0, Math.min(x.y, p.bottom))
|
|
2398
|
-
} : x, [x, p]) ?? void 0,
|
|
2513
|
+
position: b ?? void 0,
|
|
2399
2514
|
bounds: p ?? ".MuiModal-root",
|
|
2400
2515
|
enableUserSelectHack: !1,
|
|
2401
2516
|
onStop: n,
|
|
@@ -2416,130 +2531,133 @@ var Yt = {
|
|
|
2416
2531
|
});
|
|
2417
2532
|
},
|
|
2418
2533
|
children: M(o, {
|
|
2419
|
-
ref:
|
|
2534
|
+
ref: y,
|
|
2420
2535
|
...c
|
|
2421
2536
|
})
|
|
2422
2537
|
});
|
|
2423
|
-
})),
|
|
2538
|
+
})), pr = {
|
|
2424
2539
|
x: "50",
|
|
2425
2540
|
y: "50"
|
|
2426
|
-
},
|
|
2427
|
-
const n =
|
|
2541
|
+
}, ur = B($((r, o) => {
|
|
2542
|
+
const n = k({
|
|
2428
2543
|
props: r,
|
|
2429
2544
|
name: "MuiDialog"
|
|
2430
|
-
}), i =
|
|
2545
|
+
}), i = w(), a = Ce(), s = {
|
|
2431
2546
|
enter: .66 * i.transitions.duration.enteringScreen,
|
|
2432
2547
|
exit: .66 * i.transitions.duration.leavingScreen
|
|
2433
|
-
}, { title: p = "SheetXL", onCancel: u, onDone: m, onShow: h, onShown: g, onHide: x, onClose: b, open: v, autoFocusSel: C, children:
|
|
2434
|
-
let
|
|
2435
|
-
const
|
|
2436
|
-
let
|
|
2437
|
-
R && (
|
|
2548
|
+
}, { title: p = "SheetXL", onCancel: u, onDone: m, onShow: h, onShown: g, onHide: x, onClose: b, open: v, autoFocusSel: C, children: P, transitionDuration: T = s, TransitionProps: R, slots: D = G.EmptyArray, slotProps: I = G.EmptyArray, sx: $, className: z, onMouseDown: B, initialPosition: L = pr, isModal: N = !1, suspendModal: A = !1, restoreFocus: K = !0, disableAutoDestroy: j = !1, revealToken: Q, startHidden: U = !1, ...X } = n;
|
|
2549
|
+
let Y = D.transition ?? c;
|
|
2550
|
+
const _ = D.backdrop ?? e, J = D.paper ?? f;
|
|
2551
|
+
let ee = I.transition;
|
|
2552
|
+
R && (ee = {
|
|
2438
2553
|
...R,
|
|
2439
|
-
...
|
|
2554
|
+
...ee
|
|
2440
2555
|
});
|
|
2441
|
-
const
|
|
2442
|
-
|
|
2443
|
-
|
|
2556
|
+
const te = I.backdrop, re = I.paper, [ne, ie] = H(null), [ae, le] = H(!1), [se, de] = H(!1), pe = W(null), [me, he] = ke(), fe = W(null), ge = W(null), [ve, we] = ke(), Pe = W(null), Te = E(), Re = W(null);
|
|
2557
|
+
F(() => {
|
|
2558
|
+
if (!ne || U) return;
|
|
2559
|
+
const e = !!v;
|
|
2560
|
+
Re.current !== e && (Re.current = e, le(e));
|
|
2444
2561
|
}, [
|
|
2445
2562
|
v,
|
|
2446
2563
|
ne,
|
|
2447
|
-
|
|
2564
|
+
U
|
|
2448
2565
|
]);
|
|
2449
|
-
const
|
|
2450
|
-
u?.(),
|
|
2566
|
+
const Ie = ue(() => {
|
|
2567
|
+
u?.(), le(!1);
|
|
2451
2568
|
}, [u]);
|
|
2452
|
-
|
|
2569
|
+
F(() => {
|
|
2453
2570
|
if (ne) return;
|
|
2454
|
-
const e =
|
|
2571
|
+
const e = fe.current, t = Pe.current;
|
|
2455
2572
|
if (!e || !t) return;
|
|
2456
2573
|
const r = e.getBoundingClientRect(), o = t.getBoundingClientRect();
|
|
2457
2574
|
if (0 === r.width && 0 === r.height || 0 === o.width && 0 === o.height) return;
|
|
2458
2575
|
const n = r.height - o.height, i = r.width - o.width;
|
|
2459
2576
|
let a = .5 * i, l = .5 * n;
|
|
2460
|
-
"number" == typeof
|
|
2577
|
+
"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 = n * (parseFloat(L.y) / 100)), ie({
|
|
2461
2578
|
x: a,
|
|
2462
2579
|
y: l
|
|
2463
2580
|
});
|
|
2464
2581
|
});
|
|
2465
|
-
const [
|
|
2466
|
-
if (
|
|
2582
|
+
const [$e, ze] = H(!1), [Be, Le] = H(null), [Ne, Oe] = H(null), Ee = ue((e) => {
|
|
2583
|
+
if (Be) return Be.focus(e), !0;
|
|
2467
2584
|
if (C) {
|
|
2468
|
-
const t =
|
|
2585
|
+
const t = ge.current?.querySelectorAll?.(C);
|
|
2469
2586
|
if (t && t.length > 0) return t[0]?.focus?.(e), !0;
|
|
2470
2587
|
}
|
|
2471
|
-
return
|
|
2472
|
-
}, [
|
|
2473
|
-
|
|
2474
|
-
} }), []),
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
}, [
|
|
2478
|
-
const
|
|
2479
|
-
...
|
|
2588
|
+
return ge.current?.focus?.(e), !1;
|
|
2589
|
+
}, [Be, C]), Fe = ye(o, () => ({ focus: (e) => {
|
|
2590
|
+
Ee(e);
|
|
2591
|
+
} }), []), Ae = W(Q);
|
|
2592
|
+
O(() => {
|
|
2593
|
+
Q !== Ae.current && (Ae.current = Q, le(!0));
|
|
2594
|
+
}, [Q]);
|
|
2595
|
+
const Ke = {
|
|
2596
|
+
...ee,
|
|
2480
2597
|
onExited: (e) => {
|
|
2481
|
-
m?.(null),
|
|
2598
|
+
m?.(null), j || ee?.onExited?.(e);
|
|
2482
2599
|
},
|
|
2483
2600
|
onExit: (e) => {
|
|
2484
|
-
const t =
|
|
2601
|
+
const t = Ne, r = "function" == typeof K ? K() : K;
|
|
2485
2602
|
t && !1 !== r && requestAnimationFrame(() => {
|
|
2486
|
-
|
|
2487
|
-
}), x?.(),
|
|
2603
|
+
Fe.current?.contains(document.activeElement) && t.focus();
|
|
2604
|
+
}), x?.(), de(!1), ee?.onExit?.(e);
|
|
2488
2605
|
},
|
|
2489
2606
|
onEntered: (e, t) => {
|
|
2490
|
-
h?.(),
|
|
2607
|
+
h?.(), ee?.onEntered?.(e, t);
|
|
2491
2608
|
},
|
|
2492
2609
|
onEntering: (e, t) => {
|
|
2493
|
-
|
|
2610
|
+
de(!0), g?.(Fe.current);
|
|
2494
2611
|
}
|
|
2495
2612
|
};
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
}, [
|
|
2499
|
-
|
|
2500
|
-
|
|
2613
|
+
O(() => {
|
|
2614
|
+
se && Ee();
|
|
2615
|
+
}, [se]);
|
|
2616
|
+
const We = Se([Pe, o]);
|
|
2617
|
+
let He = M(y, {
|
|
2618
|
+
open: se,
|
|
2501
2619
|
disableAutoFocus: !0,
|
|
2502
|
-
disableEnforceFocus:
|
|
2503
|
-
disableRestoreFocus: !0 !==
|
|
2504
|
-
children: M(
|
|
2505
|
-
in:
|
|
2506
|
-
timeout:
|
|
2620
|
+
disableEnforceFocus: !$e,
|
|
2621
|
+
disableRestoreFocus: !0 !== K,
|
|
2622
|
+
children: M(Y, {
|
|
2623
|
+
in: ae,
|
|
2624
|
+
timeout: T,
|
|
2507
2625
|
role: "presentation",
|
|
2508
|
-
...
|
|
2626
|
+
...Ke,
|
|
2509
2627
|
children: M(t, {
|
|
2510
2628
|
className: "MuiDialog-container",
|
|
2511
|
-
ref:
|
|
2629
|
+
ref: ge,
|
|
2512
2630
|
tabIndex: 0,
|
|
2513
2631
|
sx: {
|
|
2514
2632
|
outline: "none",
|
|
2515
2633
|
position: "relative"
|
|
2516
2634
|
},
|
|
2517
2635
|
onKeyDown: (e) => {
|
|
2518
|
-
e.which ===
|
|
2636
|
+
e.which === oe.Escape && (Ie(), pe.current?.start(e, { center: !1 }), setTimeout(() => pe.current?.stop(e), 180)), e.stopPropagation();
|
|
2519
2637
|
},
|
|
2520
|
-
children: S(
|
|
2521
|
-
ref:
|
|
2522
|
-
className:
|
|
2638
|
+
children: S(dr, {
|
|
2639
|
+
ref: We,
|
|
2640
|
+
className: V({ "Mui-focusVisible": $e }, z, "draggable"),
|
|
2523
2641
|
sx: {
|
|
2524
|
-
"& *": (e) =>
|
|
2642
|
+
"& *": (e) => wt(e),
|
|
2525
2643
|
pointerEvents: "auto",
|
|
2526
2644
|
userSelect: "none",
|
|
2527
2645
|
backgroundColor: "var(--sxl-color-elevated, var(--sxl-color-base-100))",
|
|
2528
2646
|
border: "1px solid var(--sxl-color-elevated-border, transparent)",
|
|
2529
|
-
"&:hover:not([disabled]):not(.Mui-focusVisible)": { outline: (e) => `solid ${
|
|
2530
|
-
"&.Mui-focusVisible": { outline: (e) => `solid ${
|
|
2647
|
+
"&:hover:not([disabled]):not(.Mui-focusVisible)": { outline: (e) => `solid ${q(e.palette.text?.primary, .2)} 1px` },
|
|
2648
|
+
"&.Mui-focusVisible": { outline: (e) => `solid ${q(e.palette.text?.primary, .2)} 1px` },
|
|
2531
2649
|
position: "absolute",
|
|
2532
2650
|
maxWidth: "100%",
|
|
2533
|
-
|
|
2651
|
+
...$
|
|
2534
2652
|
},
|
|
2535
2653
|
defaultPosition: ne,
|
|
2536
|
-
titleSize:
|
|
2537
|
-
rootSize:
|
|
2538
|
-
PaperComponent:
|
|
2654
|
+
titleSize: we,
|
|
2655
|
+
rootSize: he,
|
|
2656
|
+
PaperComponent: J,
|
|
2539
2657
|
...X,
|
|
2540
|
-
...
|
|
2658
|
+
...re,
|
|
2541
2659
|
children: [p ? M(l, {
|
|
2542
|
-
className:
|
|
2660
|
+
className: V({ "Mui-selected": $e }, "draggable-title"),
|
|
2543
2661
|
sx: {
|
|
2544
2662
|
cursor: "move",
|
|
2545
2663
|
display: "flex",
|
|
@@ -2553,16 +2671,17 @@ var Yt = {
|
|
|
2553
2671
|
opacity: 1,
|
|
2554
2672
|
transitionDuration: (e) => e.transitions.duration.shortest / 2 + "ms"
|
|
2555
2673
|
},
|
|
2556
|
-
backgroundColor: (e) =>
|
|
2674
|
+
backgroundColor: (e) => q(e.palette.action.hover, .03)
|
|
2557
2675
|
},
|
|
2558
|
-
ref:
|
|
2676
|
+
ref: ve,
|
|
2559
2677
|
children: S(t, {
|
|
2560
2678
|
sx: {
|
|
2561
2679
|
display: "flex",
|
|
2562
2680
|
flex: "1 1 10%",
|
|
2563
2681
|
flexDirection: "row",
|
|
2564
2682
|
alignItems: "center",
|
|
2565
|
-
marginTop: (e) => e.spacing(
|
|
2683
|
+
marginTop: (e) => e.spacing(.25),
|
|
2684
|
+
marginBottom: (e) => e.spacing(.25),
|
|
2566
2685
|
marginLeft: (e) => e.spacing(1),
|
|
2567
2686
|
marginRight: (e) => e.spacing(1)
|
|
2568
2687
|
},
|
|
@@ -2572,46 +2691,50 @@ var Yt = {
|
|
|
2572
2691
|
paddingLeft: (e) => e.spacing(1)
|
|
2573
2692
|
},
|
|
2574
2693
|
children: p
|
|
2575
|
-
}), M(
|
|
2694
|
+
}), M(Ot, {
|
|
2576
2695
|
label: a("window.close"),
|
|
2577
2696
|
children: M(d, {
|
|
2578
2697
|
"aria-label": "close",
|
|
2579
2698
|
sx: { color: (e) => e.palette.text.icon ?? e.palette.action.active },
|
|
2580
|
-
touchRippleRef:
|
|
2699
|
+
touchRippleRef: pe,
|
|
2581
2700
|
onPointerDown: (e) => {
|
|
2582
|
-
|
|
2701
|
+
pe.current?.start(e, { center: !1 }), e.stopPropagation(), e.preventDefault();
|
|
2583
2702
|
},
|
|
2584
|
-
onPointerUp:
|
|
2585
|
-
children: M(
|
|
2703
|
+
onPointerUp: Ie,
|
|
2704
|
+
children: M(Z, { iconKey: "Close" })
|
|
2586
2705
|
})
|
|
2587
2706
|
})]
|
|
2588
2707
|
})
|
|
2589
|
-
}) : null,
|
|
2708
|
+
}) : null, P]
|
|
2590
2709
|
})
|
|
2591
2710
|
})
|
|
2592
2711
|
})
|
|
2593
|
-
}),
|
|
2594
|
-
|
|
2595
|
-
...
|
|
2596
|
-
open:
|
|
2712
|
+
}), Ve = null;
|
|
2713
|
+
N && !A && (Ve = M(_, {
|
|
2714
|
+
...te,
|
|
2715
|
+
open: ae,
|
|
2597
2716
|
onMouseDown: (e) => {
|
|
2598
|
-
|
|
2717
|
+
Ie(), te?.onMouseDown?.(e);
|
|
2599
2718
|
},
|
|
2600
2719
|
onClick: (e) => {
|
|
2601
|
-
b?.(e, "backdropClick"),
|
|
2720
|
+
b?.(e, "backdropClick"), te?.onClick?.(e);
|
|
2602
2721
|
},
|
|
2603
2722
|
sx: {
|
|
2604
2723
|
pointerEvents: "auto",
|
|
2605
|
-
...
|
|
2724
|
+
...te?.sx
|
|
2606
2725
|
}
|
|
2607
2726
|
}));
|
|
2608
|
-
const { getPortalContainer:
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2727
|
+
const { getPortalContainer: qe } = be(), { className: je, attrs: Qe } = ce(xe()?.themeScope), Ge = Se([
|
|
2728
|
+
Fe,
|
|
2729
|
+
me,
|
|
2730
|
+
fe
|
|
2731
|
+
]);
|
|
2732
|
+
return De(S(t, {
|
|
2733
|
+
className: V("MuiModal-root", je),
|
|
2734
|
+
...Qe,
|
|
2612
2735
|
sx: {
|
|
2613
2736
|
position: "fixed",
|
|
2614
|
-
zIndex: "
|
|
2737
|
+
zIndex: Me("popup"),
|
|
2615
2738
|
right: "0",
|
|
2616
2739
|
bottom: "0",
|
|
2617
2740
|
top: "0",
|
|
@@ -2620,78 +2743,86 @@ var Yt = {
|
|
|
2620
2743
|
display: "block",
|
|
2621
2744
|
pointerEvents: "none"
|
|
2622
2745
|
},
|
|
2623
|
-
ref:
|
|
2624
|
-
Oe,
|
|
2625
|
-
ye,
|
|
2626
|
-
ke
|
|
2627
|
-
]),
|
|
2746
|
+
ref: Ge,
|
|
2628
2747
|
onPointerDown: (e) => {
|
|
2629
|
-
|
|
2748
|
+
$e && (e.target === ge.current || e.target.tabIndex < 0) && ge.current?.contains(document.activeElement);
|
|
2630
2749
|
},
|
|
2631
2750
|
onContextMenu: (e) => {
|
|
2632
2751
|
e.isPropagationStopped() || e.preventDefault();
|
|
2633
2752
|
},
|
|
2634
2753
|
onFocus: (e) => {
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
}, 100),
|
|
2754
|
+
!$e && (e.target === ge.current || e.target.tabIndex < 0) && setTimeout(() => {
|
|
2755
|
+
Ee();
|
|
2756
|
+
}, 100), ze(!0), ge.current?.contains(e.target) && e.target !== ge.current && Le(e.target), e.relatedTarget && !Ne && Oe(e.relatedTarget);
|
|
2638
2757
|
},
|
|
2639
2758
|
onBlur: (e) => {
|
|
2640
|
-
|
|
2641
|
-
},
|
|
2642
|
-
children: [
|
|
2643
|
-
}),
|
|
2644
|
-
})),
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2759
|
+
Fe?.current?.contains(e.relatedTarget) || (Oe(null), ze(!1));
|
|
2760
|
+
},
|
|
2761
|
+
children: [Ve, He]
|
|
2762
|
+
}), qe(), Te);
|
|
2763
|
+
})), mr = ["Ok", "Cancel"], hr = {
|
|
2764
|
+
[ie.Info]: "ValidationInformation",
|
|
2765
|
+
[ie.Warning]: "ValidationWarning",
|
|
2766
|
+
[ie.Error]: "ValidationStop",
|
|
2767
|
+
[ie.Success]: "Check"
|
|
2768
|
+
}, fr = (e) => "string" == typeof e ? e : e.id ?? e, gr = (e, t) => void 0 !== t && fr(e) === fr(t), xr = (e) => "string" != typeof e && ("function" == typeof e.disabled ? e.disabled() : !0 === e.disabled), br = B($((e, o) => {
|
|
2769
|
+
const { description: l, type: s, icon: c, onCancel: d, onOption: p, onDone: u, onValidateOption: m, options: h = mr, autoFocusSel: f = ".defaultOption", defaultOption: g = h[0], cancelOption: x = "Cancel", autoFocus: y, children: v, ...w } = e, k = Be({ shouldUseNativeValidation: !1 }), { handleSubmit: C, formState: P } = k, R = W(null), D = W(null), I = Ce(), $ = A(() => {
|
|
2770
|
+
const e = "string" == typeof c ? c : c ? void 0 : hr[s];
|
|
2771
|
+
return e ? M(Z, {
|
|
2772
|
+
iconKey: e,
|
|
2773
|
+
size: 32,
|
|
2774
|
+
ariaHidden: !0
|
|
2775
|
+
}) : c ?? null;
|
|
2776
|
+
}, [c, s]), z = ue((e) => "string" != typeof e ? "function" == typeof e.label ? e.label() : e.label : "Ok" === e ? I("dialog.ok") : "Cancel" === e ? I("dialog.cancel") : e, [I]), B = W(null), [L, N] = H(null), O = ue(async (e) => {
|
|
2777
|
+
const t = fr(e);
|
|
2778
|
+
if (null !== L) return;
|
|
2779
|
+
if (xr(e)) return;
|
|
2780
|
+
const r = gr(e, x);
|
|
2650
2781
|
let o;
|
|
2651
2782
|
try {
|
|
2652
|
-
if (
|
|
2653
|
-
await Promise.resolve(
|
|
2783
|
+
if (N(t), o = !!r || (await Promise.resolve(m?.(t)) ?? !0), !0 !== o) return;
|
|
2784
|
+
await Promise.resolve(p?.(t, r, gr(e, g))), u?.(t);
|
|
2654
2785
|
} catch (e) {} finally {
|
|
2655
|
-
|
|
2786
|
+
N(null);
|
|
2656
2787
|
}
|
|
2657
2788
|
}, [
|
|
2658
|
-
d,
|
|
2659
2789
|
p,
|
|
2660
2790
|
u,
|
|
2791
|
+
m,
|
|
2792
|
+
x,
|
|
2661
2793
|
g,
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
]), L = le((e, t) => {
|
|
2794
|
+
L
|
|
2795
|
+
]), E = ue((e, t) => {
|
|
2665
2796
|
setTimeout(() => {
|
|
2666
|
-
|
|
2797
|
+
O(g);
|
|
2667
2798
|
}, 180);
|
|
2668
|
-
}, [
|
|
2669
|
-
|
|
2799
|
+
}, [O, g]), F = ue(() => {
|
|
2800
|
+
p?.(fr(x), !0, !1), d?.(), u?.(null);
|
|
2670
2801
|
}, [
|
|
2802
|
+
p,
|
|
2803
|
+
x,
|
|
2671
2804
|
d,
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
]), F = C && (Object.keys(C.errors).length > 0 || C.disabled || C.isSubmitting), W = le((e, t, o) => {
|
|
2676
|
-
const i = rr(e, g), a = {
|
|
2805
|
+
u
|
|
2806
|
+
]), K = P && (Object.keys(P.errors).length > 0 || P.disabled || P.isSubmitting), V = ue((e, t, o) => {
|
|
2807
|
+
const i = gr(e, x), a = {
|
|
2677
2808
|
className: t ? "defaultOption" : "action",
|
|
2678
2809
|
type: t ? "submit" : "button",
|
|
2679
2810
|
style: { minWidth: "75px" },
|
|
2680
2811
|
onClick: () => {
|
|
2681
|
-
i ?
|
|
2812
|
+
i ? F() : t || O(e);
|
|
2682
2813
|
}
|
|
2683
2814
|
}, l = "string" != typeof e ? e.renderButton : void 0;
|
|
2684
|
-
if (l) return M(
|
|
2685
|
-
const s = null !==
|
|
2815
|
+
if (l) return M(T, { children: l(a, t) }, `action:${o}`);
|
|
2816
|
+
const s = null !== L && gr(e, L), c = {
|
|
2686
2817
|
className: t ? "defaultOption" : "action",
|
|
2687
2818
|
variant: t ? "contained" : "outlined",
|
|
2688
2819
|
size: "small",
|
|
2689
|
-
disabled: !i && (
|
|
2820
|
+
disabled: !i && (K || xr(e)) || null !== L && !s,
|
|
2690
2821
|
color: "primary",
|
|
2691
2822
|
...a
|
|
2692
2823
|
};
|
|
2693
2824
|
if (t || i) {
|
|
2694
|
-
const e = t ?
|
|
2825
|
+
const e = t ? R : D;
|
|
2695
2826
|
c.touchRippleRef = e, c.onPointerDown = (t) => {
|
|
2696
2827
|
e.current?.start(t, { center: !1 }), t.stopPropagation(), t.preventDefault();
|
|
2697
2828
|
};
|
|
@@ -2700,8 +2831,8 @@ var Yt = {
|
|
|
2700
2831
|
...c,
|
|
2701
2832
|
children: [M("div", {
|
|
2702
2833
|
style: { visibility: s ? "hidden" : void 0 },
|
|
2703
|
-
children:
|
|
2704
|
-
}),
|
|
2834
|
+
children: z(e)
|
|
2835
|
+
}), m && !i ? M(n, {
|
|
2705
2836
|
size: 16,
|
|
2706
2837
|
color: "inherit",
|
|
2707
2838
|
style: { opacity: s ? 1 : 0 },
|
|
@@ -2716,55 +2847,55 @@ var Yt = {
|
|
|
2716
2847
|
}) : null]
|
|
2717
2848
|
}, `action:${o}`);
|
|
2718
2849
|
}, [
|
|
2719
|
-
|
|
2720
|
-
f,
|
|
2850
|
+
h,
|
|
2721
2851
|
g,
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2852
|
+
x,
|
|
2853
|
+
P,
|
|
2854
|
+
z,
|
|
2855
|
+
L
|
|
2856
|
+
]), j = A(() => {
|
|
2726
2857
|
const e = [];
|
|
2727
|
-
for (let t = 0; t <
|
|
2728
|
-
const r =
|
|
2729
|
-
e.push(
|
|
2858
|
+
for (let t = 0; t < h.length; t++) {
|
|
2859
|
+
const r = h[t], o = void 0 !== g ? gr(r, g) : 0 === t;
|
|
2860
|
+
e.push(V(r, o, t));
|
|
2730
2861
|
}
|
|
2731
2862
|
return e;
|
|
2732
2863
|
}, [
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2864
|
+
h,
|
|
2865
|
+
g,
|
|
2866
|
+
P,
|
|
2867
|
+
I,
|
|
2868
|
+
L
|
|
2738
2869
|
]);
|
|
2739
|
-
return M(
|
|
2740
|
-
onCancel:
|
|
2741
|
-
initialPosition: { y: "touch" ===
|
|
2742
|
-
onDone:
|
|
2743
|
-
autoFocusSel:
|
|
2870
|
+
return M(ur, {
|
|
2871
|
+
onCancel: F,
|
|
2872
|
+
initialPosition: { y: "touch" === $e ? "15" : "35" },
|
|
2873
|
+
onDone: u,
|
|
2874
|
+
autoFocusSel: f,
|
|
2744
2875
|
isModal: !0,
|
|
2745
2876
|
ref: o,
|
|
2746
|
-
...
|
|
2747
|
-
children: M(
|
|
2877
|
+
...w,
|
|
2878
|
+
children: M(ze, {
|
|
2748
2879
|
...k,
|
|
2749
2880
|
children: S("form", {
|
|
2750
|
-
ref:
|
|
2751
|
-
onSubmit:
|
|
2881
|
+
ref: B,
|
|
2882
|
+
onSubmit: C(E),
|
|
2752
2883
|
children: [M(a, {
|
|
2753
2884
|
dividers: !0,
|
|
2754
2885
|
onKeyDown: (e) => {
|
|
2755
2886
|
if (e.isDefaultPrevented()) return;
|
|
2756
2887
|
e.stopPropagation();
|
|
2757
2888
|
let t = null, r = null;
|
|
2758
|
-
const o = e.which ===
|
|
2889
|
+
const o = e.which === oe.Escape && x;
|
|
2759
2890
|
if (o) {
|
|
2760
|
-
if (null !==
|
|
2761
|
-
t =
|
|
2891
|
+
if (null !== L) return;
|
|
2892
|
+
t = x, r = D;
|
|
2762
2893
|
} else {
|
|
2763
|
-
if (
|
|
2764
|
-
e.which ===
|
|
2894
|
+
if (K || null !== L) return;
|
|
2895
|
+
e.which === oe.Enter && (t = g ?? h[0], r = R);
|
|
2765
2896
|
}
|
|
2766
2897
|
t && (r?.current?.start(e, { center: !1 }), setTimeout(() => {
|
|
2767
|
-
r?.current?.stop(e), o &&
|
|
2898
|
+
r?.current?.stop(e), o && F();
|
|
2768
2899
|
}, 180));
|
|
2769
2900
|
},
|
|
2770
2901
|
children: S(t, {
|
|
@@ -2772,15 +2903,26 @@ var Yt = {
|
|
|
2772
2903
|
display: "flex",
|
|
2773
2904
|
flexDirection: "column",
|
|
2774
2905
|
whiteSpace: "pre-wrap",
|
|
2775
|
-
rowGap: (e) => e.spacing(
|
|
2906
|
+
rowGap: (e) => e.spacing($ || l ? 1.5 : 0)
|
|
2776
2907
|
},
|
|
2777
2908
|
children: [S(t, {
|
|
2778
2909
|
sx: {
|
|
2779
2910
|
display: "flex",
|
|
2780
|
-
flexDirection: "
|
|
2911
|
+
flexDirection: "row",
|
|
2912
|
+
alignItems: "flex-start",
|
|
2913
|
+
columnGap: (e) => e.spacing(2)
|
|
2781
2914
|
},
|
|
2782
|
-
children: [
|
|
2783
|
-
|
|
2915
|
+
children: [$ ? M(t, {
|
|
2916
|
+
sx: {
|
|
2917
|
+
display: "flex",
|
|
2918
|
+
flex: "none"
|
|
2919
|
+
},
|
|
2920
|
+
children: $
|
|
2921
|
+
}) : null, M(b, {
|
|
2922
|
+
sx: { alignSelf: "center" },
|
|
2923
|
+
children: l
|
|
2924
|
+
})]
|
|
2925
|
+
}), v]
|
|
2784
2926
|
})
|
|
2785
2927
|
}), M(i, {
|
|
2786
2928
|
sx: {
|
|
@@ -2788,17 +2930,17 @@ var Yt = {
|
|
|
2788
2930
|
paddingBottom: (e) => e.spacing(1),
|
|
2789
2931
|
paddingLeft: (e) => e.spacing(1),
|
|
2790
2932
|
paddingRight: (e) => e.spacing(1),
|
|
2791
|
-
backgroundColor: (e) =>
|
|
2933
|
+
backgroundColor: (e) => q(e.palette.action.hover, .03)
|
|
2792
2934
|
},
|
|
2793
|
-
children:
|
|
2935
|
+
children: j
|
|
2794
2936
|
})]
|
|
2795
2937
|
})
|
|
2796
2938
|
})
|
|
2797
2939
|
});
|
|
2798
|
-
})),
|
|
2799
|
-
const { showModal: t } =
|
|
2940
|
+
})), yr = (e) => {
|
|
2941
|
+
const { showModal: t } = Re();
|
|
2800
2942
|
return (r) => new Promise((o) => {
|
|
2801
|
-
const n = t(
|
|
2943
|
+
const n = t(br, {
|
|
2802
2944
|
...e,
|
|
2803
2945
|
...r,
|
|
2804
2946
|
onOption(e, t, n) {
|
|
@@ -2809,12 +2951,12 @@ var Yt = {
|
|
|
2809
2951
|
}
|
|
2810
2952
|
});
|
|
2811
2953
|
});
|
|
2812
|
-
},
|
|
2813
|
-
const { showModal: t } =
|
|
2954
|
+
}, vr = lr(X("utils-mui:inputDialog", () => import("./nxST0XJIy9Y6DTRo.mjs")).load), wr = (e) => {
|
|
2955
|
+
const { showModal: t } = Re();
|
|
2814
2956
|
return (r) => {
|
|
2815
2957
|
const { defaultOption: o = r.options?.[0], cancelOption: n = "Cancel", ...i } = r;
|
|
2816
|
-
return new Promise((r) => {
|
|
2817
|
-
const
|
|
2958
|
+
return new Promise((r, a) => {
|
|
2959
|
+
const l = t(vr, {
|
|
2818
2960
|
...e,
|
|
2819
2961
|
defaultOption: o,
|
|
2820
2962
|
cancelOption: n,
|
|
@@ -2832,14 +2974,17 @@ var Yt = {
|
|
|
2832
2974
|
});
|
|
2833
2975
|
},
|
|
2834
2976
|
onDone: () => {
|
|
2835
|
-
i?.onDone?.(),
|
|
2977
|
+
i?.onDone?.(), l.hide();
|
|
2978
|
+
},
|
|
2979
|
+
onLoadError: (e) => {
|
|
2980
|
+
l.destroy(), a(e);
|
|
2836
2981
|
}
|
|
2837
2982
|
});
|
|
2838
2983
|
});
|
|
2839
2984
|
};
|
|
2840
|
-
},
|
|
2841
|
-
const { commandKey: r, command: o, disabled: n, shortcut: i, children: a, ...l } = e, [s] =
|
|
2842
|
-
return M(
|
|
2985
|
+
}, kr = B($((e, t) => {
|
|
2986
|
+
const { commandKey: r, command: o, disabled: n, shortcut: i, children: a, ...l } = e, [s] = he(r ?? []), c = o ?? s, d = c?.getShortcut();
|
|
2987
|
+
return M(Ot, {
|
|
2843
2988
|
ref: t,
|
|
2844
2989
|
label: void 0 !== n ? c?.getLabel() : "",
|
|
2845
2990
|
shortcut: void 0 !== i ? i : Array.isArray(d) ? d[0] : d,
|
|
@@ -2855,92 +3000,98 @@ var Yt = {
|
|
|
2855
3000
|
children: a
|
|
2856
3001
|
})
|
|
2857
3002
|
});
|
|
2858
|
-
})),
|
|
2859
|
-
function
|
|
2860
|
-
const e =
|
|
3003
|
+
})), Cr = Le;
|
|
3004
|
+
function Mr() {
|
|
3005
|
+
const e = W(null);
|
|
2861
3006
|
return {
|
|
2862
|
-
ripple:
|
|
3007
|
+
ripple: A(() => M(Cr, {
|
|
2863
3008
|
ref: e,
|
|
2864
3009
|
center: !1
|
|
2865
3010
|
}), []),
|
|
2866
|
-
trigger:
|
|
3011
|
+
trigger: L(() => {
|
|
2867
3012
|
e.current?.start(void 0, { center: !0 }), setTimeout(() => e.current?.stop(), 180);
|
|
2868
3013
|
}, [])
|
|
2869
3014
|
};
|
|
2870
3015
|
}
|
|
2871
|
-
var
|
|
2872
|
-
const { commandKey: r, command: o, groupKey: n, icon: i, label: a, showLabel: l = !1, disabled: s, variant: c =
|
|
3016
|
+
var Sr = M(Z, {}), Pr = B($((e, t) => {
|
|
3017
|
+
const { commandKey: r, command: o, groupKey: n, icon: i, label: a, showLabel: l = !1, disabled: s, variant: c = _.Toolbar, shortcut: d, commandState: p, propsTooltip: u, ...m } = e, { ripple: h, trigger: f } = Mr(), g = A(() => ({ onExecute() {
|
|
2873
3018
|
f();
|
|
2874
|
-
} }), [f]), [x] =
|
|
3019
|
+
} }), [f]), [x] = he(r ?? [], g), b = o ?? x, y = L((e) => {
|
|
2875
3020
|
0 === e.button && e.preventDefault();
|
|
2876
|
-
}, []), v =
|
|
3021
|
+
}, []), v = L(async (e) => {
|
|
2877
3022
|
0 === e.button && b && await b.execute(p);
|
|
2878
|
-
}, [b, p]),
|
|
2879
|
-
e.keyCode !==
|
|
2880
|
-
}, [b, p]),
|
|
2881
|
-
if (null === i) return
|
|
3023
|
+
}, [b, p]), w = L((e) => {
|
|
3024
|
+
e.keyCode !== oe.Enter && e.keyCode !== oe.Space || b?.execute(p);
|
|
3025
|
+
}, [b, p]), k = s ?? (!b || b.disabled()), C = b?.getState(), P = A(() => {
|
|
3026
|
+
if (null === i) return Sr;
|
|
2882
3027
|
let e;
|
|
2883
|
-
return e = "function" == typeof i ? b ? i(b) : void 0 : i, e || (e = b?.getIcon(n)), e ? ("string" == typeof e && (e = M(
|
|
2884
|
-
}, [
|
|
3028
|
+
return e = "function" == typeof i ? b ? i(b) : void 0 : i, e || (e = b?.getIcon(n)), e ? ("string" == typeof e && (e = M(Z, { iconKey: e })), e) : c === _.Toolbar || C ? void 0 : Sr;
|
|
3029
|
+
}, [
|
|
3030
|
+
b,
|
|
3031
|
+
n,
|
|
3032
|
+
i,
|
|
3033
|
+
C,
|
|
3034
|
+
c
|
|
3035
|
+
]), T = {
|
|
2885
3036
|
tabIndex: 0,
|
|
2886
3037
|
ref: t,
|
|
2887
|
-
selected: !!
|
|
2888
|
-
icon: c ===
|
|
2889
|
-
selected:
|
|
2890
|
-
children:
|
|
3038
|
+
selected: !!C,
|
|
3039
|
+
icon: c === _.Toolbar ? l ? Oe(P, a ?? b?.getLabel(n)) : P : M(Jt, {
|
|
3040
|
+
selected: C ?? !1,
|
|
3041
|
+
children: P
|
|
2891
3042
|
}),
|
|
2892
3043
|
disableRipple: !0,
|
|
2893
|
-
disabled:
|
|
3044
|
+
disabled: k,
|
|
2894
3045
|
onMouseDown: y,
|
|
2895
3046
|
onMouseUp: v,
|
|
2896
|
-
onKeyDown:
|
|
3047
|
+
onKeyDown: w
|
|
2897
3048
|
};
|
|
2898
3049
|
let R;
|
|
2899
|
-
return R = c ===
|
|
3050
|
+
return R = c === _.Menuitem ? S(Vt, {
|
|
2900
3051
|
...m,
|
|
2901
|
-
...
|
|
3052
|
+
...T,
|
|
2902
3053
|
children: [a ?? b?.getLabel(n), h]
|
|
2903
|
-
}) : M(
|
|
3054
|
+
}) : M(At, {
|
|
2904
3055
|
...m,
|
|
2905
|
-
...
|
|
3056
|
+
...T,
|
|
2906
3057
|
children: h
|
|
2907
|
-
}), a || b?.getLabel() ? (
|
|
3058
|
+
}), a || b?.getLabel() ? (k && (R = M("div", { children: R })), R = M(kr, {
|
|
2908
3059
|
commandKey: r,
|
|
2909
3060
|
command: o,
|
|
2910
|
-
disabled:
|
|
2911
|
-
placement: c ===
|
|
3061
|
+
disabled: k,
|
|
3062
|
+
placement: c === _.Toolbar ? "bottom-start" : "right-start",
|
|
2912
3063
|
shortcut: d,
|
|
2913
3064
|
...u,
|
|
2914
3065
|
children: R
|
|
2915
3066
|
}), R) : R;
|
|
2916
3067
|
}));
|
|
2917
|
-
|
|
2918
|
-
var
|
|
2919
|
-
const { commandKey: r, groupKey: o, icon: n, commandState: i, label: a, variant: l =
|
|
3068
|
+
Pr.displayName = "CommandButton";
|
|
3069
|
+
var Tr = M(Z, {}), Rr = B($((e, t) => {
|
|
3070
|
+
const { commandKey: r, groupKey: o, icon: n, commandState: i, label: a, variant: l = _.Toolbar, disabled: s, parseInput: c, inputProps: u, inputRef: m, ...h } = e, { ripple: f, trigger: g } = Mr(), x = A(() => ({ onExecute() {
|
|
2920
3071
|
g();
|
|
2921
|
-
} }), [g]), b =
|
|
3072
|
+
} }), [g]), b = he(r ?? [], x)[0], y = () => b?.getState()?.toString() || "", [v, w] = H(""), k = W(y()), C = ue(() => {
|
|
2922
3073
|
let e = v;
|
|
2923
3074
|
if (c) try {
|
|
2924
3075
|
e = c(v);
|
|
2925
3076
|
} catch (e) {
|
|
2926
|
-
|
|
3077
|
+
w(y());
|
|
2927
3078
|
return;
|
|
2928
3079
|
}
|
|
2929
|
-
|
|
3080
|
+
k.current !== v ? (k.current = v, b?.execute(e)) : w(y());
|
|
2930
3081
|
}, [
|
|
2931
3082
|
y,
|
|
2932
3083
|
b,
|
|
2933
3084
|
v,
|
|
2934
3085
|
c
|
|
2935
3086
|
]);
|
|
2936
|
-
|
|
2937
|
-
|
|
3087
|
+
O(() => {
|
|
3088
|
+
w(y());
|
|
2938
3089
|
}, [b?.getState()]);
|
|
2939
|
-
const
|
|
2940
|
-
if (null === n) return
|
|
3090
|
+
const P = A(() => {
|
|
3091
|
+
if (null === n) return Tr;
|
|
2941
3092
|
let e;
|
|
2942
|
-
return e = "function" == typeof n ? b ? n(b) : void 0 : n, e || (e = b?.getIcon()), e ? ("string" == typeof e && (e = M(
|
|
2943
|
-
}, [b?.getIcon(), n]),
|
|
3093
|
+
return e = "function" == typeof n ? b ? n(b) : void 0 : n, e || (e = b?.getIcon()), e ? ("string" == typeof e && (e = M(Z, { iconKey: e })), e) : l === _.Toolbar || b?.getState() ? void 0 : Tr;
|
|
3094
|
+
}, [b?.getIcon(), n]), T = A(() => void 0 === a ? b?.getLabel(o) : "function" == typeof a ? a() : a, [a, b?.getLabel(o)]), R = s ?? (!b || b.disabled()), D = A(() => M(d, {
|
|
2944
3095
|
...h,
|
|
2945
3096
|
sx: {
|
|
2946
3097
|
paddingTop: "0px",
|
|
@@ -2987,14 +3138,14 @@ var mr = M(Y, {}), hr = B(D((e, t) => {
|
|
|
2987
3138
|
e.target?.select();
|
|
2988
3139
|
},
|
|
2989
3140
|
onKeyDown: (e) => {
|
|
2990
|
-
if (e.which ===
|
|
2991
|
-
else if (e.which ===
|
|
3141
|
+
if (e.which === oe.Enter) y() !== v && (e.stopPropagation(), e.preventDefault(), C());
|
|
3142
|
+
else if (e.which === oe.Escape) y() !== v && (w(y()), setTimeout(() => {
|
|
2992
3143
|
e.target?.select();
|
|
2993
3144
|
}, 0), e.stopPropagation(), e.preventDefault());
|
|
2994
3145
|
else {
|
|
2995
3146
|
if (e.key.match("[-]")) return e.stopPropagation(), void e.preventDefault();
|
|
2996
3147
|
if (e.key.match("[0-9.]") && (v + e.key).length > 4) return e.stopPropagation(), void e.preventDefault();
|
|
2997
|
-
if (e.which ===
|
|
3148
|
+
if (e.which === oe.Space) return void e.preventDefault();
|
|
2998
3149
|
}
|
|
2999
3150
|
},
|
|
3000
3151
|
onBlur: () => {
|
|
@@ -3002,7 +3153,7 @@ var mr = M(Y, {}), hr = B(D((e, t) => {
|
|
|
3002
3153
|
},
|
|
3003
3154
|
onChange: (e) => {
|
|
3004
3155
|
if (e.target.value.length > 4) return e.stopPropagation(), void e.preventDefault();
|
|
3005
|
-
|
|
3156
|
+
w(e.target.value);
|
|
3006
3157
|
}
|
|
3007
3158
|
})
|
|
3008
3159
|
}), [
|
|
@@ -3010,10 +3161,10 @@ var mr = M(Y, {}), hr = B(D((e, t) => {
|
|
|
3010
3161
|
R,
|
|
3011
3162
|
u,
|
|
3012
3163
|
m
|
|
3013
|
-
]),
|
|
3164
|
+
]), I = {
|
|
3014
3165
|
tabIndex: 0,
|
|
3015
3166
|
ref: t,
|
|
3016
|
-
icon:
|
|
3167
|
+
icon: P,
|
|
3017
3168
|
disableRipple: !0,
|
|
3018
3169
|
disabled: s || !b || b.disabled(),
|
|
3019
3170
|
onMouseDown: (e) => {
|
|
@@ -3023,35 +3174,35 @@ var mr = M(Y, {}), hr = B(D((e, t) => {
|
|
|
3023
3174
|
0 !== e.button || e.isPropagationStopped() || e.isDefaultPrevented() || e.isDefaultPrevented() || (e.preventDefault(), C());
|
|
3024
3175
|
},
|
|
3025
3176
|
onKeyDown: (e) => {
|
|
3026
|
-
e.keyCode !==
|
|
3177
|
+
e.keyCode !== oe.Enter && e.keyCode !== oe.Tab || C();
|
|
3027
3178
|
}
|
|
3028
3179
|
};
|
|
3029
|
-
let
|
|
3030
|
-
return
|
|
3180
|
+
let $;
|
|
3181
|
+
return $ = l === _.Menuitem ? S(Vt, {
|
|
3031
3182
|
...h,
|
|
3032
|
-
|
|
3183
|
+
...I,
|
|
3033
3184
|
children: [
|
|
3034
|
-
|
|
3185
|
+
T,
|
|
3035
3186
|
D,
|
|
3036
3187
|
f
|
|
3037
3188
|
]
|
|
3038
|
-
}) : M(
|
|
3189
|
+
}) : M(At, {
|
|
3039
3190
|
...h,
|
|
3040
|
-
|
|
3191
|
+
...I,
|
|
3041
3192
|
children: f
|
|
3042
|
-
}), b?.getLabel() ? ((b.disabled() || s) && (
|
|
3193
|
+
}), b?.getLabel() ? ((b.disabled() || s) && ($ = M("div", { children: $ })), $ = M(kr, {
|
|
3043
3194
|
commandKey: r,
|
|
3044
|
-
placement: l ===
|
|
3045
|
-
children:
|
|
3046
|
-
}),
|
|
3047
|
-
})),
|
|
3048
|
-
const { variant: r =
|
|
3195
|
+
placement: l === _.Toolbar ? "bottom-start" : "right-start",
|
|
3196
|
+
children: $
|
|
3197
|
+
}), $) : $;
|
|
3198
|
+
})), Dr = B($((e, t) => {
|
|
3199
|
+
const { variant: r = _.Toolbar, quickCommand: o, onQuickClick: n, commandState: i, disabled: a, label: l, icon: s, createPopupPanel: c, tooltip: d, selected: p, groupKey: u, ...m } = e, { ripple: h, trigger: f } = Mr(), g = A(() => ({ onExecute() {
|
|
3049
3200
|
f();
|
|
3050
|
-
} }), [f]), [x] =
|
|
3201
|
+
} }), [f]), [x] = he(o ?? [], g), { label: b, icon: y } = A(() => {
|
|
3051
3202
|
let e = null;
|
|
3052
3203
|
l && (e = "function" == typeof l ? x ? l(x) : null : l), e || (e = x?.getLabel?.(u));
|
|
3053
3204
|
let t = s;
|
|
3054
|
-
return t || (t = x?.getIcon?.(u)), "string" == typeof t ? t = M(
|
|
3205
|
+
return t || (t = x?.getIcon?.(u)), "string" == typeof t ? t = M(Z, { iconKey: t }) : "function" == typeof t && (t = x ? t(x) : void 0), {
|
|
3055
3206
|
label: e,
|
|
3056
3207
|
icon: t
|
|
3057
3208
|
};
|
|
@@ -3067,29 +3218,29 @@ var mr = M(Y, {}), hr = B(D((e, t) => {
|
|
|
3067
3218
|
label: b,
|
|
3068
3219
|
icon: y
|
|
3069
3220
|
};
|
|
3070
|
-
(b || d) && (v.createTooltip = ({ children: e }, t) => M(
|
|
3221
|
+
(b || d) && (v.createTooltip = ({ children: e }, t) => M(Ot, {
|
|
3071
3222
|
label: b,
|
|
3072
3223
|
description: d,
|
|
3073
3224
|
disabled: t,
|
|
3074
3225
|
children: e
|
|
3075
3226
|
}));
|
|
3076
|
-
const
|
|
3077
|
-
return x ? (v.propsQuickButton = {}, v.propsQuickButton.createTooltip = ({ children: e, placement: t }, n) => M(
|
|
3227
|
+
const w = ue((e) => c?.(e), [c]), k = ue((e) => x?.execute(i), [x]);
|
|
3228
|
+
return x ? (v.propsQuickButton = {}, v.propsQuickButton.createTooltip = ({ children: e, placement: t }, n) => M(kr, {
|
|
3078
3229
|
commandKey: o,
|
|
3079
|
-
placement: t ?? r ===
|
|
3230
|
+
placement: t ?? r === _.Toolbar ? "bottom-start" : "right-start",
|
|
3080
3231
|
disabled: n,
|
|
3081
3232
|
children: e
|
|
3082
|
-
}), v.disabled = v.disabled ?? x?.disabled(), n || (v.onQuickClick =
|
|
3233
|
+
}), v.disabled = v.disabled ?? x?.disabled(), n || (v.onQuickClick = k)) : o && (v.onQuickClick = () => {}), v.selected = p ?? x?.getState(), v.createPopupPanel = w, r === _.Toolbar ? M(jt, {
|
|
3083
3234
|
...m,
|
|
3084
3235
|
...v,
|
|
3085
3236
|
ref: t
|
|
3086
|
-
}) : M(
|
|
3237
|
+
}) : M(Ut, {
|
|
3087
3238
|
...m,
|
|
3088
3239
|
...v,
|
|
3089
3240
|
ref: t
|
|
3090
3241
|
});
|
|
3091
3242
|
}));
|
|
3092
|
-
function
|
|
3243
|
+
function Ir(e, t = {}) {
|
|
3093
3244
|
const { variant: r, dividerOrientation: o = "vertical", groupKey: n, commandState: i, propsCommandButton: a, propsCommandPopup: l, registry: s } = t, c = { ...a };
|
|
3094
3245
|
void 0 !== r && (c.variant = r);
|
|
3095
3246
|
const d = { ...l };
|
|
@@ -3104,10 +3255,10 @@ function gr(e, t = {}) {
|
|
|
3104
3255
|
icon: r?.getIcon?.(n),
|
|
3105
3256
|
showLabel: r?.showLabel
|
|
3106
3257
|
};
|
|
3107
|
-
return (r?.render ? r.render(o, n) : M(
|
|
3258
|
+
return (r?.render ? r.render(o, n) : M(Pr, { ...o })) ?? null;
|
|
3108
3259
|
}, u = (e) => {
|
|
3109
3260
|
const t = "string" == typeof e ? e : e.key, r = "string" == typeof e ? void 0 : e;
|
|
3110
|
-
if (!t) return ((e) => Array.isArray(e.members) ? e.render ? e.render({ ...d }, void 0) ?? null : M(
|
|
3261
|
+
if (!t) return ((e) => Array.isArray(e.members) ? e.render ? e.render({ ...d }, void 0) ?? null : M($r, {
|
|
3111
3262
|
...d,
|
|
3112
3263
|
members: e.members,
|
|
3113
3264
|
icon: e.getIcon?.(),
|
|
@@ -3116,7 +3267,7 @@ function gr(e, t = {}) {
|
|
|
3116
3267
|
}) : (e.render ? e.render({ ...d }, n) : null) ?? null)(e);
|
|
3117
3268
|
const o = s?.get(t) ?? null;
|
|
3118
3269
|
return o ? ((e, t, r) => {
|
|
3119
|
-
if (Array.isArray(e.members)) return e.render ? e.render({ ...d }, t) ?? null : M(
|
|
3270
|
+
if (Array.isArray(e.members)) return e.render ? e.render({ ...d }, t) ?? null : M($r, {
|
|
3120
3271
|
...d,
|
|
3121
3272
|
groupKey: t,
|
|
3122
3273
|
icon: r?.getIcon?.(t),
|
|
@@ -3140,34 +3291,34 @@ function gr(e, t = {}) {
|
|
|
3140
3291
|
continue;
|
|
3141
3292
|
}
|
|
3142
3293
|
const r = u(t);
|
|
3143
|
-
r && (f && (m.push(M(
|
|
3294
|
+
r && (f && (m.push(M(He, { orientation: o }, "member-" + h++)), f = !1), m.push(D(r, { key: "member-" + h++ })), g = !0);
|
|
3144
3295
|
}
|
|
3145
3296
|
return m;
|
|
3146
3297
|
}
|
|
3147
|
-
|
|
3148
|
-
var
|
|
3149
|
-
const { groupKey: r, members: o, registry: n, quickCommand: i, icon: a, label: l, showLabel: s, tooltip: c, commandState: d, disabled: p, ...u } = e, m =
|
|
3298
|
+
Dr.displayName = "CommandPopupButton";
|
|
3299
|
+
var $r = B($((e, t) => {
|
|
3300
|
+
const { groupKey: r, members: o, registry: n, quickCommand: i, icon: a, label: l, showLabel: s, tooltip: c, commandState: d, disabled: p, ...u } = e, m = me(), h = n ?? m, f = !o && r ? h.get(r) : null, g = f && Array.isArray(f.members) ? f : null, x = A(() => o ?? (r ? h.resolveMembers(r) : null) ?? null, [
|
|
3150
3301
|
o,
|
|
3151
3302
|
r,
|
|
3152
3303
|
h
|
|
3153
|
-
]), b = r, y = i ?? g?.defaultKey, v = a ?? g?.getIcon?.(b),
|
|
3304
|
+
]), b = r, y = i ?? g?.defaultKey, v = a ?? g?.getIcon?.(b), w = l ?? g?.getLabel?.(b), k = s ?? g?.showLabel, C = c ?? g?.getDescription?.(b), S = A(() => {
|
|
3154
3305
|
const e = [], t = x ?? [];
|
|
3155
3306
|
for (let r = 0; r < t.length; r++) {
|
|
3156
3307
|
const o = t[r];
|
|
3157
3308
|
o && "-" !== o && ("string" == typeof o ? e.push(o) : o.key && e.push(o.key));
|
|
3158
3309
|
}
|
|
3159
3310
|
return e;
|
|
3160
|
-
}, [x]),
|
|
3161
|
-
for (let e = 0; e <
|
|
3162
|
-
const t =
|
|
3311
|
+
}, [x]), P = he(y ? [y, ...S] : S), T = A(() => {
|
|
3312
|
+
for (let e = 0; e < P.length; e++) {
|
|
3313
|
+
const t = P[e];
|
|
3163
3314
|
if (t && !t.disabled()) return !1;
|
|
3164
3315
|
}
|
|
3165
3316
|
return !0;
|
|
3166
|
-
}, [
|
|
3317
|
+
}, [P]), R = L((e) => {
|
|
3167
3318
|
const t = {};
|
|
3168
3319
|
void 0 !== p && (t.disabled = p);
|
|
3169
|
-
const r =
|
|
3170
|
-
variant:
|
|
3320
|
+
const r = Ir(x, {
|
|
3321
|
+
variant: _.Menuitem,
|
|
3171
3322
|
dividerOrientation: "horizontal",
|
|
3172
3323
|
groupKey: b,
|
|
3173
3324
|
commandState: d,
|
|
@@ -3175,7 +3326,7 @@ var xr = B(D((e, t) => {
|
|
|
3175
3326
|
propsCommandPopup: t,
|
|
3176
3327
|
registry: h
|
|
3177
3328
|
});
|
|
3178
|
-
return
|
|
3329
|
+
return St({
|
|
3179
3330
|
...e,
|
|
3180
3331
|
children: r
|
|
3181
3332
|
});
|
|
@@ -3186,25 +3337,25 @@ var xr = B(D((e, t) => {
|
|
|
3186
3337
|
d,
|
|
3187
3338
|
p
|
|
3188
3339
|
]);
|
|
3189
|
-
return x ? M(
|
|
3340
|
+
return x ? M(Dr, {
|
|
3190
3341
|
ref: t,
|
|
3191
3342
|
quickCommand: y,
|
|
3192
3343
|
icon: v,
|
|
3193
|
-
label:
|
|
3194
|
-
showLabel:
|
|
3344
|
+
label: w,
|
|
3345
|
+
showLabel: k,
|
|
3195
3346
|
tooltip: C,
|
|
3196
3347
|
commandState: d,
|
|
3197
|
-
disabled: p ??
|
|
3348
|
+
disabled: p ?? T,
|
|
3198
3349
|
createPopupPanel: R,
|
|
3199
3350
|
...u
|
|
3200
3351
|
}) : null;
|
|
3201
3352
|
}));
|
|
3202
|
-
|
|
3203
|
-
var
|
|
3204
|
-
const { commandKey: r, label: o, groupKey: n, icon: i, sx: a, ...l } = e, [s] =
|
|
3353
|
+
$r.displayName = "CommandGroup";
|
|
3354
|
+
var zr = M(Z, { iconKey: "Check" }), Br = (e) => {
|
|
3355
|
+
const { commandKey: r, label: o, groupKey: n, icon: i, sx: a, ...l } = e, [s] = he(r ?? []), c = A(() => {
|
|
3205
3356
|
if (void 0 !== i) return i;
|
|
3206
3357
|
let e = s?.getIcon(n);
|
|
3207
|
-
return e ? ("string" == typeof e && (e = M(
|
|
3358
|
+
return e ? ("string" == typeof e && (e = M(Z, { iconKey: e })), e) : zr;
|
|
3208
3359
|
}, [
|
|
3209
3360
|
i,
|
|
3210
3361
|
n,
|
|
@@ -3232,42 +3383,42 @@ var br = M(Y, { iconKey: "Check" }), yr = (e) => {
|
|
|
3232
3383
|
children: o ?? s?.getLabel(n)
|
|
3233
3384
|
})]
|
|
3234
3385
|
});
|
|
3235
|
-
},
|
|
3236
|
-
const { sx: r, propsCommandButton: o, parentFloat: n, groupKey: i, members: a, registry: l, renderToolbarPalette: s, children: c, ...d } = e, p =
|
|
3386
|
+
}, Lr = B($((e, t) => {
|
|
3387
|
+
const { sx: r, propsCommandButton: o, parentFloat: n, groupKey: i, members: a, registry: l, renderToolbarPalette: s, children: c, ...d } = e, p = me(), u = l ?? p, m = A(() => a ?? (i ? u.resolveMembers(i) : null) ?? null, [
|
|
3237
3388
|
a,
|
|
3238
3389
|
i,
|
|
3239
3390
|
u,
|
|
3240
3391
|
u.getVersion()
|
|
3241
|
-
]), h =
|
|
3392
|
+
]), h = ye(t, () => ({}), []), [f, x] = H(null), { reference: b } = ge({
|
|
3242
3393
|
label: "toolbar",
|
|
3243
3394
|
anchor: h.current,
|
|
3244
3395
|
parentFloat: n,
|
|
3245
3396
|
createPopupPanel: null
|
|
3246
|
-
}), y =
|
|
3397
|
+
}), y = ue(() => {
|
|
3247
3398
|
const e = f;
|
|
3248
3399
|
e && requestAnimationFrame(() => {
|
|
3249
3400
|
h.current?.contains(document.activeElement) && e.focus();
|
|
3250
3401
|
});
|
|
3251
|
-
}, [f]), v =
|
|
3402
|
+
}, [f]), v = A(() => ({
|
|
3252
3403
|
dense: !0,
|
|
3253
3404
|
outlined: !1
|
|
3254
|
-
}), []),
|
|
3405
|
+
}), []), w = A(() => ({ ...o || {} }), [o]), k = A(() => ({
|
|
3255
3406
|
...v,
|
|
3256
|
-
...
|
|
3257
|
-
}), [v,
|
|
3407
|
+
...w
|
|
3408
|
+
}), [v, w]), C = A(() => ({ ...w }), [k, o]);
|
|
3258
3409
|
let S = 0;
|
|
3259
3410
|
v.dense || (S += 2), v.outlined && S++;
|
|
3260
|
-
let
|
|
3261
|
-
v.dense || (
|
|
3262
|
-
const
|
|
3411
|
+
let P = 2;
|
|
3412
|
+
v.dense || (P = 4);
|
|
3413
|
+
const T = A(() => {
|
|
3263
3414
|
const e = {
|
|
3264
|
-
propsCommandButton:
|
|
3415
|
+
propsCommandButton: k,
|
|
3265
3416
|
propsCommandPopup: {
|
|
3266
3417
|
...C,
|
|
3267
3418
|
...o
|
|
3268
3419
|
}
|
|
3269
3420
|
};
|
|
3270
|
-
return s ? s(e) : m ? M(
|
|
3421
|
+
return s ? s(e) : m ? M(nr, { children: Ir(m, {
|
|
3271
3422
|
dividerOrientation: "vertical",
|
|
3272
3423
|
groupKey: i,
|
|
3273
3424
|
propsCommandButton: e.propsCommandButton,
|
|
@@ -3275,7 +3426,7 @@ var br = M(Y, { iconKey: "Check" }), yr = (e) => {
|
|
|
3275
3426
|
registry: u
|
|
3276
3427
|
}) }) : null;
|
|
3277
3428
|
}, [
|
|
3278
|
-
|
|
3429
|
+
k,
|
|
3279
3430
|
C,
|
|
3280
3431
|
o,
|
|
3281
3432
|
s,
|
|
@@ -3288,8 +3439,8 @@ var br = M(Y, { iconKey: "Check" }), yr = (e) => {
|
|
|
3288
3439
|
sx: {
|
|
3289
3440
|
minHeight: "unset",
|
|
3290
3441
|
height: "unset",
|
|
3291
|
-
paddingTop: `${
|
|
3292
|
-
paddingBottom: `${
|
|
3442
|
+
paddingTop: `${P}px`,
|
|
3443
|
+
paddingBottom: `${P}px`,
|
|
3293
3444
|
paddingLeft: "6px !important",
|
|
3294
3445
|
paddingRight: "6px !important",
|
|
3295
3446
|
flex: "1 1 0%",
|
|
@@ -3308,7 +3459,7 @@ var br = M(Y, { iconKey: "Check" }), yr = (e) => {
|
|
|
3308
3459
|
f && !h?.current?.contains(e.relatedTarget) && x(null);
|
|
3309
3460
|
},
|
|
3310
3461
|
onKeyDown: (e) => {
|
|
3311
|
-
f && e.which ===
|
|
3462
|
+
f && e.which === oe.Escape && f.focus();
|
|
3312
3463
|
},
|
|
3313
3464
|
...d,
|
|
3314
3465
|
children: M("div", {
|
|
@@ -3317,35 +3468,35 @@ var br = M(Y, { iconKey: "Check" }), yr = (e) => {
|
|
|
3317
3468
|
flex: "1 1 100%",
|
|
3318
3469
|
display: "flex",
|
|
3319
3470
|
flexWrap: "wrap",
|
|
3320
|
-
rowGap: `${
|
|
3471
|
+
rowGap: `${P}px`,
|
|
3321
3472
|
columnGap: `${S}px`,
|
|
3322
3473
|
alignItems: "center",
|
|
3323
3474
|
maxWidth: "100%"
|
|
3324
3475
|
},
|
|
3325
|
-
children: M(
|
|
3476
|
+
children: M(re, {
|
|
3326
3477
|
value: b,
|
|
3327
|
-
children: M(
|
|
3478
|
+
children: M(J, {
|
|
3328
3479
|
value: y,
|
|
3329
|
-
children:
|
|
3480
|
+
children: T
|
|
3330
3481
|
})
|
|
3331
3482
|
})
|
|
3332
3483
|
})
|
|
3333
3484
|
});
|
|
3334
3485
|
}));
|
|
3335
|
-
|
|
3336
|
-
var
|
|
3337
|
-
const { groupKey: r, members: o, registry: n, projectAs: i = "quick", defaultIcon: a, ...l } = e, s =
|
|
3486
|
+
Lr.displayName = "CommandToolbar";
|
|
3487
|
+
var Nr = B($((e, t) => {
|
|
3488
|
+
const { groupKey: r, members: o, registry: n, projectAs: i = "quick", defaultIcon: a, ...l } = e, s = me(), c = n ?? s, d = A(() => o ?? (r ? c.resolveMembers(r) : null) ?? null, [
|
|
3338
3489
|
o,
|
|
3339
3490
|
r,
|
|
3340
3491
|
c
|
|
3341
|
-
]), p =
|
|
3492
|
+
]), p = A(() => {
|
|
3342
3493
|
const e = [], t = d ?? [];
|
|
3343
3494
|
for (let r = 0; r < t.length; r++) {
|
|
3344
3495
|
const o = t[r];
|
|
3345
3496
|
o && "-" !== o && ("string" == typeof o ? e.push(o) : o.key && e.push(o.key));
|
|
3346
3497
|
}
|
|
3347
3498
|
return e;
|
|
3348
|
-
}, [d]), u =
|
|
3499
|
+
}, [d]), u = he(p);
|
|
3349
3500
|
let m = null, h = null;
|
|
3350
3501
|
for (let e = 0; !m && e < u.length; e++) {
|
|
3351
3502
|
const t = u[e];
|
|
@@ -3358,7 +3509,7 @@ var kr = B(D((e, t) => {
|
|
|
3358
3509
|
quickCommand: m ?? p[0],
|
|
3359
3510
|
icon: void 0
|
|
3360
3511
|
};
|
|
3361
|
-
return M(
|
|
3512
|
+
return M($r, {
|
|
3362
3513
|
ref: t,
|
|
3363
3514
|
groupKey: r,
|
|
3364
3515
|
members: o,
|
|
@@ -3367,5 +3518,5 @@ var kr = B(D((e, t) => {
|
|
|
3367
3518
|
...f
|
|
3368
3519
|
});
|
|
3369
3520
|
}));
|
|
3370
|
-
|
|
3371
|
-
export {
|
|
3521
|
+
Nr.displayName = "ToggleGroupButton";
|
|
3522
|
+
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, Ct as ClosingReason, Pr as CommandButton, $r as CommandGroup, Dr as CommandPopupButton, Lr as CommandToolbar, kr as CommandTooltip, zt as ContextMenu, He as ExhibitDivider, Tt as ExhibitFloatPanel, Dt as ExhibitFloatProvider, At as ExhibitIconButton, qt as ExhibitMenuHeader, Vt as ExhibitMenuItem, Xt as ExhibitOptionButton, jt as ExhibitPopupIconButton, Ut as ExhibitPopupMenuItem, Ot as ExhibitTooltip, Rr as InputCommandButton, ur as InternalWindow, Br as LabelIcon, at as LazyLoadErrorPanel, Wt as MenuItemInsets, Te as ModalProvider, It as NestingPopupButton, br as OptionsDialog, nr as OverflowPalette, kt as PopupAutoFocus, Mt as PopupButtonType, Jt as SelectedIcon, Bt as SimpleTooltip, ot as StackTrace, nt as StackTraceErrorPanel, Nr as ToggleGroupButton, Ne as buttonLabelSx, Oe as composeButtonContent, Pt as createDownArrow, yt as createExhibitTheme, Ae as createScrollButton, dt as createStrokeShadowFilter, St as defaultCreatePopupPanel, gt as elevateColor, vt as getScrollbarCssVariables, ft as hexToRGB, Je as hideLoadingPanel, lr as lazyModal, lt as lazyPanel, fr as optionIdentity, rr as registerUtilsMuiLocales, Ir as renderMembers, Fe as renderScrollButtonEdge, We as renderScrollButtonEnd, Ke as renderScrollButtonStart, wt as scrollbarTheming, _e as showLoadingPanel, ct as strokeShadowFilter, Nt as toShortcutElements, wr as useInputDialog, sr as useLazyWindow, yr as useOptionsDialog };
|