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

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,11 +1,11 @@
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.11
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 "./BfHjPJF6LKjMxxHM.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";
@@ -961,18 +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 }) });
966
+ return (e) => j(I, {
967
+ fallback: j(He, {}),
968
+ children: j(t, { ...e })
969
+ });
970
+ }
964
971
  Ye.displayName = "LazyLoadErrorPanel";
965
- var Xe = {
972
+ var Ze = {
966
973
  Popup: "popup",
967
974
  Anchor: "anchor"
968
- }, Ze = {
975
+ }, Qe = {
969
976
  ByPopup: "popupDone",
970
977
  Cancel: "popupCancel",
971
978
  ClickAway: "clickAway"
972
- }, Qe = {
979
+ }, $e = {
973
980
  Toolbar: "toolbar",
974
981
  Menuitem: "menuitem"
975
- }, $e = (e) => {
982
+ }, et = (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
+ }, tt = (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
+ }, 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) => {
1001
1008
  C(e), u?.(w.current, t);
1002
1009
  }, [u]), E = H(() => {
1003
1010
  let e = {
@@ -1042,12 +1049,12 @@ var Xe = {
1042
1049
  children: E
1043
1050
  });
1044
1051
  }));
1045
- tt.displayName = "ExhibitFloatPanel";
1046
- var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1047
- renderFloatPanel: nt,
1048
- createPopupPanel: $e,
1052
+ nt.displayName = "ExhibitFloatPanel";
1053
+ var rt = (e) => j(nt, { ...e }), it = (e) => j(ue, {
1054
+ renderFloatPanel: rt,
1055
+ createPopupPanel: et,
1049
1056
  ...e
1050
- }), it = z(R((e, t) => {
1057
+ }), at = z(R((e, t) => {
1051
1058
  let { nestedChildren: n, variant: r, disabled: i, createPopupPanel: a, ...o } = e, s = {
1052
1059
  disabled: i,
1053
1060
  createPopupPanel: Z((e) => {
@@ -1055,7 +1062,7 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1055
1062
  let { popupContainer: r, floatReference: i, ref: a, ...o } = e, s = [];
1056
1063
  for (let e = 0; e < n.length; e++) {
1057
1064
  let t = n[e];
1058
- t && s.push(j(it, {
1065
+ t && s.push(j(at, {
1059
1066
  ...o,
1060
1067
  ...t
1061
1068
  }, e));
@@ -1071,15 +1078,15 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1071
1078
  children: [
1072
1079
  "Children here",
1073
1080
  s,
1074
- j(pt, { children: "Close other children" })
1081
+ j(mt, { children: "Close other children" })
1075
1082
  ]
1076
1083
  });
1077
1084
  }, [n]),
1078
1085
  ...o
1079
1086
  };
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;
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;
1083
1090
  if (!ne(n)) throw Error("Must supply a child component to enable a context menu.");
1084
1091
  let l = n, u = H(() => ({
1085
1092
  ...l?.props,
@@ -1098,7 +1105,7 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1098
1105
  return V(() => {
1099
1106
  f ? m.open(0) : m.close(0);
1100
1107
  }, [f]), M(A, { children: [te(n, u), h] });
1101
- })), st = j(J, {}), ct = j(J, { iconKey: "Check" }), lt = z(R((e, n) => {
1108
+ })), ct = j(J, {}), lt = j(J, { iconKey: "Check" }), ut = z(R((e, n) => {
1102
1109
  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
1110
  marginRight: "0px",
1104
1111
  padding: r ? "2px" : "7px",
@@ -1121,14 +1128,13 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1121
1128
  },
1122
1129
  ...d
1123
1130
  }, w = {
1124
- "&:hover:not(.Mui-disabled, [disabled])": {
1131
+ "@media (hover: hover)": { "&:hover:not(.Mui-disabled, [disabled])": {
1125
1132
  color: (e) => e.palette.text.primary,
1126
1133
  border: (e) => `solid ${i ? e.palette.text?.primary : e.palette.divider} 1px`,
1127
1134
  "&.Mui-selected": { backgroundColor: (e) => G(e.palette.text.primary, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity) },
1128
1135
  "> .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
- },
1136
+ backgroundColor: (e) => G(e.palette.action.active, e.palette.action.hoverOpacity)
1137
+ } },
1132
1138
  "&.Mui-focusVisible": {
1133
1139
  outline: (e) => `solid ${e.palette.primary.main} 1px`,
1134
1140
  border: (e) => `1px solid ${e.palette?.primary?.main}`,
@@ -1138,7 +1144,7 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1138
1144
  a || (T = oe.mergeContentful(C, w));
1139
1145
  let E = H(() => {
1140
1146
  let e = typeof s == "function" ? s() : s;
1141
- return e === null ? e : e || (o === void 0 ? st : ct);
1147
+ return e === null ? e : e || (o === void 0 ? ct : lt);
1142
1148
  }, [s, o]), D = M(S, {
1143
1149
  component: "div",
1144
1150
  ref: n,
@@ -1179,13 +1185,13 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1179
1185
  });
1180
1186
  }
1181
1187
  return D;
1182
- })), ut = j(J, {}), dt = {
1188
+ })), dt = j(J, {}), ft = {
1183
1189
  marginLeft: "4px",
1184
1190
  marginRight: "4px",
1185
1191
  paddingLeft: "6px",
1186
1192
  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(() => {
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(() => {
1189
1195
  let e = a?.({
1190
1196
  icon: i,
1191
1197
  disabled: p,
@@ -1242,7 +1248,7 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1242
1248
  lineHeight: 1.5,
1243
1249
  paddingTop: "2px",
1244
1250
  paddingBottom: "2px",
1245
- ...dt,
1251
+ ...ft,
1246
1252
  borderRadius: "4px",
1247
1253
  fontSize: "0.875em",
1248
1254
  "@media (pointer: coarse)": { fontSize: "1em" },
@@ -1264,7 +1270,7 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1264
1270
  placement: "right-start",
1265
1271
  ...g
1266
1272
  })), k;
1267
- })), mt = z(R((e, t) => {
1273
+ })), ht = z(R((e, t) => {
1268
1274
  let { children: n, sx: r, primary: i = !1, variant: a = "subtitle1", ...o } = e;
1269
1275
  return j(A, { children: j(k, {
1270
1276
  ref: t,
@@ -1282,7 +1288,7 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1282
1288
  ...o,
1283
1289
  children: n
1284
1290
  }) });
1285
- })), ht = z(R((e, t) => {
1291
+ })), gt = z(R((e, t) => {
1286
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(() => {
1287
1293
  let e = (e, t, n, i = n) => {
1288
1294
  let a = typeof r == "boolean" ? null : r[e];
@@ -1408,7 +1414,7 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1408
1414
  }, I)), a;
1409
1415
  }, le = { onKeyDown: (e) => {
1410
1416
  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), [
1417
+ } }, ue = j(A, {}), de = H(() => Te((typeof b == "function" ? b() : b) ?? (q ? _t : null), a ? i : null), [
1412
1418
  b,
1413
1419
  i,
1414
1420
  a,
@@ -1443,7 +1449,7 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1443
1449
  height: "100%",
1444
1450
  ...p?.sx
1445
1451
  }
1446
- }), r = et(!0, n, I);
1452
+ }), r = tt(!0, n, I);
1447
1453
  ce && (r = (_ ?? se)({
1448
1454
  title: I ? "" : g,
1449
1455
  children: r
@@ -1478,7 +1484,7 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1478
1484
  })] });
1479
1485
  } else {
1480
1486
  let e = I ? K.openCompoundStyling : K.compoundStyling;
1481
- ue = j(lt, {
1487
+ ue = j(ut, {
1482
1488
  ref: re,
1483
1489
  tabIndex: -1,
1484
1490
  disabled: x,
@@ -1501,7 +1507,7 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1501
1507
  onMouseDown: (e) => {
1502
1508
  e.button === 0 && (e.preventDefault(), ae());
1503
1509
  },
1504
- children: et(!1, n, I)
1510
+ children: tt(!1, n, I)
1505
1511
  });
1506
1512
  }
1507
1513
  let { className: X, sx: fe, ...pe } = C, me = j(y, {
@@ -1553,9 +1559,9 @@ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1553
1559
  children: [me, V.component]
1554
1560
  });
1555
1561
  }));
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(() => {
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(() => {
1559
1565
  if (!c) return;
1560
1566
  let { propsPopper: e } = c;
1561
1567
  return {
@@ -1590,7 +1596,7 @@ var gt = j(J, { iconKey: "Check" }), _t = {}, vt = z(R((e, t) => {
1590
1596
  });
1591
1597
  }, []), G = a || p, oe = (e) => {
1592
1598
  let { tooltip: t, createTooltip: n, ...i } = e;
1593
- return M(pt, {
1599
+ return M(mt, {
1594
1600
  icon: _,
1595
1601
  disableRipple: !!S,
1596
1602
  className: v({ "Mui-hovered": P }),
@@ -1689,7 +1695,7 @@ var gt = j(J, { iconKey: "Check" }), _t = {}, vt = z(R((e, t) => {
1689
1695
  })
1690
1696
  })
1691
1697
  ] });
1692
- } else se = M(pt, {
1698
+ } else se = M(mt, {
1693
1699
  ref: R,
1694
1700
  tabIndex: -1,
1695
1701
  disabled: b,
@@ -1761,12 +1767,12 @@ var gt = j(J, { iconKey: "Check" }), _t = {}, vt = z(R((e, t) => {
1761
1767
  },
1762
1768
  children: [q, z.component]
1763
1769
  });
1764
- })), yt = z(R((e, n) => {
1770
+ })), bt = z(R((e, n) => {
1765
1771
  let { onSelectToggle: r, selected: i = !1, label: a, shortcut: o, tabIndex: s = 0, preventFocus: c = !1, ...l } = e;
1766
1772
  return j(t, {
1767
1773
  label: a,
1768
1774
  shortcut: o,
1769
- children: j(lt, {
1775
+ children: j(ut, {
1770
1776
  ref: n,
1771
1777
  outlined: !1,
1772
1778
  tabIndex: s,
@@ -1780,7 +1786,7 @@ var gt = j(J, { iconKey: "Check" }), _t = {}, vt = z(R((e, t) => {
1780
1786
  ...l
1781
1787
  })
1782
1788
  });
1783
- })), bt = j(J, {}), xt = j(J, { iconKey: "Check" }), St = z(R((e, t) => {
1789
+ })), xt = j(J, {}), St = j(J, { iconKey: "Check" }), Ct = z(R((e, t) => {
1784
1790
  let { children: n, selected: r = !0, outlined: i = !0, sx: a, ...o } = e, s = H(() => ({
1785
1791
  display: "flex",
1786
1792
  border: (e) => r ? `solid ${i ? e.palette.divider : "transparent"} 1px` : "solid transparent 1px",
@@ -1790,7 +1796,7 @@ var gt = j(J, { iconKey: "Check" }), _t = {}, vt = z(R((e, t) => {
1790
1796
  },
1791
1797
  ...a
1792
1798
  }), [a]), c = n;
1793
- return c === null && (c = bt), c ||= xt, j(y, {
1799
+ return c === null && (c = xt), c ||= St, j(y, {
1794
1800
  ref: t,
1795
1801
  sx: s,
1796
1802
  ...o,
@@ -1798,10 +1804,10 @@ var gt = j(J, { iconKey: "Check" }), _t = {}, vt = z(R((e, t) => {
1798
1804
  });
1799
1805
  }));
1800
1806
  s();
1801
- var Ct = {
1807
+ var wt = {
1802
1808
  inline: null,
1803
1809
  popup: []
1804
- }, wt = z(R((e, n) => {
1810
+ }, Tt = z(R((e, n) => {
1805
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);
1806
1812
  E.current = T;
1807
1813
  let D = B(() => {
@@ -1859,7 +1865,7 @@ var Ct = {
1859
1865
  let i = t.current.getBoundingClientRect();
1860
1866
  o += i?.width, o > n.width && (c = !0);
1861
1867
  }
1862
- if (!c) return a(), w.current && D(), void v(Ct);
1868
+ if (!c) return a(), w.current && D(), void v(wt);
1863
1869
  let l = u.current?.getBoundingClientRect();
1864
1870
  l?.width && (x.current = l.width);
1865
1871
  let f = n.width - x.current;
@@ -1896,7 +1902,7 @@ var Ct = {
1896
1902
  t.push(o);
1897
1903
  });
1898
1904
  }
1899
- return $e({
1905
+ return et({
1900
1906
  ...e,
1901
1907
  children: j(y, {
1902
1908
  className: "overflow-palette-popup-panel",
@@ -1953,7 +1959,7 @@ var Ct = {
1953
1959
  flex: "0 0 auto",
1954
1960
  alignItems: "center"
1955
1961
  },
1956
- children: j(ht, {
1962
+ children: j(gt, {
1957
1963
  createPopupPanel: F,
1958
1964
  ref: u,
1959
1965
  onPopupOpen: O,
@@ -1978,7 +1984,7 @@ function Q() {
1978
1984
  return e;
1979
1985
  }, Q.apply(null, arguments);
1980
1986
  }
1981
- function Tt(e, t) {
1987
+ function Et(e, t) {
1982
1988
  if (e == null) return {};
1983
1989
  var n = {};
1984
1990
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -1987,7 +1993,7 @@ function Tt(e, t) {
1987
1993
  }
1988
1994
  return n;
1989
1995
  }
1990
- var $, Et = {
1996
+ var $, Dt = {
1991
1997
  state: {},
1992
1998
  updateModal: function() {},
1993
1999
  hideModal: function() {},
@@ -2001,12 +2007,12 @@ var $, Et = {
2001
2007
  update: function() {}
2002
2008
  };
2003
2009
  }
2004
- }, Dt = L(void 0);
2010
+ }, Ot = L(void 0);
2005
2011
  (function(e) {
2006
2012
  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
2013
  })($ ||= {});
2008
- var Ot = {};
2009
- function kt(e, t) {
2014
+ var kt = {};
2015
+ function At(e, t) {
2010
2016
  switch (t.type) {
2011
2017
  case $.SHOW:
2012
2018
  var n, r = t.payload, i = r.id, a = r.component, o = r.props, s = r.options;
@@ -2035,38 +2041,38 @@ function kt(e, t) {
2035
2041
  default: throw Error("Unexpected action");
2036
2042
  }
2037
2043
  }
2038
- var At = "[ERROR]: Modal ID is missing", jt = function(e) {
2044
+ var jt = "[ERROR]: Modal ID is missing", Mt = function(e) {
2039
2045
  e === void 0 && (e = 8);
2040
2046
  for (var t = [], n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", r = 0; r < e; r++) t[r] = n.charAt(Math.floor(62 * Math.random()));
2041
2047
  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);
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);
2046
2052
  e ? u({
2047
2053
  type: $.UPDATE,
2048
2054
  payload: {
2049
2055
  id: e,
2050
2056
  props: n
2051
2057
  }
2052
- }) : console.error(At);
2058
+ }) : console.error(jt);
2053
2059
  }, [u]), f = N.useCallback(function(e) {
2054
2060
  e ? u({
2055
2061
  type: $.HIDE,
2056
2062
  payload: { id: e }
2057
- }) : console.error(At);
2063
+ }) : console.error(jt);
2058
2064
  }, [u]), p = N.useCallback(function(e) {
2059
2065
  e ? u({
2060
2066
  type: $.DESTROY,
2061
2067
  payload: { id: e }
2062
- }) : console.error(At);
2068
+ }) : console.error(jt);
2063
2069
  }, [u]), m = N.useCallback(function(e) {
2064
2070
  e ? u({
2065
2071
  type: $.DESTROY_BY_ROOT_ID,
2066
2072
  payload: { rootId: e }
2067
2073
  }) : console.error("[ERROR]: Modal root ID is missing");
2068
2074
  }, [u]), h = N.useCallback(function(e, t, n) {
2069
- var r = jt(8);
2075
+ var r = Mt(8);
2070
2076
  return n && n.rootId && (r = n.rootId + "." + r), u({
2071
2077
  type: $.SHOW,
2072
2078
  payload: {
@@ -2093,7 +2099,7 @@ function Nt(e) {
2093
2099
  p,
2094
2100
  d
2095
2101
  ]), g = a ? I : F;
2096
- return N.createElement(Dt.Provider, { value: {
2102
+ return N.createElement(Ot.Provider, { value: {
2097
2103
  state: l,
2098
2104
  updateModal: d,
2099
2105
  hideModal: f,
@@ -2113,21 +2119,21 @@ function Nt(e) {
2113
2119
  }, a && !a.destroyOnClose && s));
2114
2120
  })));
2115
2121
  }
2116
- var Pt = { enforceProvider: !1 };
2117
- function Ft(e) {
2118
- Object.assign(Pt, e);
2122
+ var Ft = { enforceProvider: !1 };
2123
+ function It(e) {
2124
+ Object.assign(Ft, e);
2119
2125
  }
2120
- function It() {
2121
- return Pt;
2126
+ function Lt() {
2127
+ return Ft;
2122
2128
  }
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));
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));
2131
2137
  return V(function() {
2132
2138
  return function() {
2133
2139
  !t && i && i(o.current);
@@ -2142,17 +2148,17 @@ function zt(e) {
2142
2148
  destroyModalsByRootId: i
2143
2149
  }, a);
2144
2150
  }
2145
- var Bt = L(void 0), Vt = ({ error: e }) => {
2146
- let t = re(Bt);
2151
+ var Vt = L(void 0), Ht = ({ error: e }) => {
2152
+ let t = re(Vt);
2147
2153
  return V(() => {
2148
2154
  t?.(e);
2149
2155
  }, [e]), null;
2150
2156
  };
2151
- function Ht(e) {
2152
- let t = pe(e, { renderError: (e) => j(Vt, { error: e }) });
2157
+ function Ut(e) {
2158
+ let t = pe(e, { renderError: (e) => j(Ht, { error: e }) });
2153
2159
  return (e) => {
2154
2160
  let { onLoadError: n, ...r } = e;
2155
- return j(Bt.Provider, {
2161
+ return j(Vt.Provider, {
2156
2162
  value: n,
2157
2163
  children: j(I, {
2158
2164
  fallback: null,
@@ -2161,10 +2167,10 @@ function Ht(e) {
2161
2167
  });
2162
2168
  };
2163
2169
  }
2164
- function Ut(e) {
2170
+ function Wt(e) {
2165
2171
  let [t, n] = W(() => /* @__PURE__ */ new Map()), r = U(null);
2166
2172
  r.current === null && (r.current = /* @__PURE__ */ new Map());
2167
- let { showModal: i, updateModal: a, destroyModal: o, hideModal: s } = zt({ disableAutoDestroy: !0 });
2173
+ let { showModal: i, updateModal: a, destroyModal: o, hideModal: s } = Bt({ disableAutoDestroy: !0 });
2168
2174
  return (c, l, u, d) => new Promise((f, p) => {
2169
2175
  let m = !1;
2170
2176
  u?.disableAutoDestroy !== void 0 && (m = u.disableAutoDestroy, delete (u = { ...u }).disableAutoDestroy);
@@ -2218,7 +2224,7 @@ function Ut(e) {
2218
2224
  }
2219
2225
  if (!l) return void p(`Invalid function for window '${c}'`);
2220
2226
  let v = r.current.get(c);
2221
- v || (v = Ht(l), r.current.set(c, v));
2227
+ v || (v = Ut(l), r.current.set(c, v));
2222
2228
  let y = i(v, g, { destroyOnClose: !m });
2223
2229
  n((e) => (e.set(c, {
2224
2230
  id: y.id,
@@ -2227,8 +2233,8 @@ function Ut(e) {
2227
2233
  }), e)), h && f(null);
2228
2234
  });
2229
2235
  }
2230
- var Wt = (e) => {
2231
- let { showModal: t } = zt();
2236
+ var Gt = (e) => {
2237
+ let { showModal: t } = Bt();
2232
2238
  return (n) => new Promise((r) => {
2233
2239
  let i = t(h, {
2234
2240
  ...e,
@@ -2241,12 +2247,12 @@ var Wt = (e) => {
2241
2247
  }
2242
2248
  });
2243
2249
  });
2244
- }, Gt = Ht(se("utils-mui:inputDialog", () => import("./C9y4YEtSjLoI4eoI.mjs")).load), Kt = (e) => {
2245
- let { showModal: t } = zt();
2250
+ }, Kt = Ut(se("utils-mui:inputDialog", () => import("./C-5x5uhaeRkhCSzY.mjs")).load), qt = (e) => {
2251
+ let { showModal: t } = Bt();
2246
2252
  return (n) => {
2247
2253
  let { defaultOption: r = n.options?.[0], cancelOption: i = "Cancel", ...a } = n;
2248
2254
  return new Promise((n, o) => {
2249
- let s = t(Gt, {
2255
+ let s = t(Kt, {
2250
2256
  ...e,
2251
2257
  defaultOption: r,
2252
2258
  cancelOption: i,
@@ -2272,7 +2278,7 @@ var Wt = (e) => {
2272
2278
  });
2273
2279
  });
2274
2280
  };
2275
- }, qt = z(R((e, n) => {
2281
+ }, Jt = z(R((e, n) => {
2276
2282
  let { commandKey: r, command: i, disabled: a, shortcut: o, children: s, ...c } = e, [l] = he(r ?? []), u = i ?? l, d = u?.getShortcut();
2277
2283
  return j(t, {
2278
2284
  ref: n,
@@ -2290,11 +2296,11 @@ var Wt = (e) => {
2290
2296
  children: s
2291
2297
  })
2292
2298
  });
2293
- })), Jt = Ce;
2294
- function Yt() {
2299
+ })), Yt = Ce;
2300
+ function Xt() {
2295
2301
  let e = U(null);
2296
2302
  return {
2297
- ripple: H(() => j(Jt, {
2303
+ ripple: H(() => j(Yt, {
2298
2304
  ref: e,
2299
2305
  center: !1
2300
2306
  }), []),
@@ -2303,8 +2309,8 @@ function Yt() {
2303
2309
  }, [])
2304
2310
  };
2305
2311
  }
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() {
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() {
2308
2314
  h();
2309
2315
  } }), [h]), [_] = he(n ?? [], g), v = r ?? _, y = B((e) => {
2310
2316
  e.button === 0 && e.preventDefault();
@@ -2313,9 +2319,9 @@ var Xt = j(J, {}), Zt = z(R((e, t) => {
2313
2319
  }, [v, d]), x = B((e) => {
2314
2320
  e.keyCode !== Y.Enter && e.keyCode !== Y.Space || v?.execute(d);
2315
2321
  }, [v, d]), S = c ?? (!v || v.disabled()), C = v?.getState(), w = H(() => {
2316
- if (a === null) return Xt;
2322
+ if (a === null) return Zt;
2317
2323
  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;
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;
2319
2325
  }, [
2320
2326
  v,
2321
2327
  i,
@@ -2326,7 +2332,7 @@ var Xt = j(J, {}), Zt = z(R((e, t) => {
2326
2332
  tabIndex: 0,
2327
2333
  ref: t,
2328
2334
  selected: !!C,
2329
- icon: l === q.Toolbar ? s ? Te(w, o ?? v?.getLabel(i)) : w : j(St, {
2335
+ icon: l === q.Toolbar ? s ? Te(w, o ?? v?.getLabel(i)) : w : j(Ct, {
2330
2336
  selected: C ?? !1,
2331
2337
  children: w
2332
2338
  }),
@@ -2336,15 +2342,15 @@ var Xt = j(J, {}), Zt = z(R((e, t) => {
2336
2342
  onMouseUp: b,
2337
2343
  onKeyDown: x
2338
2344
  }, E;
2339
- return E = l === q.Menuitem ? M(pt, {
2345
+ return E = l === q.Menuitem ? M(mt, {
2340
2346
  ...p,
2341
2347
  ...T,
2342
2348
  children: [o ?? v?.getLabel(i), m]
2343
- }) : j(lt, {
2349
+ }) : j(ut, {
2344
2350
  ...p,
2345
2351
  ...T,
2346
2352
  children: m
2347
- }), (o || v?.getLabel()) && (S && (E = j("div", { children: E })), E = j(qt, {
2353
+ }), (o || v?.getLabel()) && (S && (E = j("div", { children: E })), E = j(Jt, {
2348
2354
  commandKey: n,
2349
2355
  command: r,
2350
2356
  disabled: S,
@@ -2354,9 +2360,9 @@ var Xt = j(J, {}), Zt = z(R((e, t) => {
2354
2360
  children: E
2355
2361
  })), E;
2356
2362
  }));
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() {
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() {
2360
2366
  m();
2361
2367
  } }), [m]), g = he(n ?? [], h)[0], _ = () => g?.getState()?.toString() || "", [v, y] = W(""), b = U(_()), x = Z(() => {
2362
2368
  let e = v;
@@ -2377,9 +2383,9 @@ var Qt = j(J, {}), $t = z(R((e, t) => {
2377
2383
  y(_());
2378
2384
  }, [g?.getState()]);
2379
2385
  let w = H(() => {
2380
- if (i === null) return Qt;
2386
+ if (i === null) return $t;
2381
2387
  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;
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;
2383
2389
  }, [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
2390
  ...f,
2385
2391
  sx: {
@@ -2465,7 +2471,7 @@ var Qt = j(J, {}), $t = z(R((e, t) => {
2465
2471
  e.keyCode !== Y.Enter && e.keyCode !== Y.Tab || x();
2466
2472
  }
2467
2473
  }, k;
2468
- return k = s === q.Menuitem ? M(pt, {
2474
+ return k = s === q.Menuitem ? M(mt, {
2469
2475
  ...f,
2470
2476
  ...O,
2471
2477
  children: [
@@ -2473,17 +2479,17 @@ var Qt = j(J, {}), $t = z(R((e, t) => {
2473
2479
  D,
2474
2480
  p
2475
2481
  ]
2476
- }) : j(lt, {
2482
+ }) : j(ut, {
2477
2483
  ...f,
2478
2484
  ...O,
2479
2485
  children: p
2480
- }), g?.getLabel() && ((g.disabled() || c) && (k = j("div", { children: k })), k = j(qt, {
2486
+ }), g?.getLabel() && ((g.disabled() || c) && (k = j("div", { children: k })), k = j(Jt, {
2481
2487
  commandKey: n,
2482
2488
  placement: s === q.Toolbar ? "bottom-start" : "right-start",
2483
2489
  children: k
2484
2490
  })), 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() {
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() {
2487
2493
  g();
2488
2494
  } }), [g]), [v] = he(i ?? [], _), { label: y, icon: b } = H(() => {
2489
2495
  let e = null;
@@ -2512,22 +2518,22 @@ var Qt = j(J, {}), $t = z(R((e, t) => {
2512
2518
  children: e
2513
2519
  }));
2514
2520
  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, {
2521
+ return v ? (x.propsQuickButton = {}, x.propsQuickButton.createTooltip = ({ children: e, placement: t }, n) => j(Jt, {
2516
2522
  commandKey: i,
2517
2523
  placement: t ?? r === q.Toolbar ? "bottom-start" : "right-start",
2518
2524
  disabled: n,
2519
2525
  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, {
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, {
2521
2527
  ...m,
2522
2528
  ...x,
2523
2529
  ref: n
2524
- }) : j(vt, {
2530
+ }) : j(yt, {
2525
2531
  ...m,
2526
2532
  ...x,
2527
2533
  ref: n
2528
2534
  });
2529
2535
  }));
2530
- function tn(e, t = {}) {
2536
+ function nn(e, t = {}) {
2531
2537
  let { variant: n, dividerOrientation: r = "vertical", groupKey: i, commandState: a, propsCommandButton: o, propsCommandPopup: s, registry: c } = t, l = { ...o };
2532
2538
  n !== void 0 && (l.variant = n);
2533
2539
  let u = { ...s };
@@ -2542,10 +2548,10 @@ function tn(e, t = {}) {
2542
2548
  icon: n?.getIcon?.(i),
2543
2549
  showLabel: n?.showLabel
2544
2550
  };
2545
- return (n?.render ? n.render(r, i) : j(Zt, { ...r })) ?? null;
2551
+ return (n?.render ? n.render(r, i) : j(Qt, { ...r })) ?? null;
2546
2552
  }, f = (e) => {
2547
2553
  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, {
2554
+ if (!t) return ((e) => Array.isArray(e.members) ? e.render ? e.render({ ...u }, void 0) ?? null : j(rn, {
2549
2555
  ...u,
2550
2556
  members: e.members,
2551
2557
  icon: e.getIcon?.(),
@@ -2554,7 +2560,7 @@ function tn(e, t = {}) {
2554
2560
  }) : (e.render ? e.render({ ...u }, i) : null) ?? null)(e);
2555
2561
  let r = c?.get(t) ?? null;
2556
2562
  return r ? ((e, t, n) => {
2557
- if (Array.isArray(e.members)) return e.render ? e.render({ ...u }, t) ?? null : j(nn, {
2563
+ if (Array.isArray(e.members)) return e.render ? e.render({ ...u }, t) ?? null : j(rn, {
2558
2564
  ...u,
2559
2565
  groupKey: t,
2560
2566
  icon: n?.getIcon?.(t),
@@ -2580,8 +2586,8 @@ function tn(e, t = {}) {
2580
2586
  }
2581
2587
  return p;
2582
2588
  }
2583
- en.displayName = "CommandPopupButton";
2584
- var nn = z(R((e, t) => {
2589
+ tn.displayName = "CommandPopupButton";
2590
+ var rn = z(R((e, t) => {
2585
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, [
2586
2592
  r,
2587
2593
  n,
@@ -2602,7 +2608,7 @@ var nn = z(R((e, t) => {
2602
2608
  }, [T]), D = B((e) => {
2603
2609
  let t = {};
2604
2610
  d !== void 0 && (t.disabled = d);
2605
- let n = tn(_, {
2611
+ let n = nn(_, {
2606
2612
  variant: q.Menuitem,
2607
2613
  dividerOrientation: "horizontal",
2608
2614
  groupKey: v,
@@ -2611,7 +2617,7 @@ var nn = z(R((e, t) => {
2611
2617
  propsCommandPopup: t,
2612
2618
  registry: m
2613
2619
  });
2614
- return $e({
2620
+ return et({
2615
2621
  ...e,
2616
2622
  children: n
2617
2623
  });
@@ -2622,7 +2628,7 @@ var nn = z(R((e, t) => {
2622
2628
  u,
2623
2629
  d
2624
2630
  ]);
2625
- return _ ? j(en, {
2631
+ return _ ? j(tn, {
2626
2632
  ref: t,
2627
2633
  quickCommand: y,
2628
2634
  icon: b,
@@ -2635,12 +2641,12 @@ var nn = z(R((e, t) => {
2635
2641
  ...f
2636
2642
  }) : null;
2637
2643
  }));
2638
- nn.displayName = "CommandGroup";
2639
- var rn = j(J, { iconKey: "Check" }), an = (e) => {
2644
+ rn.displayName = "CommandGroup";
2645
+ var an = j(J, { iconKey: "Check" }), on = (e) => {
2640
2646
  let { commandKey: t, label: n, groupKey: r, icon: i, sx: a, ...o } = e, [s] = he(t ?? []), c = H(() => {
2641
2647
  if (i !== void 0) return i;
2642
2648
  let e = s?.getIcon(r);
2643
- return e ? (typeof e == "string" && (e = j(J, { iconKey: e })), e) : rn;
2649
+ return e ? (typeof e == "string" && (e = j(J, { iconKey: e })), e) : an;
2644
2650
  }, [
2645
2651
  i,
2646
2652
  r,
@@ -2668,7 +2674,7 @@ var rn = j(J, { iconKey: "Check" }), an = (e) => {
2668
2674
  children: n ?? s?.getLabel(r)
2669
2675
  })]
2670
2676
  });
2671
- }, on = z(R((e, t) => {
2677
+ }, sn = z(R((e, t) => {
2672
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, [
2673
2679
  o,
2674
2680
  a,
@@ -2702,7 +2708,7 @@ var rn = j(J, { iconKey: "Check" }), an = (e) => {
2702
2708
  ...r
2703
2709
  }
2704
2710
  };
2705
- return c ? c(e) : p ? j(wt, { children: tn(p, {
2711
+ return c ? c(e) : p ? j(Tt, { children: nn(p, {
2706
2712
  dividerOrientation: "vertical",
2707
2713
  groupKey: a,
2708
2714
  propsCommandButton: e.propsCommandButton,
@@ -2767,8 +2773,8 @@ var rn = j(J, { iconKey: "Check" }), an = (e) => {
2767
2773
  })
2768
2774
  });
2769
2775
  }));
2770
- on.displayName = "CommandToolbar";
2771
- var sn = z(R((e, t) => {
2776
+ sn.displayName = "CommandToolbar";
2777
+ var cn = z(R((e, t) => {
2772
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, [
2773
2779
  r,
2774
2780
  n,
@@ -2792,7 +2798,7 @@ var sn = z(R((e, t) => {
2792
2798
  quickCommand: p ?? d[0],
2793
2799
  icon: void 0
2794
2800
  };
2795
- return j(nn, {
2801
+ return j(rn, {
2796
2802
  ref: t,
2797
2803
  groupKey: n,
2798
2804
  members: r,
@@ -2801,5 +2807,5 @@ var sn = z(R((e, t) => {
2801
2807
  ...h
2802
2808
  });
2803
2809
  }));
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 };
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 };