@sheetxl/utils-mui 0.8.0-beta.2 → 0.8.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +17 -7
- package/browser/esm/{Dypk9nOG6XqTqq_J.mjs → CZTs_B098Z3VLwtH.mjs} +5 -5
- package/browser/esm/{BTjqmdqRredVe5QC.mjs → CxrWP6EfUrThqSuY.mjs} +865 -738
- package/browser/esm/index.mjs +751 -696
- package/licenses/dependencies.txt +2 -74
- package/node/esm/{CwSLcaHUI7AukMBS.mjs → DTa5twriT7hpPLUG.mjs} +4 -4
- package/node/esm/index.mjs +709 -635
- package/package.json +11 -14
- package/types/src/command/CommandGroup.d.ts +1 -1
- package/types/src/command/CommandPopupButton.d.ts +3 -3
- package/types/src/components/ContextMenu.d.ts +2 -2
- package/types/src/components/ScrollButtons.d.ts +3 -3
- package/types/src/components/index.d.ts +1 -0
- package/types/src/components/lazyPanel.d.ts +23 -0
- package/types/src/float/ExhibitFloatPanel.d.ts +4 -4
- package/types/src/float/ExhibitFloatProvider.d.ts +1 -1
- package/types/src/float/ExhibitPopup.d.ts +15 -7
- package/types/src/theme/ExhibitTheme.d.ts +0 -8
- package/browser/cjs/BUKGN088i3WnPm2X.cjs +0 -3
- package/browser/cjs/BoIvdNHQ8K9GSQnQ.cjs +0 -1
- package/browser/cjs/index.cjs +0 -4
package/node/esm/index.mjs
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.21
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License:
|
|
5
|
+
* License: MIT
|
|
6
6
|
*/
|
|
7
|
-
import { Backdrop as e, Box as t, Button as 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
|
|
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 P,
|
|
10
|
-
import
|
|
11
|
-
import { alpha as
|
|
12
|
-
import { CommonUtils as
|
|
13
|
-
import { Command as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { deepmerge as Se } from "@mui/utils";
|
|
17
|
-
import Pe from "tiny-invariant";
|
|
9
|
+
import { Children as P, Suspense as T, cloneElement as R, createContext as D, forwardRef as I, isValidElement as $, memo as z, useCallback as B, useContext as L, useEffect as N, useId as O, useLayoutEffect as E, useMemo as A, useReducer as F, useRef as K, useState as W } from "react";
|
|
10
|
+
import H from "clsx";
|
|
11
|
+
import { alpha as V, darken as q, lighten as j } from "@mui/system";
|
|
12
|
+
import { CommonUtils as Q, ErrorUtils as G, defineLazyModule as U } from "@sheetxl/utils";
|
|
13
|
+
import { Command as X, CommandButtonType as Y, CommandFocusProvider as _, DynamicIcon as J, FloatPopper as Z, FloatProvider as ee, FloatStackProvider as te, KeyCodes as re, KeyModifiers as oe, NotifierType as ne, ReactUtils as ie, RenderSlot as ae, ScrollbarOrientation as le, defaultRenderScrollButtonEdge 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";
|
|
18
16
|
import Te, { useModal as Re } from "mui-modal-provider";
|
|
19
17
|
import { createPortal as De } from "react-dom";
|
|
20
18
|
import Ie from "react-draggable";
|
|
@@ -45,27 +43,31 @@ function Oe(e, r) {
|
|
|
45
43
|
}) : e ?? o ?? void 0;
|
|
46
44
|
}
|
|
47
45
|
var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
48
|
-
const r =
|
|
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
|
+
}, Ae = (e) => {
|
|
49
|
+
const t = {
|
|
52
50
|
style: { cursor: "pointer" },
|
|
53
51
|
...e
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
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
|
+
}, Fe = (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 Ee = ({ 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 Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
88
90
|
children: a
|
|
89
91
|
}) : a
|
|
90
92
|
});
|
|
91
|
-
}, Ke = (e) =>
|
|
93
|
+
}, Ke = (e) => Fe(e, le.Horizontal ? M(J, {
|
|
92
94
|
iconKey: "ArrowLeft",
|
|
93
95
|
size: "small"
|
|
94
|
-
}) : M(
|
|
96
|
+
}) : M(J, {
|
|
95
97
|
iconKey: "ArrowUpward",
|
|
96
98
|
size: "small"
|
|
97
|
-
}), "Scroll " + (e.orientation === le.Horizontal ? "Left" : "Up"), `Scroll ${e.orientation === le.Horizontal ? "left" : "up"}, 'Ctrl+Click' to scroll to the beginning`), We = (e) =>
|
|
99
|
+
}), "Scroll " + (e.orientation === le.Horizontal ? "Left" : "Up"), `Scroll ${e.orientation === le.Horizontal ? "left" : "up"}, 'Ctrl+Click' to scroll to the beginning`), We = (e) => Fe(e, le.Horizontal ? M(J, {
|
|
98
100
|
iconKey: "ArrowRight",
|
|
99
101
|
size: "small"
|
|
100
|
-
}) : M(
|
|
102
|
+
}) : M(J, {
|
|
101
103
|
iconKey: "ArrowDownward",
|
|
102
104
|
size: "small"
|
|
103
|
-
}), "Scroll " + (e.orientation === le.Horizontal ? "Right" : "Down"), `Scroll ${e.orientation === le.Horizontal ? "right" : "down"}, 'Ctrl+Click' to scroll to the end`), He =
|
|
105
|
+
}), "Scroll " + (e.orientation === le.Horizontal ? "Right" : "Down"), `Scroll ${e.orientation === le.Horizontal ? "right" : "down"}, 'Ctrl+Click' to scroll to the end`), He = z(I((e, t) => {
|
|
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 Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
118
120
|
flexItem: !0,
|
|
119
121
|
...n
|
|
120
122
|
});
|
|
121
|
-
})), Ve = "_traverse-ellipsis_14l1h_1", qe =
|
|
123
|
+
})), Ve = "_traverse-ellipsis_14l1h_1", qe = z((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 Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
181
183
|
]
|
|
182
184
|
})
|
|
183
185
|
});
|
|
184
|
-
}), je =
|
|
186
|
+
}), je = z((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 Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
221
223
|
})]
|
|
222
224
|
})
|
|
223
225
|
});
|
|
224
|
-
}), Qe =
|
|
226
|
+
}), Qe = z((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 Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
278
280
|
]
|
|
279
281
|
})
|
|
280
282
|
});
|
|
281
|
-
}), Ge =
|
|
283
|
+
}), Ge = z((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 Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
342
344
|
]
|
|
343
345
|
})
|
|
344
346
|
});
|
|
345
|
-
}), Ue =
|
|
347
|
+
}), Ue = z((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 Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
389
391
|
})]
|
|
390
392
|
})
|
|
391
393
|
});
|
|
392
|
-
}), Xe =
|
|
394
|
+
}), Xe = z((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 Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
403
405
|
},
|
|
404
406
|
...r
|
|
405
407
|
},
|
|
406
|
-
className:
|
|
408
|
+
className: H(Ve, "animated-icon"),
|
|
407
409
|
...l,
|
|
408
410
|
children: [
|
|
409
411
|
M("div", { className: "primary" }),
|
|
@@ -429,8 +431,8 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
429
431
|
});
|
|
430
432
|
}, Je = (e) => {
|
|
431
433
|
e && e.classList.contains("animating") && (e.classList.add("animating-idle"), e.classList.remove("animating"));
|
|
432
|
-
}, Ze =
|
|
433
|
-
const { sx: o, style: 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, ...
|
|
434
|
+
}, Ze = z(I((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, {
|
|
434
436
|
"data-sxl-loading-label": "",
|
|
435
437
|
variant: "caption",
|
|
436
438
|
component: "div",
|
|
@@ -470,7 +472,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
470
472
|
}
|
|
471
473
|
})
|
|
472
474
|
});
|
|
473
|
-
}, [h, p]), v =
|
|
475
|
+
}, [h, p]), v = K(null), w = Se([v, r]), k = A(() => {
|
|
474
476
|
let e = S(t, {
|
|
475
477
|
sx: {
|
|
476
478
|
display: "flex",
|
|
@@ -480,7 +482,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
480
482
|
},
|
|
481
483
|
children: [x, y]
|
|
482
484
|
});
|
|
483
|
-
return !0 === s && (e = M(
|
|
485
|
+
return !0 === s && (e = M(f, {
|
|
484
486
|
elevation: 0,
|
|
485
487
|
sx: {
|
|
486
488
|
display: "flex",
|
|
@@ -499,7 +501,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
499
501
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
500
502
|
boxShadow: (e) => e.shadows[2],
|
|
501
503
|
"& .primary": {
|
|
502
|
-
background: (e) => `${
|
|
504
|
+
background: (e) => `${V(e.palette.info.contrastText, .9)} !important`,
|
|
503
505
|
boxShadow: (e) => `0 0 0 1px ${"dark" === e.palette.mode ? e.palette.text.secondary : e.palette.divider}`,
|
|
504
506
|
boxSizing: "content-box",
|
|
505
507
|
border: "solid transparent"
|
|
@@ -508,8 +510,8 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
508
510
|
},
|
|
509
511
|
children: e
|
|
510
512
|
})), M(t, {
|
|
511
|
-
...
|
|
512
|
-
ref:
|
|
513
|
+
...g,
|
|
514
|
+
ref: w,
|
|
513
515
|
className: "animatable",
|
|
514
516
|
sx: {
|
|
515
517
|
cursor: "wait",
|
|
@@ -573,14 +575,15 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
573
575
|
o,
|
|
574
576
|
s,
|
|
575
577
|
x,
|
|
576
|
-
y
|
|
577
|
-
|
|
578
|
-
|
|
578
|
+
y,
|
|
579
|
+
w
|
|
580
|
+
]), C = K(!1);
|
|
581
|
+
return ve(() => {
|
|
579
582
|
if (!1 === c) return;
|
|
580
583
|
const e = v.current;
|
|
581
|
-
e && !
|
|
582
|
-
}, [v.current, c]),
|
|
583
|
-
|
|
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]), N(() => () => {
|
|
586
|
+
C.current && (v.current?.classList.remove("animating"), C.current = !1, a?.());
|
|
584
587
|
}, []), k;
|
|
585
588
|
}));
|
|
586
589
|
Ze.displayName = "AnimatedLoadingPanel";
|
|
@@ -590,10 +593,10 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
590
593
|
e = new URL(e).pathname;
|
|
591
594
|
} catch {}
|
|
592
595
|
return e = (e = e.replace(/^\/+/, "")).replace(/^@?fs[\\/]/, "");
|
|
593
|
-
}, ot =
|
|
594
|
-
const n =
|
|
596
|
+
}, ot = z(({ error: e, maxLines: r = Number.MAX_SAFE_INTEGER, hideLineNumbers: o = !1 }) => {
|
|
597
|
+
const n = Ce(), [i, a] = W(null);
|
|
595
598
|
if (!e?.stack) return null;
|
|
596
|
-
const l =
|
|
599
|
+
const l = G.collectErrorChain(e).reverse(), s = [];
|
|
597
600
|
l.forEach(({ error: e }, t) => {
|
|
598
601
|
const r = (e.stack || "").split("\n").filter(Boolean).map((e) => {
|
|
599
602
|
let t = e.match(et);
|
|
@@ -675,7 +678,7 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
675
678
|
"&:hover": { opacity: 1 }
|
|
676
679
|
},
|
|
677
680
|
title: n("stackTrace.copy"),
|
|
678
|
-
children: M(
|
|
681
|
+
children: M(J, {
|
|
679
682
|
iconKey: "ContentCopy",
|
|
680
683
|
style: { fontSize: "0.875rem" }
|
|
681
684
|
})
|
|
@@ -691,7 +694,7 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
691
694
|
"&:hover": { opacity: 1 }
|
|
692
695
|
},
|
|
693
696
|
title: n("stackTrace.log"),
|
|
694
|
-
children: M(
|
|
697
|
+
children: M(J, {
|
|
695
698
|
iconKey: "BugReport",
|
|
696
699
|
style: { fontSize: "0.875rem" }
|
|
697
700
|
})
|
|
@@ -791,11 +794,11 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
791
794
|
});
|
|
792
795
|
});
|
|
793
796
|
ot.displayName = "StackTrace";
|
|
794
|
-
var nt =
|
|
795
|
-
const { sx: o, icon: n = M(
|
|
797
|
+
var nt = z(I((e, r) => {
|
|
798
|
+
const { sx: o, icon: n = M(J, {
|
|
796
799
|
iconKey: "Error",
|
|
797
800
|
style: { fontSize: 48 }
|
|
798
|
-
}), 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), [
|
|
799
802
|
i,
|
|
800
803
|
a,
|
|
801
804
|
l,
|
|
@@ -837,7 +840,7 @@ var nt = B($((e, r) => {
|
|
|
837
840
|
height: "100%",
|
|
838
841
|
boxSizing: "border-box"
|
|
839
842
|
}
|
|
840
|
-
}), M(
|
|
843
|
+
}), M(f, {
|
|
841
844
|
elevation: 0,
|
|
842
845
|
sx: {
|
|
843
846
|
display: "flex",
|
|
@@ -876,7 +879,7 @@ var nt = B($((e, r) => {
|
|
|
876
879
|
display: "flex",
|
|
877
880
|
color: (e) => e.palette.error.main
|
|
878
881
|
},
|
|
879
|
-
children: "string" == typeof n ? M(
|
|
882
|
+
children: "string" == typeof n ? M(J, {
|
|
880
883
|
iconKey: n,
|
|
881
884
|
style: { fontSize: 48 }
|
|
882
885
|
}) : n
|
|
@@ -892,53 +895,58 @@ var nt = B($((e, r) => {
|
|
|
892
895
|
]);
|
|
893
896
|
}));
|
|
894
897
|
nt.displayName = "StackTraceErrorPanel";
|
|
895
|
-
var it = (e, r = !1, o = !1, n = !1, i = (e) => e) =>
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
})
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
898
|
+
var it = (e, r = !1, o = !1, n = !1, i = (e) => e) => {
|
|
899
|
+
if ($(e)) return e;
|
|
900
|
+
if (e instanceof Error) return S(t, {
|
|
901
|
+
sx: {
|
|
902
|
+
display: "flex",
|
|
903
|
+
flexDirection: "column",
|
|
904
|
+
minWidth: 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 = z((e) => {
|
|
949
|
+
const { error: o, ...n } = e, i = we(), a = Ce(), l = o instanceof Error ? o.message : String(o);
|
|
942
950
|
return M(nt, {
|
|
943
951
|
hideStackTrace: !0,
|
|
944
952
|
error: S(t, {
|
|
@@ -951,7 +959,7 @@ var it = (e, r = !1, o = !1, n = !1, i = (e) => e) => z(e) ? e : e instanceof Er
|
|
|
951
959
|
children: [M(b, {
|
|
952
960
|
variant: "body2",
|
|
953
961
|
component: "div",
|
|
954
|
-
children:
|
|
962
|
+
children: l
|
|
955
963
|
}), i ? M(r, {
|
|
956
964
|
variant: "outlined",
|
|
957
965
|
size: "small",
|
|
@@ -962,8 +970,15 @@ var it = (e, r = !1, o = !1, n = !1, i = (e) => e) => z(e) ? e : e instanceof Er
|
|
|
962
970
|
...n
|
|
963
971
|
});
|
|
964
972
|
});
|
|
973
|
+
function lt(e) {
|
|
974
|
+
const t = pe(e, { renderError: ({ error: e }) => M(at, { error: e }) });
|
|
975
|
+
return (e) => M(T, {
|
|
976
|
+
fallback: M(Ze, {}),
|
|
977
|
+
children: M(t, { ...e })
|
|
978
|
+
});
|
|
979
|
+
}
|
|
965
980
|
at.displayName = "LazyLoadErrorPanel";
|
|
966
|
-
var
|
|
981
|
+
var st = z(I((e, r) => {
|
|
967
982
|
const { chips: n, sx: i, ...a } = e, l = A(() => {
|
|
968
983
|
if (!n) return null;
|
|
969
984
|
const e = Array.isArray(n) ? n : [n], t = [], r = e.length;
|
|
@@ -975,7 +990,7 @@ var lt = B($((e, r) => {
|
|
|
975
990
|
color: "primary",
|
|
976
991
|
size: "small",
|
|
977
992
|
sx: { scale: "0.8" }
|
|
978
|
-
}, "chip-" + n) :
|
|
993
|
+
}, "chip-" + n) : R(r, { key: "chip-" + n }), t.push(i);
|
|
979
994
|
}
|
|
980
995
|
return t;
|
|
981
996
|
}, [n]);
|
|
@@ -991,33 +1006,38 @@ var lt = B($((e, r) => {
|
|
|
991
1006
|
...a,
|
|
992
1007
|
children: l
|
|
993
1008
|
});
|
|
994
|
-
})),
|
|
1009
|
+
})), ct = (e) => {
|
|
995
1010
|
if ("dark" === e.palette.mode) return `drop-shadow(0px 0px 1px ${"dark" === e.palette.mode ? e.palette.text.primary : e.palette.divider})`;
|
|
996
|
-
},
|
|
1011
|
+
}, dt = (e = 1) => (t) => {
|
|
997
1012
|
if ("dark" === t.palette.mode) return `drop-shadow(0px 0px ${e}px ${"dark" === t.palette.mode ? t.palette.text.primary : t.palette.divider})`;
|
|
998
|
-
},
|
|
1013
|
+
}, pt = (e) => M(J, {
|
|
999
1014
|
...e,
|
|
1000
1015
|
iconKey: "ArrowDownOutline"
|
|
1001
|
-
}),
|
|
1016
|
+
}), ut = (e) => M(J, {
|
|
1002
1017
|
...e,
|
|
1003
1018
|
iconKey: "ArrowRightOutline"
|
|
1004
|
-
}),
|
|
1019
|
+
}), mt = /^#?([a-f\d])([a-f\d])([a-f\d])$/i, ht = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i, ft = function(e, t = null) {
|
|
1005
1020
|
if (!e) return e;
|
|
1006
|
-
e = e.replace(
|
|
1021
|
+
e = e.replace(mt, function(e, t, r, o) {
|
|
1007
1022
|
return t + t + r + r + o + o;
|
|
1008
1023
|
});
|
|
1009
|
-
let r =
|
|
1024
|
+
let r = ht.exec(e);
|
|
1010
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;
|
|
1011
1026
|
}, gt = function(e, t = .2, r = "light") {
|
|
1012
1027
|
if (!e) return e;
|
|
1013
1028
|
let o = "dark" !== r;
|
|
1014
|
-
t < 0 && (o = !o, t *= -1), e =
|
|
1029
|
+
t < 0 && (o = !o, t *= -1), e = ft(e);
|
|
1015
1030
|
try {
|
|
1016
|
-
return o ?
|
|
1031
|
+
return o ? q(e, Math.max(0, Math.min(1, 1 * t))) : j(e, Math.max(0, Math.min(1, 1.5 * t)));
|
|
1017
1032
|
} catch {
|
|
1018
1033
|
return e;
|
|
1019
1034
|
}
|
|
1020
|
-
},
|
|
1035
|
+
}, xt = (e) => {
|
|
1036
|
+
e.stopPropagation();
|
|
1037
|
+
}, bt = {
|
|
1038
|
+
onMouseDown: xt,
|
|
1039
|
+
onTouchStart: xt
|
|
1040
|
+
}, yt = (e, t) => {
|
|
1021
1041
|
let r = v({ palette: { mode: e ? "dark" : "light" } });
|
|
1022
1042
|
const o = {
|
|
1023
1043
|
"--icon-shadow": e ? r.palette.text.primary : r.palette.divider,
|
|
@@ -1029,16 +1049,19 @@ var lt = B($((e, r) => {
|
|
|
1029
1049
|
palette: {
|
|
1030
1050
|
mode: e ? "dark" : "light",
|
|
1031
1051
|
text: {
|
|
1032
|
-
secondary: e ? r.palette.text.secondary :
|
|
1033
|
-
icon: e ?
|
|
1052
|
+
secondary: e ? r.palette.text.secondary : V(r.palette.text.secondary, .75),
|
|
1053
|
+
icon: e ? V(r.palette.text.secondary, .7) : V(r.palette.text.primary, .75)
|
|
1034
1054
|
}
|
|
1035
1055
|
},
|
|
1036
1056
|
components: {
|
|
1037
1057
|
MuiDialogTitle: { styleOverrides: { root: { fontWeight: "normal" } } },
|
|
1038
1058
|
MuiSelect: {
|
|
1039
1059
|
defaultProps: {
|
|
1040
|
-
IconComponent:
|
|
1041
|
-
MenuProps: {
|
|
1060
|
+
IconComponent: pt,
|
|
1061
|
+
MenuProps: {
|
|
1062
|
+
container: () => document.fullscreenElement,
|
|
1063
|
+
...bt
|
|
1064
|
+
}
|
|
1042
1065
|
},
|
|
1043
1066
|
styleOverrides: { icon: { top: "unset" } }
|
|
1044
1067
|
},
|
|
@@ -1064,7 +1087,10 @@ var lt = B($((e, r) => {
|
|
|
1064
1087
|
"&.Mui-selected": {}
|
|
1065
1088
|
} } },
|
|
1066
1089
|
MuiMenu: {
|
|
1067
|
-
defaultProps: {
|
|
1090
|
+
defaultProps: {
|
|
1091
|
+
container: () => document.fullscreenElement,
|
|
1092
|
+
...bt
|
|
1093
|
+
},
|
|
1068
1094
|
styleOverrides: { root: {
|
|
1069
1095
|
paddingTop: "2px",
|
|
1070
1096
|
paddingBottom: "2px",
|
|
@@ -1122,17 +1148,17 @@ var lt = B($((e, r) => {
|
|
|
1122
1148
|
} }
|
|
1123
1149
|
}
|
|
1124
1150
|
}, i = n;
|
|
1125
|
-
return t && (i =
|
|
1151
|
+
return t && (i = Pe(n, t)), v(i);
|
|
1126
1152
|
};
|
|
1127
|
-
function
|
|
1128
|
-
return t =
|
|
1153
|
+
function vt(e, t) {
|
|
1154
|
+
return t = Pe({
|
|
1129
1155
|
track: gt(e.palette.background.paper, .05, e?.palette.mode),
|
|
1130
1156
|
thumb: gt(e.palette.background.paper, .3, e?.palette.mode),
|
|
1131
1157
|
active: e.palette.primary.main,
|
|
1132
1158
|
corner: e.palette.background.paper,
|
|
1133
1159
|
outline: !1
|
|
1134
1160
|
}, t || {}), de({
|
|
1135
|
-
track:
|
|
1161
|
+
track: V(t.track, .2),
|
|
1136
1162
|
thumb: t.thumb,
|
|
1137
1163
|
button: t.button,
|
|
1138
1164
|
active: t.active,
|
|
@@ -1140,8 +1166,8 @@ function xt(e, t) {
|
|
|
1140
1166
|
border: t.track
|
|
1141
1167
|
});
|
|
1142
1168
|
}
|
|
1143
|
-
function
|
|
1144
|
-
const r =
|
|
1169
|
+
function wt(e, t) {
|
|
1170
|
+
const r = vt(e, t), o = {
|
|
1145
1171
|
...r,
|
|
1146
1172
|
"& .scrollbar, & .vsb-track, & .vsb-thumb": { ...r },
|
|
1147
1173
|
"&::-webkit-scrollbar, & *::-webkit-scrollbar": {
|
|
@@ -1182,22 +1208,22 @@ function bt(e, t) {
|
|
|
1182
1208
|
},
|
|
1183
1209
|
"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner": { backgroundColor: "var(--scrollbar-corner-color)" }
|
|
1184
1210
|
};
|
|
1185
|
-
return
|
|
1211
|
+
return Q.getPlatform() === Q.OSType.Firefox && (o["* .pseudo-scrollbar"] = { scrollbarColor: "var(--scrollbar-thumb-color) transparent" }, o["* .pseudo-scrollbar:hover:not([disabled])"] = { scrollbarColor: "var(--scrollbar-active-color) transparent" }), o;
|
|
1186
1212
|
}
|
|
1187
|
-
var
|
|
1213
|
+
var kt = {
|
|
1188
1214
|
Popup: "popup",
|
|
1189
1215
|
Anchor: "anchor"
|
|
1190
|
-
},
|
|
1216
|
+
}, Ct = {
|
|
1191
1217
|
ByPopup: "popupDone",
|
|
1192
1218
|
Cancel: "popupCancel",
|
|
1193
1219
|
ClickAway: "clickAway"
|
|
1194
|
-
},
|
|
1220
|
+
}, Mt = {
|
|
1195
1221
|
Toolbar: "toolbar",
|
|
1196
1222
|
Menuitem: "menuitem"
|
|
1197
|
-
},
|
|
1223
|
+
}, St = (e) => {
|
|
1198
1224
|
const { closeFloat: r, closeFloatAll: o, floatReference: n, popupContainer: i, children: a, className: l, sx: s, ...c } = e;
|
|
1199
1225
|
return M(t, {
|
|
1200
|
-
className:
|
|
1226
|
+
className: H("menu", l),
|
|
1201
1227
|
sx: {
|
|
1202
1228
|
display: "flex",
|
|
1203
1229
|
flexDirection: "column",
|
|
@@ -1208,9 +1234,9 @@ var yt = {
|
|
|
1208
1234
|
...c,
|
|
1209
1235
|
children: a
|
|
1210
1236
|
});
|
|
1211
|
-
},
|
|
1237
|
+
}, Pt = (e, t, r) => {
|
|
1212
1238
|
let o = "";
|
|
1213
|
-
return r && (o = (o ? o + " " : "") + "rotate(180deg)"), M(
|
|
1239
|
+
return r && (o = (o ? o + " " : "") + "rotate(180deg)"), M(pt, {
|
|
1214
1240
|
style: {
|
|
1215
1241
|
marginLeft: e ? void 0 : t ? "-0.25rem" : "-3px",
|
|
1216
1242
|
marginRight: e ? void 0 : t ? "-0.25rem" : "-6px",
|
|
@@ -1218,17 +1244,17 @@ var yt = {
|
|
|
1218
1244
|
},
|
|
1219
1245
|
color: "inherit"
|
|
1220
1246
|
});
|
|
1221
|
-
},
|
|
1222
|
-
const { open: r, anchorEl: o, anchorPosition: n, label: i, floatReference: a,
|
|
1247
|
+
}, Tt = z(I((e, t) => {
|
|
1248
|
+
const { open: r, anchorEl: o, anchorPosition: n, label: i, floatReference: a, renderPopupPanel: 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] = W(), S = K(null), P = ue((e, t) => {
|
|
1223
1249
|
C(e), c?.(S.current, t);
|
|
1224
1250
|
}, [c]), T = A(() => {
|
|
1225
1251
|
const e = {
|
|
1226
|
-
popupContainer:
|
|
1252
|
+
popupContainer: k,
|
|
1227
1253
|
floatReference: a,
|
|
1228
1254
|
children: h,
|
|
1229
1255
|
...x
|
|
1230
|
-
}
|
|
1231
|
-
return M(
|
|
1256
|
+
};
|
|
1257
|
+
return M(f, {
|
|
1232
1258
|
elevation: 8,
|
|
1233
1259
|
ref: S,
|
|
1234
1260
|
sx: {
|
|
@@ -1238,18 +1264,21 @@ var yt = {
|
|
|
1238
1264
|
outline: "none",
|
|
1239
1265
|
backgroundColor: "var(--sxl-color-elevated, var(--sxl-color-base-100, #fff))",
|
|
1240
1266
|
border: "1px solid var(--sxl-color-elevated-border, transparent)",
|
|
1241
|
-
"&.MuiPaper-root": (e) =>
|
|
1267
|
+
"&.MuiPaper-root": (e) => wt(e)
|
|
1242
1268
|
},
|
|
1243
1269
|
tabIndex: 0,
|
|
1244
|
-
children:
|
|
1270
|
+
children: M(ae, {
|
|
1271
|
+
render: l,
|
|
1272
|
+
props: e
|
|
1273
|
+
})
|
|
1245
1274
|
});
|
|
1246
1275
|
}, [
|
|
1247
1276
|
l,
|
|
1248
1277
|
h,
|
|
1249
|
-
|
|
1278
|
+
k,
|
|
1250
1279
|
a
|
|
1251
1280
|
]);
|
|
1252
|
-
return M(
|
|
1281
|
+
return M(Z, {
|
|
1253
1282
|
ref: t,
|
|
1254
1283
|
anchorEl: o,
|
|
1255
1284
|
anchorPosition: n,
|
|
@@ -1257,27 +1286,27 @@ var yt = {
|
|
|
1257
1286
|
open: r,
|
|
1258
1287
|
onMount: P,
|
|
1259
1288
|
onOpening: v,
|
|
1260
|
-
onOpen:
|
|
1289
|
+
onOpen: w,
|
|
1261
1290
|
onClosing: b,
|
|
1262
1291
|
onClose: y,
|
|
1263
1292
|
...s,
|
|
1264
1293
|
children: T
|
|
1265
1294
|
});
|
|
1266
1295
|
}));
|
|
1267
|
-
|
|
1268
|
-
var
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
}),
|
|
1273
|
-
const { nestedChildren: o, variant: n, disabled: i,
|
|
1296
|
+
Tt.displayName = "ExhibitFloatPanel";
|
|
1297
|
+
var Rt = (e) => M(Tt, { ...e }), Dt = (e) => M(ee, {
|
|
1298
|
+
...e,
|
|
1299
|
+
renderFloatPanel: Rt,
|
|
1300
|
+
renderPopupPanel: St
|
|
1301
|
+
}), It = z(I((e, r) => {
|
|
1302
|
+
const { nestedChildren: o, variant: n, disabled: i, renderPopupPanel: a, ...l } = e, s = {
|
|
1274
1303
|
disabled: i,
|
|
1275
|
-
|
|
1304
|
+
renderPopupPanel: ue((e) => {
|
|
1276
1305
|
if (!o || 0 === o.length) return M(C, {});
|
|
1277
1306
|
const { popupContainer: n, floatReference: i, ref: a, ...l } = e, s = [];
|
|
1278
1307
|
for (let e = 0; e < o.length; e++) {
|
|
1279
1308
|
const t = o[e];
|
|
1280
|
-
t && s.push(M(
|
|
1309
|
+
t && s.push(M(It, {
|
|
1281
1310
|
...l,
|
|
1282
1311
|
...t
|
|
1283
1312
|
}, e));
|
|
@@ -1293,34 +1322,34 @@ var St = (e) => M(Mt, { ...e }), Pt = (e) => M(te, {
|
|
|
1293
1322
|
children: [
|
|
1294
1323
|
"Children here",
|
|
1295
1324
|
s,
|
|
1296
|
-
M(
|
|
1325
|
+
M(Vt, { children: "Close other children" })
|
|
1297
1326
|
]
|
|
1298
1327
|
});
|
|
1299
1328
|
}, [o]),
|
|
1300
1329
|
...l
|
|
1301
1330
|
};
|
|
1302
|
-
return M(n ===
|
|
1303
|
-
})),
|
|
1304
|
-
const { children: r, sx: o, parentFloat: n,
|
|
1305
|
-
|
|
1331
|
+
return M(n === Mt.Toolbar ? jt : Ut, { ...s });
|
|
1332
|
+
})), $t = { placement: "right-start" }, zt = z(I((e, t) => {
|
|
1333
|
+
const { children: r, sx: o, parentFloat: n, renderPopupPanel: i, propsPopper: a = $t, label: l, ...s } = e;
|
|
1334
|
+
if (!$(r)) throw new Error("Must supply a child component to enable a context menu.");
|
|
1306
1335
|
const c = r, d = A(() => ({
|
|
1307
1336
|
...c?.props,
|
|
1308
1337
|
...s,
|
|
1309
1338
|
onContextMenu: (e) => {
|
|
1310
1339
|
c?.props?.onContextMenu?.(e), e.isDefaultPrevented() || (s?.onContextMenu?.(e), e.isDefaultPrevented() || (m(e), e.preventDefault()));
|
|
1311
1340
|
}
|
|
1312
|
-
}), [s, c?.props]), p = ue(i ?? (() => {}), [i]), [u, m] =
|
|
1341
|
+
}), [s, c?.props]), p = ue(i ?? (() => {}), [i]), [u, m] = W(null), { reference: h, component: f } = ge({
|
|
1313
1342
|
label: l ?? "contextMenu",
|
|
1314
1343
|
propsPopper: a,
|
|
1315
1344
|
parentFloat: n,
|
|
1316
1345
|
anchor: { getBoundingClientRect: () => new DOMRect(u?.clientX || 0, u?.clientY || 0) },
|
|
1317
1346
|
onClose: () => m(null),
|
|
1318
|
-
|
|
1347
|
+
renderPopupPanel: p
|
|
1319
1348
|
});
|
|
1320
|
-
return
|
|
1349
|
+
return N(() => {
|
|
1321
1350
|
u ? h.open(0) : h.close(0);
|
|
1322
|
-
}, [u]), S(C, { children: [
|
|
1323
|
-
})),
|
|
1351
|
+
}, [u]), S(C, { children: [R(r, d), f] });
|
|
1352
|
+
})), Bt = I((e, t) => {
|
|
1324
1353
|
const { slotProps: r, ...o } = e, { getPortalContainer: n, isFullscreen: i } = be();
|
|
1325
1354
|
return M(x, {
|
|
1326
1355
|
ref: t,
|
|
@@ -1334,8 +1363,8 @@ var St = (e) => M(Mt, { ...e }), Pt = (e) => M(te, {
|
|
|
1334
1363
|
...o
|
|
1335
1364
|
});
|
|
1336
1365
|
});
|
|
1337
|
-
|
|
1338
|
-
var
|
|
1366
|
+
Bt.displayName = "SimpleTooltip";
|
|
1367
|
+
var Lt = z((e) => {
|
|
1339
1368
|
const { modifier: r, sx: o, ...n } = e;
|
|
1340
1369
|
return M(t, {
|
|
1341
1370
|
sx: {
|
|
@@ -1347,11 +1376,11 @@ var $t = B((e) => {
|
|
|
1347
1376
|
borderLeftWidth: "1px",
|
|
1348
1377
|
borderRightWidth: "1px",
|
|
1349
1378
|
borderBottomWidth: "2px",
|
|
1350
|
-
borderTopColor: (e) =>
|
|
1351
|
-
borderLeftColor: (e) =>
|
|
1352
|
-
borderRightColor: (e) =>
|
|
1353
|
-
borderBottomColor: (e) =>
|
|
1354
|
-
backgroundColor: (e) =>
|
|
1379
|
+
borderTopColor: (e) => V(e.palette.background.paper, e.palette.action.disabledOpacity),
|
|
1380
|
+
borderLeftColor: (e) => V(e.palette.background.paper, e.palette.action.disabledOpacity),
|
|
1381
|
+
borderRightColor: (e) => V(e.palette.background.paper, e.palette.action.disabledOpacity),
|
|
1382
|
+
borderBottomColor: (e) => V(e.palette.background.paper, 1 - e.palette.action.disabledOpacity),
|
|
1383
|
+
backgroundColor: (e) => V(e.palette.action.hover, e.palette.action.disabledOpacity),
|
|
1355
1384
|
paddingLeft: "4px",
|
|
1356
1385
|
paddingRight: "4px",
|
|
1357
1386
|
minHeight: "1.6em",
|
|
@@ -1374,10 +1403,10 @@ var $t = B((e) => {
|
|
|
1374
1403
|
children: r
|
|
1375
1404
|
})
|
|
1376
1405
|
});
|
|
1377
|
-
}),
|
|
1406
|
+
}), Nt = (e, r, o = !1, n = null) => {
|
|
1378
1407
|
if (Array.isArray(e)) {
|
|
1379
1408
|
let i = [], a = e;
|
|
1380
|
-
for (let e = 0; e < a.length; e++) i.push(
|
|
1409
|
+
for (let e = 0; e < a.length; e++) i.push(Nt(a[e], r, o, n ?? "" + e));
|
|
1381
1410
|
return M(t, {
|
|
1382
1411
|
sx: {
|
|
1383
1412
|
display: "flex",
|
|
@@ -1390,34 +1419,36 @@ var $t = B((e) => {
|
|
|
1390
1419
|
if (!e?.key) return null;
|
|
1391
1420
|
const i = {};
|
|
1392
1421
|
for (let t = 0; e.modifiers && t < e.modifiers.length; t++) i[e.modifiers[t]] = !0;
|
|
1393
|
-
const a = [], l =
|
|
1394
|
-
return i?.[
|
|
1422
|
+
const a = [], l = Q.getPlatform() === Q.OSType.MacOS || Q.getPlatform() === Q.OSType.IOS ? r("shortcut.modifier.cmd") : r("shortcut.modifier.ctrl");
|
|
1423
|
+
return i?.[oe.Ctrl] && (a.push(M(Lt, { modifier: o ? "^" : M("div", {
|
|
1395
1424
|
style: { paddingRight: "1px" },
|
|
1396
1425
|
children: l
|
|
1397
|
-
}) }, "ctrl")), a.push("+")), i?.[
|
|
1426
|
+
}) }, "ctrl")), a.push("+")), i?.[oe.Alt] && (a.push(M(Lt, { modifier: o ? "⌥" : r("shortcut.modifier.alt") }, "alt")), a.push("+")), i?.[oe.Shift] && (a.push(M(Lt, { modifier: o ? "⇧" : M("div", {
|
|
1398
1427
|
style: { paddingRight: "1px" },
|
|
1399
1428
|
children: r("shortcut.modifier.shift")
|
|
1400
|
-
}) }, "shift")), a.push("+")), i?.[
|
|
1429
|
+
}) }, "shift")), a.push("+")), i?.[oe.Meta] && (a.push(M(Lt, { modifier: o ? M("div", {
|
|
1401
1430
|
style: { paddingTop: "1px" },
|
|
1402
1431
|
children: "⌘"
|
|
1403
|
-
}) : r("shortcut.modifier.meta") }, "meta")), a.push("+")), a.push(M(
|
|
1432
|
+
}) : r("shortcut.modifier.meta") }, "meta")), a.push("+")), a.push(M(Lt, { modifier: ie.toPrettyKeyCode(e.key) }, "character")), M(t, {
|
|
1404
1433
|
sx: {
|
|
1405
1434
|
display: "flex",
|
|
1406
|
-
alignItems: "center"
|
|
1435
|
+
alignItems: "center",
|
|
1436
|
+
flexShrink: 0,
|
|
1437
|
+
whiteSpace: "nowrap"
|
|
1407
1438
|
},
|
|
1408
1439
|
children: a
|
|
1409
1440
|
}, n);
|
|
1410
|
-
},
|
|
1411
|
-
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,
|
|
1412
|
-
let
|
|
1413
|
-
i && (
|
|
1414
|
-
const [x, y] =
|
|
1415
|
-
|
|
1441
|
+
}, Ot = z(I((e, r) => {
|
|
1442
|
+
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();
|
|
1443
|
+
let g = null;
|
|
1444
|
+
i && (g = Nt(i, f, c));
|
|
1445
|
+
const [x, y] = W(null);
|
|
1446
|
+
N(() => {
|
|
1416
1447
|
Promise.resolve(n).then((e) => {
|
|
1417
1448
|
y(e);
|
|
1418
1449
|
});
|
|
1419
1450
|
}, [n]);
|
|
1420
|
-
return M(
|
|
1451
|
+
return M(Bt, {
|
|
1421
1452
|
slotProps: { popper: {
|
|
1422
1453
|
sx: {
|
|
1423
1454
|
"& .MuiTooltip-tooltip": { marginTop: "0px !important" },
|
|
@@ -1446,9 +1477,9 @@ var $t = B((e) => {
|
|
|
1446
1477
|
sx: { flex: "1 1 100%" },
|
|
1447
1478
|
children: x
|
|
1448
1479
|
}),
|
|
1449
|
-
a ? M(
|
|
1450
|
-
|
|
1451
|
-
|
|
1480
|
+
a ? M(st, { chips: a }) : null,
|
|
1481
|
+
g ? M(t, { sx: { marginLeft: "8px" } }, "leadingSpace") : M(C, {}),
|
|
1482
|
+
g
|
|
1452
1483
|
]
|
|
1453
1484
|
}), l ? M(b, {
|
|
1454
1485
|
variant: "caption",
|
|
@@ -1473,8 +1504,8 @@ var $t = B((e) => {
|
|
|
1473
1504
|
children: d
|
|
1474
1505
|
})
|
|
1475
1506
|
});
|
|
1476
|
-
})),
|
|
1477
|
-
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:
|
|
1507
|
+
})), Et = M(J, {}), At = M(J, { iconKey: "Check" }), Ft = z(I((e, r) => {
|
|
1508
|
+
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] = W(!1), v = {
|
|
1478
1509
|
marginRight: "0px",
|
|
1479
1510
|
padding: o ? "2px" : "7px",
|
|
1480
1511
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
@@ -1482,7 +1513,7 @@ var $t = B((e) => {
|
|
|
1482
1513
|
border: (e) => `solid ${n ? e.palette.divider : "transparent"} 1px`,
|
|
1483
1514
|
"& .MuiTouchRipple-child": { borderRadius: (e) => `${e.shape.borderRadius}px !important` },
|
|
1484
1515
|
"&.Mui-selected": {
|
|
1485
|
-
backgroundColor: (e) =>
|
|
1516
|
+
backgroundColor: (e) => V(e.palette.text.primary, e.palette.action.selectedOpacity),
|
|
1486
1517
|
border: (e) => `solid ${n ? e.palette.text?.primary : e.palette.divider} 1px`
|
|
1487
1518
|
},
|
|
1488
1519
|
"&.Mui-disabled": { border: (e) => `solid ${n ? e.palette.divider : "transparent"} 1px` },
|
|
@@ -1495,43 +1526,43 @@ var $t = B((e) => {
|
|
|
1495
1526
|
border: "1px solid transparent"
|
|
1496
1527
|
},
|
|
1497
1528
|
...u
|
|
1498
|
-
},
|
|
1499
|
-
"&:hover:not(.Mui-disabled, [disabled])": {
|
|
1529
|
+
}, w = {
|
|
1530
|
+
"@media (hover: hover)": { "&:hover:not(.Mui-disabled, [disabled])": {
|
|
1500
1531
|
color: (e) => e.palette.text.primary,
|
|
1501
1532
|
border: (e) => `solid ${n ? e.palette.text?.primary : e.palette.divider} 1px`,
|
|
1502
|
-
"&.Mui-selected": { backgroundColor: (e) =>
|
|
1533
|
+
"&.Mui-selected": { backgroundColor: (e) => V(e.palette.text.primary, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity) },
|
|
1503
1534
|
"> .outline-hover": { outline: (e) => `solid ${n ? e.palette.text?.primary : e.palette.divider} 1px` },
|
|
1504
|
-
backgroundColor:
|
|
1505
|
-
},
|
|
1535
|
+
backgroundColor: (e) => V(e.palette.action.active, e.palette.action.hoverOpacity)
|
|
1536
|
+
} },
|
|
1506
1537
|
"&.Mui-focusVisible": {
|
|
1507
1538
|
outline: (e) => `solid ${e.palette.primary.main} 1px`,
|
|
1508
1539
|
border: (e) => `1px solid ${e.palette?.primary?.main}`,
|
|
1509
1540
|
zIndex: 1
|
|
1510
1541
|
}
|
|
1511
1542
|
};
|
|
1512
|
-
let
|
|
1513
|
-
i || (
|
|
1543
|
+
let k = v;
|
|
1544
|
+
i || (k = Q.mergeContentful(v, w));
|
|
1514
1545
|
const C = A(() => {
|
|
1515
1546
|
let e = "function" == typeof l ? l() : l;
|
|
1516
|
-
return null === e ? e : e || (void 0 === a ?
|
|
1547
|
+
return null === e ? e : e || (void 0 === a ? Et : At);
|
|
1517
1548
|
}, [l, a]);
|
|
1518
1549
|
let P = S(d, {
|
|
1519
1550
|
component: "div",
|
|
1520
1551
|
ref: r,
|
|
1521
|
-
className:
|
|
1552
|
+
className: H({
|
|
1522
1553
|
"Mui-focusVisible": b,
|
|
1523
1554
|
"Mui-selected": a,
|
|
1524
1555
|
"Mui-disabled": m
|
|
1525
1556
|
}, h),
|
|
1526
1557
|
onFocus: (e) => {
|
|
1527
|
-
y(!0),
|
|
1558
|
+
y(!0), f?.(e);
|
|
1528
1559
|
},
|
|
1529
1560
|
onBlur: (e) => {
|
|
1530
|
-
y(!1),
|
|
1561
|
+
y(!1), g?.(e);
|
|
1531
1562
|
},
|
|
1532
1563
|
size: "small",
|
|
1533
1564
|
TouchRippleProps: { center: !1 },
|
|
1534
|
-
sx:
|
|
1565
|
+
sx: k,
|
|
1535
1566
|
edge: "end",
|
|
1536
1567
|
...x,
|
|
1537
1568
|
disabled: m || !1,
|
|
@@ -1539,7 +1570,7 @@ var $t = B((e) => {
|
|
|
1539
1570
|
});
|
|
1540
1571
|
if (s) if (s.simple && s.label && !s.disabled) {
|
|
1541
1572
|
const { label: e, description: r, maxWidth: o, shortcut: n, useModifierSymbols: i, componentDisabled: a, simple: l, chips: c, ref: d, ...p } = s;
|
|
1542
|
-
P = M(
|
|
1573
|
+
P = M(Bt, {
|
|
1543
1574
|
disableInteractive: !0,
|
|
1544
1575
|
title: e ?? "",
|
|
1545
1576
|
...p,
|
|
@@ -1548,26 +1579,26 @@ var $t = B((e) => {
|
|
|
1548
1579
|
children: P
|
|
1549
1580
|
})
|
|
1550
1581
|
});
|
|
1551
|
-
} else P = M(
|
|
1582
|
+
} else P = M(Ot, {
|
|
1552
1583
|
children: P,
|
|
1553
1584
|
...s
|
|
1554
1585
|
});
|
|
1555
1586
|
return P;
|
|
1556
|
-
})),
|
|
1587
|
+
})), Kt = M(J, {}), Wt = {
|
|
1557
1588
|
marginLeft: "4px",
|
|
1558
1589
|
marginRight: "4px",
|
|
1559
1590
|
paddingLeft: "6px",
|
|
1560
1591
|
paddingRight: "18px"
|
|
1561
|
-
},
|
|
1562
|
-
const { icon: r =
|
|
1592
|
+
}, Ht = (e) => e.icon, Vt = z(I((e, t) => {
|
|
1593
|
+
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] = W(!1), [C, P] = W(!1), T = A(() => {
|
|
1563
1594
|
const e = o?.({
|
|
1564
1595
|
icon: r,
|
|
1565
1596
|
disabled: p,
|
|
1566
1597
|
selected: a
|
|
1567
1598
|
});
|
|
1568
1599
|
return e ? M(h, {
|
|
1569
|
-
className:
|
|
1570
|
-
"Mui-focusVisible":
|
|
1600
|
+
className: H({
|
|
1601
|
+
"Mui-focusVisible": w,
|
|
1571
1602
|
"Mui-hovered": C
|
|
1572
1603
|
}),
|
|
1573
1604
|
sx: {
|
|
@@ -1580,7 +1611,7 @@ var $t = B((e) => {
|
|
|
1580
1611
|
o,
|
|
1581
1612
|
p,
|
|
1582
1613
|
r,
|
|
1583
|
-
|
|
1614
|
+
w,
|
|
1584
1615
|
C,
|
|
1585
1616
|
b,
|
|
1586
1617
|
a
|
|
@@ -1599,24 +1630,25 @@ var $t = B((e) => {
|
|
|
1599
1630
|
d?.(e), e.isDefaultPrevented() || v?.closeChild();
|
|
1600
1631
|
},
|
|
1601
1632
|
TouchRippleProps: { center: !1 },
|
|
1602
|
-
className:
|
|
1603
|
-
"Mui-focusVisible":
|
|
1633
|
+
className: H({
|
|
1634
|
+
"Mui-focusVisible": w,
|
|
1604
1635
|
"Mui-hovered": C
|
|
1605
1636
|
}, n),
|
|
1606
1637
|
onFocus: (e) => {
|
|
1607
|
-
i?.(e),
|
|
1638
|
+
i?.(e), k(!0);
|
|
1608
1639
|
},
|
|
1609
1640
|
onBlur: (e) => {
|
|
1610
|
-
l?.(e),
|
|
1641
|
+
l?.(e), k(!1);
|
|
1611
1642
|
},
|
|
1612
1643
|
sx: {
|
|
1613
1644
|
flex: "1 1 100%",
|
|
1645
|
+
whiteSpace: "nowrap",
|
|
1614
1646
|
fontFamily: (e) => e.typography.fontFamily,
|
|
1615
1647
|
fontWeight: 400,
|
|
1616
1648
|
lineHeight: 1.5,
|
|
1617
1649
|
paddingTop: "2px",
|
|
1618
1650
|
paddingBottom: "2px",
|
|
1619
|
-
...
|
|
1651
|
+
...Wt,
|
|
1620
1652
|
borderRadius: "4px",
|
|
1621
1653
|
fontSize: "0.875em",
|
|
1622
1654
|
"@media (pointer: coarse)": { fontSize: "1em" },
|
|
@@ -1624,21 +1656,21 @@ var $t = B((e) => {
|
|
|
1624
1656
|
"&.Mui-selected": { color: (e) => e.palette.text.primary },
|
|
1625
1657
|
color: (e) => e.palette.text.secondary,
|
|
1626
1658
|
"&.Mui-hovered:not(.Mui-disabled, [disabled])": { color: (e) => e.palette.text.primary },
|
|
1627
|
-
...
|
|
1659
|
+
...f
|
|
1628
1660
|
},
|
|
1629
1661
|
...y,
|
|
1630
1662
|
children: [
|
|
1631
1663
|
T,
|
|
1632
1664
|
u,
|
|
1633
|
-
x ? M(
|
|
1665
|
+
x ? M(st, { chips: x }) : null
|
|
1634
1666
|
]
|
|
1635
1667
|
});
|
|
1636
|
-
return
|
|
1668
|
+
return g && (R = M(Ot, {
|
|
1637
1669
|
children: R,
|
|
1638
1670
|
placement: "right-start",
|
|
1639
|
-
...
|
|
1671
|
+
...g
|
|
1640
1672
|
})), R;
|
|
1641
|
-
})),
|
|
1673
|
+
})), qt = z(I((e, t) => {
|
|
1642
1674
|
const { children: r, sx: o, primary: n = !1, variant: i = "subtitle1", ...a } = e;
|
|
1643
1675
|
return M(C, { children: M(b, {
|
|
1644
1676
|
ref: t,
|
|
@@ -1656,8 +1688,8 @@ var $t = B((e) => {
|
|
|
1656
1688
|
...a,
|
|
1657
1689
|
children: r
|
|
1658
1690
|
}) });
|
|
1659
|
-
})),
|
|
1660
|
-
const { dense: o = !0, outlined: n = !1, label: i, showLabel: a = !1, selected: l = !1, onQuickClick: s, parentFloat: c,
|
|
1691
|
+
})), jt = z(I((e, r) => {
|
|
1692
|
+
const { dense: o = !0, outlined: n = !1, label: i, showLabel: a = !1, selected: l = !1, onQuickClick: s, parentFloat: c, renderPopupPanel: p, propsPopup: u, onPopupOpen: m, onPopupClose: h, propsQuickButton: f, renderQuickButton: g, tooltip: x = "", renderTooltip: b, icon: y, disabled: v, propsButton: k = Q.EmptyObject, disableHover: P, ripple: T, primary: R, children: D, sx: I, className: $, ...z } = e, B = w(), L = A(() => {
|
|
1661
1693
|
const e = (e, t, r, o = r) => {
|
|
1662
1694
|
const i = "boolean" == typeof n ? null : n[e];
|
|
1663
1695
|
return "function" == typeof i ? i(t) : i || (n ? r : o);
|
|
@@ -1671,10 +1703,10 @@ var $t = B((e) => {
|
|
|
1671
1703
|
active: "dark" === B.palette.mode ? B.palette.text.secondary : B.palette.text.primary,
|
|
1672
1704
|
text: B.palette.text.icon ?? B.palette.action.active
|
|
1673
1705
|
};
|
|
1674
|
-
}, [n, B]), [N, O] =
|
|
1675
|
-
anchor:
|
|
1706
|
+
}, [n, B]), [N, O] = W(!1), [E, F] = W(!1), [q, j] = W(!1), G = K(null), U = K(null), X = ge({
|
|
1707
|
+
anchor: G.current,
|
|
1676
1708
|
label: i,
|
|
1677
|
-
|
|
1709
|
+
renderPopupPanel: p,
|
|
1678
1710
|
parentFloat: c,
|
|
1679
1711
|
propsPopper: u?.propsPopper,
|
|
1680
1712
|
onClose: () => {
|
|
@@ -1726,21 +1758,27 @@ var $t = B((e) => {
|
|
|
1726
1758
|
},
|
|
1727
1759
|
"& .MuiTouchRipple-child": { borderRadius: (e) => `${e.shape.borderRadius}px !important` }
|
|
1728
1760
|
}, t = { "&.Mui-selected": {
|
|
1729
|
-
backgroundColor: (e) =>
|
|
1761
|
+
backgroundColor: (e) => V(e.palette.primary.main, e.palette.action.selectedOpacity),
|
|
1730
1762
|
"&:hover:not(.Mui-disabled)": {
|
|
1731
|
-
backgroundColor: (e) =>
|
|
1732
|
-
"@media (hover: none)": { backgroundColor: (e) =>
|
|
1763
|
+
backgroundColor: (e) => V(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
1764
|
+
"@media (hover: none)": { backgroundColor: (e) => V(e.palette.primary.main, e.palette.action.selectedOpacity) }
|
|
1733
1765
|
}
|
|
1734
1766
|
} }, r = {
|
|
1735
1767
|
maxHeight: "100%",
|
|
1736
1768
|
"&.Mui-selected": {
|
|
1737
|
-
backgroundColor: (e) =>
|
|
1769
|
+
backgroundColor: (e) => V(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity),
|
|
1738
1770
|
"&:hover:not(.Mui-disabled)": {
|
|
1739
|
-
backgroundColor: (e) =>
|
|
1740
|
-
"@media (hover: none)": { backgroundColor: (e) =>
|
|
1771
|
+
backgroundColor: (e) => V(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
1772
|
+
"@media (hover: none)": { backgroundColor: (e) => V(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity) }
|
|
1773
|
+
}
|
|
1774
|
+
},
|
|
1775
|
+
"&:hover:not(.Mui-disabled, [disabled])": {
|
|
1776
|
+
color: (e) => e.palette.text.primary,
|
|
1777
|
+
...P ? null : {
|
|
1778
|
+
backgroundColor: (e) => V(e.palette.action.active, e.palette.action.hoverOpacity),
|
|
1779
|
+
"@media (hover: none)": { backgroundColor: "transparent" }
|
|
1741
1780
|
}
|
|
1742
1781
|
},
|
|
1743
|
-
"&:hover:not(.Mui-disabled, [disabled])": { color: (e) => e.palette.text.primary },
|
|
1744
1782
|
backgroundColor: () => P ? "transparent" : void 0,
|
|
1745
1783
|
color: (e) => e.palette.text.icon,
|
|
1746
1784
|
"&.Mui-disabled > .icon path": {
|
|
@@ -1749,37 +1787,41 @@ var $t = B((e) => {
|
|
|
1749
1787
|
},
|
|
1750
1788
|
padding: () => o ? "2px 3px" : "7px",
|
|
1751
1789
|
marginRight: "0"
|
|
1752
|
-
}, n =
|
|
1790
|
+
}, n = Q.mergeContentful(r, e), i = Q.mergeContentful(n, t), a = Q.mergeContentful(r, e);
|
|
1753
1791
|
return {
|
|
1754
1792
|
quickButtonStyling: n,
|
|
1755
1793
|
openQuickButtonStyling: i,
|
|
1756
1794
|
compoundStyling: a,
|
|
1757
|
-
openCompoundStyling:
|
|
1795
|
+
openCompoundStyling: Q.mergeContentful(a, t)
|
|
1758
1796
|
};
|
|
1759
1797
|
}, [L, P]), Z = ue((e) => {
|
|
1760
|
-
const { children: t, ref: r,
|
|
1761
|
-
return M(
|
|
1798
|
+
const { children: t, ref: r, disabled: o, ...n } = e;
|
|
1799
|
+
return M(Bt, {
|
|
1762
1800
|
ref: r,
|
|
1763
|
-
...
|
|
1801
|
+
...n,
|
|
1764
1802
|
disableInteractive: !0,
|
|
1765
1803
|
children: t
|
|
1766
1804
|
});
|
|
1767
|
-
}, []), ee = s ||
|
|
1768
|
-
const { tooltip: t,
|
|
1805
|
+
}, []), ee = s || g, te = ee && (f?.tooltip || f?.renderTooltip), oe = (e) => {
|
|
1806
|
+
const { tooltip: t, renderTooltip: r, sx: o, ...n } = e;
|
|
1769
1807
|
let i = M(d, {
|
|
1770
1808
|
sx: { ...o },
|
|
1771
1809
|
component: "div",
|
|
1772
1810
|
...n
|
|
1773
1811
|
});
|
|
1774
|
-
return te ? (i = (
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1812
|
+
return te ? (i = M(ae, {
|
|
1813
|
+
render: r ?? Z,
|
|
1814
|
+
props: {
|
|
1815
|
+
title: N ? "" : t ?? x,
|
|
1816
|
+
children: M("div", { children: i }),
|
|
1817
|
+
disabled: N
|
|
1818
|
+
}
|
|
1819
|
+
}), i) : i;
|
|
1778
1820
|
}, ne = { onKeyDown: (e) => {
|
|
1779
|
-
e.keyCode ===
|
|
1821
|
+
e.keyCode === re.Space ? _() : e.keyCode === re.F4 || e.keyCode === re.Down ? X.reference.open(0) : e.keyCode === re.Up && X.reference.close(0);
|
|
1780
1822
|
} };
|
|
1781
1823
|
let ie = M(C, {});
|
|
1782
|
-
const
|
|
1824
|
+
const le = A(() => Oe(("function" == typeof y ? y() : y) ?? (ee ? Qt : null), a ? i : null), [
|
|
1783
1825
|
y,
|
|
1784
1826
|
i,
|
|
1785
1827
|
a,
|
|
@@ -1787,7 +1829,7 @@ var $t = B((e) => {
|
|
|
1787
1829
|
]);
|
|
1788
1830
|
if (ee) {
|
|
1789
1831
|
let e = N ? J.openQuickButtonStyling : J.quickButtonStyling;
|
|
1790
|
-
const t =
|
|
1832
|
+
const t = {
|
|
1791
1833
|
tabIndex: -1,
|
|
1792
1834
|
disabled: v,
|
|
1793
1835
|
size: "small",
|
|
@@ -1799,33 +1841,40 @@ var $t = B((e) => {
|
|
|
1799
1841
|
0 === e.button && (e.preventDefault(), Y(e));
|
|
1800
1842
|
},
|
|
1801
1843
|
disableRipple: !!T,
|
|
1802
|
-
children: S(C, { children: [
|
|
1803
|
-
...
|
|
1804
|
-
className:
|
|
1844
|
+
children: S(C, { children: [le, T] }),
|
|
1845
|
+
...f,
|
|
1846
|
+
className: H({
|
|
1805
1847
|
"Mui-focusVisible": E || N,
|
|
1806
1848
|
"Mui-selected": l,
|
|
1807
|
-
"Mui-hovered":
|
|
1849
|
+
"Mui-hovered": q || N,
|
|
1808
1850
|
"Mui-disabled": v,
|
|
1809
1851
|
bordered: !0,
|
|
1810
1852
|
left: !0,
|
|
1811
1853
|
"hard-right": !0
|
|
1812
|
-
},
|
|
1854
|
+
}, f?.className),
|
|
1813
1855
|
sx: {
|
|
1814
1856
|
...J.quickButtonStyling,
|
|
1815
1857
|
height: "100%",
|
|
1816
|
-
...
|
|
1858
|
+
...f?.sx
|
|
1817
1859
|
}
|
|
1860
|
+
}, r = M(ae, {
|
|
1861
|
+
render: g ?? oe,
|
|
1862
|
+
props: t
|
|
1818
1863
|
});
|
|
1819
|
-
let
|
|
1820
|
-
te && (
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1864
|
+
let n = Pt(!0, o, N);
|
|
1865
|
+
te && (n = M(ae, {
|
|
1866
|
+
render: b ?? Z,
|
|
1867
|
+
props: {
|
|
1868
|
+
title: N ? "" : x,
|
|
1869
|
+
children: n,
|
|
1870
|
+
disabled: N
|
|
1871
|
+
}
|
|
1872
|
+
})), ie = S(C, { children: [r, M(d, {
|
|
1824
1873
|
ref: U,
|
|
1825
1874
|
component: "div",
|
|
1826
|
-
className:
|
|
1875
|
+
className: H({
|
|
1827
1876
|
"Mui-selected": N,
|
|
1828
|
-
"Mui-hovered":
|
|
1877
|
+
"Mui-hovered": q || N,
|
|
1829
1878
|
"Mui-disabled": v,
|
|
1830
1879
|
"Mui-focusVisible": E || N,
|
|
1831
1880
|
bordered: !0,
|
|
@@ -1847,19 +1896,19 @@ var $t = B((e) => {
|
|
|
1847
1896
|
onMouseDown: (e) => {
|
|
1848
1897
|
0 === e.button && (e.preventDefault(), _());
|
|
1849
1898
|
},
|
|
1850
|
-
children:
|
|
1899
|
+
children: n
|
|
1851
1900
|
})] });
|
|
1852
1901
|
} else {
|
|
1853
1902
|
let e = N ? J.openCompoundStyling : J.compoundStyling;
|
|
1854
|
-
ie = M(
|
|
1903
|
+
ie = M(Ft, {
|
|
1855
1904
|
ref: U,
|
|
1856
1905
|
tabIndex: -1,
|
|
1857
1906
|
disabled: v,
|
|
1858
1907
|
size: "small",
|
|
1859
|
-
icon:
|
|
1860
|
-
className:
|
|
1908
|
+
icon: le,
|
|
1909
|
+
className: H({
|
|
1861
1910
|
"Mui-selected": N || l,
|
|
1862
|
-
"Mui-hovered":
|
|
1911
|
+
"Mui-hovered": q,
|
|
1863
1912
|
"Mui-disabled": v,
|
|
1864
1913
|
"Mui-focusVisible": E || N,
|
|
1865
1914
|
bordered: !0,
|
|
@@ -1874,23 +1923,23 @@ var $t = B((e) => {
|
|
|
1874
1923
|
onMouseDown: (e) => {
|
|
1875
1924
|
0 === e.button && (e.preventDefault(), _());
|
|
1876
1925
|
},
|
|
1877
|
-
children:
|
|
1926
|
+
children: Pt(!1, o, N)
|
|
1878
1927
|
});
|
|
1879
1928
|
}
|
|
1880
|
-
const { className:
|
|
1881
|
-
let
|
|
1929
|
+
const { className: se, sx: ce, ...de } = k;
|
|
1930
|
+
let pe = M(t, {
|
|
1882
1931
|
onFocus: () => F(!0),
|
|
1883
1932
|
onBlur: () => F(!1),
|
|
1884
1933
|
onMouseOver: () => j(!0),
|
|
1885
1934
|
onMouseOut: () => j(!1),
|
|
1886
1935
|
...ne,
|
|
1887
1936
|
"aria-label": "split button",
|
|
1888
|
-
ref:
|
|
1937
|
+
ref: G,
|
|
1889
1938
|
tabIndex: v ? void 0 : 0,
|
|
1890
|
-
className:
|
|
1939
|
+
className: H(se, "split-button-root", {
|
|
1891
1940
|
"Mui-focusVisible": E || N,
|
|
1892
1941
|
"Mui-selected": N || l,
|
|
1893
|
-
"Mui-hovered":
|
|
1942
|
+
"Mui-hovered": q,
|
|
1894
1943
|
"Mui-disabled": v
|
|
1895
1944
|
}),
|
|
1896
1945
|
sx: {
|
|
@@ -1906,16 +1955,20 @@ var $t = B((e) => {
|
|
|
1906
1955
|
outline: (e) => `solid ${e.palette.primary.main} 1px`,
|
|
1907
1956
|
zIndex: 2
|
|
1908
1957
|
},
|
|
1909
|
-
...
|
|
1958
|
+
...ce
|
|
1910
1959
|
},
|
|
1911
|
-
...
|
|
1960
|
+
...de,
|
|
1912
1961
|
children: ie
|
|
1913
1962
|
});
|
|
1914
|
-
return te || (
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1963
|
+
return te || (pe = M(ae, {
|
|
1964
|
+
render: b ?? Z,
|
|
1965
|
+
props: {
|
|
1966
|
+
title: N ? "" : x,
|
|
1967
|
+
children: pe,
|
|
1968
|
+
disabled: N
|
|
1969
|
+
}
|
|
1970
|
+
})), S(t, {
|
|
1971
|
+
className: H($, "popupIconButton"),
|
|
1919
1972
|
ref: r,
|
|
1920
1973
|
...z,
|
|
1921
1974
|
sx: {
|
|
@@ -1924,12 +1977,12 @@ var $t = B((e) => {
|
|
|
1924
1977
|
alignItems: "center",
|
|
1925
1978
|
...I
|
|
1926
1979
|
},
|
|
1927
|
-
children: [
|
|
1980
|
+
children: [pe, X.component]
|
|
1928
1981
|
});
|
|
1929
1982
|
}));
|
|
1930
|
-
|
|
1931
|
-
var
|
|
1932
|
-
const { selected: o = !1, label: n, showLabel: i, onQuickClick: a, parentFloat: l,
|
|
1983
|
+
jt.displayName = "ExhibitPopupIconButton";
|
|
1984
|
+
var Qt = M(J, { iconKey: "Check" }), Gt = {}, Ut = z(I((e, r) => {
|
|
1985
|
+
const { selected: o = !1, label: n, showLabel: i, onQuickClick: a, parentFloat: l, renderPopupPanel: c, propsPopup: d = Gt, onPopupOpen: p, onPopupClose: u, propsQuickButton: h, renderQuickButton: f, tooltip: g = "", renderTooltip: x, icon: b, disabled: y, ripple: v, primary: w, children: k, sx: P, ...T } = e, [R, D] = W(!1), [I, $] = W(!1), [z, L] = W(!1), [N, O] = W(!1), E = K(null), F = K(null), V = A(() => {
|
|
1933
1986
|
if (!d) return;
|
|
1934
1987
|
const { propsPopper: e } = d;
|
|
1935
1988
|
return {
|
|
@@ -1937,12 +1990,12 @@ var Vt = M(Z, { iconKey: "Check" }), qt = {}, jt = B($((e, r) => {
|
|
|
1937
1990
|
offsets: [-4, -2],
|
|
1938
1991
|
...e
|
|
1939
1992
|
};
|
|
1940
|
-
}, [d]), q =
|
|
1993
|
+
}, [d]), q = ge({
|
|
1941
1994
|
anchor: E.current,
|
|
1942
1995
|
label: n,
|
|
1943
|
-
|
|
1996
|
+
renderPopupPanel: c,
|
|
1944
1997
|
parentFloat: l,
|
|
1945
|
-
propsPopper:
|
|
1998
|
+
propsPopper: V,
|
|
1946
1999
|
onClose: () => {
|
|
1947
2000
|
D(!1), u?.();
|
|
1948
2001
|
},
|
|
@@ -1951,23 +2004,23 @@ var Vt = M(Z, { iconKey: "Check" }), qt = {}, jt = B($((e, r) => {
|
|
|
1951
2004
|
}
|
|
1952
2005
|
}), j = ue((e) => {
|
|
1953
2006
|
0 === e.button && (a?.(e), q.reference.close(0));
|
|
1954
|
-
}, [a]), Q = M(
|
|
2007
|
+
}, [a]), Q = M(ut, {}), G = { "&.Mui-selected": {
|
|
1955
2008
|
color: (e) => e.palette.text.primary,
|
|
1956
2009
|
"& svg * ": { color: (e) => e.palette.text.primary }
|
|
1957
|
-
} }, U =
|
|
1958
|
-
const { children: t, ref: r,
|
|
1959
|
-
return M(
|
|
2010
|
+
} }, U = B((e) => {
|
|
2011
|
+
const { children: t, ref: r, disabled: o, ...n } = e;
|
|
2012
|
+
return M(Bt, {
|
|
1960
2013
|
ref: r,
|
|
1961
|
-
...
|
|
2014
|
+
...n,
|
|
1962
2015
|
disableInteractive: !0,
|
|
1963
2016
|
children: t
|
|
1964
2017
|
});
|
|
1965
|
-
}, []), X = a ||
|
|
1966
|
-
const { tooltip: t,
|
|
1967
|
-
return S(
|
|
2018
|
+
}, []), X = a || f, Y = (e) => {
|
|
2019
|
+
const { tooltip: t, renderTooltip: r, ...o } = e;
|
|
2020
|
+
return S(Vt, {
|
|
1968
2021
|
icon: b,
|
|
1969
2022
|
disableRipple: !!v,
|
|
1970
|
-
className:
|
|
2023
|
+
className: H({ "Mui-hovered": z }),
|
|
1971
2024
|
sx: {
|
|
1972
2025
|
flex: "1 1 100%",
|
|
1973
2026
|
...G
|
|
@@ -1981,10 +2034,10 @@ var Vt = M(Z, { iconKey: "Check" }), qt = {}, jt = B($((e, r) => {
|
|
|
1981
2034
|
},
|
|
1982
2035
|
onBlur: () => $(!1),
|
|
1983
2036
|
onMouseOver: () => {
|
|
1984
|
-
|
|
2037
|
+
L(!0);
|
|
1985
2038
|
},
|
|
1986
2039
|
onMouseLeave: () => {
|
|
1987
|
-
|
|
2040
|
+
L(!1);
|
|
1988
2041
|
},
|
|
1989
2042
|
onMouseEnter: (e) => {
|
|
1990
2043
|
e.preventDefault(), q.reference.open();
|
|
@@ -2004,11 +2057,14 @@ var Vt = M(Z, { iconKey: "Check" }), qt = {}, jt = B($((e, r) => {
|
|
|
2004
2057
|
onMouseDown: (e) => {
|
|
2005
2058
|
0 === e.button && (e.preventDefault(), j(e));
|
|
2006
2059
|
},
|
|
2007
|
-
className:
|
|
2060
|
+
className: H("quick-left", {}, h?.className),
|
|
2008
2061
|
...h
|
|
2009
2062
|
};
|
|
2010
2063
|
J = S(C, { children: [
|
|
2011
|
-
(
|
|
2064
|
+
M(ae, {
|
|
2065
|
+
render: f ?? Y,
|
|
2066
|
+
props: e
|
|
2067
|
+
}),
|
|
2012
2068
|
M(s, {
|
|
2013
2069
|
sx: {
|
|
2014
2070
|
ml: "0px",
|
|
@@ -2020,7 +2076,7 @@ var Vt = M(Z, { iconKey: "Check" }), qt = {}, jt = B($((e, r) => {
|
|
|
2020
2076
|
}),
|
|
2021
2077
|
M(m, {
|
|
2022
2078
|
ref: F,
|
|
2023
|
-
className:
|
|
2079
|
+
className: H({
|
|
2024
2080
|
"Mui-selected": R,
|
|
2025
2081
|
"Mui-hovered": z
|
|
2026
2082
|
}),
|
|
@@ -2034,7 +2090,7 @@ var Vt = M(Z, { iconKey: "Check" }), qt = {}, jt = B($((e, r) => {
|
|
|
2034
2090
|
paddingBottom: "2px",
|
|
2035
2091
|
marginLeft: "0px",
|
|
2036
2092
|
marginRight: "6px",
|
|
2037
|
-
color: (e) =>
|
|
2093
|
+
color: (e) => w ? void 0 : e.palette.text.secondary,
|
|
2038
2094
|
"&.Mui-hovered:not(.Mui-disabled, [disabled])": { color: (e) => e.palette.text.primary },
|
|
2039
2095
|
...G
|
|
2040
2096
|
},
|
|
@@ -2049,7 +2105,7 @@ var Vt = M(Z, { iconKey: "Check" }), qt = {}, jt = B($((e, r) => {
|
|
|
2049
2105
|
border: "1px solid transparent",
|
|
2050
2106
|
paddingTop: "1px",
|
|
2051
2107
|
paddingBottom: "1px",
|
|
2052
|
-
color: (e) =>
|
|
2108
|
+
color: (e) => w ? void 0 : e.palette.text.icon ?? e.palette.action.active
|
|
2053
2109
|
},
|
|
2054
2110
|
onMouseOver: (e) => {
|
|
2055
2111
|
e.preventDefault(), O(!0);
|
|
@@ -2064,12 +2120,12 @@ var Vt = M(Z, { iconKey: "Check" }), qt = {}, jt = B($((e, r) => {
|
|
|
2064
2120
|
})
|
|
2065
2121
|
})
|
|
2066
2122
|
] });
|
|
2067
|
-
} else J = S(
|
|
2123
|
+
} else J = S(Vt, {
|
|
2068
2124
|
ref: F,
|
|
2069
2125
|
tabIndex: -1,
|
|
2070
2126
|
disabled: y,
|
|
2071
2127
|
icon: b,
|
|
2072
|
-
className:
|
|
2128
|
+
className: H({
|
|
2073
2129
|
"Mui-selected": R || o,
|
|
2074
2130
|
"Mui-hovered": z
|
|
2075
2131
|
}),
|
|
@@ -2090,7 +2146,7 @@ var Vt = M(Z, { iconKey: "Check" }), qt = {}, jt = B($((e, r) => {
|
|
|
2090
2146
|
sx: {
|
|
2091
2147
|
flex: "none",
|
|
2092
2148
|
display: "flex",
|
|
2093
|
-
color: (e) =>
|
|
2149
|
+
color: (e) => w ? void 0 : e.palette.text.icon ?? e.palette.action.active
|
|
2094
2150
|
},
|
|
2095
2151
|
children: Q
|
|
2096
2152
|
})]
|
|
@@ -2099,7 +2155,7 @@ var Vt = M(Z, { iconKey: "Check" }), qt = {}, jt = B($((e, r) => {
|
|
|
2099
2155
|
"aria-label": "split button",
|
|
2100
2156
|
ref: E,
|
|
2101
2157
|
tabIndex: y ? void 0 : 0,
|
|
2102
|
-
className:
|
|
2158
|
+
className: H({
|
|
2103
2159
|
"Mui-disabled": y,
|
|
2104
2160
|
"Mui-selected": R,
|
|
2105
2161
|
"Mui-focusVisible": I || R,
|
|
@@ -2121,10 +2177,14 @@ var Vt = M(Z, { iconKey: "Check" }), qt = {}, jt = B($((e, r) => {
|
|
|
2121
2177
|
...T,
|
|
2122
2178
|
children: J
|
|
2123
2179
|
});
|
|
2124
|
-
return X && !N && (h?.tooltip || h?.
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2180
|
+
return X && !N && (h?.tooltip || h?.renderTooltip) && (Z = M(ae, {
|
|
2181
|
+
render: h?.renderTooltip ?? U,
|
|
2182
|
+
props: {
|
|
2183
|
+
title: R ? "" : Z ?? h?.tooltip,
|
|
2184
|
+
children: Z,
|
|
2185
|
+
disabled: R
|
|
2186
|
+
}
|
|
2187
|
+
})), S(t, {
|
|
2128
2188
|
ref: r,
|
|
2129
2189
|
sx: {
|
|
2130
2190
|
zIndex: I || R ? 2 : void 0,
|
|
@@ -2136,12 +2196,12 @@ var Vt = M(Z, { iconKey: "Check" }), qt = {}, jt = B($((e, r) => {
|
|
|
2136
2196
|
},
|
|
2137
2197
|
children: [Z, q.component]
|
|
2138
2198
|
});
|
|
2139
|
-
})),
|
|
2199
|
+
})), Xt = z(I((e, t) => {
|
|
2140
2200
|
const { onSelectToggle: r, selected: o = !1, label: n, shortcut: i, tabIndex: a = 0, preventFocus: l = !1, ...s } = e;
|
|
2141
|
-
return M(
|
|
2201
|
+
return M(Ot, {
|
|
2142
2202
|
label: n,
|
|
2143
2203
|
shortcut: i,
|
|
2144
|
-
children: M(
|
|
2204
|
+
children: M(Ft, {
|
|
2145
2205
|
ref: t,
|
|
2146
2206
|
outlined: !1,
|
|
2147
2207
|
tabIndex: a,
|
|
@@ -2155,24 +2215,24 @@ var Vt = M(Z, { iconKey: "Check" }), qt = {}, jt = B($((e, r) => {
|
|
|
2155
2215
|
...s
|
|
2156
2216
|
})
|
|
2157
2217
|
});
|
|
2158
|
-
})),
|
|
2218
|
+
})), Yt = M(J, {}), _t = M(J, { iconKey: "Check" }), Jt = z(I((e, r) => {
|
|
2159
2219
|
const { children: o, selected: n = !0, outlined: i = !0, sx: a, ...l } = e, s = A(() => ({
|
|
2160
2220
|
display: "flex",
|
|
2161
2221
|
border: (e) => n ? `solid ${i ? e.palette.divider : "transparent"} 1px` : "solid transparent 1px",
|
|
2162
2222
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
2163
2223
|
backgroundColor: (e) => {
|
|
2164
|
-
if (n) return
|
|
2224
|
+
if (n) return V(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity);
|
|
2165
2225
|
},
|
|
2166
2226
|
...a
|
|
2167
2227
|
}), [a]);
|
|
2168
2228
|
let c = o;
|
|
2169
|
-
return null === c && (c =
|
|
2229
|
+
return null === c && (c = Yt), c || (c = _t), M(t, {
|
|
2170
2230
|
ref: r,
|
|
2171
2231
|
sx: s,
|
|
2172
2232
|
...l,
|
|
2173
2233
|
children: c
|
|
2174
2234
|
});
|
|
2175
|
-
})),
|
|
2235
|
+
})), Zt = {
|
|
2176
2236
|
"dialog.cancel": "Cancel",
|
|
2177
2237
|
"dialog.ok": "Ok",
|
|
2178
2238
|
"lazyLoad.retry": "Retry",
|
|
@@ -2194,27 +2254,27 @@ var Vt = M(Z, { iconKey: "Check" }), qt = {}, jt = B($((e, r) => {
|
|
|
2194
2254
|
"stackTrace.log": "Log error to console",
|
|
2195
2255
|
"stackTrace.moreFrames": "... and {count} more frames",
|
|
2196
2256
|
"window.close": "Close"
|
|
2197
|
-
}, { DefaultCommandCatalogService:
|
|
2198
|
-
function
|
|
2199
|
-
|
|
2257
|
+
}, { DefaultCommandCatalogService: er } = X, tr = !1;
|
|
2258
|
+
function rr() {
|
|
2259
|
+
tr || (tr = !0, er.registerFromManifest("@sheetxl/utils-mui", import.meta.url, { messages: Zt }));
|
|
2200
2260
|
}
|
|
2201
|
-
|
|
2202
|
-
var
|
|
2261
|
+
rr();
|
|
2262
|
+
var or = {
|
|
2203
2263
|
inline: null,
|
|
2204
2264
|
popup: []
|
|
2205
|
-
},
|
|
2206
|
-
const { children: o, sx: n, ...i } = e, a =
|
|
2265
|
+
}, nr = z(I((e, r) => {
|
|
2266
|
+
const { children: o, sx: n, ...i } = e, a = Ce(), l = ye(r, () => ({}), []), [s, c] = ke(), d = K(null), p = K(null), [u, m] = F((e) => e + 1, 0), [h, f] = W(null), [g, x] = W(null), b = g?.popup ?? null, y = K(0), [v, w] = W(!1), k = K(!1), C = fe(), T = K(C);
|
|
2207
2267
|
T.current = C;
|
|
2208
|
-
const
|
|
2268
|
+
const D = B(() => {
|
|
2209
2269
|
T.current?.closeChild(0);
|
|
2210
|
-
}, []), I =
|
|
2211
|
-
|
|
2212
|
-
}, []), $ =
|
|
2213
|
-
|
|
2214
|
-
}, []), z =
|
|
2215
|
-
|
|
2270
|
+
}, []), I = B(() => {
|
|
2271
|
+
k.current = !0, w(!0);
|
|
2272
|
+
}, []), $ = B(() => {
|
|
2273
|
+
k.current = !1, w(!1);
|
|
2274
|
+
}, []), z = K(null), L = K(/* @__PURE__ */ new Map()), N = B(() => {
|
|
2275
|
+
L.current.clear(), x(null), m();
|
|
2216
2276
|
}, []);
|
|
2217
|
-
|
|
2277
|
+
E(() => {
|
|
2218
2278
|
p.current = { refs: [] };
|
|
2219
2279
|
const e = [], r = P.toArray(o);
|
|
2220
2280
|
let n = 0;
|
|
@@ -2231,8 +2291,8 @@ var er = {
|
|
|
2231
2291
|
},
|
|
2232
2292
|
children: o
|
|
2233
2293
|
}, i));
|
|
2234
|
-
}),
|
|
2235
|
-
}, [o, c]),
|
|
2294
|
+
}), f(e);
|
|
2295
|
+
}, [o, c]), E(() => {
|
|
2236
2296
|
if (!h) return;
|
|
2237
2297
|
const e = p.current?.refs ?? [], t = e.length;
|
|
2238
2298
|
if (!l.current || 0 === t) return void x(null);
|
|
@@ -2242,13 +2302,13 @@ var er = {
|
|
|
2242
2302
|
for (let t = 0; t < e.length; t++) {
|
|
2243
2303
|
const r = e[t].target;
|
|
2244
2304
|
if (!r.isConnected) continue;
|
|
2245
|
-
const o =
|
|
2305
|
+
const o = L.current.get(r);
|
|
2246
2306
|
if (void 0 !== o && Math.abs(r.getBoundingClientRect().width - o) > .5) return void N();
|
|
2247
2307
|
}
|
|
2248
|
-
}),
|
|
2308
|
+
}), L.current.clear();
|
|
2249
2309
|
for (let o = 0; o < t; o++) {
|
|
2250
2310
|
const t = e[o]?.current;
|
|
2251
|
-
t && (
|
|
2311
|
+
t && (L.current.set(t, t.getBoundingClientRect().width), r.observe(t));
|
|
2252
2312
|
}
|
|
2253
2313
|
};
|
|
2254
2314
|
let a = 0, s = !1;
|
|
@@ -2262,7 +2322,7 @@ var er = {
|
|
|
2262
2322
|
const n = t.current.getBoundingClientRect();
|
|
2263
2323
|
a += n?.width, a > r.width && (s = !0);
|
|
2264
2324
|
}
|
|
2265
|
-
if (!s) return i(),
|
|
2325
|
+
if (!s) return i(), k.current && D(), void x(or);
|
|
2266
2326
|
const c = d.current?.getBoundingClientRect();
|
|
2267
2327
|
c?.width && (y.current = c.width);
|
|
2268
2328
|
const u = r.width - y.current;
|
|
@@ -2285,22 +2345,22 @@ var er = {
|
|
|
2285
2345
|
h,
|
|
2286
2346
|
c,
|
|
2287
2347
|
u
|
|
2288
|
-
]),
|
|
2348
|
+
]), E(() => () => {
|
|
2289
2349
|
z.current?.disconnect(), z.current = null;
|
|
2290
2350
|
}, []);
|
|
2291
|
-
const O =
|
|
2351
|
+
const O = B((e) => {
|
|
2292
2352
|
const r = [], o = b?.length ?? 0;
|
|
2293
2353
|
for (let e = 0; e < o; e++) {
|
|
2294
2354
|
const t = P.toArray(b[e])[0];
|
|
2295
2355
|
P.toArray(t.props.children?.props?.children ?? t.props.children).forEach((t, o) => {
|
|
2296
|
-
const n = t, i =
|
|
2356
|
+
const n = t, i = {
|
|
2297
2357
|
...n.props,
|
|
2298
2358
|
key: `overflow-${e}-${o}${n.key ?? ""}`
|
|
2299
|
-
});
|
|
2300
|
-
r.push(
|
|
2359
|
+
}, a = R(n, i);
|
|
2360
|
+
r.push(a);
|
|
2301
2361
|
});
|
|
2302
2362
|
}
|
|
2303
|
-
return
|
|
2363
|
+
return St({
|
|
2304
2364
|
...e,
|
|
2305
2365
|
children: M(t, {
|
|
2306
2366
|
className: "overflow-palette-popup-panel",
|
|
@@ -2318,7 +2378,11 @@ var er = {
|
|
|
2318
2378
|
children: r
|
|
2319
2379
|
})
|
|
2320
2380
|
});
|
|
2321
|
-
}, [b])
|
|
2381
|
+
}, [b]), A = Se([
|
|
2382
|
+
l,
|
|
2383
|
+
s,
|
|
2384
|
+
r
|
|
2385
|
+
]);
|
|
2322
2386
|
return S(t, {
|
|
2323
2387
|
className: "overflow-palette",
|
|
2324
2388
|
sx: {
|
|
@@ -2332,11 +2396,7 @@ var er = {
|
|
|
2332
2396
|
overflow: "hidden",
|
|
2333
2397
|
...n
|
|
2334
2398
|
},
|
|
2335
|
-
ref:
|
|
2336
|
-
l,
|
|
2337
|
-
s,
|
|
2338
|
-
r
|
|
2339
|
-
]),
|
|
2399
|
+
ref: A,
|
|
2340
2400
|
...i,
|
|
2341
2401
|
children: [M(t, {
|
|
2342
2402
|
sx: {
|
|
@@ -2349,7 +2409,7 @@ var er = {
|
|
|
2349
2409
|
overflow: "hidden",
|
|
2350
2410
|
alignItems: "center"
|
|
2351
2411
|
},
|
|
2352
|
-
children:
|
|
2412
|
+
children: g?.inline ?? h
|
|
2353
2413
|
}), M(t, {
|
|
2354
2414
|
className: "overflow-palette-popup-button",
|
|
2355
2415
|
sx: {
|
|
@@ -2357,50 +2417,50 @@ var er = {
|
|
|
2357
2417
|
flex: "0 0 auto",
|
|
2358
2418
|
alignItems: "center"
|
|
2359
2419
|
},
|
|
2360
|
-
children: M(
|
|
2361
|
-
|
|
2420
|
+
children: M(jt, {
|
|
2421
|
+
renderPopupPanel: O,
|
|
2362
2422
|
ref: d,
|
|
2363
2423
|
onPopupOpen: I,
|
|
2364
2424
|
onPopupClose: $,
|
|
2365
|
-
|
|
2425
|
+
renderTooltip: ({ children: e, disabled: t }) => M(Ot, {
|
|
2366
2426
|
label: a("overflow.more"),
|
|
2367
2427
|
description: a("overflow.moreDescription"),
|
|
2368
2428
|
disabled: t,
|
|
2369
2429
|
children: e
|
|
2370
2430
|
}),
|
|
2371
|
-
icon: M(
|
|
2431
|
+
icon: M(J, { iconKey: "MoreHorizontal" })
|
|
2372
2432
|
})
|
|
2373
2433
|
})]
|
|
2374
2434
|
});
|
|
2375
|
-
})),
|
|
2376
|
-
const t =
|
|
2377
|
-
return
|
|
2435
|
+
})), ir = D(void 0), ar = ({ error: e }) => {
|
|
2436
|
+
const t = L(ir);
|
|
2437
|
+
return N(() => {
|
|
2378
2438
|
t?.(e);
|
|
2379
2439
|
}, [e]), null;
|
|
2380
2440
|
};
|
|
2381
|
-
function
|
|
2382
|
-
const t = pe(e, { renderError: (e) => M(
|
|
2441
|
+
function lr(e) {
|
|
2442
|
+
const t = pe(e, { renderError: ({ error: e }) => M(ar, { error: e }) });
|
|
2383
2443
|
return (e) => {
|
|
2384
2444
|
const { onLoadError: r, ...o } = e;
|
|
2385
|
-
return M(
|
|
2445
|
+
return M(ir.Provider, {
|
|
2386
2446
|
value: r,
|
|
2387
|
-
children: M(
|
|
2447
|
+
children: M(T, {
|
|
2388
2448
|
fallback: null,
|
|
2389
2449
|
children: M(t, { ...o })
|
|
2390
2450
|
})
|
|
2391
2451
|
});
|
|
2392
2452
|
};
|
|
2393
2453
|
}
|
|
2394
|
-
function
|
|
2395
|
-
const [t, r] =
|
|
2454
|
+
function sr(e) {
|
|
2455
|
+
const [t, r] = W(() => /* @__PURE__ */ new Map()), o = K(null);
|
|
2396
2456
|
null === o.current && (o.current = /* @__PURE__ */ new Map());
|
|
2397
2457
|
const { showModal: n, updateModal: i, destroyModal: a, hideModal: l } = Re({ disableAutoDestroy: !0 });
|
|
2398
2458
|
return (s, c, d, p) => new Promise((u, m) => {
|
|
2399
2459
|
let h = !1;
|
|
2400
2460
|
void 0 !== d?.disableAutoDestroy && (h = d.disableAutoDestroy, delete (d = { ...d }).disableAutoDestroy);
|
|
2401
|
-
let
|
|
2402
|
-
if (void 0 !== d?.prewarm && (
|
|
2403
|
-
const
|
|
2461
|
+
let f = !1;
|
|
2462
|
+
if (void 0 !== d?.prewarm && (f = d.prewarm, delete (d = { ...d }).prewarm, f && (h = !0)), f && t.get(s)) return void u(t.get(s).element);
|
|
2463
|
+
const g = {
|
|
2404
2464
|
...e,
|
|
2405
2465
|
...d,
|
|
2406
2466
|
...p,
|
|
@@ -2429,13 +2489,13 @@ function ir(e) {
|
|
|
2429
2489
|
},
|
|
2430
2490
|
disableAutoDestroy: h,
|
|
2431
2491
|
revealToken: 0,
|
|
2432
|
-
startHidden:
|
|
2492
|
+
startHidden: f,
|
|
2433
2493
|
open: !0
|
|
2434
2494
|
}, x = t.get(s);
|
|
2435
2495
|
if (x) {
|
|
2436
2496
|
const e = (x.revealToken ?? 0) + 1;
|
|
2437
2497
|
i(x.id, {
|
|
2438
|
-
...
|
|
2498
|
+
...g,
|
|
2439
2499
|
revealToken: e
|
|
2440
2500
|
}), r((t) => {
|
|
2441
2501
|
const r = t.get(s);
|
|
@@ -2448,40 +2508,40 @@ function ir(e) {
|
|
|
2448
2508
|
}
|
|
2449
2509
|
if (!c) return void m(`Invalid function for window '${s}'`);
|
|
2450
2510
|
let b = o.current.get(s);
|
|
2451
|
-
b || (b =
|
|
2452
|
-
const y = n(b,
|
|
2511
|
+
b || (b = lr(c), o.current.set(s, b));
|
|
2512
|
+
const y = n(b, g, { destroyOnClose: !h });
|
|
2453
2513
|
r((e) => (e.set(s, {
|
|
2454
2514
|
id: y.id,
|
|
2455
2515
|
element: null,
|
|
2456
2516
|
revealToken: 0
|
|
2457
|
-
}), e)),
|
|
2517
|
+
}), e)), f && u(null);
|
|
2458
2518
|
});
|
|
2459
2519
|
}
|
|
2460
|
-
|
|
2461
|
-
var
|
|
2520
|
+
rr();
|
|
2521
|
+
var cr = {
|
|
2462
2522
|
x: 0,
|
|
2463
2523
|
y: 0
|
|
2464
|
-
},
|
|
2465
|
-
const { defaultPosition: r =
|
|
2524
|
+
}, dr = z(I((e, t) => {
|
|
2525
|
+
const { defaultPosition: r = cr, PaperComponent: o = f, onDragStop: n, rootSel: i = ".MuiModal-root", handleSel: a = ".draggable-title", titleSize: l, rootSize: s, ...c } = e, d = K(null), p = A(() => l?.width && l?.height && s?.width && s?.height ? {
|
|
2466
2526
|
left: 0,
|
|
2467
2527
|
top: 0,
|
|
2468
2528
|
right: s.width - l.width,
|
|
2469
2529
|
bottom: s.height - l.height
|
|
2470
|
-
} : null, [l, s]), [u, m] =
|
|
2530
|
+
} : null, [l, s]), [u, m] = W(null), [h, g] = W(null), x = u ?? r ?? null, b = A(() => x && p ? {
|
|
2531
|
+
x: Math.max(0, Math.min(x.x, p.right)),
|
|
2532
|
+
y: Math.max(0, Math.min(x.y, p.bottom))
|
|
2533
|
+
} : x, [x, p]), y = Se([d, t]);
|
|
2471
2534
|
return M(Ie, {
|
|
2472
2535
|
nodeRef: d,
|
|
2473
2536
|
handle: a,
|
|
2474
2537
|
cancel: "[class*=\"MuiDialogContent-root\"]",
|
|
2475
|
-
position:
|
|
2476
|
-
x: Math.max(0, Math.min(x.x, p.right)),
|
|
2477
|
-
y: Math.max(0, Math.min(x.y, p.bottom))
|
|
2478
|
-
} : x, [x, p]) ?? void 0,
|
|
2538
|
+
position: b ?? void 0,
|
|
2479
2539
|
bounds: p ?? ".MuiModal-root",
|
|
2480
2540
|
enableUserSelectHack: !1,
|
|
2481
2541
|
onStop: n,
|
|
2482
2542
|
onStart: (e, t) => {
|
|
2483
2543
|
const r = e;
|
|
2484
|
-
|
|
2544
|
+
g({
|
|
2485
2545
|
x: (r.clientX ?? r.touches?.[0]?.clientX) - t.x,
|
|
2486
2546
|
y: (r.clientY ?? r.touches?.[0]?.clientY) - t.y
|
|
2487
2547
|
});
|
|
@@ -2496,44 +2556,44 @@ var ar = {
|
|
|
2496
2556
|
});
|
|
2497
2557
|
},
|
|
2498
2558
|
children: M(o, {
|
|
2499
|
-
ref:
|
|
2559
|
+
ref: y,
|
|
2500
2560
|
...c
|
|
2501
2561
|
})
|
|
2502
2562
|
});
|
|
2503
|
-
})),
|
|
2563
|
+
})), pr = {
|
|
2504
2564
|
x: "50",
|
|
2505
2565
|
y: "50"
|
|
2506
|
-
},
|
|
2507
|
-
const n =
|
|
2566
|
+
}, ur = z(I((r, o) => {
|
|
2567
|
+
const n = k({
|
|
2508
2568
|
props: r,
|
|
2509
2569
|
name: "MuiDialog"
|
|
2510
|
-
}), i =
|
|
2570
|
+
}), i = w(), a = Ce(), s = {
|
|
2511
2571
|
enter: .66 * i.transitions.duration.enteringScreen,
|
|
2512
2572
|
exit: .66 * i.transitions.duration.leavingScreen
|
|
2513
|
-
}, { title: p = "SheetXL", onCancel: u, onDone: m, onShow: h, onShown:
|
|
2573
|
+
}, { 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 = Q.EmptyArray, slotProps: I = Q.EmptyArray, sx: $, className: z, onMouseDown: B, initialPosition: L = pr, isModal: A = !1, suspendModal: F = !1, restoreFocus: q = !0, disableAutoDestroy: j = !1, revealToken: G, startHidden: U = !1, ...X } = n;
|
|
2514
2574
|
let Y = D.transition ?? c;
|
|
2515
|
-
const _ = D.backdrop ?? e,
|
|
2575
|
+
const _ = D.backdrop ?? e, Z = D.paper ?? f;
|
|
2516
2576
|
let ee = I.transition;
|
|
2517
2577
|
R && (ee = {
|
|
2518
2578
|
...R,
|
|
2519
2579
|
...ee
|
|
2520
2580
|
});
|
|
2521
|
-
const te = I.backdrop,
|
|
2522
|
-
|
|
2581
|
+
const te = I.backdrop, oe = I.paper, [ne, ie] = W(null), [ae, le] = W(!1), [se, de] = W(!1), pe = K(null), [me, he] = ke(), fe = K(null), ge = K(null), [ve, we] = ke(), Pe = K(null), Te = O(), Re = K(null);
|
|
2582
|
+
E(() => {
|
|
2523
2583
|
if (!ne || U) return;
|
|
2524
2584
|
const e = !!v;
|
|
2525
|
-
|
|
2585
|
+
Re.current !== e && (Re.current = e, le(e));
|
|
2526
2586
|
}, [
|
|
2527
2587
|
v,
|
|
2528
2588
|
ne,
|
|
2529
2589
|
U
|
|
2530
2590
|
]);
|
|
2531
|
-
const
|
|
2591
|
+
const Ie = ue(() => {
|
|
2532
2592
|
u?.(), le(!1);
|
|
2533
2593
|
}, [u]);
|
|
2534
|
-
|
|
2594
|
+
E(() => {
|
|
2535
2595
|
if (ne) return;
|
|
2536
|
-
const e =
|
|
2596
|
+
const e = fe.current, t = Pe.current;
|
|
2537
2597
|
if (!e || !t) return;
|
|
2538
2598
|
const r = e.getBoundingClientRect(), o = t.getBoundingClientRect();
|
|
2539
2599
|
if (0 === r.width && 0 === r.height || 0 === o.width && 0 === o.height) return;
|
|
@@ -2544,84 +2604,85 @@ var ar = {
|
|
|
2544
2604
|
y: l
|
|
2545
2605
|
});
|
|
2546
2606
|
});
|
|
2547
|
-
const [
|
|
2548
|
-
if (
|
|
2607
|
+
const [$e, ze] = W(!1), [Be, Le] = W(null), [Ne, Oe] = W(null), Ee = ue((e) => {
|
|
2608
|
+
if (Be) return Be.focus(e), !0;
|
|
2549
2609
|
if (C) {
|
|
2550
|
-
const t =
|
|
2610
|
+
const t = ge.current?.querySelectorAll?.(C);
|
|
2551
2611
|
if (t && t.length > 0) return t[0]?.focus?.(e), !0;
|
|
2552
2612
|
}
|
|
2553
|
-
return
|
|
2554
|
-
}, [
|
|
2555
|
-
|
|
2556
|
-
} }), []), Fe =
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
}, [
|
|
2560
|
-
const
|
|
2613
|
+
return ge.current?.focus?.(e), !1;
|
|
2614
|
+
}, [Be, C]), Ae = ye(o, () => ({ focus: (e) => {
|
|
2615
|
+
Ee(e);
|
|
2616
|
+
} }), []), Fe = K(G);
|
|
2617
|
+
N(() => {
|
|
2618
|
+
G !== Fe.current && (Fe.current = G, le(!0));
|
|
2619
|
+
}, [G]);
|
|
2620
|
+
const Ke = {
|
|
2561
2621
|
...ee,
|
|
2562
2622
|
onExited: (e) => {
|
|
2563
2623
|
m?.(null), j || ee?.onExited?.(e);
|
|
2564
2624
|
},
|
|
2565
2625
|
onExit: (e) => {
|
|
2566
|
-
const t =
|
|
2626
|
+
const t = Ne, r = "function" == typeof q ? q() : q;
|
|
2567
2627
|
t && !1 !== r && requestAnimationFrame(() => {
|
|
2568
|
-
|
|
2628
|
+
Ae.current?.contains(document.activeElement) && t.focus();
|
|
2569
2629
|
}), x?.(), de(!1), ee?.onExit?.(e);
|
|
2570
2630
|
},
|
|
2571
2631
|
onEntered: (e, t) => {
|
|
2572
2632
|
h?.(), ee?.onEntered?.(e, t);
|
|
2573
2633
|
},
|
|
2574
2634
|
onEntering: (e, t) => {
|
|
2575
|
-
de(!0),
|
|
2635
|
+
de(!0), g?.(Ae.current);
|
|
2576
2636
|
}
|
|
2577
2637
|
};
|
|
2578
|
-
|
|
2579
|
-
se &&
|
|
2638
|
+
N(() => {
|
|
2639
|
+
se && Ee();
|
|
2580
2640
|
}, [se]);
|
|
2581
|
-
|
|
2641
|
+
const We = Se([Pe, o]);
|
|
2642
|
+
let He = M(y, {
|
|
2582
2643
|
open: se,
|
|
2583
2644
|
disableAutoFocus: !0,
|
|
2584
|
-
disableEnforceFocus:
|
|
2585
|
-
disableRestoreFocus: !0 !==
|
|
2645
|
+
disableEnforceFocus: !$e,
|
|
2646
|
+
disableRestoreFocus: !0 !== q,
|
|
2586
2647
|
children: M(Y, {
|
|
2587
2648
|
in: ae,
|
|
2588
2649
|
timeout: T,
|
|
2589
2650
|
role: "presentation",
|
|
2590
|
-
...
|
|
2651
|
+
...Ke,
|
|
2591
2652
|
children: M(t, {
|
|
2592
2653
|
className: "MuiDialog-container",
|
|
2593
|
-
ref:
|
|
2654
|
+
ref: ge,
|
|
2594
2655
|
tabIndex: 0,
|
|
2595
2656
|
sx: {
|
|
2596
2657
|
outline: "none",
|
|
2597
2658
|
position: "relative"
|
|
2598
2659
|
},
|
|
2599
2660
|
onKeyDown: (e) => {
|
|
2600
|
-
e.which ===
|
|
2661
|
+
e.which === re.Escape && (Ie(), pe.current?.start(e, { center: !1 }), setTimeout(() => pe.current?.stop(e), 180)), e.stopPropagation();
|
|
2601
2662
|
},
|
|
2602
|
-
children: S(
|
|
2603
|
-
ref:
|
|
2604
|
-
className:
|
|
2663
|
+
children: S(dr, {
|
|
2664
|
+
ref: We,
|
|
2665
|
+
className: H({ "Mui-focusVisible": $e }, z, "draggable"),
|
|
2605
2666
|
sx: {
|
|
2606
|
-
"& *": (e) =>
|
|
2667
|
+
"& *": (e) => wt(e),
|
|
2607
2668
|
pointerEvents: "auto",
|
|
2608
2669
|
userSelect: "none",
|
|
2609
2670
|
backgroundColor: "var(--sxl-color-elevated, var(--sxl-color-base-100))",
|
|
2610
2671
|
border: "1px solid var(--sxl-color-elevated-border, transparent)",
|
|
2611
|
-
"&:hover:not([disabled]):not(.Mui-focusVisible)": { outline: (e) => `solid ${
|
|
2612
|
-
"&.Mui-focusVisible": { outline: (e) => `solid ${
|
|
2672
|
+
"&:hover:not([disabled]):not(.Mui-focusVisible)": { outline: (e) => `solid ${V(e.palette.text?.primary, .2)} 1px` },
|
|
2673
|
+
"&.Mui-focusVisible": { outline: (e) => `solid ${V(e.palette.text?.primary, .2)} 1px` },
|
|
2613
2674
|
position: "absolute",
|
|
2614
2675
|
maxWidth: "100%",
|
|
2615
2676
|
...$
|
|
2616
2677
|
},
|
|
2617
2678
|
defaultPosition: ne,
|
|
2618
|
-
titleSize:
|
|
2679
|
+
titleSize: we,
|
|
2619
2680
|
rootSize: he,
|
|
2620
|
-
PaperComponent:
|
|
2681
|
+
PaperComponent: Z,
|
|
2621
2682
|
...X,
|
|
2622
|
-
...
|
|
2683
|
+
...oe,
|
|
2623
2684
|
children: [p ? M(l, {
|
|
2624
|
-
className:
|
|
2685
|
+
className: H({ "Mui-selected": $e }, "draggable-title"),
|
|
2625
2686
|
sx: {
|
|
2626
2687
|
cursor: "move",
|
|
2627
2688
|
display: "flex",
|
|
@@ -2635,7 +2696,7 @@ var ar = {
|
|
|
2635
2696
|
opacity: 1,
|
|
2636
2697
|
transitionDuration: (e) => e.transitions.duration.shortest / 2 + "ms"
|
|
2637
2698
|
},
|
|
2638
|
-
backgroundColor: (e) =>
|
|
2699
|
+
backgroundColor: (e) => V(e.palette.action.hover, .03)
|
|
2639
2700
|
},
|
|
2640
2701
|
ref: ve,
|
|
2641
2702
|
children: S(t, {
|
|
@@ -2655,7 +2716,7 @@ var ar = {
|
|
|
2655
2716
|
paddingLeft: (e) => e.spacing(1)
|
|
2656
2717
|
},
|
|
2657
2718
|
children: p
|
|
2658
|
-
}), M(
|
|
2719
|
+
}), M(Ot, {
|
|
2659
2720
|
label: a("window.close"),
|
|
2660
2721
|
children: M(d, {
|
|
2661
2722
|
"aria-label": "close",
|
|
@@ -2664,8 +2725,8 @@ var ar = {
|
|
|
2664
2725
|
onPointerDown: (e) => {
|
|
2665
2726
|
pe.current?.start(e, { center: !1 }), e.stopPropagation(), e.preventDefault();
|
|
2666
2727
|
},
|
|
2667
|
-
onPointerUp:
|
|
2668
|
-
children: M(
|
|
2728
|
+
onPointerUp: Ie,
|
|
2729
|
+
children: M(J, { iconKey: "Close" })
|
|
2669
2730
|
})
|
|
2670
2731
|
})]
|
|
2671
2732
|
})
|
|
@@ -2673,12 +2734,12 @@ var ar = {
|
|
|
2673
2734
|
})
|
|
2674
2735
|
})
|
|
2675
2736
|
})
|
|
2676
|
-
}),
|
|
2677
|
-
|
|
2737
|
+
}), Ve = null;
|
|
2738
|
+
A && !F && (Ve = M(_, {
|
|
2678
2739
|
...te,
|
|
2679
2740
|
open: ae,
|
|
2680
2741
|
onMouseDown: (e) => {
|
|
2681
|
-
|
|
2742
|
+
Ie(), te?.onMouseDown?.(e);
|
|
2682
2743
|
},
|
|
2683
2744
|
onClick: (e) => {
|
|
2684
2745
|
b?.(e, "backdropClick"), te?.onClick?.(e);
|
|
@@ -2688,13 +2749,17 @@ var ar = {
|
|
|
2688
2749
|
...te?.sx
|
|
2689
2750
|
}
|
|
2690
2751
|
}));
|
|
2691
|
-
const { getPortalContainer:
|
|
2752
|
+
const { getPortalContainer: qe } = be(), { className: je, attrs: Qe } = ce(xe()?.themeScope), Ge = Se([
|
|
2753
|
+
Ae,
|
|
2754
|
+
me,
|
|
2755
|
+
fe
|
|
2756
|
+
]);
|
|
2692
2757
|
return De(S(t, {
|
|
2693
|
-
className:
|
|
2694
|
-
...
|
|
2758
|
+
className: H("MuiModal-root", je),
|
|
2759
|
+
...Qe,
|
|
2695
2760
|
sx: {
|
|
2696
2761
|
position: "fixed",
|
|
2697
|
-
zIndex: "
|
|
2762
|
+
zIndex: Me("popup"),
|
|
2698
2763
|
right: "0",
|
|
2699
2764
|
bottom: "0",
|
|
2700
2765
|
top: "0",
|
|
@@ -2703,90 +2768,92 @@ var ar = {
|
|
|
2703
2768
|
display: "block",
|
|
2704
2769
|
pointerEvents: "none"
|
|
2705
2770
|
},
|
|
2706
|
-
ref:
|
|
2707
|
-
Ee,
|
|
2708
|
-
me,
|
|
2709
|
-
ge
|
|
2710
|
-
]),
|
|
2771
|
+
ref: Ge,
|
|
2711
2772
|
onPointerDown: (e) => {
|
|
2712
|
-
|
|
2773
|
+
$e && (e.target === ge.current || e.target.tabIndex < 0) && ge.current?.contains(document.activeElement);
|
|
2713
2774
|
},
|
|
2714
2775
|
onContextMenu: (e) => {
|
|
2715
2776
|
e.isPropagationStopped() || e.preventDefault();
|
|
2716
2777
|
},
|
|
2717
2778
|
onFocus: (e) => {
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
}, 100),
|
|
2779
|
+
!$e && (e.target === ge.current || e.target.tabIndex < 0) && setTimeout(() => {
|
|
2780
|
+
Ee();
|
|
2781
|
+
}, 100), ze(!0), ge.current?.contains(e.target) && e.target !== ge.current && Le(e.target), e.relatedTarget && !Ne && Oe(e.relatedTarget);
|
|
2721
2782
|
},
|
|
2722
2783
|
onBlur: (e) => {
|
|
2723
|
-
|
|
2724
|
-
},
|
|
2725
|
-
children: [
|
|
2726
|
-
}),
|
|
2727
|
-
})),
|
|
2728
|
-
[
|
|
2729
|
-
[
|
|
2730
|
-
[
|
|
2731
|
-
[
|
|
2732
|
-
},
|
|
2733
|
-
const { description: l, type: s, icon: c, onCancel: d, onOption: p, onDone: u, onValidateOption: m, options: h =
|
|
2734
|
-
const e = "string" == typeof c ? c : c ? void 0 :
|
|
2735
|
-
return e ? M(
|
|
2784
|
+
Ae?.current?.contains(e.relatedTarget) || (Oe(null), ze(!1));
|
|
2785
|
+
},
|
|
2786
|
+
children: [Ve, He]
|
|
2787
|
+
}), qe(), Te);
|
|
2788
|
+
})), mr = ["Ok", "Cancel"], hr = {
|
|
2789
|
+
[ne.Info]: "ValidationInformation",
|
|
2790
|
+
[ne.Warning]: "ValidationWarning",
|
|
2791
|
+
[ne.Error]: "ValidationStop",
|
|
2792
|
+
[ne.Success]: "Check"
|
|
2793
|
+
}, 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 = z(I((e, o) => {
|
|
2794
|
+
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, T = K(null), R = K(null), D = Ce(), I = A(() => {
|
|
2795
|
+
const e = "string" == typeof c ? c : c ? void 0 : hr[s];
|
|
2796
|
+
return e ? M(J, {
|
|
2736
2797
|
iconKey: e,
|
|
2737
2798
|
size: 32,
|
|
2738
2799
|
ariaHidden: !0
|
|
2739
2800
|
}) : c ?? null;
|
|
2740
|
-
}, [c, s]),
|
|
2741
|
-
const t =
|
|
2742
|
-
if (null !==
|
|
2743
|
-
if (
|
|
2744
|
-
const r =
|
|
2801
|
+
}, [c, s]), $ = ue((e) => "string" != typeof e ? "function" == typeof e.label ? e.label() : e.label : "Ok" === e ? D("dialog.ok") : "Cancel" === e ? D("dialog.cancel") : e, [D]), z = K(null), [B, L] = W(null), N = ue(async (e) => {
|
|
2802
|
+
const t = fr(e);
|
|
2803
|
+
if (null !== B) return;
|
|
2804
|
+
if (xr(e)) return;
|
|
2805
|
+
const r = gr(e, x);
|
|
2745
2806
|
let o;
|
|
2746
2807
|
try {
|
|
2747
|
-
if (
|
|
2748
|
-
await Promise.resolve(p?.(t, r,
|
|
2808
|
+
if (L(t), o = !!r || (await Promise.resolve(m?.(t)) ?? !0), !0 !== o) return;
|
|
2809
|
+
await Promise.resolve(p?.(t, r, gr(e, g))), u?.(t);
|
|
2749
2810
|
} catch (e) {} finally {
|
|
2750
|
-
|
|
2811
|
+
L(null);
|
|
2751
2812
|
}
|
|
2752
2813
|
}, [
|
|
2753
2814
|
p,
|
|
2754
2815
|
u,
|
|
2755
2816
|
m,
|
|
2756
2817
|
x,
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
]),
|
|
2818
|
+
g,
|
|
2819
|
+
B
|
|
2820
|
+
]), O = ue((e, t) => {
|
|
2760
2821
|
setTimeout(() => {
|
|
2761
|
-
|
|
2822
|
+
N(g);
|
|
2762
2823
|
}, 180);
|
|
2763
|
-
}, [
|
|
2764
|
-
p?.(
|
|
2824
|
+
}, [N, g]), E = ue(() => {
|
|
2825
|
+
p?.(fr(x), !0, !1), d?.(), u?.(null);
|
|
2765
2826
|
}, [
|
|
2766
2827
|
p,
|
|
2767
2828
|
x,
|
|
2768
2829
|
d,
|
|
2769
2830
|
u
|
|
2770
|
-
]),
|
|
2771
|
-
const i =
|
|
2831
|
+
]), F = P && (Object.keys(P.errors).length > 0 || P.disabled || P.isSubmitting), H = ue((e, t, o) => {
|
|
2832
|
+
const i = gr(e, x), a = {
|
|
2772
2833
|
className: t ? "defaultOption" : "action",
|
|
2773
2834
|
type: t ? "submit" : "button",
|
|
2774
2835
|
style: { minWidth: "75px" },
|
|
2775
2836
|
onClick: () => {
|
|
2776
|
-
i ?
|
|
2837
|
+
i ? E() : t || N(e);
|
|
2777
2838
|
}
|
|
2778
2839
|
}, l = "string" != typeof e ? e.renderButton : void 0;
|
|
2779
|
-
if (l) return M(
|
|
2780
|
-
|
|
2840
|
+
if (l) return M(ae, {
|
|
2841
|
+
render: l,
|
|
2842
|
+
props: {
|
|
2843
|
+
buttonProps: a,
|
|
2844
|
+
isDefaultOption: t
|
|
2845
|
+
}
|
|
2846
|
+
}, `action:${o}`);
|
|
2847
|
+
const s = null !== B && gr(e, B), c = {
|
|
2781
2848
|
className: t ? "defaultOption" : "action",
|
|
2782
2849
|
variant: t ? "contained" : "outlined",
|
|
2783
2850
|
size: "small",
|
|
2784
|
-
disabled: !i && (
|
|
2851
|
+
disabled: !i && (F || xr(e)) || null !== B && !s,
|
|
2785
2852
|
color: "primary",
|
|
2786
2853
|
...a
|
|
2787
2854
|
};
|
|
2788
2855
|
if (t || i) {
|
|
2789
|
-
const e = t ?
|
|
2856
|
+
const e = t ? T : R;
|
|
2790
2857
|
c.touchRippleRef = e, c.onPointerDown = (t) => {
|
|
2791
2858
|
e.current?.start(t, { center: !1 }), t.stopPropagation(), t.preventDefault();
|
|
2792
2859
|
};
|
|
@@ -2795,7 +2862,7 @@ var ar = {
|
|
|
2795
2862
|
...c,
|
|
2796
2863
|
children: [M("div", {
|
|
2797
2864
|
style: { visibility: s ? "hidden" : void 0 },
|
|
2798
|
-
children:
|
|
2865
|
+
children: $(e)
|
|
2799
2866
|
}), m && !i ? M(n, {
|
|
2800
2867
|
size: 16,
|
|
2801
2868
|
color: "inherit",
|
|
@@ -2812,54 +2879,54 @@ var ar = {
|
|
|
2812
2879
|
}, `action:${o}`);
|
|
2813
2880
|
}, [
|
|
2814
2881
|
h,
|
|
2815
|
-
|
|
2882
|
+
g,
|
|
2816
2883
|
x,
|
|
2817
2884
|
P,
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
]),
|
|
2885
|
+
$,
|
|
2886
|
+
B
|
|
2887
|
+
]), q = A(() => {
|
|
2821
2888
|
const e = [];
|
|
2822
2889
|
for (let t = 0; t < h.length; t++) {
|
|
2823
|
-
const r = h[t], o = void 0 !==
|
|
2824
|
-
e.push(
|
|
2890
|
+
const r = h[t], o = void 0 !== g ? gr(r, g) : 0 === t;
|
|
2891
|
+
e.push(H(r, o, t));
|
|
2825
2892
|
}
|
|
2826
2893
|
return e;
|
|
2827
2894
|
}, [
|
|
2828
2895
|
h,
|
|
2829
|
-
|
|
2896
|
+
g,
|
|
2830
2897
|
P,
|
|
2831
|
-
|
|
2832
|
-
|
|
2898
|
+
D,
|
|
2899
|
+
B
|
|
2833
2900
|
]);
|
|
2834
|
-
return M(
|
|
2835
|
-
onCancel:
|
|
2901
|
+
return M(ur, {
|
|
2902
|
+
onCancel: E,
|
|
2836
2903
|
initialPosition: { y: "touch" === $e ? "15" : "35" },
|
|
2837
2904
|
onDone: u,
|
|
2838
|
-
autoFocusSel:
|
|
2905
|
+
autoFocusSel: f,
|
|
2839
2906
|
isModal: !0,
|
|
2840
2907
|
ref: o,
|
|
2841
|
-
...
|
|
2908
|
+
...w,
|
|
2842
2909
|
children: M(ze, {
|
|
2843
|
-
...
|
|
2910
|
+
...k,
|
|
2844
2911
|
children: S("form", {
|
|
2845
|
-
ref:
|
|
2846
|
-
onSubmit: C(
|
|
2912
|
+
ref: z,
|
|
2913
|
+
onSubmit: C(O),
|
|
2847
2914
|
children: [M(a, {
|
|
2848
2915
|
dividers: !0,
|
|
2849
2916
|
onKeyDown: (e) => {
|
|
2850
2917
|
if (e.isDefaultPrevented()) return;
|
|
2851
2918
|
e.stopPropagation();
|
|
2852
2919
|
let t = null, r = null;
|
|
2853
|
-
const o = e.which ===
|
|
2920
|
+
const o = e.which === re.Escape && x;
|
|
2854
2921
|
if (o) {
|
|
2855
|
-
if (null !==
|
|
2856
|
-
t = x, r =
|
|
2922
|
+
if (null !== B) return;
|
|
2923
|
+
t = x, r = R;
|
|
2857
2924
|
} else {
|
|
2858
|
-
if (
|
|
2859
|
-
e.which ===
|
|
2925
|
+
if (F || null !== B) return;
|
|
2926
|
+
e.which === re.Enter && (t = g ?? h[0], r = T);
|
|
2860
2927
|
}
|
|
2861
2928
|
t && (r?.current?.start(e, { center: !1 }), setTimeout(() => {
|
|
2862
|
-
r?.current?.stop(e), o &&
|
|
2929
|
+
r?.current?.stop(e), o && E();
|
|
2863
2930
|
}, 180));
|
|
2864
2931
|
},
|
|
2865
2932
|
children: S(t, {
|
|
@@ -2867,7 +2934,7 @@ var ar = {
|
|
|
2867
2934
|
display: "flex",
|
|
2868
2935
|
flexDirection: "column",
|
|
2869
2936
|
whiteSpace: "pre-wrap",
|
|
2870
|
-
rowGap: (e) => e.spacing(
|
|
2937
|
+
rowGap: (e) => e.spacing(I || l ? 1.5 : 0)
|
|
2871
2938
|
},
|
|
2872
2939
|
children: [S(t, {
|
|
2873
2940
|
sx: {
|
|
@@ -2876,12 +2943,12 @@ var ar = {
|
|
|
2876
2943
|
alignItems: "flex-start",
|
|
2877
2944
|
columnGap: (e) => e.spacing(2)
|
|
2878
2945
|
},
|
|
2879
|
-
children: [
|
|
2946
|
+
children: [I ? M(t, {
|
|
2880
2947
|
sx: {
|
|
2881
2948
|
display: "flex",
|
|
2882
2949
|
flex: "none"
|
|
2883
2950
|
},
|
|
2884
|
-
children:
|
|
2951
|
+
children: I
|
|
2885
2952
|
}) : null, M(b, {
|
|
2886
2953
|
sx: { alignSelf: "center" },
|
|
2887
2954
|
children: l
|
|
@@ -2894,17 +2961,17 @@ var ar = {
|
|
|
2894
2961
|
paddingBottom: (e) => e.spacing(1),
|
|
2895
2962
|
paddingLeft: (e) => e.spacing(1),
|
|
2896
2963
|
paddingRight: (e) => e.spacing(1),
|
|
2897
|
-
backgroundColor: (e) =>
|
|
2964
|
+
backgroundColor: (e) => V(e.palette.action.hover, .03)
|
|
2898
2965
|
},
|
|
2899
|
-
children:
|
|
2966
|
+
children: q
|
|
2900
2967
|
})]
|
|
2901
2968
|
})
|
|
2902
2969
|
})
|
|
2903
2970
|
});
|
|
2904
|
-
})),
|
|
2971
|
+
})), yr = (e) => {
|
|
2905
2972
|
const { showModal: t } = Re();
|
|
2906
2973
|
return (r) => new Promise((o) => {
|
|
2907
|
-
const n = t(
|
|
2974
|
+
const n = t(br, {
|
|
2908
2975
|
...e,
|
|
2909
2976
|
...r,
|
|
2910
2977
|
onOption(e, t, n) {
|
|
@@ -2915,12 +2982,12 @@ var ar = {
|
|
|
2915
2982
|
}
|
|
2916
2983
|
});
|
|
2917
2984
|
});
|
|
2918
|
-
},
|
|
2985
|
+
}, vr = lr(U("utils-mui:inputDialog", () => import("./DTa5twriT7hpPLUG.mjs")).load), wr = (e) => {
|
|
2919
2986
|
const { showModal: t } = Re();
|
|
2920
2987
|
return (r) => {
|
|
2921
2988
|
const { defaultOption: o = r.options?.[0], cancelOption: n = "Cancel", ...i } = r;
|
|
2922
2989
|
return new Promise((r, a) => {
|
|
2923
|
-
const l = t(
|
|
2990
|
+
const l = t(vr, {
|
|
2924
2991
|
...e,
|
|
2925
2992
|
defaultOption: o,
|
|
2926
2993
|
cancelOption: n,
|
|
@@ -2946,9 +3013,9 @@ var ar = {
|
|
|
2946
3013
|
});
|
|
2947
3014
|
});
|
|
2948
3015
|
};
|
|
2949
|
-
},
|
|
3016
|
+
}, kr = z(I((e, t) => {
|
|
2950
3017
|
const { commandKey: r, command: o, disabled: n, shortcut: i, children: a, ...l } = e, [s] = he(r ?? []), c = o ?? s, d = c?.getShortcut();
|
|
2951
|
-
return M(
|
|
3018
|
+
return M(Ot, {
|
|
2952
3019
|
ref: t,
|
|
2953
3020
|
label: void 0 !== n ? c?.getLabel() : "",
|
|
2954
3021
|
shortcut: void 0 !== i ? i : Array.isArray(d) ? d[0] : d,
|
|
@@ -2964,32 +3031,32 @@ var ar = {
|
|
|
2964
3031
|
children: a
|
|
2965
3032
|
})
|
|
2966
3033
|
});
|
|
2967
|
-
})),
|
|
2968
|
-
function
|
|
2969
|
-
const e =
|
|
3034
|
+
})), Cr = Le;
|
|
3035
|
+
function Mr() {
|
|
3036
|
+
const e = K(null);
|
|
2970
3037
|
return {
|
|
2971
|
-
ripple: A(() => M(
|
|
3038
|
+
ripple: A(() => M(Cr, {
|
|
2972
3039
|
ref: e,
|
|
2973
3040
|
center: !1
|
|
2974
3041
|
}), []),
|
|
2975
|
-
trigger:
|
|
3042
|
+
trigger: B(() => {
|
|
2976
3043
|
e.current?.start(void 0, { center: !0 }), setTimeout(() => e.current?.stop(), 180);
|
|
2977
3044
|
}, [])
|
|
2978
3045
|
};
|
|
2979
3046
|
}
|
|
2980
|
-
var
|
|
2981
|
-
const { commandKey: r, command: o, groupKey: n, icon: i, label: a, showLabel: l = !1, disabled: s, variant: c =
|
|
2982
|
-
|
|
2983
|
-
} }), [
|
|
3047
|
+
var Sr = M(J, {}), Pr = z(I((e, t) => {
|
|
3048
|
+
const { commandKey: r, command: o, groupKey: n, icon: i, label: a, showLabel: l = !1, disabled: s, variant: c = Y.Toolbar, shortcut: d, commandState: p, propsTooltip: u, ...m } = e, { ripple: h, trigger: f } = Mr(), g = A(() => ({ onExecute() {
|
|
3049
|
+
f();
|
|
3050
|
+
} }), [f]), [x] = he(r ?? [], g), b = o ?? x, y = B((e) => {
|
|
2984
3051
|
0 === e.button && e.preventDefault();
|
|
2985
|
-
}, []), v =
|
|
3052
|
+
}, []), v = B(async (e) => {
|
|
2986
3053
|
0 === e.button && b && await b.execute(p);
|
|
2987
|
-
}, [b, p]),
|
|
2988
|
-
e.keyCode !==
|
|
2989
|
-
}, [b, p]),
|
|
2990
|
-
if (null === i) return
|
|
3054
|
+
}, [b, p]), w = B((e) => {
|
|
3055
|
+
e.keyCode !== re.Enter && e.keyCode !== re.Space || b?.execute(p);
|
|
3056
|
+
}, [b, p]), k = s ?? (!b || b.disabled()), C = b?.getState(), P = A(() => {
|
|
3057
|
+
if (null === i) return Sr;
|
|
2991
3058
|
let e;
|
|
2992
|
-
return e = "function" == typeof i ? b ? i(b) : void 0 : i, e || (e = b?.getIcon(n)), e ? ("string" == typeof e && (e = M(
|
|
3059
|
+
return e = "function" == typeof i ? b ? i(b) : void 0 : i, e || (e = b?.getIcon(n)), e ? ("string" == typeof e && (e = M(J, { iconKey: e })), e) : c === Y.Toolbar || C ? void 0 : Sr;
|
|
2993
3060
|
}, [
|
|
2994
3061
|
b,
|
|
2995
3062
|
n,
|
|
@@ -3000,61 +3067,61 @@ var wr = M(Z, {}), Cr = B($((e, t) => {
|
|
|
3000
3067
|
tabIndex: 0,
|
|
3001
3068
|
ref: t,
|
|
3002
3069
|
selected: !!C,
|
|
3003
|
-
icon: c ===
|
|
3070
|
+
icon: c === Y.Toolbar ? l ? Oe(P, a ?? b?.getLabel(n)) : P : M(Jt, {
|
|
3004
3071
|
selected: C ?? !1,
|
|
3005
3072
|
children: P
|
|
3006
3073
|
}),
|
|
3007
3074
|
disableRipple: !0,
|
|
3008
|
-
disabled:
|
|
3075
|
+
disabled: k,
|
|
3009
3076
|
onMouseDown: y,
|
|
3010
3077
|
onMouseUp: v,
|
|
3011
|
-
onKeyDown:
|
|
3078
|
+
onKeyDown: w
|
|
3012
3079
|
};
|
|
3013
3080
|
let R;
|
|
3014
|
-
return R = c ===
|
|
3081
|
+
return R = c === Y.Menuitem ? S(Vt, {
|
|
3015
3082
|
...m,
|
|
3016
3083
|
...T,
|
|
3017
3084
|
children: [a ?? b?.getLabel(n), h]
|
|
3018
|
-
}) : M(
|
|
3085
|
+
}) : M(Ft, {
|
|
3019
3086
|
...m,
|
|
3020
3087
|
...T,
|
|
3021
3088
|
children: h
|
|
3022
|
-
}), a || b?.getLabel() ? (
|
|
3089
|
+
}), a || b?.getLabel() ? (k && (R = M("div", { children: R })), R = M(kr, {
|
|
3023
3090
|
commandKey: r,
|
|
3024
3091
|
command: o,
|
|
3025
|
-
disabled:
|
|
3026
|
-
placement: c ===
|
|
3092
|
+
disabled: k,
|
|
3093
|
+
placement: c === Y.Toolbar ? "bottom-start" : "right-start",
|
|
3027
3094
|
shortcut: d,
|
|
3028
3095
|
...u,
|
|
3029
3096
|
children: R
|
|
3030
3097
|
}), R) : R;
|
|
3031
3098
|
}));
|
|
3032
|
-
|
|
3033
|
-
var
|
|
3034
|
-
const { commandKey: r, groupKey: o, icon: n, commandState: i, label: a, variant: l =
|
|
3035
|
-
|
|
3036
|
-
} }), [
|
|
3099
|
+
Pr.displayName = "CommandButton";
|
|
3100
|
+
var Tr = M(J, {}), Rr = z(I((e, t) => {
|
|
3101
|
+
const { commandKey: r, groupKey: o, icon: n, commandState: i, label: a, variant: l = Y.Toolbar, disabled: s, parseInput: c, inputProps: u, inputRef: m, ...h } = e, { ripple: f, trigger: g } = Mr(), x = A(() => ({ onExecute() {
|
|
3102
|
+
g();
|
|
3103
|
+
} }), [g]), b = he(r ?? [], x)[0], y = () => b?.getState()?.toString() || "", [v, w] = W(""), k = K(y()), C = ue(() => {
|
|
3037
3104
|
let e = v;
|
|
3038
3105
|
if (c) try {
|
|
3039
3106
|
e = c(v);
|
|
3040
3107
|
} catch (e) {
|
|
3041
|
-
|
|
3108
|
+
w(y());
|
|
3042
3109
|
return;
|
|
3043
3110
|
}
|
|
3044
|
-
|
|
3111
|
+
k.current !== v ? (k.current = v, b?.execute(e)) : w(y());
|
|
3045
3112
|
}, [
|
|
3046
3113
|
y,
|
|
3047
3114
|
b,
|
|
3048
3115
|
v,
|
|
3049
3116
|
c
|
|
3050
3117
|
]);
|
|
3051
|
-
|
|
3052
|
-
|
|
3118
|
+
N(() => {
|
|
3119
|
+
w(y());
|
|
3053
3120
|
}, [b?.getState()]);
|
|
3054
3121
|
const P = A(() => {
|
|
3055
|
-
if (null === n) return
|
|
3122
|
+
if (null === n) return Tr;
|
|
3056
3123
|
let e;
|
|
3057
|
-
return e = "function" == typeof n ? b ? n(b) : void 0 : n, e || (e = b?.getIcon()), e ? ("string" == typeof e && (e = M(
|
|
3124
|
+
return e = "function" == typeof n ? b ? n(b) : void 0 : n, e || (e = b?.getIcon()), e ? ("string" == typeof e && (e = M(J, { iconKey: e })), e) : l === Y.Toolbar || b?.getState() ? void 0 : Tr;
|
|
3058
3125
|
}, [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, {
|
|
3059
3126
|
...h,
|
|
3060
3127
|
sx: {
|
|
@@ -3102,14 +3169,14 @@ var Mr = M(Z, {}), Sr = B($((e, t) => {
|
|
|
3102
3169
|
e.target?.select();
|
|
3103
3170
|
},
|
|
3104
3171
|
onKeyDown: (e) => {
|
|
3105
|
-
if (e.which ===
|
|
3106
|
-
else if (e.which ===
|
|
3172
|
+
if (e.which === re.Enter) y() !== v && (e.stopPropagation(), e.preventDefault(), C());
|
|
3173
|
+
else if (e.which === re.Escape) y() !== v && (w(y()), setTimeout(() => {
|
|
3107
3174
|
e.target?.select();
|
|
3108
3175
|
}, 0), e.stopPropagation(), e.preventDefault());
|
|
3109
3176
|
else {
|
|
3110
3177
|
if (e.key.match("[-]")) return e.stopPropagation(), void e.preventDefault();
|
|
3111
3178
|
if (e.key.match("[0-9.]") && (v + e.key).length > 4) return e.stopPropagation(), void e.preventDefault();
|
|
3112
|
-
if (e.which ===
|
|
3179
|
+
if (e.which === re.Space) return void e.preventDefault();
|
|
3113
3180
|
}
|
|
3114
3181
|
},
|
|
3115
3182
|
onBlur: () => {
|
|
@@ -3117,7 +3184,7 @@ var Mr = M(Z, {}), Sr = B($((e, t) => {
|
|
|
3117
3184
|
},
|
|
3118
3185
|
onChange: (e) => {
|
|
3119
3186
|
if (e.target.value.length > 4) return e.stopPropagation(), void e.preventDefault();
|
|
3120
|
-
|
|
3187
|
+
w(e.target.value);
|
|
3121
3188
|
}
|
|
3122
3189
|
})
|
|
3123
3190
|
}), [
|
|
@@ -3138,35 +3205,35 @@ var Mr = M(Z, {}), Sr = B($((e, t) => {
|
|
|
3138
3205
|
0 !== e.button || e.isPropagationStopped() || e.isDefaultPrevented() || e.isDefaultPrevented() || (e.preventDefault(), C());
|
|
3139
3206
|
},
|
|
3140
3207
|
onKeyDown: (e) => {
|
|
3141
|
-
e.keyCode !==
|
|
3208
|
+
e.keyCode !== re.Enter && e.keyCode !== re.Tab || C();
|
|
3142
3209
|
}
|
|
3143
3210
|
};
|
|
3144
3211
|
let $;
|
|
3145
|
-
return $ = l ===
|
|
3212
|
+
return $ = l === Y.Menuitem ? S(Vt, {
|
|
3146
3213
|
...h,
|
|
3147
3214
|
...I,
|
|
3148
3215
|
children: [
|
|
3149
3216
|
T,
|
|
3150
3217
|
D,
|
|
3151
|
-
|
|
3218
|
+
f
|
|
3152
3219
|
]
|
|
3153
|
-
}) : M(
|
|
3220
|
+
}) : M(Ft, {
|
|
3154
3221
|
...h,
|
|
3155
3222
|
...I,
|
|
3156
|
-
children:
|
|
3157
|
-
}), b?.getLabel() ? ((b.disabled() || s) && ($ = M("div", { children: $ })), $ = M(
|
|
3223
|
+
children: f
|
|
3224
|
+
}), b?.getLabel() ? ((b.disabled() || s) && ($ = M("div", { children: $ })), $ = M(kr, {
|
|
3158
3225
|
commandKey: r,
|
|
3159
|
-
placement: l ===
|
|
3226
|
+
placement: l === Y.Toolbar ? "bottom-start" : "right-start",
|
|
3160
3227
|
children: $
|
|
3161
3228
|
}), $) : $;
|
|
3162
|
-
})),
|
|
3163
|
-
const { variant: r =
|
|
3164
|
-
|
|
3165
|
-
} }), [
|
|
3229
|
+
})), Dr = z(I((e, t) => {
|
|
3230
|
+
const { variant: r = Y.Toolbar, quickCommand: o, onQuickClick: n, commandState: i, disabled: a, label: l, icon: s, renderPopupPanel: c, tooltip: d, selected: p, groupKey: u, ...m } = e, { ripple: h, trigger: f } = Mr(), g = A(() => ({ onExecute() {
|
|
3231
|
+
f();
|
|
3232
|
+
} }), [f]), [x] = he(o ?? [], g), { label: b, icon: y } = A(() => {
|
|
3166
3233
|
let e = null;
|
|
3167
3234
|
l && (e = "function" == typeof l ? x ? l(x) : null : l), e || (e = x?.getLabel?.(u));
|
|
3168
3235
|
let t = s;
|
|
3169
|
-
return t || (t = x?.getIcon?.(u)), "string" == typeof t ? t = M(
|
|
3236
|
+
return t || (t = x?.getIcon?.(u)), "string" == typeof t ? t = M(J, { iconKey: t }) : "function" == typeof t && (t = x ? t(x) : void 0), {
|
|
3170
3237
|
label: e,
|
|
3171
3238
|
icon: t
|
|
3172
3239
|
};
|
|
@@ -3182,29 +3249,29 @@ var Mr = M(Z, {}), Sr = B($((e, t) => {
|
|
|
3182
3249
|
label: b,
|
|
3183
3250
|
icon: y
|
|
3184
3251
|
};
|
|
3185
|
-
(b || d) && (v.
|
|
3252
|
+
(b || d) && (v.renderTooltip = ({ children: e, disabled: t }) => M(Ot, {
|
|
3186
3253
|
label: b,
|
|
3187
3254
|
description: d,
|
|
3188
3255
|
disabled: t,
|
|
3189
3256
|
children: e
|
|
3190
3257
|
}));
|
|
3191
|
-
const
|
|
3192
|
-
return x ? (v.propsQuickButton = {}, v.propsQuickButton.
|
|
3258
|
+
const w = ue((e) => c?.(e), [c]), k = ue((e) => x?.execute(i), [x]);
|
|
3259
|
+
return x ? (v.propsQuickButton = {}, v.propsQuickButton.renderTooltip = ({ children: e, placement: t, disabled: n }) => M(kr, {
|
|
3193
3260
|
commandKey: o,
|
|
3194
|
-
placement: t ?? r ===
|
|
3261
|
+
placement: t ?? r === Y.Toolbar ? "bottom-start" : "right-start",
|
|
3195
3262
|
disabled: n,
|
|
3196
3263
|
children: e
|
|
3197
|
-
}), v.disabled = v.disabled ?? x?.disabled(), n || (v.onQuickClick =
|
|
3264
|
+
}), v.disabled = v.disabled ?? x?.disabled(), n || (v.onQuickClick = k)) : o && (v.onQuickClick = () => {}), v.selected = p ?? x?.getState(), v.renderPopupPanel = w, r === Y.Toolbar ? M(jt, {
|
|
3198
3265
|
...m,
|
|
3199
3266
|
...v,
|
|
3200
3267
|
ref: t
|
|
3201
|
-
}) : M(
|
|
3268
|
+
}) : M(Ut, {
|
|
3202
3269
|
...m,
|
|
3203
3270
|
...v,
|
|
3204
3271
|
ref: t
|
|
3205
3272
|
});
|
|
3206
3273
|
}));
|
|
3207
|
-
function
|
|
3274
|
+
function Ir(e, t = {}) {
|
|
3208
3275
|
const { variant: r, dividerOrientation: o = "vertical", groupKey: n, commandState: i, propsCommandButton: a, propsCommandPopup: l, registry: s } = t, c = { ...a };
|
|
3209
3276
|
void 0 !== r && (c.variant = r);
|
|
3210
3277
|
const d = { ...l };
|
|
@@ -3219,10 +3286,10 @@ function Tr(e, t = {}) {
|
|
|
3219
3286
|
icon: r?.getIcon?.(n),
|
|
3220
3287
|
showLabel: r?.showLabel
|
|
3221
3288
|
};
|
|
3222
|
-
return (r?.render ? r.render(o, n) : M(
|
|
3289
|
+
return (r?.render ? r.render(o, n) : M(Pr, { ...o })) ?? null;
|
|
3223
3290
|
}, u = (e) => {
|
|
3224
3291
|
const t = "string" == typeof e ? e : e.key, r = "string" == typeof e ? void 0 : e;
|
|
3225
|
-
if (!t) return ((e) => Array.isArray(e.members) ? e.render ? e.render({ ...d }, void 0) ?? null : M(
|
|
3292
|
+
if (!t) return ((e) => Array.isArray(e.members) ? e.render ? e.render({ ...d }, void 0) ?? null : M($r, {
|
|
3226
3293
|
...d,
|
|
3227
3294
|
members: e.members,
|
|
3228
3295
|
icon: e.getIcon?.(),
|
|
@@ -3231,11 +3298,11 @@ function Tr(e, t = {}) {
|
|
|
3231
3298
|
}) : (e.render ? e.render({ ...d }, n) : null) ?? null)(e);
|
|
3232
3299
|
const o = s?.get(t) ?? null;
|
|
3233
3300
|
return o ? ((e, t, r) => {
|
|
3234
|
-
if (Array.isArray(e.members)) return e.render ? e.render({ ...d }, t) ?? null : M(
|
|
3301
|
+
if (Array.isArray(e.members)) return e.render ? e.render({ ...d }, t) ?? null : M($r, {
|
|
3235
3302
|
...d,
|
|
3236
3303
|
groupKey: t,
|
|
3237
3304
|
icon: r?.getIcon?.(t),
|
|
3238
|
-
label: r?.getLabel?.(t),
|
|
3305
|
+
label: r?.getLabel?.(t) ?? (n ? e.getLabel?.(n) : void 0),
|
|
3239
3306
|
showLabel: r?.showLabel
|
|
3240
3307
|
});
|
|
3241
3308
|
if (e.render) return e.render({ ...d }, n) ?? null;
|
|
@@ -3246,43 +3313,50 @@ function Tr(e, t = {}) {
|
|
|
3246
3313
|
return p(e.defaultKey ?? t, o.state, o);
|
|
3247
3314
|
})(o, t, r) : p(t, r?.state, r);
|
|
3248
3315
|
}, m = [];
|
|
3249
|
-
let h = 0,
|
|
3316
|
+
let h = 0, f = !1, g = !1;
|
|
3250
3317
|
const x = e ?? [];
|
|
3251
3318
|
for (let e = 0; e < x.length; e++) {
|
|
3252
3319
|
const t = x[e];
|
|
3253
3320
|
if (!t || "-" === t) {
|
|
3254
|
-
|
|
3321
|
+
g && (f = !0);
|
|
3255
3322
|
continue;
|
|
3256
3323
|
}
|
|
3257
3324
|
const r = u(t);
|
|
3258
|
-
r && (
|
|
3325
|
+
r && (f && (m.push(M(He, { orientation: o }, "member-" + h++)), f = !1), m.push(R(r, { key: "member-" + h++ })), g = !0);
|
|
3259
3326
|
}
|
|
3260
3327
|
return m;
|
|
3261
3328
|
}
|
|
3262
|
-
|
|
3263
|
-
var
|
|
3264
|
-
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,
|
|
3329
|
+
Dr.displayName = "CommandPopupButton";
|
|
3330
|
+
var $r = z(I((e, t) => {
|
|
3331
|
+
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, [
|
|
3265
3332
|
o,
|
|
3266
3333
|
r,
|
|
3267
3334
|
h
|
|
3268
|
-
]), b = r, y = i ??
|
|
3269
|
-
const e = [], t =
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3335
|
+
]), 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(() => {
|
|
3336
|
+
const e = [], t = /* @__PURE__ */ new Set(), r = (o) => {
|
|
3337
|
+
for (let n = 0; n < o.length; n++) {
|
|
3338
|
+
const i = o[n];
|
|
3339
|
+
if (!i || "-" === i) continue;
|
|
3340
|
+
const a = "string" == typeof i ? i : i.key;
|
|
3341
|
+
if (!a) continue;
|
|
3342
|
+
if (t.has(a)) continue;
|
|
3343
|
+
t.add(a);
|
|
3344
|
+
const l = Array.isArray(h.get(a)?.members) ? h.resolveMembers(a) : null;
|
|
3345
|
+
l ? r(l) : e.push(a);
|
|
3346
|
+
}
|
|
3347
|
+
};
|
|
3348
|
+
return r(x ?? []), e;
|
|
3349
|
+
}, [x, h]), P = he(y ? [y, ...S] : S), T = A(() => {
|
|
3276
3350
|
for (let e = 0; e < P.length; e++) {
|
|
3277
3351
|
const t = P[e];
|
|
3278
3352
|
if (t && !t.disabled()) return !1;
|
|
3279
3353
|
}
|
|
3280
3354
|
return !0;
|
|
3281
|
-
}, [P]), R =
|
|
3355
|
+
}, [P]), R = B((e) => {
|
|
3282
3356
|
const t = {};
|
|
3283
3357
|
void 0 !== p && (t.disabled = p);
|
|
3284
|
-
const r =
|
|
3285
|
-
variant:
|
|
3358
|
+
const r = Ir(x, {
|
|
3359
|
+
variant: Y.Menuitem,
|
|
3286
3360
|
dividerOrientation: "horizontal",
|
|
3287
3361
|
groupKey: b,
|
|
3288
3362
|
commandState: d,
|
|
@@ -3290,7 +3364,7 @@ var Rr = B($((e, t) => {
|
|
|
3290
3364
|
propsCommandPopup: t,
|
|
3291
3365
|
registry: h
|
|
3292
3366
|
});
|
|
3293
|
-
return
|
|
3367
|
+
return St({
|
|
3294
3368
|
...e,
|
|
3295
3369
|
children: r
|
|
3296
3370
|
});
|
|
@@ -3301,25 +3375,25 @@ var Rr = B($((e, t) => {
|
|
|
3301
3375
|
d,
|
|
3302
3376
|
p
|
|
3303
3377
|
]);
|
|
3304
|
-
return x ? M(
|
|
3378
|
+
return x ? M(Dr, {
|
|
3305
3379
|
ref: t,
|
|
3306
3380
|
quickCommand: y,
|
|
3307
3381
|
icon: v,
|
|
3308
|
-
label:
|
|
3309
|
-
showLabel:
|
|
3382
|
+
label: w,
|
|
3383
|
+
showLabel: k,
|
|
3310
3384
|
tooltip: C,
|
|
3311
3385
|
commandState: d,
|
|
3312
3386
|
disabled: p ?? T,
|
|
3313
|
-
|
|
3387
|
+
renderPopupPanel: R,
|
|
3314
3388
|
...u
|
|
3315
3389
|
}) : null;
|
|
3316
3390
|
}));
|
|
3317
|
-
|
|
3318
|
-
var
|
|
3391
|
+
$r.displayName = "CommandGroup";
|
|
3392
|
+
var zr = M(J, { iconKey: "Check" }), Br = (e) => {
|
|
3319
3393
|
const { commandKey: r, label: o, groupKey: n, icon: i, sx: a, ...l } = e, [s] = he(r ?? []), c = A(() => {
|
|
3320
3394
|
if (void 0 !== i) return i;
|
|
3321
3395
|
let e = s?.getIcon(n);
|
|
3322
|
-
return e ? ("string" == typeof e && (e = M(
|
|
3396
|
+
return e ? ("string" == typeof e && (e = M(J, { iconKey: e })), e) : zr;
|
|
3323
3397
|
}, [
|
|
3324
3398
|
i,
|
|
3325
3399
|
n,
|
|
@@ -3347,42 +3421,42 @@ var Dr = M(Z, { iconKey: "Check" }), Ir = (e) => {
|
|
|
3347
3421
|
children: o ?? s?.getLabel(n)
|
|
3348
3422
|
})]
|
|
3349
3423
|
});
|
|
3350
|
-
},
|
|
3424
|
+
}, Lr = z(I((e, t) => {
|
|
3351
3425
|
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, [
|
|
3352
3426
|
a,
|
|
3353
3427
|
i,
|
|
3354
3428
|
u,
|
|
3355
3429
|
u.getVersion()
|
|
3356
|
-
]), h = ye(t, () => ({}), []), [
|
|
3430
|
+
]), h = ye(t, () => ({}), []), [f, x] = W(null), { reference: b } = ge({
|
|
3357
3431
|
label: "toolbar",
|
|
3358
3432
|
anchor: h.current,
|
|
3359
3433
|
parentFloat: n,
|
|
3360
|
-
|
|
3434
|
+
renderPopupPanel: null
|
|
3361
3435
|
}), y = ue(() => {
|
|
3362
|
-
const e =
|
|
3436
|
+
const e = f;
|
|
3363
3437
|
e && requestAnimationFrame(() => {
|
|
3364
3438
|
h.current?.contains(document.activeElement) && e.focus();
|
|
3365
3439
|
});
|
|
3366
|
-
}, [
|
|
3440
|
+
}, [f]), v = A(() => ({
|
|
3367
3441
|
dense: !0,
|
|
3368
3442
|
outlined: !1
|
|
3369
|
-
}), []),
|
|
3443
|
+
}), []), w = A(() => ({ ...o || {} }), [o]), k = A(() => ({
|
|
3370
3444
|
...v,
|
|
3371
|
-
...
|
|
3372
|
-
}), [v,
|
|
3445
|
+
...w
|
|
3446
|
+
}), [v, w]), C = A(() => ({ ...w }), [k, o]);
|
|
3373
3447
|
let S = 0;
|
|
3374
3448
|
v.dense || (S += 2), v.outlined && S++;
|
|
3375
3449
|
let P = 2;
|
|
3376
3450
|
v.dense || (P = 4);
|
|
3377
3451
|
const T = A(() => {
|
|
3378
3452
|
const e = {
|
|
3379
|
-
propsCommandButton:
|
|
3453
|
+
propsCommandButton: k,
|
|
3380
3454
|
propsCommandPopup: {
|
|
3381
3455
|
...C,
|
|
3382
3456
|
...o
|
|
3383
3457
|
}
|
|
3384
3458
|
};
|
|
3385
|
-
return s ? s(e) : m ? M(
|
|
3459
|
+
return s ? s(e) : m ? M(nr, { children: Ir(m, {
|
|
3386
3460
|
dividerOrientation: "vertical",
|
|
3387
3461
|
groupKey: i,
|
|
3388
3462
|
propsCommandButton: e.propsCommandButton,
|
|
@@ -3390,7 +3464,7 @@ var Dr = M(Z, { iconKey: "Check" }), Ir = (e) => {
|
|
|
3390
3464
|
registry: u
|
|
3391
3465
|
}) }) : null;
|
|
3392
3466
|
}, [
|
|
3393
|
-
|
|
3467
|
+
k,
|
|
3394
3468
|
C,
|
|
3395
3469
|
o,
|
|
3396
3470
|
s,
|
|
@@ -3398,7 +3472,7 @@ var Dr = M(Z, { iconKey: "Check" }), Ir = (e) => {
|
|
|
3398
3472
|
i,
|
|
3399
3473
|
u
|
|
3400
3474
|
]);
|
|
3401
|
-
return M(
|
|
3475
|
+
return M(g, {
|
|
3402
3476
|
variant: "dense",
|
|
3403
3477
|
sx: {
|
|
3404
3478
|
minHeight: "unset",
|
|
@@ -3417,13 +3491,13 @@ var Dr = M(Z, { iconKey: "Check" }), Ir = (e) => {
|
|
|
3417
3491
|
},
|
|
3418
3492
|
ref: h,
|
|
3419
3493
|
onFocus: (e) => {
|
|
3420
|
-
e.relatedTarget && !
|
|
3494
|
+
e.relatedTarget && !f && x(e.relatedTarget);
|
|
3421
3495
|
},
|
|
3422
3496
|
onBlur: (e) => {
|
|
3423
|
-
|
|
3497
|
+
f && !h?.current?.contains(e.relatedTarget) && x(null);
|
|
3424
3498
|
},
|
|
3425
3499
|
onKeyDown: (e) => {
|
|
3426
|
-
|
|
3500
|
+
f && e.which === re.Escape && f.focus();
|
|
3427
3501
|
},
|
|
3428
3502
|
...d,
|
|
3429
3503
|
children: M("div", {
|
|
@@ -3437,9 +3511,9 @@ var Dr = M(Z, { iconKey: "Check" }), Ir = (e) => {
|
|
|
3437
3511
|
alignItems: "center",
|
|
3438
3512
|
maxWidth: "100%"
|
|
3439
3513
|
},
|
|
3440
|
-
children: M(
|
|
3514
|
+
children: M(te, {
|
|
3441
3515
|
value: b,
|
|
3442
|
-
children: M(
|
|
3516
|
+
children: M(_, {
|
|
3443
3517
|
value: y,
|
|
3444
3518
|
children: T
|
|
3445
3519
|
})
|
|
@@ -3447,8 +3521,8 @@ var Dr = M(Z, { iconKey: "Check" }), Ir = (e) => {
|
|
|
3447
3521
|
})
|
|
3448
3522
|
});
|
|
3449
3523
|
}));
|
|
3450
|
-
|
|
3451
|
-
var
|
|
3524
|
+
Lr.displayName = "CommandToolbar";
|
|
3525
|
+
var Nr = z(I((e, t) => {
|
|
3452
3526
|
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, [
|
|
3453
3527
|
o,
|
|
3454
3528
|
r,
|
|
@@ -3466,21 +3540,21 @@ var zr = B($((e, t) => {
|
|
|
3466
3540
|
const t = u[e];
|
|
3467
3541
|
t && !t.disabled() && t.getState() && (m = p[e], h = t.getIcon());
|
|
3468
3542
|
}
|
|
3469
|
-
const
|
|
3543
|
+
const f = "icon" === i ? {
|
|
3470
3544
|
icon: h ?? a,
|
|
3471
3545
|
quickCommand: void 0
|
|
3472
3546
|
} : {
|
|
3473
3547
|
quickCommand: m ?? p[0],
|
|
3474
3548
|
icon: void 0
|
|
3475
3549
|
};
|
|
3476
|
-
return M(
|
|
3550
|
+
return M($r, {
|
|
3477
3551
|
ref: t,
|
|
3478
3552
|
groupKey: r,
|
|
3479
3553
|
members: o,
|
|
3480
3554
|
registry: c,
|
|
3481
3555
|
...l,
|
|
3482
|
-
...
|
|
3556
|
+
...f
|
|
3483
3557
|
});
|
|
3484
3558
|
}));
|
|
3485
|
-
|
|
3486
|
-
export { Ge as AnimatedBouncingEllipsisIcon, je as AnimatedCircleIcon, qe as AnimatedClockIcon, Qe as AnimatedFadingEllipsisIcon, Ze as AnimatedLoadingPanel, Ue as AnimatedOrbitIcon, Xe as AnimatedTraversingEllipsisIcon,
|
|
3559
|
+
Nr.displayName = "ToggleGroupButton";
|
|
3560
|
+
export { Ge as AnimatedBouncingEllipsisIcon, je as AnimatedCircleIcon, qe as AnimatedClockIcon, Qe as AnimatedFadingEllipsisIcon, Ze as AnimatedLoadingPanel, Ue as AnimatedOrbitIcon, Xe as AnimatedTraversingEllipsisIcon, pt as ArrowDownIcon, ut as ArrowRightIcon, st as ChipStrip, 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, Ft 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, Fe as createScrollButton, dt as createStrokeShadowFilter, St as defaultRenderPopupPanel, Ae as defaultRenderScrollButtonEdge, We as defaultRenderScrollButtonEnd, Ke as defaultRenderScrollButtonStart, 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, wt as scrollbarTheming, _e as showLoadingPanel, ct as strokeShadowFilter, Nt as toShortcutElements, wr as useInputDialog, sr as useLazyWindow, yr as useOptionsDialog };
|