@sheetxl/utils-mui 0.7.8 → 0.7.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cjs/{r9NfOw9U7QUJ3sMk.cjs → DIUotzYMXRdykNSY.cjs} +2 -2
- package/browser/cjs/DpTJa0u45JAzQWB1.cjs +11 -0
- package/browser/cjs/index.cjs +2 -2
- package/browser/esm/{BdK_nANHPbXOoKy3.mjs → L_Sbw7bpPtGBreqv.mjs} +185 -182
- package/browser/esm/{_ZZgLPCRySUJRlwk.mjs → bIjdCamqibd-xaLk.mjs} +2 -2
- package/browser/esm/index.mjs +29 -28
- package/node/esm/{DHvOYCVK5KUCv0Ud.mjs → OcHIGuYIqbrgUydD.mjs} +1 -1
- package/node/esm/index.mjs +430 -427
- package/package.json +3 -3
- package/types/index.d.ts +40 -1
- package/browser/cjs/BPxl0jVX4EYr2DVy.cjs +0 -11
|
@@ -8,7 +8,7 @@ import { useTheme as dn, styled as ei, createTheme as On, useThemeProps as ti }
|
|
|
8
8
|
import { deepmerge as Pr } from "@mui/utils";
|
|
9
9
|
import Rr, { createPortal as ni } from "react-dom";
|
|
10
10
|
/**
|
|
11
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.
|
|
11
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.10
|
|
12
12
|
*
|
|
13
13
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
14
14
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -26,13 +26,13 @@ function Oe() {
|
|
|
26
26
|
for (var e, r, n = 0, t = "", s = arguments.length; n < s; n++) (e = arguments[n]) && (r = Nr(e)) && (t && (t += " "), t += r);
|
|
27
27
|
return t;
|
|
28
28
|
}
|
|
29
|
-
const
|
|
29
|
+
const rs = (e) => {
|
|
30
30
|
const r = { style: { cursor: "pointer" }, ...e };
|
|
31
31
|
return Jo(r);
|
|
32
32
|
}, Fr = (e, r, n, t) => {
|
|
33
33
|
const { style: s, ...a } = e, o = k(Ze, { component: "div", ...a, style: { ...s, padding: "0px" }, sx: { padding: "0" }, color: e.disabled ? void 0 : "primary", "aria-label": n, size: "small", children: r });
|
|
34
34
|
return k(dt, { title: e.disabled ? n : t, enterDelay: 800, enterNextDelay: 1600, children: e.disabled ? k("div", { style: { display: "flex" }, children: o }) : o });
|
|
35
|
-
},
|
|
35
|
+
}, os = (e) => Fr(e, at.Horizontal ? k(be, { iconKey: "ArrowLeft", size: "small" }) : k(be, { iconKey: "ArrowUpward", size: "small" }), "Scroll " + (e.orientation === at.Horizontal ? "Left" : "Up"), `Scroll ${e.orientation === at.Horizontal ? "left" : "up"}, 'Ctrl+Click' to scroll to the beginning`), is = (e) => Fr(e, at.Horizontal ? k(be, { iconKey: "ArrowRight", size: "small" }) : k(be, { iconKey: "ArrowDownward", size: "small" }), "Scroll " + (e.orientation === at.Horizontal ? "Right" : "Down"), `Scroll ${e.orientation === at.Horizontal ? "right" : "down"}, 'Ctrl+Click' to scroll to the end`), ri = oe(de((e, r) => {
|
|
36
36
|
const { orientation: n = "vertical", sx: t, ...s } = e, a = n === "vertical";
|
|
37
37
|
return k(Er, { ref: r, sx: { marginLeft: a ? "2px" : void 0, marginRight: a ? "2px" : void 0, backgroundColor: "transparent !important", minHeight: a ? "1em" : void 0, minWidth: a ? void 0 : "1em", borderColor: (o) => o.palette.divider, ...t }, orientation: n, variant: "middle", flexItem: !0, ...s });
|
|
38
38
|
}));
|
|
@@ -98,22 +98,22 @@ const En = _r && window.ResizeObserver !== void 0 ? function() {
|
|
|
98
98
|
}, [r]), [n, s];
|
|
99
99
|
} : function() {
|
|
100
100
|
return [oi, Cn];
|
|
101
|
-
}, ii = "_traverse-ellipsis_14l1h_1",
|
|
101
|
+
}, ii = "_traverse-ellipsis_14l1h_1", as = oe((e) => {
|
|
102
102
|
const { sx: r, speed: n = 2, size: t = 70, ...s } = e;
|
|
103
103
|
return k(X, { sx: { width: `${t}px`, height: `${t}px`, zIndex: 1, "& .primary": { stroke: (a) => a.palette.grey[600], fill: "none" }, ...r }, ...s, children: J("svg", { x: "0px", y: "0px", viewBox: "0 0 100 100", children: [k("circle", { className: "primary", strokeWidth: "4", cx: "50", cy: "50", r: "48" }), k("line", { className: "primary", strokeLinecap: "round", strokeWidth: "4", x1: "50", y1: "50", x2: "85", y2: "50.5", children: k("animateTransform", { attributeName: "transform", dur: `${n}s`, type: "rotate", from: "0 50 50", to: "360 50 50", repeatCount: "indefinite" }) }), k("line", { className: "primary", strokeLinecap: "round", strokeWidth: "4", x1: "50", y1: "50", x2: "49.5", y2: "74", children: k("animateTransform", { attributeName: "transform", dur: 7.5 * n + "s", type: "rotate", from: "0 50 50", to: "360 50 50", repeatCount: "indefinite" }) })] }) });
|
|
104
104
|
}), ai = oe((e) => {
|
|
105
105
|
const { sx: r, speed: n = 1.5, size: t = 70, ...s } = e;
|
|
106
106
|
return k(X, { sx: { width: `${t}px`, height: `${t}px`, zIndex: 1, "& .primary": { fill: (a) => a.palette.grey[600] }, "& .secondary": { stroke: (a) => a.palette.grey[600], fill: "none", opacity: 0.5 }, ...r }, ...s, children: J("svg", { x: "0px", y: "0px", viewBox: "0 0 100 100", children: [k("circle", { className: "secondary", strokeWidth: "4", cx: "50", cy: "50", r: "21" }), k("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: k("animateTransform", { attributeName: "transform", type: "rotate", dur: 1 * n + "s", from: "0 50 50", to: "360 50 50", repeatCount: "indefinite" }) })] }) });
|
|
107
|
-
}),
|
|
107
|
+
}), ss = oe((e) => {
|
|
108
108
|
const { sx: r, speed: n = 1, size: t = 70, ...s } = e;
|
|
109
109
|
return k(X, { sx: { width: `${t}px`, height: `${t}px`, zIndex: 1, ...r }, ...s, children: J("svg", { x: "0px", y: "0px", viewBox: "0 0 100 100", children: [k("circle", { className: "primary", cx: "6", cy: "50", r: "6", children: k("animate", { attributeName: "opacity", dur: `${n}s`, values: "0;1;0", repeatCount: "indefinite", begin: "0.1" }) }), k("circle", { className: "primary", cx: "26", cy: "50", r: "6", children: k("animate", { attributeName: "opacity", dur: `${n}s`, values: "0;1;0", repeatCount: "indefinite", begin: "0.2" }) }), k("circle", { className: "primary", cx: "46", cy: "50", r: "6", children: k("animate", { attributeName: "opacity", dur: `${n}s`, values: "0;1;0", repeatCount: "indefinite", begin: "0.3" }) })] }) });
|
|
110
|
-
}),
|
|
110
|
+
}), ls = oe((e) => {
|
|
111
111
|
const { sx: r, speed: n = 1, size: t = 70, ...s } = e;
|
|
112
112
|
return k(X, { sx: { width: `${t}px`, height: `${t}px`, zIndex: 1, "& .primary": { fill: (a) => a.palette.grey[600], stroke: "none" }, ...r }, ...s, children: J("svg", { x: "0px", y: "0px", viewBox: "0 0 100 100", children: [k("circle", { className: "primary", cx: "6", cy: "50", r: "6", children: k("animateTransform", { attributeName: "transform", dur: `${n}s`, type: "translate", values: "0 15 ; 0 -15; 0 15", repeatCount: "indefinite", begin: "0.1" }) }), k("circle", { className: "primary", cx: "30", cy: "50", r: "6", children: k("animateTransform", { attributeName: "transform", dur: `${n}s`, type: "translate", values: "0 10 ; 0 -10; 0 10", repeatCount: "indefinite", begin: "0.2" }) }), k("circle", { className: "primary", cx: "54", cy: "50", r: "6", children: k("animateTransform", { attributeName: "transform", dur: `${n}s`, type: "translate", values: "0 5 ; 0 -5; 0 5", repeatCount: "indefinite", begin: "0.3" }) })] }) });
|
|
113
|
-
}),
|
|
113
|
+
}), cs = oe((e) => {
|
|
114
114
|
const { sx: r, speed: n = 2, size: t = 70, ...s } = e;
|
|
115
115
|
return k(X, { sx: { width: `${t}px`, height: `${t}px`, zIndex: 1, "& .primary": { stroke: (a) => a.palette.grey[600], opacity: 0.5, fill: "none" }, "& .secondary": { fillOpacity: (a) => a.palette.grey[600], opacity: 0.8, stroke: (a) => a.palette.background.paper }, ...r }, ...s, children: J("svg", { x: "0px", y: "0px", viewBox: "0 0 100 100", children: [k("circle", { className: "primary", strokeWidth: "4", cx: "50", cy: "50", r: "44" }), k("circle", { className: "secondary", strokeWidth: "3", cx: "8", cy: "54", r: "6", children: k("animateTransform", { attributeName: "transform", dur: `${n}s`, type: "rotate", from: "0 50 48", to: "360 50 52", repeatCount: "indefinite" }) })] }) });
|
|
116
|
-
}),
|
|
116
|
+
}), us = oe((e) => {
|
|
117
117
|
const { sx: r, speed: n = 1, size: t = 13, width: s = 64, height: a = 17, ...o } = e;
|
|
118
118
|
return J(X, { sx: { width: `${s}px`, height: `${a}px`, "& .primary": { backgroundColor: (l) => l.palette.grey[600], top: `${(a - t) / 2}px`, width: () => `${t}px`, height: () => `${t}px` }, ...r }, className: Oe(ii, "animated-icon"), ...o, children: [k("div", { className: "primary" }), k("div", { className: "primary" }), k("div", { className: "primary" }), k("div", { className: "primary" })] });
|
|
119
119
|
}), si = k(ai, {}), li = oe(de((e, r) => {
|
|
@@ -430,14 +430,14 @@ const bi = { name: "maxSize", enabled: !0, phase: "main", requiresIfExists: ["of
|
|
|
430
430
|
} });
|
|
431
431
|
}));
|
|
432
432
|
Gr.displayName = "ExhibitPopper";
|
|
433
|
-
const
|
|
433
|
+
const ds = (e) => {
|
|
434
434
|
if (e.palette.mode === "dark")
|
|
435
435
|
return `drop-shadow(0px 0px 1px ${e.palette.mode === "dark" ? e.palette.text.primary : e.palette.divider})`;
|
|
436
|
-
},
|
|
436
|
+
}, ps = (e = 1) => (r) => {
|
|
437
437
|
if (r.palette.mode !== "dark") return;
|
|
438
438
|
const n = r.palette.mode === "dark" ? r.palette.text.primary : r.palette.divider;
|
|
439
439
|
return `drop-shadow(0px 0px ${e}px ${n})`;
|
|
440
|
-
}, Xr = (e) => k(be, { ...e, iconKey: "ArrowDownOutline" }), xi = (e) => k(be, { ...e, iconKey: "ArrowRightOutline" }),
|
|
440
|
+
}, Xr = (e) => k(be, { ...e, iconKey: "ArrowDownOutline" }), xi = (e) => k(be, { ...e, iconKey: "ArrowRightOutline" }), fs = ei(oe(de((e, r) => {
|
|
441
441
|
const { sx: n, size: t = "small", activeColor: s, children: a, className: o, ...l } = e;
|
|
442
442
|
let i = "1rem", c = "1rem";
|
|
443
443
|
return t === "medium" ? (i = "1.25rem", c = "1.25rem") : t === "large" && (i = "1.5rem", c = "1.5rem"), k(X, { ref: r, className: Oe("icon", o), sx: { width: i, height: c, ...n }, ...l, children: a });
|
|
@@ -452,10 +452,10 @@ const us = (e) => {
|
|
|
452
452
|
if (!e) return e;
|
|
453
453
|
let t = n !== "dark";
|
|
454
454
|
return r < 0 && (t = !t, r *= -1), e = Si(e), t ? Io(e, Math.max(0, Math.min(1, 1 * r))) : Vo(e, Math.max(0, Math.min(1, 1.5 * r)));
|
|
455
|
-
},
|
|
455
|
+
}, hs = function(e) {
|
|
456
456
|
let r = 0;
|
|
457
457
|
return r = e < 1 ? 5.11916 * e ** 2 : 4.5 * Math.log(e + 1) + 2, (r / 100).toFixed(2);
|
|
458
|
-
},
|
|
458
|
+
}, ms = (e, r) => {
|
|
459
459
|
let n = On({ palette: { mode: e ? "dark" : "light" } });
|
|
460
460
|
const t = { "--icon-primary": n.palette.primary.main, "--icon-secondary": n.palette.secondary.main, "--icon-secondary-light": n.palette.secondary.light, "--icon-success": n.palette.success.main, "--icon-success-light": n.palette.success.light, "--icon-info": n.palette.info.main, "--icon-warn": n.palette.warning.main, "--icon-error": n.palette.error.main, "--icon-error-light": n.palette.error.light, "--icon-grey": n.palette.text.icon ?? n.palette.action.active, "--icon-shadow": e ? n.palette.text.primary : n.palette.divider, "--icon-size": "1.25rem", "@media (pointer: coarse)": { "--icon-size": "1.75rem" } };
|
|
461
461
|
let s = { typography: {}, palette: { mode: e ? "dark" : "light", text: { secondary: e ? n.palette.text.secondary : me(n.palette.text.secondary, 0.75), icon: e ? me(n.palette.text.secondary, 0.7) : me(n.palette.text.primary, 0.75) } }, components: { MuiDialogTitle: { styleOverrides: { root: { fontWeight: "normal" } } }, MuiSelect: { defaultProps: { IconComponent: Xr, 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: { ...t } } }, 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() {
|
|
@@ -465,13 +465,15 @@ const us = (e) => {
|
|
|
465
465
|
} } } } } }, a = s;
|
|
466
466
|
return r && (a = Pr(s, r)), On(a);
|
|
467
467
|
};
|
|
468
|
+
function Di(e, r) {
|
|
469
|
+
return r = Pr({ track: _n(e.palette.background.paper, 0.05, e?.palette.mode), thumb: _n(e.palette.background.paper, 0.3, e?.palette.mode), active: e.palette.primary.main, corner: e.palette.background.paper, outline: !1 }, r || {}), { "--scrollbar-track-color": me(r.track, 0.2), "--scrollbar-thumb-color": r.thumb, "--scrollbar-button-color": r.button || r.thumb, "--scrollbar-active-color": r.active, "--scrollbar-corner-color": r.corner || r.thumb, "--scrollbar-border-color": r.track, "--scrollbar-width": "13px", "--scrollbar-height": "13px", "--scrollbar-border-radius": "9999px", "--scrollbar-border-width": "2px", "--scrollbar-min-thumb-size": "24px" };
|
|
470
|
+
}
|
|
468
471
|
function Kr(e, r) {
|
|
469
|
-
r =
|
|
470
|
-
|
|
471
|
-
return Te.getOS() === Te.OSType.Firefox && (n["* .pseudo-scrollbar"] = { scrollbarColor: `${r.thumb} transparent` }, n["* .pseudo-scrollbar:hover:not([disabled])"] = { scrollbarColor: `${r.active} transparent` }), n;
|
|
472
|
+
const n = Di(e, r), t = { ...n, "& .scrollbar, & .vsb-track, & .vsb-thumb": { ...n }, "&::-webkit-scrollbar, & *::-webkit-scrollbar": { backgroundColor: "var(--scrollbar-track-color)", width: "var(--scrollbar-width)", height: "var(--scrollbar-height)" }, "&::-webkit-scrollbar-button": { display: "none" }, "& .scrollbar-button": { fill: "var(--scrollbar-thumb-color)", backgroundColor: "transparent", transition: "fill opacity 260ms ease", width: "var(--scrollbar-width)", height: "var(--scrollbar-height)" }, "& .scrollbar-button:hover:not([disabled])": { fill: "var(--scrollbar-active-color)" }, "& .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: "var(--scrollbar-border-radius)", backgroundColor: "var(--scrollbar-thumb-color)", minHeight: "var(--scrollbar-min-thumb-size)", minWidth: "var(--scrollbar-min-thumb-size)", border: "var(--scrollbar-border-width) solid var(--scrollbar-border-color)" }, "&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus": { backgroundColor: "var(--scrollbar-active-color)", border: r?.outline ? r.outline : void 0 }, "&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active": { backgroundColor: "var(--scrollbar-active-color)", border: r?.outline ? r.outline : void 0 }, "&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover": { backgroundColor: "var(--scrollbar-active-color)", border: r?.outline ? r.outline : void 0 }, "&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner": { backgroundColor: "var(--scrollbar-corner-color)" } };
|
|
473
|
+
return Te.getOS() === Te.OSType.Firefox && (t["* .pseudo-scrollbar"] = { scrollbarColor: "var(--scrollbar-thumb-color) transparent" }, t["* .pseudo-scrollbar:hover:not([disabled])"] = { scrollbarColor: "var(--scrollbar-active-color) transparent" }), t;
|
|
472
474
|
}
|
|
473
|
-
const
|
|
474
|
-
function
|
|
475
|
+
const gs = { Light: "light", Dark: "dark" };
|
|
476
|
+
function ys(e) {
|
|
475
477
|
const { mode: r } = e || {}, [n, t] = ne(() => {
|
|
476
478
|
if (r === "light" || r === "dark") return { themeMode: r, source: "prop" };
|
|
477
479
|
if (typeof document < "u") {
|
|
@@ -505,7 +507,7 @@ function An() {
|
|
|
505
507
|
function In() {
|
|
506
508
|
return typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
507
509
|
}
|
|
508
|
-
const
|
|
510
|
+
const bs = { Popup: "popup", Anchor: "anchor" }, vs = { ByPopup: "popupDone", Cancel: "popupCancel", ClickAway: "clickAway" }, Oi = { Toolbar: "toolbar", Menuitem: "menuitem" }, hn = (e) => {
|
|
509
511
|
const { closeFloat: r, closeFloatAll: n, floatReference: t, popupContainer: s, children: a, className: o, sx: l, ...i } = e;
|
|
510
512
|
return k(X, { className: Oe("menu", o), sx: { display: "flex", flexDirection: "column", ...l }, ...i, children: a });
|
|
511
513
|
}, Vn = (e, r, n) => {
|
|
@@ -625,19 +627,19 @@ const Kt = (e = null, r, n, t) => (ze && (ze.fn.clear(), ze = null), e === 0 ? r
|
|
|
625
627
|
document.removeEventListener("mousedown", g), document.removeEventListener("touchstart", g), document.removeEventListener("focus", g);
|
|
626
628
|
};
|
|
627
629
|
}, [f, h]), { component: le, reference: G };
|
|
628
|
-
},
|
|
630
|
+
}, Ci = oe(de((e, r) => {
|
|
629
631
|
const { nestedChildren: n, variant: t, disabled: s = !1, createPopupPanel: a, ...o } = e, l = { disabled: s, createPopupPanel: ae((i) => {
|
|
630
632
|
if (!n || n.length === 0) return null;
|
|
631
633
|
const { popupContainer: c, floatReference: f, ref: x, ...y } = i, b = [];
|
|
632
634
|
for (let v = 0; v < n.length; v++) {
|
|
633
635
|
const m = n[v];
|
|
634
|
-
m && b.push(k(
|
|
636
|
+
m && b.push(k(Ci, { parentFloat: f, ...y, ...m }, v));
|
|
635
637
|
}
|
|
636
638
|
return J(X, { ref: r, sx: { display: "flex", flexDirection: "column", paddingTop: "4px", paddingBottom: "4px" }, children: ["Children here", b, k(Ot, { parentFloat: f, children: "Close other children" })] });
|
|
637
639
|
}, [n]), ...o };
|
|
638
|
-
return k(t ===
|
|
639
|
-
})),
|
|
640
|
-
const { children: n, sx: t, parentFloat: s, createPopupPanel: a, popperProps: o =
|
|
640
|
+
return k(t === Oi.Toolbar ? mn : Zr, { ...l });
|
|
641
|
+
})), Ei = { placement: "right-start" }, xs = oe(de((e, r) => {
|
|
642
|
+
const { children: n, sx: t, parentFloat: s, createPopupPanel: a, popperProps: o = Ei, label: l, ...i } = e;
|
|
641
643
|
(function(h) {
|
|
642
644
|
if (!h) throw new Error("Invariant failed");
|
|
643
645
|
})(q.isValidElement(n));
|
|
@@ -655,7 +657,7 @@ dt.displayName = "SimpleTooltip";
|
|
|
655
657
|
const mt = oe((e) => {
|
|
656
658
|
const { modifier: r, sx: n, ...t } = e;
|
|
657
659
|
return k(X, { sx: { marginLeft: "1px", marginRight: "1px", borderRadius: "4px", borderStyle: "solid", borderTopWidth: "1px", borderLeftWidth: "1px", borderRightWidth: "1px", borderBottomWidth: "2px", borderTopColor: (s) => me(s.palette.background.paper, s.palette.action.disabledOpacity), borderLeftColor: (s) => me(s.palette.background.paper, s.palette.action.disabledOpacity), borderRightColor: (s) => me(s.palette.background.paper, s.palette.action.disabledOpacity), borderBottomColor: (s) => me(s.palette.background.paper, 1 - s.palette.action.disabledOpacity), backgroundColor: (s) => me(s.palette.action.hover, s.palette.action.disabledOpacity), paddingLeft: "4px", paddingRight: "4px", minHeight: "1.6em", display: "flex", justifyContent: "center", alignItems: "center", boxSizing: "content-box", overflow: "hidden", ...n }, ...t, children: k(X, { sx: { display: "flex", alignItems: "center", justifyContent: "center", textAlign: "center", "& *": { fontWeight: "500" } }, children: r }) });
|
|
658
|
-
}),
|
|
660
|
+
}), Mi = Te.getOS() === Te.OSType.MacOS || Te.getOS() === Te.OSType.IOS ? "Cmd" : "Ctrl", Jr = (e, r = !1, n = null) => {
|
|
659
661
|
if (Array.isArray(e)) {
|
|
660
662
|
let a = [], o = e;
|
|
661
663
|
for (let l = 0; l < o.length; l++) a.push(Jr(o[l], r, n ?? "" + l));
|
|
@@ -665,7 +667,7 @@ const mt = oe((e) => {
|
|
|
665
667
|
const t = {};
|
|
666
668
|
for (let a = 0; e.modifiers && a < e.modifiers.length; a++) t[e.modifiers[a]] = !0;
|
|
667
669
|
const s = [];
|
|
668
|
-
return t?.[Mt.Ctrl] && (s.push(k(mt, { modifier: r ? "^" : k("div", { style: { paddingRight: "1px" }, children:
|
|
670
|
+
return t?.[Mt.Ctrl] && (s.push(k(mt, { modifier: r ? "^" : k("div", { style: { paddingRight: "1px" }, children: Mi }) }, "ctrl")), s.push("+")), t?.[Mt.Alt] && (s.push(k(mt, { modifier: r ? "⌥" : "Alt" }, "alt")), s.push("+")), t?.[Mt.Shift] && (s.push(k(mt, { modifier: r ? "⇧" : k("div", { style: { paddingRight: "1px" }, children: "Shift" }) }, "shift")), s.push("+")), t?.[Mt.Meta] && (s.push(k(mt, { modifier: r ? k("div", { style: { paddingTop: "1px" }, children: "⌘" }) : "Meta" }, "meta")), s.push("+")), s.push(k(mt, { modifier: Zo.toPrettyKeyCode(e.key) }, "character")), k(X, { sx: { display: "flex", alignItems: "center" }, children: s }, n);
|
|
669
671
|
}, pt = oe(de((e, r) => {
|
|
670
672
|
const { disabled: n = !1, label: t, shortcut: s, chips: a, description: o, maxWidth: l = 280, useModifierSymbols: i = !1, children: c, simple: f, componentDisabled: x = !1, sx: y, ...b } = e;
|
|
671
673
|
let v = null;
|
|
@@ -676,13 +678,13 @@ const mt = oe((e) => {
|
|
|
676
678
|
h(p);
|
|
677
679
|
});
|
|
678
680
|
}, [t]), k(dt, { slotProps: { popper: { sx: { "& .MuiTooltip-tooltip": { marginTop: "0px !important" }, ...y }, modifiers: [{ name: "offset", options: { offset: [0, 14] } }] } }, className: "tooltip-wrapper", tabIndex: -1, title: !n && m ? J(X, { sx: { maxWidth: `${l}px` }, ref: r, children: [J(X, { sx: { display: "flex", flexDirection: "row", marginBottom: o ? "4px" : "0px" }, children: [k(Me, { variant: "subtitle1", component: "div", flex: "1 1 100%", children: m }), a ? k(Br, { chips: a }) : null, v ? k(X, { sx: { marginLeft: "8px" } }, "leadingSpace") : k(Je, {}), v] }), o ? k(Me, { variant: "caption", sx: { whiteSpace: "pre-line", lineHeight: "1.4" }, children: o }) : k(Je, {})] }) : "", enterDelay: 260, enterNextDelay: 130, leaveDelay: 230, disableInteractive: !0, ...b, children: k("div", { style: { display: "flex", alignItems: "stretch", justifyContent: "stretch" }, children: c }) });
|
|
679
|
-
})),
|
|
681
|
+
})), Ti = k(be, {}), Pi = k(be, { iconKey: "Check" }), Wt = oe(de((e, r) => {
|
|
680
682
|
const { dense: n = !0, outlined: t = !1, disableHover: s = !1, parentFloat: a, selected: o, icon: l, tooltipProps: i, children: c, primary: f, sx: x, disabled: y, className: b, onFocus: v, onBlur: m, ...h } = e, [p, u] = ne(!1), w = { marginRight: "0px", padding: n ? "2px" : "7px", borderRadius: (R) => `${R.shape.borderRadius}px`, color: (R) => f ? void 0 : R.palette.text.icon ?? R.palette.action.active, border: (R) => `solid ${t ? R.palette.divider : "transparent"} 1px`, "& .MuiTouchRipple-child": { borderRadius: (R) => `${R.shape.borderRadius}px !important` }, "&.Mui-selected": { backgroundColor: (R) => me(R.palette.text.primary, R.palette.action.selectedOpacity), border: (R) => `solid ${t ? R.palette.text?.primary : R.palette.divider} 1px` }, "&.Mui-disabled": { border: (R) => `solid ${t ? R.palette.divider : "transparent"} 1px` }, "&.Mui-disabled > .icon path": { filter: "grayscale(65%)", opacity: ".8" }, "&.Mui-focusVisible": { outline: "solid transparent 1px", border: "1px solid transparent" }, ...x }, E = { "&:hover:not(.Mui-disabled, [disabled])": { color: (R) => R.palette.text.primary, border: (R) => `solid ${t ? R.palette.text?.primary : R.palette.divider} 1px`, "&.Mui-selected": { backgroundColor: (R) => me(R.palette.text.primary, R.palette.action.selectedOpacity + R.palette.action.hoverOpacity) }, "> .outline-hover": { outline: (R) => `solid ${t ? R.palette.text?.primary : R.palette.divider} 1px` }, backgroundColor: null }, "&.Mui-focusVisible": { outline: (R) => `solid ${R.palette.primary.main} 1px`, border: (R) => `1px solid ${R.palette?.primary?.main}`, zIndex: 1 } };
|
|
681
683
|
let T = w;
|
|
682
684
|
s || (T = Te.mergeContentful(w, E));
|
|
683
685
|
const L = Z(() => {
|
|
684
686
|
let R = typeof l == "function" ? l() : l;
|
|
685
|
-
return R === null ? R : R || (o === void 0 ?
|
|
687
|
+
return R === null ? R : R || (o === void 0 ? Ti : Pi);
|
|
686
688
|
}, [l, o]);
|
|
687
689
|
let O = J(Ze, { component: "div", ref: r, className: Oe({ "Mui-focusVisible": p, "Mui-selected": o, "Mui-disabled": y }, b), onFocus: (R) => {
|
|
688
690
|
u(!0), v?.(R);
|
|
@@ -694,8 +696,8 @@ const mt = oe((e) => {
|
|
|
694
696
|
O = k(dt, { disableInteractive: !0, title: R ?? "", ...z, children: k(X, { sx: { display: "flex" }, children: O }) });
|
|
695
697
|
} else O = k(pt, { children: O, ...i });
|
|
696
698
|
return O;
|
|
697
|
-
})),
|
|
698
|
-
const { icon: n =
|
|
699
|
+
})), Ri = k(be, {}), Ni = (e) => e.icon, Ot = oe(de((e, r) => {
|
|
700
|
+
const { icon: n = Ri, renderIcon: t = Ni, parentFloat: s, className: a, onFocus: o, selected: l, onBlur: i, onMouseOver: c, onMouseOut: f, onMouseEnter: x, disabled: y, children: b, sx: v, tooltipProps: m, chips: h, primary: p, ...u } = e, [w, E] = ne(!1), [T, L] = ne(!1), O = Z(() => {
|
|
699
701
|
const S = t?.({ icon: n, disabled: y, selected: l });
|
|
700
702
|
return S ? k(zo, { className: Oe({ "Mui-focusVisible": w, "Mui-hovered": T }), sx: { "& .MuiSvgIcon-root": { color: (D) => p ? void 0 : D.palette.text.icon ?? D.palette.action.active }, "&.Mui-hovered:not(.Mui-disabled, [disabled])": { "& .MuiSvgIcon-root": { color: (D) => D.palette.text.primary } } }, children: S }) : null;
|
|
701
703
|
}, [t, y, n, w, T, p, l]);
|
|
@@ -711,7 +713,7 @@ const mt = oe((e) => {
|
|
|
711
713
|
i?.(S), E(!1);
|
|
712
714
|
}, sx: { flex: "1 1 100%", "&.Mui-disabled > .icon path": { filter: "grayscale(65%)" }, "&.Mui-selected": { color: (S) => S.palette.text.primary }, color: (S) => S.palette.text.secondary, "&.Mui-hovered:not(.Mui-disabled, [disabled])": { color: (S) => S.palette.text.primary }, ...v }, ...u, children: [O, b, h ? k(Br, { chips: h }) : null] });
|
|
713
715
|
return m && (R = k(pt, { children: R, placement: "right-start", ...m })), R;
|
|
714
|
-
})),
|
|
716
|
+
})), ws = oe(de((e, r) => {
|
|
715
717
|
const { children: n, sx: t, primary: s = !1, variant: a = "subtitle1", ...o } = e;
|
|
716
718
|
return k(Je, { children: k(Me, { ref: r, variant: a, component: "div", sx: { userSelect: "none", fontWeight: "500", paddingLeft: "8px", paddingTop: a === "subtitle1" ? "2px" : void 0, paddingBottom: a === "subtitle1" ? "2px" : void 0, color: (l) => s ? void 0 : l.palette.text.secondary, ...t }, ...o, children: n }) });
|
|
717
719
|
})), mn = oe(de((e, r) => {
|
|
@@ -766,8 +768,8 @@ const mt = oe((e) => {
|
|
|
766
768
|
return d || (U = (m ?? le)({ title: M ? "" : v, children: U }, M)), J(X, { className: Oe(R, "popupIconButton"), ref: r, ...S, sx: { zIndex: A || M ? 2 : void 0, display: "flex", alignItems: "center", ...O }, children: [U, Q.component] });
|
|
767
769
|
}));
|
|
768
770
|
mn.displayName = "ExhibitPopupIconButton";
|
|
769
|
-
const
|
|
770
|
-
const { selected: n = !1, label: t, onQuickClick: s, parentFloat: a, createPopupPanel: o, popupProps: l =
|
|
771
|
+
const Fi = {}, Zr = oe(de((e, r) => {
|
|
772
|
+
const { selected: n = !1, label: t, onQuickClick: s, parentFloat: a, createPopupPanel: o, popupProps: l = Fi, onPopupOpen: i, onPopupClose: c, quickButtonProps: f, createQuickButton: x, tooltip: y = "", createTooltip: b, icon: v, disabled: m, touchRippleRef: h, primary: p, children: u, sx: w, ...E } = e, [T, L] = ne(!1), [O, R] = ne(!1), [S, D] = ne(!1), [P, M] = ne(!1), I = ge(null), A = ge(null), V = Z(() => {
|
|
771
773
|
if (!l) return;
|
|
772
774
|
const { popperProps: d } = l;
|
|
773
775
|
return { placement: "right-start", offsets: [-4, -2], ...d };
|
|
@@ -813,17 +815,17 @@ const Ni = {}, Zr = oe(de((e, r) => {
|
|
|
813
815
|
}, ...ee, children: [k("div", { style: { flex: "1 1 100%" }, children: t }), k(X, { className: "expand-icon", sx: { flex: "none", display: "flex", color: (d) => p ? void 0 : d.palette.text.icon ?? d.palette.action.active }, children: ie })] });
|
|
814
816
|
let ce = k(X, { "aria-label": "split button", ref: I, tabIndex: m ? void 0 : 0, className: Oe({ "Mui-disabled": m, "Mui-selected": T, "Mui-focusVisible": O || T, "Mui-hovered": S }), 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%)" }, ...w }, ...E, children: le });
|
|
815
817
|
return re && !P && (f?.tooltip || f?.createTooltip) && (ce = (f?.createTooltip ?? Q)({ title: T ? "" : ce ?? f?.tooltip, children: ce }, T)), J(X, { ref: r, sx: { zIndex: O || T ? 2 : void 0, display: "flex", " .tooltip-wrapper": { display: "flex", flex: "1 1 100%" } }, children: [ce, B.component] });
|
|
816
|
-
})),
|
|
818
|
+
})), ks = oe(de((e, r) => {
|
|
817
819
|
const { onSelectToggle: n, selected: t = !1, label: s, shortcut: a, tabIndex: o = 0, preventFocus: l = !1, ...i } = e;
|
|
818
820
|
return k(pt, { label: s, shortcut: a, children: k(Wt, { ref: r, outlined: !1, tabIndex: o, selected: t, onMouseDown: (c) => {
|
|
819
821
|
l && c.preventDefault();
|
|
820
822
|
}, onClick: () => {
|
|
821
823
|
n?.(!t);
|
|
822
824
|
}, ...i }) });
|
|
823
|
-
})),
|
|
825
|
+
})), _i = k(be, {}), Ai = k(be, { iconKey: "Check" }), Ii = oe(de((e, r) => {
|
|
824
826
|
const { children: n, selected: t = !0, outlined: s = !0, sx: a, ...o } = e;
|
|
825
827
|
let l = n;
|
|
826
|
-
return l === null && (l =
|
|
828
|
+
return l === null && (l = _i), l || (l = Ai), k(X, { ref: r, sx: { display: "flex", border: (i) => t ? `solid ${s ? i.palette.divider : "transparent"} 1px` : "solid transparent 1px", borderRadius: (i) => `${i.shape.borderRadius}px`, backgroundColor: (i) => {
|
|
827
829
|
if (t) return me(i.palette.text.icon ?? i.palette.action.active, i.palette.action.selectedOpacity);
|
|
828
830
|
}, ...a }, ...o, children: l });
|
|
829
831
|
}));
|
|
@@ -845,7 +847,7 @@ function eo(e, r) {
|
|
|
845
847
|
}
|
|
846
848
|
return n;
|
|
847
849
|
}
|
|
848
|
-
var Ie,
|
|
850
|
+
var Ie, Vi = { state: {}, updateModal: function() {
|
|
849
851
|
}, hideModal: function() {
|
|
850
852
|
}, destroyModal: function() {
|
|
851
853
|
}, destroyModalsByRootId: function() {
|
|
@@ -858,8 +860,8 @@ var Ie, Ii = { state: {}, updateModal: function() {
|
|
|
858
860
|
(function(e) {
|
|
859
861
|
e.SHOW = "SHOW", e.HIDE = "HIDE", e.UPDATE = "UPDATE", e.DESTROY = "DESTROY", e.DESTROY_BY_ROOT_ID = "DESTROY_BY_ROOT_ID", e.UNKNOWN = "UNKNOWN";
|
|
860
862
|
})(Ie || (Ie = {}));
|
|
861
|
-
var
|
|
862
|
-
function
|
|
863
|
+
var Li = {};
|
|
864
|
+
function Bi(e, r) {
|
|
863
865
|
switch (r.type) {
|
|
864
866
|
case Ie.SHOW:
|
|
865
867
|
var n, t = r.payload, s = t.id, a = t.component, o = t.props, l = t.options;
|
|
@@ -889,10 +891,10 @@ var qt = "[ERROR]: Modal ID is missing", no = function(e) {
|
|
|
889
891
|
e === void 0 && (e = 8);
|
|
890
892
|
for (var r = [], n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", t = 0; t < e; t++) r[t] = n.charAt(Math.floor(62 * Math.random()));
|
|
891
893
|
return r.join("");
|
|
892
|
-
},
|
|
893
|
-
function
|
|
894
|
-
var r = e.children, n = e.legacy, t = n !== void 0 && n, s = e.suspense, a = s === void 0 || s, o = e.fallback, l = o === void 0 ? null : o, i = q.useReducer(
|
|
895
|
-
var w = eo(u,
|
|
894
|
+
}, ji = ["open"];
|
|
895
|
+
function Ss(e) {
|
|
896
|
+
var r = e.children, n = e.legacy, t = n !== void 0 && n, s = e.suspense, a = s === void 0 || s, o = e.fallback, l = o === void 0 ? null : o, i = q.useReducer(Bi, Li), c = i[0], f = i[1], x = q.useCallback(function(p, u) {
|
|
897
|
+
var w = eo(u, ji);
|
|
896
898
|
p ? f({ type: Ie.UPDATE, payload: { id: p, props: w } }) : console.error(qt);
|
|
897
899
|
}, [f]), y = q.useCallback(function(p) {
|
|
898
900
|
p ? f({ type: Ie.HIDE, payload: { id: p } }) : console.error(qt);
|
|
@@ -921,20 +923,20 @@ function ks(e) {
|
|
|
921
923
|
})));
|
|
922
924
|
}
|
|
923
925
|
var ro = { enforceProvider: !1 };
|
|
924
|
-
function
|
|
926
|
+
function Ds(e) {
|
|
925
927
|
Object.assign(ro, e);
|
|
926
928
|
}
|
|
927
|
-
function
|
|
929
|
+
function $i() {
|
|
928
930
|
return ro;
|
|
929
931
|
}
|
|
930
|
-
var
|
|
932
|
+
var zi = ["showModal", "destroyModalsByRootId"], Bn = { disableAutoDestroy: !1 };
|
|
931
933
|
function gn(e) {
|
|
932
934
|
e === void 0 && (e = Bn);
|
|
933
935
|
var r = Ee({}, Bn, e).disableAutoDestroy, n = (function() {
|
|
934
936
|
var l = _o(to);
|
|
935
|
-
if (
|
|
936
|
-
return l ||
|
|
937
|
-
})(), t = n.showModal, s = n.destroyModalsByRootId, a = eo(n,
|
|
937
|
+
if ($i().enforceProvider && l === void 0) throw new Error("useModalContext must be used within a ModalProvider");
|
|
938
|
+
return l || Vi;
|
|
939
|
+
})(), t = n.showModal, s = n.destroyModalsByRootId, a = eo(n, zi), o = ge(no(6));
|
|
938
940
|
return Se(function() {
|
|
939
941
|
return function() {
|
|
940
942
|
!r && s && s(o.current);
|
|
@@ -943,7 +945,7 @@ function gn(e) {
|
|
|
943
945
|
return t(l, i, Ee({ rootId: o.current, hideOnClose: !0 }, c));
|
|
944
946
|
}, [t]), destroyModalsByRootId: s }, a);
|
|
945
947
|
}
|
|
946
|
-
function
|
|
948
|
+
function Os(e) {
|
|
947
949
|
const [r, n] = ne(() => /* @__PURE__ */ new Map()), { showModal: t, updateModal: s, destroyModal: a, hideModal: o } = gn({ disableAutoDestroy: !0 });
|
|
948
950
|
return (l, i, c, f) => new Promise((x, y) => {
|
|
949
951
|
const b = { ...e, ...c, onHide: () => {
|
|
@@ -965,13 +967,13 @@ function Ds(e) {
|
|
|
965
967
|
});
|
|
966
968
|
}
|
|
967
969
|
var jn, $n, zn, Wn, Hn, Un = { exports: {} };
|
|
968
|
-
function
|
|
970
|
+
function Wi() {
|
|
969
971
|
return $n ? jn : ($n = 1, jn = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
970
972
|
}
|
|
971
|
-
function
|
|
973
|
+
function Hi() {
|
|
972
974
|
if (Wn) return zn;
|
|
973
975
|
Wn = 1;
|
|
974
|
-
var e =
|
|
976
|
+
var e = Wi();
|
|
975
977
|
function r() {
|
|
976
978
|
}
|
|
977
979
|
function n() {
|
|
@@ -992,7 +994,7 @@ function Wi() {
|
|
|
992
994
|
};
|
|
993
995
|
}
|
|
994
996
|
function yn() {
|
|
995
|
-
return Hn || (Hn = 1, Un.exports =
|
|
997
|
+
return Hn || (Hn = 1, Un.exports = Hi()()), Un.exports;
|
|
996
998
|
}
|
|
997
999
|
var oo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], It = oo.join(","), io = typeof Element > "u", rt = io ? function() {
|
|
998
1000
|
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ft = !io && Element.prototype.getRootNode ? function(e) {
|
|
@@ -1033,11 +1035,11 @@ var oo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1033
1035
|
var n, t = r == null || (n = r.getAttribute) === null || n === void 0 ? void 0 : n.call(r, "contenteditable");
|
|
1034
1036
|
return t === "" || t === "true";
|
|
1035
1037
|
})(e)) && !lo(e) ? 0 : e.tabIndex;
|
|
1036
|
-
},
|
|
1038
|
+
}, Ui = function(e, r) {
|
|
1037
1039
|
return e.tabIndex === r.tabIndex ? e.documentOrder - r.documentOrder : e.tabIndex - r.tabIndex;
|
|
1038
1040
|
}, co = function(e) {
|
|
1039
1041
|
return e.tagName === "INPUT";
|
|
1040
|
-
},
|
|
1042
|
+
}, Yi = function(e) {
|
|
1041
1043
|
return (function(r) {
|
|
1042
1044
|
return co(r) && r.type === "radio";
|
|
1043
1045
|
})(e) && !(function(r) {
|
|
@@ -1059,7 +1061,7 @@ var oo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1059
1061
|
}, Yn = function(e) {
|
|
1060
1062
|
var r = e.getBoundingClientRect(), n = r.width, t = r.height;
|
|
1061
1063
|
return n === 0 && t === 0;
|
|
1062
|
-
},
|
|
1064
|
+
}, Gi = function(e, r) {
|
|
1063
1065
|
var n = r.displayCheck, t = r.getShadowRoot;
|
|
1064
1066
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
1065
1067
|
var s = rt.call(e, "details>summary:first-of-type") ? e.parentElement : e;
|
|
@@ -1089,7 +1091,7 @@ var oo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1089
1091
|
}, Lt = function(e, r) {
|
|
1090
1092
|
return !(r.disabled || Vt(r) || (function(n) {
|
|
1091
1093
|
return co(n) && n.type === "hidden";
|
|
1092
|
-
})(r) ||
|
|
1094
|
+
})(r) || Gi(r, e) || (function(n) {
|
|
1093
1095
|
return n.tagName === "DETAILS" && Array.prototype.slice.apply(n.children).some(function(t) {
|
|
1094
1096
|
return t.tagName === "SUMMARY";
|
|
1095
1097
|
});
|
|
@@ -1107,11 +1109,11 @@ var oo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1107
1109
|
return !1;
|
|
1108
1110
|
})(r));
|
|
1109
1111
|
}, rn = function(e, r) {
|
|
1110
|
-
return !(
|
|
1111
|
-
},
|
|
1112
|
+
return !(Yi(r) || Ke(r) < 0 || !Lt(e, r));
|
|
1113
|
+
}, Xi = function(e) {
|
|
1112
1114
|
var r = parseInt(e.getAttribute("tabindex"), 10);
|
|
1113
1115
|
return !!(isNaN(r) || r >= 0);
|
|
1114
|
-
},
|
|
1116
|
+
}, Ki = function e(r) {
|
|
1115
1117
|
var n = [], t = [];
|
|
1116
1118
|
return r.forEach(function(s, a) {
|
|
1117
1119
|
var o = !!s.scopeParent, l = o ? s.scopeParent : s, i = (function(f, x) {
|
|
@@ -1119,28 +1121,28 @@ var oo = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1119
1121
|
return y < 0 && x && !lo(f) ? 0 : y;
|
|
1120
1122
|
})(l, o), c = o ? e(s.candidates) : l;
|
|
1121
1123
|
i === 0 ? o ? n.push.apply(n, c) : n.push(l) : t.push({ documentOrder: a, tabIndex: i, item: s, isScope: o, content: c });
|
|
1122
|
-
}), t.sort(
|
|
1124
|
+
}), t.sort(Ui).reduce(function(s, a) {
|
|
1123
1125
|
return a.isScope ? s.push.apply(s, a.content) : s.push(a.content), s;
|
|
1124
1126
|
}, []).concat(n);
|
|
1125
1127
|
}, uo = function(e, r) {
|
|
1126
1128
|
var n;
|
|
1127
|
-
return n = (r = r || {}).getShadowRoot ? so([e], r.includeContainer, { filter: rn.bind(null, r), flatten: !1, getShadowRoot: r.getShadowRoot, shadowRootFilter:
|
|
1129
|
+
return n = (r = r || {}).getShadowRoot ? so([e], r.includeContainer, { filter: rn.bind(null, r), flatten: !1, getShadowRoot: r.getShadowRoot, shadowRootFilter: Xi }) : ao(e, r.includeContainer, rn.bind(null, r)), Ki(n);
|
|
1128
1130
|
}, po = function(e, r) {
|
|
1129
1131
|
return (r = r || {}).getShadowRoot ? so([e], r.includeContainer, { filter: Lt.bind(null, r), flatten: !0, getShadowRoot: r.getShadowRoot }) : ao(e, r.includeContainer, Lt.bind(null, r));
|
|
1130
1132
|
}, et = function(e, r) {
|
|
1131
1133
|
if (r = r || {}, !e) throw new Error("No node provided");
|
|
1132
1134
|
return rt.call(e, It) !== !1 && rn(r, e);
|
|
1133
|
-
},
|
|
1135
|
+
}, qi = oo.concat("iframe").join(","), _t = function(e, r) {
|
|
1134
1136
|
if (r = r || {}, !e) throw new Error("No node provided");
|
|
1135
|
-
return rt.call(e,
|
|
1137
|
+
return rt.call(e, qi) !== !1 && Lt(r, e);
|
|
1136
1138
|
};
|
|
1137
|
-
const
|
|
1139
|
+
const Qi = Object.freeze(Object.defineProperty({ __proto__: null, focusable: po, getTabIndex: Ke, isFocusable: _t, isTabbable: et, tabbable: uo }, Symbol.toStringTag, { value: "Module" }));
|
|
1138
1140
|
function Qt(e, r) {
|
|
1139
1141
|
(r == null || r > e.length) && (r = e.length);
|
|
1140
1142
|
for (var n = 0, t = Array(r); n < r; n++) t[n] = e[n];
|
|
1141
1143
|
return t;
|
|
1142
1144
|
}
|
|
1143
|
-
function
|
|
1145
|
+
function Ji(e, r, n) {
|
|
1144
1146
|
return (r = (function(t) {
|
|
1145
1147
|
var s = (function(a, o) {
|
|
1146
1148
|
if (typeof a != "object" || !a) return a;
|
|
@@ -1169,14 +1171,14 @@ function Xn(e) {
|
|
|
1169
1171
|
for (var r = 1; r < arguments.length; r++) {
|
|
1170
1172
|
var n = arguments[r] != null ? arguments[r] : {};
|
|
1171
1173
|
r % 2 ? Gn(Object(n), !0).forEach(function(t) {
|
|
1172
|
-
|
|
1174
|
+
Ji(e, t, n[t]);
|
|
1173
1175
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Gn(Object(n)).forEach(function(t) {
|
|
1174
1176
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
1175
1177
|
});
|
|
1176
1178
|
}
|
|
1177
1179
|
return e;
|
|
1178
1180
|
}
|
|
1179
|
-
function
|
|
1181
|
+
function Zi(e) {
|
|
1180
1182
|
return (function(r) {
|
|
1181
1183
|
if (Array.isArray(r)) return Qt(r);
|
|
1182
1184
|
})(e) || (function(r) {
|
|
@@ -1192,21 +1194,21 @@ function Ji(e) {
|
|
|
1192
1194
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1193
1195
|
})();
|
|
1194
1196
|
}
|
|
1195
|
-
var
|
|
1197
|
+
var ea = function(e, r) {
|
|
1196
1198
|
if (e.length > 0) {
|
|
1197
1199
|
var n = e[e.length - 1];
|
|
1198
1200
|
n !== r && n._setPausedState(!0);
|
|
1199
1201
|
}
|
|
1200
1202
|
var t = e.indexOf(r);
|
|
1201
1203
|
t === -1 || e.splice(t, 1), e.push(r);
|
|
1202
|
-
},
|
|
1204
|
+
}, ta = function(e, r) {
|
|
1203
1205
|
var n = e.indexOf(r);
|
|
1204
1206
|
n !== -1 && e.splice(n, 1), e.length > 0 && !e[e.length - 1]._isManuallyPaused() && e[e.length - 1]._setPausedState(!1);
|
|
1205
1207
|
}, kt = function(e) {
|
|
1206
1208
|
return e?.key === "Tab" || e?.keyCode === 9;
|
|
1207
|
-
}, ta = function(e) {
|
|
1208
|
-
return kt(e) && !e.shiftKey;
|
|
1209
1209
|
}, na = function(e) {
|
|
1210
|
+
return kt(e) && !e.shiftKey;
|
|
1211
|
+
}, ra = function(e) {
|
|
1210
1212
|
return kt(e) && e.shiftKey;
|
|
1211
1213
|
}, Kn = function(e) {
|
|
1212
1214
|
return setTimeout(e, 0);
|
|
@@ -1215,9 +1217,9 @@ var Zi = function(e, r) {
|
|
|
1215
1217
|
return typeof e == "function" ? e.apply(void 0, n) : e;
|
|
1216
1218
|
}, Tt = function(e) {
|
|
1217
1219
|
return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
|
|
1218
|
-
},
|
|
1219
|
-
const
|
|
1220
|
-
var n, t = r?.document || document, s = r?.trapStack ||
|
|
1220
|
+
}, oa = [];
|
|
1221
|
+
const ia = Object.freeze(Object.defineProperty({ __proto__: null, createFocusTrap: function(e, r) {
|
|
1222
|
+
var n, t = r?.document || document, s = r?.trapStack || oa, a = Xn({ returnFocusOnDeactivate: !0, escapeDeactivates: !0, delayInitialFocus: !0, isKeyForward: na, isKeyBackward: ra }, r), o = { containers: [], containerGroups: [], tabbableGroups: [], nodeFocusedBeforeActivation: null, mostRecentlyFocusedNode: null, active: !1, paused: !1, manuallyPaused: !1, delayInitialFocusTimer: void 0, recentNavEvent: void 0 }, l = function(S, D, P) {
|
|
1221
1223
|
return S && S[D] !== void 0 ? S[D] : a[P || D];
|
|
1222
1224
|
}, i = function(S, D) {
|
|
1223
1225
|
var P = typeof D?.composedPath == "function" ? D.composedPath() : void 0;
|
|
@@ -1229,7 +1231,7 @@ const oa = Object.freeze(Object.defineProperty({ __proto__: null, createFocusTra
|
|
|
1229
1231
|
});
|
|
1230
1232
|
}, c = function(S) {
|
|
1231
1233
|
var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, P = D.hasFallback, M = P !== void 0 && P, I = D.params, A = I === void 0 ? [] : I, V = a[S];
|
|
1232
|
-
if (typeof V == "function" && (V = V.apply(void 0,
|
|
1234
|
+
if (typeof V == "function" && (V = V.apply(void 0, Zi(A))), V === !0 && (V = void 0), !V) {
|
|
1233
1235
|
if (V === void 0 || V === !1) return V;
|
|
1234
1236
|
throw new Error("`".concat(S, "` was specified but was not a node, or did not return a node"));
|
|
1235
1237
|
}
|
|
@@ -1356,7 +1358,7 @@ const oa = Object.freeze(Object.defineProperty({ __proto__: null, createFocusTra
|
|
|
1356
1358
|
var D = Tt(S);
|
|
1357
1359
|
i(D, S) >= 0 || gt(a.clickOutsideDeactivates, S) || gt(a.allowOutsideClick, S) || (S.preventDefault(), S.stopImmediatePropagation());
|
|
1358
1360
|
}, T = function() {
|
|
1359
|
-
if (o.active) return
|
|
1361
|
+
if (o.active) return ea(s, n), o.delayInitialFocusTimer = a.delayInitialFocus ? Kn(function() {
|
|
1360
1362
|
b(f());
|
|
1361
1363
|
}) : b(f()), t.addEventListener("focusin", p, !0), t.addEventListener("mousedown", h, { capture: !0, passive: !1 }), t.addEventListener("touchstart", h, { capture: !0, passive: !1 }), t.addEventListener("click", E, { capture: !0, passive: !1 }), t.addEventListener("keydown", u, { capture: !0, passive: !1 }), t.addEventListener("keydown", w), n;
|
|
1362
1364
|
}, L = function() {
|
|
@@ -1387,7 +1389,7 @@ const oa = Object.freeze(Object.defineProperty({ __proto__: null, createFocusTra
|
|
|
1387
1389
|
}, deactivate: function(S) {
|
|
1388
1390
|
if (!o.active) return this;
|
|
1389
1391
|
var D = Xn({ onDeactivate: a.onDeactivate, onPostDeactivate: a.onPostDeactivate, checkCanReturnFocus: a.checkCanReturnFocus }, S);
|
|
1390
|
-
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, L(), o.active = !1, o.paused = !1, R(),
|
|
1392
|
+
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, L(), o.active = !1, o.paused = !1, R(), ta(s, n);
|
|
1391
1393
|
var P = l(D, "onDeactivate"), M = l(D, "onPostDeactivate"), I = l(D, "checkCanReturnFocus"), A = l(D, "returnFocus", "returnFocusOnDeactivate");
|
|
1392
1394
|
P?.();
|
|
1393
1395
|
var V = function() {
|
|
@@ -1418,8 +1420,8 @@ const oa = Object.freeze(Object.defineProperty({ __proto__: null, createFocusTra
|
|
|
1418
1420
|
}
|
|
1419
1421
|
return this;
|
|
1420
1422
|
} } }), n.updateContainerElements(e), n;
|
|
1421
|
-
} }, Symbol.toStringTag, { value: "Module" })),
|
|
1422
|
-
var qn, Qn,
|
|
1423
|
+
} }, Symbol.toStringTag, { value: "Module" })), aa = Ir(ia), sa = Ir(Qi);
|
|
1424
|
+
var qn, Qn, la = (function() {
|
|
1423
1425
|
if (Qn) return qn;
|
|
1424
1426
|
function e(b) {
|
|
1425
1427
|
return e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(v) {
|
|
@@ -1480,7 +1482,7 @@ var qn, Qn, sa = (function() {
|
|
|
1480
1482
|
return e(v) == "symbol" ? v : v + "";
|
|
1481
1483
|
}
|
|
1482
1484
|
Qn = 1;
|
|
1483
|
-
var l = q, i = yn(), c =
|
|
1485
|
+
var l = q, i = yn(), c = aa.createFocusTrap, f = sa.isFocusable, x = (function(b) {
|
|
1484
1486
|
function v(m) {
|
|
1485
1487
|
var h;
|
|
1486
1488
|
(function(w, E) {
|
|
@@ -1556,7 +1558,7 @@ var qn, Qn, sa = (function() {
|
|
|
1556
1558
|
})(l.Component), y = typeof Element > "u" ? Function : Element;
|
|
1557
1559
|
return x.propTypes = { active: i.bool, paused: i.bool, focusTrapOptions: i.shape({ document: i.object, onActivate: i.func, onPostActivate: i.func, checkCanFocusTrap: i.func, onPause: i.func, onPostPause: i.func, onUnpause: i.func, onPostUnpause: i.func, onDeactivate: i.func, onPostDeactivate: i.func, checkCanReturnFocus: i.func, initialFocus: i.oneOfType([i.instanceOf(y), i.string, i.bool, i.func]), fallbackFocus: i.oneOfType([i.instanceOf(y), i.string, i.func]), escapeDeactivates: i.oneOfType([i.bool, i.func]), clickOutsideDeactivates: i.oneOfType([i.bool, i.func]), returnFocusOnDeactivate: i.bool, setReturnFocus: i.oneOfType([i.instanceOf(y), i.string, i.bool, i.func]), allowOutsideClick: i.oneOfType([i.bool, i.func]), preventScroll: i.bool, tabbableOptions: i.shape({ displayCheck: i.oneOf(["full", "legacy-full", "non-zero-area", "none"]), getShadowRoot: i.oneOfType([i.bool, i.func]) }), trapStack: i.array, isKeyForward: i.func, isKeyBackward: i.func }), containerElements: i.arrayOf(i.instanceOf(y)), children: i.oneOfType([i.element, i.instanceOf(y)]) }, x.defaultProps = { active: !0, paused: !1, focusTrapOptions: {}, _createFocusTrap: c }, qn = x;
|
|
1558
1560
|
})();
|
|
1559
|
-
const
|
|
1561
|
+
const ca = Ar(la);
|
|
1560
1562
|
var Jn, yt = { exports: {} }, Zn = {}, Pt = { exports: {} }, er, ye = {}, Ue = {};
|
|
1561
1563
|
function Ht() {
|
|
1562
1564
|
return er || (er = 1, Object.defineProperty(Ue, "__esModule", { value: !0 }), Ue.dontSetMe = function(e, r, n) {
|
|
@@ -1744,7 +1746,7 @@ function ho() {
|
|
|
1744
1746
|
return or || (or = 1, Object.defineProperty(Rt, "__esModule", { value: !0 }), Rt.default = function() {
|
|
1745
1747
|
}), Rt;
|
|
1746
1748
|
}
|
|
1747
|
-
function
|
|
1749
|
+
function ua() {
|
|
1748
1750
|
if (ir) return bt;
|
|
1749
1751
|
ir = 1, Object.defineProperty(bt, "__esModule", { value: !0 }), bt.default = void 0;
|
|
1750
1752
|
var e = (function(b, v) {
|
|
@@ -1855,7 +1857,7 @@ function ca() {
|
|
|
1855
1857
|
}, onMouseDown: function() {
|
|
1856
1858
|
}, scale: 1 }), bt;
|
|
1857
1859
|
}
|
|
1858
|
-
function
|
|
1860
|
+
function da() {
|
|
1859
1861
|
return ar || (ar = 1, (function(e) {
|
|
1860
1862
|
Object.defineProperty(e, "__esModule", { value: !0 }), Object.defineProperty(e, "DraggableCore", { enumerable: !0, get: function() {
|
|
1861
1863
|
return i.default;
|
|
@@ -1889,7 +1891,7 @@ function ua() {
|
|
|
1889
1891
|
return w;
|
|
1890
1892
|
}
|
|
1891
1893
|
return Jn = 1, Pt.exports = m, Pt.exports.clsx = m, Pt.exports;
|
|
1892
|
-
})(), a = bn(), o = fo(), l = Ht(), i = f(
|
|
1894
|
+
})(), a = bn(), o = fo(), l = Ht(), i = f(ua()), c = f(ho());
|
|
1893
1895
|
function f(v) {
|
|
1894
1896
|
return v && v.__esModule ? v : { default: v };
|
|
1895
1897
|
}
|
|
@@ -1970,27 +1972,27 @@ function ua() {
|
|
|
1970
1972
|
e.default = b, y(b, "displayName", "Draggable"), y(b, "propTypes", { ...i.default.propTypes, axis: n.default.oneOf(["both", "x", "y", "none"]), bounds: n.default.oneOfType([n.default.shape({ left: n.default.number, right: n.default.number, top: n.default.number, bottom: n.default.number }), n.default.string, n.default.oneOf([!1])]), defaultClassName: n.default.string, defaultClassNameDragging: n.default.string, defaultClassNameDragged: n.default.string, defaultPosition: n.default.shape({ x: n.default.number, y: n.default.number }), positionOffset: n.default.shape({ x: n.default.oneOfType([n.default.number, n.default.string]), y: n.default.oneOfType([n.default.number, n.default.string]) }), position: n.default.shape({ x: n.default.number, y: n.default.number }), className: l.dontSetMe, style: l.dontSetMe, transform: l.dontSetMe }), y(b, "defaultProps", { ...i.default.defaultProps, axis: "both", bounds: !1, defaultClassName: "react-draggable", defaultClassNameDragging: "react-draggable-dragging", defaultClassNameDragged: "react-draggable-dragged", defaultPosition: { x: 0, y: 0 }, scale: 1 });
|
|
1971
1973
|
})(Zn)), Zn;
|
|
1972
1974
|
}
|
|
1973
|
-
var
|
|
1975
|
+
var pa = (function() {
|
|
1974
1976
|
if (sr) return yt.exports;
|
|
1975
1977
|
sr = 1;
|
|
1976
|
-
const { default: e, DraggableCore: r } =
|
|
1978
|
+
const { default: e, DraggableCore: r } = da();
|
|
1977
1979
|
return yt.exports = e, yt.exports.default = e, yt.exports.DraggableCore = r, yt.exports;
|
|
1978
1980
|
})();
|
|
1979
|
-
const
|
|
1981
|
+
const fa = Ar(pa), lr = { x: 0, y: 0 }, ha = oe(de((e, r) => {
|
|
1980
1982
|
const { defaultPosition: n = lr, PaperComponent: t = Et, onDragStop: s, rootSel: a = ".MuiModal-root", handleSel: o = ".draggable-title", titleSize: l, rootSize: i, ...c } = e, f = ge(null), x = Z(() => l && i ? { left: 0, top: 0, right: i.width - l.width, bottom: i.height - l.height } : null, [l, i]), [y, b] = ne(null), [v, m] = ne(null), [h, p] = ne(null);
|
|
1981
1983
|
return Cr(() => {
|
|
1982
1984
|
!y && n && b(n ?? lr);
|
|
1983
1985
|
}, [n]), Se(() => {
|
|
1984
1986
|
x && y && m({ x: Math.max(0, Math.min(y.x, x.right)), y: Math.max(0, Math.min(y.y, x.bottom)) });
|
|
1985
|
-
}, [y, x]), k(
|
|
1987
|
+
}, [y, x]), k(fa, { nodeRef: f, handle: o, cancel: '[class*="MuiDialogContent-root"]', position: v, bounds: x ?? ".MuiModal-root", onStop: s, onStart: (u, w) => {
|
|
1986
1988
|
const E = u;
|
|
1987
1989
|
p({ x: (E.clientX ?? E.touches?.[0]?.clientX) - w.x, y: (E.clientY ?? E.touches?.[0]?.clientY) - w.y });
|
|
1988
1990
|
}, onDrag: (u, w) => {
|
|
1989
1991
|
const E = u, T = E.clientX ?? E.touches?.[0]?.clientX, L = E.clientY ?? E.touches?.[0]?.clientY;
|
|
1990
1992
|
b({ x: T - h.x, y: L - h.y });
|
|
1991
1993
|
}, children: k(t, { ref: At([f, r]), ...c }) });
|
|
1992
|
-
})),
|
|
1993
|
-
const n = ti({ props: e, name: "MuiDialog" }), t = dn(), s = { enter: 0.66 * t.transitions.duration.enteringScreen, exit: 0.66 * t.transitions.duration.leavingScreen }, { title: a = "SheetXL", key: o = "draggable-window", onCancel: l, onDone: i, onShow: c, onShown: f, onHide: x, onClose: y, open: b, autoFocusSel: v, children: m, transitionDuration: h = s, TransitionProps: p, slots: u = Te.EmptyArray, slotProps: w = Te.EmptyArray, sx: E, className: T, onMouseDown: L, initialPosition: O =
|
|
1994
|
+
})), ma = { x: "50", y: "50" }, ga = oe(de((e, r) => {
|
|
1995
|
+
const n = ti({ props: e, name: "MuiDialog" }), t = dn(), s = { enter: 0.66 * t.transitions.duration.enteringScreen, exit: 0.66 * t.transitions.duration.leavingScreen }, { title: a = "SheetXL", key: o = "draggable-window", onCancel: l, onDone: i, onShow: c, onShown: f, onHide: x, onClose: y, open: b, autoFocusSel: v, children: m, transitionDuration: h = s, TransitionProps: p, slots: u = Te.EmptyArray, slotProps: w = Te.EmptyArray, sx: E, className: T, onMouseDown: L, initialPosition: O = ma, isModal: R = !1, ...S } = n;
|
|
1994
1996
|
let D = u.transition ?? Wo;
|
|
1995
1997
|
const P = u.backdrop ?? Ho, M = u.paper ?? Et;
|
|
1996
1998
|
let I = w.transition;
|
|
@@ -2032,9 +2034,9 @@ const pa = Ar(da), lr = { x: 0, y: 0 }, fa = oe(de((e, r) => {
|
|
|
2032
2034
|
Se(() => {
|
|
2033
2035
|
re && ue();
|
|
2034
2036
|
}, [re]);
|
|
2035
|
-
let Ce = k(
|
|
2037
|
+
let Ce = k(ca, { focusTrapOptions: { escapeDeactivates: !1, allowOutsideClick: !0, initialFocus: !1 }, ref: B, active: re, children: k(D, { in: G, timeout: h, role: "presentation", ...Le, children: k(X, { className: "MuiDialog-container", ref: d, tabIndex: 0, sx: { outline: "none", position: "relative" }, onKeyDown: ($) => {
|
|
2036
2038
|
$.which === Pe.Escape && (_(), ee.current?.start($, { center: !1 }), setTimeout(() => ee.current?.stop($), 180)), $.stopPropagation();
|
|
2037
|
-
}, children: J(
|
|
2039
|
+
}, children: J(ha, { ref: At([F, r]), className: Oe({ "Mui-focusVisible": N }, T, "draggable"), sx: { "& *": ($) => Kr($), pointerEvents: "auto", userSelect: "none", "&:hover:not([disabled]):not(.Mui-focusVisible)": { outline: ($) => `solid ${me($.palette.text?.primary, 0.2)} 1px` }, "&.Mui-focusVisible": { outline: ($) => `solid ${me($.palette.text?.primary, 0.2)} 1px` }, position: "absolute", maxWidth: "100%", ...E }, defaultPosition: z, titleSize: C, rootSize: ce, PaperComponent: M, ...S, ...V, children: [a ? k(Uo, { className: Oe({ "Mui-selected": N }, "draggable-title"), sx: { cursor: "move", display: "flex", color: ($) => $.palette.text.secondary, boxSizing: "border-box", padding: "0 0", transitionProperty: "opacity", transitionDuration: ($) => `${$.transitions.duration.shortest}ms`, opacity: 0.7, "&.Mui-selected": { opacity: 1, transitionDuration: ($) => $.transitions.duration.shortest / 2 + "ms" }, backgroundColor: ($) => me($.palette.action.hover, 0.03) }, ref: g, children: J(X, { sx: { display: "flex", flex: "1 1 10%", flexDirection: "row", alignItems: "center", marginTop: ($) => $.spacing(1), marginLeft: ($) => $.spacing(1), marginRight: ($) => $.spacing(1) }, children: [k(X, { sx: { flex: "1 1 100%", paddingLeft: ($) => $.spacing(1) }, children: a }), k(pt, { label: "Close", children: k(Ze, { "aria-label": "close", sx: { color: ($) => $.palette.text.icon ?? $.palette.action.active }, touchRippleRef: ee, onPointerDown: ($) => {
|
|
2038
2040
|
ee.current?.start($, { center: !1 }), $.stopPropagation(), $.preventDefault();
|
|
2039
2041
|
}, onPointerUp: _, children: k(be, { iconKey: "Close" }) }) })] }) }) : null, m] }) }) }) }), Y = null;
|
|
2040
2042
|
R && (Y = k(P, { ...A, open: G, onMouseDown: ($) => {
|
|
@@ -2057,12 +2059,12 @@ const pa = Ar(da), lr = { x: 0, y: 0 }, fa = oe(de((e, r) => {
|
|
|
2057
2059
|
}));
|
|
2058
2060
|
var Ve = typeof window < "u" ? window : { screen: {}, navigator: {} }, ut = (Ve.matchMedia || function() {
|
|
2059
2061
|
return { matches: !1 };
|
|
2060
|
-
}).bind(Ve),
|
|
2062
|
+
}).bind(Ve), ya = { get passive() {
|
|
2061
2063
|
return !0;
|
|
2062
2064
|
} }, cr = function() {
|
|
2063
2065
|
};
|
|
2064
|
-
Ve.addEventListener && Ve.addEventListener("p", cr,
|
|
2065
|
-
var vn = "ontouchstart" in Ve,
|
|
2066
|
+
Ve.addEventListener && Ve.addEventListener("p", cr, ya), Ve.removeEventListener && Ve.removeEventListener("p", cr, !1);
|
|
2067
|
+
var vn = "ontouchstart" in Ve, ba = vn || "TouchEvent" in Ve && ut("(any-pointer: coarse)").matches, ur = (Ve.navigator.maxTouchPoints || 0) > 0 || ba, mo = Ve.navigator.userAgent || "", va = ut("(pointer: coarse)").matches && /iPad|Macintosh/.test(mo) && Math.min(Ve.screen.width || 0, Ve.screen.height || 0) >= 768, go = (ut("(pointer: coarse)").matches || !ut("(pointer: fine)").matches && vn) && !/Windows.*Firefox/.test(mo), xa = ut("(any-pointer: fine)").matches || ut("(any-hover: hover)").matches || va || !vn, dr = !ur || !xa && go ? ur ? "touchOnly" : "mouseOnly" : "hybrid", wa = dr === "mouseOnly" ? "mouse" : dr === "touchOnly" || go ? "touch" : "mouse", St = (e) => e.type === "checkbox", tt = (e) => e instanceof Date, Re = (e) => e == null;
|
|
2066
2068
|
const yo = (e) => typeof e == "object";
|
|
2067
2069
|
var we = (e) => !Re(e) && !Array.isArray(e) && yo(e) && !tt(e), xn = typeof window < "u" && window.HTMLElement !== void 0 && typeof document < "u";
|
|
2068
2070
|
function De(e) {
|
|
@@ -2097,12 +2099,12 @@ var Ut = (e) => /^\w*$/.test(e), xe = (e) => e === void 0, on = (e) => Array.isA
|
|
|
2097
2099
|
e[l] = i, e = e[l];
|
|
2098
2100
|
}
|
|
2099
2101
|
};
|
|
2100
|
-
const
|
|
2102
|
+
const ka = "blur", Sa = "focusout", Da = "onBlur", bo = "onChange", vo = "onSubmit", Oa = "onTouched", Ct = "all", Ca = "max", Ea = "min", Ma = "maxLength", Ta = "minLength", pr = "pattern", fr = "required", Pa = "validate", xo = q.createContext(null);
|
|
2101
2103
|
xo.displayName = "HookFormContext";
|
|
2102
|
-
const
|
|
2104
|
+
const Ra = (e) => {
|
|
2103
2105
|
const { children: r, ...n } = e;
|
|
2104
2106
|
return q.createElement(xo.Provider, { value: n }, r);
|
|
2105
|
-
},
|
|
2107
|
+
}, Na = typeof window < "u" ? q.useLayoutEffect : q.useEffect;
|
|
2106
2108
|
var Fe = (e) => typeof e == "string", an = (e) => Re(e) || !yo(e);
|
|
2107
2109
|
function qe(e, r, n = /* @__PURE__ */ new WeakSet()) {
|
|
2108
2110
|
if (an(e) || an(r)) return e === r;
|
|
@@ -2121,7 +2123,7 @@ function qe(e, r, n = /* @__PURE__ */ new WeakSet()) {
|
|
|
2121
2123
|
}
|
|
2122
2124
|
return !0;
|
|
2123
2125
|
}
|
|
2124
|
-
var
|
|
2126
|
+
var Fa = (e, r, n, t, s) => r ? { ...n[e], types: { ...n[e] && n[e].types ? n[e].types : {}, [t]: s || !0 } } : {}, xt = (e) => Array.isArray(e) ? e : [e], hr = () => {
|
|
2125
2127
|
let e = [];
|
|
2126
2128
|
return { get observers() {
|
|
2127
2129
|
return e;
|
|
@@ -2193,9 +2195,9 @@ function br(e) {
|
|
|
2193
2195
|
const r = e.ref;
|
|
2194
2196
|
return kn(r) ? r.files : Sn(r) ? Co(e.refs).value : ko(r) ? [...r.selectedOptions].map(({ value: n }) => n) : St(r) ? Do(e.refs).value : Oo(xe(r.value) ? e.ref.value : r.value, e);
|
|
2195
2197
|
}
|
|
2196
|
-
var jt = (e) => e instanceof RegExp, vt = (e) => xe(e) ? e : jt(e) ? e.source : we(e) ? jt(e.value) ? e.value.source : e.value : e, vr = (e) => ({ isOnSubmit: !e || e === vo, isOnBlur: e ===
|
|
2198
|
+
var jt = (e) => e instanceof RegExp, vt = (e) => xe(e) ? e : jt(e) ? e.source : we(e) ? jt(e.value) ? e.value.source : e.value : e, vr = (e) => ({ isOnSubmit: !e || e === vo, isOnBlur: e === Da, isOnChange: e === bo, isOnAll: e === Ct, isOnTouch: e === Oa });
|
|
2197
2199
|
const xr = "AsyncFunction";
|
|
2198
|
-
var
|
|
2200
|
+
var _a = (e) => !!e && !!e.validate && !!(Be(e.validate) && e.validate.constructor.name === xr || we(e.validate) && Object.values(e.validate).find((r) => r.constructor.name === xr)), wr = (e, r, n) => !n && (r.watchAll || r.watch.has(e) || [...r.watch].some((t) => e.startsWith(t) && /^\.\w+/.test(e.slice(t.length))));
|
|
2199
2201
|
const Dt = (e, r, n, t) => {
|
|
2200
2202
|
for (const s of n || Object.keys(e)) {
|
|
2201
2203
|
const a = W(e, s);
|
|
@@ -2221,7 +2223,7 @@ function kr(e, r, n) {
|
|
|
2221
2223
|
}
|
|
2222
2224
|
return { name: n };
|
|
2223
2225
|
}
|
|
2224
|
-
var
|
|
2226
|
+
var Aa = (e, r, n) => {
|
|
2225
2227
|
const t = xt(W(e, n));
|
|
2226
2228
|
return fe(t, "root", r[n]), fe(e, n, t), e;
|
|
2227
2229
|
};
|
|
@@ -2233,7 +2235,7 @@ var ot = (e) => we(e) && !jt(e) ? e : { value: e, message: "" }, Dr = async (e,
|
|
|
2233
2235
|
if (!p || r.has(m)) return {};
|
|
2234
2236
|
const w = l ? l[0] : o, E = (M) => {
|
|
2235
2237
|
s && w.reportValidity && (w.setCustomValidity($e(M) ? "" : M || ""), w.reportValidity());
|
|
2236
|
-
}, T = {}, L = Sn(o), O = St(o), R = L || O, S = (h || kn(o)) && xe(o.value) && xe(u) || Bt(o) && o.value === "" || u === "" || Array.isArray(u) && !u.length, D =
|
|
2238
|
+
}, T = {}, L = Sn(o), O = St(o), R = L || O, S = (h || kn(o)) && xe(o.value) && xe(u) || Bt(o) && o.value === "" || u === "" || Array.isArray(u) && !u.length, D = Fa.bind(null, m, t, T), P = (M, I, A, V = Ma, B = Ta) => {
|
|
2237
2239
|
const z = M ? I : A;
|
|
2238
2240
|
T[m] = { type: M ? V : B, message: z, ref: o, ...D(M ? V : B, z) };
|
|
2239
2241
|
};
|
|
@@ -2251,7 +2253,7 @@ var ot = (e) => we(e) && !jt(e) ? e : { value: e, message: "" }, Dr = async (e,
|
|
|
2251
2253
|
const B = o.valueAsNumber || u && +u;
|
|
2252
2254
|
Re(A.value) || (M = B > A.value), Re(V.value) || (I = B < V.value);
|
|
2253
2255
|
}
|
|
2254
|
-
if ((M || I) && (P(!!M, A.message, V.message,
|
|
2256
|
+
if ((M || I) && (P(!!M, A.message, V.message, Ca, Ea), !t)) return E(T[m].message), T;
|
|
2255
2257
|
}
|
|
2256
2258
|
if ((c || f) && !S && (Fe(u) || a && Array.isArray(u))) {
|
|
2257
2259
|
const M = ot(c), I = ot(f), A = !Re(M.value) && u.length > +M.value, V = !Re(I.value) && u.length < +I.value;
|
|
@@ -2264,7 +2266,7 @@ var ot = (e) => we(e) && !jt(e) ? e : { value: e, message: "" }, Dr = async (e,
|
|
|
2264
2266
|
if (v) {
|
|
2265
2267
|
if (Be(v)) {
|
|
2266
2268
|
const M = Sr(await v(u, n), w);
|
|
2267
|
-
if (M && (T[m] = { ...M, ...D(
|
|
2269
|
+
if (M && (T[m] = { ...M, ...D(Pa, M.message) }, !t)) return E(M.message), T;
|
|
2268
2270
|
} else if (we(v)) {
|
|
2269
2271
|
let M = {};
|
|
2270
2272
|
for (const I in v) {
|
|
@@ -2277,9 +2279,9 @@ var ot = (e) => we(e) && !jt(e) ? e : { value: e, message: "" }, Dr = async (e,
|
|
|
2277
2279
|
}
|
|
2278
2280
|
return E(!0), T;
|
|
2279
2281
|
};
|
|
2280
|
-
const
|
|
2281
|
-
function
|
|
2282
|
-
let r, n = { ...
|
|
2282
|
+
const Ia = { mode: vo, reValidateMode: bo, shouldFocusError: !0 };
|
|
2283
|
+
function Va(e = {}) {
|
|
2284
|
+
let r, n = { ...Ia, ...e }, t = { submitCount: 0, isDirty: !1, isReady: !1, isLoading: Be(n.defaultValues), isValidating: !1, isSubmitted: !1, isSubmitting: !1, isSubmitSuccessful: !1, isValid: !1, touchedFields: {}, dirtyFields: {}, validatingFields: {}, errors: n.errors || {}, disabled: n.disabled || !1 }, s = {}, a = (we(n.defaultValues) || we(n.values)) && De(n.defaultValues || n.values) || {}, o = n.shouldUnregister ? {} : De(a), l = { action: !1, mount: !1, watch: !1 }, i = { mount: /* @__PURE__ */ new Set(), disabled: /* @__PURE__ */ new Set(), unMount: /* @__PURE__ */ new Set(), array: /* @__PURE__ */ new Set(), watch: /* @__PURE__ */ new Set() }, c = 0;
|
|
2283
2285
|
const f = { isDirty: !1, dirtyFields: !1, validatingFields: !1, touchedFields: !1, isValidating: !1, isValid: !1, errors: !1 };
|
|
2284
2286
|
let x = { ...f };
|
|
2285
2287
|
const y = { array: hr(), state: hr() }, b = n.criteriaMode === Ct, v = async (d) => {
|
|
@@ -2341,11 +2343,11 @@ function Ia(e = {}) {
|
|
|
2341
2343
|
if (_) {
|
|
2342
2344
|
const { _f: N, ...j } = _;
|
|
2343
2345
|
if (N) {
|
|
2344
|
-
const H = i.array.has(N.name), U = _._f &&
|
|
2346
|
+
const H = i.array.has(N.name), U = _._f && _a(_._f);
|
|
2345
2347
|
U && f.validatingFields && m([N.name], !0);
|
|
2346
2348
|
const K = await Dr(_, i.disabled, o, b, n.shouldUseNativeValidation && !g, H);
|
|
2347
2349
|
if (U && f.validatingFields && m([N.name]), K[N.name] && (C.valid = !1, g)) break;
|
|
2348
|
-
!g && (W(K, N.name) ? H ?
|
|
2350
|
+
!g && (W(K, N.name) ? H ? Aa(t.errors, K, N.name) : fe(t.errors, N.name, K[N.name]) : ve(t.errors, N.name));
|
|
2349
2351
|
}
|
|
2350
2352
|
!Ne(j) && await E(j, g, C);
|
|
2351
2353
|
}
|
|
@@ -2379,7 +2381,7 @@ function Ia(e = {}) {
|
|
|
2379
2381
|
}, j = vr(n.mode), H = vr(n.reValidateMode);
|
|
2380
2382
|
if (_) {
|
|
2381
2383
|
let U, K;
|
|
2382
|
-
const te = g.type ? br(_._f) : ((pe) => we(pe) && pe.target ? St(pe.target) ? pe.target.checked : pe.target.value : pe)(d), ue = d.type ===
|
|
2384
|
+
const te = g.type ? br(_._f) : ((pe) => we(pe) && pe.target ? St(pe.target) ? pe.target.checked : pe.target.value : pe)(d), ue = d.type === ka || d.type === Sa, he = !((pe) => pe.mount && (pe.required || pe.min || pe.max || pe.maxLength || pe.minLength || pe.pattern || pe.validate))(_._f) && !n.resolver && !W(t.errors, C) && !_._f.deps || ((pe, $, ke, ft, He) => !He.isOnAll && (!ke && He.isOnTouch ? !($ || pe) : (ke ? ft.isOnBlur : He.isOnBlur) ? !pe : !(ke ? ft.isOnChange : He.isOnChange) || pe))(ue, W(t.touchedFields, C), t.isSubmitted, H, j), Le = wr(C, i, ue);
|
|
2383
2385
|
fe(o, C, te), ue ? g && g.readOnly || (_._f.onBlur && _._f.onBlur(d), r && r(0)) : _._f.onChange && _._f.onChange(d);
|
|
2384
2386
|
const Ce = p(C, te, ue), Y = !Ne(Ce) || Le;
|
|
2385
2387
|
if (!ue && y.state.next({ name: C, type: d.type, values: De(o) }), he) return (f.isValid || x.isValid) && (n.mode === "onBlur" ? ue && v() : ue || v()), Y && y.state.next({ name: C, ...Le ? {} : Ce });
|
|
@@ -2556,15 +2558,15 @@ function Ia(e = {}) {
|
|
|
2556
2558
|
}, getFieldState: A };
|
|
2557
2559
|
return { ...ce, formControl: ce };
|
|
2558
2560
|
}
|
|
2559
|
-
function
|
|
2561
|
+
function La(e = {}) {
|
|
2560
2562
|
const r = q.useRef(void 0), n = q.useRef(void 0), [t, s] = q.useState({ isDirty: !1, isValidating: !1, isLoading: Be(e.defaultValues), isSubmitted: !1, isSubmitting: !1, isSubmitSuccessful: !1, isValid: !1, submitCount: 0, dirtyFields: {}, touchedFields: {}, validatingFields: {}, errors: e.errors || {}, disabled: e.disabled || !1, isReady: !1, defaultValues: Be(e.defaultValues) ? void 0 : e.defaultValues });
|
|
2561
2563
|
if (!r.current) if (e.formControl) r.current = { ...e.formControl, formState: t }, e.defaultValues && !Be(e.defaultValues) && e.formControl.reset(e.defaultValues, e.resetOptions);
|
|
2562
2564
|
else {
|
|
2563
|
-
const { formControl: o, ...l } =
|
|
2565
|
+
const { formControl: o, ...l } = Va(e);
|
|
2564
2566
|
r.current = { ...l, formState: t };
|
|
2565
2567
|
}
|
|
2566
2568
|
const a = r.current.control;
|
|
2567
|
-
return a._options = e,
|
|
2569
|
+
return a._options = e, Na(() => {
|
|
2568
2570
|
const o = a._subscribe({ formState: a._proxyFormState, callback: () => s({ ...a._formState }), reRenderRoot: !0 });
|
|
2569
2571
|
return s((l) => ({ ...l, isReady: !0 })), a._formState.isReady = !0, o;
|
|
2570
2572
|
}, [a]), q.useEffect(() => a._disableForm(e.disabled), [a, e.disabled]), q.useEffect(() => {
|
|
@@ -2591,8 +2593,8 @@ function Va(e = {}) {
|
|
|
2591
2593
|
return f;
|
|
2592
2594
|
})(t, a), r.current;
|
|
2593
2595
|
}
|
|
2594
|
-
const
|
|
2595
|
-
const { description: n, icon: t, onCancel: s, onOption: a, onDone: o, onValidateOption: l, createOptionsButton: i, options: c =
|
|
2596
|
+
const Ba = ["Ok", "Cancel"], Or = oe(de((e, r) => {
|
|
2597
|
+
const { description: n, icon: t, onCancel: s, onOption: a, onDone: o, onValidateOption: l, createOptionsButton: i, options: c = Ba, autoFocusSel: f = ".defaultOption", defaultOption: x = c[0], cancelOption: y = "Cancel", children: b, ...v } = e, m = La({ shouldUseNativeValidation: !1 }), { handleSubmit: h, formState: p } = m, u = ge(null), w = ge(null), E = ge(null), T = ae(async (P) => {
|
|
2596
2598
|
let M;
|
|
2597
2599
|
try {
|
|
2598
2600
|
if (M = await Promise.resolve(l?.(P)) ?? !0, M !== !0) return;
|
|
@@ -2626,7 +2628,7 @@ const La = ["Ok", "Cancel"], Or = oe(de((e, r) => {
|
|
|
2626
2628
|
}
|
|
2627
2629
|
return P;
|
|
2628
2630
|
}, [c, x, p]);
|
|
2629
|
-
return k(
|
|
2631
|
+
return k(ga, { onCancel: O, initialPosition: { y: wa === "touch" ? "15" : "35" }, onDone: o, autoFocusSel: f, isModal: !0, ref: r, ...v, children: k(Ra, { ...m, children: J("form", { ref: E, onSubmit: h(L), children: [k(Go, { dividers: !0, onKeyDown: (P) => {
|
|
2630
2632
|
if (P.isDefaultPrevented()) return;
|
|
2631
2633
|
P.stopPropagation();
|
|
2632
2634
|
let M = null, I = null;
|
|
@@ -2640,21 +2642,21 @@ const La = ["Ok", "Cancel"], Or = oe(de((e, r) => {
|
|
|
2640
2642
|
I.current?.stop(P), A && T(M);
|
|
2641
2643
|
}, 180));
|
|
2642
2644
|
}, children: J(X, { sx: { display: "flex", flexDirection: "column", whiteSpace: "pre-wrap", rowGap: (P) => P.spacing(t || n ? 1.5 : 0) }, children: [J(X, { sx: { display: "flex", flexDirection: "column" }, children: [t, k(Me, { children: n })] }), b] }) }), k(Xo, { sx: { paddingTop: (P) => P.spacing(1), paddingBottom: (P) => P.spacing(1), paddingLeft: (P) => P.spacing(1), paddingRight: (P) => P.spacing(1), backgroundColor: (P) => me(P.palette.action.hover, 0.03) }, children: D })] }) }) });
|
|
2643
|
-
})),
|
|
2645
|
+
})), ja = Object.freeze(Object.defineProperty({ __proto__: null, OptionsDialog: Or, default: Or }, Symbol.toStringTag, { value: "Module" })), $a = q.lazy(() => Promise.resolve().then(() => ja)), Cs = (e) => {
|
|
2644
2646
|
const { showModal: r } = gn();
|
|
2645
2647
|
return (n) => new Promise((t) => {
|
|
2646
|
-
const s = r(
|
|
2648
|
+
const s = r($a, { ...e, ...n, onOption(a) {
|
|
2647
2649
|
n?.onOption?.(a, a === n.cancelOption, a === n.defaultOption), t(a);
|
|
2648
2650
|
}, onDone: () => {
|
|
2649
2651
|
n?.onDone?.(), s.hide();
|
|
2650
2652
|
} });
|
|
2651
2653
|
});
|
|
2652
|
-
},
|
|
2654
|
+
}, za = q.lazy(() => import("./bIjdCamqibd-xaLk.mjs")), Es = (e) => {
|
|
2653
2655
|
const { showModal: r } = gn();
|
|
2654
2656
|
return (n) => {
|
|
2655
2657
|
const { defaultOption: t = n.options?.[0], cancelOption: s = "Cancel", ...a } = n;
|
|
2656
2658
|
return new Promise((o) => {
|
|
2657
|
-
const l = r(
|
|
2659
|
+
const l = r(za, { ...e, defaultOption: t, cancelOption: s, onOption(i) {
|
|
2658
2660
|
a?.onOption?.(i, i === s, i === t), o({ input: "", option: i });
|
|
2659
2661
|
}, onInputOption(i, c) {
|
|
2660
2662
|
a?.onInputOption?.(i, c), o({ input: i, option: c });
|
|
@@ -2666,7 +2668,7 @@ const La = ["Ok", "Cancel"], Or = oe(de((e, r) => {
|
|
|
2666
2668
|
}, Dn = oe(de((e, r) => {
|
|
2667
2669
|
const { command: n, disabled: t = !1, shortcut: s, children: a, ...o } = e;
|
|
2668
2670
|
return cn(n), k(pt, { ref: r, label: t !== void 0 ? n?.label() : "", shortcut: s !== void 0 ? s : Array.isArray(n?.shortcut()) ? n?.shortcut()[0] : n?.shortcut(), description: n?.description(), disabled: t, chips: n?.tags(), componentDisabled: n?.disabled(), ...o, children: k("div", { style: { display: "flex", flex: "1 1 0%" }, children: a }) });
|
|
2669
|
-
})),
|
|
2671
|
+
})), Wa = k(be, {}), Eo = oe(de((e, r) => {
|
|
2670
2672
|
const { command: n, commandHook: t, scope: s, context: a, icon: o, label: l, disabled: i = !1, variant: c = Ae.Toolbar, shortcut: f, commandState: x, tooltipProps: y, ...b } = e, v = ge(null), m = ge(!1), h = Z(() => {
|
|
2671
2673
|
const R = { onExecute(S, D) {
|
|
2672
2674
|
t?.onExecute?.(S, D), m.current || (v.current?.start({ center: !1 }), setTimeout(() => v.current?.stop({}), 180)), m.current = !1;
|
|
@@ -2683,14 +2685,14 @@ const La = ["Ok", "Cancel"], Or = oe(de((e, r) => {
|
|
|
2683
2685
|
}, [p, t, x]), T = Z(() => {
|
|
2684
2686
|
if (o) return typeof o == "function" ? o(n) : o;
|
|
2685
2687
|
let R = n?.icon(a);
|
|
2686
|
-
return R ? (typeof R == "string" && (R = k(be, { iconKey: R })), R) : c === Ae.Toolbar || n?.state() ? void 0 :
|
|
2687
|
-
}, [p, o]), L = Z(() => ({ tabIndex: 0, ref: r, selected: n?.state(), icon: c === Ae.Toolbar ? T : k(
|
|
2688
|
+
return R ? (typeof R == "string" && (R = k(be, { iconKey: R })), R) : c === Ae.Toolbar || n?.state() ? void 0 : Wa;
|
|
2689
|
+
}, [p, o]), L = Z(() => ({ tabIndex: 0, ref: r, selected: n?.state(), icon: c === Ae.Toolbar ? T : k(Ii, { selected: n?.state() ?? !1, children: T }), touchRippleRef: v, disabled: i || !n || n.disabled(), onMouseDown: u, onMouseUp: w, onKeyDown: E }), [p, t, i, T]);
|
|
2688
2690
|
let O;
|
|
2689
2691
|
return O = c === Ae.Menuitem ? k(Ot, { ...b, chips: n?.tags(), ...L, children: l ?? n?.label(s, a) }) : k(Wt, { ...b, ...L }), (l || n?.label()) && ((n.disabled() || i) && (O = k("div", { children: O })), O = k(Dn, { command: n, placement: c === Ae.Toolbar ? "bottom-start" : "right-start", shortcut: f, ...y, children: O })), O;
|
|
2690
2692
|
}));
|
|
2691
2693
|
Eo.displayName = "CommandButton";
|
|
2692
|
-
const
|
|
2693
|
-
const { command: n, scope: t, icon: s =
|
|
2694
|
+
const Ha = k(be, {}), Ms = oe(de((e, r) => {
|
|
2695
|
+
const { command: n, scope: t, icon: s = Ha, label: a, variant: o = Ae.Toolbar, disabled: l = !1, commandHook: i, ...c } = e, f = ge(null), x = ge(!1), y = Z(() => {
|
|
2694
2696
|
const O = { onExecute(R, S) {
|
|
2695
2697
|
i?.onExecute?.(R, S), x.current || (f.current?.start({ center: !1 }), setTimeout(() => f.current?.stop({}), 180)), x.current = !1;
|
|
2696
2698
|
}, onError(R, S, D) {
|
|
@@ -2756,10 +2758,10 @@ const Wa = k(be, {}), Es = oe(de((e, r) => {
|
|
|
2756
2758
|
}), O.selected = b ?? E?.state(), O.createPopupPanel = R, n === Ae.Toolbar ? k(mn, { ...m, ...O, ref: r }) : k(Zr, { ...m, ...O, ref: r });
|
|
2757
2759
|
}));
|
|
2758
2760
|
Mo.displayName = "CommandPopupButton";
|
|
2759
|
-
const
|
|
2760
|
-
const { command: r, label: n, scope: t, icon: s =
|
|
2761
|
+
const Ua = k(be, { iconKey: "Check" }), Ts = (e) => {
|
|
2762
|
+
const { command: r, label: n, scope: t, icon: s = Ua, sx: a, ...o } = e;
|
|
2761
2763
|
return J(X, { sx: { display: "flex", flexDirection: "row", textTransform: "none", alignItems: "center", fontSize: (l) => l.typography.subtitle2.fontSize, ...a }, ...o, children: [s, k(Me, { component: "div", sx: { whiteSpace: "nowrap", lineHeight: "1", paddingLeft: (l) => l.spacing(0.25), paddingRight: (l) => l.spacing(0.25), fontSize: "inherit" }, children: r?.label(t) || n })] });
|
|
2762
|
-
},
|
|
2764
|
+
}, Ya = oe(de((e, r) => {
|
|
2763
2765
|
const { sx: n, commands: t, commandButtonProps: s, parentFloat: a, createToolbarPalette: o, children: l, ...i } = e, c = Tr(r, () => ({}), []), [f, x] = ne(null), { reference: y } = zt({ label: "toolbar", anchor: c.current, parentFloat: a, createPopupPanel: null }), b = _e(() => {
|
|
2764
2766
|
const O = f;
|
|
2765
2767
|
O && requestAnimationFrame(() => {
|
|
@@ -2790,12 +2792,12 @@ const Ha = k(be, { iconKey: "Check" }), Ms = (e) => {
|
|
|
2790
2792
|
f && O.which === Pe.Escape && f.focus();
|
|
2791
2793
|
}, ...i, children: k("div", { ref: c, style: { flex: "1 1 100%", display: "flex", flexWrap: "wrap", rowGap: `${T}px`, columnGap: `${E}px`, alignItems: "center", maxWidth: "100%" }, children: L }) });
|
|
2792
2794
|
}));
|
|
2793
|
-
|
|
2794
|
-
const
|
|
2795
|
+
Ya.displayName = "CommandToolbar";
|
|
2796
|
+
const Ga = (e) => {
|
|
2795
2797
|
const { key: r, ...n } = e;
|
|
2796
2798
|
return k(Eo, { ...n }, r);
|
|
2797
|
-
},
|
|
2798
|
-
const { popupCommandKeys: n, renderCommandButton: t =
|
|
2799
|
+
}, Ps = oe(de((e, r) => {
|
|
2800
|
+
const { popupCommandKeys: n, renderCommandButton: t = Ga, scope: s, commands: a, quickCommand: o, popupScope: l = o, commandState: i, commandHook: c, disabled: f = !1, ...x } = e, y = un(a, n ? [o, ...n] : [o]), b = _e((v, m) => {
|
|
2799
2801
|
const h = { variant: Ae.Menuitem, commandHook: c, commandState: i, scope: l, disabled: f }, p = [];
|
|
2800
2802
|
for (let u = 0; u < n?.length; u++) {
|
|
2801
2803
|
const w = n[u];
|
|
@@ -2811,69 +2813,70 @@ const Ya = (e) => {
|
|
|
2811
2813
|
return n ? k(Mo, { ref: r, commands: a, disabled: f, commandHook: c, commandState: i, scope: s, quickCommand: o, createPopupPanel: b, ...x }) : t({ ref: r, disabled: f, commandHook: c, commandState: i, scope: s, command: y[0], ...x });
|
|
2812
2814
|
}));
|
|
2813
2815
|
export {
|
|
2814
|
-
|
|
2816
|
+
vs as $,
|
|
2815
2817
|
Xr as A,
|
|
2816
2818
|
ss as B,
|
|
2817
2819
|
ls as C,
|
|
2818
2820
|
cs as D,
|
|
2819
2821
|
Wt as E,
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2822
|
+
us as F,
|
|
2823
|
+
di as G,
|
|
2824
|
+
pi as H,
|
|
2825
|
+
Lr as I,
|
|
2826
|
+
Br as J,
|
|
2827
|
+
xs as K,
|
|
2826
2828
|
li as L,
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
+
dt as M,
|
|
2830
|
+
Ci as N,
|
|
2829
2831
|
Or as O,
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2832
|
+
Ss as P,
|
|
2833
|
+
Os as Q,
|
|
2834
|
+
ga as R,
|
|
2835
|
+
Ii as S,
|
|
2836
|
+
fs as T,
|
|
2835
2837
|
Cs as U,
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2838
|
+
Es as V,
|
|
2839
|
+
$i as W,
|
|
2840
|
+
Ds as X,
|
|
2841
|
+
gn as Y,
|
|
2842
|
+
Gr as Z,
|
|
2841
2843
|
bs as _,
|
|
2842
2844
|
Ot as a,
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2845
|
+
Oi as a0,
|
|
2846
|
+
hn as a1,
|
|
2847
|
+
Vn as a2,
|
|
2848
|
+
zt as a3,
|
|
2849
|
+
qr as a4,
|
|
2850
|
+
Eo as a5,
|
|
2851
|
+
Ms as a6,
|
|
2852
|
+
Mo as a7,
|
|
2853
|
+
Dn as a8,
|
|
2854
|
+
Ts as a9,
|
|
2855
|
+
Ya as aa,
|
|
2856
|
+
Ps as ab,
|
|
2857
|
+
ws as b,
|
|
2855
2858
|
Oe as c,
|
|
2856
2859
|
mn as d,
|
|
2857
2860
|
Zr as e,
|
|
2858
|
-
|
|
2861
|
+
ks as f,
|
|
2859
2862
|
pt as g,
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2863
|
+
Di as h,
|
|
2864
|
+
Si as i,
|
|
2865
|
+
_n as j,
|
|
2866
|
+
ms as k,
|
|
2864
2867
|
ds as l,
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2868
|
+
ps as m,
|
|
2869
|
+
xi as n,
|
|
2870
|
+
hs as o,
|
|
2871
|
+
gs as p,
|
|
2872
|
+
rs as q,
|
|
2873
|
+
Fr as r,
|
|
2871
2874
|
Kr as s,
|
|
2872
2875
|
Jr as t,
|
|
2873
|
-
|
|
2876
|
+
ys as u,
|
|
2874
2877
|
os as v,
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2878
|
+
is as w,
|
|
2879
|
+
ri as x,
|
|
2880
|
+
as as y,
|
|
2881
|
+
ai as z
|
|
2879
2882
|
};
|