@sheetxl/utils-mui 0.8.0-beta.10 → 0.8.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/esm/{Cijezc4MPpSmVgKY.mjs → BfHjPJF6LKjMxxHM.mjs} +1 -1
- package/browser/esm/{C9y4YEtSjLoI4eoI.mjs → C-5x5uhaeRkhCSzY.mjs} +2 -2
- package/browser/esm/index.mjs +140 -134
- package/node/esm/index.mjs +584 -578
- package/node/esm/{CDbyr3-seMLR2Y_3.mjs → nxST0XJIy9Y6DTRo.mjs} +1 -1
- package/package.json +3 -3
- package/types/src/components/index.d.ts +1 -0
- package/types/src/components/lazyPanel.d.ts +23 -0
package/node/esm/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.11
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { Backdrop as e, Box as t, Button as
|
|
7
|
+
import { Backdrop as e, Box as t, Button as r, Chip as o, CircularProgress as n, DialogActions as i, DialogContent as a, DialogTitle as l, Divider as s, Fade as c, IconButton as d, Input as p, LinearProgress as u, ListItemButton as m, ListItemIcon as h, Paper as f, Toolbar as g, Tooltip as x, Typography as b, Unstable_TrapFocus as y, createTheme as v, useTheme as w, useThemeProps as k } from "@mui/material";
|
|
8
8
|
import { Fragment as C, jsx as M, jsxs as S } from "react/jsx-runtime";
|
|
9
9
|
import { Children as P, Fragment as T, Suspense as R, cloneElement as D, createContext as I, forwardRef as $, isValidElement as z, memo as B, useCallback as L, useContext as N, useEffect as O, useId as E, useLayoutEffect as F, useMemo as A, useReducer as K, useRef as W, useState as H } from "react";
|
|
10
10
|
import V from "clsx";
|
|
11
11
|
import { alpha as q, darken as j, lighten as Q } from "@mui/system";
|
|
12
12
|
import { CommonUtils as G, ErrorUtils as U, defineLazyModule as X } from "@sheetxl/utils";
|
|
13
|
-
import { Command as Y, CommandButtonType as _, CommandFocusProvider as J, DynamicIcon as Z, FloatPopper as ee, FloatProvider as te, FloatStackProvider as
|
|
13
|
+
import { Command as Y, CommandButtonType as _, CommandFocusProvider as J, DynamicIcon as Z, FloatPopper as ee, FloatProvider as te, FloatStackProvider as re, KeyCodes as oe, KeyModifiers as ne, NotifierType as ie, ReactUtils as ae, ScrollbarOrientation as le, defaultCreateScrollEdgeButton as se, floatThemeScopeProps as ce, getScrollbarCssVariables as de, lazyComponent as pe, useCallbackRef as ue, useCommandButtonRegistry as me, useCommands as he, useFloat as fe, useFloatStack as ge, useFloatSurface as xe, useFullscreenPortal as be, useImperativeElement as ye, useIsomorphicLayoutEffect as ve, useLazyRetry as we, useMeasure as ke, useTranslator as Ce, zIndexVar as Me } from "@sheetxl/utils-react";
|
|
14
14
|
import { useMergeRefs as Se } from "react-merge-refs";
|
|
15
15
|
import { deepmerge as Pe } from "@mui/utils";
|
|
16
16
|
import Te, { useModal as Re } from "mui-modal-provider";
|
|
@@ -28,32 +28,32 @@ var Ne = {
|
|
|
28
28
|
paddingLeft: (e) => e.spacing(.25),
|
|
29
29
|
paddingRight: (e) => e.spacing(.25)
|
|
30
30
|
};
|
|
31
|
-
function Oe(e,
|
|
32
|
-
const
|
|
31
|
+
function Oe(e, r) {
|
|
32
|
+
const o = null != r && !1 !== r && "" !== r ? M(b, {
|
|
33
33
|
component: "div",
|
|
34
34
|
sx: Ne,
|
|
35
|
-
children:
|
|
35
|
+
children: r
|
|
36
36
|
}) : null;
|
|
37
|
-
return e &&
|
|
37
|
+
return e && o ? S(t, {
|
|
38
38
|
sx: {
|
|
39
39
|
display: "flex",
|
|
40
40
|
alignItems: "center"
|
|
41
41
|
},
|
|
42
|
-
children: [e,
|
|
43
|
-
}) : e ??
|
|
42
|
+
children: [e, o]
|
|
43
|
+
}) : e ?? o ?? void 0;
|
|
44
44
|
}
|
|
45
45
|
var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
46
|
-
const
|
|
47
|
-
return M(C, t ? { children:
|
|
46
|
+
const r = Ce();
|
|
47
|
+
return M(C, t ? { children: r(e ? "scroll.edgeLeft" : "scroll.edgeTop") } : { children: r(e ? "scroll.edgeRight" : "scroll.edgeBottom") });
|
|
48
48
|
}, Fe = (e) => {
|
|
49
49
|
const t = {
|
|
50
50
|
style: { cursor: "pointer" },
|
|
51
51
|
...e
|
|
52
52
|
};
|
|
53
|
-
let
|
|
53
|
+
let r = se(t);
|
|
54
54
|
if (void 0 !== e.isBefore && !e.disabled) {
|
|
55
55
|
const t = e.orientation === le.Horizontal;
|
|
56
|
-
|
|
56
|
+
r = M(Bt, {
|
|
57
57
|
title: M(Ee, {
|
|
58
58
|
isHorizontal: t,
|
|
59
59
|
isBefore: e.isBefore
|
|
@@ -62,12 +62,12 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
62
62
|
enterNextDelay: 1600,
|
|
63
63
|
children: e.disabled ? M("div", {
|
|
64
64
|
style: { display: "flex" },
|
|
65
|
-
children:
|
|
66
|
-
}) :
|
|
65
|
+
children: r
|
|
66
|
+
}) : r
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
return
|
|
70
|
-
}, Ae = (e, t,
|
|
69
|
+
return r;
|
|
70
|
+
}, Ae = (e, t, r, o) => {
|
|
71
71
|
const { style: n, ...i } = e, a = M(d, {
|
|
72
72
|
component: "div",
|
|
73
73
|
...i,
|
|
@@ -77,12 +77,12 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
77
77
|
},
|
|
78
78
|
sx: { padding: "0" },
|
|
79
79
|
color: e.disabled ? void 0 : "primary",
|
|
80
|
-
"aria-label":
|
|
80
|
+
"aria-label": r,
|
|
81
81
|
size: "small",
|
|
82
82
|
children: t
|
|
83
83
|
});
|
|
84
|
-
return M(
|
|
85
|
-
title: e.disabled ?
|
|
84
|
+
return M(Bt, {
|
|
85
|
+
title: e.disabled ? r : o,
|
|
86
86
|
enterDelay: 800,
|
|
87
87
|
enterNextDelay: 1600,
|
|
88
88
|
children: e.disabled ? M("div", {
|
|
@@ -103,7 +103,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
103
103
|
iconKey: "ArrowDownward",
|
|
104
104
|
size: "small"
|
|
105
105
|
}), "Scroll " + (e.orientation === le.Horizontal ? "Right" : "Down"), `Scroll ${e.orientation === le.Horizontal ? "right" : "down"}, 'Ctrl+Click' to scroll to the end`), He = B($((e, t) => {
|
|
106
|
-
const { orientation:
|
|
106
|
+
const { orientation: r = "vertical", sx: o, ...n } = e, i = "vertical" === r;
|
|
107
107
|
return M(s, {
|
|
108
108
|
ref: t,
|
|
109
109
|
sx: {
|
|
@@ -113,15 +113,15 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
113
113
|
minHeight: i ? "1em" : void 0,
|
|
114
114
|
minWidth: i ? void 0 : "1em",
|
|
115
115
|
borderColor: (e) => e.palette.divider,
|
|
116
|
-
...
|
|
116
|
+
...o
|
|
117
117
|
},
|
|
118
|
-
orientation:
|
|
118
|
+
orientation: r,
|
|
119
119
|
variant: "middle",
|
|
120
120
|
flexItem: !0,
|
|
121
121
|
...n
|
|
122
122
|
});
|
|
123
123
|
})), Ve = "_traverse-ellipsis_14l1h_1", qe = B((e) => {
|
|
124
|
-
const { sx:
|
|
124
|
+
const { sx: r, speed: o = 2, size: n = 70, ...i } = e;
|
|
125
125
|
return M(t, {
|
|
126
126
|
sx: {
|
|
127
127
|
width: `${n}px`,
|
|
@@ -131,7 +131,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
131
131
|
stroke: (e) => e.palette.grey[600],
|
|
132
132
|
fill: "none"
|
|
133
133
|
},
|
|
134
|
-
...
|
|
134
|
+
...r
|
|
135
135
|
},
|
|
136
136
|
...i,
|
|
137
137
|
children: S("svg", {
|
|
@@ -156,7 +156,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
156
156
|
y2: "50.5",
|
|
157
157
|
children: M("animateTransform", {
|
|
158
158
|
attributeName: "transform",
|
|
159
|
-
dur: `${
|
|
159
|
+
dur: `${o}s`,
|
|
160
160
|
type: "rotate",
|
|
161
161
|
from: "0 50 50",
|
|
162
162
|
to: "360 50 50",
|
|
@@ -173,7 +173,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
173
173
|
y2: "74",
|
|
174
174
|
children: M("animateTransform", {
|
|
175
175
|
attributeName: "transform",
|
|
176
|
-
dur: 7.5 *
|
|
176
|
+
dur: 7.5 * o + "s",
|
|
177
177
|
type: "rotate",
|
|
178
178
|
from: "0 50 50",
|
|
179
179
|
to: "360 50 50",
|
|
@@ -184,7 +184,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
184
184
|
})
|
|
185
185
|
});
|
|
186
186
|
}), je = B((e) => {
|
|
187
|
-
const { sx:
|
|
187
|
+
const { sx: r, speed: o = 1.5, size: n = 70, ...i } = e;
|
|
188
188
|
return M(t, {
|
|
189
189
|
sx: {
|
|
190
190
|
width: `${n}px`,
|
|
@@ -196,7 +196,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
196
196
|
fill: "none",
|
|
197
197
|
opacity: .5
|
|
198
198
|
},
|
|
199
|
-
...
|
|
199
|
+
...r
|
|
200
200
|
},
|
|
201
201
|
...i,
|
|
202
202
|
children: S("svg", {
|
|
@@ -215,7 +215,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
215
215
|
children: M("animateTransform", {
|
|
216
216
|
attributeName: "transform",
|
|
217
217
|
type: "rotate",
|
|
218
|
-
dur: 1 *
|
|
218
|
+
dur: 1 * o + "s",
|
|
219
219
|
from: "0 50 50",
|
|
220
220
|
to: "360 50 50",
|
|
221
221
|
repeatCount: "indefinite"
|
|
@@ -224,13 +224,13 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
224
224
|
})
|
|
225
225
|
});
|
|
226
226
|
}), Qe = B((e) => {
|
|
227
|
-
const { sx:
|
|
227
|
+
const { sx: r, speed: o = 1, size: n = 70, ...i } = e;
|
|
228
228
|
return M(t, {
|
|
229
229
|
sx: {
|
|
230
230
|
width: `${n}px`,
|
|
231
231
|
height: `${n}px`,
|
|
232
232
|
zIndex: 1,
|
|
233
|
-
...
|
|
233
|
+
...r
|
|
234
234
|
},
|
|
235
235
|
...i,
|
|
236
236
|
children: S("svg", {
|
|
@@ -245,7 +245,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
245
245
|
r: "6",
|
|
246
246
|
children: M("animate", {
|
|
247
247
|
attributeName: "opacity",
|
|
248
|
-
dur: `${
|
|
248
|
+
dur: `${o}s`,
|
|
249
249
|
values: "0;1;0",
|
|
250
250
|
repeatCount: "indefinite",
|
|
251
251
|
begin: "0.1"
|
|
@@ -258,7 +258,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
258
258
|
r: "6",
|
|
259
259
|
children: M("animate", {
|
|
260
260
|
attributeName: "opacity",
|
|
261
|
-
dur: `${
|
|
261
|
+
dur: `${o}s`,
|
|
262
262
|
values: "0;1;0",
|
|
263
263
|
repeatCount: "indefinite",
|
|
264
264
|
begin: "0.2"
|
|
@@ -271,7 +271,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
271
271
|
r: "6",
|
|
272
272
|
children: M("animate", {
|
|
273
273
|
attributeName: "opacity",
|
|
274
|
-
dur: `${
|
|
274
|
+
dur: `${o}s`,
|
|
275
275
|
values: "0;1;0",
|
|
276
276
|
repeatCount: "indefinite",
|
|
277
277
|
begin: "0.3"
|
|
@@ -281,7 +281,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
281
281
|
})
|
|
282
282
|
});
|
|
283
283
|
}), Ge = B((e) => {
|
|
284
|
-
const { sx:
|
|
284
|
+
const { sx: r, speed: o = 1, size: n = 70, ...i } = e;
|
|
285
285
|
return M(t, {
|
|
286
286
|
sx: {
|
|
287
287
|
width: `${n}px`,
|
|
@@ -291,7 +291,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
291
291
|
fill: (e) => e.palette.grey[600],
|
|
292
292
|
stroke: "none"
|
|
293
293
|
},
|
|
294
|
-
...
|
|
294
|
+
...r
|
|
295
295
|
},
|
|
296
296
|
...i,
|
|
297
297
|
children: S("svg", {
|
|
@@ -306,7 +306,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
306
306
|
r: "6",
|
|
307
307
|
children: M("animateTransform", {
|
|
308
308
|
attributeName: "transform",
|
|
309
|
-
dur: `${
|
|
309
|
+
dur: `${o}s`,
|
|
310
310
|
type: "translate",
|
|
311
311
|
values: "0 15 ; 0 -15; 0 15",
|
|
312
312
|
repeatCount: "indefinite",
|
|
@@ -320,7 +320,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
320
320
|
r: "6",
|
|
321
321
|
children: M("animateTransform", {
|
|
322
322
|
attributeName: "transform",
|
|
323
|
-
dur: `${
|
|
323
|
+
dur: `${o}s`,
|
|
324
324
|
type: "translate",
|
|
325
325
|
values: "0 10 ; 0 -10; 0 10",
|
|
326
326
|
repeatCount: "indefinite",
|
|
@@ -334,7 +334,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
334
334
|
r: "6",
|
|
335
335
|
children: M("animateTransform", {
|
|
336
336
|
attributeName: "transform",
|
|
337
|
-
dur: `${
|
|
337
|
+
dur: `${o}s`,
|
|
338
338
|
type: "translate",
|
|
339
339
|
values: "0 5 ; 0 -5; 0 5",
|
|
340
340
|
repeatCount: "indefinite",
|
|
@@ -345,7 +345,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
345
345
|
})
|
|
346
346
|
});
|
|
347
347
|
}), Ue = B((e) => {
|
|
348
|
-
const { sx:
|
|
348
|
+
const { sx: r, speed: o = 2, size: n = 70, ...i } = e;
|
|
349
349
|
return M(t, {
|
|
350
350
|
sx: {
|
|
351
351
|
width: `${n}px`,
|
|
@@ -361,7 +361,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
361
361
|
opacity: .8,
|
|
362
362
|
stroke: (e) => e.palette.background.paper
|
|
363
363
|
},
|
|
364
|
-
...
|
|
364
|
+
...r
|
|
365
365
|
},
|
|
366
366
|
...i,
|
|
367
367
|
children: S("svg", {
|
|
@@ -382,7 +382,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
382
382
|
r: "6",
|
|
383
383
|
children: M("animateTransform", {
|
|
384
384
|
attributeName: "transform",
|
|
385
|
-
dur: `${
|
|
385
|
+
dur: `${o}s`,
|
|
386
386
|
type: "rotate",
|
|
387
387
|
from: "0 50 48",
|
|
388
388
|
to: "360 50 52",
|
|
@@ -392,7 +392,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
392
392
|
})
|
|
393
393
|
});
|
|
394
394
|
}), Xe = B((e) => {
|
|
395
|
-
const { sx:
|
|
395
|
+
const { sx: r, speed: o = 1, size: n = 13, width: i = 64, height: a = 17, ...l } = e;
|
|
396
396
|
return S(t, {
|
|
397
397
|
sx: {
|
|
398
398
|
width: `${i}px`,
|
|
@@ -403,7 +403,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
403
403
|
width: () => `${n}px`,
|
|
404
404
|
height: () => `${n}px`
|
|
405
405
|
},
|
|
406
|
-
...
|
|
406
|
+
...r
|
|
407
407
|
},
|
|
408
408
|
className: V(Ve, "animated-icon"),
|
|
409
409
|
...l,
|
|
@@ -417,22 +417,22 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
417
417
|
}), Ye = M(je, {}), _e = (e, t) => {
|
|
418
418
|
if (!e) return null;
|
|
419
419
|
if (void 0 !== t) {
|
|
420
|
-
const
|
|
421
|
-
|
|
420
|
+
const r = e.querySelector("[data-sxl-loading-label]");
|
|
421
|
+
r && (r.textContent = t);
|
|
422
422
|
}
|
|
423
423
|
if (e.classList.contains("animating")) return null;
|
|
424
424
|
e.classList.remove("animating-idle"), e.offsetHeight, e.classList.add("animating");
|
|
425
|
-
const
|
|
426
|
-
return 0 ===
|
|
427
|
-
const t = setTimeout(e, 250),
|
|
425
|
+
const r = "function" == typeof e.getAnimations ? e.getAnimations() : null;
|
|
426
|
+
return 0 === r?.length ? null : new Promise((e) => {
|
|
427
|
+
const t = setTimeout(e, 250), o = () => {
|
|
428
428
|
clearTimeout(t), e();
|
|
429
429
|
};
|
|
430
|
-
|
|
430
|
+
r ? Promise.all(r.map((e) => e.ready)).then(o, o) : requestAnimationFrame(() => requestAnimationFrame(o));
|
|
431
431
|
});
|
|
432
432
|
}, Je = (e) => {
|
|
433
433
|
e && e.classList.contains("animating") && (e.classList.add("animating-idle"), e.classList.remove("animating"));
|
|
434
|
-
}, Ze = B($((e,
|
|
435
|
-
const { sx:
|
|
434
|
+
}, Ze = B($((e, r) => {
|
|
435
|
+
const { sx: o, style: n, onMount: i, onUnmount: a, transitionDelay: l = "1200ms", panel: s = !1, autoStart: c = !0, transparentBackground: d = !0, icon: p = Ye, label: m, progress: h = null, ...g } = e, x = A(() => "string" == typeof m || !c && null == m ? M(b, {
|
|
436
436
|
"data-sxl-loading-label": "",
|
|
437
437
|
variant: "caption",
|
|
438
438
|
component: "div",
|
|
@@ -472,7 +472,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
472
472
|
}
|
|
473
473
|
})
|
|
474
474
|
});
|
|
475
|
-
}, [h, p]), v = W(null), w = Se([v,
|
|
475
|
+
}, [h, p]), v = W(null), w = Se([v, r]), k = A(() => {
|
|
476
476
|
let e = S(t, {
|
|
477
477
|
sx: {
|
|
478
478
|
display: "flex",
|
|
@@ -482,7 +482,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
482
482
|
},
|
|
483
483
|
children: [x, y]
|
|
484
484
|
});
|
|
485
|
-
return !0 === s && (e = M(
|
|
485
|
+
return !0 === s && (e = M(f, {
|
|
486
486
|
elevation: 0,
|
|
487
487
|
sx: {
|
|
488
488
|
display: "flex",
|
|
@@ -510,7 +510,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
510
510
|
},
|
|
511
511
|
children: e
|
|
512
512
|
})), M(t, {
|
|
513
|
-
...
|
|
513
|
+
...g,
|
|
514
514
|
ref: w,
|
|
515
515
|
className: "animatable",
|
|
516
516
|
sx: {
|
|
@@ -540,7 +540,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
540
540
|
opacity: 0,
|
|
541
541
|
transition: "opacity 210ms"
|
|
542
542
|
},
|
|
543
|
-
...
|
|
543
|
+
...o,
|
|
544
544
|
...n
|
|
545
545
|
},
|
|
546
546
|
children: S(t, {
|
|
@@ -572,7 +572,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
572
572
|
})
|
|
573
573
|
});
|
|
574
574
|
}, [
|
|
575
|
-
|
|
575
|
+
o,
|
|
576
576
|
s,
|
|
577
577
|
x,
|
|
578
578
|
y,
|
|
@@ -587,41 +587,41 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
587
587
|
}, []), k;
|
|
588
588
|
}));
|
|
589
589
|
Ze.displayName = "AnimatedLoadingPanel";
|
|
590
|
-
var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt = /^\s*at\s+(?:(async|new|await)\s+)?(.+?):(\d+):(\d+)\s*$/,
|
|
590
|
+
var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt = /^\s*at\s+(?:(async|new|await)\s+)?(.+?):(\d+):(\d+)\s*$/, rt = (e) => {
|
|
591
591
|
if (!e) return "";
|
|
592
592
|
try {
|
|
593
593
|
e = new URL(e).pathname;
|
|
594
594
|
} catch {}
|
|
595
595
|
return e = (e = e.replace(/^\/+/, "")).replace(/^@?fs[\\/]/, "");
|
|
596
|
-
},
|
|
596
|
+
}, ot = B(({ error: e, maxLines: r = Number.MAX_SAFE_INTEGER, hideLineNumbers: o = !1 }) => {
|
|
597
597
|
const n = Ce(), [i, a] = H(null);
|
|
598
598
|
if (!e?.stack) return null;
|
|
599
599
|
const l = U.collectErrorChain(e).reverse(), s = [];
|
|
600
600
|
l.forEach(({ error: e }, t) => {
|
|
601
|
-
const
|
|
601
|
+
const r = (e.stack || "").split("\n").filter(Boolean).map((e) => {
|
|
602
602
|
let t = e.match(et);
|
|
603
603
|
if (t) {
|
|
604
|
-
const [, e = "",
|
|
604
|
+
const [, e = "", r, o, n, i] = t;
|
|
605
605
|
return {
|
|
606
|
-
line: `at ${e ? e + " " : ""}${
|
|
607
|
-
location: `${
|
|
606
|
+
line: `at ${e ? e + " " : ""}${r}`,
|
|
607
|
+
location: `${rt(o).split(/[\\/]/).pop()}:${n}:${i}`
|
|
608
608
|
};
|
|
609
609
|
}
|
|
610
610
|
if (t = e.match(tt), t) {
|
|
611
|
-
const [, e = "",
|
|
611
|
+
const [, e = "", r, o, n] = t, i = rt(r), a = `${i.split(/[\\/]/).pop()}:${o}:${n}`;
|
|
612
612
|
return {
|
|
613
613
|
line: `at ${e ? e + " " : ""}${a}`,
|
|
614
|
-
location: i !== a ? `${i}:${
|
|
614
|
+
location: i !== a ? `${i}:${o}:${n}` : void 0
|
|
615
615
|
};
|
|
616
616
|
}
|
|
617
617
|
return { line: e.trim() };
|
|
618
618
|
});
|
|
619
|
-
|
|
620
|
-
line: t ? `Caused by: ${
|
|
619
|
+
r.length && (s.push({
|
|
620
|
+
line: t ? `Caused by: ${r[0].line}` : r[0].line,
|
|
621
621
|
isBoundary: !0
|
|
622
|
-
}), s.push(...
|
|
622
|
+
}), s.push(...r.slice(1)));
|
|
623
623
|
});
|
|
624
|
-
const c =
|
|
624
|
+
const c = r ? s.slice(0, r) : s, p = r && s.length > r;
|
|
625
625
|
return S(t, {
|
|
626
626
|
sx: {
|
|
627
627
|
width: "100%",
|
|
@@ -664,8 +664,8 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
664
664
|
const t = s.map((t) => {
|
|
665
665
|
if (t.isBoundary) return e = 0, t.line;
|
|
666
666
|
e++;
|
|
667
|
-
let
|
|
668
|
-
return e >= 1 && (
|
|
667
|
+
let r = t.location && t.line !== t.location ? `${t.line} (${t.location})` : t.line;
|
|
668
|
+
return e >= 1 && (r = ` ${r}`), r;
|
|
669
669
|
}).join("\n");
|
|
670
670
|
await navigator.clipboard.writeText(t), a("Copied!"), setTimeout(() => a(null), 2e3);
|
|
671
671
|
} catch (e) {
|
|
@@ -712,12 +712,12 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
712
712
|
fontSize: "0.75rem",
|
|
713
713
|
lineHeight: 1.4
|
|
714
714
|
},
|
|
715
|
-
children: [c.map((e,
|
|
715
|
+
children: [c.map((e, r) => e.isBoundary ? M(t, {
|
|
716
716
|
sx: {
|
|
717
717
|
py: 1,
|
|
718
|
-
mt:
|
|
718
|
+
mt: r > 0 ? 1 : 0,
|
|
719
719
|
mb: .5,
|
|
720
|
-
borderTop:
|
|
720
|
+
borderTop: r > 0 ? "1px solid rgba(255, 255, 255, 0.1)" : "none"
|
|
721
721
|
},
|
|
722
722
|
children: M(b, {
|
|
723
723
|
variant: "caption",
|
|
@@ -730,7 +730,7 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
730
730
|
},
|
|
731
731
|
children: e.line
|
|
732
732
|
})
|
|
733
|
-
}, `error-${
|
|
733
|
+
}, `error-${r}`) : S(t, {
|
|
734
734
|
sx: {
|
|
735
735
|
display: "flex",
|
|
736
736
|
alignItems: "flex-start",
|
|
@@ -739,7 +739,7 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
739
739
|
pl: 1,
|
|
740
740
|
"&:hover": { backgroundColor: "rgba(255, 255, 255, 0.05)" }
|
|
741
741
|
},
|
|
742
|
-
children: [!
|
|
742
|
+
children: [!o && M(b, {
|
|
743
743
|
variant: "caption",
|
|
744
744
|
component: "div",
|
|
745
745
|
sx: {
|
|
@@ -749,7 +749,7 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
749
749
|
textAlign: "right",
|
|
750
750
|
userSelect: "none"
|
|
751
751
|
},
|
|
752
|
-
children:
|
|
752
|
+
children: r + 1
|
|
753
753
|
}), S(t, {
|
|
754
754
|
sx: {
|
|
755
755
|
flex: 1,
|
|
@@ -777,7 +777,7 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
777
777
|
children: e.location
|
|
778
778
|
})]
|
|
779
779
|
})]
|
|
780
|
-
}, `stack-${
|
|
780
|
+
}, `stack-${r}`)), p && M(b, {
|
|
781
781
|
variant: "caption",
|
|
782
782
|
component: "div",
|
|
783
783
|
sx: {
|
|
@@ -788,14 +788,14 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
|
|
|
788
788
|
display: "block",
|
|
789
789
|
mt: 1
|
|
790
790
|
},
|
|
791
|
-
children: n("stackTrace.moreFrames", { count: s.length -
|
|
791
|
+
children: n("stackTrace.moreFrames", { count: s.length - r })
|
|
792
792
|
})]
|
|
793
793
|
})]
|
|
794
794
|
});
|
|
795
795
|
});
|
|
796
|
-
|
|
797
|
-
var nt = B($((e,
|
|
798
|
-
const { sx:
|
|
796
|
+
ot.displayName = "StackTrace";
|
|
797
|
+
var nt = B($((e, r) => {
|
|
798
|
+
const { sx: o, icon: n = M(Z, {
|
|
799
799
|
iconKey: "Error",
|
|
800
800
|
style: { fontSize: 48 }
|
|
801
801
|
}), error: i, hideStackTrace: a = !1, stackTraceExpanded: l = !1, fullscreen: s = !1, ...c } = e, d = Ce(), p = A(() => it(i, a, l, s, d), [
|
|
@@ -806,7 +806,7 @@ var nt = B($((e, o) => {
|
|
|
806
806
|
d
|
|
807
807
|
]);
|
|
808
808
|
return A(() => M(t, {
|
|
809
|
-
ref:
|
|
809
|
+
ref: r,
|
|
810
810
|
sx: {
|
|
811
811
|
boxSizing: "border-box",
|
|
812
812
|
alignItems: "center",
|
|
@@ -816,7 +816,7 @@ var nt = B($((e, o) => {
|
|
|
816
816
|
overflow: "hidden",
|
|
817
817
|
width: "100%",
|
|
818
818
|
height: "100%",
|
|
819
|
-
...
|
|
819
|
+
...o
|
|
820
820
|
},
|
|
821
821
|
...c,
|
|
822
822
|
children: S(t, {
|
|
@@ -840,7 +840,7 @@ var nt = B($((e, o) => {
|
|
|
840
840
|
height: "100%",
|
|
841
841
|
boxSizing: "border-box"
|
|
842
842
|
}
|
|
843
|
-
}), M(
|
|
843
|
+
}), M(f, {
|
|
844
844
|
elevation: 0,
|
|
845
845
|
sx: {
|
|
846
846
|
display: "flex",
|
|
@@ -889,13 +889,13 @@ var nt = B($((e, o) => {
|
|
|
889
889
|
})]
|
|
890
890
|
})
|
|
891
891
|
}), [
|
|
892
|
-
|
|
892
|
+
o,
|
|
893
893
|
n,
|
|
894
894
|
p
|
|
895
895
|
]);
|
|
896
896
|
}));
|
|
897
897
|
nt.displayName = "StackTraceErrorPanel";
|
|
898
|
-
var it = (e,
|
|
898
|
+
var it = (e, r = !1, o = !1, n = !1, i = (e) => e) => {
|
|
899
899
|
if (z(e)) return e;
|
|
900
900
|
if (e instanceof Error) return S(t, {
|
|
901
901
|
sx: {
|
|
@@ -928,7 +928,7 @@ var it = (e, o = !1, r = !1, n = !1, i = (e) => e) => {
|
|
|
928
928
|
},
|
|
929
929
|
children: i("stackTrace.causedBy", { cause: e.cause instanceof Error ? e.cause.message : String(e.cause) })
|
|
930
930
|
}) : null,
|
|
931
|
-
!
|
|
931
|
+
!r && M(ot, {
|
|
932
932
|
error: e,
|
|
933
933
|
hideLineNumbers: !0
|
|
934
934
|
})
|
|
@@ -946,7 +946,7 @@ var it = (e, o = !1, r = !1, n = !1, i = (e) => e) => {
|
|
|
946
946
|
children: a
|
|
947
947
|
});
|
|
948
948
|
}, at = B((e) => {
|
|
949
|
-
const { error:
|
|
949
|
+
const { error: o, ...n } = e, i = we(), a = Ce(), l = o instanceof Error ? o.message : String(o);
|
|
950
950
|
return M(nt, {
|
|
951
951
|
hideStackTrace: !0,
|
|
952
952
|
error: S(t, {
|
|
@@ -960,7 +960,7 @@ var it = (e, o = !1, r = !1, n = !1, i = (e) => e) => {
|
|
|
960
960
|
variant: "body2",
|
|
961
961
|
component: "div",
|
|
962
962
|
children: l
|
|
963
|
-
}), i ? M(
|
|
963
|
+
}), i ? M(r, {
|
|
964
964
|
variant: "outlined",
|
|
965
965
|
size: "small",
|
|
966
966
|
onClick: i,
|
|
@@ -970,25 +970,32 @@ var it = (e, o = !1, r = !1, n = !1, i = (e) => e) => {
|
|
|
970
970
|
...n
|
|
971
971
|
});
|
|
972
972
|
});
|
|
973
|
+
function lt(e) {
|
|
974
|
+
const t = pe(e, { renderError: (e) => M(at, { error: e }) });
|
|
975
|
+
return (e) => M(R, {
|
|
976
|
+
fallback: M(Ze, {}),
|
|
977
|
+
children: M(t, { ...e })
|
|
978
|
+
});
|
|
979
|
+
}
|
|
973
980
|
at.displayName = "LazyLoadErrorPanel";
|
|
974
|
-
var
|
|
981
|
+
var st = B($((e, r) => {
|
|
975
982
|
const { chips: n, sx: i, ...a } = e, l = A(() => {
|
|
976
983
|
if (!n) return null;
|
|
977
|
-
const e = Array.isArray(n) ? n : [n], t = [],
|
|
978
|
-
for (let n = 0; n <
|
|
979
|
-
const
|
|
984
|
+
const e = Array.isArray(n) ? n : [n], t = [], r = e.length;
|
|
985
|
+
for (let n = 0; n < r; n++) {
|
|
986
|
+
const r = e[n];
|
|
980
987
|
let i = null;
|
|
981
|
-
"string" == typeof
|
|
982
|
-
label:
|
|
988
|
+
"string" == typeof r ? i = M(o, {
|
|
989
|
+
label: r,
|
|
983
990
|
color: "primary",
|
|
984
991
|
size: "small",
|
|
985
992
|
sx: { scale: "0.8" }
|
|
986
|
-
}, "chip-" + n) : D(
|
|
993
|
+
}, "chip-" + n) : D(r, { key: "chip-" + n }), t.push(i);
|
|
987
994
|
}
|
|
988
995
|
return t;
|
|
989
996
|
}, [n]);
|
|
990
997
|
return M(t, {
|
|
991
|
-
ref:
|
|
998
|
+
ref: r,
|
|
992
999
|
sx: {
|
|
993
1000
|
display: "flex",
|
|
994
1001
|
flexDirection: "row",
|
|
@@ -999,41 +1006,41 @@ var lt = B($((e, o) => {
|
|
|
999
1006
|
...a,
|
|
1000
1007
|
children: l
|
|
1001
1008
|
});
|
|
1002
|
-
})),
|
|
1009
|
+
})), ct = (e) => {
|
|
1003
1010
|
if ("dark" === e.palette.mode) return `drop-shadow(0px 0px 1px ${"dark" === e.palette.mode ? e.palette.text.primary : e.palette.divider})`;
|
|
1004
|
-
},
|
|
1011
|
+
}, dt = (e = 1) => (t) => {
|
|
1005
1012
|
if ("dark" === t.palette.mode) return `drop-shadow(0px 0px ${e}px ${"dark" === t.palette.mode ? t.palette.text.primary : t.palette.divider})`;
|
|
1006
|
-
},
|
|
1013
|
+
}, pt = (e) => M(Z, {
|
|
1007
1014
|
...e,
|
|
1008
1015
|
iconKey: "ArrowDownOutline"
|
|
1009
|
-
}),
|
|
1016
|
+
}), ut = (e) => M(Z, {
|
|
1010
1017
|
...e,
|
|
1011
1018
|
iconKey: "ArrowRightOutline"
|
|
1012
|
-
}),
|
|
1019
|
+
}), mt = /^#?([a-f\d])([a-f\d])([a-f\d])$/i, ht = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i, ft = function(e, t = null) {
|
|
1013
1020
|
if (!e) return e;
|
|
1014
|
-
e = e.replace(
|
|
1015
|
-
return t + t +
|
|
1021
|
+
e = e.replace(mt, function(e, t, r, o) {
|
|
1022
|
+
return t + t + r + r + o + o;
|
|
1016
1023
|
});
|
|
1017
|
-
let
|
|
1018
|
-
return
|
|
1019
|
-
}, gt = function(e, t = .2,
|
|
1024
|
+
let r = ht.exec(e);
|
|
1025
|
+
return r ? null === t ? `rgb(${parseInt(r[1], 16)}, ${parseInt(r[2], 16)}, ${parseInt(r[3], 16)})` : `rgb(${parseInt(r[1], 16)} ${parseInt(r[2], 16)} ${parseInt(r[3], 16)} / ${100 * t}%)` : e;
|
|
1026
|
+
}, gt = function(e, t = .2, r = "light") {
|
|
1020
1027
|
if (!e) return e;
|
|
1021
|
-
let
|
|
1022
|
-
t < 0 && (
|
|
1028
|
+
let o = "dark" !== r;
|
|
1029
|
+
t < 0 && (o = !o, t *= -1), e = ft(e);
|
|
1023
1030
|
try {
|
|
1024
|
-
return
|
|
1031
|
+
return o ? j(e, Math.max(0, Math.min(1, 1 * t))) : Q(e, Math.max(0, Math.min(1, 1.5 * t)));
|
|
1025
1032
|
} catch {
|
|
1026
1033
|
return e;
|
|
1027
1034
|
}
|
|
1028
|
-
},
|
|
1035
|
+
}, xt = (e) => {
|
|
1029
1036
|
e.stopPropagation();
|
|
1030
|
-
},
|
|
1031
|
-
onMouseDown:
|
|
1032
|
-
onTouchStart:
|
|
1033
|
-
},
|
|
1034
|
-
let
|
|
1035
|
-
const
|
|
1036
|
-
"--icon-shadow": e ?
|
|
1037
|
+
}, bt = {
|
|
1038
|
+
onMouseDown: xt,
|
|
1039
|
+
onTouchStart: xt
|
|
1040
|
+
}, yt = (e, t) => {
|
|
1041
|
+
let r = v({ palette: { mode: e ? "dark" : "light" } });
|
|
1042
|
+
const o = {
|
|
1043
|
+
"--icon-shadow": e ? r.palette.text.primary : r.palette.divider,
|
|
1037
1044
|
"--icon-size": "1.25rem",
|
|
1038
1045
|
"@media (pointer: coarse)": { "--icon-size": "1.75rem" }
|
|
1039
1046
|
};
|
|
@@ -1042,18 +1049,18 @@ var lt = B($((e, o) => {
|
|
|
1042
1049
|
palette: {
|
|
1043
1050
|
mode: e ? "dark" : "light",
|
|
1044
1051
|
text: {
|
|
1045
|
-
secondary: e ?
|
|
1046
|
-
icon: e ? q(
|
|
1052
|
+
secondary: e ? r.palette.text.secondary : q(r.palette.text.secondary, .75),
|
|
1053
|
+
icon: e ? q(r.palette.text.secondary, .7) : q(r.palette.text.primary, .75)
|
|
1047
1054
|
}
|
|
1048
1055
|
},
|
|
1049
1056
|
components: {
|
|
1050
1057
|
MuiDialogTitle: { styleOverrides: { root: { fontWeight: "normal" } } },
|
|
1051
1058
|
MuiSelect: {
|
|
1052
1059
|
defaultProps: {
|
|
1053
|
-
IconComponent:
|
|
1060
|
+
IconComponent: pt,
|
|
1054
1061
|
MenuProps: {
|
|
1055
1062
|
container: () => document.fullscreenElement,
|
|
1056
|
-
...
|
|
1063
|
+
...bt
|
|
1057
1064
|
}
|
|
1058
1065
|
},
|
|
1059
1066
|
styleOverrides: { icon: { top: "unset" } }
|
|
@@ -1082,7 +1089,7 @@ var lt = B($((e, o) => {
|
|
|
1082
1089
|
MuiMenu: {
|
|
1083
1090
|
defaultProps: {
|
|
1084
1091
|
container: () => document.fullscreenElement,
|
|
1085
|
-
...
|
|
1092
|
+
...bt
|
|
1086
1093
|
},
|
|
1087
1094
|
styleOverrides: { root: {
|
|
1088
1095
|
paddingTop: "2px",
|
|
@@ -1113,11 +1120,11 @@ var lt = B($((e, o) => {
|
|
|
1113
1120
|
} } },
|
|
1114
1121
|
MuiInputBase: { styleOverrides: { root: {} } },
|
|
1115
1122
|
MuiPaper: { styleOverrides: { root: {
|
|
1116
|
-
...
|
|
1123
|
+
...o,
|
|
1117
1124
|
backgroundImage: "none"
|
|
1118
1125
|
} } },
|
|
1119
1126
|
MuiPopover: { styleOverrides: { paper: {
|
|
1120
|
-
backgroundColor: `var(--sxl-color-elevated, var(--sxl-color-base-100, ${
|
|
1127
|
+
backgroundColor: `var(--sxl-color-elevated, var(--sxl-color-base-100, ${r.palette.background.paper}))`,
|
|
1121
1128
|
border: "1px solid var(--sxl-color-elevated-border, transparent)"
|
|
1122
1129
|
} } },
|
|
1123
1130
|
MuiPopper: { styleOverrides: { root: { "& .menu": {
|
|
@@ -1129,13 +1136,13 @@ var lt = B($((e, o) => {
|
|
|
1129
1136
|
automatic: {
|
|
1130
1137
|
transition: "opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
|
|
1131
1138
|
color: function() {
|
|
1132
|
-
return
|
|
1139
|
+
return r.palette.text.secondary;
|
|
1133
1140
|
}
|
|
1134
1141
|
},
|
|
1135
1142
|
dirty: {
|
|
1136
1143
|
fontStyle: "italic",
|
|
1137
1144
|
color: function() {
|
|
1138
|
-
return
|
|
1145
|
+
return r.palette.text.secondary;
|
|
1139
1146
|
}
|
|
1140
1147
|
}
|
|
1141
1148
|
} }
|
|
@@ -1143,7 +1150,7 @@ var lt = B($((e, o) => {
|
|
|
1143
1150
|
}, i = n;
|
|
1144
1151
|
return t && (i = Pe(n, t)), v(i);
|
|
1145
1152
|
};
|
|
1146
|
-
function
|
|
1153
|
+
function vt(e, t) {
|
|
1147
1154
|
return t = Pe({
|
|
1148
1155
|
track: gt(e.palette.background.paper, .05, e?.palette.mode),
|
|
1149
1156
|
thumb: gt(e.palette.background.paper, .3, e?.palette.mode),
|
|
@@ -1159,10 +1166,10 @@ function yt(e, t) {
|
|
|
1159
1166
|
border: t.track
|
|
1160
1167
|
});
|
|
1161
1168
|
}
|
|
1162
|
-
function
|
|
1163
|
-
const
|
|
1164
|
-
...
|
|
1165
|
-
"& .scrollbar, & .vsb-track, & .vsb-thumb": { ...
|
|
1169
|
+
function wt(e, t) {
|
|
1170
|
+
const r = vt(e, t), o = {
|
|
1171
|
+
...r,
|
|
1172
|
+
"& .scrollbar, & .vsb-track, & .vsb-thumb": { ...r },
|
|
1166
1173
|
"&::-webkit-scrollbar, & *::-webkit-scrollbar": {
|
|
1167
1174
|
backgroundColor: "var(--scrollbar-track-color)",
|
|
1168
1175
|
width: "var(--scrollbar-width)",
|
|
@@ -1201,20 +1208,20 @@ function vt(e, t) {
|
|
|
1201
1208
|
},
|
|
1202
1209
|
"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner": { backgroundColor: "var(--scrollbar-corner-color)" }
|
|
1203
1210
|
};
|
|
1204
|
-
return G.getPlatform() === G.OSType.Firefox && (
|
|
1211
|
+
return G.getPlatform() === G.OSType.Firefox && (o["* .pseudo-scrollbar"] = { scrollbarColor: "var(--scrollbar-thumb-color) transparent" }, o["* .pseudo-scrollbar:hover:not([disabled])"] = { scrollbarColor: "var(--scrollbar-active-color) transparent" }), o;
|
|
1205
1212
|
}
|
|
1206
|
-
var
|
|
1213
|
+
var kt = {
|
|
1207
1214
|
Popup: "popup",
|
|
1208
1215
|
Anchor: "anchor"
|
|
1209
|
-
},
|
|
1216
|
+
}, Ct = {
|
|
1210
1217
|
ByPopup: "popupDone",
|
|
1211
1218
|
Cancel: "popupCancel",
|
|
1212
1219
|
ClickAway: "clickAway"
|
|
1213
|
-
},
|
|
1220
|
+
}, Mt = {
|
|
1214
1221
|
Toolbar: "toolbar",
|
|
1215
1222
|
Menuitem: "menuitem"
|
|
1216
|
-
},
|
|
1217
|
-
const { closeFloat:
|
|
1223
|
+
}, St = (e) => {
|
|
1224
|
+
const { closeFloat: r, closeFloatAll: o, floatReference: n, popupContainer: i, children: a, className: l, sx: s, ...c } = e;
|
|
1218
1225
|
return M(t, {
|
|
1219
1226
|
className: V("menu", l),
|
|
1220
1227
|
sx: {
|
|
@@ -1227,18 +1234,18 @@ var wt = {
|
|
|
1227
1234
|
...c,
|
|
1228
1235
|
children: a
|
|
1229
1236
|
});
|
|
1230
|
-
},
|
|
1231
|
-
let
|
|
1232
|
-
return
|
|
1237
|
+
}, Pt = (e, t, r) => {
|
|
1238
|
+
let o = "";
|
|
1239
|
+
return r && (o = (o ? o + " " : "") + "rotate(180deg)"), M(pt, {
|
|
1233
1240
|
style: {
|
|
1234
1241
|
marginLeft: e ? void 0 : t ? "-0.25rem" : "-3px",
|
|
1235
1242
|
marginRight: e ? void 0 : t ? "-0.25rem" : "-6px",
|
|
1236
|
-
transform:
|
|
1243
|
+
transform: o
|
|
1237
1244
|
},
|
|
1238
1245
|
color: "inherit"
|
|
1239
1246
|
});
|
|
1240
|
-
},
|
|
1241
|
-
const { open:
|
|
1247
|
+
}, Tt = B($((e, t) => {
|
|
1248
|
+
const { open: r, anchorEl: o, anchorPosition: n, label: i, floatReference: a, createPopupPanel: l = St, propsPopper: s, onMount: c, onClosing: d, onClose: p, onOpening: u, onOpen: m, children: h, sx: g, ...x } = e, b = ue(d ?? (() => {}), [d]), y = ue(p ?? (() => {}), [p]), v = ue(u ?? (() => {}), [u]), w = ue(m ?? (() => {}), [m]), [k, C] = H(), S = W(null), P = ue((e, t) => {
|
|
1242
1249
|
C(e), c?.(S.current, t);
|
|
1243
1250
|
}, [c]), T = A(() => {
|
|
1244
1251
|
const e = {
|
|
@@ -1247,7 +1254,7 @@ var wt = {
|
|
|
1247
1254
|
children: h,
|
|
1248
1255
|
...x
|
|
1249
1256
|
}, t = l(e);
|
|
1250
|
-
return M(
|
|
1257
|
+
return M(f, {
|
|
1251
1258
|
elevation: 8,
|
|
1252
1259
|
ref: S,
|
|
1253
1260
|
sx: {
|
|
@@ -1257,7 +1264,7 @@ var wt = {
|
|
|
1257
1264
|
outline: "none",
|
|
1258
1265
|
backgroundColor: "var(--sxl-color-elevated, var(--sxl-color-base-100, #fff))",
|
|
1259
1266
|
border: "1px solid var(--sxl-color-elevated-border, transparent)",
|
|
1260
|
-
"&.MuiPaper-root": (e) =>
|
|
1267
|
+
"&.MuiPaper-root": (e) => wt(e)
|
|
1261
1268
|
},
|
|
1262
1269
|
tabIndex: 0,
|
|
1263
1270
|
children: t
|
|
@@ -1270,10 +1277,10 @@ var wt = {
|
|
|
1270
1277
|
]);
|
|
1271
1278
|
return M(ee, {
|
|
1272
1279
|
ref: t,
|
|
1273
|
-
anchorEl:
|
|
1280
|
+
anchorEl: o,
|
|
1274
1281
|
anchorPosition: n,
|
|
1275
1282
|
label: i,
|
|
1276
|
-
open:
|
|
1283
|
+
open: r,
|
|
1277
1284
|
onMount: P,
|
|
1278
1285
|
onOpening: v,
|
|
1279
1286
|
onOpen: w,
|
|
@@ -1283,26 +1290,26 @@ var wt = {
|
|
|
1283
1290
|
children: T
|
|
1284
1291
|
});
|
|
1285
1292
|
}));
|
|
1286
|
-
|
|
1287
|
-
var
|
|
1288
|
-
renderFloatPanel:
|
|
1289
|
-
createPopupPanel:
|
|
1293
|
+
Tt.displayName = "ExhibitFloatPanel";
|
|
1294
|
+
var Rt = (e) => M(Tt, { ...e }), Dt = (e) => M(te, {
|
|
1295
|
+
renderFloatPanel: Rt,
|
|
1296
|
+
createPopupPanel: St,
|
|
1290
1297
|
...e
|
|
1291
|
-
}),
|
|
1292
|
-
const { nestedChildren:
|
|
1298
|
+
}), It = B($((e, r) => {
|
|
1299
|
+
const { nestedChildren: o, variant: n, disabled: i, createPopupPanel: a, ...l } = e, s = {
|
|
1293
1300
|
disabled: i,
|
|
1294
1301
|
createPopupPanel: ue((e) => {
|
|
1295
|
-
if (!
|
|
1302
|
+
if (!o || 0 === o.length) return M(C, {});
|
|
1296
1303
|
const { popupContainer: n, floatReference: i, ref: a, ...l } = e, s = [];
|
|
1297
|
-
for (let e = 0; e <
|
|
1298
|
-
const t =
|
|
1299
|
-
t && s.push(M(
|
|
1304
|
+
for (let e = 0; e < o.length; e++) {
|
|
1305
|
+
const t = o[e];
|
|
1306
|
+
t && s.push(M(It, {
|
|
1300
1307
|
...l,
|
|
1301
1308
|
...t
|
|
1302
1309
|
}, e));
|
|
1303
1310
|
}
|
|
1304
1311
|
return S(t, {
|
|
1305
|
-
ref:
|
|
1312
|
+
ref: r,
|
|
1306
1313
|
sx: {
|
|
1307
1314
|
display: "flex",
|
|
1308
1315
|
flexDirection: "column",
|
|
@@ -1312,23 +1319,23 @@ var Tt = (e) => M(Pt, { ...e }), Rt = (e) => M(te, {
|
|
|
1312
1319
|
children: [
|
|
1313
1320
|
"Children here",
|
|
1314
1321
|
s,
|
|
1315
|
-
M(
|
|
1322
|
+
M(Vt, { children: "Close other children" })
|
|
1316
1323
|
]
|
|
1317
1324
|
});
|
|
1318
|
-
}, [
|
|
1325
|
+
}, [o]),
|
|
1319
1326
|
...l
|
|
1320
1327
|
};
|
|
1321
|
-
return M(n ===
|
|
1322
|
-
})),
|
|
1323
|
-
const { children:
|
|
1324
|
-
if (!z(
|
|
1325
|
-
const c =
|
|
1328
|
+
return M(n === Mt.Toolbar ? jt : Ut, { ...s });
|
|
1329
|
+
})), $t = { placement: "right-start" }, zt = B($((e, t) => {
|
|
1330
|
+
const { children: r, sx: o, parentFloat: n, createPopupPanel: i, propsPopper: a = $t, label: l, ...s } = e;
|
|
1331
|
+
if (!z(r)) throw new Error("Must supply a child component to enable a context menu.");
|
|
1332
|
+
const c = r, d = A(() => ({
|
|
1326
1333
|
...c?.props,
|
|
1327
1334
|
...s,
|
|
1328
1335
|
onContextMenu: (e) => {
|
|
1329
1336
|
c?.props?.onContextMenu?.(e), e.isDefaultPrevented() || (s?.onContextMenu?.(e), e.isDefaultPrevented() || (m(e), e.preventDefault()));
|
|
1330
1337
|
}
|
|
1331
|
-
}), [s, c?.props]), p = ue(i ?? (() => {}), [i]), [u, m] = H(null), { reference: h, component:
|
|
1338
|
+
}), [s, c?.props]), p = ue(i ?? (() => {}), [i]), [u, m] = H(null), { reference: h, component: f } = ge({
|
|
1332
1339
|
label: l ?? "contextMenu",
|
|
1333
1340
|
propsPopper: a,
|
|
1334
1341
|
parentFloat: n,
|
|
@@ -1338,24 +1345,24 @@ var Tt = (e) => M(Pt, { ...e }), Rt = (e) => M(te, {
|
|
|
1338
1345
|
});
|
|
1339
1346
|
return O(() => {
|
|
1340
1347
|
u ? h.open(0) : h.close(0);
|
|
1341
|
-
}, [u]), S(C, { children: [D(
|
|
1342
|
-
})),
|
|
1343
|
-
const { slotProps:
|
|
1348
|
+
}, [u]), S(C, { children: [D(r, d), f] });
|
|
1349
|
+
})), Bt = $((e, t) => {
|
|
1350
|
+
const { slotProps: r, ...o } = e, { getPortalContainer: n, isFullscreen: i } = be();
|
|
1344
1351
|
return M(x, {
|
|
1345
1352
|
ref: t,
|
|
1346
1353
|
slotProps: {
|
|
1347
|
-
...
|
|
1354
|
+
...r,
|
|
1348
1355
|
popper: {
|
|
1349
1356
|
container: i ? n : void 0,
|
|
1350
|
-
...
|
|
1357
|
+
...r?.popper || {}
|
|
1351
1358
|
}
|
|
1352
1359
|
},
|
|
1353
|
-
...
|
|
1360
|
+
...o
|
|
1354
1361
|
});
|
|
1355
1362
|
});
|
|
1356
|
-
|
|
1357
|
-
var
|
|
1358
|
-
const { modifier:
|
|
1363
|
+
Bt.displayName = "SimpleTooltip";
|
|
1364
|
+
var Lt = B((e) => {
|
|
1365
|
+
const { modifier: r, sx: o, ...n } = e;
|
|
1359
1366
|
return M(t, {
|
|
1360
1367
|
sx: {
|
|
1361
1368
|
marginLeft: "1px",
|
|
@@ -1379,7 +1386,7 @@ var Bt = B((e) => {
|
|
|
1379
1386
|
alignItems: "center",
|
|
1380
1387
|
boxSizing: "content-box",
|
|
1381
1388
|
overflow: "hidden",
|
|
1382
|
-
...
|
|
1389
|
+
...o
|
|
1383
1390
|
},
|
|
1384
1391
|
...n,
|
|
1385
1392
|
children: M(t, {
|
|
@@ -1390,13 +1397,13 @@ var Bt = B((e) => {
|
|
|
1390
1397
|
textAlign: "center",
|
|
1391
1398
|
"& *": { fontWeight: "500" }
|
|
1392
1399
|
},
|
|
1393
|
-
children:
|
|
1400
|
+
children: r
|
|
1394
1401
|
})
|
|
1395
1402
|
});
|
|
1396
|
-
}),
|
|
1403
|
+
}), Nt = (e, r, o = !1, n = null) => {
|
|
1397
1404
|
if (Array.isArray(e)) {
|
|
1398
1405
|
let i = [], a = e;
|
|
1399
|
-
for (let e = 0; e < a.length; e++) i.push(
|
|
1406
|
+
for (let e = 0; e < a.length; e++) i.push(Nt(a[e], r, o, n ?? "" + e));
|
|
1400
1407
|
return M(t, {
|
|
1401
1408
|
sx: {
|
|
1402
1409
|
display: "flex",
|
|
@@ -1409,17 +1416,17 @@ var Bt = B((e) => {
|
|
|
1409
1416
|
if (!e?.key) return null;
|
|
1410
1417
|
const i = {};
|
|
1411
1418
|
for (let t = 0; e.modifiers && t < e.modifiers.length; t++) i[e.modifiers[t]] = !0;
|
|
1412
|
-
const a = [], l = G.getPlatform() === G.OSType.MacOS || G.getPlatform() === G.OSType.IOS ?
|
|
1413
|
-
return i?.[ne.Ctrl] && (a.push(M(
|
|
1419
|
+
const a = [], l = G.getPlatform() === G.OSType.MacOS || G.getPlatform() === G.OSType.IOS ? r("shortcut.modifier.cmd") : r("shortcut.modifier.ctrl");
|
|
1420
|
+
return i?.[ne.Ctrl] && (a.push(M(Lt, { modifier: o ? "^" : M("div", {
|
|
1414
1421
|
style: { paddingRight: "1px" },
|
|
1415
1422
|
children: l
|
|
1416
|
-
}) }, "ctrl")), a.push("+")), i?.[ne.Alt] && (a.push(M(
|
|
1423
|
+
}) }, "ctrl")), a.push("+")), i?.[ne.Alt] && (a.push(M(Lt, { modifier: o ? "⌥" : r("shortcut.modifier.alt") }, "alt")), a.push("+")), i?.[ne.Shift] && (a.push(M(Lt, { modifier: o ? "⇧" : M("div", {
|
|
1417
1424
|
style: { paddingRight: "1px" },
|
|
1418
|
-
children:
|
|
1419
|
-
}) }, "shift")), a.push("+")), i?.[ne.Meta] && (a.push(M(
|
|
1425
|
+
children: r("shortcut.modifier.shift")
|
|
1426
|
+
}) }, "shift")), a.push("+")), i?.[ne.Meta] && (a.push(M(Lt, { modifier: o ? M("div", {
|
|
1420
1427
|
style: { paddingTop: "1px" },
|
|
1421
1428
|
children: "⌘"
|
|
1422
|
-
}) :
|
|
1429
|
+
}) : r("shortcut.modifier.meta") }, "meta")), a.push("+")), a.push(M(Lt, { modifier: ae.toPrettyKeyCode(e.key) }, "character")), M(t, {
|
|
1423
1430
|
sx: {
|
|
1424
1431
|
display: "flex",
|
|
1425
1432
|
alignItems: "center",
|
|
@@ -1428,17 +1435,17 @@ var Bt = B((e) => {
|
|
|
1428
1435
|
},
|
|
1429
1436
|
children: a
|
|
1430
1437
|
}, n);
|
|
1431
|
-
},
|
|
1432
|
-
const { disabled:
|
|
1433
|
-
let
|
|
1434
|
-
i && (
|
|
1438
|
+
}, Ot = B($((e, r) => {
|
|
1439
|
+
const { disabled: o = !1, label: n, shortcut: i, chips: a, description: l, maxWidth: s = 280, useModifierSymbols: c = !1, children: d, simple: p, componentDisabled: u = !1, sx: m, ...h } = e, f = Ce();
|
|
1440
|
+
let g = null;
|
|
1441
|
+
i && (g = Nt(i, f, c));
|
|
1435
1442
|
const [x, y] = H(null);
|
|
1436
1443
|
O(() => {
|
|
1437
1444
|
Promise.resolve(n).then((e) => {
|
|
1438
1445
|
y(e);
|
|
1439
1446
|
});
|
|
1440
1447
|
}, [n]);
|
|
1441
|
-
return M(
|
|
1448
|
+
return M(Bt, {
|
|
1442
1449
|
slotProps: { popper: {
|
|
1443
1450
|
sx: {
|
|
1444
1451
|
"& .MuiTooltip-tooltip": { marginTop: "0px !important" },
|
|
@@ -1451,9 +1458,9 @@ var Bt = B((e) => {
|
|
|
1451
1458
|
} },
|
|
1452
1459
|
className: "tooltip-wrapper",
|
|
1453
1460
|
tabIndex: -1,
|
|
1454
|
-
title: !
|
|
1461
|
+
title: !o && x ? S(t, {
|
|
1455
1462
|
sx: { maxWidth: `${s}px` },
|
|
1456
|
-
ref:
|
|
1463
|
+
ref: r,
|
|
1457
1464
|
children: [S(t, {
|
|
1458
1465
|
sx: {
|
|
1459
1466
|
display: "flex",
|
|
@@ -1467,9 +1474,9 @@ var Bt = B((e) => {
|
|
|
1467
1474
|
sx: { flex: "1 1 100%" },
|
|
1468
1475
|
children: x
|
|
1469
1476
|
}),
|
|
1470
|
-
a ? M(
|
|
1471
|
-
|
|
1472
|
-
|
|
1477
|
+
a ? M(st, { chips: a }) : null,
|
|
1478
|
+
g ? M(t, { sx: { marginLeft: "8px" } }, "leadingSpace") : M(C, {}),
|
|
1479
|
+
g
|
|
1473
1480
|
]
|
|
1474
1481
|
}), l ? M(b, {
|
|
1475
1482
|
variant: "caption",
|
|
@@ -1494,10 +1501,10 @@ var Bt = B((e) => {
|
|
|
1494
1501
|
children: d
|
|
1495
1502
|
})
|
|
1496
1503
|
});
|
|
1497
|
-
})),
|
|
1498
|
-
const { dense:
|
|
1504
|
+
})), Et = M(Z, {}), Ft = M(Z, { iconKey: "Check" }), At = B($((e, r) => {
|
|
1505
|
+
const { dense: o = !0, outlined: n = !1, disableHover: i = !1, selected: a, icon: l, propsTooltip: s, children: c, primary: p, sx: u, disabled: m, className: h, onFocus: f, onBlur: g, ...x } = e, [b, y] = H(!1), v = {
|
|
1499
1506
|
marginRight: "0px",
|
|
1500
|
-
padding:
|
|
1507
|
+
padding: o ? "2px" : "7px",
|
|
1501
1508
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
1502
1509
|
color: (e) => p ? void 0 : e.palette.text.icon ?? e.palette.action.active,
|
|
1503
1510
|
border: (e) => `solid ${n ? e.palette.divider : "transparent"} 1px`,
|
|
@@ -1517,14 +1524,13 @@ var Bt = B((e) => {
|
|
|
1517
1524
|
},
|
|
1518
1525
|
...u
|
|
1519
1526
|
}, w = {
|
|
1520
|
-
"&:hover:not(.Mui-disabled, [disabled])": {
|
|
1527
|
+
"@media (hover: hover)": { "&:hover:not(.Mui-disabled, [disabled])": {
|
|
1521
1528
|
color: (e) => e.palette.text.primary,
|
|
1522
1529
|
border: (e) => `solid ${n ? e.palette.text?.primary : e.palette.divider} 1px`,
|
|
1523
1530
|
"&.Mui-selected": { backgroundColor: (e) => q(e.palette.text.primary, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity) },
|
|
1524
1531
|
"> .outline-hover": { outline: (e) => `solid ${n ? e.palette.text?.primary : e.palette.divider} 1px` },
|
|
1525
|
-
backgroundColor: (e) => q(e.palette.action.active, e.palette.action.hoverOpacity)
|
|
1526
|
-
|
|
1527
|
-
},
|
|
1532
|
+
backgroundColor: (e) => q(e.palette.action.active, e.palette.action.hoverOpacity)
|
|
1533
|
+
} },
|
|
1528
1534
|
"&.Mui-focusVisible": {
|
|
1529
1535
|
outline: (e) => `solid ${e.palette.primary.main} 1px`,
|
|
1530
1536
|
border: (e) => `1px solid ${e.palette?.primary?.main}`,
|
|
@@ -1535,21 +1541,21 @@ var Bt = B((e) => {
|
|
|
1535
1541
|
i || (k = G.mergeContentful(v, w));
|
|
1536
1542
|
const C = A(() => {
|
|
1537
1543
|
let e = "function" == typeof l ? l() : l;
|
|
1538
|
-
return null === e ? e : e || (void 0 === a ?
|
|
1544
|
+
return null === e ? e : e || (void 0 === a ? Et : Ft);
|
|
1539
1545
|
}, [l, a]);
|
|
1540
1546
|
let P = S(d, {
|
|
1541
1547
|
component: "div",
|
|
1542
|
-
ref:
|
|
1548
|
+
ref: r,
|
|
1543
1549
|
className: V({
|
|
1544
1550
|
"Mui-focusVisible": b,
|
|
1545
1551
|
"Mui-selected": a,
|
|
1546
1552
|
"Mui-disabled": m
|
|
1547
1553
|
}, h),
|
|
1548
1554
|
onFocus: (e) => {
|
|
1549
|
-
y(!0),
|
|
1555
|
+
y(!0), f?.(e);
|
|
1550
1556
|
},
|
|
1551
1557
|
onBlur: (e) => {
|
|
1552
|
-
y(!1),
|
|
1558
|
+
y(!1), g?.(e);
|
|
1553
1559
|
},
|
|
1554
1560
|
size: "small",
|
|
1555
1561
|
TouchRippleProps: { center: !1 },
|
|
@@ -1560,8 +1566,8 @@ var Bt = B((e) => {
|
|
|
1560
1566
|
children: [C, c]
|
|
1561
1567
|
});
|
|
1562
1568
|
if (s) if (s.simple && s.label && !s.disabled) {
|
|
1563
|
-
const { label: e, description:
|
|
1564
|
-
P = M(
|
|
1569
|
+
const { label: e, description: r, maxWidth: o, shortcut: n, useModifierSymbols: i, componentDisabled: a, simple: l, chips: c, ref: d, ...p } = s;
|
|
1570
|
+
P = M(Bt, {
|
|
1565
1571
|
disableInteractive: !0,
|
|
1566
1572
|
title: e ?? "",
|
|
1567
1573
|
...p,
|
|
@@ -1570,20 +1576,20 @@ var Bt = B((e) => {
|
|
|
1570
1576
|
children: P
|
|
1571
1577
|
})
|
|
1572
1578
|
});
|
|
1573
|
-
} else P = M(
|
|
1579
|
+
} else P = M(Ot, {
|
|
1574
1580
|
children: P,
|
|
1575
1581
|
...s
|
|
1576
1582
|
});
|
|
1577
1583
|
return P;
|
|
1578
|
-
})),
|
|
1584
|
+
})), Kt = M(Z, {}), Wt = {
|
|
1579
1585
|
marginLeft: "4px",
|
|
1580
1586
|
marginRight: "4px",
|
|
1581
1587
|
paddingLeft: "6px",
|
|
1582
1588
|
paddingRight: "18px"
|
|
1583
|
-
},
|
|
1584
|
-
const { icon:
|
|
1585
|
-
const e =
|
|
1586
|
-
icon:
|
|
1589
|
+
}, Ht = (e) => e.icon, Vt = B($((e, t) => {
|
|
1590
|
+
const { icon: r = Kt, renderIcon: o = Ht, className: n, onFocus: i, selected: a, onBlur: l, onMouseOver: s, onMouseOut: c, onMouseEnter: d, disabled: p, children: u, sx: f, propsTooltip: g, chips: x, primary: b, ...y } = e, v = fe(), [w, k] = H(!1), [C, P] = H(!1), T = A(() => {
|
|
1591
|
+
const e = o?.({
|
|
1592
|
+
icon: r,
|
|
1587
1593
|
disabled: p,
|
|
1588
1594
|
selected: a
|
|
1589
1595
|
});
|
|
@@ -1599,9 +1605,9 @@ var Bt = B((e) => {
|
|
|
1599
1605
|
children: e
|
|
1600
1606
|
}) : null;
|
|
1601
1607
|
}, [
|
|
1602
|
-
r,
|
|
1603
|
-
p,
|
|
1604
1608
|
o,
|
|
1609
|
+
p,
|
|
1610
|
+
r,
|
|
1605
1611
|
w,
|
|
1606
1612
|
C,
|
|
1607
1613
|
b,
|
|
@@ -1639,7 +1645,7 @@ var Bt = B((e) => {
|
|
|
1639
1645
|
lineHeight: 1.5,
|
|
1640
1646
|
paddingTop: "2px",
|
|
1641
1647
|
paddingBottom: "2px",
|
|
1642
|
-
...
|
|
1648
|
+
...Wt,
|
|
1643
1649
|
borderRadius: "4px",
|
|
1644
1650
|
fontSize: "0.875em",
|
|
1645
1651
|
"@media (pointer: coarse)": { fontSize: "1em" },
|
|
@@ -1647,22 +1653,22 @@ var Bt = B((e) => {
|
|
|
1647
1653
|
"&.Mui-selected": { color: (e) => e.palette.text.primary },
|
|
1648
1654
|
color: (e) => e.palette.text.secondary,
|
|
1649
1655
|
"&.Mui-hovered:not(.Mui-disabled, [disabled])": { color: (e) => e.palette.text.primary },
|
|
1650
|
-
...
|
|
1656
|
+
...f
|
|
1651
1657
|
},
|
|
1652
1658
|
...y,
|
|
1653
1659
|
children: [
|
|
1654
1660
|
T,
|
|
1655
1661
|
u,
|
|
1656
|
-
x ? M(
|
|
1662
|
+
x ? M(st, { chips: x }) : null
|
|
1657
1663
|
]
|
|
1658
1664
|
});
|
|
1659
|
-
return
|
|
1665
|
+
return g && (R = M(Ot, {
|
|
1660
1666
|
children: R,
|
|
1661
1667
|
placement: "right-start",
|
|
1662
|
-
...
|
|
1668
|
+
...g
|
|
1663
1669
|
})), R;
|
|
1664
|
-
})),
|
|
1665
|
-
const { children:
|
|
1670
|
+
})), qt = B($((e, t) => {
|
|
1671
|
+
const { children: r, sx: o, primary: n = !1, variant: i = "subtitle1", ...a } = e;
|
|
1666
1672
|
return M(C, { children: M(b, {
|
|
1667
1673
|
ref: t,
|
|
1668
1674
|
variant: i,
|
|
@@ -1674,16 +1680,16 @@ var Bt = B((e) => {
|
|
|
1674
1680
|
paddingTop: "subtitle1" === i ? "2px" : void 0,
|
|
1675
1681
|
paddingBottom: "subtitle1" === i ? "2px" : void 0,
|
|
1676
1682
|
color: (e) => n ? void 0 : e.palette.text.secondary,
|
|
1677
|
-
...
|
|
1683
|
+
...o
|
|
1678
1684
|
},
|
|
1679
1685
|
...a,
|
|
1680
|
-
children:
|
|
1686
|
+
children: r
|
|
1681
1687
|
}) });
|
|
1682
|
-
})),
|
|
1683
|
-
const { dense:
|
|
1684
|
-
const e = (e, t,
|
|
1688
|
+
})), jt = B($((e, r) => {
|
|
1689
|
+
const { dense: o = !0, outlined: n = !1, label: i, showLabel: a = !1, selected: l = !1, onQuickClick: s, parentFloat: c, createPopupPanel: p, propsPopup: u, onPopupOpen: m, onPopupClose: h, propsQuickButton: f, renderQuickButton: g, tooltip: x = "", createTooltip: b, icon: y, disabled: v, propsButton: k = G.EmptyObject, disableHover: P, ripple: T, primary: R, children: D, sx: I, className: $, ...z } = e, B = w(), L = A(() => {
|
|
1690
|
+
const e = (e, t, r, o = r) => {
|
|
1685
1691
|
const i = "boolean" == typeof n ? null : n[e];
|
|
1686
|
-
return "function" == typeof i ? i(t) : i || (n ?
|
|
1692
|
+
return "function" == typeof i ? i(t) : i || (n ? r : o);
|
|
1687
1693
|
};
|
|
1688
1694
|
return {
|
|
1689
1695
|
outline: {
|
|
@@ -1694,7 +1700,7 @@ var Bt = B((e) => {
|
|
|
1694
1700
|
active: "dark" === B.palette.mode ? B.palette.text.secondary : B.palette.text.primary,
|
|
1695
1701
|
text: B.palette.text.icon ?? B.palette.action.active
|
|
1696
1702
|
};
|
|
1697
|
-
}, [n, B]), [N, O] = H(!1), [E, F] = H(!1), [K, j] = H(!1), Q = W(null), U = W(null), X =
|
|
1703
|
+
}, [n, B]), [N, O] = H(!1), [E, F] = H(!1), [K, j] = H(!1), Q = W(null), U = W(null), X = ge({
|
|
1698
1704
|
anchor: Q.current,
|
|
1699
1705
|
label: i,
|
|
1700
1706
|
createPopupPanel: p,
|
|
@@ -1754,7 +1760,7 @@ var Bt = B((e) => {
|
|
|
1754
1760
|
backgroundColor: (e) => q(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
1755
1761
|
"@media (hover: none)": { backgroundColor: (e) => q(e.palette.primary.main, e.palette.action.selectedOpacity) }
|
|
1756
1762
|
}
|
|
1757
|
-
} },
|
|
1763
|
+
} }, r = {
|
|
1758
1764
|
maxHeight: "100%",
|
|
1759
1765
|
"&.Mui-selected": {
|
|
1760
1766
|
backgroundColor: (e) => q(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity),
|
|
@@ -1776,9 +1782,9 @@ var Bt = B((e) => {
|
|
|
1776
1782
|
filter: "grayscale(65%)",
|
|
1777
1783
|
opacity: ".8"
|
|
1778
1784
|
},
|
|
1779
|
-
padding: () =>
|
|
1785
|
+
padding: () => o ? "2px 3px" : "7px",
|
|
1780
1786
|
marginRight: "0"
|
|
1781
|
-
}, n = G.mergeContentful(
|
|
1787
|
+
}, n = G.mergeContentful(r, e), i = G.mergeContentful(n, t), a = G.mergeContentful(r, e);
|
|
1782
1788
|
return {
|
|
1783
1789
|
quickButtonStyling: n,
|
|
1784
1790
|
openQuickButtonStyling: i,
|
|
@@ -1786,29 +1792,29 @@ var Bt = B((e) => {
|
|
|
1786
1792
|
openCompoundStyling: G.mergeContentful(a, t)
|
|
1787
1793
|
};
|
|
1788
1794
|
}, [L, P]), Z = ue((e) => {
|
|
1789
|
-
const { children: t, ref:
|
|
1790
|
-
return M(
|
|
1791
|
-
ref:
|
|
1792
|
-
...
|
|
1795
|
+
const { children: t, ref: r, ...o } = e;
|
|
1796
|
+
return M(Bt, {
|
|
1797
|
+
ref: r,
|
|
1798
|
+
...o,
|
|
1793
1799
|
disableInteractive: !0,
|
|
1794
1800
|
children: t
|
|
1795
1801
|
});
|
|
1796
|
-
}, []), ee = s ||
|
|
1797
|
-
const { tooltip: t, createTooltip:
|
|
1802
|
+
}, []), ee = s || g, te = ee && (f?.tooltip || f?.createTooltip), re = (e) => {
|
|
1803
|
+
const { tooltip: t, createTooltip: r, sx: o, ...n } = e;
|
|
1798
1804
|
let i = M(d, {
|
|
1799
|
-
sx: { ...
|
|
1805
|
+
sx: { ...o },
|
|
1800
1806
|
component: "div",
|
|
1801
1807
|
...n
|
|
1802
1808
|
});
|
|
1803
|
-
return te ? (i = (
|
|
1809
|
+
return te ? (i = (r ?? Z)({
|
|
1804
1810
|
title: N ? "" : t ?? x,
|
|
1805
1811
|
children: M("div", { children: i })
|
|
1806
1812
|
}, N), i) : i;
|
|
1807
1813
|
}, ne = { onKeyDown: (e) => {
|
|
1808
|
-
e.keyCode ===
|
|
1814
|
+
e.keyCode === oe.Space ? _() : e.keyCode === oe.F4 || e.keyCode === oe.Down ? X.reference.open(0) : e.keyCode === oe.Up && X.reference.close(0);
|
|
1809
1815
|
} };
|
|
1810
1816
|
let ie = M(C, {});
|
|
1811
|
-
const ae = A(() => Oe(("function" == typeof y ? y() : y) ?? (ee ?
|
|
1817
|
+
const ae = A(() => Oe(("function" == typeof y ? y() : y) ?? (ee ? Qt : null), a ? i : null), [
|
|
1812
1818
|
y,
|
|
1813
1819
|
i,
|
|
1814
1820
|
a,
|
|
@@ -1816,7 +1822,7 @@ var Bt = B((e) => {
|
|
|
1816
1822
|
]);
|
|
1817
1823
|
if (ee) {
|
|
1818
1824
|
let e = N ? J.openQuickButtonStyling : J.quickButtonStyling;
|
|
1819
|
-
const t = (
|
|
1825
|
+
const t = (g || re)({
|
|
1820
1826
|
tabIndex: -1,
|
|
1821
1827
|
disabled: v,
|
|
1822
1828
|
size: "small",
|
|
@@ -1829,7 +1835,7 @@ var Bt = B((e) => {
|
|
|
1829
1835
|
},
|
|
1830
1836
|
disableRipple: !!T,
|
|
1831
1837
|
children: S(C, { children: [ae, T] }),
|
|
1832
|
-
...
|
|
1838
|
+
...f,
|
|
1833
1839
|
className: V({
|
|
1834
1840
|
"Mui-focusVisible": E || N,
|
|
1835
1841
|
"Mui-selected": l,
|
|
@@ -1838,17 +1844,17 @@ var Bt = B((e) => {
|
|
|
1838
1844
|
bordered: !0,
|
|
1839
1845
|
left: !0,
|
|
1840
1846
|
"hard-right": !0
|
|
1841
|
-
},
|
|
1847
|
+
}, f?.className),
|
|
1842
1848
|
sx: {
|
|
1843
1849
|
...J.quickButtonStyling,
|
|
1844
1850
|
height: "100%",
|
|
1845
|
-
...
|
|
1851
|
+
...f?.sx
|
|
1846
1852
|
}
|
|
1847
1853
|
});
|
|
1848
|
-
let
|
|
1849
|
-
te && (
|
|
1854
|
+
let r = Pt(!0, o, N);
|
|
1855
|
+
te && (r = (b ?? Z)({
|
|
1850
1856
|
title: N ? "" : x,
|
|
1851
|
-
children:
|
|
1857
|
+
children: r
|
|
1852
1858
|
}, N)), ie = S(C, { children: [t, M(d, {
|
|
1853
1859
|
ref: U,
|
|
1854
1860
|
component: "div",
|
|
@@ -1862,8 +1868,8 @@ var Bt = B((e) => {
|
|
|
1862
1868
|
divider: !0
|
|
1863
1869
|
}),
|
|
1864
1870
|
sx: {
|
|
1865
|
-
paddingLeft: (
|
|
1866
|
-
paddingRight: (
|
|
1871
|
+
paddingLeft: (o ? 0 : 2) + "px",
|
|
1872
|
+
paddingRight: (o ? 0 : 2) + "px",
|
|
1867
1873
|
width: () => "calc(var(--icon-size, 1.25em) * 0.8)",
|
|
1868
1874
|
...J.quickButtonStyling,
|
|
1869
1875
|
...e
|
|
@@ -1876,11 +1882,11 @@ var Bt = B((e) => {
|
|
|
1876
1882
|
onMouseDown: (e) => {
|
|
1877
1883
|
0 === e.button && (e.preventDefault(), _());
|
|
1878
1884
|
},
|
|
1879
|
-
children:
|
|
1885
|
+
children: r
|
|
1880
1886
|
})] });
|
|
1881
1887
|
} else {
|
|
1882
1888
|
let e = N ? J.openCompoundStyling : J.compoundStyling;
|
|
1883
|
-
ie = M(
|
|
1889
|
+
ie = M(At, {
|
|
1884
1890
|
ref: U,
|
|
1885
1891
|
tabIndex: -1,
|
|
1886
1892
|
disabled: v,
|
|
@@ -1903,7 +1909,7 @@ var Bt = B((e) => {
|
|
|
1903
1909
|
onMouseDown: (e) => {
|
|
1904
1910
|
0 === e.button && (e.preventDefault(), _());
|
|
1905
1911
|
},
|
|
1906
|
-
children:
|
|
1912
|
+
children: Pt(!1, o, N)
|
|
1907
1913
|
});
|
|
1908
1914
|
}
|
|
1909
1915
|
const { className: le, sx: se, ...ce } = k;
|
|
@@ -1945,7 +1951,7 @@ var Bt = B((e) => {
|
|
|
1945
1951
|
children: de
|
|
1946
1952
|
}, N)), S(t, {
|
|
1947
1953
|
className: V($, "popupIconButton"),
|
|
1948
|
-
ref:
|
|
1954
|
+
ref: r,
|
|
1949
1955
|
...z,
|
|
1950
1956
|
sx: {
|
|
1951
1957
|
zIndex: E || N ? 2 : void 0,
|
|
@@ -1956,9 +1962,9 @@ var Bt = B((e) => {
|
|
|
1956
1962
|
children: [de, X.component]
|
|
1957
1963
|
});
|
|
1958
1964
|
}));
|
|
1959
|
-
|
|
1960
|
-
var
|
|
1961
|
-
const { selected:
|
|
1965
|
+
jt.displayName = "ExhibitPopupIconButton";
|
|
1966
|
+
var Qt = M(Z, { iconKey: "Check" }), Gt = {}, Ut = B($((e, r) => {
|
|
1967
|
+
const { selected: o = !1, label: n, showLabel: i, onQuickClick: a, parentFloat: l, createPopupPanel: c, propsPopup: d = Gt, onPopupOpen: p, onPopupClose: u, propsQuickButton: h, renderQuickButton: f, tooltip: g = "", createTooltip: x, icon: b, disabled: y, ripple: v, primary: w, children: k, sx: P, ...T } = e, [R, D] = H(!1), [I, $] = H(!1), [z, B] = H(!1), [N, O] = H(!1), E = W(null), F = W(null), K = A(() => {
|
|
1962
1968
|
if (!d) return;
|
|
1963
1969
|
const { propsPopper: e } = d;
|
|
1964
1970
|
return {
|
|
@@ -1966,7 +1972,7 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
|
|
|
1966
1972
|
offsets: [-4, -2],
|
|
1967
1973
|
...e
|
|
1968
1974
|
};
|
|
1969
|
-
}, [d]), q =
|
|
1975
|
+
}, [d]), q = ge({
|
|
1970
1976
|
anchor: E.current,
|
|
1971
1977
|
label: n,
|
|
1972
1978
|
createPopupPanel: c,
|
|
@@ -1980,20 +1986,20 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
|
|
|
1980
1986
|
}
|
|
1981
1987
|
}), j = ue((e) => {
|
|
1982
1988
|
0 === e.button && (a?.(e), q.reference.close(0));
|
|
1983
|
-
}, [a]), Q = M(
|
|
1989
|
+
}, [a]), Q = M(ut, {}), G = { "&.Mui-selected": {
|
|
1984
1990
|
color: (e) => e.palette.text.primary,
|
|
1985
1991
|
"& svg * ": { color: (e) => e.palette.text.primary }
|
|
1986
1992
|
} }, U = L((e) => {
|
|
1987
|
-
const { children: t, ref:
|
|
1988
|
-
return M(
|
|
1989
|
-
ref:
|
|
1990
|
-
...
|
|
1993
|
+
const { children: t, ref: r, ...o } = e;
|
|
1994
|
+
return M(Bt, {
|
|
1995
|
+
ref: r,
|
|
1996
|
+
...o,
|
|
1991
1997
|
disableInteractive: !0,
|
|
1992
1998
|
children: t
|
|
1993
1999
|
});
|
|
1994
|
-
}, []), X = a ||
|
|
1995
|
-
const { tooltip: t, createTooltip:
|
|
1996
|
-
return S(
|
|
2000
|
+
}, []), X = a || f, Y = (e) => {
|
|
2001
|
+
const { tooltip: t, createTooltip: r, ...o } = e;
|
|
2002
|
+
return S(Vt, {
|
|
1997
2003
|
icon: b,
|
|
1998
2004
|
disableRipple: !!v,
|
|
1999
2005
|
className: V({ "Mui-hovered": z }),
|
|
@@ -2001,7 +2007,7 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
|
|
|
2001
2007
|
flex: "1 1 100%",
|
|
2002
2008
|
...G
|
|
2003
2009
|
},
|
|
2004
|
-
...
|
|
2010
|
+
...o,
|
|
2005
2011
|
children: [n, v]
|
|
2006
2012
|
});
|
|
2007
2013
|
}, _ = {
|
|
@@ -2024,7 +2030,7 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
|
|
|
2024
2030
|
};
|
|
2025
2031
|
let J = M(C, {});
|
|
2026
2032
|
if (X) {
|
|
2027
|
-
const e = (
|
|
2033
|
+
const e = (f || Y)({
|
|
2028
2034
|
tabIndex: -1,
|
|
2029
2035
|
disabled: y,
|
|
2030
2036
|
onMouseEnter: () => {
|
|
@@ -2093,13 +2099,13 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
|
|
|
2093
2099
|
})
|
|
2094
2100
|
})
|
|
2095
2101
|
] });
|
|
2096
|
-
} else J = S(
|
|
2102
|
+
} else J = S(Vt, {
|
|
2097
2103
|
ref: F,
|
|
2098
2104
|
tabIndex: -1,
|
|
2099
2105
|
disabled: y,
|
|
2100
2106
|
icon: b,
|
|
2101
2107
|
className: V({
|
|
2102
|
-
"Mui-selected": R ||
|
|
2108
|
+
"Mui-selected": R || o,
|
|
2103
2109
|
"Mui-hovered": z
|
|
2104
2110
|
}),
|
|
2105
2111
|
sx: {
|
|
@@ -2154,7 +2160,7 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
|
|
|
2154
2160
|
title: R ? "" : Z ?? h?.tooltip,
|
|
2155
2161
|
children: Z
|
|
2156
2162
|
}, R)), S(t, {
|
|
2157
|
-
ref:
|
|
2163
|
+
ref: r,
|
|
2158
2164
|
sx: {
|
|
2159
2165
|
zIndex: I || R ? 2 : void 0,
|
|
2160
2166
|
display: "flex",
|
|
@@ -2165,27 +2171,27 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
|
|
|
2165
2171
|
},
|
|
2166
2172
|
children: [Z, q.component]
|
|
2167
2173
|
});
|
|
2168
|
-
})),
|
|
2169
|
-
const { onSelectToggle:
|
|
2170
|
-
return M(
|
|
2174
|
+
})), Xt = B($((e, t) => {
|
|
2175
|
+
const { onSelectToggle: r, selected: o = !1, label: n, shortcut: i, tabIndex: a = 0, preventFocus: l = !1, ...s } = e;
|
|
2176
|
+
return M(Ot, {
|
|
2171
2177
|
label: n,
|
|
2172
2178
|
shortcut: i,
|
|
2173
|
-
children: M(
|
|
2179
|
+
children: M(At, {
|
|
2174
2180
|
ref: t,
|
|
2175
2181
|
outlined: !1,
|
|
2176
2182
|
tabIndex: a,
|
|
2177
|
-
selected:
|
|
2183
|
+
selected: o,
|
|
2178
2184
|
onMouseDown: (e) => {
|
|
2179
2185
|
l && e.preventDefault();
|
|
2180
2186
|
},
|
|
2181
2187
|
onClick: () => {
|
|
2182
|
-
|
|
2188
|
+
r?.(!o);
|
|
2183
2189
|
},
|
|
2184
2190
|
...s
|
|
2185
2191
|
})
|
|
2186
2192
|
});
|
|
2187
|
-
})),
|
|
2188
|
-
const { children:
|
|
2193
|
+
})), Yt = M(Z, {}), _t = M(Z, { iconKey: "Check" }), Jt = B($((e, r) => {
|
|
2194
|
+
const { children: o, selected: n = !0, outlined: i = !0, sx: a, ...l } = e, s = A(() => ({
|
|
2189
2195
|
display: "flex",
|
|
2190
2196
|
border: (e) => n ? `solid ${i ? e.palette.divider : "transparent"} 1px` : "solid transparent 1px",
|
|
2191
2197
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
@@ -2194,14 +2200,14 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
|
|
|
2194
2200
|
},
|
|
2195
2201
|
...a
|
|
2196
2202
|
}), [a]);
|
|
2197
|
-
let c =
|
|
2198
|
-
return null === c && (c =
|
|
2199
|
-
ref:
|
|
2203
|
+
let c = o;
|
|
2204
|
+
return null === c && (c = Yt), c || (c = _t), M(t, {
|
|
2205
|
+
ref: r,
|
|
2200
2206
|
sx: s,
|
|
2201
2207
|
...l,
|
|
2202
2208
|
children: c
|
|
2203
2209
|
});
|
|
2204
|
-
})),
|
|
2210
|
+
})), Zt = {
|
|
2205
2211
|
"dialog.cancel": "Cancel",
|
|
2206
2212
|
"dialog.ok": "Ok",
|
|
2207
2213
|
"lazyLoad.retry": "Retry",
|
|
@@ -2223,16 +2229,16 @@ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
|
|
|
2223
2229
|
"stackTrace.log": "Log error to console",
|
|
2224
2230
|
"stackTrace.moreFrames": "... and {count} more frames",
|
|
2225
2231
|
"window.close": "Close"
|
|
2226
|
-
}, { DefaultCommandCatalogService:
|
|
2227
|
-
function
|
|
2228
|
-
|
|
2232
|
+
}, { DefaultCommandCatalogService: er } = Y, tr = !1;
|
|
2233
|
+
function rr() {
|
|
2234
|
+
tr || (tr = !0, er.registerFromManifest("@sheetxl/utils-mui", import.meta.url, { messages: Zt }));
|
|
2229
2235
|
}
|
|
2230
|
-
|
|
2231
|
-
var
|
|
2236
|
+
rr();
|
|
2237
|
+
var or = {
|
|
2232
2238
|
inline: null,
|
|
2233
2239
|
popup: []
|
|
2234
|
-
},
|
|
2235
|
-
const { children:
|
|
2240
|
+
}, nr = B($((e, r) => {
|
|
2241
|
+
const { children: o, sx: n, ...i } = e, a = Ce(), l = ye(r, () => ({}), []), [s, c] = ke(), d = W(null), p = W(null), [u, m] = K((e) => e + 1, 0), [h, f] = H(null), [g, x] = H(null), b = g?.popup ?? null, y = W(0), [v, w] = H(!1), k = W(!1), C = fe(), T = W(C);
|
|
2236
2242
|
T.current = C;
|
|
2237
2243
|
const R = L(() => {
|
|
2238
2244
|
T.current?.closeChild(0);
|
|
@@ -2245,72 +2251,72 @@ var oo = {
|
|
|
2245
2251
|
}, []);
|
|
2246
2252
|
F(() => {
|
|
2247
2253
|
p.current = { refs: [] };
|
|
2248
|
-
const e = [],
|
|
2254
|
+
const e = [], r = P.toArray(o);
|
|
2249
2255
|
let n = 0;
|
|
2250
|
-
|
|
2256
|
+
r.forEach((o, i) => {
|
|
2251
2257
|
e.push(M(t, {
|
|
2252
2258
|
sx: {
|
|
2253
2259
|
display: "flex",
|
|
2254
2260
|
flex: "0 0 auto"
|
|
2255
2261
|
},
|
|
2256
2262
|
ref: (e) => {
|
|
2257
|
-
n++, n ===
|
|
2263
|
+
n++, n === r.length && m();
|
|
2258
2264
|
const t = { current: null };
|
|
2259
2265
|
t.current = e, p.current.refs[i] = t;
|
|
2260
2266
|
},
|
|
2261
|
-
children:
|
|
2267
|
+
children: o
|
|
2262
2268
|
}, i));
|
|
2263
|
-
}),
|
|
2264
|
-
}, [
|
|
2269
|
+
}), f(e);
|
|
2270
|
+
}, [o, c]), F(() => {
|
|
2265
2271
|
if (!h) return;
|
|
2266
2272
|
const e = p.current?.refs ?? [], t = e.length;
|
|
2267
2273
|
if (!l.current || 0 === t) return void x(null);
|
|
2268
|
-
const
|
|
2269
|
-
let
|
|
2270
|
-
|
|
2274
|
+
const r = l.current?.getBoundingClientRect(), o = [], n = [], i = () => {
|
|
2275
|
+
let r = z.current;
|
|
2276
|
+
r ? r.disconnect() : r = z.current = new ResizeObserver((e) => {
|
|
2271
2277
|
for (let t = 0; t < e.length; t++) {
|
|
2272
|
-
const
|
|
2273
|
-
if (!
|
|
2274
|
-
const
|
|
2275
|
-
if (void 0 !==
|
|
2278
|
+
const r = e[t].target;
|
|
2279
|
+
if (!r.isConnected) continue;
|
|
2280
|
+
const o = B.current.get(r);
|
|
2281
|
+
if (void 0 !== o && Math.abs(r.getBoundingClientRect().width - o) > .5) return void N();
|
|
2276
2282
|
}
|
|
2277
2283
|
}), B.current.clear();
|
|
2278
|
-
for (let
|
|
2279
|
-
const t = e[
|
|
2280
|
-
t && (B.current.set(t, t.getBoundingClientRect().width),
|
|
2284
|
+
for (let o = 0; o < t; o++) {
|
|
2285
|
+
const t = e[o]?.current;
|
|
2286
|
+
t && (B.current.set(t, t.getBoundingClientRect().width), r.observe(t));
|
|
2281
2287
|
}
|
|
2282
2288
|
};
|
|
2283
2289
|
let a = 0, s = !1;
|
|
2284
|
-
for (let
|
|
2285
|
-
const t = e[
|
|
2290
|
+
for (let o = 0; !s && o < t; o++) {
|
|
2291
|
+
const t = e[o];
|
|
2286
2292
|
if (!t) continue;
|
|
2287
2293
|
if (!t.current) {
|
|
2288
2294
|
s = !0;
|
|
2289
2295
|
continue;
|
|
2290
2296
|
}
|
|
2291
2297
|
const n = t.current.getBoundingClientRect();
|
|
2292
|
-
a += n?.width, a >
|
|
2298
|
+
a += n?.width, a > r.width && (s = !0);
|
|
2293
2299
|
}
|
|
2294
|
-
if (!s) return i(), k.current && R(), void x(
|
|
2300
|
+
if (!s) return i(), k.current && R(), void x(or);
|
|
2295
2301
|
const c = d.current?.getBoundingClientRect();
|
|
2296
2302
|
c?.width && (y.current = c.width);
|
|
2297
|
-
const u =
|
|
2303
|
+
const u = r.width - y.current;
|
|
2298
2304
|
a = 0;
|
|
2299
|
-
for (let
|
|
2300
|
-
const t = e[
|
|
2305
|
+
for (let r = 0; r < t; r++) {
|
|
2306
|
+
const t = e[r];
|
|
2301
2307
|
let i = !1;
|
|
2302
2308
|
if (t.current) {
|
|
2303
2309
|
const e = t.current.getBoundingClientRect();
|
|
2304
2310
|
a += e?.width, a <= u && (i = !0);
|
|
2305
2311
|
}
|
|
2306
|
-
i ?
|
|
2312
|
+
i ? o.push(h[r]) : n.push(h[r]);
|
|
2307
2313
|
}
|
|
2308
2314
|
i(), x({
|
|
2309
|
-
inline:
|
|
2315
|
+
inline: o,
|
|
2310
2316
|
popup: n
|
|
2311
2317
|
});
|
|
2312
2318
|
}, [
|
|
2313
|
-
|
|
2319
|
+
o,
|
|
2314
2320
|
h,
|
|
2315
2321
|
c,
|
|
2316
2322
|
u
|
|
@@ -2318,18 +2324,18 @@ var oo = {
|
|
|
2318
2324
|
z.current?.disconnect(), z.current = null;
|
|
2319
2325
|
}, []);
|
|
2320
2326
|
const O = L((e) => {
|
|
2321
|
-
const
|
|
2322
|
-
for (let e = 0; e <
|
|
2327
|
+
const r = [], o = b?.length ?? 0;
|
|
2328
|
+
for (let e = 0; e < o; e++) {
|
|
2323
2329
|
const t = P.toArray(b[e])[0];
|
|
2324
|
-
P.toArray(t.props.children?.props?.children ?? t.props.children).forEach((t,
|
|
2330
|
+
P.toArray(t.props.children?.props?.children ?? t.props.children).forEach((t, o) => {
|
|
2325
2331
|
const n = t, i = {
|
|
2326
2332
|
...n.props,
|
|
2327
|
-
key: `overflow-${e}-${
|
|
2333
|
+
key: `overflow-${e}-${o}${n.key ?? ""}`
|
|
2328
2334
|
}, a = D(n, i);
|
|
2329
|
-
|
|
2335
|
+
r.push(a);
|
|
2330
2336
|
});
|
|
2331
2337
|
}
|
|
2332
|
-
return
|
|
2338
|
+
return St({
|
|
2333
2339
|
...e,
|
|
2334
2340
|
children: M(t, {
|
|
2335
2341
|
className: "overflow-palette-popup-panel",
|
|
@@ -2344,13 +2350,13 @@ var oo = {
|
|
|
2344
2350
|
paddingRight: (e) => e.spacing(1),
|
|
2345
2351
|
overflow: "hidden"
|
|
2346
2352
|
},
|
|
2347
|
-
children:
|
|
2353
|
+
children: r
|
|
2348
2354
|
})
|
|
2349
2355
|
});
|
|
2350
2356
|
}, [b]), E = Se([
|
|
2351
2357
|
l,
|
|
2352
2358
|
s,
|
|
2353
|
-
|
|
2359
|
+
r
|
|
2354
2360
|
]);
|
|
2355
2361
|
return S(t, {
|
|
2356
2362
|
className: "overflow-palette",
|
|
@@ -2378,7 +2384,7 @@ var oo = {
|
|
|
2378
2384
|
overflow: "hidden",
|
|
2379
2385
|
alignItems: "center"
|
|
2380
2386
|
},
|
|
2381
|
-
children:
|
|
2387
|
+
children: g?.inline ?? h
|
|
2382
2388
|
}), M(t, {
|
|
2383
2389
|
className: "overflow-palette-popup-button",
|
|
2384
2390
|
sx: {
|
|
@@ -2386,12 +2392,12 @@ var oo = {
|
|
|
2386
2392
|
flex: "0 0 auto",
|
|
2387
2393
|
alignItems: "center"
|
|
2388
2394
|
},
|
|
2389
|
-
children: M(
|
|
2395
|
+
children: M(jt, {
|
|
2390
2396
|
createPopupPanel: O,
|
|
2391
2397
|
ref: d,
|
|
2392
2398
|
onPopupOpen: I,
|
|
2393
2399
|
onPopupClose: $,
|
|
2394
|
-
createTooltip: ({ children: e }, t) => M(
|
|
2400
|
+
createTooltip: ({ children: e }, t) => M(Ot, {
|
|
2395
2401
|
label: a("overflow.more"),
|
|
2396
2402
|
description: a("overflow.moreDescription"),
|
|
2397
2403
|
disabled: t,
|
|
@@ -2401,102 +2407,102 @@ var oo = {
|
|
|
2401
2407
|
})
|
|
2402
2408
|
})]
|
|
2403
2409
|
});
|
|
2404
|
-
})),
|
|
2405
|
-
const t = N(
|
|
2410
|
+
})), ir = I(void 0), ar = ({ error: e }) => {
|
|
2411
|
+
const t = N(ir);
|
|
2406
2412
|
return O(() => {
|
|
2407
2413
|
t?.(e);
|
|
2408
2414
|
}, [e]), null;
|
|
2409
2415
|
};
|
|
2410
|
-
function
|
|
2411
|
-
const t = pe(e, { renderError: (e) => M(
|
|
2416
|
+
function lr(e) {
|
|
2417
|
+
const t = pe(e, { renderError: (e) => M(ar, { error: e }) });
|
|
2412
2418
|
return (e) => {
|
|
2413
|
-
const { onLoadError:
|
|
2414
|
-
return M(
|
|
2415
|
-
value:
|
|
2419
|
+
const { onLoadError: r, ...o } = e;
|
|
2420
|
+
return M(ir.Provider, {
|
|
2421
|
+
value: r,
|
|
2416
2422
|
children: M(R, {
|
|
2417
2423
|
fallback: null,
|
|
2418
|
-
children: M(t, { ...
|
|
2424
|
+
children: M(t, { ...o })
|
|
2419
2425
|
})
|
|
2420
2426
|
});
|
|
2421
2427
|
};
|
|
2422
2428
|
}
|
|
2423
|
-
function
|
|
2424
|
-
const [t,
|
|
2425
|
-
null ===
|
|
2429
|
+
function sr(e) {
|
|
2430
|
+
const [t, r] = H(() => /* @__PURE__ */ new Map()), o = W(null);
|
|
2431
|
+
null === o.current && (o.current = /* @__PURE__ */ new Map());
|
|
2426
2432
|
const { showModal: n, updateModal: i, destroyModal: a, hideModal: l } = Re({ disableAutoDestroy: !0 });
|
|
2427
2433
|
return (s, c, d, p) => new Promise((u, m) => {
|
|
2428
2434
|
let h = !1;
|
|
2429
2435
|
void 0 !== d?.disableAutoDestroy && (h = d.disableAutoDestroy, delete (d = { ...d }).disableAutoDestroy);
|
|
2430
|
-
let
|
|
2431
|
-
if (void 0 !== d?.prewarm && (
|
|
2432
|
-
const
|
|
2436
|
+
let f = !1;
|
|
2437
|
+
if (void 0 !== d?.prewarm && (f = d.prewarm, delete (d = { ...d }).prewarm, f && (h = !0)), f && t.get(s)) return void u(t.get(s).element);
|
|
2438
|
+
const g = {
|
|
2433
2439
|
...e,
|
|
2434
2440
|
...d,
|
|
2435
2441
|
...p,
|
|
2436
2442
|
onHide: () => {
|
|
2437
2443
|
if (p?.onHide?.(), h) return;
|
|
2438
2444
|
const e = t.get(s);
|
|
2439
|
-
|
|
2445
|
+
r((e) => (e.delete(s), e)), e?.id && l(e.id);
|
|
2440
2446
|
},
|
|
2441
2447
|
onDone: (e) => {
|
|
2442
2448
|
if (p?.onDone?.(e), h) return;
|
|
2443
|
-
const
|
|
2444
|
-
|
|
2449
|
+
const o = t.get(s);
|
|
2450
|
+
r((e) => (e.delete(s), e)), o?.id && a(o.id);
|
|
2445
2451
|
},
|
|
2446
2452
|
onShown: (e) => {
|
|
2447
|
-
|
|
2448
|
-
const
|
|
2449
|
-
return
|
|
2450
|
-
...
|
|
2451
|
-
element: e ??
|
|
2453
|
+
r((t) => {
|
|
2454
|
+
const r = t.get(s);
|
|
2455
|
+
return r && t.set(s, {
|
|
2456
|
+
...r,
|
|
2457
|
+
element: e ?? r.element
|
|
2452
2458
|
}), t;
|
|
2453
2459
|
}), u(e);
|
|
2454
2460
|
},
|
|
2455
2461
|
onLoadError: (e) => {
|
|
2456
|
-
const
|
|
2457
|
-
|
|
2462
|
+
const o = t.get(s);
|
|
2463
|
+
r((e) => (e.delete(s), e)), o?.id && a(o.id), m(e);
|
|
2458
2464
|
},
|
|
2459
2465
|
disableAutoDestroy: h,
|
|
2460
2466
|
revealToken: 0,
|
|
2461
|
-
startHidden:
|
|
2467
|
+
startHidden: f,
|
|
2462
2468
|
open: !0
|
|
2463
2469
|
}, x = t.get(s);
|
|
2464
2470
|
if (x) {
|
|
2465
2471
|
const e = (x.revealToken ?? 0) + 1;
|
|
2466
2472
|
i(x.id, {
|
|
2467
|
-
...
|
|
2473
|
+
...g,
|
|
2468
2474
|
revealToken: e
|
|
2469
|
-
}),
|
|
2470
|
-
const
|
|
2471
|
-
return
|
|
2472
|
-
...
|
|
2475
|
+
}), r((t) => {
|
|
2476
|
+
const r = t.get(s);
|
|
2477
|
+
return r && t.set(s, {
|
|
2478
|
+
...r,
|
|
2473
2479
|
revealToken: e
|
|
2474
2480
|
}), t;
|
|
2475
2481
|
}), u(x.element);
|
|
2476
2482
|
return;
|
|
2477
2483
|
}
|
|
2478
2484
|
if (!c) return void m(`Invalid function for window '${s}'`);
|
|
2479
|
-
let b =
|
|
2480
|
-
b || (b =
|
|
2481
|
-
const y = n(b,
|
|
2482
|
-
|
|
2485
|
+
let b = o.current.get(s);
|
|
2486
|
+
b || (b = lr(c), o.current.set(s, b));
|
|
2487
|
+
const y = n(b, g, { destroyOnClose: !h });
|
|
2488
|
+
r((e) => (e.set(s, {
|
|
2483
2489
|
id: y.id,
|
|
2484
2490
|
element: null,
|
|
2485
2491
|
revealToken: 0
|
|
2486
|
-
}), e)),
|
|
2492
|
+
}), e)), f && u(null);
|
|
2487
2493
|
});
|
|
2488
2494
|
}
|
|
2489
|
-
|
|
2490
|
-
var
|
|
2495
|
+
rr();
|
|
2496
|
+
var cr = {
|
|
2491
2497
|
x: 0,
|
|
2492
2498
|
y: 0
|
|
2493
|
-
},
|
|
2494
|
-
const { defaultPosition:
|
|
2499
|
+
}, dr = B($((e, t) => {
|
|
2500
|
+
const { defaultPosition: r = cr, PaperComponent: o = f, onDragStop: n, rootSel: i = ".MuiModal-root", handleSel: a = ".draggable-title", titleSize: l, rootSize: s, ...c } = e, d = W(null), p = A(() => l?.width && l?.height && s?.width && s?.height ? {
|
|
2495
2501
|
left: 0,
|
|
2496
2502
|
top: 0,
|
|
2497
2503
|
right: s.width - l.width,
|
|
2498
2504
|
bottom: s.height - l.height
|
|
2499
|
-
} : null, [l, s]), [u, m] = H(null), [h,
|
|
2505
|
+
} : null, [l, s]), [u, m] = H(null), [h, g] = H(null), x = u ?? r ?? null, b = A(() => x && p ? {
|
|
2500
2506
|
x: Math.max(0, Math.min(x.x, p.right)),
|
|
2501
2507
|
y: Math.max(0, Math.min(x.y, p.bottom))
|
|
2502
2508
|
} : x, [x, p]), y = Se([d, t]);
|
|
@@ -2509,45 +2515,45 @@ var so = {
|
|
|
2509
2515
|
enableUserSelectHack: !1,
|
|
2510
2516
|
onStop: n,
|
|
2511
2517
|
onStart: (e, t) => {
|
|
2512
|
-
const
|
|
2513
|
-
|
|
2514
|
-
x: (
|
|
2515
|
-
y: (
|
|
2518
|
+
const r = e;
|
|
2519
|
+
g({
|
|
2520
|
+
x: (r.clientX ?? r.touches?.[0]?.clientX) - t.x,
|
|
2521
|
+
y: (r.clientY ?? r.touches?.[0]?.clientY) - t.y
|
|
2516
2522
|
});
|
|
2517
2523
|
},
|
|
2518
2524
|
onDrag: (e, t) => {
|
|
2519
|
-
const
|
|
2525
|
+
const r = e;
|
|
2520
2526
|
if (!h) return;
|
|
2521
|
-
const
|
|
2527
|
+
const o = r.clientX ?? r.touches?.[0]?.clientX, n = r.clientY ?? r.touches?.[0]?.clientY;
|
|
2522
2528
|
m({
|
|
2523
|
-
x:
|
|
2529
|
+
x: o - h.x,
|
|
2524
2530
|
y: n - h.y
|
|
2525
2531
|
});
|
|
2526
2532
|
},
|
|
2527
|
-
children: M(
|
|
2533
|
+
children: M(o, {
|
|
2528
2534
|
ref: y,
|
|
2529
2535
|
...c
|
|
2530
2536
|
})
|
|
2531
2537
|
});
|
|
2532
|
-
})),
|
|
2538
|
+
})), pr = {
|
|
2533
2539
|
x: "50",
|
|
2534
2540
|
y: "50"
|
|
2535
|
-
},
|
|
2541
|
+
}, ur = B($((r, o) => {
|
|
2536
2542
|
const n = k({
|
|
2537
|
-
props:
|
|
2543
|
+
props: r,
|
|
2538
2544
|
name: "MuiDialog"
|
|
2539
2545
|
}), i = w(), a = Ce(), s = {
|
|
2540
2546
|
enter: .66 * i.transitions.duration.enteringScreen,
|
|
2541
2547
|
exit: .66 * i.transitions.duration.leavingScreen
|
|
2542
|
-
}, { title: p = "SheetXL", onCancel: u, onDone: m, onShow: h, onShown:
|
|
2548
|
+
}, { title: p = "SheetXL", onCancel: u, onDone: m, onShow: h, onShown: g, onHide: x, onClose: b, open: v, autoFocusSel: C, children: P, transitionDuration: T = s, TransitionProps: R, slots: D = G.EmptyArray, slotProps: I = G.EmptyArray, sx: $, className: z, onMouseDown: B, initialPosition: L = pr, isModal: N = !1, suspendModal: A = !1, restoreFocus: K = !0, disableAutoDestroy: j = !1, revealToken: Q, startHidden: U = !1, ...X } = n;
|
|
2543
2549
|
let Y = D.transition ?? c;
|
|
2544
|
-
const _ = D.backdrop ?? e, J = D.paper ??
|
|
2550
|
+
const _ = D.backdrop ?? e, J = D.paper ?? f;
|
|
2545
2551
|
let ee = I.transition;
|
|
2546
2552
|
R && (ee = {
|
|
2547
2553
|
...R,
|
|
2548
2554
|
...ee
|
|
2549
2555
|
});
|
|
2550
|
-
const te = I.backdrop,
|
|
2556
|
+
const te = I.backdrop, re = I.paper, [ne, ie] = H(null), [ae, le] = H(!1), [se, de] = H(!1), pe = W(null), [me, he] = ke(), fe = W(null), ge = W(null), [ve, we] = ke(), Pe = W(null), Te = E(), Re = W(null);
|
|
2551
2557
|
F(() => {
|
|
2552
2558
|
if (!ne || U) return;
|
|
2553
2559
|
const e = !!v;
|
|
@@ -2562,11 +2568,11 @@ var so = {
|
|
|
2562
2568
|
}, [u]);
|
|
2563
2569
|
F(() => {
|
|
2564
2570
|
if (ne) return;
|
|
2565
|
-
const e =
|
|
2571
|
+
const e = fe.current, t = Pe.current;
|
|
2566
2572
|
if (!e || !t) return;
|
|
2567
|
-
const
|
|
2568
|
-
if (0 ===
|
|
2569
|
-
const n =
|
|
2573
|
+
const r = e.getBoundingClientRect(), o = t.getBoundingClientRect();
|
|
2574
|
+
if (0 === r.width && 0 === r.height || 0 === o.width && 0 === o.height) return;
|
|
2575
|
+
const n = r.height - o.height, i = r.width - o.width;
|
|
2570
2576
|
let a = .5 * i, l = .5 * n;
|
|
2571
2577
|
"number" == typeof L?.x ? a = L.x : "string" == typeof L?.x && (a = i * (parseFloat(L.x) / 100)), "number" == typeof L?.y ? l = L.y : "string" == typeof L?.y && (l = n * (parseFloat(L.y) / 100)), ie({
|
|
2572
2578
|
x: a,
|
|
@@ -2576,11 +2582,11 @@ var so = {
|
|
|
2576
2582
|
const [$e, ze] = H(!1), [Be, Le] = H(null), [Ne, Oe] = H(null), Ee = ue((e) => {
|
|
2577
2583
|
if (Be) return Be.focus(e), !0;
|
|
2578
2584
|
if (C) {
|
|
2579
|
-
const t =
|
|
2585
|
+
const t = ge.current?.querySelectorAll?.(C);
|
|
2580
2586
|
if (t && t.length > 0) return t[0]?.focus?.(e), !0;
|
|
2581
2587
|
}
|
|
2582
|
-
return
|
|
2583
|
-
}, [Be, C]), Fe = ye(
|
|
2588
|
+
return ge.current?.focus?.(e), !1;
|
|
2589
|
+
}, [Be, C]), Fe = ye(o, () => ({ focus: (e) => {
|
|
2584
2590
|
Ee(e);
|
|
2585
2591
|
} }), []), Ae = W(Q);
|
|
2586
2592
|
O(() => {
|
|
@@ -2592,8 +2598,8 @@ var so = {
|
|
|
2592
2598
|
m?.(null), j || ee?.onExited?.(e);
|
|
2593
2599
|
},
|
|
2594
2600
|
onExit: (e) => {
|
|
2595
|
-
const t = Ne,
|
|
2596
|
-
t && !1 !==
|
|
2601
|
+
const t = Ne, r = "function" == typeof K ? K() : K;
|
|
2602
|
+
t && !1 !== r && requestAnimationFrame(() => {
|
|
2597
2603
|
Fe.current?.contains(document.activeElement) && t.focus();
|
|
2598
2604
|
}), x?.(), de(!1), ee?.onExit?.(e);
|
|
2599
2605
|
},
|
|
@@ -2601,13 +2607,13 @@ var so = {
|
|
|
2601
2607
|
h?.(), ee?.onEntered?.(e, t);
|
|
2602
2608
|
},
|
|
2603
2609
|
onEntering: (e, t) => {
|
|
2604
|
-
de(!0),
|
|
2610
|
+
de(!0), g?.(Fe.current);
|
|
2605
2611
|
}
|
|
2606
2612
|
};
|
|
2607
2613
|
O(() => {
|
|
2608
2614
|
se && Ee();
|
|
2609
2615
|
}, [se]);
|
|
2610
|
-
const We = Se([Pe,
|
|
2616
|
+
const We = Se([Pe, o]);
|
|
2611
2617
|
let He = M(y, {
|
|
2612
2618
|
open: se,
|
|
2613
2619
|
disableAutoFocus: !0,
|
|
@@ -2620,20 +2626,20 @@ var so = {
|
|
|
2620
2626
|
...Ke,
|
|
2621
2627
|
children: M(t, {
|
|
2622
2628
|
className: "MuiDialog-container",
|
|
2623
|
-
ref:
|
|
2629
|
+
ref: ge,
|
|
2624
2630
|
tabIndex: 0,
|
|
2625
2631
|
sx: {
|
|
2626
2632
|
outline: "none",
|
|
2627
2633
|
position: "relative"
|
|
2628
2634
|
},
|
|
2629
2635
|
onKeyDown: (e) => {
|
|
2630
|
-
e.which ===
|
|
2636
|
+
e.which === oe.Escape && (Ie(), pe.current?.start(e, { center: !1 }), setTimeout(() => pe.current?.stop(e), 180)), e.stopPropagation();
|
|
2631
2637
|
},
|
|
2632
|
-
children: S(
|
|
2638
|
+
children: S(dr, {
|
|
2633
2639
|
ref: We,
|
|
2634
2640
|
className: V({ "Mui-focusVisible": $e }, z, "draggable"),
|
|
2635
2641
|
sx: {
|
|
2636
|
-
"& *": (e) =>
|
|
2642
|
+
"& *": (e) => wt(e),
|
|
2637
2643
|
pointerEvents: "auto",
|
|
2638
2644
|
userSelect: "none",
|
|
2639
2645
|
backgroundColor: "var(--sxl-color-elevated, var(--sxl-color-base-100))",
|
|
@@ -2649,7 +2655,7 @@ var so = {
|
|
|
2649
2655
|
rootSize: he,
|
|
2650
2656
|
PaperComponent: J,
|
|
2651
2657
|
...X,
|
|
2652
|
-
...
|
|
2658
|
+
...re,
|
|
2653
2659
|
children: [p ? M(l, {
|
|
2654
2660
|
className: V({ "Mui-selected": $e }, "draggable-title"),
|
|
2655
2661
|
sx: {
|
|
@@ -2685,7 +2691,7 @@ var so = {
|
|
|
2685
2691
|
paddingLeft: (e) => e.spacing(1)
|
|
2686
2692
|
},
|
|
2687
2693
|
children: p
|
|
2688
|
-
}), M(
|
|
2694
|
+
}), M(Ot, {
|
|
2689
2695
|
label: a("window.close"),
|
|
2690
2696
|
children: M(d, {
|
|
2691
2697
|
"aria-label": "close",
|
|
@@ -2721,7 +2727,7 @@ var so = {
|
|
|
2721
2727
|
const { getPortalContainer: qe } = be(), { className: je, attrs: Qe } = ce(xe()?.themeScope), Ge = Se([
|
|
2722
2728
|
Fe,
|
|
2723
2729
|
me,
|
|
2724
|
-
|
|
2730
|
+
fe
|
|
2725
2731
|
]);
|
|
2726
2732
|
return De(S(t, {
|
|
2727
2733
|
className: V("MuiModal-root", je),
|
|
@@ -2739,43 +2745,43 @@ var so = {
|
|
|
2739
2745
|
},
|
|
2740
2746
|
ref: Ge,
|
|
2741
2747
|
onPointerDown: (e) => {
|
|
2742
|
-
$e && (e.target ===
|
|
2748
|
+
$e && (e.target === ge.current || e.target.tabIndex < 0) && ge.current?.contains(document.activeElement);
|
|
2743
2749
|
},
|
|
2744
2750
|
onContextMenu: (e) => {
|
|
2745
2751
|
e.isPropagationStopped() || e.preventDefault();
|
|
2746
2752
|
},
|
|
2747
2753
|
onFocus: (e) => {
|
|
2748
|
-
!$e && (e.target ===
|
|
2754
|
+
!$e && (e.target === ge.current || e.target.tabIndex < 0) && setTimeout(() => {
|
|
2749
2755
|
Ee();
|
|
2750
|
-
}, 100), ze(!0),
|
|
2756
|
+
}, 100), ze(!0), ge.current?.contains(e.target) && e.target !== ge.current && Le(e.target), e.relatedTarget && !Ne && Oe(e.relatedTarget);
|
|
2751
2757
|
},
|
|
2752
2758
|
onBlur: (e) => {
|
|
2753
2759
|
Fe?.current?.contains(e.relatedTarget) || (Oe(null), ze(!1));
|
|
2754
2760
|
},
|
|
2755
2761
|
children: [Ve, He]
|
|
2756
2762
|
}), qe(), Te);
|
|
2757
|
-
})),
|
|
2763
|
+
})), mr = ["Ok", "Cancel"], hr = {
|
|
2758
2764
|
[ie.Info]: "ValidationInformation",
|
|
2759
2765
|
[ie.Warning]: "ValidationWarning",
|
|
2760
2766
|
[ie.Error]: "ValidationStop",
|
|
2761
2767
|
[ie.Success]: "Check"
|
|
2762
|
-
},
|
|
2763
|
-
const { description: l, type: s, icon: c, onCancel: d, onOption: p, onDone: u, onValidateOption: m, options: h =
|
|
2764
|
-
const e = "string" == typeof c ? c : c ? void 0 :
|
|
2768
|
+
}, fr = (e) => "string" == typeof e ? e : e.id ?? e, gr = (e, t) => void 0 !== t && fr(e) === fr(t), xr = (e) => "string" != typeof e && ("function" == typeof e.disabled ? e.disabled() : !0 === e.disabled), br = B($((e, o) => {
|
|
2769
|
+
const { description: l, type: s, icon: c, onCancel: d, onOption: p, onDone: u, onValidateOption: m, options: h = mr, autoFocusSel: f = ".defaultOption", defaultOption: g = h[0], cancelOption: x = "Cancel", autoFocus: y, children: v, ...w } = e, k = Be({ shouldUseNativeValidation: !1 }), { handleSubmit: C, formState: P } = k, R = W(null), D = W(null), I = Ce(), $ = A(() => {
|
|
2770
|
+
const e = "string" == typeof c ? c : c ? void 0 : hr[s];
|
|
2765
2771
|
return e ? M(Z, {
|
|
2766
2772
|
iconKey: e,
|
|
2767
2773
|
size: 32,
|
|
2768
2774
|
ariaHidden: !0
|
|
2769
2775
|
}) : c ?? null;
|
|
2770
2776
|
}, [c, s]), z = ue((e) => "string" != typeof e ? "function" == typeof e.label ? e.label() : e.label : "Ok" === e ? I("dialog.ok") : "Cancel" === e ? I("dialog.cancel") : e, [I]), B = W(null), [L, N] = H(null), O = ue(async (e) => {
|
|
2771
|
-
const t =
|
|
2777
|
+
const t = fr(e);
|
|
2772
2778
|
if (null !== L) return;
|
|
2773
|
-
if (
|
|
2774
|
-
const
|
|
2775
|
-
let
|
|
2779
|
+
if (xr(e)) return;
|
|
2780
|
+
const r = gr(e, x);
|
|
2781
|
+
let o;
|
|
2776
2782
|
try {
|
|
2777
|
-
if (N(t),
|
|
2778
|
-
await Promise.resolve(p?.(t,
|
|
2783
|
+
if (N(t), o = !!r || (await Promise.resolve(m?.(t)) ?? !0), !0 !== o) return;
|
|
2784
|
+
await Promise.resolve(p?.(t, r, gr(e, g))), u?.(t);
|
|
2779
2785
|
} catch (e) {} finally {
|
|
2780
2786
|
N(null);
|
|
2781
2787
|
}
|
|
@@ -2784,21 +2790,21 @@ var so = {
|
|
|
2784
2790
|
u,
|
|
2785
2791
|
m,
|
|
2786
2792
|
x,
|
|
2787
|
-
|
|
2793
|
+
g,
|
|
2788
2794
|
L
|
|
2789
2795
|
]), E = ue((e, t) => {
|
|
2790
2796
|
setTimeout(() => {
|
|
2791
|
-
O(
|
|
2797
|
+
O(g);
|
|
2792
2798
|
}, 180);
|
|
2793
|
-
}, [O,
|
|
2794
|
-
p?.(
|
|
2799
|
+
}, [O, g]), F = ue(() => {
|
|
2800
|
+
p?.(fr(x), !0, !1), d?.(), u?.(null);
|
|
2795
2801
|
}, [
|
|
2796
2802
|
p,
|
|
2797
2803
|
x,
|
|
2798
2804
|
d,
|
|
2799
2805
|
u
|
|
2800
|
-
]), K = P && (Object.keys(P.errors).length > 0 || P.disabled || P.isSubmitting), V = ue((e, t,
|
|
2801
|
-
const i =
|
|
2806
|
+
]), K = P && (Object.keys(P.errors).length > 0 || P.disabled || P.isSubmitting), V = ue((e, t, o) => {
|
|
2807
|
+
const i = gr(e, x), a = {
|
|
2802
2808
|
className: t ? "defaultOption" : "action",
|
|
2803
2809
|
type: t ? "submit" : "button",
|
|
2804
2810
|
style: { minWidth: "75px" },
|
|
@@ -2806,12 +2812,12 @@ var so = {
|
|
|
2806
2812
|
i ? F() : t || O(e);
|
|
2807
2813
|
}
|
|
2808
2814
|
}, l = "string" != typeof e ? e.renderButton : void 0;
|
|
2809
|
-
if (l) return M(T, { children: l(a, t) }, `action:${
|
|
2810
|
-
const s = null !== L &&
|
|
2815
|
+
if (l) return M(T, { children: l(a, t) }, `action:${o}`);
|
|
2816
|
+
const s = null !== L && gr(e, L), c = {
|
|
2811
2817
|
className: t ? "defaultOption" : "action",
|
|
2812
2818
|
variant: t ? "contained" : "outlined",
|
|
2813
2819
|
size: "small",
|
|
2814
|
-
disabled: !i && (K ||
|
|
2820
|
+
disabled: !i && (K || xr(e)) || null !== L && !s,
|
|
2815
2821
|
color: "primary",
|
|
2816
2822
|
...a
|
|
2817
2823
|
};
|
|
@@ -2821,7 +2827,7 @@ var so = {
|
|
|
2821
2827
|
e.current?.start(t, { center: !1 }), t.stopPropagation(), t.preventDefault();
|
|
2822
2828
|
};
|
|
2823
2829
|
}
|
|
2824
|
-
return S(
|
|
2830
|
+
return S(r, {
|
|
2825
2831
|
...c,
|
|
2826
2832
|
children: [M("div", {
|
|
2827
2833
|
style: { visibility: s ? "hidden" : void 0 },
|
|
@@ -2839,10 +2845,10 @@ var so = {
|
|
|
2839
2845
|
transition: "opacity 120ms"
|
|
2840
2846
|
}
|
|
2841
2847
|
}) : null]
|
|
2842
|
-
}, `action:${
|
|
2848
|
+
}, `action:${o}`);
|
|
2843
2849
|
}, [
|
|
2844
2850
|
h,
|
|
2845
|
-
|
|
2851
|
+
g,
|
|
2846
2852
|
x,
|
|
2847
2853
|
P,
|
|
2848
2854
|
z,
|
|
@@ -2850,24 +2856,24 @@ var so = {
|
|
|
2850
2856
|
]), j = A(() => {
|
|
2851
2857
|
const e = [];
|
|
2852
2858
|
for (let t = 0; t < h.length; t++) {
|
|
2853
|
-
const
|
|
2854
|
-
e.push(V(
|
|
2859
|
+
const r = h[t], o = void 0 !== g ? gr(r, g) : 0 === t;
|
|
2860
|
+
e.push(V(r, o, t));
|
|
2855
2861
|
}
|
|
2856
2862
|
return e;
|
|
2857
2863
|
}, [
|
|
2858
2864
|
h,
|
|
2859
|
-
|
|
2865
|
+
g,
|
|
2860
2866
|
P,
|
|
2861
2867
|
I,
|
|
2862
2868
|
L
|
|
2863
2869
|
]);
|
|
2864
|
-
return M(
|
|
2870
|
+
return M(ur, {
|
|
2865
2871
|
onCancel: F,
|
|
2866
2872
|
initialPosition: { y: "touch" === $e ? "15" : "35" },
|
|
2867
2873
|
onDone: u,
|
|
2868
|
-
autoFocusSel:
|
|
2874
|
+
autoFocusSel: f,
|
|
2869
2875
|
isModal: !0,
|
|
2870
|
-
ref:
|
|
2876
|
+
ref: o,
|
|
2871
2877
|
...w,
|
|
2872
2878
|
children: M(ze, {
|
|
2873
2879
|
...k,
|
|
@@ -2879,17 +2885,17 @@ var so = {
|
|
|
2879
2885
|
onKeyDown: (e) => {
|
|
2880
2886
|
if (e.isDefaultPrevented()) return;
|
|
2881
2887
|
e.stopPropagation();
|
|
2882
|
-
let t = null,
|
|
2883
|
-
const
|
|
2884
|
-
if (
|
|
2888
|
+
let t = null, r = null;
|
|
2889
|
+
const o = e.which === oe.Escape && x;
|
|
2890
|
+
if (o) {
|
|
2885
2891
|
if (null !== L) return;
|
|
2886
|
-
t = x,
|
|
2892
|
+
t = x, r = D;
|
|
2887
2893
|
} else {
|
|
2888
2894
|
if (K || null !== L) return;
|
|
2889
|
-
e.which ===
|
|
2895
|
+
e.which === oe.Enter && (t = g ?? h[0], r = R);
|
|
2890
2896
|
}
|
|
2891
|
-
t && (
|
|
2892
|
-
|
|
2897
|
+
t && (r?.current?.start(e, { center: !1 }), setTimeout(() => {
|
|
2898
|
+
r?.current?.stop(e), o && F();
|
|
2893
2899
|
}, 180));
|
|
2894
2900
|
},
|
|
2895
2901
|
children: S(t, {
|
|
@@ -2931,38 +2937,38 @@ var so = {
|
|
|
2931
2937
|
})
|
|
2932
2938
|
})
|
|
2933
2939
|
});
|
|
2934
|
-
})),
|
|
2940
|
+
})), yr = (e) => {
|
|
2935
2941
|
const { showModal: t } = Re();
|
|
2936
|
-
return (
|
|
2937
|
-
const n = t(
|
|
2942
|
+
return (r) => new Promise((o) => {
|
|
2943
|
+
const n = t(br, {
|
|
2938
2944
|
...e,
|
|
2939
|
-
...
|
|
2945
|
+
...r,
|
|
2940
2946
|
onOption(e, t, n) {
|
|
2941
|
-
|
|
2947
|
+
r?.onOption?.(e, t, n), o(e);
|
|
2942
2948
|
},
|
|
2943
2949
|
onDone: () => {
|
|
2944
|
-
|
|
2950
|
+
r?.onDone?.(), n.hide();
|
|
2945
2951
|
}
|
|
2946
2952
|
});
|
|
2947
2953
|
});
|
|
2948
|
-
},
|
|
2954
|
+
}, vr = lr(X("utils-mui:inputDialog", () => import("./nxST0XJIy9Y6DTRo.mjs")).load), wr = (e) => {
|
|
2949
2955
|
const { showModal: t } = Re();
|
|
2950
|
-
return (
|
|
2951
|
-
const { defaultOption:
|
|
2952
|
-
return new Promise((
|
|
2953
|
-
const l = t(
|
|
2956
|
+
return (r) => {
|
|
2957
|
+
const { defaultOption: o = r.options?.[0], cancelOption: n = "Cancel", ...i } = r;
|
|
2958
|
+
return new Promise((r, a) => {
|
|
2959
|
+
const l = t(vr, {
|
|
2954
2960
|
...e,
|
|
2955
|
-
defaultOption:
|
|
2961
|
+
defaultOption: o,
|
|
2956
2962
|
cancelOption: n,
|
|
2957
2963
|
...i,
|
|
2958
|
-
onOption(e, t,
|
|
2959
|
-
i?.onOption?.(e, t,
|
|
2964
|
+
onOption(e, t, o) {
|
|
2965
|
+
i?.onOption?.(e, t, o), r({
|
|
2960
2966
|
input: "",
|
|
2961
2967
|
option: e
|
|
2962
2968
|
});
|
|
2963
2969
|
},
|
|
2964
2970
|
onInput(e, t) {
|
|
2965
|
-
i?.onInput?.(e, t),
|
|
2971
|
+
i?.onInput?.(e, t), r({
|
|
2966
2972
|
input: e,
|
|
2967
2973
|
option: t
|
|
2968
2974
|
});
|
|
@@ -2976,9 +2982,9 @@ var so = {
|
|
|
2976
2982
|
});
|
|
2977
2983
|
});
|
|
2978
2984
|
};
|
|
2979
|
-
},
|
|
2980
|
-
const { commandKey:
|
|
2981
|
-
return M(
|
|
2985
|
+
}, kr = B($((e, t) => {
|
|
2986
|
+
const { commandKey: r, command: o, disabled: n, shortcut: i, children: a, ...l } = e, [s] = he(r ?? []), c = o ?? s, d = c?.getShortcut();
|
|
2987
|
+
return M(Ot, {
|
|
2982
2988
|
ref: t,
|
|
2983
2989
|
label: void 0 !== n ? c?.getLabel() : "",
|
|
2984
2990
|
shortcut: void 0 !== i ? i : Array.isArray(d) ? d[0] : d,
|
|
@@ -2994,11 +3000,11 @@ var so = {
|
|
|
2994
3000
|
children: a
|
|
2995
3001
|
})
|
|
2996
3002
|
});
|
|
2997
|
-
})),
|
|
2998
|
-
function
|
|
3003
|
+
})), Cr = Le;
|
|
3004
|
+
function Mr() {
|
|
2999
3005
|
const e = W(null);
|
|
3000
3006
|
return {
|
|
3001
|
-
ripple: A(() => M(
|
|
3007
|
+
ripple: A(() => M(Cr, {
|
|
3002
3008
|
ref: e,
|
|
3003
3009
|
center: !1
|
|
3004
3010
|
}), []),
|
|
@@ -3007,19 +3013,19 @@ function Mo() {
|
|
|
3007
3013
|
}, [])
|
|
3008
3014
|
};
|
|
3009
3015
|
}
|
|
3010
|
-
var
|
|
3011
|
-
const { commandKey:
|
|
3012
|
-
|
|
3013
|
-
} }), [
|
|
3016
|
+
var Sr = M(Z, {}), Pr = B($((e, t) => {
|
|
3017
|
+
const { commandKey: r, command: o, groupKey: n, icon: i, label: a, showLabel: l = !1, disabled: s, variant: c = _.Toolbar, shortcut: d, commandState: p, propsTooltip: u, ...m } = e, { ripple: h, trigger: f } = Mr(), g = A(() => ({ onExecute() {
|
|
3018
|
+
f();
|
|
3019
|
+
} }), [f]), [x] = he(r ?? [], g), b = o ?? x, y = L((e) => {
|
|
3014
3020
|
0 === e.button && e.preventDefault();
|
|
3015
3021
|
}, []), v = L(async (e) => {
|
|
3016
3022
|
0 === e.button && b && await b.execute(p);
|
|
3017
3023
|
}, [b, p]), w = L((e) => {
|
|
3018
|
-
e.keyCode !==
|
|
3024
|
+
e.keyCode !== oe.Enter && e.keyCode !== oe.Space || b?.execute(p);
|
|
3019
3025
|
}, [b, p]), k = s ?? (!b || b.disabled()), C = b?.getState(), P = A(() => {
|
|
3020
|
-
if (null === i) return
|
|
3026
|
+
if (null === i) return Sr;
|
|
3021
3027
|
let e;
|
|
3022
|
-
return e = "function" == typeof i ? b ? i(b) : void 0 : i, e || (e = b?.getIcon(n)), e ? ("string" == typeof e && (e = M(Z, { iconKey: e })), e) : c === _.Toolbar || C ? void 0 :
|
|
3028
|
+
return e = "function" == typeof i ? b ? i(b) : void 0 : i, e || (e = b?.getIcon(n)), e ? ("string" == typeof e && (e = M(Z, { iconKey: e })), e) : c === _.Toolbar || C ? void 0 : Sr;
|
|
3023
3029
|
}, [
|
|
3024
3030
|
b,
|
|
3025
3031
|
n,
|
|
@@ -3030,7 +3036,7 @@ var So = M(Z, {}), Po = B($((e, t) => {
|
|
|
3030
3036
|
tabIndex: 0,
|
|
3031
3037
|
ref: t,
|
|
3032
3038
|
selected: !!C,
|
|
3033
|
-
icon: c === _.Toolbar ? l ? Oe(P, a ?? b?.getLabel(n)) : P : M(
|
|
3039
|
+
icon: c === _.Toolbar ? l ? Oe(P, a ?? b?.getLabel(n)) : P : M(Jt, {
|
|
3034
3040
|
selected: C ?? !1,
|
|
3035
3041
|
children: P
|
|
3036
3042
|
}),
|
|
@@ -3041,17 +3047,17 @@ var So = M(Z, {}), Po = B($((e, t) => {
|
|
|
3041
3047
|
onKeyDown: w
|
|
3042
3048
|
};
|
|
3043
3049
|
let R;
|
|
3044
|
-
return R = c === _.Menuitem ? S(
|
|
3050
|
+
return R = c === _.Menuitem ? S(Vt, {
|
|
3045
3051
|
...m,
|
|
3046
3052
|
...T,
|
|
3047
3053
|
children: [a ?? b?.getLabel(n), h]
|
|
3048
|
-
}) : M(
|
|
3054
|
+
}) : M(At, {
|
|
3049
3055
|
...m,
|
|
3050
3056
|
...T,
|
|
3051
3057
|
children: h
|
|
3052
|
-
}), a || b?.getLabel() ? (k && (R = M("div", { children: R })), R = M(
|
|
3053
|
-
commandKey:
|
|
3054
|
-
command:
|
|
3058
|
+
}), a || b?.getLabel() ? (k && (R = M("div", { children: R })), R = M(kr, {
|
|
3059
|
+
commandKey: r,
|
|
3060
|
+
command: o,
|
|
3055
3061
|
disabled: k,
|
|
3056
3062
|
placement: c === _.Toolbar ? "bottom-start" : "right-start",
|
|
3057
3063
|
shortcut: d,
|
|
@@ -3059,11 +3065,11 @@ var So = M(Z, {}), Po = B($((e, t) => {
|
|
|
3059
3065
|
children: R
|
|
3060
3066
|
}), R) : R;
|
|
3061
3067
|
}));
|
|
3062
|
-
|
|
3063
|
-
var
|
|
3064
|
-
const { commandKey:
|
|
3065
|
-
|
|
3066
|
-
} }), [
|
|
3068
|
+
Pr.displayName = "CommandButton";
|
|
3069
|
+
var Tr = M(Z, {}), Rr = B($((e, t) => {
|
|
3070
|
+
const { commandKey: r, groupKey: o, icon: n, commandState: i, label: a, variant: l = _.Toolbar, disabled: s, parseInput: c, inputProps: u, inputRef: m, ...h } = e, { ripple: f, trigger: g } = Mr(), x = A(() => ({ onExecute() {
|
|
3071
|
+
g();
|
|
3072
|
+
} }), [g]), b = he(r ?? [], x)[0], y = () => b?.getState()?.toString() || "", [v, w] = H(""), k = W(y()), C = ue(() => {
|
|
3067
3073
|
let e = v;
|
|
3068
3074
|
if (c) try {
|
|
3069
3075
|
e = c(v);
|
|
@@ -3082,10 +3088,10 @@ var To = M(Z, {}), Ro = B($((e, t) => {
|
|
|
3082
3088
|
w(y());
|
|
3083
3089
|
}, [b?.getState()]);
|
|
3084
3090
|
const P = A(() => {
|
|
3085
|
-
if (null === n) return
|
|
3091
|
+
if (null === n) return Tr;
|
|
3086
3092
|
let e;
|
|
3087
|
-
return e = "function" == typeof n ? b ? n(b) : void 0 : n, e || (e = b?.getIcon()), e ? ("string" == typeof e && (e = M(Z, { iconKey: e })), e) : l === _.Toolbar || b?.getState() ? void 0 :
|
|
3088
|
-
}, [b?.getIcon(), n]), T = A(() => void 0 === a ? b?.getLabel(
|
|
3093
|
+
return e = "function" == typeof n ? b ? n(b) : void 0 : n, e || (e = b?.getIcon()), e ? ("string" == typeof e && (e = M(Z, { iconKey: e })), e) : l === _.Toolbar || b?.getState() ? void 0 : Tr;
|
|
3094
|
+
}, [b?.getIcon(), n]), T = A(() => void 0 === a ? b?.getLabel(o) : "function" == typeof a ? a() : a, [a, b?.getLabel(o)]), R = s ?? (!b || b.disabled()), D = A(() => M(d, {
|
|
3089
3095
|
...h,
|
|
3090
3096
|
sx: {
|
|
3091
3097
|
paddingTop: "0px",
|
|
@@ -3132,14 +3138,14 @@ var To = M(Z, {}), Ro = B($((e, t) => {
|
|
|
3132
3138
|
e.target?.select();
|
|
3133
3139
|
},
|
|
3134
3140
|
onKeyDown: (e) => {
|
|
3135
|
-
if (e.which ===
|
|
3136
|
-
else if (e.which ===
|
|
3141
|
+
if (e.which === oe.Enter) y() !== v && (e.stopPropagation(), e.preventDefault(), C());
|
|
3142
|
+
else if (e.which === oe.Escape) y() !== v && (w(y()), setTimeout(() => {
|
|
3137
3143
|
e.target?.select();
|
|
3138
3144
|
}, 0), e.stopPropagation(), e.preventDefault());
|
|
3139
3145
|
else {
|
|
3140
3146
|
if (e.key.match("[-]")) return e.stopPropagation(), void e.preventDefault();
|
|
3141
3147
|
if (e.key.match("[0-9.]") && (v + e.key).length > 4) return e.stopPropagation(), void e.preventDefault();
|
|
3142
|
-
if (e.which ===
|
|
3148
|
+
if (e.which === oe.Space) return void e.preventDefault();
|
|
3143
3149
|
}
|
|
3144
3150
|
},
|
|
3145
3151
|
onBlur: () => {
|
|
@@ -3168,31 +3174,31 @@ var To = M(Z, {}), Ro = B($((e, t) => {
|
|
|
3168
3174
|
0 !== e.button || e.isPropagationStopped() || e.isDefaultPrevented() || e.isDefaultPrevented() || (e.preventDefault(), C());
|
|
3169
3175
|
},
|
|
3170
3176
|
onKeyDown: (e) => {
|
|
3171
|
-
e.keyCode !==
|
|
3177
|
+
e.keyCode !== oe.Enter && e.keyCode !== oe.Tab || C();
|
|
3172
3178
|
}
|
|
3173
3179
|
};
|
|
3174
3180
|
let $;
|
|
3175
|
-
return $ = l === _.Menuitem ? S(
|
|
3181
|
+
return $ = l === _.Menuitem ? S(Vt, {
|
|
3176
3182
|
...h,
|
|
3177
3183
|
...I,
|
|
3178
3184
|
children: [
|
|
3179
3185
|
T,
|
|
3180
3186
|
D,
|
|
3181
|
-
|
|
3187
|
+
f
|
|
3182
3188
|
]
|
|
3183
|
-
}) : M(
|
|
3189
|
+
}) : M(At, {
|
|
3184
3190
|
...h,
|
|
3185
3191
|
...I,
|
|
3186
|
-
children:
|
|
3187
|
-
}), b?.getLabel() ? ((b.disabled() || s) && ($ = M("div", { children: $ })), $ = M(
|
|
3188
|
-
commandKey:
|
|
3192
|
+
children: f
|
|
3193
|
+
}), b?.getLabel() ? ((b.disabled() || s) && ($ = M("div", { children: $ })), $ = M(kr, {
|
|
3194
|
+
commandKey: r,
|
|
3189
3195
|
placement: l === _.Toolbar ? "bottom-start" : "right-start",
|
|
3190
3196
|
children: $
|
|
3191
3197
|
}), $) : $;
|
|
3192
|
-
})),
|
|
3193
|
-
const { variant:
|
|
3194
|
-
|
|
3195
|
-
} }), [
|
|
3198
|
+
})), Dr = B($((e, t) => {
|
|
3199
|
+
const { variant: r = _.Toolbar, quickCommand: o, onQuickClick: n, commandState: i, disabled: a, label: l, icon: s, createPopupPanel: c, tooltip: d, selected: p, groupKey: u, ...m } = e, { ripple: h, trigger: f } = Mr(), g = A(() => ({ onExecute() {
|
|
3200
|
+
f();
|
|
3201
|
+
} }), [f]), [x] = he(o ?? [], g), { label: b, icon: y } = A(() => {
|
|
3196
3202
|
let e = null;
|
|
3197
3203
|
l && (e = "function" == typeof l ? x ? l(x) : null : l), e || (e = x?.getLabel?.(u));
|
|
3198
3204
|
let t = s;
|
|
@@ -3205,101 +3211,101 @@ var To = M(Z, {}), Ro = B($((e, t) => {
|
|
|
3205
3211
|
l,
|
|
3206
3212
|
s
|
|
3207
3213
|
]), v = {
|
|
3208
|
-
disabled: a || !(x || !
|
|
3214
|
+
disabled: a || !(x || !o),
|
|
3209
3215
|
ripple: h,
|
|
3210
3216
|
onQuickClick: n,
|
|
3211
3217
|
tooltip: d,
|
|
3212
3218
|
label: b,
|
|
3213
3219
|
icon: y
|
|
3214
3220
|
};
|
|
3215
|
-
(b || d) && (v.createTooltip = ({ children: e }, t) => M(
|
|
3221
|
+
(b || d) && (v.createTooltip = ({ children: e }, t) => M(Ot, {
|
|
3216
3222
|
label: b,
|
|
3217
3223
|
description: d,
|
|
3218
3224
|
disabled: t,
|
|
3219
3225
|
children: e
|
|
3220
3226
|
}));
|
|
3221
3227
|
const w = ue((e) => c?.(e), [c]), k = ue((e) => x?.execute(i), [x]);
|
|
3222
|
-
return x ? (v.propsQuickButton = {}, v.propsQuickButton.createTooltip = ({ children: e, placement: t }, n) => M(
|
|
3223
|
-
commandKey:
|
|
3224
|
-
placement: t ??
|
|
3228
|
+
return x ? (v.propsQuickButton = {}, v.propsQuickButton.createTooltip = ({ children: e, placement: t }, n) => M(kr, {
|
|
3229
|
+
commandKey: o,
|
|
3230
|
+
placement: t ?? r === _.Toolbar ? "bottom-start" : "right-start",
|
|
3225
3231
|
disabled: n,
|
|
3226
3232
|
children: e
|
|
3227
|
-
}), v.disabled = v.disabled ?? x?.disabled(), n || (v.onQuickClick = k)) :
|
|
3233
|
+
}), v.disabled = v.disabled ?? x?.disabled(), n || (v.onQuickClick = k)) : o && (v.onQuickClick = () => {}), v.selected = p ?? x?.getState(), v.createPopupPanel = w, r === _.Toolbar ? M(jt, {
|
|
3228
3234
|
...m,
|
|
3229
3235
|
...v,
|
|
3230
3236
|
ref: t
|
|
3231
|
-
}) : M(
|
|
3237
|
+
}) : M(Ut, {
|
|
3232
3238
|
...m,
|
|
3233
3239
|
...v,
|
|
3234
3240
|
ref: t
|
|
3235
3241
|
});
|
|
3236
3242
|
}));
|
|
3237
|
-
function
|
|
3238
|
-
const { variant:
|
|
3239
|
-
void 0 !==
|
|
3243
|
+
function Ir(e, t = {}) {
|
|
3244
|
+
const { variant: r, dividerOrientation: o = "vertical", groupKey: n, commandState: i, propsCommandButton: a, propsCommandPopup: l, registry: s } = t, c = { ...a };
|
|
3245
|
+
void 0 !== r && (c.variant = r);
|
|
3240
3246
|
const d = { ...l };
|
|
3241
|
-
void 0 !==
|
|
3242
|
-
const p = (e, t,
|
|
3243
|
-
const
|
|
3247
|
+
void 0 !== r && (d.variant = r);
|
|
3248
|
+
const p = (e, t, r) => {
|
|
3249
|
+
const o = {
|
|
3244
3250
|
...c,
|
|
3245
3251
|
groupKey: n,
|
|
3246
3252
|
commandKey: e,
|
|
3247
3253
|
commandState: void 0 !== t ? t : i,
|
|
3248
|
-
label:
|
|
3249
|
-
icon:
|
|
3250
|
-
showLabel:
|
|
3254
|
+
label: r?.getLabel?.(n),
|
|
3255
|
+
icon: r?.getIcon?.(n),
|
|
3256
|
+
showLabel: r?.showLabel
|
|
3251
3257
|
};
|
|
3252
|
-
return (
|
|
3258
|
+
return (r?.render ? r.render(o, n) : M(Pr, { ...o })) ?? null;
|
|
3253
3259
|
}, u = (e) => {
|
|
3254
|
-
const t = "string" == typeof e ? e : e.key,
|
|
3255
|
-
if (!t) return ((e) => Array.isArray(e.members) ? e.render ? e.render({ ...d }, void 0) ?? null : M($
|
|
3260
|
+
const t = "string" == typeof e ? e : e.key, r = "string" == typeof e ? void 0 : e;
|
|
3261
|
+
if (!t) return ((e) => Array.isArray(e.members) ? e.render ? e.render({ ...d }, void 0) ?? null : M($r, {
|
|
3256
3262
|
...d,
|
|
3257
3263
|
members: e.members,
|
|
3258
3264
|
icon: e.getIcon?.(),
|
|
3259
3265
|
label: e.getLabel?.(),
|
|
3260
3266
|
tooltip: e.getDescription?.()
|
|
3261
3267
|
}) : (e.render ? e.render({ ...d }, n) : null) ?? null)(e);
|
|
3262
|
-
const
|
|
3263
|
-
return
|
|
3264
|
-
if (Array.isArray(e.members)) return e.render ? e.render({ ...d }, t) ?? null : M($
|
|
3268
|
+
const o = s?.get(t) ?? null;
|
|
3269
|
+
return o ? ((e, t, r) => {
|
|
3270
|
+
if (Array.isArray(e.members)) return e.render ? e.render({ ...d }, t) ?? null : M($r, {
|
|
3265
3271
|
...d,
|
|
3266
3272
|
groupKey: t,
|
|
3267
|
-
icon:
|
|
3268
|
-
label:
|
|
3269
|
-
showLabel:
|
|
3273
|
+
icon: r?.getIcon?.(t),
|
|
3274
|
+
label: r?.getLabel?.(t),
|
|
3275
|
+
showLabel: r?.showLabel
|
|
3270
3276
|
});
|
|
3271
3277
|
if (e.render) return e.render({ ...d }, n) ?? null;
|
|
3272
|
-
const
|
|
3278
|
+
const o = r ? {
|
|
3273
3279
|
...e,
|
|
3274
|
-
...
|
|
3280
|
+
...r
|
|
3275
3281
|
} : e;
|
|
3276
|
-
return p(e.defaultKey ?? t,
|
|
3277
|
-
})(
|
|
3282
|
+
return p(e.defaultKey ?? t, o.state, o);
|
|
3283
|
+
})(o, t, r) : p(t, r?.state, r);
|
|
3278
3284
|
}, m = [];
|
|
3279
|
-
let h = 0,
|
|
3285
|
+
let h = 0, f = !1, g = !1;
|
|
3280
3286
|
const x = e ?? [];
|
|
3281
3287
|
for (let e = 0; e < x.length; e++) {
|
|
3282
3288
|
const t = x[e];
|
|
3283
3289
|
if (!t || "-" === t) {
|
|
3284
|
-
|
|
3290
|
+
g && (f = !0);
|
|
3285
3291
|
continue;
|
|
3286
3292
|
}
|
|
3287
|
-
const
|
|
3288
|
-
|
|
3293
|
+
const r = u(t);
|
|
3294
|
+
r && (f && (m.push(M(He, { orientation: o }, "member-" + h++)), f = !1), m.push(D(r, { key: "member-" + h++ })), g = !0);
|
|
3289
3295
|
}
|
|
3290
3296
|
return m;
|
|
3291
3297
|
}
|
|
3292
|
-
|
|
3293
|
-
var $
|
|
3294
|
-
const { groupKey:
|
|
3295
|
-
r,
|
|
3298
|
+
Dr.displayName = "CommandPopupButton";
|
|
3299
|
+
var $r = B($((e, t) => {
|
|
3300
|
+
const { groupKey: r, members: o, registry: n, quickCommand: i, icon: a, label: l, showLabel: s, tooltip: c, commandState: d, disabled: p, ...u } = e, m = me(), h = n ?? m, f = !o && r ? h.get(r) : null, g = f && Array.isArray(f.members) ? f : null, x = A(() => o ?? (r ? h.resolveMembers(r) : null) ?? null, [
|
|
3296
3301
|
o,
|
|
3302
|
+
r,
|
|
3297
3303
|
h
|
|
3298
|
-
]), b =
|
|
3304
|
+
]), b = r, y = i ?? g?.defaultKey, v = a ?? g?.getIcon?.(b), w = l ?? g?.getLabel?.(b), k = s ?? g?.showLabel, C = c ?? g?.getDescription?.(b), S = A(() => {
|
|
3299
3305
|
const e = [], t = x ?? [];
|
|
3300
|
-
for (let
|
|
3301
|
-
const
|
|
3302
|
-
|
|
3306
|
+
for (let r = 0; r < t.length; r++) {
|
|
3307
|
+
const o = t[r];
|
|
3308
|
+
o && "-" !== o && ("string" == typeof o ? e.push(o) : o.key && e.push(o.key));
|
|
3303
3309
|
}
|
|
3304
3310
|
return e;
|
|
3305
3311
|
}, [x]), P = he(y ? [y, ...S] : S), T = A(() => {
|
|
@@ -3311,7 +3317,7 @@ var $o = B($((e, t) => {
|
|
|
3311
3317
|
}, [P]), R = L((e) => {
|
|
3312
3318
|
const t = {};
|
|
3313
3319
|
void 0 !== p && (t.disabled = p);
|
|
3314
|
-
const
|
|
3320
|
+
const r = Ir(x, {
|
|
3315
3321
|
variant: _.Menuitem,
|
|
3316
3322
|
dividerOrientation: "horizontal",
|
|
3317
3323
|
groupKey: b,
|
|
@@ -3320,9 +3326,9 @@ var $o = B($((e, t) => {
|
|
|
3320
3326
|
propsCommandPopup: t,
|
|
3321
3327
|
registry: h
|
|
3322
3328
|
});
|
|
3323
|
-
return
|
|
3329
|
+
return St({
|
|
3324
3330
|
...e,
|
|
3325
|
-
children:
|
|
3331
|
+
children: r
|
|
3326
3332
|
});
|
|
3327
3333
|
}, [
|
|
3328
3334
|
x,
|
|
@@ -3331,7 +3337,7 @@ var $o = B($((e, t) => {
|
|
|
3331
3337
|
d,
|
|
3332
3338
|
p
|
|
3333
3339
|
]);
|
|
3334
|
-
return x ? M(
|
|
3340
|
+
return x ? M(Dr, {
|
|
3335
3341
|
ref: t,
|
|
3336
3342
|
quickCommand: y,
|
|
3337
3343
|
icon: v,
|
|
@@ -3344,12 +3350,12 @@ var $o = B($((e, t) => {
|
|
|
3344
3350
|
...u
|
|
3345
3351
|
}) : null;
|
|
3346
3352
|
}));
|
|
3347
|
-
$
|
|
3348
|
-
var
|
|
3349
|
-
const { commandKey:
|
|
3353
|
+
$r.displayName = "CommandGroup";
|
|
3354
|
+
var zr = M(Z, { iconKey: "Check" }), Br = (e) => {
|
|
3355
|
+
const { commandKey: r, label: o, groupKey: n, icon: i, sx: a, ...l } = e, [s] = he(r ?? []), c = A(() => {
|
|
3350
3356
|
if (void 0 !== i) return i;
|
|
3351
3357
|
let e = s?.getIcon(n);
|
|
3352
|
-
return e ? ("string" == typeof e && (e = M(Z, { iconKey: e })), e) :
|
|
3358
|
+
return e ? ("string" == typeof e && (e = M(Z, { iconKey: e })), e) : zr;
|
|
3353
3359
|
}, [
|
|
3354
3360
|
i,
|
|
3355
3361
|
n,
|
|
@@ -3374,32 +3380,32 @@ var zo = M(Z, { iconKey: "Check" }), Bo = (e) => {
|
|
|
3374
3380
|
paddingRight: (e) => e.spacing(.25),
|
|
3375
3381
|
fontSize: "inherit"
|
|
3376
3382
|
},
|
|
3377
|
-
children:
|
|
3383
|
+
children: o ?? s?.getLabel(n)
|
|
3378
3384
|
})]
|
|
3379
3385
|
});
|
|
3380
|
-
},
|
|
3381
|
-
const { sx:
|
|
3386
|
+
}, Lr = B($((e, t) => {
|
|
3387
|
+
const { sx: r, propsCommandButton: o, parentFloat: n, groupKey: i, members: a, registry: l, renderToolbarPalette: s, children: c, ...d } = e, p = me(), u = l ?? p, m = A(() => a ?? (i ? u.resolveMembers(i) : null) ?? null, [
|
|
3382
3388
|
a,
|
|
3383
3389
|
i,
|
|
3384
3390
|
u,
|
|
3385
3391
|
u.getVersion()
|
|
3386
|
-
]), h = ye(t, () => ({}), []), [
|
|
3392
|
+
]), h = ye(t, () => ({}), []), [f, x] = H(null), { reference: b } = ge({
|
|
3387
3393
|
label: "toolbar",
|
|
3388
3394
|
anchor: h.current,
|
|
3389
3395
|
parentFloat: n,
|
|
3390
3396
|
createPopupPanel: null
|
|
3391
3397
|
}), y = ue(() => {
|
|
3392
|
-
const e =
|
|
3398
|
+
const e = f;
|
|
3393
3399
|
e && requestAnimationFrame(() => {
|
|
3394
3400
|
h.current?.contains(document.activeElement) && e.focus();
|
|
3395
3401
|
});
|
|
3396
|
-
}, [
|
|
3402
|
+
}, [f]), v = A(() => ({
|
|
3397
3403
|
dense: !0,
|
|
3398
3404
|
outlined: !1
|
|
3399
|
-
}), []), w = A(() => ({ ...
|
|
3405
|
+
}), []), w = A(() => ({ ...o || {} }), [o]), k = A(() => ({
|
|
3400
3406
|
...v,
|
|
3401
3407
|
...w
|
|
3402
|
-
}), [v, w]), C = A(() => ({ ...w }), [k,
|
|
3408
|
+
}), [v, w]), C = A(() => ({ ...w }), [k, o]);
|
|
3403
3409
|
let S = 0;
|
|
3404
3410
|
v.dense || (S += 2), v.outlined && S++;
|
|
3405
3411
|
let P = 2;
|
|
@@ -3409,10 +3415,10 @@ var zo = M(Z, { iconKey: "Check" }), Bo = (e) => {
|
|
|
3409
3415
|
propsCommandButton: k,
|
|
3410
3416
|
propsCommandPopup: {
|
|
3411
3417
|
...C,
|
|
3412
|
-
...
|
|
3418
|
+
...o
|
|
3413
3419
|
}
|
|
3414
3420
|
};
|
|
3415
|
-
return s ? s(e) : m ? M(
|
|
3421
|
+
return s ? s(e) : m ? M(nr, { children: Ir(m, {
|
|
3416
3422
|
dividerOrientation: "vertical",
|
|
3417
3423
|
groupKey: i,
|
|
3418
3424
|
propsCommandButton: e.propsCommandButton,
|
|
@@ -3422,13 +3428,13 @@ var zo = M(Z, { iconKey: "Check" }), Bo = (e) => {
|
|
|
3422
3428
|
}, [
|
|
3423
3429
|
k,
|
|
3424
3430
|
C,
|
|
3425
|
-
|
|
3431
|
+
o,
|
|
3426
3432
|
s,
|
|
3427
3433
|
m,
|
|
3428
3434
|
i,
|
|
3429
3435
|
u
|
|
3430
3436
|
]);
|
|
3431
|
-
return M(
|
|
3437
|
+
return M(g, {
|
|
3432
3438
|
variant: "dense",
|
|
3433
3439
|
sx: {
|
|
3434
3440
|
minHeight: "unset",
|
|
@@ -3443,17 +3449,17 @@ var zo = M(Z, { iconKey: "Check" }), Bo = (e) => {
|
|
|
3443
3449
|
flexGrow: 1,
|
|
3444
3450
|
display: "flex",
|
|
3445
3451
|
overflow: "hidden",
|
|
3446
|
-
...
|
|
3452
|
+
...r
|
|
3447
3453
|
},
|
|
3448
3454
|
ref: h,
|
|
3449
3455
|
onFocus: (e) => {
|
|
3450
|
-
e.relatedTarget && !
|
|
3456
|
+
e.relatedTarget && !f && x(e.relatedTarget);
|
|
3451
3457
|
},
|
|
3452
3458
|
onBlur: (e) => {
|
|
3453
|
-
|
|
3459
|
+
f && !h?.current?.contains(e.relatedTarget) && x(null);
|
|
3454
3460
|
},
|
|
3455
3461
|
onKeyDown: (e) => {
|
|
3456
|
-
|
|
3462
|
+
f && e.which === oe.Escape && f.focus();
|
|
3457
3463
|
},
|
|
3458
3464
|
...d,
|
|
3459
3465
|
children: M("div", {
|
|
@@ -3467,7 +3473,7 @@ var zo = M(Z, { iconKey: "Check" }), Bo = (e) => {
|
|
|
3467
3473
|
alignItems: "center",
|
|
3468
3474
|
maxWidth: "100%"
|
|
3469
3475
|
},
|
|
3470
|
-
children: M(
|
|
3476
|
+
children: M(re, {
|
|
3471
3477
|
value: b,
|
|
3472
3478
|
children: M(J, {
|
|
3473
3479
|
value: y,
|
|
@@ -3477,17 +3483,17 @@ var zo = M(Z, { iconKey: "Check" }), Bo = (e) => {
|
|
|
3477
3483
|
})
|
|
3478
3484
|
});
|
|
3479
3485
|
}));
|
|
3480
|
-
|
|
3481
|
-
var
|
|
3482
|
-
const { groupKey:
|
|
3483
|
-
r,
|
|
3486
|
+
Lr.displayName = "CommandToolbar";
|
|
3487
|
+
var Nr = B($((e, t) => {
|
|
3488
|
+
const { groupKey: r, members: o, registry: n, projectAs: i = "quick", defaultIcon: a, ...l } = e, s = me(), c = n ?? s, d = A(() => o ?? (r ? c.resolveMembers(r) : null) ?? null, [
|
|
3484
3489
|
o,
|
|
3490
|
+
r,
|
|
3485
3491
|
c
|
|
3486
3492
|
]), p = A(() => {
|
|
3487
3493
|
const e = [], t = d ?? [];
|
|
3488
|
-
for (let
|
|
3489
|
-
const
|
|
3490
|
-
|
|
3494
|
+
for (let r = 0; r < t.length; r++) {
|
|
3495
|
+
const o = t[r];
|
|
3496
|
+
o && "-" !== o && ("string" == typeof o ? e.push(o) : o.key && e.push(o.key));
|
|
3491
3497
|
}
|
|
3492
3498
|
return e;
|
|
3493
3499
|
}, [d]), u = he(p);
|
|
@@ -3496,21 +3502,21 @@ var No = B($((e, t) => {
|
|
|
3496
3502
|
const t = u[e];
|
|
3497
3503
|
t && !t.disabled() && t.getState() && (m = p[e], h = t.getIcon());
|
|
3498
3504
|
}
|
|
3499
|
-
const
|
|
3505
|
+
const f = "icon" === i ? {
|
|
3500
3506
|
icon: h ?? a,
|
|
3501
3507
|
quickCommand: void 0
|
|
3502
3508
|
} : {
|
|
3503
3509
|
quickCommand: m ?? p[0],
|
|
3504
3510
|
icon: void 0
|
|
3505
3511
|
};
|
|
3506
|
-
return M($
|
|
3512
|
+
return M($r, {
|
|
3507
3513
|
ref: t,
|
|
3508
|
-
groupKey:
|
|
3509
|
-
members:
|
|
3514
|
+
groupKey: r,
|
|
3515
|
+
members: o,
|
|
3510
3516
|
registry: c,
|
|
3511
3517
|
...l,
|
|
3512
|
-
...
|
|
3518
|
+
...f
|
|
3513
3519
|
});
|
|
3514
3520
|
}));
|
|
3515
|
-
|
|
3516
|
-
export { Ge as AnimatedBouncingEllipsisIcon, je as AnimatedCircleIcon, qe as AnimatedClockIcon, Qe as AnimatedFadingEllipsisIcon, Ze as AnimatedLoadingPanel, Ue as AnimatedOrbitIcon, Xe as AnimatedTraversingEllipsisIcon,
|
|
3521
|
+
Nr.displayName = "ToggleGroupButton";
|
|
3522
|
+
export { Ge as AnimatedBouncingEllipsisIcon, je as AnimatedCircleIcon, qe as AnimatedClockIcon, Qe as AnimatedFadingEllipsisIcon, Ze as AnimatedLoadingPanel, Ue as AnimatedOrbitIcon, Xe as AnimatedTraversingEllipsisIcon, pt as ArrowDownIcon, ut as ArrowRightIcon, st as ChipStrip, Ct as ClosingReason, Pr as CommandButton, $r as CommandGroup, Dr as CommandPopupButton, Lr as CommandToolbar, kr as CommandTooltip, zt as ContextMenu, He as ExhibitDivider, Tt as ExhibitFloatPanel, Dt as ExhibitFloatProvider, At as ExhibitIconButton, qt as ExhibitMenuHeader, Vt as ExhibitMenuItem, Xt as ExhibitOptionButton, jt as ExhibitPopupIconButton, Ut as ExhibitPopupMenuItem, Ot as ExhibitTooltip, Rr as InputCommandButton, ur as InternalWindow, Br as LabelIcon, at as LazyLoadErrorPanel, Wt as MenuItemInsets, Te as ModalProvider, It as NestingPopupButton, br as OptionsDialog, nr as OverflowPalette, kt as PopupAutoFocus, Mt as PopupButtonType, Jt as SelectedIcon, Bt as SimpleTooltip, ot as StackTrace, nt as StackTraceErrorPanel, Nr as ToggleGroupButton, Ne as buttonLabelSx, Oe as composeButtonContent, Pt as createDownArrow, yt as createExhibitTheme, Ae as createScrollButton, dt as createStrokeShadowFilter, St as defaultCreatePopupPanel, gt as elevateColor, vt as getScrollbarCssVariables, ft as hexToRGB, Je as hideLoadingPanel, lr as lazyModal, lt as lazyPanel, fr as optionIdentity, rr as registerUtilsMuiLocales, Ir as renderMembers, Fe as renderScrollButtonEdge, We as renderScrollButtonEnd, Ke as renderScrollButtonStart, wt as scrollbarTheming, _e as showLoadingPanel, ct as strokeShadowFilter, Nt as toShortcutElements, wr as useInputDialog, sr as useLazyWindow, yr as useOptionsDialog };
|