@sheetxl/utils-mui 0.8.0-beta.11 → 0.8.0-beta.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,16 @@
1
1
  /**
2
- * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.11
2
+ * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.12
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
7
  import { Backdrop as e, Box as t, Button as r, Chip as o, CircularProgress as n, DialogActions as i, DialogContent as a, DialogTitle as l, Divider as s, Fade as c, IconButton as d, Input as p, LinearProgress as u, ListItemButton as m, ListItemIcon as h, Paper as f, Toolbar as g, Tooltip as x, Typography as b, Unstable_TrapFocus as y, createTheme as v, useTheme as w, useThemeProps as k } from "@mui/material";
8
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, useIsomorphicLayoutEffect as ve, useLazyRetry as we, useMeasure as ke, useTranslator as Ce, zIndexVar as Me } from "@sheetxl/utils-react";
9
+ import { Children as P, Suspense as T, cloneElement as R, createContext as D, forwardRef as I, isValidElement as $, memo as z, useCallback as B, useContext as L, useEffect as N, useId as O, useLayoutEffect as E, useMemo as A, useReducer as F, useRef as K, useState as W } from "react";
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 re, KeyModifiers as oe, NotifierType as ne, ReactUtils as ie, RenderSlot as ae, ScrollbarOrientation as le, defaultRenderScrollButtonEdge as se, floatThemeScopeProps as ce, getScrollbarCssVariables as de, lazyComponent as pe, useCallbackRef as ue, useCommandButtonRegistry as me, useCommands as he, useFloat as fe, useFloatStack as ge, useFloatSurface as xe, useFullscreenPortal as be, useImperativeElement as ye, useIsomorphicLayoutEffect as ve, useLazyRetry as we, useMeasure as ke, useTranslator as Ce, zIndexVar as Me } from "@sheetxl/utils-react";
14
14
  import { useMergeRefs as Se } from "react-merge-refs";
15
15
  import { deepmerge as Pe } from "@mui/utils";
16
16
  import Te, { useModal as Re } from "mui-modal-provider";
@@ -45,7 +45,7 @@ function Oe(e, r) {
45
45
  var Ee = ({ isHorizontal: e, isBefore: t }) => {
46
46
  const r = Ce();
47
47
  return M(C, t ? { children: r(e ? "scroll.edgeLeft" : "scroll.edgeTop") } : { children: r(e ? "scroll.edgeRight" : "scroll.edgeBottom") });
48
- }, Fe = (e) => {
48
+ }, Ae = (e) => {
49
49
  const t = {
50
50
  style: { cursor: "pointer" },
51
51
  ...e
@@ -67,7 +67,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
67
67
  });
68
68
  }
69
69
  return r;
70
- }, Ae = (e, t, r, o) => {
70
+ }, Fe = (e, t, r, o) => {
71
71
  const { style: n, ...i } = e, a = M(d, {
72
72
  component: "div",
73
73
  ...i,
@@ -90,19 +90,19 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
90
90
  children: a
91
91
  }) : a
92
92
  });
93
- }, Ke = (e) => Ae(e, le.Horizontal ? M(Z, {
93
+ }, Ke = (e) => Fe(e, le.Horizontal ? M(J, {
94
94
  iconKey: "ArrowLeft",
95
95
  size: "small"
96
- }) : M(Z, {
96
+ }) : M(J, {
97
97
  iconKey: "ArrowUpward",
98
98
  size: "small"
99
- }), "Scroll " + (e.orientation === le.Horizontal ? "Left" : "Up"), `Scroll ${e.orientation === le.Horizontal ? "left" : "up"}, 'Ctrl+Click' to scroll to the beginning`), We = (e) => 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) => Fe(e, le.Horizontal ? M(J, {
100
100
  iconKey: "ArrowRight",
101
101
  size: "small"
102
- }) : M(Z, {
102
+ }) : M(J, {
103
103
  iconKey: "ArrowDownward",
104
104
  size: "small"
105
- }), "Scroll " + (e.orientation === le.Horizontal ? "Right" : "Down"), `Scroll ${e.orientation === le.Horizontal ? "right" : "down"}, 'Ctrl+Click' to scroll to the end`), He = B($((e, t) => {
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
106
  const { orientation: r = "vertical", sx: o, ...n } = e, i = "vertical" === r;
107
107
  return M(s, {
108
108
  ref: t,
@@ -120,7 +120,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
120
120
  flexItem: !0,
121
121
  ...n
122
122
  });
123
- })), Ve = "_traverse-ellipsis_14l1h_1", qe = B((e) => {
123
+ })), Ve = "_traverse-ellipsis_14l1h_1", qe = z((e) => {
124
124
  const { sx: r, speed: o = 2, size: n = 70, ...i } = e;
125
125
  return M(t, {
126
126
  sx: {
@@ -183,7 +183,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
183
183
  ]
184
184
  })
185
185
  });
186
- }), je = B((e) => {
186
+ }), je = z((e) => {
187
187
  const { sx: r, speed: o = 1.5, size: n = 70, ...i } = e;
188
188
  return M(t, {
189
189
  sx: {
@@ -223,7 +223,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
223
223
  })]
224
224
  })
225
225
  });
226
- }), Qe = B((e) => {
226
+ }), Qe = z((e) => {
227
227
  const { sx: r, speed: o = 1, size: n = 70, ...i } = e;
228
228
  return M(t, {
229
229
  sx: {
@@ -280,7 +280,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
280
280
  ]
281
281
  })
282
282
  });
283
- }), Ge = B((e) => {
283
+ }), Ge = z((e) => {
284
284
  const { sx: r, speed: o = 1, size: n = 70, ...i } = e;
285
285
  return M(t, {
286
286
  sx: {
@@ -344,7 +344,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
344
344
  ]
345
345
  })
346
346
  });
347
- }), Ue = B((e) => {
347
+ }), Ue = z((e) => {
348
348
  const { sx: r, speed: o = 2, size: n = 70, ...i } = e;
349
349
  return M(t, {
350
350
  sx: {
@@ -391,7 +391,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
391
391
  })]
392
392
  })
393
393
  });
394
- }), Xe = B((e) => {
394
+ }), Xe = z((e) => {
395
395
  const { sx: r, speed: o = 1, size: n = 13, width: i = 64, height: a = 17, ...l } = e;
396
396
  return S(t, {
397
397
  sx: {
@@ -405,7 +405,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
405
405
  },
406
406
  ...r
407
407
  },
408
- className: V(Ve, "animated-icon"),
408
+ className: H(Ve, "animated-icon"),
409
409
  ...l,
410
410
  children: [
411
411
  M("div", { className: "primary" }),
@@ -431,7 +431,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
431
431
  });
432
432
  }, Je = (e) => {
433
433
  e && e.classList.contains("animating") && (e.classList.add("animating-idle"), e.classList.remove("animating"));
434
- }, Ze = B($((e, r) => {
434
+ }, Ze = z(I((e, r) => {
435
435
  const { sx: o, style: n, onMount: i, onUnmount: a, transitionDelay: l = "1200ms", panel: s = !1, autoStart: c = !0, transparentBackground: d = !0, icon: p = Ye, label: m, progress: h = null, ...g } = e, x = A(() => "string" == typeof m || !c && null == m ? M(b, {
436
436
  "data-sxl-loading-label": "",
437
437
  variant: "caption",
@@ -472,7 +472,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
472
472
  }
473
473
  })
474
474
  });
475
- }, [h, p]), v = W(null), w = Se([v, r]), k = A(() => {
475
+ }, [h, p]), v = K(null), w = Se([v, r]), k = A(() => {
476
476
  let e = S(t, {
477
477
  sx: {
478
478
  display: "flex",
@@ -501,7 +501,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
501
501
  borderRadius: (e) => `${e.shape.borderRadius}px`,
502
502
  boxShadow: (e) => e.shadows[2],
503
503
  "& .primary": {
504
- background: (e) => `${q(e.palette.info.contrastText, .9)} !important`,
504
+ background: (e) => `${V(e.palette.info.contrastText, .9)} !important`,
505
505
  boxShadow: (e) => `0 0 0 1px ${"dark" === e.palette.mode ? e.palette.text.secondary : e.palette.divider}`,
506
506
  boxSizing: "content-box",
507
507
  border: "solid transparent"
@@ -577,12 +577,12 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
577
577
  x,
578
578
  y,
579
579
  w
580
- ]), C = W(!1);
580
+ ]), C = K(!1);
581
581
  return ve(() => {
582
582
  if (!1 === c) return;
583
583
  const e = v.current;
584
584
  e && !C.current && (C.current = !0, e.classList.contains("animatable") && !e.classList.contains("animating") && (e.offsetHeight, e.classList.add("animating")), i?.());
585
- }, [v.current, c]), O(() => () => {
585
+ }, [v.current, c]), N(() => () => {
586
586
  C.current && (v.current?.classList.remove("animating"), C.current = !1, a?.());
587
587
  }, []), k;
588
588
  }));
@@ -593,10 +593,10 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
593
593
  e = new URL(e).pathname;
594
594
  } catch {}
595
595
  return e = (e = e.replace(/^\/+/, "")).replace(/^@?fs[\\/]/, "");
596
- }, ot = B(({ error: e, maxLines: r = Number.MAX_SAFE_INTEGER, hideLineNumbers: o = !1 }) => {
597
- const n = Ce(), [i, a] = H(null);
596
+ }, ot = z(({ error: e, maxLines: r = Number.MAX_SAFE_INTEGER, hideLineNumbers: o = !1 }) => {
597
+ const n = Ce(), [i, a] = W(null);
598
598
  if (!e?.stack) return null;
599
- const l = U.collectErrorChain(e).reverse(), s = [];
599
+ const l = G.collectErrorChain(e).reverse(), s = [];
600
600
  l.forEach(({ error: e }, t) => {
601
601
  const r = (e.stack || "").split("\n").filter(Boolean).map((e) => {
602
602
  let t = e.match(et);
@@ -678,7 +678,7 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
678
678
  "&:hover": { opacity: 1 }
679
679
  },
680
680
  title: n("stackTrace.copy"),
681
- children: M(Z, {
681
+ children: M(J, {
682
682
  iconKey: "ContentCopy",
683
683
  style: { fontSize: "0.875rem" }
684
684
  })
@@ -694,7 +694,7 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
694
694
  "&:hover": { opacity: 1 }
695
695
  },
696
696
  title: n("stackTrace.log"),
697
- children: M(Z, {
697
+ children: M(J, {
698
698
  iconKey: "BugReport",
699
699
  style: { fontSize: "0.875rem" }
700
700
  })
@@ -794,8 +794,8 @@ var et = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, tt
794
794
  });
795
795
  });
796
796
  ot.displayName = "StackTrace";
797
- var nt = B($((e, r) => {
798
- const { sx: o, icon: n = M(Z, {
797
+ var nt = z(I((e, r) => {
798
+ const { sx: o, icon: n = M(J, {
799
799
  iconKey: "Error",
800
800
  style: { fontSize: 48 }
801
801
  }), error: i, hideStackTrace: a = !1, stackTraceExpanded: l = !1, fullscreen: s = !1, ...c } = e, d = Ce(), p = A(() => it(i, a, l, s, d), [
@@ -879,7 +879,7 @@ var nt = B($((e, r) => {
879
879
  display: "flex",
880
880
  color: (e) => e.palette.error.main
881
881
  },
882
- children: "string" == typeof n ? M(Z, {
882
+ children: "string" == typeof n ? M(J, {
883
883
  iconKey: n,
884
884
  style: { fontSize: 48 }
885
885
  }) : n
@@ -896,7 +896,7 @@ var nt = B($((e, r) => {
896
896
  }));
897
897
  nt.displayName = "StackTraceErrorPanel";
898
898
  var it = (e, r = !1, o = !1, n = !1, i = (e) => e) => {
899
- if (z(e)) return e;
899
+ if ($(e)) return e;
900
900
  if (e instanceof Error) return S(t, {
901
901
  sx: {
902
902
  display: "flex",
@@ -945,7 +945,7 @@ var it = (e, r = !1, o = !1, n = !1, i = (e) => e) => {
945
945
  },
946
946
  children: a
947
947
  });
948
- }, at = B((e) => {
948
+ }, at = z((e) => {
949
949
  const { error: o, ...n } = e, i = we(), a = Ce(), l = o instanceof Error ? o.message : String(o);
950
950
  return M(nt, {
951
951
  hideStackTrace: !0,
@@ -971,14 +971,14 @@ var it = (e, r = !1, o = !1, n = !1, i = (e) => e) => {
971
971
  });
972
972
  });
973
973
  function lt(e) {
974
- const t = pe(e, { renderError: (e) => M(at, { error: e }) });
975
- return (e) => M(R, {
974
+ const t = pe(e, { renderError: ({ error: e }) => M(at, { error: e }) });
975
+ return (e) => M(T, {
976
976
  fallback: M(Ze, {}),
977
977
  children: M(t, { ...e })
978
978
  });
979
979
  }
980
980
  at.displayName = "LazyLoadErrorPanel";
981
- var st = B($((e, r) => {
981
+ var st = z(I((e, r) => {
982
982
  const { chips: n, sx: i, ...a } = e, l = A(() => {
983
983
  if (!n) return null;
984
984
  const e = Array.isArray(n) ? n : [n], t = [], r = e.length;
@@ -990,7 +990,7 @@ var st = B($((e, r) => {
990
990
  color: "primary",
991
991
  size: "small",
992
992
  sx: { scale: "0.8" }
993
- }, "chip-" + n) : D(r, { key: "chip-" + n }), t.push(i);
993
+ }, "chip-" + n) : R(r, { key: "chip-" + n }), t.push(i);
994
994
  }
995
995
  return t;
996
996
  }, [n]);
@@ -1010,10 +1010,10 @@ var st = B($((e, r) => {
1010
1010
  if ("dark" === e.palette.mode) return `drop-shadow(0px 0px 1px ${"dark" === e.palette.mode ? e.palette.text.primary : e.palette.divider})`;
1011
1011
  }, dt = (e = 1) => (t) => {
1012
1012
  if ("dark" === t.palette.mode) return `drop-shadow(0px 0px ${e}px ${"dark" === t.palette.mode ? t.palette.text.primary : t.palette.divider})`;
1013
- }, pt = (e) => M(Z, {
1013
+ }, pt = (e) => M(J, {
1014
1014
  ...e,
1015
1015
  iconKey: "ArrowDownOutline"
1016
- }), ut = (e) => M(Z, {
1016
+ }), ut = (e) => M(J, {
1017
1017
  ...e,
1018
1018
  iconKey: "ArrowRightOutline"
1019
1019
  }), mt = /^#?([a-f\d])([a-f\d])([a-f\d])$/i, ht = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i, ft = function(e, t = null) {
@@ -1028,7 +1028,7 @@ var st = B($((e, r) => {
1028
1028
  let o = "dark" !== r;
1029
1029
  t < 0 && (o = !o, t *= -1), e = ft(e);
1030
1030
  try {
1031
- 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)));
1032
1032
  } catch {
1033
1033
  return e;
1034
1034
  }
@@ -1049,8 +1049,8 @@ var st = B($((e, r) => {
1049
1049
  palette: {
1050
1050
  mode: e ? "dark" : "light",
1051
1051
  text: {
1052
- secondary: e ? r.palette.text.secondary : q(r.palette.text.secondary, .75),
1053
- icon: e ? q(r.palette.text.secondary, .7) : q(r.palette.text.primary, .75)
1052
+ secondary: e ? r.palette.text.secondary : V(r.palette.text.secondary, .75),
1053
+ icon: e ? V(r.palette.text.secondary, .7) : V(r.palette.text.primary, .75)
1054
1054
  }
1055
1055
  },
1056
1056
  components: {
@@ -1158,7 +1158,7 @@ function vt(e, t) {
1158
1158
  corner: e.palette.background.paper,
1159
1159
  outline: !1
1160
1160
  }, t || {}), de({
1161
- track: q(t.track, .2),
1161
+ track: V(t.track, .2),
1162
1162
  thumb: t.thumb,
1163
1163
  button: t.button,
1164
1164
  active: t.active,
@@ -1208,7 +1208,7 @@ function wt(e, t) {
1208
1208
  },
1209
1209
  "&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner": { backgroundColor: "var(--scrollbar-corner-color)" }
1210
1210
  };
1211
- 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;
1211
+ return Q.getPlatform() === Q.OSType.Firefox && (o["* .pseudo-scrollbar"] = { scrollbarColor: "var(--scrollbar-thumb-color) transparent" }, o["* .pseudo-scrollbar:hover:not([disabled])"] = { scrollbarColor: "var(--scrollbar-active-color) transparent" }), o;
1212
1212
  }
1213
1213
  var kt = {
1214
1214
  Popup: "popup",
@@ -1223,7 +1223,7 @@ var kt = {
1223
1223
  }, St = (e) => {
1224
1224
  const { closeFloat: r, closeFloatAll: o, floatReference: n, popupContainer: i, children: a, className: l, sx: s, ...c } = e;
1225
1225
  return M(t, {
1226
- className: V("menu", l),
1226
+ className: H("menu", l),
1227
1227
  sx: {
1228
1228
  display: "flex",
1229
1229
  flexDirection: "column",
@@ -1244,8 +1244,8 @@ var kt = {
1244
1244
  },
1245
1245
  color: "inherit"
1246
1246
  });
1247
- }, Tt = B($((e, t) => {
1248
- const { open: r, anchorEl: o, anchorPosition: n, label: i, floatReference: a, createPopupPanel: l = St, propsPopper: s, onMount: c, onClosing: d, onClose: p, onOpening: u, onOpen: m, children: h, sx: g, ...x } = e, b = ue(d ?? (() => {}), [d]), y = ue(p ?? (() => {}), [p]), v = ue(u ?? (() => {}), [u]), w = ue(m ?? (() => {}), [m]), [k, C] = H(), S = W(null), P = ue((e, t) => {
1247
+ }, Tt = z(I((e, t) => {
1248
+ const { open: r, anchorEl: o, anchorPosition: n, label: i, floatReference: a, renderPopupPanel: l = St, propsPopper: s, onMount: c, onClosing: d, onClose: p, onOpening: u, onOpen: m, children: h, sx: g, ...x } = e, b = ue(d ?? (() => {}), [d]), y = ue(p ?? (() => {}), [p]), v = ue(u ?? (() => {}), [u]), w = ue(m ?? (() => {}), [m]), [k, C] = W(), S = K(null), P = ue((e, t) => {
1249
1249
  C(e), c?.(S.current, t);
1250
1250
  }, [c]), T = A(() => {
1251
1251
  const e = {
@@ -1253,7 +1253,7 @@ var kt = {
1253
1253
  floatReference: a,
1254
1254
  children: h,
1255
1255
  ...x
1256
- }, t = l(e);
1256
+ };
1257
1257
  return M(f, {
1258
1258
  elevation: 8,
1259
1259
  ref: S,
@@ -1267,7 +1267,10 @@ var kt = {
1267
1267
  "&.MuiPaper-root": (e) => wt(e)
1268
1268
  },
1269
1269
  tabIndex: 0,
1270
- children: t
1270
+ children: M(ae, {
1271
+ render: l,
1272
+ props: e
1273
+ })
1271
1274
  });
1272
1275
  }, [
1273
1276
  l,
@@ -1275,7 +1278,7 @@ var kt = {
1275
1278
  k,
1276
1279
  a
1277
1280
  ]);
1278
- return M(ee, {
1281
+ return M(Z, {
1279
1282
  ref: t,
1280
1283
  anchorEl: o,
1281
1284
  anchorPosition: n,
@@ -1291,14 +1294,14 @@ var kt = {
1291
1294
  });
1292
1295
  }));
1293
1296
  Tt.displayName = "ExhibitFloatPanel";
1294
- var Rt = (e) => M(Tt, { ...e }), Dt = (e) => M(te, {
1297
+ var Rt = (e) => M(Tt, { ...e }), Dt = (e) => M(ee, {
1298
+ ...e,
1295
1299
  renderFloatPanel: Rt,
1296
- createPopupPanel: St,
1297
- ...e
1298
- }), It = B($((e, r) => {
1299
- const { nestedChildren: o, variant: n, disabled: i, createPopupPanel: a, ...l } = e, s = {
1300
+ renderPopupPanel: St
1301
+ }), It = z(I((e, r) => {
1302
+ const { nestedChildren: o, variant: n, disabled: i, renderPopupPanel: a, ...l } = e, s = {
1300
1303
  disabled: i,
1301
- createPopupPanel: ue((e) => {
1304
+ renderPopupPanel: ue((e) => {
1302
1305
  if (!o || 0 === o.length) return M(C, {});
1303
1306
  const { popupContainer: n, floatReference: i, ref: a, ...l } = e, s = [];
1304
1307
  for (let e = 0; e < o.length; e++) {
@@ -1326,27 +1329,27 @@ var Rt = (e) => M(Tt, { ...e }), Dt = (e) => M(te, {
1326
1329
  ...l
1327
1330
  };
1328
1331
  return M(n === Mt.Toolbar ? jt : Ut, { ...s });
1329
- })), $t = { placement: "right-start" }, zt = B($((e, t) => {
1330
- const { children: r, sx: o, parentFloat: n, createPopupPanel: i, propsPopper: a = $t, label: l, ...s } = e;
1331
- if (!z(r)) throw new Error("Must supply a child component to enable a context menu.");
1332
+ })), $t = { placement: "right-start" }, zt = z(I((e, t) => {
1333
+ const { children: r, sx: o, parentFloat: n, renderPopupPanel: i, propsPopper: a = $t, label: l, ...s } = e;
1334
+ if (!$(r)) throw new Error("Must supply a child component to enable a context menu.");
1332
1335
  const c = r, d = A(() => ({
1333
1336
  ...c?.props,
1334
1337
  ...s,
1335
1338
  onContextMenu: (e) => {
1336
1339
  c?.props?.onContextMenu?.(e), e.isDefaultPrevented() || (s?.onContextMenu?.(e), e.isDefaultPrevented() || (m(e), e.preventDefault()));
1337
1340
  }
1338
- }), [s, c?.props]), p = ue(i ?? (() => {}), [i]), [u, m] = H(null), { reference: h, component: f } = ge({
1341
+ }), [s, c?.props]), p = ue(i ?? (() => {}), [i]), [u, m] = W(null), { reference: h, component: f } = ge({
1339
1342
  label: l ?? "contextMenu",
1340
1343
  propsPopper: a,
1341
1344
  parentFloat: n,
1342
1345
  anchor: { getBoundingClientRect: () => new DOMRect(u?.clientX || 0, u?.clientY || 0) },
1343
1346
  onClose: () => m(null),
1344
- createPopupPanel: p
1347
+ renderPopupPanel: p
1345
1348
  });
1346
- return O(() => {
1349
+ return N(() => {
1347
1350
  u ? h.open(0) : h.close(0);
1348
- }, [u]), S(C, { children: [D(r, d), f] });
1349
- })), Bt = $((e, t) => {
1351
+ }, [u]), S(C, { children: [R(r, d), f] });
1352
+ })), Bt = I((e, t) => {
1350
1353
  const { slotProps: r, ...o } = e, { getPortalContainer: n, isFullscreen: i } = be();
1351
1354
  return M(x, {
1352
1355
  ref: t,
@@ -1361,7 +1364,7 @@ var Rt = (e) => M(Tt, { ...e }), Dt = (e) => M(te, {
1361
1364
  });
1362
1365
  });
1363
1366
  Bt.displayName = "SimpleTooltip";
1364
- var Lt = B((e) => {
1367
+ var Lt = z((e) => {
1365
1368
  const { modifier: r, sx: o, ...n } = e;
1366
1369
  return M(t, {
1367
1370
  sx: {
@@ -1373,11 +1376,11 @@ var Lt = B((e) => {
1373
1376
  borderLeftWidth: "1px",
1374
1377
  borderRightWidth: "1px",
1375
1378
  borderBottomWidth: "2px",
1376
- borderTopColor: (e) => q(e.palette.background.paper, e.palette.action.disabledOpacity),
1377
- borderLeftColor: (e) => q(e.palette.background.paper, e.palette.action.disabledOpacity),
1378
- borderRightColor: (e) => q(e.palette.background.paper, e.palette.action.disabledOpacity),
1379
- borderBottomColor: (e) => q(e.palette.background.paper, 1 - e.palette.action.disabledOpacity),
1380
- backgroundColor: (e) => q(e.palette.action.hover, e.palette.action.disabledOpacity),
1379
+ borderTopColor: (e) => V(e.palette.background.paper, e.palette.action.disabledOpacity),
1380
+ borderLeftColor: (e) => V(e.palette.background.paper, e.palette.action.disabledOpacity),
1381
+ borderRightColor: (e) => V(e.palette.background.paper, e.palette.action.disabledOpacity),
1382
+ borderBottomColor: (e) => V(e.palette.background.paper, 1 - e.palette.action.disabledOpacity),
1383
+ backgroundColor: (e) => V(e.palette.action.hover, e.palette.action.disabledOpacity),
1381
1384
  paddingLeft: "4px",
1382
1385
  paddingRight: "4px",
1383
1386
  minHeight: "1.6em",
@@ -1416,17 +1419,17 @@ var Lt = B((e) => {
1416
1419
  if (!e?.key) return null;
1417
1420
  const i = {};
1418
1421
  for (let t = 0; e.modifiers && t < e.modifiers.length; t++) i[e.modifiers[t]] = !0;
1419
- const a = [], l = G.getPlatform() === G.OSType.MacOS || G.getPlatform() === G.OSType.IOS ? r("shortcut.modifier.cmd") : r("shortcut.modifier.ctrl");
1420
- return i?.[ne.Ctrl] && (a.push(M(Lt, { modifier: o ? "^" : M("div", {
1422
+ const a = [], l = Q.getPlatform() === Q.OSType.MacOS || Q.getPlatform() === Q.OSType.IOS ? r("shortcut.modifier.cmd") : r("shortcut.modifier.ctrl");
1423
+ return i?.[oe.Ctrl] && (a.push(M(Lt, { modifier: o ? "^" : M("div", {
1421
1424
  style: { paddingRight: "1px" },
1422
1425
  children: l
1423
- }) }, "ctrl")), a.push("+")), i?.[ne.Alt] && (a.push(M(Lt, { modifier: o ? "⌥" : r("shortcut.modifier.alt") }, "alt")), a.push("+")), i?.[ne.Shift] && (a.push(M(Lt, { modifier: o ? "⇧" : M("div", {
1426
+ }) }, "ctrl")), a.push("+")), i?.[oe.Alt] && (a.push(M(Lt, { modifier: o ? "⌥" : r("shortcut.modifier.alt") }, "alt")), a.push("+")), i?.[oe.Shift] && (a.push(M(Lt, { modifier: o ? "⇧" : M("div", {
1424
1427
  style: { paddingRight: "1px" },
1425
1428
  children: r("shortcut.modifier.shift")
1426
- }) }, "shift")), a.push("+")), i?.[ne.Meta] && (a.push(M(Lt, { modifier: o ? M("div", {
1429
+ }) }, "shift")), a.push("+")), i?.[oe.Meta] && (a.push(M(Lt, { modifier: o ? M("div", {
1427
1430
  style: { paddingTop: "1px" },
1428
1431
  children: "⌘"
1429
- }) : r("shortcut.modifier.meta") }, "meta")), a.push("+")), a.push(M(Lt, { modifier: ae.toPrettyKeyCode(e.key) }, "character")), M(t, {
1432
+ }) : r("shortcut.modifier.meta") }, "meta")), a.push("+")), a.push(M(Lt, { modifier: ie.toPrettyKeyCode(e.key) }, "character")), M(t, {
1430
1433
  sx: {
1431
1434
  display: "flex",
1432
1435
  alignItems: "center",
@@ -1435,12 +1438,12 @@ var Lt = B((e) => {
1435
1438
  },
1436
1439
  children: a
1437
1440
  }, n);
1438
- }, Ot = B($((e, r) => {
1441
+ }, Ot = z(I((e, r) => {
1439
1442
  const { disabled: o = !1, label: n, shortcut: i, chips: a, description: l, maxWidth: s = 280, useModifierSymbols: c = !1, children: d, simple: p, componentDisabled: u = !1, sx: m, ...h } = e, f = Ce();
1440
1443
  let g = null;
1441
1444
  i && (g = Nt(i, f, c));
1442
- const [x, y] = H(null);
1443
- O(() => {
1445
+ const [x, y] = W(null);
1446
+ N(() => {
1444
1447
  Promise.resolve(n).then((e) => {
1445
1448
  y(e);
1446
1449
  });
@@ -1501,8 +1504,8 @@ var Lt = B((e) => {
1501
1504
  children: d
1502
1505
  })
1503
1506
  });
1504
- })), Et = M(Z, {}), Ft = M(Z, { iconKey: "Check" }), At = B($((e, r) => {
1505
- 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 = {
1507
+ })), Et = M(J, {}), At = M(J, { iconKey: "Check" }), Ft = z(I((e, r) => {
1508
+ const { dense: o = !0, outlined: n = !1, disableHover: i = !1, selected: a, icon: l, propsTooltip: s, children: c, primary: p, sx: u, disabled: m, className: h, onFocus: f, onBlur: g, ...x } = e, [b, y] = W(!1), v = {
1506
1509
  marginRight: "0px",
1507
1510
  padding: o ? "2px" : "7px",
1508
1511
  borderRadius: (e) => `${e.shape.borderRadius}px`,
@@ -1510,7 +1513,7 @@ var Lt = B((e) => {
1510
1513
  border: (e) => `solid ${n ? e.palette.divider : "transparent"} 1px`,
1511
1514
  "& .MuiTouchRipple-child": { borderRadius: (e) => `${e.shape.borderRadius}px !important` },
1512
1515
  "&.Mui-selected": {
1513
- backgroundColor: (e) => q(e.palette.text.primary, e.palette.action.selectedOpacity),
1516
+ backgroundColor: (e) => V(e.palette.text.primary, e.palette.action.selectedOpacity),
1514
1517
  border: (e) => `solid ${n ? e.palette.text?.primary : e.palette.divider} 1px`
1515
1518
  },
1516
1519
  "&.Mui-disabled": { border: (e) => `solid ${n ? e.palette.divider : "transparent"} 1px` },
@@ -1527,9 +1530,9 @@ var Lt = B((e) => {
1527
1530
  "@media (hover: hover)": { "&:hover:not(.Mui-disabled, [disabled])": {
1528
1531
  color: (e) => e.palette.text.primary,
1529
1532
  border: (e) => `solid ${n ? e.palette.text?.primary : e.palette.divider} 1px`,
1530
- "&.Mui-selected": { backgroundColor: (e) => q(e.palette.text.primary, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity) },
1533
+ "&.Mui-selected": { backgroundColor: (e) => V(e.palette.text.primary, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity) },
1531
1534
  "> .outline-hover": { outline: (e) => `solid ${n ? e.palette.text?.primary : e.palette.divider} 1px` },
1532
- backgroundColor: (e) => q(e.palette.action.active, e.palette.action.hoverOpacity)
1535
+ backgroundColor: (e) => V(e.palette.action.active, e.palette.action.hoverOpacity)
1533
1536
  } },
1534
1537
  "&.Mui-focusVisible": {
1535
1538
  outline: (e) => `solid ${e.palette.primary.main} 1px`,
@@ -1538,15 +1541,15 @@ var Lt = B((e) => {
1538
1541
  }
1539
1542
  };
1540
1543
  let k = v;
1541
- i || (k = G.mergeContentful(v, w));
1544
+ i || (k = Q.mergeContentful(v, w));
1542
1545
  const C = A(() => {
1543
1546
  let e = "function" == typeof l ? l() : l;
1544
- return null === e ? e : e || (void 0 === a ? Et : Ft);
1547
+ return null === e ? e : e || (void 0 === a ? Et : At);
1545
1548
  }, [l, a]);
1546
1549
  let P = S(d, {
1547
1550
  component: "div",
1548
1551
  ref: r,
1549
- className: V({
1552
+ className: H({
1550
1553
  "Mui-focusVisible": b,
1551
1554
  "Mui-selected": a,
1552
1555
  "Mui-disabled": m
@@ -1581,20 +1584,20 @@ var Lt = B((e) => {
1581
1584
  ...s
1582
1585
  });
1583
1586
  return P;
1584
- })), Kt = M(Z, {}), Wt = {
1587
+ })), Kt = M(J, {}), Wt = {
1585
1588
  marginLeft: "4px",
1586
1589
  marginRight: "4px",
1587
1590
  paddingLeft: "6px",
1588
1591
  paddingRight: "18px"
1589
- }, Ht = (e) => e.icon, Vt = B($((e, t) => {
1590
- const { icon: r = Kt, renderIcon: o = Ht, className: n, onFocus: i, selected: a, onBlur: l, onMouseOver: s, onMouseOut: c, onMouseEnter: d, disabled: p, children: u, sx: f, propsTooltip: g, chips: x, primary: b, ...y } = e, v = fe(), [w, k] = H(!1), [C, P] = H(!1), T = A(() => {
1592
+ }, Ht = (e) => e.icon, Vt = z(I((e, t) => {
1593
+ const { icon: r = Kt, renderIcon: o = Ht, className: n, onFocus: i, selected: a, onBlur: l, onMouseOver: s, onMouseOut: c, onMouseEnter: d, disabled: p, children: u, sx: f, propsTooltip: g, chips: x, primary: b, ...y } = e, v = fe(), [w, k] = W(!1), [C, P] = W(!1), T = A(() => {
1591
1594
  const e = o?.({
1592
1595
  icon: r,
1593
1596
  disabled: p,
1594
1597
  selected: a
1595
1598
  });
1596
1599
  return e ? M(h, {
1597
- className: V({
1600
+ className: H({
1598
1601
  "Mui-focusVisible": w,
1599
1602
  "Mui-hovered": C
1600
1603
  }),
@@ -1627,7 +1630,7 @@ var Lt = B((e) => {
1627
1630
  d?.(e), e.isDefaultPrevented() || v?.closeChild();
1628
1631
  },
1629
1632
  TouchRippleProps: { center: !1 },
1630
- className: V({
1633
+ className: H({
1631
1634
  "Mui-focusVisible": w,
1632
1635
  "Mui-hovered": C
1633
1636
  }, n),
@@ -1667,7 +1670,7 @@ var Lt = B((e) => {
1667
1670
  placement: "right-start",
1668
1671
  ...g
1669
1672
  })), R;
1670
- })), qt = B($((e, t) => {
1673
+ })), qt = z(I((e, t) => {
1671
1674
  const { children: r, sx: o, primary: n = !1, variant: i = "subtitle1", ...a } = e;
1672
1675
  return M(C, { children: M(b, {
1673
1676
  ref: t,
@@ -1685,8 +1688,8 @@ var Lt = B((e) => {
1685
1688
  ...a,
1686
1689
  children: r
1687
1690
  }) });
1688
- })), jt = B($((e, r) => {
1689
- 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: k = G.EmptyObject, disableHover: P, ripple: T, primary: R, children: D, sx: I, className: $, ...z } = e, B = w(), L = A(() => {
1691
+ })), jt = z(I((e, r) => {
1692
+ const { dense: o = !0, outlined: n = !1, label: i, showLabel: a = !1, selected: l = !1, onQuickClick: s, parentFloat: c, renderPopupPanel: p, propsPopup: u, onPopupOpen: m, onPopupClose: h, propsQuickButton: f, renderQuickButton: g, tooltip: x = "", renderTooltip: b, icon: y, disabled: v, propsButton: k = Q.EmptyObject, disableHover: P, ripple: T, primary: R, children: D, sx: I, className: $, ...z } = e, B = w(), L = A(() => {
1690
1693
  const e = (e, t, r, o = r) => {
1691
1694
  const i = "boolean" == typeof n ? null : n[e];
1692
1695
  return "function" == typeof i ? i(t) : i || (n ? r : o);
@@ -1700,10 +1703,10 @@ var Lt = B((e) => {
1700
1703
  active: "dark" === B.palette.mode ? B.palette.text.secondary : B.palette.text.primary,
1701
1704
  text: B.palette.text.icon ?? B.palette.action.active
1702
1705
  };
1703
- }, [n, B]), [N, O] = H(!1), [E, F] = H(!1), [K, j] = H(!1), Q = W(null), U = W(null), X = ge({
1704
- anchor: Q.current,
1706
+ }, [n, B]), [N, O] = W(!1), [E, F] = W(!1), [q, j] = W(!1), G = K(null), U = K(null), X = ge({
1707
+ anchor: G.current,
1705
1708
  label: i,
1706
- createPopupPanel: p,
1709
+ renderPopupPanel: p,
1707
1710
  parentFloat: c,
1708
1711
  propsPopper: u?.propsPopper,
1709
1712
  onClose: () => {
@@ -1755,24 +1758,24 @@ var Lt = B((e) => {
1755
1758
  },
1756
1759
  "& .MuiTouchRipple-child": { borderRadius: (e) => `${e.shape.borderRadius}px !important` }
1757
1760
  }, t = { "&.Mui-selected": {
1758
- backgroundColor: (e) => q(e.palette.primary.main, e.palette.action.selectedOpacity),
1761
+ backgroundColor: (e) => V(e.palette.primary.main, e.palette.action.selectedOpacity),
1759
1762
  "&:hover:not(.Mui-disabled)": {
1760
- backgroundColor: (e) => q(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
1761
- "@media (hover: none)": { backgroundColor: (e) => q(e.palette.primary.main, e.palette.action.selectedOpacity) }
1763
+ backgroundColor: (e) => V(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
1764
+ "@media (hover: none)": { backgroundColor: (e) => V(e.palette.primary.main, e.palette.action.selectedOpacity) }
1762
1765
  }
1763
1766
  } }, r = {
1764
1767
  maxHeight: "100%",
1765
1768
  "&.Mui-selected": {
1766
- backgroundColor: (e) => q(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity),
1769
+ backgroundColor: (e) => V(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity),
1767
1770
  "&:hover:not(.Mui-disabled)": {
1768
- backgroundColor: (e) => q(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
1769
- "@media (hover: none)": { backgroundColor: (e) => q(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity) }
1771
+ backgroundColor: (e) => V(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
1772
+ "@media (hover: none)": { backgroundColor: (e) => V(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity) }
1770
1773
  }
1771
1774
  },
1772
1775
  "&:hover:not(.Mui-disabled, [disabled])": {
1773
1776
  color: (e) => e.palette.text.primary,
1774
1777
  ...P ? null : {
1775
- backgroundColor: (e) => q(e.palette.action.active, e.palette.action.hoverOpacity),
1778
+ backgroundColor: (e) => V(e.palette.action.active, e.palette.action.hoverOpacity),
1776
1779
  "@media (hover: none)": { backgroundColor: "transparent" }
1777
1780
  }
1778
1781
  },
@@ -1784,37 +1787,41 @@ var Lt = B((e) => {
1784
1787
  },
1785
1788
  padding: () => o ? "2px 3px" : "7px",
1786
1789
  marginRight: "0"
1787
- }, n = G.mergeContentful(r, e), i = G.mergeContentful(n, t), a = G.mergeContentful(r, e);
1790
+ }, n = Q.mergeContentful(r, e), i = Q.mergeContentful(n, t), a = Q.mergeContentful(r, e);
1788
1791
  return {
1789
1792
  quickButtonStyling: n,
1790
1793
  openQuickButtonStyling: i,
1791
1794
  compoundStyling: a,
1792
- openCompoundStyling: G.mergeContentful(a, t)
1795
+ openCompoundStyling: Q.mergeContentful(a, t)
1793
1796
  };
1794
1797
  }, [L, P]), Z = ue((e) => {
1795
- const { children: t, ref: r, ...o } = e;
1798
+ const { children: t, ref: r, disabled: o, ...n } = e;
1796
1799
  return M(Bt, {
1797
1800
  ref: r,
1798
- ...o,
1801
+ ...n,
1799
1802
  disableInteractive: !0,
1800
1803
  children: t
1801
1804
  });
1802
- }, []), ee = s || g, te = ee && (f?.tooltip || f?.createTooltip), re = (e) => {
1803
- const { tooltip: t, createTooltip: r, sx: o, ...n } = e;
1805
+ }, []), ee = s || g, te = ee && (f?.tooltip || f?.renderTooltip), oe = (e) => {
1806
+ const { tooltip: t, renderTooltip: r, sx: o, ...n } = e;
1804
1807
  let i = M(d, {
1805
1808
  sx: { ...o },
1806
1809
  component: "div",
1807
1810
  ...n
1808
1811
  });
1809
- return te ? (i = (r ?? Z)({
1810
- title: N ? "" : t ?? x,
1811
- children: M("div", { children: i })
1812
- }, N), i) : i;
1812
+ return te ? (i = M(ae, {
1813
+ render: r ?? Z,
1814
+ props: {
1815
+ title: N ? "" : t ?? x,
1816
+ children: M("div", { children: i }),
1817
+ disabled: N
1818
+ }
1819
+ }), i) : i;
1813
1820
  }, ne = { onKeyDown: (e) => {
1814
- e.keyCode === oe.Space ? _() : e.keyCode === oe.F4 || e.keyCode === oe.Down ? X.reference.open(0) : e.keyCode === oe.Up && X.reference.close(0);
1821
+ e.keyCode === re.Space ? _() : e.keyCode === re.F4 || e.keyCode === re.Down ? X.reference.open(0) : e.keyCode === re.Up && X.reference.close(0);
1815
1822
  } };
1816
1823
  let ie = M(C, {});
1817
- const ae = A(() => Oe(("function" == typeof y ? y() : y) ?? (ee ? Qt : null), a ? i : null), [
1824
+ const le = A(() => Oe(("function" == typeof y ? y() : y) ?? (ee ? Qt : null), a ? i : null), [
1818
1825
  y,
1819
1826
  i,
1820
1827
  a,
@@ -1822,7 +1829,7 @@ var Lt = B((e) => {
1822
1829
  ]);
1823
1830
  if (ee) {
1824
1831
  let e = N ? J.openQuickButtonStyling : J.quickButtonStyling;
1825
- const t = (g || re)({
1832
+ const t = {
1826
1833
  tabIndex: -1,
1827
1834
  disabled: v,
1828
1835
  size: "small",
@@ -1834,12 +1841,12 @@ var Lt = B((e) => {
1834
1841
  0 === e.button && (e.preventDefault(), Y(e));
1835
1842
  },
1836
1843
  disableRipple: !!T,
1837
- children: S(C, { children: [ae, T] }),
1844
+ children: S(C, { children: [le, T] }),
1838
1845
  ...f,
1839
- className: V({
1846
+ className: H({
1840
1847
  "Mui-focusVisible": E || N,
1841
1848
  "Mui-selected": l,
1842
- "Mui-hovered": K || N,
1849
+ "Mui-hovered": q || N,
1843
1850
  "Mui-disabled": v,
1844
1851
  bordered: !0,
1845
1852
  left: !0,
@@ -1850,17 +1857,24 @@ var Lt = B((e) => {
1850
1857
  height: "100%",
1851
1858
  ...f?.sx
1852
1859
  }
1860
+ }, r = M(ae, {
1861
+ render: g ?? oe,
1862
+ props: t
1853
1863
  });
1854
- let r = Pt(!0, o, N);
1855
- te && (r = (b ?? Z)({
1856
- title: N ? "" : x,
1857
- children: r
1858
- }, N)), ie = S(C, { children: [t, M(d, {
1864
+ let n = Pt(!0, o, N);
1865
+ te && (n = M(ae, {
1866
+ render: b ?? Z,
1867
+ props: {
1868
+ title: N ? "" : x,
1869
+ children: n,
1870
+ disabled: N
1871
+ }
1872
+ })), ie = S(C, { children: [r, M(d, {
1859
1873
  ref: U,
1860
1874
  component: "div",
1861
- className: V({
1875
+ className: H({
1862
1876
  "Mui-selected": N,
1863
- "Mui-hovered": K || N,
1877
+ "Mui-hovered": q || N,
1864
1878
  "Mui-disabled": v,
1865
1879
  "Mui-focusVisible": E || N,
1866
1880
  bordered: !0,
@@ -1882,19 +1896,19 @@ var Lt = B((e) => {
1882
1896
  onMouseDown: (e) => {
1883
1897
  0 === e.button && (e.preventDefault(), _());
1884
1898
  },
1885
- children: r
1899
+ children: n
1886
1900
  })] });
1887
1901
  } else {
1888
1902
  let e = N ? J.openCompoundStyling : J.compoundStyling;
1889
- ie = M(At, {
1903
+ ie = M(Ft, {
1890
1904
  ref: U,
1891
1905
  tabIndex: -1,
1892
1906
  disabled: v,
1893
1907
  size: "small",
1894
- icon: ae,
1895
- className: V({
1908
+ icon: le,
1909
+ className: H({
1896
1910
  "Mui-selected": N || l,
1897
- "Mui-hovered": K,
1911
+ "Mui-hovered": q,
1898
1912
  "Mui-disabled": v,
1899
1913
  "Mui-focusVisible": E || N,
1900
1914
  bordered: !0,
@@ -1912,20 +1926,20 @@ var Lt = B((e) => {
1912
1926
  children: Pt(!1, o, N)
1913
1927
  });
1914
1928
  }
1915
- const { className: le, sx: se, ...ce } = k;
1916
- let de = M(t, {
1929
+ const { className: se, sx: ce, ...de } = k;
1930
+ let pe = M(t, {
1917
1931
  onFocus: () => F(!0),
1918
1932
  onBlur: () => F(!1),
1919
1933
  onMouseOver: () => j(!0),
1920
1934
  onMouseOut: () => j(!1),
1921
1935
  ...ne,
1922
1936
  "aria-label": "split button",
1923
- ref: Q,
1937
+ ref: G,
1924
1938
  tabIndex: v ? void 0 : 0,
1925
- className: V(le, "split-button-root", {
1939
+ className: H(se, "split-button-root", {
1926
1940
  "Mui-focusVisible": E || N,
1927
1941
  "Mui-selected": N || l,
1928
- "Mui-hovered": K,
1942
+ "Mui-hovered": q,
1929
1943
  "Mui-disabled": v
1930
1944
  }),
1931
1945
  sx: {
@@ -1941,16 +1955,20 @@ var Lt = B((e) => {
1941
1955
  outline: (e) => `solid ${e.palette.primary.main} 1px`,
1942
1956
  zIndex: 2
1943
1957
  },
1944
- ...se
1958
+ ...ce
1945
1959
  },
1946
- ...ce,
1960
+ ...de,
1947
1961
  children: ie
1948
1962
  });
1949
- return te || (de = (b ?? Z)({
1950
- title: N ? "" : x,
1951
- children: de
1952
- }, N)), S(t, {
1953
- className: V($, "popupIconButton"),
1963
+ return te || (pe = M(ae, {
1964
+ render: b ?? Z,
1965
+ props: {
1966
+ title: N ? "" : x,
1967
+ children: pe,
1968
+ disabled: N
1969
+ }
1970
+ })), S(t, {
1971
+ className: H($, "popupIconButton"),
1954
1972
  ref: r,
1955
1973
  ...z,
1956
1974
  sx: {
@@ -1959,12 +1977,12 @@ var Lt = B((e) => {
1959
1977
  alignItems: "center",
1960
1978
  ...I
1961
1979
  },
1962
- children: [de, X.component]
1980
+ children: [pe, X.component]
1963
1981
  });
1964
1982
  }));
1965
1983
  jt.displayName = "ExhibitPopupIconButton";
1966
- var Qt = M(Z, { iconKey: "Check" }), Gt = {}, Ut = B($((e, r) => {
1967
- const { selected: o = !1, label: n, showLabel: i, onQuickClick: a, parentFloat: l, createPopupPanel: c, propsPopup: d = Gt, onPopupOpen: p, onPopupClose: u, propsQuickButton: h, renderQuickButton: f, tooltip: g = "", createTooltip: x, icon: b, disabled: y, ripple: v, primary: w, children: k, sx: P, ...T } = e, [R, D] = H(!1), [I, $] = H(!1), [z, B] = H(!1), [N, O] = H(!1), E = W(null), F = W(null), K = A(() => {
1984
+ var Qt = M(J, { iconKey: "Check" }), Gt = {}, Ut = z(I((e, r) => {
1985
+ const { selected: o = !1, label: n, showLabel: i, onQuickClick: a, parentFloat: l, renderPopupPanel: c, propsPopup: d = Gt, onPopupOpen: p, onPopupClose: u, propsQuickButton: h, renderQuickButton: f, tooltip: g = "", renderTooltip: x, icon: b, disabled: y, ripple: v, primary: w, children: k, sx: P, ...T } = e, [R, D] = W(!1), [I, $] = W(!1), [z, L] = W(!1), [N, O] = W(!1), E = K(null), F = K(null), V = A(() => {
1968
1986
  if (!d) return;
1969
1987
  const { propsPopper: e } = d;
1970
1988
  return {
@@ -1975,9 +1993,9 @@ var Qt = M(Z, { iconKey: "Check" }), Gt = {}, Ut = B($((e, r) => {
1975
1993
  }, [d]), q = ge({
1976
1994
  anchor: E.current,
1977
1995
  label: n,
1978
- createPopupPanel: c,
1996
+ renderPopupPanel: c,
1979
1997
  parentFloat: l,
1980
- propsPopper: K,
1998
+ propsPopper: V,
1981
1999
  onClose: () => {
1982
2000
  D(!1), u?.();
1983
2001
  },
@@ -1989,20 +2007,20 @@ var Qt = M(Z, { iconKey: "Check" }), Gt = {}, Ut = B($((e, r) => {
1989
2007
  }, [a]), Q = M(ut, {}), G = { "&.Mui-selected": {
1990
2008
  color: (e) => e.palette.text.primary,
1991
2009
  "& svg * ": { color: (e) => e.palette.text.primary }
1992
- } }, U = L((e) => {
1993
- const { children: t, ref: r, ...o } = e;
2010
+ } }, U = B((e) => {
2011
+ const { children: t, ref: r, disabled: o, ...n } = e;
1994
2012
  return M(Bt, {
1995
2013
  ref: r,
1996
- ...o,
2014
+ ...n,
1997
2015
  disableInteractive: !0,
1998
2016
  children: t
1999
2017
  });
2000
2018
  }, []), X = a || f, Y = (e) => {
2001
- const { tooltip: t, createTooltip: r, ...o } = e;
2019
+ const { tooltip: t, renderTooltip: r, ...o } = e;
2002
2020
  return S(Vt, {
2003
2021
  icon: b,
2004
2022
  disableRipple: !!v,
2005
- className: V({ "Mui-hovered": z }),
2023
+ className: H({ "Mui-hovered": z }),
2006
2024
  sx: {
2007
2025
  flex: "1 1 100%",
2008
2026
  ...G
@@ -2016,10 +2034,10 @@ var Qt = M(Z, { iconKey: "Check" }), Gt = {}, Ut = B($((e, r) => {
2016
2034
  },
2017
2035
  onBlur: () => $(!1),
2018
2036
  onMouseOver: () => {
2019
- B(!0);
2037
+ L(!0);
2020
2038
  },
2021
2039
  onMouseLeave: () => {
2022
- B(!1);
2040
+ L(!1);
2023
2041
  },
2024
2042
  onMouseEnter: (e) => {
2025
2043
  e.preventDefault(), q.reference.open();
@@ -2030,7 +2048,7 @@ var Qt = M(Z, { iconKey: "Check" }), Gt = {}, Ut = B($((e, r) => {
2030
2048
  };
2031
2049
  let J = M(C, {});
2032
2050
  if (X) {
2033
- const e = (f || Y)({
2051
+ const e = {
2034
2052
  tabIndex: -1,
2035
2053
  disabled: y,
2036
2054
  onMouseEnter: () => {
@@ -2039,11 +2057,14 @@ var Qt = M(Z, { iconKey: "Check" }), Gt = {}, Ut = B($((e, r) => {
2039
2057
  onMouseDown: (e) => {
2040
2058
  0 === e.button && (e.preventDefault(), j(e));
2041
2059
  },
2042
- className: V("quick-left", {}, h?.className),
2060
+ className: H("quick-left", {}, h?.className),
2043
2061
  ...h
2044
- });
2062
+ };
2045
2063
  J = S(C, { children: [
2046
- e,
2064
+ M(ae, {
2065
+ render: f ?? Y,
2066
+ props: e
2067
+ }),
2047
2068
  M(s, {
2048
2069
  sx: {
2049
2070
  ml: "0px",
@@ -2055,7 +2076,7 @@ var Qt = M(Z, { iconKey: "Check" }), Gt = {}, Ut = B($((e, r) => {
2055
2076
  }),
2056
2077
  M(m, {
2057
2078
  ref: F,
2058
- className: V({
2079
+ className: H({
2059
2080
  "Mui-selected": R,
2060
2081
  "Mui-hovered": z
2061
2082
  }),
@@ -2104,7 +2125,7 @@ var Qt = M(Z, { iconKey: "Check" }), Gt = {}, Ut = B($((e, r) => {
2104
2125
  tabIndex: -1,
2105
2126
  disabled: y,
2106
2127
  icon: b,
2107
- className: V({
2128
+ className: H({
2108
2129
  "Mui-selected": R || o,
2109
2130
  "Mui-hovered": z
2110
2131
  }),
@@ -2134,7 +2155,7 @@ var Qt = M(Z, { iconKey: "Check" }), Gt = {}, Ut = B($((e, r) => {
2134
2155
  "aria-label": "split button",
2135
2156
  ref: E,
2136
2157
  tabIndex: y ? void 0 : 0,
2137
- className: V({
2158
+ className: H({
2138
2159
  "Mui-disabled": y,
2139
2160
  "Mui-selected": R,
2140
2161
  "Mui-focusVisible": I || R,
@@ -2156,10 +2177,14 @@ var Qt = M(Z, { iconKey: "Check" }), Gt = {}, Ut = B($((e, r) => {
2156
2177
  ...T,
2157
2178
  children: J
2158
2179
  });
2159
- return X && !N && (h?.tooltip || h?.createTooltip) && (Z = (h?.createTooltip ?? U)({
2160
- title: R ? "" : Z ?? h?.tooltip,
2161
- children: Z
2162
- }, R)), S(t, {
2180
+ return X && !N && (h?.tooltip || h?.renderTooltip) && (Z = M(ae, {
2181
+ render: h?.renderTooltip ?? U,
2182
+ props: {
2183
+ title: R ? "" : Z ?? h?.tooltip,
2184
+ children: Z,
2185
+ disabled: R
2186
+ }
2187
+ })), S(t, {
2163
2188
  ref: r,
2164
2189
  sx: {
2165
2190
  zIndex: I || R ? 2 : void 0,
@@ -2171,12 +2196,12 @@ var Qt = M(Z, { iconKey: "Check" }), Gt = {}, Ut = B($((e, r) => {
2171
2196
  },
2172
2197
  children: [Z, q.component]
2173
2198
  });
2174
- })), Xt = B($((e, t) => {
2199
+ })), Xt = z(I((e, t) => {
2175
2200
  const { onSelectToggle: r, selected: o = !1, label: n, shortcut: i, tabIndex: a = 0, preventFocus: l = !1, ...s } = e;
2176
2201
  return M(Ot, {
2177
2202
  label: n,
2178
2203
  shortcut: i,
2179
- children: M(At, {
2204
+ children: M(Ft, {
2180
2205
  ref: t,
2181
2206
  outlined: !1,
2182
2207
  tabIndex: a,
@@ -2190,13 +2215,13 @@ var Qt = M(Z, { iconKey: "Check" }), Gt = {}, Ut = B($((e, r) => {
2190
2215
  ...s
2191
2216
  })
2192
2217
  });
2193
- })), Yt = M(Z, {}), _t = M(Z, { iconKey: "Check" }), Jt = B($((e, r) => {
2218
+ })), Yt = M(J, {}), _t = M(J, { iconKey: "Check" }), Jt = z(I((e, r) => {
2194
2219
  const { children: o, selected: n = !0, outlined: i = !0, sx: a, ...l } = e, s = A(() => ({
2195
2220
  display: "flex",
2196
2221
  border: (e) => n ? `solid ${i ? e.palette.divider : "transparent"} 1px` : "solid transparent 1px",
2197
2222
  borderRadius: (e) => `${e.shape.borderRadius}px`,
2198
2223
  backgroundColor: (e) => {
2199
- if (n) return q(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity);
2224
+ if (n) return V(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity);
2200
2225
  },
2201
2226
  ...a
2202
2227
  }), [a]);
@@ -2229,7 +2254,7 @@ var Qt = M(Z, { iconKey: "Check" }), Gt = {}, Ut = B($((e, r) => {
2229
2254
  "stackTrace.log": "Log error to console",
2230
2255
  "stackTrace.moreFrames": "... and {count} more frames",
2231
2256
  "window.close": "Close"
2232
- }, { DefaultCommandCatalogService: er } = Y, tr = !1;
2257
+ }, { DefaultCommandCatalogService: er } = X, tr = !1;
2233
2258
  function rr() {
2234
2259
  tr || (tr = !0, er.registerFromManifest("@sheetxl/utils-mui", import.meta.url, { messages: Zt }));
2235
2260
  }
@@ -2237,19 +2262,19 @@ rr();
2237
2262
  var or = {
2238
2263
  inline: null,
2239
2264
  popup: []
2240
- }, nr = B($((e, r) => {
2241
- const { children: o, sx: n, ...i } = e, a = Ce(), l = ye(r, () => ({}), []), [s, c] = ke(), 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, w] = H(!1), k = W(!1), C = fe(), T = W(C);
2265
+ }, nr = z(I((e, r) => {
2266
+ const { children: o, sx: n, ...i } = e, a = Ce(), l = ye(r, () => ({}), []), [s, c] = ke(), d = K(null), p = K(null), [u, m] = F((e) => e + 1, 0), [h, f] = W(null), [g, x] = W(null), b = g?.popup ?? null, y = K(0), [v, w] = W(!1), k = K(!1), C = fe(), T = K(C);
2242
2267
  T.current = C;
2243
- const R = L(() => {
2268
+ const D = B(() => {
2244
2269
  T.current?.closeChild(0);
2245
- }, []), I = L(() => {
2270
+ }, []), I = B(() => {
2246
2271
  k.current = !0, w(!0);
2247
- }, []), $ = L(() => {
2272
+ }, []), $ = B(() => {
2248
2273
  k.current = !1, w(!1);
2249
- }, []), z = W(null), B = W(/* @__PURE__ */ new Map()), N = L(() => {
2250
- B.current.clear(), x(null), m();
2274
+ }, []), z = K(null), L = K(/* @__PURE__ */ new Map()), N = B(() => {
2275
+ L.current.clear(), x(null), m();
2251
2276
  }, []);
2252
- F(() => {
2277
+ E(() => {
2253
2278
  p.current = { refs: [] };
2254
2279
  const e = [], r = P.toArray(o);
2255
2280
  let n = 0;
@@ -2267,7 +2292,7 @@ var or = {
2267
2292
  children: o
2268
2293
  }, i));
2269
2294
  }), f(e);
2270
- }, [o, c]), F(() => {
2295
+ }, [o, c]), E(() => {
2271
2296
  if (!h) return;
2272
2297
  const e = p.current?.refs ?? [], t = e.length;
2273
2298
  if (!l.current || 0 === t) return void x(null);
@@ -2277,13 +2302,13 @@ var or = {
2277
2302
  for (let t = 0; t < e.length; t++) {
2278
2303
  const r = e[t].target;
2279
2304
  if (!r.isConnected) continue;
2280
- const o = B.current.get(r);
2305
+ const o = L.current.get(r);
2281
2306
  if (void 0 !== o && Math.abs(r.getBoundingClientRect().width - o) > .5) return void N();
2282
2307
  }
2283
- }), B.current.clear();
2308
+ }), L.current.clear();
2284
2309
  for (let o = 0; o < t; o++) {
2285
2310
  const t = e[o]?.current;
2286
- t && (B.current.set(t, t.getBoundingClientRect().width), r.observe(t));
2311
+ t && (L.current.set(t, t.getBoundingClientRect().width), r.observe(t));
2287
2312
  }
2288
2313
  };
2289
2314
  let a = 0, s = !1;
@@ -2297,7 +2322,7 @@ var or = {
2297
2322
  const n = t.current.getBoundingClientRect();
2298
2323
  a += n?.width, a > r.width && (s = !0);
2299
2324
  }
2300
- if (!s) return i(), k.current && R(), void x(or);
2325
+ if (!s) return i(), k.current && D(), void x(or);
2301
2326
  const c = d.current?.getBoundingClientRect();
2302
2327
  c?.width && (y.current = c.width);
2303
2328
  const u = r.width - y.current;
@@ -2320,10 +2345,10 @@ var or = {
2320
2345
  h,
2321
2346
  c,
2322
2347
  u
2323
- ]), F(() => () => {
2348
+ ]), E(() => () => {
2324
2349
  z.current?.disconnect(), z.current = null;
2325
2350
  }, []);
2326
- const O = L((e) => {
2351
+ const O = B((e) => {
2327
2352
  const r = [], o = b?.length ?? 0;
2328
2353
  for (let e = 0; e < o; e++) {
2329
2354
  const t = P.toArray(b[e])[0];
@@ -2331,7 +2356,7 @@ var or = {
2331
2356
  const n = t, i = {
2332
2357
  ...n.props,
2333
2358
  key: `overflow-${e}-${o}${n.key ?? ""}`
2334
- }, a = D(n, i);
2359
+ }, a = R(n, i);
2335
2360
  r.push(a);
2336
2361
  });
2337
2362
  }
@@ -2353,7 +2378,7 @@ var or = {
2353
2378
  children: r
2354
2379
  })
2355
2380
  });
2356
- }, [b]), E = Se([
2381
+ }, [b]), A = Se([
2357
2382
  l,
2358
2383
  s,
2359
2384
  r
@@ -2371,7 +2396,7 @@ var or = {
2371
2396
  overflow: "hidden",
2372
2397
  ...n
2373
2398
  },
2374
- ref: E,
2399
+ ref: A,
2375
2400
  ...i,
2376
2401
  children: [M(t, {
2377
2402
  sx: {
@@ -2393,33 +2418,33 @@ var or = {
2393
2418
  alignItems: "center"
2394
2419
  },
2395
2420
  children: M(jt, {
2396
- createPopupPanel: O,
2421
+ renderPopupPanel: O,
2397
2422
  ref: d,
2398
2423
  onPopupOpen: I,
2399
2424
  onPopupClose: $,
2400
- createTooltip: ({ children: e }, t) => M(Ot, {
2425
+ renderTooltip: ({ children: e, disabled: t }) => M(Ot, {
2401
2426
  label: a("overflow.more"),
2402
2427
  description: a("overflow.moreDescription"),
2403
2428
  disabled: t,
2404
2429
  children: e
2405
2430
  }),
2406
- icon: M(Z, { iconKey: "MoreHorizontal" })
2431
+ icon: M(J, { iconKey: "MoreHorizontal" })
2407
2432
  })
2408
2433
  })]
2409
2434
  });
2410
- })), ir = I(void 0), ar = ({ error: e }) => {
2411
- const t = N(ir);
2412
- return O(() => {
2435
+ })), ir = D(void 0), ar = ({ error: e }) => {
2436
+ const t = L(ir);
2437
+ return N(() => {
2413
2438
  t?.(e);
2414
2439
  }, [e]), null;
2415
2440
  };
2416
2441
  function lr(e) {
2417
- const t = pe(e, { renderError: (e) => M(ar, { error: e }) });
2442
+ const t = pe(e, { renderError: ({ error: e }) => M(ar, { error: e }) });
2418
2443
  return (e) => {
2419
2444
  const { onLoadError: r, ...o } = e;
2420
2445
  return M(ir.Provider, {
2421
2446
  value: r,
2422
- children: M(R, {
2447
+ children: M(T, {
2423
2448
  fallback: null,
2424
2449
  children: M(t, { ...o })
2425
2450
  })
@@ -2427,7 +2452,7 @@ function lr(e) {
2427
2452
  };
2428
2453
  }
2429
2454
  function sr(e) {
2430
- const [t, r] = H(() => /* @__PURE__ */ new Map()), o = W(null);
2455
+ const [t, r] = W(() => /* @__PURE__ */ new Map()), o = K(null);
2431
2456
  null === o.current && (o.current = /* @__PURE__ */ new Map());
2432
2457
  const { showModal: n, updateModal: i, destroyModal: a, hideModal: l } = Re({ disableAutoDestroy: !0 });
2433
2458
  return (s, c, d, p) => new Promise((u, m) => {
@@ -2496,13 +2521,13 @@ rr();
2496
2521
  var cr = {
2497
2522
  x: 0,
2498
2523
  y: 0
2499
- }, dr = B($((e, t) => {
2500
- const { defaultPosition: r = cr, 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 ? {
2524
+ }, dr = z(I((e, t) => {
2525
+ const { defaultPosition: r = cr, PaperComponent: o = f, onDragStop: n, rootSel: i = ".MuiModal-root", handleSel: a = ".draggable-title", titleSize: l, rootSize: s, ...c } = e, d = K(null), p = A(() => l?.width && l?.height && s?.width && s?.height ? {
2501
2526
  left: 0,
2502
2527
  top: 0,
2503
2528
  right: s.width - l.width,
2504
2529
  bottom: s.height - l.height
2505
- } : null, [l, s]), [u, m] = H(null), [h, g] = H(null), x = u ?? r ?? null, b = A(() => x && p ? {
2530
+ } : null, [l, s]), [u, m] = W(null), [h, g] = W(null), x = u ?? r ?? null, b = A(() => x && p ? {
2506
2531
  x: Math.max(0, Math.min(x.x, p.right)),
2507
2532
  y: Math.max(0, Math.min(x.y, p.bottom))
2508
2533
  } : x, [x, p]), y = Se([d, t]);
@@ -2538,23 +2563,23 @@ var cr = {
2538
2563
  })), pr = {
2539
2564
  x: "50",
2540
2565
  y: "50"
2541
- }, ur = B($((r, o) => {
2566
+ }, ur = z(I((r, o) => {
2542
2567
  const n = k({
2543
2568
  props: r,
2544
2569
  name: "MuiDialog"
2545
2570
  }), i = w(), a = Ce(), s = {
2546
2571
  enter: .66 * i.transitions.duration.enteringScreen,
2547
2572
  exit: .66 * i.transitions.duration.leavingScreen
2548
- }, { 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 = pr, isModal: N = !1, suspendModal: A = !1, restoreFocus: K = !0, disableAutoDestroy: j = !1, revealToken: Q, startHidden: U = !1, ...X } = n;
2573
+ }, { title: p = "SheetXL", onCancel: u, onDone: m, onShow: h, onShown: g, onHide: x, onClose: b, open: v, autoFocusSel: C, children: P, transitionDuration: T = s, TransitionProps: R, slots: D = Q.EmptyArray, slotProps: I = Q.EmptyArray, sx: $, className: z, onMouseDown: B, initialPosition: L = pr, isModal: A = !1, suspendModal: F = !1, restoreFocus: q = !0, disableAutoDestroy: j = !1, revealToken: G, startHidden: U = !1, ...X } = n;
2549
2574
  let Y = D.transition ?? c;
2550
- const _ = D.backdrop ?? e, J = D.paper ?? f;
2575
+ const _ = D.backdrop ?? e, Z = D.paper ?? f;
2551
2576
  let ee = I.transition;
2552
2577
  R && (ee = {
2553
2578
  ...R,
2554
2579
  ...ee
2555
2580
  });
2556
- const te = I.backdrop, re = I.paper, [ne, ie] = H(null), [ae, le] = H(!1), [se, de] = H(!1), pe = W(null), [me, he] = ke(), fe = W(null), ge = W(null), [ve, we] = ke(), Pe = W(null), Te = E(), Re = W(null);
2557
- F(() => {
2581
+ const te = I.backdrop, oe = I.paper, [ne, ie] = W(null), [ae, le] = W(!1), [se, de] = W(!1), pe = K(null), [me, he] = ke(), fe = K(null), ge = K(null), [ve, we] = ke(), Pe = K(null), Te = O(), Re = K(null);
2582
+ E(() => {
2558
2583
  if (!ne || U) return;
2559
2584
  const e = !!v;
2560
2585
  Re.current !== e && (Re.current = e, le(e));
@@ -2566,7 +2591,7 @@ var cr = {
2566
2591
  const Ie = ue(() => {
2567
2592
  u?.(), le(!1);
2568
2593
  }, [u]);
2569
- F(() => {
2594
+ E(() => {
2570
2595
  if (ne) return;
2571
2596
  const e = fe.current, t = Pe.current;
2572
2597
  if (!e || !t) return;
@@ -2579,38 +2604,38 @@ var cr = {
2579
2604
  y: l
2580
2605
  });
2581
2606
  });
2582
- const [$e, ze] = H(!1), [Be, Le] = H(null), [Ne, Oe] = H(null), Ee = ue((e) => {
2607
+ const [$e, ze] = W(!1), [Be, Le] = W(null), [Ne, Oe] = W(null), Ee = ue((e) => {
2583
2608
  if (Be) return Be.focus(e), !0;
2584
2609
  if (C) {
2585
2610
  const t = ge.current?.querySelectorAll?.(C);
2586
2611
  if (t && t.length > 0) return t[0]?.focus?.(e), !0;
2587
2612
  }
2588
2613
  return ge.current?.focus?.(e), !1;
2589
- }, [Be, C]), Fe = ye(o, () => ({ focus: (e) => {
2614
+ }, [Be, C]), Ae = ye(o, () => ({ focus: (e) => {
2590
2615
  Ee(e);
2591
- } }), []), Ae = W(Q);
2592
- O(() => {
2593
- Q !== Ae.current && (Ae.current = Q, le(!0));
2594
- }, [Q]);
2616
+ } }), []), Fe = K(G);
2617
+ N(() => {
2618
+ G !== Fe.current && (Fe.current = G, le(!0));
2619
+ }, [G]);
2595
2620
  const Ke = {
2596
2621
  ...ee,
2597
2622
  onExited: (e) => {
2598
2623
  m?.(null), j || ee?.onExited?.(e);
2599
2624
  },
2600
2625
  onExit: (e) => {
2601
- const t = Ne, r = "function" == typeof K ? K() : K;
2626
+ const t = Ne, r = "function" == typeof q ? q() : q;
2602
2627
  t && !1 !== r && requestAnimationFrame(() => {
2603
- Fe.current?.contains(document.activeElement) && t.focus();
2628
+ Ae.current?.contains(document.activeElement) && t.focus();
2604
2629
  }), x?.(), de(!1), ee?.onExit?.(e);
2605
2630
  },
2606
2631
  onEntered: (e, t) => {
2607
2632
  h?.(), ee?.onEntered?.(e, t);
2608
2633
  },
2609
2634
  onEntering: (e, t) => {
2610
- de(!0), g?.(Fe.current);
2635
+ de(!0), g?.(Ae.current);
2611
2636
  }
2612
2637
  };
2613
- O(() => {
2638
+ N(() => {
2614
2639
  se && Ee();
2615
2640
  }, [se]);
2616
2641
  const We = Se([Pe, o]);
@@ -2618,7 +2643,7 @@ var cr = {
2618
2643
  open: se,
2619
2644
  disableAutoFocus: !0,
2620
2645
  disableEnforceFocus: !$e,
2621
- disableRestoreFocus: !0 !== K,
2646
+ disableRestoreFocus: !0 !== q,
2622
2647
  children: M(Y, {
2623
2648
  in: ae,
2624
2649
  timeout: T,
@@ -2633,19 +2658,19 @@ var cr = {
2633
2658
  position: "relative"
2634
2659
  },
2635
2660
  onKeyDown: (e) => {
2636
- e.which === oe.Escape && (Ie(), pe.current?.start(e, { center: !1 }), setTimeout(() => pe.current?.stop(e), 180)), e.stopPropagation();
2661
+ e.which === re.Escape && (Ie(), pe.current?.start(e, { center: !1 }), setTimeout(() => pe.current?.stop(e), 180)), e.stopPropagation();
2637
2662
  },
2638
2663
  children: S(dr, {
2639
2664
  ref: We,
2640
- className: V({ "Mui-focusVisible": $e }, z, "draggable"),
2665
+ className: H({ "Mui-focusVisible": $e }, z, "draggable"),
2641
2666
  sx: {
2642
2667
  "& *": (e) => wt(e),
2643
2668
  pointerEvents: "auto",
2644
2669
  userSelect: "none",
2645
2670
  backgroundColor: "var(--sxl-color-elevated, var(--sxl-color-base-100))",
2646
2671
  border: "1px solid var(--sxl-color-elevated-border, transparent)",
2647
- "&:hover:not([disabled]):not(.Mui-focusVisible)": { outline: (e) => `solid ${q(e.palette.text?.primary, .2)} 1px` },
2648
- "&.Mui-focusVisible": { outline: (e) => `solid ${q(e.palette.text?.primary, .2)} 1px` },
2672
+ "&:hover:not([disabled]):not(.Mui-focusVisible)": { outline: (e) => `solid ${V(e.palette.text?.primary, .2)} 1px` },
2673
+ "&.Mui-focusVisible": { outline: (e) => `solid ${V(e.palette.text?.primary, .2)} 1px` },
2649
2674
  position: "absolute",
2650
2675
  maxWidth: "100%",
2651
2676
  ...$
@@ -2653,11 +2678,11 @@ var cr = {
2653
2678
  defaultPosition: ne,
2654
2679
  titleSize: we,
2655
2680
  rootSize: he,
2656
- PaperComponent: J,
2681
+ PaperComponent: Z,
2657
2682
  ...X,
2658
- ...re,
2683
+ ...oe,
2659
2684
  children: [p ? M(l, {
2660
- className: V({ "Mui-selected": $e }, "draggable-title"),
2685
+ className: H({ "Mui-selected": $e }, "draggable-title"),
2661
2686
  sx: {
2662
2687
  cursor: "move",
2663
2688
  display: "flex",
@@ -2671,7 +2696,7 @@ var cr = {
2671
2696
  opacity: 1,
2672
2697
  transitionDuration: (e) => e.transitions.duration.shortest / 2 + "ms"
2673
2698
  },
2674
- backgroundColor: (e) => q(e.palette.action.hover, .03)
2699
+ backgroundColor: (e) => V(e.palette.action.hover, .03)
2675
2700
  },
2676
2701
  ref: ve,
2677
2702
  children: S(t, {
@@ -2701,7 +2726,7 @@ var cr = {
2701
2726
  pe.current?.start(e, { center: !1 }), e.stopPropagation(), e.preventDefault();
2702
2727
  },
2703
2728
  onPointerUp: Ie,
2704
- children: M(Z, { iconKey: "Close" })
2729
+ children: M(J, { iconKey: "Close" })
2705
2730
  })
2706
2731
  })]
2707
2732
  })
@@ -2710,7 +2735,7 @@ var cr = {
2710
2735
  })
2711
2736
  })
2712
2737
  }), Ve = null;
2713
- N && !A && (Ve = M(_, {
2738
+ A && !F && (Ve = M(_, {
2714
2739
  ...te,
2715
2740
  open: ae,
2716
2741
  onMouseDown: (e) => {
@@ -2725,12 +2750,12 @@ var cr = {
2725
2750
  }
2726
2751
  }));
2727
2752
  const { getPortalContainer: qe } = be(), { className: je, attrs: Qe } = ce(xe()?.themeScope), Ge = Se([
2728
- Fe,
2753
+ Ae,
2729
2754
  me,
2730
2755
  fe
2731
2756
  ]);
2732
2757
  return De(S(t, {
2733
- className: V("MuiModal-root", je),
2758
+ className: H("MuiModal-root", je),
2734
2759
  ...Qe,
2735
2760
  sx: {
2736
2761
  position: "fixed",
@@ -2756,34 +2781,34 @@ var cr = {
2756
2781
  }, 100), ze(!0), ge.current?.contains(e.target) && e.target !== ge.current && Le(e.target), e.relatedTarget && !Ne && Oe(e.relatedTarget);
2757
2782
  },
2758
2783
  onBlur: (e) => {
2759
- Fe?.current?.contains(e.relatedTarget) || (Oe(null), ze(!1));
2784
+ Ae?.current?.contains(e.relatedTarget) || (Oe(null), ze(!1));
2760
2785
  },
2761
2786
  children: [Ve, He]
2762
2787
  }), qe(), Te);
2763
2788
  })), mr = ["Ok", "Cancel"], hr = {
2764
- [ie.Info]: "ValidationInformation",
2765
- [ie.Warning]: "ValidationWarning",
2766
- [ie.Error]: "ValidationStop",
2767
- [ie.Success]: "Check"
2768
- }, fr = (e) => "string" == typeof e ? e : e.id ?? e, gr = (e, t) => void 0 !== t && fr(e) === fr(t), xr = (e) => "string" != typeof e && ("function" == typeof e.disabled ? e.disabled() : !0 === e.disabled), br = B($((e, o) => {
2769
- const { description: l, type: s, icon: c, onCancel: d, onOption: p, onDone: u, onValidateOption: m, options: h = mr, autoFocusSel: f = ".defaultOption", defaultOption: g = h[0], cancelOption: x = "Cancel", autoFocus: y, children: v, ...w } = e, k = Be({ shouldUseNativeValidation: !1 }), { handleSubmit: C, formState: P } = k, R = W(null), D = W(null), I = Ce(), $ = A(() => {
2789
+ [ne.Info]: "ValidationInformation",
2790
+ [ne.Warning]: "ValidationWarning",
2791
+ [ne.Error]: "ValidationStop",
2792
+ [ne.Success]: "Check"
2793
+ }, fr = (e) => "string" == typeof e ? e : e.id ?? e, gr = (e, t) => void 0 !== t && fr(e) === fr(t), xr = (e) => "string" != typeof e && ("function" == typeof e.disabled ? e.disabled() : !0 === e.disabled), br = z(I((e, o) => {
2794
+ const { description: l, type: s, icon: c, onCancel: d, onOption: p, onDone: u, onValidateOption: m, options: h = mr, autoFocusSel: f = ".defaultOption", defaultOption: g = h[0], cancelOption: x = "Cancel", autoFocus: y, children: v, ...w } = e, k = Be({ shouldUseNativeValidation: !1 }), { handleSubmit: C, formState: P } = k, T = K(null), R = K(null), D = Ce(), I = A(() => {
2770
2795
  const e = "string" == typeof c ? c : c ? void 0 : hr[s];
2771
- return e ? M(Z, {
2796
+ return e ? M(J, {
2772
2797
  iconKey: e,
2773
2798
  size: 32,
2774
2799
  ariaHidden: !0
2775
2800
  }) : c ?? null;
2776
- }, [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) => {
2801
+ }, [c, s]), $ = ue((e) => "string" != typeof e ? "function" == typeof e.label ? e.label() : e.label : "Ok" === e ? D("dialog.ok") : "Cancel" === e ? D("dialog.cancel") : e, [D]), z = K(null), [B, L] = W(null), N = ue(async (e) => {
2777
2802
  const t = fr(e);
2778
- if (null !== L) return;
2803
+ if (null !== B) return;
2779
2804
  if (xr(e)) return;
2780
2805
  const r = gr(e, x);
2781
2806
  let o;
2782
2807
  try {
2783
- if (N(t), o = !!r || (await Promise.resolve(m?.(t)) ?? !0), !0 !== o) return;
2808
+ if (L(t), o = !!r || (await Promise.resolve(m?.(t)) ?? !0), !0 !== o) return;
2784
2809
  await Promise.resolve(p?.(t, r, gr(e, g))), u?.(t);
2785
2810
  } catch (e) {} finally {
2786
- N(null);
2811
+ L(null);
2787
2812
  }
2788
2813
  }, [
2789
2814
  p,
@@ -2791,38 +2816,44 @@ var cr = {
2791
2816
  m,
2792
2817
  x,
2793
2818
  g,
2794
- L
2795
- ]), E = ue((e, t) => {
2819
+ B
2820
+ ]), O = ue((e, t) => {
2796
2821
  setTimeout(() => {
2797
- O(g);
2822
+ N(g);
2798
2823
  }, 180);
2799
- }, [O, g]), F = ue(() => {
2824
+ }, [N, g]), E = ue(() => {
2800
2825
  p?.(fr(x), !0, !1), d?.(), u?.(null);
2801
2826
  }, [
2802
2827
  p,
2803
2828
  x,
2804
2829
  d,
2805
2830
  u
2806
- ]), K = P && (Object.keys(P.errors).length > 0 || P.disabled || P.isSubmitting), V = ue((e, t, o) => {
2831
+ ]), F = P && (Object.keys(P.errors).length > 0 || P.disabled || P.isSubmitting), H = ue((e, t, o) => {
2807
2832
  const i = gr(e, x), a = {
2808
2833
  className: t ? "defaultOption" : "action",
2809
2834
  type: t ? "submit" : "button",
2810
2835
  style: { minWidth: "75px" },
2811
2836
  onClick: () => {
2812
- i ? F() : t || O(e);
2837
+ i ? E() : t || N(e);
2813
2838
  }
2814
2839
  }, l = "string" != typeof e ? e.renderButton : void 0;
2815
- if (l) return M(T, { children: l(a, t) }, `action:${o}`);
2816
- const s = null !== L && gr(e, L), c = {
2840
+ if (l) return M(ae, {
2841
+ render: l,
2842
+ props: {
2843
+ buttonProps: a,
2844
+ isDefaultOption: t
2845
+ }
2846
+ }, `action:${o}`);
2847
+ const s = null !== B && gr(e, B), c = {
2817
2848
  className: t ? "defaultOption" : "action",
2818
2849
  variant: t ? "contained" : "outlined",
2819
2850
  size: "small",
2820
- disabled: !i && (K || xr(e)) || null !== L && !s,
2851
+ disabled: !i && (F || xr(e)) || null !== B && !s,
2821
2852
  color: "primary",
2822
2853
  ...a
2823
2854
  };
2824
2855
  if (t || i) {
2825
- const e = t ? R : D;
2856
+ const e = t ? T : R;
2826
2857
  c.touchRippleRef = e, c.onPointerDown = (t) => {
2827
2858
  e.current?.start(t, { center: !1 }), t.stopPropagation(), t.preventDefault();
2828
2859
  };
@@ -2831,7 +2862,7 @@ var cr = {
2831
2862
  ...c,
2832
2863
  children: [M("div", {
2833
2864
  style: { visibility: s ? "hidden" : void 0 },
2834
- children: z(e)
2865
+ children: $(e)
2835
2866
  }), m && !i ? M(n, {
2836
2867
  size: 16,
2837
2868
  color: "inherit",
@@ -2851,24 +2882,24 @@ var cr = {
2851
2882
  g,
2852
2883
  x,
2853
2884
  P,
2854
- z,
2855
- L
2856
- ]), j = A(() => {
2885
+ $,
2886
+ B
2887
+ ]), q = A(() => {
2857
2888
  const e = [];
2858
2889
  for (let t = 0; t < h.length; t++) {
2859
2890
  const r = h[t], o = void 0 !== g ? gr(r, g) : 0 === t;
2860
- e.push(V(r, o, t));
2891
+ e.push(H(r, o, t));
2861
2892
  }
2862
2893
  return e;
2863
2894
  }, [
2864
2895
  h,
2865
2896
  g,
2866
2897
  P,
2867
- I,
2868
- L
2898
+ D,
2899
+ B
2869
2900
  ]);
2870
2901
  return M(ur, {
2871
- onCancel: F,
2902
+ onCancel: E,
2872
2903
  initialPosition: { y: "touch" === $e ? "15" : "35" },
2873
2904
  onDone: u,
2874
2905
  autoFocusSel: f,
@@ -2878,24 +2909,24 @@ var cr = {
2878
2909
  children: M(ze, {
2879
2910
  ...k,
2880
2911
  children: S("form", {
2881
- ref: B,
2882
- onSubmit: C(E),
2912
+ ref: z,
2913
+ onSubmit: C(O),
2883
2914
  children: [M(a, {
2884
2915
  dividers: !0,
2885
2916
  onKeyDown: (e) => {
2886
2917
  if (e.isDefaultPrevented()) return;
2887
2918
  e.stopPropagation();
2888
2919
  let t = null, r = null;
2889
- const o = e.which === oe.Escape && x;
2920
+ const o = e.which === re.Escape && x;
2890
2921
  if (o) {
2891
- if (null !== L) return;
2892
- t = x, r = D;
2922
+ if (null !== B) return;
2923
+ t = x, r = R;
2893
2924
  } else {
2894
- if (K || null !== L) return;
2895
- e.which === oe.Enter && (t = g ?? h[0], r = R);
2925
+ if (F || null !== B) return;
2926
+ e.which === re.Enter && (t = g ?? h[0], r = T);
2896
2927
  }
2897
2928
  t && (r?.current?.start(e, { center: !1 }), setTimeout(() => {
2898
- r?.current?.stop(e), o && F();
2929
+ r?.current?.stop(e), o && E();
2899
2930
  }, 180));
2900
2931
  },
2901
2932
  children: S(t, {
@@ -2903,7 +2934,7 @@ var cr = {
2903
2934
  display: "flex",
2904
2935
  flexDirection: "column",
2905
2936
  whiteSpace: "pre-wrap",
2906
- rowGap: (e) => e.spacing($ || l ? 1.5 : 0)
2937
+ rowGap: (e) => e.spacing(I || l ? 1.5 : 0)
2907
2938
  },
2908
2939
  children: [S(t, {
2909
2940
  sx: {
@@ -2912,12 +2943,12 @@ var cr = {
2912
2943
  alignItems: "flex-start",
2913
2944
  columnGap: (e) => e.spacing(2)
2914
2945
  },
2915
- children: [$ ? M(t, {
2946
+ children: [I ? M(t, {
2916
2947
  sx: {
2917
2948
  display: "flex",
2918
2949
  flex: "none"
2919
2950
  },
2920
- children: $
2951
+ children: I
2921
2952
  }) : null, M(b, {
2922
2953
  sx: { alignSelf: "center" },
2923
2954
  children: l
@@ -2930,9 +2961,9 @@ var cr = {
2930
2961
  paddingBottom: (e) => e.spacing(1),
2931
2962
  paddingLeft: (e) => e.spacing(1),
2932
2963
  paddingRight: (e) => e.spacing(1),
2933
- backgroundColor: (e) => q(e.palette.action.hover, .03)
2964
+ backgroundColor: (e) => V(e.palette.action.hover, .03)
2934
2965
  },
2935
- children: j
2966
+ children: q
2936
2967
  })]
2937
2968
  })
2938
2969
  })
@@ -2951,7 +2982,7 @@ var cr = {
2951
2982
  }
2952
2983
  });
2953
2984
  });
2954
- }, vr = lr(X("utils-mui:inputDialog", () => import("./nxST0XJIy9Y6DTRo.mjs")).load), wr = (e) => {
2985
+ }, vr = lr(U("utils-mui:inputDialog", () => import("./CYuCEbb0exvLvO8J.mjs")).load), wr = (e) => {
2955
2986
  const { showModal: t } = Re();
2956
2987
  return (r) => {
2957
2988
  const { defaultOption: o = r.options?.[0], cancelOption: n = "Cancel", ...i } = r;
@@ -2982,7 +3013,7 @@ var cr = {
2982
3013
  });
2983
3014
  });
2984
3015
  };
2985
- }, kr = B($((e, t) => {
3016
+ }, kr = z(I((e, t) => {
2986
3017
  const { commandKey: r, command: o, disabled: n, shortcut: i, children: a, ...l } = e, [s] = he(r ?? []), c = o ?? s, d = c?.getShortcut();
2987
3018
  return M(Ot, {
2988
3019
  ref: t,
@@ -3002,30 +3033,30 @@ var cr = {
3002
3033
  });
3003
3034
  })), Cr = Le;
3004
3035
  function Mr() {
3005
- const e = W(null);
3036
+ const e = K(null);
3006
3037
  return {
3007
3038
  ripple: A(() => M(Cr, {
3008
3039
  ref: e,
3009
3040
  center: !1
3010
3041
  }), []),
3011
- trigger: L(() => {
3042
+ trigger: B(() => {
3012
3043
  e.current?.start(void 0, { center: !0 }), setTimeout(() => e.current?.stop(), 180);
3013
3044
  }, [])
3014
3045
  };
3015
3046
  }
3016
- var Sr = M(Z, {}), Pr = B($((e, t) => {
3017
- 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 } = Mr(), g = A(() => ({ onExecute() {
3047
+ var Sr = M(J, {}), Pr = z(I((e, t) => {
3048
+ const { commandKey: r, command: o, groupKey: n, icon: i, label: a, showLabel: l = !1, disabled: s, variant: c = Y.Toolbar, shortcut: d, commandState: p, propsTooltip: u, ...m } = e, { ripple: h, trigger: f } = Mr(), g = A(() => ({ onExecute() {
3018
3049
  f();
3019
- } }), [f]), [x] = he(r ?? [], g), b = o ?? x, y = L((e) => {
3050
+ } }), [f]), [x] = he(r ?? [], g), b = o ?? x, y = B((e) => {
3020
3051
  0 === e.button && e.preventDefault();
3021
- }, []), v = L(async (e) => {
3052
+ }, []), v = B(async (e) => {
3022
3053
  0 === e.button && b && await b.execute(p);
3023
- }, [b, p]), w = L((e) => {
3024
- e.keyCode !== oe.Enter && e.keyCode !== oe.Space || b?.execute(p);
3054
+ }, [b, p]), w = B((e) => {
3055
+ e.keyCode !== re.Enter && e.keyCode !== re.Space || b?.execute(p);
3025
3056
  }, [b, p]), k = s ?? (!b || b.disabled()), C = b?.getState(), P = A(() => {
3026
3057
  if (null === i) return Sr;
3027
3058
  let e;
3028
- 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 : Sr;
3059
+ return e = "function" == typeof i ? b ? i(b) : void 0 : i, e || (e = b?.getIcon(n)), e ? ("string" == typeof e && (e = M(J, { iconKey: e })), e) : c === Y.Toolbar || C ? void 0 : Sr;
3029
3060
  }, [
3030
3061
  b,
3031
3062
  n,
@@ -3036,7 +3067,7 @@ var Sr = M(Z, {}), Pr = B($((e, t) => {
3036
3067
  tabIndex: 0,
3037
3068
  ref: t,
3038
3069
  selected: !!C,
3039
- icon: c === _.Toolbar ? l ? Oe(P, a ?? b?.getLabel(n)) : P : M(Jt, {
3070
+ icon: c === Y.Toolbar ? l ? Oe(P, a ?? b?.getLabel(n)) : P : M(Jt, {
3040
3071
  selected: C ?? !1,
3041
3072
  children: P
3042
3073
  }),
@@ -3047,11 +3078,11 @@ var Sr = M(Z, {}), Pr = B($((e, t) => {
3047
3078
  onKeyDown: w
3048
3079
  };
3049
3080
  let R;
3050
- return R = c === _.Menuitem ? S(Vt, {
3081
+ return R = c === Y.Menuitem ? S(Vt, {
3051
3082
  ...m,
3052
3083
  ...T,
3053
3084
  children: [a ?? b?.getLabel(n), h]
3054
- }) : M(At, {
3085
+ }) : M(Ft, {
3055
3086
  ...m,
3056
3087
  ...T,
3057
3088
  children: h
@@ -3059,17 +3090,17 @@ var Sr = M(Z, {}), Pr = B($((e, t) => {
3059
3090
  commandKey: r,
3060
3091
  command: o,
3061
3092
  disabled: k,
3062
- placement: c === _.Toolbar ? "bottom-start" : "right-start",
3093
+ placement: c === Y.Toolbar ? "bottom-start" : "right-start",
3063
3094
  shortcut: d,
3064
3095
  ...u,
3065
3096
  children: R
3066
3097
  }), R) : R;
3067
3098
  }));
3068
3099
  Pr.displayName = "CommandButton";
3069
- var Tr = M(Z, {}), Rr = B($((e, t) => {
3070
- 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 } = Mr(), x = A(() => ({ onExecute() {
3100
+ var Tr = M(J, {}), Rr = z(I((e, t) => {
3101
+ const { commandKey: r, groupKey: o, icon: n, commandState: i, label: a, variant: l = Y.Toolbar, disabled: s, parseInput: c, inputProps: u, inputRef: m, ...h } = e, { ripple: f, trigger: g } = Mr(), x = A(() => ({ onExecute() {
3071
3102
  g();
3072
- } }), [g]), b = he(r ?? [], x)[0], y = () => b?.getState()?.toString() || "", [v, w] = H(""), k = W(y()), C = ue(() => {
3103
+ } }), [g]), b = he(r ?? [], x)[0], y = () => b?.getState()?.toString() || "", [v, w] = W(""), k = K(y()), C = ue(() => {
3073
3104
  let e = v;
3074
3105
  if (c) try {
3075
3106
  e = c(v);
@@ -3084,13 +3115,13 @@ var Tr = M(Z, {}), Rr = B($((e, t) => {
3084
3115
  v,
3085
3116
  c
3086
3117
  ]);
3087
- O(() => {
3118
+ N(() => {
3088
3119
  w(y());
3089
3120
  }, [b?.getState()]);
3090
3121
  const P = A(() => {
3091
3122
  if (null === n) return Tr;
3092
3123
  let e;
3093
- 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 : Tr;
3124
+ return e = "function" == typeof n ? b ? n(b) : void 0 : n, e || (e = b?.getIcon()), e ? ("string" == typeof e && (e = M(J, { iconKey: e })), e) : l === Y.Toolbar || b?.getState() ? void 0 : Tr;
3094
3125
  }, [b?.getIcon(), n]), T = A(() => void 0 === a ? b?.getLabel(o) : "function" == typeof a ? a() : a, [a, b?.getLabel(o)]), R = s ?? (!b || b.disabled()), D = A(() => M(d, {
3095
3126
  ...h,
3096
3127
  sx: {
@@ -3138,14 +3169,14 @@ var Tr = M(Z, {}), Rr = B($((e, t) => {
3138
3169
  e.target?.select();
3139
3170
  },
3140
3171
  onKeyDown: (e) => {
3141
- if (e.which === oe.Enter) y() !== v && (e.stopPropagation(), e.preventDefault(), C());
3142
- else if (e.which === oe.Escape) y() !== v && (w(y()), setTimeout(() => {
3172
+ if (e.which === re.Enter) y() !== v && (e.stopPropagation(), e.preventDefault(), C());
3173
+ else if (e.which === re.Escape) y() !== v && (w(y()), setTimeout(() => {
3143
3174
  e.target?.select();
3144
3175
  }, 0), e.stopPropagation(), e.preventDefault());
3145
3176
  else {
3146
3177
  if (e.key.match("[-]")) return e.stopPropagation(), void e.preventDefault();
3147
3178
  if (e.key.match("[0-9.]") && (v + e.key).length > 4) return e.stopPropagation(), void e.preventDefault();
3148
- if (e.which === oe.Space) return void e.preventDefault();
3179
+ if (e.which === re.Space) return void e.preventDefault();
3149
3180
  }
3150
3181
  },
3151
3182
  onBlur: () => {
@@ -3174,11 +3205,11 @@ var Tr = M(Z, {}), Rr = B($((e, t) => {
3174
3205
  0 !== e.button || e.isPropagationStopped() || e.isDefaultPrevented() || e.isDefaultPrevented() || (e.preventDefault(), C());
3175
3206
  },
3176
3207
  onKeyDown: (e) => {
3177
- e.keyCode !== oe.Enter && e.keyCode !== oe.Tab || C();
3208
+ e.keyCode !== re.Enter && e.keyCode !== re.Tab || C();
3178
3209
  }
3179
3210
  };
3180
3211
  let $;
3181
- return $ = l === _.Menuitem ? S(Vt, {
3212
+ return $ = l === Y.Menuitem ? S(Vt, {
3182
3213
  ...h,
3183
3214
  ...I,
3184
3215
  children: [
@@ -3186,23 +3217,23 @@ var Tr = M(Z, {}), Rr = B($((e, t) => {
3186
3217
  D,
3187
3218
  f
3188
3219
  ]
3189
- }) : M(At, {
3220
+ }) : M(Ft, {
3190
3221
  ...h,
3191
3222
  ...I,
3192
3223
  children: f
3193
3224
  }), b?.getLabel() ? ((b.disabled() || s) && ($ = M("div", { children: $ })), $ = M(kr, {
3194
3225
  commandKey: r,
3195
- placement: l === _.Toolbar ? "bottom-start" : "right-start",
3226
+ placement: l === Y.Toolbar ? "bottom-start" : "right-start",
3196
3227
  children: $
3197
3228
  }), $) : $;
3198
- })), Dr = B($((e, t) => {
3199
- 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 } = Mr(), g = A(() => ({ onExecute() {
3229
+ })), Dr = z(I((e, t) => {
3230
+ const { variant: r = Y.Toolbar, quickCommand: o, onQuickClick: n, commandState: i, disabled: a, label: l, icon: s, renderPopupPanel: c, tooltip: d, selected: p, groupKey: u, ...m } = e, { ripple: h, trigger: f } = Mr(), g = A(() => ({ onExecute() {
3200
3231
  f();
3201
3232
  } }), [f]), [x] = he(o ?? [], g), { label: b, icon: y } = A(() => {
3202
3233
  let e = null;
3203
3234
  l && (e = "function" == typeof l ? x ? l(x) : null : l), e || (e = x?.getLabel?.(u));
3204
3235
  let t = s;
3205
- return t || (t = x?.getIcon?.(u)), "string" == typeof t ? t = M(Z, { iconKey: t }) : "function" == typeof t && (t = x ? t(x) : void 0), {
3236
+ return t || (t = x?.getIcon?.(u)), "string" == typeof t ? t = M(J, { iconKey: t }) : "function" == typeof t && (t = x ? t(x) : void 0), {
3206
3237
  label: e,
3207
3238
  icon: t
3208
3239
  };
@@ -3218,19 +3249,19 @@ var Tr = M(Z, {}), Rr = B($((e, t) => {
3218
3249
  label: b,
3219
3250
  icon: y
3220
3251
  };
3221
- (b || d) && (v.createTooltip = ({ children: e }, t) => M(Ot, {
3252
+ (b || d) && (v.renderTooltip = ({ children: e, disabled: t }) => M(Ot, {
3222
3253
  label: b,
3223
3254
  description: d,
3224
3255
  disabled: t,
3225
3256
  children: e
3226
3257
  }));
3227
3258
  const w = ue((e) => c?.(e), [c]), k = ue((e) => x?.execute(i), [x]);
3228
- return x ? (v.propsQuickButton = {}, v.propsQuickButton.createTooltip = ({ children: e, placement: t }, n) => M(kr, {
3259
+ return x ? (v.propsQuickButton = {}, v.propsQuickButton.renderTooltip = ({ children: e, placement: t, disabled: n }) => M(kr, {
3229
3260
  commandKey: o,
3230
- placement: t ?? r === _.Toolbar ? "bottom-start" : "right-start",
3261
+ placement: t ?? r === Y.Toolbar ? "bottom-start" : "right-start",
3231
3262
  disabled: n,
3232
3263
  children: e
3233
- }), v.disabled = v.disabled ?? x?.disabled(), n || (v.onQuickClick = k)) : o && (v.onQuickClick = () => {}), v.selected = p ?? x?.getState(), v.createPopupPanel = w, r === _.Toolbar ? M(jt, {
3264
+ }), v.disabled = v.disabled ?? x?.disabled(), n || (v.onQuickClick = k)) : o && (v.onQuickClick = () => {}), v.selected = p ?? x?.getState(), v.renderPopupPanel = w, r === Y.Toolbar ? M(jt, {
3234
3265
  ...m,
3235
3266
  ...v,
3236
3267
  ref: t
@@ -3291,12 +3322,12 @@ function Ir(e, t = {}) {
3291
3322
  continue;
3292
3323
  }
3293
3324
  const r = u(t);
3294
- r && (f && (m.push(M(He, { orientation: o }, "member-" + h++)), f = !1), m.push(D(r, { key: "member-" + h++ })), g = !0);
3325
+ r && (f && (m.push(M(He, { orientation: o }, "member-" + h++)), f = !1), m.push(R(r, { key: "member-" + h++ })), g = !0);
3295
3326
  }
3296
3327
  return m;
3297
3328
  }
3298
3329
  Dr.displayName = "CommandPopupButton";
3299
- var $r = B($((e, t) => {
3330
+ var $r = z(I((e, t) => {
3300
3331
  const { groupKey: r, members: o, registry: n, quickCommand: i, icon: a, label: l, showLabel: s, tooltip: c, commandState: d, disabled: p, ...u } = e, m = me(), h = n ?? m, f = !o && r ? h.get(r) : null, g = f && Array.isArray(f.members) ? f : null, x = A(() => o ?? (r ? h.resolveMembers(r) : null) ?? null, [
3301
3332
  o,
3302
3333
  r,
@@ -3314,11 +3345,11 @@ var $r = B($((e, t) => {
3314
3345
  if (t && !t.disabled()) return !1;
3315
3346
  }
3316
3347
  return !0;
3317
- }, [P]), R = L((e) => {
3348
+ }, [P]), R = B((e) => {
3318
3349
  const t = {};
3319
3350
  void 0 !== p && (t.disabled = p);
3320
3351
  const r = Ir(x, {
3321
- variant: _.Menuitem,
3352
+ variant: Y.Menuitem,
3322
3353
  dividerOrientation: "horizontal",
3323
3354
  groupKey: b,
3324
3355
  commandState: d,
@@ -3346,16 +3377,16 @@ var $r = B($((e, t) => {
3346
3377
  tooltip: C,
3347
3378
  commandState: d,
3348
3379
  disabled: p ?? T,
3349
- createPopupPanel: R,
3380
+ renderPopupPanel: R,
3350
3381
  ...u
3351
3382
  }) : null;
3352
3383
  }));
3353
3384
  $r.displayName = "CommandGroup";
3354
- var zr = M(Z, { iconKey: "Check" }), Br = (e) => {
3385
+ var zr = M(J, { iconKey: "Check" }), Br = (e) => {
3355
3386
  const { commandKey: r, label: o, groupKey: n, icon: i, sx: a, ...l } = e, [s] = he(r ?? []), c = A(() => {
3356
3387
  if (void 0 !== i) return i;
3357
3388
  let e = s?.getIcon(n);
3358
- return e ? ("string" == typeof e && (e = M(Z, { iconKey: e })), e) : zr;
3389
+ return e ? ("string" == typeof e && (e = M(J, { iconKey: e })), e) : zr;
3359
3390
  }, [
3360
3391
  i,
3361
3392
  n,
@@ -3383,17 +3414,17 @@ var zr = M(Z, { iconKey: "Check" }), Br = (e) => {
3383
3414
  children: o ?? s?.getLabel(n)
3384
3415
  })]
3385
3416
  });
3386
- }, Lr = B($((e, t) => {
3417
+ }, Lr = z(I((e, t) => {
3387
3418
  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, [
3388
3419
  a,
3389
3420
  i,
3390
3421
  u,
3391
3422
  u.getVersion()
3392
- ]), h = ye(t, () => ({}), []), [f, x] = H(null), { reference: b } = ge({
3423
+ ]), h = ye(t, () => ({}), []), [f, x] = W(null), { reference: b } = ge({
3393
3424
  label: "toolbar",
3394
3425
  anchor: h.current,
3395
3426
  parentFloat: n,
3396
- createPopupPanel: null
3427
+ renderPopupPanel: null
3397
3428
  }), y = ue(() => {
3398
3429
  const e = f;
3399
3430
  e && requestAnimationFrame(() => {
@@ -3459,7 +3490,7 @@ var zr = M(Z, { iconKey: "Check" }), Br = (e) => {
3459
3490
  f && !h?.current?.contains(e.relatedTarget) && x(null);
3460
3491
  },
3461
3492
  onKeyDown: (e) => {
3462
- f && e.which === oe.Escape && f.focus();
3493
+ f && e.which === re.Escape && f.focus();
3463
3494
  },
3464
3495
  ...d,
3465
3496
  children: M("div", {
@@ -3473,9 +3504,9 @@ var zr = M(Z, { iconKey: "Check" }), Br = (e) => {
3473
3504
  alignItems: "center",
3474
3505
  maxWidth: "100%"
3475
3506
  },
3476
- children: M(re, {
3507
+ children: M(te, {
3477
3508
  value: b,
3478
- children: M(J, {
3509
+ children: M(_, {
3479
3510
  value: y,
3480
3511
  children: T
3481
3512
  })
@@ -3484,7 +3515,7 @@ var zr = M(Z, { iconKey: "Check" }), Br = (e) => {
3484
3515
  });
3485
3516
  }));
3486
3517
  Lr.displayName = "CommandToolbar";
3487
- var Nr = B($((e, t) => {
3518
+ var Nr = z(I((e, t) => {
3488
3519
  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, [
3489
3520
  o,
3490
3521
  r,
@@ -3519,4 +3550,4 @@ var Nr = B($((e, t) => {
3519
3550
  });
3520
3551
  }));
3521
3552
  Nr.displayName = "ToggleGroupButton";
3522
- export { Ge as AnimatedBouncingEllipsisIcon, je as AnimatedCircleIcon, qe as AnimatedClockIcon, Qe as AnimatedFadingEllipsisIcon, Ze as AnimatedLoadingPanel, Ue as AnimatedOrbitIcon, Xe as AnimatedTraversingEllipsisIcon, pt as ArrowDownIcon, ut as ArrowRightIcon, st as ChipStrip, Ct as ClosingReason, Pr as CommandButton, $r as CommandGroup, Dr as CommandPopupButton, Lr as CommandToolbar, kr as CommandTooltip, zt as ContextMenu, He as ExhibitDivider, Tt as ExhibitFloatPanel, Dt as ExhibitFloatProvider, At as ExhibitIconButton, qt as ExhibitMenuHeader, Vt as ExhibitMenuItem, Xt as ExhibitOptionButton, jt as ExhibitPopupIconButton, Ut as ExhibitPopupMenuItem, Ot as ExhibitTooltip, Rr as InputCommandButton, ur as InternalWindow, Br as LabelIcon, at as LazyLoadErrorPanel, Wt as MenuItemInsets, Te as ModalProvider, It as NestingPopupButton, br as OptionsDialog, nr as OverflowPalette, kt as PopupAutoFocus, Mt as PopupButtonType, Jt as SelectedIcon, Bt as SimpleTooltip, ot as StackTrace, nt as StackTraceErrorPanel, Nr as ToggleGroupButton, Ne as buttonLabelSx, Oe as composeButtonContent, Pt as createDownArrow, yt as createExhibitTheme, Ae as createScrollButton, dt as createStrokeShadowFilter, St as defaultCreatePopupPanel, gt as elevateColor, vt as getScrollbarCssVariables, ft as hexToRGB, Je as hideLoadingPanel, lr as lazyModal, lt as lazyPanel, fr as optionIdentity, rr as registerUtilsMuiLocales, Ir as renderMembers, Fe as renderScrollButtonEdge, We as renderScrollButtonEnd, Ke as renderScrollButtonStart, wt as scrollbarTheming, _e as showLoadingPanel, ct as strokeShadowFilter, Nt as toShortcutElements, wr as useInputDialog, sr as useLazyWindow, yr as useOptionsDialog };
3553
+ export { Ge as AnimatedBouncingEllipsisIcon, je as AnimatedCircleIcon, qe as AnimatedClockIcon, Qe as AnimatedFadingEllipsisIcon, Ze as AnimatedLoadingPanel, Ue as AnimatedOrbitIcon, Xe as AnimatedTraversingEllipsisIcon, pt as ArrowDownIcon, ut as ArrowRightIcon, st as ChipStrip, Ct as ClosingReason, Pr as CommandButton, $r as CommandGroup, Dr as CommandPopupButton, Lr as CommandToolbar, kr as CommandTooltip, zt as ContextMenu, He as ExhibitDivider, Tt as ExhibitFloatPanel, Dt as ExhibitFloatProvider, Ft as ExhibitIconButton, qt as ExhibitMenuHeader, Vt as ExhibitMenuItem, Xt as ExhibitOptionButton, jt as ExhibitPopupIconButton, Ut as ExhibitPopupMenuItem, Ot as ExhibitTooltip, Rr as InputCommandButton, ur as InternalWindow, Br as LabelIcon, at as LazyLoadErrorPanel, Wt as MenuItemInsets, Te as ModalProvider, It as NestingPopupButton, br as OptionsDialog, nr as OverflowPalette, kt as PopupAutoFocus, Mt as PopupButtonType, Jt as SelectedIcon, Bt as SimpleTooltip, ot as StackTrace, nt as StackTraceErrorPanel, Nr as ToggleGroupButton, Ne as buttonLabelSx, Oe as composeButtonContent, Pt as createDownArrow, yt as createExhibitTheme, Fe as createScrollButton, dt as createStrokeShadowFilter, St as defaultRenderPopupPanel, Ae as defaultRenderScrollButtonEdge, We as defaultRenderScrollButtonEnd, Ke as defaultRenderScrollButtonStart, gt as elevateColor, vt as getScrollbarCssVariables, ft as hexToRGB, Je as hideLoadingPanel, lr as lazyModal, lt as lazyPanel, fr as optionIdentity, rr as registerUtilsMuiLocales, Ir as renderMembers, wt as scrollbarTheming, _e as showLoadingPanel, ct as strokeShadowFilter, Nt as toShortcutElements, wr as useInputDialog, sr as useLazyWindow, yr as useOptionsDialog };