@sheetxl/utils-mui 0.8.0-beta.9 → 1.0.2

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