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