@sheetxl/utils-mui 0.7.6 → 0.7.8
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 +1 -1
- package/browser/cjs/BPxl0jVX4EYr2DVy.cjs +11 -0
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/r9NfOw9U7QUJ3sMk.cjs +6 -0
- package/browser/esm/BdK_nANHPbXOoKy3.mjs +2879 -0
- package/browser/esm/_ZZgLPCRySUJRlwk.mjs +44 -0
- package/browser/esm/index.mjs +2 -2
- package/licenses/dependencies.txt +1 -1
- package/node/esm/{BAmiGxXEmtXqUpVj.mjs → DHvOYCVK5KUCv0Ud.mjs} +8 -8
- package/node/esm/index.mjs +377 -375
- package/package.json +8 -8
- package/types/index.d.ts +26 -15
- package/browser/cjs/BYGsvpSTIDkazPUe.cjs +0 -11
- package/browser/cjs/BcDVTPwhjtaDt5bp.cjs +0 -6
- package/browser/esm/BKsvb2y93wXmAwiC.mjs +0 -2865
- package/browser/esm/BTZ_PiSM7GBlYmi5.mjs +0 -44
package/node/esm/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.
|
|
2
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.8
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -9,55 +9,55 @@ import n, { memo as r, forwardRef as i, useMemo as a, useRef as l, useEffect as
|
|
|
9
9
|
import h from "clsx";
|
|
10
10
|
import { alpha as f, darken as x, lighten as g } from "@mui/system";
|
|
11
11
|
import { IconButton as b, Divider as y, Box as v, Typography as k, Paper as w, Chip as C, Popper as M, Grow as S, Tooltip as P, ListItemIcon as R, MenuItem as D, Fade as E, Backdrop as T, DialogTitle as $, Button as O, DialogContent as z, DialogActions as I, Input as N, Toolbar as B } from "@mui/material";
|
|
12
|
-
import {
|
|
13
|
-
import { defaultCreateScrollEdgeButton as
|
|
14
|
-
import { useTheme as
|
|
15
|
-
import { deepmerge as
|
|
16
|
-
import { detectOverflow as
|
|
17
|
-
import { mergeRefs as
|
|
18
|
-
import { useIsomorphicLayoutEffect as
|
|
19
|
-
import
|
|
20
|
-
import { useModal as
|
|
12
|
+
import { ErrorUtils as L, CommonUtils as F } from "@sheetxl/utils";
|
|
13
|
+
import { defaultCreateScrollEdgeButton as A, ScrollbarOrientation as H, DynamicIcon as W, useCallbackRef as K, useFullscreenPortal as V, KeyCodes as q, KeyModifiers as _, ReactUtils as j, useImperativeElement as U, useCommand as Q, CommandButtonType as G, useCommands as X } from "@sheetxl/utils-react";
|
|
14
|
+
import { useTheme as Y, styled as J, createTheme as Z, useThemeProps as ee } from "@mui/material/styles";
|
|
15
|
+
import { deepmerge as te } from "@mui/utils";
|
|
16
|
+
import { detectOverflow as oe } from "@popperjs/core";
|
|
17
|
+
import { mergeRefs as ne } from "react-merge-refs";
|
|
18
|
+
import { useIsomorphicLayoutEffect as re, useMeasure as ie } from "react-use";
|
|
19
|
+
import ae from "tiny-invariant";
|
|
20
|
+
import { useModal as le } from "mui-modal-provider";
|
|
21
21
|
export * from "mui-modal-provider";
|
|
22
22
|
import { default as default2 } from "mui-modal-provider";
|
|
23
|
-
import { createPortal as
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import { primaryInput as
|
|
27
|
-
import { useForm as
|
|
28
|
-
const
|
|
23
|
+
import { createPortal as se } from "react-dom";
|
|
24
|
+
import ce from "focus-trap-react";
|
|
25
|
+
import de from "react-draggable";
|
|
26
|
+
import { primaryInput as pe } from "detect-it";
|
|
27
|
+
import { useForm as ue, FormProvider as me } from "react-hook-form";
|
|
28
|
+
const he = (e2) => {
|
|
29
29
|
const t2 = { style: { cursor: "pointer" }, ...e2 };
|
|
30
|
-
return
|
|
31
|
-
},
|
|
30
|
+
return A(t2);
|
|
31
|
+
}, fe = (t2, o2, n2, r2) => {
|
|
32
32
|
const { style: i2, ...a2 } = t2, l2 = e(b, { component: "div", ...a2, style: { ...i2, padding: "0px" }, sx: { padding: "0" }, color: t2.disabled ? void 0 : "primary", "aria-label": n2, size: "small", children: o2 });
|
|
33
|
-
return e(
|
|
34
|
-
},
|
|
33
|
+
return e(gt, { title: t2.disabled ? n2 : r2, enterDelay: 800, enterNextDelay: 1600, children: t2.disabled ? e("div", { style: { display: "flex" }, children: l2 }) : l2 });
|
|
34
|
+
}, xe = (t2) => fe(t2, H.Horizontal ? e(W, { iconKey: "ArrowLeft", size: "small" }) : e(W, { iconKey: "ArrowUpward", size: "small" }), "Scroll " + (t2.orientation === H.Horizontal ? "Left" : "Up"), `Scroll ${t2.orientation === H.Horizontal ? "left" : "up"}, 'Ctrl+Click' to scroll to the beginning`), ge = (t2) => fe(t2, H.Horizontal ? e(W, { iconKey: "ArrowRight", size: "small" }) : e(W, { iconKey: "ArrowDownward", size: "small" }), "Scroll " + (t2.orientation === H.Horizontal ? "Right" : "Down"), `Scroll ${t2.orientation === H.Horizontal ? "right" : "down"}, 'Ctrl+Click' to scroll to the end`), be = r(i((t2, o2) => {
|
|
35
35
|
const { orientation: n2 = "vertical", sx: r2, ...i2 } = t2, a2 = "vertical" === n2;
|
|
36
|
-
return e(y, { ref: o2, sx: { marginLeft: a2 ? "
|
|
37
|
-
})),
|
|
36
|
+
return e(y, { ref: o2, sx: { marginLeft: a2 ? "2px" : void 0, marginRight: a2 ? "2px" : void 0, backgroundColor: "transparent !important", minHeight: a2 ? "1em" : void 0, minWidth: a2 ? void 0 : "1em", borderColor: (e2) => e2.palette.divider, ...r2 }, orientation: n2, variant: "middle", flexItem: true, ...i2 });
|
|
37
|
+
})), ye = "_traverse-ellipsis_14l1h_1", ve = r((o2) => {
|
|
38
38
|
const { sx: n2, speed: r2 = 2, size: i2 = 70, ...a2 } = o2;
|
|
39
39
|
return e(v, { sx: { width: `${i2}px`, height: `${i2}px`, zIndex: 1, "& .primary": { stroke: (e2) => e2.palette.grey[600], fill: "none" }, ...n2 }, ...a2, children: t("svg", { x: "0px", y: "0px", viewBox: "0 0 100 100", children: [e("circle", { className: "primary", strokeWidth: "4", cx: "50", cy: "50", r: "48" }), e("line", { className: "primary", strokeLinecap: "round", strokeWidth: "4", x1: "50", y1: "50", x2: "85", y2: "50.5", children: e("animateTransform", { attributeName: "transform", dur: `${r2}s`, type: "rotate", from: "0 50 50", to: "360 50 50", repeatCount: "indefinite" }) }), e("line", { className: "primary", strokeLinecap: "round", strokeWidth: "4", x1: "50", y1: "50", x2: "49.5", y2: "74", children: e("animateTransform", { attributeName: "transform", dur: 7.5 * r2 + "s", type: "rotate", from: "0 50 50", to: "360 50 50", repeatCount: "indefinite" }) })] }) });
|
|
40
|
-
}),
|
|
40
|
+
}), ke = r((o2) => {
|
|
41
41
|
const { sx: n2, speed: r2 = 1.5, size: i2 = 70, ...a2 } = o2;
|
|
42
42
|
return e(v, { sx: { width: `${i2}px`, height: `${i2}px`, zIndex: 1, "& .primary": { fill: (e2) => e2.palette.grey[600] }, "& .secondary": { stroke: (e2) => e2.palette.grey[600], fill: "none", opacity: 0.5 }, ...n2 }, ...a2, children: t("svg", { x: "0px", y: "0px", viewBox: "0 0 100 100", children: [e("circle", { className: "secondary", strokeWidth: "4", cx: "50", cy: "50", r: "21" }), e("path", { className: "primary", d: "M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50", children: e("animateTransform", { attributeName: "transform", type: "rotate", dur: 1 * r2 + "s", from: "0 50 50", to: "360 50 50", repeatCount: "indefinite" }) })] }) });
|
|
43
|
-
}),
|
|
43
|
+
}), we = r((o2) => {
|
|
44
44
|
const { sx: n2, speed: r2 = 1, size: i2 = 70, ...a2 } = o2;
|
|
45
45
|
return e(v, { sx: { width: `${i2}px`, height: `${i2}px`, zIndex: 1, ...n2 }, ...a2, children: t("svg", { x: "0px", y: "0px", viewBox: "0 0 100 100", children: [e("circle", { className: "primary", cx: "6", cy: "50", r: "6", children: e("animate", { attributeName: "opacity", dur: `${r2}s`, values: "0;1;0", repeatCount: "indefinite", begin: "0.1" }) }), e("circle", { className: "primary", cx: "26", cy: "50", r: "6", children: e("animate", { attributeName: "opacity", dur: `${r2}s`, values: "0;1;0", repeatCount: "indefinite", begin: "0.2" }) }), e("circle", { className: "primary", cx: "46", cy: "50", r: "6", children: e("animate", { attributeName: "opacity", dur: `${r2}s`, values: "0;1;0", repeatCount: "indefinite", begin: "0.3" }) })] }) });
|
|
46
|
-
}),
|
|
46
|
+
}), Ce = r((o2) => {
|
|
47
47
|
const { sx: n2, speed: r2 = 1, size: i2 = 70, ...a2 } = o2;
|
|
48
48
|
return e(v, { sx: { width: `${i2}px`, height: `${i2}px`, zIndex: 1, "& .primary": { fill: (e2) => e2.palette.grey[600], stroke: "none" }, ...n2 }, ...a2, children: t("svg", { x: "0px", y: "0px", viewBox: "0 0 100 100", children: [e("circle", { className: "primary", cx: "6", cy: "50", r: "6", children: e("animateTransform", { attributeName: "transform", dur: `${r2}s`, type: "translate", values: "0 15 ; 0 -15; 0 15", repeatCount: "indefinite", begin: "0.1" }) }), e("circle", { className: "primary", cx: "30", cy: "50", r: "6", children: e("animateTransform", { attributeName: "transform", dur: `${r2}s`, type: "translate", values: "0 10 ; 0 -10; 0 10", repeatCount: "indefinite", begin: "0.2" }) }), e("circle", { className: "primary", cx: "54", cy: "50", r: "6", children: e("animateTransform", { attributeName: "transform", dur: `${r2}s`, type: "translate", values: "0 5 ; 0 -5; 0 5", repeatCount: "indefinite", begin: "0.3" }) })] }) });
|
|
49
|
-
}),
|
|
49
|
+
}), Me = r((o2) => {
|
|
50
50
|
const { sx: n2, speed: r2 = 2, size: i2 = 70, ...a2 } = o2;
|
|
51
51
|
return e(v, { sx: { width: `${i2}px`, height: `${i2}px`, zIndex: 1, "& .primary": { stroke: (e2) => e2.palette.grey[600], opacity: 0.5, fill: "none" }, "& .secondary": { fillOpacity: (e2) => e2.palette.grey[600], opacity: 0.8, stroke: (e2) => e2.palette.background.paper }, ...n2 }, ...a2, children: t("svg", { x: "0px", y: "0px", viewBox: "0 0 100 100", children: [e("circle", { className: "primary", strokeWidth: "4", cx: "50", cy: "50", r: "44" }), e("circle", { className: "secondary", strokeWidth: "3", cx: "8", cy: "54", r: "6", children: e("animateTransform", { attributeName: "transform", dur: `${r2}s`, type: "rotate", from: "0 50 48", to: "360 50 52", repeatCount: "indefinite" }) })] }) });
|
|
52
|
-
}),
|
|
52
|
+
}), Se = r((o2) => {
|
|
53
53
|
const { sx: n2, speed: r2 = 1, size: i2 = 13, width: a2 = 64, height: l2 = 17, ...s2 } = o2;
|
|
54
|
-
return t(v, { sx: { width: `${a2}px`, height: `${l2}px`, "& .primary": { backgroundColor: (e2) => e2.palette.grey[600], top: `${(l2 - i2) / 2}px`, width: () => `${i2}px`, height: () => `${i2}px` }, ...n2 }, className: h(
|
|
55
|
-
}),
|
|
56
|
-
const { sx: r2, style: i2, onMount: c2, onUnmount: d2, transitionDelay: p2 = "1200ms", panel: u2 = false, transparentBackground: m2 = true, icon: h2 =
|
|
54
|
+
return t(v, { sx: { width: `${a2}px`, height: `${l2}px`, "& .primary": { backgroundColor: (e2) => e2.palette.grey[600], top: `${(l2 - i2) / 2}px`, width: () => `${i2}px`, height: () => `${i2}px` }, ...n2 }, className: h(ye, "animated-icon"), ...s2, children: [e("div", { className: "primary" }), e("div", { className: "primary" }), e("div", { className: "primary" }), e("div", { className: "primary" })] });
|
|
55
|
+
}), Pe = e(ke, {}), Re = r(i((o2, n2) => {
|
|
56
|
+
const { sx: r2, style: i2, onMount: c2, onUnmount: d2, transitionDelay: p2 = "1200ms", panel: u2 = false, transparentBackground: m2 = true, icon: h2 = Pe, label: x2, ...g2 } = o2, b2 = a(() => "string" == typeof x2 ? e(k, { variant: "caption", component: "div", sx: { fontSize: "0.875rem", lineHeight: 1.43, letterSpacing: "0.01071em" }, children: x2 }) : x2, [x2]), y2 = l(null), C2 = a(() => {
|
|
57
57
|
let o3 = t(v, { sx: { display: "flex", flexDirection: "column", alignItems: "center", rowGap: "8px" }, children: [b2, h2] });
|
|
58
|
-
return true === u2 && (o3 = e(w, { elevation: 0, sx: { display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", alignSelf: "center", marginBottom: "5%", backgroundColor: (e2) => e2.palette.info.light, color: (e2) => e2.palette.info.contrastText, paddingLeft: (e2) => e2.spacing(2), paddingRight: (e2) => e2.spacing(2), paddingTop: (e2) => e2.spacing(2), paddingBottom: (e2) => e2.spacing(1), rowGap: (e2) => e2.spacing(1), borderRadius: (e2) => `${e2.shape.borderRadius}px`, boxShadow: (e2) => e2.shadows[2], "& .primary": { background: (e2) => `${f(e2.palette.info.contrastText, 0.9)} !important`, boxShadow: (e2) => `0 0 0 1px ${"dark" === e2.palette.mode ? e2.palette.text.secondary : e2.palette.divider}`, boxSizing: "content-box", border: "solid transparent" }, zIndex: 1 }, children: o3 })), e(v, { ref:
|
|
58
|
+
return true === u2 && (o3 = e(w, { elevation: 0, sx: { display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", alignSelf: "center", marginBottom: "5%", backgroundColor: (e2) => e2.palette.info.light, color: (e2) => e2.palette.info.contrastText, paddingLeft: (e2) => e2.spacing(2), paddingRight: (e2) => e2.spacing(2), paddingTop: (e2) => e2.spacing(2), paddingBottom: (e2) => e2.spacing(1), rowGap: (e2) => e2.spacing(1), borderRadius: (e2) => `${e2.shape.borderRadius}px`, boxShadow: (e2) => e2.shadows[2], "& .primary": { background: (e2) => `${f(e2.palette.info.contrastText, 0.9)} !important`, boxShadow: (e2) => `0 0 0 1px ${"dark" === e2.palette.mode ? e2.palette.text.secondary : e2.palette.divider}`, boxSizing: "content-box", border: "solid transparent" }, zIndex: 1 }, children: o3 })), e(v, { ref: ne([y2, n2]), className: "animatable", sx: { cursor: "wait", boxSizing: "border-box", alignItems: "center", justifyContent: "center", display: "flex", flexDirection: "column", willChange: "opacity", opacity: m2 ? 1e-3 : 1, transitionProperty: "opacity", transitionDelay: p2, transitionDuration: "320ms", transitionTimingFunction: "ease-in", overflow: "hidden", outline: "none", width: "100%", height: "100%", minWidth: 0, minHeight: 0, zIndex: 99999, "&.animating": { opacity: 1 }, "&.animating-exit": { opacity: 0, transition: "opacity 210ms" }, ...r2, ...i2 }, ...g2, children: t(v, { className: "center", sx: { display: "flex", flex: "1 1 100%", height: "100%", width: "100%", alignItems: "center", justifyContent: "center", boxSizing: "border-box", position: "relative" }, children: [e(v, { className: "backdrop", sx: { opacity: (e2) => m2 ? 1.5 * e2.palette.action.disabledOpacity : void 0, background: (e2) => m2 ? void 0 : e2.palette.background.paper, backdropFilter: "blur(4px)", borderRadius: (e2) => `${e2.shape.borderRadius}px`, zIndex: -1, position: "absolute", width: "100%", height: "100%", boxSizing: "border-box" } }), o3] }) });
|
|
59
59
|
}, [r2, u2]), M2 = l(false), S2 = l(false);
|
|
60
|
-
return
|
|
60
|
+
return re(() => {
|
|
61
61
|
if (y2.current && !M2.current && !S2.current) {
|
|
62
62
|
if (S2.current = true, y2.current.classList.contains("animatable") && !y2.current.classList.contains("animating")) {
|
|
63
63
|
let e2 = false;
|
|
@@ -75,32 +75,27 @@ const me = (e2) => {
|
|
|
75
75
|
M2.current && (y2.current?.classList.remove("animating"), M2.current = false, S2.current = false, d2?.());
|
|
76
76
|
}, []), C2;
|
|
77
77
|
}));
|
|
78
|
-
|
|
79
|
-
const
|
|
78
|
+
Re.displayName = "LoadingPanel";
|
|
79
|
+
const De = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ee = /^\s*at\s+(?:(async|new|await)\s+)?(.+?):(\d+):(\d+)\s*$/, Te = (e2) => {
|
|
80
80
|
if (!e2) return "";
|
|
81
81
|
try {
|
|
82
82
|
e2 = new URL(e2).pathname;
|
|
83
83
|
} catch {
|
|
84
84
|
}
|
|
85
85
|
return e2 = (e2 = e2.replace(/^\/+/, "")).replace(/^@?fs[\\/]/, "");
|
|
86
|
-
},
|
|
86
|
+
}, $e = r(({ error: o2, maxLines: n2 = Number.MAX_SAFE_INTEGER, hideLineNumbers: r2 = false }) => {
|
|
87
87
|
const [i2, a2] = c(null);
|
|
88
88
|
if (!o2?.stack) return null;
|
|
89
|
-
const l2 = ((
|
|
90
|
-
const t2 = [], o3 = (e3, n3 = 0) => {
|
|
91
|
-
e3 && (t2.push({ error: e3, depth: n3 }), e3.cause && e3.cause instanceof Error && o3(e3.cause, n3 + 1));
|
|
92
|
-
};
|
|
93
|
-
return o3(e2), t2.reverse();
|
|
94
|
-
})(o2).reverse(), s2 = [];
|
|
89
|
+
const l2 = L.collectErrorChain(o2).reverse(), s2 = [];
|
|
95
90
|
l2.forEach(({ error: e2 }, t2) => {
|
|
96
91
|
const o3 = (e2.stack || "").split("\n").filter(Boolean).map((e3) => {
|
|
97
|
-
let t3 = e3.match(
|
|
92
|
+
let t3 = e3.match(De);
|
|
98
93
|
if (t3) {
|
|
99
94
|
const [, e4 = "", o4, n3, r3, i3] = t3;
|
|
100
|
-
return { line: `at ${e4 ? e4 + " " : ""}${o4}`, location: `${
|
|
95
|
+
return { line: `at ${e4 ? e4 + " " : ""}${o4}`, location: `${Te(n3).split(/[\\/]/).pop()}:${r3}:${i3}` };
|
|
101
96
|
}
|
|
102
|
-
if (t3 = e3.match(
|
|
103
|
-
const [, e4 = "", o4, n3, r3] = t3, i3 =
|
|
97
|
+
if (t3 = e3.match(Ee), t3) {
|
|
98
|
+
const [, e4 = "", o4, n3, r3] = t3, i3 = Te(o4), a3 = `${i3.split(/[\\/]/).pop()}:${n3}:${r3}`;
|
|
104
99
|
return { line: `at ${e4 ? e4 + " " : ""}${a3}`, location: i3 !== a3 ? `${i3}:${n3}:${r3}` : void 0 };
|
|
105
100
|
}
|
|
106
101
|
return { line: e3.trim() };
|
|
@@ -121,129 +116,129 @@ const Re = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, D
|
|
|
121
116
|
} catch (e2) {
|
|
122
117
|
a2("Can't copy!"), console.warn("Failed to copy stack trace:", e2);
|
|
123
118
|
}
|
|
124
|
-
}, sx: { color: "inherit", opacity: 0.7, "&:hover": { opacity: 1 } }, title: "Copy stack trace", children: e(
|
|
119
|
+
}, sx: { color: "inherit", opacity: 0.7, "&:hover": { opacity: 1 } }, title: "Copy stack trace", children: e(W, { iconKey: "ContentCopy", style: { fontSize: "0.875rem" } }) }), e(b, { size: "small", onClick: () => {
|
|
125
120
|
a2("Logged!"), setTimeout(() => a2(null), 2e3), console.log(o2);
|
|
126
|
-
}, sx: { color: "inherit", opacity: 0.7, "&:hover": { opacity: 1 } }, title: "Log error to console", children: e(
|
|
121
|
+
}, sx: { color: "inherit", opacity: 0.7, "&:hover": { opacity: 1 } }, title: "Log error to console", children: e(W, { iconKey: "BugReport", style: { fontSize: "0.875rem" } }) })] }), t(v, { sx: { mt: 1, backgroundColor: "rgba(0, 0, 0, 0.2)", borderRadius: 1, p: 1, maxHeight: "300px", overflow: "auto", fontFamily: "monospace", fontSize: "0.75rem", lineHeight: 1.4 }, children: [d2.map((o3, n3) => o3.isBoundary ? e(v, { sx: { py: 1, mt: n3 > 0 ? 1 : 0, mb: 0.5, borderTop: n3 > 0 ? "1px solid rgba(255, 255, 255, 0.1)" : "none" }, children: e(k, { variant: "caption", component: "div", sx: { fontSize: "0.75rem", fontWeight: "bold", color: (e2) => o3.isBoundary ? e2.palette.text.primary : e2.palette.text.secondary, display: "block" }, children: o3.line }) }, `error-${n3}`) : t(v, { sx: { display: "flex", alignItems: "flex-start", gap: 1, py: 0.25, pl: 1, "&:hover": { backgroundColor: "rgba(255, 255, 255, 0.05)" } }, children: [!r2 && e(k, { variant: "caption", component: "div", sx: { fontSize: "0.625rem", opacity: 0.5, minWidth: "20px", textAlign: "right", userSelect: "none" }, children: n3 + 1 }), t(v, { sx: { flex: 1, overflow: "hidden" }, children: [e(k, { variant: "caption", component: "div", sx: { fontSize: "0.75rem", whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis", color: "inherit" }, children: o3.line }), o3.location && o3.line !== o3.location && e(k, { variant: "caption", component: "div", sx: { fontSize: "0.625rem", opacity: 0.6, fontStyle: "italic" }, children: o3.location })] })] }, `stack-${n3}`)), p2 && t(k, { variant: "caption", component: "div", sx: { fontSize: "0.625rem", opacity: 0.6, fontStyle: "italic", textAlign: "center", display: "block", mt: 1 }, children: ["... and ", s2.length - n2, " more frames"] })] })] });
|
|
127
122
|
});
|
|
128
|
-
|
|
129
|
-
const
|
|
123
|
+
$e.displayName = "StackTrace";
|
|
124
|
+
const Oe = (o2, r2 = false, i2 = false) => {
|
|
130
125
|
if (n.isValidElement(o2)) return o2;
|
|
131
|
-
if (o2 instanceof Error) return t(v, { sx: { display: "flex", flexDirection: "column", maxWidth: "500px", width: "100%" }, children: [e(k, { variant: "caption", component: "div", sx: { fontSize: "0.875rem", lineHeight: 1.43, mb: 1 }, children: o2.message }), o2.cause ? t(k, { variant: "caption", component: "div", sx: { fontSize: "0.875rem", lineHeight: 1.43, letterSpacing: "0.01071em", mb: 1, opacity: 0.8 }, children: ["Caused by: ", o2.cause instanceof Error ? o2.cause.message : String(o2.cause)] }) : null, !r2 && e(
|
|
126
|
+
if (o2 instanceof Error) return t(v, { sx: { display: "flex", flexDirection: "column", maxWidth: "500px", width: "100%" }, children: [e(k, { variant: "caption", component: "div", sx: { fontSize: "0.875rem", lineHeight: 1.43, mb: 1 }, children: o2.message }), o2.cause ? t(k, { variant: "caption", component: "div", sx: { fontSize: "0.875rem", lineHeight: 1.43, letterSpacing: "0.01071em", mb: 1, opacity: 0.8 }, children: ["Caused by: ", o2.cause instanceof Error ? o2.cause.message : String(o2.cause)] }) : null, !r2 && e($e, { error: o2, hideLineNumbers: true })] });
|
|
132
127
|
const a2 = "string" === o2 ? o2 : `Unknown Error: ${String(o2)}`;
|
|
133
128
|
return e(k, { variant: "caption", component: "div", sx: { fontSize: "0.875rem", lineHeight: 1.43, letterSpacing: "0.01071em" }, children: a2 });
|
|
134
|
-
},
|
|
135
|
-
const { sx: r2, icon: i2 = e(
|
|
129
|
+
}, ze = r(i((o2, n2) => {
|
|
130
|
+
const { sx: r2, icon: i2 = e(W, { iconKey: "Error", style: { fontSize: 48 } }), error: l2, hideStackTrace: s2 = false, stackTraceExpanded: c2 = false, ...d2 } = o2, p2 = a(() => Oe(l2, s2, c2), [l2, s2, c2]);
|
|
136
131
|
return a(() => e(v, { ref: n2, sx: { boxSizing: "border-box", alignItems: "center", justifyContent: "center", display: "flex", flexDirection: "row", overflow: "hidden", width: "100%", height: "100%", ...r2 }, ...d2, children: t(v, { sx: { display: "flex", flex: "1 1 100%", height: "100%", alignItems: "center", justifyContent: "center", boxSizing: "border-box", position: "relative" }, children: [e(v, { className: "backdrop", sx: { backdropFilter: "blur(4px)", borderRadius: (e2) => `${e2.shape.borderRadius}px`, zIndex: -1, position: "absolute", width: "100%", height: "100%", boxSizing: "border-box" } }), e(w, { elevation: 0, sx: { display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", rowGap: "8px", alignSelf: "center", marginBottom: "5%", backgroundColor: (e2) => e2.palette.error.light, color: (e2) => e2.palette.error.contrastText, paddingLeft: (e2) => e2.spacing(2), paddingRight: (e2) => e2.spacing(2), paddingTop: (e2) => e2.spacing(2), paddingBottom: (e2) => e2.spacing(2), borderRadius: (e2) => `${e2.shape.borderRadius}px`, boxShadow: (e2) => e2.shadows[2], "& .primary": { background: (e2) => `${e2.palette.error.contrastText} !important`, border: "solid transparent" }, zIndex: 1 }, children: e(v, { sx: { display: "flex", flexDirection: "column", alignItems: "center", gap: (e2) => e2.spacing(2), width: "100%", maxWidth: "600px" }, children: t(v, { sx: { display: "flex", flexDirection: "row", alignItems: "flex-start", gap: (e2) => e2.spacing(2) }, children: [i2, p2] }) }) })] }) }), [r2]);
|
|
137
132
|
}));
|
|
138
|
-
|
|
139
|
-
const
|
|
133
|
+
ze.displayName = "ErrorPanel";
|
|
134
|
+
const Ie = r(i((t2, o2) => {
|
|
140
135
|
const { chips: r2, sx: i2, ...a2 } = t2, l2 = n.useMemo(() => {
|
|
141
136
|
if (!r2) return null;
|
|
142
137
|
let t3 = null;
|
|
143
138
|
t3 = Array.isArray(r2) ? r2 : [r2];
|
|
144
|
-
const o3 = [];
|
|
145
|
-
for (let r3 = 0; r3 <
|
|
146
|
-
const
|
|
139
|
+
const o3 = [], i3 = t3.length;
|
|
140
|
+
for (let r3 = 0; r3 < i3; r3++) {
|
|
141
|
+
const i4 = t3[r3];
|
|
147
142
|
let a3 = null;
|
|
148
|
-
"string" == typeof
|
|
143
|
+
"string" == typeof i4 ? a3 = e(C, { label: i4, color: "primary", size: "small", sx: { scale: "0.8" } }, "chip-" + r3) : n.cloneElement(i4, { key: "chip-" + r3 }), o3.push(a3);
|
|
149
144
|
}
|
|
150
145
|
return o3;
|
|
151
146
|
}, [r2]);
|
|
152
147
|
return e(v, { ref: o2, sx: { display: "flex", flexDirection: "row", marginLeft: "4px", gap: "2px", ...i2 }, ...a2, children: l2 });
|
|
153
|
-
})),
|
|
154
|
-
var t2 = e2.state, o2 = e2.name, n2 = e2.options, r2 =
|
|
148
|
+
})), Ne = { name: "maxSize", enabled: true, phase: "main", requiresIfExists: ["offset", "preventOverflow", "flip"], fn: function(e2) {
|
|
149
|
+
var t2 = e2.state, o2 = e2.name, n2 = e2.options, r2 = oe(t2, n2), i2 = t2.modifiersData.preventOverflow || { x: 0, y: 0 }, a2 = i2.x, l2 = i2.y;
|
|
155
150
|
let s2 = t2.rects.popper, c2 = s2.width, d2 = s2.height, p2 = t2.placement.split("-")[0], u2 = "left" === p2 ? "left" : "right", m2 = "top" === p2 ? "top" : "bottom";
|
|
156
151
|
t2.modifiersData[o2] = { width: c2 - r2[u2] - a2, height: d2 - r2[m2] - l2 };
|
|
157
|
-
} },
|
|
158
|
-
const { sx: r2, open: i2, children: l2, label: p2, offsets: u2 =
|
|
152
|
+
} }, Be = [0, 2], Le = r(i((t2, o2) => {
|
|
153
|
+
const { sx: r2, open: i2, children: l2, label: p2, offsets: u2 = Be, anchorEl: m2, anchorPosition: h2, onMount: f2, onOpening: x2, onOpen: g2, onClosing: b2, onClose: y2, resizeOnOverflow: v2 = true, ...k2 } = t2;
|
|
159
154
|
if (Array.isArray(l2)) throw new Error("children can not be an array");
|
|
160
|
-
const w2 =
|
|
155
|
+
const w2 = Y(), C2 = { name: "applyMaxSize", enabled: true, phase: "beforeWrite", requires: ["maxSize"], fn({ state: e2 }) {
|
|
161
156
|
const { height: t3 } = e2.modifiersData.maxSize;
|
|
162
157
|
e2.styles.popper.maxHeight = t3 - 10 + "px";
|
|
163
158
|
} }, P2 = a(() => {
|
|
164
159
|
const e2 = [{ name: "offset", options: { offset: u2 } }, { name: "flip", enabled: true, options: { rootBoundary: "document" } }];
|
|
165
|
-
return v2 && e2.unshift(
|
|
166
|
-
}, [v2, u2]), [R2, D2] = c(false), E2 = n.useRef(null), T2 =
|
|
160
|
+
return v2 && e2.unshift(Ne, C2), e2;
|
|
161
|
+
}, [v2, u2]), [R2, D2] = c(false), E2 = n.useRef(null), T2 = K(() => {
|
|
167
162
|
f2?.(L2.current, E2.current);
|
|
168
|
-
}, [x2]), $2 =
|
|
163
|
+
}, [x2]), $2 = K(x2, [x2]), O2 = K(g2, [g2]), z2 = K(b2, [b2]), I2 = K(() => {
|
|
169
164
|
D2(false), y2?.();
|
|
170
|
-
}, [y2]), [N2, B2] = c(false), L2 = n.useRef(null),
|
|
171
|
-
|
|
165
|
+
}, [y2]), [N2, B2] = c(false), L2 = n.useRef(null), A2 = n.useRef(true), H2 = a(() => ({ onFirstUpdate: () => {
|
|
166
|
+
A2.current && (B2(true), T2?.(), A2.current = false);
|
|
172
167
|
} }), [i2, R2]);
|
|
173
168
|
s(() => {
|
|
174
169
|
i2 && N2 ? $2?.() : !i2 && R2 && z2?.(), i2 && D2(i2);
|
|
175
170
|
}, [i2, N2]);
|
|
176
|
-
const
|
|
171
|
+
const W2 = a(() => ({ getBoundingClientRect: () => h2 ? new DOMRect(h2?.left || 0, h2?.top || 0, 0, 0) : m2.getBoundingClientRect() }), [h2, m2]);
|
|
177
172
|
d(o2, () => ({ instance: () => E2.current, element: () => L2.current }), []);
|
|
178
|
-
const { getPortalContainer:
|
|
179
|
-
return e(M, { ref: L2, popperRef: E2, container:
|
|
173
|
+
const { getPortalContainer: q2 } = V(), _2 = a(() => ({ zIndex: i2 ? "1300" : "1299", display: "flex", pointerEvents: R2 && i2 ? void 0 : "none", maxWidth: "100%", maxHeight: "100%", ...r2 }), [r2, i2, R2]);
|
|
174
|
+
return e(M, { ref: L2, popperRef: E2, container: q2, anchorEl: W2, open: R2, role: void 0, popperOptions: H2, transition: true, sx: _2, placement: "bottom-start", modifiers: P2, ...k2, children: ({ TransitionProps: t3, placement: o3, ...n2 }) => {
|
|
180
175
|
const { in: r3, onEnter: a2, onExited: s2, ...c2 } = t3 ?? {};
|
|
181
176
|
return e(S, { ...c2, in: i2, onEnter: () => {
|
|
182
177
|
a2?.(), O2();
|
|
183
178
|
}, onExited: () => {
|
|
184
179
|
s2?.(), I2();
|
|
185
|
-
}, timeout: { enter: w2.transitions.duration.shorter, exit: 0 }, style: { transformOrigin: "bottom-start" === o3 ? "left top" : "center bottom" }, children: "function" == typeof l2 ? l2({ TransitionProps: t3, placement: o3, ...n2 }) : l2 ||
|
|
180
|
+
}, timeout: { enter: w2.transitions.duration.shorter, exit: 0 }, style: { transformOrigin: "bottom-start" === o3 ? "left top" : "center bottom" }, children: "function" == typeof l2 ? l2({ TransitionProps: t3, placement: o3, ...n2 }) : l2 || F.EmptyArray });
|
|
186
181
|
} });
|
|
187
182
|
}));
|
|
188
|
-
|
|
189
|
-
const
|
|
183
|
+
Le.displayName = "ExhibitPopper";
|
|
184
|
+
const Fe = (e2) => {
|
|
190
185
|
if ("dark" !== e2.palette.mode) return;
|
|
191
186
|
return `drop-shadow(0px 0px 1px ${"dark" === e2.palette.mode ? e2.palette.text.primary : e2.palette.divider})`;
|
|
192
|
-
},
|
|
187
|
+
}, Ae = (e2 = 1) => (t2) => {
|
|
193
188
|
if ("dark" !== t2.palette.mode) return;
|
|
194
189
|
const o2 = "dark" === t2.palette.mode ? t2.palette.text.primary : t2.palette.divider;
|
|
195
190
|
return `drop-shadow(0px 0px ${e2}px ${o2})`;
|
|
196
|
-
},
|
|
191
|
+
}, He = (t2) => e(W, { ...t2, iconKey: "ArrowDownOutline" }), We = (t2) => e(W, { ...t2, iconKey: "ArrowRightOutline" }), Ke = J(r(i((t2, o2) => {
|
|
197
192
|
const { sx: n2, size: r2 = "small", activeColor: i2, children: a2, className: l2, ...s2 } = t2;
|
|
198
193
|
let c2 = "1rem", d2 = "1rem";
|
|
199
194
|
return "medium" === r2 ? (c2 = "1.25rem", d2 = "1.25rem") : "large" === r2 && (c2 = "1.5rem", d2 = "1.5rem"), e(v, { ref: o2, className: h("icon", l2), sx: { width: c2, height: d2, ...n2 }, ...s2, children: a2 });
|
|
200
|
-
})))(({ theme: e2 }) => ({ fill: "currentColor", "& .activeColor": { fill: e2.palette.primary.main }, "& .styled.high_contrast": { fill: e2.palette.primary.main }, "& .styled.background": { fill: e2.palette.background.paper }, "& .styled.current_color": { fill: "currentColor" }, "& .styled.secondary": { fill: e2.palette.secondary.main }, "& .styled.secondary_dark": { fill: e2.palette.secondary.dark }, "& .styled.secondary_light": { fill: e2.palette.secondary.light }, "& .styled.info": { fill: e2.palette.info.main }, "& .styled.info.stroked": { stroke: e2.palette.info.main }, "& .styled.info_dark": { fill: e2.palette.info.dark }, "& .styled.info_light": { fill: e2.palette.info.light }, "& .styled.warning": { fill: e2.palette.warning.main }, "& .styled.warning.stroked": { stroke: e2.palette.warning.main }, "& .styled.warning_dark": { fill: e2.palette.warning.dark }, "& .styled.warning_light": { fill: e2.palette.warning.light }, "& .styled.error.info": { fill: e2.palette.error.main }, "& .styled.error.stroked": { stroke: e2.palette.error.main }, "& .styled.error_dark": { fill: e2.palette.error.dark }, "& .styled.error_light": { fill: e2.palette.error.light }, "& .styled.success": { fill: e2.palette.success.main }, "& .styled.success_dark": { fill: e2.palette.success.dark }, "& .styled.success_light": { fill: e2.palette.success.light }, "& .styled.grey": { fill: e2.palette.text.icon ?? e2.palette.action.active } })),
|
|
195
|
+
})))(({ theme: e2 }) => ({ fill: "currentColor", "& .activeColor": { fill: e2.palette.primary.main }, "& .styled.high_contrast": { fill: e2.palette.primary.main }, "& .styled.background": { fill: e2.palette.background.paper }, "& .styled.current_color": { fill: "currentColor" }, "& .styled.secondary": { fill: e2.palette.secondary.main }, "& .styled.secondary_dark": { fill: e2.palette.secondary.dark }, "& .styled.secondary_light": { fill: e2.palette.secondary.light }, "& .styled.info": { fill: e2.palette.info.main }, "& .styled.info.stroked": { stroke: e2.palette.info.main }, "& .styled.info_dark": { fill: e2.palette.info.dark }, "& .styled.info_light": { fill: e2.palette.info.light }, "& .styled.warning": { fill: e2.palette.warning.main }, "& .styled.warning.stroked": { stroke: e2.palette.warning.main }, "& .styled.warning_dark": { fill: e2.palette.warning.dark }, "& .styled.warning_light": { fill: e2.palette.warning.light }, "& .styled.error.info": { fill: e2.palette.error.main }, "& .styled.error.stroked": { stroke: e2.palette.error.main }, "& .styled.error_dark": { fill: e2.palette.error.dark }, "& .styled.error_light": { fill: e2.palette.error.light }, "& .styled.success": { fill: e2.palette.success.main }, "& .styled.success_dark": { fill: e2.palette.success.dark }, "& .styled.success_light": { fill: e2.palette.success.light }, "& .styled.grey": { fill: e2.palette.text.icon ?? e2.palette.action.active } })), Ve = /^#?([a-f\d])([a-f\d])([a-f\d])$/i, qe = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i, _e = function(e2, t2 = null) {
|
|
201
196
|
if (!e2) return e2;
|
|
202
|
-
e2 = e2.replace(
|
|
197
|
+
e2 = e2.replace(Ve, function(e3, t3, o3, n2) {
|
|
203
198
|
return t3 + t3 + o3 + o3 + n2 + n2;
|
|
204
199
|
});
|
|
205
|
-
let o2 =
|
|
200
|
+
let o2 = qe.exec(e2);
|
|
206
201
|
return o2 ? null === t2 ? `rgb(${parseInt(o2[1], 16)}, ${parseInt(o2[2], 16)}, ${parseInt(o2[3], 16)})` : `rgb(${parseInt(o2[1], 16)} ${parseInt(o2[2], 16)} ${parseInt(o2[3], 16)} / ${100 * t2}%)` : e2;
|
|
207
|
-
},
|
|
202
|
+
}, je = function(e2, t2 = 0.2, o2 = "light") {
|
|
208
203
|
if (!e2) return e2;
|
|
209
204
|
let n2 = "dark" !== o2;
|
|
210
|
-
return t2 < 0 && (n2 = !n2, t2 *= -1), e2 =
|
|
211
|
-
},
|
|
205
|
+
return t2 < 0 && (n2 = !n2, t2 *= -1), e2 = _e(e2), n2 ? x(e2, Math.max(0, Math.min(1, 1 * t2))) : g(e2, Math.max(0, Math.min(1, 1.5 * t2)));
|
|
206
|
+
}, Ue = function(e2) {
|
|
212
207
|
let t2 = 0;
|
|
213
208
|
return t2 = e2 < 1 ? 5.11916 * e2 ** 2 : 4.5 * Math.log(e2 + 1) + 2, (t2 / 100).toFixed(2);
|
|
214
|
-
},
|
|
215
|
-
let o2 =
|
|
209
|
+
}, Qe = (e2, t2) => {
|
|
210
|
+
let o2 = Z({ palette: { mode: e2 ? "dark" : "light" } });
|
|
216
211
|
const n2 = { "--icon-primary": o2.palette.primary.main, "--icon-secondary": o2.palette.secondary.main, "--icon-secondary-light": o2.palette.secondary.light, "--icon-success": o2.palette.success.main, "--icon-success-light": o2.palette.success.light, "--icon-info": o2.palette.info.main, "--icon-warn": o2.palette.warning.main, "--icon-error": o2.palette.error.main, "--icon-error-light": o2.palette.error.light, "--icon-grey": o2.palette.text.icon ?? o2.palette.action.active, "--icon-shadow": e2 ? o2.palette.text.primary : o2.palette.divider, "--icon-size": "1.25rem", "@media (pointer: coarse)": { "--icon-size": "1.75rem" } };
|
|
217
|
-
let r2 = { typography: {}, palette: { mode: e2 ? "dark" : "light", text: { secondary: e2 ? o2.palette.text.secondary : f(o2.palette.text.secondary, 0.75), icon: e2 ? f(o2.palette.text.secondary, 0.7) : f(o2.palette.text.primary, 0.75) } }, components: { MuiDialogTitle: { styleOverrides: { root: { fontWeight: "normal" } } }, MuiSelect: { defaultProps: { IconComponent:
|
|
212
|
+
let r2 = { typography: {}, palette: { mode: e2 ? "dark" : "light", text: { secondary: e2 ? o2.palette.text.secondary : f(o2.palette.text.secondary, 0.75), icon: e2 ? f(o2.palette.text.secondary, 0.7) : f(o2.palette.text.primary, 0.75) } }, components: { MuiDialogTitle: { styleOverrides: { root: { fontWeight: "normal" } } }, MuiSelect: { defaultProps: { IconComponent: He, MenuProps: { container: () => document.fullscreenElement ?? void 0 } }, styleOverrides: { iconOutlined: { top: "unset" } } }, MuiListItemIcon: { styleOverrides: { root: { minWidth: "0px !important", overflow: "hidden", marginLeft: "0px", marginRight: "6px", padding: "1px 1px", border: "solid transparent 1px", color: "unset" } } }, MuiMenuItem: { styleOverrides: { root: { paddingTop: "2px", paddingBottom: "2px", marginLeft: "4px", marginRight: "4px", paddingLeft: "6px", paddingRight: "18px", borderRadius: "4px", fontSize: "0.875em", "@media (pointer: coarse)": { fontSize: "1em" }, "&.Mui-selected": {} } } }, MuiMenu: { defaultProps: { container: () => document.fullscreenElement ?? void 0 }, styleOverrides: { root: { paddingTop: "2px", paddingBottom: "2px", marginLeft: "4px", marginRight: "4px", paddingLeft: "6px", paddingRight: "18px", borderRadius: "4px", fontSize: "0.875em", "@media (pointer: coarse)": { fontSize: "1em" }, "&.Mui-selected": {} } } }, MuiToolbar: { styleOverrides: { root: { paddingTop: "4px", paddingBottom: "4px", "@media (min-width: 600px)": { paddingTop: "4px", paddingBottom: "4px" } } } }, MuiDivider: { styleOverrides: { root: { marginTop: "4px !important", marginBottom: "4px !important", marginLeft: "0px", marginRight: "0px" } } }, MuiInputBase: { styleOverrides: { root: {} } }, MuiPaper: { styleOverrides: { root: { ...n2 } } }, MuiPopper: { styleOverrides: { root: { "& .menu": { marginTop: "4px", marginBottom: "4px", borderRadius: "4px" } } } }, SmartInputField: { styleOverrides: { automatic: { transition: "opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms", color: function() {
|
|
218
213
|
return o2.palette.text.secondary;
|
|
219
214
|
} }, dirty: { fontStyle: "italic", color: function() {
|
|
220
215
|
return o2.palette.text.secondary;
|
|
221
216
|
} } } } } }, i2 = r2;
|
|
222
|
-
t2 && (i2 =
|
|
223
|
-
return
|
|
217
|
+
t2 && (i2 = te(r2, t2));
|
|
218
|
+
return Z(i2);
|
|
224
219
|
};
|
|
225
|
-
function
|
|
226
|
-
t2 =
|
|
220
|
+
function Ge(e2, t2) {
|
|
221
|
+
t2 = te({ track: je(e2.palette.background.paper, 0.05, e2?.palette.mode), thumb: je(e2.palette.background.paper, 0.3, e2?.palette.mode), active: e2.palette.primary.main, corner: e2.palette.background.paper, outline: false }, t2 || {});
|
|
227
222
|
const o2 = { "&::-webkit-scrollbar, & *::-webkit-scrollbar": { backgroundColor: f(t2.track, 0.2), width: "13px", height: "13px" }, "&::-webkit-scrollbar-button": { display: "none" }, "& .scrollbar-button": { fill: t2.thumb, backgroundColor: "transparent", transition: "fill opacity 260ms ease", width: "13px", height: "13px" }, "& .scrollbar-button:hover:not([disabled])": { fill: t2.active }, "& .scrollbar-button:disabled": { opacity: 0.8 }, "&::-webkit-scrollbar-track, & *::-webkit-scrollbar-track": {}, "&::-webkit-scrollbar-track-piece, & *::-webkit-scrollbar-track-piece": {}, "&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb": { borderRadius: 8, backgroundColor: t2.thumb, minHeight: "24px", minWidth: "24px", border: `2px solid ${t2.track}` }, "&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus": { backgroundColor: t2.active, border: t2.outline ? t2.outline : void 0 }, "&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active": { backgroundColor: t2.active, border: t2.outline ? t2.outline : void 0 }, "&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover": { backgroundColor: t2.active, border: t2.outline ? t2.outline : void 0 }, "&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner": { backgroundColor: t2.corner || t2.thumb } };
|
|
228
|
-
return
|
|
223
|
+
return F.getOS() === F.OSType.Firefox && (o2["* .pseudo-scrollbar"] = { scrollbarColor: `${t2.thumb} transparent` }, o2["* .pseudo-scrollbar:hover:not([disabled])"] = { scrollbarColor: `${t2.active} transparent` }), o2;
|
|
229
224
|
}
|
|
230
|
-
const
|
|
231
|
-
function
|
|
225
|
+
const Xe = { Light: "light", Dark: "dark" };
|
|
226
|
+
function Ye(e2) {
|
|
232
227
|
const { mode: t2 } = e2 || {}, [o2, n2] = c(() => {
|
|
233
228
|
if ("light" === t2 || "dark" === t2) return { themeMode: t2, source: "prop" };
|
|
234
229
|
if ("undefined" != typeof document) {
|
|
235
|
-
const e3 =
|
|
230
|
+
const e3 = Je();
|
|
236
231
|
if (e3) return { themeMode: e3, source: "class" };
|
|
237
232
|
}
|
|
238
|
-
return { themeMode:
|
|
233
|
+
return { themeMode: Ze(), source: "media" };
|
|
239
234
|
});
|
|
240
235
|
return s(() => {
|
|
241
236
|
const e3 = () => {
|
|
242
237
|
if (t2) return void (t2 === o2.themeMode && "prop" === o2.source || n2((e5) => ({ ...e5, themeMode: t2, source: "prop" })));
|
|
243
|
-
const e4 =
|
|
238
|
+
const e4 = Je();
|
|
244
239
|
if (e4) n2({ themeMode: e4, source: "class" });
|
|
245
240
|
else {
|
|
246
|
-
const e5 =
|
|
241
|
+
const e5 = Ze();
|
|
247
242
|
n2({ themeMode: e5, source: "media" });
|
|
248
243
|
}
|
|
249
244
|
}, r2 = new MutationObserver(e3), i2 = [document.documentElement, document.body].filter(Boolean);
|
|
@@ -254,70 +249,70 @@ function Xe(e2) {
|
|
|
254
249
|
};
|
|
255
250
|
}, [t2]), o2;
|
|
256
251
|
}
|
|
257
|
-
function
|
|
252
|
+
function Je() {
|
|
258
253
|
if ("undefined" == typeof document) return null;
|
|
259
254
|
const e2 = [...Array.from(document.body.classList), ...document.documentElement ? Array.from(document.documentElement.classList) : []];
|
|
260
255
|
return e2.includes("dark") ? "dark" : e2.includes("light") ? "light" : null;
|
|
261
256
|
}
|
|
262
|
-
function
|
|
257
|
+
function Ze() {
|
|
263
258
|
return "undefined" == typeof window ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
264
259
|
}
|
|
265
|
-
const
|
|
260
|
+
const et = { Popup: "popup", Anchor: "anchor" }, tt = { ByPopup: "popupDone", Cancel: "popupCancel", ClickAway: "clickAway" }, ot = { Toolbar: "toolbar", Menuitem: "menuitem" }, nt = (t2) => {
|
|
266
261
|
const { closeFloat: o2, closeFloatAll: n2, floatReference: r2, popupContainer: i2, children: a2, className: l2, sx: s2, ...c2 } = t2;
|
|
267
262
|
return e(v, { className: h("menu", l2), sx: { display: "flex", flexDirection: "column", ...s2 }, ...c2, children: a2 });
|
|
268
|
-
},
|
|
263
|
+
}, rt = (t2, o2, n2) => {
|
|
269
264
|
let r2;
|
|
270
|
-
return n2 && (r2 = (r2 ? r2 + " " : "") + "rotate(180deg)"), e(
|
|
271
|
-
},
|
|
272
|
-
const { open: n2, anchorEl: r2, anchorPosition: i2, label: s2, floatReference: d2, createPopupPanel: p2 =
|
|
265
|
+
return n2 && (r2 = (r2 ? r2 + " " : "") + "rotate(180deg)"), e(He, { style: { marginLeft: t2 ? void 0 : o2 ? "-0.25rem" : "-3px", marginRight: t2 ? void 0 : o2 ? "-0.25rem" : "-6px", transform: r2 }, color: "inherit" });
|
|
266
|
+
}, it = r(i((t2, o2) => {
|
|
267
|
+
const { open: n2, anchorEl: r2, anchorPosition: i2, label: s2, floatReference: d2, createPopupPanel: p2 = nt, popperProps: u2, onMount: m2, onClosing: h2, onClose: f2, onOpening: x2, onOpen: g2, children: b2, sx: y2, ...v2 } = t2, k2 = K(h2, [h2]), C2 = K(f2, [f2]), M2 = K(x2, [x2]), S2 = K(g2, [g2]), [P2, R2] = c(), D2 = l(null), E2 = K((e2, t3) => {
|
|
273
268
|
R2(e2), m2?.(D2.current, t3);
|
|
274
269
|
}, [m2]), T2 = a(() => {
|
|
275
270
|
const t3 = { popupContainer: P2, floatReference: d2, children: b2, ...v2 }, o3 = p2(t3);
|
|
276
|
-
return e(w, { elevation: 8, ref: D2, sx: { display: "flex", overflow: "auto", outline: "none", "&.MuiPaper-root": (e2) =>
|
|
271
|
+
return e(w, { elevation: 8, ref: D2, sx: { display: "flex", overflow: "auto", outline: "none", "&.MuiPaper-root": (e2) => Ge(e2) }, tabIndex: 0, children: o3 });
|
|
277
272
|
}, [p2, b2, P2, d2]);
|
|
278
|
-
return e(
|
|
273
|
+
return e(Le, { ref: o2, anchorEl: r2, anchorPosition: i2, label: s2, open: n2, onMount: E2, onOpening: M2, onOpen: S2, onClosing: k2, onClose: C2, ...u2, children: T2 });
|
|
279
274
|
}));
|
|
280
|
-
|
|
281
|
-
const
|
|
282
|
-
let
|
|
283
|
-
const
|
|
284
|
-
let
|
|
285
|
-
const
|
|
286
|
-
if (
|
|
275
|
+
it.displayName = "ExhibitFloatPanel";
|
|
276
|
+
const at = /* @__PURE__ */ new Map();
|
|
277
|
+
let lt = null;
|
|
278
|
+
const st = /* @__PURE__ */ new Map();
|
|
279
|
+
let ct = null;
|
|
280
|
+
const dt = (e2 = null, t2, o2, n2) => {
|
|
281
|
+
if (ct && (ct.fn.clear(), ct = null), 0 === e2) return t2;
|
|
287
282
|
null === e2 && (e2 = 120);
|
|
288
|
-
const r2 =
|
|
289
|
-
return
|
|
290
|
-
},
|
|
283
|
+
const r2 = F.debounce(() => t2(), e2);
|
|
284
|
+
return ct = { fn: r2, setReferences: o2, isClose: n2 }, ct.fn;
|
|
285
|
+
}, pt = (e2, t2) => {
|
|
291
286
|
if (null === t2) return;
|
|
292
287
|
e2.add(t2);
|
|
293
|
-
const o2 =
|
|
288
|
+
const o2 = at.get(t2.key);
|
|
294
289
|
if (!o2) return;
|
|
295
|
-
const n2 =
|
|
296
|
-
n2 &&
|
|
297
|
-
},
|
|
290
|
+
const n2 = st.get(o2);
|
|
291
|
+
n2 && pt(e2, n2);
|
|
292
|
+
}, ut = (e2) => {
|
|
298
293
|
const t2 = /* @__PURE__ */ new Set();
|
|
299
|
-
return
|
|
300
|
-
},
|
|
301
|
-
const { anchor: o2, label: r2 = null, parentFloat: i2 = null, onOpen: l2, onClose: d2, popperProps: u2, createPopupPanel: m2 =
|
|
294
|
+
return pt(t2, e2), t2;
|
|
295
|
+
}, mt = (t2) => {
|
|
296
|
+
const { anchor: o2, label: r2 = null, parentFloat: i2 = null, onOpen: l2, onClose: d2, popperProps: u2, createPopupPanel: m2 = nt } = t2 ?? {}, h2 = K(l2, [l2]), f2 = K(d2, [d2]), [x2, g2] = c(null), [b2, y2] = c(false), [v2, k2] = c(false), w2 = a(() => null === i2 ? (null === lt && (lt = { key: { label: "root" }, isRoot: true, parent: null, open: () => null, close: (e2) => null, closeChild: (e2) => null, onChildVisible: () => {
|
|
302
297
|
}, onChildHidden: () => {
|
|
303
|
-
}, closeAll: () => F2(0), floatElement: () => null, anchorElement: () => null }),
|
|
298
|
+
}, closeAll: () => F2(0), floatElement: () => null, anchorElement: () => null }), lt) : i2, []), C2 = a(() => ({ label: r2 }), []), M2 = n.useRef(null), S2 = n.useRef(o2);
|
|
304
299
|
s(() => {
|
|
305
300
|
S2.current = o2;
|
|
306
301
|
}, [o2]);
|
|
307
302
|
const P2 = (e2) => {
|
|
308
|
-
const t3 =
|
|
303
|
+
const t3 = at.get(e2);
|
|
309
304
|
let o3 = null;
|
|
310
305
|
if (t3) {
|
|
311
|
-
const e3 =
|
|
306
|
+
const e3 = st.get(t3);
|
|
312
307
|
o3 = e3?.close(0);
|
|
313
308
|
}
|
|
314
309
|
return o3;
|
|
315
|
-
}, R2 = () => P2(
|
|
310
|
+
}, R2 = () => P2(W2.key), [D2, E2] = c(), T2 = () => {
|
|
316
311
|
if (!x2) return void I2();
|
|
317
312
|
const e2 = new Promise((e3, t3) => {
|
|
318
313
|
E2((o3) => ({ resolve: e3, reject: t3 }));
|
|
319
314
|
});
|
|
320
|
-
return R2(),
|
|
315
|
+
return R2(), at.delete(w2.key), g2(false), e2;
|
|
321
316
|
};
|
|
322
317
|
s(() => {
|
|
323
318
|
D2 && (D2.resolve(), E2(null));
|
|
@@ -329,34 +324,34 @@ const ct = (e2 = null, t2, o2, n2) => {
|
|
|
329
324
|
}, []), O2 = () => {
|
|
330
325
|
if (x2) return void I2();
|
|
331
326
|
if (w2) {
|
|
332
|
-
const e3 =
|
|
327
|
+
const e3 = st.get(w2.key);
|
|
333
328
|
e3?.open(0);
|
|
334
329
|
}
|
|
335
|
-
const e2 =
|
|
330
|
+
const e2 = at.get(w2.key);
|
|
336
331
|
if (e2 && e2 !== C2) {
|
|
337
|
-
const t3 =
|
|
332
|
+
const t3 = st.get(e2);
|
|
338
333
|
t3?.close(0);
|
|
339
334
|
}
|
|
340
335
|
requestAnimationFrame(() => {
|
|
341
|
-
|
|
336
|
+
at.set(w2.key, W2.key), g2(true);
|
|
342
337
|
});
|
|
343
|
-
}, [z2, I2] = n.useReducer((e2) => e2 + 1, 0), N2 = p((e2) => null === m2 ? null : m2({ closeFloat: F2, closeFloatAll: H2, ...e2 }), [m2]), B2 = null === m2, L2 =
|
|
344
|
-
const t3 =
|
|
345
|
-
return t3 &&
|
|
346
|
-
})(
|
|
338
|
+
}, [z2, I2] = n.useReducer((e2) => e2 + 1, 0), N2 = p((e2) => null === m2 ? null : m2({ closeFloat: F2, closeFloatAll: H2, ...e2 }), [m2]), B2 = null === m2, L2 = K((e2 = 120) => dt(e2, O2, /* @__PURE__ */ new Set([W2]), false)(), [O2]), F2 = K((e2 = 60) => dt(e2, T2, ut(W2), true)(), [T2]), A2 = K((e2 = 360) => dt(e2, R2, ut(((e3) => {
|
|
339
|
+
const t3 = at.get(e3.key);
|
|
340
|
+
return t3 && st.get(t3) || null;
|
|
341
|
+
})(W2)), true)(), [R2]), H2 = K($2, [$2]), W2 = a(() => ({ key: C2, isRoot: false, label: r2, parent: w2, onChildVisible: () => {
|
|
347
342
|
k2(true);
|
|
348
343
|
}, onChildHidden: () => {
|
|
349
344
|
k2(false);
|
|
350
345
|
}, open: L2, close: F2, closeChild: A2, closeAll: H2, floatElement: () => M2.current, anchorElement: () => S2.current }), []);
|
|
351
346
|
s(() => {
|
|
352
|
-
|
|
353
|
-
}, [
|
|
354
|
-
|
|
347
|
+
st.set(C2, W2);
|
|
348
|
+
}, [W2]), s(() => () => {
|
|
349
|
+
st.delete(C2), F2(0);
|
|
355
350
|
}, []), s(() => {
|
|
356
351
|
x2 && !B2 && (y2(true), w2.onChildVisible());
|
|
357
352
|
}, [x2, B2]);
|
|
358
|
-
const
|
|
359
|
-
e2.which ===
|
|
353
|
+
const V2 = p((e2) => {
|
|
354
|
+
e2.which === q.Escape && (e2.preventDefault(), e2.stopPropagation(), F2(0));
|
|
360
355
|
}, []), _2 = n.useRef(null), j2 = p(() => {
|
|
361
356
|
const e2 = _2.current, t3 = M2.current;
|
|
362
357
|
e2 && t3 && (requestAnimationFrame(() => {
|
|
@@ -373,19 +368,19 @@ const ct = (e2 = null, t2, o2, n2) => {
|
|
|
373
368
|
});
|
|
374
369
|
}, []), [Q2, G2] = c();
|
|
375
370
|
s(() => {
|
|
376
|
-
B2 && (x2 ? h2?.() : false === x2 && f2?.()), G2(b2 ? e(
|
|
371
|
+
B2 && (x2 ? h2?.() : false === x2 && f2?.()), G2(b2 ? e(it, { floatReference: W2, open: x2, label: r2, anchorEl: o2, onOpening: () => {
|
|
377
372
|
h2?.(), w2.onChildVisible();
|
|
378
373
|
}, onClosing: j2, onClose: () => {
|
|
379
374
|
y2(false), w2.onChildHidden();
|
|
380
|
-
}, onMount: U2, popperProps: { onKeyDown:
|
|
381
|
-
x2 &&
|
|
375
|
+
}, onMount: U2, popperProps: { onKeyDown: V2, onMouseEnter: (e2) => {
|
|
376
|
+
x2 && ct?.isClose && ct.setReferences.has(W2) && (ct.fn.clear(), ct = null, W2.closeChild());
|
|
382
377
|
}, ...u2 }, createPopupPanel: N2 }) : null);
|
|
383
378
|
}, [b2, x2, r2, B2, u2, N2, z2]);
|
|
384
|
-
const X2 =
|
|
385
|
-
if (0 ===
|
|
379
|
+
const X2 = K((e2) => {
|
|
380
|
+
if (0 === at.size) return;
|
|
386
381
|
let t3 = false;
|
|
387
|
-
|
|
388
|
-
const n2 =
|
|
382
|
+
at.forEach((o3) => {
|
|
383
|
+
const n2 = st.get(o3);
|
|
389
384
|
if (t3) return;
|
|
390
385
|
if (!n2) return;
|
|
391
386
|
const r3 = n2.floatElement();
|
|
@@ -402,64 +397,64 @@ const ct = (e2 = null, t2, o2, n2) => {
|
|
|
402
397
|
return document.addEventListener("mousedown", e2), document.addEventListener("touchstart", e2), document.addEventListener("focus", e2), () => {
|
|
403
398
|
document.removeEventListener("mousedown", e2), document.removeEventListener("touchstart", e2), document.removeEventListener("focus", e2);
|
|
404
399
|
};
|
|
405
|
-
}, [x2, w2]), { component: Q2, reference:
|
|
406
|
-
},
|
|
407
|
-
const { nestedChildren: r2, variant: i2, disabled: a2 = false, createPopupPanel: l2, ...s2 } = o2, c2 = { disabled: a2, createPopupPanel:
|
|
400
|
+
}, [x2, w2]), { component: Q2, reference: W2 };
|
|
401
|
+
}, ht = r(i((o2, n2) => {
|
|
402
|
+
const { nestedChildren: r2, variant: i2, disabled: a2 = false, createPopupPanel: l2, ...s2 } = o2, c2 = { disabled: a2, createPopupPanel: K((o3) => {
|
|
408
403
|
if (!r2 || 0 === r2.length) return null;
|
|
409
404
|
const { popupContainer: i3, floatReference: a3, ref: l3, ...s3 } = o3, c3 = [];
|
|
410
405
|
for (let t2 = 0; t2 < r2.length; t2++) {
|
|
411
406
|
const o4 = r2[t2];
|
|
412
|
-
o4 && c3.push(e(
|
|
407
|
+
o4 && c3.push(e(ht, { parentFloat: a3, ...s3, ...o4 }, t2));
|
|
413
408
|
}
|
|
414
|
-
return t(v, { ref: n2, sx: { display: "flex", flexDirection: "column", paddingTop: "4px", paddingBottom: "4px" }, children: ["Children here", c3, e(
|
|
409
|
+
return t(v, { ref: n2, sx: { display: "flex", flexDirection: "column", paddingTop: "4px", paddingBottom: "4px" }, children: ["Children here", c3, e(Rt, { parentFloat: a3, children: "Close other children" })] });
|
|
415
410
|
}, [r2]), ...s2 };
|
|
416
|
-
return e(i2 ===
|
|
417
|
-
})),
|
|
418
|
-
const { children: i2, sx: l2, parentFloat: c2, createPopupPanel: d2, popperProps: p2 =
|
|
419
|
-
|
|
411
|
+
return e(i2 === ot.Toolbar ? Et : $t, { ...c2 });
|
|
412
|
+
})), ft = { placement: "right-start" }, xt = r(i((e2, r2) => {
|
|
413
|
+
const { children: i2, sx: l2, parentFloat: c2, createPopupPanel: d2, popperProps: p2 = ft, label: u2, ...m2 } = e2;
|
|
414
|
+
ae(n.isValidElement(i2), "Must supply a child component to enable a context menu.");
|
|
420
415
|
const h2 = i2, f2 = a(() => ({ ...h2?.props, ...m2, onContextMenu: (e3) => {
|
|
421
416
|
h2?.props?.onContextMenu?.(e3), e3.isDefaultPrevented() || (m2?.onContextMenu?.(e3), e3.isDefaultPrevented() || (b2(e3), e3.preventDefault()));
|
|
422
|
-
} }), [m2, h2?.props]), x2 =
|
|
417
|
+
} }), [m2, h2?.props]), x2 = K(d2, [d2]), [g2, b2] = n.useState(null), { reference: y2, component: v2 } = mt({ label: u2 ?? "contextMenu", popperProps: p2, parentFloat: c2, anchor: { getBoundingClientRect: () => new DOMRect(g2?.clientX || 0, g2?.clientY || 0) }, onClose: () => b2(null), createPopupPanel: x2 });
|
|
423
418
|
return s(() => {
|
|
424
419
|
g2 ? y2.open(0) : y2.close(0);
|
|
425
420
|
}, [g2]), t(o, { children: [n.cloneElement(i2, f2), v2] });
|
|
426
|
-
})),
|
|
427
|
-
const { slotProps: n2, ...r2 } = t2, { getPortalContainer: i2 } =
|
|
421
|
+
})), gt = i((t2, o2) => {
|
|
422
|
+
const { slotProps: n2, ...r2 } = t2, { getPortalContainer: i2 } = V();
|
|
428
423
|
return e(P, { ref: o2, slotProps: { ...n2, popper: { container: i2, ...n2?.popper || {} } }, ...r2 });
|
|
429
424
|
});
|
|
430
|
-
|
|
431
|
-
const
|
|
425
|
+
gt.displayName = "SimpleTooltip";
|
|
426
|
+
const bt = r((t2) => {
|
|
432
427
|
const { modifier: o2, sx: n2, ...r2 } = t2;
|
|
433
428
|
return e(v, { sx: { marginLeft: "1px", marginRight: "1px", borderRadius: "4px", borderStyle: "solid", borderTopWidth: "1px", borderLeftWidth: "1px", borderRightWidth: "1px", borderBottomWidth: "2px", borderTopColor: (e2) => f(e2.palette.background.paper, e2.palette.action.disabledOpacity), borderLeftColor: (e2) => f(e2.palette.background.paper, e2.palette.action.disabledOpacity), borderRightColor: (e2) => f(e2.palette.background.paper, e2.palette.action.disabledOpacity), borderBottomColor: (e2) => f(e2.palette.background.paper, 1 - e2.palette.action.disabledOpacity), backgroundColor: (e2) => f(e2.palette.action.hover, e2.palette.action.disabledOpacity), paddingLeft: "4px", paddingRight: "4px", minHeight: "1.6em", display: "flex", justifyContent: "center", alignItems: "center", boxSizing: "content-box", overflow: "hidden", ...n2 }, ...r2, children: e(v, { sx: { display: "flex", alignItems: "center", justifyContent: "center", textAlign: "center", "& *": { fontWeight: "500" } }, children: o2 }) });
|
|
434
|
-
}),
|
|
429
|
+
}), yt = F.getOS() === F.OSType.MacOS || F.getOS() === F.OSType.IOS ? "Cmd" : "Ctrl", vt = (t2, o2 = false, n2 = null) => {
|
|
435
430
|
if (Array.isArray(t2)) {
|
|
436
431
|
let r3 = [], i3 = t2;
|
|
437
|
-
for (let e2 = 0; e2 < i3.length; e2++) r3.push(
|
|
432
|
+
for (let e2 = 0; e2 < i3.length; e2++) r3.push(vt(i3[e2], o2, n2 ?? "" + e2));
|
|
438
433
|
return e(v, { sx: { display: "flex", alignItems: "center", flexDirection: "column" }, children: r3 }, n2);
|
|
439
434
|
}
|
|
440
435
|
if (!t2?.key) return null;
|
|
441
436
|
const r2 = {};
|
|
442
437
|
for (let e2 = 0; t2.modifiers && e2 < t2.modifiers.length; e2++) r2[t2.modifiers[e2]] = true;
|
|
443
438
|
const i2 = [];
|
|
444
|
-
return r2?.[
|
|
445
|
-
},
|
|
439
|
+
return r2?.[_.Ctrl] && (i2.push(e(bt, { modifier: o2 ? "^" : e("div", { style: { paddingRight: "1px" }, children: yt }) }, "ctrl")), i2.push("+")), r2?.[_.Alt] && (i2.push(e(bt, { modifier: o2 ? "⌥" : "Alt" }, "alt")), i2.push("+")), r2?.[_.Shift] && (i2.push(e(bt, { modifier: o2 ? "⇧" : e("div", { style: { paddingRight: "1px" }, children: "Shift" }) }, "shift")), i2.push("+")), r2?.[_.Meta] && (i2.push(e(bt, { modifier: o2 ? e("div", { style: { paddingTop: "1px" }, children: "⌘" }) : "Meta" }, "meta")), i2.push("+")), i2.push(e(bt, { modifier: j.toPrettyKeyCode(t2.key) }, "character")), e(v, { sx: { display: "flex", alignItems: "center" }, children: i2 }, n2);
|
|
440
|
+
}, kt = r(i((n2, r2) => {
|
|
446
441
|
const { disabled: i2 = false, label: a2, shortcut: l2, chips: d2, description: p2, maxWidth: u2 = 280, useModifierSymbols: m2 = false, children: h2, simple: f2, componentDisabled: x2 = false, sx: g2, ...b2 } = n2;
|
|
447
442
|
let y2 = null;
|
|
448
|
-
l2 && (y2 =
|
|
443
|
+
l2 && (y2 = vt(l2, m2));
|
|
449
444
|
const [w2, C2] = c(null);
|
|
450
445
|
s(() => {
|
|
451
446
|
Promise.resolve(a2).then((e2) => {
|
|
452
447
|
C2(e2);
|
|
453
448
|
});
|
|
454
449
|
}, [a2]);
|
|
455
|
-
return e(
|
|
456
|
-
})),
|
|
450
|
+
return e(gt, { slotProps: { popper: { sx: { "& .MuiTooltip-tooltip": { marginTop: "0px !important" }, ...g2 }, modifiers: [{ name: "offset", options: { offset: [0, 14] } }] } }, className: "tooltip-wrapper", tabIndex: -1, title: !i2 && w2 ? t(v, { sx: { maxWidth: `${u2}px` }, ref: r2, children: [t(v, { sx: { display: "flex", flexDirection: "row", marginBottom: p2 ? "4px" : "0px" }, children: [e(k, { variant: "subtitle1", component: "div", flex: "1 1 100%", children: w2 }), d2 ? e(Ie, { chips: d2 }) : null, y2 ? e(v, { sx: { marginLeft: "8px" } }, "leadingSpace") : e(o, {}), y2] }), p2 ? e(k, { variant: "caption", sx: { whiteSpace: "pre-line", lineHeight: "1.4" }, children: p2 }) : e(o, {})] }) : "", enterDelay: 260, enterNextDelay: 130, leaveDelay: 230, disableInteractive: true, ...b2, children: e("div", { style: { display: "flex", alignItems: "stretch", justifyContent: "stretch" }, children: h2 }) });
|
|
451
|
+
})), wt = e(W, {}), Ct = e(W, { iconKey: "Check" }), Mt = r(i((o2, n2) => {
|
|
457
452
|
const { dense: r2 = true, outlined: i2 = false, disableHover: l2 = false, parentFloat: s2, selected: d2, icon: p2, tooltipProps: u2, children: m2, primary: x2, sx: g2, disabled: y2, className: k2, onFocus: w2, onBlur: C2, ...M2 } = o2, [S2, P2] = c(false), R2 = { marginRight: "0px", padding: r2 ? "2px" : "7px", borderRadius: (e2) => `${e2.shape.borderRadius}px`, color: (e2) => x2 ? void 0 : e2.palette.text.icon ?? e2.palette.action.active, border: (e2) => `solid ${i2 ? e2.palette.divider : "transparent"} 1px`, "& .MuiTouchRipple-child": { borderRadius: (e2) => `${e2.shape.borderRadius}px !important` }, "&.Mui-selected": { backgroundColor: (e2) => f(e2.palette.text.primary, e2.palette.action.selectedOpacity), border: (e2) => `solid ${i2 ? e2.palette.text?.primary : e2.palette.divider} 1px` }, "&.Mui-disabled": { border: (e2) => `solid ${i2 ? e2.palette.divider : "transparent"} 1px` }, "&.Mui-disabled > .icon path": { filter: "grayscale(65%)", opacity: ".8" }, "&.Mui-focusVisible": { outline: "solid transparent 1px", border: "1px solid transparent" }, ...g2 }, D2 = { "&:hover:not(.Mui-disabled, [disabled])": { color: (e2) => e2.palette.text.primary, border: (e2) => `solid ${i2 ? e2.palette.text?.primary : e2.palette.divider} 1px`, "&.Mui-selected": { backgroundColor: (e2) => f(e2.palette.text.primary, e2.palette.action.selectedOpacity + e2.palette.action.hoverOpacity) }, "> .outline-hover": { outline: (e2) => `solid ${i2 ? e2.palette.text?.primary : e2.palette.divider} 1px` }, backgroundColor: null }, "&.Mui-focusVisible": { outline: (e2) => `solid ${e2.palette.primary.main} 1px`, border: (e2) => `1px solid ${e2.palette?.primary?.main}`, zIndex: 1 } };
|
|
458
453
|
let E2 = R2;
|
|
459
|
-
l2 || (E2 =
|
|
454
|
+
l2 || (E2 = F.mergeContentful(R2, D2));
|
|
460
455
|
const T2 = a(() => {
|
|
461
456
|
let e2 = "function" == typeof p2 ? p2() : p2;
|
|
462
|
-
return null === e2 ? e2 : e2 || (void 0 === d2 ?
|
|
457
|
+
return null === e2 ? e2 : e2 || (void 0 === d2 ? wt : Ct);
|
|
463
458
|
}, [p2, d2]);
|
|
464
459
|
let $2 = t(b, { component: "div", ref: n2, className: h({ "Mui-focusVisible": S2, "Mui-selected": d2, "Mui-disabled": y2 }, k2), onFocus: (e2) => {
|
|
465
460
|
P2(true), w2?.(e2);
|
|
@@ -468,11 +463,11 @@ const gt = r((t2) => {
|
|
|
468
463
|
}, size: "small", TouchRippleProps: { center: false }, sx: E2, edge: "end", ...M2, disabled: y2 || false, children: [T2, m2] });
|
|
469
464
|
if (u2) if (u2.simple && u2.label && !u2.disabled) {
|
|
470
465
|
const { label: t2, description: o3, maxWidth: n3, shortcut: r3, useModifierSymbols: i3, componentDisabled: a2, simple: l3, chips: s3, ref: c2, ...d3 } = u2;
|
|
471
|
-
$2 = e(
|
|
472
|
-
} else $2 = e(
|
|
466
|
+
$2 = e(gt, { disableInteractive: true, title: t2 ?? "", ...d3, children: e(v, { sx: { display: "flex" }, children: $2 }) });
|
|
467
|
+
} else $2 = e(kt, { children: $2, ...u2 });
|
|
473
468
|
return $2;
|
|
474
|
-
})),
|
|
475
|
-
const { icon: r2 =
|
|
469
|
+
})), St = e(W, {}), Pt = (e2) => e2.icon, Rt = r(i((o2, n2) => {
|
|
470
|
+
const { icon: r2 = St, renderIcon: i2 = Pt, parentFloat: l2, className: s2, onFocus: d2, selected: p2, onBlur: u2, onMouseOver: m2, onMouseOut: f2, onMouseEnter: x2, disabled: g2, children: b2, sx: y2, tooltipProps: v2, chips: k2, primary: w2, ...C2 } = o2, [M2, S2] = c(false), [P2, E2] = c(false), T2 = a(() => {
|
|
476
471
|
const t2 = i2?.({ icon: r2, disabled: g2, selected: p2 });
|
|
477
472
|
return t2 ? e(R, { className: h({ "Mui-focusVisible": M2, "Mui-hovered": P2 }), sx: { "& .MuiSvgIcon-root": { color: (e2) => w2 ? void 0 : e2.palette.text.icon ?? e2.palette.action.active }, "&.Mui-hovered:not(.Mui-disabled, [disabled])": { "& .MuiSvgIcon-root": { color: (e2) => e2.palette.text.primary } } }, children: t2 }) : null;
|
|
478
473
|
}, [i2, g2, r2, M2, P2, w2, p2]);
|
|
@@ -486,38 +481,38 @@ const gt = r((t2) => {
|
|
|
486
481
|
d2?.(e2), S2(true);
|
|
487
482
|
}, onBlur: (e2) => {
|
|
488
483
|
u2?.(e2), S2(false);
|
|
489
|
-
}, sx: { flex: "1 1 100%", "&.Mui-disabled > .icon path": { filter: "grayscale(65%)" }, "&.Mui-selected": { color: (e2) => e2.palette.text.primary }, color: (e2) => e2.palette.text.secondary, "&.Mui-hovered:not(.Mui-disabled, [disabled])": { color: (e2) => e2.palette.text.primary }, ...y2 }, ...C2, children: [T2, b2, k2 ? e(
|
|
490
|
-
return v2 && ($2 = e(
|
|
491
|
-
})),
|
|
484
|
+
}, sx: { flex: "1 1 100%", "&.Mui-disabled > .icon path": { filter: "grayscale(65%)" }, "&.Mui-selected": { color: (e2) => e2.palette.text.primary }, color: (e2) => e2.palette.text.secondary, "&.Mui-hovered:not(.Mui-disabled, [disabled])": { color: (e2) => e2.palette.text.primary }, ...y2 }, ...C2, children: [T2, b2, k2 ? e(Ie, { chips: k2 }) : null] });
|
|
485
|
+
return v2 && ($2 = e(kt, { children: $2, placement: "right-start", ...v2 })), $2;
|
|
486
|
+
})), Dt = r(i((t2, n2) => {
|
|
492
487
|
const { children: r2, sx: i2, primary: a2 = false, variant: l2 = "subtitle1", ...s2 } = t2;
|
|
493
488
|
return e(o, { children: e(k, { ref: n2, variant: l2, component: "div", sx: { userSelect: "none", fontWeight: "500", paddingLeft: "8px", paddingTop: "subtitle1" === l2 ? "2px" : void 0, paddingBottom: "subtitle1" === l2 ? "2px" : void 0, color: (e2) => a2 ? void 0 : e2.palette.text.secondary, ...i2 }, ...s2, children: r2 }) });
|
|
494
|
-
})),
|
|
495
|
-
const { dense: i2 = true, outlined: s2 = false, label: d2, selected: p2 = false, onQuickClick: u2, parentFloat: m2, createPopupPanel: x2, popupProps: g2, onPopupOpen: y2, onPopupClose: k2, quickButtonProps: w2, createQuickButton: C2, tooltip: M2 = "", createTooltip: S2, icon: P2, disabled: R2, buttonProps: D2 =
|
|
489
|
+
})), Et = r(i((n2, r2) => {
|
|
490
|
+
const { dense: i2 = true, outlined: s2 = false, label: d2, selected: p2 = false, onQuickClick: u2, parentFloat: m2, createPopupPanel: x2, popupProps: g2, onPopupOpen: y2, onPopupClose: k2, quickButtonProps: w2, createQuickButton: C2, tooltip: M2 = "", createTooltip: S2, icon: P2, disabled: R2, buttonProps: D2 = F.EmptyObject, disableHover: E2, touchRippleRef: T2, primary: $2, children: O2, sx: z2, className: I2, ...N2 } = n2, B2 = Y(), L2 = a(() => {
|
|
496
491
|
const e2 = (e3, t2, o2, n3 = o2) => {
|
|
497
492
|
const r3 = "boolean" == typeof s2 ? null : s2[e3];
|
|
498
493
|
return "function" == typeof r3 ? r3(t2) : r3 || (s2 ? o2 : n3);
|
|
499
494
|
};
|
|
500
495
|
return { outline: { color: (t2) => e2("color", t2, t2.palette.divider, "transparent"), hoverColor: (t2) => e2("hoverColor", t2, t2.palette.text?.primary, t2.palette.divider), focusColor: (t2) => e2("focusColor", t2, t2.palette?.primary?.main) }, active: "dark" === B2.palette.mode ? B2.palette.text.secondary : B2.palette.text.primary, text: B2.palette.text.icon ?? B2.palette.action.active };
|
|
501
|
-
}, [s2, B2]), [A2, H2] = c(false), [
|
|
496
|
+
}, [s2, B2]), [A2, H2] = c(false), [W2, V2] = c(false), [_2, j2] = c(false), U2 = l(null), Q2 = l(null), G2 = mt({ anchor: U2.current, label: d2, createPopupPanel: x2, parentFloat: m2, popperProps: g2?.popperProps, onClose: () => {
|
|
502
497
|
H2(false), k2?.();
|
|
503
498
|
}, onOpen: () => {
|
|
504
499
|
H2(true), y2?.();
|
|
505
|
-
} }),
|
|
500
|
+
} }), X2 = K((e2) => {
|
|
506
501
|
u2?.(e2), G2.reference.close(0);
|
|
507
|
-
}, [u2, G2]), J2 =
|
|
502
|
+
}, [u2, G2]), J2 = K(() => {
|
|
508
503
|
A2 ? G2.reference.close(0) : G2.reference.open(0);
|
|
509
504
|
}, [A2, G2, m2, d2]), Z2 = a(() => {
|
|
510
|
-
const e2 = { "&.bordered": { borderWidth: "1px", borderRadius: "0px", borderTopStyle: "solid", borderBottomStyle: "solid", borderColor: (e3) =>
|
|
511
|
-
return { quickButtonStyling: n3, openQuickButtonStyling: r3, compoundStyling: a2, openCompoundStyling:
|
|
512
|
-
}, [
|
|
505
|
+
const e2 = { "&.bordered": { borderWidth: "1px", borderRadius: "0px", borderTopStyle: "solid", borderBottomStyle: "solid", borderColor: (e3) => L2.outline.color(e3), "&.Mui-focusVisible": { border: (e3) => `1px solid ${L2.outline.focusColor(e3)} !important` }, "&:hover:not(.Mui-disabled, [disabled])": { borderColor: () => E2 ? "transparent" : void 0, backgroundColor: () => E2 ? "transparent" : void 0 }, "&.Mui-hovered:not(.Mui-disabled, [disabled])": { borderColor: (e3) => L2.outline.hoverColor(e3) }, "&.Mui-selected:not(.Mui-disabled, [disabled])": { borderColor: (e3) => L2.outline.hoverColor(e3) }, "&.left": { borderTopLeftRadius: (e3) => `${e3.shape.borderRadius}px`, borderBottomLeftRadius: (e3) => `${e3.shape.borderRadius}px`, borderLeftStyle: "solid" }, "&.hard-right": { borderRightStyle: "solid", borderRightWidth: "1px", borderRightColor: (e3) => L2.outline.color(e3) }, "&.right": { borderTopRightRadius: (e3) => `${e3.shape.borderRadius}px`, borderBottomRightRadius: (e3) => `${e3.shape.borderRadius}px`, borderRightStyle: "solid" }, "&.divider": { borderLeftWidth: "0px !important" } }, "& .MuiTouchRipple-child": { borderRadius: (e3) => `${e3.shape.borderRadius}px !important` } }, t2 = { "&.Mui-selected": { backgroundColor: (e3) => f(e3.palette.primary.main, e3.palette.action.selectedOpacity), "&:hover:not(.Mui-disabled)": { backgroundColor: (e3) => f(e3.palette.primary.main, e3.palette.action.selectedOpacity + e3.palette.action.hoverOpacity), "@media (hover: none)": { backgroundColor: (e3) => f(e3.palette.primary.main, e3.palette.action.selectedOpacity) } } } }, o2 = { maxHeight: "100%", "&.Mui-selected": { backgroundColor: (e3) => f(e3.palette.text.icon ?? e3.palette.action.active, e3.palette.action.selectedOpacity), "&:hover:not(.Mui-disabled)": { backgroundColor: (e3) => f(e3.palette.text.icon ?? e3.palette.action.active, e3.palette.action.selectedOpacity + e3.palette.action.hoverOpacity), "@media (hover: none)": { backgroundColor: (e3) => f(e3.palette.text.icon ?? e3.palette.action.active, e3.palette.action.selectedOpacity) } } }, "&:hover:not(.Mui-disabled, [disabled])": { color: (e3) => e3.palette.text.primary }, backgroundColor: () => E2 ? "transparent" : void 0, color: (e3) => e3.palette.text.icon, "&.Mui-disabled > .icon path": { filter: "grayscale(65%)", opacity: ".8" }, padding: () => i2 ? "2px 3px" : "7px", marginRight: "0" }, n3 = F.mergeContentful(o2, e2), r3 = F.mergeContentful(n3, t2), a2 = F.mergeContentful(o2, e2);
|
|
506
|
+
return { quickButtonStyling: n3, openQuickButtonStyling: r3, compoundStyling: a2, openCompoundStyling: F.mergeContentful(a2, t2) };
|
|
507
|
+
}, [L2, E2]), ee2 = K((t2) => {
|
|
513
508
|
const { children: o2, ref: n3, ...r3 } = t2;
|
|
514
|
-
return e(
|
|
509
|
+
return e(gt, { ref: n3, ...r3, disableInteractive: true, children: o2 });
|
|
515
510
|
}, []), te2 = u2 || C2, oe2 = te2 && (w2?.tooltip || w2?.createTooltip), ne2 = (t2) => {
|
|
516
511
|
const { tooltip: o2, createTooltip: n3, sx: r3, ...i3 } = t2;
|
|
517
512
|
let a2 = e(b, { sx: { ...r3 }, component: "div", ...i3 });
|
|
518
513
|
return oe2 ? (a2 = (n3 ?? ee2)({ title: A2 ? "" : o2 ?? M2, children: e("div", { children: a2 }) }, A2), a2) : a2;
|
|
519
514
|
}, re2 = { onKeyDown: (e2) => {
|
|
520
|
-
e2.keyCode ===
|
|
515
|
+
e2.keyCode === q.Space ? J2() : e2.keyCode === q.F4 || e2.keyCode === q.Down ? G2.reference.open(0) : e2.keyCode === q.Up && G2.reference.close(0);
|
|
521
516
|
} };
|
|
522
517
|
let ie2 = e(o, {});
|
|
523
518
|
const ae2 = a(() => "function" == typeof P2 ? P2() : P2, [P2]);
|
|
@@ -526,40 +521,40 @@ const gt = r((t2) => {
|
|
|
526
521
|
const r3 = (C2 || ne2)({ tabIndex: -1, disabled: R2, size: "small", edge: "end", onMouseEnter: () => {
|
|
527
522
|
G2.reference.parent.closeChild();
|
|
528
523
|
}, onMouseDown: (e2) => {
|
|
529
|
-
0 === e2.button && (e2.preventDefault(),
|
|
530
|
-
}, touchRippleRef: T2, children: ae2, ...w2, className: h({ "Mui-focusVisible":
|
|
531
|
-
let a2 =
|
|
532
|
-
oe2 && (a2 = (S2 ?? ee2)({ title: A2 ? "" : M2, children: a2 }, A2)), ie2 = t(o, { children: [r3, e(b, { ref: Q2, component: "div", className: h({ "Mui-selected": A2, "Mui-hovered": _2 || A2, "Mui-disabled": R2, "Mui-focusVisible":
|
|
524
|
+
0 === e2.button && (e2.preventDefault(), X2(e2));
|
|
525
|
+
}, touchRippleRef: T2, children: ae2, ...w2, className: h({ "Mui-focusVisible": W2 || A2, "Mui-selected": p2, "Mui-hovered": _2 || A2, "Mui-disabled": R2, bordered: true, left: true, "hard-right": true }, w2?.className), sx: { ...Z2.quickButtonStyling, height: "100%", ...w2?.sx } });
|
|
526
|
+
let a2 = rt(true, i2, A2);
|
|
527
|
+
oe2 && (a2 = (S2 ?? ee2)({ title: A2 ? "" : M2, children: a2 }, A2)), ie2 = t(o, { children: [r3, e(b, { ref: Q2, component: "div", className: h({ "Mui-selected": A2, "Mui-hovered": _2 || A2, "Mui-disabled": R2, "Mui-focusVisible": W2 || A2, bordered: true, right: true, divider: true }), sx: { paddingLeft: (i2 ? 0 : 2) + "px", paddingRight: (i2 ? 0 : 2) + "px", width: () => "calc(var(--icon-size, 1.25em) * 0.8)", ...Z2.quickButtonStyling, ...n3 }, TouchRippleProps: { center: false }, tabIndex: -1, disabled: R2, size: "small", edge: "end", onMouseDown: (e2) => {
|
|
533
528
|
0 === e2.button && (e2.preventDefault(), J2());
|
|
534
529
|
}, children: a2 })] });
|
|
535
530
|
} else {
|
|
536
531
|
let t2 = A2 ? Z2.openCompoundStyling : Z2.compoundStyling;
|
|
537
|
-
ie2 = e(
|
|
532
|
+
ie2 = e(Mt, { ref: Q2, tabIndex: -1, disabled: R2, size: "small", icon: ae2, className: h({ "Mui-selected": A2 || p2, "Mui-hovered": _2, "Mui-disabled": R2, "Mui-focusVisible": W2 || A2, bordered: true, left: true, right: true }), sx: { ...Z2.quickButtonStyling, ...t2 }, onMouseDown: (e2) => {
|
|
538
533
|
0 === e2.button && (e2.preventDefault(), J2());
|
|
539
|
-
}, children:
|
|
534
|
+
}, children: rt(false, i2, A2) });
|
|
540
535
|
}
|
|
541
536
|
const { className: le2, sx: se2, ...ce2 } = D2;
|
|
542
|
-
let de2 = e(v, { onFocus: () =>
|
|
543
|
-
return oe2 || (de2 = (S2 ?? ee2)({ title: A2 ? "" : M2, children: de2 }, A2)), t(v, { className: h(I2, "popupIconButton"), ref: r2, ...N2, sx: { zIndex:
|
|
537
|
+
let de2 = e(v, { onFocus: () => V2(true), onBlur: () => V2(false), onMouseOver: () => j2(true), onMouseOut: () => j2(false), ...re2, "aria-label": "split button", ref: U2, tabIndex: R2 ? void 0 : 0, className: h(le2, "split-button-root", { "Mui-focusVisible": W2 || A2, "Mui-selected": A2 || p2, "Mui-hovered": _2, "Mui-disabled": R2 }), sx: { display: "flex", flex: "1 1 100%", alignItems: "stretch", width: "fit-content", "&:not(.Mui-disabled)": { cursor: "pointer" }, marginLeft: s2 ? "1px" : "0px", marginRight: s2 ? "1px" : "0px", borderRadius: (e2) => `${e2.shape.borderRadius}px`, "&.Mui-focusVisible": { outline: (e2) => `solid ${e2.palette.primary.main} 1px`, zIndex: 2 }, ...se2 }, ...ce2, children: ie2 });
|
|
538
|
+
return oe2 || (de2 = (S2 ?? ee2)({ title: A2 ? "" : M2, children: de2 }, A2)), t(v, { className: h(I2, "popupIconButton"), ref: r2, ...N2, sx: { zIndex: W2 || A2 ? 2 : void 0, display: "flex", alignItems: "center", ...z2 }, children: [de2, G2.component] });
|
|
544
539
|
}));
|
|
545
|
-
|
|
546
|
-
const
|
|
547
|
-
const { selected: i2 = false, label: s2, onQuickClick: d2, parentFloat: u2, createPopupPanel: m2, popupProps: f2 =
|
|
540
|
+
Et.displayName = "ExhibitPopupIconButton";
|
|
541
|
+
const Tt = {}, $t = r(i((n2, r2) => {
|
|
542
|
+
const { selected: i2 = false, label: s2, onQuickClick: d2, parentFloat: u2, createPopupPanel: m2, popupProps: f2 = Tt, onPopupOpen: x2, onPopupClose: g2, quickButtonProps: b2, createQuickButton: k2, tooltip: w2 = "", createTooltip: C2, icon: M2, disabled: S2, touchRippleRef: P2, primary: R2, children: E2, sx: T2, ...$2 } = n2, [O2, z2] = c(false), [I2, N2] = c(false), [B2, L2] = c(false), [F2, A2] = c(false), H2 = l(null), W2 = l(null), V2 = a(() => {
|
|
548
543
|
if (!f2) return;
|
|
549
544
|
const { popperProps: e2 } = f2;
|
|
550
545
|
return { placement: "right-start", offsets: [-4, -2], ...e2 };
|
|
551
|
-
}, [f2]), q2 =
|
|
546
|
+
}, [f2]), q2 = mt({ anchor: H2.current, label: s2, createPopupPanel: m2, parentFloat: u2, popperProps: V2, onClose: () => {
|
|
552
547
|
z2(false), g2?.();
|
|
553
548
|
}, onOpen: () => {
|
|
554
549
|
z2(true), x2?.();
|
|
555
|
-
} }), _2 =
|
|
550
|
+
} }), _2 = K((e2) => {
|
|
556
551
|
0 === e2.button && (d2?.(e2), q2.reference.close(0));
|
|
557
|
-
}, [d2]), j2 = e(
|
|
552
|
+
}, [d2]), j2 = e(We, {}), U2 = { "&.Mui-selected": { color: (e2) => e2.palette.text.primary, "& svg * ": { color: (e2) => e2.palette.text.primary } } }, Q2 = p((t2) => {
|
|
558
553
|
const { children: o2, ref: n3, ...r3 } = t2;
|
|
559
|
-
return e(
|
|
554
|
+
return e(gt, { ref: n3, ...r3, disableInteractive: true, children: o2 });
|
|
560
555
|
}, []), G2 = d2 || k2, X2 = (t2) => {
|
|
561
556
|
const { tooltip: o2, createTooltip: n3, ...r3 } = t2;
|
|
562
|
-
return e(
|
|
557
|
+
return e(Rt, { icon: M2, className: h({ "Mui-hovered": B2 }), sx: { flex: "1 1 100%", ...U2 }, ...r3, children: s2 });
|
|
563
558
|
}, Y2 = { onFocus: () => {
|
|
564
559
|
N2(true);
|
|
565
560
|
}, onBlur: () => N2(false), onMouseOver: () => {
|
|
@@ -578,34 +573,34 @@ const Et = {}, Tt = r(i((n2, r2) => {
|
|
|
578
573
|
}, onMouseDown: (e2) => {
|
|
579
574
|
0 === e2.button && (e2.preventDefault(), _2(e2));
|
|
580
575
|
}, className: h("quick-left", {}, b2?.className), ...b2 });
|
|
581
|
-
J2 = t(o, { children: [n3, e(y, { sx: { ml: "0px", mr: "0px" }, orientation: "vertical", variant: "middle", flexItem: true }), e(D, { ref:
|
|
576
|
+
J2 = t(o, { children: [n3, e(y, { sx: { ml: "0px", mr: "0px" }, orientation: "vertical", variant: "middle", flexItem: true }), e(D, { ref: W2, className: h({ "Mui-selected": O2, "Mui-hovered": B2 }), sx: { borderTopLeftRadius: "0px", borderBottomLeftRadius: "0px", paddingLeft: "0px", paddingRight: "0px", marginLeft: "0px", color: (e2) => R2 ? void 0 : e2.palette.text.secondary, "&.Mui-hovered:not(.Mui-disabled, [disabled])": { color: (e2) => e2.palette.text.primary }, ...U2 }, tabIndex: -1, disabled: S2, ...Y2, children: e(v, { className: "expand-icon", sx: { flex: "none", display: "flex", border: "1px solid transparent", paddingTop: "1px", paddingBottom: "1px", color: (e2) => R2 ? void 0 : e2.palette.text.icon ?? e2.palette.action.active }, onMouseOver: (e2) => {
|
|
582
577
|
e2.preventDefault(), A2(true);
|
|
583
578
|
}, onMouseLeave: () => {
|
|
584
579
|
A2(false);
|
|
585
580
|
}, onClick: (e2) => {
|
|
586
581
|
e2.preventDefault(), O2 ? q2.reference.close() : q2.reference.open();
|
|
587
582
|
}, children: j2 }) })] });
|
|
588
|
-
} else J2 = t(
|
|
583
|
+
} else J2 = t(Rt, { ref: W2, tabIndex: -1, disabled: S2, icon: M2, className: h({ "Mui-selected": O2 || i2, "Mui-hovered": B2 }), sx: { flex: "1 1 100%", paddingRight: "0px", ...U2 }, onClick: (e2) => {
|
|
589
584
|
e2.preventDefault(), O2 ? q2.reference.close() : q2.reference.open();
|
|
590
585
|
}, ...Y2, children: [e("div", { style: { flex: "1 1 100%" }, children: s2 }), e(v, { className: "expand-icon", sx: { flex: "none", display: "flex", color: (e2) => R2 ? void 0 : e2.palette.text.icon ?? e2.palette.action.active }, children: j2 })] });
|
|
591
586
|
let Z2 = e(v, { "aria-label": "split button", ref: H2, tabIndex: S2 ? void 0 : 0, className: h({ "Mui-disabled": S2, "Mui-selected": O2, "Mui-focusVisible": I2 || O2, "Mui-hovered": B2 }), sx: { display: "flex", flex: "1 1 100%", alignItems: "center", width: "fit-content", "& .quick-left": { borderTopRightRadius: "0px", borderBottomRightRadius: "0px", marginRight: "-1px" }, "&.Mui-disabled > .icon path": { filter: "grayscale(65%)" }, ...T2 }, ...$2, children: J2 });
|
|
592
587
|
return G2 && !F2 && (b2?.tooltip || b2?.createTooltip) && (Z2 = (b2?.createTooltip ?? Q2)({ title: O2 ? "" : Z2 ?? b2?.tooltip, children: Z2 }, O2)), t(v, { ref: r2, sx: { zIndex: I2 || O2 ? 2 : void 0, display: "flex", " .tooltip-wrapper": { display: "flex", flex: "1 1 100%" } }, children: [Z2, q2.component] });
|
|
593
|
-
})),
|
|
588
|
+
})), Ot = r(i((t2, o2) => {
|
|
594
589
|
const { onSelectToggle: n2, selected: r2 = false, label: i2, shortcut: a2, tabIndex: l2 = 0, preventFocus: s2 = false, ...c2 } = t2;
|
|
595
|
-
return e(
|
|
590
|
+
return e(kt, { label: i2, shortcut: a2, children: e(Mt, { ref: o2, outlined: false, tabIndex: l2, selected: r2, onMouseDown: (e2) => {
|
|
596
591
|
s2 && e2.preventDefault();
|
|
597
592
|
}, onClick: () => {
|
|
598
593
|
n2?.(!r2);
|
|
599
594
|
}, ...c2 }) });
|
|
600
|
-
})),
|
|
595
|
+
})), zt = e(W, {}), It = e(W, { iconKey: "Check" }), Nt = r(i((t2, o2) => {
|
|
601
596
|
const { children: n2, selected: r2 = true, outlined: i2 = true, sx: a2, ...l2 } = t2;
|
|
602
597
|
let s2 = n2;
|
|
603
|
-
return null === s2 && (s2 =
|
|
598
|
+
return null === s2 && (s2 = zt), s2 || (s2 = It), e(v, { ref: o2, sx: { ...{ display: "flex", border: (e2) => r2 ? `solid ${i2 ? e2.palette.divider : "transparent"} 1px` : "solid transparent 1px", borderRadius: (e2) => `${e2.shape.borderRadius}px`, backgroundColor: (e2) => {
|
|
604
599
|
if (r2) return f(e2.palette.text.icon ?? e2.palette.action.active, e2.palette.action.selectedOpacity);
|
|
605
600
|
} }, ...a2 }, ...l2, children: s2 });
|
|
606
601
|
}));
|
|
607
|
-
function
|
|
608
|
-
const [t2, o2] = c(() => /* @__PURE__ */ new Map()), { showModal: r2, updateModal: i2, destroyModal: a2, hideModal: l2 } =
|
|
602
|
+
function Bt(e2) {
|
|
603
|
+
const [t2, o2] = c(() => /* @__PURE__ */ new Map()), { showModal: r2, updateModal: i2, destroyModal: a2, hideModal: l2 } = le({ disableAutoDestroy: true });
|
|
609
604
|
return (s2, c2, d2, p2) => new Promise((u2, m2) => {
|
|
610
605
|
const h2 = { ...e2, ...d2, onHide: () => {
|
|
611
606
|
const e3 = t2.get(s2);
|
|
@@ -625,94 +620,99 @@ function Nt(e2) {
|
|
|
625
620
|
o2((e3) => (e3.set(s2, { id: g2.id, element: null }), e3));
|
|
626
621
|
});
|
|
627
622
|
}
|
|
628
|
-
const
|
|
629
|
-
const { defaultPosition: n2 =
|
|
623
|
+
const Lt = { x: 0, y: 0 }, Ft = r(i((t2, o2) => {
|
|
624
|
+
const { defaultPosition: n2 = Lt, PaperComponent: r2 = w, onDragStop: i2, rootSel: d2 = ".MuiModal-root", handleSel: p2 = ".draggable-title", titleSize: m2, rootSize: h2, ...f2 } = t2, x2 = l(null), g2 = a(() => m2 && h2 ? { left: 0, top: 0, right: h2.width - m2.width, bottom: h2.height - m2.height } : null, [m2, h2]), [b2, y2] = c(null), [v2, k2] = c(null), [C2, M2] = c(null);
|
|
630
625
|
return u(() => {
|
|
631
|
-
!b2 && n2 && y2(n2 ??
|
|
626
|
+
!b2 && n2 && y2(n2 ?? Lt);
|
|
632
627
|
}, [n2]), s(() => {
|
|
633
628
|
g2 && b2 && k2({ x: Math.max(0, Math.min(b2.x, g2.right)), y: Math.max(0, Math.min(b2.y, g2.bottom)) });
|
|
634
|
-
}, [b2, g2]), e(
|
|
629
|
+
}, [b2, g2]), e(de, { nodeRef: x2, handle: p2, cancel: '[class*="MuiDialogContent-root"]', position: v2, bounds: g2 ?? ".MuiModal-root", onStop: i2, onStart: (e2, t3) => {
|
|
635
630
|
const o3 = e2;
|
|
636
631
|
M2({ x: (o3.clientX ?? o3.touches?.[0]?.clientX) - t3.x, y: (o3.clientY ?? o3.touches?.[0]?.clientY) - t3.y });
|
|
637
632
|
}, onDrag: (e2, t3) => {
|
|
638
633
|
const o3 = e2, n3 = o3.clientX ?? o3.touches?.[0]?.clientX, r3 = o3.clientY ?? o3.touches?.[0]?.clientY;
|
|
639
634
|
y2({ x: n3 - C2.x, y: r3 - C2.y });
|
|
640
|
-
}, children: e(r2, { ref:
|
|
641
|
-
})),
|
|
642
|
-
const r2 =
|
|
635
|
+
}, children: e(r2, { ref: ne([x2, o2]), ...f2 }) });
|
|
636
|
+
})), At = { x: "50", y: "50" }, Ht = r(i((o2, n2) => {
|
|
637
|
+
const r2 = ee({ props: o2, name: "MuiDialog" }), i2 = Y(), a2 = { enter: 0.66 * i2.transitions.duration.enteringScreen, exit: 0.66 * i2.transitions.duration.leavingScreen }, { title: d2 = "SheetXL", key: p2 = "draggable-window", onCancel: u2, onDone: m2, onShow: x2, onShown: g2, onHide: y2, onClose: k2, open: C2, autoFocusSel: M2, children: S2, transitionDuration: P2 = a2, TransitionProps: R2, slots: D2 = F.EmptyArray, slotProps: O2 = F.EmptyArray, sx: z2, className: I2, onMouseDown: N2, initialPosition: B2 = At, isModal: L2 = false, ...A2 } = r2;
|
|
638
|
+
let H2 = D2.transition ?? E;
|
|
639
|
+
const _2 = D2.backdrop ?? T, j2 = D2.paper ?? w;
|
|
640
|
+
let Q2 = O2.transition;
|
|
641
|
+
R2 && (Q2 = { ...R2, ...Q2 });
|
|
642
|
+
const G2 = O2.backdrop, X2 = O2.paper, J2 = l(null), [Z2, te2] = c(null), [oe2, re2] = c(false), [ae2, le2] = c(false), de2 = l(null), [pe2, ue2] = ie(), me2 = l(null), [he2, fe2] = ie(), xe2 = l(null);
|
|
643
643
|
s(() => {
|
|
644
|
-
|
|
645
|
-
}, [
|
|
646
|
-
const
|
|
647
|
-
u2?.(),
|
|
644
|
+
Z2 && re2(C2);
|
|
645
|
+
}, [C2, Z2]);
|
|
646
|
+
const ge2 = K(() => {
|
|
647
|
+
u2?.(), re2(false);
|
|
648
648
|
}, [u2]);
|
|
649
649
|
s(() => {
|
|
650
|
-
if (0 ===
|
|
651
|
-
const e2 =
|
|
650
|
+
if (0 === ue2.width && 0 === ue2.height || Z2) return;
|
|
651
|
+
const e2 = xe2.current?.getBoundingClientRect(), t2 = ue2.height - e2.height, o3 = ue2.width - e2.width;
|
|
652
652
|
let n3 = 0.5 * o3, r3 = 0.5 * t2;
|
|
653
|
-
"number" == typeof
|
|
654
|
-
}, [
|
|
655
|
-
const [
|
|
656
|
-
if (
|
|
657
|
-
if (
|
|
658
|
-
const t2 =
|
|
653
|
+
"number" == typeof B2?.x ? n3 = B2.x : "string" == typeof B2?.x && (n3 = o3 * (parseFloat(B2.x) / 100)), "number" == typeof B2?.y ? r3 = B2.y : "string" == typeof B2?.y && (r3 = t2 * (parseFloat(B2.y) / 100)), te2({ x: n3, y: r3 });
|
|
654
|
+
}, [ue2, fe2]);
|
|
655
|
+
const [be2, ye2] = c(false), [ve2, ke2] = c(null), [we2, Ce2] = c(null), Me2 = K((e2) => {
|
|
656
|
+
if (ve2) return ve2.focus(e2), true;
|
|
657
|
+
if (M2) {
|
|
658
|
+
const t2 = me2.current?.querySelectorAll?.(M2);
|
|
659
659
|
if (t2 && t2.length > 0) return t2[0]?.focus?.(e2), true;
|
|
660
660
|
}
|
|
661
|
-
return
|
|
662
|
-
}, [
|
|
663
|
-
|
|
664
|
-
} }), []),
|
|
665
|
-
m2?.(null),
|
|
661
|
+
return me2.current?.focus?.(e2), false;
|
|
662
|
+
}, [ve2, M2]), Se2 = U(n2, () => ({ focus: (e2) => {
|
|
663
|
+
Me2(e2);
|
|
664
|
+
} }), []), Pe2 = { ...Q2, onExited: (e2) => {
|
|
665
|
+
m2?.(null), Q2?.onExited?.(e2);
|
|
666
666
|
}, onExit: (e2) => {
|
|
667
|
-
const t2 =
|
|
667
|
+
const t2 = we2;
|
|
668
668
|
t2 && requestAnimationFrame(() => {
|
|
669
|
-
|
|
670
|
-
}), y2?.(),
|
|
669
|
+
Se2.current?.contains(document.activeElement) && t2.focus();
|
|
670
|
+
}), y2?.(), le2(false), Q2?.onExit?.(e2);
|
|
671
671
|
}, onEntered: (e2, t2) => {
|
|
672
|
-
x2?.(),
|
|
672
|
+
x2?.(), Q2?.onEntered?.(e2, t2);
|
|
673
673
|
}, onEntering: (e2, t2) => {
|
|
674
|
-
|
|
674
|
+
le2(true), g2?.(Se2.current);
|
|
675
675
|
} };
|
|
676
676
|
s(() => {
|
|
677
|
-
|
|
678
|
-
}, [
|
|
679
|
-
let
|
|
680
|
-
e2.which ===
|
|
681
|
-
}, children: t(
|
|
682
|
-
|
|
683
|
-
}, onPointerUp:
|
|
684
|
-
|
|
685
|
-
|
|
677
|
+
ae2 && Me2();
|
|
678
|
+
}, [ae2]);
|
|
679
|
+
let Re2 = e(ce, { focusTrapOptions: { escapeDeactivates: false, allowOutsideClick: true, initialFocus: false }, ref: J2, active: ae2, children: e(H2, { in: oe2, timeout: P2, role: "presentation", ...Pe2, children: e(v, { className: "MuiDialog-container", ref: me2, tabIndex: 0, sx: { outline: "none", position: "relative" }, onKeyDown: (e2) => {
|
|
680
|
+
e2.which === q.Escape && (ge2(), de2.current?.start(e2, { center: false }), setTimeout(() => de2.current?.stop(e2), 180)), e2.stopPropagation();
|
|
681
|
+
}, children: t(Ft, { ref: ne([xe2, n2]), className: h({ "Mui-focusVisible": be2 }, I2, "draggable"), sx: { "& *": (e2) => Ge(e2), pointerEvents: "auto", userSelect: "none", "&:hover:not([disabled]):not(.Mui-focusVisible)": { outline: (e2) => `solid ${f(e2.palette.text?.primary, 0.2)} 1px` }, "&.Mui-focusVisible": { outline: (e2) => `solid ${f(e2.palette.text?.primary, 0.2)} 1px` }, position: "absolute", maxWidth: "100%", ...z2 }, defaultPosition: Z2, titleSize: fe2, rootSize: ue2, PaperComponent: j2, ...A2, ...X2, children: [d2 ? e($, { className: h({ "Mui-selected": be2 }, "draggable-title"), sx: { cursor: "move", display: "flex", color: (e2) => e2.palette.text.secondary, boxSizing: "border-box", padding: "0 0", transitionProperty: "opacity", transitionDuration: (e2) => `${e2.transitions.duration.shortest}ms`, opacity: 0.7, "&.Mui-selected": { opacity: 1, transitionDuration: (e2) => e2.transitions.duration.shortest / 2 + "ms" }, backgroundColor: (e2) => f(e2.palette.action.hover, 0.03) }, ref: he2, children: t(v, { sx: { display: "flex", flex: "1 1 10%", flexDirection: "row", alignItems: "center", marginTop: (e2) => e2.spacing(1), marginLeft: (e2) => e2.spacing(1), marginRight: (e2) => e2.spacing(1) }, children: [e(v, { sx: { flex: "1 1 100%", paddingLeft: (e2) => e2.spacing(1) }, children: d2 }), e(kt, { label: "Close", children: e(b, { "aria-label": "close", sx: { color: (e2) => e2.palette.text.icon ?? e2.palette.action.active }, touchRippleRef: de2, onPointerDown: (e2) => {
|
|
682
|
+
de2.current?.start(e2, { center: false }), e2.stopPropagation(), e2.preventDefault();
|
|
683
|
+
}, onPointerUp: ge2, children: e(W, { iconKey: "Close" }) }) })] }) }) : null, S2] }) }) }) }), De2 = null;
|
|
684
|
+
L2 && (De2 = e(_2, { ...G2, open: oe2, onMouseDown: (e2) => {
|
|
685
|
+
ge2(), G2?.onMouseDown?.(e2);
|
|
686
686
|
}, onClick: (e2) => {
|
|
687
|
-
|
|
688
|
-
}, sx: { pointerEvents: "auto", ...
|
|
689
|
-
const { getPortalContainer:
|
|
690
|
-
return
|
|
691
|
-
|
|
687
|
+
k2?.(e2, "backdropClick"), G2?.onClick?.(e2);
|
|
688
|
+
}, sx: { pointerEvents: "auto", ...G2?.sx } }));
|
|
689
|
+
const { getPortalContainer: Ee2 } = V();
|
|
690
|
+
return se(t(v, { className: "MuiModal-root", sx: { position: "fixed", zIndex: "1300", right: "0", bottom: "0", top: "0", left: "0", outline: "0", display: "block", pointerEvents: "none" }, ref: ne([Se2, pe2]), onPointerDown: (e2) => {
|
|
691
|
+
be2 && (e2.target === me2.current || e2.target.tabIndex < 0) && me2.current?.contains(document.activeElement);
|
|
692
692
|
}, onContextMenu: (e2) => {
|
|
693
693
|
e2.isPropagationStopped() || e2.preventDefault();
|
|
694
694
|
}, onFocus: (e2) => {
|
|
695
|
-
!
|
|
696
|
-
|
|
697
|
-
}, 100),
|
|
695
|
+
!be2 && (e2.target === me2.current || e2.target.tabIndex < 0) && setTimeout(() => {
|
|
696
|
+
Me2();
|
|
697
|
+
}, 100), J2.current?.focusTrap?.unpause(), ye2(true), me2.current?.contains(e2.target) && e2.target !== me2.current && ke2(e2.target), e2.relatedTarget && !we2 && Ce2(e2.relatedTarget);
|
|
698
698
|
}, onBlur: (e2) => {
|
|
699
|
-
|
|
700
|
-
}, children: [
|
|
701
|
-
})),
|
|
702
|
-
const { description: r2, icon: i2, onCancel: s2, onOption: c2, onDone: d2, onValidateOption: p2, createOptionsButton: u2, options: m2 =
|
|
699
|
+
Se2?.current?.contains(e2.relatedTarget) || (Ce2(null), J2.current?.focusTrap?.pause(), ye2(false));
|
|
700
|
+
}, children: [De2, Re2] }), Ee2(), p2 + "");
|
|
701
|
+
})), Wt = ["Ok", "Cancel"], Kt = r(i((o2, n2) => {
|
|
702
|
+
const { description: r2, icon: i2, onCancel: s2, onOption: c2, onDone: d2, onValidateOption: p2, createOptionsButton: u2, options: m2 = Wt, autoFocusSel: h2 = ".defaultOption", defaultOption: x2 = m2[0], cancelOption: g2 = "Cancel", children: b2, ...y2 } = o2, w2 = ue({ shouldUseNativeValidation: false }), { handleSubmit: C2, formState: M2 } = w2, S2 = l(null), P2 = l(null), R2 = l(null), D2 = K(async (e2) => {
|
|
703
703
|
let t2;
|
|
704
704
|
try {
|
|
705
705
|
if (t2 = await Promise.resolve(p2?.(e2)) ?? true, true !== t2) return;
|
|
706
706
|
await Promise.resolve(c2?.(e2, e2 === g2, e2 === x2)), d2?.(e2);
|
|
707
707
|
} catch (e3) {
|
|
708
708
|
}
|
|
709
|
-
}, [c2, d2, p2, g2, x2]), E2 =
|
|
709
|
+
}, [c2, d2, p2, g2, x2]), E2 = K((e2, t2) => {
|
|
710
710
|
setTimeout(() => {
|
|
711
711
|
D2(x2);
|
|
712
712
|
}, 180);
|
|
713
|
-
}, [D2]), T2 =
|
|
713
|
+
}, [D2]), T2 = K(() => {
|
|
714
714
|
c2?.(g2, true, false), s2?.(), d2?.(null);
|
|
715
|
-
}, [c2, g2, s2, d2]), $2 = M2 && (Object.keys(M2.errors).length > 0 || M2.disabled || M2.isSubmitted), N2 =
|
|
715
|
+
}, [c2, g2, s2, d2]), $2 = M2 && (Object.keys(M2.errors).length > 0 || M2.disabled || M2.isSubmitted), N2 = K((t2, o3) => {
|
|
716
716
|
const n3 = t2 === g2, r3 = { className: o3 ? "defaultOption" : "action", type: o3 ? "submit" : "button", style: { minWidth: "75px" }, onClick: () => {
|
|
717
717
|
n3 ? T2() : o3 || D2(t2);
|
|
718
718
|
} };
|
|
@@ -733,35 +733,35 @@ const Bt = { x: 0, y: 0 }, Lt = r(i((t2, o2) => {
|
|
|
733
733
|
}
|
|
734
734
|
return e2;
|
|
735
735
|
}, [m2, x2, M2]);
|
|
736
|
-
return e(
|
|
736
|
+
return e(Ht, { onCancel: T2, initialPosition: { y: "touch" === pe ? "15" : "35" }, onDone: d2, autoFocusSel: h2, isModal: true, ref: n2, ...y2, children: e(me, { ...w2, children: t("form", { ref: R2, onSubmit: C2(E2), children: [e(z, { dividers: true, onKeyDown: (e2) => {
|
|
737
737
|
if (e2.isDefaultPrevented()) return;
|
|
738
738
|
e2.stopPropagation();
|
|
739
739
|
let t2 = null, o3 = null;
|
|
740
|
-
const n3 = e2.which ===
|
|
740
|
+
const n3 = e2.which === q.Escape && g2;
|
|
741
741
|
if (n3) t2 = g2, o3 = P2;
|
|
742
742
|
else {
|
|
743
743
|
if ($2) return;
|
|
744
|
-
e2.which ===
|
|
744
|
+
e2.which === q.Enter && (t2 = x2 ?? m2[0], o3 = S2);
|
|
745
745
|
}
|
|
746
746
|
t2 && (o3.current?.start(e2, { center: false }), setTimeout(() => {
|
|
747
747
|
o3.current?.stop(e2), n3 && D2(t2);
|
|
748
748
|
}, 180));
|
|
749
749
|
}, children: t(v, { sx: { display: "flex", flexDirection: "column", whiteSpace: "pre-wrap", rowGap: (e2) => e2.spacing(i2 || r2 ? 1.5 : 0) }, children: [t(v, { sx: { display: "flex", flexDirection: "column" }, children: [i2, e(k, { children: r2 })] }), b2] }) }), e(I, { sx: { paddingTop: (e2) => e2.spacing(1), paddingBottom: (e2) => e2.spacing(1), paddingLeft: (e2) => e2.spacing(1), paddingRight: (e2) => e2.spacing(1), backgroundColor: (e2) => f(e2.palette.action.hover, 0.03) }, children: B2 })] }) }) });
|
|
750
|
-
})),
|
|
751
|
-
const { showModal: t2 } =
|
|
750
|
+
})), Vt = Object.freeze(Object.defineProperty({ __proto__: null, OptionsDialog: Kt, default: Kt }, Symbol.toStringTag, { value: "Module" })), qt = n.lazy(() => Promise.resolve().then(() => Vt)), _t = (e2) => {
|
|
751
|
+
const { showModal: t2 } = le();
|
|
752
752
|
return (o2) => new Promise((n2) => {
|
|
753
|
-
const r2 = t2(
|
|
753
|
+
const r2 = t2(qt, { ...e2, ...o2, onOption(e3) {
|
|
754
754
|
o2?.onOption?.(e3, e3 === o2.cancelOption, e3 === o2.defaultOption), n2(e3);
|
|
755
755
|
}, onDone: () => {
|
|
756
756
|
o2?.onDone?.(), r2.hide();
|
|
757
757
|
} });
|
|
758
758
|
});
|
|
759
|
-
},
|
|
760
|
-
const { showModal: t2 } =
|
|
759
|
+
}, jt = n.lazy(() => import("./DHvOYCVK5KUCv0Ud.mjs")), Ut = (e2) => {
|
|
760
|
+
const { showModal: t2 } = le();
|
|
761
761
|
return (o2) => {
|
|
762
762
|
const { defaultOption: n2 = o2.options?.[0], cancelOption: r2 = "Cancel", ...i2 } = o2;
|
|
763
763
|
return new Promise((o3) => {
|
|
764
|
-
const a2 = t2(
|
|
764
|
+
const a2 = t2(jt, { ...e2, defaultOption: n2, cancelOption: r2, onOption(e3) {
|
|
765
765
|
i2?.onOption?.(e3, e3 === r2, e3 === n2), o3({ input: "", option: e3 });
|
|
766
766
|
}, onInputOption(e3, t3) {
|
|
767
767
|
i2?.onInputOption?.(e3, t3), o3({ input: e3, option: t3 });
|
|
@@ -770,39 +770,41 @@ const Bt = { x: 0, y: 0 }, Lt = r(i((t2, o2) => {
|
|
|
770
770
|
} });
|
|
771
771
|
});
|
|
772
772
|
};
|
|
773
|
-
},
|
|
773
|
+
}, Qt = r(i((t2, o2) => {
|
|
774
774
|
const { command: n2, disabled: r2 = false, shortcut: i2, children: a2, ...l2 } = t2;
|
|
775
|
-
return
|
|
776
|
-
})),
|
|
777
|
-
const { command: n2, commandHook: r2, scope: i2, context: s2, icon: c2, label: d2, disabled: u2 = false, variant: m2 =
|
|
775
|
+
return Q(n2), e(kt, { ref: o2, label: void 0 !== r2 ? n2?.label() : "", shortcut: void 0 !== i2 ? i2 : Array.isArray(n2?.shortcut()) ? n2?.shortcut()[0] : n2?.shortcut(), description: n2?.description(), disabled: r2, chips: n2?.tags(), componentDisabled: n2?.disabled(), ...l2, children: e("div", { style: { display: "flex", flex: "1 1 0%" }, children: a2 }) });
|
|
776
|
+
})), Gt = e(W, {}), Xt = r(i((t2, o2) => {
|
|
777
|
+
const { command: n2, commandHook: r2, scope: i2, context: s2, icon: c2, label: d2, disabled: u2 = false, variant: m2 = G.Toolbar, shortcut: h2, commandState: f2, tooltipProps: x2, ...g2 } = t2, b2 = l(null), y2 = l(false), v2 = a(() => {
|
|
778
778
|
const e2 = { onExecute(e3, t3) {
|
|
779
779
|
r2?.onExecute?.(e3, t3), y2.current || (b2.current?.start({ center: false }), setTimeout(() => b2.current?.stop({}), 180)), y2.current = false;
|
|
780
780
|
}, onError(e3, t3, o3) {
|
|
781
781
|
r2?.onError(e3, t3, o3);
|
|
782
782
|
} };
|
|
783
783
|
return r2?.beforeExecute && (e2.beforeExecute = r2.beforeExecute), e2;
|
|
784
|
-
}, [r2]), k2 =
|
|
784
|
+
}, [r2]), k2 = Q(n2, v2), w2 = p((e2) => {
|
|
785
785
|
0 === e2.button && e2.preventDefault();
|
|
786
786
|
}, []), C2 = p((e2) => {
|
|
787
787
|
0 === e2.button && n2?.execute(f2, r2);
|
|
788
788
|
}, [k2, r2, f2]), M2 = p((e2) => {
|
|
789
|
-
e2.keyCode !==
|
|
789
|
+
e2.keyCode !== q.Enter && e2.keyCode !== q.Space || n2?.execute(f2, r2);
|
|
790
790
|
}, [k2, r2, f2]), S2 = a(() => {
|
|
791
791
|
if (c2) return "function" == typeof c2 ? c2(n2) : c2;
|
|
792
792
|
let t3 = n2?.icon(s2);
|
|
793
|
-
return t3 ? ("string" == typeof t3 && (t3 = e(
|
|
794
|
-
}, [k2, c2]), P2 = a(() => ({ tabIndex: 0, ref: o2, selected: n2?.state(), icon: m2 ===
|
|
793
|
+
return t3 ? ("string" == typeof t3 && (t3 = e(W, { iconKey: t3 })), t3) : m2 === G.Toolbar || n2?.state() ? void 0 : Gt;
|
|
794
|
+
}, [k2, c2]), P2 = a(() => ({ tabIndex: 0, ref: o2, selected: n2?.state(), icon: m2 === G.Toolbar ? S2 : e(Nt, { selected: n2?.state() ?? false, children: S2 }), touchRippleRef: b2, disabled: u2 || !n2 || n2.disabled(), onMouseDown: w2, onMouseUp: C2, onKeyDown: M2 }), [k2, r2, u2, S2]);
|
|
795
795
|
let R2;
|
|
796
|
-
return R2 = m2 ===
|
|
797
|
-
}))
|
|
798
|
-
|
|
796
|
+
return R2 = m2 === G.Menuitem ? e(Rt, { ...g2, chips: n2?.tags(), ...P2, children: d2 ?? n2?.label(i2, s2) }) : e(Mt, { ...g2, ...P2 }), d2 || n2?.label() ? ((n2.disabled() || u2) && (R2 = e("div", { children: R2 })), R2 = e(Qt, { command: n2, placement: m2 === G.Toolbar ? "bottom-start" : "right-start", shortcut: h2, ...x2, children: R2 }), R2) : R2;
|
|
797
|
+
}));
|
|
798
|
+
Xt.displayName = "CommandButton";
|
|
799
|
+
const Yt = e(W, {}), Jt = r(i((o2, n2) => {
|
|
800
|
+
const { command: r2, scope: i2, icon: d2 = Yt, label: p2, variant: u2 = G.Toolbar, disabled: m2 = false, commandHook: h2, ...f2 } = o2, x2 = l(null), g2 = l(false), y2 = a(() => {
|
|
799
801
|
const e2 = { onExecute(e3, t2) {
|
|
800
802
|
h2?.onExecute?.(e3, t2), g2.current || (x2.current?.start({ center: false }), setTimeout(() => x2.current?.stop({}), 180)), g2.current = false;
|
|
801
803
|
}, onError(e3, t2, o3) {
|
|
802
804
|
h2?.onError(e3, t2, o3);
|
|
803
805
|
} };
|
|
804
806
|
return h2?.beforeExecute && (e2.beforeExecute = h2.beforeExecute), e2;
|
|
805
|
-
}, [h2]), v2 =
|
|
807
|
+
}, [h2]), v2 = Q(r2, y2), k2 = () => r2?.state()?.toString() || "0", [w2, C2] = c(k2), M2 = K(() => {
|
|
806
808
|
const e2 = parseFloat(w2);
|
|
807
809
|
isNaN(e2) ? C2(k2()) : parseFloat(k2()) !== e2 && r2.execute(e2, h2);
|
|
808
810
|
}, [k2, r2, w2, h2]);
|
|
@@ -811,7 +813,7 @@ const Bt = { x: 0, y: 0 }, Lt = r(i((t2, o2) => {
|
|
|
811
813
|
}, [r2?.state()]);
|
|
812
814
|
const S2 = a(() => {
|
|
813
815
|
let t2 = "function" == typeof d2 ? d2(r2) : d2;
|
|
814
|
-
return t2 && (t2 = r2?.icon()), "string" == typeof t2 && (t2 = e(
|
|
816
|
+
return t2 && (t2 = r2?.icon()), "string" == typeof t2 && (t2 = e(W, { iconKey: t2 })), t2;
|
|
815
817
|
}, [v2, d2, r2?.icon]), P2 = a(() => void 0 === p2 ? r2?.label(i2) : "function" == typeof p2 ? p2() : p2, [v2]), R2 = a(() => e(b, { ...f2, sx: { paddingTop: "0px", paddingBottom: "0px" }, component: "div", disableRipple: true, onClick: (e2) => e2.stopPropagation(), onMouseDown: (e2) => {
|
|
816
818
|
0 === e2.button && e2.stopPropagation();
|
|
817
819
|
}, onMouseUp: (e2) => {
|
|
@@ -819,14 +821,14 @@ const Bt = { x: 0, y: 0 }, Lt = r(i((t2, o2) => {
|
|
|
819
821
|
}, children: e(N, { inputMode: "numeric", disabled: m2 || !r2 || r2.disabled(), inputProps: { tabIndex: 0, name: `input-${r2.key()}`, autoComplete: "off", type: "number", maxLength: 4 }, sx: { paddingTop: "0px", paddingBottom: "0px", paddingLeft: "0px", paddingRight: "0px", fontSize: (e2) => `${Math.round(e2.typography.fontSize)}px`, width: (e2) => "3.2em", input: { padding: "0 0", textAlign: "center", MozAppearance: "textfield" }, "input::-webkit-inner-spin-button": { WebkitAppearance: "none", margin: "0" }, minHeight: "24px" }, value: w2, onFocus: (e2) => {
|
|
820
822
|
e2.target?.select();
|
|
821
823
|
}, onKeyDown: (e2) => {
|
|
822
|
-
if (e2.which ===
|
|
823
|
-
else if (e2.which ===
|
|
824
|
+
if (e2.which === q.Enter) k2() !== w2 && (e2.stopPropagation(), e2.preventDefault(), M2());
|
|
825
|
+
else if (e2.which === q.Escape) k2() !== w2 && (C2(k2()), setTimeout(() => {
|
|
824
826
|
e2.target?.select();
|
|
825
827
|
}, 0), e2.stopPropagation(), e2.preventDefault());
|
|
826
828
|
else {
|
|
827
829
|
if (e2.key.match("[-]")) return e2.stopPropagation(), void e2.preventDefault();
|
|
828
830
|
if (e2.key.match("[0-9.]") && (w2 + e2.key).length > 4) return e2.stopPropagation(), void e2.preventDefault();
|
|
829
|
-
if (e2.which ===
|
|
831
|
+
if (e2.which === q.Space) return void e2.preventDefault();
|
|
830
832
|
}
|
|
831
833
|
}, onBlur: () => {
|
|
832
834
|
M2();
|
|
@@ -838,35 +840,35 @@ const Bt = { x: 0, y: 0 }, Lt = r(i((t2, o2) => {
|
|
|
838
840
|
}, onMouseUp: (e2) => {
|
|
839
841
|
0 !== e2.button || e2.isPropagationStopped() || e2.isDefaultPrevented() || e2.isDefaultPrevented() || (e2.preventDefault(), r2?.execute(!r2?.state?.(), y2));
|
|
840
842
|
}, onKeyDown: (e2) => {
|
|
841
|
-
e2.keyCode !==
|
|
843
|
+
e2.keyCode !== q.Enter && e2.keyCode !== q.Space || r2?.execute(!r2?.state?.(), y2);
|
|
842
844
|
} };
|
|
843
845
|
let E2;
|
|
844
|
-
return E2 = u2 ===
|
|
845
|
-
})),
|
|
846
|
-
const { variant: n2 =
|
|
846
|
+
return E2 = u2 === G.Menuitem ? t(Rt, { ...f2, chips: r2?.tags(), ...D2, children: [P2, R2] }) : e(Mt, { ...f2, ...D2 }), r2?.label() ? ((r2.disabled() || m2) && (E2 = e("div", { children: E2 })), E2 = e(Qt, { command: r2, placement: u2 === G.Toolbar ? "bottom-start" : "right-start", children: E2 }), E2) : E2;
|
|
847
|
+
})), Zt = r(i((t2, o2) => {
|
|
848
|
+
const { variant: n2 = G.Toolbar, quickCommand: r2, onQuickClick: i2, commands: s2, commandState: c2, commandHook: d2, disabled: p2, label: u2, icon: m2, createPopupPanel: h2, tooltip: f2, selected: x2, scope: g2, ...b2 } = t2, y2 = l(null), v2 = l(false), k2 = a(() => {
|
|
847
849
|
const e2 = { onExecute(e3, t3) {
|
|
848
850
|
d2?.onExecute?.(e3, t3), v2.current || (y2.current?.start({ center: false }), setTimeout(() => y2.current?.stop({}), 180)), v2.current = false;
|
|
849
851
|
}, onError(e3, t3, o3) {
|
|
850
852
|
d2?.onError(e3, t3, o3);
|
|
851
853
|
} };
|
|
852
854
|
return d2?.beforeExecute && (e2.beforeExecute = d2.beforeExecute), e2;
|
|
853
|
-
}, [d2]), w2 =
|
|
855
|
+
}, [d2]), w2 = X(s2, [r2], null, [r2]), C2 = w2[0], { label: M2, icon: S2 } = a(() => {
|
|
854
856
|
let t3 = null;
|
|
855
857
|
u2 && (t3 = "function" == typeof u2 ? u2(C2) : u2), t3 || (t3 = C2?.label?.(g2));
|
|
856
858
|
let o3 = m2;
|
|
857
|
-
return o3 || (o3 = C2?.icon?.()), "string" == typeof o3 ? o3 = e(
|
|
859
|
+
return o3 || (o3 = C2?.icon?.()), "string" == typeof o3 ? o3 = e(W, { iconKey: o3 }) : "function" == typeof o3 && (o3 = o3(C2)), { label: t3, icon: o3 };
|
|
858
860
|
}, [w2, u2, m2]), P2 = { disabled: p2, scope: g2, touchRippleRef: y2, onQuickClick: i2, tooltip: f2, label: M2, icon: S2 };
|
|
859
|
-
(M2 || f2) && (P2.createTooltip = ({ children: t3 }, o3) => e(
|
|
860
|
-
const R2 =
|
|
861
|
-
return C2 ? (P2.quickButtonProps = {}, P2.quickButtonProps.createTooltip = ({ children: t3, placement: o3 }, r3) => e(
|
|
862
|
-
}), P2.selected = x2 ?? C2?.state(), P2.createPopupPanel = R2, n2 ===
|
|
861
|
+
(M2 || f2) && (P2.createTooltip = ({ children: t3 }, o3) => e(kt, { label: M2, description: f2, disabled: o3, children: t3 }));
|
|
862
|
+
const R2 = K((e2) => h2?.(e2, s2), [h2, w2]), D2 = K((e2) => C2?.execute(c2, k2), [C2]);
|
|
863
|
+
return C2 ? (P2.quickButtonProps = {}, P2.quickButtonProps.createTooltip = ({ children: t3, placement: o3 }, r3) => e(Qt, { command: C2, placement: o3 ?? n2 === G.Toolbar ? "bottom-start" : "right-start", disabled: r3, children: t3 }), P2.disabled = P2.disabled ?? C2?.disabled(), i2 || (P2.onQuickClick = D2)) : r2 && (P2.onQuickClick = () => {
|
|
864
|
+
}), P2.selected = x2 ?? C2?.state(), P2.createPopupPanel = R2, n2 === G.Toolbar ? e(Et, { ...b2, ...P2, ref: o2 }) : e($t, { ...b2, ...P2, ref: o2 });
|
|
863
865
|
}));
|
|
864
|
-
|
|
865
|
-
const
|
|
866
|
-
const { command: n2, label: r2, scope: i2, icon: a2 =
|
|
866
|
+
Zt.displayName = "CommandPopupButton";
|
|
867
|
+
const eo = e(W, { iconKey: "Check" }), to = (o2) => {
|
|
868
|
+
const { command: n2, label: r2, scope: i2, icon: a2 = eo, sx: l2, ...s2 } = o2;
|
|
867
869
|
return t(v, { sx: { display: "flex", flexDirection: "row", textTransform: "none", alignItems: "center", fontSize: (e2) => e2.typography.subtitle2.fontSize, ...l2 }, ...s2, children: [a2, e(k, { component: "div", sx: { whiteSpace: "nowrap", lineHeight: "1", paddingLeft: (e2) => e2.spacing(0.25), paddingRight: (e2) => e2.spacing(0.25), fontSize: "inherit" }, children: n2?.label(i2) || r2 })] });
|
|
868
|
-
},
|
|
869
|
-
const { sx: n2, commands: r2, commandButtonProps: i2, parentFloat: l2, createToolbarPalette: s2, children: d2, ...u2 } = t2, h2 =
|
|
870
|
+
}, oo = r(i((t2, o2) => {
|
|
871
|
+
const { sx: n2, commands: r2, commandButtonProps: i2, parentFloat: l2, createToolbarPalette: s2, children: d2, ...u2 } = t2, h2 = U(o2, () => ({}), []), [f2, x2] = c(null), { reference: g2 } = mt({ label: "toolbar", anchor: h2.current, parentFloat: l2, createPopupPanel: null }), b2 = p(() => {
|
|
870
872
|
const e2 = f2;
|
|
871
873
|
e2 && requestAnimationFrame(() => {
|
|
872
874
|
h2.current?.contains(document.activeElement) && e2.focus();
|
|
@@ -882,7 +884,7 @@ const Zt = e(H, { iconKey: "Check" }), eo = (o2) => {
|
|
|
882
884
|
e2?.onError?.(t4, o3, n3);
|
|
883
885
|
} }, ...t3 };
|
|
884
886
|
}, [g2, i2]), k2 = a(() => ({ ...y2, ...v2 }), [y2, v2]), [w2, C2] = m((e2) => e2 + 1, 0);
|
|
885
|
-
|
|
887
|
+
X(r2, [], { onChange: () => {
|
|
886
888
|
C2();
|
|
887
889
|
} });
|
|
888
890
|
const M2 = a(() => ({ commands: r2, parentFloat: g2, ...v2 }), [w2, k2, g2, i2]);
|
|
@@ -896,89 +898,89 @@ const Zt = e(H, { iconKey: "Check" }), eo = (o2) => {
|
|
|
896
898
|
}, onBlur: (e2) => {
|
|
897
899
|
f2 && !h2?.current?.contains(e2.relatedTarget) && x2(null);
|
|
898
900
|
}, onKeyDown: (e2) => {
|
|
899
|
-
f2 && e2.which ===
|
|
901
|
+
f2 && e2.which === q.Escape && f2.focus();
|
|
900
902
|
}, ...u2, children: e("div", { ref: h2, style: { flex: "1 1 100%", display: "flex", flexWrap: "wrap", rowGap: `${P2}px`, columnGap: `${S2}px`, alignItems: "center", maxWidth: "100%" }, children: R2 }) });
|
|
901
903
|
}));
|
|
902
|
-
|
|
903
|
-
const
|
|
904
|
+
oo.displayName = "CommandToolbar";
|
|
905
|
+
const no = (t2) => {
|
|
904
906
|
const { key: o2, ...n2 } = t2;
|
|
905
|
-
return e(
|
|
906
|
-
},
|
|
907
|
-
const { popupCommandKeys: n2, renderCommandButton: r2 =
|
|
908
|
-
const i3 = { variant:
|
|
907
|
+
return e(Xt, { ...n2 }, o2);
|
|
908
|
+
}, ro = r(i((t2, o2) => {
|
|
909
|
+
const { popupCommandKeys: n2, renderCommandButton: r2 = no, scope: i2, commands: a2, quickCommand: l2, popupScope: s2 = l2, commandState: c2, commandHook: d2, disabled: u2 = false, ...m2 } = t2, h2 = X(a2, n2 ? [l2, ...n2] : [l2]), f2 = p((t3, o3) => {
|
|
910
|
+
const i3 = { variant: G.Menuitem, commandHook: d2, commandState: c2, scope: s2, disabled: u2 }, a3 = [];
|
|
909
911
|
for (let t4 = 0; t4 < n2?.length; t4++) {
|
|
910
912
|
const l3 = n2[t4];
|
|
911
913
|
if (null === l3 || "-" === l3) {
|
|
912
|
-
a3.push(e(
|
|
914
|
+
a3.push(e(be, { orientation: "horizontal" }, `element-${a3.length}`));
|
|
913
915
|
continue;
|
|
914
916
|
}
|
|
915
917
|
const s3 = o3.getCommand(l3), c3 = { key: `${l3}-${a3.length}`, command: s3, ...i3 }, d3 = r2(c3);
|
|
916
918
|
d3 && a3.push(d3);
|
|
917
919
|
}
|
|
918
|
-
return
|
|
920
|
+
return nt({ ...t3, children: a3 });
|
|
919
921
|
}, [u2, d2, c2, s2, n2, r2]);
|
|
920
|
-
return n2 ? e(
|
|
922
|
+
return n2 ? e(Zt, { ref: o2, commands: a2, disabled: u2, commandHook: d2, commandState: c2, scope: i2, quickCommand: l2, createPopupPanel: f2, ...m2 }) : r2({ ref: o2, disabled: u2, commandHook: d2, commandState: c2, scope: i2, command: h2[0], ...m2 });
|
|
921
923
|
}));
|
|
922
924
|
export {
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
925
|
+
Ce as AnimatedBouncingEllipsisIcon,
|
|
926
|
+
ke as AnimatedCircleIcon,
|
|
927
|
+
ve as AnimatedClockIcon,
|
|
928
|
+
we as AnimatedFadingEllipsisIcon,
|
|
929
|
+
Me as AnimatedOrbitIcon,
|
|
930
|
+
Se as AnimatedTraversingEllipsisIcon,
|
|
931
|
+
He as ArrowDownIcon,
|
|
932
|
+
We as ArrowRightIcon,
|
|
933
|
+
Ie as ChipStrip,
|
|
934
|
+
tt as ClosingReason,
|
|
935
|
+
Xt as CommandButton,
|
|
936
|
+
Zt as CommandPopupButton,
|
|
937
|
+
oo as CommandToolbar,
|
|
938
|
+
Qt as CommandTooltip,
|
|
939
|
+
xt as ContextMenu,
|
|
940
|
+
ze as ErrorPanel,
|
|
941
|
+
be as ExhibitDivider,
|
|
942
|
+
it as ExhibitFloatPanel,
|
|
943
|
+
Mt as ExhibitIconButton,
|
|
944
|
+
Dt as ExhibitMenuHeader,
|
|
945
|
+
Rt as ExhibitMenuItem,
|
|
946
|
+
Ot as ExhibitOptionButton,
|
|
947
|
+
Le as ExhibitPopper,
|
|
948
|
+
Et as ExhibitPopupIconButton,
|
|
949
|
+
$t as ExhibitPopupMenuItem,
|
|
950
|
+
kt as ExhibitTooltip,
|
|
951
|
+
Jt as InputCommandButton,
|
|
952
|
+
Ht as InternalWindow,
|
|
953
|
+
to as LabelIcon,
|
|
954
|
+
Re as LoadingPanel,
|
|
953
955
|
default2 as ModalProvider,
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
956
|
+
ht as NestingPopupButton,
|
|
957
|
+
Kt as OptionsDialog,
|
|
958
|
+
et as PopupAutoFocus,
|
|
959
|
+
ot as PopupButtonType,
|
|
960
|
+
Nt as SelectedIcon,
|
|
961
|
+
ro as SimpleCommandPopupButton,
|
|
962
|
+
gt as SimpleTooltip,
|
|
963
|
+
$e as StackTrace,
|
|
964
|
+
Xe as ThemeMode,
|
|
965
|
+
Ke as ThemedIcon,
|
|
966
|
+
rt as createDownArrow,
|
|
967
|
+
Qe as createExhibitTheme,
|
|
968
|
+
fe as createScrollButton,
|
|
969
|
+
he as createScrollEdgeButton,
|
|
970
|
+
ge as createScrollEndButton,
|
|
971
|
+
xe as createScrollStartButton,
|
|
972
|
+
Ae as createStrokeShadowFilter,
|
|
973
|
+
nt as defaultCreatePopupPanel,
|
|
974
|
+
je as elevateColor,
|
|
975
|
+
_e as hexToRGB,
|
|
976
|
+
Ue as overlayAlpha,
|
|
977
|
+
Ge as scrollbarTheming,
|
|
978
|
+
Fe as strokeShadowFilter,
|
|
979
|
+
vt as toShortcutElements,
|
|
980
|
+
mt as useFloatStack,
|
|
981
|
+
Ut as useInputDialog,
|
|
982
|
+
Bt as useLazyWindow,
|
|
983
|
+
_t as useOptionsDialog,
|
|
984
|
+
Ye as useResolvedThemeMode,
|
|
985
|
+
Oe as wrapErrorAsComponent
|
|
984
986
|
};
|