@sheetxl/utils-mui 0.8.0-beta.1 → 0.8.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,28 +1,26 @@
1
1
  /**
2
- * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.1
2
+ * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.10
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { Backdrop as e, Box as t, Button as r, Chip as o, CircularProgress as n, DialogActions as i, DialogContent as a, DialogTitle as l, Divider as s, Fade as c, IconButton as d, Input as p, LinearProgress as u, ListItemButton as m, ListItemIcon as h, Paper as f, Toolbar as g, Tooltip as x, Typography as b, Unstable_TrapFocus as y, createTheme as v, useTheme as k, useThemeProps as w } from "@mui/material";
7
+ import { Backdrop as e, Box as t, Button as o, Chip as r, CircularProgress as n, DialogActions as i, DialogContent as a, DialogTitle as l, Divider as s, Fade as c, IconButton as d, Input as p, LinearProgress as u, ListItemButton as m, ListItemIcon as h, Paper as g, Toolbar as f, Tooltip as x, Typography as b, Unstable_TrapFocus as y, createTheme as v, useTheme as w, useThemeProps as k } from "@mui/material";
8
8
  import { Fragment as C, jsx as M, jsxs as S } from "react/jsx-runtime";
9
- import { Children as T, Fragment as P, cloneElement as R, forwardRef as D, isValidElement as $, lazy as I, memo as B, useCallback as z, useEffect as N, useId as L, useLayoutEffect as O, useMemo as E, useReducer as F, useRef as K, useState as A } from "react";
10
- import W from "clsx";
11
- import { alpha as H, darken as V, lighten as q } from "@mui/system";
12
- import { CommonUtils as j, ErrorUtils as Q } from "@sheetxl/utils";
13
- import { Command as U, CommandButtonType as G, CommandFocusProvider as X, DynamicIcon as Y, FloatPopper as _, FloatProvider as J, FloatStackProvider as Z, KeyCodes as ee, KeyModifiers as te, ReactUtils as re, ScrollbarOrientation as oe, defaultCreateScrollEdgeButton as ne, floatThemeScopeProps as ie, getScrollbarCssVariables as ae, useCallbackRef as le, useCommandButtonRegistry as se, useCommands as ce, useFloat as de, useFloatStack as pe, useFloatSurface as ue, useFullscreenPortal as me, useImperativeElement as he, useTranslator as fe } from "@sheetxl/utils-react";
14
- import { mergeRefs as ge } from "react-merge-refs";
15
- import { useIsomorphicLayoutEffect as xe, useMeasure as be } from "react-use";
16
- import { deepmerge as ye } from "@mui/utils";
17
- import ve from "tiny-invariant";
18
- import ke, { useModal as we } from "mui-modal-provider";
19
- import { createPortal as Ce } from "react-dom";
20
- import Me from "react-draggable";
21
- import { primaryInput as Se } from "detect-it";
22
- import { FormProvider as Te, useForm as Pe } from "react-hook-form";
23
- import Re from "@mui/material/ButtonBase/TouchRipple";
9
+ import { Children as P, Fragment as T, Suspense as R, cloneElement as D, createContext as I, forwardRef as $, isValidElement as z, memo as B, useCallback as L, useContext as N, useEffect as O, useId as E, useLayoutEffect as F, useMemo as A, useReducer as K, useRef as W, useState as H } from "react";
10
+ import V from "clsx";
11
+ import { alpha as q, darken as j, lighten as Q } from "@mui/system";
12
+ import { CommonUtils as G, ErrorUtils as U, defineLazyModule as X } from "@sheetxl/utils";
13
+ import { Command as Y, CommandButtonType as _, CommandFocusProvider as J, DynamicIcon as Z, FloatPopper as ee, FloatProvider as te, FloatStackProvider as oe, KeyCodes as re, KeyModifiers as ne, NotifierType as ie, ReactUtils as ae, ScrollbarOrientation as le, defaultCreateScrollEdgeButton as se, floatThemeScopeProps as ce, getScrollbarCssVariables as de, lazyComponent as pe, useCallbackRef as ue, useCommandButtonRegistry as me, useCommands as he, useFloat as ge, useFloatStack as fe, useFloatSurface as xe, useFullscreenPortal as be, useImperativeElement as ye, useIsomorphicLayoutEffect as ve, useLazyRetry as we, useMeasure as ke, useTranslator as Ce, zIndexVar as Me } from "@sheetxl/utils-react";
14
+ import { useMergeRefs as Se } from "react-merge-refs";
15
+ import { deepmerge as Pe } from "@mui/utils";
16
+ import Te, { useModal as Re } from "mui-modal-provider";
17
+ import { createPortal as De } from "react-dom";
18
+ import Ie from "react-draggable";
19
+ import { primaryInput as $e } from "detect-it";
20
+ import { FormProvider as ze, useForm as Be } from "react-hook-form";
21
+ import Le from "@mui/material/ButtonBase/TouchRipple";
24
22
  export * from "mui-modal-provider";
25
- var De = {
23
+ var Ne = {
26
24
  whiteSpace: "nowrap",
27
25
  textTransform: "none",
28
26
  lineHeight: 1,
@@ -30,42 +28,46 @@ var De = {
30
28
  paddingLeft: (e) => e.spacing(.25),
31
29
  paddingRight: (e) => e.spacing(.25)
32
30
  };
33
- function $e(e, r) {
34
- const o = null != r && !1 !== r && "" !== r ? M(b, {
31
+ function Oe(e, o) {
32
+ const r = null != o && !1 !== o && "" !== o ? M(b, {
35
33
  component: "div",
36
- sx: De,
37
- children: r
34
+ sx: Ne,
35
+ children: o
38
36
  }) : null;
39
- return e && o ? S(t, {
37
+ return e && r ? S(t, {
40
38
  sx: {
41
39
  display: "flex",
42
40
  alignItems: "center"
43
41
  },
44
- children: [e, o]
45
- }) : e ?? o ?? void 0;
42
+ children: [e, r]
43
+ }) : e ?? r ?? void 0;
46
44
  }
47
- var Ie = ({ isHorizontal: e, isBefore: t }) => {
48
- const r = fe();
49
- return M(C, t ? { children: r(e ? "scroll.edgeLeft" : "scroll.edgeTop") } : { children: r(e ? "scroll.edgeRight" : "scroll.edgeBottom") });
50
- }, Be = (e) => {
51
- let t = ne({
45
+ var Ee = ({ isHorizontal: e, isBefore: t }) => {
46
+ const o = Ce();
47
+ return M(C, t ? { children: o(e ? "scroll.edgeLeft" : "scroll.edgeTop") } : { children: o(e ? "scroll.edgeRight" : "scroll.edgeBottom") });
48
+ }, Fe = (e) => {
49
+ const t = {
52
50
  style: { cursor: "pointer" },
53
51
  ...e
54
- });
55
- if (void 0 !== e.isBefore && !e.disabled) t = M(St, {
56
- title: M(Ie, {
57
- isHorizontal: e.orientation === oe.Horizontal,
58
- isBefore: e.isBefore
59
- }),
60
- enterDelay: 800,
61
- enterNextDelay: 1600,
62
- children: e.disabled ? M("div", {
63
- style: { display: "flex" },
64
- children: t
65
- }) : t
66
- });
67
- return t;
68
- }, ze = (e, t, r, o) => {
52
+ };
53
+ let o = se(t);
54
+ if (void 0 !== e.isBefore && !e.disabled) {
55
+ const t = e.orientation === le.Horizontal;
56
+ o = M(zt, {
57
+ title: M(Ee, {
58
+ isHorizontal: t,
59
+ isBefore: e.isBefore
60
+ }),
61
+ enterDelay: 800,
62
+ enterNextDelay: 1600,
63
+ children: e.disabled ? M("div", {
64
+ style: { display: "flex" },
65
+ children: o
66
+ }) : o
67
+ });
68
+ }
69
+ return o;
70
+ }, Ae = (e, t, o, r) => {
69
71
  const { style: n, ...i } = e, a = M(d, {
70
72
  component: "div",
71
73
  ...i,
@@ -75,12 +77,12 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
75
77
  },
76
78
  sx: { padding: "0" },
77
79
  color: e.disabled ? void 0 : "primary",
78
- "aria-label": r,
80
+ "aria-label": o,
79
81
  size: "small",
80
82
  children: t
81
83
  });
82
- return M(St, {
83
- title: e.disabled ? r : o,
84
+ return M(zt, {
85
+ title: e.disabled ? o : r,
84
86
  enterDelay: 800,
85
87
  enterNextDelay: 1600,
86
88
  children: e.disabled ? M("div", {
@@ -88,20 +90,20 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
88
90
  children: a
89
91
  }) : a
90
92
  });
91
- }, Ne = (e) => ze(e, oe.Horizontal ? M(Y, {
93
+ }, Ke = (e) => Ae(e, le.Horizontal ? M(Z, {
92
94
  iconKey: "ArrowLeft",
93
95
  size: "small"
94
- }) : M(Y, {
96
+ }) : M(Z, {
95
97
  iconKey: "ArrowUpward",
96
98
  size: "small"
97
- }), "Scroll " + (e.orientation === oe.Horizontal ? "Left" : "Up"), `Scroll ${e.orientation === oe.Horizontal ? "left" : "up"}, 'Ctrl+Click' to scroll to the beginning`), Le = (e) => ze(e, oe.Horizontal ? M(Y, {
99
+ }), "Scroll " + (e.orientation === le.Horizontal ? "Left" : "Up"), `Scroll ${e.orientation === le.Horizontal ? "left" : "up"}, 'Ctrl+Click' to scroll to the beginning`), We = (e) => Ae(e, le.Horizontal ? M(Z, {
98
100
  iconKey: "ArrowRight",
99
101
  size: "small"
100
- }) : M(Y, {
102
+ }) : M(Z, {
101
103
  iconKey: "ArrowDownward",
102
104
  size: "small"
103
- }), "Scroll " + (e.orientation === oe.Horizontal ? "Right" : "Down"), `Scroll ${e.orientation === oe.Horizontal ? "right" : "down"}, 'Ctrl+Click' to scroll to the end`), Oe = B(D((e, t) => {
104
- const { orientation: r = "vertical", sx: o, ...n } = e, i = "vertical" === r;
105
+ }), "Scroll " + (e.orientation === le.Horizontal ? "Right" : "Down"), `Scroll ${e.orientation === le.Horizontal ? "right" : "down"}, 'Ctrl+Click' to scroll to the end`), He = B($((e, t) => {
106
+ const { orientation: o = "vertical", sx: r, ...n } = e, i = "vertical" === o;
105
107
  return M(s, {
106
108
  ref: t,
107
109
  sx: {
@@ -111,15 +113,15 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
111
113
  minHeight: i ? "1em" : void 0,
112
114
  minWidth: i ? void 0 : "1em",
113
115
  borderColor: (e) => e.palette.divider,
114
- ...o
116
+ ...r
115
117
  },
116
- orientation: r,
118
+ orientation: o,
117
119
  variant: "middle",
118
120
  flexItem: !0,
119
121
  ...n
120
122
  });
121
- })), Ee = "_traverse-ellipsis_14l1h_1", Fe = B((e) => {
122
- const { sx: r, speed: o = 2, size: n = 70, ...i } = e;
123
+ })), Ve = "_traverse-ellipsis_14l1h_1", qe = B((e) => {
124
+ const { sx: o, speed: r = 2, size: n = 70, ...i } = e;
123
125
  return M(t, {
124
126
  sx: {
125
127
  width: `${n}px`,
@@ -129,7 +131,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
129
131
  stroke: (e) => e.palette.grey[600],
130
132
  fill: "none"
131
133
  },
132
- ...r
134
+ ...o
133
135
  },
134
136
  ...i,
135
137
  children: S("svg", {
@@ -154,7 +156,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
154
156
  y2: "50.5",
155
157
  children: M("animateTransform", {
156
158
  attributeName: "transform",
157
- dur: `${o}s`,
159
+ dur: `${r}s`,
158
160
  type: "rotate",
159
161
  from: "0 50 50",
160
162
  to: "360 50 50",
@@ -171,7 +173,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
171
173
  y2: "74",
172
174
  children: M("animateTransform", {
173
175
  attributeName: "transform",
174
- dur: 7.5 * o + "s",
176
+ dur: 7.5 * r + "s",
175
177
  type: "rotate",
176
178
  from: "0 50 50",
177
179
  to: "360 50 50",
@@ -181,8 +183,8 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
181
183
  ]
182
184
  })
183
185
  });
184
- }), Ke = B((e) => {
185
- const { sx: r, speed: o = 1.5, size: n = 70, ...i } = e;
186
+ }), je = B((e) => {
187
+ const { sx: o, speed: r = 1.5, size: n = 70, ...i } = e;
186
188
  return M(t, {
187
189
  sx: {
188
190
  width: `${n}px`,
@@ -194,7 +196,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
194
196
  fill: "none",
195
197
  opacity: .5
196
198
  },
197
- ...r
199
+ ...o
198
200
  },
199
201
  ...i,
200
202
  children: S("svg", {
@@ -213,7 +215,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
213
215
  children: M("animateTransform", {
214
216
  attributeName: "transform",
215
217
  type: "rotate",
216
- dur: 1 * o + "s",
218
+ dur: 1 * r + "s",
217
219
  from: "0 50 50",
218
220
  to: "360 50 50",
219
221
  repeatCount: "indefinite"
@@ -221,14 +223,14 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
221
223
  })]
222
224
  })
223
225
  });
224
- }), Ae = B((e) => {
225
- const { sx: r, speed: o = 1, size: n = 70, ...i } = e;
226
+ }), Qe = B((e) => {
227
+ const { sx: o, speed: r = 1, size: n = 70, ...i } = e;
226
228
  return M(t, {
227
229
  sx: {
228
230
  width: `${n}px`,
229
231
  height: `${n}px`,
230
232
  zIndex: 1,
231
- ...r
233
+ ...o
232
234
  },
233
235
  ...i,
234
236
  children: S("svg", {
@@ -243,7 +245,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
243
245
  r: "6",
244
246
  children: M("animate", {
245
247
  attributeName: "opacity",
246
- dur: `${o}s`,
248
+ dur: `${r}s`,
247
249
  values: "0;1;0",
248
250
  repeatCount: "indefinite",
249
251
  begin: "0.1"
@@ -256,7 +258,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
256
258
  r: "6",
257
259
  children: M("animate", {
258
260
  attributeName: "opacity",
259
- dur: `${o}s`,
261
+ dur: `${r}s`,
260
262
  values: "0;1;0",
261
263
  repeatCount: "indefinite",
262
264
  begin: "0.2"
@@ -269,7 +271,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
269
271
  r: "6",
270
272
  children: M("animate", {
271
273
  attributeName: "opacity",
272
- dur: `${o}s`,
274
+ dur: `${r}s`,
273
275
  values: "0;1;0",
274
276
  repeatCount: "indefinite",
275
277
  begin: "0.3"
@@ -278,8 +280,8 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
278
280
  ]
279
281
  })
280
282
  });
281
- }), We = B((e) => {
282
- const { sx: r, speed: o = 1, size: n = 70, ...i } = e;
283
+ }), Ge = B((e) => {
284
+ const { sx: o, speed: r = 1, size: n = 70, ...i } = e;
283
285
  return M(t, {
284
286
  sx: {
285
287
  width: `${n}px`,
@@ -289,7 +291,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
289
291
  fill: (e) => e.palette.grey[600],
290
292
  stroke: "none"
291
293
  },
292
- ...r
294
+ ...o
293
295
  },
294
296
  ...i,
295
297
  children: S("svg", {
@@ -304,7 +306,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
304
306
  r: "6",
305
307
  children: M("animateTransform", {
306
308
  attributeName: "transform",
307
- dur: `${o}s`,
309
+ dur: `${r}s`,
308
310
  type: "translate",
309
311
  values: "0 15 ; 0 -15; 0 15",
310
312
  repeatCount: "indefinite",
@@ -318,7 +320,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
318
320
  r: "6",
319
321
  children: M("animateTransform", {
320
322
  attributeName: "transform",
321
- dur: `${o}s`,
323
+ dur: `${r}s`,
322
324
  type: "translate",
323
325
  values: "0 10 ; 0 -10; 0 10",
324
326
  repeatCount: "indefinite",
@@ -332,7 +334,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
332
334
  r: "6",
333
335
  children: M("animateTransform", {
334
336
  attributeName: "transform",
335
- dur: `${o}s`,
337
+ dur: `${r}s`,
336
338
  type: "translate",
337
339
  values: "0 5 ; 0 -5; 0 5",
338
340
  repeatCount: "indefinite",
@@ -342,8 +344,8 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
342
344
  ]
343
345
  })
344
346
  });
345
- }), He = B((e) => {
346
- const { sx: r, speed: o = 2, size: n = 70, ...i } = e;
347
+ }), Ue = B((e) => {
348
+ const { sx: o, speed: r = 2, size: n = 70, ...i } = e;
347
349
  return M(t, {
348
350
  sx: {
349
351
  width: `${n}px`,
@@ -359,7 +361,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
359
361
  opacity: .8,
360
362
  stroke: (e) => e.palette.background.paper
361
363
  },
362
- ...r
364
+ ...o
363
365
  },
364
366
  ...i,
365
367
  children: S("svg", {
@@ -380,7 +382,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
380
382
  r: "6",
381
383
  children: M("animateTransform", {
382
384
  attributeName: "transform",
383
- dur: `${o}s`,
385
+ dur: `${r}s`,
384
386
  type: "rotate",
385
387
  from: "0 50 48",
386
388
  to: "360 50 52",
@@ -389,8 +391,8 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
389
391
  })]
390
392
  })
391
393
  });
392
- }), Ve = B((e) => {
393
- const { sx: r, speed: o = 1, size: n = 13, width: i = 64, height: a = 17, ...l } = e;
394
+ }), Xe = B((e) => {
395
+ const { sx: o, speed: r = 1, size: n = 13, width: i = 64, height: a = 17, ...l } = e;
394
396
  return S(t, {
395
397
  sx: {
396
398
  width: `${i}px`,
@@ -401,9 +403,9 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
401
403
  width: () => `${n}px`,
402
404
  height: () => `${n}px`
403
405
  },
404
- ...r
406
+ ...o
405
407
  },
406
- className: W(Ee, "animated-icon"),
408
+ className: V(Ve, "animated-icon"),
407
409
  ...l,
408
410
  children: [
409
411
  M("div", { className: "primary" }),
@@ -412,8 +414,26 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
412
414
  M("div", { className: "primary" })
413
415
  ]
414
416
  });
415
- }), qe = M(Ke, {}), je = B(D((e, r) => {
416
- const { sx: o, style: n, onMount: i, onUnmount: a, transitionDelay: l = "1200ms", panel: s = !1, transparentBackground: c = !0, icon: d = qe, label: p, progress: m = null, ...h } = e, g = E(() => "string" == typeof p ? M(b, {
417
+ }), Ye = M(je, {}), _e = (e, t) => {
418
+ if (!e) return null;
419
+ if (void 0 !== t) {
420
+ const o = e.querySelector("[data-sxl-loading-label]");
421
+ o && (o.textContent = t);
422
+ }
423
+ if (e.classList.contains("animating")) return null;
424
+ e.classList.remove("animating-idle"), e.offsetHeight, e.classList.add("animating");
425
+ const o = "function" == typeof e.getAnimations ? e.getAnimations() : null;
426
+ return 0 === o?.length ? null : new Promise((e) => {
427
+ const t = setTimeout(e, 250), r = () => {
428
+ clearTimeout(t), e();
429
+ };
430
+ o ? Promise.all(o.map((e) => e.ready)).then(r, r) : requestAnimationFrame(() => requestAnimationFrame(r));
431
+ });
432
+ }, Je = (e) => {
433
+ e && e.classList.contains("animating") && (e.classList.add("animating-idle"), e.classList.remove("animating"));
434
+ }, Ze = B($((e, o) => {
435
+ const { sx: r, style: n, onMount: i, onUnmount: a, transitionDelay: l = "1200ms", panel: s = !1, autoStart: c = !0, transparentBackground: d = !0, icon: p = Ye, label: m, progress: h = null, ...f } = e, x = A(() => "string" == typeof m || !c && null == m ? M(b, {
436
+ "data-sxl-loading-label": "",
417
437
  variant: "caption",
418
438
  component: "div",
419
439
  sx: {
@@ -421,10 +441,10 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
421
441
  lineHeight: 1.43,
422
442
  letterSpacing: "0.01071em"
423
443
  },
424
- children: p
425
- }) : p, [p]), x = E(() => {
426
- if ("number" != typeof m) return d;
427
- const e = Math.max(0, Math.min(100, Math.round(100 * m)));
444
+ children: "string" == typeof m ? m : ""
445
+ }) : m, [m, c]), y = A(() => {
446
+ if ("number" != typeof h) return p;
447
+ const e = Math.max(0, Math.min(100, Math.round(100 * h)));
428
448
  return M(t, {
429
449
  sx: {
430
450
  display: "flex",
@@ -452,7 +472,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
452
472
  }
453
473
  })
454
474
  });
455
- }, [m, d]), y = K(null), v = E(() => {
475
+ }, [h, p]), v = W(null), w = Se([v, o]), k = A(() => {
456
476
  let e = S(t, {
457
477
  sx: {
458
478
  display: "flex",
@@ -460,9 +480,9 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
460
480
  alignItems: "center",
461
481
  rowGap: "8px"
462
482
  },
463
- children: [g, x]
483
+ children: [x, y]
464
484
  });
465
- return !0 === s && (e = M(f, {
485
+ return !0 === s && (e = M(g, {
466
486
  elevation: 0,
467
487
  sx: {
468
488
  display: "flex",
@@ -481,7 +501,7 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
481
501
  borderRadius: (e) => `${e.shape.borderRadius}px`,
482
502
  boxShadow: (e) => e.shadows[2],
483
503
  "& .primary": {
484
- background: (e) => `${H(e.palette.info.contrastText, .9)} !important`,
504
+ background: (e) => `${q(e.palette.info.contrastText, .9)} !important`,
485
505
  boxShadow: (e) => `0 0 0 1px ${"dark" === e.palette.mode ? e.palette.text.secondary : e.palette.divider}`,
486
506
  boxSizing: "content-box",
487
507
  border: "solid transparent"
@@ -490,8 +510,8 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
490
510
  },
491
511
  children: e
492
512
  })), M(t, {
493
- ...h,
494
- ref: ge([y, r]),
513
+ ...f,
514
+ ref: w,
495
515
  className: "animatable",
496
516
  sx: {
497
517
  cursor: "wait",
@@ -501,7 +521,8 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
501
521
  display: "flex",
502
522
  flexDirection: "column",
503
523
  willChange: "opacity",
504
- opacity: c ? .001 : 1,
524
+ "&:not(.animating) *": { animationPlayState: "paused" },
525
+ opacity: d ? .001 : 1,
505
526
  transitionProperty: "opacity",
506
527
  transitionDelay: l,
507
528
  transitionDuration: "320ms",
@@ -514,11 +535,12 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
514
535
  minHeight: 0,
515
536
  zIndex: 99999,
516
537
  "&.animating": { opacity: 1 },
538
+ "&.animating-idle": { transition: "none" },
517
539
  "&.animating-exit": {
518
540
  opacity: 0,
519
541
  transition: "opacity 210ms"
520
542
  },
521
- ...o,
543
+ ...r,
522
544
  ...n
523
545
  },
524
546
  children: S(t, {
@@ -536,8 +558,8 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
536
558
  children: [M(t, {
537
559
  className: "backdrop",
538
560
  sx: {
539
- opacity: (e) => c ? 1.5 * e.palette.action.disabledOpacity : void 0,
540
- background: (e) => c ? void 0 : e.palette.background.paper,
561
+ opacity: (e) => d ? 1.5 * e.palette.action.disabledOpacity : void 0,
562
+ background: (e) => d ? void 0 : e.palette.background.paper,
541
563
  backdropFilter: "blur(4px)",
542
564
  borderRadius: (e) => `${e.shape.borderRadius}px`,
543
565
  zIndex: -1,
@@ -550,68 +572,56 @@ var Ie = ({ isHorizontal: e, isBefore: t }) => {
550
572
  })
551
573
  });
552
574
  }, [
553
- o,
575
+ r,
554
576
  s,
555
- g,
556
- x
557
- ]), k = K(!1), w = K(!1);
558
- return xe(() => {
559
- if (y.current && !k.current && !w.current) {
560
- if (w.current = !0, y.current.classList.contains("animatable") && !y.current.classList.contains("animating")) {
561
- let e = !1;
562
- const t = () => {
563
- w.current && (k.current = !0, w.current = !1, e = !0, i?.());
564
- };
565
- y.current && y.current.addEventListener("transitionrun", t, {
566
- once: !0,
567
- capture: !0,
568
- passive: !0
569
- }), w.current && y.current && (window.getComputedStyle(y.current, null).opacity, y.current.classList.add("animating")), setTimeout(() => {
570
- !e && w.current && y.current && (y.current?.removeEventListener("transitionrun", t), t());
571
- }, 100);
572
- } else k.current = !0, w.current = !1, i?.();
573
- return () => {};
574
- }
575
- }, [y.current]), N(() => () => {
576
- k.current && (y.current?.classList.remove("animating"), k.current = !1, w.current = !1, a?.());
577
- }, []), v;
577
+ x,
578
+ y,
579
+ w
580
+ ]), C = W(!1);
581
+ return ve(() => {
582
+ if (!1 === c) return;
583
+ const e = v.current;
584
+ e && !C.current && (C.current = !0, e.classList.contains("animatable") && !e.classList.contains("animating") && (e.offsetHeight, e.classList.add("animating")), i?.());
585
+ }, [v.current, c]), O(() => () => {
586
+ C.current && (v.current?.classList.remove("animating"), C.current = !1, a?.());
587
+ }, []), k;
578
588
  }));
579
- je.displayName = "AnimatedLoadingPanel";
580
- var Qe = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue = /^\s*at\s+(?:(async|new|await)\s+)?(.+?):(\d+):(\d+)\s*$/, Ge = (e) => {
589
+ Ze.displayName = "AnimatedLoadingPanel";
590
+ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt = /^\s*at\s+(?:(async|new|await)\s+)?(.+?):(\d+):(\d+)\s*$/, ot = (e) => {
581
591
  if (!e) return "";
582
592
  try {
583
593
  e = new URL(e).pathname;
584
594
  } catch {}
585
595
  return e = (e = e.replace(/^\/+/, "")).replace(/^@?fs[\\/]/, "");
586
- }, Xe = B(({ error: e, maxLines: r = Number.MAX_SAFE_INTEGER, hideLineNumbers: o = !1 }) => {
587
- const n = fe(), [i, a] = A(null);
596
+ }, rt = B(({ error: e, maxLines: o = Number.MAX_SAFE_INTEGER, hideLineNumbers: r = !1 }) => {
597
+ const n = Ce(), [i, a] = H(null);
588
598
  if (!e?.stack) return null;
589
- const l = Q.collectErrorChain(e).reverse(), s = [];
599
+ const l = U.collectErrorChain(e).reverse(), s = [];
590
600
  l.forEach(({ error: e }, t) => {
591
- const r = (e.stack || "").split("\n").filter(Boolean).map((e) => {
592
- let t = e.match(Qe);
601
+ const o = (e.stack || "").split("\n").filter(Boolean).map((e) => {
602
+ let t = e.match(et);
593
603
  if (t) {
594
- const [, e = "", r, o, n, i] = t;
604
+ const [, e = "", o, r, n, i] = t;
595
605
  return {
596
- line: `at ${e ? e + " " : ""}${r}`,
597
- location: `${Ge(o).split(/[\\/]/).pop()}:${n}:${i}`
606
+ line: `at ${e ? e + " " : ""}${o}`,
607
+ location: `${ot(r).split(/[\\/]/).pop()}:${n}:${i}`
598
608
  };
599
609
  }
600
- if (t = e.match(Ue), t) {
601
- const [, e = "", r, o, n] = t, i = Ge(r), a = `${i.split(/[\\/]/).pop()}:${o}:${n}`;
610
+ if (t = e.match(tt), t) {
611
+ const [, e = "", o, r, n] = t, i = ot(o), a = `${i.split(/[\\/]/).pop()}:${r}:${n}`;
602
612
  return {
603
613
  line: `at ${e ? e + " " : ""}${a}`,
604
- location: i !== a ? `${i}:${o}:${n}` : void 0
614
+ location: i !== a ? `${i}:${r}:${n}` : void 0
605
615
  };
606
616
  }
607
617
  return { line: e.trim() };
608
618
  });
609
- r.length && (s.push({
610
- line: t ? `Caused by: ${r[0].line}` : r[0].line,
619
+ o.length && (s.push({
620
+ line: t ? `Caused by: ${o[0].line}` : o[0].line,
611
621
  isBoundary: !0
612
- }), s.push(...r.slice(1)));
622
+ }), s.push(...o.slice(1)));
613
623
  });
614
- const c = r ? s.slice(0, r) : s, p = r && s.length > r;
624
+ const c = o ? s.slice(0, o) : s, p = o && s.length > o;
615
625
  return S(t, {
616
626
  sx: {
617
627
  width: "100%",
@@ -654,8 +664,8 @@ var Qe = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue
654
664
  const t = s.map((t) => {
655
665
  if (t.isBoundary) return e = 0, t.line;
656
666
  e++;
657
- let r = t.location && t.line !== t.location ? `${t.line} (${t.location})` : t.line;
658
- return e >= 1 && (r = ` ${r}`), r;
667
+ let o = t.location && t.line !== t.location ? `${t.line} (${t.location})` : t.line;
668
+ return e >= 1 && (o = ` ${o}`), o;
659
669
  }).join("\n");
660
670
  await navigator.clipboard.writeText(t), a("Copied!"), setTimeout(() => a(null), 2e3);
661
671
  } catch (e) {
@@ -668,7 +678,7 @@ var Qe = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue
668
678
  "&:hover": { opacity: 1 }
669
679
  },
670
680
  title: n("stackTrace.copy"),
671
- children: M(Y, {
681
+ children: M(Z, {
672
682
  iconKey: "ContentCopy",
673
683
  style: { fontSize: "0.875rem" }
674
684
  })
@@ -684,7 +694,7 @@ var Qe = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue
684
694
  "&:hover": { opacity: 1 }
685
695
  },
686
696
  title: n("stackTrace.log"),
687
- children: M(Y, {
697
+ children: M(Z, {
688
698
  iconKey: "BugReport",
689
699
  style: { fontSize: "0.875rem" }
690
700
  })
@@ -702,12 +712,12 @@ var Qe = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue
702
712
  fontSize: "0.75rem",
703
713
  lineHeight: 1.4
704
714
  },
705
- children: [c.map((e, r) => e.isBoundary ? M(t, {
715
+ children: [c.map((e, o) => e.isBoundary ? M(t, {
706
716
  sx: {
707
717
  py: 1,
708
- mt: r > 0 ? 1 : 0,
718
+ mt: o > 0 ? 1 : 0,
709
719
  mb: .5,
710
- borderTop: r > 0 ? "1px solid rgba(255, 255, 255, 0.1)" : "none"
720
+ borderTop: o > 0 ? "1px solid rgba(255, 255, 255, 0.1)" : "none"
711
721
  },
712
722
  children: M(b, {
713
723
  variant: "caption",
@@ -720,7 +730,7 @@ var Qe = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue
720
730
  },
721
731
  children: e.line
722
732
  })
723
- }, `error-${r}`) : S(t, {
733
+ }, `error-${o}`) : S(t, {
724
734
  sx: {
725
735
  display: "flex",
726
736
  alignItems: "flex-start",
@@ -729,7 +739,7 @@ var Qe = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue
729
739
  pl: 1,
730
740
  "&:hover": { backgroundColor: "rgba(255, 255, 255, 0.05)" }
731
741
  },
732
- children: [!o && M(b, {
742
+ children: [!r && M(b, {
733
743
  variant: "caption",
734
744
  component: "div",
735
745
  sx: {
@@ -739,7 +749,7 @@ var Qe = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue
739
749
  textAlign: "right",
740
750
  userSelect: "none"
741
751
  },
742
- children: r + 1
752
+ children: o + 1
743
753
  }), S(t, {
744
754
  sx: {
745
755
  flex: 1,
@@ -767,7 +777,7 @@ var Qe = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue
767
777
  children: e.location
768
778
  })]
769
779
  })]
770
- }, `stack-${r}`)), p && M(b, {
780
+ }, `stack-${o}`)), p && M(b, {
771
781
  variant: "caption",
772
782
  component: "div",
773
783
  sx: {
@@ -778,25 +788,25 @@ var Qe = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue
778
788
  display: "block",
779
789
  mt: 1
780
790
  },
781
- children: n("stackTrace.moreFrames", { count: s.length - r })
791
+ children: n("stackTrace.moreFrames", { count: s.length - o })
782
792
  })]
783
793
  })]
784
794
  });
785
795
  });
786
- Xe.displayName = "StackTrace";
787
- var Ye = B(D((e, r) => {
788
- const { sx: o, icon: n = M(Y, {
796
+ rt.displayName = "StackTrace";
797
+ var nt = B($((e, o) => {
798
+ const { sx: r, icon: n = M(Z, {
789
799
  iconKey: "Error",
790
800
  style: { fontSize: 48 }
791
- }), error: i, hideStackTrace: a = !1, stackTraceExpanded: l = !1, fullscreen: s = !1, ...c } = e, d = fe(), p = E(() => _e(i, a, l, s, d), [
801
+ }), error: i, hideStackTrace: a = !1, stackTraceExpanded: l = !1, fullscreen: s = !1, ...c } = e, d = Ce(), p = A(() => it(i, a, l, s, d), [
792
802
  i,
793
803
  a,
794
804
  l,
795
805
  s,
796
806
  d
797
807
  ]);
798
- return E(() => M(t, {
799
- ref: r,
808
+ return A(() => M(t, {
809
+ ref: o,
800
810
  sx: {
801
811
  boxSizing: "border-box",
802
812
  alignItems: "center",
@@ -806,7 +816,7 @@ var Ye = B(D((e, r) => {
806
816
  overflow: "hidden",
807
817
  width: "100%",
808
818
  height: "100%",
809
- ...o
819
+ ...r
810
820
  },
811
821
  ...c,
812
822
  children: S(t, {
@@ -830,7 +840,7 @@ var Ye = B(D((e, r) => {
830
840
  height: "100%",
831
841
  boxSizing: "border-box"
832
842
  }
833
- }), M(f, {
843
+ }), M(g, {
834
844
  elevation: 0,
835
845
  sx: {
836
846
  display: "flex",
@@ -869,7 +879,7 @@ var Ye = B(D((e, r) => {
869
879
  display: "flex",
870
880
  color: (e) => e.palette.error.main
871
881
  },
872
- children: "string" == typeof n ? M(Y, {
882
+ children: "string" == typeof n ? M(Z, {
873
883
  iconKey: n,
874
884
  style: { fontSize: 48 }
875
885
  }) : n
@@ -879,75 +889,106 @@ var Ye = B(D((e, r) => {
879
889
  })]
880
890
  })
881
891
  }), [
882
- o,
892
+ r,
883
893
  n,
884
894
  p
885
895
  ]);
886
896
  }));
887
- Ye.displayName = "StackTraceErrorPanel";
888
- var _e = (e, r = !1, o = !1, n = !1, i = (e) => e) => $(e) ? e : e instanceof Error ? S(t, {
889
- sx: {
890
- display: "flex",
891
- flexDirection: "column",
892
- minWidth: n ? "70vw" : "300px",
893
- maxWidth: n ? void 0 : "500px",
894
- width: "100%"
895
- },
896
- children: [
897
- M(b, {
898
- variant: "caption",
899
- component: "div",
897
+ nt.displayName = "StackTraceErrorPanel";
898
+ var it = (e, o = !1, r = !1, n = !1, i = (e) => e) => {
899
+ if (z(e)) return e;
900
+ if (e instanceof Error) return S(t, {
901
+ sx: {
902
+ display: "flex",
903
+ flexDirection: "column",
904
+ minWidth: n ? "70vw" : "300px",
905
+ maxWidth: n ? void 0 : "500px",
906
+ width: "100%"
907
+ },
908
+ children: [
909
+ M(b, {
910
+ variant: "caption",
911
+ component: "div",
912
+ sx: {
913
+ fontSize: "0.875rem",
914
+ lineHeight: 1.43,
915
+ mb: 1
916
+ },
917
+ children: e.message
918
+ }),
919
+ e.cause ? M(b, {
920
+ variant: "caption",
921
+ component: "div",
922
+ sx: {
923
+ fontSize: "0.875rem",
924
+ lineHeight: 1.43,
925
+ letterSpacing: "0.01071em",
926
+ mb: 1,
927
+ opacity: .8
928
+ },
929
+ children: i("stackTrace.causedBy", { cause: e.cause instanceof Error ? e.cause.message : String(e.cause) })
930
+ }) : null,
931
+ !o && M(rt, {
932
+ error: e,
933
+ hideLineNumbers: !0
934
+ })
935
+ ]
936
+ });
937
+ const a = "string" === e ? e : `Unknown Error: ${String(e)}`;
938
+ return M(b, {
939
+ variant: "caption",
940
+ component: "div",
941
+ sx: {
942
+ fontSize: "0.875rem",
943
+ lineHeight: 1.43,
944
+ letterSpacing: "0.01071em"
945
+ },
946
+ children: a
947
+ });
948
+ }, at = B((e) => {
949
+ const { error: r, ...n } = e, i = we(), a = Ce(), l = r instanceof Error ? r.message : String(r);
950
+ return M(nt, {
951
+ hideStackTrace: !0,
952
+ error: S(t, {
900
953
  sx: {
901
- fontSize: "0.875rem",
902
- lineHeight: 1.43,
903
- mb: 1
954
+ display: "flex",
955
+ flexDirection: "column",
956
+ alignItems: "flex-start",
957
+ gap: 1
904
958
  },
905
- children: e.message
959
+ children: [M(b, {
960
+ variant: "body2",
961
+ component: "div",
962
+ children: l
963
+ }), i ? M(o, {
964
+ variant: "outlined",
965
+ size: "small",
966
+ onClick: i,
967
+ children: a("lazyLoad.retry")
968
+ }) : null]
906
969
  }),
907
- e.cause ? M(b, {
908
- variant: "caption",
909
- component: "div",
910
- sx: {
911
- fontSize: "0.875rem",
912
- lineHeight: 1.43,
913
- letterSpacing: "0.01071em",
914
- mb: 1,
915
- opacity: .8
916
- },
917
- children: i("stackTrace.causedBy", { cause: e.cause instanceof Error ? e.cause.message : String(e.cause) })
918
- }) : null,
919
- !r && M(Xe, {
920
- error: e,
921
- hideLineNumbers: !0
922
- })
923
- ]
924
- }) : M(b, {
925
- variant: "caption",
926
- component: "div",
927
- sx: {
928
- fontSize: "0.875rem",
929
- lineHeight: 1.43,
930
- letterSpacing: "0.01071em"
931
- },
932
- children: "string" === e ? e : `Unknown Error: ${String(e)}`
933
- }), Je = B(D((e, r) => {
934
- const { chips: n, sx: i, ...a } = e, l = E(() => {
970
+ ...n
971
+ });
972
+ });
973
+ at.displayName = "LazyLoadErrorPanel";
974
+ var lt = B($((e, o) => {
975
+ const { chips: n, sx: i, ...a } = e, l = A(() => {
935
976
  if (!n) return null;
936
- const e = Array.isArray(n) ? n : [n], t = [], r = e.length;
937
- for (let n = 0; n < r; n++) {
938
- const r = e[n];
977
+ const e = Array.isArray(n) ? n : [n], t = [], o = e.length;
978
+ for (let n = 0; n < o; n++) {
979
+ const o = e[n];
939
980
  let i = null;
940
- "string" == typeof r ? i = M(o, {
941
- label: r,
981
+ "string" == typeof o ? i = M(r, {
982
+ label: o,
942
983
  color: "primary",
943
984
  size: "small",
944
985
  sx: { scale: "0.8" }
945
- }, "chip-" + n) : R(r, { key: "chip-" + n }), t.push(i);
986
+ }, "chip-" + n) : D(o, { key: "chip-" + n }), t.push(i);
946
987
  }
947
988
  return t;
948
989
  }, [n]);
949
990
  return M(t, {
950
- ref: r,
991
+ ref: o,
951
992
  sx: {
952
993
  display: "flex",
953
994
  flexDirection: "row",
@@ -958,43 +999,41 @@ var _e = (e, r = !1, o = !1, n = !1, i = (e) => e) => $(e) ? e : e instanceof Er
958
999
  ...a,
959
1000
  children: l
960
1001
  });
961
- })), Ze = (e) => {
1002
+ })), st = (e) => {
962
1003
  if ("dark" === e.palette.mode) return `drop-shadow(0px 0px 1px ${"dark" === e.palette.mode ? e.palette.text.primary : e.palette.divider})`;
963
- }, et = (e = 1) => (t) => {
1004
+ }, ct = (e = 1) => (t) => {
964
1005
  if ("dark" === t.palette.mode) return `drop-shadow(0px 0px ${e}px ${"dark" === t.palette.mode ? t.palette.text.primary : t.palette.divider})`;
965
- }, tt = (e) => M(Y, {
1006
+ }, dt = (e) => M(Z, {
966
1007
  ...e,
967
1008
  iconKey: "ArrowDownOutline"
968
- }), rt = (e) => M(Y, {
1009
+ }), pt = (e) => M(Z, {
969
1010
  ...e,
970
1011
  iconKey: "ArrowRightOutline"
971
- }), ot = /^#?([a-f\d])([a-f\d])([a-f\d])$/i, nt = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i, it = function(e, t = null) {
1012
+ }), ut = /^#?([a-f\d])([a-f\d])([a-f\d])$/i, mt = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i, ht = function(e, t = null) {
972
1013
  if (!e) return e;
973
- e = e.replace(ot, function(e, t, r, o) {
974
- return t + t + r + r + o + o;
1014
+ e = e.replace(ut, function(e, t, o, r) {
1015
+ return t + t + o + o + r + r;
975
1016
  });
976
- let r = nt.exec(e);
977
- return r ? null === t ? `rgb(${parseInt(r[1], 16)}, ${parseInt(r[2], 16)}, ${parseInt(r[3], 16)})` : `rgb(${parseInt(r[1], 16)} ${parseInt(r[2], 16)} ${parseInt(r[3], 16)} / ${100 * t}%)` : e;
978
- }, at = function(e, t = .2, r = "light") {
1017
+ let o = mt.exec(e);
1018
+ return o ? null === t ? `rgb(${parseInt(o[1], 16)}, ${parseInt(o[2], 16)}, ${parseInt(o[3], 16)})` : `rgb(${parseInt(o[1], 16)} ${parseInt(o[2], 16)} ${parseInt(o[3], 16)} / ${100 * t}%)` : e;
1019
+ }, gt = function(e, t = .2, o = "light") {
979
1020
  if (!e) return e;
980
- let o = "dark" !== r;
981
- t < 0 && (o = !o, t *= -1), e = it(e);
1021
+ let r = "dark" !== o;
1022
+ t < 0 && (r = !r, t *= -1), e = ht(e);
982
1023
  try {
983
- return o ? V(e, Math.max(0, Math.min(1, 1 * t))) : q(e, Math.max(0, Math.min(1, 1.5 * t)));
1024
+ return r ? j(e, Math.max(0, Math.min(1, 1 * t))) : Q(e, Math.max(0, Math.min(1, 1.5 * t)));
984
1025
  } catch {
985
1026
  return e;
986
1027
  }
987
- }, lt = function(e) {
988
- let t = 0;
989
- return t = e < 1 ? 5.11916 * e ** 2 : 4.5 * Math.log(e + 1) + 2, Number((t / 100).toFixed(2));
990
- }, st = (e) => (t) => {
991
- if ("dark" !== t.palette.mode) return "var(--sxl-surface-raised, none)";
992
- const r = H("#fff", lt(e));
993
- return `var(--sxl-surface-raised, linear-gradient(${r}, ${r}))`;
994
- }, ct = st(2), dt = st(8), pt = (e, t) => {
995
- let r = v({ palette: { mode: e ? "dark" : "light" } });
996
- const o = {
997
- "--icon-shadow": e ? r.palette.text.primary : r.palette.divider,
1028
+ }, ft = (e) => {
1029
+ e.stopPropagation();
1030
+ }, xt = {
1031
+ onMouseDown: ft,
1032
+ onTouchStart: ft
1033
+ }, bt = (e, t) => {
1034
+ let o = v({ palette: { mode: e ? "dark" : "light" } });
1035
+ const r = {
1036
+ "--icon-shadow": e ? o.palette.text.primary : o.palette.divider,
998
1037
  "--icon-size": "1.25rem",
999
1038
  "@media (pointer: coarse)": { "--icon-size": "1.75rem" }
1000
1039
  };
@@ -1003,16 +1042,19 @@ var _e = (e, r = !1, o = !1, n = !1, i = (e) => e) => $(e) ? e : e instanceof Er
1003
1042
  palette: {
1004
1043
  mode: e ? "dark" : "light",
1005
1044
  text: {
1006
- secondary: e ? r.palette.text.secondary : H(r.palette.text.secondary, .75),
1007
- icon: e ? H(r.palette.text.secondary, .7) : H(r.palette.text.primary, .75)
1045
+ secondary: e ? o.palette.text.secondary : q(o.palette.text.secondary, .75),
1046
+ icon: e ? q(o.palette.text.secondary, .7) : q(o.palette.text.primary, .75)
1008
1047
  }
1009
1048
  },
1010
1049
  components: {
1011
1050
  MuiDialogTitle: { styleOverrides: { root: { fontWeight: "normal" } } },
1012
1051
  MuiSelect: {
1013
1052
  defaultProps: {
1014
- IconComponent: tt,
1015
- MenuProps: { container: () => document.fullscreenElement }
1053
+ IconComponent: dt,
1054
+ MenuProps: {
1055
+ container: () => document.fullscreenElement,
1056
+ ...xt
1057
+ }
1016
1058
  },
1017
1059
  styleOverrides: { icon: { top: "unset" } }
1018
1060
  },
@@ -1038,7 +1080,10 @@ var _e = (e, r = !1, o = !1, n = !1, i = (e) => e) => $(e) ? e : e instanceof Er
1038
1080
  "&.Mui-selected": {}
1039
1081
  } } },
1040
1082
  MuiMenu: {
1041
- defaultProps: { container: () => document.fullscreenElement },
1083
+ defaultProps: {
1084
+ container: () => document.fullscreenElement,
1085
+ ...xt
1086
+ },
1042
1087
  styleOverrides: { root: {
1043
1088
  paddingTop: "2px",
1044
1089
  paddingBottom: "2px",
@@ -1068,11 +1113,11 @@ var _e = (e, r = !1, o = !1, n = !1, i = (e) => e) => $(e) ? e : e instanceof Er
1068
1113
  } } },
1069
1114
  MuiInputBase: { styleOverrides: { root: {} } },
1070
1115
  MuiPaper: { styleOverrides: { root: {
1071
- ...o,
1072
- backgroundImage: "var(--sxl-surface-raised, var(--Paper-overlay))"
1116
+ ...r,
1117
+ backgroundImage: "none"
1073
1118
  } } },
1074
1119
  MuiPopover: { styleOverrides: { paper: {
1075
- backgroundColor: `var(--sxl-color-elevated, var(--sxl-color-base-100, ${r.palette.background.paper}))`,
1120
+ backgroundColor: `var(--sxl-color-elevated, var(--sxl-color-base-100, ${o.palette.background.paper}))`,
1076
1121
  border: "1px solid var(--sxl-color-elevated-border, transparent)"
1077
1122
  } } },
1078
1123
  MuiPopper: { styleOverrides: { root: { "& .menu": {
@@ -1084,29 +1129,29 @@ var _e = (e, r = !1, o = !1, n = !1, i = (e) => e) => $(e) ? e : e instanceof Er
1084
1129
  automatic: {
1085
1130
  transition: "opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
1086
1131
  color: function() {
1087
- return r.palette.text.secondary;
1132
+ return o.palette.text.secondary;
1088
1133
  }
1089
1134
  },
1090
1135
  dirty: {
1091
1136
  fontStyle: "italic",
1092
1137
  color: function() {
1093
- return r.palette.text.secondary;
1138
+ return o.palette.text.secondary;
1094
1139
  }
1095
1140
  }
1096
1141
  } }
1097
1142
  }
1098
1143
  }, i = n;
1099
- return t && (i = ye(n, t)), v(i);
1144
+ return t && (i = Pe(n, t)), v(i);
1100
1145
  };
1101
- function ut(e, t) {
1102
- return t = ye({
1103
- track: at(e.palette.background.paper, .05, e?.palette.mode),
1104
- thumb: at(e.palette.background.paper, .3, e?.palette.mode),
1146
+ function yt(e, t) {
1147
+ return t = Pe({
1148
+ track: gt(e.palette.background.paper, .05, e?.palette.mode),
1149
+ thumb: gt(e.palette.background.paper, .3, e?.palette.mode),
1105
1150
  active: e.palette.primary.main,
1106
1151
  corner: e.palette.background.paper,
1107
1152
  outline: !1
1108
- }, t || {}), ae({
1109
- track: H(t.track, .2),
1153
+ }, t || {}), de({
1154
+ track: q(t.track, .2),
1110
1155
  thumb: t.thumb,
1111
1156
  button: t.button,
1112
1157
  active: t.active,
@@ -1114,10 +1159,10 @@ function ut(e, t) {
1114
1159
  border: t.track
1115
1160
  });
1116
1161
  }
1117
- function mt(e, t) {
1118
- const r = ut(e, t), o = {
1119
- ...r,
1120
- "& .scrollbar, & .vsb-track, & .vsb-thumb": { ...r },
1162
+ function vt(e, t) {
1163
+ const o = yt(e, t), r = {
1164
+ ...o,
1165
+ "& .scrollbar, & .vsb-track, & .vsb-thumb": { ...o },
1121
1166
  "&::-webkit-scrollbar, & *::-webkit-scrollbar": {
1122
1167
  backgroundColor: "var(--scrollbar-track-color)",
1123
1168
  width: "var(--scrollbar-width)",
@@ -1156,22 +1201,22 @@ function mt(e, t) {
1156
1201
  },
1157
1202
  "&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner": { backgroundColor: "var(--scrollbar-corner-color)" }
1158
1203
  };
1159
- return j.getPlatform() === j.OSType.Firefox && (o["* .pseudo-scrollbar"] = { scrollbarColor: "var(--scrollbar-thumb-color) transparent" }, o["* .pseudo-scrollbar:hover:not([disabled])"] = { scrollbarColor: "var(--scrollbar-active-color) transparent" }), o;
1204
+ return G.getPlatform() === G.OSType.Firefox && (r["* .pseudo-scrollbar"] = { scrollbarColor: "var(--scrollbar-thumb-color) transparent" }, r["* .pseudo-scrollbar:hover:not([disabled])"] = { scrollbarColor: "var(--scrollbar-active-color) transparent" }), r;
1160
1205
  }
1161
- var ht = {
1206
+ var wt = {
1162
1207
  Popup: "popup",
1163
1208
  Anchor: "anchor"
1164
- }, ft = {
1209
+ }, kt = {
1165
1210
  ByPopup: "popupDone",
1166
1211
  Cancel: "popupCancel",
1167
1212
  ClickAway: "clickAway"
1168
- }, gt = {
1213
+ }, Ct = {
1169
1214
  Toolbar: "toolbar",
1170
1215
  Menuitem: "menuitem"
1171
- }, xt = (e) => {
1172
- const { closeFloat: r, closeFloatAll: o, floatReference: n, popupContainer: i, children: a, className: l, sx: s, ...c } = e;
1216
+ }, Mt = (e) => {
1217
+ const { closeFloat: o, closeFloatAll: r, floatReference: n, popupContainer: i, children: a, className: l, sx: s, ...c } = e;
1173
1218
  return M(t, {
1174
- className: W("menu", l),
1219
+ className: V("menu", l),
1175
1220
  sx: {
1176
1221
  display: "flex",
1177
1222
  flexDirection: "column",
@@ -1182,27 +1227,27 @@ var ht = {
1182
1227
  ...c,
1183
1228
  children: a
1184
1229
  });
1185
- }, bt = (e, t, r) => {
1186
- let o = "";
1187
- return r && (o = (o ? o + " " : "") + "rotate(180deg)"), M(tt, {
1230
+ }, St = (e, t, o) => {
1231
+ let r = "";
1232
+ return o && (r = (r ? r + " " : "") + "rotate(180deg)"), M(dt, {
1188
1233
  style: {
1189
1234
  marginLeft: e ? void 0 : t ? "-0.25rem" : "-3px",
1190
1235
  marginRight: e ? void 0 : t ? "-0.25rem" : "-6px",
1191
- transform: o
1236
+ transform: r
1192
1237
  },
1193
1238
  color: "inherit"
1194
1239
  });
1195
- }, yt = B(D((e, t) => {
1196
- const { open: r, anchorEl: o, anchorPosition: n, label: i, floatReference: a, createPopupPanel: l = xt, propsPopper: s, onMount: c, onClosing: d, onClose: p, onOpening: u, onOpen: m, children: h, sx: g, ...x } = e, b = le(d ?? (() => {}), [d]), y = le(p ?? (() => {}), [p]), v = le(u ?? (() => {}), [u]), k = le(m ?? (() => {}), [m]), [w, C] = A(), S = K(null), T = le((e, t) => {
1240
+ }, Pt = B($((e, t) => {
1241
+ const { open: o, anchorEl: r, anchorPosition: n, label: i, floatReference: a, createPopupPanel: l = Mt, propsPopper: s, onMount: c, onClosing: d, onClose: p, onOpening: u, onOpen: m, children: h, sx: f, ...x } = e, b = ue(d ?? (() => {}), [d]), y = ue(p ?? (() => {}), [p]), v = ue(u ?? (() => {}), [u]), w = ue(m ?? (() => {}), [m]), [k, C] = H(), S = W(null), P = ue((e, t) => {
1197
1242
  C(e), c?.(S.current, t);
1198
- }, [c]), P = E(() => {
1243
+ }, [c]), T = A(() => {
1199
1244
  const e = {
1200
- popupContainer: w,
1245
+ popupContainer: k,
1201
1246
  floatReference: a,
1202
1247
  children: h,
1203
1248
  ...x
1204
1249
  }, t = l(e);
1205
- return M(f, {
1250
+ return M(g, {
1206
1251
  elevation: 8,
1207
1252
  ref: S,
1208
1253
  sx: {
@@ -1212,7 +1257,7 @@ var ht = {
1212
1257
  outline: "none",
1213
1258
  backgroundColor: "var(--sxl-color-elevated, var(--sxl-color-base-100, #fff))",
1214
1259
  border: "1px solid var(--sxl-color-elevated-border, transparent)",
1215
- "&.MuiPaper-root": (e) => mt(e)
1260
+ "&.MuiPaper-root": (e) => vt(e)
1216
1261
  },
1217
1262
  tabIndex: 0,
1218
1263
  children: t
@@ -1220,44 +1265,44 @@ var ht = {
1220
1265
  }, [
1221
1266
  l,
1222
1267
  h,
1223
- w,
1268
+ k,
1224
1269
  a
1225
1270
  ]);
1226
- return M(_, {
1271
+ return M(ee, {
1227
1272
  ref: t,
1228
- anchorEl: o,
1273
+ anchorEl: r,
1229
1274
  anchorPosition: n,
1230
1275
  label: i,
1231
- open: r,
1232
- onMount: T,
1276
+ open: o,
1277
+ onMount: P,
1233
1278
  onOpening: v,
1234
- onOpen: k,
1279
+ onOpen: w,
1235
1280
  onClosing: b,
1236
1281
  onClose: y,
1237
1282
  ...s,
1238
- children: P
1283
+ children: T
1239
1284
  });
1240
1285
  }));
1241
- yt.displayName = "ExhibitFloatPanel";
1242
- var vt = (e) => M(yt, { ...e }), kt = (e) => M(J, {
1243
- renderFloatPanel: vt,
1244
- createPopupPanel: xt,
1286
+ Pt.displayName = "ExhibitFloatPanel";
1287
+ var Tt = (e) => M(Pt, { ...e }), Rt = (e) => M(te, {
1288
+ renderFloatPanel: Tt,
1289
+ createPopupPanel: Mt,
1245
1290
  ...e
1246
- }), wt = B(D((e, r) => {
1247
- const { nestedChildren: o, variant: n, disabled: i, createPopupPanel: a, ...l } = e, s = {
1291
+ }), Dt = B($((e, o) => {
1292
+ const { nestedChildren: r, variant: n, disabled: i, createPopupPanel: a, ...l } = e, s = {
1248
1293
  disabled: i,
1249
- createPopupPanel: le((e) => {
1250
- if (!o || 0 === o.length) return M(C, {});
1294
+ createPopupPanel: ue((e) => {
1295
+ if (!r || 0 === r.length) return M(C, {});
1251
1296
  const { popupContainer: n, floatReference: i, ref: a, ...l } = e, s = [];
1252
- for (let e = 0; e < o.length; e++) {
1253
- const t = o[e];
1254
- t && s.push(M(wt, {
1297
+ for (let e = 0; e < r.length; e++) {
1298
+ const t = r[e];
1299
+ t && s.push(M(Dt, {
1255
1300
  ...l,
1256
1301
  ...t
1257
1302
  }, e));
1258
1303
  }
1259
1304
  return S(t, {
1260
- ref: r,
1305
+ ref: o,
1261
1306
  sx: {
1262
1307
  display: "flex",
1263
1308
  flexDirection: "column",
@@ -1267,23 +1312,23 @@ var vt = (e) => M(yt, { ...e }), kt = (e) => M(J, {
1267
1312
  children: [
1268
1313
  "Children here",
1269
1314
  s,
1270
- M(Nt, { children: "Close other children" })
1315
+ M(Ht, { children: "Close other children" })
1271
1316
  ]
1272
1317
  });
1273
- }, [o]),
1318
+ }, [r]),
1274
1319
  ...l
1275
1320
  };
1276
- return M(n === gt.Toolbar ? Ot : Kt, { ...s });
1277
- })), Ct = { placement: "right-start" }, Mt = B(D((e, t) => {
1278
- const { children: r, sx: o, parentFloat: n, createPopupPanel: i, propsPopper: a = Ct, label: l, ...s } = e;
1279
- ve($(r), "Must supply a child component to enable a context menu.");
1280
- const c = r, d = E(() => ({
1321
+ return M(n === Ct.Toolbar ? qt : Gt, { ...s });
1322
+ })), It = { placement: "right-start" }, $t = B($((e, t) => {
1323
+ const { children: o, sx: r, parentFloat: n, createPopupPanel: i, propsPopper: a = It, label: l, ...s } = e;
1324
+ if (!z(o)) throw new Error("Must supply a child component to enable a context menu.");
1325
+ const c = o, d = A(() => ({
1281
1326
  ...c?.props,
1282
1327
  ...s,
1283
1328
  onContextMenu: (e) => {
1284
1329
  c?.props?.onContextMenu?.(e), e.isDefaultPrevented() || (s?.onContextMenu?.(e), e.isDefaultPrevented() || (m(e), e.preventDefault()));
1285
1330
  }
1286
- }), [s, c?.props]), p = le(i ?? (() => {}), [i]), [u, m] = A(null), { reference: h, component: f } = pe({
1331
+ }), [s, c?.props]), p = ue(i ?? (() => {}), [i]), [u, m] = H(null), { reference: h, component: g } = fe({
1287
1332
  label: l ?? "contextMenu",
1288
1333
  propsPopper: a,
1289
1334
  parentFloat: n,
@@ -1291,26 +1336,26 @@ var vt = (e) => M(yt, { ...e }), kt = (e) => M(J, {
1291
1336
  onClose: () => m(null),
1292
1337
  createPopupPanel: p
1293
1338
  });
1294
- return N(() => {
1339
+ return O(() => {
1295
1340
  u ? h.open(0) : h.close(0);
1296
- }, [u]), S(C, { children: [R(r, d), f] });
1297
- })), St = D((e, t) => {
1298
- const { slotProps: r, ...o } = e, { getPortalContainer: n, isFullscreen: i } = me();
1341
+ }, [u]), S(C, { children: [D(o, d), g] });
1342
+ })), zt = $((e, t) => {
1343
+ const { slotProps: o, ...r } = e, { getPortalContainer: n, isFullscreen: i } = be();
1299
1344
  return M(x, {
1300
1345
  ref: t,
1301
1346
  slotProps: {
1302
- ...r,
1347
+ ...o,
1303
1348
  popper: {
1304
1349
  container: i ? n : void 0,
1305
- ...r?.popper || {}
1350
+ ...o?.popper || {}
1306
1351
  }
1307
1352
  },
1308
- ...o
1353
+ ...r
1309
1354
  });
1310
1355
  });
1311
- St.displayName = "SimpleTooltip";
1312
- var Tt = B((e) => {
1313
- const { modifier: r, sx: o, ...n } = e;
1356
+ zt.displayName = "SimpleTooltip";
1357
+ var Bt = B((e) => {
1358
+ const { modifier: o, sx: r, ...n } = e;
1314
1359
  return M(t, {
1315
1360
  sx: {
1316
1361
  marginLeft: "1px",
@@ -1321,11 +1366,11 @@ var Tt = B((e) => {
1321
1366
  borderLeftWidth: "1px",
1322
1367
  borderRightWidth: "1px",
1323
1368
  borderBottomWidth: "2px",
1324
- borderTopColor: (e) => H(e.palette.background.paper, e.palette.action.disabledOpacity),
1325
- borderLeftColor: (e) => H(e.palette.background.paper, e.palette.action.disabledOpacity),
1326
- borderRightColor: (e) => H(e.palette.background.paper, e.palette.action.disabledOpacity),
1327
- borderBottomColor: (e) => H(e.palette.background.paper, 1 - e.palette.action.disabledOpacity),
1328
- backgroundColor: (e) => H(e.palette.action.hover, e.palette.action.disabledOpacity),
1369
+ borderTopColor: (e) => q(e.palette.background.paper, e.palette.action.disabledOpacity),
1370
+ borderLeftColor: (e) => q(e.palette.background.paper, e.palette.action.disabledOpacity),
1371
+ borderRightColor: (e) => q(e.palette.background.paper, e.palette.action.disabledOpacity),
1372
+ borderBottomColor: (e) => q(e.palette.background.paper, 1 - e.palette.action.disabledOpacity),
1373
+ backgroundColor: (e) => q(e.palette.action.hover, e.palette.action.disabledOpacity),
1329
1374
  paddingLeft: "4px",
1330
1375
  paddingRight: "4px",
1331
1376
  minHeight: "1.6em",
@@ -1334,7 +1379,7 @@ var Tt = B((e) => {
1334
1379
  alignItems: "center",
1335
1380
  boxSizing: "content-box",
1336
1381
  overflow: "hidden",
1337
- ...o
1382
+ ...r
1338
1383
  },
1339
1384
  ...n,
1340
1385
  children: M(t, {
@@ -1345,13 +1390,13 @@ var Tt = B((e) => {
1345
1390
  textAlign: "center",
1346
1391
  "& *": { fontWeight: "500" }
1347
1392
  },
1348
- children: r
1393
+ children: o
1349
1394
  })
1350
1395
  });
1351
- }), Pt = (e, r, o = !1, n = null) => {
1396
+ }), Lt = (e, o, r = !1, n = null) => {
1352
1397
  if (Array.isArray(e)) {
1353
1398
  let i = [], a = e;
1354
- for (let e = 0; e < a.length; e++) i.push(Pt(a[e], r, o, n ?? "" + e));
1399
+ for (let e = 0; e < a.length; e++) i.push(Lt(a[e], o, r, n ?? "" + e));
1355
1400
  return M(t, {
1356
1401
  sx: {
1357
1402
  display: "flex",
@@ -1364,34 +1409,36 @@ var Tt = B((e) => {
1364
1409
  if (!e?.key) return null;
1365
1410
  const i = {};
1366
1411
  for (let t = 0; e.modifiers && t < e.modifiers.length; t++) i[e.modifiers[t]] = !0;
1367
- const a = [], l = j.getPlatform() === j.OSType.MacOS || j.getPlatform() === j.OSType.IOS ? r("shortcut.modifier.cmd") : r("shortcut.modifier.ctrl");
1368
- return i?.[te.Ctrl] && (a.push(M(Tt, { modifier: o ? "^" : M("div", {
1412
+ const a = [], l = G.getPlatform() === G.OSType.MacOS || G.getPlatform() === G.OSType.IOS ? o("shortcut.modifier.cmd") : o("shortcut.modifier.ctrl");
1413
+ return i?.[ne.Ctrl] && (a.push(M(Bt, { modifier: r ? "^" : M("div", {
1369
1414
  style: { paddingRight: "1px" },
1370
1415
  children: l
1371
- }) }, "ctrl")), a.push("+")), i?.[te.Alt] && (a.push(M(Tt, { modifier: o ? "⌥" : r("shortcut.modifier.alt") }, "alt")), a.push("+")), i?.[te.Shift] && (a.push(M(Tt, { modifier: o ? "⇧" : M("div", {
1416
+ }) }, "ctrl")), a.push("+")), i?.[ne.Alt] && (a.push(M(Bt, { modifier: r ? "⌥" : o("shortcut.modifier.alt") }, "alt")), a.push("+")), i?.[ne.Shift] && (a.push(M(Bt, { modifier: r ? "⇧" : M("div", {
1372
1417
  style: { paddingRight: "1px" },
1373
- children: r("shortcut.modifier.shift")
1374
- }) }, "shift")), a.push("+")), i?.[te.Meta] && (a.push(M(Tt, { modifier: o ? M("div", {
1418
+ children: o("shortcut.modifier.shift")
1419
+ }) }, "shift")), a.push("+")), i?.[ne.Meta] && (a.push(M(Bt, { modifier: r ? M("div", {
1375
1420
  style: { paddingTop: "1px" },
1376
1421
  children: "⌘"
1377
- }) : r("shortcut.modifier.meta") }, "meta")), a.push("+")), a.push(M(Tt, { modifier: re.toPrettyKeyCode(e.key) }, "character")), M(t, {
1422
+ }) : o("shortcut.modifier.meta") }, "meta")), a.push("+")), a.push(M(Bt, { modifier: ae.toPrettyKeyCode(e.key) }, "character")), M(t, {
1378
1423
  sx: {
1379
1424
  display: "flex",
1380
- alignItems: "center"
1425
+ alignItems: "center",
1426
+ flexShrink: 0,
1427
+ whiteSpace: "nowrap"
1381
1428
  },
1382
1429
  children: a
1383
1430
  }, n);
1384
- }, Rt = B(D((e, r) => {
1385
- const { disabled: o = !1, label: n, shortcut: i, chips: a, description: l, maxWidth: s = 280, useModifierSymbols: c = !1, children: d, simple: p, componentDisabled: u = !1, sx: m, ...h } = e, f = fe();
1386
- let g = null;
1387
- i && (g = Pt(i, f, c));
1388
- const [x, y] = A(null);
1389
- N(() => {
1431
+ }, Nt = B($((e, o) => {
1432
+ const { disabled: r = !1, label: n, shortcut: i, chips: a, description: l, maxWidth: s = 280, useModifierSymbols: c = !1, children: d, simple: p, componentDisabled: u = !1, sx: m, ...h } = e, g = Ce();
1433
+ let f = null;
1434
+ i && (f = Lt(i, g, c));
1435
+ const [x, y] = H(null);
1436
+ O(() => {
1390
1437
  Promise.resolve(n).then((e) => {
1391
1438
  y(e);
1392
1439
  });
1393
1440
  }, [n]);
1394
- return M(St, {
1441
+ return M(zt, {
1395
1442
  slotProps: { popper: {
1396
1443
  sx: {
1397
1444
  "& .MuiTooltip-tooltip": { marginTop: "0px !important" },
@@ -1404,9 +1451,9 @@ var Tt = B((e) => {
1404
1451
  } },
1405
1452
  className: "tooltip-wrapper",
1406
1453
  tabIndex: -1,
1407
- title: !o && x ? S(t, {
1454
+ title: !r && x ? S(t, {
1408
1455
  sx: { maxWidth: `${s}px` },
1409
- ref: r,
1456
+ ref: o,
1410
1457
  children: [S(t, {
1411
1458
  sx: {
1412
1459
  display: "flex",
@@ -1420,9 +1467,9 @@ var Tt = B((e) => {
1420
1467
  sx: { flex: "1 1 100%" },
1421
1468
  children: x
1422
1469
  }),
1423
- a ? M(Je, { chips: a }) : null,
1424
- g ? M(t, { sx: { marginLeft: "8px" } }, "leadingSpace") : M(C, {}),
1425
- g
1470
+ a ? M(lt, { chips: a }) : null,
1471
+ f ? M(t, { sx: { marginLeft: "8px" } }, "leadingSpace") : M(C, {}),
1472
+ f
1426
1473
  ]
1427
1474
  }), l ? M(b, {
1428
1475
  variant: "caption",
@@ -1447,16 +1494,16 @@ var Tt = B((e) => {
1447
1494
  children: d
1448
1495
  })
1449
1496
  });
1450
- })), Dt = M(Y, {}), $t = M(Y, { iconKey: "Check" }), It = B(D((e, r) => {
1451
- const { dense: o = !0, outlined: n = !1, disableHover: i = !1, selected: a, icon: l, propsTooltip: s, children: c, primary: p, sx: u, disabled: m, className: h, onFocus: f, onBlur: g, ...x } = e, [b, y] = A(!1), v = {
1497
+ })), Ot = M(Z, {}), Et = M(Z, { iconKey: "Check" }), Ft = B($((e, o) => {
1498
+ const { dense: r = !0, outlined: n = !1, disableHover: i = !1, selected: a, icon: l, propsTooltip: s, children: c, primary: p, sx: u, disabled: m, className: h, onFocus: g, onBlur: f, ...x } = e, [b, y] = H(!1), v = {
1452
1499
  marginRight: "0px",
1453
- padding: o ? "2px" : "7px",
1500
+ padding: r ? "2px" : "7px",
1454
1501
  borderRadius: (e) => `${e.shape.borderRadius}px`,
1455
1502
  color: (e) => p ? void 0 : e.palette.text.icon ?? e.palette.action.active,
1456
1503
  border: (e) => `solid ${n ? e.palette.divider : "transparent"} 1px`,
1457
1504
  "& .MuiTouchRipple-child": { borderRadius: (e) => `${e.shape.borderRadius}px !important` },
1458
1505
  "&.Mui-selected": {
1459
- backgroundColor: (e) => H(e.palette.text.primary, e.palette.action.selectedOpacity),
1506
+ backgroundColor: (e) => q(e.palette.text.primary, e.palette.action.selectedOpacity),
1460
1507
  border: (e) => `solid ${n ? e.palette.text?.primary : e.palette.divider} 1px`
1461
1508
  },
1462
1509
  "&.Mui-disabled": { border: (e) => `solid ${n ? e.palette.divider : "transparent"} 1px` },
@@ -1469,13 +1516,14 @@ var Tt = B((e) => {
1469
1516
  border: "1px solid transparent"
1470
1517
  },
1471
1518
  ...u
1472
- }, k = {
1519
+ }, w = {
1473
1520
  "&:hover:not(.Mui-disabled, [disabled])": {
1474
1521
  color: (e) => e.palette.text.primary,
1475
1522
  border: (e) => `solid ${n ? e.palette.text?.primary : e.palette.divider} 1px`,
1476
- "&.Mui-selected": { backgroundColor: (e) => H(e.palette.text.primary, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity) },
1523
+ "&.Mui-selected": { backgroundColor: (e) => q(e.palette.text.primary, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity) },
1477
1524
  "> .outline-hover": { outline: (e) => `solid ${n ? e.palette.text?.primary : e.palette.divider} 1px` },
1478
- backgroundColor: null
1525
+ backgroundColor: (e) => q(e.palette.action.active, e.palette.action.hoverOpacity),
1526
+ "@media (hover: none)": { backgroundColor: "transparent" }
1479
1527
  },
1480
1528
  "&.Mui-focusVisible": {
1481
1529
  outline: (e) => `solid ${e.palette.primary.main} 1px`,
@@ -1483,60 +1531,65 @@ var Tt = B((e) => {
1483
1531
  zIndex: 1
1484
1532
  }
1485
1533
  };
1486
- let w = v;
1487
- i || (w = j.mergeContentful(v, k));
1488
- const C = E(() => {
1534
+ let k = v;
1535
+ i || (k = G.mergeContentful(v, w));
1536
+ const C = A(() => {
1489
1537
  let e = "function" == typeof l ? l() : l;
1490
- return null === e ? e : e || (void 0 === a ? Dt : $t);
1538
+ return null === e ? e : e || (void 0 === a ? Ot : Et);
1491
1539
  }, [l, a]);
1492
- let T = S(d, {
1540
+ let P = S(d, {
1493
1541
  component: "div",
1494
- ref: r,
1495
- className: W({
1542
+ ref: o,
1543
+ className: V({
1496
1544
  "Mui-focusVisible": b,
1497
1545
  "Mui-selected": a,
1498
1546
  "Mui-disabled": m
1499
1547
  }, h),
1500
1548
  onFocus: (e) => {
1501
- y(!0), f?.(e);
1549
+ y(!0), g?.(e);
1502
1550
  },
1503
1551
  onBlur: (e) => {
1504
- y(!1), g?.(e);
1552
+ y(!1), f?.(e);
1505
1553
  },
1506
1554
  size: "small",
1507
1555
  TouchRippleProps: { center: !1 },
1508
- sx: w,
1556
+ sx: k,
1509
1557
  edge: "end",
1510
1558
  ...x,
1511
1559
  disabled: m || !1,
1512
1560
  children: [C, c]
1513
1561
  });
1514
1562
  if (s) if (s.simple && s.label && !s.disabled) {
1515
- const { label: e, description: r, maxWidth: o, shortcut: n, useModifierSymbols: i, componentDisabled: a, simple: l, chips: c, ref: d, ...p } = s;
1516
- T = M(St, {
1563
+ const { label: e, description: o, maxWidth: r, shortcut: n, useModifierSymbols: i, componentDisabled: a, simple: l, chips: c, ref: d, ...p } = s;
1564
+ P = M(zt, {
1517
1565
  disableInteractive: !0,
1518
1566
  title: e ?? "",
1519
1567
  ...p,
1520
1568
  children: M(t, {
1521
1569
  sx: { display: "flex" },
1522
- children: T
1570
+ children: P
1523
1571
  })
1524
1572
  });
1525
- } else T = M(Rt, {
1526
- children: T,
1573
+ } else P = M(Nt, {
1574
+ children: P,
1527
1575
  ...s
1528
1576
  });
1529
- return T;
1530
- })), Bt = M(Y, {}), zt = (e) => e.icon, Nt = B(D((e, t) => {
1531
- const { icon: r = Bt, renderIcon: o = zt, className: n, onFocus: i, selected: a, onBlur: l, onMouseOver: s, onMouseOut: c, onMouseEnter: d, disabled: p, children: u, sx: f, propsTooltip: g, chips: x, primary: b, ...y } = e, v = de(), [k, w] = A(!1), [C, T] = A(!1), P = E(() => {
1532
- const e = o?.({
1533
- icon: r,
1577
+ return P;
1578
+ })), At = M(Z, {}), Kt = {
1579
+ marginLeft: "4px",
1580
+ marginRight: "4px",
1581
+ paddingLeft: "6px",
1582
+ paddingRight: "18px"
1583
+ }, Wt = (e) => e.icon, Ht = B($((e, t) => {
1584
+ const { icon: o = At, renderIcon: r = Wt, className: n, onFocus: i, selected: a, onBlur: l, onMouseOver: s, onMouseOut: c, onMouseEnter: d, disabled: p, children: u, sx: g, propsTooltip: f, chips: x, primary: b, ...y } = e, v = ge(), [w, k] = H(!1), [C, P] = H(!1), T = A(() => {
1585
+ const e = r?.({
1586
+ icon: o,
1534
1587
  disabled: p,
1535
1588
  selected: a
1536
1589
  });
1537
1590
  return e ? M(h, {
1538
- className: W({
1539
- "Mui-focusVisible": k,
1591
+ className: V({
1592
+ "Mui-focusVisible": w,
1540
1593
  "Mui-hovered": C
1541
1594
  }),
1542
1595
  sx: {
@@ -1546,10 +1599,10 @@ var Tt = B((e) => {
1546
1599
  children: e
1547
1600
  }) : null;
1548
1601
  }, [
1549
- o,
1550
- p,
1551
1602
  r,
1552
- k,
1603
+ p,
1604
+ o,
1605
+ w,
1553
1606
  C,
1554
1607
  b,
1555
1608
  a
@@ -1559,36 +1612,34 @@ var Tt = B((e) => {
1559
1612
  role: "menuitem",
1560
1613
  disabled: p,
1561
1614
  onMouseOver: (e) => {
1562
- s?.(e), e.isDefaultPrevented() || T(!0);
1615
+ s?.(e), e.isDefaultPrevented() || P(!0);
1563
1616
  },
1564
1617
  onMouseOut: (e) => {
1565
- c?.(e), e.isDefaultPrevented() || T(!1);
1618
+ c?.(e), e.isDefaultPrevented() || P(!1);
1566
1619
  },
1567
1620
  onMouseEnter: (e) => {
1568
1621
  d?.(e), e.isDefaultPrevented() || v?.closeChild();
1569
1622
  },
1570
1623
  TouchRippleProps: { center: !1 },
1571
- className: W({
1572
- "Mui-focusVisible": k,
1624
+ className: V({
1625
+ "Mui-focusVisible": w,
1573
1626
  "Mui-hovered": C
1574
1627
  }, n),
1575
1628
  onFocus: (e) => {
1576
- i?.(e), w(!0);
1629
+ i?.(e), k(!0);
1577
1630
  },
1578
1631
  onBlur: (e) => {
1579
- l?.(e), w(!1);
1632
+ l?.(e), k(!1);
1580
1633
  },
1581
1634
  sx: {
1582
1635
  flex: "1 1 100%",
1636
+ whiteSpace: "nowrap",
1583
1637
  fontFamily: (e) => e.typography.fontFamily,
1584
1638
  fontWeight: 400,
1585
1639
  lineHeight: 1.5,
1586
1640
  paddingTop: "2px",
1587
1641
  paddingBottom: "2px",
1588
- marginLeft: "4px",
1589
- marginRight: "4px",
1590
- paddingLeft: "6px",
1591
- paddingRight: "18px",
1642
+ ...Kt,
1592
1643
  borderRadius: "4px",
1593
1644
  fontSize: "0.875em",
1594
1645
  "@media (pointer: coarse)": { fontSize: "1em" },
@@ -1596,22 +1647,22 @@ var Tt = B((e) => {
1596
1647
  "&.Mui-selected": { color: (e) => e.palette.text.primary },
1597
1648
  color: (e) => e.palette.text.secondary,
1598
1649
  "&.Mui-hovered:not(.Mui-disabled, [disabled])": { color: (e) => e.palette.text.primary },
1599
- ...f
1650
+ ...g
1600
1651
  },
1601
1652
  ...y,
1602
1653
  children: [
1603
- P,
1654
+ T,
1604
1655
  u,
1605
- x ? M(Je, { chips: x }) : null
1656
+ x ? M(lt, { chips: x }) : null
1606
1657
  ]
1607
1658
  });
1608
- return g && (R = M(Rt, {
1659
+ return f && (R = M(Nt, {
1609
1660
  children: R,
1610
1661
  placement: "right-start",
1611
- ...g
1662
+ ...f
1612
1663
  })), R;
1613
- })), Lt = B(D((e, t) => {
1614
- const { children: r, sx: o, primary: n = !1, variant: i = "subtitle1", ...a } = e;
1664
+ })), Vt = B($((e, t) => {
1665
+ const { children: o, sx: r, primary: n = !1, variant: i = "subtitle1", ...a } = e;
1615
1666
  return M(C, { children: M(b, {
1616
1667
  ref: t,
1617
1668
  variant: i,
@@ -1623,16 +1674,16 @@ var Tt = B((e) => {
1623
1674
  paddingTop: "subtitle1" === i ? "2px" : void 0,
1624
1675
  paddingBottom: "subtitle1" === i ? "2px" : void 0,
1625
1676
  color: (e) => n ? void 0 : e.palette.text.secondary,
1626
- ...o
1677
+ ...r
1627
1678
  },
1628
1679
  ...a,
1629
- children: r
1680
+ children: o
1630
1681
  }) });
1631
- })), Ot = B(D((e, r) => {
1632
- const { dense: o = !0, outlined: n = !1, label: i, showLabel: a = !1, selected: l = !1, onQuickClick: s, parentFloat: c, createPopupPanel: p, propsPopup: u, onPopupOpen: m, onPopupClose: h, propsQuickButton: f, renderQuickButton: g, tooltip: x = "", createTooltip: b, icon: y, disabled: v, propsButton: w = j.EmptyObject, disableHover: T, ripple: P, primary: R, children: D, sx: $, className: I, ...B } = e, z = k(), N = E(() => {
1633
- const e = (e, t, r, o = r) => {
1682
+ })), qt = B($((e, o) => {
1683
+ const { dense: r = !0, outlined: n = !1, label: i, showLabel: a = !1, selected: l = !1, onQuickClick: s, parentFloat: c, createPopupPanel: p, propsPopup: u, onPopupOpen: m, onPopupClose: h, propsQuickButton: g, renderQuickButton: f, tooltip: x = "", createTooltip: b, icon: y, disabled: v, propsButton: k = G.EmptyObject, disableHover: P, ripple: T, primary: R, children: D, sx: I, className: $, ...z } = e, B = w(), L = A(() => {
1684
+ const e = (e, t, o, r = o) => {
1634
1685
  const i = "boolean" == typeof n ? null : n[e];
1635
- return "function" == typeof i ? i(t) : i || (n ? r : o);
1686
+ return "function" == typeof i ? i(t) : i || (n ? o : r);
1636
1687
  };
1637
1688
  return {
1638
1689
  outline: {
@@ -1640,11 +1691,11 @@ var Tt = B((e) => {
1640
1691
  hoverColor: (t) => e("hoverColor", t, t.palette.text?.primary, t.palette.divider),
1641
1692
  focusColor: (t) => e("focusColor", t, t.palette?.primary?.main)
1642
1693
  },
1643
- active: "dark" === z.palette.mode ? z.palette.text.secondary : z.palette.text.primary,
1644
- text: z.palette.text.icon ?? z.palette.action.active
1694
+ active: "dark" === B.palette.mode ? B.palette.text.secondary : B.palette.text.primary,
1695
+ text: B.palette.text.icon ?? B.palette.action.active
1645
1696
  };
1646
- }, [n, z]), [L, O] = A(!1), [F, V] = A(!1), [q, Q] = A(!1), U = K(null), G = K(null), X = pe({
1647
- anchor: U.current,
1697
+ }, [n, B]), [N, O] = H(!1), [E, F] = H(!1), [K, j] = H(!1), Q = W(null), U = W(null), X = fe({
1698
+ anchor: Q.current,
1648
1699
  label: i,
1649
1700
  createPopupPanel: p,
1650
1701
  parentFloat: c,
@@ -1655,30 +1706,30 @@ var Tt = B((e) => {
1655
1706
  onOpen: () => {
1656
1707
  O(!0), m?.();
1657
1708
  }
1658
- }), Y = le((e) => {
1709
+ }), Y = ue((e) => {
1659
1710
  s?.(e), X.reference.close(0);
1660
- }, [s, X]), _ = le(() => {
1661
- L ? X.reference.close(0) : X.reference.open(0);
1711
+ }, [s, X]), _ = ue(() => {
1712
+ N ? X.reference.close(0) : X.reference.open(0);
1662
1713
  }, [
1663
- L,
1714
+ N,
1664
1715
  X,
1665
1716
  c,
1666
1717
  i
1667
- ]), J = E(() => {
1718
+ ]), J = A(() => {
1668
1719
  const e = {
1669
1720
  "&.bordered": {
1670
1721
  borderWidth: "1px",
1671
1722
  borderRadius: "0px",
1672
1723
  borderTopStyle: "solid",
1673
1724
  borderBottomStyle: "solid",
1674
- borderColor: (e) => N.outline.color(e),
1675
- "&.Mui-focusVisible": { border: (e) => `1px solid ${N.outline.focusColor(e)} !important` },
1725
+ borderColor: (e) => L.outline.color(e),
1726
+ "&.Mui-focusVisible": { border: (e) => `1px solid ${L.outline.focusColor(e)} !important` },
1676
1727
  "&:hover:not(.Mui-disabled, [disabled])": {
1677
- borderColor: () => T ? "transparent" : void 0,
1678
- backgroundColor: () => T ? "transparent" : void 0
1728
+ borderColor: () => P ? "transparent" : void 0,
1729
+ backgroundColor: () => P ? "transparent" : void 0
1679
1730
  },
1680
- "&.Mui-hovered:not(.Mui-disabled, [disabled])": { borderColor: (e) => N.outline.hoverColor(e) },
1681
- "&.Mui-selected:not(.Mui-disabled, [disabled])": { borderColor: (e) => N.outline.hoverColor(e) },
1731
+ "&.Mui-hovered:not(.Mui-disabled, [disabled])": { borderColor: (e) => L.outline.hoverColor(e) },
1732
+ "&.Mui-selected:not(.Mui-disabled, [disabled])": { borderColor: (e) => L.outline.hoverColor(e) },
1682
1733
  "&.left": {
1683
1734
  borderTopLeftRadius: (e) => `${e.shape.borderRadius}px`,
1684
1735
  borderBottomLeftRadius: (e) => `${e.shape.borderRadius}px`,
@@ -1687,7 +1738,7 @@ var Tt = B((e) => {
1687
1738
  "&.hard-right": {
1688
1739
  borderRightStyle: "solid",
1689
1740
  borderRightWidth: "1px",
1690
- borderRightColor: (e) => N.outline.color(e)
1741
+ borderRightColor: (e) => L.outline.color(e)
1691
1742
  },
1692
1743
  "&.right": {
1693
1744
  borderTopRightRadius: (e) => `${e.shape.borderRadius}px`,
@@ -1698,68 +1749,74 @@ var Tt = B((e) => {
1698
1749
  },
1699
1750
  "& .MuiTouchRipple-child": { borderRadius: (e) => `${e.shape.borderRadius}px !important` }
1700
1751
  }, t = { "&.Mui-selected": {
1701
- backgroundColor: (e) => H(e.palette.primary.main, e.palette.action.selectedOpacity),
1752
+ backgroundColor: (e) => q(e.palette.primary.main, e.palette.action.selectedOpacity),
1702
1753
  "&:hover:not(.Mui-disabled)": {
1703
- backgroundColor: (e) => H(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
1704
- "@media (hover: none)": { backgroundColor: (e) => H(e.palette.primary.main, e.palette.action.selectedOpacity) }
1754
+ backgroundColor: (e) => q(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
1755
+ "@media (hover: none)": { backgroundColor: (e) => q(e.palette.primary.main, e.palette.action.selectedOpacity) }
1705
1756
  }
1706
- } }, r = {
1757
+ } }, o = {
1707
1758
  maxHeight: "100%",
1708
1759
  "&.Mui-selected": {
1709
- backgroundColor: (e) => H(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity),
1760
+ backgroundColor: (e) => q(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity),
1710
1761
  "&:hover:not(.Mui-disabled)": {
1711
- backgroundColor: (e) => H(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
1712
- "@media (hover: none)": { backgroundColor: (e) => H(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity) }
1762
+ backgroundColor: (e) => q(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
1763
+ "@media (hover: none)": { backgroundColor: (e) => q(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity) }
1713
1764
  }
1714
1765
  },
1715
- "&:hover:not(.Mui-disabled, [disabled])": { color: (e) => e.palette.text.primary },
1716
- backgroundColor: () => T ? "transparent" : void 0,
1766
+ "&:hover:not(.Mui-disabled, [disabled])": {
1767
+ color: (e) => e.palette.text.primary,
1768
+ ...P ? null : {
1769
+ backgroundColor: (e) => q(e.palette.action.active, e.palette.action.hoverOpacity),
1770
+ "@media (hover: none)": { backgroundColor: "transparent" }
1771
+ }
1772
+ },
1773
+ backgroundColor: () => P ? "transparent" : void 0,
1717
1774
  color: (e) => e.palette.text.icon,
1718
1775
  "&.Mui-disabled > .icon path": {
1719
1776
  filter: "grayscale(65%)",
1720
1777
  opacity: ".8"
1721
1778
  },
1722
- padding: () => o ? "2px 3px" : "7px",
1779
+ padding: () => r ? "2px 3px" : "7px",
1723
1780
  marginRight: "0"
1724
- }, n = j.mergeContentful(r, e), i = j.mergeContentful(n, t), a = j.mergeContentful(r, e);
1781
+ }, n = G.mergeContentful(o, e), i = G.mergeContentful(n, t), a = G.mergeContentful(o, e);
1725
1782
  return {
1726
1783
  quickButtonStyling: n,
1727
1784
  openQuickButtonStyling: i,
1728
1785
  compoundStyling: a,
1729
- openCompoundStyling: j.mergeContentful(a, t)
1786
+ openCompoundStyling: G.mergeContentful(a, t)
1730
1787
  };
1731
- }, [N, T]), Z = le((e) => {
1732
- const { children: t, ref: r, ...o } = e;
1733
- return M(St, {
1734
- ref: r,
1735
- ...o,
1788
+ }, [L, P]), Z = ue((e) => {
1789
+ const { children: t, ref: o, ...r } = e;
1790
+ return M(zt, {
1791
+ ref: o,
1792
+ ...r,
1736
1793
  disableInteractive: !0,
1737
1794
  children: t
1738
1795
  });
1739
- }, []), te = s || g, re = te && (f?.tooltip || f?.createTooltip), oe = (e) => {
1740
- const { tooltip: t, createTooltip: r, sx: o, ...n } = e;
1796
+ }, []), ee = s || f, te = ee && (g?.tooltip || g?.createTooltip), oe = (e) => {
1797
+ const { tooltip: t, createTooltip: o, sx: r, ...n } = e;
1741
1798
  let i = M(d, {
1742
- sx: { ...o },
1799
+ sx: { ...r },
1743
1800
  component: "div",
1744
1801
  ...n
1745
1802
  });
1746
- return re ? (i = (r ?? Z)({
1747
- title: L ? "" : t ?? x,
1803
+ return te ? (i = (o ?? Z)({
1804
+ title: N ? "" : t ?? x,
1748
1805
  children: M("div", { children: i })
1749
- }, L), i) : i;
1806
+ }, N), i) : i;
1750
1807
  }, ne = { onKeyDown: (e) => {
1751
- e.keyCode === ee.Space ? _() : e.keyCode === ee.F4 || e.keyCode === ee.Down ? X.reference.open(0) : e.keyCode === ee.Up && X.reference.close(0);
1808
+ e.keyCode === re.Space ? _() : e.keyCode === re.F4 || e.keyCode === re.Down ? X.reference.open(0) : e.keyCode === re.Up && X.reference.close(0);
1752
1809
  } };
1753
1810
  let ie = M(C, {});
1754
- const ae = E(() => $e(("function" == typeof y ? y() : y) ?? (te ? Et : null), a ? i : null), [
1811
+ const ae = A(() => Oe(("function" == typeof y ? y() : y) ?? (ee ? jt : null), a ? i : null), [
1755
1812
  y,
1756
1813
  i,
1757
1814
  a,
1758
- te
1815
+ ee
1759
1816
  ]);
1760
- if (te) {
1761
- let e = L ? J.openQuickButtonStyling : J.quickButtonStyling;
1762
- const t = (g || oe)({
1817
+ if (ee) {
1818
+ let e = N ? J.openQuickButtonStyling : J.quickButtonStyling;
1819
+ const t = (f || oe)({
1763
1820
  tabIndex: -1,
1764
1821
  disabled: v,
1765
1822
  size: "small",
@@ -1770,43 +1827,43 @@ var Tt = B((e) => {
1770
1827
  onMouseDown: (e) => {
1771
1828
  0 === e.button && (e.preventDefault(), Y(e));
1772
1829
  },
1773
- disableRipple: !!P,
1774
- children: S(C, { children: [ae, P] }),
1775
- ...f,
1776
- className: W({
1777
- "Mui-focusVisible": F || L,
1830
+ disableRipple: !!T,
1831
+ children: S(C, { children: [ae, T] }),
1832
+ ...g,
1833
+ className: V({
1834
+ "Mui-focusVisible": E || N,
1778
1835
  "Mui-selected": l,
1779
- "Mui-hovered": q || L,
1836
+ "Mui-hovered": K || N,
1780
1837
  "Mui-disabled": v,
1781
1838
  bordered: !0,
1782
1839
  left: !0,
1783
1840
  "hard-right": !0
1784
- }, f?.className),
1841
+ }, g?.className),
1785
1842
  sx: {
1786
1843
  ...J.quickButtonStyling,
1787
1844
  height: "100%",
1788
- ...f?.sx
1845
+ ...g?.sx
1789
1846
  }
1790
1847
  });
1791
- let r = bt(!0, o, L);
1792
- re && (r = (b ?? Z)({
1793
- title: L ? "" : x,
1794
- children: r
1795
- }, L)), ie = S(C, { children: [t, M(d, {
1796
- ref: G,
1848
+ let o = St(!0, r, N);
1849
+ te && (o = (b ?? Z)({
1850
+ title: N ? "" : x,
1851
+ children: o
1852
+ }, N)), ie = S(C, { children: [t, M(d, {
1853
+ ref: U,
1797
1854
  component: "div",
1798
- className: W({
1799
- "Mui-selected": L,
1800
- "Mui-hovered": q || L,
1855
+ className: V({
1856
+ "Mui-selected": N,
1857
+ "Mui-hovered": K || N,
1801
1858
  "Mui-disabled": v,
1802
- "Mui-focusVisible": F || L,
1859
+ "Mui-focusVisible": E || N,
1803
1860
  bordered: !0,
1804
1861
  right: !0,
1805
1862
  divider: !0
1806
1863
  }),
1807
1864
  sx: {
1808
- paddingLeft: (o ? 0 : 2) + "px",
1809
- paddingRight: (o ? 0 : 2) + "px",
1865
+ paddingLeft: (r ? 0 : 2) + "px",
1866
+ paddingRight: (r ? 0 : 2) + "px",
1810
1867
  width: () => "calc(var(--icon-size, 1.25em) * 0.8)",
1811
1868
  ...J.quickButtonStyling,
1812
1869
  ...e
@@ -1819,49 +1876,50 @@ var Tt = B((e) => {
1819
1876
  onMouseDown: (e) => {
1820
1877
  0 === e.button && (e.preventDefault(), _());
1821
1878
  },
1822
- children: r
1879
+ children: o
1823
1880
  })] });
1824
1881
  } else {
1825
- let e = L ? J.openCompoundStyling : J.compoundStyling;
1826
- ie = M(It, {
1827
- ref: G,
1882
+ let e = N ? J.openCompoundStyling : J.compoundStyling;
1883
+ ie = M(Ft, {
1884
+ ref: U,
1828
1885
  tabIndex: -1,
1829
1886
  disabled: v,
1830
1887
  size: "small",
1831
1888
  icon: ae,
1832
- className: W({
1833
- "Mui-selected": L || l,
1834
- "Mui-hovered": q,
1889
+ className: V({
1890
+ "Mui-selected": N || l,
1891
+ "Mui-hovered": K,
1835
1892
  "Mui-disabled": v,
1836
- "Mui-focusVisible": F || L,
1893
+ "Mui-focusVisible": E || N,
1837
1894
  bordered: !0,
1838
1895
  left: !0,
1839
1896
  right: !0
1840
1897
  }),
1841
1898
  sx: {
1899
+ flex: "1 1 auto",
1842
1900
  ...J.quickButtonStyling,
1843
1901
  ...e
1844
1902
  },
1845
1903
  onMouseDown: (e) => {
1846
1904
  0 === e.button && (e.preventDefault(), _());
1847
1905
  },
1848
- children: bt(!1, o, L)
1906
+ children: St(!1, r, N)
1849
1907
  });
1850
1908
  }
1851
- const { className: se, sx: ce, ...de } = w;
1852
- let ue = M(t, {
1853
- onFocus: () => V(!0),
1854
- onBlur: () => V(!1),
1855
- onMouseOver: () => Q(!0),
1856
- onMouseOut: () => Q(!1),
1909
+ const { className: le, sx: se, ...ce } = k;
1910
+ let de = M(t, {
1911
+ onFocus: () => F(!0),
1912
+ onBlur: () => F(!1),
1913
+ onMouseOver: () => j(!0),
1914
+ onMouseOut: () => j(!1),
1857
1915
  ...ne,
1858
1916
  "aria-label": "split button",
1859
- ref: U,
1917
+ ref: Q,
1860
1918
  tabIndex: v ? void 0 : 0,
1861
- className: W(se, "split-button-root", {
1862
- "Mui-focusVisible": F || L,
1863
- "Mui-selected": L || l,
1864
- "Mui-hovered": q,
1919
+ className: V(le, "split-button-root", {
1920
+ "Mui-focusVisible": E || N,
1921
+ "Mui-selected": N || l,
1922
+ "Mui-hovered": K,
1865
1923
  "Mui-disabled": v
1866
1924
  }),
1867
1925
  sx: {
@@ -1877,30 +1935,30 @@ var Tt = B((e) => {
1877
1935
  outline: (e) => `solid ${e.palette.primary.main} 1px`,
1878
1936
  zIndex: 2
1879
1937
  },
1880
- ...ce
1938
+ ...se
1881
1939
  },
1882
- ...de,
1940
+ ...ce,
1883
1941
  children: ie
1884
1942
  });
1885
- return re || (ue = (b ?? Z)({
1886
- title: L ? "" : x,
1887
- children: ue
1888
- }, L)), S(t, {
1889
- className: W(I, "popupIconButton"),
1890
- ref: r,
1891
- ...B,
1943
+ return te || (de = (b ?? Z)({
1944
+ title: N ? "" : x,
1945
+ children: de
1946
+ }, N)), S(t, {
1947
+ className: V($, "popupIconButton"),
1948
+ ref: o,
1949
+ ...z,
1892
1950
  sx: {
1893
- zIndex: F || L ? 2 : void 0,
1951
+ zIndex: E || N ? 2 : void 0,
1894
1952
  display: "flex",
1895
1953
  alignItems: "center",
1896
- ...$
1954
+ ...I
1897
1955
  },
1898
- children: [ue, X.component]
1956
+ children: [de, X.component]
1899
1957
  });
1900
1958
  }));
1901
- Ot.displayName = "ExhibitPopupIconButton";
1902
- var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
1903
- const { selected: o = !1, label: n, showLabel: i, onQuickClick: a, parentFloat: l, createPopupPanel: c, propsPopup: d = Ft, onPopupOpen: p, onPopupClose: u, propsQuickButton: h, renderQuickButton: f, tooltip: g = "", createTooltip: x, icon: b, disabled: y, ripple: v, primary: k, children: w, sx: T, ...P } = e, [R, D] = A(!1), [$, I] = A(!1), [B, N] = A(!1), [L, O] = A(!1), F = K(null), H = K(null), V = E(() => {
1959
+ qt.displayName = "ExhibitPopupIconButton";
1960
+ var jt = M(Z, { iconKey: "Check" }), Qt = {}, Gt = B($((e, o) => {
1961
+ const { selected: r = !1, label: n, showLabel: i, onQuickClick: a, parentFloat: l, createPopupPanel: c, propsPopup: d = Qt, onPopupOpen: p, onPopupClose: u, propsQuickButton: h, renderQuickButton: g, tooltip: f = "", createTooltip: x, icon: b, disabled: y, ripple: v, primary: w, children: k, sx: P, ...T } = e, [R, D] = H(!1), [I, $] = H(!1), [z, B] = H(!1), [N, O] = H(!1), E = W(null), F = W(null), K = A(() => {
1904
1962
  if (!d) return;
1905
1963
  const { propsPopper: e } = d;
1906
1964
  return {
@@ -1908,54 +1966,54 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
1908
1966
  offsets: [-4, -2],
1909
1967
  ...e
1910
1968
  };
1911
- }, [d]), q = pe({
1912
- anchor: F.current,
1969
+ }, [d]), q = fe({
1970
+ anchor: E.current,
1913
1971
  label: n,
1914
1972
  createPopupPanel: c,
1915
1973
  parentFloat: l,
1916
- propsPopper: V,
1974
+ propsPopper: K,
1917
1975
  onClose: () => {
1918
1976
  D(!1), u?.();
1919
1977
  },
1920
1978
  onOpen: () => {
1921
1979
  D(!0), p?.();
1922
1980
  }
1923
- }), j = le((e) => {
1981
+ }), j = ue((e) => {
1924
1982
  0 === e.button && (a?.(e), q.reference.close(0));
1925
- }, [a]), Q = M(rt, {}), U = { "&.Mui-selected": {
1983
+ }, [a]), Q = M(pt, {}), G = { "&.Mui-selected": {
1926
1984
  color: (e) => e.palette.text.primary,
1927
1985
  "& svg * ": { color: (e) => e.palette.text.primary }
1928
- } }, G = z((e) => {
1929
- const { children: t, ref: r, ...o } = e;
1930
- return M(St, {
1931
- ref: r,
1932
- ...o,
1986
+ } }, U = L((e) => {
1987
+ const { children: t, ref: o, ...r } = e;
1988
+ return M(zt, {
1989
+ ref: o,
1990
+ ...r,
1933
1991
  disableInteractive: !0,
1934
1992
  children: t
1935
1993
  });
1936
- }, []), X = a || f, Y = (e) => {
1937
- const { tooltip: t, createTooltip: r, ...o } = e;
1938
- return S(Nt, {
1994
+ }, []), X = a || g, Y = (e) => {
1995
+ const { tooltip: t, createTooltip: o, ...r } = e;
1996
+ return S(Ht, {
1939
1997
  icon: b,
1940
1998
  disableRipple: !!v,
1941
- className: W({ "Mui-hovered": B }),
1999
+ className: V({ "Mui-hovered": z }),
1942
2000
  sx: {
1943
2001
  flex: "1 1 100%",
1944
- ...U
2002
+ ...G
1945
2003
  },
1946
- ...o,
2004
+ ...r,
1947
2005
  children: [n, v]
1948
2006
  });
1949
2007
  }, _ = {
1950
2008
  onFocus: () => {
1951
- I(!0);
2009
+ $(!0);
1952
2010
  },
1953
- onBlur: () => I(!1),
2011
+ onBlur: () => $(!1),
1954
2012
  onMouseOver: () => {
1955
- N(!0);
2013
+ B(!0);
1956
2014
  },
1957
2015
  onMouseLeave: () => {
1958
- N(!1);
2016
+ B(!1);
1959
2017
  },
1960
2018
  onMouseEnter: (e) => {
1961
2019
  e.preventDefault(), q.reference.open();
@@ -1966,7 +2024,7 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
1966
2024
  };
1967
2025
  let J = M(C, {});
1968
2026
  if (X) {
1969
- const e = {
2027
+ const e = (g || Y)({
1970
2028
  tabIndex: -1,
1971
2029
  disabled: y,
1972
2030
  onMouseEnter: () => {
@@ -1975,11 +2033,11 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
1975
2033
  onMouseDown: (e) => {
1976
2034
  0 === e.button && (e.preventDefault(), j(e));
1977
2035
  },
1978
- className: W("quick-left", {}, h?.className),
2036
+ className: V("quick-left", {}, h?.className),
1979
2037
  ...h
1980
- };
2038
+ });
1981
2039
  J = S(C, { children: [
1982
- (f || Y)(e),
2040
+ e,
1983
2041
  M(s, {
1984
2042
  sx: {
1985
2043
  ml: "0px",
@@ -1990,10 +2048,10 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
1990
2048
  flexItem: !0
1991
2049
  }),
1992
2050
  M(m, {
1993
- ref: H,
1994
- className: W({
2051
+ ref: F,
2052
+ className: V({
1995
2053
  "Mui-selected": R,
1996
- "Mui-hovered": B
2054
+ "Mui-hovered": z
1997
2055
  }),
1998
2056
  sx: {
1999
2057
  borderTopLeftRadius: "0px",
@@ -2005,9 +2063,9 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
2005
2063
  paddingBottom: "2px",
2006
2064
  marginLeft: "0px",
2007
2065
  marginRight: "6px",
2008
- color: (e) => k ? void 0 : e.palette.text.secondary,
2066
+ color: (e) => w ? void 0 : e.palette.text.secondary,
2009
2067
  "&.Mui-hovered:not(.Mui-disabled, [disabled])": { color: (e) => e.palette.text.primary },
2010
- ...U
2068
+ ...G
2011
2069
  },
2012
2070
  tabIndex: -1,
2013
2071
  disabled: y,
@@ -2020,7 +2078,7 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
2020
2078
  border: "1px solid transparent",
2021
2079
  paddingTop: "1px",
2022
2080
  paddingBottom: "1px",
2023
- color: (e) => k ? void 0 : e.palette.text.icon ?? e.palette.action.active
2081
+ color: (e) => w ? void 0 : e.palette.text.icon ?? e.palette.action.active
2024
2082
  },
2025
2083
  onMouseOver: (e) => {
2026
2084
  e.preventDefault(), O(!0);
@@ -2035,19 +2093,19 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
2035
2093
  })
2036
2094
  })
2037
2095
  ] });
2038
- } else J = S(Nt, {
2039
- ref: H,
2096
+ } else J = S(Ht, {
2097
+ ref: F,
2040
2098
  tabIndex: -1,
2041
2099
  disabled: y,
2042
2100
  icon: b,
2043
- className: W({
2044
- "Mui-selected": R || o,
2045
- "Mui-hovered": B
2101
+ className: V({
2102
+ "Mui-selected": R || r,
2103
+ "Mui-hovered": z
2046
2104
  }),
2047
2105
  sx: {
2048
2106
  flex: "1 1 100%",
2049
2107
  paddingRight: "0px",
2050
- ...U
2108
+ ...G
2051
2109
  },
2052
2110
  onClick: (e) => {
2053
2111
  e.preventDefault(), R ? q.reference.close() : q.reference.open();
@@ -2061,20 +2119,20 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
2061
2119
  sx: {
2062
2120
  flex: "none",
2063
2121
  display: "flex",
2064
- color: (e) => k ? void 0 : e.palette.text.icon ?? e.palette.action.active
2122
+ color: (e) => w ? void 0 : e.palette.text.icon ?? e.palette.action.active
2065
2123
  },
2066
2124
  children: Q
2067
2125
  })]
2068
2126
  });
2069
2127
  let Z = M(t, {
2070
2128
  "aria-label": "split button",
2071
- ref: F,
2129
+ ref: E,
2072
2130
  tabIndex: y ? void 0 : 0,
2073
- className: W({
2131
+ className: V({
2074
2132
  "Mui-disabled": y,
2075
2133
  "Mui-selected": R,
2076
- "Mui-focusVisible": $ || R,
2077
- "Mui-hovered": B
2134
+ "Mui-focusVisible": I || R,
2135
+ "Mui-hovered": z
2078
2136
  }),
2079
2137
  sx: {
2080
2138
  display: "flex",
@@ -2087,18 +2145,18 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
2087
2145
  marginRight: "-1px"
2088
2146
  },
2089
2147
  "&.Mui-disabled > .icon path": { filter: "grayscale(65%)" },
2090
- ...T
2148
+ ...P
2091
2149
  },
2092
- ...P,
2150
+ ...T,
2093
2151
  children: J
2094
2152
  });
2095
- return X && !L && (h?.tooltip || h?.createTooltip) && (Z = (h?.createTooltip ?? G)({
2153
+ return X && !N && (h?.tooltip || h?.createTooltip) && (Z = (h?.createTooltip ?? U)({
2096
2154
  title: R ? "" : Z ?? h?.tooltip,
2097
2155
  children: Z
2098
2156
  }, R)), S(t, {
2099
- ref: r,
2157
+ ref: o,
2100
2158
  sx: {
2101
- zIndex: $ || R ? 2 : void 0,
2159
+ zIndex: I || R ? 2 : void 0,
2102
2160
  display: "flex",
2103
2161
  " .tooltip-wrapper": {
2104
2162
  display: "flex",
@@ -2107,45 +2165,46 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
2107
2165
  },
2108
2166
  children: [Z, q.component]
2109
2167
  });
2110
- })), At = B(D((e, t) => {
2111
- const { onSelectToggle: r, selected: o = !1, label: n, shortcut: i, tabIndex: a = 0, preventFocus: l = !1, ...s } = e;
2112
- return M(Rt, {
2168
+ })), Ut = B($((e, t) => {
2169
+ const { onSelectToggle: o, selected: r = !1, label: n, shortcut: i, tabIndex: a = 0, preventFocus: l = !1, ...s } = e;
2170
+ return M(Nt, {
2113
2171
  label: n,
2114
2172
  shortcut: i,
2115
- children: M(It, {
2173
+ children: M(Ft, {
2116
2174
  ref: t,
2117
2175
  outlined: !1,
2118
2176
  tabIndex: a,
2119
- selected: o,
2177
+ selected: r,
2120
2178
  onMouseDown: (e) => {
2121
2179
  l && e.preventDefault();
2122
2180
  },
2123
2181
  onClick: () => {
2124
- r?.(!o);
2182
+ o?.(!r);
2125
2183
  },
2126
2184
  ...s
2127
2185
  })
2128
2186
  });
2129
- })), Wt = M(Y, {}), Ht = M(Y, { iconKey: "Check" }), Vt = B(D((e, r) => {
2130
- const { children: o, selected: n = !0, outlined: i = !0, sx: a, ...l } = e, s = E(() => ({
2187
+ })), Xt = M(Z, {}), Yt = M(Z, { iconKey: "Check" }), _t = B($((e, o) => {
2188
+ const { children: r, selected: n = !0, outlined: i = !0, sx: a, ...l } = e, s = A(() => ({
2131
2189
  display: "flex",
2132
2190
  border: (e) => n ? `solid ${i ? e.palette.divider : "transparent"} 1px` : "solid transparent 1px",
2133
2191
  borderRadius: (e) => `${e.shape.borderRadius}px`,
2134
2192
  backgroundColor: (e) => {
2135
- if (n) return H(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity);
2193
+ if (n) return q(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity);
2136
2194
  },
2137
2195
  ...a
2138
2196
  }), [a]);
2139
- let c = o;
2140
- return null === c && (c = Wt), c || (c = Ht), M(t, {
2141
- ref: r,
2197
+ let c = r;
2198
+ return null === c && (c = Xt), c || (c = Yt), M(t, {
2199
+ ref: o,
2142
2200
  sx: s,
2143
2201
  ...l,
2144
2202
  children: c
2145
2203
  });
2146
- })), qt = {
2204
+ })), Jt = {
2147
2205
  "dialog.cancel": "Cancel",
2148
2206
  "dialog.ok": "Ok",
2207
+ "lazyLoad.retry": "Retry",
2149
2208
  "overflow.more": "More",
2150
2209
  "overflow.moreDescription": "More toolbar options…",
2151
2210
  "scroll.edgeBottom": " Bottom: ''Ctrl+Click'' to scroll to the end",
@@ -2164,94 +2223,113 @@ var Et = M(Y, { iconKey: "Check" }), Ft = {}, Kt = B(D((e, r) => {
2164
2223
  "stackTrace.log": "Log error to console",
2165
2224
  "stackTrace.moreFrames": "... and {count} more frames",
2166
2225
  "window.close": "Close"
2167
- }, { DefaultCommandCatalogService: jt } = U, Qt = !1;
2168
- function Ut() {
2169
- Qt || (Qt = !0, jt.registerFromManifest("@sheetxl/utils-mui", import.meta.url, { messages: qt }));
2226
+ }, { DefaultCommandCatalogService: Zt } = Y, eo = !1;
2227
+ function to() {
2228
+ eo || (eo = !0, Zt.registerFromManifest("@sheetxl/utils-mui", import.meta.url, { messages: Jt }));
2170
2229
  }
2171
- Ut();
2172
- var Gt = B(D((e, r) => {
2173
- const { children: o, sx: n, ...i } = e, a = fe(), l = he(r, () => ({}), []), [s, c] = be(), d = K(null), p = K(null), [u, m] = F((e) => e + 1, 0), [h, f] = A(null), [g, x] = A(null), [b, y] = A(null), v = K(null), k = K(/* @__PURE__ */ new Map()), w = z(() => {
2174
- k.current.clear(), x(null), y(null), m();
2230
+ to();
2231
+ var oo = {
2232
+ inline: null,
2233
+ popup: []
2234
+ }, ro = B($((e, o) => {
2235
+ const { children: r, sx: n, ...i } = e, a = Ce(), l = ye(o, () => ({}), []), [s, c] = ke(), d = W(null), p = W(null), [u, m] = K((e) => e + 1, 0), [h, g] = H(null), [f, x] = H(null), b = f?.popup ?? null, y = W(0), [v, w] = H(!1), k = W(!1), C = ge(), T = W(C);
2236
+ T.current = C;
2237
+ const R = L(() => {
2238
+ T.current?.closeChild(0);
2239
+ }, []), I = L(() => {
2240
+ k.current = !0, w(!0);
2241
+ }, []), $ = L(() => {
2242
+ k.current = !1, w(!1);
2243
+ }, []), z = W(null), B = W(/* @__PURE__ */ new Map()), N = L(() => {
2244
+ B.current.clear(), x(null), m();
2175
2245
  }, []);
2176
- O(() => {
2246
+ F(() => {
2177
2247
  p.current = { refs: [] };
2178
- const e = [], r = T.toArray(o);
2248
+ const e = [], o = P.toArray(r);
2179
2249
  let n = 0;
2180
- r.forEach((o, i) => {
2250
+ o.forEach((r, i) => {
2181
2251
  e.push(M(t, {
2182
- sx: { display: "flex" },
2252
+ sx: {
2253
+ display: "flex",
2254
+ flex: "0 0 auto"
2255
+ },
2183
2256
  ref: (e) => {
2184
- n++, n === r.length && m();
2257
+ n++, n === o.length && m();
2185
2258
  const t = { current: null };
2186
2259
  t.current = e, p.current.refs[i] = t;
2187
2260
  },
2188
- children: o
2261
+ children: r
2189
2262
  }, i));
2190
- }), f(e);
2191
- }, [o, c]), O(() => {
2263
+ }), g(e);
2264
+ }, [r, c]), F(() => {
2192
2265
  if (!h) return;
2193
2266
  const e = p.current?.refs ?? [], t = e.length;
2194
- if (!l.current || 0 === t) return x(null), void y(null);
2195
- const r = l.current?.getBoundingClientRect(), o = [], n = [], i = () => {
2196
- let r = v.current;
2197
- r ? r.disconnect() : r = v.current = new ResizeObserver((e) => {
2267
+ if (!l.current || 0 === t) return void x(null);
2268
+ const o = l.current?.getBoundingClientRect(), r = [], n = [], i = () => {
2269
+ let o = z.current;
2270
+ o ? o.disconnect() : o = z.current = new ResizeObserver((e) => {
2198
2271
  for (let t = 0; t < e.length; t++) {
2199
- const r = e[t].target;
2200
- if (!r.isConnected) continue;
2201
- const o = k.current.get(r);
2202
- if (void 0 !== o && Math.abs(r.getBoundingClientRect().width - o) > .5) return void w();
2272
+ const o = e[t].target;
2273
+ if (!o.isConnected) continue;
2274
+ const r = B.current.get(o);
2275
+ if (void 0 !== r && Math.abs(o.getBoundingClientRect().width - r) > .5) return void N();
2203
2276
  }
2204
- }), k.current.clear();
2205
- for (let o = 0; o < t; o++) {
2206
- const t = e[o]?.current;
2207
- t && (k.current.set(t, t.getBoundingClientRect().width), r.observe(t));
2277
+ }), B.current.clear();
2278
+ for (let r = 0; r < t; r++) {
2279
+ const t = e[r]?.current;
2280
+ t && (B.current.set(t, t.getBoundingClientRect().width), o.observe(t));
2208
2281
  }
2209
2282
  };
2210
2283
  let a = 0, s = !1;
2211
- for (let o = 0; !s && o < t; o++) {
2212
- const t = e[o];
2284
+ for (let r = 0; !s && r < t; r++) {
2285
+ const t = e[r];
2213
2286
  if (!t) continue;
2214
2287
  if (!t.current) {
2215
2288
  s = !0;
2216
2289
  continue;
2217
2290
  }
2218
2291
  const n = t.current.getBoundingClientRect();
2219
- a += n?.width, a > r.width && (s = !0);
2292
+ a += n?.width, a > o.width && (s = !0);
2220
2293
  }
2221
- if (!s) return i(), x(null), void y([]);
2294
+ if (!s) return i(), k.current && R(), void x(oo);
2222
2295
  const c = d.current?.getBoundingClientRect();
2296
+ c?.width && (y.current = c.width);
2297
+ const u = o.width - y.current;
2223
2298
  a = 0;
2224
- for (let i = 0; i < t; i++) {
2225
- const t = e[i];
2226
- let l = !1;
2299
+ for (let o = 0; o < t; o++) {
2300
+ const t = e[o];
2301
+ let i = !1;
2227
2302
  if (t.current) {
2228
2303
  const e = t.current.getBoundingClientRect();
2229
- a += e?.width, a < r.width - (c?.width ?? 0) && (l = !0);
2304
+ a += e?.width, a <= u && (i = !0);
2230
2305
  }
2231
- l ? o.push(h[i]) : n.push(h[i]);
2306
+ i ? r.push(h[o]) : n.push(h[o]);
2232
2307
  }
2233
- i(), x(o.length > 0 ? o : null), y(n.length > 0 ? n : null);
2308
+ i(), x({
2309
+ inline: r,
2310
+ popup: n
2311
+ });
2234
2312
  }, [
2235
- o,
2313
+ r,
2236
2314
  h,
2237
2315
  c,
2238
2316
  u
2239
- ]), O(() => () => {
2240
- v.current?.disconnect(), v.current = null;
2317
+ ]), F(() => () => {
2318
+ z.current?.disconnect(), z.current = null;
2241
2319
  }, []);
2242
- const C = z((e) => {
2243
- const r = [], o = b?.length ?? 0;
2244
- for (let e = 0; e < o; e++) {
2245
- const t = T.toArray(b[e])[0];
2246
- T.toArray(t.props.children?.props?.children ?? t.props.children).forEach((t, o) => {
2247
- const n = t, i = R(n, {
2320
+ const O = L((e) => {
2321
+ const o = [], r = b?.length ?? 0;
2322
+ for (let e = 0; e < r; e++) {
2323
+ const t = P.toArray(b[e])[0];
2324
+ P.toArray(t.props.children?.props?.children ?? t.props.children).forEach((t, r) => {
2325
+ const n = t, i = {
2248
2326
  ...n.props,
2249
- key: `overflow-${e}-${o}${n.key ?? ""}`
2250
- });
2251
- r.push(i);
2327
+ key: `overflow-${e}-${r}${n.key ?? ""}`
2328
+ }, a = D(n, i);
2329
+ o.push(a);
2252
2330
  });
2253
2331
  }
2254
- return xt({
2332
+ return Mt({
2255
2333
  ...e,
2256
2334
  children: M(t, {
2257
2335
  className: "overflow-palette-popup-panel",
@@ -2266,280 +2344,314 @@ var Gt = B(D((e, r) => {
2266
2344
  paddingRight: (e) => e.spacing(1),
2267
2345
  overflow: "hidden"
2268
2346
  },
2269
- children: r
2347
+ children: o
2270
2348
  })
2271
2349
  });
2272
- }, [b]);
2350
+ }, [b]), E = Se([
2351
+ l,
2352
+ s,
2353
+ o
2354
+ ]);
2273
2355
  return S(t, {
2274
2356
  className: "overflow-palette",
2275
2357
  sx: {
2276
2358
  display: "flex",
2277
2359
  flexDirection: "row",
2360
+ flexWrap: "nowrap",
2278
2361
  flex: "1 1 100%",
2279
2362
  width: "100%",
2280
2363
  maxWidth: "100%",
2364
+ minWidth: 0,
2365
+ overflow: "hidden",
2281
2366
  ...n
2282
2367
  },
2283
- ref: ge([
2284
- l,
2285
- s,
2286
- r
2287
- ]),
2368
+ ref: E,
2288
2369
  ...i,
2289
2370
  children: [M(t, {
2290
2371
  sx: {
2291
2372
  flexDirection: "row",
2292
2373
  display: "flex",
2374
+ flexWrap: "nowrap",
2293
2375
  maxWidth: "100%",
2294
2376
  flex: "1 1 100%",
2377
+ minWidth: 0,
2378
+ overflow: "hidden",
2295
2379
  alignItems: "center"
2296
2380
  },
2297
- children: g ?? h
2381
+ children: f?.inline ?? h
2298
2382
  }), M(t, {
2299
2383
  className: "overflow-palette-popup-button",
2300
2384
  sx: {
2301
- display: null !== b && 0 === b.length ? "none" : "flex",
2302
- flex: "1 1 0"
2385
+ display: v || null === b || 0 !== b.length ? "flex" : "none",
2386
+ flex: "0 0 auto",
2387
+ alignItems: "center"
2303
2388
  },
2304
- children: M(Ot, {
2305
- createPopupPanel: C,
2389
+ children: M(qt, {
2390
+ createPopupPanel: O,
2306
2391
  ref: d,
2307
- createTooltip: ({ children: e }, t) => M(Rt, {
2392
+ onPopupOpen: I,
2393
+ onPopupClose: $,
2394
+ createTooltip: ({ children: e }, t) => M(Nt, {
2308
2395
  label: a("overflow.more"),
2309
2396
  description: a("overflow.moreDescription"),
2310
2397
  disabled: t,
2311
2398
  children: e
2312
2399
  }),
2313
- icon: M(Y, { iconKey: "MoreHorizontal" })
2400
+ icon: M(Z, { iconKey: "MoreHorizontal" })
2314
2401
  })
2315
2402
  })]
2316
2403
  });
2317
- }));
2318
- function Xt(e) {
2319
- const [t, r] = A(() => /* @__PURE__ */ new Map()), o = K(null);
2320
- null === o.current && (o.current = /* @__PURE__ */ new Map());
2321
- const { showModal: n, updateModal: i, destroyModal: a, hideModal: l } = we({ disableAutoDestroy: !0 });
2404
+ })), no = I(void 0), io = ({ error: e }) => {
2405
+ const t = N(no);
2406
+ return O(() => {
2407
+ t?.(e);
2408
+ }, [e]), null;
2409
+ };
2410
+ function ao(e) {
2411
+ const t = pe(e, { renderError: (e) => M(io, { error: e }) });
2412
+ return (e) => {
2413
+ const { onLoadError: o, ...r } = e;
2414
+ return M(no.Provider, {
2415
+ value: o,
2416
+ children: M(R, {
2417
+ fallback: null,
2418
+ children: M(t, { ...r })
2419
+ })
2420
+ });
2421
+ };
2422
+ }
2423
+ function lo(e) {
2424
+ const [t, o] = H(() => /* @__PURE__ */ new Map()), r = W(null);
2425
+ null === r.current && (r.current = /* @__PURE__ */ new Map());
2426
+ const { showModal: n, updateModal: i, destroyModal: a, hideModal: l } = Re({ disableAutoDestroy: !0 });
2322
2427
  return (s, c, d, p) => new Promise((u, m) => {
2323
2428
  let h = !1;
2324
2429
  void 0 !== d?.disableAutoDestroy && (h = d.disableAutoDestroy, delete (d = { ...d }).disableAutoDestroy);
2325
- let f = !1;
2326
- if (void 0 !== d?.prewarm && (f = d.prewarm, delete (d = { ...d }).prewarm, f && (h = !0)), f && t.get(s)) return void u(t.get(s).element);
2327
- const g = {
2430
+ let g = !1;
2431
+ if (void 0 !== d?.prewarm && (g = d.prewarm, delete (d = { ...d }).prewarm, g && (h = !0)), g && t.get(s)) return void u(t.get(s).element);
2432
+ const f = {
2328
2433
  ...e,
2329
2434
  ...d,
2330
2435
  ...p,
2331
2436
  onHide: () => {
2332
2437
  if (p?.onHide?.(), h) return;
2333
2438
  const e = t.get(s);
2334
- r((e) => (e.delete(s), e)), e?.id && l(e.id);
2439
+ o((e) => (e.delete(s), e)), e?.id && l(e.id);
2335
2440
  },
2336
2441
  onDone: (e) => {
2337
2442
  if (p?.onDone?.(e), h) return;
2338
- const o = t.get(s);
2339
- r((e) => (e.delete(s), e)), o?.id && a(o.id);
2443
+ const r = t.get(s);
2444
+ o((e) => (e.delete(s), e)), r?.id && a(r.id);
2340
2445
  },
2341
2446
  onShown: (e) => {
2342
- r((t) => {
2343
- const r = t.get(s);
2344
- return r && t.set(s, {
2345
- ...r,
2346
- element: e ?? r.element
2447
+ o((t) => {
2448
+ const o = t.get(s);
2449
+ return o && t.set(s, {
2450
+ ...o,
2451
+ element: e ?? o.element
2347
2452
  }), t;
2348
2453
  }), u(e);
2349
2454
  },
2455
+ onLoadError: (e) => {
2456
+ const r = t.get(s);
2457
+ o((e) => (e.delete(s), e)), r?.id && a(r.id), m(e);
2458
+ },
2350
2459
  disableAutoDestroy: h,
2351
2460
  revealToken: 0,
2352
- startHidden: f,
2461
+ startHidden: g,
2353
2462
  open: !0
2354
2463
  }, x = t.get(s);
2355
2464
  if (x) {
2356
2465
  const e = (x.revealToken ?? 0) + 1;
2357
2466
  i(x.id, {
2358
- ...g,
2467
+ ...f,
2359
2468
  revealToken: e
2360
- }), r((t) => {
2361
- const r = t.get(s);
2362
- return r && t.set(s, {
2363
- ...r,
2469
+ }), o((t) => {
2470
+ const o = t.get(s);
2471
+ return o && t.set(s, {
2472
+ ...o,
2364
2473
  revealToken: e
2365
2474
  }), t;
2366
2475
  }), u(x.element);
2367
2476
  return;
2368
2477
  }
2369
2478
  if (!c) return void m(`Invalid function for window '${s}'`);
2370
- let b = o.current.get(s);
2371
- b || (b = I(c), o.current.set(s, b));
2372
- const y = n(b, g, { destroyOnClose: !h });
2373
- r((e) => (e.set(s, {
2479
+ let b = r.current.get(s);
2480
+ b || (b = ao(c), r.current.set(s, b));
2481
+ const y = n(b, f, { destroyOnClose: !h });
2482
+ o((e) => (e.set(s, {
2374
2483
  id: y.id,
2375
2484
  element: null,
2376
2485
  revealToken: 0
2377
- }), e)), f && u(null);
2486
+ }), e)), g && u(null);
2378
2487
  });
2379
2488
  }
2380
- Ut();
2381
- var Yt = {
2489
+ to();
2490
+ var so = {
2382
2491
  x: 0,
2383
2492
  y: 0
2384
- }, _t = B(D((e, t) => {
2385
- const { defaultPosition: r = Yt, PaperComponent: o = f, onDragStop: n, rootSel: i = ".MuiModal-root", handleSel: a = ".draggable-title", titleSize: l, rootSize: s, ...c } = e, d = K(null), p = E(() => l?.width && l?.height && s?.width && s?.height ? {
2493
+ }, co = B($((e, t) => {
2494
+ const { defaultPosition: o = so, PaperComponent: r = g, onDragStop: n, rootSel: i = ".MuiModal-root", handleSel: a = ".draggable-title", titleSize: l, rootSize: s, ...c } = e, d = W(null), p = A(() => l?.width && l?.height && s?.width && s?.height ? {
2386
2495
  left: 0,
2387
2496
  top: 0,
2388
2497
  right: s.width - l.width,
2389
2498
  bottom: s.height - l.height
2390
- } : null, [l, s]), [u, m] = A(null), [h, g] = A(null), x = u ?? r ?? null;
2391
- return M(Me, {
2499
+ } : null, [l, s]), [u, m] = H(null), [h, f] = H(null), x = u ?? o ?? null, b = A(() => x && p ? {
2500
+ x: Math.max(0, Math.min(x.x, p.right)),
2501
+ y: Math.max(0, Math.min(x.y, p.bottom))
2502
+ } : x, [x, p]), y = Se([d, t]);
2503
+ return M(Ie, {
2392
2504
  nodeRef: d,
2393
2505
  handle: a,
2394
2506
  cancel: "[class*=\"MuiDialogContent-root\"]",
2395
- position: E(() => x && p ? {
2396
- x: Math.max(0, Math.min(x.x, p.right)),
2397
- y: Math.max(0, Math.min(x.y, p.bottom))
2398
- } : x, [x, p]) ?? void 0,
2507
+ position: b ?? void 0,
2399
2508
  bounds: p ?? ".MuiModal-root",
2400
2509
  enableUserSelectHack: !1,
2401
2510
  onStop: n,
2402
2511
  onStart: (e, t) => {
2403
- const r = e;
2404
- g({
2405
- x: (r.clientX ?? r.touches?.[0]?.clientX) - t.x,
2406
- y: (r.clientY ?? r.touches?.[0]?.clientY) - t.y
2512
+ const o = e;
2513
+ f({
2514
+ x: (o.clientX ?? o.touches?.[0]?.clientX) - t.x,
2515
+ y: (o.clientY ?? o.touches?.[0]?.clientY) - t.y
2407
2516
  });
2408
2517
  },
2409
2518
  onDrag: (e, t) => {
2410
- const r = e;
2519
+ const o = e;
2411
2520
  if (!h) return;
2412
- const o = r.clientX ?? r.touches?.[0]?.clientX, n = r.clientY ?? r.touches?.[0]?.clientY;
2521
+ const r = o.clientX ?? o.touches?.[0]?.clientX, n = o.clientY ?? o.touches?.[0]?.clientY;
2413
2522
  m({
2414
- x: o - h.x,
2523
+ x: r - h.x,
2415
2524
  y: n - h.y
2416
2525
  });
2417
2526
  },
2418
- children: M(o, {
2419
- ref: ge([d, t]),
2527
+ children: M(r, {
2528
+ ref: y,
2420
2529
  ...c
2421
2530
  })
2422
2531
  });
2423
- })), Jt = {
2532
+ })), po = {
2424
2533
  x: "50",
2425
2534
  y: "50"
2426
- }, Zt = B(D((r, o) => {
2427
- const n = w({
2428
- props: r,
2535
+ }, uo = B($((o, r) => {
2536
+ const n = k({
2537
+ props: o,
2429
2538
  name: "MuiDialog"
2430
- }), i = k(), a = fe(), s = {
2539
+ }), i = w(), a = Ce(), s = {
2431
2540
  enter: .66 * i.transitions.duration.enteringScreen,
2432
2541
  exit: .66 * i.transitions.duration.leavingScreen
2433
- }, { title: p = "SheetXL", onCancel: u, onDone: m, onShow: h, onShown: g, onHide: x, onClose: b, open: v, autoFocusSel: C, children: T, transitionDuration: P = s, TransitionProps: R, slots: D = j.EmptyArray, slotProps: $ = j.EmptyArray, sx: I, className: B, onMouseDown: z, initialPosition: E = Jt, isModal: F = !1, suspendModal: V = !1, restoreFocus: q = !0, disableAutoDestroy: Q = !1, revealToken: U, startHidden: G = !1, ...X } = n;
2434
- let _ = D.transition ?? c;
2435
- const J = D.backdrop ?? e, Z = D.paper ?? f;
2436
- let te = $.transition;
2437
- R && (te = {
2542
+ }, { title: p = "SheetXL", onCancel: u, onDone: m, onShow: h, onShown: f, onHide: x, onClose: b, open: v, autoFocusSel: C, children: P, transitionDuration: T = s, TransitionProps: R, slots: D = G.EmptyArray, slotProps: I = G.EmptyArray, sx: $, className: z, onMouseDown: B, initialPosition: L = po, isModal: N = !1, suspendModal: A = !1, restoreFocus: K = !0, disableAutoDestroy: j = !1, revealToken: Q, startHidden: U = !1, ...X } = n;
2543
+ let Y = D.transition ?? c;
2544
+ const _ = D.backdrop ?? e, J = D.paper ?? g;
2545
+ let ee = I.transition;
2546
+ R && (ee = {
2438
2547
  ...R,
2439
- ...te
2548
+ ...ee
2440
2549
  });
2441
- const re = $.backdrop, oe = $.paper, [ne, ae] = A(null), [se, ce] = A(!1), [de, pe] = A(!1), xe = K(null), [ye, ve] = be(), ke = K(null), we = K(null), [Me, Se] = be(), Te = K(null), Pe = L();
2442
- O(() => {
2443
- ne && !G && ce(!!v);
2550
+ const te = I.backdrop, oe = I.paper, [ne, ie] = H(null), [ae, le] = H(!1), [se, de] = H(!1), pe = W(null), [me, he] = ke(), ge = W(null), fe = W(null), [ve, we] = ke(), Pe = W(null), Te = E(), Re = W(null);
2551
+ F(() => {
2552
+ if (!ne || U) return;
2553
+ const e = !!v;
2554
+ Re.current !== e && (Re.current = e, le(e));
2444
2555
  }, [
2445
2556
  v,
2446
2557
  ne,
2447
- G
2558
+ U
2448
2559
  ]);
2449
- const Re = le(() => {
2450
- u?.(), ce(!1);
2560
+ const Ie = ue(() => {
2561
+ u?.(), le(!1);
2451
2562
  }, [u]);
2452
- O(() => {
2563
+ F(() => {
2453
2564
  if (ne) return;
2454
- const e = ke.current, t = Te.current;
2565
+ const e = ge.current, t = Pe.current;
2455
2566
  if (!e || !t) return;
2456
- const r = e.getBoundingClientRect(), o = t.getBoundingClientRect();
2457
- if (0 === r.width && 0 === r.height || 0 === o.width && 0 === o.height) return;
2458
- const n = r.height - o.height, i = r.width - o.width;
2567
+ const o = e.getBoundingClientRect(), r = t.getBoundingClientRect();
2568
+ if (0 === o.width && 0 === o.height || 0 === r.width && 0 === r.height) return;
2569
+ const n = o.height - r.height, i = o.width - r.width;
2459
2570
  let a = .5 * i, l = .5 * n;
2460
- "number" == typeof E?.x ? a = E.x : "string" == typeof E?.x && (a = i * (parseFloat(E.x) / 100)), "number" == typeof E?.y ? l = E.y : "string" == typeof E?.y && (l = n * (parseFloat(E.y) / 100)), ae({
2571
+ "number" == typeof L?.x ? a = L.x : "string" == typeof L?.x && (a = i * (parseFloat(L.x) / 100)), "number" == typeof L?.y ? l = L.y : "string" == typeof L?.y && (l = n * (parseFloat(L.y) / 100)), ie({
2461
2572
  x: a,
2462
2573
  y: l
2463
2574
  });
2464
2575
  });
2465
- const [De, $e] = A(!1), [Ie, Be] = A(null), [ze, Ne] = A(null), Le = le((e) => {
2466
- if (Ie) return Ie.focus(e), !0;
2576
+ const [$e, ze] = H(!1), [Be, Le] = H(null), [Ne, Oe] = H(null), Ee = ue((e) => {
2577
+ if (Be) return Be.focus(e), !0;
2467
2578
  if (C) {
2468
- const t = we.current?.querySelectorAll?.(C);
2579
+ const t = fe.current?.querySelectorAll?.(C);
2469
2580
  if (t && t.length > 0) return t[0]?.focus?.(e), !0;
2470
2581
  }
2471
- return we.current?.focus?.(e), !1;
2472
- }, [Ie, C]), Oe = he(o, () => ({ focus: (e) => {
2473
- Le(e);
2474
- } }), []), Ee = K(U);
2475
- N(() => {
2476
- U !== Ee.current && (Ee.current = U, ce(!0));
2477
- }, [U]);
2478
- const Fe = {
2479
- ...te,
2582
+ return fe.current?.focus?.(e), !1;
2583
+ }, [Be, C]), Fe = ye(r, () => ({ focus: (e) => {
2584
+ Ee(e);
2585
+ } }), []), Ae = W(Q);
2586
+ O(() => {
2587
+ Q !== Ae.current && (Ae.current = Q, le(!0));
2588
+ }, [Q]);
2589
+ const Ke = {
2590
+ ...ee,
2480
2591
  onExited: (e) => {
2481
- m?.(null), Q || te?.onExited?.(e);
2592
+ m?.(null), j || ee?.onExited?.(e);
2482
2593
  },
2483
2594
  onExit: (e) => {
2484
- const t = ze, r = "function" == typeof q ? q() : q;
2485
- t && !1 !== r && requestAnimationFrame(() => {
2486
- Oe.current?.contains(document.activeElement) && t.focus();
2487
- }), x?.(), pe(!1), te?.onExit?.(e);
2595
+ const t = Ne, o = "function" == typeof K ? K() : K;
2596
+ t && !1 !== o && requestAnimationFrame(() => {
2597
+ Fe.current?.contains(document.activeElement) && t.focus();
2598
+ }), x?.(), de(!1), ee?.onExit?.(e);
2488
2599
  },
2489
2600
  onEntered: (e, t) => {
2490
- h?.(), te?.onEntered?.(e, t);
2601
+ h?.(), ee?.onEntered?.(e, t);
2491
2602
  },
2492
2603
  onEntering: (e, t) => {
2493
- pe(!0), g?.(Oe.current);
2604
+ de(!0), f?.(Fe.current);
2494
2605
  }
2495
2606
  };
2496
- N(() => {
2497
- de && Le();
2498
- }, [de]);
2499
- let Ke = M(y, {
2500
- open: de,
2607
+ O(() => {
2608
+ se && Ee();
2609
+ }, [se]);
2610
+ const We = Se([Pe, r]);
2611
+ let He = M(y, {
2612
+ open: se,
2501
2613
  disableAutoFocus: !0,
2502
- disableEnforceFocus: !De,
2503
- disableRestoreFocus: !0 !== q,
2504
- children: M(_, {
2505
- in: se,
2506
- timeout: P,
2614
+ disableEnforceFocus: !$e,
2615
+ disableRestoreFocus: !0 !== K,
2616
+ children: M(Y, {
2617
+ in: ae,
2618
+ timeout: T,
2507
2619
  role: "presentation",
2508
- ...Fe,
2620
+ ...Ke,
2509
2621
  children: M(t, {
2510
2622
  className: "MuiDialog-container",
2511
- ref: we,
2623
+ ref: fe,
2512
2624
  tabIndex: 0,
2513
2625
  sx: {
2514
2626
  outline: "none",
2515
2627
  position: "relative"
2516
2628
  },
2517
2629
  onKeyDown: (e) => {
2518
- e.which === ee.Escape && (Re(), xe.current?.start(e, { center: !1 }), setTimeout(() => xe.current?.stop(e), 180)), e.stopPropagation();
2630
+ e.which === re.Escape && (Ie(), pe.current?.start(e, { center: !1 }), setTimeout(() => pe.current?.stop(e), 180)), e.stopPropagation();
2519
2631
  },
2520
- children: S(_t, {
2521
- ref: ge([Te, o]),
2522
- className: W({ "Mui-focusVisible": De }, B, "draggable"),
2632
+ children: S(co, {
2633
+ ref: We,
2634
+ className: V({ "Mui-focusVisible": $e }, z, "draggable"),
2523
2635
  sx: {
2524
- "& *": (e) => mt(e),
2636
+ "& *": (e) => vt(e),
2525
2637
  pointerEvents: "auto",
2526
2638
  userSelect: "none",
2527
2639
  backgroundColor: "var(--sxl-color-elevated, var(--sxl-color-base-100))",
2528
2640
  border: "1px solid var(--sxl-color-elevated-border, transparent)",
2529
- "&:hover:not([disabled]):not(.Mui-focusVisible)": { outline: (e) => `solid ${H(e.palette.text?.primary, .2)} 1px` },
2530
- "&.Mui-focusVisible": { outline: (e) => `solid ${H(e.palette.text?.primary, .2)} 1px` },
2641
+ "&:hover:not([disabled]):not(.Mui-focusVisible)": { outline: (e) => `solid ${q(e.palette.text?.primary, .2)} 1px` },
2642
+ "&.Mui-focusVisible": { outline: (e) => `solid ${q(e.palette.text?.primary, .2)} 1px` },
2531
2643
  position: "absolute",
2532
2644
  maxWidth: "100%",
2533
- ...I
2645
+ ...$
2534
2646
  },
2535
2647
  defaultPosition: ne,
2536
- titleSize: Se,
2537
- rootSize: ve,
2538
- PaperComponent: Z,
2648
+ titleSize: we,
2649
+ rootSize: he,
2650
+ PaperComponent: J,
2539
2651
  ...X,
2540
2652
  ...oe,
2541
2653
  children: [p ? M(l, {
2542
- className: W({ "Mui-selected": De }, "draggable-title"),
2654
+ className: V({ "Mui-selected": $e }, "draggable-title"),
2543
2655
  sx: {
2544
2656
  cursor: "move",
2545
2657
  display: "flex",
@@ -2553,16 +2665,17 @@ var Yt = {
2553
2665
  opacity: 1,
2554
2666
  transitionDuration: (e) => e.transitions.duration.shortest / 2 + "ms"
2555
2667
  },
2556
- backgroundColor: (e) => H(e.palette.action.hover, .03)
2668
+ backgroundColor: (e) => q(e.palette.action.hover, .03)
2557
2669
  },
2558
- ref: Me,
2670
+ ref: ve,
2559
2671
  children: S(t, {
2560
2672
  sx: {
2561
2673
  display: "flex",
2562
2674
  flex: "1 1 10%",
2563
2675
  flexDirection: "row",
2564
2676
  alignItems: "center",
2565
- marginTop: (e) => e.spacing(1),
2677
+ marginTop: (e) => e.spacing(.25),
2678
+ marginBottom: (e) => e.spacing(.25),
2566
2679
  marginLeft: (e) => e.spacing(1),
2567
2680
  marginRight: (e) => e.spacing(1)
2568
2681
  },
@@ -2572,46 +2685,50 @@ var Yt = {
2572
2685
  paddingLeft: (e) => e.spacing(1)
2573
2686
  },
2574
2687
  children: p
2575
- }), M(Rt, {
2688
+ }), M(Nt, {
2576
2689
  label: a("window.close"),
2577
2690
  children: M(d, {
2578
2691
  "aria-label": "close",
2579
2692
  sx: { color: (e) => e.palette.text.icon ?? e.palette.action.active },
2580
- touchRippleRef: xe,
2693
+ touchRippleRef: pe,
2581
2694
  onPointerDown: (e) => {
2582
- xe.current?.start(e, { center: !1 }), e.stopPropagation(), e.preventDefault();
2695
+ pe.current?.start(e, { center: !1 }), e.stopPropagation(), e.preventDefault();
2583
2696
  },
2584
- onPointerUp: Re,
2585
- children: M(Y, { iconKey: "Close" })
2697
+ onPointerUp: Ie,
2698
+ children: M(Z, { iconKey: "Close" })
2586
2699
  })
2587
2700
  })]
2588
2701
  })
2589
- }) : null, T]
2702
+ }) : null, P]
2590
2703
  })
2591
2704
  })
2592
2705
  })
2593
- }), Ae = null;
2594
- F && !V && (Ae = M(J, {
2595
- ...re,
2596
- open: se,
2706
+ }), Ve = null;
2707
+ N && !A && (Ve = M(_, {
2708
+ ...te,
2709
+ open: ae,
2597
2710
  onMouseDown: (e) => {
2598
- Re(), re?.onMouseDown?.(e);
2711
+ Ie(), te?.onMouseDown?.(e);
2599
2712
  },
2600
2713
  onClick: (e) => {
2601
- b?.(e, "backdropClick"), re?.onClick?.(e);
2714
+ b?.(e, "backdropClick"), te?.onClick?.(e);
2602
2715
  },
2603
2716
  sx: {
2604
2717
  pointerEvents: "auto",
2605
- ...re?.sx
2718
+ ...te?.sx
2606
2719
  }
2607
2720
  }));
2608
- const { getPortalContainer: We } = me(), { className: He, attrs: Ve } = ie(ue()?.themeScope);
2609
- return Ce(S(t, {
2610
- className: W("MuiModal-root", He),
2611
- ...Ve,
2721
+ const { getPortalContainer: qe } = be(), { className: je, attrs: Qe } = ce(xe()?.themeScope), Ge = Se([
2722
+ Fe,
2723
+ me,
2724
+ ge
2725
+ ]);
2726
+ return De(S(t, {
2727
+ className: V("MuiModal-root", je),
2728
+ ...Qe,
2612
2729
  sx: {
2613
2730
  position: "fixed",
2614
- zIndex: "1300",
2731
+ zIndex: Me("popup"),
2615
2732
  right: "0",
2616
2733
  bottom: "0",
2617
2734
  top: "0",
@@ -2620,88 +2737,96 @@ var Yt = {
2620
2737
  display: "block",
2621
2738
  pointerEvents: "none"
2622
2739
  },
2623
- ref: ge([
2624
- Oe,
2625
- ye,
2626
- ke
2627
- ]),
2740
+ ref: Ge,
2628
2741
  onPointerDown: (e) => {
2629
- De && (e.target === we.current || e.target.tabIndex < 0) && we.current?.contains(document.activeElement);
2742
+ $e && (e.target === fe.current || e.target.tabIndex < 0) && fe.current?.contains(document.activeElement);
2630
2743
  },
2631
2744
  onContextMenu: (e) => {
2632
2745
  e.isPropagationStopped() || e.preventDefault();
2633
2746
  },
2634
2747
  onFocus: (e) => {
2635
- !De && (e.target === we.current || e.target.tabIndex < 0) && setTimeout(() => {
2636
- Le();
2637
- }, 100), $e(!0), we.current?.contains(e.target) && e.target !== we.current && Be(e.target), e.relatedTarget && !ze && Ne(e.relatedTarget);
2748
+ !$e && (e.target === fe.current || e.target.tabIndex < 0) && setTimeout(() => {
2749
+ Ee();
2750
+ }, 100), ze(!0), fe.current?.contains(e.target) && e.target !== fe.current && Le(e.target), e.relatedTarget && !Ne && Oe(e.relatedTarget);
2638
2751
  },
2639
2752
  onBlur: (e) => {
2640
- Oe?.current?.contains(e.relatedTarget) || (Ne(null), $e(!1));
2641
- },
2642
- children: [Ae, Ke]
2643
- }), We(), Pe);
2644
- })), er = ["Ok", "Cancel"], tr = (e) => "string" == typeof e ? e : e.id ?? e, rr = (e, t) => void 0 !== t && tr(e) === tr(t), or = (e) => "string" != typeof e && ("function" == typeof e.disabled ? e.disabled() : !0 === e.disabled), nr = B(D((e, o) => {
2645
- const { description: l, icon: s, onCancel: c, onOption: d, onDone: p, onValidateOption: u, options: m = er, autoFocusSel: h = ".defaultOption", defaultOption: f = m[0], cancelOption: g = "Cancel", autoFocus: x, children: y, ...v } = e, k = Pe({ shouldUseNativeValidation: !1 }), { handleSubmit: w, formState: C } = k, T = K(null), R = K(null), D = fe(), $ = le((e) => "string" != typeof e ? "function" == typeof e.label ? e.label() : e.label : "Ok" === e ? D("dialog.ok") : "Cancel" === e ? D("dialog.cancel") : e, [D]), I = K(null), [B, z] = A(null), N = le(async (e) => {
2646
- const t = tr(e);
2647
- if (null !== B) return;
2648
- if (or(e)) return;
2649
- const r = rr(e, g);
2650
- let o;
2753
+ Fe?.current?.contains(e.relatedTarget) || (Oe(null), ze(!1));
2754
+ },
2755
+ children: [Ve, He]
2756
+ }), qe(), Te);
2757
+ })), mo = ["Ok", "Cancel"], ho = {
2758
+ [ie.Info]: "ValidationInformation",
2759
+ [ie.Warning]: "ValidationWarning",
2760
+ [ie.Error]: "ValidationStop",
2761
+ [ie.Success]: "Check"
2762
+ }, go = (e) => "string" == typeof e ? e : e.id ?? e, fo = (e, t) => void 0 !== t && go(e) === go(t), xo = (e) => "string" != typeof e && ("function" == typeof e.disabled ? e.disabled() : !0 === e.disabled), bo = B($((e, r) => {
2763
+ const { description: l, type: s, icon: c, onCancel: d, onOption: p, onDone: u, onValidateOption: m, options: h = mo, autoFocusSel: g = ".defaultOption", defaultOption: f = h[0], cancelOption: x = "Cancel", autoFocus: y, children: v, ...w } = e, k = Be({ shouldUseNativeValidation: !1 }), { handleSubmit: C, formState: P } = k, R = W(null), D = W(null), I = Ce(), $ = A(() => {
2764
+ const e = "string" == typeof c ? c : c ? void 0 : ho[s];
2765
+ return e ? M(Z, {
2766
+ iconKey: e,
2767
+ size: 32,
2768
+ ariaHidden: !0
2769
+ }) : c ?? null;
2770
+ }, [c, s]), z = ue((e) => "string" != typeof e ? "function" == typeof e.label ? e.label() : e.label : "Ok" === e ? I("dialog.ok") : "Cancel" === e ? I("dialog.cancel") : e, [I]), B = W(null), [L, N] = H(null), O = ue(async (e) => {
2771
+ const t = go(e);
2772
+ if (null !== L) return;
2773
+ if (xo(e)) return;
2774
+ const o = fo(e, x);
2775
+ let r;
2651
2776
  try {
2652
- if (z(t), o = !!r || (await Promise.resolve(u?.(t)) ?? !0), !0 !== o) return;
2653
- await Promise.resolve(d?.(t, r, rr(e, f))), p?.(t);
2777
+ if (N(t), r = !!o || (await Promise.resolve(m?.(t)) ?? !0), !0 !== r) return;
2778
+ await Promise.resolve(p?.(t, o, fo(e, f))), u?.(t);
2654
2779
  } catch (e) {} finally {
2655
- z(null);
2780
+ N(null);
2656
2781
  }
2657
2782
  }, [
2658
- d,
2659
2783
  p,
2660
2784
  u,
2661
- g,
2785
+ m,
2786
+ x,
2662
2787
  f,
2663
- B
2664
- ]), L = le((e, t) => {
2788
+ L
2789
+ ]), E = ue((e, t) => {
2665
2790
  setTimeout(() => {
2666
- N(f);
2791
+ O(f);
2667
2792
  }, 180);
2668
- }, [N, f]), O = le(() => {
2669
- d?.(tr(g), !0, !1), c?.(), p?.(null);
2793
+ }, [O, f]), F = ue(() => {
2794
+ p?.(go(x), !0, !1), d?.(), u?.(null);
2670
2795
  }, [
2796
+ p,
2797
+ x,
2671
2798
  d,
2672
- g,
2673
- c,
2674
- p
2675
- ]), F = C && (Object.keys(C.errors).length > 0 || C.disabled || C.isSubmitting), W = le((e, t, o) => {
2676
- const i = rr(e, g), a = {
2799
+ u
2800
+ ]), K = P && (Object.keys(P.errors).length > 0 || P.disabled || P.isSubmitting), V = ue((e, t, r) => {
2801
+ const i = fo(e, x), a = {
2677
2802
  className: t ? "defaultOption" : "action",
2678
2803
  type: t ? "submit" : "button",
2679
2804
  style: { minWidth: "75px" },
2680
2805
  onClick: () => {
2681
- i ? O() : t || N(e);
2806
+ i ? F() : t || O(e);
2682
2807
  }
2683
2808
  }, l = "string" != typeof e ? e.renderButton : void 0;
2684
- if (l) return M(P, { children: l(a, t) }, `action:${o}`);
2685
- const s = null !== B && rr(e, B), c = {
2809
+ if (l) return M(T, { children: l(a, t) }, `action:${r}`);
2810
+ const s = null !== L && fo(e, L), c = {
2686
2811
  className: t ? "defaultOption" : "action",
2687
2812
  variant: t ? "contained" : "outlined",
2688
2813
  size: "small",
2689
- disabled: !i && (F || or(e)) || null !== B && !s,
2814
+ disabled: !i && (K || xo(e)) || null !== L && !s,
2690
2815
  color: "primary",
2691
2816
  ...a
2692
2817
  };
2693
2818
  if (t || i) {
2694
- const e = t ? T : R;
2819
+ const e = t ? R : D;
2695
2820
  c.touchRippleRef = e, c.onPointerDown = (t) => {
2696
2821
  e.current?.start(t, { center: !1 }), t.stopPropagation(), t.preventDefault();
2697
2822
  };
2698
2823
  }
2699
- return S(r, {
2824
+ return S(o, {
2700
2825
  ...c,
2701
2826
  children: [M("div", {
2702
2827
  style: { visibility: s ? "hidden" : void 0 },
2703
- children: $(e)
2704
- }), u && !i ? M(n, {
2828
+ children: z(e)
2829
+ }), m && !i ? M(n, {
2705
2830
  size: 16,
2706
2831
  color: "inherit",
2707
2832
  style: { opacity: s ? 1 : 0 },
@@ -2714,57 +2839,57 @@ var Yt = {
2714
2839
  transition: "opacity 120ms"
2715
2840
  }
2716
2841
  }) : null]
2717
- }, `action:${o}`);
2842
+ }, `action:${r}`);
2718
2843
  }, [
2719
- m,
2844
+ h,
2720
2845
  f,
2721
- g,
2722
- C,
2723
- $,
2724
- B
2725
- ]), V = E(() => {
2846
+ x,
2847
+ P,
2848
+ z,
2849
+ L
2850
+ ]), j = A(() => {
2726
2851
  const e = [];
2727
- for (let t = 0; t < m.length; t++) {
2728
- const r = m[t], o = void 0 !== f ? rr(r, f) : 0 === t;
2729
- e.push(W(r, o, t));
2852
+ for (let t = 0; t < h.length; t++) {
2853
+ const o = h[t], r = void 0 !== f ? fo(o, f) : 0 === t;
2854
+ e.push(V(o, r, t));
2730
2855
  }
2731
2856
  return e;
2732
2857
  }, [
2733
- m,
2858
+ h,
2734
2859
  f,
2735
- C,
2736
- D,
2737
- B
2860
+ P,
2861
+ I,
2862
+ L
2738
2863
  ]);
2739
- return M(Zt, {
2740
- onCancel: O,
2741
- initialPosition: { y: "touch" === Se ? "15" : "35" },
2742
- onDone: p,
2743
- autoFocusSel: h,
2864
+ return M(uo, {
2865
+ onCancel: F,
2866
+ initialPosition: { y: "touch" === $e ? "15" : "35" },
2867
+ onDone: u,
2868
+ autoFocusSel: g,
2744
2869
  isModal: !0,
2745
- ref: o,
2746
- ...v,
2747
- children: M(Te, {
2870
+ ref: r,
2871
+ ...w,
2872
+ children: M(ze, {
2748
2873
  ...k,
2749
2874
  children: S("form", {
2750
- ref: I,
2751
- onSubmit: w(L),
2875
+ ref: B,
2876
+ onSubmit: C(E),
2752
2877
  children: [M(a, {
2753
2878
  dividers: !0,
2754
2879
  onKeyDown: (e) => {
2755
2880
  if (e.isDefaultPrevented()) return;
2756
2881
  e.stopPropagation();
2757
- let t = null, r = null;
2758
- const o = e.which === ee.Escape && g;
2759
- if (o) {
2760
- if (null !== B) return;
2761
- t = g, r = R;
2882
+ let t = null, o = null;
2883
+ const r = e.which === re.Escape && x;
2884
+ if (r) {
2885
+ if (null !== L) return;
2886
+ t = x, o = D;
2762
2887
  } else {
2763
- if (F || null !== B) return;
2764
- e.which === ee.Enter && (t = f ?? m[0], r = T);
2888
+ if (K || null !== L) return;
2889
+ e.which === re.Enter && (t = f ?? h[0], o = R);
2765
2890
  }
2766
- t && (r?.current?.start(e, { center: !1 }), setTimeout(() => {
2767
- r?.current?.stop(e), o && O();
2891
+ t && (o?.current?.start(e, { center: !1 }), setTimeout(() => {
2892
+ o?.current?.stop(e), r && F();
2768
2893
  }, 180));
2769
2894
  },
2770
2895
  children: S(t, {
@@ -2772,15 +2897,26 @@ var Yt = {
2772
2897
  display: "flex",
2773
2898
  flexDirection: "column",
2774
2899
  whiteSpace: "pre-wrap",
2775
- rowGap: (e) => e.spacing(s || l ? 1.5 : 0)
2900
+ rowGap: (e) => e.spacing($ || l ? 1.5 : 0)
2776
2901
  },
2777
2902
  children: [S(t, {
2778
2903
  sx: {
2779
2904
  display: "flex",
2780
- flexDirection: "column"
2905
+ flexDirection: "row",
2906
+ alignItems: "flex-start",
2907
+ columnGap: (e) => e.spacing(2)
2781
2908
  },
2782
- children: [s, M(b, { children: l })]
2783
- }), y]
2909
+ children: [$ ? M(t, {
2910
+ sx: {
2911
+ display: "flex",
2912
+ flex: "none"
2913
+ },
2914
+ children: $
2915
+ }) : null, M(b, {
2916
+ sx: { alignSelf: "center" },
2917
+ children: l
2918
+ })]
2919
+ }), v]
2784
2920
  })
2785
2921
  }), M(i, {
2786
2922
  sx: {
@@ -2788,58 +2924,61 @@ var Yt = {
2788
2924
  paddingBottom: (e) => e.spacing(1),
2789
2925
  paddingLeft: (e) => e.spacing(1),
2790
2926
  paddingRight: (e) => e.spacing(1),
2791
- backgroundColor: (e) => H(e.palette.action.hover, .03)
2927
+ backgroundColor: (e) => q(e.palette.action.hover, .03)
2792
2928
  },
2793
- children: V
2929
+ children: j
2794
2930
  })]
2795
2931
  })
2796
2932
  })
2797
2933
  });
2798
- })), ir = (e) => {
2799
- const { showModal: t } = we();
2800
- return (r) => new Promise((o) => {
2801
- const n = t(nr, {
2934
+ })), yo = (e) => {
2935
+ const { showModal: t } = Re();
2936
+ return (o) => new Promise((r) => {
2937
+ const n = t(bo, {
2802
2938
  ...e,
2803
- ...r,
2939
+ ...o,
2804
2940
  onOption(e, t, n) {
2805
- r?.onOption?.(e, t, n), o(e);
2941
+ o?.onOption?.(e, t, n), r(e);
2806
2942
  },
2807
2943
  onDone: () => {
2808
- r?.onDone?.(), n.hide();
2944
+ o?.onDone?.(), n.hide();
2809
2945
  }
2810
2946
  });
2811
2947
  });
2812
- }, ar = I(() => import("./Dil2ramfxzB8VR3D.mjs")), lr = (e) => {
2813
- const { showModal: t } = we();
2814
- return (r) => {
2815
- const { defaultOption: o = r.options?.[0], cancelOption: n = "Cancel", ...i } = r;
2816
- return new Promise((r) => {
2817
- const a = t(ar, {
2948
+ }, vo = ao(X("utils-mui:inputDialog", () => import("./CDbyr3-seMLR2Y_3.mjs")).load), wo = (e) => {
2949
+ const { showModal: t } = Re();
2950
+ return (o) => {
2951
+ const { defaultOption: r = o.options?.[0], cancelOption: n = "Cancel", ...i } = o;
2952
+ return new Promise((o, a) => {
2953
+ const l = t(vo, {
2818
2954
  ...e,
2819
- defaultOption: o,
2955
+ defaultOption: r,
2820
2956
  cancelOption: n,
2821
2957
  ...i,
2822
- onOption(e, t, o) {
2823
- i?.onOption?.(e, t, o), r({
2958
+ onOption(e, t, r) {
2959
+ i?.onOption?.(e, t, r), o({
2824
2960
  input: "",
2825
2961
  option: e
2826
2962
  });
2827
2963
  },
2828
2964
  onInput(e, t) {
2829
- i?.onInput?.(e, t), r({
2965
+ i?.onInput?.(e, t), o({
2830
2966
  input: e,
2831
2967
  option: t
2832
2968
  });
2833
2969
  },
2834
2970
  onDone: () => {
2835
- i?.onDone?.(), a.hide();
2971
+ i?.onDone?.(), l.hide();
2972
+ },
2973
+ onLoadError: (e) => {
2974
+ l.destroy(), a(e);
2836
2975
  }
2837
2976
  });
2838
2977
  });
2839
2978
  };
2840
- }, sr = B(D((e, t) => {
2841
- const { commandKey: r, command: o, disabled: n, shortcut: i, children: a, ...l } = e, [s] = ce(r ?? []), c = o ?? s, d = c?.getShortcut();
2842
- return M(Rt, {
2979
+ }, ko = B($((e, t) => {
2980
+ const { commandKey: o, command: r, disabled: n, shortcut: i, children: a, ...l } = e, [s] = he(o ?? []), c = r ?? s, d = c?.getShortcut();
2981
+ return M(Nt, {
2843
2982
  ref: t,
2844
2983
  label: void 0 !== n ? c?.getLabel() : "",
2845
2984
  shortcut: void 0 !== i ? i : Array.isArray(d) ? d[0] : d,
@@ -2855,92 +2994,98 @@ var Yt = {
2855
2994
  children: a
2856
2995
  })
2857
2996
  });
2858
- })), cr = Re;
2859
- function dr() {
2860
- const e = K(null);
2997
+ })), Co = Le;
2998
+ function Mo() {
2999
+ const e = W(null);
2861
3000
  return {
2862
- ripple: E(() => M(cr, {
3001
+ ripple: A(() => M(Co, {
2863
3002
  ref: e,
2864
3003
  center: !1
2865
3004
  }), []),
2866
- trigger: z(() => {
3005
+ trigger: L(() => {
2867
3006
  e.current?.start(void 0, { center: !0 }), setTimeout(() => e.current?.stop(), 180);
2868
3007
  }, [])
2869
3008
  };
2870
3009
  }
2871
- var pr = M(Y, {}), ur = B(D((e, t) => {
2872
- const { commandKey: r, command: o, groupKey: n, icon: i, label: a, showLabel: l = !1, disabled: s, variant: c = G.Toolbar, shortcut: d, commandState: p, propsTooltip: u, ...m } = e, { ripple: h, trigger: f } = dr(), g = E(() => ({ onExecute() {
2873
- f();
2874
- } }), [f]), [x] = ce(r ?? [], g), b = o ?? x, y = z((e) => {
3010
+ var So = M(Z, {}), Po = B($((e, t) => {
3011
+ const { commandKey: o, command: r, groupKey: n, icon: i, label: a, showLabel: l = !1, disabled: s, variant: c = _.Toolbar, shortcut: d, commandState: p, propsTooltip: u, ...m } = e, { ripple: h, trigger: g } = Mo(), f = A(() => ({ onExecute() {
3012
+ g();
3013
+ } }), [g]), [x] = he(o ?? [], f), b = r ?? x, y = L((e) => {
2875
3014
  0 === e.button && e.preventDefault();
2876
- }, []), v = z(async (e) => {
3015
+ }, []), v = L(async (e) => {
2877
3016
  0 === e.button && b && await b.execute(p);
2878
- }, [b, p]), k = z((e) => {
2879
- e.keyCode !== ee.Enter && e.keyCode !== ee.Space || b?.execute(p);
2880
- }, [b, p]), w = E(() => {
2881
- if (null === i) return pr;
3017
+ }, [b, p]), w = L((e) => {
3018
+ e.keyCode !== re.Enter && e.keyCode !== re.Space || b?.execute(p);
3019
+ }, [b, p]), k = s ?? (!b || b.disabled()), C = b?.getState(), P = A(() => {
3020
+ if (null === i) return So;
2882
3021
  let e;
2883
- return e = "function" == typeof i ? b ? i(b) : void 0 : i, e || (e = b?.getIcon(n)), e ? ("string" == typeof e && (e = M(Y, { iconKey: e })), e) : c === G.Toolbar || b?.getState() ? void 0 : pr;
2884
- }, [b?.getIcon(n), i]), C = s ?? (!b || b.disabled()), T = b?.getState(), P = {
3022
+ return e = "function" == typeof i ? b ? i(b) : void 0 : i, e || (e = b?.getIcon(n)), e ? ("string" == typeof e && (e = M(Z, { iconKey: e })), e) : c === _.Toolbar || C ? void 0 : So;
3023
+ }, [
3024
+ b,
3025
+ n,
3026
+ i,
3027
+ C,
3028
+ c
3029
+ ]), T = {
2885
3030
  tabIndex: 0,
2886
3031
  ref: t,
2887
- selected: !!T,
2888
- icon: c === G.Toolbar ? l ? $e(w, a ?? b?.getLabel(n)) : w : M(Vt, {
2889
- selected: T ?? !1,
2890
- children: w
3032
+ selected: !!C,
3033
+ icon: c === _.Toolbar ? l ? Oe(P, a ?? b?.getLabel(n)) : P : M(_t, {
3034
+ selected: C ?? !1,
3035
+ children: P
2891
3036
  }),
2892
3037
  disableRipple: !0,
2893
- disabled: C,
3038
+ disabled: k,
2894
3039
  onMouseDown: y,
2895
3040
  onMouseUp: v,
2896
- onKeyDown: k
3041
+ onKeyDown: w
2897
3042
  };
2898
3043
  let R;
2899
- return R = c === G.Menuitem ? S(Nt, {
3044
+ return R = c === _.Menuitem ? S(Ht, {
2900
3045
  ...m,
2901
- ...P,
3046
+ ...T,
2902
3047
  children: [a ?? b?.getLabel(n), h]
2903
- }) : M(It, {
3048
+ }) : M(Ft, {
2904
3049
  ...m,
2905
- ...P,
3050
+ ...T,
2906
3051
  children: h
2907
- }), a || b?.getLabel() ? (C && (R = M("div", { children: R })), R = M(sr, {
2908
- commandKey: r,
2909
- command: o,
2910
- disabled: C,
2911
- placement: c === G.Toolbar ? "bottom-start" : "right-start",
3052
+ }), a || b?.getLabel() ? (k && (R = M("div", { children: R })), R = M(ko, {
3053
+ commandKey: o,
3054
+ command: r,
3055
+ disabled: k,
3056
+ placement: c === _.Toolbar ? "bottom-start" : "right-start",
2912
3057
  shortcut: d,
2913
3058
  ...u,
2914
3059
  children: R
2915
3060
  }), R) : R;
2916
3061
  }));
2917
- ur.displayName = "CommandButton";
2918
- var mr = M(Y, {}), hr = B(D((e, t) => {
2919
- const { commandKey: r, groupKey: o, icon: n, commandState: i, label: a, variant: l = G.Toolbar, disabled: s, parseInput: c, inputProps: u, inputRef: m, ...h } = e, { ripple: f, trigger: g } = dr(), x = E(() => ({ onExecute() {
2920
- g();
2921
- } }), [g]), b = ce(r ?? [], x)[0], y = () => b?.getState()?.toString() || "", [v, k] = A(""), w = K(y()), C = le(() => {
3062
+ Po.displayName = "CommandButton";
3063
+ var To = M(Z, {}), Ro = B($((e, t) => {
3064
+ const { commandKey: o, groupKey: r, icon: n, commandState: i, label: a, variant: l = _.Toolbar, disabled: s, parseInput: c, inputProps: u, inputRef: m, ...h } = e, { ripple: g, trigger: f } = Mo(), x = A(() => ({ onExecute() {
3065
+ f();
3066
+ } }), [f]), b = he(o ?? [], x)[0], y = () => b?.getState()?.toString() || "", [v, w] = H(""), k = W(y()), C = ue(() => {
2922
3067
  let e = v;
2923
3068
  if (c) try {
2924
3069
  e = c(v);
2925
3070
  } catch (e) {
2926
- k(y());
3071
+ w(y());
2927
3072
  return;
2928
3073
  }
2929
- w.current !== v ? (w.current = v, b?.execute(e)) : k(y());
3074
+ k.current !== v ? (k.current = v, b?.execute(e)) : w(y());
2930
3075
  }, [
2931
3076
  y,
2932
3077
  b,
2933
3078
  v,
2934
3079
  c
2935
3080
  ]);
2936
- N(() => {
2937
- k(y());
3081
+ O(() => {
3082
+ w(y());
2938
3083
  }, [b?.getState()]);
2939
- const T = E(() => {
2940
- if (null === n) return mr;
3084
+ const P = A(() => {
3085
+ if (null === n) return To;
2941
3086
  let e;
2942
- return e = "function" == typeof n ? b ? n(b) : void 0 : n, e || (e = b?.getIcon()), e ? ("string" == typeof e && (e = M(Y, { iconKey: e })), e) : l === G.Toolbar || b?.getState() ? void 0 : mr;
2943
- }, [b?.getIcon(), n]), P = E(() => void 0 === a ? b?.getLabel(o) : "function" == typeof a ? a() : a, [a, b?.getLabel(o)]), R = s ?? (!b || b.disabled()), D = E(() => M(d, {
3087
+ return e = "function" == typeof n ? b ? n(b) : void 0 : n, e || (e = b?.getIcon()), e ? ("string" == typeof e && (e = M(Z, { iconKey: e })), e) : l === _.Toolbar || b?.getState() ? void 0 : To;
3088
+ }, [b?.getIcon(), n]), T = A(() => void 0 === a ? b?.getLabel(r) : "function" == typeof a ? a() : a, [a, b?.getLabel(r)]), R = s ?? (!b || b.disabled()), D = A(() => M(d, {
2944
3089
  ...h,
2945
3090
  sx: {
2946
3091
  paddingTop: "0px",
@@ -2987,14 +3132,14 @@ var mr = M(Y, {}), hr = B(D((e, t) => {
2987
3132
  e.target?.select();
2988
3133
  },
2989
3134
  onKeyDown: (e) => {
2990
- if (e.which === ee.Enter) y() !== v && (e.stopPropagation(), e.preventDefault(), C());
2991
- else if (e.which === ee.Escape) y() !== v && (k(y()), setTimeout(() => {
3135
+ if (e.which === re.Enter) y() !== v && (e.stopPropagation(), e.preventDefault(), C());
3136
+ else if (e.which === re.Escape) y() !== v && (w(y()), setTimeout(() => {
2992
3137
  e.target?.select();
2993
3138
  }, 0), e.stopPropagation(), e.preventDefault());
2994
3139
  else {
2995
3140
  if (e.key.match("[-]")) return e.stopPropagation(), void e.preventDefault();
2996
3141
  if (e.key.match("[0-9.]") && (v + e.key).length > 4) return e.stopPropagation(), void e.preventDefault();
2997
- if (e.which === ee.Space) return void e.preventDefault();
3142
+ if (e.which === re.Space) return void e.preventDefault();
2998
3143
  }
2999
3144
  },
3000
3145
  onBlur: () => {
@@ -3002,7 +3147,7 @@ var mr = M(Y, {}), hr = B(D((e, t) => {
3002
3147
  },
3003
3148
  onChange: (e) => {
3004
3149
  if (e.target.value.length > 4) return e.stopPropagation(), void e.preventDefault();
3005
- k(e.target.value);
3150
+ w(e.target.value);
3006
3151
  }
3007
3152
  })
3008
3153
  }), [
@@ -3010,10 +3155,10 @@ var mr = M(Y, {}), hr = B(D((e, t) => {
3010
3155
  R,
3011
3156
  u,
3012
3157
  m
3013
- ]), $ = {
3158
+ ]), I = {
3014
3159
  tabIndex: 0,
3015
3160
  ref: t,
3016
- icon: T,
3161
+ icon: P,
3017
3162
  disableRipple: !0,
3018
3163
  disabled: s || !b || b.disabled(),
3019
3164
  onMouseDown: (e) => {
@@ -3023,35 +3168,35 @@ var mr = M(Y, {}), hr = B(D((e, t) => {
3023
3168
  0 !== e.button || e.isPropagationStopped() || e.isDefaultPrevented() || e.isDefaultPrevented() || (e.preventDefault(), C());
3024
3169
  },
3025
3170
  onKeyDown: (e) => {
3026
- e.keyCode !== ee.Enter && e.keyCode !== ee.Tab || C();
3171
+ e.keyCode !== re.Enter && e.keyCode !== re.Tab || C();
3027
3172
  }
3028
3173
  };
3029
- let I;
3030
- return I = l === G.Menuitem ? S(Nt, {
3174
+ let $;
3175
+ return $ = l === _.Menuitem ? S(Ht, {
3031
3176
  ...h,
3032
- ...$,
3177
+ ...I,
3033
3178
  children: [
3034
- P,
3179
+ T,
3035
3180
  D,
3036
- f
3181
+ g
3037
3182
  ]
3038
- }) : M(It, {
3183
+ }) : M(Ft, {
3039
3184
  ...h,
3040
- ...$,
3041
- children: f
3042
- }), b?.getLabel() ? ((b.disabled() || s) && (I = M("div", { children: I })), I = M(sr, {
3043
- commandKey: r,
3044
- placement: l === G.Toolbar ? "bottom-start" : "right-start",
3045
- children: I
3046
- }), I) : I;
3047
- })), fr = B(D((e, t) => {
3048
- const { variant: r = G.Toolbar, quickCommand: o, onQuickClick: n, commandState: i, disabled: a, label: l, icon: s, createPopupPanel: c, tooltip: d, selected: p, groupKey: u, ...m } = e, { ripple: h, trigger: f } = dr(), g = E(() => ({ onExecute() {
3049
- f();
3050
- } }), [f]), [x] = ce(o ?? [], g), { label: b, icon: y } = E(() => {
3185
+ ...I,
3186
+ children: g
3187
+ }), b?.getLabel() ? ((b.disabled() || s) && ($ = M("div", { children: $ })), $ = M(ko, {
3188
+ commandKey: o,
3189
+ placement: l === _.Toolbar ? "bottom-start" : "right-start",
3190
+ children: $
3191
+ }), $) : $;
3192
+ })), Do = B($((e, t) => {
3193
+ const { variant: o = _.Toolbar, quickCommand: r, onQuickClick: n, commandState: i, disabled: a, label: l, icon: s, createPopupPanel: c, tooltip: d, selected: p, groupKey: u, ...m } = e, { ripple: h, trigger: g } = Mo(), f = A(() => ({ onExecute() {
3194
+ g();
3195
+ } }), [g]), [x] = he(r ?? [], f), { label: b, icon: y } = A(() => {
3051
3196
  let e = null;
3052
3197
  l && (e = "function" == typeof l ? x ? l(x) : null : l), e || (e = x?.getLabel?.(u));
3053
3198
  let t = s;
3054
- return t || (t = x?.getIcon?.(u)), "string" == typeof t ? t = M(Y, { iconKey: t }) : "function" == typeof t && (t = x ? t(x) : void 0), {
3199
+ return t || (t = x?.getIcon?.(u)), "string" == typeof t ? t = M(Z, { iconKey: t }) : "function" == typeof t && (t = x ? t(x) : void 0), {
3055
3200
  label: e,
3056
3201
  icon: t
3057
3202
  };
@@ -3060,114 +3205,114 @@ var mr = M(Y, {}), hr = B(D((e, t) => {
3060
3205
  l,
3061
3206
  s
3062
3207
  ]), v = {
3063
- disabled: a || !(x || !o),
3208
+ disabled: a || !(x || !r),
3064
3209
  ripple: h,
3065
3210
  onQuickClick: n,
3066
3211
  tooltip: d,
3067
3212
  label: b,
3068
3213
  icon: y
3069
3214
  };
3070
- (b || d) && (v.createTooltip = ({ children: e }, t) => M(Rt, {
3215
+ (b || d) && (v.createTooltip = ({ children: e }, t) => M(Nt, {
3071
3216
  label: b,
3072
3217
  description: d,
3073
3218
  disabled: t,
3074
3219
  children: e
3075
3220
  }));
3076
- const k = le((e) => c?.(e), [c]), w = le((e) => x?.execute(i), [x]);
3077
- return x ? (v.propsQuickButton = {}, v.propsQuickButton.createTooltip = ({ children: e, placement: t }, n) => M(sr, {
3078
- commandKey: o,
3079
- placement: t ?? r === G.Toolbar ? "bottom-start" : "right-start",
3221
+ const w = ue((e) => c?.(e), [c]), k = ue((e) => x?.execute(i), [x]);
3222
+ return x ? (v.propsQuickButton = {}, v.propsQuickButton.createTooltip = ({ children: e, placement: t }, n) => M(ko, {
3223
+ commandKey: r,
3224
+ placement: t ?? o === _.Toolbar ? "bottom-start" : "right-start",
3080
3225
  disabled: n,
3081
3226
  children: e
3082
- }), v.disabled = v.disabled ?? x?.disabled(), n || (v.onQuickClick = w)) : o && (v.onQuickClick = () => {}), v.selected = p ?? x?.getState(), v.createPopupPanel = k, r === G.Toolbar ? M(Ot, {
3227
+ }), v.disabled = v.disabled ?? x?.disabled(), n || (v.onQuickClick = k)) : r && (v.onQuickClick = () => {}), v.selected = p ?? x?.getState(), v.createPopupPanel = w, o === _.Toolbar ? M(qt, {
3083
3228
  ...m,
3084
3229
  ...v,
3085
3230
  ref: t
3086
- }) : M(Kt, {
3231
+ }) : M(Gt, {
3087
3232
  ...m,
3088
3233
  ...v,
3089
3234
  ref: t
3090
3235
  });
3091
3236
  }));
3092
- function gr(e, t = {}) {
3093
- const { variant: r, dividerOrientation: o = "vertical", groupKey: n, commandState: i, propsCommandButton: a, propsCommandPopup: l, registry: s } = t, c = { ...a };
3094
- void 0 !== r && (c.variant = r);
3237
+ function Io(e, t = {}) {
3238
+ const { variant: o, dividerOrientation: r = "vertical", groupKey: n, commandState: i, propsCommandButton: a, propsCommandPopup: l, registry: s } = t, c = { ...a };
3239
+ void 0 !== o && (c.variant = o);
3095
3240
  const d = { ...l };
3096
- void 0 !== r && (d.variant = r);
3097
- const p = (e, t, r) => {
3098
- const o = {
3241
+ void 0 !== o && (d.variant = o);
3242
+ const p = (e, t, o) => {
3243
+ const r = {
3099
3244
  ...c,
3100
3245
  groupKey: n,
3101
3246
  commandKey: e,
3102
3247
  commandState: void 0 !== t ? t : i,
3103
- label: r?.getLabel?.(n),
3104
- icon: r?.getIcon?.(n),
3105
- showLabel: r?.showLabel
3248
+ label: o?.getLabel?.(n),
3249
+ icon: o?.getIcon?.(n),
3250
+ showLabel: o?.showLabel
3106
3251
  };
3107
- return (r?.render ? r.render(o, n) : M(ur, { ...o })) ?? null;
3252
+ return (o?.render ? o.render(r, n) : M(Po, { ...r })) ?? null;
3108
3253
  }, u = (e) => {
3109
- const t = "string" == typeof e ? e : e.key, r = "string" == typeof e ? void 0 : e;
3110
- if (!t) return ((e) => Array.isArray(e.members) ? e.render ? e.render({ ...d }, void 0) ?? null : M(xr, {
3254
+ const t = "string" == typeof e ? e : e.key, o = "string" == typeof e ? void 0 : e;
3255
+ if (!t) return ((e) => Array.isArray(e.members) ? e.render ? e.render({ ...d }, void 0) ?? null : M($o, {
3111
3256
  ...d,
3112
3257
  members: e.members,
3113
3258
  icon: e.getIcon?.(),
3114
3259
  label: e.getLabel?.(),
3115
3260
  tooltip: e.getDescription?.()
3116
3261
  }) : (e.render ? e.render({ ...d }, n) : null) ?? null)(e);
3117
- const o = s?.get(t) ?? null;
3118
- return o ? ((e, t, r) => {
3119
- if (Array.isArray(e.members)) return e.render ? e.render({ ...d }, t) ?? null : M(xr, {
3262
+ const r = s?.get(t) ?? null;
3263
+ return r ? ((e, t, o) => {
3264
+ if (Array.isArray(e.members)) return e.render ? e.render({ ...d }, t) ?? null : M($o, {
3120
3265
  ...d,
3121
3266
  groupKey: t,
3122
- icon: r?.getIcon?.(t),
3123
- label: r?.getLabel?.(t),
3124
- showLabel: r?.showLabel
3267
+ icon: o?.getIcon?.(t),
3268
+ label: o?.getLabel?.(t),
3269
+ showLabel: o?.showLabel
3125
3270
  });
3126
3271
  if (e.render) return e.render({ ...d }, n) ?? null;
3127
- const o = r ? {
3272
+ const r = o ? {
3128
3273
  ...e,
3129
- ...r
3274
+ ...o
3130
3275
  } : e;
3131
- return p(e.defaultKey ?? t, o.state, o);
3132
- })(o, t, r) : p(t, r?.state, r);
3276
+ return p(e.defaultKey ?? t, r.state, r);
3277
+ })(r, t, o) : p(t, o?.state, o);
3133
3278
  }, m = [];
3134
- let h = 0, f = !1, g = !1;
3279
+ let h = 0, g = !1, f = !1;
3135
3280
  const x = e ?? [];
3136
3281
  for (let e = 0; e < x.length; e++) {
3137
3282
  const t = x[e];
3138
3283
  if (!t || "-" === t) {
3139
- g && (f = !0);
3284
+ f && (g = !0);
3140
3285
  continue;
3141
3286
  }
3142
- const r = u(t);
3143
- r && (f && (m.push(M(Oe, { orientation: o }, "member-" + h++)), f = !1), m.push(R(r, { key: "member-" + h++ })), g = !0);
3287
+ const o = u(t);
3288
+ o && (g && (m.push(M(He, { orientation: r }, "member-" + h++)), g = !1), m.push(D(o, { key: "member-" + h++ })), f = !0);
3144
3289
  }
3145
3290
  return m;
3146
3291
  }
3147
- fr.displayName = "CommandPopupButton";
3148
- var xr = B(D((e, t) => {
3149
- const { groupKey: r, members: o, registry: n, quickCommand: i, icon: a, label: l, showLabel: s, tooltip: c, commandState: d, disabled: p, ...u } = e, m = se(), h = n ?? m, f = !o && r ? h.get(r) : null, g = f && Array.isArray(f.members) ? f : null, x = E(() => o ?? (r ? h.resolveMembers(r) : null) ?? null, [
3150
- o,
3292
+ Do.displayName = "CommandPopupButton";
3293
+ var $o = B($((e, t) => {
3294
+ const { groupKey: o, members: r, registry: n, quickCommand: i, icon: a, label: l, showLabel: s, tooltip: c, commandState: d, disabled: p, ...u } = e, m = me(), h = n ?? m, g = !r && o ? h.get(o) : null, f = g && Array.isArray(g.members) ? g : null, x = A(() => r ?? (o ? h.resolveMembers(o) : null) ?? null, [
3151
3295
  r,
3296
+ o,
3152
3297
  h
3153
- ]), b = r, y = i ?? g?.defaultKey, v = a ?? g?.getIcon?.(b), k = l ?? g?.getLabel?.(b), w = s ?? g?.showLabel, C = c ?? g?.getDescription?.(b), S = E(() => {
3298
+ ]), b = o, y = i ?? f?.defaultKey, v = a ?? f?.getIcon?.(b), w = l ?? f?.getLabel?.(b), k = s ?? f?.showLabel, C = c ?? f?.getDescription?.(b), S = A(() => {
3154
3299
  const e = [], t = x ?? [];
3155
- for (let r = 0; r < t.length; r++) {
3156
- const o = t[r];
3157
- o && "-" !== o && ("string" == typeof o ? e.push(o) : o.key && e.push(o.key));
3300
+ for (let o = 0; o < t.length; o++) {
3301
+ const r = t[o];
3302
+ r && "-" !== r && ("string" == typeof r ? e.push(r) : r.key && e.push(r.key));
3158
3303
  }
3159
3304
  return e;
3160
- }, [x]), T = ce(y ? [y, ...S] : S), P = E(() => {
3161
- for (let e = 0; e < T.length; e++) {
3162
- const t = T[e];
3305
+ }, [x]), P = he(y ? [y, ...S] : S), T = A(() => {
3306
+ for (let e = 0; e < P.length; e++) {
3307
+ const t = P[e];
3163
3308
  if (t && !t.disabled()) return !1;
3164
3309
  }
3165
3310
  return !0;
3166
- }, [T]), R = z((e) => {
3311
+ }, [P]), R = L((e) => {
3167
3312
  const t = {};
3168
3313
  void 0 !== p && (t.disabled = p);
3169
- const r = gr(x, {
3170
- variant: G.Menuitem,
3314
+ const o = Io(x, {
3315
+ variant: _.Menuitem,
3171
3316
  dividerOrientation: "horizontal",
3172
3317
  groupKey: b,
3173
3318
  commandState: d,
@@ -3175,9 +3320,9 @@ var xr = B(D((e, t) => {
3175
3320
  propsCommandPopup: t,
3176
3321
  registry: h
3177
3322
  });
3178
- return xt({
3323
+ return Mt({
3179
3324
  ...e,
3180
- children: r
3325
+ children: o
3181
3326
  });
3182
3327
  }, [
3183
3328
  x,
@@ -3186,25 +3331,25 @@ var xr = B(D((e, t) => {
3186
3331
  d,
3187
3332
  p
3188
3333
  ]);
3189
- return x ? M(fr, {
3334
+ return x ? M(Do, {
3190
3335
  ref: t,
3191
3336
  quickCommand: y,
3192
3337
  icon: v,
3193
- label: k,
3194
- showLabel: w,
3338
+ label: w,
3339
+ showLabel: k,
3195
3340
  tooltip: C,
3196
3341
  commandState: d,
3197
- disabled: p ?? P,
3342
+ disabled: p ?? T,
3198
3343
  createPopupPanel: R,
3199
3344
  ...u
3200
3345
  }) : null;
3201
3346
  }));
3202
- xr.displayName = "CommandGroup";
3203
- var br = M(Y, { iconKey: "Check" }), yr = (e) => {
3204
- const { commandKey: r, label: o, groupKey: n, icon: i, sx: a, ...l } = e, [s] = ce(r ?? []), c = E(() => {
3347
+ $o.displayName = "CommandGroup";
3348
+ var zo = M(Z, { iconKey: "Check" }), Bo = (e) => {
3349
+ const { commandKey: o, label: r, groupKey: n, icon: i, sx: a, ...l } = e, [s] = he(o ?? []), c = A(() => {
3205
3350
  if (void 0 !== i) return i;
3206
3351
  let e = s?.getIcon(n);
3207
- return e ? ("string" == typeof e && (e = M(Y, { iconKey: e })), e) : br;
3352
+ return e ? ("string" == typeof e && (e = M(Z, { iconKey: e })), e) : zo;
3208
3353
  }, [
3209
3354
  i,
3210
3355
  n,
@@ -3229,45 +3374,45 @@ var br = M(Y, { iconKey: "Check" }), yr = (e) => {
3229
3374
  paddingRight: (e) => e.spacing(.25),
3230
3375
  fontSize: "inherit"
3231
3376
  },
3232
- children: o ?? s?.getLabel(n)
3377
+ children: r ?? s?.getLabel(n)
3233
3378
  })]
3234
3379
  });
3235
- }, vr = B(D((e, t) => {
3236
- const { sx: r, propsCommandButton: o, parentFloat: n, groupKey: i, members: a, registry: l, renderToolbarPalette: s, children: c, ...d } = e, p = se(), u = l ?? p, m = E(() => a ?? (i ? u.resolveMembers(i) : null) ?? null, [
3380
+ }, Lo = B($((e, t) => {
3381
+ const { sx: o, propsCommandButton: r, parentFloat: n, groupKey: i, members: a, registry: l, renderToolbarPalette: s, children: c, ...d } = e, p = me(), u = l ?? p, m = A(() => a ?? (i ? u.resolveMembers(i) : null) ?? null, [
3237
3382
  a,
3238
3383
  i,
3239
3384
  u,
3240
3385
  u.getVersion()
3241
- ]), h = he(t, () => ({}), []), [f, x] = A(null), { reference: b } = pe({
3386
+ ]), h = ye(t, () => ({}), []), [g, x] = H(null), { reference: b } = fe({
3242
3387
  label: "toolbar",
3243
3388
  anchor: h.current,
3244
3389
  parentFloat: n,
3245
3390
  createPopupPanel: null
3246
- }), y = le(() => {
3247
- const e = f;
3391
+ }), y = ue(() => {
3392
+ const e = g;
3248
3393
  e && requestAnimationFrame(() => {
3249
3394
  h.current?.contains(document.activeElement) && e.focus();
3250
3395
  });
3251
- }, [f]), v = E(() => ({
3396
+ }, [g]), v = A(() => ({
3252
3397
  dense: !0,
3253
3398
  outlined: !1
3254
- }), []), k = E(() => ({ ...o || {} }), [o]), w = E(() => ({
3399
+ }), []), w = A(() => ({ ...r || {} }), [r]), k = A(() => ({
3255
3400
  ...v,
3256
- ...k
3257
- }), [v, k]), C = E(() => ({ ...k }), [w, o]);
3401
+ ...w
3402
+ }), [v, w]), C = A(() => ({ ...w }), [k, r]);
3258
3403
  let S = 0;
3259
3404
  v.dense || (S += 2), v.outlined && S++;
3260
- let T = 2;
3261
- v.dense || (T = 4);
3262
- const P = E(() => {
3405
+ let P = 2;
3406
+ v.dense || (P = 4);
3407
+ const T = A(() => {
3263
3408
  const e = {
3264
- propsCommandButton: w,
3409
+ propsCommandButton: k,
3265
3410
  propsCommandPopup: {
3266
3411
  ...C,
3267
- ...o
3412
+ ...r
3268
3413
  }
3269
3414
  };
3270
- return s ? s(e) : m ? M(Gt, { children: gr(m, {
3415
+ return s ? s(e) : m ? M(ro, { children: Io(m, {
3271
3416
  dividerOrientation: "vertical",
3272
3417
  groupKey: i,
3273
3418
  propsCommandButton: e.propsCommandButton,
@@ -3275,21 +3420,21 @@ var br = M(Y, { iconKey: "Check" }), yr = (e) => {
3275
3420
  registry: u
3276
3421
  }) }) : null;
3277
3422
  }, [
3278
- w,
3423
+ k,
3279
3424
  C,
3280
- o,
3425
+ r,
3281
3426
  s,
3282
3427
  m,
3283
3428
  i,
3284
3429
  u
3285
3430
  ]);
3286
- return M(g, {
3431
+ return M(f, {
3287
3432
  variant: "dense",
3288
3433
  sx: {
3289
3434
  minHeight: "unset",
3290
3435
  height: "unset",
3291
- paddingTop: `${T}px`,
3292
- paddingBottom: `${T}px`,
3436
+ paddingTop: `${P}px`,
3437
+ paddingBottom: `${P}px`,
3293
3438
  paddingLeft: "6px !important",
3294
3439
  paddingRight: "6px !important",
3295
3440
  flex: "1 1 0%",
@@ -3298,17 +3443,17 @@ var br = M(Y, { iconKey: "Check" }), yr = (e) => {
3298
3443
  flexGrow: 1,
3299
3444
  display: "flex",
3300
3445
  overflow: "hidden",
3301
- ...r
3446
+ ...o
3302
3447
  },
3303
3448
  ref: h,
3304
3449
  onFocus: (e) => {
3305
- e.relatedTarget && !f && x(e.relatedTarget);
3450
+ e.relatedTarget && !g && x(e.relatedTarget);
3306
3451
  },
3307
3452
  onBlur: (e) => {
3308
- f && !h?.current?.contains(e.relatedTarget) && x(null);
3453
+ g && !h?.current?.contains(e.relatedTarget) && x(null);
3309
3454
  },
3310
3455
  onKeyDown: (e) => {
3311
- f && e.which === ee.Escape && f.focus();
3456
+ g && e.which === re.Escape && g.focus();
3312
3457
  },
3313
3458
  ...d,
3314
3459
  children: M("div", {
@@ -3317,55 +3462,55 @@ var br = M(Y, { iconKey: "Check" }), yr = (e) => {
3317
3462
  flex: "1 1 100%",
3318
3463
  display: "flex",
3319
3464
  flexWrap: "wrap",
3320
- rowGap: `${T}px`,
3465
+ rowGap: `${P}px`,
3321
3466
  columnGap: `${S}px`,
3322
3467
  alignItems: "center",
3323
3468
  maxWidth: "100%"
3324
3469
  },
3325
- children: M(Z, {
3470
+ children: M(oe, {
3326
3471
  value: b,
3327
- children: M(X, {
3472
+ children: M(J, {
3328
3473
  value: y,
3329
- children: P
3474
+ children: T
3330
3475
  })
3331
3476
  })
3332
3477
  })
3333
3478
  });
3334
3479
  }));
3335
- vr.displayName = "CommandToolbar";
3336
- var kr = B(D((e, t) => {
3337
- const { groupKey: r, members: o, registry: n, projectAs: i = "quick", defaultIcon: a, ...l } = e, s = se(), c = n ?? s, d = E(() => o ?? (r ? c.resolveMembers(r) : null) ?? null, [
3338
- o,
3480
+ Lo.displayName = "CommandToolbar";
3481
+ var No = B($((e, t) => {
3482
+ const { groupKey: o, members: r, registry: n, projectAs: i = "quick", defaultIcon: a, ...l } = e, s = me(), c = n ?? s, d = A(() => r ?? (o ? c.resolveMembers(o) : null) ?? null, [
3339
3483
  r,
3484
+ o,
3340
3485
  c
3341
- ]), p = E(() => {
3486
+ ]), p = A(() => {
3342
3487
  const e = [], t = d ?? [];
3343
- for (let r = 0; r < t.length; r++) {
3344
- const o = t[r];
3345
- o && "-" !== o && ("string" == typeof o ? e.push(o) : o.key && e.push(o.key));
3488
+ for (let o = 0; o < t.length; o++) {
3489
+ const r = t[o];
3490
+ r && "-" !== r && ("string" == typeof r ? e.push(r) : r.key && e.push(r.key));
3346
3491
  }
3347
3492
  return e;
3348
- }, [d]), u = ce(p);
3493
+ }, [d]), u = he(p);
3349
3494
  let m = null, h = null;
3350
3495
  for (let e = 0; !m && e < u.length; e++) {
3351
3496
  const t = u[e];
3352
3497
  t && !t.disabled() && t.getState() && (m = p[e], h = t.getIcon());
3353
3498
  }
3354
- const f = "icon" === i ? {
3499
+ const g = "icon" === i ? {
3355
3500
  icon: h ?? a,
3356
3501
  quickCommand: void 0
3357
3502
  } : {
3358
3503
  quickCommand: m ?? p[0],
3359
3504
  icon: void 0
3360
3505
  };
3361
- return M(xr, {
3506
+ return M($o, {
3362
3507
  ref: t,
3363
- groupKey: r,
3364
- members: o,
3508
+ groupKey: o,
3509
+ members: r,
3365
3510
  registry: c,
3366
3511
  ...l,
3367
- ...f
3512
+ ...g
3368
3513
  });
3369
3514
  }));
3370
- kr.displayName = "ToggleGroupButton";
3371
- export { We as AnimatedBouncingEllipsisIcon, Ke as AnimatedCircleIcon, Fe as AnimatedClockIcon, Ae as AnimatedFadingEllipsisIcon, je as AnimatedLoadingPanel, He as AnimatedOrbitIcon, Ve as AnimatedTraversingEllipsisIcon, tt as ArrowDownIcon, rt as ArrowRightIcon, Je as ChipStrip, ft as ClosingReason, ur as CommandButton, xr as CommandGroup, fr as CommandPopupButton, vr as CommandToolbar, sr as CommandTooltip, Mt as ContextMenu, Oe as ExhibitDivider, yt as ExhibitFloatPanel, kt as ExhibitFloatProvider, It as ExhibitIconButton, Lt as ExhibitMenuHeader, Nt as ExhibitMenuItem, At as ExhibitOptionButton, Ot as ExhibitPopupIconButton, Kt as ExhibitPopupMenuItem, Rt as ExhibitTooltip, hr as InputCommandButton, Zt as InternalWindow, yr as LabelIcon, ke as ModalProvider, wt as NestingPopupButton, nr as OptionsDialog, Gt as OverflowPalette, ht as PopupAutoFocus, gt as PopupButtonType, Vt as SelectedIcon, St as SimpleTooltip, Xe as StackTrace, Ye as StackTraceErrorPanel, kr as ToggleGroupButton, De as buttonLabelSx, $e as composeButtonContent, bt as createDownArrow, pt as createExhibitTheme, ze as createScrollButton, et as createStrokeShadowFilter, xt as defaultCreatePopupPanel, at as elevateColor, dt as elevatedSurface, ut as getScrollbarCssVariables, it as hexToRGB, tr as optionIdentity, lt as overlayAlpha, ct as raisedSurface, st as raisedSurfaceAt, Ut as registerUtilsMuiLocales, gr as renderMembers, Be as renderScrollButtonEdge, Le as renderScrollButtonEnd, Ne as renderScrollButtonStart, mt as scrollbarTheming, Ze as strokeShadowFilter, Pt as toShortcutElements, lr as useInputDialog, Xt as useLazyWindow, ir as useOptionsDialog };
3515
+ No.displayName = "ToggleGroupButton";
3516
+ export { Ge as AnimatedBouncingEllipsisIcon, je as AnimatedCircleIcon, qe as AnimatedClockIcon, Qe as AnimatedFadingEllipsisIcon, Ze as AnimatedLoadingPanel, Ue as AnimatedOrbitIcon, Xe as AnimatedTraversingEllipsisIcon, dt as ArrowDownIcon, pt as ArrowRightIcon, lt as ChipStrip, kt as ClosingReason, Po as CommandButton, $o as CommandGroup, Do as CommandPopupButton, Lo as CommandToolbar, ko as CommandTooltip, $t as ContextMenu, He as ExhibitDivider, Pt as ExhibitFloatPanel, Rt as ExhibitFloatProvider, Ft as ExhibitIconButton, Vt as ExhibitMenuHeader, Ht as ExhibitMenuItem, Ut as ExhibitOptionButton, qt as ExhibitPopupIconButton, Gt as ExhibitPopupMenuItem, Nt as ExhibitTooltip, Ro as InputCommandButton, uo as InternalWindow, Bo as LabelIcon, at as LazyLoadErrorPanel, Kt as MenuItemInsets, Te as ModalProvider, Dt as NestingPopupButton, bo as OptionsDialog, ro as OverflowPalette, wt as PopupAutoFocus, Ct as PopupButtonType, _t as SelectedIcon, zt as SimpleTooltip, rt as StackTrace, nt as StackTraceErrorPanel, No as ToggleGroupButton, Ne as buttonLabelSx, Oe as composeButtonContent, St as createDownArrow, bt as createExhibitTheme, Ae as createScrollButton, ct as createStrokeShadowFilter, Mt as defaultCreatePopupPanel, gt as elevateColor, yt as getScrollbarCssVariables, ht as hexToRGB, Je as hideLoadingPanel, ao as lazyModal, go as optionIdentity, to as registerUtilsMuiLocales, Io as renderMembers, Fe as renderScrollButtonEdge, We as renderScrollButtonEnd, Ke as renderScrollButtonStart, vt as scrollbarTheming, _e as showLoadingPanel, st as strokeShadowFilter, Lt as toShortcutElements, wo as useInputDialog, lo as useLazyWindow, yo as useOptionsDialog };