@sheetxl/utils-mui 0.8.0-beta.22 → 0.8.0-beta.24
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/B9_cmnQyFrR3VxA1.mjs +2588 -0
- package/browser/esm/{ChwH4cpKNUXWYosE.mjs → CkQpEyDkcGs4Dx9X.mjs} +2 -2
- package/browser/esm/index.mjs +896 -754
- package/licenses/dependencies.txt +1 -1
- package/node/esm/{dXZXZwMw1BlQOopL.mjs → B9bsJW-sDycQWnod.mjs} +1 -1
- package/node/esm/index.mjs +764 -826
- package/package.json +4 -4
- package/types/src/theme/index.d.ts +0 -1
- package/browser/esm/BoeNTbAcS-FGpa_7.mjs +0 -2691
- package/types/src/theme/ScrollbarTheming.d.ts +0 -12
package/browser/esm/index.mjs
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`._traverse-ellipsis_14l1h_1{display:inline-block;position:relative}._traverse-ellipsis_14l1h_1 div{border-radius:50%;position:absolute}._traverse-ellipsis_14l1h_1 div:first-child{animation:.6s infinite _traverse-ellipsis1_14l1h_1;left:0}._traverse-ellipsis_14l1h_1 div:nth-child(2){animation:.6s infinite _traverse-ellipsis2_14l1h_1;left:0}._traverse-ellipsis_14l1h_1 div:nth-child(3){animation:.6s infinite _traverse-ellipsis2_14l1h_1;left:24px}._traverse-ellipsis_14l1h_1 div:nth-child(4){animation:.6s infinite _traverse-ellipsis3_14l1h_1;left:48px}@keyframes _traverse-ellipsis1_14l1h_1{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes _traverse-ellipsis3_14l1h_1{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes _traverse-ellipsis2_14l1h_1{0%{transform:translate(0)}to{transform:translate(24px)}}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.
|
|
3
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.24
|
|
4
4
|
*
|
|
5
5
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
6
6
|
* License: MIT
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
import { Box as
|
|
10
|
-
import { Fragment as
|
|
11
|
-
import
|
|
12
|
-
import { alpha as
|
|
13
|
-
import { CommonUtils as
|
|
14
|
-
import { CommandButtonType as
|
|
15
|
-
import
|
|
16
|
-
|
|
8
|
+
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c, u as l } from "./B9_cmnQyFrR3VxA1.mjs";
|
|
9
|
+
import { Box as u, Button as d, Divider as f, IconButton as p, Input as m, LinearProgress as h, ListItemButton as g, ListItemIcon as _, Paper as v, Toolbar as y, Typography as b, createTheme as x, useTheme as S } from "@mui/material";
|
|
10
|
+
import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
11
|
+
import E, { Children as D, Fragment as O, Suspense as k, cloneElement as A, createContext as j, forwardRef as M, isValidElement as ee, memo as N, useCallback as P, useContext as F, useEffect as I, useLayoutEffect as te, useMemo as L, useReducer as R, useRef as z, useState as B } from "react";
|
|
12
|
+
import { alpha as V, darken as ne, lighten as H } from "@mui/system";
|
|
13
|
+
import { CommonUtils as re, ErrorUtils as ie, defineLazyModule as ae } from "@sheetxl/utils";
|
|
14
|
+
import { CommandButtonType as U, CommandFocusProvider as W, DynamicIcon as G, FloatPopper as oe, FloatProvider as K, FloatStackProvider as q, KeyCodes as J, RenderSlot as se, ScrollbarOrientation as Y, defaultRenderScrollButtonEdge as ce, lazyComponent as le, scrollbarThemedClassName as ue, useCallbackRef as X, useCommandButtonRegistry as de, useCommands as Z, useFloat as fe, useFloatStack as pe, useImperativeElement as me, useIsomorphicLayoutEffect as he, useLazyRetry as ge, useMeasure as _e, useTranslator as ve } from "@sheetxl/utils-react";
|
|
15
|
+
import { deepmerge as ye } from "@mui/utils";
|
|
16
|
+
import be from "@mui/material/ButtonBase/TouchRipple";
|
|
17
|
+
var xe = {
|
|
17
18
|
whiteSpace: "nowrap",
|
|
18
19
|
textTransform: "none",
|
|
19
20
|
lineHeight: 1,
|
|
@@ -21,13 +22,13 @@ var Te = {
|
|
|
21
22
|
paddingLeft: (e) => e.spacing(.25),
|
|
22
23
|
paddingRight: (e) => e.spacing(.25)
|
|
23
24
|
};
|
|
24
|
-
function
|
|
25
|
-
let n = t != null && !1 !== t && t !== "" ?
|
|
25
|
+
function Se(e, t) {
|
|
26
|
+
let n = t != null && !1 !== t && t !== "" ? w(b, {
|
|
26
27
|
component: "div",
|
|
27
|
-
sx:
|
|
28
|
+
sx: xe,
|
|
28
29
|
children: t
|
|
29
30
|
}) : null;
|
|
30
|
-
return e && n ?
|
|
31
|
+
return e && n ? T(u, {
|
|
31
32
|
sx: {
|
|
32
33
|
display: "flex",
|
|
33
34
|
alignItems: "center"
|
|
@@ -35,32 +36,32 @@ function Ee(e, t) {
|
|
|
35
36
|
children: [e, n]
|
|
36
37
|
}) : e ?? n ?? void 0;
|
|
37
38
|
}
|
|
38
|
-
var
|
|
39
|
-
let n =
|
|
40
|
-
return
|
|
41
|
-
},
|
|
39
|
+
var Ce = ({ isHorizontal: e, isBefore: t }) => {
|
|
40
|
+
let n = ve();
|
|
41
|
+
return w(C, t ? { children: n(e ? "scroll.edgeLeft" : "scroll.edgeTop") } : { children: n(e ? "scroll.edgeRight" : "scroll.edgeBottom") });
|
|
42
|
+
}, we = (e) => {
|
|
42
43
|
let t = {
|
|
43
44
|
style: { cursor: "pointer" },
|
|
44
45
|
...e
|
|
45
|
-
}, n =
|
|
46
|
+
}, n = ce(t);
|
|
46
47
|
if (e.isBefore !== void 0 && !e.disabled) {
|
|
47
|
-
let t = e.orientation ===
|
|
48
|
-
n =
|
|
49
|
-
title:
|
|
48
|
+
let t = e.orientation === Y.Horizontal;
|
|
49
|
+
n = w(s, {
|
|
50
|
+
title: w(Ce, {
|
|
50
51
|
isHorizontal: t,
|
|
51
52
|
isBefore: e.isBefore
|
|
52
53
|
}),
|
|
53
54
|
enterDelay: 800,
|
|
54
55
|
enterNextDelay: 1600,
|
|
55
|
-
children: e.disabled ?
|
|
56
|
+
children: e.disabled ? w("div", {
|
|
56
57
|
style: { display: "flex" },
|
|
57
58
|
children: n
|
|
58
59
|
}) : n
|
|
59
60
|
});
|
|
60
61
|
}
|
|
61
62
|
return n;
|
|
62
|
-
},
|
|
63
|
-
let { style: i, ...a } = e, o =
|
|
63
|
+
}, Te = (e, t, n, r) => {
|
|
64
|
+
let { style: i, ...a } = e, o = w(p, {
|
|
64
65
|
component: "div",
|
|
65
66
|
...a,
|
|
66
67
|
style: {
|
|
@@ -73,30 +74,30 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
73
74
|
size: "small",
|
|
74
75
|
children: t
|
|
75
76
|
});
|
|
76
|
-
return
|
|
77
|
+
return w(s, {
|
|
77
78
|
title: e.disabled ? n : r,
|
|
78
79
|
enterDelay: 800,
|
|
79
80
|
enterNextDelay: 1600,
|
|
80
|
-
children: e.disabled ?
|
|
81
|
+
children: e.disabled ? w("div", {
|
|
81
82
|
style: { display: "flex" },
|
|
82
83
|
children: o
|
|
83
84
|
}) : o
|
|
84
85
|
});
|
|
85
|
-
},
|
|
86
|
+
}, Ee = (e) => Te(e, Y.Horizontal ? w(G, {
|
|
86
87
|
iconKey: "ArrowLeft",
|
|
87
88
|
size: "small"
|
|
88
|
-
}) :
|
|
89
|
+
}) : w(G, {
|
|
89
90
|
iconKey: "ArrowUpward",
|
|
90
91
|
size: "small"
|
|
91
|
-
}), "Scroll " + (e.orientation ===
|
|
92
|
+
}), "Scroll " + (e.orientation === Y.Horizontal ? "Left" : "Up"), `Scroll ${e.orientation === Y.Horizontal ? "left" : "up"}, 'Ctrl+Click' to scroll to the beginning`), De = (e) => Te(e, Y.Horizontal ? w(G, {
|
|
92
93
|
iconKey: "ArrowRight",
|
|
93
94
|
size: "small"
|
|
94
|
-
}) :
|
|
95
|
+
}) : w(G, {
|
|
95
96
|
iconKey: "ArrowDownward",
|
|
96
97
|
size: "small"
|
|
97
|
-
}), "Scroll " + (e.orientation ===
|
|
98
|
+
}), "Scroll " + (e.orientation === Y.Horizontal ? "Right" : "Down"), `Scroll ${e.orientation === Y.Horizontal ? "right" : "down"}, 'Ctrl+Click' to scroll to the end`), Oe = N(M((e, t) => {
|
|
98
99
|
let { orientation: n = "vertical", sx: r, ...i } = e, a = n === "vertical";
|
|
99
|
-
return
|
|
100
|
+
return w(f, {
|
|
100
101
|
ref: t,
|
|
101
102
|
sx: {
|
|
102
103
|
marginLeft: a ? "2px" : void 0,
|
|
@@ -112,9 +113,9 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
112
113
|
flexItem: !0,
|
|
113
114
|
...i
|
|
114
115
|
});
|
|
115
|
-
})),
|
|
116
|
+
})), ke = "_traverse-ellipsis_14l1h_1", Ae = N((e) => {
|
|
116
117
|
let { sx: t, speed: n = 2, size: r = 70, ...i } = e;
|
|
117
|
-
return
|
|
118
|
+
return w(u, {
|
|
118
119
|
sx: {
|
|
119
120
|
width: `${r}px`,
|
|
120
121
|
height: `${r}px`,
|
|
@@ -126,19 +127,19 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
126
127
|
...t
|
|
127
128
|
},
|
|
128
129
|
...i,
|
|
129
|
-
children:
|
|
130
|
+
children: T("svg", {
|
|
130
131
|
x: "0px",
|
|
131
132
|
y: "0px",
|
|
132
133
|
viewBox: "0 0 100 100",
|
|
133
134
|
children: [
|
|
134
|
-
|
|
135
|
+
w("circle", {
|
|
135
136
|
className: "primary",
|
|
136
137
|
strokeWidth: "4",
|
|
137
138
|
cx: "50",
|
|
138
139
|
cy: "50",
|
|
139
140
|
r: "48"
|
|
140
141
|
}),
|
|
141
|
-
|
|
142
|
+
w("line", {
|
|
142
143
|
className: "primary",
|
|
143
144
|
strokeLinecap: "round",
|
|
144
145
|
strokeWidth: "4",
|
|
@@ -146,7 +147,7 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
146
147
|
y1: "50",
|
|
147
148
|
x2: "85",
|
|
148
149
|
y2: "50.5",
|
|
149
|
-
children:
|
|
150
|
+
children: w("animateTransform", {
|
|
150
151
|
attributeName: "transform",
|
|
151
152
|
dur: `${n}s`,
|
|
152
153
|
type: "rotate",
|
|
@@ -155,7 +156,7 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
155
156
|
repeatCount: "indefinite"
|
|
156
157
|
})
|
|
157
158
|
}),
|
|
158
|
-
|
|
159
|
+
w("line", {
|
|
159
160
|
className: "primary",
|
|
160
161
|
strokeLinecap: "round",
|
|
161
162
|
strokeWidth: "4",
|
|
@@ -163,7 +164,7 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
163
164
|
y1: "50",
|
|
164
165
|
x2: "49.5",
|
|
165
166
|
y2: "74",
|
|
166
|
-
children:
|
|
167
|
+
children: w("animateTransform", {
|
|
167
168
|
attributeName: "transform",
|
|
168
169
|
dur: 7.5 * n + "s",
|
|
169
170
|
type: "rotate",
|
|
@@ -175,9 +176,9 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
175
176
|
]
|
|
176
177
|
})
|
|
177
178
|
});
|
|
178
|
-
}),
|
|
179
|
+
}), je = N((e) => {
|
|
179
180
|
let { sx: t, speed: n = 1.5, size: r = 70, ...i } = e;
|
|
180
|
-
return
|
|
181
|
+
return w(u, {
|
|
181
182
|
sx: {
|
|
182
183
|
width: `${r}px`,
|
|
183
184
|
height: `${r}px`,
|
|
@@ -191,20 +192,20 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
191
192
|
...t
|
|
192
193
|
},
|
|
193
194
|
...i,
|
|
194
|
-
children:
|
|
195
|
+
children: T("svg", {
|
|
195
196
|
x: "0px",
|
|
196
197
|
y: "0px",
|
|
197
198
|
viewBox: "0 0 100 100",
|
|
198
|
-
children: [
|
|
199
|
+
children: [w("circle", {
|
|
199
200
|
className: "secondary",
|
|
200
201
|
strokeWidth: "4",
|
|
201
202
|
cx: "50",
|
|
202
203
|
cy: "50",
|
|
203
204
|
r: "21"
|
|
204
|
-
}),
|
|
205
|
+
}), w("path", {
|
|
205
206
|
className: "primary",
|
|
206
207
|
d: "M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50",
|
|
207
|
-
children:
|
|
208
|
+
children: w("animateTransform", {
|
|
208
209
|
attributeName: "transform",
|
|
209
210
|
type: "rotate",
|
|
210
211
|
dur: 1 * n + "s",
|
|
@@ -215,9 +216,9 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
215
216
|
})]
|
|
216
217
|
})
|
|
217
218
|
});
|
|
218
|
-
}),
|
|
219
|
+
}), Me = N((e) => {
|
|
219
220
|
let { sx: t, speed: n = 1, size: r = 70, ...i } = e;
|
|
220
|
-
return
|
|
221
|
+
return w(u, {
|
|
221
222
|
sx: {
|
|
222
223
|
width: `${r}px`,
|
|
223
224
|
height: `${r}px`,
|
|
@@ -225,17 +226,17 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
225
226
|
...t
|
|
226
227
|
},
|
|
227
228
|
...i,
|
|
228
|
-
children:
|
|
229
|
+
children: T("svg", {
|
|
229
230
|
x: "0px",
|
|
230
231
|
y: "0px",
|
|
231
232
|
viewBox: "0 0 100 100",
|
|
232
233
|
children: [
|
|
233
|
-
|
|
234
|
+
w("circle", {
|
|
234
235
|
className: "primary",
|
|
235
236
|
cx: "6",
|
|
236
237
|
cy: "50",
|
|
237
238
|
r: "6",
|
|
238
|
-
children:
|
|
239
|
+
children: w("animate", {
|
|
239
240
|
attributeName: "opacity",
|
|
240
241
|
dur: `${n}s`,
|
|
241
242
|
values: "0;1;0",
|
|
@@ -243,12 +244,12 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
243
244
|
begin: "0.1"
|
|
244
245
|
})
|
|
245
246
|
}),
|
|
246
|
-
|
|
247
|
+
w("circle", {
|
|
247
248
|
className: "primary",
|
|
248
249
|
cx: "26",
|
|
249
250
|
cy: "50",
|
|
250
251
|
r: "6",
|
|
251
|
-
children:
|
|
252
|
+
children: w("animate", {
|
|
252
253
|
attributeName: "opacity",
|
|
253
254
|
dur: `${n}s`,
|
|
254
255
|
values: "0;1;0",
|
|
@@ -256,12 +257,12 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
256
257
|
begin: "0.2"
|
|
257
258
|
})
|
|
258
259
|
}),
|
|
259
|
-
|
|
260
|
+
w("circle", {
|
|
260
261
|
className: "primary",
|
|
261
262
|
cx: "46",
|
|
262
263
|
cy: "50",
|
|
263
264
|
r: "6",
|
|
264
|
-
children:
|
|
265
|
+
children: w("animate", {
|
|
265
266
|
attributeName: "opacity",
|
|
266
267
|
dur: `${n}s`,
|
|
267
268
|
values: "0;1;0",
|
|
@@ -272,9 +273,9 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
272
273
|
]
|
|
273
274
|
})
|
|
274
275
|
});
|
|
275
|
-
}),
|
|
276
|
+
}), Ne = N((e) => {
|
|
276
277
|
let { sx: t, speed: n = 1, size: r = 70, ...i } = e;
|
|
277
|
-
return
|
|
278
|
+
return w(u, {
|
|
278
279
|
sx: {
|
|
279
280
|
width: `${r}px`,
|
|
280
281
|
height: `${r}px`,
|
|
@@ -286,17 +287,17 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
286
287
|
...t
|
|
287
288
|
},
|
|
288
289
|
...i,
|
|
289
|
-
children:
|
|
290
|
+
children: T("svg", {
|
|
290
291
|
x: "0px",
|
|
291
292
|
y: "0px",
|
|
292
293
|
viewBox: "0 0 100 100",
|
|
293
294
|
children: [
|
|
294
|
-
|
|
295
|
+
w("circle", {
|
|
295
296
|
className: "primary",
|
|
296
297
|
cx: "6",
|
|
297
298
|
cy: "50",
|
|
298
299
|
r: "6",
|
|
299
|
-
children:
|
|
300
|
+
children: w("animateTransform", {
|
|
300
301
|
attributeName: "transform",
|
|
301
302
|
dur: `${n}s`,
|
|
302
303
|
type: "translate",
|
|
@@ -305,12 +306,12 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
305
306
|
begin: "0.1"
|
|
306
307
|
})
|
|
307
308
|
}),
|
|
308
|
-
|
|
309
|
+
w("circle", {
|
|
309
310
|
className: "primary",
|
|
310
311
|
cx: "30",
|
|
311
312
|
cy: "50",
|
|
312
313
|
r: "6",
|
|
313
|
-
children:
|
|
314
|
+
children: w("animateTransform", {
|
|
314
315
|
attributeName: "transform",
|
|
315
316
|
dur: `${n}s`,
|
|
316
317
|
type: "translate",
|
|
@@ -319,12 +320,12 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
319
320
|
begin: "0.2"
|
|
320
321
|
})
|
|
321
322
|
}),
|
|
322
|
-
|
|
323
|
+
w("circle", {
|
|
323
324
|
className: "primary",
|
|
324
325
|
cx: "54",
|
|
325
326
|
cy: "50",
|
|
326
327
|
r: "6",
|
|
327
|
-
children:
|
|
328
|
+
children: w("animateTransform", {
|
|
328
329
|
attributeName: "transform",
|
|
329
330
|
dur: `${n}s`,
|
|
330
331
|
type: "translate",
|
|
@@ -336,9 +337,9 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
336
337
|
]
|
|
337
338
|
})
|
|
338
339
|
});
|
|
339
|
-
}),
|
|
340
|
+
}), Pe = N((e) => {
|
|
340
341
|
let { sx: t, speed: n = 2, size: r = 70, ...i } = e;
|
|
341
|
-
return
|
|
342
|
+
return w(u, {
|
|
342
343
|
sx: {
|
|
343
344
|
width: `${r}px`,
|
|
344
345
|
height: `${r}px`,
|
|
@@ -356,23 +357,23 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
356
357
|
...t
|
|
357
358
|
},
|
|
358
359
|
...i,
|
|
359
|
-
children:
|
|
360
|
+
children: T("svg", {
|
|
360
361
|
x: "0px",
|
|
361
362
|
y: "0px",
|
|
362
363
|
viewBox: "0 0 100 100",
|
|
363
|
-
children: [
|
|
364
|
+
children: [w("circle", {
|
|
364
365
|
className: "primary",
|
|
365
366
|
strokeWidth: "4",
|
|
366
367
|
cx: "50",
|
|
367
368
|
cy: "50",
|
|
368
369
|
r: "44"
|
|
369
|
-
}),
|
|
370
|
+
}), w("circle", {
|
|
370
371
|
className: "secondary",
|
|
371
372
|
strokeWidth: "3",
|
|
372
373
|
cx: "8",
|
|
373
374
|
cy: "54",
|
|
374
375
|
r: "6",
|
|
375
|
-
children:
|
|
376
|
+
children: w("animateTransform", {
|
|
376
377
|
attributeName: "transform",
|
|
377
378
|
dur: `${n}s`,
|
|
378
379
|
type: "rotate",
|
|
@@ -383,9 +384,9 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
383
384
|
})]
|
|
384
385
|
})
|
|
385
386
|
});
|
|
386
|
-
}),
|
|
387
|
+
}), Fe = N((e) => {
|
|
387
388
|
let { sx: t, speed: n = 1, size: r = 13, width: i = 64, height: a = 17, ...o } = e;
|
|
388
|
-
return
|
|
389
|
+
return T(u, {
|
|
389
390
|
sx: {
|
|
390
391
|
width: `${i}px`,
|
|
391
392
|
height: `${a}px`,
|
|
@@ -397,16 +398,16 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
397
398
|
},
|
|
398
399
|
...t
|
|
399
400
|
},
|
|
400
|
-
className:
|
|
401
|
+
className: l(ke, "animated-icon"),
|
|
401
402
|
...o,
|
|
402
403
|
children: [
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
404
|
+
w("div", { className: "primary" }),
|
|
405
|
+
w("div", { className: "primary" }),
|
|
406
|
+
w("div", { className: "primary" }),
|
|
407
|
+
w("div", { className: "primary" })
|
|
407
408
|
]
|
|
408
409
|
});
|
|
409
|
-
}),
|
|
410
|
+
}), Ie = w(je, {}), Le = (e, t) => {
|
|
410
411
|
if (!e) return null;
|
|
411
412
|
if (t !== void 0) {
|
|
412
413
|
let n = e.querySelector("[data-sxl-loading-label]");
|
|
@@ -421,10 +422,10 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
421
422
|
};
|
|
422
423
|
n ? Promise.all(n.map((e) => e.ready)).then(r, r) : requestAnimationFrame(() => requestAnimationFrame(r));
|
|
423
424
|
});
|
|
424
|
-
},
|
|
425
|
+
}, Re = (e) => {
|
|
425
426
|
e && e.classList.contains("animating") && (e.classList.add("animating-idle"), e.classList.remove("animating"));
|
|
426
|
-
},
|
|
427
|
-
let { sx: n, style:
|
|
427
|
+
}, ze = N(M((e, t) => {
|
|
428
|
+
let { sx: n, style: i, onMount: a, onUnmount: o, transitionDelay: s = "1200ms", panel: c = !1, autoStart: l = !0, transparentBackground: d = !0, icon: f = Ie, label: p, progress: m = null, ...g } = e, _ = L(() => typeof p == "string" || !l && p == null ? w(b, {
|
|
428
429
|
"data-sxl-loading-label": "",
|
|
429
430
|
variant: "caption",
|
|
430
431
|
component: "div",
|
|
@@ -433,17 +434,17 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
433
434
|
lineHeight: 1.43,
|
|
434
435
|
letterSpacing: "0.01071em"
|
|
435
436
|
},
|
|
436
|
-
children: typeof
|
|
437
|
-
}) :
|
|
438
|
-
if (typeof
|
|
439
|
-
let e = Math.max(0, Math.min(100, Math.round(100 *
|
|
440
|
-
return
|
|
437
|
+
children: typeof p == "string" ? p : ""
|
|
438
|
+
}) : p, [p, l]), y = L(() => {
|
|
439
|
+
if (typeof m != "number") return f;
|
|
440
|
+
let e = Math.max(0, Math.min(100, Math.round(100 * m)));
|
|
441
|
+
return w(u, {
|
|
441
442
|
sx: {
|
|
442
443
|
display: "flex",
|
|
443
444
|
alignItems: "center",
|
|
444
445
|
width: "180px"
|
|
445
446
|
},
|
|
446
|
-
children:
|
|
447
|
+
children: w(h, {
|
|
447
448
|
variant: "determinate",
|
|
448
449
|
value: e,
|
|
449
450
|
color: "inherit",
|
|
@@ -464,17 +465,17 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
464
465
|
}
|
|
465
466
|
})
|
|
466
467
|
});
|
|
467
|
-
}, [
|
|
468
|
-
let e =
|
|
468
|
+
}, [m, f]), x = z(null), S = r([x, t]), C = L(() => {
|
|
469
|
+
let e = T(u, {
|
|
469
470
|
sx: {
|
|
470
471
|
display: "flex",
|
|
471
472
|
flexDirection: "column",
|
|
472
473
|
alignItems: "center",
|
|
473
474
|
rowGap: "8px"
|
|
474
475
|
},
|
|
475
|
-
children: [
|
|
476
|
+
children: [_, y]
|
|
476
477
|
});
|
|
477
|
-
return !0 ===
|
|
478
|
+
return !0 === c && (e = w(v, {
|
|
478
479
|
elevation: 0,
|
|
479
480
|
sx: {
|
|
480
481
|
display: "flex",
|
|
@@ -493,7 +494,7 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
493
494
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
494
495
|
boxShadow: (e) => e.shadows[2],
|
|
495
496
|
"& .primary": {
|
|
496
|
-
background: (e) => `${
|
|
497
|
+
background: (e) => `${V(e.palette.info.contrastText, .9)} !important`,
|
|
497
498
|
boxShadow: (e) => `0 0 0 1px ${e.palette.mode === "dark" ? e.palette.text.secondary : e.palette.divider}`,
|
|
498
499
|
boxSizing: "content-box",
|
|
499
500
|
border: "solid transparent"
|
|
@@ -501,9 +502,9 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
501
502
|
zIndex: 1
|
|
502
503
|
},
|
|
503
504
|
children: e
|
|
504
|
-
})),
|
|
505
|
-
...
|
|
506
|
-
ref:
|
|
505
|
+
})), w(u, {
|
|
506
|
+
...g,
|
|
507
|
+
ref: S,
|
|
507
508
|
className: "animatable",
|
|
508
509
|
sx: {
|
|
509
510
|
cursor: "wait",
|
|
@@ -514,9 +515,9 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
514
515
|
flexDirection: "column",
|
|
515
516
|
willChange: "opacity",
|
|
516
517
|
"&:not(.animating) *": { animationPlayState: "paused" },
|
|
517
|
-
opacity:
|
|
518
|
+
opacity: d ? .001 : 1,
|
|
518
519
|
transitionProperty: "opacity",
|
|
519
|
-
transitionDelay:
|
|
520
|
+
transitionDelay: s,
|
|
520
521
|
transitionDuration: "320ms",
|
|
521
522
|
transitionTimingFunction: "ease-in",
|
|
522
523
|
overflow: "hidden",
|
|
@@ -533,9 +534,9 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
533
534
|
transition: "opacity 210ms"
|
|
534
535
|
},
|
|
535
536
|
...n,
|
|
536
|
-
...
|
|
537
|
+
...i
|
|
537
538
|
},
|
|
538
|
-
children:
|
|
539
|
+
children: T(u, {
|
|
539
540
|
className: "center",
|
|
540
541
|
sx: {
|
|
541
542
|
display: "flex",
|
|
@@ -547,11 +548,11 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
547
548
|
boxSizing: "border-box",
|
|
548
549
|
position: "relative"
|
|
549
550
|
},
|
|
550
|
-
children: [
|
|
551
|
+
children: [w(u, {
|
|
551
552
|
className: "backdrop",
|
|
552
553
|
sx: {
|
|
553
|
-
opacity: (e) =>
|
|
554
|
-
background: (e) =>
|
|
554
|
+
opacity: (e) => d ? 1.5 * e.palette.action.disabledOpacity : void 0,
|
|
555
|
+
background: (e) => d ? void 0 : e.palette.background.paper,
|
|
555
556
|
backdropFilter: "blur(4px)",
|
|
556
557
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
557
558
|
zIndex: -1,
|
|
@@ -565,42 +566,42 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
|
|
|
565
566
|
});
|
|
566
567
|
}, [
|
|
567
568
|
n,
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
]),
|
|
573
|
-
return
|
|
574
|
-
if (!1 ===
|
|
575
|
-
let e =
|
|
576
|
-
e && !
|
|
577
|
-
}, [
|
|
578
|
-
|
|
579
|
-
}, []),
|
|
569
|
+
c,
|
|
570
|
+
_,
|
|
571
|
+
y,
|
|
572
|
+
S
|
|
573
|
+
]), E = z(!1);
|
|
574
|
+
return he(() => {
|
|
575
|
+
if (!1 === l) return;
|
|
576
|
+
let e = x.current;
|
|
577
|
+
e && !E.current && (E.current = !0, e.classList.contains("animatable") && !e.classList.contains("animating") && (e.offsetHeight, e.classList.add("animating")), a?.());
|
|
578
|
+
}, [x.current, l]), I(() => () => {
|
|
579
|
+
E.current && (x.current?.classList.remove("animating"), E.current = !1, o?.());
|
|
580
|
+
}, []), C;
|
|
580
581
|
}));
|
|
581
|
-
|
|
582
|
-
var
|
|
582
|
+
ze.displayName = "AnimatedLoadingPanel";
|
|
583
|
+
var Be = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ve = /^\s*at\s+(?:(async|new|await)\s+)?(.+?):(\d+):(\d+)\s*$/, He = (e) => {
|
|
583
584
|
if (!e) return "";
|
|
584
585
|
try {
|
|
585
586
|
e = new URL(e).pathname;
|
|
586
587
|
} catch {}
|
|
587
588
|
return e = (e = e.replace(/^\/+/, "")).replace(/^@?fs[\\/]/, "");
|
|
588
|
-
},
|
|
589
|
-
let r =
|
|
589
|
+
}, Ue = N(({ error: e, maxLines: t = 2 ** 53 - 1, hideLineNumbers: n = !1 }) => {
|
|
590
|
+
let r = ve(), [i, a] = B(null);
|
|
590
591
|
if (!e?.stack) return null;
|
|
591
|
-
let o =
|
|
592
|
+
let o = ie.collectErrorChain(e).reverse(), s = [];
|
|
592
593
|
o.forEach(({ error: e }, t) => {
|
|
593
594
|
let n = (e.stack || "").split("\n").filter(Boolean).map((e) => {
|
|
594
|
-
let t = e.match(
|
|
595
|
+
let t = e.match(Be);
|
|
595
596
|
if (t) {
|
|
596
597
|
let [, e = "", n, r, i, a] = t;
|
|
597
598
|
return {
|
|
598
599
|
line: `at ${e ? e + " " : ""}${n}`,
|
|
599
|
-
location: `${
|
|
600
|
+
location: `${He(r).split(/[\\/]/).pop()}:${i}:${a}`
|
|
600
601
|
};
|
|
601
602
|
}
|
|
602
|
-
if (t = e.match(
|
|
603
|
-
let [, e = "", n, r, i] = t, a =
|
|
603
|
+
if (t = e.match(Ve), t) {
|
|
604
|
+
let [, e = "", n, r, i] = t, a = He(n), o = `${a.split(/[\\/]/).pop()}:${r}:${i}`;
|
|
604
605
|
return {
|
|
605
606
|
line: `at ${e ? e + " " : ""}${o}`,
|
|
606
607
|
location: a === o ? void 0 : `${a}:${r}:${i}`
|
|
@@ -614,12 +615,12 @@ var We = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ge
|
|
|
614
615
|
}), s.push(...n.slice(1)));
|
|
615
616
|
});
|
|
616
617
|
let c = t ? s.slice(0, t) : s, l = t && s.length > t;
|
|
617
|
-
return
|
|
618
|
+
return T(u, {
|
|
618
619
|
sx: {
|
|
619
620
|
width: "100%",
|
|
620
621
|
mt: 1
|
|
621
622
|
},
|
|
622
|
-
children: [
|
|
623
|
+
children: [T(u, {
|
|
623
624
|
sx: {
|
|
624
625
|
display: "flex",
|
|
625
626
|
alignItems: "center",
|
|
@@ -629,7 +630,7 @@ var We = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ge
|
|
|
629
630
|
py: .5
|
|
630
631
|
},
|
|
631
632
|
children: [
|
|
632
|
-
|
|
633
|
+
w(b, {
|
|
633
634
|
variant: "caption",
|
|
634
635
|
component: "div",
|
|
635
636
|
sx: {
|
|
@@ -638,8 +639,8 @@ var We = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ge
|
|
|
638
639
|
},
|
|
639
640
|
children: o.length > 1 ? r("stackTrace.headingFrames", { count: o.length }) : r("stackTrace.heading")
|
|
640
641
|
}),
|
|
641
|
-
|
|
642
|
-
i &&
|
|
642
|
+
w(u, { sx: { flex: 1 } }),
|
|
643
|
+
i && w(b, {
|
|
643
644
|
variant: "caption",
|
|
644
645
|
component: "div",
|
|
645
646
|
sx: {
|
|
@@ -648,7 +649,7 @@ var We = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ge
|
|
|
648
649
|
},
|
|
649
650
|
children: i
|
|
650
651
|
}),
|
|
651
|
-
|
|
652
|
+
w(p, {
|
|
652
653
|
size: "small",
|
|
653
654
|
onClick: async () => {
|
|
654
655
|
try {
|
|
@@ -669,12 +670,12 @@ var We = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ge
|
|
|
669
670
|
"&:hover": { opacity: 1 }
|
|
670
671
|
},
|
|
671
672
|
title: r("stackTrace.copy"),
|
|
672
|
-
children:
|
|
673
|
+
children: w(G, {
|
|
673
674
|
iconKey: "ContentCopy",
|
|
674
675
|
style: { fontSize: "0.875rem" }
|
|
675
676
|
})
|
|
676
677
|
}),
|
|
677
|
-
|
|
678
|
+
w(p, {
|
|
678
679
|
size: "small",
|
|
679
680
|
onClick: () => {
|
|
680
681
|
a("Logged!"), setTimeout(() => a(null), 2e3), console.warn(e);
|
|
@@ -685,13 +686,13 @@ var We = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ge
|
|
|
685
686
|
"&:hover": { opacity: 1 }
|
|
686
687
|
},
|
|
687
688
|
title: r("stackTrace.log"),
|
|
688
|
-
children:
|
|
689
|
+
children: w(G, {
|
|
689
690
|
iconKey: "BugReport",
|
|
690
691
|
style: { fontSize: "0.875rem" }
|
|
691
692
|
})
|
|
692
693
|
})
|
|
693
694
|
]
|
|
694
|
-
}),
|
|
695
|
+
}), T(u, {
|
|
695
696
|
sx: {
|
|
696
697
|
mt: 1,
|
|
697
698
|
backgroundColor: "rgba(0, 0, 0, 0.2)",
|
|
@@ -703,14 +704,14 @@ var We = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ge
|
|
|
703
704
|
fontSize: "0.75rem",
|
|
704
705
|
lineHeight: 1.4
|
|
705
706
|
},
|
|
706
|
-
children: [c.map((e, t) => e.isBoundary ?
|
|
707
|
+
children: [c.map((e, t) => e.isBoundary ? w(u, {
|
|
707
708
|
sx: {
|
|
708
709
|
py: 1,
|
|
709
710
|
mt: +(t > 0),
|
|
710
711
|
mb: .5,
|
|
711
712
|
borderTop: t > 0 ? "1px solid rgba(255, 255, 255, 0.1)" : "none"
|
|
712
713
|
},
|
|
713
|
-
children:
|
|
714
|
+
children: w(b, {
|
|
714
715
|
variant: "caption",
|
|
715
716
|
component: "div",
|
|
716
717
|
sx: {
|
|
@@ -721,7 +722,7 @@ var We = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ge
|
|
|
721
722
|
},
|
|
722
723
|
children: e.line
|
|
723
724
|
})
|
|
724
|
-
}, `error-${t}`) :
|
|
725
|
+
}, `error-${t}`) : T(u, {
|
|
725
726
|
sx: {
|
|
726
727
|
display: "flex",
|
|
727
728
|
alignItems: "flex-start",
|
|
@@ -730,7 +731,7 @@ var We = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ge
|
|
|
730
731
|
pl: 1,
|
|
731
732
|
"&:hover": { backgroundColor: "rgba(255, 255, 255, 0.05)" }
|
|
732
733
|
},
|
|
733
|
-
children: [!n &&
|
|
734
|
+
children: [!n && w(b, {
|
|
734
735
|
variant: "caption",
|
|
735
736
|
component: "div",
|
|
736
737
|
sx: {
|
|
@@ -741,12 +742,12 @@ var We = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ge
|
|
|
741
742
|
userSelect: "none"
|
|
742
743
|
},
|
|
743
744
|
children: t + 1
|
|
744
|
-
}),
|
|
745
|
+
}), T(u, {
|
|
745
746
|
sx: {
|
|
746
747
|
flex: 1,
|
|
747
748
|
overflow: "hidden"
|
|
748
749
|
},
|
|
749
|
-
children: [
|
|
750
|
+
children: [w(b, {
|
|
750
751
|
variant: "caption",
|
|
751
752
|
component: "div",
|
|
752
753
|
sx: {
|
|
@@ -757,7 +758,7 @@ var We = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ge
|
|
|
757
758
|
color: "inherit"
|
|
758
759
|
},
|
|
759
760
|
children: e.line
|
|
760
|
-
}), e.location && e.line !== e.location &&
|
|
761
|
+
}), e.location && e.line !== e.location && w(b, {
|
|
761
762
|
variant: "caption",
|
|
762
763
|
component: "div",
|
|
763
764
|
sx: {
|
|
@@ -768,7 +769,7 @@ var We = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ge
|
|
|
768
769
|
children: e.location
|
|
769
770
|
})]
|
|
770
771
|
})]
|
|
771
|
-
}, `stack-${t}`)), l &&
|
|
772
|
+
}, `stack-${t}`)), l && w(b, {
|
|
772
773
|
variant: "caption",
|
|
773
774
|
component: "div",
|
|
774
775
|
sx: {
|
|
@@ -784,19 +785,19 @@ var We = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ge
|
|
|
784
785
|
})]
|
|
785
786
|
});
|
|
786
787
|
});
|
|
787
|
-
|
|
788
|
-
var
|
|
789
|
-
let { sx: n, icon: r =
|
|
788
|
+
Ue.displayName = "StackTrace";
|
|
789
|
+
var We = N(M((e, t) => {
|
|
790
|
+
let { sx: n, icon: r = w(G, {
|
|
790
791
|
iconKey: "Error",
|
|
791
792
|
style: { fontSize: 48 }
|
|
792
|
-
}), error: i, hideStackTrace: a = !1, stackTraceExpanded: o = !1, fullscreen: s = !1, ...c } = e, l =
|
|
793
|
+
}), error: i, hideStackTrace: a = !1, stackTraceExpanded: o = !1, fullscreen: s = !1, ...c } = e, l = ve(), d = L(() => Ge(i, a, o, s, l), [
|
|
793
794
|
i,
|
|
794
795
|
a,
|
|
795
796
|
o,
|
|
796
797
|
s,
|
|
797
798
|
l
|
|
798
799
|
]);
|
|
799
|
-
return
|
|
800
|
+
return L(() => w(u, {
|
|
800
801
|
ref: t,
|
|
801
802
|
sx: {
|
|
802
803
|
boxSizing: "border-box",
|
|
@@ -810,7 +811,7 @@ var Je = z(R((e, t) => {
|
|
|
810
811
|
...n
|
|
811
812
|
},
|
|
812
813
|
...c,
|
|
813
|
-
children:
|
|
814
|
+
children: T(u, {
|
|
814
815
|
sx: {
|
|
815
816
|
display: "flex",
|
|
816
817
|
flex: "1 1 100%",
|
|
@@ -820,7 +821,7 @@ var Je = z(R((e, t) => {
|
|
|
820
821
|
boxSizing: "border-box",
|
|
821
822
|
position: "relative"
|
|
822
823
|
},
|
|
823
|
-
children: [
|
|
824
|
+
children: [w(u, {
|
|
824
825
|
className: "backdrop",
|
|
825
826
|
sx: {
|
|
826
827
|
backdropFilter: "blur(4px)",
|
|
@@ -831,7 +832,7 @@ var Je = z(R((e, t) => {
|
|
|
831
832
|
height: "100%",
|
|
832
833
|
boxSizing: "border-box"
|
|
833
834
|
}
|
|
834
|
-
}),
|
|
835
|
+
}), w(v, {
|
|
835
836
|
elevation: 0,
|
|
836
837
|
sx: {
|
|
837
838
|
display: "flex",
|
|
@@ -849,7 +850,7 @@ var Je = z(R((e, t) => {
|
|
|
849
850
|
boxShadow: (e) => e.shadows[3],
|
|
850
851
|
zIndex: 1
|
|
851
852
|
},
|
|
852
|
-
children:
|
|
853
|
+
children: w(u, {
|
|
853
854
|
sx: {
|
|
854
855
|
display: "flex",
|
|
855
856
|
flexDirection: "column",
|
|
@@ -858,23 +859,23 @@ var Je = z(R((e, t) => {
|
|
|
858
859
|
width: "100%",
|
|
859
860
|
maxWidth: s ? void 0 : "600px"
|
|
860
861
|
},
|
|
861
|
-
children:
|
|
862
|
+
children: T(u, {
|
|
862
863
|
sx: {
|
|
863
864
|
display: "flex",
|
|
864
865
|
flexDirection: "row",
|
|
865
866
|
alignItems: "flex-start",
|
|
866
867
|
gap: (e) => e.spacing(2)
|
|
867
868
|
},
|
|
868
|
-
children: [
|
|
869
|
+
children: [w(u, {
|
|
869
870
|
sx: {
|
|
870
871
|
display: "flex",
|
|
871
872
|
color: (e) => e.palette.error.main
|
|
872
873
|
},
|
|
873
|
-
children: typeof r == "string" ?
|
|
874
|
+
children: typeof r == "string" ? w(G, {
|
|
874
875
|
iconKey: r,
|
|
875
876
|
style: { fontSize: 48 }
|
|
876
877
|
}) : r
|
|
877
|
-
}),
|
|
878
|
+
}), d]
|
|
878
879
|
})
|
|
879
880
|
})
|
|
880
881
|
})]
|
|
@@ -882,13 +883,13 @@ var Je = z(R((e, t) => {
|
|
|
882
883
|
}), [
|
|
883
884
|
n,
|
|
884
885
|
r,
|
|
885
|
-
|
|
886
|
+
d
|
|
886
887
|
]);
|
|
887
888
|
}));
|
|
888
|
-
|
|
889
|
-
var
|
|
890
|
-
if (
|
|
891
|
-
if (e instanceof Error) return
|
|
889
|
+
We.displayName = "StackTraceErrorPanel";
|
|
890
|
+
var Ge = (e, t = !1, n = !1, r = !1, i = (e) => e) => {
|
|
891
|
+
if (ee(e)) return e;
|
|
892
|
+
if (e instanceof Error) return T(u, {
|
|
892
893
|
sx: {
|
|
893
894
|
display: "flex",
|
|
894
895
|
flexDirection: "column",
|
|
@@ -897,7 +898,7 @@ var Ye = (e, t = !1, n = !1, r = !1, i = (e) => e) => {
|
|
|
897
898
|
width: "100%"
|
|
898
899
|
},
|
|
899
900
|
children: [
|
|
900
|
-
|
|
901
|
+
w(b, {
|
|
901
902
|
variant: "caption",
|
|
902
903
|
component: "div",
|
|
903
904
|
sx: {
|
|
@@ -907,7 +908,7 @@ var Ye = (e, t = !1, n = !1, r = !1, i = (e) => e) => {
|
|
|
907
908
|
},
|
|
908
909
|
children: e.message
|
|
909
910
|
}),
|
|
910
|
-
e.cause ?
|
|
911
|
+
e.cause ? w(b, {
|
|
911
912
|
variant: "caption",
|
|
912
913
|
component: "div",
|
|
913
914
|
sx: {
|
|
@@ -919,14 +920,14 @@ var Ye = (e, t = !1, n = !1, r = !1, i = (e) => e) => {
|
|
|
919
920
|
},
|
|
920
921
|
children: i("stackTrace.causedBy", { cause: e.cause instanceof Error ? e.cause.message : String(e.cause) })
|
|
921
922
|
}) : null,
|
|
922
|
-
!t &&
|
|
923
|
+
!t && w(Ue, {
|
|
923
924
|
error: e,
|
|
924
925
|
hideLineNumbers: !0
|
|
925
926
|
})
|
|
926
927
|
]
|
|
927
928
|
});
|
|
928
929
|
let a = e === "string" ? e : `Unknown Error: ${String(e)}`;
|
|
929
|
-
return
|
|
930
|
+
return w(b, {
|
|
930
931
|
variant: "caption",
|
|
931
932
|
component: "div",
|
|
932
933
|
sx: {
|
|
@@ -936,22 +937,22 @@ var Ye = (e, t = !1, n = !1, r = !1, i = (e) => e) => {
|
|
|
936
937
|
},
|
|
937
938
|
children: a
|
|
938
939
|
});
|
|
939
|
-
},
|
|
940
|
-
let { error: t, ...n } = e, r =
|
|
941
|
-
return
|
|
940
|
+
}, Ke = N((e) => {
|
|
941
|
+
let { error: t, ...n } = e, r = ge(), i = ve(), a = t instanceof Error ? t.message : String(t);
|
|
942
|
+
return w(We, {
|
|
942
943
|
hideStackTrace: !0,
|
|
943
|
-
error:
|
|
944
|
+
error: T(u, {
|
|
944
945
|
sx: {
|
|
945
946
|
display: "flex",
|
|
946
947
|
flexDirection: "column",
|
|
947
948
|
alignItems: "flex-start",
|
|
948
949
|
gap: 1
|
|
949
950
|
},
|
|
950
|
-
children: [
|
|
951
|
+
children: [w(b, {
|
|
951
952
|
variant: "body2",
|
|
952
953
|
component: "div",
|
|
953
954
|
children: a
|
|
954
|
-
}), r ?
|
|
955
|
+
}), r ? w(d, {
|
|
955
956
|
variant: "outlined",
|
|
956
957
|
size: "small",
|
|
957
958
|
onClick: r,
|
|
@@ -961,28 +962,169 @@ var Ye = (e, t = !1, n = !1, r = !1, i = (e) => e) => {
|
|
|
961
962
|
...n
|
|
962
963
|
});
|
|
963
964
|
});
|
|
964
|
-
function
|
|
965
|
-
let t =
|
|
966
|
-
return (e) =>
|
|
967
|
-
fallback:
|
|
968
|
-
children:
|
|
965
|
+
function qe(e) {
|
|
966
|
+
let t = le(e, { renderError: ({ error: e }) => w(Ke, { error: e }) });
|
|
967
|
+
return (e) => w(k, {
|
|
968
|
+
fallback: w(ze, {}),
|
|
969
|
+
children: w(t, { ...e })
|
|
969
970
|
});
|
|
970
971
|
}
|
|
971
|
-
|
|
972
|
-
var
|
|
972
|
+
Ke.displayName = "LazyLoadErrorPanel";
|
|
973
|
+
var Je = (e) => {
|
|
974
|
+
if (e.palette.mode === "dark") return `drop-shadow(0px 0px 1px ${e.palette.mode === "dark" ? e.palette.text.primary : e.palette.divider})`;
|
|
975
|
+
}, Ye = (e = 1) => (t) => {
|
|
976
|
+
if (t.palette.mode === "dark") return `drop-shadow(0px 0px ${e}px ${t.palette.mode === "dark" ? t.palette.text.primary : t.palette.divider})`;
|
|
977
|
+
}, Xe = (e) => w(G, {
|
|
978
|
+
...e,
|
|
979
|
+
iconKey: "ArrowDownOutline"
|
|
980
|
+
}), Ze = (e) => w(G, {
|
|
981
|
+
...e,
|
|
982
|
+
iconKey: "ArrowRightOutline"
|
|
983
|
+
}), Qe = /^#?([a-f\d])([a-f\d])([a-f\d])$/i, $e = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i, et = function(e, t = null) {
|
|
984
|
+
if (!e) return e;
|
|
985
|
+
e = e.replace(Qe, function(e, t, n, r) {
|
|
986
|
+
return t + t + n + n + r + r;
|
|
987
|
+
});
|
|
988
|
+
let n = $e.exec(e);
|
|
989
|
+
return n ? t === null ? `rgb(${parseInt(n[1], 16)}, ${parseInt(n[2], 16)}, ${parseInt(n[3], 16)})` : `rgb(${parseInt(n[1], 16)} ${parseInt(n[2], 16)} ${parseInt(n[3], 16)} / ${100 * t}%)` : e;
|
|
990
|
+
}, tt = function(e, t = .2, n = "light") {
|
|
991
|
+
if (!e) return e;
|
|
992
|
+
let r = n !== "dark";
|
|
993
|
+
t < 0 && (r = !r, t *= -1), e = et(e);
|
|
994
|
+
try {
|
|
995
|
+
return r ? ne(e, Math.max(0, Math.min(1, 1 * t))) : H(e, Math.max(0, Math.min(1, 1.5 * t)));
|
|
996
|
+
} catch {
|
|
997
|
+
return e;
|
|
998
|
+
}
|
|
999
|
+
}, nt = (e) => {
|
|
1000
|
+
e.stopPropagation();
|
|
1001
|
+
}, rt = {
|
|
1002
|
+
onMouseDown: nt,
|
|
1003
|
+
onTouchStart: nt
|
|
1004
|
+
}, it = (e, t) => {
|
|
1005
|
+
let n = x({ palette: { mode: e ? "dark" : "light" } }), r = {
|
|
1006
|
+
"--icon-shadow": e ? n.palette.text.primary : n.palette.divider,
|
|
1007
|
+
"--icon-size": "1.25rem",
|
|
1008
|
+
"@media (pointer: coarse)": { "--icon-size": "1.75rem" }
|
|
1009
|
+
}, i = {
|
|
1010
|
+
typography: {},
|
|
1011
|
+
palette: {
|
|
1012
|
+
mode: e ? "dark" : "light",
|
|
1013
|
+
text: {
|
|
1014
|
+
secondary: e ? n.palette.text.secondary : V(n.palette.text.secondary, .75),
|
|
1015
|
+
icon: e ? V(n.palette.text.secondary, .7) : V(n.palette.text.primary, .75)
|
|
1016
|
+
}
|
|
1017
|
+
},
|
|
1018
|
+
components: {
|
|
1019
|
+
MuiDialogTitle: { styleOverrides: { root: { fontWeight: "normal" } } },
|
|
1020
|
+
MuiSelect: {
|
|
1021
|
+
defaultProps: {
|
|
1022
|
+
IconComponent: Xe,
|
|
1023
|
+
MenuProps: {
|
|
1024
|
+
container: () => document.fullscreenElement,
|
|
1025
|
+
...rt
|
|
1026
|
+
}
|
|
1027
|
+
},
|
|
1028
|
+
styleOverrides: { icon: { top: "unset" } }
|
|
1029
|
+
},
|
|
1030
|
+
MuiListItemIcon: { styleOverrides: { root: {
|
|
1031
|
+
minWidth: "0px !important",
|
|
1032
|
+
overflow: "hidden",
|
|
1033
|
+
marginLeft: "0px",
|
|
1034
|
+
marginRight: "6px",
|
|
1035
|
+
padding: "1px 1px",
|
|
1036
|
+
border: "solid transparent 1px",
|
|
1037
|
+
color: "unset"
|
|
1038
|
+
} } },
|
|
1039
|
+
MuiMenuItem: { styleOverrides: { root: {
|
|
1040
|
+
paddingTop: "2px",
|
|
1041
|
+
paddingBottom: "2px",
|
|
1042
|
+
marginLeft: "4px",
|
|
1043
|
+
marginRight: "4px",
|
|
1044
|
+
paddingLeft: "6px",
|
|
1045
|
+
paddingRight: "18px",
|
|
1046
|
+
borderRadius: "4px",
|
|
1047
|
+
fontSize: "0.875em",
|
|
1048
|
+
"@media (pointer: coarse)": { fontSize: "1em" },
|
|
1049
|
+
"&.Mui-selected": {}
|
|
1050
|
+
} } },
|
|
1051
|
+
MuiMenu: {
|
|
1052
|
+
defaultProps: {
|
|
1053
|
+
container: () => document.fullscreenElement,
|
|
1054
|
+
...rt
|
|
1055
|
+
},
|
|
1056
|
+
styleOverrides: { root: {
|
|
1057
|
+
paddingTop: "2px",
|
|
1058
|
+
paddingBottom: "2px",
|
|
1059
|
+
marginLeft: "4px",
|
|
1060
|
+
marginRight: "4px",
|
|
1061
|
+
paddingLeft: "6px",
|
|
1062
|
+
paddingRight: "18px",
|
|
1063
|
+
borderRadius: "4px",
|
|
1064
|
+
fontSize: "0.875em",
|
|
1065
|
+
"@media (pointer: coarse)": { fontSize: "1em" },
|
|
1066
|
+
"&.Mui-selected": {}
|
|
1067
|
+
} }
|
|
1068
|
+
},
|
|
1069
|
+
MuiToolbar: { styleOverrides: { root: {
|
|
1070
|
+
paddingTop: "4px",
|
|
1071
|
+
paddingBottom: "4px",
|
|
1072
|
+
"@media (min-width: 600px)": {
|
|
1073
|
+
paddingTop: "4px",
|
|
1074
|
+
paddingBottom: "4px"
|
|
1075
|
+
}
|
|
1076
|
+
} } },
|
|
1077
|
+
MuiDivider: { styleOverrides: { root: {
|
|
1078
|
+
marginTop: "4px !important",
|
|
1079
|
+
marginBottom: "4px !important",
|
|
1080
|
+
marginLeft: "0px",
|
|
1081
|
+
marginRight: "0px"
|
|
1082
|
+
} } },
|
|
1083
|
+
MuiInputBase: { styleOverrides: { root: {} } },
|
|
1084
|
+
MuiPaper: { styleOverrides: { root: {
|
|
1085
|
+
...r,
|
|
1086
|
+
backgroundImage: "none"
|
|
1087
|
+
} } },
|
|
1088
|
+
MuiPopover: { styleOverrides: { paper: {
|
|
1089
|
+
backgroundColor: `var(--sxl-color-elevated, var(--sxl-color-base-100, ${n.palette.background.paper}))`,
|
|
1090
|
+
border: "1px solid var(--sxl-color-elevated-border, transparent)"
|
|
1091
|
+
} } },
|
|
1092
|
+
MuiPopper: { styleOverrides: { root: { "& .menu": {
|
|
1093
|
+
marginTop: "4px",
|
|
1094
|
+
marginBottom: "4px",
|
|
1095
|
+
borderRadius: "4px"
|
|
1096
|
+
} } } },
|
|
1097
|
+
SmartInputField: { styleOverrides: {
|
|
1098
|
+
automatic: {
|
|
1099
|
+
transition: "opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
|
|
1100
|
+
color: function() {
|
|
1101
|
+
return n.palette.text.secondary;
|
|
1102
|
+
}
|
|
1103
|
+
},
|
|
1104
|
+
dirty: {
|
|
1105
|
+
fontStyle: "italic",
|
|
1106
|
+
color: function() {
|
|
1107
|
+
return n.palette.text.secondary;
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
} }
|
|
1111
|
+
}
|
|
1112
|
+
}, a = i;
|
|
1113
|
+
return t && (a = ye(i, t)), x(a);
|
|
1114
|
+
}, at = {
|
|
973
1115
|
Popup: "popup",
|
|
974
1116
|
Anchor: "anchor"
|
|
975
|
-
},
|
|
1117
|
+
}, ot = {
|
|
976
1118
|
ByPopup: "popupDone",
|
|
977
1119
|
Cancel: "popupCancel",
|
|
978
1120
|
ClickAway: "clickAway"
|
|
979
|
-
},
|
|
1121
|
+
}, st = {
|
|
980
1122
|
Toolbar: "toolbar",
|
|
981
1123
|
Menuitem: "menuitem"
|
|
982
|
-
},
|
|
1124
|
+
}, ct = (e) => {
|
|
983
1125
|
let { closeFloat: t, closeFloatAll: n, floatReference: r, popupContainer: i, children: a, className: o, sx: s, ...c } = e;
|
|
984
|
-
return
|
|
985
|
-
className:
|
|
1126
|
+
return w(u, {
|
|
1127
|
+
className: l("menu", o),
|
|
986
1128
|
sx: {
|
|
987
1129
|
display: "flex",
|
|
988
1130
|
flexDirection: "column",
|
|
@@ -993,9 +1135,9 @@ var Qe = {
|
|
|
993
1135
|
...c,
|
|
994
1136
|
children: a
|
|
995
1137
|
});
|
|
996
|
-
},
|
|
1138
|
+
}, lt = (e, t, n) => {
|
|
997
1139
|
let r = "";
|
|
998
|
-
return n && (r = (r ? r + " " : "") + "rotate(180deg)"),
|
|
1140
|
+
return n && (r = (r ? r + " " : "") + "rotate(180deg)"), w(Xe, {
|
|
999
1141
|
style: {
|
|
1000
1142
|
marginLeft: e ? void 0 : t ? "-0.25rem" : "-3px",
|
|
1001
1143
|
marginRight: e ? void 0 : t ? "-0.25rem" : "-6px",
|
|
@@ -1003,74 +1145,74 @@ var Qe = {
|
|
|
1003
1145
|
},
|
|
1004
1146
|
color: "inherit"
|
|
1005
1147
|
});
|
|
1006
|
-
},
|
|
1007
|
-
let { open: n, anchorEl: r, anchorPosition: i, label: a, floatReference: o, renderPopupPanel: s =
|
|
1008
|
-
C(e),
|
|
1009
|
-
}, [
|
|
1148
|
+
}, ut = N(M((e, t) => {
|
|
1149
|
+
let { open: n, anchorEl: r, anchorPosition: i, label: a, floatReference: o, renderPopupPanel: s = ct, propsPopper: c, onMount: l, onClosing: u, onClose: d, onOpening: f, onOpen: p, children: m, sx: h, ...g } = e, _ = X(u ?? (() => {}), [u]), y = X(d ?? (() => {}), [d]), b = X(f ?? (() => {}), [f]), x = X(p ?? (() => {}), [p]), [S, C] = B(), T = z(null), E = X((e, t) => {
|
|
1150
|
+
C(e), l?.(T.current, t);
|
|
1151
|
+
}, [l]), D = L(() => {
|
|
1010
1152
|
let e = {
|
|
1011
1153
|
popupContainer: S,
|
|
1012
1154
|
floatReference: o,
|
|
1013
|
-
children:
|
|
1014
|
-
...
|
|
1155
|
+
children: m,
|
|
1156
|
+
...g
|
|
1015
1157
|
};
|
|
1016
|
-
return
|
|
1158
|
+
return w(v, {
|
|
1017
1159
|
elevation: 8,
|
|
1018
|
-
|
|
1160
|
+
className: ue,
|
|
1161
|
+
ref: T,
|
|
1019
1162
|
sx: {
|
|
1020
1163
|
display: "flex",
|
|
1021
1164
|
overflowX: "hidden",
|
|
1022
1165
|
overflowY: "auto",
|
|
1023
1166
|
outline: "none",
|
|
1024
1167
|
backgroundColor: "var(--sxl-color-elevated, var(--sxl-color-base-100, #fff))",
|
|
1025
|
-
border: "1px solid var(--sxl-color-elevated-border, transparent)"
|
|
1026
|
-
"&.MuiPaper-root": (e) => c(e)
|
|
1168
|
+
border: "1px solid var(--sxl-color-elevated-border, transparent)"
|
|
1027
1169
|
},
|
|
1028
1170
|
tabIndex: 0,
|
|
1029
|
-
children:
|
|
1171
|
+
children: w(se, {
|
|
1030
1172
|
render: s,
|
|
1031
1173
|
props: e
|
|
1032
1174
|
})
|
|
1033
1175
|
});
|
|
1034
1176
|
}, [
|
|
1035
1177
|
s,
|
|
1036
|
-
|
|
1178
|
+
m,
|
|
1037
1179
|
S,
|
|
1038
1180
|
o
|
|
1039
1181
|
]);
|
|
1040
|
-
return
|
|
1182
|
+
return w(oe, {
|
|
1041
1183
|
ref: t,
|
|
1042
1184
|
anchorEl: r,
|
|
1043
1185
|
anchorPosition: i,
|
|
1044
1186
|
label: a,
|
|
1045
1187
|
open: n,
|
|
1046
|
-
onMount:
|
|
1188
|
+
onMount: E,
|
|
1047
1189
|
onOpening: b,
|
|
1048
1190
|
onOpen: x,
|
|
1049
|
-
onClosing:
|
|
1191
|
+
onClosing: _,
|
|
1050
1192
|
onClose: y,
|
|
1051
|
-
...
|
|
1052
|
-
children:
|
|
1193
|
+
...c,
|
|
1194
|
+
children: D
|
|
1053
1195
|
});
|
|
1054
1196
|
}));
|
|
1055
|
-
|
|
1056
|
-
var
|
|
1197
|
+
ut.displayName = "ExhibitFloatPanel";
|
|
1198
|
+
var dt = (e) => w(ut, { ...e }), ft = (e) => w(K, {
|
|
1057
1199
|
...e,
|
|
1058
|
-
renderFloatPanel:
|
|
1059
|
-
renderPopupPanel:
|
|
1060
|
-
}),
|
|
1200
|
+
renderFloatPanel: dt,
|
|
1201
|
+
renderPopupPanel: ct
|
|
1202
|
+
}), pt = N(M((e, t) => {
|
|
1061
1203
|
let { nestedChildren: n, variant: r, disabled: i, renderPopupPanel: a, ...o } = e, s = {
|
|
1062
1204
|
disabled: i,
|
|
1063
|
-
renderPopupPanel:
|
|
1064
|
-
if (!n || n.length === 0) return
|
|
1205
|
+
renderPopupPanel: X((e) => {
|
|
1206
|
+
if (!n || n.length === 0) return w(C, {});
|
|
1065
1207
|
let { popupContainer: r, floatReference: i, ref: a, ...o } = e, s = [];
|
|
1066
1208
|
for (let e = 0; e < n.length; e++) {
|
|
1067
1209
|
let t = n[e];
|
|
1068
|
-
t && s.push(
|
|
1210
|
+
t && s.push(w(pt, {
|
|
1069
1211
|
...o,
|
|
1070
1212
|
...t
|
|
1071
1213
|
}, e));
|
|
1072
1214
|
}
|
|
1073
|
-
return
|
|
1215
|
+
return T(u, {
|
|
1074
1216
|
ref: t,
|
|
1075
1217
|
sx: {
|
|
1076
1218
|
display: "flex",
|
|
@@ -1081,23 +1223,23 @@ var it = (e) => j(rt, { ...e }), at = (e) => j(ue, {
|
|
|
1081
1223
|
children: [
|
|
1082
1224
|
"Children here",
|
|
1083
1225
|
s,
|
|
1084
|
-
|
|
1226
|
+
w(St, { children: "Close other children" })
|
|
1085
1227
|
]
|
|
1086
1228
|
});
|
|
1087
1229
|
}, [n]),
|
|
1088
1230
|
...o
|
|
1089
1231
|
};
|
|
1090
|
-
return
|
|
1091
|
-
})),
|
|
1092
|
-
let { children: n, sx: r, parentFloat: i, renderPopupPanel: a, propsPopper: o =
|
|
1093
|
-
if (!
|
|
1094
|
-
let l = n, u =
|
|
1232
|
+
return w(r === st.Toolbar ? wt : Dt, { ...s });
|
|
1233
|
+
})), mt = { placement: "right-start" }, ht = N(M((e, t) => {
|
|
1234
|
+
let { children: n, sx: r, parentFloat: i, renderPopupPanel: a, propsPopper: o = mt, label: s, ...c } = e;
|
|
1235
|
+
if (!ee(n)) throw Error("Must supply a child component to enable a context menu.");
|
|
1236
|
+
let l = n, u = L(() => ({
|
|
1095
1237
|
...l?.props,
|
|
1096
1238
|
...c,
|
|
1097
1239
|
onContextMenu: (e) => {
|
|
1098
1240
|
l?.props?.onContextMenu?.(e), e.isDefaultPrevented() || (c?.onContextMenu?.(e), e.isDefaultPrevented() || (p(e), e.preventDefault()));
|
|
1099
1241
|
}
|
|
1100
|
-
}), [c, l?.props]), d =
|
|
1242
|
+
}), [c, l?.props]), d = X(a ?? (() => {}), [a]), [f, p] = B(null), { reference: m, component: h } = pe({
|
|
1101
1243
|
label: s ?? "contextMenu",
|
|
1102
1244
|
propsPopper: o,
|
|
1103
1245
|
parentFloat: i,
|
|
@@ -1105,19 +1247,19 @@ var it = (e) => j(rt, { ...e }), at = (e) => j(ue, {
|
|
|
1105
1247
|
onClose: () => p(null),
|
|
1106
1248
|
renderPopupPanel: d
|
|
1107
1249
|
});
|
|
1108
|
-
return
|
|
1250
|
+
return I(() => {
|
|
1109
1251
|
f ? m.open(0) : m.close(0);
|
|
1110
|
-
}, [f]),
|
|
1111
|
-
})),
|
|
1112
|
-
let { dense: r = !0, outlined: i = !1, disableHover: a = !1, selected: o, icon:
|
|
1252
|
+
}, [f]), T(C, { children: [A(n, u), h] });
|
|
1253
|
+
})), gt = w(G, {}), _t = w(G, { iconKey: "Check" }), vt = N(M((t, n) => {
|
|
1254
|
+
let { dense: r = !0, outlined: i = !1, disableHover: a = !1, selected: o, icon: c, propsTooltip: d, children: f, primary: m, sx: h, disabled: g, className: _, onFocus: v, onBlur: y, ...b } = t, [x, S] = B(!1), C = {
|
|
1113
1255
|
marginRight: "0px",
|
|
1114
1256
|
padding: r ? "2px" : "7px",
|
|
1115
1257
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
1116
|
-
color: (e) =>
|
|
1258
|
+
color: (e) => m ? void 0 : e.palette.text.icon ?? e.palette.action.active,
|
|
1117
1259
|
border: (e) => `solid ${i ? e.palette.divider : "transparent"} 1px`,
|
|
1118
1260
|
"& .MuiTouchRipple-child": { borderRadius: (e) => `${e.shape.borderRadius}px !important` },
|
|
1119
1261
|
"&.Mui-selected": {
|
|
1120
|
-
backgroundColor: (e) =>
|
|
1262
|
+
backgroundColor: (e) => V(e.palette.text.primary, e.palette.action.selectedOpacity),
|
|
1121
1263
|
border: (e) => `solid ${i ? e.palette.text?.primary : e.palette.divider} 1px`
|
|
1122
1264
|
},
|
|
1123
1265
|
"&.Mui-disabled": { border: (e) => `solid ${i ? e.palette.divider : "transparent"} 1px` },
|
|
@@ -1129,119 +1271,119 @@ var it = (e) => j(rt, { ...e }), at = (e) => j(ue, {
|
|
|
1129
1271
|
outline: "solid transparent 1px",
|
|
1130
1272
|
border: "1px solid transparent"
|
|
1131
1273
|
},
|
|
1132
|
-
...
|
|
1133
|
-
},
|
|
1274
|
+
...h
|
|
1275
|
+
}, E = {
|
|
1134
1276
|
"@media (hover: hover)": { "&:hover:not(.Mui-disabled, [disabled])": {
|
|
1135
1277
|
color: (e) => e.palette.text.primary,
|
|
1136
1278
|
border: (e) => `solid ${i ? e.palette.text?.primary : e.palette.divider} 1px`,
|
|
1137
|
-
"&.Mui-selected": { backgroundColor: (e) =>
|
|
1279
|
+
"&.Mui-selected": { backgroundColor: (e) => V(e.palette.text.primary, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity) },
|
|
1138
1280
|
"> .outline-hover": { outline: (e) => `solid ${i ? e.palette.text?.primary : e.palette.divider} 1px` },
|
|
1139
|
-
backgroundColor: (e) =>
|
|
1281
|
+
backgroundColor: (e) => V(e.palette.action.active, e.palette.action.hoverOpacity)
|
|
1140
1282
|
} },
|
|
1141
1283
|
"&.Mui-focusVisible": {
|
|
1142
1284
|
outline: (e) => `solid ${e.palette.primary.main} 1px`,
|
|
1143
1285
|
border: (e) => `1px solid ${e.palette?.primary?.main}`,
|
|
1144
1286
|
zIndex: 1
|
|
1145
1287
|
}
|
|
1146
|
-
},
|
|
1147
|
-
a || (
|
|
1148
|
-
let
|
|
1149
|
-
let e = typeof
|
|
1150
|
-
return e === null ? e : e || (o === void 0 ?
|
|
1151
|
-
}, [
|
|
1288
|
+
}, D = C;
|
|
1289
|
+
a || (D = re.mergeContentful(C, E));
|
|
1290
|
+
let O = L(() => {
|
|
1291
|
+
let e = typeof c == "function" ? c() : c;
|
|
1292
|
+
return e === null ? e : e || (o === void 0 ? gt : _t);
|
|
1293
|
+
}, [c, o]), k = T(p, {
|
|
1152
1294
|
component: "div",
|
|
1153
1295
|
ref: n,
|
|
1154
|
-
className:
|
|
1155
|
-
"Mui-focusVisible":
|
|
1296
|
+
className: l({
|
|
1297
|
+
"Mui-focusVisible": x,
|
|
1156
1298
|
"Mui-selected": o,
|
|
1157
|
-
"Mui-disabled":
|
|
1158
|
-
},
|
|
1299
|
+
"Mui-disabled": g
|
|
1300
|
+
}, _),
|
|
1159
1301
|
onFocus: (e) => {
|
|
1160
|
-
|
|
1302
|
+
S(!0), v?.(e);
|
|
1161
1303
|
},
|
|
1162
1304
|
onBlur: (e) => {
|
|
1163
|
-
|
|
1305
|
+
S(!1), y?.(e);
|
|
1164
1306
|
},
|
|
1165
1307
|
size: "small",
|
|
1166
1308
|
TouchRippleProps: { center: !1 },
|
|
1167
|
-
sx:
|
|
1309
|
+
sx: D,
|
|
1168
1310
|
edge: "end",
|
|
1169
|
-
...
|
|
1170
|
-
disabled:
|
|
1171
|
-
children: [
|
|
1311
|
+
...b,
|
|
1312
|
+
disabled: g || !1,
|
|
1313
|
+
children: [O, f]
|
|
1172
1314
|
});
|
|
1173
|
-
if (
|
|
1174
|
-
if (
|
|
1175
|
-
let { label: e, description: t, maxWidth: n, shortcut: r, useModifierSymbols: i, componentDisabled: a, simple: o, chips:
|
|
1176
|
-
|
|
1315
|
+
if (d) {
|
|
1316
|
+
if (d.simple && d.label && !d.disabled) {
|
|
1317
|
+
let { label: e, description: t, maxWidth: n, shortcut: r, useModifierSymbols: i, componentDisabled: a, simple: o, chips: c, ref: l, ...f } = d;
|
|
1318
|
+
k = w(s, {
|
|
1177
1319
|
disableInteractive: !0,
|
|
1178
1320
|
title: e ?? "",
|
|
1179
|
-
...
|
|
1180
|
-
children:
|
|
1321
|
+
...f,
|
|
1322
|
+
children: w(u, {
|
|
1181
1323
|
sx: { display: "flex" },
|
|
1182
|
-
children:
|
|
1324
|
+
children: k
|
|
1183
1325
|
})
|
|
1184
1326
|
});
|
|
1185
|
-
} else
|
|
1186
|
-
children:
|
|
1187
|
-
...
|
|
1327
|
+
} else k = w(e, {
|
|
1328
|
+
children: k,
|
|
1329
|
+
...d
|
|
1188
1330
|
});
|
|
1189
1331
|
}
|
|
1190
|
-
return
|
|
1191
|
-
})),
|
|
1332
|
+
return k;
|
|
1333
|
+
})), yt = w(G, {}), bt = {
|
|
1192
1334
|
marginLeft: "4px",
|
|
1193
1335
|
marginRight: "4px",
|
|
1194
1336
|
paddingLeft: "6px",
|
|
1195
1337
|
paddingRight: "18px"
|
|
1196
|
-
},
|
|
1197
|
-
let { icon: i =
|
|
1338
|
+
}, xt = (e) => e.icon, St = N(M((n, r) => {
|
|
1339
|
+
let { icon: i = yt, renderIcon: a = xt, className: o, onFocus: s, selected: c, onBlur: u, onMouseOver: d, onMouseOut: f, onMouseEnter: p, disabled: m, children: h, sx: v, propsTooltip: y, chips: b, primary: x, ...S } = n, C = fe(), [E, D] = B(!1), [O, k] = B(!1), A = L(() => {
|
|
1198
1340
|
let e = a?.({
|
|
1199
1341
|
icon: i,
|
|
1200
|
-
disabled:
|
|
1342
|
+
disabled: m,
|
|
1201
1343
|
selected: c
|
|
1202
1344
|
});
|
|
1203
|
-
return e ?
|
|
1204
|
-
className:
|
|
1205
|
-
"Mui-focusVisible":
|
|
1206
|
-
"Mui-hovered":
|
|
1345
|
+
return e ? w(_, {
|
|
1346
|
+
className: l({
|
|
1347
|
+
"Mui-focusVisible": E,
|
|
1348
|
+
"Mui-hovered": O
|
|
1207
1349
|
}),
|
|
1208
1350
|
sx: {
|
|
1209
|
-
"& .MuiSvgIcon-root": { color: (e) =>
|
|
1351
|
+
"& .MuiSvgIcon-root": { color: (e) => x ? void 0 : e.palette.text.icon ?? e.palette.action.active },
|
|
1210
1352
|
"&.Mui-hovered:not(.Mui-disabled, [disabled])": { "& .MuiSvgIcon-root": { color: (e) => e.palette.text.primary } }
|
|
1211
1353
|
},
|
|
1212
1354
|
children: e
|
|
1213
1355
|
}) : null;
|
|
1214
1356
|
}, [
|
|
1215
1357
|
a,
|
|
1216
|
-
|
|
1358
|
+
m,
|
|
1217
1359
|
i,
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1360
|
+
E,
|
|
1361
|
+
O,
|
|
1362
|
+
x,
|
|
1221
1363
|
c
|
|
1222
|
-
]),
|
|
1364
|
+
]), j = T(g, {
|
|
1223
1365
|
ref: r,
|
|
1224
1366
|
role: "menuitem",
|
|
1225
|
-
disabled:
|
|
1367
|
+
disabled: m,
|
|
1226
1368
|
onMouseOver: (e) => {
|
|
1227
|
-
|
|
1369
|
+
d?.(e), e.isDefaultPrevented() || k(!0);
|
|
1228
1370
|
},
|
|
1229
1371
|
onMouseOut: (e) => {
|
|
1230
|
-
|
|
1372
|
+
f?.(e), e.isDefaultPrevented() || k(!1);
|
|
1231
1373
|
},
|
|
1232
1374
|
onMouseEnter: (e) => {
|
|
1233
|
-
|
|
1375
|
+
p?.(e), e.isDefaultPrevented() || C?.closeChild();
|
|
1234
1376
|
},
|
|
1235
1377
|
TouchRippleProps: { center: !1 },
|
|
1236
|
-
className:
|
|
1237
|
-
"Mui-focusVisible":
|
|
1238
|
-
"Mui-hovered":
|
|
1378
|
+
className: l({
|
|
1379
|
+
"Mui-focusVisible": E,
|
|
1380
|
+
"Mui-hovered": O
|
|
1239
1381
|
}, o),
|
|
1240
1382
|
onFocus: (e) => {
|
|
1241
|
-
s?.(e),
|
|
1383
|
+
s?.(e), D(!0);
|
|
1242
1384
|
},
|
|
1243
1385
|
onBlur: (e) => {
|
|
1244
|
-
|
|
1386
|
+
u?.(e), D(!1);
|
|
1245
1387
|
},
|
|
1246
1388
|
sx: {
|
|
1247
1389
|
flex: "1 1 100%",
|
|
@@ -1251,7 +1393,7 @@ var it = (e) => j(rt, { ...e }), at = (e) => j(ue, {
|
|
|
1251
1393
|
lineHeight: 1.5,
|
|
1252
1394
|
paddingTop: "2px",
|
|
1253
1395
|
paddingBottom: "2px",
|
|
1254
|
-
...
|
|
1396
|
+
...bt,
|
|
1255
1397
|
borderRadius: "4px",
|
|
1256
1398
|
fontSize: "0.875em",
|
|
1257
1399
|
"@media (pointer: coarse)": { fontSize: "1em" },
|
|
@@ -1259,23 +1401,23 @@ var it = (e) => j(rt, { ...e }), at = (e) => j(ue, {
|
|
|
1259
1401
|
"&.Mui-selected": { color: (e) => e.palette.text.primary },
|
|
1260
1402
|
color: (e) => e.palette.text.secondary,
|
|
1261
1403
|
"&.Mui-hovered:not(.Mui-disabled, [disabled])": { color: (e) => e.palette.text.primary },
|
|
1262
|
-
...
|
|
1404
|
+
...v
|
|
1263
1405
|
},
|
|
1264
|
-
...
|
|
1406
|
+
...S,
|
|
1265
1407
|
children: [
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1408
|
+
A,
|
|
1409
|
+
h,
|
|
1410
|
+
b ? w(t, { chips: b }) : null
|
|
1269
1411
|
]
|
|
1270
1412
|
});
|
|
1271
|
-
return
|
|
1272
|
-
children:
|
|
1413
|
+
return y && (j = w(e, {
|
|
1414
|
+
children: j,
|
|
1273
1415
|
placement: "right-start",
|
|
1274
|
-
...
|
|
1275
|
-
})),
|
|
1276
|
-
})),
|
|
1416
|
+
...y
|
|
1417
|
+
})), j;
|
|
1418
|
+
})), Ct = N(M((e, t) => {
|
|
1277
1419
|
let { children: n, sx: r, primary: i = !1, variant: a = "subtitle1", ...o } = e;
|
|
1278
|
-
return
|
|
1420
|
+
return w(C, { children: w(b, {
|
|
1279
1421
|
ref: t,
|
|
1280
1422
|
variant: a,
|
|
1281
1423
|
component: "div",
|
|
@@ -1291,8 +1433,8 @@ var it = (e) => j(rt, { ...e }), at = (e) => j(ue, {
|
|
|
1291
1433
|
...o,
|
|
1292
1434
|
children: n
|
|
1293
1435
|
}) });
|
|
1294
|
-
})),
|
|
1295
|
-
let { dense: n = !0, outlined: r = !1, label: i, showLabel: a = !1, selected: o = !1, onQuickClick:
|
|
1436
|
+
})), wt = N(M((e, t) => {
|
|
1437
|
+
let { dense: n = !0, outlined: r = !1, label: i, showLabel: a = !1, selected: o = !1, onQuickClick: c, parentFloat: d, renderPopupPanel: f, propsPopup: m, onPopupOpen: h, onPopupClose: g, propsQuickButton: _, renderQuickButton: v, tooltip: y = "", renderTooltip: b, icon: x, disabled: E, propsButton: D = re.EmptyObject, disableHover: O, ripple: k, primary: A, children: j, sx: M, className: ee, ...N } = e, P = S(), F = L(() => {
|
|
1296
1438
|
let e = (e, t, n, i = n) => {
|
|
1297
1439
|
let a = typeof r == "boolean" ? null : r[e];
|
|
1298
1440
|
return typeof a == "function" ? a(t) : a || (r ? n : i);
|
|
@@ -1306,28 +1448,28 @@ var it = (e) => j(rt, { ...e }), at = (e) => j(ue, {
|
|
|
1306
1448
|
active: P.palette.mode === "dark" ? P.palette.text.secondary : P.palette.text.primary,
|
|
1307
1449
|
text: P.palette.text.icon ?? P.palette.action.active
|
|
1308
1450
|
};
|
|
1309
|
-
}, [r, P]), [I, te] =
|
|
1310
|
-
anchor:
|
|
1451
|
+
}, [r, P]), [I, te] = B(!1), [R, ne] = B(!1), [H, ie] = B(!1), ae = z(null), U = z(null), W = pe({
|
|
1452
|
+
anchor: ae.current,
|
|
1311
1453
|
label: i,
|
|
1312
|
-
renderPopupPanel:
|
|
1313
|
-
parentFloat:
|
|
1314
|
-
propsPopper:
|
|
1454
|
+
renderPopupPanel: f,
|
|
1455
|
+
parentFloat: d,
|
|
1456
|
+
propsPopper: m?.propsPopper,
|
|
1315
1457
|
onClose: () => {
|
|
1316
|
-
te(!1),
|
|
1458
|
+
te(!1), g?.();
|
|
1317
1459
|
},
|
|
1318
1460
|
onOpen: () => {
|
|
1319
|
-
te(!0),
|
|
1461
|
+
te(!0), h?.();
|
|
1320
1462
|
}
|
|
1321
|
-
}),
|
|
1322
|
-
|
|
1323
|
-
}, [
|
|
1324
|
-
I ?
|
|
1463
|
+
}), G = X((e) => {
|
|
1464
|
+
c?.(e), W.reference.close(0);
|
|
1465
|
+
}, [c, W]), oe = X(() => {
|
|
1466
|
+
I ? W.reference.close(0) : W.reference.open(0);
|
|
1325
1467
|
}, [
|
|
1326
1468
|
I,
|
|
1327
|
-
|
|
1328
|
-
|
|
1469
|
+
W,
|
|
1470
|
+
d,
|
|
1329
1471
|
i
|
|
1330
|
-
]), K =
|
|
1472
|
+
]), K = L(() => {
|
|
1331
1473
|
let e = {
|
|
1332
1474
|
"&.bordered": {
|
|
1333
1475
|
borderWidth: "1px",
|
|
@@ -1337,8 +1479,8 @@ var it = (e) => j(rt, { ...e }), at = (e) => j(ue, {
|
|
|
1337
1479
|
borderColor: (e) => F.outline.color(e),
|
|
1338
1480
|
"&.Mui-focusVisible": { border: (e) => `1px solid ${F.outline.focusColor(e)} !important` },
|
|
1339
1481
|
"&:hover:not(.Mui-disabled, [disabled])": {
|
|
1340
|
-
borderColor: () =>
|
|
1341
|
-
backgroundColor: () =>
|
|
1482
|
+
borderColor: () => O ? "transparent" : void 0,
|
|
1483
|
+
backgroundColor: () => O ? "transparent" : void 0
|
|
1342
1484
|
},
|
|
1343
1485
|
"&.Mui-hovered:not(.Mui-disabled, [disabled])": { borderColor: (e) => F.outline.hoverColor(e) },
|
|
1344
1486
|
"&.Mui-selected:not(.Mui-disabled, [disabled])": { borderColor: (e) => F.outline.hoverColor(e) },
|
|
@@ -1361,28 +1503,28 @@ var it = (e) => j(rt, { ...e }), at = (e) => j(ue, {
|
|
|
1361
1503
|
},
|
|
1362
1504
|
"& .MuiTouchRipple-child": { borderRadius: (e) => `${e.shape.borderRadius}px !important` }
|
|
1363
1505
|
}, t = { "&.Mui-selected": {
|
|
1364
|
-
backgroundColor: (e) =>
|
|
1506
|
+
backgroundColor: (e) => V(e.palette.primary.main, e.palette.action.selectedOpacity),
|
|
1365
1507
|
"&:hover:not(.Mui-disabled)": {
|
|
1366
|
-
backgroundColor: (e) =>
|
|
1367
|
-
"@media (hover: none)": { backgroundColor: (e) =>
|
|
1508
|
+
backgroundColor: (e) => V(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
1509
|
+
"@media (hover: none)": { backgroundColor: (e) => V(e.palette.primary.main, e.palette.action.selectedOpacity) }
|
|
1368
1510
|
}
|
|
1369
1511
|
} }, r = {
|
|
1370
1512
|
maxHeight: "100%",
|
|
1371
1513
|
"&.Mui-selected": {
|
|
1372
|
-
backgroundColor: (e) =>
|
|
1514
|
+
backgroundColor: (e) => V(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity),
|
|
1373
1515
|
"&:hover:not(.Mui-disabled)": {
|
|
1374
|
-
backgroundColor: (e) =>
|
|
1375
|
-
"@media (hover: none)": { backgroundColor: (e) =>
|
|
1516
|
+
backgroundColor: (e) => V(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
1517
|
+
"@media (hover: none)": { backgroundColor: (e) => V(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity) }
|
|
1376
1518
|
}
|
|
1377
1519
|
},
|
|
1378
1520
|
"&:hover:not(.Mui-disabled, [disabled])": {
|
|
1379
1521
|
color: (e) => e.palette.text.primary,
|
|
1380
|
-
...
|
|
1381
|
-
backgroundColor: (e) =>
|
|
1522
|
+
...O ? null : {
|
|
1523
|
+
backgroundColor: (e) => V(e.palette.action.active, e.palette.action.hoverOpacity),
|
|
1382
1524
|
"@media (hover: none)": { backgroundColor: "transparent" }
|
|
1383
1525
|
}
|
|
1384
1526
|
},
|
|
1385
|
-
backgroundColor: () =>
|
|
1527
|
+
backgroundColor: () => O ? "transparent" : void 0,
|
|
1386
1528
|
color: (e) => e.palette.text.icon,
|
|
1387
1529
|
"&.Mui-disabled > .icon path": {
|
|
1388
1530
|
filter: "grayscale(65%)",
|
|
@@ -1390,91 +1532,91 @@ var it = (e) => j(rt, { ...e }), at = (e) => j(ue, {
|
|
|
1390
1532
|
},
|
|
1391
1533
|
padding: () => n ? "2px 3px" : "7px",
|
|
1392
1534
|
marginRight: "0"
|
|
1393
|
-
}, i =
|
|
1535
|
+
}, i = re.mergeContentful(r, e), a = re.mergeContentful(i, t), o = re.mergeContentful(r, e);
|
|
1394
1536
|
return {
|
|
1395
1537
|
quickButtonStyling: i,
|
|
1396
1538
|
openQuickButtonStyling: a,
|
|
1397
1539
|
compoundStyling: o,
|
|
1398
|
-
openCompoundStyling:
|
|
1540
|
+
openCompoundStyling: re.mergeContentful(o, t)
|
|
1399
1541
|
};
|
|
1400
|
-
}, [F,
|
|
1542
|
+
}, [F, O]), q = X((e) => {
|
|
1401
1543
|
let { children: t, ref: n, disabled: r, ...i } = e;
|
|
1402
|
-
return
|
|
1544
|
+
return w(s, {
|
|
1403
1545
|
ref: n,
|
|
1404
1546
|
...i,
|
|
1405
1547
|
disableInteractive: !0,
|
|
1406
1548
|
children: t
|
|
1407
1549
|
});
|
|
1408
|
-
}, []),
|
|
1409
|
-
let { tooltip: t, renderTooltip: n, sx: r, ...i } = e, a =
|
|
1550
|
+
}, []), Y = c || v, ce = Y && (_?.tooltip || _?.renderTooltip), le = (e) => {
|
|
1551
|
+
let { tooltip: t, renderTooltip: n, sx: r, ...i } = e, a = w(p, {
|
|
1410
1552
|
sx: { ...r },
|
|
1411
1553
|
component: "div",
|
|
1412
1554
|
...i
|
|
1413
1555
|
});
|
|
1414
|
-
return ce && (a =
|
|
1415
|
-
render: n ??
|
|
1556
|
+
return ce && (a = w(se, {
|
|
1557
|
+
render: n ?? q,
|
|
1416
1558
|
props: {
|
|
1417
|
-
title: I ? "" : t ??
|
|
1418
|
-
children:
|
|
1559
|
+
title: I ? "" : t ?? y,
|
|
1560
|
+
children: w("div", { children: a }),
|
|
1419
1561
|
disabled: I
|
|
1420
1562
|
}
|
|
1421
1563
|
})), a;
|
|
1422
|
-
},
|
|
1423
|
-
e.keyCode ===
|
|
1424
|
-
} },
|
|
1425
|
-
|
|
1564
|
+
}, ue = { onKeyDown: (e) => {
|
|
1565
|
+
e.keyCode === J.Space ? oe() : e.keyCode === J.F4 || e.keyCode === J.Down ? W.reference.open(0) : e.keyCode === J.Up && W.reference.close(0);
|
|
1566
|
+
} }, de = w(C, {}), Z = L(() => Se((typeof x == "function" ? x() : x) ?? (Y ? Tt : null), a ? i : null), [
|
|
1567
|
+
x,
|
|
1426
1568
|
i,
|
|
1427
1569
|
a,
|
|
1428
|
-
|
|
1570
|
+
Y
|
|
1429
1571
|
]);
|
|
1430
|
-
if (
|
|
1572
|
+
if (Y) {
|
|
1431
1573
|
let e = I ? K.openQuickButtonStyling : K.quickButtonStyling, t = {
|
|
1432
1574
|
tabIndex: -1,
|
|
1433
|
-
disabled:
|
|
1575
|
+
disabled: E,
|
|
1434
1576
|
size: "small",
|
|
1435
1577
|
edge: "end",
|
|
1436
1578
|
onMouseEnter: () => {
|
|
1437
|
-
|
|
1579
|
+
W.reference.parent?.closeChild();
|
|
1438
1580
|
},
|
|
1439
1581
|
onMouseDown: (e) => {
|
|
1440
|
-
e.button === 0 && (e.preventDefault(),
|
|
1582
|
+
e.button === 0 && (e.preventDefault(), G(e));
|
|
1441
1583
|
},
|
|
1442
|
-
disableRipple: !!
|
|
1443
|
-
children:
|
|
1444
|
-
...
|
|
1445
|
-
className:
|
|
1446
|
-
"Mui-focusVisible":
|
|
1584
|
+
disableRipple: !!k,
|
|
1585
|
+
children: T(C, { children: [Z, k] }),
|
|
1586
|
+
..._,
|
|
1587
|
+
className: l({
|
|
1588
|
+
"Mui-focusVisible": R || I,
|
|
1447
1589
|
"Mui-selected": o,
|
|
1448
|
-
"Mui-hovered":
|
|
1449
|
-
"Mui-disabled":
|
|
1590
|
+
"Mui-hovered": H || I,
|
|
1591
|
+
"Mui-disabled": E,
|
|
1450
1592
|
bordered: !0,
|
|
1451
1593
|
left: !0,
|
|
1452
1594
|
"hard-right": !0
|
|
1453
|
-
},
|
|
1595
|
+
}, _?.className),
|
|
1454
1596
|
sx: {
|
|
1455
1597
|
...K.quickButtonStyling,
|
|
1456
1598
|
height: "100%",
|
|
1457
|
-
...
|
|
1599
|
+
..._?.sx
|
|
1458
1600
|
}
|
|
1459
|
-
}, r =
|
|
1460
|
-
render:
|
|
1601
|
+
}, r = w(se, {
|
|
1602
|
+
render: v ?? le,
|
|
1461
1603
|
props: t
|
|
1462
|
-
}), i =
|
|
1463
|
-
ce && (i =
|
|
1464
|
-
render:
|
|
1604
|
+
}), i = lt(!0, n, I);
|
|
1605
|
+
ce && (i = w(se, {
|
|
1606
|
+
render: b ?? q,
|
|
1465
1607
|
props: {
|
|
1466
|
-
title: I ? "" :
|
|
1608
|
+
title: I ? "" : y,
|
|
1467
1609
|
children: i,
|
|
1468
1610
|
disabled: I
|
|
1469
1611
|
}
|
|
1470
|
-
})),
|
|
1471
|
-
ref:
|
|
1612
|
+
})), de = T(C, { children: [r, w(p, {
|
|
1613
|
+
ref: U,
|
|
1472
1614
|
component: "div",
|
|
1473
|
-
className:
|
|
1615
|
+
className: l({
|
|
1474
1616
|
"Mui-selected": I,
|
|
1475
|
-
"Mui-hovered":
|
|
1476
|
-
"Mui-disabled":
|
|
1477
|
-
"Mui-focusVisible":
|
|
1617
|
+
"Mui-hovered": H || I,
|
|
1618
|
+
"Mui-disabled": E,
|
|
1619
|
+
"Mui-focusVisible": R || I,
|
|
1478
1620
|
bordered: !0,
|
|
1479
1621
|
right: !0,
|
|
1480
1622
|
divider: !0
|
|
@@ -1488,27 +1630,27 @@ var it = (e) => j(rt, { ...e }), at = (e) => j(ue, {
|
|
|
1488
1630
|
},
|
|
1489
1631
|
TouchRippleProps: { center: !1 },
|
|
1490
1632
|
tabIndex: -1,
|
|
1491
|
-
disabled:
|
|
1633
|
+
disabled: E,
|
|
1492
1634
|
size: "small",
|
|
1493
1635
|
edge: "end",
|
|
1494
1636
|
onMouseDown: (e) => {
|
|
1495
|
-
e.button === 0 && (e.preventDefault(),
|
|
1637
|
+
e.button === 0 && (e.preventDefault(), oe());
|
|
1496
1638
|
},
|
|
1497
1639
|
children: i
|
|
1498
1640
|
})] });
|
|
1499
1641
|
} else {
|
|
1500
1642
|
let e = I ? K.openCompoundStyling : K.compoundStyling;
|
|
1501
|
-
|
|
1502
|
-
ref:
|
|
1643
|
+
de = w(vt, {
|
|
1644
|
+
ref: U,
|
|
1503
1645
|
tabIndex: -1,
|
|
1504
|
-
disabled:
|
|
1646
|
+
disabled: E,
|
|
1505
1647
|
size: "small",
|
|
1506
|
-
icon:
|
|
1507
|
-
className:
|
|
1648
|
+
icon: Z,
|
|
1649
|
+
className: l({
|
|
1508
1650
|
"Mui-selected": I || o,
|
|
1509
|
-
"Mui-hovered":
|
|
1510
|
-
"Mui-disabled":
|
|
1511
|
-
"Mui-focusVisible":
|
|
1651
|
+
"Mui-hovered": H,
|
|
1652
|
+
"Mui-disabled": E,
|
|
1653
|
+
"Mui-focusVisible": R || I,
|
|
1512
1654
|
bordered: !0,
|
|
1513
1655
|
left: !0,
|
|
1514
1656
|
right: !0
|
|
@@ -1519,25 +1661,25 @@ var it = (e) => j(rt, { ...e }), at = (e) => j(ue, {
|
|
|
1519
1661
|
...e
|
|
1520
1662
|
},
|
|
1521
1663
|
onMouseDown: (e) => {
|
|
1522
|
-
e.button === 0 && (e.preventDefault(),
|
|
1664
|
+
e.button === 0 && (e.preventDefault(), oe());
|
|
1523
1665
|
},
|
|
1524
|
-
children:
|
|
1666
|
+
children: lt(!1, n, I)
|
|
1525
1667
|
});
|
|
1526
1668
|
}
|
|
1527
|
-
let { className:
|
|
1528
|
-
onFocus: () =>
|
|
1529
|
-
onBlur: () =>
|
|
1530
|
-
onMouseOver: () =>
|
|
1531
|
-
onMouseOut: () =>
|
|
1532
|
-
...
|
|
1669
|
+
let { className: fe, sx: me, ...he } = D, ge = w(u, {
|
|
1670
|
+
onFocus: () => ne(!0),
|
|
1671
|
+
onBlur: () => ne(!1),
|
|
1672
|
+
onMouseOver: () => ie(!0),
|
|
1673
|
+
onMouseOut: () => ie(!1),
|
|
1674
|
+
...ue,
|
|
1533
1675
|
"aria-label": "split button",
|
|
1534
|
-
ref:
|
|
1535
|
-
tabIndex:
|
|
1536
|
-
className:
|
|
1537
|
-
"Mui-focusVisible":
|
|
1676
|
+
ref: ae,
|
|
1677
|
+
tabIndex: E ? void 0 : 0,
|
|
1678
|
+
className: l(fe, "split-button-root", {
|
|
1679
|
+
"Mui-focusVisible": R || I,
|
|
1538
1680
|
"Mui-selected": I || o,
|
|
1539
|
-
"Mui-hovered":
|
|
1540
|
-
"Mui-disabled":
|
|
1681
|
+
"Mui-hovered": H,
|
|
1682
|
+
"Mui-disabled": E
|
|
1541
1683
|
}),
|
|
1542
1684
|
sx: {
|
|
1543
1685
|
display: "flex",
|
|
@@ -1552,84 +1694,84 @@ var it = (e) => j(rt, { ...e }), at = (e) => j(ue, {
|
|
|
1552
1694
|
outline: (e) => `solid ${e.palette.primary.main} 1px`,
|
|
1553
1695
|
zIndex: 2
|
|
1554
1696
|
},
|
|
1555
|
-
...
|
|
1697
|
+
...me
|
|
1556
1698
|
},
|
|
1557
|
-
...
|
|
1558
|
-
children:
|
|
1699
|
+
...he,
|
|
1700
|
+
children: de
|
|
1559
1701
|
});
|
|
1560
|
-
return ce || (
|
|
1561
|
-
render:
|
|
1702
|
+
return ce || (ge = w(se, {
|
|
1703
|
+
render: b ?? q,
|
|
1562
1704
|
props: {
|
|
1563
|
-
title: I ? "" :
|
|
1564
|
-
children:
|
|
1705
|
+
title: I ? "" : y,
|
|
1706
|
+
children: ge,
|
|
1565
1707
|
disabled: I
|
|
1566
1708
|
}
|
|
1567
|
-
})),
|
|
1568
|
-
className:
|
|
1709
|
+
})), T(u, {
|
|
1710
|
+
className: l(ee, "popupIconButton"),
|
|
1569
1711
|
ref: t,
|
|
1570
1712
|
...N,
|
|
1571
1713
|
sx: {
|
|
1572
|
-
zIndex:
|
|
1714
|
+
zIndex: R || I ? 2 : void 0,
|
|
1573
1715
|
display: "flex",
|
|
1574
1716
|
alignItems: "center",
|
|
1575
|
-
...
|
|
1717
|
+
...M
|
|
1576
1718
|
},
|
|
1577
|
-
children: [
|
|
1719
|
+
children: [ge, W.component]
|
|
1578
1720
|
});
|
|
1579
1721
|
}));
|
|
1580
|
-
|
|
1581
|
-
var
|
|
1582
|
-
let { selected: n = !1, label: r, showLabel: i, onQuickClick: a, parentFloat: o, renderPopupPanel:
|
|
1583
|
-
if (!
|
|
1584
|
-
let { propsPopper: e } =
|
|
1722
|
+
wt.displayName = "ExhibitPopupIconButton";
|
|
1723
|
+
var Tt = w(G, { iconKey: "Check" }), Et = {}, Dt = N(M((e, t) => {
|
|
1724
|
+
let { selected: n = !1, label: r, showLabel: i, onQuickClick: a, parentFloat: o, renderPopupPanel: c, propsPopup: d = Et, onPopupOpen: p, onPopupClose: m, propsQuickButton: h, renderQuickButton: _, tooltip: v = "", renderTooltip: y, icon: b, disabled: x, ripple: S, primary: E, children: D, sx: O, ...k } = e, [A, j] = B(!1), [M, ee] = B(!1), [N, F] = B(!1), [I, te] = B(!1), R = z(null), V = z(null), ne = L(() => {
|
|
1725
|
+
if (!d) return;
|
|
1726
|
+
let { propsPopper: e } = d;
|
|
1585
1727
|
return {
|
|
1586
1728
|
placement: "right-start",
|
|
1587
1729
|
offsets: [-4, -2],
|
|
1588
1730
|
...e
|
|
1589
1731
|
};
|
|
1590
|
-
}, [
|
|
1591
|
-
anchor:
|
|
1732
|
+
}, [d]), H = pe({
|
|
1733
|
+
anchor: R.current,
|
|
1592
1734
|
label: r,
|
|
1593
|
-
renderPopupPanel:
|
|
1735
|
+
renderPopupPanel: c,
|
|
1594
1736
|
parentFloat: o,
|
|
1595
1737
|
propsPopper: ne,
|
|
1596
1738
|
onClose: () => {
|
|
1597
|
-
|
|
1739
|
+
j(!1), m?.();
|
|
1598
1740
|
},
|
|
1599
1741
|
onOpen: () => {
|
|
1600
|
-
|
|
1742
|
+
j(!0), p?.();
|
|
1601
1743
|
}
|
|
1602
|
-
}), re =
|
|
1603
|
-
e.button === 0 && (a?.(e),
|
|
1604
|
-
}, [a]),
|
|
1744
|
+
}), re = X((e) => {
|
|
1745
|
+
e.button === 0 && (a?.(e), H.reference.close(0));
|
|
1746
|
+
}, [a]), ie = w(Ze, {}), ae = { "&.Mui-selected": {
|
|
1605
1747
|
color: (e) => e.palette.text.primary,
|
|
1606
1748
|
"& svg * ": { color: (e) => e.palette.text.primary }
|
|
1607
|
-
} },
|
|
1749
|
+
} }, U = P((e) => {
|
|
1608
1750
|
let { children: t, ref: n, disabled: r, ...i } = e;
|
|
1609
|
-
return
|
|
1751
|
+
return w(s, {
|
|
1610
1752
|
ref: n,
|
|
1611
1753
|
...i,
|
|
1612
1754
|
disableInteractive: !0,
|
|
1613
1755
|
children: t
|
|
1614
1756
|
});
|
|
1615
|
-
}, []),
|
|
1757
|
+
}, []), W = a || _, G = (e) => {
|
|
1616
1758
|
let { tooltip: t, renderTooltip: n, ...i } = e;
|
|
1617
|
-
return
|
|
1618
|
-
icon:
|
|
1759
|
+
return T(St, {
|
|
1760
|
+
icon: b,
|
|
1619
1761
|
disableRipple: !!S,
|
|
1620
|
-
className:
|
|
1762
|
+
className: l({ "Mui-hovered": N }),
|
|
1621
1763
|
sx: {
|
|
1622
1764
|
flex: "1 1 100%",
|
|
1623
|
-
...
|
|
1765
|
+
...ae
|
|
1624
1766
|
},
|
|
1625
1767
|
...i,
|
|
1626
1768
|
children: [r, S]
|
|
1627
1769
|
});
|
|
1628
|
-
},
|
|
1770
|
+
}, oe = {
|
|
1629
1771
|
onFocus: () => {
|
|
1630
|
-
|
|
1772
|
+
ee(!0);
|
|
1631
1773
|
},
|
|
1632
|
-
onBlur: () =>
|
|
1774
|
+
onBlur: () => ee(!1),
|
|
1633
1775
|
onMouseOver: () => {
|
|
1634
1776
|
F(!0);
|
|
1635
1777
|
},
|
|
@@ -1637,31 +1779,31 @@ var vt = j(J, { iconKey: "Check" }), yt = {}, bt = z(R((e, t) => {
|
|
|
1637
1779
|
F(!1);
|
|
1638
1780
|
},
|
|
1639
1781
|
onMouseEnter: (e) => {
|
|
1640
|
-
e.preventDefault(),
|
|
1782
|
+
e.preventDefault(), H.reference.open();
|
|
1641
1783
|
},
|
|
1642
1784
|
onMouseDown: (e) => {
|
|
1643
1785
|
e.button === 0 && e.preventDefault();
|
|
1644
1786
|
}
|
|
1645
|
-
},
|
|
1646
|
-
if (
|
|
1787
|
+
}, K = w(C, {});
|
|
1788
|
+
if (W) {
|
|
1647
1789
|
let e = {
|
|
1648
1790
|
tabIndex: -1,
|
|
1649
|
-
disabled:
|
|
1791
|
+
disabled: x,
|
|
1650
1792
|
onMouseEnter: () => {
|
|
1651
|
-
|
|
1793
|
+
H.reference.parent?.closeChild();
|
|
1652
1794
|
},
|
|
1653
1795
|
onMouseDown: (e) => {
|
|
1654
1796
|
e.button === 0 && (e.preventDefault(), re(e));
|
|
1655
1797
|
},
|
|
1656
|
-
className:
|
|
1657
|
-
...
|
|
1798
|
+
className: l("quick-left", {}, h?.className),
|
|
1799
|
+
...h
|
|
1658
1800
|
};
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
render:
|
|
1801
|
+
K = T(C, { children: [
|
|
1802
|
+
w(se, {
|
|
1803
|
+
render: _ ?? G,
|
|
1662
1804
|
props: e
|
|
1663
1805
|
}),
|
|
1664
|
-
|
|
1806
|
+
w(f, {
|
|
1665
1807
|
sx: {
|
|
1666
1808
|
ml: "0px",
|
|
1667
1809
|
mr: "0px"
|
|
@@ -1670,11 +1812,11 @@ var vt = j(J, { iconKey: "Check" }), yt = {}, bt = z(R((e, t) => {
|
|
|
1670
1812
|
variant: "middle",
|
|
1671
1813
|
flexItem: !0
|
|
1672
1814
|
}),
|
|
1673
|
-
|
|
1674
|
-
ref:
|
|
1675
|
-
className:
|
|
1676
|
-
"Mui-selected":
|
|
1677
|
-
"Mui-hovered":
|
|
1815
|
+
w(g, {
|
|
1816
|
+
ref: V,
|
|
1817
|
+
className: l({
|
|
1818
|
+
"Mui-selected": A,
|
|
1819
|
+
"Mui-hovered": N
|
|
1678
1820
|
}),
|
|
1679
1821
|
sx: {
|
|
1680
1822
|
borderTopLeftRadius: "0px",
|
|
@@ -1686,14 +1828,14 @@ var vt = j(J, { iconKey: "Check" }), yt = {}, bt = z(R((e, t) => {
|
|
|
1686
1828
|
paddingBottom: "2px",
|
|
1687
1829
|
marginLeft: "0px",
|
|
1688
1830
|
marginRight: "6px",
|
|
1689
|
-
color: (e) =>
|
|
1831
|
+
color: (e) => E ? void 0 : e.palette.text.secondary,
|
|
1690
1832
|
"&.Mui-hovered:not(.Mui-disabled, [disabled])": { color: (e) => e.palette.text.primary },
|
|
1691
|
-
...
|
|
1833
|
+
...ae
|
|
1692
1834
|
},
|
|
1693
1835
|
tabIndex: -1,
|
|
1694
|
-
disabled:
|
|
1695
|
-
...
|
|
1696
|
-
children:
|
|
1836
|
+
disabled: x,
|
|
1837
|
+
...oe,
|
|
1838
|
+
children: w(u, {
|
|
1697
1839
|
className: "expand-icon",
|
|
1698
1840
|
sx: {
|
|
1699
1841
|
flex: "none",
|
|
@@ -1701,7 +1843,7 @@ var vt = j(J, { iconKey: "Check" }), yt = {}, bt = z(R((e, t) => {
|
|
|
1701
1843
|
border: "1px solid transparent",
|
|
1702
1844
|
paddingTop: "1px",
|
|
1703
1845
|
paddingBottom: "1px",
|
|
1704
|
-
color: (e) =>
|
|
1846
|
+
color: (e) => E ? void 0 : e.palette.text.icon ?? e.palette.action.active
|
|
1705
1847
|
},
|
|
1706
1848
|
onMouseOver: (e) => {
|
|
1707
1849
|
e.preventDefault(), te(!0);
|
|
@@ -1710,52 +1852,52 @@ var vt = j(J, { iconKey: "Check" }), yt = {}, bt = z(R((e, t) => {
|
|
|
1710
1852
|
te(!1);
|
|
1711
1853
|
},
|
|
1712
1854
|
onClick: (e) => {
|
|
1713
|
-
e.preventDefault(),
|
|
1855
|
+
e.preventDefault(), A ? H.reference.close() : H.reference.open();
|
|
1714
1856
|
},
|
|
1715
|
-
children:
|
|
1857
|
+
children: ie
|
|
1716
1858
|
})
|
|
1717
1859
|
})
|
|
1718
1860
|
] });
|
|
1719
|
-
} else
|
|
1720
|
-
ref:
|
|
1861
|
+
} else K = T(St, {
|
|
1862
|
+
ref: V,
|
|
1721
1863
|
tabIndex: -1,
|
|
1722
|
-
disabled:
|
|
1723
|
-
icon:
|
|
1724
|
-
className:
|
|
1725
|
-
"Mui-selected":
|
|
1726
|
-
"Mui-hovered":
|
|
1864
|
+
disabled: x,
|
|
1865
|
+
icon: b,
|
|
1866
|
+
className: l({
|
|
1867
|
+
"Mui-selected": A || n,
|
|
1868
|
+
"Mui-hovered": N
|
|
1727
1869
|
}),
|
|
1728
1870
|
sx: {
|
|
1729
1871
|
flex: "1 1 100%",
|
|
1730
1872
|
paddingRight: "0px",
|
|
1731
|
-
...
|
|
1873
|
+
...ae
|
|
1732
1874
|
},
|
|
1733
1875
|
onClick: (e) => {
|
|
1734
|
-
e.preventDefault(),
|
|
1876
|
+
e.preventDefault(), A ? H.reference.close() : H.reference.open();
|
|
1735
1877
|
},
|
|
1736
|
-
...
|
|
1737
|
-
children: [
|
|
1878
|
+
...oe,
|
|
1879
|
+
children: [w("div", {
|
|
1738
1880
|
style: { flex: "1 1 100%" },
|
|
1739
1881
|
children: r
|
|
1740
|
-
}),
|
|
1882
|
+
}), w(u, {
|
|
1741
1883
|
className: "expand-icon",
|
|
1742
1884
|
sx: {
|
|
1743
1885
|
flex: "none",
|
|
1744
1886
|
display: "flex",
|
|
1745
|
-
color: (e) =>
|
|
1887
|
+
color: (e) => E ? void 0 : e.palette.text.icon ?? e.palette.action.active
|
|
1746
1888
|
},
|
|
1747
|
-
children:
|
|
1889
|
+
children: ie
|
|
1748
1890
|
})]
|
|
1749
1891
|
});
|
|
1750
|
-
let q =
|
|
1892
|
+
let q = w(u, {
|
|
1751
1893
|
"aria-label": "split button",
|
|
1752
|
-
ref:
|
|
1753
|
-
tabIndex:
|
|
1754
|
-
className:
|
|
1755
|
-
"Mui-disabled":
|
|
1756
|
-
"Mui-selected":
|
|
1757
|
-
"Mui-focusVisible":
|
|
1758
|
-
"Mui-hovered":
|
|
1894
|
+
ref: R,
|
|
1895
|
+
tabIndex: x ? void 0 : 0,
|
|
1896
|
+
className: l({
|
|
1897
|
+
"Mui-disabled": x,
|
|
1898
|
+
"Mui-selected": A,
|
|
1899
|
+
"Mui-focusVisible": M || A,
|
|
1900
|
+
"Mui-hovered": N
|
|
1759
1901
|
}),
|
|
1760
1902
|
sx: {
|
|
1761
1903
|
display: "flex",
|
|
@@ -1768,36 +1910,36 @@ var vt = j(J, { iconKey: "Check" }), yt = {}, bt = z(R((e, t) => {
|
|
|
1768
1910
|
marginRight: "-1px"
|
|
1769
1911
|
},
|
|
1770
1912
|
"&.Mui-disabled > .icon path": { filter: "grayscale(65%)" },
|
|
1771
|
-
...
|
|
1913
|
+
...O
|
|
1772
1914
|
},
|
|
1773
|
-
...
|
|
1774
|
-
children:
|
|
1915
|
+
...k,
|
|
1916
|
+
children: K
|
|
1775
1917
|
});
|
|
1776
|
-
return
|
|
1777
|
-
render:
|
|
1918
|
+
return W && !I && (h?.tooltip || h?.renderTooltip) && (q = w(se, {
|
|
1919
|
+
render: h?.renderTooltip ?? U,
|
|
1778
1920
|
props: {
|
|
1779
|
-
title:
|
|
1921
|
+
title: A ? "" : q ?? h?.tooltip,
|
|
1780
1922
|
children: q,
|
|
1781
|
-
disabled:
|
|
1923
|
+
disabled: A
|
|
1782
1924
|
}
|
|
1783
|
-
})),
|
|
1925
|
+
})), T(u, {
|
|
1784
1926
|
ref: t,
|
|
1785
1927
|
sx: {
|
|
1786
|
-
zIndex:
|
|
1928
|
+
zIndex: M || A ? 2 : void 0,
|
|
1787
1929
|
display: "flex",
|
|
1788
1930
|
" .tooltip-wrapper": {
|
|
1789
1931
|
display: "flex",
|
|
1790
1932
|
flex: "1 1 100%"
|
|
1791
1933
|
}
|
|
1792
1934
|
},
|
|
1793
|
-
children: [q,
|
|
1935
|
+
children: [q, H.component]
|
|
1794
1936
|
});
|
|
1795
|
-
})),
|
|
1796
|
-
let { onSelectToggle: r, selected: i = !1, label: a, shortcut: o, tabIndex: s = 0, preventFocus: c = !1, ...l } =
|
|
1797
|
-
return
|
|
1937
|
+
})), Ot = N(M((t, n) => {
|
|
1938
|
+
let { onSelectToggle: r, selected: i = !1, label: a, shortcut: o, tabIndex: s = 0, preventFocus: c = !1, ...l } = t;
|
|
1939
|
+
return w(e, {
|
|
1798
1940
|
label: a,
|
|
1799
1941
|
shortcut: o,
|
|
1800
|
-
children:
|
|
1942
|
+
children: w(vt, {
|
|
1801
1943
|
ref: n,
|
|
1802
1944
|
outlined: !1,
|
|
1803
1945
|
tabIndex: s,
|
|
@@ -1811,125 +1953,125 @@ var vt = j(J, { iconKey: "Check" }), yt = {}, bt = z(R((e, t) => {
|
|
|
1811
1953
|
...l
|
|
1812
1954
|
})
|
|
1813
1955
|
});
|
|
1814
|
-
})),
|
|
1815
|
-
let { children: n, selected: r = !0, outlined: i = !0, sx: a, ...o } = e, s =
|
|
1956
|
+
})), kt = w(G, {}), At = w(G, { iconKey: "Check" }), jt = N(M((e, t) => {
|
|
1957
|
+
let { children: n, selected: r = !0, outlined: i = !0, sx: a, ...o } = e, s = L(() => ({
|
|
1816
1958
|
display: "flex",
|
|
1817
1959
|
border: (e) => r ? `solid ${i ? e.palette.divider : "transparent"} 1px` : "solid transparent 1px",
|
|
1818
1960
|
borderRadius: (e) => `${e.shape.borderRadius}px`,
|
|
1819
1961
|
backgroundColor: (e) => {
|
|
1820
|
-
if (r) return
|
|
1962
|
+
if (r) return V(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity);
|
|
1821
1963
|
},
|
|
1822
1964
|
...a
|
|
1823
1965
|
}), [a]), c = n;
|
|
1824
|
-
return c === null && (c =
|
|
1966
|
+
return c === null && (c = kt), c ||= At, w(u, {
|
|
1825
1967
|
ref: t,
|
|
1826
1968
|
sx: s,
|
|
1827
1969
|
...o,
|
|
1828
1970
|
children: c
|
|
1829
1971
|
});
|
|
1830
1972
|
}));
|
|
1831
|
-
|
|
1832
|
-
var
|
|
1973
|
+
n();
|
|
1974
|
+
var Mt = {
|
|
1833
1975
|
inline: null,
|
|
1834
1976
|
popup: []
|
|
1835
|
-
},
|
|
1836
|
-
let { children:
|
|
1837
|
-
|
|
1838
|
-
let
|
|
1839
|
-
|
|
1840
|
-
}, []),
|
|
1841
|
-
|
|
1842
|
-
}, []),
|
|
1843
|
-
|
|
1844
|
-
}, []),
|
|
1845
|
-
|
|
1977
|
+
}, Nt = N(M((t, n) => {
|
|
1978
|
+
let { children: i, sx: a, ...o } = t, s = ve(), c = me(n, () => ({}), []), [l, d] = _e(), f = z(null), p = z(null), [m, h] = R((e) => e + 1, 0), [g, _] = B(null), [v, y] = B(null), b = v?.popup ?? null, x = z(0), [S, C] = B(!1), E = z(!1), O = fe(), k = z(O);
|
|
1979
|
+
k.current = O;
|
|
1980
|
+
let j = P(() => {
|
|
1981
|
+
k.current?.closeChild(0);
|
|
1982
|
+
}, []), M = P(() => {
|
|
1983
|
+
E.current = !0, C(!0);
|
|
1984
|
+
}, []), ee = P(() => {
|
|
1985
|
+
E.current = !1, C(!1);
|
|
1986
|
+
}, []), N = z(null), F = z(/* @__PURE__ */ new Map()), I = P(() => {
|
|
1987
|
+
F.current.clear(), y(null), h();
|
|
1846
1988
|
}, []);
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
let e = [], t =
|
|
1989
|
+
te(() => {
|
|
1990
|
+
p.current = { refs: [] };
|
|
1991
|
+
let e = [], t = D.toArray(i), n = 0;
|
|
1850
1992
|
t.forEach((r, i) => {
|
|
1851
|
-
e.push(
|
|
1993
|
+
e.push(w(u, {
|
|
1852
1994
|
sx: {
|
|
1853
1995
|
display: "flex",
|
|
1854
1996
|
flex: "0 0 auto"
|
|
1855
1997
|
},
|
|
1856
1998
|
ref: (e) => {
|
|
1857
|
-
n++, n === t.length &&
|
|
1999
|
+
n++, n === t.length && h();
|
|
1858
2000
|
let r = { current: null };
|
|
1859
|
-
r.current = e,
|
|
2001
|
+
r.current = e, p.current.refs[i] = r;
|
|
1860
2002
|
},
|
|
1861
2003
|
children: r
|
|
1862
2004
|
}, i));
|
|
1863
|
-
}),
|
|
1864
|
-
}, [
|
|
1865
|
-
if (!
|
|
1866
|
-
let e =
|
|
1867
|
-
if (!
|
|
1868
|
-
let n =
|
|
1869
|
-
let n =
|
|
1870
|
-
n ? n.disconnect() : n =
|
|
2005
|
+
}), _(e);
|
|
2006
|
+
}, [i, d]), te(() => {
|
|
2007
|
+
if (!g) return;
|
|
2008
|
+
let e = p.current?.refs ?? [], t = e.length;
|
|
2009
|
+
if (!c.current || t === 0) return void y(null);
|
|
2010
|
+
let n = c.current?.getBoundingClientRect(), r = [], i = [], a = () => {
|
|
2011
|
+
let n = N.current;
|
|
2012
|
+
n ? n.disconnect() : n = N.current = new ResizeObserver((e) => {
|
|
1871
2013
|
for (let t = 0; t < e.length; t++) {
|
|
1872
2014
|
let n = e[t].target;
|
|
1873
2015
|
if (!n.isConnected) continue;
|
|
1874
|
-
let r =
|
|
1875
|
-
if (r !== void 0 && Math.abs(n.getBoundingClientRect().width - r) > .5) return void
|
|
2016
|
+
let r = F.current.get(n);
|
|
2017
|
+
if (r !== void 0 && Math.abs(n.getBoundingClientRect().width - r) > .5) return void I();
|
|
1876
2018
|
}
|
|
1877
|
-
}),
|
|
2019
|
+
}), F.current.clear();
|
|
1878
2020
|
for (let r = 0; r < t; r++) {
|
|
1879
2021
|
let t = e[r]?.current;
|
|
1880
|
-
t && (
|
|
2022
|
+
t && (F.current.set(t, t.getBoundingClientRect().width), n.observe(t));
|
|
1881
2023
|
}
|
|
1882
|
-
}, o = 0,
|
|
1883
|
-
for (let r = 0; !
|
|
2024
|
+
}, o = 0, s = !1;
|
|
2025
|
+
for (let r = 0; !s && r < t; r++) {
|
|
1884
2026
|
let t = e[r];
|
|
1885
2027
|
if (!t) continue;
|
|
1886
2028
|
if (!t.current) {
|
|
1887
|
-
|
|
2029
|
+
s = !0;
|
|
1888
2030
|
continue;
|
|
1889
2031
|
}
|
|
1890
2032
|
let i = t.current.getBoundingClientRect();
|
|
1891
|
-
o += i?.width, o > n.width && (
|
|
2033
|
+
o += i?.width, o > n.width && (s = !0);
|
|
1892
2034
|
}
|
|
1893
|
-
if (!
|
|
1894
|
-
let l =
|
|
2035
|
+
if (!s) return a(), E.current && j(), void y(Mt);
|
|
2036
|
+
let l = f.current?.getBoundingClientRect();
|
|
1895
2037
|
l?.width && (x.current = l.width);
|
|
1896
|
-
let
|
|
2038
|
+
let u = n.width - x.current;
|
|
1897
2039
|
o = 0;
|
|
1898
2040
|
for (let n = 0; n < t; n++) {
|
|
1899
2041
|
let t = e[n], a = !1;
|
|
1900
2042
|
if (t.current) {
|
|
1901
2043
|
let e = t.current.getBoundingClientRect();
|
|
1902
|
-
o += e?.width, o <=
|
|
2044
|
+
o += e?.width, o <= u && (a = !0);
|
|
1903
2045
|
}
|
|
1904
|
-
a ? r.push(
|
|
2046
|
+
a ? r.push(g[n]) : i.push(g[n]);
|
|
1905
2047
|
}
|
|
1906
|
-
a(),
|
|
2048
|
+
a(), y({
|
|
1907
2049
|
inline: r,
|
|
1908
2050
|
popup: i
|
|
1909
2051
|
});
|
|
1910
2052
|
}, [
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
]),
|
|
1916
|
-
|
|
2053
|
+
i,
|
|
2054
|
+
g,
|
|
2055
|
+
d,
|
|
2056
|
+
m
|
|
2057
|
+
]), te(() => () => {
|
|
2058
|
+
N.current?.disconnect(), N.current = null;
|
|
1917
2059
|
}, []);
|
|
1918
|
-
let
|
|
2060
|
+
let L = P((e) => {
|
|
1919
2061
|
let t = [], n = b?.length ?? 0;
|
|
1920
2062
|
for (let e = 0; e < n; e++) {
|
|
1921
|
-
let n =
|
|
1922
|
-
|
|
2063
|
+
let n = D.toArray(b[e])[0];
|
|
2064
|
+
D.toArray(n.props.children?.props?.children ?? n.props.children).forEach((n, r) => {
|
|
1923
2065
|
let i = n, a = {
|
|
1924
2066
|
...i.props,
|
|
1925
2067
|
key: `overflow-${e}-${r}${i.key ?? ""}`
|
|
1926
|
-
}, o =
|
|
2068
|
+
}, o = A(i, a);
|
|
1927
2069
|
t.push(o);
|
|
1928
2070
|
});
|
|
1929
2071
|
}
|
|
1930
|
-
return
|
|
2072
|
+
return ct({
|
|
1931
2073
|
...e,
|
|
1932
|
-
children:
|
|
2074
|
+
children: w(u, {
|
|
1933
2075
|
className: "overflow-palette-popup-panel",
|
|
1934
2076
|
sx: {
|
|
1935
2077
|
display: "flex",
|
|
@@ -1945,12 +2087,12 @@ var Tt = {
|
|
|
1945
2087
|
children: t
|
|
1946
2088
|
})
|
|
1947
2089
|
});
|
|
1948
|
-
}, [b]),
|
|
1949
|
-
s,
|
|
2090
|
+
}, [b]), V = r([
|
|
1950
2091
|
c,
|
|
2092
|
+
l,
|
|
1951
2093
|
n
|
|
1952
2094
|
]);
|
|
1953
|
-
return
|
|
2095
|
+
return T(u, {
|
|
1954
2096
|
className: "overflow-palette",
|
|
1955
2097
|
sx: {
|
|
1956
2098
|
display: "flex",
|
|
@@ -1961,11 +2103,11 @@ var Tt = {
|
|
|
1961
2103
|
maxWidth: "100%",
|
|
1962
2104
|
minWidth: 0,
|
|
1963
2105
|
overflow: "hidden",
|
|
1964
|
-
...
|
|
2106
|
+
...a
|
|
1965
2107
|
},
|
|
1966
|
-
ref:
|
|
1967
|
-
...
|
|
1968
|
-
children: [
|
|
2108
|
+
ref: V,
|
|
2109
|
+
...o,
|
|
2110
|
+
children: [w(u, {
|
|
1969
2111
|
sx: {
|
|
1970
2112
|
flexDirection: "row",
|
|
1971
2113
|
display: "flex",
|
|
@@ -1976,26 +2118,26 @@ var Tt = {
|
|
|
1976
2118
|
overflow: "hidden",
|
|
1977
2119
|
alignItems: "center"
|
|
1978
2120
|
},
|
|
1979
|
-
children:
|
|
1980
|
-
}),
|
|
2121
|
+
children: v?.inline ?? g
|
|
2122
|
+
}), w(u, {
|
|
1981
2123
|
className: "overflow-palette-popup-button",
|
|
1982
2124
|
sx: {
|
|
1983
2125
|
display: S || b === null || b.length !== 0 ? "flex" : "none",
|
|
1984
2126
|
flex: "0 0 auto",
|
|
1985
2127
|
alignItems: "center"
|
|
1986
2128
|
},
|
|
1987
|
-
children:
|
|
1988
|
-
renderPopupPanel:
|
|
1989
|
-
ref:
|
|
1990
|
-
onPopupOpen:
|
|
1991
|
-
onPopupClose:
|
|
1992
|
-
renderTooltip: ({ children:
|
|
1993
|
-
label:
|
|
1994
|
-
description:
|
|
2129
|
+
children: w(wt, {
|
|
2130
|
+
renderPopupPanel: L,
|
|
2131
|
+
ref: f,
|
|
2132
|
+
onPopupOpen: M,
|
|
2133
|
+
onPopupClose: ee,
|
|
2134
|
+
renderTooltip: ({ children: t, disabled: n }) => w(e, {
|
|
2135
|
+
label: s("overflow.more"),
|
|
2136
|
+
description: s("overflow.moreDescription"),
|
|
1995
2137
|
disabled: n,
|
|
1996
|
-
children:
|
|
2138
|
+
children: t
|
|
1997
2139
|
}),
|
|
1998
|
-
icon:
|
|
2140
|
+
icon: w(G, { iconKey: "MoreHorizontal" })
|
|
1999
2141
|
})
|
|
2000
2142
|
})]
|
|
2001
2143
|
});
|
|
@@ -2009,7 +2151,7 @@ function Q() {
|
|
|
2009
2151
|
return e;
|
|
2010
2152
|
}, Q.apply(null, arguments);
|
|
2011
2153
|
}
|
|
2012
|
-
function
|
|
2154
|
+
function Pt(e, t) {
|
|
2013
2155
|
if (e == null) return {};
|
|
2014
2156
|
var n = {};
|
|
2015
2157
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -2018,7 +2160,7 @@ function Dt(e, t) {
|
|
|
2018
2160
|
}
|
|
2019
2161
|
return n;
|
|
2020
2162
|
}
|
|
2021
|
-
var $,
|
|
2163
|
+
var $, Ft = {
|
|
2022
2164
|
state: {},
|
|
2023
2165
|
updateModal: function() {},
|
|
2024
2166
|
hideModal: function() {},
|
|
@@ -2032,12 +2174,12 @@ var $, Ot = {
|
|
|
2032
2174
|
update: function() {}
|
|
2033
2175
|
};
|
|
2034
2176
|
}
|
|
2035
|
-
},
|
|
2177
|
+
}, It = j(void 0);
|
|
2036
2178
|
(function(e) {
|
|
2037
2179
|
e.SHOW = "SHOW", e.HIDE = "HIDE", e.UPDATE = "UPDATE", e.DESTROY = "DESTROY", e.DESTROY_BY_ROOT_ID = "DESTROY_BY_ROOT_ID", e.UNKNOWN = "UNKNOWN";
|
|
2038
2180
|
})($ ||= {});
|
|
2039
|
-
var
|
|
2040
|
-
function
|
|
2181
|
+
var Lt = {};
|
|
2182
|
+
function Rt(e, t) {
|
|
2041
2183
|
switch (t.type) {
|
|
2042
2184
|
case $.SHOW:
|
|
2043
2185
|
var n, r = t.payload, i = r.id, a = r.component, o = r.props, s = r.options;
|
|
@@ -2066,38 +2208,38 @@ function jt(e, t) {
|
|
|
2066
2208
|
default: throw Error("Unexpected action");
|
|
2067
2209
|
}
|
|
2068
2210
|
}
|
|
2069
|
-
var
|
|
2211
|
+
var zt = "[ERROR]: Modal ID is missing", Bt = function(e) {
|
|
2070
2212
|
e === void 0 && (e = 8);
|
|
2071
2213
|
for (var t = [], n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", r = 0; r < e; r++) t[r] = n.charAt(Math.floor(62 * Math.random()));
|
|
2072
2214
|
return t.join("");
|
|
2073
|
-
},
|
|
2074
|
-
function
|
|
2075
|
-
var t = e.children, n = e.legacy, r = n !== void 0 && n, i = e.suspense, a = i === void 0 || i, o = e.fallback, s = o === void 0 ? null : o, c =
|
|
2076
|
-
var n =
|
|
2215
|
+
}, Vt = ["open"];
|
|
2216
|
+
function Ht(e) {
|
|
2217
|
+
var t = e.children, n = e.legacy, r = n !== void 0 && n, i = e.suspense, a = i === void 0 || i, o = e.fallback, s = o === void 0 ? null : o, c = E.useReducer(Rt, Lt), l = c[0], u = c[1], d = E.useCallback(function(e, t) {
|
|
2218
|
+
var n = Pt(t, Vt);
|
|
2077
2219
|
e ? u({
|
|
2078
2220
|
type: $.UPDATE,
|
|
2079
2221
|
payload: {
|
|
2080
2222
|
id: e,
|
|
2081
2223
|
props: n
|
|
2082
2224
|
}
|
|
2083
|
-
}) : console.error(
|
|
2084
|
-
}, [u]), f =
|
|
2225
|
+
}) : console.error(zt);
|
|
2226
|
+
}, [u]), f = E.useCallback(function(e) {
|
|
2085
2227
|
e ? u({
|
|
2086
2228
|
type: $.HIDE,
|
|
2087
2229
|
payload: { id: e }
|
|
2088
|
-
}) : console.error(
|
|
2089
|
-
}, [u]), p =
|
|
2230
|
+
}) : console.error(zt);
|
|
2231
|
+
}, [u]), p = E.useCallback(function(e) {
|
|
2090
2232
|
e ? u({
|
|
2091
2233
|
type: $.DESTROY,
|
|
2092
2234
|
payload: { id: e }
|
|
2093
|
-
}) : console.error(
|
|
2094
|
-
}, [u]), m =
|
|
2235
|
+
}) : console.error(zt);
|
|
2236
|
+
}, [u]), m = E.useCallback(function(e) {
|
|
2095
2237
|
e ? u({
|
|
2096
2238
|
type: $.DESTROY_BY_ROOT_ID,
|
|
2097
2239
|
payload: { rootId: e }
|
|
2098
2240
|
}) : console.error("[ERROR]: Modal root ID is missing");
|
|
2099
|
-
}, [u]), h =
|
|
2100
|
-
var r =
|
|
2241
|
+
}, [u]), h = E.useCallback(function(e, t, n) {
|
|
2242
|
+
var r = Bt(8);
|
|
2101
2243
|
return n && n.rootId && (r = n.rootId + "." + r), u({
|
|
2102
2244
|
type: $.SHOW,
|
|
2103
2245
|
payload: {
|
|
@@ -2123,20 +2265,20 @@ function Ft(e) {
|
|
|
2123
2265
|
f,
|
|
2124
2266
|
p,
|
|
2125
2267
|
d
|
|
2126
|
-
]), g = a ?
|
|
2127
|
-
return
|
|
2268
|
+
]), g = a ? k : O;
|
|
2269
|
+
return E.createElement(It.Provider, { value: {
|
|
2128
2270
|
state: l,
|
|
2129
2271
|
updateModal: d,
|
|
2130
2272
|
hideModal: f,
|
|
2131
2273
|
destroyModal: p,
|
|
2132
2274
|
showModal: h,
|
|
2133
2275
|
destroyModalsByRootId: m
|
|
2134
|
-
} }, t,
|
|
2276
|
+
} }, t, E.createElement(g, Object.assign({}, a && { fallback: s }), Object.keys(l).map(function(e) {
|
|
2135
2277
|
var t = l[e], n = t.component, i = t.props, a = t.options, o = function() {
|
|
2136
2278
|
var t, n;
|
|
2137
2279
|
i != null && i.onExited && i.onExited.apply(i, arguments), i != null && (t = i.TransitionProps) != null && t.onExited && (n = i.TransitionProps).onExited.apply(n, arguments), p(e);
|
|
2138
2280
|
}, s = {};
|
|
2139
|
-
return s = r ? { onExited: o } : { TransitionProps: Q({}, i?.TransitionProps, { onExited: o }) },
|
|
2281
|
+
return s = r ? { onExited: o } : { TransitionProps: Q({}, i?.TransitionProps, { onExited: o }) }, E.createElement(n, Object.assign({}, i, {
|
|
2140
2282
|
key: e,
|
|
2141
2283
|
onClose: function() {
|
|
2142
2284
|
a && a.hideOnClose && f(e), a && a.destroyOnClose && a.hideOnClose && p(e), i && i.onClose && i.onClose.apply(i, arguments);
|
|
@@ -2144,27 +2286,27 @@ function Ft(e) {
|
|
|
2144
2286
|
}, a && !a.destroyOnClose && s));
|
|
2145
2287
|
})));
|
|
2146
2288
|
}
|
|
2147
|
-
var
|
|
2148
|
-
function
|
|
2149
|
-
Object.assign(
|
|
2289
|
+
var Ut = { enforceProvider: !1 };
|
|
2290
|
+
function Wt(e) {
|
|
2291
|
+
Object.assign(Ut, e);
|
|
2150
2292
|
}
|
|
2151
|
-
function
|
|
2152
|
-
return
|
|
2293
|
+
function Gt() {
|
|
2294
|
+
return Ut;
|
|
2153
2295
|
}
|
|
2154
|
-
var
|
|
2155
|
-
function
|
|
2156
|
-
e === void 0 && (e =
|
|
2157
|
-
var t = Q({},
|
|
2158
|
-
var e =
|
|
2159
|
-
if (
|
|
2160
|
-
return e ||
|
|
2161
|
-
}(), r = n.showModal, i = n.destroyModalsByRootId, a =
|
|
2162
|
-
return
|
|
2296
|
+
var Kt = ["showModal", "destroyModalsByRootId"], qt = { disableAutoDestroy: !1 };
|
|
2297
|
+
function Jt(e) {
|
|
2298
|
+
e === void 0 && (e = qt);
|
|
2299
|
+
var t = Q({}, qt, e).disableAutoDestroy, n = function() {
|
|
2300
|
+
var e = F(It);
|
|
2301
|
+
if (Gt().enforceProvider && e === void 0) throw Error("useModalContext must be used within a ModalProvider");
|
|
2302
|
+
return e || Ft;
|
|
2303
|
+
}(), r = n.showModal, i = n.destroyModalsByRootId, a = Pt(n, Kt), o = z(Bt(6));
|
|
2304
|
+
return I(function() {
|
|
2163
2305
|
return function() {
|
|
2164
2306
|
!t && i && i(o.current);
|
|
2165
2307
|
};
|
|
2166
2308
|
}, [t, i]), Q({
|
|
2167
|
-
showModal:
|
|
2309
|
+
showModal: P(function(e, t, n) {
|
|
2168
2310
|
return r(e, t, Q({
|
|
2169
2311
|
rootId: o.current,
|
|
2170
2312
|
hideOnClose: !0
|
|
@@ -2173,29 +2315,29 @@ function Vt(e) {
|
|
|
2173
2315
|
destroyModalsByRootId: i
|
|
2174
2316
|
}, a);
|
|
2175
2317
|
}
|
|
2176
|
-
var
|
|
2177
|
-
let t =
|
|
2178
|
-
return
|
|
2318
|
+
var Yt = j(void 0), Xt = ({ error: e }) => {
|
|
2319
|
+
let t = F(Yt);
|
|
2320
|
+
return I(() => {
|
|
2179
2321
|
t?.(e);
|
|
2180
2322
|
}, [e]), null;
|
|
2181
2323
|
};
|
|
2182
|
-
function
|
|
2183
|
-
let t =
|
|
2324
|
+
function Zt(e) {
|
|
2325
|
+
let t = le(e, { renderError: ({ error: e }) => w(Xt, { error: e }) });
|
|
2184
2326
|
return (e) => {
|
|
2185
2327
|
let { onLoadError: n, ...r } = e;
|
|
2186
|
-
return
|
|
2328
|
+
return w(Yt.Provider, {
|
|
2187
2329
|
value: n,
|
|
2188
|
-
children:
|
|
2330
|
+
children: w(k, {
|
|
2189
2331
|
fallback: null,
|
|
2190
|
-
children:
|
|
2332
|
+
children: w(t, { ...r })
|
|
2191
2333
|
})
|
|
2192
2334
|
});
|
|
2193
2335
|
};
|
|
2194
2336
|
}
|
|
2195
|
-
function
|
|
2196
|
-
let [t, n] =
|
|
2337
|
+
function Qt(e) {
|
|
2338
|
+
let [t, n] = B(() => /* @__PURE__ */ new Map()), r = z(null);
|
|
2197
2339
|
r.current === null && (r.current = /* @__PURE__ */ new Map());
|
|
2198
|
-
let { showModal: i, updateModal: a, destroyModal: o, hideModal: s } =
|
|
2340
|
+
let { showModal: i, updateModal: a, destroyModal: o, hideModal: s } = Jt({ disableAutoDestroy: !0 });
|
|
2199
2341
|
return (c, l, u, d) => new Promise((f, p) => {
|
|
2200
2342
|
let m = !1;
|
|
2201
2343
|
u?.disableAutoDestroy !== void 0 && (m = u.disableAutoDestroy, delete (u = { ...u }).disableAutoDestroy);
|
|
@@ -2249,7 +2391,7 @@ function Gt(e) {
|
|
|
2249
2391
|
}
|
|
2250
2392
|
if (!l) return void p(`Invalid function for window '${c}'`);
|
|
2251
2393
|
let v = r.current.get(c);
|
|
2252
|
-
v || (v =
|
|
2394
|
+
v || (v = Zt(l), r.current.set(c, v));
|
|
2253
2395
|
let y = i(v, g, { destroyOnClose: !m });
|
|
2254
2396
|
n((e) => (e.set(c, {
|
|
2255
2397
|
id: y.id,
|
|
@@ -2258,10 +2400,10 @@ function Gt(e) {
|
|
|
2258
2400
|
}), e)), h && f(null);
|
|
2259
2401
|
});
|
|
2260
2402
|
}
|
|
2261
|
-
var
|
|
2262
|
-
let { showModal: t } =
|
|
2403
|
+
var $t = (e) => {
|
|
2404
|
+
let { showModal: t } = Jt();
|
|
2263
2405
|
return (n) => new Promise((r) => {
|
|
2264
|
-
let i = t(
|
|
2406
|
+
let i = t(c, {
|
|
2265
2407
|
...e,
|
|
2266
2408
|
...n,
|
|
2267
2409
|
onOption(e, t, i) {
|
|
@@ -2272,12 +2414,12 @@ var Kt = (e) => {
|
|
|
2272
2414
|
}
|
|
2273
2415
|
});
|
|
2274
2416
|
});
|
|
2275
|
-
},
|
|
2276
|
-
let { showModal: t } =
|
|
2417
|
+
}, en = Zt(ae("utils-mui:inputDialog", () => import("./CkQpEyDkcGs4Dx9X.mjs")).load), tn = (e) => {
|
|
2418
|
+
let { showModal: t } = Jt();
|
|
2277
2419
|
return (n) => {
|
|
2278
2420
|
let { defaultOption: r = n.options?.[0], cancelOption: i = "Cancel", ...a } = n;
|
|
2279
2421
|
return new Promise((n, o) => {
|
|
2280
|
-
let s = t(
|
|
2422
|
+
let s = t(en, {
|
|
2281
2423
|
...e,
|
|
2282
2424
|
defaultOption: r,
|
|
2283
2425
|
cancelOption: i,
|
|
@@ -2303,9 +2445,9 @@ var Kt = (e) => {
|
|
|
2303
2445
|
});
|
|
2304
2446
|
});
|
|
2305
2447
|
};
|
|
2306
|
-
},
|
|
2307
|
-
let { commandKey: r, command: i, disabled: a, shortcut: o, children: s, ...c } =
|
|
2308
|
-
return
|
|
2448
|
+
}, nn = N(M((t, n) => {
|
|
2449
|
+
let { commandKey: r, command: i, disabled: a, shortcut: o, children: s, ...c } = t, [l] = Z(r ?? []), u = i ?? l, d = u?.getShortcut();
|
|
2450
|
+
return w(e, {
|
|
2309
2451
|
ref: n,
|
|
2310
2452
|
label: a === void 0 ? "" : u?.getLabel(),
|
|
2311
2453
|
shortcut: o === void 0 ? Array.isArray(d) ? d[0] : d : o,
|
|
@@ -2313,7 +2455,7 @@ var Kt = (e) => {
|
|
|
2313
2455
|
disabled: a,
|
|
2314
2456
|
componentDisabled: u?.disabled(),
|
|
2315
2457
|
...c,
|
|
2316
|
-
children:
|
|
2458
|
+
children: w("div", {
|
|
2317
2459
|
style: {
|
|
2318
2460
|
display: "flex",
|
|
2319
2461
|
flex: "1 1 0%"
|
|
@@ -2321,97 +2463,97 @@ var Kt = (e) => {
|
|
|
2321
2463
|
children: s
|
|
2322
2464
|
})
|
|
2323
2465
|
});
|
|
2324
|
-
})),
|
|
2325
|
-
function
|
|
2326
|
-
let e =
|
|
2466
|
+
})), rn = be;
|
|
2467
|
+
function an() {
|
|
2468
|
+
let e = z(null);
|
|
2327
2469
|
return {
|
|
2328
|
-
ripple:
|
|
2470
|
+
ripple: L(() => w(rn, {
|
|
2329
2471
|
ref: e,
|
|
2330
2472
|
center: !1
|
|
2331
2473
|
}), []),
|
|
2332
|
-
trigger:
|
|
2474
|
+
trigger: P(() => {
|
|
2333
2475
|
e.current?.start(void 0, { center: !0 }), setTimeout(() => e.current?.stop(), 180);
|
|
2334
2476
|
}, [])
|
|
2335
2477
|
};
|
|
2336
2478
|
}
|
|
2337
|
-
var
|
|
2338
|
-
let { commandKey: n, command: r, groupKey: i, icon: a, label: o, showLabel: s = !1, disabled: c, variant: l =
|
|
2479
|
+
var on = w(G, {}), sn = N(M((e, t) => {
|
|
2480
|
+
let { commandKey: n, command: r, groupKey: i, icon: a, label: o, showLabel: s = !1, disabled: c, variant: l = U.Toolbar, shortcut: u, commandState: d, propsTooltip: f, ...p } = e, { ripple: m, trigger: h } = an(), g = L(() => ({ onExecute() {
|
|
2339
2481
|
h();
|
|
2340
|
-
} }), [h]), [_] =
|
|
2482
|
+
} }), [h]), [_] = Z(n ?? [], g), v = r ?? _, y = P((e) => {
|
|
2341
2483
|
e.button === 0 && e.preventDefault();
|
|
2342
|
-
}, []), b =
|
|
2484
|
+
}, []), b = P(async (e) => {
|
|
2343
2485
|
e.button === 0 && v && await v.execute(d);
|
|
2344
|
-
}, [v, d]), x =
|
|
2345
|
-
e.keyCode !==
|
|
2346
|
-
}, [v, d]), S = c ?? (!v || v.disabled()), C = v?.getState(),
|
|
2347
|
-
if (a === null) return
|
|
2486
|
+
}, [v, d]), x = P((e) => {
|
|
2487
|
+
e.keyCode !== J.Enter && e.keyCode !== J.Space || v?.execute(d);
|
|
2488
|
+
}, [v, d]), S = c ?? (!v || v.disabled()), C = v?.getState(), E = L(() => {
|
|
2489
|
+
if (a === null) return on;
|
|
2348
2490
|
let e;
|
|
2349
|
-
return e = typeof a == "function" ? v ? a(v) : void 0 : a, e ||= v?.getIcon(i), e ? (typeof e == "string" && (e =
|
|
2491
|
+
return e = typeof a == "function" ? v ? a(v) : void 0 : a, e ||= v?.getIcon(i), e ? (typeof e == "string" && (e = w(G, { iconKey: e })), e) : l === U.Toolbar || C ? void 0 : on;
|
|
2350
2492
|
}, [
|
|
2351
2493
|
v,
|
|
2352
2494
|
i,
|
|
2353
2495
|
a,
|
|
2354
2496
|
C,
|
|
2355
2497
|
l
|
|
2356
|
-
]),
|
|
2498
|
+
]), D = {
|
|
2357
2499
|
tabIndex: 0,
|
|
2358
2500
|
ref: t,
|
|
2359
2501
|
selected: !!C,
|
|
2360
|
-
icon: l ===
|
|
2502
|
+
icon: l === U.Toolbar ? s ? Se(E, o ?? v?.getLabel(i)) : E : w(jt, {
|
|
2361
2503
|
selected: C ?? !1,
|
|
2362
|
-
children:
|
|
2504
|
+
children: E
|
|
2363
2505
|
}),
|
|
2364
2506
|
disableRipple: !0,
|
|
2365
2507
|
disabled: S,
|
|
2366
2508
|
onMouseDown: y,
|
|
2367
2509
|
onMouseUp: b,
|
|
2368
2510
|
onKeyDown: x
|
|
2369
|
-
},
|
|
2370
|
-
return
|
|
2511
|
+
}, O;
|
|
2512
|
+
return O = l === U.Menuitem ? T(St, {
|
|
2371
2513
|
...p,
|
|
2372
|
-
...
|
|
2514
|
+
...D,
|
|
2373
2515
|
children: [o ?? v?.getLabel(i), m]
|
|
2374
|
-
}) :
|
|
2516
|
+
}) : w(vt, {
|
|
2375
2517
|
...p,
|
|
2376
|
-
...
|
|
2518
|
+
...D,
|
|
2377
2519
|
children: m
|
|
2378
|
-
}), (o || v?.getLabel()) && (S && (
|
|
2520
|
+
}), (o || v?.getLabel()) && (S && (O = w("div", { children: O })), O = w(nn, {
|
|
2379
2521
|
commandKey: n,
|
|
2380
2522
|
command: r,
|
|
2381
2523
|
disabled: S,
|
|
2382
|
-
placement: l ===
|
|
2524
|
+
placement: l === U.Toolbar ? "bottom-start" : "right-start",
|
|
2383
2525
|
shortcut: u,
|
|
2384
2526
|
...f,
|
|
2385
|
-
children:
|
|
2386
|
-
})),
|
|
2527
|
+
children: O
|
|
2528
|
+
})), O;
|
|
2387
2529
|
}));
|
|
2388
|
-
|
|
2389
|
-
var
|
|
2390
|
-
let { commandKey: n, groupKey: r, icon: i, commandState: a, label: o, variant: s =
|
|
2391
|
-
|
|
2392
|
-
} }), [
|
|
2393
|
-
let e =
|
|
2530
|
+
sn.displayName = "CommandButton";
|
|
2531
|
+
var cn = w(G, {}), ln = N(M((e, t) => {
|
|
2532
|
+
let { commandKey: n, groupKey: r, icon: i, commandState: a, label: o, variant: s = U.Toolbar, disabled: c, parseInput: l, inputProps: u, inputRef: d, ...f } = e, { ripple: h, trigger: g } = an(), _ = L(() => ({ onExecute() {
|
|
2533
|
+
g();
|
|
2534
|
+
} }), [g]), v = Z(n ?? [], _)[0], y = () => v?.getState()?.toString() || "", [b, x] = B(""), S = z(y()), C = X(() => {
|
|
2535
|
+
let e = b;
|
|
2394
2536
|
if (l) try {
|
|
2395
|
-
e = l(
|
|
2537
|
+
e = l(b);
|
|
2396
2538
|
} catch {
|
|
2397
|
-
y(
|
|
2539
|
+
x(y());
|
|
2398
2540
|
return;
|
|
2399
2541
|
}
|
|
2400
|
-
|
|
2542
|
+
S.current === b ? x(y()) : (S.current = b, v?.execute(e));
|
|
2401
2543
|
}, [
|
|
2402
|
-
|
|
2403
|
-
g,
|
|
2544
|
+
y,
|
|
2404
2545
|
v,
|
|
2546
|
+
b,
|
|
2405
2547
|
l
|
|
2406
2548
|
]);
|
|
2407
|
-
|
|
2408
|
-
y(
|
|
2409
|
-
}, [
|
|
2410
|
-
let
|
|
2411
|
-
if (i === null) return
|
|
2549
|
+
I(() => {
|
|
2550
|
+
x(y());
|
|
2551
|
+
}, [v?.getState()]);
|
|
2552
|
+
let E = L(() => {
|
|
2553
|
+
if (i === null) return cn;
|
|
2412
2554
|
let e;
|
|
2413
|
-
return e = typeof i == "function" ?
|
|
2414
|
-
}, [
|
|
2555
|
+
return e = typeof i == "function" ? v ? i(v) : void 0 : i, e ||= v?.getIcon(), e ? (typeof e == "string" && (e = w(G, { iconKey: e })), e) : s === U.Toolbar || v?.getState() ? void 0 : cn;
|
|
2556
|
+
}, [v?.getIcon(), i]), D = L(() => o === void 0 ? v?.getLabel(r) : typeof o == "function" ? o() : o, [o, v?.getLabel(r)]), O = c ?? (!v || v.disabled()), k = L(() => w(p, {
|
|
2415
2557
|
...f,
|
|
2416
2558
|
sx: {
|
|
2417
2559
|
paddingTop: "0px",
|
|
@@ -2426,12 +2568,12 @@ var en = j(J, {}), tn = z(R((e, t) => {
|
|
|
2426
2568
|
onMouseUp: (e) => {
|
|
2427
2569
|
e.button === 0 && e.stopPropagation();
|
|
2428
2570
|
},
|
|
2429
|
-
children:
|
|
2430
|
-
disabled:
|
|
2571
|
+
children: w(m, {
|
|
2572
|
+
disabled: O,
|
|
2431
2573
|
inputRef: d,
|
|
2432
2574
|
inputProps: {
|
|
2433
2575
|
tabIndex: 0,
|
|
2434
|
-
name: `input-${
|
|
2576
|
+
name: `input-${v?.getKey()}`,
|
|
2435
2577
|
autoComplete: "off",
|
|
2436
2578
|
...u
|
|
2437
2579
|
},
|
|
@@ -2453,74 +2595,74 @@ var en = j(J, {}), tn = z(R((e, t) => {
|
|
|
2453
2595
|
},
|
|
2454
2596
|
minHeight: "24px"
|
|
2455
2597
|
},
|
|
2456
|
-
value:
|
|
2598
|
+
value: b,
|
|
2457
2599
|
onFocus: (e) => {
|
|
2458
2600
|
e.target?.select();
|
|
2459
2601
|
},
|
|
2460
2602
|
onKeyDown: (e) => {
|
|
2461
|
-
if (e.which ===
|
|
2462
|
-
else if (e.which ===
|
|
2603
|
+
if (e.which === J.Enter) y() !== b && (e.stopPropagation(), e.preventDefault(), C());
|
|
2604
|
+
else if (e.which === J.Escape) y() !== b && (x(y()), setTimeout(() => {
|
|
2463
2605
|
e.target?.select();
|
|
2464
2606
|
}, 0), e.stopPropagation(), e.preventDefault());
|
|
2465
2607
|
else {
|
|
2466
|
-
if (e.key.match("[-]") || e.key.match("[0-9.]") && (
|
|
2467
|
-
if (e.which ===
|
|
2608
|
+
if (e.key.match("[-]") || e.key.match("[0-9.]") && (b + e.key).length > 4) return e.stopPropagation(), void e.preventDefault();
|
|
2609
|
+
if (e.which === J.Space) return void e.preventDefault();
|
|
2468
2610
|
}
|
|
2469
2611
|
},
|
|
2470
2612
|
onBlur: () => {
|
|
2471
|
-
|
|
2613
|
+
C();
|
|
2472
2614
|
},
|
|
2473
2615
|
onChange: (e) => {
|
|
2474
2616
|
if (e.target.value.length > 4) return e.stopPropagation(), void e.preventDefault();
|
|
2475
|
-
|
|
2617
|
+
x(e.target.value);
|
|
2476
2618
|
}
|
|
2477
2619
|
})
|
|
2478
2620
|
}), [
|
|
2479
|
-
|
|
2480
|
-
|
|
2621
|
+
b,
|
|
2622
|
+
O,
|
|
2481
2623
|
u,
|
|
2482
2624
|
d
|
|
2483
|
-
]),
|
|
2625
|
+
]), A = {
|
|
2484
2626
|
tabIndex: 0,
|
|
2485
2627
|
ref: t,
|
|
2486
|
-
icon:
|
|
2628
|
+
icon: E,
|
|
2487
2629
|
disableRipple: !0,
|
|
2488
|
-
disabled: c || !
|
|
2630
|
+
disabled: c || !v || v.disabled(),
|
|
2489
2631
|
onMouseDown: (e) => {
|
|
2490
2632
|
e.button === 0 && e.preventDefault();
|
|
2491
2633
|
},
|
|
2492
2634
|
onMouseUp: (e) => {
|
|
2493
|
-
e.button !== 0 || e.isPropagationStopped() || e.isDefaultPrevented() || e.isDefaultPrevented() || (e.preventDefault(),
|
|
2635
|
+
e.button !== 0 || e.isPropagationStopped() || e.isDefaultPrevented() || e.isDefaultPrevented() || (e.preventDefault(), C());
|
|
2494
2636
|
},
|
|
2495
2637
|
onKeyDown: (e) => {
|
|
2496
|
-
e.keyCode !==
|
|
2638
|
+
e.keyCode !== J.Enter && e.keyCode !== J.Tab || C();
|
|
2497
2639
|
}
|
|
2498
|
-
},
|
|
2499
|
-
return
|
|
2640
|
+
}, j;
|
|
2641
|
+
return j = s === U.Menuitem ? T(St, {
|
|
2500
2642
|
...f,
|
|
2501
|
-
...
|
|
2643
|
+
...A,
|
|
2502
2644
|
children: [
|
|
2503
|
-
T,
|
|
2504
2645
|
D,
|
|
2505
|
-
|
|
2646
|
+
k,
|
|
2647
|
+
h
|
|
2506
2648
|
]
|
|
2507
|
-
}) :
|
|
2649
|
+
}) : w(vt, {
|
|
2508
2650
|
...f,
|
|
2509
|
-
...
|
|
2510
|
-
children:
|
|
2511
|
-
}),
|
|
2651
|
+
...A,
|
|
2652
|
+
children: h
|
|
2653
|
+
}), v?.getLabel() && ((v.disabled() || c) && (j = w("div", { children: j })), j = w(nn, {
|
|
2512
2654
|
commandKey: n,
|
|
2513
|
-
placement: s ===
|
|
2514
|
-
children:
|
|
2515
|
-
})),
|
|
2516
|
-
})),
|
|
2517
|
-
let { variant: r =
|
|
2655
|
+
placement: s === U.Toolbar ? "bottom-start" : "right-start",
|
|
2656
|
+
children: j
|
|
2657
|
+
})), j;
|
|
2658
|
+
})), un = N(M((t, n) => {
|
|
2659
|
+
let { variant: r = U.Toolbar, quickCommand: i, onQuickClick: a, commandState: o, disabled: s, label: c, icon: l, renderPopupPanel: u, tooltip: d, selected: f, groupKey: p, ...m } = t, { ripple: h, trigger: g } = an(), _ = L(() => ({ onExecute() {
|
|
2518
2660
|
g();
|
|
2519
|
-
} }), [g]), [v] =
|
|
2661
|
+
} }), [g]), [v] = Z(i ?? [], _), { label: y, icon: b } = L(() => {
|
|
2520
2662
|
let e = null;
|
|
2521
2663
|
c && (e = typeof c == "function" ? v ? c(v) : null : c), e ||= v?.getLabel?.(p);
|
|
2522
2664
|
let t = l;
|
|
2523
|
-
return t ||= v?.getIcon?.(p), typeof t == "string" ? t =
|
|
2665
|
+
return t ||= v?.getIcon?.(p), typeof t == "string" ? t = w(G, { iconKey: t }) : typeof t == "function" && (t = v ? t(v) : void 0), {
|
|
2524
2666
|
label: e,
|
|
2525
2667
|
icon: t
|
|
2526
2668
|
};
|
|
@@ -2536,29 +2678,29 @@ var en = j(J, {}), tn = z(R((e, t) => {
|
|
|
2536
2678
|
label: y,
|
|
2537
2679
|
icon: b
|
|
2538
2680
|
};
|
|
2539
|
-
(y || d) && (x.renderTooltip = ({ children:
|
|
2681
|
+
(y || d) && (x.renderTooltip = ({ children: t, disabled: n }) => w(e, {
|
|
2540
2682
|
label: y,
|
|
2541
2683
|
description: d,
|
|
2542
2684
|
disabled: n,
|
|
2543
|
-
children:
|
|
2685
|
+
children: t
|
|
2544
2686
|
}));
|
|
2545
|
-
let S =
|
|
2546
|
-
return v ? (x.propsQuickButton = {}, x.propsQuickButton.renderTooltip = ({ children: e, placement: t, disabled: n }) =>
|
|
2687
|
+
let S = X((e) => u?.(e), [u]), C = X((e) => v?.execute(o), [v]);
|
|
2688
|
+
return v ? (x.propsQuickButton = {}, x.propsQuickButton.renderTooltip = ({ children: e, placement: t, disabled: n }) => w(nn, {
|
|
2547
2689
|
commandKey: i,
|
|
2548
|
-
placement: t ?? r ===
|
|
2690
|
+
placement: t ?? r === U.Toolbar ? "bottom-start" : "right-start",
|
|
2549
2691
|
disabled: n,
|
|
2550
2692
|
children: e
|
|
2551
|
-
}), x.disabled = x.disabled ?? v?.disabled(), a || (x.onQuickClick = C)) : i && (x.onQuickClick = () => {}), x.selected = f ?? v?.getState(), x.renderPopupPanel = S, r ===
|
|
2693
|
+
}), x.disabled = x.disabled ?? v?.disabled(), a || (x.onQuickClick = C)) : i && (x.onQuickClick = () => {}), x.selected = f ?? v?.getState(), x.renderPopupPanel = S, r === U.Toolbar ? w(wt, {
|
|
2552
2694
|
...m,
|
|
2553
2695
|
...x,
|
|
2554
2696
|
ref: n
|
|
2555
|
-
}) :
|
|
2697
|
+
}) : w(Dt, {
|
|
2556
2698
|
...m,
|
|
2557
2699
|
...x,
|
|
2558
2700
|
ref: n
|
|
2559
2701
|
});
|
|
2560
2702
|
}));
|
|
2561
|
-
function
|
|
2703
|
+
function dn(e, t = {}) {
|
|
2562
2704
|
let { variant: n, dividerOrientation: r = "vertical", groupKey: i, commandState: a, propsCommandButton: o, propsCommandPopup: s, registry: c } = t, l = { ...o };
|
|
2563
2705
|
n !== void 0 && (l.variant = n);
|
|
2564
2706
|
let u = { ...s };
|
|
@@ -2573,10 +2715,10 @@ function rn(e, t = {}) {
|
|
|
2573
2715
|
icon: n?.getIcon?.(i),
|
|
2574
2716
|
showLabel: n?.showLabel
|
|
2575
2717
|
};
|
|
2576
|
-
return (n?.render ? n.render(r, i) :
|
|
2718
|
+
return (n?.render ? n.render(r, i) : w(sn, { ...r })) ?? null;
|
|
2577
2719
|
}, f = (e) => {
|
|
2578
2720
|
let t = typeof e == "string" ? e : e.key, n = typeof e == "string" ? void 0 : e;
|
|
2579
|
-
if (!t) return ((e) => Array.isArray(e.members) ? e.render ? e.render({ ...u }, void 0) ?? null :
|
|
2721
|
+
if (!t) return ((e) => Array.isArray(e.members) ? e.render ? e.render({ ...u }, void 0) ?? null : w(fn, {
|
|
2580
2722
|
...u,
|
|
2581
2723
|
members: e.members,
|
|
2582
2724
|
icon: e.getIcon?.(),
|
|
@@ -2585,7 +2727,7 @@ function rn(e, t = {}) {
|
|
|
2585
2727
|
}) : (e.render ? e.render({ ...u }, i) : null) ?? null)(e);
|
|
2586
2728
|
let r = c?.get(t) ?? null;
|
|
2587
2729
|
return r ? ((e, t, n) => {
|
|
2588
|
-
if (Array.isArray(e.members)) return e.render ? e.render({ ...u }, t) ?? null :
|
|
2730
|
+
if (Array.isArray(e.members)) return e.render ? e.render({ ...u }, t) ?? null : w(fn, {
|
|
2589
2731
|
...u,
|
|
2590
2732
|
groupKey: t,
|
|
2591
2733
|
icon: n?.getIcon?.(t),
|
|
@@ -2607,17 +2749,17 @@ function rn(e, t = {}) {
|
|
|
2607
2749
|
continue;
|
|
2608
2750
|
}
|
|
2609
2751
|
let n = f(t);
|
|
2610
|
-
n && (h &&= (p.push(
|
|
2752
|
+
n && (h &&= (p.push(w(Oe, { orientation: r }, "member-" + m++)), !1), p.push(A(n, { key: "member-" + m++ })), g = !0);
|
|
2611
2753
|
}
|
|
2612
2754
|
return p;
|
|
2613
2755
|
}
|
|
2614
|
-
|
|
2615
|
-
var
|
|
2616
|
-
let { groupKey: n, members: r, registry: i, quickCommand: a, icon: o, label: s, showLabel: c, tooltip: l, commandState: u, disabled: d, ...f } = e, p =
|
|
2756
|
+
un.displayName = "CommandPopupButton";
|
|
2757
|
+
var fn = N(M((e, t) => {
|
|
2758
|
+
let { groupKey: n, members: r, registry: i, quickCommand: a, icon: o, label: s, showLabel: c, tooltip: l, commandState: u, disabled: d, ...f } = e, p = de(), m = i ?? p, h = !r && n ? m.get(n) : null, g = h && Array.isArray(h.members) ? h : null, _ = L(() => r ?? (n ? m.resolveMembers(n) : null) ?? null, [
|
|
2617
2759
|
r,
|
|
2618
2760
|
n,
|
|
2619
2761
|
m
|
|
2620
|
-
]), v = n, y = a ?? g?.defaultKey, b = o ?? g?.getIcon?.(v), x = s ?? g?.getLabel?.(v), S = c ?? g?.showLabel, C = l ?? g?.getDescription?.(v),
|
|
2762
|
+
]), v = n, y = a ?? g?.defaultKey, b = o ?? g?.getIcon?.(v), x = s ?? g?.getLabel?.(v), S = c ?? g?.showLabel, C = l ?? g?.getDescription?.(v), T = L(() => {
|
|
2621
2763
|
let e = [], t = /* @__PURE__ */ new Set(), n = (r) => {
|
|
2622
2764
|
for (let i = 0; i < r.length; i++) {
|
|
2623
2765
|
let a = r[i];
|
|
@@ -2630,17 +2772,17 @@ var an = z(R((e, t) => {
|
|
|
2630
2772
|
}
|
|
2631
2773
|
};
|
|
2632
2774
|
return n(_ ?? []), e;
|
|
2633
|
-
}, [_, m]),
|
|
2634
|
-
for (let e = 0; e <
|
|
2635
|
-
let t =
|
|
2775
|
+
}, [_, m]), E = Z(y ? [y, ...T] : T), D = L(() => {
|
|
2776
|
+
for (let e = 0; e < E.length; e++) {
|
|
2777
|
+
let t = E[e];
|
|
2636
2778
|
if (t && !t.disabled()) return !1;
|
|
2637
2779
|
}
|
|
2638
2780
|
return !0;
|
|
2639
|
-
}, [
|
|
2781
|
+
}, [E]), O = P((e) => {
|
|
2640
2782
|
let t = {};
|
|
2641
2783
|
d !== void 0 && (t.disabled = d);
|
|
2642
|
-
let n =
|
|
2643
|
-
variant:
|
|
2784
|
+
let n = dn(_, {
|
|
2785
|
+
variant: U.Menuitem,
|
|
2644
2786
|
dividerOrientation: "horizontal",
|
|
2645
2787
|
groupKey: v,
|
|
2646
2788
|
commandState: u,
|
|
@@ -2648,7 +2790,7 @@ var an = z(R((e, t) => {
|
|
|
2648
2790
|
propsCommandPopup: t,
|
|
2649
2791
|
registry: m
|
|
2650
2792
|
});
|
|
2651
|
-
return
|
|
2793
|
+
return ct({
|
|
2652
2794
|
...e,
|
|
2653
2795
|
children: n
|
|
2654
2796
|
});
|
|
@@ -2659,7 +2801,7 @@ var an = z(R((e, t) => {
|
|
|
2659
2801
|
u,
|
|
2660
2802
|
d
|
|
2661
2803
|
]);
|
|
2662
|
-
return _ ?
|
|
2804
|
+
return _ ? w(un, {
|
|
2663
2805
|
ref: t,
|
|
2664
2806
|
quickCommand: y,
|
|
2665
2807
|
icon: b,
|
|
@@ -2667,23 +2809,23 @@ var an = z(R((e, t) => {
|
|
|
2667
2809
|
showLabel: S,
|
|
2668
2810
|
tooltip: C,
|
|
2669
2811
|
commandState: u,
|
|
2670
|
-
disabled: d ??
|
|
2671
|
-
renderPopupPanel:
|
|
2812
|
+
disabled: d ?? D,
|
|
2813
|
+
renderPopupPanel: O,
|
|
2672
2814
|
...f
|
|
2673
2815
|
}) : null;
|
|
2674
2816
|
}));
|
|
2675
|
-
|
|
2676
|
-
var
|
|
2677
|
-
let { commandKey: t, label: n, groupKey: r, icon: i, sx: a, ...o } = e, [s] =
|
|
2817
|
+
fn.displayName = "CommandGroup";
|
|
2818
|
+
var pn = w(G, { iconKey: "Check" }), mn = (e) => {
|
|
2819
|
+
let { commandKey: t, label: n, groupKey: r, icon: i, sx: a, ...o } = e, [s] = Z(t ?? []), c = L(() => {
|
|
2678
2820
|
if (i !== void 0) return i;
|
|
2679
2821
|
let e = s?.getIcon(r);
|
|
2680
|
-
return e ? (typeof e == "string" && (e =
|
|
2822
|
+
return e ? (typeof e == "string" && (e = w(G, { iconKey: e })), e) : pn;
|
|
2681
2823
|
}, [
|
|
2682
2824
|
i,
|
|
2683
2825
|
r,
|
|
2684
2826
|
s
|
|
2685
2827
|
]);
|
|
2686
|
-
return
|
|
2828
|
+
return T(u, {
|
|
2687
2829
|
sx: {
|
|
2688
2830
|
display: "flex",
|
|
2689
2831
|
flexDirection: "row",
|
|
@@ -2693,7 +2835,7 @@ var on = j(J, { iconKey: "Check" }), sn = (e) => {
|
|
|
2693
2835
|
...a
|
|
2694
2836
|
},
|
|
2695
2837
|
...o,
|
|
2696
|
-
children: [c,
|
|
2838
|
+
children: [c, w(b, {
|
|
2697
2839
|
component: "div",
|
|
2698
2840
|
sx: {
|
|
2699
2841
|
whiteSpace: "nowrap",
|
|
@@ -2705,41 +2847,41 @@ var on = j(J, { iconKey: "Check" }), sn = (e) => {
|
|
|
2705
2847
|
children: n ?? s?.getLabel(r)
|
|
2706
2848
|
})]
|
|
2707
2849
|
});
|
|
2708
|
-
},
|
|
2709
|
-
let { sx: n, propsCommandButton: r, parentFloat: i, groupKey: a, members: o, registry: s, renderToolbarPalette: c, children: l, ...u } = e, d =
|
|
2850
|
+
}, hn = N(M((e, t) => {
|
|
2851
|
+
let { sx: n, propsCommandButton: r, parentFloat: i, groupKey: a, members: o, registry: s, renderToolbarPalette: c, children: l, ...u } = e, d = de(), f = s ?? d, p = L(() => o ?? (a ? f.resolveMembers(a) : null) ?? null, [
|
|
2710
2852
|
o,
|
|
2711
2853
|
a,
|
|
2712
2854
|
f,
|
|
2713
2855
|
f.getVersion()
|
|
2714
|
-
]), m =
|
|
2856
|
+
]), m = me(t, () => ({}), []), [h, g] = B(null), { reference: _ } = pe({
|
|
2715
2857
|
label: "toolbar",
|
|
2716
2858
|
anchor: m.current,
|
|
2717
2859
|
parentFloat: i,
|
|
2718
2860
|
renderPopupPanel: null
|
|
2719
|
-
}), v =
|
|
2861
|
+
}), v = X(() => {
|
|
2720
2862
|
let e = h;
|
|
2721
2863
|
e && requestAnimationFrame(() => {
|
|
2722
2864
|
m.current?.contains(document.activeElement) && e.focus();
|
|
2723
2865
|
});
|
|
2724
|
-
}, [h]),
|
|
2866
|
+
}, [h]), b = L(() => ({
|
|
2725
2867
|
dense: !0,
|
|
2726
2868
|
outlined: !1
|
|
2727
|
-
}), []),
|
|
2728
|
-
...
|
|
2729
|
-
...
|
|
2730
|
-
}), [
|
|
2731
|
-
|
|
2732
|
-
let
|
|
2733
|
-
|
|
2734
|
-
let
|
|
2869
|
+
}), []), x = L(() => ({ ...r || {} }), [r]), S = L(() => ({
|
|
2870
|
+
...b,
|
|
2871
|
+
...x
|
|
2872
|
+
}), [b, x]), C = L(() => ({ ...x }), [S, r]), T = 0;
|
|
2873
|
+
b.dense || (T += 2), b.outlined && T++;
|
|
2874
|
+
let E = 2;
|
|
2875
|
+
b.dense || (E = 4);
|
|
2876
|
+
let D = L(() => {
|
|
2735
2877
|
let e = {
|
|
2736
|
-
propsCommandButton:
|
|
2878
|
+
propsCommandButton: S,
|
|
2737
2879
|
propsCommandPopup: {
|
|
2738
|
-
...
|
|
2880
|
+
...C,
|
|
2739
2881
|
...r
|
|
2740
2882
|
}
|
|
2741
2883
|
};
|
|
2742
|
-
return c ? c(e) : p ?
|
|
2884
|
+
return c ? c(e) : p ? w(Nt, { children: dn(p, {
|
|
2743
2885
|
dividerOrientation: "vertical",
|
|
2744
2886
|
groupKey: a,
|
|
2745
2887
|
propsCommandButton: e.propsCommandButton,
|
|
@@ -2747,21 +2889,21 @@ var on = j(J, { iconKey: "Check" }), sn = (e) => {
|
|
|
2747
2889
|
registry: f
|
|
2748
2890
|
}) }) : null;
|
|
2749
2891
|
}, [
|
|
2750
|
-
x,
|
|
2751
2892
|
S,
|
|
2893
|
+
C,
|
|
2752
2894
|
r,
|
|
2753
2895
|
c,
|
|
2754
2896
|
p,
|
|
2755
2897
|
a,
|
|
2756
2898
|
f
|
|
2757
2899
|
]);
|
|
2758
|
-
return
|
|
2900
|
+
return w(y, {
|
|
2759
2901
|
variant: "dense",
|
|
2760
2902
|
sx: {
|
|
2761
2903
|
minHeight: "unset",
|
|
2762
2904
|
height: "unset",
|
|
2763
|
-
paddingTop: `${
|
|
2764
|
-
paddingBottom: `${
|
|
2905
|
+
paddingTop: `${E}px`,
|
|
2906
|
+
paddingBottom: `${E}px`,
|
|
2765
2907
|
paddingLeft: "6px !important",
|
|
2766
2908
|
paddingRight: "6px !important",
|
|
2767
2909
|
flex: "1 1 0%",
|
|
@@ -2780,44 +2922,44 @@ var on = j(J, { iconKey: "Check" }), sn = (e) => {
|
|
|
2780
2922
|
h && !m?.current?.contains(e.relatedTarget) && g(null);
|
|
2781
2923
|
},
|
|
2782
2924
|
onKeyDown: (e) => {
|
|
2783
|
-
h && e.which ===
|
|
2925
|
+
h && e.which === J.Escape && h.focus();
|
|
2784
2926
|
},
|
|
2785
2927
|
...u,
|
|
2786
|
-
children:
|
|
2928
|
+
children: w("div", {
|
|
2787
2929
|
ref: m,
|
|
2788
2930
|
style: {
|
|
2789
2931
|
flex: "1 1 100%",
|
|
2790
2932
|
display: "flex",
|
|
2791
2933
|
flexWrap: "wrap",
|
|
2792
|
-
rowGap: `${
|
|
2793
|
-
columnGap: `${
|
|
2934
|
+
rowGap: `${E}px`,
|
|
2935
|
+
columnGap: `${T}px`,
|
|
2794
2936
|
alignItems: "center",
|
|
2795
2937
|
maxWidth: "100%"
|
|
2796
2938
|
},
|
|
2797
|
-
children:
|
|
2939
|
+
children: w(q, {
|
|
2798
2940
|
value: _,
|
|
2799
|
-
children:
|
|
2941
|
+
children: w(W, {
|
|
2800
2942
|
value: v,
|
|
2801
|
-
children:
|
|
2943
|
+
children: D
|
|
2802
2944
|
})
|
|
2803
2945
|
})
|
|
2804
2946
|
})
|
|
2805
2947
|
});
|
|
2806
2948
|
}));
|
|
2807
|
-
|
|
2808
|
-
var
|
|
2809
|
-
let { groupKey: n, members: r, registry: i, projectAs: a = "quick", defaultIcon: o, ...s } = e, c =
|
|
2949
|
+
hn.displayName = "CommandToolbar";
|
|
2950
|
+
var gn = N(M((e, t) => {
|
|
2951
|
+
let { groupKey: n, members: r, registry: i, projectAs: a = "quick", defaultIcon: o, ...s } = e, c = de(), l = i ?? c, u = L(() => r ?? (n ? l.resolveMembers(n) : null) ?? null, [
|
|
2810
2952
|
r,
|
|
2811
2953
|
n,
|
|
2812
2954
|
l
|
|
2813
|
-
]), d =
|
|
2955
|
+
]), d = L(() => {
|
|
2814
2956
|
let e = [], t = u ?? [];
|
|
2815
2957
|
for (let n = 0; n < t.length; n++) {
|
|
2816
2958
|
let r = t[n];
|
|
2817
2959
|
r && r !== "-" && (typeof r == "string" ? e.push(r) : r.key && e.push(r.key));
|
|
2818
2960
|
}
|
|
2819
2961
|
return e;
|
|
2820
|
-
}, [u]), f =
|
|
2962
|
+
}, [u]), f = Z(d), p = null, m = null;
|
|
2821
2963
|
for (let e = 0; !p && e < f.length; e++) {
|
|
2822
2964
|
let t = f[e];
|
|
2823
2965
|
t && !t.disabled() && t.getState() && (p = d[e], m = t.getIcon());
|
|
@@ -2829,7 +2971,7 @@ var ln = z(R((e, t) => {
|
|
|
2829
2971
|
quickCommand: p ?? d[0],
|
|
2830
2972
|
icon: void 0
|
|
2831
2973
|
};
|
|
2832
|
-
return
|
|
2974
|
+
return w(fn, {
|
|
2833
2975
|
ref: t,
|
|
2834
2976
|
groupKey: n,
|
|
2835
2977
|
members: r,
|
|
@@ -2838,5 +2980,5 @@ var ln = z(R((e, t) => {
|
|
|
2838
2980
|
...h
|
|
2839
2981
|
});
|
|
2840
2982
|
}));
|
|
2841
|
-
|
|
2842
|
-
export {
|
|
2983
|
+
gn.displayName = "ToggleGroupButton";
|
|
2984
|
+
export { Ne as AnimatedBouncingEllipsisIcon, je as AnimatedCircleIcon, Ae as AnimatedClockIcon, Me as AnimatedFadingEllipsisIcon, ze as AnimatedLoadingPanel, Pe as AnimatedOrbitIcon, Fe as AnimatedTraversingEllipsisIcon, Xe as ArrowDownIcon, Ze as ArrowRightIcon, t as ChipStrip, ot as ClosingReason, sn as CommandButton, fn as CommandGroup, un as CommandPopupButton, hn as CommandToolbar, nn as CommandTooltip, ht as ContextMenu, Oe as ExhibitDivider, ut as ExhibitFloatPanel, ft as ExhibitFloatProvider, vt as ExhibitIconButton, Ct as ExhibitMenuHeader, St as ExhibitMenuItem, Ot as ExhibitOptionButton, wt as ExhibitPopupIconButton, Dt as ExhibitPopupMenuItem, e as ExhibitTooltip, ln as InputCommandButton, o as InternalWindow, mn as LabelIcon, Ke as LazyLoadErrorPanel, bt as MenuItemInsets, Ht as ModalProvider, pt as NestingPopupButton, c as OptionsDialog, Nt as OverflowPalette, at as PopupAutoFocus, st as PopupButtonType, jt as SelectedIcon, s as SimpleTooltip, Ue as StackTrace, We as StackTraceErrorPanel, gn as ToggleGroupButton, xe as buttonLabelSx, Se as composeButtonContent, lt as createDownArrow, it as createExhibitTheme, Te as createScrollButton, Ye as createStrokeShadowFilter, ct as defaultRenderPopupPanel, we as defaultRenderScrollButtonEdge, De as defaultRenderScrollButtonEnd, Ee as defaultRenderScrollButtonStart, tt as elevateColor, Gt as getModalConfig, et as hexToRGB, Re as hideLoadingPanel, Zt as lazyModal, qe as lazyPanel, i as optionIdentity, n as registerUtilsMuiLocales, dn as renderMembers, Wt as setModalConfig, Le as showLoadingPanel, Je as strokeShadowFilter, a as toShortcutElements, tn as useInputDialog, Qt as useLazyWindow, Jt as useModal, $t as useOptionsDialog };
|