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