@sheetxl/utils-mui 0.8.0-beta.7 → 1.0.0

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