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

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,19 +1,19 @@
1
1
  (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`._traverse-ellipsis_14l1h_1{display:inline-block;position:relative}._traverse-ellipsis_14l1h_1 div{border-radius:50%;position:absolute}._traverse-ellipsis_14l1h_1 div:first-child{animation:.6s infinite _traverse-ellipsis1_14l1h_1;left:0}._traverse-ellipsis_14l1h_1 div:nth-child(2){animation:.6s infinite _traverse-ellipsis2_14l1h_1;left:0}._traverse-ellipsis_14l1h_1 div:nth-child(3){animation:.6s infinite _traverse-ellipsis2_14l1h_1;left:24px}._traverse-ellipsis_14l1h_1 div:nth-child(4){animation:.6s infinite _traverse-ellipsis3_14l1h_1;left:48px}@keyframes _traverse-ellipsis1_14l1h_1{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes _traverse-ellipsis3_14l1h_1{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes _traverse-ellipsis2_14l1h_1{0%{transform:translate(0)}to{transform:translate(24px)}}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
2
  /**
3
- * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.11
3
+ * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.13
4
4
  *
5
5
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
6
6
  * License: The license can be found at https://www.sheetxl.com/license.
7
7
  */
8
- import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _, y as v } from "./BfHjPJF6LKjMxxHM.mjs";
8
+ import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _, y as v } from "./kxao4ZpZkzvhrq_0.mjs";
9
9
  import { Box as y, Button as b, Divider as x, IconButton as S, Input as C, LinearProgress as w, ListItemButton as T, ListItemIcon as E, Paper as D, Toolbar as O, Typography as k, useTheme as ee } from "@mui/material";
10
10
  import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
11
11
  import N, { Children as P, Fragment as F, Suspense as I, cloneElement as te, createContext as L, forwardRef as R, isValidElement as ne, memo as z, useCallback as B, useContext as re, useEffect as V, useLayoutEffect as ie, useMemo as H, useReducer as ae, useRef as U, useState as W } from "react";
12
12
  import { alpha as G } from "@mui/system";
13
13
  import { CommonUtils as oe, ErrorUtils as K, defineLazyModule as se } from "@sheetxl/utils";
14
- import { CommandButtonType as q, CommandFocusProvider as ce, DynamicIcon as J, FloatPopper as le, FloatProvider as ue, FloatStackProvider as de, KeyCodes as Y, ScrollbarOrientation as X, defaultCreateScrollEdgeButton as fe, lazyComponent as pe, useCallbackRef as Z, useCommandButtonRegistry as me, useCommands as he, useFloat as ge, useFloatStack as _e, useImperativeElement as ve, useIsomorphicLayoutEffect as ye, useLazyRetry as be, useMeasure as xe, useTranslator as Se } from "@sheetxl/utils-react";
15
- import Ce from "@mui/material/ButtonBase/TouchRipple";
16
- var we = {
14
+ import { CommandButtonType as q, CommandFocusProvider as ce, DynamicIcon as J, FloatPopper as le, FloatProvider as ue, FloatStackProvider as de, KeyCodes as Y, RenderSlot as fe, ScrollbarOrientation as X, defaultRenderScrollButtonEdge as pe, lazyComponent as me, useCallbackRef as Z, useCommandButtonRegistry as he, useCommands as ge, useFloat as _e, useFloatStack as ve, useImperativeElement as ye, useIsomorphicLayoutEffect as be, useLazyRetry as xe, useMeasure as Se, useTranslator as Ce } from "@sheetxl/utils-react";
15
+ import we from "@mui/material/ButtonBase/TouchRipple";
16
+ var Te = {
17
17
  whiteSpace: "nowrap",
18
18
  textTransform: "none",
19
19
  lineHeight: 1,
@@ -21,10 +21,10 @@ var we = {
21
21
  paddingLeft: (e) => e.spacing(.25),
22
22
  paddingRight: (e) => e.spacing(.25)
23
23
  };
24
- function Te(e, t) {
24
+ function Ee(e, t) {
25
25
  let n = t != null && !1 !== t && t !== "" ? j(k, {
26
26
  component: "div",
27
- sx: we,
27
+ sx: Te,
28
28
  children: t
29
29
  }) : null;
30
30
  return e && n ? M(y, {
@@ -35,18 +35,18 @@ function Te(e, t) {
35
35
  children: [e, n]
36
36
  }) : e ?? n ?? void 0;
37
37
  }
38
- var Ee = ({ isHorizontal: e, isBefore: t }) => {
39
- let n = Se();
38
+ var De = ({ isHorizontal: e, isBefore: t }) => {
39
+ let n = Ce();
40
40
  return j(A, t ? { children: n(e ? "scroll.edgeLeft" : "scroll.edgeTop") } : { children: n(e ? "scroll.edgeRight" : "scroll.edgeBottom") });
41
- }, De = (e) => {
41
+ }, Oe = (e) => {
42
42
  let t = {
43
43
  style: { cursor: "pointer" },
44
44
  ...e
45
- }, n = fe(t);
45
+ }, n = pe(t);
46
46
  if (e.isBefore !== void 0 && !e.disabled) {
47
47
  let t = e.orientation === X.Horizontal;
48
48
  n = j(m, {
49
- title: j(Ee, {
49
+ title: j(De, {
50
50
  isHorizontal: t,
51
51
  isBefore: e.isBefore
52
52
  }),
@@ -59,7 +59,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
59
59
  });
60
60
  }
61
61
  return n;
62
- }, Oe = (e, t, n, r) => {
62
+ }, ke = (e, t, n, r) => {
63
63
  let { style: i, ...a } = e, o = j(S, {
64
64
  component: "div",
65
65
  ...a,
@@ -82,19 +82,19 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
82
82
  children: o
83
83
  }) : o
84
84
  });
85
- }, ke = (e) => Oe(e, X.Horizontal ? j(J, {
85
+ }, Ae = (e) => ke(e, X.Horizontal ? j(J, {
86
86
  iconKey: "ArrowLeft",
87
87
  size: "small"
88
88
  }) : j(J, {
89
89
  iconKey: "ArrowUpward",
90
90
  size: "small"
91
- }), "Scroll " + (e.orientation === X.Horizontal ? "Left" : "Up"), `Scroll ${e.orientation === X.Horizontal ? "left" : "up"}, 'Ctrl+Click' to scroll to the beginning`), Ae = (e) => Oe(e, X.Horizontal ? j(J, {
91
+ }), "Scroll " + (e.orientation === X.Horizontal ? "Left" : "Up"), `Scroll ${e.orientation === X.Horizontal ? "left" : "up"}, 'Ctrl+Click' to scroll to the beginning`), je = (e) => ke(e, X.Horizontal ? j(J, {
92
92
  iconKey: "ArrowRight",
93
93
  size: "small"
94
94
  }) : j(J, {
95
95
  iconKey: "ArrowDownward",
96
96
  size: "small"
97
- }), "Scroll " + (e.orientation === X.Horizontal ? "Right" : "Down"), `Scroll ${e.orientation === X.Horizontal ? "right" : "down"}, 'Ctrl+Click' to scroll to the end`), je = z(R((e, t) => {
97
+ }), "Scroll " + (e.orientation === X.Horizontal ? "Right" : "Down"), `Scroll ${e.orientation === X.Horizontal ? "right" : "down"}, 'Ctrl+Click' to scroll to the end`), Me = z(R((e, t) => {
98
98
  let { orientation: n = "vertical", sx: r, ...i } = e, a = n === "vertical";
99
99
  return j(x, {
100
100
  ref: t,
@@ -112,7 +112,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
112
112
  flexItem: !0,
113
113
  ...i
114
114
  });
115
- })), Me = "_traverse-ellipsis_14l1h_1", Ne = z((e) => {
115
+ })), Ne = "_traverse-ellipsis_14l1h_1", Pe = z((e) => {
116
116
  let { sx: t, speed: n = 2, size: r = 70, ...i } = e;
117
117
  return j(y, {
118
118
  sx: {
@@ -175,7 +175,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
175
175
  ]
176
176
  })
177
177
  });
178
- }), Pe = z((e) => {
178
+ }), Fe = z((e) => {
179
179
  let { sx: t, speed: n = 1.5, size: r = 70, ...i } = e;
180
180
  return j(y, {
181
181
  sx: {
@@ -215,7 +215,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
215
215
  })]
216
216
  })
217
217
  });
218
- }), Fe = z((e) => {
218
+ }), Ie = z((e) => {
219
219
  let { sx: t, speed: n = 1, size: r = 70, ...i } = e;
220
220
  return j(y, {
221
221
  sx: {
@@ -272,7 +272,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
272
272
  ]
273
273
  })
274
274
  });
275
- }), Ie = z((e) => {
275
+ }), Le = z((e) => {
276
276
  let { sx: t, speed: n = 1, size: r = 70, ...i } = e;
277
277
  return j(y, {
278
278
  sx: {
@@ -336,7 +336,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
336
336
  ]
337
337
  })
338
338
  });
339
- }), Le = z((e) => {
339
+ }), Re = z((e) => {
340
340
  let { sx: t, speed: n = 2, size: r = 70, ...i } = e;
341
341
  return j(y, {
342
342
  sx: {
@@ -383,7 +383,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
383
383
  })]
384
384
  })
385
385
  });
386
- }), Re = z((e) => {
386
+ }), ze = z((e) => {
387
387
  let { sx: t, speed: n = 1, size: r = 13, width: i = 64, height: a = 17, ...o } = e;
388
388
  return M(y, {
389
389
  sx: {
@@ -397,7 +397,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
397
397
  },
398
398
  ...t
399
399
  },
400
- className: v(Me, "animated-icon"),
400
+ className: v(Ne, "animated-icon"),
401
401
  ...o,
402
402
  children: [
403
403
  j("div", { className: "primary" }),
@@ -406,7 +406,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
406
406
  j("div", { className: "primary" })
407
407
  ]
408
408
  });
409
- }), ze = j(Pe, {}), Be = (e, t) => {
409
+ }), Be = j(Fe, {}), Ve = (e, t) => {
410
410
  if (!e) return null;
411
411
  if (t !== void 0) {
412
412
  let n = e.querySelector("[data-sxl-loading-label]");
@@ -421,10 +421,10 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
421
421
  };
422
422
  n ? Promise.all(n.map((e) => e.ready)).then(r, r) : requestAnimationFrame(() => requestAnimationFrame(r));
423
423
  });
424
- }, Ve = (e) => {
424
+ }, He = (e) => {
425
425
  e && e.classList.contains("animating") && (e.classList.add("animating-idle"), e.classList.remove("animating"));
426
- }, He = z(R((e, t) => {
427
- let { sx: n, style: r, onMount: i, onUnmount: a, transitionDelay: o = "1200ms", panel: s = !1, autoStart: c = !0, transparentBackground: l = !0, icon: u = ze, label: d, progress: f = null, ...p } = e, m = H(() => typeof d == "string" || !c && d == null ? j(k, {
426
+ }, Ue = z(R((e, t) => {
427
+ let { sx: n, style: r, onMount: i, onUnmount: a, transitionDelay: o = "1200ms", panel: s = !1, autoStart: c = !0, transparentBackground: l = !0, icon: u = Be, label: d, progress: f = null, ...p } = e, m = H(() => typeof d == "string" || !c && d == null ? j(k, {
428
428
  "data-sxl-loading-label": "",
429
429
  variant: "caption",
430
430
  component: "div",
@@ -570,7 +570,7 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
570
570
  h,
571
571
  v
572
572
  ]), x = U(!1);
573
- return ye(() => {
573
+ return be(() => {
574
574
  if (!1 === c) return;
575
575
  let e = g.current;
576
576
  e && !x.current && (x.current = !0, e.classList.contains("animatable") && !e.classList.contains("animating") && (e.offsetHeight, e.classList.add("animating")), i?.());
@@ -578,29 +578,29 @@ var Ee = ({ isHorizontal: e, isBefore: t }) => {
578
578
  x.current && (g.current?.classList.remove("animating"), x.current = !1, a?.());
579
579
  }, []), b;
580
580
  }));
581
- He.displayName = "AnimatedLoadingPanel";
582
- var Ue = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, We = /^\s*at\s+(?:(async|new|await)\s+)?(.+?):(\d+):(\d+)\s*$/, Ge = (e) => {
581
+ Ue.displayName = "AnimatedLoadingPanel";
582
+ var We = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ge = /^\s*at\s+(?:(async|new|await)\s+)?(.+?):(\d+):(\d+)\s*$/, Ke = (e) => {
583
583
  if (!e) return "";
584
584
  try {
585
585
  e = new URL(e).pathname;
586
586
  } catch {}
587
587
  return e = (e = e.replace(/^\/+/, "")).replace(/^@?fs[\\/]/, "");
588
- }, Ke = z(({ error: e, maxLines: t = 2 ** 53 - 1, hideLineNumbers: n = !1 }) => {
589
- let r = Se(), [i, a] = W(null);
588
+ }, qe = z(({ error: e, maxLines: t = 2 ** 53 - 1, hideLineNumbers: n = !1 }) => {
589
+ let r = Ce(), [i, a] = W(null);
590
590
  if (!e?.stack) return null;
591
591
  let o = K.collectErrorChain(e).reverse(), s = [];
592
592
  o.forEach(({ error: e }, t) => {
593
593
  let n = (e.stack || "").split("\n").filter(Boolean).map((e) => {
594
- let t = e.match(Ue);
594
+ let t = e.match(We);
595
595
  if (t) {
596
596
  let [, e = "", n, r, i, a] = t;
597
597
  return {
598
598
  line: `at ${e ? e + " " : ""}${n}`,
599
- location: `${Ge(r).split(/[\\/]/).pop()}:${i}:${a}`
599
+ location: `${Ke(r).split(/[\\/]/).pop()}:${i}:${a}`
600
600
  };
601
601
  }
602
- if (t = e.match(We), t) {
603
- let [, e = "", n, r, i] = t, a = Ge(n), o = `${a.split(/[\\/]/).pop()}:${r}:${i}`;
602
+ if (t = e.match(Ge), t) {
603
+ let [, e = "", n, r, i] = t, a = Ke(n), o = `${a.split(/[\\/]/).pop()}:${r}:${i}`;
604
604
  return {
605
605
  line: `at ${e ? e + " " : ""}${o}`,
606
606
  location: a === o ? void 0 : `${a}:${r}:${i}`
@@ -784,12 +784,12 @@ var Ue = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, We
784
784
  })]
785
785
  });
786
786
  });
787
- Ke.displayName = "StackTrace";
788
- var qe = z(R((e, t) => {
787
+ qe.displayName = "StackTrace";
788
+ var Je = z(R((e, t) => {
789
789
  let { sx: n, icon: r = j(J, {
790
790
  iconKey: "Error",
791
791
  style: { fontSize: 48 }
792
- }), error: i, hideStackTrace: a = !1, stackTraceExpanded: o = !1, fullscreen: s = !1, ...c } = e, l = Se(), u = H(() => Je(i, a, o, s, l), [
792
+ }), error: i, hideStackTrace: a = !1, stackTraceExpanded: o = !1, fullscreen: s = !1, ...c } = e, l = Ce(), u = H(() => Ye(i, a, o, s, l), [
793
793
  i,
794
794
  a,
795
795
  o,
@@ -885,8 +885,8 @@ var qe = z(R((e, t) => {
885
885
  u
886
886
  ]);
887
887
  }));
888
- qe.displayName = "StackTraceErrorPanel";
889
- var Je = (e, t = !1, n = !1, r = !1, i = (e) => e) => {
888
+ Je.displayName = "StackTraceErrorPanel";
889
+ var Ye = (e, t = !1, n = !1, r = !1, i = (e) => e) => {
890
890
  if (ne(e)) return e;
891
891
  if (e instanceof Error) return M(y, {
892
892
  sx: {
@@ -919,7 +919,7 @@ var Je = (e, t = !1, n = !1, r = !1, i = (e) => e) => {
919
919
  },
920
920
  children: i("stackTrace.causedBy", { cause: e.cause instanceof Error ? e.cause.message : String(e.cause) })
921
921
  }) : null,
922
- !t && j(Ke, {
922
+ !t && j(qe, {
923
923
  error: e,
924
924
  hideLineNumbers: !0
925
925
  })
@@ -936,9 +936,9 @@ var Je = (e, t = !1, n = !1, r = !1, i = (e) => e) => {
936
936
  },
937
937
  children: a
938
938
  });
939
- }, Ye = z((e) => {
940
- let { error: t, ...n } = e, r = be(), i = Se(), a = t instanceof Error ? t.message : String(t);
941
- return j(qe, {
939
+ }, Xe = z((e) => {
940
+ let { error: t, ...n } = e, r = xe(), i = Ce(), a = t instanceof Error ? t.message : String(t);
941
+ return j(Je, {
942
942
  hideStackTrace: !0,
943
943
  error: M(y, {
944
944
  sx: {
@@ -961,25 +961,25 @@ var Je = (e, t = !1, n = !1, r = !1, i = (e) => e) => {
961
961
  ...n
962
962
  });
963
963
  });
964
- function Xe(e) {
965
- let t = pe(e, { renderError: (e) => j(Ye, { error: e }) });
964
+ function Ze(e) {
965
+ let t = me(e, { renderError: ({ error: e }) => j(Xe, { error: e }) });
966
966
  return (e) => j(I, {
967
- fallback: j(He, {}),
967
+ fallback: j(Ue, {}),
968
968
  children: j(t, { ...e })
969
969
  });
970
970
  }
971
- Ye.displayName = "LazyLoadErrorPanel";
972
- var Ze = {
971
+ Xe.displayName = "LazyLoadErrorPanel";
972
+ var Qe = {
973
973
  Popup: "popup",
974
974
  Anchor: "anchor"
975
- }, Qe = {
975
+ }, $e = {
976
976
  ByPopup: "popupDone",
977
977
  Cancel: "popupCancel",
978
978
  ClickAway: "clickAway"
979
- }, $e = {
979
+ }, et = {
980
980
  Toolbar: "toolbar",
981
981
  Menuitem: "menuitem"
982
- }, et = (e) => {
982
+ }, tt = (e) => {
983
983
  let { closeFloat: t, closeFloatAll: n, floatReference: r, popupContainer: i, children: a, className: o, sx: s, ...c } = e;
984
984
  return j(y, {
985
985
  className: v("menu", o),
@@ -993,7 +993,7 @@ var Ze = {
993
993
  ...c,
994
994
  children: a
995
995
  });
996
- }, tt = (e, t, n) => {
996
+ }, nt = (e, t, n) => {
997
997
  let r = "";
998
998
  return n && (r = (r ? r + " " : "") + "rotate(180deg)"), j(f, {
999
999
  style: {
@@ -1003,8 +1003,8 @@ var Ze = {
1003
1003
  },
1004
1004
  color: "inherit"
1005
1005
  });
1006
- }, nt = z(R((e, t) => {
1007
- let { open: n, anchorEl: r, anchorPosition: i, label: a, floatReference: o, createPopupPanel: s = et, propsPopper: l, onMount: u, onClosing: d, onClose: f, onOpening: p, onOpen: m, children: h, sx: g, ..._ } = e, v = Z(d ?? (() => {}), [d]), y = Z(f ?? (() => {}), [f]), b = Z(p ?? (() => {}), [p]), x = Z(m ?? (() => {}), [m]), [S, C] = W(), w = U(null), T = Z((e, t) => {
1006
+ }, rt = z(R((e, t) => {
1007
+ let { open: n, anchorEl: r, anchorPosition: i, label: a, floatReference: o, renderPopupPanel: s = tt, propsPopper: l, onMount: u, onClosing: d, onClose: f, onOpening: p, onOpen: m, children: h, sx: g, ..._ } = e, v = Z(d ?? (() => {}), [d]), y = Z(f ?? (() => {}), [f]), b = Z(p ?? (() => {}), [p]), x = Z(m ?? (() => {}), [m]), [S, C] = W(), w = U(null), T = Z((e, t) => {
1008
1008
  C(e), u?.(w.current, t);
1009
1009
  }, [u]), E = H(() => {
1010
1010
  let e = {
@@ -1012,7 +1012,7 @@ var Ze = {
1012
1012
  floatReference: o,
1013
1013
  children: h,
1014
1014
  ..._
1015
- }, t = s(e);
1015
+ };
1016
1016
  return j(D, {
1017
1017
  elevation: 8,
1018
1018
  ref: w,
@@ -1026,7 +1026,10 @@ var Ze = {
1026
1026
  "&.MuiPaper-root": (e) => c(e)
1027
1027
  },
1028
1028
  tabIndex: 0,
1029
- children: t
1029
+ children: j(fe, {
1030
+ render: s,
1031
+ props: e
1032
+ })
1030
1033
  });
1031
1034
  }, [
1032
1035
  s,
@@ -1049,20 +1052,20 @@ var Ze = {
1049
1052
  children: E
1050
1053
  });
1051
1054
  }));
1052
- nt.displayName = "ExhibitFloatPanel";
1053
- var rt = (e) => j(nt, { ...e }), it = (e) => j(ue, {
1054
- renderFloatPanel: rt,
1055
- createPopupPanel: et,
1056
- ...e
1057
- }), at = z(R((e, t) => {
1058
- let { nestedChildren: n, variant: r, disabled: i, createPopupPanel: a, ...o } = e, s = {
1055
+ rt.displayName = "ExhibitFloatPanel";
1056
+ var it = (e) => j(rt, { ...e }), at = (e) => j(ue, {
1057
+ ...e,
1058
+ renderFloatPanel: it,
1059
+ renderPopupPanel: tt
1060
+ }), ot = z(R((e, t) => {
1061
+ let { nestedChildren: n, variant: r, disabled: i, renderPopupPanel: a, ...o } = e, s = {
1059
1062
  disabled: i,
1060
- createPopupPanel: Z((e) => {
1063
+ renderPopupPanel: Z((e) => {
1061
1064
  if (!n || n.length === 0) return j(A, {});
1062
1065
  let { popupContainer: r, floatReference: i, ref: a, ...o } = e, s = [];
1063
1066
  for (let e = 0; e < n.length; e++) {
1064
1067
  let t = n[e];
1065
- t && s.push(j(at, {
1068
+ t && s.push(j(ot, {
1066
1069
  ...o,
1067
1070
  ...t
1068
1071
  }, e));
@@ -1078,15 +1081,15 @@ var rt = (e) => j(nt, { ...e }), it = (e) => j(ue, {
1078
1081
  children: [
1079
1082
  "Children here",
1080
1083
  s,
1081
- j(mt, { children: "Close other children" })
1084
+ j(ht, { children: "Close other children" })
1082
1085
  ]
1083
1086
  });
1084
1087
  }, [n]),
1085
1088
  ...o
1086
1089
  };
1087
- return j(r === $e.Toolbar ? gt : yt, { ...s });
1088
- })), ot = { placement: "right-start" }, st = z(R((e, t) => {
1089
- let { children: n, sx: r, parentFloat: i, createPopupPanel: a, propsPopper: o = ot, label: s, ...c } = e;
1090
+ return j(r === et.Toolbar ? _t : bt, { ...s });
1091
+ })), st = { placement: "right-start" }, ct = z(R((e, t) => {
1092
+ let { children: n, sx: r, parentFloat: i, renderPopupPanel: a, propsPopper: o = st, label: s, ...c } = e;
1090
1093
  if (!ne(n)) throw Error("Must supply a child component to enable a context menu.");
1091
1094
  let l = n, u = H(() => ({
1092
1095
  ...l?.props,
@@ -1094,18 +1097,18 @@ var rt = (e) => j(nt, { ...e }), it = (e) => j(ue, {
1094
1097
  onContextMenu: (e) => {
1095
1098
  l?.props?.onContextMenu?.(e), e.isDefaultPrevented() || (c?.onContextMenu?.(e), e.isDefaultPrevented() || (p(e), e.preventDefault()));
1096
1099
  }
1097
- }), [c, l?.props]), d = Z(a ?? (() => {}), [a]), [f, p] = W(null), { reference: m, component: h } = _e({
1100
+ }), [c, l?.props]), d = Z(a ?? (() => {}), [a]), [f, p] = W(null), { reference: m, component: h } = ve({
1098
1101
  label: s ?? "contextMenu",
1099
1102
  propsPopper: o,
1100
1103
  parentFloat: i,
1101
1104
  anchor: { getBoundingClientRect: () => new DOMRect(f?.clientX || 0, f?.clientY || 0) },
1102
1105
  onClose: () => p(null),
1103
- createPopupPanel: d
1106
+ renderPopupPanel: d
1104
1107
  });
1105
1108
  return V(() => {
1106
1109
  f ? m.open(0) : m.close(0);
1107
1110
  }, [f]), M(A, { children: [te(n, u), h] });
1108
- })), ct = j(J, {}), lt = j(J, { iconKey: "Check" }), ut = z(R((e, n) => {
1111
+ })), lt = j(J, {}), ut = j(J, { iconKey: "Check" }), dt = z(R((e, n) => {
1109
1112
  let { dense: r = !0, outlined: i = !1, disableHover: a = !1, selected: o, icon: s, propsTooltip: c, children: l, primary: u, sx: d, disabled: f, className: p, onFocus: h, onBlur: g, ..._ } = e, [b, x] = W(!1), C = {
1110
1113
  marginRight: "0px",
1111
1114
  padding: r ? "2px" : "7px",
@@ -1144,7 +1147,7 @@ var rt = (e) => j(nt, { ...e }), it = (e) => j(ue, {
1144
1147
  a || (T = oe.mergeContentful(C, w));
1145
1148
  let E = H(() => {
1146
1149
  let e = typeof s == "function" ? s() : s;
1147
- return e === null ? e : e || (o === void 0 ? ct : lt);
1150
+ return e === null ? e : e || (o === void 0 ? lt : ut);
1148
1151
  }, [s, o]), D = M(S, {
1149
1152
  component: "div",
1150
1153
  ref: n,
@@ -1185,13 +1188,13 @@ var rt = (e) => j(nt, { ...e }), it = (e) => j(ue, {
1185
1188
  });
1186
1189
  }
1187
1190
  return D;
1188
- })), dt = j(J, {}), ft = {
1191
+ })), ft = j(J, {}), pt = {
1189
1192
  marginLeft: "4px",
1190
1193
  marginRight: "4px",
1191
1194
  paddingLeft: "6px",
1192
1195
  paddingRight: "18px"
1193
- }, pt = (e) => e.icon, mt = z(R((n, r) => {
1194
- let { icon: i = dt, renderIcon: a = pt, className: o, onFocus: s, selected: c, onBlur: l, onMouseOver: u, onMouseOut: d, onMouseEnter: f, disabled: p, children: m, sx: h, propsTooltip: g, chips: _, primary: y, ...b } = n, x = ge(), [S, C] = W(!1), [w, D] = W(!1), O = H(() => {
1196
+ }, mt = (e) => e.icon, ht = z(R((n, r) => {
1197
+ let { icon: i = ft, renderIcon: a = mt, className: o, onFocus: s, selected: c, onBlur: l, onMouseOver: u, onMouseOut: d, onMouseEnter: f, disabled: p, children: m, sx: h, propsTooltip: g, chips: _, primary: y, ...b } = n, x = _e(), [S, C] = W(!1), [w, D] = W(!1), O = H(() => {
1195
1198
  let e = a?.({
1196
1199
  icon: i,
1197
1200
  disabled: p,
@@ -1248,7 +1251,7 @@ var rt = (e) => j(nt, { ...e }), it = (e) => j(ue, {
1248
1251
  lineHeight: 1.5,
1249
1252
  paddingTop: "2px",
1250
1253
  paddingBottom: "2px",
1251
- ...ft,
1254
+ ...pt,
1252
1255
  borderRadius: "4px",
1253
1256
  fontSize: "0.875em",
1254
1257
  "@media (pointer: coarse)": { fontSize: "1em" },
@@ -1270,7 +1273,7 @@ var rt = (e) => j(nt, { ...e }), it = (e) => j(ue, {
1270
1273
  placement: "right-start",
1271
1274
  ...g
1272
1275
  })), k;
1273
- })), ht = z(R((e, t) => {
1276
+ })), gt = z(R((e, t) => {
1274
1277
  let { children: n, sx: r, primary: i = !1, variant: a = "subtitle1", ...o } = e;
1275
1278
  return j(A, { children: j(k, {
1276
1279
  ref: t,
@@ -1288,8 +1291,8 @@ var rt = (e) => j(nt, { ...e }), it = (e) => j(ue, {
1288
1291
  ...o,
1289
1292
  children: n
1290
1293
  }) });
1291
- })), gt = z(R((e, t) => {
1292
- let { dense: n = !0, outlined: r = !1, label: i, showLabel: a = !1, selected: o = !1, onQuickClick: s, parentFloat: c, createPopupPanel: l, propsPopup: u, onPopupOpen: d, onPopupClose: f, propsQuickButton: p, renderQuickButton: h, tooltip: g = "", createTooltip: _, icon: b, disabled: x, propsButton: C = oe.EmptyObject, disableHover: w, ripple: T, primary: E, children: D, sx: O, className: k, ...N } = e, P = ee(), F = H(() => {
1294
+ })), _t = z(R((e, t) => {
1295
+ let { dense: n = !0, outlined: r = !1, label: i, showLabel: a = !1, selected: o = !1, onQuickClick: s, parentFloat: c, renderPopupPanel: l, propsPopup: u, onPopupOpen: d, onPopupClose: f, propsQuickButton: p, renderQuickButton: h, tooltip: g = "", renderTooltip: _, icon: b, disabled: x, propsButton: C = oe.EmptyObject, disableHover: w, ripple: T, primary: E, children: D, sx: O, className: k, ...N } = e, P = ee(), F = H(() => {
1293
1296
  let e = (e, t, n, i = n) => {
1294
1297
  let a = typeof r == "boolean" ? null : r[e];
1295
1298
  return typeof a == "function" ? a(t) : a || (r ? n : i);
@@ -1303,10 +1306,10 @@ var rt = (e) => j(nt, { ...e }), it = (e) => j(ue, {
1303
1306
  active: P.palette.mode === "dark" ? P.palette.text.secondary : P.palette.text.primary,
1304
1307
  text: P.palette.text.icon ?? P.palette.action.active
1305
1308
  };
1306
- }, [r, P]), [I, te] = W(!1), [L, R] = W(!1), [ne, z] = W(!1), B = U(null), re = U(null), V = _e({
1309
+ }, [r, P]), [I, te] = W(!1), [L, R] = W(!1), [ne, z] = W(!1), B = U(null), re = U(null), V = ve({
1307
1310
  anchor: B.current,
1308
1311
  label: i,
1309
- createPopupPanel: l,
1312
+ renderPopupPanel: l,
1310
1313
  parentFloat: c,
1311
1314
  propsPopper: u?.propsPopper,
1312
1315
  onClose: () => {
@@ -1395,33 +1398,37 @@ var rt = (e) => j(nt, { ...e }), it = (e) => j(ue, {
1395
1398
  openCompoundStyling: oe.mergeContentful(o, t)
1396
1399
  };
1397
1400
  }, [F, w]), se = Z((e) => {
1398
- let { children: t, ref: n, ...r } = e;
1401
+ let { children: t, ref: n, disabled: r, ...i } = e;
1399
1402
  return j(m, {
1400
1403
  ref: n,
1401
- ...r,
1404
+ ...i,
1402
1405
  disableInteractive: !0,
1403
1406
  children: t
1404
1407
  });
1405
- }, []), q = s || h, ce = q && (p?.tooltip || p?.createTooltip), J = (e) => {
1406
- let { tooltip: t, createTooltip: n, sx: r, ...i } = e, a = j(S, {
1408
+ }, []), q = s || h, ce = q && (p?.tooltip || p?.renderTooltip), J = (e) => {
1409
+ let { tooltip: t, renderTooltip: n, sx: r, ...i } = e, a = j(S, {
1407
1410
  sx: { ...r },
1408
1411
  component: "div",
1409
1412
  ...i
1410
1413
  });
1411
- return ce && (a = (n ?? se)({
1412
- title: I ? "" : t ?? g,
1413
- children: j("div", { children: a })
1414
- }, I)), a;
1414
+ return ce && (a = j(fe, {
1415
+ render: n ?? se,
1416
+ props: {
1417
+ title: I ? "" : t ?? g,
1418
+ children: j("div", { children: a }),
1419
+ disabled: I
1420
+ }
1421
+ })), a;
1415
1422
  }, le = { onKeyDown: (e) => {
1416
1423
  e.keyCode === Y.Space ? ae() : e.keyCode === Y.F4 || e.keyCode === Y.Down ? V.reference.open(0) : e.keyCode === Y.Up && V.reference.close(0);
1417
- } }, ue = j(A, {}), de = H(() => Te((typeof b == "function" ? b() : b) ?? (q ? _t : null), a ? i : null), [
1424
+ } }, ue = j(A, {}), de = H(() => Ee((typeof b == "function" ? b() : b) ?? (q ? vt : null), a ? i : null), [
1418
1425
  b,
1419
1426
  i,
1420
1427
  a,
1421
1428
  q
1422
1429
  ]);
1423
1430
  if (q) {
1424
- let e = I ? K.openQuickButtonStyling : K.quickButtonStyling, t = (h || J)({
1431
+ let e = I ? K.openQuickButtonStyling : K.quickButtonStyling, t = {
1425
1432
  tabIndex: -1,
1426
1433
  disabled: x,
1427
1434
  size: "small",
@@ -1449,11 +1456,18 @@ var rt = (e) => j(nt, { ...e }), it = (e) => j(ue, {
1449
1456
  height: "100%",
1450
1457
  ...p?.sx
1451
1458
  }
1452
- }), r = tt(!0, n, I);
1453
- ce && (r = (_ ?? se)({
1454
- title: I ? "" : g,
1455
- children: r
1456
- }, I)), ue = M(A, { children: [t, j(S, {
1459
+ }, r = j(fe, {
1460
+ render: h ?? J,
1461
+ props: t
1462
+ }), i = nt(!0, n, I);
1463
+ ce && (i = j(fe, {
1464
+ render: _ ?? se,
1465
+ props: {
1466
+ title: I ? "" : g,
1467
+ children: i,
1468
+ disabled: I
1469
+ }
1470
+ })), ue = M(A, { children: [r, j(S, {
1457
1471
  ref: re,
1458
1472
  component: "div",
1459
1473
  className: v({
@@ -1480,11 +1494,11 @@ var rt = (e) => j(nt, { ...e }), it = (e) => j(ue, {
1480
1494
  onMouseDown: (e) => {
1481
1495
  e.button === 0 && (e.preventDefault(), ae());
1482
1496
  },
1483
- children: r
1497
+ children: i
1484
1498
  })] });
1485
1499
  } else {
1486
1500
  let e = I ? K.openCompoundStyling : K.compoundStyling;
1487
- ue = j(ut, {
1501
+ ue = j(dt, {
1488
1502
  ref: re,
1489
1503
  tabIndex: -1,
1490
1504
  disabled: x,
@@ -1507,10 +1521,10 @@ var rt = (e) => j(nt, { ...e }), it = (e) => j(ue, {
1507
1521
  onMouseDown: (e) => {
1508
1522
  e.button === 0 && (e.preventDefault(), ae());
1509
1523
  },
1510
- children: tt(!1, n, I)
1524
+ children: nt(!1, n, I)
1511
1525
  });
1512
1526
  }
1513
- let { className: X, sx: fe, ...pe } = C, me = j(y, {
1527
+ let { className: X, sx: pe, ...me } = C, he = j(y, {
1514
1528
  onFocus: () => R(!0),
1515
1529
  onBlur: () => R(!1),
1516
1530
  onMouseOver: () => z(!0),
@@ -1538,15 +1552,19 @@ var rt = (e) => j(nt, { ...e }), it = (e) => j(ue, {
1538
1552
  outline: (e) => `solid ${e.palette.primary.main} 1px`,
1539
1553
  zIndex: 2
1540
1554
  },
1541
- ...fe
1555
+ ...pe
1542
1556
  },
1543
- ...pe,
1557
+ ...me,
1544
1558
  children: ue
1545
1559
  });
1546
- return ce || (me = (_ ?? se)({
1547
- title: I ? "" : g,
1548
- children: me
1549
- }, I)), M(y, {
1560
+ return ce || (he = j(fe, {
1561
+ render: _ ?? se,
1562
+ props: {
1563
+ title: I ? "" : g,
1564
+ children: he,
1565
+ disabled: I
1566
+ }
1567
+ })), M(y, {
1550
1568
  className: v(k, "popupIconButton"),
1551
1569
  ref: t,
1552
1570
  ...N,
@@ -1556,12 +1574,12 @@ var rt = (e) => j(nt, { ...e }), it = (e) => j(ue, {
1556
1574
  alignItems: "center",
1557
1575
  ...O
1558
1576
  },
1559
- children: [me, V.component]
1577
+ children: [he, V.component]
1560
1578
  });
1561
1579
  }));
1562
- gt.displayName = "ExhibitPopupIconButton";
1563
- var _t = j(J, { iconKey: "Check" }), vt = {}, yt = z(R((e, t) => {
1564
- let { selected: n = !1, label: r, showLabel: i, onQuickClick: a, parentFloat: o, createPopupPanel: s, propsPopup: c = vt, onPopupOpen: u, onPopupClose: d, propsQuickButton: f, renderQuickButton: p, tooltip: h = "", createTooltip: g, icon: _, disabled: b, ripple: S, primary: C, children: w, sx: E, ...D } = e, [O, k] = W(!1), [ee, N] = W(!1), [P, F] = W(!1), [I, te] = W(!1), L = U(null), R = U(null), ne = H(() => {
1580
+ _t.displayName = "ExhibitPopupIconButton";
1581
+ var vt = j(J, { iconKey: "Check" }), yt = {}, bt = z(R((e, t) => {
1582
+ let { selected: n = !1, label: r, showLabel: i, onQuickClick: a, parentFloat: o, renderPopupPanel: s, propsPopup: c = yt, onPopupOpen: u, onPopupClose: d, propsQuickButton: f, renderQuickButton: p, tooltip: h = "", renderTooltip: g, icon: _, disabled: b, ripple: S, primary: C, children: w, sx: E, ...D } = e, [O, k] = W(!1), [ee, N] = W(!1), [P, F] = W(!1), [I, te] = W(!1), L = U(null), R = U(null), ne = H(() => {
1565
1583
  if (!c) return;
1566
1584
  let { propsPopper: e } = c;
1567
1585
  return {
@@ -1569,10 +1587,10 @@ var _t = j(J, { iconKey: "Check" }), vt = {}, yt = z(R((e, t) => {
1569
1587
  offsets: [-4, -2],
1570
1588
  ...e
1571
1589
  };
1572
- }, [c]), z = _e({
1590
+ }, [c]), z = ve({
1573
1591
  anchor: L.current,
1574
1592
  label: r,
1575
- createPopupPanel: s,
1593
+ renderPopupPanel: s,
1576
1594
  parentFloat: o,
1577
1595
  propsPopper: ne,
1578
1596
  onClose: () => {
@@ -1587,16 +1605,16 @@ var _t = j(J, { iconKey: "Check" }), vt = {}, yt = z(R((e, t) => {
1587
1605
  color: (e) => e.palette.text.primary,
1588
1606
  "& svg * ": { color: (e) => e.palette.text.primary }
1589
1607
  } }, ae = B((e) => {
1590
- let { children: t, ref: n, ...r } = e;
1608
+ let { children: t, ref: n, disabled: r, ...i } = e;
1591
1609
  return j(m, {
1592
1610
  ref: n,
1593
- ...r,
1611
+ ...i,
1594
1612
  disableInteractive: !0,
1595
1613
  children: t
1596
1614
  });
1597
1615
  }, []), G = a || p, oe = (e) => {
1598
- let { tooltip: t, createTooltip: n, ...i } = e;
1599
- return M(mt, {
1616
+ let { tooltip: t, renderTooltip: n, ...i } = e;
1617
+ return M(ht, {
1600
1618
  icon: _,
1601
1619
  disableRipple: !!S,
1602
1620
  className: v({ "Mui-hovered": P }),
@@ -1626,7 +1644,7 @@ var _t = j(J, { iconKey: "Check" }), vt = {}, yt = z(R((e, t) => {
1626
1644
  }
1627
1645
  }, se = j(A, {});
1628
1646
  if (G) {
1629
- let e = (p || oe)({
1647
+ let e = {
1630
1648
  tabIndex: -1,
1631
1649
  disabled: b,
1632
1650
  onMouseEnter: () => {
@@ -1637,9 +1655,12 @@ var _t = j(J, { iconKey: "Check" }), vt = {}, yt = z(R((e, t) => {
1637
1655
  },
1638
1656
  className: v("quick-left", {}, f?.className),
1639
1657
  ...f
1640
- });
1658
+ };
1641
1659
  se = M(A, { children: [
1642
- e,
1660
+ j(fe, {
1661
+ render: p ?? oe,
1662
+ props: e
1663
+ }),
1643
1664
  j(x, {
1644
1665
  sx: {
1645
1666
  ml: "0px",
@@ -1695,7 +1716,7 @@ var _t = j(J, { iconKey: "Check" }), vt = {}, yt = z(R((e, t) => {
1695
1716
  })
1696
1717
  })
1697
1718
  ] });
1698
- } else se = M(mt, {
1719
+ } else se = M(ht, {
1699
1720
  ref: R,
1700
1721
  tabIndex: -1,
1701
1722
  disabled: b,
@@ -1752,10 +1773,14 @@ var _t = j(J, { iconKey: "Check" }), vt = {}, yt = z(R((e, t) => {
1752
1773
  ...D,
1753
1774
  children: se
1754
1775
  });
1755
- return G && !I && (f?.tooltip || f?.createTooltip) && (q = (f?.createTooltip ?? ae)({
1756
- title: O ? "" : q ?? f?.tooltip,
1757
- children: q
1758
- }, O)), M(y, {
1776
+ return G && !I && (f?.tooltip || f?.renderTooltip) && (q = j(fe, {
1777
+ render: f?.renderTooltip ?? ae,
1778
+ props: {
1779
+ title: O ? "" : q ?? f?.tooltip,
1780
+ children: q,
1781
+ disabled: O
1782
+ }
1783
+ })), M(y, {
1759
1784
  ref: t,
1760
1785
  sx: {
1761
1786
  zIndex: ee || O ? 2 : void 0,
@@ -1767,12 +1792,12 @@ var _t = j(J, { iconKey: "Check" }), vt = {}, yt = z(R((e, t) => {
1767
1792
  },
1768
1793
  children: [q, z.component]
1769
1794
  });
1770
- })), bt = z(R((e, n) => {
1795
+ })), xt = z(R((e, n) => {
1771
1796
  let { onSelectToggle: r, selected: i = !1, label: a, shortcut: o, tabIndex: s = 0, preventFocus: c = !1, ...l } = e;
1772
1797
  return j(t, {
1773
1798
  label: a,
1774
1799
  shortcut: o,
1775
- children: j(ut, {
1800
+ children: j(dt, {
1776
1801
  ref: n,
1777
1802
  outlined: !1,
1778
1803
  tabIndex: s,
@@ -1786,7 +1811,7 @@ var _t = j(J, { iconKey: "Check" }), vt = {}, yt = z(R((e, t) => {
1786
1811
  ...l
1787
1812
  })
1788
1813
  });
1789
- })), xt = j(J, {}), St = j(J, { iconKey: "Check" }), Ct = z(R((e, t) => {
1814
+ })), St = j(J, {}), Ct = j(J, { iconKey: "Check" }), wt = z(R((e, t) => {
1790
1815
  let { children: n, selected: r = !0, outlined: i = !0, sx: a, ...o } = e, s = H(() => ({
1791
1816
  display: "flex",
1792
1817
  border: (e) => r ? `solid ${i ? e.palette.divider : "transparent"} 1px` : "solid transparent 1px",
@@ -1796,7 +1821,7 @@ var _t = j(J, { iconKey: "Check" }), vt = {}, yt = z(R((e, t) => {
1796
1821
  },
1797
1822
  ...a
1798
1823
  }), [a]), c = n;
1799
- return c === null && (c = xt), c ||= St, j(y, {
1824
+ return c === null && (c = St), c ||= Ct, j(y, {
1800
1825
  ref: t,
1801
1826
  sx: s,
1802
1827
  ...o,
@@ -1804,11 +1829,11 @@ var _t = j(J, { iconKey: "Check" }), vt = {}, yt = z(R((e, t) => {
1804
1829
  });
1805
1830
  }));
1806
1831
  s();
1807
- var wt = {
1832
+ var Tt = {
1808
1833
  inline: null,
1809
1834
  popup: []
1810
- }, Tt = z(R((e, n) => {
1811
- let { children: r, sx: i, ...a } = e, o = Se(), s = ve(n, () => ({}), []), [c, l] = xe(), u = U(null), d = U(null), [f, p] = ae((e) => e + 1, 0), [m, h] = W(null), [g, v] = W(null), b = g?.popup ?? null, x = U(0), [S, C] = W(!1), w = U(!1), T = ge(), E = U(T);
1835
+ }, Et = z(R((e, n) => {
1836
+ let { children: r, sx: i, ...a } = e, o = Ce(), s = ye(n, () => ({}), []), [c, l] = Se(), u = U(null), d = U(null), [f, p] = ae((e) => e + 1, 0), [m, h] = W(null), [g, v] = W(null), b = g?.popup ?? null, x = U(0), [S, C] = W(!1), w = U(!1), T = _e(), E = U(T);
1812
1837
  E.current = T;
1813
1838
  let D = B(() => {
1814
1839
  E.current?.closeChild(0);
@@ -1865,7 +1890,7 @@ var wt = {
1865
1890
  let i = t.current.getBoundingClientRect();
1866
1891
  o += i?.width, o > n.width && (c = !0);
1867
1892
  }
1868
- if (!c) return a(), w.current && D(), void v(wt);
1893
+ if (!c) return a(), w.current && D(), void v(Tt);
1869
1894
  let l = u.current?.getBoundingClientRect();
1870
1895
  l?.width && (x.current = l.width);
1871
1896
  let f = n.width - x.current;
@@ -1902,7 +1927,7 @@ var wt = {
1902
1927
  t.push(o);
1903
1928
  });
1904
1929
  }
1905
- return et({
1930
+ return tt({
1906
1931
  ...e,
1907
1932
  children: j(y, {
1908
1933
  className: "overflow-palette-popup-panel",
@@ -1959,12 +1984,12 @@ var wt = {
1959
1984
  flex: "0 0 auto",
1960
1985
  alignItems: "center"
1961
1986
  },
1962
- children: j(gt, {
1963
- createPopupPanel: F,
1987
+ children: j(_t, {
1988
+ renderPopupPanel: F,
1964
1989
  ref: u,
1965
1990
  onPopupOpen: O,
1966
1991
  onPopupClose: k,
1967
- createTooltip: ({ children: e }, n) => j(t, {
1992
+ renderTooltip: ({ children: e, disabled: n }) => j(t, {
1968
1993
  label: o("overflow.more"),
1969
1994
  description: o("overflow.moreDescription"),
1970
1995
  disabled: n,
@@ -1984,7 +2009,7 @@ function Q() {
1984
2009
  return e;
1985
2010
  }, Q.apply(null, arguments);
1986
2011
  }
1987
- function Et(e, t) {
2012
+ function Dt(e, t) {
1988
2013
  if (e == null) return {};
1989
2014
  var n = {};
1990
2015
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -1993,7 +2018,7 @@ function Et(e, t) {
1993
2018
  }
1994
2019
  return n;
1995
2020
  }
1996
- var $, Dt = {
2021
+ var $, Ot = {
1997
2022
  state: {},
1998
2023
  updateModal: function() {},
1999
2024
  hideModal: function() {},
@@ -2007,12 +2032,12 @@ var $, Dt = {
2007
2032
  update: function() {}
2008
2033
  };
2009
2034
  }
2010
- }, Ot = L(void 0);
2035
+ }, kt = L(void 0);
2011
2036
  (function(e) {
2012
2037
  e.SHOW = "SHOW", e.HIDE = "HIDE", e.UPDATE = "UPDATE", e.DESTROY = "DESTROY", e.DESTROY_BY_ROOT_ID = "DESTROY_BY_ROOT_ID", e.UNKNOWN = "UNKNOWN";
2013
2038
  })($ ||= {});
2014
- var kt = {};
2015
- function At(e, t) {
2039
+ var At = {};
2040
+ function jt(e, t) {
2016
2041
  switch (t.type) {
2017
2042
  case $.SHOW:
2018
2043
  var n, r = t.payload, i = r.id, a = r.component, o = r.props, s = r.options;
@@ -2041,38 +2066,38 @@ function At(e, t) {
2041
2066
  default: throw Error("Unexpected action");
2042
2067
  }
2043
2068
  }
2044
- var jt = "[ERROR]: Modal ID is missing", Mt = function(e) {
2069
+ var Mt = "[ERROR]: Modal ID is missing", Nt = function(e) {
2045
2070
  e === void 0 && (e = 8);
2046
2071
  for (var t = [], n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", r = 0; r < e; r++) t[r] = n.charAt(Math.floor(62 * Math.random()));
2047
2072
  return t.join("");
2048
- }, Nt = ["open"];
2049
- function Pt(e) {
2050
- var t = e.children, n = e.legacy, r = n !== void 0 && n, i = e.suspense, a = i === void 0 || i, o = e.fallback, s = o === void 0 ? null : o, c = N.useReducer(At, kt), l = c[0], u = c[1], d = N.useCallback(function(e, t) {
2051
- var n = Et(t, Nt);
2073
+ }, Pt = ["open"];
2074
+ function Ft(e) {
2075
+ var t = e.children, n = e.legacy, r = n !== void 0 && n, i = e.suspense, a = i === void 0 || i, o = e.fallback, s = o === void 0 ? null : o, c = N.useReducer(jt, At), l = c[0], u = c[1], d = N.useCallback(function(e, t) {
2076
+ var n = Dt(t, Pt);
2052
2077
  e ? u({
2053
2078
  type: $.UPDATE,
2054
2079
  payload: {
2055
2080
  id: e,
2056
2081
  props: n
2057
2082
  }
2058
- }) : console.error(jt);
2083
+ }) : console.error(Mt);
2059
2084
  }, [u]), f = N.useCallback(function(e) {
2060
2085
  e ? u({
2061
2086
  type: $.HIDE,
2062
2087
  payload: { id: e }
2063
- }) : console.error(jt);
2088
+ }) : console.error(Mt);
2064
2089
  }, [u]), p = N.useCallback(function(e) {
2065
2090
  e ? u({
2066
2091
  type: $.DESTROY,
2067
2092
  payload: { id: e }
2068
- }) : console.error(jt);
2093
+ }) : console.error(Mt);
2069
2094
  }, [u]), m = N.useCallback(function(e) {
2070
2095
  e ? u({
2071
2096
  type: $.DESTROY_BY_ROOT_ID,
2072
2097
  payload: { rootId: e }
2073
2098
  }) : console.error("[ERROR]: Modal root ID is missing");
2074
2099
  }, [u]), h = N.useCallback(function(e, t, n) {
2075
- var r = Mt(8);
2100
+ var r = Nt(8);
2076
2101
  return n && n.rootId && (r = n.rootId + "." + r), u({
2077
2102
  type: $.SHOW,
2078
2103
  payload: {
@@ -2099,7 +2124,7 @@ function Pt(e) {
2099
2124
  p,
2100
2125
  d
2101
2126
  ]), g = a ? I : F;
2102
- return N.createElement(Ot.Provider, { value: {
2127
+ return N.createElement(kt.Provider, { value: {
2103
2128
  state: l,
2104
2129
  updateModal: d,
2105
2130
  hideModal: f,
@@ -2119,21 +2144,21 @@ function Pt(e) {
2119
2144
  }, a && !a.destroyOnClose && s));
2120
2145
  })));
2121
2146
  }
2122
- var Ft = { enforceProvider: !1 };
2123
- function It(e) {
2124
- Object.assign(Ft, e);
2147
+ var It = { enforceProvider: !1 };
2148
+ function Lt(e) {
2149
+ Object.assign(It, e);
2125
2150
  }
2126
- function Lt() {
2127
- return Ft;
2151
+ function Rt() {
2152
+ return It;
2128
2153
  }
2129
- var Rt = ["showModal", "destroyModalsByRootId"], zt = { disableAutoDestroy: !1 };
2130
- function Bt(e) {
2131
- e === void 0 && (e = zt);
2132
- var t = Q({}, zt, e).disableAutoDestroy, n = function() {
2133
- var e = re(Ot);
2134
- if (Lt().enforceProvider && e === void 0) throw Error("useModalContext must be used within a ModalProvider");
2135
- return e || Dt;
2136
- }(), r = n.showModal, i = n.destroyModalsByRootId, a = Et(n, Rt), o = U(Mt(6));
2154
+ var zt = ["showModal", "destroyModalsByRootId"], Bt = { disableAutoDestroy: !1 };
2155
+ function Vt(e) {
2156
+ e === void 0 && (e = Bt);
2157
+ var t = Q({}, Bt, e).disableAutoDestroy, n = function() {
2158
+ var e = re(kt);
2159
+ if (Rt().enforceProvider && e === void 0) throw Error("useModalContext must be used within a ModalProvider");
2160
+ return e || Ot;
2161
+ }(), r = n.showModal, i = n.destroyModalsByRootId, a = Dt(n, zt), o = U(Nt(6));
2137
2162
  return V(function() {
2138
2163
  return function() {
2139
2164
  !t && i && i(o.current);
@@ -2148,17 +2173,17 @@ function Bt(e) {
2148
2173
  destroyModalsByRootId: i
2149
2174
  }, a);
2150
2175
  }
2151
- var Vt = L(void 0), Ht = ({ error: e }) => {
2152
- let t = re(Vt);
2176
+ var Ht = L(void 0), Ut = ({ error: e }) => {
2177
+ let t = re(Ht);
2153
2178
  return V(() => {
2154
2179
  t?.(e);
2155
2180
  }, [e]), null;
2156
2181
  };
2157
- function Ut(e) {
2158
- let t = pe(e, { renderError: (e) => j(Ht, { error: e }) });
2182
+ function Wt(e) {
2183
+ let t = me(e, { renderError: ({ error: e }) => j(Ut, { error: e }) });
2159
2184
  return (e) => {
2160
2185
  let { onLoadError: n, ...r } = e;
2161
- return j(Vt.Provider, {
2186
+ return j(Ht.Provider, {
2162
2187
  value: n,
2163
2188
  children: j(I, {
2164
2189
  fallback: null,
@@ -2167,10 +2192,10 @@ function Ut(e) {
2167
2192
  });
2168
2193
  };
2169
2194
  }
2170
- function Wt(e) {
2195
+ function Gt(e) {
2171
2196
  let [t, n] = W(() => /* @__PURE__ */ new Map()), r = U(null);
2172
2197
  r.current === null && (r.current = /* @__PURE__ */ new Map());
2173
- let { showModal: i, updateModal: a, destroyModal: o, hideModal: s } = Bt({ disableAutoDestroy: !0 });
2198
+ let { showModal: i, updateModal: a, destroyModal: o, hideModal: s } = Vt({ disableAutoDestroy: !0 });
2174
2199
  return (c, l, u, d) => new Promise((f, p) => {
2175
2200
  let m = !1;
2176
2201
  u?.disableAutoDestroy !== void 0 && (m = u.disableAutoDestroy, delete (u = { ...u }).disableAutoDestroy);
@@ -2224,7 +2249,7 @@ function Wt(e) {
2224
2249
  }
2225
2250
  if (!l) return void p(`Invalid function for window '${c}'`);
2226
2251
  let v = r.current.get(c);
2227
- v || (v = Ut(l), r.current.set(c, v));
2252
+ v || (v = Wt(l), r.current.set(c, v));
2228
2253
  let y = i(v, g, { destroyOnClose: !m });
2229
2254
  n((e) => (e.set(c, {
2230
2255
  id: y.id,
@@ -2233,8 +2258,8 @@ function Wt(e) {
2233
2258
  }), e)), h && f(null);
2234
2259
  });
2235
2260
  }
2236
- var Gt = (e) => {
2237
- let { showModal: t } = Bt();
2261
+ var Kt = (e) => {
2262
+ let { showModal: t } = Vt();
2238
2263
  return (n) => new Promise((r) => {
2239
2264
  let i = t(h, {
2240
2265
  ...e,
@@ -2247,12 +2272,12 @@ var Gt = (e) => {
2247
2272
  }
2248
2273
  });
2249
2274
  });
2250
- }, Kt = Ut(se("utils-mui:inputDialog", () => import("./C-5x5uhaeRkhCSzY.mjs")).load), qt = (e) => {
2251
- let { showModal: t } = Bt();
2275
+ }, qt = Wt(se("utils-mui:inputDialog", () => import("./DfXWkYz_cy1RzTD5.mjs")).load), Jt = (e) => {
2276
+ let { showModal: t } = Vt();
2252
2277
  return (n) => {
2253
2278
  let { defaultOption: r = n.options?.[0], cancelOption: i = "Cancel", ...a } = n;
2254
2279
  return new Promise((n, o) => {
2255
- let s = t(Kt, {
2280
+ let s = t(qt, {
2256
2281
  ...e,
2257
2282
  defaultOption: r,
2258
2283
  cancelOption: i,
@@ -2278,8 +2303,8 @@ var Gt = (e) => {
2278
2303
  });
2279
2304
  });
2280
2305
  };
2281
- }, Jt = z(R((e, n) => {
2282
- let { commandKey: r, command: i, disabled: a, shortcut: o, children: s, ...c } = e, [l] = he(r ?? []), u = i ?? l, d = u?.getShortcut();
2306
+ }, Yt = z(R((e, n) => {
2307
+ let { commandKey: r, command: i, disabled: a, shortcut: o, children: s, ...c } = e, [l] = ge(r ?? []), u = i ?? l, d = u?.getShortcut();
2283
2308
  return j(t, {
2284
2309
  ref: n,
2285
2310
  label: a === void 0 ? "" : u?.getLabel(),
@@ -2296,11 +2321,11 @@ var Gt = (e) => {
2296
2321
  children: s
2297
2322
  })
2298
2323
  });
2299
- })), Yt = Ce;
2300
- function Xt() {
2324
+ })), Xt = we;
2325
+ function Zt() {
2301
2326
  let e = U(null);
2302
2327
  return {
2303
- ripple: H(() => j(Yt, {
2328
+ ripple: H(() => j(Xt, {
2304
2329
  ref: e,
2305
2330
  center: !1
2306
2331
  }), []),
@@ -2309,19 +2334,19 @@ function Xt() {
2309
2334
  }, [])
2310
2335
  };
2311
2336
  }
2312
- var Zt = j(J, {}), Qt = z(R((e, t) => {
2313
- let { commandKey: n, command: r, groupKey: i, icon: a, label: o, showLabel: s = !1, disabled: c, variant: l = q.Toolbar, shortcut: u, commandState: d, propsTooltip: f, ...p } = e, { ripple: m, trigger: h } = Xt(), g = H(() => ({ onExecute() {
2337
+ var Qt = j(J, {}), $t = z(R((e, t) => {
2338
+ let { commandKey: n, command: r, groupKey: i, icon: a, label: o, showLabel: s = !1, disabled: c, variant: l = q.Toolbar, shortcut: u, commandState: d, propsTooltip: f, ...p } = e, { ripple: m, trigger: h } = Zt(), g = H(() => ({ onExecute() {
2314
2339
  h();
2315
- } }), [h]), [_] = he(n ?? [], g), v = r ?? _, y = B((e) => {
2340
+ } }), [h]), [_] = ge(n ?? [], g), v = r ?? _, y = B((e) => {
2316
2341
  e.button === 0 && e.preventDefault();
2317
2342
  }, []), b = B(async (e) => {
2318
2343
  e.button === 0 && v && await v.execute(d);
2319
2344
  }, [v, d]), x = B((e) => {
2320
2345
  e.keyCode !== Y.Enter && e.keyCode !== Y.Space || v?.execute(d);
2321
2346
  }, [v, d]), S = c ?? (!v || v.disabled()), C = v?.getState(), w = H(() => {
2322
- if (a === null) return Zt;
2347
+ if (a === null) return Qt;
2323
2348
  let e;
2324
- return e = typeof a == "function" ? v ? a(v) : void 0 : a, e ||= v?.getIcon(i), e ? (typeof e == "string" && (e = j(J, { iconKey: e })), e) : l === q.Toolbar || C ? void 0 : Zt;
2349
+ return e = typeof a == "function" ? v ? a(v) : void 0 : a, e ||= v?.getIcon(i), e ? (typeof e == "string" && (e = j(J, { iconKey: e })), e) : l === q.Toolbar || C ? void 0 : Qt;
2325
2350
  }, [
2326
2351
  v,
2327
2352
  i,
@@ -2332,7 +2357,7 @@ var Zt = j(J, {}), Qt = z(R((e, t) => {
2332
2357
  tabIndex: 0,
2333
2358
  ref: t,
2334
2359
  selected: !!C,
2335
- icon: l === q.Toolbar ? s ? Te(w, o ?? v?.getLabel(i)) : w : j(Ct, {
2360
+ icon: l === q.Toolbar ? s ? Ee(w, o ?? v?.getLabel(i)) : w : j(wt, {
2336
2361
  selected: C ?? !1,
2337
2362
  children: w
2338
2363
  }),
@@ -2342,15 +2367,15 @@ var Zt = j(J, {}), Qt = z(R((e, t) => {
2342
2367
  onMouseUp: b,
2343
2368
  onKeyDown: x
2344
2369
  }, E;
2345
- return E = l === q.Menuitem ? M(mt, {
2370
+ return E = l === q.Menuitem ? M(ht, {
2346
2371
  ...p,
2347
2372
  ...T,
2348
2373
  children: [o ?? v?.getLabel(i), m]
2349
- }) : j(ut, {
2374
+ }) : j(dt, {
2350
2375
  ...p,
2351
2376
  ...T,
2352
2377
  children: m
2353
- }), (o || v?.getLabel()) && (S && (E = j("div", { children: E })), E = j(Jt, {
2378
+ }), (o || v?.getLabel()) && (S && (E = j("div", { children: E })), E = j(Yt, {
2354
2379
  commandKey: n,
2355
2380
  command: r,
2356
2381
  disabled: S,
@@ -2360,11 +2385,11 @@ var Zt = j(J, {}), Qt = z(R((e, t) => {
2360
2385
  children: E
2361
2386
  })), E;
2362
2387
  }));
2363
- Qt.displayName = "CommandButton";
2364
- var $t = j(J, {}), en = z(R((e, t) => {
2365
- let { commandKey: n, groupKey: r, icon: i, commandState: a, label: o, variant: s = q.Toolbar, disabled: c, parseInput: l, inputProps: u, inputRef: d, ...f } = e, { ripple: p, trigger: m } = Xt(), h = H(() => ({ onExecute() {
2388
+ $t.displayName = "CommandButton";
2389
+ var en = j(J, {}), tn = z(R((e, t) => {
2390
+ let { commandKey: n, groupKey: r, icon: i, commandState: a, label: o, variant: s = q.Toolbar, disabled: c, parseInput: l, inputProps: u, inputRef: d, ...f } = e, { ripple: p, trigger: m } = Zt(), h = H(() => ({ onExecute() {
2366
2391
  m();
2367
- } }), [m]), g = he(n ?? [], h)[0], _ = () => g?.getState()?.toString() || "", [v, y] = W(""), b = U(_()), x = Z(() => {
2392
+ } }), [m]), g = ge(n ?? [], h)[0], _ = () => g?.getState()?.toString() || "", [v, y] = W(""), b = U(_()), x = Z(() => {
2368
2393
  let e = v;
2369
2394
  if (l) try {
2370
2395
  e = l(v);
@@ -2383,9 +2408,9 @@ var $t = j(J, {}), en = z(R((e, t) => {
2383
2408
  y(_());
2384
2409
  }, [g?.getState()]);
2385
2410
  let w = H(() => {
2386
- if (i === null) return $t;
2411
+ if (i === null) return en;
2387
2412
  let e;
2388
- return e = typeof i == "function" ? g ? i(g) : void 0 : i, e ||= g?.getIcon(), e ? (typeof e == "string" && (e = j(J, { iconKey: e })), e) : s === q.Toolbar || g?.getState() ? void 0 : $t;
2413
+ return e = typeof i == "function" ? g ? i(g) : void 0 : i, e ||= g?.getIcon(), e ? (typeof e == "string" && (e = j(J, { iconKey: e })), e) : s === q.Toolbar || g?.getState() ? void 0 : en;
2389
2414
  }, [g?.getIcon(), i]), T = H(() => o === void 0 ? g?.getLabel(r) : typeof o == "function" ? o() : o, [o, g?.getLabel(r)]), E = c ?? (!g || g.disabled()), D = H(() => j(S, {
2390
2415
  ...f,
2391
2416
  sx: {
@@ -2471,7 +2496,7 @@ var $t = j(J, {}), en = z(R((e, t) => {
2471
2496
  e.keyCode !== Y.Enter && e.keyCode !== Y.Tab || x();
2472
2497
  }
2473
2498
  }, k;
2474
- return k = s === q.Menuitem ? M(mt, {
2499
+ return k = s === q.Menuitem ? M(ht, {
2475
2500
  ...f,
2476
2501
  ...O,
2477
2502
  children: [
@@ -2479,19 +2504,19 @@ var $t = j(J, {}), en = z(R((e, t) => {
2479
2504
  D,
2480
2505
  p
2481
2506
  ]
2482
- }) : j(ut, {
2507
+ }) : j(dt, {
2483
2508
  ...f,
2484
2509
  ...O,
2485
2510
  children: p
2486
- }), g?.getLabel() && ((g.disabled() || c) && (k = j("div", { children: k })), k = j(Jt, {
2511
+ }), g?.getLabel() && ((g.disabled() || c) && (k = j("div", { children: k })), k = j(Yt, {
2487
2512
  commandKey: n,
2488
2513
  placement: s === q.Toolbar ? "bottom-start" : "right-start",
2489
2514
  children: k
2490
2515
  })), k;
2491
- })), tn = z(R((e, n) => {
2492
- let { variant: r = q.Toolbar, quickCommand: i, onQuickClick: a, commandState: o, disabled: s, label: c, icon: l, createPopupPanel: u, tooltip: d, selected: f, groupKey: p, ...m } = e, { ripple: h, trigger: g } = Xt(), _ = H(() => ({ onExecute() {
2516
+ })), nn = z(R((e, n) => {
2517
+ let { variant: r = q.Toolbar, quickCommand: i, onQuickClick: a, commandState: o, disabled: s, label: c, icon: l, renderPopupPanel: u, tooltip: d, selected: f, groupKey: p, ...m } = e, { ripple: h, trigger: g } = Zt(), _ = H(() => ({ onExecute() {
2493
2518
  g();
2494
- } }), [g]), [v] = he(i ?? [], _), { label: y, icon: b } = H(() => {
2519
+ } }), [g]), [v] = ge(i ?? [], _), { label: y, icon: b } = H(() => {
2495
2520
  let e = null;
2496
2521
  c && (e = typeof c == "function" ? v ? c(v) : null : c), e ||= v?.getLabel?.(p);
2497
2522
  let t = l;
@@ -2511,29 +2536,29 @@ var $t = j(J, {}), en = z(R((e, t) => {
2511
2536
  label: y,
2512
2537
  icon: b
2513
2538
  };
2514
- (y || d) && (x.createTooltip = ({ children: e }, n) => j(t, {
2539
+ (y || d) && (x.renderTooltip = ({ children: e, disabled: n }) => j(t, {
2515
2540
  label: y,
2516
2541
  description: d,
2517
2542
  disabled: n,
2518
2543
  children: e
2519
2544
  }));
2520
2545
  let S = Z((e) => u?.(e), [u]), C = Z((e) => v?.execute(o), [v]);
2521
- return v ? (x.propsQuickButton = {}, x.propsQuickButton.createTooltip = ({ children: e, placement: t }, n) => j(Jt, {
2546
+ return v ? (x.propsQuickButton = {}, x.propsQuickButton.renderTooltip = ({ children: e, placement: t, disabled: n }) => j(Yt, {
2522
2547
  commandKey: i,
2523
2548
  placement: t ?? r === q.Toolbar ? "bottom-start" : "right-start",
2524
2549
  disabled: n,
2525
2550
  children: e
2526
- }), x.disabled = x.disabled ?? v?.disabled(), a || (x.onQuickClick = C)) : i && (x.onQuickClick = () => {}), x.selected = f ?? v?.getState(), x.createPopupPanel = S, r === q.Toolbar ? j(gt, {
2551
+ }), x.disabled = x.disabled ?? v?.disabled(), a || (x.onQuickClick = C)) : i && (x.onQuickClick = () => {}), x.selected = f ?? v?.getState(), x.renderPopupPanel = S, r === q.Toolbar ? j(_t, {
2527
2552
  ...m,
2528
2553
  ...x,
2529
2554
  ref: n
2530
- }) : j(yt, {
2555
+ }) : j(bt, {
2531
2556
  ...m,
2532
2557
  ...x,
2533
2558
  ref: n
2534
2559
  });
2535
2560
  }));
2536
- function nn(e, t = {}) {
2561
+ function rn(e, t = {}) {
2537
2562
  let { variant: n, dividerOrientation: r = "vertical", groupKey: i, commandState: a, propsCommandButton: o, propsCommandPopup: s, registry: c } = t, l = { ...o };
2538
2563
  n !== void 0 && (l.variant = n);
2539
2564
  let u = { ...s };
@@ -2548,10 +2573,10 @@ function nn(e, t = {}) {
2548
2573
  icon: n?.getIcon?.(i),
2549
2574
  showLabel: n?.showLabel
2550
2575
  };
2551
- return (n?.render ? n.render(r, i) : j(Qt, { ...r })) ?? null;
2576
+ return (n?.render ? n.render(r, i) : j($t, { ...r })) ?? null;
2552
2577
  }, f = (e) => {
2553
2578
  let t = typeof e == "string" ? e : e.key, n = typeof e == "string" ? void 0 : e;
2554
- if (!t) return ((e) => Array.isArray(e.members) ? e.render ? e.render({ ...u }, void 0) ?? null : j(rn, {
2579
+ if (!t) return ((e) => Array.isArray(e.members) ? e.render ? e.render({ ...u }, void 0) ?? null : j(an, {
2555
2580
  ...u,
2556
2581
  members: e.members,
2557
2582
  icon: e.getIcon?.(),
@@ -2560,7 +2585,7 @@ function nn(e, t = {}) {
2560
2585
  }) : (e.render ? e.render({ ...u }, i) : null) ?? null)(e);
2561
2586
  let r = c?.get(t) ?? null;
2562
2587
  return r ? ((e, t, n) => {
2563
- if (Array.isArray(e.members)) return e.render ? e.render({ ...u }, t) ?? null : j(rn, {
2588
+ if (Array.isArray(e.members)) return e.render ? e.render({ ...u }, t) ?? null : j(an, {
2564
2589
  ...u,
2565
2590
  groupKey: t,
2566
2591
  icon: n?.getIcon?.(t),
@@ -2582,24 +2607,30 @@ function nn(e, t = {}) {
2582
2607
  continue;
2583
2608
  }
2584
2609
  let n = f(t);
2585
- n && (h &&= (p.push(j(je, { orientation: r }, "member-" + m++)), !1), p.push(te(n, { key: "member-" + m++ })), g = !0);
2610
+ n && (h &&= (p.push(j(Me, { orientation: r }, "member-" + m++)), !1), p.push(te(n, { key: "member-" + m++ })), g = !0);
2586
2611
  }
2587
2612
  return p;
2588
2613
  }
2589
- tn.displayName = "CommandPopupButton";
2590
- var rn = z(R((e, t) => {
2591
- let { groupKey: n, members: r, registry: i, quickCommand: a, icon: o, label: s, showLabel: c, tooltip: l, commandState: u, disabled: d, ...f } = e, p = me(), m = i ?? p, h = !r && n ? m.get(n) : null, g = h && Array.isArray(h.members) ? h : null, _ = H(() => r ?? (n ? m.resolveMembers(n) : null) ?? null, [
2614
+ nn.displayName = "CommandPopupButton";
2615
+ var an = z(R((e, t) => {
2616
+ let { groupKey: n, members: r, registry: i, quickCommand: a, icon: o, label: s, showLabel: c, tooltip: l, commandState: u, disabled: d, ...f } = e, p = he(), m = i ?? p, h = !r && n ? m.get(n) : null, g = h && Array.isArray(h.members) ? h : null, _ = H(() => r ?? (n ? m.resolveMembers(n) : null) ?? null, [
2592
2617
  r,
2593
2618
  n,
2594
2619
  m
2595
2620
  ]), v = n, y = a ?? g?.defaultKey, b = o ?? g?.getIcon?.(v), x = s ?? g?.getLabel?.(v), S = c ?? g?.showLabel, C = l ?? g?.getDescription?.(v), w = H(() => {
2596
- let e = [], t = _ ?? [];
2597
- for (let n = 0; n < t.length; n++) {
2598
- let r = t[n];
2599
- r && r !== "-" && (typeof r == "string" ? e.push(r) : r.key && e.push(r.key));
2600
- }
2601
- return e;
2602
- }, [_]), T = he(y ? [y, ...w] : w), E = H(() => {
2621
+ let e = [], t = /* @__PURE__ */ new Set(), n = (r) => {
2622
+ for (let i = 0; i < r.length; i++) {
2623
+ let a = r[i];
2624
+ if (!a || a === "-") continue;
2625
+ let o = typeof a == "string" ? a : a.key;
2626
+ if (!o || t.has(o)) continue;
2627
+ t.add(o);
2628
+ let s = Array.isArray(m.get(o)?.members) ? m.resolveMembers(o) : null;
2629
+ s ? n(s) : e.push(o);
2630
+ }
2631
+ };
2632
+ return n(_ ?? []), e;
2633
+ }, [_, m]), T = ge(y ? [y, ...w] : w), E = H(() => {
2603
2634
  for (let e = 0; e < T.length; e++) {
2604
2635
  let t = T[e];
2605
2636
  if (t && !t.disabled()) return !1;
@@ -2608,7 +2639,7 @@ var rn = z(R((e, t) => {
2608
2639
  }, [T]), D = B((e) => {
2609
2640
  let t = {};
2610
2641
  d !== void 0 && (t.disabled = d);
2611
- let n = nn(_, {
2642
+ let n = rn(_, {
2612
2643
  variant: q.Menuitem,
2613
2644
  dividerOrientation: "horizontal",
2614
2645
  groupKey: v,
@@ -2617,7 +2648,7 @@ var rn = z(R((e, t) => {
2617
2648
  propsCommandPopup: t,
2618
2649
  registry: m
2619
2650
  });
2620
- return et({
2651
+ return tt({
2621
2652
  ...e,
2622
2653
  children: n
2623
2654
  });
@@ -2628,7 +2659,7 @@ var rn = z(R((e, t) => {
2628
2659
  u,
2629
2660
  d
2630
2661
  ]);
2631
- return _ ? j(tn, {
2662
+ return _ ? j(nn, {
2632
2663
  ref: t,
2633
2664
  quickCommand: y,
2634
2665
  icon: b,
@@ -2637,16 +2668,16 @@ var rn = z(R((e, t) => {
2637
2668
  tooltip: C,
2638
2669
  commandState: u,
2639
2670
  disabled: d ?? E,
2640
- createPopupPanel: D,
2671
+ renderPopupPanel: D,
2641
2672
  ...f
2642
2673
  }) : null;
2643
2674
  }));
2644
- rn.displayName = "CommandGroup";
2645
- var an = j(J, { iconKey: "Check" }), on = (e) => {
2646
- let { commandKey: t, label: n, groupKey: r, icon: i, sx: a, ...o } = e, [s] = he(t ?? []), c = H(() => {
2675
+ an.displayName = "CommandGroup";
2676
+ var on = j(J, { iconKey: "Check" }), sn = (e) => {
2677
+ let { commandKey: t, label: n, groupKey: r, icon: i, sx: a, ...o } = e, [s] = ge(t ?? []), c = H(() => {
2647
2678
  if (i !== void 0) return i;
2648
2679
  let e = s?.getIcon(r);
2649
- return e ? (typeof e == "string" && (e = j(J, { iconKey: e })), e) : an;
2680
+ return e ? (typeof e == "string" && (e = j(J, { iconKey: e })), e) : on;
2650
2681
  }, [
2651
2682
  i,
2652
2683
  r,
@@ -2674,17 +2705,17 @@ var an = j(J, { iconKey: "Check" }), on = (e) => {
2674
2705
  children: n ?? s?.getLabel(r)
2675
2706
  })]
2676
2707
  });
2677
- }, sn = z(R((e, t) => {
2678
- let { sx: n, propsCommandButton: r, parentFloat: i, groupKey: a, members: o, registry: s, renderToolbarPalette: c, children: l, ...u } = e, d = me(), f = s ?? d, p = H(() => o ?? (a ? f.resolveMembers(a) : null) ?? null, [
2708
+ }, cn = z(R((e, t) => {
2709
+ let { sx: n, propsCommandButton: r, parentFloat: i, groupKey: a, members: o, registry: s, renderToolbarPalette: c, children: l, ...u } = e, d = he(), f = s ?? d, p = H(() => o ?? (a ? f.resolveMembers(a) : null) ?? null, [
2679
2710
  o,
2680
2711
  a,
2681
2712
  f,
2682
2713
  f.getVersion()
2683
- ]), m = ve(t, () => ({}), []), [h, g] = W(null), { reference: _ } = _e({
2714
+ ]), m = ye(t, () => ({}), []), [h, g] = W(null), { reference: _ } = ve({
2684
2715
  label: "toolbar",
2685
2716
  anchor: m.current,
2686
2717
  parentFloat: i,
2687
- createPopupPanel: null
2718
+ renderPopupPanel: null
2688
2719
  }), v = Z(() => {
2689
2720
  let e = h;
2690
2721
  e && requestAnimationFrame(() => {
@@ -2708,7 +2739,7 @@ var an = j(J, { iconKey: "Check" }), on = (e) => {
2708
2739
  ...r
2709
2740
  }
2710
2741
  };
2711
- return c ? c(e) : p ? j(Tt, { children: nn(p, {
2742
+ return c ? c(e) : p ? j(Et, { children: rn(p, {
2712
2743
  dividerOrientation: "vertical",
2713
2744
  groupKey: a,
2714
2745
  propsCommandButton: e.propsCommandButton,
@@ -2773,9 +2804,9 @@ var an = j(J, { iconKey: "Check" }), on = (e) => {
2773
2804
  })
2774
2805
  });
2775
2806
  }));
2776
- sn.displayName = "CommandToolbar";
2777
- var cn = z(R((e, t) => {
2778
- let { groupKey: n, members: r, registry: i, projectAs: a = "quick", defaultIcon: o, ...s } = e, c = me(), l = i ?? c, u = H(() => r ?? (n ? l.resolveMembers(n) : null) ?? null, [
2807
+ cn.displayName = "CommandToolbar";
2808
+ var ln = z(R((e, t) => {
2809
+ let { groupKey: n, members: r, registry: i, projectAs: a = "quick", defaultIcon: o, ...s } = e, c = he(), l = i ?? c, u = H(() => r ?? (n ? l.resolveMembers(n) : null) ?? null, [
2779
2810
  r,
2780
2811
  n,
2781
2812
  l
@@ -2786,7 +2817,7 @@ var cn = z(R((e, t) => {
2786
2817
  r && r !== "-" && (typeof r == "string" ? e.push(r) : r.key && e.push(r.key));
2787
2818
  }
2788
2819
  return e;
2789
- }, [u]), f = he(d), p = null, m = null;
2820
+ }, [u]), f = ge(d), p = null, m = null;
2790
2821
  for (let e = 0; !p && e < f.length; e++) {
2791
2822
  let t = f[e];
2792
2823
  t && !t.disabled() && t.getState() && (p = d[e], m = t.getIcon());
@@ -2798,7 +2829,7 @@ var cn = z(R((e, t) => {
2798
2829
  quickCommand: p ?? d[0],
2799
2830
  icon: void 0
2800
2831
  };
2801
- return j(rn, {
2832
+ return j(an, {
2802
2833
  ref: t,
2803
2834
  groupKey: n,
2804
2835
  members: r,
@@ -2807,5 +2838,5 @@ var cn = z(R((e, t) => {
2807
2838
  ...h
2808
2839
  });
2809
2840
  }));
2810
- cn.displayName = "ToggleGroupButton";
2811
- export { Ie as AnimatedBouncingEllipsisIcon, Pe as AnimatedCircleIcon, Ne as AnimatedClockIcon, Fe as AnimatedFadingEllipsisIcon, He as AnimatedLoadingPanel, Le as AnimatedOrbitIcon, Re as AnimatedTraversingEllipsisIcon, f as ArrowDownIcon, l as ArrowRightIcon, e as ChipStrip, Qe as ClosingReason, Qt as CommandButton, rn as CommandGroup, tn as CommandPopupButton, sn as CommandToolbar, Jt as CommandTooltip, st as ContextMenu, je as ExhibitDivider, nt as ExhibitFloatPanel, it as ExhibitFloatProvider, ut as ExhibitIconButton, ht as ExhibitMenuHeader, mt as ExhibitMenuItem, bt as ExhibitOptionButton, gt as ExhibitPopupIconButton, yt as ExhibitPopupMenuItem, t as ExhibitTooltip, en as InputCommandButton, p as InternalWindow, on as LabelIcon, Ye as LazyLoadErrorPanel, ft as MenuItemInsets, Pt as ModalProvider, at as NestingPopupButton, h as OptionsDialog, Tt as OverflowPalette, Ze as PopupAutoFocus, $e as PopupButtonType, Ct as SelectedIcon, m as SimpleTooltip, Ke as StackTrace, qe as StackTraceErrorPanel, cn as ToggleGroupButton, we as buttonLabelSx, Te as composeButtonContent, tt as createDownArrow, g as createExhibitTheme, Oe as createScrollButton, o as createStrokeShadowFilter, et as defaultCreatePopupPanel, r as elevateColor, Lt as getModalConfig, n as getScrollbarCssVariables, i as hexToRGB, Ve as hideLoadingPanel, Ut as lazyModal, Xe as lazyPanel, u as optionIdentity, s as registerUtilsMuiLocales, nn as renderMembers, De as renderScrollButtonEdge, Ae as renderScrollButtonEnd, ke as renderScrollButtonStart, c as scrollbarTheming, It as setModalConfig, Be as showLoadingPanel, a as strokeShadowFilter, d as toShortcutElements, qt as useInputDialog, Wt as useLazyWindow, Bt as useModal, Gt as useOptionsDialog };
2841
+ ln.displayName = "ToggleGroupButton";
2842
+ export { Le as AnimatedBouncingEllipsisIcon, Fe as AnimatedCircleIcon, Pe as AnimatedClockIcon, Ie as AnimatedFadingEllipsisIcon, Ue as AnimatedLoadingPanel, Re as AnimatedOrbitIcon, ze as AnimatedTraversingEllipsisIcon, f as ArrowDownIcon, l as ArrowRightIcon, e as ChipStrip, $e as ClosingReason, $t as CommandButton, an as CommandGroup, nn as CommandPopupButton, cn as CommandToolbar, Yt as CommandTooltip, ct as ContextMenu, Me as ExhibitDivider, rt as ExhibitFloatPanel, at as ExhibitFloatProvider, dt as ExhibitIconButton, gt as ExhibitMenuHeader, ht as ExhibitMenuItem, xt as ExhibitOptionButton, _t as ExhibitPopupIconButton, bt as ExhibitPopupMenuItem, t as ExhibitTooltip, tn as InputCommandButton, p as InternalWindow, sn as LabelIcon, Xe as LazyLoadErrorPanel, pt as MenuItemInsets, Ft as ModalProvider, ot as NestingPopupButton, h as OptionsDialog, Et as OverflowPalette, Qe as PopupAutoFocus, et as PopupButtonType, wt as SelectedIcon, m as SimpleTooltip, qe as StackTrace, Je as StackTraceErrorPanel, ln as ToggleGroupButton, Te as buttonLabelSx, Ee as composeButtonContent, nt as createDownArrow, g as createExhibitTheme, ke as createScrollButton, o as createStrokeShadowFilter, tt as defaultRenderPopupPanel, Oe as defaultRenderScrollButtonEdge, je as defaultRenderScrollButtonEnd, Ae as defaultRenderScrollButtonStart, r as elevateColor, Rt as getModalConfig, n as getScrollbarCssVariables, i as hexToRGB, He as hideLoadingPanel, Wt as lazyModal, Ze as lazyPanel, u as optionIdentity, s as registerUtilsMuiLocales, rn as renderMembers, c as scrollbarTheming, Lt as setModalConfig, Ve as showLoadingPanel, a as strokeShadowFilter, d as toShortcutElements, Jt as useInputDialog, Gt as useLazyWindow, Vt as useModal, Kt as useOptionsDialog };