@sheetxl/utils-mui 0.8.0-beta.21 → 0.8.0-beta.23

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