@sheetxl/utils-mui 0.8.0-beta.10 → 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,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.10
3
+ * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.12
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 "./Cijezc4MPpSmVgKY.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 "./DWxAqsopmTKYk46G.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,18 +961,25 @@ var Je = (e, t = !1, n = !1, r = !1, i = (e) => e) => {
961
961
  ...n
962
962
  });
963
963
  });
964
- Ye.displayName = "LazyLoadErrorPanel";
965
- var Xe = {
964
+ function Ze(e) {
965
+ let t = me(e, { renderError: ({ error: e }) => j(Xe, { error: e }) });
966
+ return (e) => j(I, {
967
+ fallback: j(Ue, {}),
968
+ children: j(t, { ...e })
969
+ });
970
+ }
971
+ Xe.displayName = "LazyLoadErrorPanel";
972
+ var Qe = {
966
973
  Popup: "popup",
967
974
  Anchor: "anchor"
968
- }, Ze = {
975
+ }, $e = {
969
976
  ByPopup: "popupDone",
970
977
  Cancel: "popupCancel",
971
978
  ClickAway: "clickAway"
972
- }, Qe = {
979
+ }, et = {
973
980
  Toolbar: "toolbar",
974
981
  Menuitem: "menuitem"
975
- }, $e = (e) => {
982
+ }, tt = (e) => {
976
983
  let { closeFloat: t, closeFloatAll: n, floatReference: r, popupContainer: i, children: a, className: o, sx: s, ...c } = e;
977
984
  return j(y, {
978
985
  className: v("menu", o),
@@ -986,7 +993,7 @@ var Xe = {
986
993
  ...c,
987
994
  children: a
988
995
  });
989
- }, et = (e, t, n) => {
996
+ }, nt = (e, t, n) => {
990
997
  let r = "";
991
998
  return n && (r = (r ? r + " " : "") + "rotate(180deg)"), j(f, {
992
999
  style: {
@@ -996,8 +1003,8 @@ var Xe = {
996
1003
  },
997
1004
  color: "inherit"
998
1005
  });
999
- }, tt = z(R((e, t) => {
1000
- let { open: n, anchorEl: r, anchorPosition: i, label: a, floatReference: o, createPopupPanel: s = $e, 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) => {
1001
1008
  C(e), u?.(w.current, t);
1002
1009
  }, [u]), E = H(() => {
1003
1010
  let e = {
@@ -1005,7 +1012,7 @@ var Xe = {
1005
1012
  floatReference: o,
1006
1013
  children: h,
1007
1014
  ..._
1008
- }, t = s(e);
1015
+ };
1009
1016
  return j(D, {
1010
1017
  elevation: 8,
1011
1018
  ref: w,
@@ -1019,7 +1026,10 @@ var Xe = {
1019
1026
  "&.MuiPaper-root": (e) => c(e)
1020
1027
  },
1021
1028
  tabIndex: 0,
1022
- children: t
1029
+ children: j(fe, {
1030
+ render: s,
1031
+ props: e
1032
+ })
1023
1033
  });
1024
1034
  }, [
1025
1035
  s,
@@ -1042,20 +1052,20 @@ var Xe = {
1042
1052
  children: E
1043
1053
  });
1044
1054
  }));
1045
- tt.displayName = "ExhibitFloatPanel";
1046
- var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1047
- renderFloatPanel: nt,
1048
- createPopupPanel: $e,
1049
- ...e
1050
- }), it = z(R((e, t) => {
1051
- 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 = {
1052
1062
  disabled: i,
1053
- createPopupPanel: Z((e) => {
1063
+ renderPopupPanel: Z((e) => {
1054
1064
  if (!n || n.length === 0) return j(A, {});
1055
1065
  let { popupContainer: r, floatReference: i, ref: a, ...o } = e, s = [];
1056
1066
  for (let e = 0; e < n.length; e++) {
1057
1067
  let t = n[e];
1058
- t && s.push(j(it, {
1068
+ t && s.push(j(ot, {
1059
1069
  ...o,
1060
1070
  ...t
1061
1071
  }, e));
@@ -1071,15 +1081,15 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1071
1081
  children: [
1072
1082
  "Children here",
1073
1083
  s,
1074
- j(pt, { children: "Close other children" })
1084
+ j(ht, { children: "Close other children" })
1075
1085
  ]
1076
1086
  });
1077
1087
  }, [n]),
1078
1088
  ...o
1079
1089
  };
1080
- return j(r === Qe.Toolbar ? ht : vt, { ...s });
1081
- })), at = { placement: "right-start" }, ot = z(R((e, t) => {
1082
- let { children: n, sx: r, parentFloat: i, createPopupPanel: a, propsPopper: o = at, 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;
1083
1093
  if (!ne(n)) throw Error("Must supply a child component to enable a context menu.");
1084
1094
  let l = n, u = H(() => ({
1085
1095
  ...l?.props,
@@ -1087,18 +1097,18 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1087
1097
  onContextMenu: (e) => {
1088
1098
  l?.props?.onContextMenu?.(e), e.isDefaultPrevented() || (c?.onContextMenu?.(e), e.isDefaultPrevented() || (p(e), e.preventDefault()));
1089
1099
  }
1090
- }), [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({
1091
1101
  label: s ?? "contextMenu",
1092
1102
  propsPopper: o,
1093
1103
  parentFloat: i,
1094
1104
  anchor: { getBoundingClientRect: () => new DOMRect(f?.clientX || 0, f?.clientY || 0) },
1095
1105
  onClose: () => p(null),
1096
- createPopupPanel: d
1106
+ renderPopupPanel: d
1097
1107
  });
1098
1108
  return V(() => {
1099
1109
  f ? m.open(0) : m.close(0);
1100
1110
  }, [f]), M(A, { children: [te(n, u), h] });
1101
- })), st = j(J, {}), ct = j(J, { iconKey: "Check" }), lt = z(R((e, n) => {
1111
+ })), lt = j(J, {}), ut = j(J, { iconKey: "Check" }), dt = z(R((e, n) => {
1102
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 = {
1103
1113
  marginRight: "0px",
1104
1114
  padding: r ? "2px" : "7px",
@@ -1121,14 +1131,13 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1121
1131
  },
1122
1132
  ...d
1123
1133
  }, w = {
1124
- "&:hover:not(.Mui-disabled, [disabled])": {
1134
+ "@media (hover: hover)": { "&:hover:not(.Mui-disabled, [disabled])": {
1125
1135
  color: (e) => e.palette.text.primary,
1126
1136
  border: (e) => `solid ${i ? e.palette.text?.primary : e.palette.divider} 1px`,
1127
1137
  "&.Mui-selected": { backgroundColor: (e) => G(e.palette.text.primary, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity) },
1128
1138
  "> .outline-hover": { outline: (e) => `solid ${i ? e.palette.text?.primary : e.palette.divider} 1px` },
1129
- backgroundColor: (e) => G(e.palette.action.active, e.palette.action.hoverOpacity),
1130
- "@media (hover: none)": { backgroundColor: "transparent" }
1131
- },
1139
+ backgroundColor: (e) => G(e.palette.action.active, e.palette.action.hoverOpacity)
1140
+ } },
1132
1141
  "&.Mui-focusVisible": {
1133
1142
  outline: (e) => `solid ${e.palette.primary.main} 1px`,
1134
1143
  border: (e) => `1px solid ${e.palette?.primary?.main}`,
@@ -1138,7 +1147,7 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1138
1147
  a || (T = oe.mergeContentful(C, w));
1139
1148
  let E = H(() => {
1140
1149
  let e = typeof s == "function" ? s() : s;
1141
- return e === null ? e : e || (o === void 0 ? st : ct);
1150
+ return e === null ? e : e || (o === void 0 ? lt : ut);
1142
1151
  }, [s, o]), D = M(S, {
1143
1152
  component: "div",
1144
1153
  ref: n,
@@ -1179,13 +1188,13 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1179
1188
  });
1180
1189
  }
1181
1190
  return D;
1182
- })), ut = j(J, {}), dt = {
1191
+ })), ft = j(J, {}), pt = {
1183
1192
  marginLeft: "4px",
1184
1193
  marginRight: "4px",
1185
1194
  paddingLeft: "6px",
1186
1195
  paddingRight: "18px"
1187
- }, ft = (e) => e.icon, pt = z(R((n, r) => {
1188
- let { icon: i = ut, renderIcon: a = ft, 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(() => {
1189
1198
  let e = a?.({
1190
1199
  icon: i,
1191
1200
  disabled: p,
@@ -1242,7 +1251,7 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1242
1251
  lineHeight: 1.5,
1243
1252
  paddingTop: "2px",
1244
1253
  paddingBottom: "2px",
1245
- ...dt,
1254
+ ...pt,
1246
1255
  borderRadius: "4px",
1247
1256
  fontSize: "0.875em",
1248
1257
  "@media (pointer: coarse)": { fontSize: "1em" },
@@ -1264,7 +1273,7 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1264
1273
  placement: "right-start",
1265
1274
  ...g
1266
1275
  })), k;
1267
- })), mt = z(R((e, t) => {
1276
+ })), gt = z(R((e, t) => {
1268
1277
  let { children: n, sx: r, primary: i = !1, variant: a = "subtitle1", ...o } = e;
1269
1278
  return j(A, { children: j(k, {
1270
1279
  ref: t,
@@ -1282,8 +1291,8 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1282
1291
  ...o,
1283
1292
  children: n
1284
1293
  }) });
1285
- })), ht = z(R((e, t) => {
1286
- 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(() => {
1287
1296
  let e = (e, t, n, i = n) => {
1288
1297
  let a = typeof r == "boolean" ? null : r[e];
1289
1298
  return typeof a == "function" ? a(t) : a || (r ? n : i);
@@ -1297,10 +1306,10 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1297
1306
  active: P.palette.mode === "dark" ? P.palette.text.secondary : P.palette.text.primary,
1298
1307
  text: P.palette.text.icon ?? P.palette.action.active
1299
1308
  };
1300
- }, [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({
1301
1310
  anchor: B.current,
1302
1311
  label: i,
1303
- createPopupPanel: l,
1312
+ renderPopupPanel: l,
1304
1313
  parentFloat: c,
1305
1314
  propsPopper: u?.propsPopper,
1306
1315
  onClose: () => {
@@ -1389,33 +1398,37 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1389
1398
  openCompoundStyling: oe.mergeContentful(o, t)
1390
1399
  };
1391
1400
  }, [F, w]), se = Z((e) => {
1392
- let { children: t, ref: n, ...r } = e;
1401
+ let { children: t, ref: n, disabled: r, ...i } = e;
1393
1402
  return j(m, {
1394
1403
  ref: n,
1395
- ...r,
1404
+ ...i,
1396
1405
  disableInteractive: !0,
1397
1406
  children: t
1398
1407
  });
1399
- }, []), q = s || h, ce = q && (p?.tooltip || p?.createTooltip), J = (e) => {
1400
- 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, {
1401
1410
  sx: { ...r },
1402
1411
  component: "div",
1403
1412
  ...i
1404
1413
  });
1405
- return ce && (a = (n ?? se)({
1406
- title: I ? "" : t ?? g,
1407
- children: j("div", { children: a })
1408
- }, 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;
1409
1422
  }, le = { onKeyDown: (e) => {
1410
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);
1411
- } }, ue = j(A, {}), de = H(() => Te((typeof b == "function" ? b() : b) ?? (q ? gt : null), a ? i : null), [
1424
+ } }, ue = j(A, {}), de = H(() => Ee((typeof b == "function" ? b() : b) ?? (q ? vt : null), a ? i : null), [
1412
1425
  b,
1413
1426
  i,
1414
1427
  a,
1415
1428
  q
1416
1429
  ]);
1417
1430
  if (q) {
1418
- let e = I ? K.openQuickButtonStyling : K.quickButtonStyling, t = (h || J)({
1431
+ let e = I ? K.openQuickButtonStyling : K.quickButtonStyling, t = {
1419
1432
  tabIndex: -1,
1420
1433
  disabled: x,
1421
1434
  size: "small",
@@ -1443,11 +1456,18 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1443
1456
  height: "100%",
1444
1457
  ...p?.sx
1445
1458
  }
1446
- }), r = et(!0, n, I);
1447
- ce && (r = (_ ?? se)({
1448
- title: I ? "" : g,
1449
- children: r
1450
- }, 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, {
1451
1471
  ref: re,
1452
1472
  component: "div",
1453
1473
  className: v({
@@ -1474,11 +1494,11 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1474
1494
  onMouseDown: (e) => {
1475
1495
  e.button === 0 && (e.preventDefault(), ae());
1476
1496
  },
1477
- children: r
1497
+ children: i
1478
1498
  })] });
1479
1499
  } else {
1480
1500
  let e = I ? K.openCompoundStyling : K.compoundStyling;
1481
- ue = j(lt, {
1501
+ ue = j(dt, {
1482
1502
  ref: re,
1483
1503
  tabIndex: -1,
1484
1504
  disabled: x,
@@ -1501,10 +1521,10 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1501
1521
  onMouseDown: (e) => {
1502
1522
  e.button === 0 && (e.preventDefault(), ae());
1503
1523
  },
1504
- children: et(!1, n, I)
1524
+ children: nt(!1, n, I)
1505
1525
  });
1506
1526
  }
1507
- let { className: X, sx: fe, ...pe } = C, me = j(y, {
1527
+ let { className: X, sx: pe, ...me } = C, he = j(y, {
1508
1528
  onFocus: () => R(!0),
1509
1529
  onBlur: () => R(!1),
1510
1530
  onMouseOver: () => z(!0),
@@ -1532,15 +1552,19 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1532
1552
  outline: (e) => `solid ${e.palette.primary.main} 1px`,
1533
1553
  zIndex: 2
1534
1554
  },
1535
- ...fe
1555
+ ...pe
1536
1556
  },
1537
- ...pe,
1557
+ ...me,
1538
1558
  children: ue
1539
1559
  });
1540
- return ce || (me = (_ ?? se)({
1541
- title: I ? "" : g,
1542
- children: me
1543
- }, 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, {
1544
1568
  className: v(k, "popupIconButton"),
1545
1569
  ref: t,
1546
1570
  ...N,
@@ -1550,12 +1574,12 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1550
1574
  alignItems: "center",
1551
1575
  ...O
1552
1576
  },
1553
- children: [me, V.component]
1577
+ children: [he, V.component]
1554
1578
  });
1555
1579
  }));
1556
- ht.displayName = "ExhibitPopupIconButton";
1557
- var gt = j(J, { iconKey: "Check" }), _t = {}, vt = z(R((e, t) => {
1558
- let { selected: n = !1, label: r, showLabel: i, onQuickClick: a, parentFloat: o, createPopupPanel: s, propsPopup: c = _t, 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(() => {
1559
1583
  if (!c) return;
1560
1584
  let { propsPopper: e } = c;
1561
1585
  return {
@@ -1563,10 +1587,10 @@ var gt = j(J, { iconKey: "Check" }), _t = {}, vt = z(R((e, t) => {
1563
1587
  offsets: [-4, -2],
1564
1588
  ...e
1565
1589
  };
1566
- }, [c]), z = _e({
1590
+ }, [c]), z = ve({
1567
1591
  anchor: L.current,
1568
1592
  label: r,
1569
- createPopupPanel: s,
1593
+ renderPopupPanel: s,
1570
1594
  parentFloat: o,
1571
1595
  propsPopper: ne,
1572
1596
  onClose: () => {
@@ -1581,16 +1605,16 @@ var gt = j(J, { iconKey: "Check" }), _t = {}, vt = z(R((e, t) => {
1581
1605
  color: (e) => e.palette.text.primary,
1582
1606
  "& svg * ": { color: (e) => e.palette.text.primary }
1583
1607
  } }, ae = B((e) => {
1584
- let { children: t, ref: n, ...r } = e;
1608
+ let { children: t, ref: n, disabled: r, ...i } = e;
1585
1609
  return j(m, {
1586
1610
  ref: n,
1587
- ...r,
1611
+ ...i,
1588
1612
  disableInteractive: !0,
1589
1613
  children: t
1590
1614
  });
1591
1615
  }, []), G = a || p, oe = (e) => {
1592
- let { tooltip: t, createTooltip: n, ...i } = e;
1593
- return M(pt, {
1616
+ let { tooltip: t, renderTooltip: n, ...i } = e;
1617
+ return M(ht, {
1594
1618
  icon: _,
1595
1619
  disableRipple: !!S,
1596
1620
  className: v({ "Mui-hovered": P }),
@@ -1620,7 +1644,7 @@ var gt = j(J, { iconKey: "Check" }), _t = {}, vt = z(R((e, t) => {
1620
1644
  }
1621
1645
  }, se = j(A, {});
1622
1646
  if (G) {
1623
- let e = (p || oe)({
1647
+ let e = {
1624
1648
  tabIndex: -1,
1625
1649
  disabled: b,
1626
1650
  onMouseEnter: () => {
@@ -1631,9 +1655,12 @@ var gt = j(J, { iconKey: "Check" }), _t = {}, vt = z(R((e, t) => {
1631
1655
  },
1632
1656
  className: v("quick-left", {}, f?.className),
1633
1657
  ...f
1634
- });
1658
+ };
1635
1659
  se = M(A, { children: [
1636
- e,
1660
+ j(fe, {
1661
+ render: p ?? oe,
1662
+ props: e
1663
+ }),
1637
1664
  j(x, {
1638
1665
  sx: {
1639
1666
  ml: "0px",
@@ -1689,7 +1716,7 @@ var gt = j(J, { iconKey: "Check" }), _t = {}, vt = z(R((e, t) => {
1689
1716
  })
1690
1717
  })
1691
1718
  ] });
1692
- } else se = M(pt, {
1719
+ } else se = M(ht, {
1693
1720
  ref: R,
1694
1721
  tabIndex: -1,
1695
1722
  disabled: b,
@@ -1746,10 +1773,14 @@ var gt = j(J, { iconKey: "Check" }), _t = {}, vt = z(R((e, t) => {
1746
1773
  ...D,
1747
1774
  children: se
1748
1775
  });
1749
- return G && !I && (f?.tooltip || f?.createTooltip) && (q = (f?.createTooltip ?? ae)({
1750
- title: O ? "" : q ?? f?.tooltip,
1751
- children: q
1752
- }, 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, {
1753
1784
  ref: t,
1754
1785
  sx: {
1755
1786
  zIndex: ee || O ? 2 : void 0,
@@ -1761,12 +1792,12 @@ var gt = j(J, { iconKey: "Check" }), _t = {}, vt = z(R((e, t) => {
1761
1792
  },
1762
1793
  children: [q, z.component]
1763
1794
  });
1764
- })), yt = z(R((e, n) => {
1795
+ })), xt = z(R((e, n) => {
1765
1796
  let { onSelectToggle: r, selected: i = !1, label: a, shortcut: o, tabIndex: s = 0, preventFocus: c = !1, ...l } = e;
1766
1797
  return j(t, {
1767
1798
  label: a,
1768
1799
  shortcut: o,
1769
- children: j(lt, {
1800
+ children: j(dt, {
1770
1801
  ref: n,
1771
1802
  outlined: !1,
1772
1803
  tabIndex: s,
@@ -1780,7 +1811,7 @@ var gt = j(J, { iconKey: "Check" }), _t = {}, vt = z(R((e, t) => {
1780
1811
  ...l
1781
1812
  })
1782
1813
  });
1783
- })), bt = j(J, {}), xt = j(J, { iconKey: "Check" }), St = z(R((e, t) => {
1814
+ })), St = j(J, {}), Ct = j(J, { iconKey: "Check" }), wt = z(R((e, t) => {
1784
1815
  let { children: n, selected: r = !0, outlined: i = !0, sx: a, ...o } = e, s = H(() => ({
1785
1816
  display: "flex",
1786
1817
  border: (e) => r ? `solid ${i ? e.palette.divider : "transparent"} 1px` : "solid transparent 1px",
@@ -1790,7 +1821,7 @@ var gt = j(J, { iconKey: "Check" }), _t = {}, vt = z(R((e, t) => {
1790
1821
  },
1791
1822
  ...a
1792
1823
  }), [a]), c = n;
1793
- return c === null && (c = bt), c ||= xt, j(y, {
1824
+ return c === null && (c = St), c ||= Ct, j(y, {
1794
1825
  ref: t,
1795
1826
  sx: s,
1796
1827
  ...o,
@@ -1798,11 +1829,11 @@ var gt = j(J, { iconKey: "Check" }), _t = {}, vt = z(R((e, t) => {
1798
1829
  });
1799
1830
  }));
1800
1831
  s();
1801
- var Ct = {
1832
+ var Tt = {
1802
1833
  inline: null,
1803
1834
  popup: []
1804
- }, wt = z(R((e, n) => {
1805
- 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);
1806
1837
  E.current = T;
1807
1838
  let D = B(() => {
1808
1839
  E.current?.closeChild(0);
@@ -1859,7 +1890,7 @@ var Ct = {
1859
1890
  let i = t.current.getBoundingClientRect();
1860
1891
  o += i?.width, o > n.width && (c = !0);
1861
1892
  }
1862
- if (!c) return a(), w.current && D(), void v(Ct);
1893
+ if (!c) return a(), w.current && D(), void v(Tt);
1863
1894
  let l = u.current?.getBoundingClientRect();
1864
1895
  l?.width && (x.current = l.width);
1865
1896
  let f = n.width - x.current;
@@ -1896,7 +1927,7 @@ var Ct = {
1896
1927
  t.push(o);
1897
1928
  });
1898
1929
  }
1899
- return $e({
1930
+ return tt({
1900
1931
  ...e,
1901
1932
  children: j(y, {
1902
1933
  className: "overflow-palette-popup-panel",
@@ -1953,12 +1984,12 @@ var Ct = {
1953
1984
  flex: "0 0 auto",
1954
1985
  alignItems: "center"
1955
1986
  },
1956
- children: j(ht, {
1957
- createPopupPanel: F,
1987
+ children: j(_t, {
1988
+ renderPopupPanel: F,
1958
1989
  ref: u,
1959
1990
  onPopupOpen: O,
1960
1991
  onPopupClose: k,
1961
- createTooltip: ({ children: e }, n) => j(t, {
1992
+ renderTooltip: ({ children: e, disabled: n }) => j(t, {
1962
1993
  label: o("overflow.more"),
1963
1994
  description: o("overflow.moreDescription"),
1964
1995
  disabled: n,
@@ -1978,7 +2009,7 @@ function Q() {
1978
2009
  return e;
1979
2010
  }, Q.apply(null, arguments);
1980
2011
  }
1981
- function Tt(e, t) {
2012
+ function Dt(e, t) {
1982
2013
  if (e == null) return {};
1983
2014
  var n = {};
1984
2015
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -1987,7 +2018,7 @@ function Tt(e, t) {
1987
2018
  }
1988
2019
  return n;
1989
2020
  }
1990
- var $, Et = {
2021
+ var $, Ot = {
1991
2022
  state: {},
1992
2023
  updateModal: function() {},
1993
2024
  hideModal: function() {},
@@ -2001,12 +2032,12 @@ var $, Et = {
2001
2032
  update: function() {}
2002
2033
  };
2003
2034
  }
2004
- }, Dt = L(void 0);
2035
+ }, kt = L(void 0);
2005
2036
  (function(e) {
2006
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";
2007
2038
  })($ ||= {});
2008
- var Ot = {};
2009
- function kt(e, t) {
2039
+ var At = {};
2040
+ function jt(e, t) {
2010
2041
  switch (t.type) {
2011
2042
  case $.SHOW:
2012
2043
  var n, r = t.payload, i = r.id, a = r.component, o = r.props, s = r.options;
@@ -2035,38 +2066,38 @@ function kt(e, t) {
2035
2066
  default: throw Error("Unexpected action");
2036
2067
  }
2037
2068
  }
2038
- var At = "[ERROR]: Modal ID is missing", jt = function(e) {
2069
+ var Mt = "[ERROR]: Modal ID is missing", Nt = function(e) {
2039
2070
  e === void 0 && (e = 8);
2040
2071
  for (var t = [], n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", r = 0; r < e; r++) t[r] = n.charAt(Math.floor(62 * Math.random()));
2041
2072
  return t.join("");
2042
- }, Mt = ["open"];
2043
- function Nt(e) {
2044
- 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(kt, Ot), l = c[0], u = c[1], d = N.useCallback(function(e, t) {
2045
- var n = Tt(t, Mt);
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);
2046
2077
  e ? u({
2047
2078
  type: $.UPDATE,
2048
2079
  payload: {
2049
2080
  id: e,
2050
2081
  props: n
2051
2082
  }
2052
- }) : console.error(At);
2083
+ }) : console.error(Mt);
2053
2084
  }, [u]), f = N.useCallback(function(e) {
2054
2085
  e ? u({
2055
2086
  type: $.HIDE,
2056
2087
  payload: { id: e }
2057
- }) : console.error(At);
2088
+ }) : console.error(Mt);
2058
2089
  }, [u]), p = N.useCallback(function(e) {
2059
2090
  e ? u({
2060
2091
  type: $.DESTROY,
2061
2092
  payload: { id: e }
2062
- }) : console.error(At);
2093
+ }) : console.error(Mt);
2063
2094
  }, [u]), m = N.useCallback(function(e) {
2064
2095
  e ? u({
2065
2096
  type: $.DESTROY_BY_ROOT_ID,
2066
2097
  payload: { rootId: e }
2067
2098
  }) : console.error("[ERROR]: Modal root ID is missing");
2068
2099
  }, [u]), h = N.useCallback(function(e, t, n) {
2069
- var r = jt(8);
2100
+ var r = Nt(8);
2070
2101
  return n && n.rootId && (r = n.rootId + "." + r), u({
2071
2102
  type: $.SHOW,
2072
2103
  payload: {
@@ -2093,7 +2124,7 @@ function Nt(e) {
2093
2124
  p,
2094
2125
  d
2095
2126
  ]), g = a ? I : F;
2096
- return N.createElement(Dt.Provider, { value: {
2127
+ return N.createElement(kt.Provider, { value: {
2097
2128
  state: l,
2098
2129
  updateModal: d,
2099
2130
  hideModal: f,
@@ -2113,21 +2144,21 @@ function Nt(e) {
2113
2144
  }, a && !a.destroyOnClose && s));
2114
2145
  })));
2115
2146
  }
2116
- var Pt = { enforceProvider: !1 };
2117
- function Ft(e) {
2118
- Object.assign(Pt, e);
2147
+ var It = { enforceProvider: !1 };
2148
+ function Lt(e) {
2149
+ Object.assign(It, e);
2119
2150
  }
2120
- function It() {
2121
- return Pt;
2151
+ function Rt() {
2152
+ return It;
2122
2153
  }
2123
- var Lt = ["showModal", "destroyModalsByRootId"], Rt = { disableAutoDestroy: !1 };
2124
- function zt(e) {
2125
- e === void 0 && (e = Rt);
2126
- var t = Q({}, Rt, e).disableAutoDestroy, n = function() {
2127
- var e = re(Dt);
2128
- if (It().enforceProvider && e === void 0) throw Error("useModalContext must be used within a ModalProvider");
2129
- return e || Et;
2130
- }(), r = n.showModal, i = n.destroyModalsByRootId, a = Tt(n, Lt), o = U(jt(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));
2131
2162
  return V(function() {
2132
2163
  return function() {
2133
2164
  !t && i && i(o.current);
@@ -2142,17 +2173,17 @@ function zt(e) {
2142
2173
  destroyModalsByRootId: i
2143
2174
  }, a);
2144
2175
  }
2145
- var Bt = L(void 0), Vt = ({ error: e }) => {
2146
- let t = re(Bt);
2176
+ var Ht = L(void 0), Ut = ({ error: e }) => {
2177
+ let t = re(Ht);
2147
2178
  return V(() => {
2148
2179
  t?.(e);
2149
2180
  }, [e]), null;
2150
2181
  };
2151
- function Ht(e) {
2152
- let t = pe(e, { renderError: (e) => j(Vt, { error: e }) });
2182
+ function Wt(e) {
2183
+ let t = me(e, { renderError: ({ error: e }) => j(Ut, { error: e }) });
2153
2184
  return (e) => {
2154
2185
  let { onLoadError: n, ...r } = e;
2155
- return j(Bt.Provider, {
2186
+ return j(Ht.Provider, {
2156
2187
  value: n,
2157
2188
  children: j(I, {
2158
2189
  fallback: null,
@@ -2161,10 +2192,10 @@ function Ht(e) {
2161
2192
  });
2162
2193
  };
2163
2194
  }
2164
- function Ut(e) {
2195
+ function Gt(e) {
2165
2196
  let [t, n] = W(() => /* @__PURE__ */ new Map()), r = U(null);
2166
2197
  r.current === null && (r.current = /* @__PURE__ */ new Map());
2167
- let { showModal: i, updateModal: a, destroyModal: o, hideModal: s } = zt({ disableAutoDestroy: !0 });
2198
+ let { showModal: i, updateModal: a, destroyModal: o, hideModal: s } = Vt({ disableAutoDestroy: !0 });
2168
2199
  return (c, l, u, d) => new Promise((f, p) => {
2169
2200
  let m = !1;
2170
2201
  u?.disableAutoDestroy !== void 0 && (m = u.disableAutoDestroy, delete (u = { ...u }).disableAutoDestroy);
@@ -2218,7 +2249,7 @@ function Ut(e) {
2218
2249
  }
2219
2250
  if (!l) return void p(`Invalid function for window '${c}'`);
2220
2251
  let v = r.current.get(c);
2221
- v || (v = Ht(l), r.current.set(c, v));
2252
+ v || (v = Wt(l), r.current.set(c, v));
2222
2253
  let y = i(v, g, { destroyOnClose: !m });
2223
2254
  n((e) => (e.set(c, {
2224
2255
  id: y.id,
@@ -2227,8 +2258,8 @@ function Ut(e) {
2227
2258
  }), e)), h && f(null);
2228
2259
  });
2229
2260
  }
2230
- var Wt = (e) => {
2231
- let { showModal: t } = zt();
2261
+ var Kt = (e) => {
2262
+ let { showModal: t } = Vt();
2232
2263
  return (n) => new Promise((r) => {
2233
2264
  let i = t(h, {
2234
2265
  ...e,
@@ -2241,12 +2272,12 @@ var Wt = (e) => {
2241
2272
  }
2242
2273
  });
2243
2274
  });
2244
- }, Gt = Ht(se("utils-mui:inputDialog", () => import("./C9y4YEtSjLoI4eoI.mjs")).load), Kt = (e) => {
2245
- let { showModal: t } = zt();
2275
+ }, qt = Wt(se("utils-mui:inputDialog", () => import("./u1uhi8u00MqBLY6C.mjs")).load), Jt = (e) => {
2276
+ let { showModal: t } = Vt();
2246
2277
  return (n) => {
2247
2278
  let { defaultOption: r = n.options?.[0], cancelOption: i = "Cancel", ...a } = n;
2248
2279
  return new Promise((n, o) => {
2249
- let s = t(Gt, {
2280
+ let s = t(qt, {
2250
2281
  ...e,
2251
2282
  defaultOption: r,
2252
2283
  cancelOption: i,
@@ -2272,8 +2303,8 @@ var Wt = (e) => {
2272
2303
  });
2273
2304
  });
2274
2305
  };
2275
- }, qt = z(R((e, n) => {
2276
- 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();
2277
2308
  return j(t, {
2278
2309
  ref: n,
2279
2310
  label: a === void 0 ? "" : u?.getLabel(),
@@ -2290,11 +2321,11 @@ var Wt = (e) => {
2290
2321
  children: s
2291
2322
  })
2292
2323
  });
2293
- })), Jt = Ce;
2294
- function Yt() {
2324
+ })), Xt = we;
2325
+ function Zt() {
2295
2326
  let e = U(null);
2296
2327
  return {
2297
- ripple: H(() => j(Jt, {
2328
+ ripple: H(() => j(Xt, {
2298
2329
  ref: e,
2299
2330
  center: !1
2300
2331
  }), []),
@@ -2303,19 +2334,19 @@ function Yt() {
2303
2334
  }, [])
2304
2335
  };
2305
2336
  }
2306
- var Xt = j(J, {}), Zt = z(R((e, t) => {
2307
- 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 } = Yt(), 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() {
2308
2339
  h();
2309
- } }), [h]), [_] = he(n ?? [], g), v = r ?? _, y = B((e) => {
2340
+ } }), [h]), [_] = ge(n ?? [], g), v = r ?? _, y = B((e) => {
2310
2341
  e.button === 0 && e.preventDefault();
2311
2342
  }, []), b = B(async (e) => {
2312
2343
  e.button === 0 && v && await v.execute(d);
2313
2344
  }, [v, d]), x = B((e) => {
2314
2345
  e.keyCode !== Y.Enter && e.keyCode !== Y.Space || v?.execute(d);
2315
2346
  }, [v, d]), S = c ?? (!v || v.disabled()), C = v?.getState(), w = H(() => {
2316
- if (a === null) return Xt;
2347
+ if (a === null) return Qt;
2317
2348
  let e;
2318
- 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 : Xt;
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;
2319
2350
  }, [
2320
2351
  v,
2321
2352
  i,
@@ -2326,7 +2357,7 @@ var Xt = j(J, {}), Zt = z(R((e, t) => {
2326
2357
  tabIndex: 0,
2327
2358
  ref: t,
2328
2359
  selected: !!C,
2329
- icon: l === q.Toolbar ? s ? Te(w, o ?? v?.getLabel(i)) : w : j(St, {
2360
+ icon: l === q.Toolbar ? s ? Ee(w, o ?? v?.getLabel(i)) : w : j(wt, {
2330
2361
  selected: C ?? !1,
2331
2362
  children: w
2332
2363
  }),
@@ -2336,15 +2367,15 @@ var Xt = j(J, {}), Zt = z(R((e, t) => {
2336
2367
  onMouseUp: b,
2337
2368
  onKeyDown: x
2338
2369
  }, E;
2339
- return E = l === q.Menuitem ? M(pt, {
2370
+ return E = l === q.Menuitem ? M(ht, {
2340
2371
  ...p,
2341
2372
  ...T,
2342
2373
  children: [o ?? v?.getLabel(i), m]
2343
- }) : j(lt, {
2374
+ }) : j(dt, {
2344
2375
  ...p,
2345
2376
  ...T,
2346
2377
  children: m
2347
- }), (o || v?.getLabel()) && (S && (E = j("div", { children: E })), E = j(qt, {
2378
+ }), (o || v?.getLabel()) && (S && (E = j("div", { children: E })), E = j(Yt, {
2348
2379
  commandKey: n,
2349
2380
  command: r,
2350
2381
  disabled: S,
@@ -2354,11 +2385,11 @@ var Xt = j(J, {}), Zt = z(R((e, t) => {
2354
2385
  children: E
2355
2386
  })), E;
2356
2387
  }));
2357
- Zt.displayName = "CommandButton";
2358
- var Qt = j(J, {}), $t = z(R((e, t) => {
2359
- 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 } = Yt(), 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() {
2360
2391
  m();
2361
- } }), [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(() => {
2362
2393
  let e = v;
2363
2394
  if (l) try {
2364
2395
  e = l(v);
@@ -2377,9 +2408,9 @@ var Qt = j(J, {}), $t = z(R((e, t) => {
2377
2408
  y(_());
2378
2409
  }, [g?.getState()]);
2379
2410
  let w = H(() => {
2380
- if (i === null) return Qt;
2411
+ if (i === null) return en;
2381
2412
  let e;
2382
- 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 : Qt;
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;
2383
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, {
2384
2415
  ...f,
2385
2416
  sx: {
@@ -2465,7 +2496,7 @@ var Qt = j(J, {}), $t = z(R((e, t) => {
2465
2496
  e.keyCode !== Y.Enter && e.keyCode !== Y.Tab || x();
2466
2497
  }
2467
2498
  }, k;
2468
- return k = s === q.Menuitem ? M(pt, {
2499
+ return k = s === q.Menuitem ? M(ht, {
2469
2500
  ...f,
2470
2501
  ...O,
2471
2502
  children: [
@@ -2473,19 +2504,19 @@ var Qt = j(J, {}), $t = z(R((e, t) => {
2473
2504
  D,
2474
2505
  p
2475
2506
  ]
2476
- }) : j(lt, {
2507
+ }) : j(dt, {
2477
2508
  ...f,
2478
2509
  ...O,
2479
2510
  children: p
2480
- }), g?.getLabel() && ((g.disabled() || c) && (k = j("div", { children: k })), k = j(qt, {
2511
+ }), g?.getLabel() && ((g.disabled() || c) && (k = j("div", { children: k })), k = j(Yt, {
2481
2512
  commandKey: n,
2482
2513
  placement: s === q.Toolbar ? "bottom-start" : "right-start",
2483
2514
  children: k
2484
2515
  })), k;
2485
- })), en = z(R((e, n) => {
2486
- 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 } = Yt(), _ = 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() {
2487
2518
  g();
2488
- } }), [g]), [v] = he(i ?? [], _), { label: y, icon: b } = H(() => {
2519
+ } }), [g]), [v] = ge(i ?? [], _), { label: y, icon: b } = H(() => {
2489
2520
  let e = null;
2490
2521
  c && (e = typeof c == "function" ? v ? c(v) : null : c), e ||= v?.getLabel?.(p);
2491
2522
  let t = l;
@@ -2505,29 +2536,29 @@ var Qt = j(J, {}), $t = z(R((e, t) => {
2505
2536
  label: y,
2506
2537
  icon: b
2507
2538
  };
2508
- (y || d) && (x.createTooltip = ({ children: e }, n) => j(t, {
2539
+ (y || d) && (x.renderTooltip = ({ children: e, disabled: n }) => j(t, {
2509
2540
  label: y,
2510
2541
  description: d,
2511
2542
  disabled: n,
2512
2543
  children: e
2513
2544
  }));
2514
2545
  let S = Z((e) => u?.(e), [u]), C = Z((e) => v?.execute(o), [v]);
2515
- return v ? (x.propsQuickButton = {}, x.propsQuickButton.createTooltip = ({ children: e, placement: t }, n) => j(qt, {
2546
+ return v ? (x.propsQuickButton = {}, x.propsQuickButton.renderTooltip = ({ children: e, placement: t, disabled: n }) => j(Yt, {
2516
2547
  commandKey: i,
2517
2548
  placement: t ?? r === q.Toolbar ? "bottom-start" : "right-start",
2518
2549
  disabled: n,
2519
2550
  children: e
2520
- }), 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(ht, {
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, {
2521
2552
  ...m,
2522
2553
  ...x,
2523
2554
  ref: n
2524
- }) : j(vt, {
2555
+ }) : j(bt, {
2525
2556
  ...m,
2526
2557
  ...x,
2527
2558
  ref: n
2528
2559
  });
2529
2560
  }));
2530
- function tn(e, t = {}) {
2561
+ function rn(e, t = {}) {
2531
2562
  let { variant: n, dividerOrientation: r = "vertical", groupKey: i, commandState: a, propsCommandButton: o, propsCommandPopup: s, registry: c } = t, l = { ...o };
2532
2563
  n !== void 0 && (l.variant = n);
2533
2564
  let u = { ...s };
@@ -2542,10 +2573,10 @@ function tn(e, t = {}) {
2542
2573
  icon: n?.getIcon?.(i),
2543
2574
  showLabel: n?.showLabel
2544
2575
  };
2545
- return (n?.render ? n.render(r, i) : j(Zt, { ...r })) ?? null;
2576
+ return (n?.render ? n.render(r, i) : j($t, { ...r })) ?? null;
2546
2577
  }, f = (e) => {
2547
2578
  let t = typeof e == "string" ? e : e.key, n = typeof e == "string" ? void 0 : e;
2548
- if (!t) return ((e) => Array.isArray(e.members) ? e.render ? e.render({ ...u }, void 0) ?? null : j(nn, {
2579
+ if (!t) return ((e) => Array.isArray(e.members) ? e.render ? e.render({ ...u }, void 0) ?? null : j(an, {
2549
2580
  ...u,
2550
2581
  members: e.members,
2551
2582
  icon: e.getIcon?.(),
@@ -2554,7 +2585,7 @@ function tn(e, t = {}) {
2554
2585
  }) : (e.render ? e.render({ ...u }, i) : null) ?? null)(e);
2555
2586
  let r = c?.get(t) ?? null;
2556
2587
  return r ? ((e, t, n) => {
2557
- if (Array.isArray(e.members)) return e.render ? e.render({ ...u }, t) ?? null : j(nn, {
2588
+ if (Array.isArray(e.members)) return e.render ? e.render({ ...u }, t) ?? null : j(an, {
2558
2589
  ...u,
2559
2590
  groupKey: t,
2560
2591
  icon: n?.getIcon?.(t),
@@ -2576,13 +2607,13 @@ function tn(e, t = {}) {
2576
2607
  continue;
2577
2608
  }
2578
2609
  let n = f(t);
2579
- 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);
2580
2611
  }
2581
2612
  return p;
2582
2613
  }
2583
- en.displayName = "CommandPopupButton";
2584
- var nn = z(R((e, t) => {
2585
- 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, [
2586
2617
  r,
2587
2618
  n,
2588
2619
  m
@@ -2593,7 +2624,7 @@ var nn = z(R((e, t) => {
2593
2624
  r && r !== "-" && (typeof r == "string" ? e.push(r) : r.key && e.push(r.key));
2594
2625
  }
2595
2626
  return e;
2596
- }, [_]), T = he(y ? [y, ...w] : w), E = H(() => {
2627
+ }, [_]), T = ge(y ? [y, ...w] : w), E = H(() => {
2597
2628
  for (let e = 0; e < T.length; e++) {
2598
2629
  let t = T[e];
2599
2630
  if (t && !t.disabled()) return !1;
@@ -2602,7 +2633,7 @@ var nn = z(R((e, t) => {
2602
2633
  }, [T]), D = B((e) => {
2603
2634
  let t = {};
2604
2635
  d !== void 0 && (t.disabled = d);
2605
- let n = tn(_, {
2636
+ let n = rn(_, {
2606
2637
  variant: q.Menuitem,
2607
2638
  dividerOrientation: "horizontal",
2608
2639
  groupKey: v,
@@ -2611,7 +2642,7 @@ var nn = z(R((e, t) => {
2611
2642
  propsCommandPopup: t,
2612
2643
  registry: m
2613
2644
  });
2614
- return $e({
2645
+ return tt({
2615
2646
  ...e,
2616
2647
  children: n
2617
2648
  });
@@ -2622,7 +2653,7 @@ var nn = z(R((e, t) => {
2622
2653
  u,
2623
2654
  d
2624
2655
  ]);
2625
- return _ ? j(en, {
2656
+ return _ ? j(nn, {
2626
2657
  ref: t,
2627
2658
  quickCommand: y,
2628
2659
  icon: b,
@@ -2631,16 +2662,16 @@ var nn = z(R((e, t) => {
2631
2662
  tooltip: C,
2632
2663
  commandState: u,
2633
2664
  disabled: d ?? E,
2634
- createPopupPanel: D,
2665
+ renderPopupPanel: D,
2635
2666
  ...f
2636
2667
  }) : null;
2637
2668
  }));
2638
- nn.displayName = "CommandGroup";
2639
- var rn = j(J, { iconKey: "Check" }), an = (e) => {
2640
- let { commandKey: t, label: n, groupKey: r, icon: i, sx: a, ...o } = e, [s] = he(t ?? []), c = H(() => {
2669
+ an.displayName = "CommandGroup";
2670
+ var on = j(J, { iconKey: "Check" }), sn = (e) => {
2671
+ let { commandKey: t, label: n, groupKey: r, icon: i, sx: a, ...o } = e, [s] = ge(t ?? []), c = H(() => {
2641
2672
  if (i !== void 0) return i;
2642
2673
  let e = s?.getIcon(r);
2643
- return e ? (typeof e == "string" && (e = j(J, { iconKey: e })), e) : rn;
2674
+ return e ? (typeof e == "string" && (e = j(J, { iconKey: e })), e) : on;
2644
2675
  }, [
2645
2676
  i,
2646
2677
  r,
@@ -2668,17 +2699,17 @@ var rn = j(J, { iconKey: "Check" }), an = (e) => {
2668
2699
  children: n ?? s?.getLabel(r)
2669
2700
  })]
2670
2701
  });
2671
- }, on = z(R((e, t) => {
2672
- 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, [
2702
+ }, cn = z(R((e, t) => {
2703
+ 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, [
2673
2704
  o,
2674
2705
  a,
2675
2706
  f,
2676
2707
  f.getVersion()
2677
- ]), m = ve(t, () => ({}), []), [h, g] = W(null), { reference: _ } = _e({
2708
+ ]), m = ye(t, () => ({}), []), [h, g] = W(null), { reference: _ } = ve({
2678
2709
  label: "toolbar",
2679
2710
  anchor: m.current,
2680
2711
  parentFloat: i,
2681
- createPopupPanel: null
2712
+ renderPopupPanel: null
2682
2713
  }), v = Z(() => {
2683
2714
  let e = h;
2684
2715
  e && requestAnimationFrame(() => {
@@ -2702,7 +2733,7 @@ var rn = j(J, { iconKey: "Check" }), an = (e) => {
2702
2733
  ...r
2703
2734
  }
2704
2735
  };
2705
- return c ? c(e) : p ? j(wt, { children: tn(p, {
2736
+ return c ? c(e) : p ? j(Et, { children: rn(p, {
2706
2737
  dividerOrientation: "vertical",
2707
2738
  groupKey: a,
2708
2739
  propsCommandButton: e.propsCommandButton,
@@ -2767,9 +2798,9 @@ var rn = j(J, { iconKey: "Check" }), an = (e) => {
2767
2798
  })
2768
2799
  });
2769
2800
  }));
2770
- on.displayName = "CommandToolbar";
2771
- var sn = z(R((e, t) => {
2772
- 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, [
2801
+ cn.displayName = "CommandToolbar";
2802
+ var ln = z(R((e, t) => {
2803
+ 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, [
2773
2804
  r,
2774
2805
  n,
2775
2806
  l
@@ -2780,7 +2811,7 @@ var sn = z(R((e, t) => {
2780
2811
  r && r !== "-" && (typeof r == "string" ? e.push(r) : r.key && e.push(r.key));
2781
2812
  }
2782
2813
  return e;
2783
- }, [u]), f = he(d), p = null, m = null;
2814
+ }, [u]), f = ge(d), p = null, m = null;
2784
2815
  for (let e = 0; !p && e < f.length; e++) {
2785
2816
  let t = f[e];
2786
2817
  t && !t.disabled() && t.getState() && (p = d[e], m = t.getIcon());
@@ -2792,7 +2823,7 @@ var sn = z(R((e, t) => {
2792
2823
  quickCommand: p ?? d[0],
2793
2824
  icon: void 0
2794
2825
  };
2795
- return j(nn, {
2826
+ return j(an, {
2796
2827
  ref: t,
2797
2828
  groupKey: n,
2798
2829
  members: r,
@@ -2801,5 +2832,5 @@ var sn = z(R((e, t) => {
2801
2832
  ...h
2802
2833
  });
2803
2834
  }));
2804
- sn.displayName = "ToggleGroupButton";
2805
- 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, Ze as ClosingReason, Zt as CommandButton, nn as CommandGroup, en as CommandPopupButton, on as CommandToolbar, qt as CommandTooltip, ot as ContextMenu, je as ExhibitDivider, tt as ExhibitFloatPanel, rt as ExhibitFloatProvider, lt as ExhibitIconButton, mt as ExhibitMenuHeader, pt as ExhibitMenuItem, yt as ExhibitOptionButton, ht as ExhibitPopupIconButton, vt as ExhibitPopupMenuItem, t as ExhibitTooltip, $t as InputCommandButton, p as InternalWindow, an as LabelIcon, Ye as LazyLoadErrorPanel, dt as MenuItemInsets, Nt as ModalProvider, it as NestingPopupButton, h as OptionsDialog, wt as OverflowPalette, Xe as PopupAutoFocus, Qe as PopupButtonType, St as SelectedIcon, m as SimpleTooltip, Ke as StackTrace, qe as StackTraceErrorPanel, sn as ToggleGroupButton, we as buttonLabelSx, Te as composeButtonContent, et as createDownArrow, g as createExhibitTheme, Oe as createScrollButton, o as createStrokeShadowFilter, $e as defaultCreatePopupPanel, r as elevateColor, It as getModalConfig, n as getScrollbarCssVariables, i as hexToRGB, Ve as hideLoadingPanel, Ht as lazyModal, u as optionIdentity, s as registerUtilsMuiLocales, tn as renderMembers, De as renderScrollButtonEdge, Ae as renderScrollButtonEnd, ke as renderScrollButtonStart, c as scrollbarTheming, Ft as setModalConfig, Be as showLoadingPanel, a as strokeShadowFilter, d as toShortcutElements, Kt as useInputDialog, Ut as useLazyWindow, zt as useModal, Wt as useOptionsDialog };
2835
+ ln.displayName = "ToggleGroupButton";
2836
+ 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 };