@sheetxl/utils-mui 0.8.0-beta.1 → 0.8.0-beta.3

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.1
3
+ * @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.8.0-beta.3
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 { C as e, S as t, T as n, _ as r, a as i, b as a, c as o, d as s, f as c, g as l, h as u, i as d, l as f, m as p, n as m, o as h, p as g, r as _, s as v, t as y, u as b, v as x, w as S, x as C, y as w } from "./DBwwZFuNSwPGoi8L.mjs";
9
- import { Box as T, Divider as E, IconButton as D, Input as ee, LinearProgress as O, ListItemButton as te, ListItemIcon as k, Paper as A, Toolbar as j, Typography as M, useTheme as ne } from "@mui/material";
10
- import { Fragment as N, jsx as P, jsxs as F } from "react/jsx-runtime";
11
- import I, { Children as re, Fragment as ie, Suspense as L, cloneElement as ae, createContext as oe, forwardRef as R, isValidElement as se, lazy as z, memo as B, useCallback as V, useContext as ce, useEffect as H, useLayoutEffect as U, useMemo as W, useReducer as le, useRef as G, useState as K } from "react";
12
- import { alpha as q } from "@mui/system";
13
- import { CommonUtils as ue, ErrorUtils as de } from "@sheetxl/utils";
14
- import { CommandButtonType as J, CommandFocusProvider as fe, DynamicIcon as Y, FloatPopper as pe, FloatProvider as me, FloatStackProvider as he, KeyCodes as X, ScrollbarOrientation as ge, defaultCreateScrollEdgeButton as _e, useCallbackRef as Z, useCommandButtonRegistry as ve, useCommands as ye, useFloat as be, useFloatStack as xe, useImperativeElement as Se, useTranslator as Ce } from "@sheetxl/utils-react";
15
- import we from "@mui/material/ButtonBase/TouchRipple";
16
- var Te = {
8
+ import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _, v, x as y, y as b } from "./Dwdb-fh8Vb4s-W7F.mjs";
9
+ import { Box as x, Button as S, Divider as C, IconButton as w, Input as T, LinearProgress as E, ListItemButton as D, ListItemIcon as O, Paper as k, Toolbar as ee, Typography as A, useTheme as j } from "@mui/material";
10
+ import { Fragment as M, jsx as N, jsxs as P } from "react/jsx-runtime";
11
+ import F, { Children as I, Fragment as te, Suspense as ne, cloneElement as re, createContext as ie, forwardRef as L, isValidElement as ae, memo as R, useCallback as z, useContext as oe, useEffect as B, useLayoutEffect as V, useMemo as H, useReducer as se, useRef as U, useState as W } from "react";
12
+ import { alpha as G } from "@mui/system";
13
+ import { CommonUtils as K, ErrorUtils as q, defineLazyModule as ce } from "@sheetxl/utils";
14
+ import { CommandButtonType as J, CommandFocusProvider as le, DynamicIcon as Y, FloatPopper as ue, FloatProvider as de, FloatStackProvider as fe, KeyCodes as X, ScrollbarOrientation as pe, defaultCreateScrollEdgeButton as me, lazyComponent as he, useCallbackRef as Z, useCommandButtonRegistry as ge, useCommands as _e, useFloat as ve, useFloatStack as ye, useImperativeElement as be, useLazyRetry as xe, useTranslator as Se } from "@sheetxl/utils-react";
15
+ import Ce from "@mui/material/ButtonBase/TouchRipple";
16
+ var we = {
17
17
  whiteSpace: "nowrap",
18
18
  textTransform: "none",
19
19
  lineHeight: 1,
@@ -21,13 +21,13 @@ var Te = {
21
21
  paddingLeft: (e) => e.spacing(.25),
22
22
  paddingRight: (e) => e.spacing(.25)
23
23
  };
24
- function Ee(e, t) {
25
- let n = t != null && !1 !== t && t !== "" ? P(M, {
24
+ function Te(e, t) {
25
+ let n = t != null && !1 !== t && t !== "" ? N(A, {
26
26
  component: "div",
27
- sx: Te,
27
+ sx: we,
28
28
  children: t
29
29
  }) : null;
30
- return e && n ? F(T, {
30
+ return e && n ? P(x, {
31
31
  sx: {
32
32
  display: "flex",
33
33
  alignItems: "center"
@@ -35,28 +35,28 @@ function Ee(e, t) {
35
35
  children: [e, n]
36
36
  }) : e ?? n ?? void 0;
37
37
  }
38
- var De = ({ isHorizontal: e, isBefore: t }) => {
39
- let n = Ce();
40
- return P(N, t ? { children: n(e ? "scroll.edgeLeft" : "scroll.edgeTop") } : { children: n(e ? "scroll.edgeRight" : "scroll.edgeBottom") });
41
- }, Oe = (e) => {
42
- let t = _e({
38
+ var Ee = ({ isHorizontal: e, isBefore: t }) => {
39
+ let n = Se();
40
+ return N(M, t ? { children: n(e ? "scroll.edgeLeft" : "scroll.edgeTop") } : { children: n(e ? "scroll.edgeRight" : "scroll.edgeBottom") });
41
+ }, De = (e) => {
42
+ let t = me({
43
43
  style: { cursor: "pointer" },
44
44
  ...e
45
45
  });
46
- return e.isBefore !== void 0 && !e.disabled && (t = P(v, {
47
- title: P(De, {
48
- isHorizontal: e.orientation === ge.Horizontal,
46
+ return e.isBefore !== void 0 && !e.disabled && (t = N(h, {
47
+ title: N(Ee, {
48
+ isHorizontal: e.orientation === pe.Horizontal,
49
49
  isBefore: e.isBefore
50
50
  }),
51
51
  enterDelay: 800,
52
52
  enterNextDelay: 1600,
53
- children: e.disabled ? P("div", {
53
+ children: e.disabled ? N("div", {
54
54
  style: { display: "flex" },
55
55
  children: t
56
56
  }) : t
57
57
  })), t;
58
- }, ke = (e, t, n, r) => {
59
- let { style: i, ...a } = e, o = P(D, {
58
+ }, Oe = (e, t, n, r) => {
59
+ let { style: i, ...a } = e, o = N(w, {
60
60
  component: "div",
61
61
  ...a,
62
62
  style: {
@@ -69,30 +69,30 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
69
69
  size: "small",
70
70
  children: t
71
71
  });
72
- return P(v, {
72
+ return N(h, {
73
73
  title: e.disabled ? n : r,
74
74
  enterDelay: 800,
75
75
  enterNextDelay: 1600,
76
- children: e.disabled ? P("div", {
76
+ children: e.disabled ? N("div", {
77
77
  style: { display: "flex" },
78
78
  children: o
79
79
  }) : o
80
80
  });
81
- }, Ae = (e) => ke(e, ge.Horizontal ? P(Y, {
81
+ }, ke = (e) => Oe(e, pe.Horizontal ? N(Y, {
82
82
  iconKey: "ArrowLeft",
83
83
  size: "small"
84
- }) : P(Y, {
84
+ }) : N(Y, {
85
85
  iconKey: "ArrowUpward",
86
86
  size: "small"
87
- }), "Scroll " + (e.orientation === ge.Horizontal ? "Left" : "Up"), `Scroll ${e.orientation === ge.Horizontal ? "left" : "up"}, 'Ctrl+Click' to scroll to the beginning`), je = (e) => ke(e, ge.Horizontal ? P(Y, {
87
+ }), "Scroll " + (e.orientation === pe.Horizontal ? "Left" : "Up"), `Scroll ${e.orientation === pe.Horizontal ? "left" : "up"}, 'Ctrl+Click' to scroll to the beginning`), Ae = (e) => Oe(e, pe.Horizontal ? N(Y, {
88
88
  iconKey: "ArrowRight",
89
89
  size: "small"
90
- }) : P(Y, {
90
+ }) : N(Y, {
91
91
  iconKey: "ArrowDownward",
92
92
  size: "small"
93
- }), "Scroll " + (e.orientation === ge.Horizontal ? "Right" : "Down"), `Scroll ${e.orientation === ge.Horizontal ? "right" : "down"}, 'Ctrl+Click' to scroll to the end`), Me = B(R((e, t) => {
93
+ }), "Scroll " + (e.orientation === pe.Horizontal ? "Right" : "Down"), `Scroll ${e.orientation === pe.Horizontal ? "right" : "down"}, 'Ctrl+Click' to scroll to the end`), je = R(L((e, t) => {
94
94
  let { orientation: n = "vertical", sx: r, ...i } = e, a = n === "vertical";
95
- return P(E, {
95
+ return N(C, {
96
96
  ref: t,
97
97
  sx: {
98
98
  marginLeft: a ? "2px" : void 0,
@@ -108,9 +108,9 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
108
108
  flexItem: !0,
109
109
  ...i
110
110
  });
111
- })), Ne = "_traverse-ellipsis_14l1h_1", Pe = B((e) => {
111
+ })), Me = "_traverse-ellipsis_14l1h_1", Ne = R((e) => {
112
112
  let { sx: t, speed: n = 2, size: r = 70, ...i } = e;
113
- return P(T, {
113
+ return N(x, {
114
114
  sx: {
115
115
  width: `${r}px`,
116
116
  height: `${r}px`,
@@ -122,19 +122,19 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
122
122
  ...t
123
123
  },
124
124
  ...i,
125
- children: F("svg", {
125
+ children: P("svg", {
126
126
  x: "0px",
127
127
  y: "0px",
128
128
  viewBox: "0 0 100 100",
129
129
  children: [
130
- P("circle", {
130
+ N("circle", {
131
131
  className: "primary",
132
132
  strokeWidth: "4",
133
133
  cx: "50",
134
134
  cy: "50",
135
135
  r: "48"
136
136
  }),
137
- P("line", {
137
+ N("line", {
138
138
  className: "primary",
139
139
  strokeLinecap: "round",
140
140
  strokeWidth: "4",
@@ -142,7 +142,7 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
142
142
  y1: "50",
143
143
  x2: "85",
144
144
  y2: "50.5",
145
- children: P("animateTransform", {
145
+ children: N("animateTransform", {
146
146
  attributeName: "transform",
147
147
  dur: `${n}s`,
148
148
  type: "rotate",
@@ -151,7 +151,7 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
151
151
  repeatCount: "indefinite"
152
152
  })
153
153
  }),
154
- P("line", {
154
+ N("line", {
155
155
  className: "primary",
156
156
  strokeLinecap: "round",
157
157
  strokeWidth: "4",
@@ -159,7 +159,7 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
159
159
  y1: "50",
160
160
  x2: "49.5",
161
161
  y2: "74",
162
- children: P("animateTransform", {
162
+ children: N("animateTransform", {
163
163
  attributeName: "transform",
164
164
  dur: 7.5 * n + "s",
165
165
  type: "rotate",
@@ -171,9 +171,9 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
171
171
  ]
172
172
  })
173
173
  });
174
- }), Fe = B((e) => {
174
+ }), Pe = R((e) => {
175
175
  let { sx: t, speed: n = 1.5, size: r = 70, ...i } = e;
176
- return P(T, {
176
+ return N(x, {
177
177
  sx: {
178
178
  width: `${r}px`,
179
179
  height: `${r}px`,
@@ -187,20 +187,20 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
187
187
  ...t
188
188
  },
189
189
  ...i,
190
- children: F("svg", {
190
+ children: P("svg", {
191
191
  x: "0px",
192
192
  y: "0px",
193
193
  viewBox: "0 0 100 100",
194
- children: [P("circle", {
194
+ children: [N("circle", {
195
195
  className: "secondary",
196
196
  strokeWidth: "4",
197
197
  cx: "50",
198
198
  cy: "50",
199
199
  r: "21"
200
- }), P("path", {
200
+ }), N("path", {
201
201
  className: "primary",
202
202
  d: "M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50",
203
- children: P("animateTransform", {
203
+ children: N("animateTransform", {
204
204
  attributeName: "transform",
205
205
  type: "rotate",
206
206
  dur: 1 * n + "s",
@@ -211,9 +211,9 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
211
211
  })]
212
212
  })
213
213
  });
214
- }), Ie = B((e) => {
214
+ }), Fe = R((e) => {
215
215
  let { sx: t, speed: n = 1, size: r = 70, ...i } = e;
216
- return P(T, {
216
+ return N(x, {
217
217
  sx: {
218
218
  width: `${r}px`,
219
219
  height: `${r}px`,
@@ -221,17 +221,17 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
221
221
  ...t
222
222
  },
223
223
  ...i,
224
- children: F("svg", {
224
+ children: P("svg", {
225
225
  x: "0px",
226
226
  y: "0px",
227
227
  viewBox: "0 0 100 100",
228
228
  children: [
229
- P("circle", {
229
+ N("circle", {
230
230
  className: "primary",
231
231
  cx: "6",
232
232
  cy: "50",
233
233
  r: "6",
234
- children: P("animate", {
234
+ children: N("animate", {
235
235
  attributeName: "opacity",
236
236
  dur: `${n}s`,
237
237
  values: "0;1;0",
@@ -239,12 +239,12 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
239
239
  begin: "0.1"
240
240
  })
241
241
  }),
242
- P("circle", {
242
+ N("circle", {
243
243
  className: "primary",
244
244
  cx: "26",
245
245
  cy: "50",
246
246
  r: "6",
247
- children: P("animate", {
247
+ children: N("animate", {
248
248
  attributeName: "opacity",
249
249
  dur: `${n}s`,
250
250
  values: "0;1;0",
@@ -252,12 +252,12 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
252
252
  begin: "0.2"
253
253
  })
254
254
  }),
255
- P("circle", {
255
+ N("circle", {
256
256
  className: "primary",
257
257
  cx: "46",
258
258
  cy: "50",
259
259
  r: "6",
260
- children: P("animate", {
260
+ children: N("animate", {
261
261
  attributeName: "opacity",
262
262
  dur: `${n}s`,
263
263
  values: "0;1;0",
@@ -268,9 +268,9 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
268
268
  ]
269
269
  })
270
270
  });
271
- }), Le = B((e) => {
271
+ }), Ie = R((e) => {
272
272
  let { sx: t, speed: n = 1, size: r = 70, ...i } = e;
273
- return P(T, {
273
+ return N(x, {
274
274
  sx: {
275
275
  width: `${r}px`,
276
276
  height: `${r}px`,
@@ -282,17 +282,17 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
282
282
  ...t
283
283
  },
284
284
  ...i,
285
- children: F("svg", {
285
+ children: P("svg", {
286
286
  x: "0px",
287
287
  y: "0px",
288
288
  viewBox: "0 0 100 100",
289
289
  children: [
290
- P("circle", {
290
+ N("circle", {
291
291
  className: "primary",
292
292
  cx: "6",
293
293
  cy: "50",
294
294
  r: "6",
295
- children: P("animateTransform", {
295
+ children: N("animateTransform", {
296
296
  attributeName: "transform",
297
297
  dur: `${n}s`,
298
298
  type: "translate",
@@ -301,12 +301,12 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
301
301
  begin: "0.1"
302
302
  })
303
303
  }),
304
- P("circle", {
304
+ N("circle", {
305
305
  className: "primary",
306
306
  cx: "30",
307
307
  cy: "50",
308
308
  r: "6",
309
- children: P("animateTransform", {
309
+ children: N("animateTransform", {
310
310
  attributeName: "transform",
311
311
  dur: `${n}s`,
312
312
  type: "translate",
@@ -315,12 +315,12 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
315
315
  begin: "0.2"
316
316
  })
317
317
  }),
318
- P("circle", {
318
+ N("circle", {
319
319
  className: "primary",
320
320
  cx: "54",
321
321
  cy: "50",
322
322
  r: "6",
323
- children: P("animateTransform", {
323
+ children: N("animateTransform", {
324
324
  attributeName: "transform",
325
325
  dur: `${n}s`,
326
326
  type: "translate",
@@ -332,9 +332,9 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
332
332
  ]
333
333
  })
334
334
  });
335
- }), Re = B((e) => {
335
+ }), Le = R((e) => {
336
336
  let { sx: t, speed: n = 2, size: r = 70, ...i } = e;
337
- return P(T, {
337
+ return N(x, {
338
338
  sx: {
339
339
  width: `${r}px`,
340
340
  height: `${r}px`,
@@ -352,23 +352,23 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
352
352
  ...t
353
353
  },
354
354
  ...i,
355
- children: F("svg", {
355
+ children: P("svg", {
356
356
  x: "0px",
357
357
  y: "0px",
358
358
  viewBox: "0 0 100 100",
359
- children: [P("circle", {
359
+ children: [N("circle", {
360
360
  className: "primary",
361
361
  strokeWidth: "4",
362
362
  cx: "50",
363
363
  cy: "50",
364
364
  r: "44"
365
- }), P("circle", {
365
+ }), N("circle", {
366
366
  className: "secondary",
367
367
  strokeWidth: "3",
368
368
  cx: "8",
369
369
  cy: "54",
370
370
  r: "6",
371
- children: P("animateTransform", {
371
+ children: N("animateTransform", {
372
372
  attributeName: "transform",
373
373
  dur: `${n}s`,
374
374
  type: "rotate",
@@ -379,31 +379,49 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
379
379
  })]
380
380
  })
381
381
  });
382
- }), ze = B((e) => {
383
- let { sx: t, speed: r = 1, size: i = 13, width: a = 64, height: o = 17, ...s } = e;
384
- return F(T, {
382
+ }), Re = R((e) => {
383
+ let { sx: t, speed: n = 1, size: r = 13, width: i = 64, height: a = 17, ...o } = e;
384
+ return P(x, {
385
385
  sx: {
386
- width: `${a}px`,
387
- height: `${o}px`,
386
+ width: `${i}px`,
387
+ height: `${a}px`,
388
388
  "& .primary": {
389
389
  backgroundColor: (e) => e.palette.grey[600],
390
- top: `${(o - i) / 2}px`,
391
- width: () => `${i}px`,
392
- height: () => `${i}px`
390
+ top: `${(a - r) / 2}px`,
391
+ width: () => `${r}px`,
392
+ height: () => `${r}px`
393
393
  },
394
394
  ...t
395
395
  },
396
- className: n(Ne, "animated-icon"),
397
- ...s,
396
+ className: y(Me, "animated-icon"),
397
+ ...o,
398
398
  children: [
399
- P("div", { className: "primary" }),
400
- P("div", { className: "primary" }),
401
- P("div", { className: "primary" }),
402
- P("div", { className: "primary" })
399
+ N("div", { className: "primary" }),
400
+ N("div", { className: "primary" }),
401
+ N("div", { className: "primary" }),
402
+ N("div", { className: "primary" })
403
403
  ]
404
404
  });
405
- }), Be = P(Fe, {}), Ve = B(R((t, n) => {
406
- let { sx: r, style: i, onMount: a, onUnmount: o, transitionDelay: s = "1200ms", panel: c = !1, transparentBackground: l = !0, icon: u = Be, label: d, progress: f = null, ...p } = t, m = W(() => typeof d == "string" ? P(M, {
405
+ }), ze = N(Pe, {}), Be = (e, t) => {
406
+ if (!e) return null;
407
+ if (t !== void 0) {
408
+ let n = e.querySelector("[data-sxl-loading-label]");
409
+ n && (n.textContent = t);
410
+ }
411
+ if (e.classList.contains("animating")) return null;
412
+ e.classList.remove("animating-idle"), e.offsetHeight, e.classList.add("animating");
413
+ let n = typeof e.getAnimations == "function" ? e.getAnimations() : null;
414
+ return n?.length === 0 ? null : new Promise((e) => {
415
+ let t = setTimeout(e, 250), r = () => {
416
+ clearTimeout(t), e();
417
+ };
418
+ n ? Promise.all(n.map((e) => e.ready)).then(r, r) : requestAnimationFrame(() => requestAnimationFrame(r));
419
+ });
420
+ }, Ve = (e) => {
421
+ e && e.classList.contains("animating") && (e.classList.add("animating-idle"), e.classList.remove("animating"));
422
+ }, He = R(L((e, t) => {
423
+ let { sx: r, style: i, onMount: a, onUnmount: o, transitionDelay: s = "1200ms", panel: c = !1, autoStart: l = !0, transparentBackground: u = !0, icon: d = ze, label: f, progress: p = null, ...m } = e, h = H(() => typeof f == "string" || !l && f == null ? N(A, {
424
+ "data-sxl-loading-label": "",
407
425
  variant: "caption",
408
426
  component: "div",
409
427
  sx: {
@@ -411,17 +429,17 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
411
429
  lineHeight: 1.43,
412
430
  letterSpacing: "0.01071em"
413
431
  },
414
- children: d
415
- }) : d, [d]), h = W(() => {
416
- if (typeof f != "number") return u;
417
- let e = Math.max(0, Math.min(100, Math.round(100 * f)));
418
- return P(T, {
432
+ children: typeof f == "string" ? f : ""
433
+ }) : f, [f, l]), g = H(() => {
434
+ if (typeof p != "number") return d;
435
+ let e = Math.max(0, Math.min(100, Math.round(100 * p)));
436
+ return N(x, {
419
437
  sx: {
420
438
  display: "flex",
421
439
  alignItems: "center",
422
440
  width: "180px"
423
441
  },
424
- children: P(O, {
442
+ children: N(E, {
425
443
  variant: "determinate",
426
444
  value: e,
427
445
  color: "inherit",
@@ -442,17 +460,17 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
442
460
  }
443
461
  })
444
462
  });
445
- }, [f, u]), g = G(null), _ = W(() => {
446
- let e = F(T, {
463
+ }, [p, d]), _ = U(null), v = H(() => {
464
+ let e = P(x, {
447
465
  sx: {
448
466
  display: "flex",
449
467
  flexDirection: "column",
450
468
  alignItems: "center",
451
469
  rowGap: "8px"
452
470
  },
453
- children: [m, h]
471
+ children: [h, g]
454
472
  });
455
- return !0 === c && (e = P(A, {
473
+ return !0 === c && (e = N(k, {
456
474
  elevation: 0,
457
475
  sx: {
458
476
  display: "flex",
@@ -471,7 +489,7 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
471
489
  borderRadius: (e) => `${e.shape.borderRadius}px`,
472
490
  boxShadow: (e) => e.shadows[2],
473
491
  "& .primary": {
474
- background: (e) => `${q(e.palette.info.contrastText, .9)} !important`,
492
+ background: (e) => `${G(e.palette.info.contrastText, .9)} !important`,
475
493
  boxShadow: (e) => `0 0 0 1px ${e.palette.mode === "dark" ? e.palette.text.secondary : e.palette.divider}`,
476
494
  boxSizing: "content-box",
477
495
  border: "solid transparent"
@@ -479,9 +497,9 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
479
497
  zIndex: 1
480
498
  },
481
499
  children: e
482
- })), P(T, {
483
- ...p,
484
- ref: S([g, n]),
500
+ })), N(x, {
501
+ ...m,
502
+ ref: n([_, t]),
485
503
  className: "animatable",
486
504
  sx: {
487
505
  cursor: "wait",
@@ -491,7 +509,8 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
491
509
  display: "flex",
492
510
  flexDirection: "column",
493
511
  willChange: "opacity",
494
- opacity: l ? .001 : 1,
512
+ "&:not(.animating) *": { animationPlayState: "paused" },
513
+ opacity: u ? .001 : 1,
495
514
  transitionProperty: "opacity",
496
515
  transitionDelay: s,
497
516
  transitionDuration: "320ms",
@@ -504,6 +523,7 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
504
523
  minHeight: 0,
505
524
  zIndex: 99999,
506
525
  "&.animating": { opacity: 1 },
526
+ "&.animating-idle": { transition: "none" },
507
527
  "&.animating-exit": {
508
528
  opacity: 0,
509
529
  transition: "opacity 210ms"
@@ -511,7 +531,7 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
511
531
  ...r,
512
532
  ...i
513
533
  },
514
- children: F(T, {
534
+ children: P(x, {
515
535
  className: "center",
516
536
  sx: {
517
537
  display: "flex",
@@ -523,11 +543,11 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
523
543
  boxSizing: "border-box",
524
544
  position: "relative"
525
545
  },
526
- children: [P(T, {
546
+ children: [N(x, {
527
547
  className: "backdrop",
528
548
  sx: {
529
- opacity: (e) => l ? 1.5 * e.palette.action.disabledOpacity : void 0,
530
- background: (e) => l ? void 0 : e.palette.background.paper,
549
+ opacity: (e) => u ? 1.5 * e.palette.action.disabledOpacity : void 0,
550
+ background: (e) => u ? void 0 : e.palette.background.paper,
531
551
  backdropFilter: "blur(4px)",
532
552
  borderRadius: (e) => `${e.shape.borderRadius}px`,
533
553
  zIndex: -1,
@@ -542,52 +562,40 @@ var De = ({ isHorizontal: e, isBefore: t }) => {
542
562
  }, [
543
563
  r,
544
564
  c,
545
- m,
546
- h
547
- ]), v = G(!1), y = G(!1);
548
- return e(() => {
549
- if (g.current && !v.current && !y.current) {
550
- if (y.current = !0, g.current.classList.contains("animatable") && !g.current.classList.contains("animating")) {
551
- let e = !1, t = () => {
552
- y.current && (v.current = !0, y.current = !1, e = !0, a?.());
553
- };
554
- g.current && g.current.addEventListener("transitionrun", t, {
555
- once: !0,
556
- capture: !0,
557
- passive: !0
558
- }), y.current && g.current && (window.getComputedStyle(g.current, null).opacity, g.current.classList.add("animating")), setTimeout(() => {
559
- !e && y.current && g.current && (g.current?.removeEventListener("transitionrun", t), t());
560
- }, 100);
561
- } else v.current = !0, y.current = !1, a?.();
562
- return () => {};
563
- }
564
- }, [g.current]), H(() => () => {
565
- v.current && (g.current?.classList.remove("animating"), v.current = !1, y.current = !1, o?.());
566
- }, []), _;
565
+ h,
566
+ g
567
+ ]), y = U(!1);
568
+ return b(() => {
569
+ if (!1 === l) return;
570
+ let e = _.current;
571
+ e && !y.current && (y.current = !0, e.classList.contains("animatable") && !e.classList.contains("animating") && (e.offsetHeight, e.classList.add("animating")), a?.());
572
+ }, [_.current, l]), B(() => () => {
573
+ y.current && (_.current?.classList.remove("animating"), y.current = !1, o?.());
574
+ }, []), v;
567
575
  }));
568
- Ve.displayName = "AnimatedLoadingPanel";
569
- var He = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue = /^\s*at\s+(?:(async|new|await)\s+)?(.+?):(\d+):(\d+)\s*$/, We = (e) => {
576
+ He.displayName = "AnimatedLoadingPanel";
577
+ 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) => {
570
578
  if (!e) return "";
571
579
  try {
572
580
  e = new URL(e).pathname;
573
581
  } catch {}
574
582
  return e = (e = e.replace(/^\/+/, "")).replace(/^@?fs[\\/]/, "");
575
- }, Ge = B(({ error: e, maxLines: t = 2 ** 53 - 1, hideLineNumbers: n = !1 }) => {
576
- let r = Ce(), [i, a] = K(null);
583
+ }, Ke = R(({ error: e, maxLines: t = 2 ** 53 - 1, hideLineNumbers: n = !1 }) => {
584
+ let r = Se(), [i, a] = W(null);
577
585
  if (!e?.stack) return null;
578
- let o = de.collectErrorChain(e).reverse(), s = [];
586
+ let o = q.collectErrorChain(e).reverse(), s = [];
579
587
  o.forEach(({ error: e }, t) => {
580
588
  let n = (e.stack || "").split("\n").filter(Boolean).map((e) => {
581
- let t = e.match(He);
589
+ let t = e.match(Ue);
582
590
  if (t) {
583
591
  let [, e = "", n, r, i, a] = t;
584
592
  return {
585
593
  line: `at ${e ? e + " " : ""}${n}`,
586
- location: `${We(r).split(/[\\/]/).pop()}:${i}:${a}`
594
+ location: `${Ge(r).split(/[\\/]/).pop()}:${i}:${a}`
587
595
  };
588
596
  }
589
- if (t = e.match(Ue), t) {
590
- let [, e = "", n, r, i] = t, a = We(n), o = `${a.split(/[\\/]/).pop()}:${r}:${i}`;
597
+ if (t = e.match(We), t) {
598
+ let [, e = "", n, r, i] = t, a = Ge(n), o = `${a.split(/[\\/]/).pop()}:${r}:${i}`;
591
599
  return {
592
600
  line: `at ${e ? e + " " : ""}${o}`,
593
601
  location: a === o ? void 0 : `${a}:${r}:${i}`
@@ -601,12 +609,12 @@ var He = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue
601
609
  }), s.push(...n.slice(1)));
602
610
  });
603
611
  let c = t ? s.slice(0, t) : s, l = t && s.length > t;
604
- return F(T, {
612
+ return P(x, {
605
613
  sx: {
606
614
  width: "100%",
607
615
  mt: 1
608
616
  },
609
- children: [F(T, {
617
+ children: [P(x, {
610
618
  sx: {
611
619
  display: "flex",
612
620
  alignItems: "center",
@@ -616,7 +624,7 @@ var He = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue
616
624
  py: .5
617
625
  },
618
626
  children: [
619
- P(M, {
627
+ N(A, {
620
628
  variant: "caption",
621
629
  component: "div",
622
630
  sx: {
@@ -625,8 +633,8 @@ var He = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue
625
633
  },
626
634
  children: o.length > 1 ? r("stackTrace.headingFrames", { count: o.length }) : r("stackTrace.heading")
627
635
  }),
628
- P(T, { sx: { flex: 1 } }),
629
- i && P(M, {
636
+ N(x, { sx: { flex: 1 } }),
637
+ i && N(A, {
630
638
  variant: "caption",
631
639
  component: "div",
632
640
  sx: {
@@ -635,7 +643,7 @@ var He = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue
635
643
  },
636
644
  children: i
637
645
  }),
638
- P(D, {
646
+ N(w, {
639
647
  size: "small",
640
648
  onClick: async () => {
641
649
  try {
@@ -656,12 +664,12 @@ var He = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue
656
664
  "&:hover": { opacity: 1 }
657
665
  },
658
666
  title: r("stackTrace.copy"),
659
- children: P(Y, {
667
+ children: N(Y, {
660
668
  iconKey: "ContentCopy",
661
669
  style: { fontSize: "0.875rem" }
662
670
  })
663
671
  }),
664
- P(D, {
672
+ N(w, {
665
673
  size: "small",
666
674
  onClick: () => {
667
675
  a("Logged!"), setTimeout(() => a(null), 2e3), console.warn(e);
@@ -672,13 +680,13 @@ var He = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue
672
680
  "&:hover": { opacity: 1 }
673
681
  },
674
682
  title: r("stackTrace.log"),
675
- children: P(Y, {
683
+ children: N(Y, {
676
684
  iconKey: "BugReport",
677
685
  style: { fontSize: "0.875rem" }
678
686
  })
679
687
  })
680
688
  ]
681
- }), F(T, {
689
+ }), P(x, {
682
690
  sx: {
683
691
  mt: 1,
684
692
  backgroundColor: "rgba(0, 0, 0, 0.2)",
@@ -690,14 +698,14 @@ var He = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue
690
698
  fontSize: "0.75rem",
691
699
  lineHeight: 1.4
692
700
  },
693
- children: [c.map((e, t) => e.isBoundary ? P(T, {
701
+ children: [c.map((e, t) => e.isBoundary ? N(x, {
694
702
  sx: {
695
703
  py: 1,
696
704
  mt: +(t > 0),
697
705
  mb: .5,
698
706
  borderTop: t > 0 ? "1px solid rgba(255, 255, 255, 0.1)" : "none"
699
707
  },
700
- children: P(M, {
708
+ children: N(A, {
701
709
  variant: "caption",
702
710
  component: "div",
703
711
  sx: {
@@ -708,7 +716,7 @@ var He = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue
708
716
  },
709
717
  children: e.line
710
718
  })
711
- }, `error-${t}`) : F(T, {
719
+ }, `error-${t}`) : P(x, {
712
720
  sx: {
713
721
  display: "flex",
714
722
  alignItems: "flex-start",
@@ -717,7 +725,7 @@ var He = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue
717
725
  pl: 1,
718
726
  "&:hover": { backgroundColor: "rgba(255, 255, 255, 0.05)" }
719
727
  },
720
- children: [!n && P(M, {
728
+ children: [!n && N(A, {
721
729
  variant: "caption",
722
730
  component: "div",
723
731
  sx: {
@@ -728,12 +736,12 @@ var He = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue
728
736
  userSelect: "none"
729
737
  },
730
738
  children: t + 1
731
- }), F(T, {
739
+ }), P(x, {
732
740
  sx: {
733
741
  flex: 1,
734
742
  overflow: "hidden"
735
743
  },
736
- children: [P(M, {
744
+ children: [N(A, {
737
745
  variant: "caption",
738
746
  component: "div",
739
747
  sx: {
@@ -744,7 +752,7 @@ var He = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue
744
752
  color: "inherit"
745
753
  },
746
754
  children: e.line
747
- }), e.location && e.line !== e.location && P(M, {
755
+ }), e.location && e.line !== e.location && N(A, {
748
756
  variant: "caption",
749
757
  component: "div",
750
758
  sx: {
@@ -755,7 +763,7 @@ var He = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue
755
763
  children: e.location
756
764
  })]
757
765
  })]
758
- }, `stack-${t}`)), l && P(M, {
766
+ }, `stack-${t}`)), l && N(A, {
759
767
  variant: "caption",
760
768
  component: "div",
761
769
  sx: {
@@ -771,19 +779,19 @@ var He = /^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/, Ue
771
779
  })]
772
780
  });
773
781
  });
774
- Ge.displayName = "StackTrace";
775
- var Ke = B(R((e, t) => {
776
- let { sx: n, icon: r = P(Y, {
782
+ Ke.displayName = "StackTrace";
783
+ var qe = R(L((e, t) => {
784
+ let { sx: n, icon: r = N(Y, {
777
785
  iconKey: "Error",
778
786
  style: { fontSize: 48 }
779
- }), error: i, hideStackTrace: a = !1, stackTraceExpanded: o = !1, fullscreen: s = !1, ...c } = e, l = Ce(), u = W(() => qe(i, a, o, s, l), [
787
+ }), error: i, hideStackTrace: a = !1, stackTraceExpanded: o = !1, fullscreen: s = !1, ...c } = e, l = Se(), u = H(() => Je(i, a, o, s, l), [
780
788
  i,
781
789
  a,
782
790
  o,
783
791
  s,
784
792
  l
785
793
  ]);
786
- return W(() => P(T, {
794
+ return H(() => N(x, {
787
795
  ref: t,
788
796
  sx: {
789
797
  boxSizing: "border-box",
@@ -797,7 +805,7 @@ var Ke = B(R((e, t) => {
797
805
  ...n
798
806
  },
799
807
  ...c,
800
- children: F(T, {
808
+ children: P(x, {
801
809
  sx: {
802
810
  display: "flex",
803
811
  flex: "1 1 100%",
@@ -807,7 +815,7 @@ var Ke = B(R((e, t) => {
807
815
  boxSizing: "border-box",
808
816
  position: "relative"
809
817
  },
810
- children: [P(T, {
818
+ children: [N(x, {
811
819
  className: "backdrop",
812
820
  sx: {
813
821
  backdropFilter: "blur(4px)",
@@ -818,7 +826,7 @@ var Ke = B(R((e, t) => {
818
826
  height: "100%",
819
827
  boxSizing: "border-box"
820
828
  }
821
- }), P(A, {
829
+ }), N(k, {
822
830
  elevation: 0,
823
831
  sx: {
824
832
  display: "flex",
@@ -836,7 +844,7 @@ var Ke = B(R((e, t) => {
836
844
  boxShadow: (e) => e.shadows[3],
837
845
  zIndex: 1
838
846
  },
839
- children: P(T, {
847
+ children: N(x, {
840
848
  sx: {
841
849
  display: "flex",
842
850
  flexDirection: "column",
@@ -845,19 +853,19 @@ var Ke = B(R((e, t) => {
845
853
  width: "100%",
846
854
  maxWidth: s ? void 0 : "600px"
847
855
  },
848
- children: F(T, {
856
+ children: P(x, {
849
857
  sx: {
850
858
  display: "flex",
851
859
  flexDirection: "row",
852
860
  alignItems: "flex-start",
853
861
  gap: (e) => e.spacing(2)
854
862
  },
855
- children: [P(T, {
863
+ children: [N(x, {
856
864
  sx: {
857
865
  display: "flex",
858
866
  color: (e) => e.palette.error.main
859
867
  },
860
- children: typeof r == "string" ? P(Y, {
868
+ children: typeof r == "string" ? N(Y, {
861
869
  iconKey: r,
862
870
  style: { fontSize: 48 }
863
871
  }) : r
@@ -872,8 +880,8 @@ var Ke = B(R((e, t) => {
872
880
  u
873
881
  ]);
874
882
  }));
875
- Ke.displayName = "StackTraceErrorPanel";
876
- var qe = (e, t = !1, n = !1, r = !1, i = (e) => e) => se(e) ? e : e instanceof Error ? F(T, {
883
+ qe.displayName = "StackTraceErrorPanel";
884
+ var Je = (e, t = !1, n = !1, r = !1, i = (e) => e) => ae(e) ? e : e instanceof Error ? P(x, {
877
885
  sx: {
878
886
  display: "flex",
879
887
  flexDirection: "column",
@@ -882,7 +890,7 @@ var qe = (e, t = !1, n = !1, r = !1, i = (e) => e) => se(e) ? e : e instanceof E
882
890
  width: "100%"
883
891
  },
884
892
  children: [
885
- P(M, {
893
+ N(A, {
886
894
  variant: "caption",
887
895
  component: "div",
888
896
  sx: {
@@ -892,7 +900,7 @@ var qe = (e, t = !1, n = !1, r = !1, i = (e) => e) => se(e) ? e : e instanceof E
892
900
  },
893
901
  children: e.message
894
902
  }),
895
- e.cause ? P(M, {
903
+ e.cause ? N(A, {
896
904
  variant: "caption",
897
905
  component: "div",
898
906
  sx: {
@@ -904,12 +912,12 @@ var qe = (e, t = !1, n = !1, r = !1, i = (e) => e) => se(e) ? e : e instanceof E
904
912
  },
905
913
  children: i("stackTrace.causedBy", { cause: e.cause instanceof Error ? e.cause.message : String(e.cause) })
906
914
  }) : null,
907
- !t && P(Ge, {
915
+ !t && N(Ke, {
908
916
  error: e,
909
917
  hideLineNumbers: !0
910
918
  })
911
919
  ]
912
- }) : P(M, {
920
+ }) : N(A, {
913
921
  variant: "caption",
914
922
  component: "div",
915
923
  sx: {
@@ -918,51 +926,77 @@ var qe = (e, t = !1, n = !1, r = !1, i = (e) => e) => se(e) ? e : e instanceof E
918
926
  letterSpacing: "0.01071em"
919
927
  },
920
928
  children: e === "string" ? e : `Unknown Error: ${String(e)}`
921
- }), Je = {
929
+ }), Ye = R((e) => {
930
+ let { error: t, ...n } = e, r = xe(), i = Se();
931
+ return N(qe, {
932
+ hideStackTrace: !0,
933
+ error: P(x, {
934
+ sx: {
935
+ display: "flex",
936
+ flexDirection: "column",
937
+ alignItems: "flex-start",
938
+ gap: 1
939
+ },
940
+ children: [N(A, {
941
+ variant: "body2",
942
+ component: "div",
943
+ children: t instanceof Error ? t.message : String(t)
944
+ }), r ? N(S, {
945
+ variant: "outlined",
946
+ size: "small",
947
+ onClick: r,
948
+ children: i("lazyLoad.retry")
949
+ }) : null]
950
+ }),
951
+ ...n
952
+ });
953
+ });
954
+ Ye.displayName = "LazyLoadErrorPanel";
955
+ var Xe = {
922
956
  Popup: "popup",
923
957
  Anchor: "anchor"
924
- }, Ye = {
958
+ }, Ze = {
925
959
  ByPopup: "popupDone",
926
960
  Cancel: "popupCancel",
927
961
  ClickAway: "clickAway"
928
- }, Xe = {
962
+ }, Qe = {
929
963
  Toolbar: "toolbar",
930
964
  Menuitem: "menuitem"
931
- }, Ze = (e) => {
932
- let { closeFloat: t, closeFloatAll: r, floatReference: i, popupContainer: a, children: o, className: s, sx: c, ...l } = e;
933
- return P(T, {
934
- className: n("menu", s),
965
+ }, $e = (e) => {
966
+ let { closeFloat: t, closeFloatAll: n, floatReference: r, popupContainer: i, children: a, className: o, sx: s, ...c } = e;
967
+ return N(x, {
968
+ className: y("menu", o),
935
969
  sx: {
936
970
  display: "flex",
937
971
  flexDirection: "column",
938
972
  paddingTop: (e) => `${e.shape.borderRadius}px`,
939
973
  paddingBottom: (e) => `${e.shape.borderRadius}px`,
940
- ...c
974
+ ...s
941
975
  },
942
- ...l,
943
- children: o
976
+ ...c,
977
+ children: a
944
978
  });
945
- }, Qe = (e, t, n) => {
946
- let i = "";
947
- return n && (i = (i ? i + " " : "") + "rotate(180deg)"), P(r, {
979
+ }, et = (e, t, n) => {
980
+ let r = "";
981
+ return n && (r = (r ? r + " " : "") + "rotate(180deg)"), N(p, {
948
982
  style: {
949
983
  marginLeft: e ? void 0 : t ? "-0.25rem" : "-3px",
950
984
  marginRight: e ? void 0 : t ? "-0.25rem" : "-6px",
951
- transform: i
985
+ transform: r
952
986
  },
953
987
  color: "inherit"
954
988
  });
955
- }, $e = B(R((e, t) => {
956
- let { open: n, anchorEl: r, anchorPosition: i, label: a, floatReference: o, createPopupPanel: s = Ze, propsPopper: c, onMount: l, onClosing: u, onClose: d, onOpening: p, onOpen: m, children: h, sx: g, ..._ } = e, v = Z(u ?? (() => {}), [u]), y = Z(d ?? (() => {}), [d]), b = Z(p ?? (() => {}), [p]), x = Z(m ?? (() => {}), [m]), [S, C] = K(), w = G(null), T = Z((e, t) => {
957
- C(e), l?.(w.current, t);
958
- }, [l]), E = W(() => {
989
+ }, tt = R(L((e, t) => {
990
+ let { open: n, anchorEl: r, anchorPosition: i, label: a, floatReference: o, createPopupPanel: s = $e, propsPopper: c, 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) => {
991
+ C(e), u?.(w.current, t);
992
+ }, [u]), E = H(() => {
959
993
  let e = {
960
994
  popupContainer: S,
961
995
  floatReference: o,
962
996
  children: h,
963
997
  ..._
964
998
  }, t = s(e);
965
- return P(A, {
999
+ return N(k, {
966
1000
  elevation: 8,
967
1001
  ref: w,
968
1002
  sx: {
@@ -972,7 +1006,7 @@ var qe = (e, t = !1, n = !1, r = !1, i = (e) => e) => se(e) ? e : e instanceof E
972
1006
  outline: "none",
973
1007
  backgroundColor: "var(--sxl-color-elevated, var(--sxl-color-base-100, #fff))",
974
1008
  border: "1px solid var(--sxl-color-elevated-border, transparent)",
975
- "&.MuiPaper-root": (e) => f(e)
1009
+ "&.MuiPaper-root": (e) => l(e)
976
1010
  },
977
1011
  tabIndex: 0,
978
1012
  children: t
@@ -983,7 +1017,7 @@ var qe = (e, t = !1, n = !1, r = !1, i = (e) => e) => se(e) ? e : e instanceof E
983
1017
  S,
984
1018
  o
985
1019
  ]);
986
- return P(pe, {
1020
+ return N(ue, {
987
1021
  ref: t,
988
1022
  anchorEl: r,
989
1023
  anchorPosition: i,
@@ -998,25 +1032,25 @@ var qe = (e, t = !1, n = !1, r = !1, i = (e) => e) => se(e) ? e : e instanceof E
998
1032
  children: E
999
1033
  });
1000
1034
  }));
1001
- $e.displayName = "ExhibitFloatPanel";
1002
- var et = (e) => P($e, { ...e }), tt = (e) => P(me, {
1003
- renderFloatPanel: et,
1004
- createPopupPanel: Ze,
1035
+ tt.displayName = "ExhibitFloatPanel";
1036
+ var nt = (e) => N(tt, { ...e }), rt = (e) => N(de, {
1037
+ renderFloatPanel: nt,
1038
+ createPopupPanel: $e,
1005
1039
  ...e
1006
- }), nt = B(R((e, t) => {
1040
+ }), it = R(L((e, t) => {
1007
1041
  let { nestedChildren: n, variant: r, disabled: i, createPopupPanel: a, ...o } = e, s = {
1008
1042
  disabled: i,
1009
1043
  createPopupPanel: Z((e) => {
1010
- if (!n || n.length === 0) return P(N, {});
1044
+ if (!n || n.length === 0) return N(M, {});
1011
1045
  let { popupContainer: r, floatReference: i, ref: a, ...o } = e, s = [];
1012
1046
  for (let e = 0; e < n.length; e++) {
1013
1047
  let t = n[e];
1014
- t && s.push(P(nt, {
1048
+ t && s.push(N(it, {
1015
1049
  ...o,
1016
1050
  ...t
1017
1051
  }, e));
1018
1052
  }
1019
- return F(T, {
1053
+ return P(x, {
1020
1054
  ref: t,
1021
1055
  sx: {
1022
1056
  display: "flex",
@@ -1027,25 +1061,25 @@ var et = (e) => P($e, { ...e }), tt = (e) => P(me, {
1027
1061
  children: [
1028
1062
  "Children here",
1029
1063
  s,
1030
- P(ut, { children: "Close other children" })
1064
+ N(pt, { children: "Close other children" })
1031
1065
  ]
1032
1066
  });
1033
1067
  }, [n]),
1034
1068
  ...o
1035
1069
  };
1036
- return P(r === Xe.Toolbar ? ft : ht, { ...s });
1037
- })), rt = { placement: "right-start" }, it = B(R((e, t) => {
1038
- let { children: n, sx: r, parentFloat: i, createPopupPanel: a, propsPopper: o = rt, label: s, ...c } = e;
1070
+ return N(r === Qe.Toolbar ? ht : vt, { ...s });
1071
+ })), at = { placement: "right-start" }, ot = R(L((e, t) => {
1072
+ let { children: n, sx: r, parentFloat: i, createPopupPanel: a, propsPopper: o = at, label: s, ...c } = e;
1039
1073
  (function(e) {
1040
1074
  if (!e) throw Error("Invariant failed");
1041
- })(se(n));
1042
- let l = n, u = W(() => ({
1075
+ })(ae(n));
1076
+ let l = n, u = H(() => ({
1043
1077
  ...l?.props,
1044
1078
  ...c,
1045
1079
  onContextMenu: (e) => {
1046
1080
  l?.props?.onContextMenu?.(e), e.isDefaultPrevented() || (c?.onContextMenu?.(e), e.isDefaultPrevented() || (p(e), e.preventDefault()));
1047
1081
  }
1048
- }), [c, l?.props]), d = Z(a ?? (() => {}), [a]), [f, p] = K(null), { reference: m, component: h } = xe({
1082
+ }), [c, l?.props]), d = Z(a ?? (() => {}), [a]), [f, p] = W(null), { reference: m, component: h } = ye({
1049
1083
  label: s ?? "contextMenu",
1050
1084
  propsPopper: o,
1051
1085
  parentFloat: i,
@@ -1053,22 +1087,22 @@ var et = (e) => P($e, { ...e }), tt = (e) => P(me, {
1053
1087
  onClose: () => p(null),
1054
1088
  createPopupPanel: d
1055
1089
  });
1056
- return H(() => {
1090
+ return B(() => {
1057
1091
  f ? m.open(0) : m.close(0);
1058
- }, [f]), F(N, { children: [ae(n, u), h] });
1059
- })), at = P(Y, {}), ot = P(Y, { iconKey: "Check" }), st = B(R((e, t) => {
1060
- let { dense: r = !0, outlined: a = !1, disableHover: o = !1, selected: s, icon: c, propsTooltip: l, children: u, primary: d, sx: f, disabled: p, className: m, onFocus: h, onBlur: g, ..._ } = e, [y, b] = K(!1), x = {
1092
+ }, [f]), P(M, { children: [re(n, u), h] });
1093
+ })), st = N(Y, {}), ct = N(Y, { iconKey: "Check" }), lt = R(L((e, n) => {
1094
+ 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: m, onBlur: g, ..._ } = e, [v, b] = W(!1), S = {
1061
1095
  marginRight: "0px",
1062
1096
  padding: r ? "2px" : "7px",
1063
1097
  borderRadius: (e) => `${e.shape.borderRadius}px`,
1064
- color: (e) => d ? void 0 : e.palette.text.icon ?? e.palette.action.active,
1065
- border: (e) => `solid ${a ? e.palette.divider : "transparent"} 1px`,
1098
+ color: (e) => u ? void 0 : e.palette.text.icon ?? e.palette.action.active,
1099
+ border: (e) => `solid ${i ? e.palette.divider : "transparent"} 1px`,
1066
1100
  "& .MuiTouchRipple-child": { borderRadius: (e) => `${e.shape.borderRadius}px !important` },
1067
1101
  "&.Mui-selected": {
1068
- backgroundColor: (e) => q(e.palette.text.primary, e.palette.action.selectedOpacity),
1069
- border: (e) => `solid ${a ? e.palette.text?.primary : e.palette.divider} 1px`
1102
+ backgroundColor: (e) => G(e.palette.text.primary, e.palette.action.selectedOpacity),
1103
+ border: (e) => `solid ${i ? e.palette.text?.primary : e.palette.divider} 1px`
1070
1104
  },
1071
- "&.Mui-disabled": { border: (e) => `solid ${a ? e.palette.divider : "transparent"} 1px` },
1105
+ "&.Mui-disabled": { border: (e) => `solid ${i ? e.palette.divider : "transparent"} 1px` },
1072
1106
  "&.Mui-disabled > .icon path": {
1073
1107
  filter: "grayscale(65%)",
1074
1108
  opacity: ".8"
@@ -1077,13 +1111,13 @@ var et = (e) => P($e, { ...e }), tt = (e) => P(me, {
1077
1111
  outline: "solid transparent 1px",
1078
1112
  border: "1px solid transparent"
1079
1113
  },
1080
- ...f
1081
- }, S = {
1114
+ ...d
1115
+ }, C = {
1082
1116
  "&:hover:not(.Mui-disabled, [disabled])": {
1083
1117
  color: (e) => e.palette.text.primary,
1084
- border: (e) => `solid ${a ? e.palette.text?.primary : e.palette.divider} 1px`,
1085
- "&.Mui-selected": { backgroundColor: (e) => q(e.palette.text.primary, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity) },
1086
- "> .outline-hover": { outline: (e) => `solid ${a ? e.palette.text?.primary : e.palette.divider} 1px` },
1118
+ border: (e) => `solid ${i ? e.palette.text?.primary : e.palette.divider} 1px`,
1119
+ "&.Mui-selected": { backgroundColor: (e) => G(e.palette.text.primary, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity) },
1120
+ "> .outline-hover": { outline: (e) => `solid ${i ? e.palette.text?.primary : e.palette.divider} 1px` },
1087
1121
  backgroundColor: null
1088
1122
  },
1089
1123
  "&.Mui-focusVisible": {
@@ -1091,59 +1125,64 @@ var et = (e) => P($e, { ...e }), tt = (e) => P(me, {
1091
1125
  border: (e) => `1px solid ${e.palette?.primary?.main}`,
1092
1126
  zIndex: 1
1093
1127
  }
1094
- }, C = x;
1095
- o || (C = ue.mergeContentful(x, S));
1096
- let w = W(() => {
1097
- let e = typeof c == "function" ? c() : c;
1098
- return e === null ? e : e || (s === void 0 ? at : ot);
1099
- }, [c, s]), E = F(D, {
1128
+ }, T = S;
1129
+ a || (T = K.mergeContentful(S, C));
1130
+ let E = H(() => {
1131
+ let e = typeof s == "function" ? s() : s;
1132
+ return e === null ? e : e || (o === void 0 ? st : ct);
1133
+ }, [s, o]), D = P(w, {
1100
1134
  component: "div",
1101
- ref: t,
1102
- className: n({
1103
- "Mui-focusVisible": y,
1104
- "Mui-selected": s,
1105
- "Mui-disabled": p
1106
- }, m),
1135
+ ref: n,
1136
+ className: y({
1137
+ "Mui-focusVisible": v,
1138
+ "Mui-selected": o,
1139
+ "Mui-disabled": f
1140
+ }, p),
1107
1141
  onFocus: (e) => {
1108
- b(!0), h?.(e);
1142
+ b(!0), m?.(e);
1109
1143
  },
1110
1144
  onBlur: (e) => {
1111
1145
  b(!1), g?.(e);
1112
1146
  },
1113
1147
  size: "small",
1114
1148
  TouchRippleProps: { center: !1 },
1115
- sx: C,
1149
+ sx: T,
1116
1150
  edge: "end",
1117
1151
  ..._,
1118
- disabled: p || !1,
1119
- children: [w, u]
1152
+ disabled: f || !1,
1153
+ children: [E, l]
1120
1154
  });
1121
- if (l) if (l.simple && l.label && !l.disabled) {
1122
- let { label: e, description: t, maxWidth: n, shortcut: r, useModifierSymbols: i, componentDisabled: a, simple: o, chips: s, ref: c, ...u } = l;
1123
- E = P(v, {
1155
+ if (c) if (c.simple && c.label && !c.disabled) {
1156
+ let { label: e, description: t, maxWidth: n, shortcut: r, useModifierSymbols: i, componentDisabled: a, simple: o, chips: s, ref: l, ...u } = c;
1157
+ D = N(h, {
1124
1158
  disableInteractive: !0,
1125
1159
  title: e ?? "",
1126
1160
  ...u,
1127
- children: P(T, {
1161
+ children: N(x, {
1128
1162
  sx: { display: "flex" },
1129
- children: E
1163
+ children: D
1130
1164
  })
1131
1165
  });
1132
- } else E = P(i, {
1133
- children: E,
1134
- ...l
1166
+ } else D = N(t, {
1167
+ children: D,
1168
+ ...c
1135
1169
  });
1136
- return E;
1137
- })), ct = P(Y, {}), lt = (e) => e.icon, ut = B(R((e, t) => {
1138
- let { icon: r = ct, renderIcon: a = lt, className: o, onFocus: s, selected: c, onBlur: l, onMouseOver: u, onMouseOut: d, onMouseEnter: f, disabled: p, children: m, sx: h, propsTooltip: g, chips: _, primary: v, ...y } = e, b = be(), [x, S] = K(!1), [w, T] = K(!1), E = W(() => {
1170
+ return D;
1171
+ })), ut = N(Y, {}), dt = {
1172
+ marginLeft: "4px",
1173
+ marginRight: "4px",
1174
+ paddingLeft: "6px",
1175
+ paddingRight: "18px"
1176
+ }, ft = (e) => e.icon, pt = R(L((n, r) => {
1177
+ 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: v, ...b } = n, x = ve(), [S, C] = W(!1), [w, T] = W(!1), E = H(() => {
1139
1178
  let e = a?.({
1140
- icon: r,
1179
+ icon: i,
1141
1180
  disabled: p,
1142
1181
  selected: c
1143
1182
  });
1144
- return e ? P(k, {
1145
- className: n({
1146
- "Mui-focusVisible": x,
1183
+ return e ? N(O, {
1184
+ className: y({
1185
+ "Mui-focusVisible": S,
1147
1186
  "Mui-hovered": w
1148
1187
  }),
1149
1188
  sx: {
@@ -1155,13 +1194,13 @@ var et = (e) => P($e, { ...e }), tt = (e) => P(me, {
1155
1194
  }, [
1156
1195
  a,
1157
1196
  p,
1158
- r,
1159
- x,
1197
+ i,
1198
+ S,
1160
1199
  w,
1161
1200
  v,
1162
1201
  c
1163
- ]), D = F(te, {
1164
- ref: t,
1202
+ ]), k = P(D, {
1203
+ ref: r,
1165
1204
  role: "menuitem",
1166
1205
  disabled: p,
1167
1206
  onMouseOver: (e) => {
@@ -1171,18 +1210,18 @@ var et = (e) => P($e, { ...e }), tt = (e) => P(me, {
1171
1210
  d?.(e), e.isDefaultPrevented() || T(!1);
1172
1211
  },
1173
1212
  onMouseEnter: (e) => {
1174
- f?.(e), e.isDefaultPrevented() || b?.closeChild();
1213
+ f?.(e), e.isDefaultPrevented() || x?.closeChild();
1175
1214
  },
1176
1215
  TouchRippleProps: { center: !1 },
1177
- className: n({
1178
- "Mui-focusVisible": x,
1216
+ className: y({
1217
+ "Mui-focusVisible": S,
1179
1218
  "Mui-hovered": w
1180
1219
  }, o),
1181
1220
  onFocus: (e) => {
1182
- s?.(e), S(!0);
1221
+ s?.(e), C(!0);
1183
1222
  },
1184
1223
  onBlur: (e) => {
1185
- l?.(e), S(!1);
1224
+ l?.(e), C(!1);
1186
1225
  },
1187
1226
  sx: {
1188
1227
  flex: "1 1 100%",
@@ -1191,10 +1230,7 @@ var et = (e) => P($e, { ...e }), tt = (e) => P(me, {
1191
1230
  lineHeight: 1.5,
1192
1231
  paddingTop: "2px",
1193
1232
  paddingBottom: "2px",
1194
- marginLeft: "4px",
1195
- marginRight: "4px",
1196
- paddingLeft: "6px",
1197
- paddingRight: "18px",
1233
+ ...dt,
1198
1234
  borderRadius: "4px",
1199
1235
  fontSize: "0.875em",
1200
1236
  "@media (pointer: coarse)": { fontSize: "1em" },
@@ -1204,21 +1240,21 @@ var et = (e) => P($e, { ...e }), tt = (e) => P(me, {
1204
1240
  "&.Mui-hovered:not(.Mui-disabled, [disabled])": { color: (e) => e.palette.text.primary },
1205
1241
  ...h
1206
1242
  },
1207
- ...y,
1243
+ ...b,
1208
1244
  children: [
1209
1245
  E,
1210
1246
  m,
1211
- _ ? P(C, { chips: _ }) : null
1247
+ _ ? N(e, { chips: _ }) : null
1212
1248
  ]
1213
1249
  });
1214
- return g && (D = P(i, {
1215
- children: D,
1250
+ return g && (k = N(t, {
1251
+ children: k,
1216
1252
  placement: "right-start",
1217
1253
  ...g
1218
- })), D;
1219
- })), dt = B(R((e, t) => {
1254
+ })), k;
1255
+ })), mt = R(L((e, t) => {
1220
1256
  let { children: n, sx: r, primary: i = !1, variant: a = "subtitle1", ...o } = e;
1221
- return P(N, { children: P(M, {
1257
+ return N(M, { children: N(A, {
1222
1258
  ref: t,
1223
1259
  variant: a,
1224
1260
  component: "div",
@@ -1234,11 +1270,11 @@ var et = (e) => P($e, { ...e }), tt = (e) => P(me, {
1234
1270
  ...o,
1235
1271
  children: n
1236
1272
  }) });
1237
- })), ft = B(R((e, t) => {
1238
- let { dense: r = !0, outlined: i = !1, label: a, showLabel: o = !1, selected: s = !1, onQuickClick: c, parentFloat: l, createPopupPanel: u, propsPopup: d, onPopupOpen: f, onPopupClose: p, propsQuickButton: m, renderQuickButton: h, tooltip: g = "", createTooltip: _, icon: y, disabled: b, propsButton: x = ue.EmptyObject, disableHover: S, ripple: C, primary: w, children: E, sx: ee, className: O, ...te } = e, k = ne(), A = W(() => {
1239
- let e = (e, t, n, r = n) => {
1240
- let a = typeof i == "boolean" ? null : i[e];
1241
- return typeof a == "function" ? a(t) : a || (i ? n : r);
1273
+ })), ht = R(L((e, t) => {
1274
+ 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: m, tooltip: g = "", createTooltip: _, icon: v, disabled: b, propsButton: S = K.EmptyObject, disableHover: C, ripple: T, primary: E, children: D, sx: O, className: k, ...ee } = e, A = j(), F = H(() => {
1275
+ let e = (e, t, n, i = n) => {
1276
+ let a = typeof r == "boolean" ? null : r[e];
1277
+ return typeof a == "function" ? a(t) : a || (r ? n : i);
1242
1278
  };
1243
1279
  return {
1244
1280
  outline: {
@@ -1246,45 +1282,45 @@ var et = (e) => P($e, { ...e }), tt = (e) => P(me, {
1246
1282
  hoverColor: (t) => e("hoverColor", t, t.palette.text?.primary, t.palette.divider),
1247
1283
  focusColor: (t) => e("focusColor", t, t.palette?.primary?.main)
1248
1284
  },
1249
- active: k.palette.mode === "dark" ? k.palette.text.secondary : k.palette.text.primary,
1250
- text: k.palette.text.icon ?? k.palette.action.active
1285
+ active: A.palette.mode === "dark" ? A.palette.text.secondary : A.palette.text.primary,
1286
+ text: A.palette.text.icon ?? A.palette.action.active
1251
1287
  };
1252
- }, [i, k]), [j, M] = K(!1), [I, re] = K(!1), [ie, L] = K(!1), ae = G(null), oe = G(null), R = xe({
1288
+ }, [r, A]), [I, te] = W(!1), [ne, re] = W(!1), [ie, L] = W(!1), ae = U(null), R = U(null), z = ye({
1253
1289
  anchor: ae.current,
1254
- label: a,
1255
- createPopupPanel: u,
1256
- parentFloat: l,
1257
- propsPopper: d?.propsPopper,
1290
+ label: i,
1291
+ createPopupPanel: l,
1292
+ parentFloat: c,
1293
+ propsPopper: u?.propsPopper,
1258
1294
  onClose: () => {
1259
- M(!1), p?.();
1295
+ te(!1), f?.();
1260
1296
  },
1261
1297
  onOpen: () => {
1262
- M(!0), f?.();
1298
+ te(!0), d?.();
1263
1299
  }
1264
- }), se = Z((e) => {
1265
- c?.(e), R.reference.close(0);
1266
- }, [c, R]), z = Z(() => {
1267
- j ? R.reference.close(0) : R.reference.open(0);
1300
+ }), oe = Z((e) => {
1301
+ s?.(e), z.reference.close(0);
1302
+ }, [s, z]), B = Z(() => {
1303
+ I ? z.reference.close(0) : z.reference.open(0);
1268
1304
  }, [
1269
- j,
1270
- R,
1271
- l,
1272
- a
1273
- ]), B = W(() => {
1305
+ I,
1306
+ z,
1307
+ c,
1308
+ i
1309
+ ]), V = H(() => {
1274
1310
  let e = {
1275
1311
  "&.bordered": {
1276
1312
  borderWidth: "1px",
1277
1313
  borderRadius: "0px",
1278
1314
  borderTopStyle: "solid",
1279
1315
  borderBottomStyle: "solid",
1280
- borderColor: (e) => A.outline.color(e),
1281
- "&.Mui-focusVisible": { border: (e) => `1px solid ${A.outline.focusColor(e)} !important` },
1316
+ borderColor: (e) => F.outline.color(e),
1317
+ "&.Mui-focusVisible": { border: (e) => `1px solid ${F.outline.focusColor(e)} !important` },
1282
1318
  "&:hover:not(.Mui-disabled, [disabled])": {
1283
- borderColor: () => S ? "transparent" : void 0,
1284
- backgroundColor: () => S ? "transparent" : void 0
1319
+ borderColor: () => C ? "transparent" : void 0,
1320
+ backgroundColor: () => C ? "transparent" : void 0
1285
1321
  },
1286
- "&.Mui-hovered:not(.Mui-disabled, [disabled])": { borderColor: (e) => A.outline.hoverColor(e) },
1287
- "&.Mui-selected:not(.Mui-disabled, [disabled])": { borderColor: (e) => A.outline.hoverColor(e) },
1322
+ "&.Mui-hovered:not(.Mui-disabled, [disabled])": { borderColor: (e) => F.outline.hoverColor(e) },
1323
+ "&.Mui-selected:not(.Mui-disabled, [disabled])": { borderColor: (e) => F.outline.hoverColor(e) },
1288
1324
  "&.left": {
1289
1325
  borderTopLeftRadius: (e) => `${e.shape.borderRadius}px`,
1290
1326
  borderBottomLeftRadius: (e) => `${e.shape.borderRadius}px`,
@@ -1293,7 +1329,7 @@ var et = (e) => P($e, { ...e }), tt = (e) => P(me, {
1293
1329
  "&.hard-right": {
1294
1330
  borderRightStyle: "solid",
1295
1331
  borderRightWidth: "1px",
1296
- borderRightColor: (e) => A.outline.color(e)
1332
+ borderRightColor: (e) => F.outline.color(e)
1297
1333
  },
1298
1334
  "&.right": {
1299
1335
  borderTopRightRadius: (e) => `${e.shape.borderRadius}px`,
@@ -1304,112 +1340,112 @@ var et = (e) => P($e, { ...e }), tt = (e) => P(me, {
1304
1340
  },
1305
1341
  "& .MuiTouchRipple-child": { borderRadius: (e) => `${e.shape.borderRadius}px !important` }
1306
1342
  }, t = { "&.Mui-selected": {
1307
- backgroundColor: (e) => q(e.palette.primary.main, e.palette.action.selectedOpacity),
1343
+ backgroundColor: (e) => G(e.palette.primary.main, e.palette.action.selectedOpacity),
1308
1344
  "&:hover:not(.Mui-disabled)": {
1309
- backgroundColor: (e) => q(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
1310
- "@media (hover: none)": { backgroundColor: (e) => q(e.palette.primary.main, e.palette.action.selectedOpacity) }
1345
+ backgroundColor: (e) => G(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
1346
+ "@media (hover: none)": { backgroundColor: (e) => G(e.palette.primary.main, e.palette.action.selectedOpacity) }
1311
1347
  }
1312
- } }, n = {
1348
+ } }, r = {
1313
1349
  maxHeight: "100%",
1314
1350
  "&.Mui-selected": {
1315
- backgroundColor: (e) => q(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity),
1351
+ backgroundColor: (e) => G(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity),
1316
1352
  "&:hover:not(.Mui-disabled)": {
1317
- backgroundColor: (e) => q(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
1318
- "@media (hover: none)": { backgroundColor: (e) => q(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity) }
1353
+ backgroundColor: (e) => G(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
1354
+ "@media (hover: none)": { backgroundColor: (e) => G(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity) }
1319
1355
  }
1320
1356
  },
1321
1357
  "&:hover:not(.Mui-disabled, [disabled])": { color: (e) => e.palette.text.primary },
1322
- backgroundColor: () => S ? "transparent" : void 0,
1358
+ backgroundColor: () => C ? "transparent" : void 0,
1323
1359
  color: (e) => e.palette.text.icon,
1324
1360
  "&.Mui-disabled > .icon path": {
1325
1361
  filter: "grayscale(65%)",
1326
1362
  opacity: ".8"
1327
1363
  },
1328
- padding: () => r ? "2px 3px" : "7px",
1364
+ padding: () => n ? "2px 3px" : "7px",
1329
1365
  marginRight: "0"
1330
- }, i = ue.mergeContentful(n, e), a = ue.mergeContentful(i, t), o = ue.mergeContentful(n, e);
1366
+ }, i = K.mergeContentful(r, e), a = K.mergeContentful(i, t), o = K.mergeContentful(r, e);
1331
1367
  return {
1332
1368
  quickButtonStyling: i,
1333
1369
  openQuickButtonStyling: a,
1334
1370
  compoundStyling: o,
1335
- openCompoundStyling: ue.mergeContentful(o, t)
1371
+ openCompoundStyling: K.mergeContentful(o, t)
1336
1372
  };
1337
- }, [A, S]), V = Z((e) => {
1373
+ }, [F, C]), se = Z((e) => {
1338
1374
  let { children: t, ref: n, ...r } = e;
1339
- return P(v, {
1375
+ return N(h, {
1340
1376
  ref: n,
1341
1377
  ...r,
1342
1378
  disableInteractive: !0,
1343
1379
  children: t
1344
1380
  });
1345
- }, []), ce = c || h, H = ce && (m?.tooltip || m?.createTooltip), U = (e) => {
1346
- let { tooltip: t, createTooltip: n, sx: r, ...i } = e, a = P(D, {
1381
+ }, []), q = s || m, ce = q && (p?.tooltip || p?.createTooltip), J = (e) => {
1382
+ let { tooltip: t, createTooltip: n, sx: r, ...i } = e, a = N(w, {
1347
1383
  sx: { ...r },
1348
1384
  component: "div",
1349
1385
  ...i
1350
1386
  });
1351
- return H && (a = (n ?? V)({
1352
- title: j ? "" : t ?? g,
1353
- children: P("div", { children: a })
1354
- }, j)), a;
1387
+ return ce && (a = (n ?? se)({
1388
+ title: I ? "" : t ?? g,
1389
+ children: N("div", { children: a })
1390
+ }, I)), a;
1355
1391
  }, le = { onKeyDown: (e) => {
1356
- e.keyCode === X.Space ? z() : e.keyCode === X.F4 || e.keyCode === X.Down ? R.reference.open(0) : e.keyCode === X.Up && R.reference.close(0);
1357
- } }, de = P(N, {}), J = W(() => Ee((typeof y == "function" ? y() : y) ?? (ce ? pt : null), o ? a : null), [
1358
- y,
1392
+ e.keyCode === X.Space ? B() : e.keyCode === X.F4 || e.keyCode === X.Down ? z.reference.open(0) : e.keyCode === X.Up && z.reference.close(0);
1393
+ } }, Y = N(M, {}), ue = H(() => Te((typeof v == "function" ? v() : v) ?? (q ? gt : null), a ? i : null), [
1394
+ v,
1395
+ i,
1359
1396
  a,
1360
- o,
1361
- ce
1397
+ q
1362
1398
  ]);
1363
- if (ce) {
1364
- let e = j ? B.openQuickButtonStyling : B.quickButtonStyling, t = (h || U)({
1399
+ if (q) {
1400
+ let e = I ? V.openQuickButtonStyling : V.quickButtonStyling, t = (m || J)({
1365
1401
  tabIndex: -1,
1366
1402
  disabled: b,
1367
1403
  size: "small",
1368
1404
  edge: "end",
1369
1405
  onMouseEnter: () => {
1370
- R.reference.parent?.closeChild();
1406
+ z.reference.parent?.closeChild();
1371
1407
  },
1372
1408
  onMouseDown: (e) => {
1373
- e.button === 0 && (e.preventDefault(), se(e));
1409
+ e.button === 0 && (e.preventDefault(), oe(e));
1374
1410
  },
1375
- disableRipple: !!C,
1376
- children: F(N, { children: [J, C] }),
1377
- ...m,
1378
- className: n({
1379
- "Mui-focusVisible": I || j,
1380
- "Mui-selected": s,
1381
- "Mui-hovered": ie || j,
1411
+ disableRipple: !!T,
1412
+ children: P(M, { children: [ue, T] }),
1413
+ ...p,
1414
+ className: y({
1415
+ "Mui-focusVisible": ne || I,
1416
+ "Mui-selected": o,
1417
+ "Mui-hovered": ie || I,
1382
1418
  "Mui-disabled": b,
1383
1419
  bordered: !0,
1384
1420
  left: !0,
1385
1421
  "hard-right": !0
1386
- }, m?.className),
1422
+ }, p?.className),
1387
1423
  sx: {
1388
- ...B.quickButtonStyling,
1424
+ ...V.quickButtonStyling,
1389
1425
  height: "100%",
1390
- ...m?.sx
1426
+ ...p?.sx
1391
1427
  }
1392
- }), i = Qe(!0, r, j);
1393
- H && (i = (_ ?? V)({
1394
- title: j ? "" : g,
1395
- children: i
1396
- }, j)), de = F(N, { children: [t, P(D, {
1397
- ref: oe,
1428
+ }), r = et(!0, n, I);
1429
+ ce && (r = (_ ?? se)({
1430
+ title: I ? "" : g,
1431
+ children: r
1432
+ }, I)), Y = P(M, { children: [t, N(w, {
1433
+ ref: R,
1398
1434
  component: "div",
1399
- className: n({
1400
- "Mui-selected": j,
1401
- "Mui-hovered": ie || j,
1435
+ className: y({
1436
+ "Mui-selected": I,
1437
+ "Mui-hovered": ie || I,
1402
1438
  "Mui-disabled": b,
1403
- "Mui-focusVisible": I || j,
1439
+ "Mui-focusVisible": ne || I,
1404
1440
  bordered: !0,
1405
1441
  right: !0,
1406
1442
  divider: !0
1407
1443
  }),
1408
1444
  sx: {
1409
- paddingLeft: (r ? 0 : 2) + "px",
1410
- paddingRight: (r ? 0 : 2) + "px",
1445
+ paddingLeft: (n ? 0 : 2) + "px",
1446
+ paddingRight: (n ? 0 : 2) + "px",
1411
1447
  width: () => "calc(var(--icon-size, 1.25em) * 0.8)",
1412
- ...B.quickButtonStyling,
1448
+ ...V.quickButtonStyling,
1413
1449
  ...e
1414
1450
  },
1415
1451
  TouchRippleProps: { center: !1 },
@@ -1418,38 +1454,39 @@ var et = (e) => P($e, { ...e }), tt = (e) => P(me, {
1418
1454
  size: "small",
1419
1455
  edge: "end",
1420
1456
  onMouseDown: (e) => {
1421
- e.button === 0 && (e.preventDefault(), z());
1457
+ e.button === 0 && (e.preventDefault(), B());
1422
1458
  },
1423
- children: i
1459
+ children: r
1424
1460
  })] });
1425
1461
  } else {
1426
- let e = j ? B.openCompoundStyling : B.compoundStyling;
1427
- de = P(st, {
1428
- ref: oe,
1462
+ let e = I ? V.openCompoundStyling : V.compoundStyling;
1463
+ Y = N(lt, {
1464
+ ref: R,
1429
1465
  tabIndex: -1,
1430
1466
  disabled: b,
1431
1467
  size: "small",
1432
- icon: J,
1433
- className: n({
1434
- "Mui-selected": j || s,
1468
+ icon: ue,
1469
+ className: y({
1470
+ "Mui-selected": I || o,
1435
1471
  "Mui-hovered": ie,
1436
1472
  "Mui-disabled": b,
1437
- "Mui-focusVisible": I || j,
1473
+ "Mui-focusVisible": ne || I,
1438
1474
  bordered: !0,
1439
1475
  left: !0,
1440
1476
  right: !0
1441
1477
  }),
1442
1478
  sx: {
1443
- ...B.quickButtonStyling,
1479
+ flex: "1 1 auto",
1480
+ ...V.quickButtonStyling,
1444
1481
  ...e
1445
1482
  },
1446
1483
  onMouseDown: (e) => {
1447
- e.button === 0 && (e.preventDefault(), z());
1484
+ e.button === 0 && (e.preventDefault(), B());
1448
1485
  },
1449
- children: Qe(!1, r, j)
1486
+ children: et(!1, n, I)
1450
1487
  });
1451
1488
  }
1452
- let { className: fe, sx: Y, ...pe } = x, me = P(T, {
1489
+ let { className: de, sx: fe, ...pe } = S, me = N(x, {
1453
1490
  onFocus: () => re(!0),
1454
1491
  onBlur: () => re(!1),
1455
1492
  onMouseOver: () => L(!0),
@@ -1458,9 +1495,9 @@ var et = (e) => P($e, { ...e }), tt = (e) => P(me, {
1458
1495
  "aria-label": "split button",
1459
1496
  ref: ae,
1460
1497
  tabIndex: b ? void 0 : 0,
1461
- className: n(fe, "split-button-root", {
1462
- "Mui-focusVisible": I || j,
1463
- "Mui-selected": j || s,
1498
+ className: y(de, "split-button-root", {
1499
+ "Mui-focusVisible": ne || I,
1500
+ "Mui-selected": I || o,
1464
1501
  "Mui-hovered": ie,
1465
1502
  "Mui-disabled": b
1466
1503
  }),
@@ -1470,92 +1507,92 @@ var et = (e) => P($e, { ...e }), tt = (e) => P(me, {
1470
1507
  alignItems: "stretch",
1471
1508
  width: "fit-content",
1472
1509
  "&:not(.Mui-disabled)": { cursor: "pointer" },
1473
- marginLeft: i ? "1px" : "0px",
1474
- marginRight: i ? "1px" : "0px",
1510
+ marginLeft: r ? "1px" : "0px",
1511
+ marginRight: r ? "1px" : "0px",
1475
1512
  borderRadius: (e) => `${e.shape.borderRadius}px`,
1476
1513
  "&.Mui-focusVisible": {
1477
1514
  outline: (e) => `solid ${e.palette.primary.main} 1px`,
1478
1515
  zIndex: 2
1479
1516
  },
1480
- ...Y
1517
+ ...fe
1481
1518
  },
1482
1519
  ...pe,
1483
- children: de
1520
+ children: Y
1484
1521
  });
1485
- return H || (me = (_ ?? V)({
1486
- title: j ? "" : g,
1522
+ return ce || (me = (_ ?? se)({
1523
+ title: I ? "" : g,
1487
1524
  children: me
1488
- }, j)), F(T, {
1489
- className: n(O, "popupIconButton"),
1525
+ }, I)), P(x, {
1526
+ className: y(k, "popupIconButton"),
1490
1527
  ref: t,
1491
- ...te,
1528
+ ...ee,
1492
1529
  sx: {
1493
- zIndex: I || j ? 2 : void 0,
1530
+ zIndex: ne || I ? 2 : void 0,
1494
1531
  display: "flex",
1495
1532
  alignItems: "center",
1496
- ...ee
1533
+ ...O
1497
1534
  },
1498
- children: [me, R.component]
1535
+ children: [me, z.component]
1499
1536
  });
1500
1537
  }));
1501
- ft.displayName = "ExhibitPopupIconButton";
1502
- var pt = P(Y, { iconKey: "Check" }), mt = {}, ht = B(R((e, t) => {
1503
- let { selected: r = !1, label: i, showLabel: a, onQuickClick: o, parentFloat: s, createPopupPanel: c, propsPopup: l = mt, onPopupOpen: u, onPopupClose: d, propsQuickButton: f, renderQuickButton: p, tooltip: m = "", createTooltip: h, icon: g, disabled: _, ripple: y, primary: b, children: S, sx: C, ...w } = e, [D, ee] = K(!1), [O, k] = K(!1), [A, j] = K(!1), [M, ne] = K(!1), I = G(null), re = G(null), ie = W(() => {
1504
- if (!l) return;
1505
- let { propsPopper: e } = l;
1538
+ ht.displayName = "ExhibitPopupIconButton";
1539
+ var gt = N(Y, { iconKey: "Check" }), _t = {}, vt = R(L((e, t) => {
1540
+ let { selected: n = !1, label: r, showLabel: i, onQuickClick: a, parentFloat: o, createPopupPanel: s, propsPopup: c = _t, onPopupOpen: l, onPopupClose: d, propsQuickButton: f, renderQuickButton: p, tooltip: m = "", createTooltip: g, icon: _, disabled: v, ripple: b, primary: S, children: w, sx: T, ...E } = e, [O, k] = W(!1), [ee, A] = W(!1), [j, F] = W(!1), [I, te] = W(!1), ne = U(null), re = U(null), ie = H(() => {
1541
+ if (!c) return;
1542
+ let { propsPopper: e } = c;
1506
1543
  return {
1507
1544
  placement: "right-start",
1508
1545
  offsets: [-4, -2],
1509
1546
  ...e
1510
1547
  };
1511
- }, [l]), L = xe({
1512
- anchor: I.current,
1513
- label: i,
1514
- createPopupPanel: c,
1515
- parentFloat: s,
1548
+ }, [c]), L = ye({
1549
+ anchor: ne.current,
1550
+ label: r,
1551
+ createPopupPanel: s,
1552
+ parentFloat: o,
1516
1553
  propsPopper: ie,
1517
1554
  onClose: () => {
1518
- ee(!1), d?.();
1555
+ k(!1), d?.();
1519
1556
  },
1520
1557
  onOpen: () => {
1521
- ee(!0), u?.();
1558
+ k(!0), l?.();
1522
1559
  }
1523
1560
  }), ae = Z((e) => {
1524
- e.button === 0 && (o?.(e), L.reference.close(0));
1525
- }, [o]), oe = P(x, {}), R = { "&.Mui-selected": {
1561
+ e.button === 0 && (a?.(e), L.reference.close(0));
1562
+ }, [a]), R = N(u, {}), oe = { "&.Mui-selected": {
1526
1563
  color: (e) => e.palette.text.primary,
1527
1564
  "& svg * ": { color: (e) => e.palette.text.primary }
1528
- } }, se = V((e) => {
1565
+ } }, B = z((e) => {
1529
1566
  let { children: t, ref: n, ...r } = e;
1530
- return P(v, {
1567
+ return N(h, {
1531
1568
  ref: n,
1532
1569
  ...r,
1533
1570
  disableInteractive: !0,
1534
1571
  children: t
1535
1572
  });
1536
- }, []), z = o || p, B = (e) => {
1537
- let { tooltip: t, createTooltip: r, ...a } = e;
1538
- return F(ut, {
1539
- icon: g,
1540
- disableRipple: !!y,
1541
- className: n({ "Mui-hovered": A }),
1573
+ }, []), V = a || p, se = (e) => {
1574
+ let { tooltip: t, createTooltip: n, ...i } = e;
1575
+ return P(pt, {
1576
+ icon: _,
1577
+ disableRipple: !!b,
1578
+ className: y({ "Mui-hovered": j }),
1542
1579
  sx: {
1543
1580
  flex: "1 1 100%",
1544
- ...R
1581
+ ...oe
1545
1582
  },
1546
- ...a,
1547
- children: [i, y]
1583
+ ...i,
1584
+ children: [r, b]
1548
1585
  });
1549
- }, ce = {
1586
+ }, G = {
1550
1587
  onFocus: () => {
1551
- k(!0);
1588
+ A(!0);
1552
1589
  },
1553
- onBlur: () => k(!1),
1590
+ onBlur: () => A(!1),
1554
1591
  onMouseOver: () => {
1555
- j(!0);
1592
+ F(!0);
1556
1593
  },
1557
1594
  onMouseLeave: () => {
1558
- j(!1);
1595
+ F(!1);
1559
1596
  },
1560
1597
  onMouseEnter: (e) => {
1561
1598
  e.preventDefault(), L.reference.open();
@@ -1563,23 +1600,23 @@ var pt = P(Y, { iconKey: "Check" }), mt = {}, ht = B(R((e, t) => {
1563
1600
  onMouseDown: (e) => {
1564
1601
  e.button === 0 && e.preventDefault();
1565
1602
  }
1566
- }, H = P(N, {});
1567
- if (z) {
1603
+ }, K = N(M, {});
1604
+ if (V) {
1568
1605
  let e = {
1569
1606
  tabIndex: -1,
1570
- disabled: _,
1607
+ disabled: v,
1571
1608
  onMouseEnter: () => {
1572
1609
  L.reference.parent?.closeChild();
1573
1610
  },
1574
1611
  onMouseDown: (e) => {
1575
1612
  e.button === 0 && (e.preventDefault(), ae(e));
1576
1613
  },
1577
- className: n("quick-left", {}, f?.className),
1614
+ className: y("quick-left", {}, f?.className),
1578
1615
  ...f
1579
1616
  };
1580
- H = F(N, { children: [
1581
- (p || B)(e),
1582
- P(E, {
1617
+ K = P(M, { children: [
1618
+ (p || se)(e),
1619
+ N(C, {
1583
1620
  sx: {
1584
1621
  ml: "0px",
1585
1622
  mr: "0px"
@@ -1588,11 +1625,11 @@ var pt = P(Y, { iconKey: "Check" }), mt = {}, ht = B(R((e, t) => {
1588
1625
  variant: "middle",
1589
1626
  flexItem: !0
1590
1627
  }),
1591
- P(te, {
1628
+ N(D, {
1592
1629
  ref: re,
1593
- className: n({
1594
- "Mui-selected": D,
1595
- "Mui-hovered": A
1630
+ className: y({
1631
+ "Mui-selected": O,
1632
+ "Mui-hovered": j
1596
1633
  }),
1597
1634
  sx: {
1598
1635
  borderTopLeftRadius: "0px",
@@ -1604,14 +1641,14 @@ var pt = P(Y, { iconKey: "Check" }), mt = {}, ht = B(R((e, t) => {
1604
1641
  paddingBottom: "2px",
1605
1642
  marginLeft: "0px",
1606
1643
  marginRight: "6px",
1607
- color: (e) => b ? void 0 : e.palette.text.secondary,
1644
+ color: (e) => S ? void 0 : e.palette.text.secondary,
1608
1645
  "&.Mui-hovered:not(.Mui-disabled, [disabled])": { color: (e) => e.palette.text.primary },
1609
- ...R
1646
+ ...oe
1610
1647
  },
1611
1648
  tabIndex: -1,
1612
- disabled: _,
1613
- ...ce,
1614
- children: P(T, {
1649
+ disabled: v,
1650
+ ...G,
1651
+ children: N(x, {
1615
1652
  className: "expand-icon",
1616
1653
  sx: {
1617
1654
  flex: "none",
@@ -1619,61 +1656,61 @@ var pt = P(Y, { iconKey: "Check" }), mt = {}, ht = B(R((e, t) => {
1619
1656
  border: "1px solid transparent",
1620
1657
  paddingTop: "1px",
1621
1658
  paddingBottom: "1px",
1622
- color: (e) => b ? void 0 : e.palette.text.icon ?? e.palette.action.active
1659
+ color: (e) => S ? void 0 : e.palette.text.icon ?? e.palette.action.active
1623
1660
  },
1624
1661
  onMouseOver: (e) => {
1625
- e.preventDefault(), ne(!0);
1662
+ e.preventDefault(), te(!0);
1626
1663
  },
1627
1664
  onMouseLeave: () => {
1628
- ne(!1);
1665
+ te(!1);
1629
1666
  },
1630
1667
  onClick: (e) => {
1631
- e.preventDefault(), D ? L.reference.close() : L.reference.open();
1668
+ e.preventDefault(), O ? L.reference.close() : L.reference.open();
1632
1669
  },
1633
- children: oe
1670
+ children: R
1634
1671
  })
1635
1672
  })
1636
1673
  ] });
1637
- } else H = F(ut, {
1674
+ } else K = P(pt, {
1638
1675
  ref: re,
1639
1676
  tabIndex: -1,
1640
- disabled: _,
1641
- icon: g,
1642
- className: n({
1643
- "Mui-selected": D || r,
1644
- "Mui-hovered": A
1677
+ disabled: v,
1678
+ icon: _,
1679
+ className: y({
1680
+ "Mui-selected": O || n,
1681
+ "Mui-hovered": j
1645
1682
  }),
1646
1683
  sx: {
1647
1684
  flex: "1 1 100%",
1648
1685
  paddingRight: "0px",
1649
- ...R
1686
+ ...oe
1650
1687
  },
1651
1688
  onClick: (e) => {
1652
- e.preventDefault(), D ? L.reference.close() : L.reference.open();
1689
+ e.preventDefault(), O ? L.reference.close() : L.reference.open();
1653
1690
  },
1654
- ...ce,
1655
- children: [P("div", {
1691
+ ...G,
1692
+ children: [N("div", {
1656
1693
  style: { flex: "1 1 100%" },
1657
- children: i
1658
- }), P(T, {
1694
+ children: r
1695
+ }), N(x, {
1659
1696
  className: "expand-icon",
1660
1697
  sx: {
1661
1698
  flex: "none",
1662
1699
  display: "flex",
1663
- color: (e) => b ? void 0 : e.palette.text.icon ?? e.palette.action.active
1700
+ color: (e) => S ? void 0 : e.palette.text.icon ?? e.palette.action.active
1664
1701
  },
1665
- children: oe
1702
+ children: R
1666
1703
  })]
1667
1704
  });
1668
- let U = P(T, {
1705
+ let q = N(x, {
1669
1706
  "aria-label": "split button",
1670
- ref: I,
1671
- tabIndex: _ ? void 0 : 0,
1672
- className: n({
1673
- "Mui-disabled": _,
1674
- "Mui-selected": D,
1675
- "Mui-focusVisible": O || D,
1676
- "Mui-hovered": A
1707
+ ref: ne,
1708
+ tabIndex: v ? void 0 : 0,
1709
+ className: y({
1710
+ "Mui-disabled": v,
1711
+ "Mui-selected": O,
1712
+ "Mui-focusVisible": ee || O,
1713
+ "Mui-hovered": j
1677
1714
  }),
1678
1715
  sx: {
1679
1716
  display: "flex",
@@ -1686,73 +1723,87 @@ var pt = P(Y, { iconKey: "Check" }), mt = {}, ht = B(R((e, t) => {
1686
1723
  marginRight: "-1px"
1687
1724
  },
1688
1725
  "&.Mui-disabled > .icon path": { filter: "grayscale(65%)" },
1689
- ...C
1726
+ ...T
1690
1727
  },
1691
- ...w,
1692
- children: H
1728
+ ...E,
1729
+ children: K
1693
1730
  });
1694
- return z && !M && (f?.tooltip || f?.createTooltip) && (U = (f?.createTooltip ?? se)({
1695
- title: D ? "" : U ?? f?.tooltip,
1696
- children: U
1697
- }, D)), F(T, {
1731
+ return V && !I && (f?.tooltip || f?.createTooltip) && (q = (f?.createTooltip ?? B)({
1732
+ title: O ? "" : q ?? f?.tooltip,
1733
+ children: q
1734
+ }, O)), P(x, {
1698
1735
  ref: t,
1699
1736
  sx: {
1700
- zIndex: O || D ? 2 : void 0,
1737
+ zIndex: ee || O ? 2 : void 0,
1701
1738
  display: "flex",
1702
1739
  " .tooltip-wrapper": {
1703
1740
  display: "flex",
1704
1741
  flex: "1 1 100%"
1705
1742
  }
1706
1743
  },
1707
- children: [U, L.component]
1744
+ children: [q, L.component]
1708
1745
  });
1709
- })), gt = B(R((e, t) => {
1710
- let { onSelectToggle: n, selected: r = !1, label: a, shortcut: o, tabIndex: s = 0, preventFocus: c = !1, ...l } = e;
1711
- return P(i, {
1746
+ })), yt = R(L((e, n) => {
1747
+ let { onSelectToggle: r, selected: i = !1, label: a, shortcut: o, tabIndex: s = 0, preventFocus: c = !1, ...l } = e;
1748
+ return N(t, {
1712
1749
  label: a,
1713
1750
  shortcut: o,
1714
- children: P(st, {
1715
- ref: t,
1751
+ children: N(lt, {
1752
+ ref: n,
1716
1753
  outlined: !1,
1717
1754
  tabIndex: s,
1718
- selected: r,
1755
+ selected: i,
1719
1756
  onMouseDown: (e) => {
1720
1757
  c && e.preventDefault();
1721
1758
  },
1722
1759
  onClick: () => {
1723
- n?.(!r);
1760
+ r?.(!i);
1724
1761
  },
1725
1762
  ...l
1726
1763
  })
1727
1764
  });
1728
- })), _t = P(Y, {}), vt = P(Y, { iconKey: "Check" }), yt = B(R((e, t) => {
1729
- let { children: n, selected: r = !0, outlined: i = !0, sx: a, ...o } = e, s = W(() => ({
1765
+ })), bt = N(Y, {}), xt = N(Y, { iconKey: "Check" }), St = R(L((e, t) => {
1766
+ let { children: n, selected: r = !0, outlined: i = !0, sx: a, ...o } = e, s = H(() => ({
1730
1767
  display: "flex",
1731
1768
  border: (e) => r ? `solid ${i ? e.palette.divider : "transparent"} 1px` : "solid transparent 1px",
1732
1769
  borderRadius: (e) => `${e.shape.borderRadius}px`,
1733
1770
  backgroundColor: (e) => {
1734
- if (r) return q(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity);
1771
+ if (r) return G(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity);
1735
1772
  },
1736
1773
  ...a
1737
1774
  }), [a]), c = n;
1738
- return c === null && (c = _t), c ||= vt, P(T, {
1775
+ return c === null && (c = bt), c ||= xt, N(x, {
1739
1776
  ref: t,
1740
1777
  sx: s,
1741
1778
  ...o,
1742
1779
  children: c
1743
1780
  });
1744
1781
  }));
1745
- d();
1746
- var bt = B(R((e, n) => {
1747
- let { children: r, sx: a, ...o } = e, s = Ce(), c = Se(n, () => ({}), []), [l, u] = t(), d = G(null), f = G(null), [p, m] = le((e) => e + 1, 0), [h, g] = K(null), [_, v] = K(null), [y, b] = K(null), x = G(null), C = G(/* @__PURE__ */ new Map()), w = V(() => {
1748
- C.current.clear(), v(null), b(null), m();
1782
+ c();
1783
+ var Ct = {
1784
+ inline: null,
1785
+ popup: []
1786
+ }, wt = R(L((e, r) => {
1787
+ let { children: i, sx: a, ...o } = e, s = Se(), c = be(r, () => ({}), []), [l, u] = v(), d = U(null), f = U(null), [p, m] = se((e) => e + 1, 0), [h, g] = W(null), [_, y] = W(null), b = _?.popup ?? null, S = U(0), [C, w] = W(!1), T = U(!1), E = ve(), D = U(E);
1788
+ D.current = E;
1789
+ let O = z(() => {
1790
+ D.current?.closeChild(0);
1791
+ }, []), k = z(() => {
1792
+ T.current = !0, w(!0);
1793
+ }, []), ee = z(() => {
1794
+ T.current = !1, w(!1);
1795
+ }, []), A = U(null), j = U(/* @__PURE__ */ new Map()), M = z(() => {
1796
+ j.current.clear(), y(null), m();
1749
1797
  }, []);
1750
- U(() => {
1798
+ V(() => {
1751
1799
  f.current = { refs: [] };
1752
- let e = [], t = re.toArray(r), n = 0;
1800
+ let e = [], t = I.toArray(i), n = 0;
1753
1801
  t.forEach((r, i) => {
1754
- e.push(P(T, {
1755
- sx: { display: "flex" },
1802
+ e.push(N(x, {
1803
+ sx: {
1804
+ display: "flex",
1805
+ flex: "0 0 auto"
1806
+ },
1756
1807
  ref: (e) => {
1757
1808
  n++, n === t.length && m();
1758
1809
  let r = { current: null };
@@ -1761,23 +1812,23 @@ var bt = B(R((e, n) => {
1761
1812
  children: r
1762
1813
  }, i));
1763
1814
  }), g(e);
1764
- }, [r, u]), U(() => {
1815
+ }, [i, u]), V(() => {
1765
1816
  if (!h) return;
1766
1817
  let e = f.current?.refs ?? [], t = e.length;
1767
- if (!c.current || t === 0) return v(null), void b(null);
1818
+ if (!c.current || t === 0) return void y(null);
1768
1819
  let n = c.current?.getBoundingClientRect(), r = [], i = [], a = () => {
1769
- let n = x.current;
1770
- n ? n.disconnect() : n = x.current = new ResizeObserver((e) => {
1820
+ let n = A.current;
1821
+ n ? n.disconnect() : n = A.current = new ResizeObserver((e) => {
1771
1822
  for (let t = 0; t < e.length; t++) {
1772
1823
  let n = e[t].target;
1773
1824
  if (!n.isConnected) continue;
1774
- let r = C.current.get(n);
1775
- if (r !== void 0 && Math.abs(n.getBoundingClientRect().width - r) > .5) return void w();
1825
+ let r = j.current.get(n);
1826
+ if (r !== void 0 && Math.abs(n.getBoundingClientRect().width - r) > .5) return void M();
1776
1827
  }
1777
- }), C.current.clear();
1828
+ }), j.current.clear();
1778
1829
  for (let r = 0; r < t; r++) {
1779
1830
  let t = e[r]?.current;
1780
- t && (C.current.set(t, t.getBoundingClientRect().width), n.observe(t));
1831
+ t && (j.current.set(t, t.getBoundingClientRect().width), n.observe(t));
1781
1832
  }
1782
1833
  }, o = 0, s = !1;
1783
1834
  for (let r = 0; !s && r < t; r++) {
@@ -1790,41 +1841,46 @@ var bt = B(R((e, n) => {
1790
1841
  let i = t.current.getBoundingClientRect();
1791
1842
  o += i?.width, o > n.width && (s = !0);
1792
1843
  }
1793
- if (!s) return a(), v(null), void b([]);
1844
+ if (!s) return a(), T.current && O(), void y(Ct);
1794
1845
  let l = d.current?.getBoundingClientRect();
1846
+ l?.width && (S.current = l.width);
1847
+ let u = n.width - S.current;
1795
1848
  o = 0;
1796
- for (let a = 0; a < t; a++) {
1797
- let t = e[a], s = !1;
1849
+ for (let n = 0; n < t; n++) {
1850
+ let t = e[n], a = !1;
1798
1851
  if (t.current) {
1799
1852
  let e = t.current.getBoundingClientRect();
1800
- o += e?.width, o < n.width - (l?.width ?? 0) && (s = !0);
1853
+ o += e?.width, o <= u && (a = !0);
1801
1854
  }
1802
- s ? r.push(h[a]) : i.push(h[a]);
1855
+ a ? r.push(h[n]) : i.push(h[n]);
1803
1856
  }
1804
- a(), v(r.length > 0 ? r : null), b(i.length > 0 ? i : null);
1857
+ a(), y({
1858
+ inline: r,
1859
+ popup: i
1860
+ });
1805
1861
  }, [
1806
- r,
1862
+ i,
1807
1863
  h,
1808
1864
  u,
1809
1865
  p
1810
- ]), U(() => () => {
1811
- x.current?.disconnect(), x.current = null;
1866
+ ]), V(() => () => {
1867
+ A.current?.disconnect(), A.current = null;
1812
1868
  }, []);
1813
- let E = V((e) => {
1814
- let t = [], n = y?.length ?? 0;
1869
+ let F = z((e) => {
1870
+ let t = [], n = b?.length ?? 0;
1815
1871
  for (let e = 0; e < n; e++) {
1816
- let n = re.toArray(y[e])[0];
1817
- re.toArray(n.props.children?.props?.children ?? n.props.children).forEach((n, r) => {
1818
- let i = n, a = ae(i, {
1872
+ let n = I.toArray(b[e])[0];
1873
+ I.toArray(n.props.children?.props?.children ?? n.props.children).forEach((n, r) => {
1874
+ let i = n, a = re(i, {
1819
1875
  ...i.props,
1820
1876
  key: `overflow-${e}-${r}${i.key ?? ""}`
1821
1877
  });
1822
1878
  t.push(a);
1823
1879
  });
1824
1880
  }
1825
- return Ze({
1881
+ return $e({
1826
1882
  ...e,
1827
- children: P(T, {
1883
+ children: N(x, {
1828
1884
  className: "overflow-palette-popup-panel",
1829
1885
  sx: {
1830
1886
  display: "flex",
@@ -1840,48 +1896,57 @@ var bt = B(R((e, n) => {
1840
1896
  children: t
1841
1897
  })
1842
1898
  });
1843
- }, [y]);
1844
- return F(T, {
1899
+ }, [b]);
1900
+ return P(x, {
1845
1901
  className: "overflow-palette",
1846
1902
  sx: {
1847
1903
  display: "flex",
1848
1904
  flexDirection: "row",
1905
+ flexWrap: "nowrap",
1849
1906
  flex: "1 1 100%",
1850
1907
  width: "100%",
1851
1908
  maxWidth: "100%",
1909
+ minWidth: 0,
1910
+ overflow: "hidden",
1852
1911
  ...a
1853
1912
  },
1854
- ref: S([
1913
+ ref: n([
1855
1914
  c,
1856
1915
  l,
1857
- n
1916
+ r
1858
1917
  ]),
1859
1918
  ...o,
1860
- children: [P(T, {
1919
+ children: [N(x, {
1861
1920
  sx: {
1862
1921
  flexDirection: "row",
1863
1922
  display: "flex",
1923
+ flexWrap: "nowrap",
1864
1924
  maxWidth: "100%",
1865
1925
  flex: "1 1 100%",
1926
+ minWidth: 0,
1927
+ overflow: "hidden",
1866
1928
  alignItems: "center"
1867
1929
  },
1868
- children: _ ?? h
1869
- }), P(T, {
1930
+ children: _?.inline ?? h
1931
+ }), N(x, {
1870
1932
  className: "overflow-palette-popup-button",
1871
1933
  sx: {
1872
- display: y !== null && y.length === 0 ? "none" : "flex",
1873
- flex: "1 1 0"
1934
+ display: C || b === null || b.length !== 0 ? "flex" : "none",
1935
+ flex: "0 0 auto",
1936
+ alignItems: "center"
1874
1937
  },
1875
- children: P(ft, {
1876
- createPopupPanel: E,
1938
+ children: N(ht, {
1939
+ createPopupPanel: F,
1877
1940
  ref: d,
1878
- createTooltip: ({ children: e }, t) => P(i, {
1941
+ onPopupOpen: k,
1942
+ onPopupClose: ee,
1943
+ createTooltip: ({ children: e }, n) => N(t, {
1879
1944
  label: s("overflow.more"),
1880
1945
  description: s("overflow.moreDescription"),
1881
- disabled: t,
1946
+ disabled: n,
1882
1947
  children: e
1883
1948
  }),
1884
- icon: P(Y, { iconKey: "MoreHorizontal" })
1949
+ icon: N(Y, { iconKey: "MoreHorizontal" })
1885
1950
  })
1886
1951
  })]
1887
1952
  });
@@ -1895,7 +1960,7 @@ function Q() {
1895
1960
  return e;
1896
1961
  }, Q.apply(null, arguments);
1897
1962
  }
1898
- function xt(e, t) {
1963
+ function Tt(e, t) {
1899
1964
  if (e == null) return {};
1900
1965
  var n = {};
1901
1966
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -1904,7 +1969,7 @@ function xt(e, t) {
1904
1969
  }
1905
1970
  return n;
1906
1971
  }
1907
- var $, St = {
1972
+ var $, Et = {
1908
1973
  state: {},
1909
1974
  updateModal: function() {},
1910
1975
  hideModal: function() {},
@@ -1918,12 +1983,12 @@ var $, St = {
1918
1983
  update: function() {}
1919
1984
  };
1920
1985
  }
1921
- }, Ct = oe(void 0);
1986
+ }, Dt = ie(void 0);
1922
1987
  (function(e) {
1923
1988
  e.SHOW = "SHOW", e.HIDE = "HIDE", e.UPDATE = "UPDATE", e.DESTROY = "DESTROY", e.DESTROY_BY_ROOT_ID = "DESTROY_BY_ROOT_ID", e.UNKNOWN = "UNKNOWN";
1924
1989
  })($ ||= {});
1925
- var wt = {};
1926
- function Tt(e, t) {
1990
+ var Ot = {};
1991
+ function kt(e, t) {
1927
1992
  switch (t.type) {
1928
1993
  case $.SHOW:
1929
1994
  var n, r = t.payload, i = r.id, a = r.component, o = r.props, s = r.options;
@@ -1952,38 +2017,38 @@ function Tt(e, t) {
1952
2017
  default: throw Error("Unexpected action");
1953
2018
  }
1954
2019
  }
1955
- var Et = "[ERROR]: Modal ID is missing", Dt = function(e) {
2020
+ var At = "[ERROR]: Modal ID is missing", jt = function(e) {
1956
2021
  e === void 0 && (e = 8);
1957
2022
  for (var t = [], n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", r = 0; r < e; r++) t[r] = n.charAt(Math.floor(62 * Math.random()));
1958
2023
  return t.join("");
1959
- }, Ot = ["open"];
1960
- function kt(e) {
1961
- 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 = I.useReducer(Tt, wt), l = c[0], u = c[1], d = I.useCallback(function(e, t) {
1962
- var n = xt(t, Ot);
2024
+ }, Mt = ["open"];
2025
+ function Nt(e) {
2026
+ 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 = F.useReducer(kt, Ot), l = c[0], u = c[1], d = F.useCallback(function(e, t) {
2027
+ var n = Tt(t, Mt);
1963
2028
  e ? u({
1964
2029
  type: $.UPDATE,
1965
2030
  payload: {
1966
2031
  id: e,
1967
2032
  props: n
1968
2033
  }
1969
- }) : console.error(Et);
1970
- }, [u]), f = I.useCallback(function(e) {
2034
+ }) : console.error(At);
2035
+ }, [u]), f = F.useCallback(function(e) {
1971
2036
  e ? u({
1972
2037
  type: $.HIDE,
1973
2038
  payload: { id: e }
1974
- }) : console.error(Et);
1975
- }, [u]), p = I.useCallback(function(e) {
2039
+ }) : console.error(At);
2040
+ }, [u]), p = F.useCallback(function(e) {
1976
2041
  e ? u({
1977
2042
  type: $.DESTROY,
1978
2043
  payload: { id: e }
1979
- }) : console.error(Et);
1980
- }, [u]), m = I.useCallback(function(e) {
2044
+ }) : console.error(At);
2045
+ }, [u]), m = F.useCallback(function(e) {
1981
2046
  e ? u({
1982
2047
  type: $.DESTROY_BY_ROOT_ID,
1983
2048
  payload: { rootId: e }
1984
2049
  }) : console.error("[ERROR]: Modal root ID is missing");
1985
- }, [u]), h = I.useCallback(function(e, t, n) {
1986
- var r = Dt(8);
2050
+ }, [u]), h = F.useCallback(function(e, t, n) {
2051
+ var r = jt(8);
1987
2052
  return n && n.rootId && (r = n.rootId + "." + r), u({
1988
2053
  type: $.SHOW,
1989
2054
  payload: {
@@ -2009,20 +2074,20 @@ function kt(e) {
2009
2074
  f,
2010
2075
  p,
2011
2076
  d
2012
- ]), g = a ? L : ie;
2013
- return I.createElement(Ct.Provider, { value: {
2077
+ ]), g = a ? ne : te;
2078
+ return F.createElement(Dt.Provider, { value: {
2014
2079
  state: l,
2015
2080
  updateModal: d,
2016
2081
  hideModal: f,
2017
2082
  destroyModal: p,
2018
2083
  showModal: h,
2019
2084
  destroyModalsByRootId: m
2020
- } }, t, I.createElement(g, Object.assign({}, a && { fallback: s }), Object.keys(l).map(function(e) {
2085
+ } }, t, F.createElement(g, Object.assign({}, a && { fallback: s }), Object.keys(l).map(function(e) {
2021
2086
  var t = l[e], n = t.component, i = t.props, a = t.options, o = function() {
2022
2087
  var t, n;
2023
2088
  i != null && i.onExited && i.onExited.apply(i, arguments), i != null && (t = i.TransitionProps) != null && t.onExited && (n = i.TransitionProps).onExited.apply(n, arguments), p(e);
2024
2089
  }, s = {};
2025
- return s = r ? { onExited: o } : { TransitionProps: Q({}, i?.TransitionProps, { onExited: o }) }, I.createElement(n, Object.assign({}, i, {
2090
+ return s = r ? { onExited: o } : { TransitionProps: Q({}, i?.TransitionProps, { onExited: o }) }, F.createElement(n, Object.assign({}, i, {
2026
2091
  key: e,
2027
2092
  onClose: function() {
2028
2093
  a && a.hideOnClose && f(e), a && a.destroyOnClose && a.hideOnClose && p(e), i && i.onClose && i.onClose.apply(i, arguments);
@@ -2030,27 +2095,27 @@ function kt(e) {
2030
2095
  }, a && !a.destroyOnClose && s));
2031
2096
  })));
2032
2097
  }
2033
- var At = { enforceProvider: !1 };
2034
- function jt(e) {
2035
- Object.assign(At, e);
2098
+ var Pt = { enforceProvider: !1 };
2099
+ function Ft(e) {
2100
+ Object.assign(Pt, e);
2036
2101
  }
2037
- function Mt() {
2038
- return At;
2102
+ function It() {
2103
+ return Pt;
2039
2104
  }
2040
- var Nt = ["showModal", "destroyModalsByRootId"], Pt = { disableAutoDestroy: !1 };
2041
- function Ft(e) {
2042
- e === void 0 && (e = Pt);
2043
- var t = Q({}, Pt, e).disableAutoDestroy, n = function() {
2044
- var e = ce(Ct);
2045
- if (Mt().enforceProvider && e === void 0) throw Error("useModalContext must be used within a ModalProvider");
2046
- return e || St;
2047
- }(), r = n.showModal, i = n.destroyModalsByRootId, a = xt(n, Nt), o = G(Dt(6));
2048
- return H(function() {
2105
+ var Lt = ["showModal", "destroyModalsByRootId"], Rt = { disableAutoDestroy: !1 };
2106
+ function zt(e) {
2107
+ e === void 0 && (e = Rt);
2108
+ var t = Q({}, Rt, e).disableAutoDestroy, n = function() {
2109
+ var e = oe(Dt);
2110
+ if (It().enforceProvider && e === void 0) throw Error("useModalContext must be used within a ModalProvider");
2111
+ return e || Et;
2112
+ }(), r = n.showModal, i = n.destroyModalsByRootId, a = Tt(n, Lt), o = U(jt(6));
2113
+ return B(function() {
2049
2114
  return function() {
2050
2115
  !t && i && i(o.current);
2051
2116
  };
2052
2117
  }, [t, i]), Q({
2053
- showModal: V(function(e, t, n) {
2118
+ showModal: z(function(e, t, n) {
2054
2119
  return r(e, t, Q({
2055
2120
  rootId: o.current,
2056
2121
  hideOnClose: !0
@@ -2059,10 +2124,29 @@ function Ft(e) {
2059
2124
  destroyModalsByRootId: i
2060
2125
  }, a);
2061
2126
  }
2062
- function It(e) {
2063
- let [t, n] = K(() => /* @__PURE__ */ new Map()), r = G(null);
2127
+ var Bt = ie(void 0), Vt = ({ error: e }) => {
2128
+ let t = oe(Bt);
2129
+ return B(() => {
2130
+ t?.(e);
2131
+ }, [e]), null;
2132
+ };
2133
+ function Ht(e) {
2134
+ let t = he(e, { renderError: (e) => N(Vt, { error: e }) });
2135
+ return (e) => {
2136
+ let { onLoadError: n, ...r } = e;
2137
+ return N(Bt.Provider, {
2138
+ value: n,
2139
+ children: N(ne, {
2140
+ fallback: null,
2141
+ children: N(t, { ...r })
2142
+ })
2143
+ });
2144
+ };
2145
+ }
2146
+ function Ut(e) {
2147
+ let [t, n] = W(() => /* @__PURE__ */ new Map()), r = U(null);
2064
2148
  r.current === null && (r.current = /* @__PURE__ */ new Map());
2065
- let { showModal: i, updateModal: a, destroyModal: o, hideModal: s } = Ft({ disableAutoDestroy: !0 });
2149
+ let { showModal: i, updateModal: a, destroyModal: o, hideModal: s } = zt({ disableAutoDestroy: !0 });
2066
2150
  return (c, l, u, d) => new Promise((f, p) => {
2067
2151
  let m = !1;
2068
2152
  u?.disableAutoDestroy !== void 0 && (m = u.disableAutoDestroy, delete (u = { ...u }).disableAutoDestroy);
@@ -2091,6 +2175,10 @@ function It(e) {
2091
2175
  }), t;
2092
2176
  }), f(e);
2093
2177
  },
2178
+ onLoadError: (e) => {
2179
+ let r = t.get(c);
2180
+ n((e) => (e.delete(c), e)), r?.id && o(r.id), p(e);
2181
+ },
2094
2182
  disableAutoDestroy: m,
2095
2183
  revealToken: 0,
2096
2184
  startHidden: h,
@@ -2112,7 +2200,7 @@ function It(e) {
2112
2200
  }
2113
2201
  if (!l) return void p(`Invalid function for window '${c}'`);
2114
2202
  let v = r.current.get(c);
2115
- v || (v = z(l), r.current.set(c, v));
2203
+ v || (v = Ht(l), r.current.set(c, v));
2116
2204
  let y = i(v, g, { destroyOnClose: !m });
2117
2205
  n((e) => (e.set(c, {
2118
2206
  id: y.id,
@@ -2121,10 +2209,10 @@ function It(e) {
2121
2209
  }), e)), h && f(null);
2122
2210
  });
2123
2211
  }
2124
- var Lt = (e) => {
2125
- let { showModal: t } = Ft();
2212
+ var Wt = (e) => {
2213
+ let { showModal: t } = zt();
2126
2214
  return (n) => new Promise((r) => {
2127
- let i = t(y, {
2215
+ let i = t(g, {
2128
2216
  ...e,
2129
2217
  ...n,
2130
2218
  onOption(e, t, i) {
@@ -2135,12 +2223,12 @@ var Lt = (e) => {
2135
2223
  }
2136
2224
  });
2137
2225
  });
2138
- }, Rt = z(() => import("./DL0kfA1tkA8abU1N.mjs")), zt = (e) => {
2139
- let { showModal: t } = Ft();
2226
+ }, Gt = Ht(ce("utils-mui:inputDialog", () => import("./byuVK5-9-HHDm7Fr.mjs"), { tier: "common" }).load), Kt = (e) => {
2227
+ let { showModal: t } = zt();
2140
2228
  return (n) => {
2141
2229
  let { defaultOption: r = n.options?.[0], cancelOption: i = "Cancel", ...a } = n;
2142
- return new Promise((n) => {
2143
- let o = t(Rt, {
2230
+ return new Promise((n, o) => {
2231
+ let s = t(Gt, {
2144
2232
  ...e,
2145
2233
  defaultOption: r,
2146
2234
  cancelOption: i,
@@ -2158,22 +2246,25 @@ var Lt = (e) => {
2158
2246
  });
2159
2247
  },
2160
2248
  onDone: () => {
2161
- a?.onDone?.(), o.hide();
2249
+ a?.onDone?.(), s.hide();
2250
+ },
2251
+ onLoadError: (e) => {
2252
+ s.destroy(), o(e);
2162
2253
  }
2163
2254
  });
2164
2255
  });
2165
2256
  };
2166
- }, Bt = B(R((e, t) => {
2167
- let { commandKey: n, command: r, disabled: a, shortcut: o, children: s, ...c } = e, [l] = ye(n ?? []), u = r ?? l, d = u?.getShortcut();
2168
- return P(i, {
2169
- ref: t,
2257
+ }, qt = R(L((e, n) => {
2258
+ let { commandKey: r, command: i, disabled: a, shortcut: o, children: s, ...c } = e, [l] = _e(r ?? []), u = i ?? l, d = u?.getShortcut();
2259
+ return N(t, {
2260
+ ref: n,
2170
2261
  label: a === void 0 ? "" : u?.getLabel(),
2171
2262
  shortcut: o === void 0 ? Array.isArray(d) ? d[0] : d : o,
2172
2263
  description: u?.getDescription(),
2173
2264
  disabled: a,
2174
2265
  componentDisabled: u?.disabled(),
2175
2266
  ...c,
2176
- children: P("div", {
2267
+ children: N("div", {
2177
2268
  style: {
2178
2269
  display: "flex",
2179
2270
  flex: "1 1 0%"
@@ -2181,69 +2272,75 @@ var Lt = (e) => {
2181
2272
  children: s
2182
2273
  })
2183
2274
  });
2184
- })), Vt = we;
2185
- function Ht() {
2186
- let e = G(null);
2275
+ })), Jt = Ce;
2276
+ function Yt() {
2277
+ let e = U(null);
2187
2278
  return {
2188
- ripple: W(() => P(Vt, {
2279
+ ripple: H(() => N(Jt, {
2189
2280
  ref: e,
2190
2281
  center: !1
2191
2282
  }), []),
2192
- trigger: V(() => {
2283
+ trigger: z(() => {
2193
2284
  e.current?.start(void 0, { center: !0 }), setTimeout(() => e.current?.stop(), 180);
2194
2285
  }, [])
2195
2286
  };
2196
2287
  }
2197
- var Ut = P(Y, {}), Wt = B(R((e, t) => {
2198
- let { commandKey: n, command: r, groupKey: i, icon: a, label: o, showLabel: s = !1, disabled: c, variant: l = J.Toolbar, shortcut: u, commandState: d, propsTooltip: f, ...p } = e, { ripple: m, trigger: h } = Ht(), g = W(() => ({ onExecute() {
2288
+ var Xt = N(Y, {}), Zt = R(L((e, t) => {
2289
+ let { commandKey: n, command: r, groupKey: i, icon: a, label: o, showLabel: s = !1, disabled: c, variant: l = J.Toolbar, shortcut: u, commandState: d, propsTooltip: f, ...p } = e, { ripple: m, trigger: h } = Yt(), g = H(() => ({ onExecute() {
2199
2290
  h();
2200
- } }), [h]), [_] = ye(n ?? [], g), v = r ?? _, y = V((e) => {
2291
+ } }), [h]), [_] = _e(n ?? [], g), v = r ?? _, y = z((e) => {
2201
2292
  e.button === 0 && e.preventDefault();
2202
- }, []), b = V(async (e) => {
2293
+ }, []), b = z(async (e) => {
2203
2294
  e.button === 0 && v && await v.execute(d);
2204
- }, [v, d]), x = V((e) => {
2295
+ }, [v, d]), x = z((e) => {
2205
2296
  e.keyCode !== X.Enter && e.keyCode !== X.Space || v?.execute(d);
2206
- }, [v, d]), S = W(() => {
2207
- if (a === null) return Ut;
2297
+ }, [v, d]), S = c ?? (!v || v.disabled()), C = v?.getState(), w = H(() => {
2298
+ if (a === null) return Xt;
2208
2299
  let e;
2209
- return e = typeof a == "function" ? v ? a(v) : void 0 : a, e ||= v?.getIcon(i), e ? (typeof e == "string" && (e = P(Y, { iconKey: e })), e) : l === J.Toolbar || v?.getState() ? void 0 : Ut;
2210
- }, [v?.getIcon(i), a]), C = c ?? (!v || v.disabled()), w = v?.getState(), T = {
2300
+ return e = typeof a == "function" ? v ? a(v) : void 0 : a, e ||= v?.getIcon(i), e ? (typeof e == "string" && (e = N(Y, { iconKey: e })), e) : l === J.Toolbar || C ? void 0 : Xt;
2301
+ }, [
2302
+ v,
2303
+ i,
2304
+ a,
2305
+ C,
2306
+ l
2307
+ ]), T = {
2211
2308
  tabIndex: 0,
2212
2309
  ref: t,
2213
- selected: !!w,
2214
- icon: l === J.Toolbar ? s ? Ee(S, o ?? v?.getLabel(i)) : S : P(yt, {
2215
- selected: w ?? !1,
2216
- children: S
2310
+ selected: !!C,
2311
+ icon: l === J.Toolbar ? s ? Te(w, o ?? v?.getLabel(i)) : w : N(St, {
2312
+ selected: C ?? !1,
2313
+ children: w
2217
2314
  }),
2218
2315
  disableRipple: !0,
2219
- disabled: C,
2316
+ disabled: S,
2220
2317
  onMouseDown: y,
2221
2318
  onMouseUp: b,
2222
2319
  onKeyDown: x
2223
2320
  }, E;
2224
- return E = l === J.Menuitem ? F(ut, {
2321
+ return E = l === J.Menuitem ? P(pt, {
2225
2322
  ...p,
2226
2323
  ...T,
2227
2324
  children: [o ?? v?.getLabel(i), m]
2228
- }) : P(st, {
2325
+ }) : N(lt, {
2229
2326
  ...p,
2230
2327
  ...T,
2231
2328
  children: m
2232
- }), o || v?.getLabel() ? (C && (E = P("div", { children: E })), E = P(Bt, {
2329
+ }), o || v?.getLabel() ? (S && (E = N("div", { children: E })), E = N(qt, {
2233
2330
  commandKey: n,
2234
2331
  command: r,
2235
- disabled: C,
2332
+ disabled: S,
2236
2333
  placement: l === J.Toolbar ? "bottom-start" : "right-start",
2237
2334
  shortcut: u,
2238
2335
  ...f,
2239
2336
  children: E
2240
2337
  }), E) : E;
2241
2338
  }));
2242
- Wt.displayName = "CommandButton";
2243
- var Gt = P(Y, {}), Kt = B(R((e, t) => {
2244
- let { commandKey: n, groupKey: r, icon: i, commandState: a, label: o, variant: s = J.Toolbar, disabled: c, parseInput: l, inputProps: u, inputRef: d, ...f } = e, { ripple: p, trigger: m } = Ht(), h = W(() => ({ onExecute() {
2339
+ Zt.displayName = "CommandButton";
2340
+ var Qt = N(Y, {}), $t = R(L((e, t) => {
2341
+ let { commandKey: n, groupKey: r, icon: i, commandState: a, label: o, variant: s = J.Toolbar, disabled: c, parseInput: l, inputProps: u, inputRef: d, ...f } = e, { ripple: p, trigger: m } = Yt(), h = H(() => ({ onExecute() {
2245
2342
  m();
2246
- } }), [m]), g = ye(n ?? [], h)[0], _ = () => g?.getState()?.toString() || "", [v, y] = K(""), b = G(_()), x = Z(() => {
2343
+ } }), [m]), g = _e(n ?? [], h)[0], _ = () => g?.getState()?.toString() || "", [v, y] = W(""), b = U(_()), x = Z(() => {
2247
2344
  let e = v;
2248
2345
  if (l) try {
2249
2346
  e = l(v);
@@ -2258,14 +2355,14 @@ var Gt = P(Y, {}), Kt = B(R((e, t) => {
2258
2355
  v,
2259
2356
  l
2260
2357
  ]);
2261
- H(() => {
2358
+ B(() => {
2262
2359
  y(_());
2263
2360
  }, [g?.getState()]);
2264
- let S = W(() => {
2265
- if (i === null) return Gt;
2361
+ let S = H(() => {
2362
+ if (i === null) return Qt;
2266
2363
  let e;
2267
- return e = typeof i == "function" ? g ? i(g) : void 0 : i, e ||= g?.getIcon(), e ? (typeof e == "string" && (e = P(Y, { iconKey: e })), e) : s === J.Toolbar || g?.getState() ? void 0 : Gt;
2268
- }, [g?.getIcon(), i]), C = W(() => o === void 0 ? g?.getLabel(r) : typeof o == "function" ? o() : o, [o, g?.getLabel(r)]), w = c ?? (!g || g.disabled()), T = W(() => P(D, {
2364
+ return e = typeof i == "function" ? g ? i(g) : void 0 : i, e ||= g?.getIcon(), e ? (typeof e == "string" && (e = N(Y, { iconKey: e })), e) : s === J.Toolbar || g?.getState() ? void 0 : Qt;
2365
+ }, [g?.getIcon(), i]), C = H(() => o === void 0 ? g?.getLabel(r) : typeof o == "function" ? o() : o, [o, g?.getLabel(r)]), E = c ?? (!g || g.disabled()), D = H(() => N(w, {
2269
2366
  ...f,
2270
2367
  sx: {
2271
2368
  paddingTop: "0px",
@@ -2280,8 +2377,8 @@ var Gt = P(Y, {}), Kt = B(R((e, t) => {
2280
2377
  onMouseUp: (e) => {
2281
2378
  e.button === 0 && e.stopPropagation();
2282
2379
  },
2283
- children: P(ee, {
2284
- disabled: w,
2380
+ children: N(T, {
2381
+ disabled: E,
2285
2382
  inputRef: d,
2286
2383
  inputProps: {
2287
2384
  tabIndex: 0,
@@ -2331,10 +2428,10 @@ var Gt = P(Y, {}), Kt = B(R((e, t) => {
2331
2428
  })
2332
2429
  }), [
2333
2430
  v,
2334
- w,
2431
+ E,
2335
2432
  u,
2336
2433
  d
2337
- ]), E = {
2434
+ ]), O = {
2338
2435
  tabIndex: 0,
2339
2436
  ref: t,
2340
2437
  icon: S,
@@ -2349,32 +2446,32 @@ var Gt = P(Y, {}), Kt = B(R((e, t) => {
2349
2446
  onKeyDown: (e) => {
2350
2447
  e.keyCode !== X.Enter && e.keyCode !== X.Tab || x();
2351
2448
  }
2352
- }, O;
2353
- return O = s === J.Menuitem ? F(ut, {
2449
+ }, k;
2450
+ return k = s === J.Menuitem ? P(pt, {
2354
2451
  ...f,
2355
- ...E,
2452
+ ...O,
2356
2453
  children: [
2357
2454
  C,
2358
- T,
2455
+ D,
2359
2456
  p
2360
2457
  ]
2361
- }) : P(st, {
2458
+ }) : N(lt, {
2362
2459
  ...f,
2363
- ...E,
2460
+ ...O,
2364
2461
  children: p
2365
- }), g?.getLabel() ? ((g.disabled() || c) && (O = P("div", { children: O })), O = P(Bt, {
2462
+ }), g?.getLabel() ? ((g.disabled() || c) && (k = N("div", { children: k })), k = N(qt, {
2366
2463
  commandKey: n,
2367
2464
  placement: s === J.Toolbar ? "bottom-start" : "right-start",
2368
- children: O
2369
- }), O) : O;
2370
- })), qt = B(R((e, t) => {
2371
- let { variant: n = J.Toolbar, quickCommand: r, onQuickClick: a, commandState: o, disabled: s, label: c, icon: l, createPopupPanel: u, tooltip: d, selected: f, groupKey: p, ...m } = e, { ripple: h, trigger: g } = Ht(), _ = W(() => ({ onExecute() {
2465
+ children: k
2466
+ }), k) : k;
2467
+ })), en = R(L((e, n) => {
2468
+ let { variant: r = J.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() {
2372
2469
  g();
2373
- } }), [g]), [v] = ye(r ?? [], _), { label: y, icon: b } = W(() => {
2470
+ } }), [g]), [v] = _e(i ?? [], _), { label: y, icon: b } = H(() => {
2374
2471
  let e = null;
2375
2472
  c && (e = typeof c == "function" ? v ? c(v) : null : c), e ||= v?.getLabel?.(p);
2376
2473
  let t = l;
2377
- return t ||= v?.getIcon?.(p), typeof t == "string" ? t = P(Y, { iconKey: t }) : typeof t == "function" && (t = v ? t(v) : void 0), {
2474
+ return t ||= v?.getIcon?.(p), typeof t == "string" ? t = N(Y, { iconKey: t }) : typeof t == "function" && (t = v ? t(v) : void 0), {
2378
2475
  label: e,
2379
2476
  icon: t
2380
2477
  };
@@ -2383,36 +2480,36 @@ var Gt = P(Y, {}), Kt = B(R((e, t) => {
2383
2480
  c,
2384
2481
  l
2385
2482
  ]), x = {
2386
- disabled: s || !(v || !r),
2483
+ disabled: s || !(v || !i),
2387
2484
  ripple: h,
2388
2485
  onQuickClick: a,
2389
2486
  tooltip: d,
2390
2487
  label: y,
2391
2488
  icon: b
2392
2489
  };
2393
- (y || d) && (x.createTooltip = ({ children: e }, t) => P(i, {
2490
+ (y || d) && (x.createTooltip = ({ children: e }, n) => N(t, {
2394
2491
  label: y,
2395
2492
  description: d,
2396
- disabled: t,
2493
+ disabled: n,
2397
2494
  children: e
2398
2495
  }));
2399
2496
  let S = Z((e) => u?.(e), [u]), C = Z((e) => v?.execute(o), [v]);
2400
- return v ? (x.propsQuickButton = {}, x.propsQuickButton.createTooltip = ({ children: e, placement: t }, i) => P(Bt, {
2401
- commandKey: r,
2402
- placement: t ?? n === J.Toolbar ? "bottom-start" : "right-start",
2403
- disabled: i,
2497
+ return v ? (x.propsQuickButton = {}, x.propsQuickButton.createTooltip = ({ children: e, placement: t }, n) => N(qt, {
2498
+ commandKey: i,
2499
+ placement: t ?? r === J.Toolbar ? "bottom-start" : "right-start",
2500
+ disabled: n,
2404
2501
  children: e
2405
- }), x.disabled = x.disabled ?? v?.disabled(), a || (x.onQuickClick = C)) : r && (x.onQuickClick = () => {}), x.selected = f ?? v?.getState(), x.createPopupPanel = S, n === J.Toolbar ? P(ft, {
2502
+ }), x.disabled = x.disabled ?? v?.disabled(), a || (x.onQuickClick = C)) : i && (x.onQuickClick = () => {}), x.selected = f ?? v?.getState(), x.createPopupPanel = S, r === J.Toolbar ? N(ht, {
2406
2503
  ...m,
2407
2504
  ...x,
2408
- ref: t
2409
- }) : P(ht, {
2505
+ ref: n
2506
+ }) : N(vt, {
2410
2507
  ...m,
2411
2508
  ...x,
2412
- ref: t
2509
+ ref: n
2413
2510
  });
2414
2511
  }));
2415
- function Jt(e, t = {}) {
2512
+ function tn(e, t = {}) {
2416
2513
  let { variant: n, dividerOrientation: r = "vertical", groupKey: i, commandState: a, propsCommandButton: o, propsCommandPopup: s, registry: c } = t, l = { ...o };
2417
2514
  n !== void 0 && (l.variant = n);
2418
2515
  let u = { ...s };
@@ -2427,10 +2524,10 @@ function Jt(e, t = {}) {
2427
2524
  icon: n?.getIcon?.(i),
2428
2525
  showLabel: n?.showLabel
2429
2526
  };
2430
- return (n?.render ? n.render(r, i) : P(Wt, { ...r })) ?? null;
2527
+ return (n?.render ? n.render(r, i) : N(Zt, { ...r })) ?? null;
2431
2528
  }, f = (e) => {
2432
2529
  let t = typeof e == "string" ? e : e.key, n = typeof e == "string" ? void 0 : e;
2433
- if (!t) return ((e) => Array.isArray(e.members) ? e.render ? e.render({ ...u }, void 0) ?? null : P(Yt, {
2530
+ if (!t) return ((e) => Array.isArray(e.members) ? e.render ? e.render({ ...u }, void 0) ?? null : N(nn, {
2434
2531
  ...u,
2435
2532
  members: e.members,
2436
2533
  icon: e.getIcon?.(),
@@ -2439,7 +2536,7 @@ function Jt(e, t = {}) {
2439
2536
  }) : (e.render ? e.render({ ...u }, i) : null) ?? null)(e);
2440
2537
  let r = c?.get(t) ?? null;
2441
2538
  return r ? ((e, t, n) => {
2442
- if (Array.isArray(e.members)) return e.render ? e.render({ ...u }, t) ?? null : P(Yt, {
2539
+ if (Array.isArray(e.members)) return e.render ? e.render({ ...u }, t) ?? null : N(nn, {
2443
2540
  ...u,
2444
2541
  groupKey: t,
2445
2542
  icon: n?.getIcon?.(t),
@@ -2461,33 +2558,33 @@ function Jt(e, t = {}) {
2461
2558
  continue;
2462
2559
  }
2463
2560
  let n = f(t);
2464
- n && (h &&= (p.push(P(Me, { orientation: r }, "member-" + m++)), !1), p.push(ae(n, { key: "member-" + m++ })), g = !0);
2561
+ n && (h &&= (p.push(N(je, { orientation: r }, "member-" + m++)), !1), p.push(re(n, { key: "member-" + m++ })), g = !0);
2465
2562
  }
2466
2563
  return p;
2467
2564
  }
2468
- qt.displayName = "CommandPopupButton";
2469
- var Yt = B(R((e, t) => {
2470
- let { groupKey: n, members: r, registry: i, quickCommand: a, icon: o, label: s, showLabel: c, tooltip: l, commandState: u, disabled: d, ...f } = e, p = ve(), m = i ?? p, h = !r && n ? m.get(n) : null, g = h && Array.isArray(h.members) ? h : null, _ = W(() => r ?? (n ? m.resolveMembers(n) : null) ?? null, [
2565
+ en.displayName = "CommandPopupButton";
2566
+ var nn = R(L((e, t) => {
2567
+ let { groupKey: n, members: r, registry: i, quickCommand: a, icon: o, label: s, showLabel: c, tooltip: l, commandState: u, disabled: d, ...f } = e, p = ge(), 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, [
2471
2568
  r,
2472
2569
  n,
2473
2570
  m
2474
- ]), v = n, y = a ?? g?.defaultKey, b = o ?? g?.getIcon?.(v), x = s ?? g?.getLabel?.(v), S = c ?? g?.showLabel, C = l ?? g?.getDescription?.(v), w = W(() => {
2571
+ ]), v = n, y = a ?? g?.defaultKey, b = o ?? g?.getIcon?.(v), x = s ?? g?.getLabel?.(v), S = c ?? g?.showLabel, C = l ?? g?.getDescription?.(v), w = H(() => {
2475
2572
  let e = [], t = _ ?? [];
2476
2573
  for (let n = 0; n < t.length; n++) {
2477
2574
  let r = t[n];
2478
2575
  r && r !== "-" && (typeof r == "string" ? e.push(r) : r.key && e.push(r.key));
2479
2576
  }
2480
2577
  return e;
2481
- }, [_]), T = ye(y ? [y, ...w] : w), E = W(() => {
2578
+ }, [_]), T = _e(y ? [y, ...w] : w), E = H(() => {
2482
2579
  for (let e = 0; e < T.length; e++) {
2483
2580
  let t = T[e];
2484
2581
  if (t && !t.disabled()) return !1;
2485
2582
  }
2486
2583
  return !0;
2487
- }, [T]), D = V((e) => {
2584
+ }, [T]), D = z((e) => {
2488
2585
  let t = {};
2489
2586
  d !== void 0 && (t.disabled = d);
2490
- let n = Jt(_, {
2587
+ let n = tn(_, {
2491
2588
  variant: J.Menuitem,
2492
2589
  dividerOrientation: "horizontal",
2493
2590
  groupKey: v,
@@ -2496,7 +2593,7 @@ var Yt = B(R((e, t) => {
2496
2593
  propsCommandPopup: t,
2497
2594
  registry: m
2498
2595
  });
2499
- return Ze({
2596
+ return $e({
2500
2597
  ...e,
2501
2598
  children: n
2502
2599
  });
@@ -2507,7 +2604,7 @@ var Yt = B(R((e, t) => {
2507
2604
  u,
2508
2605
  d
2509
2606
  ]);
2510
- return _ ? P(qt, {
2607
+ return _ ? N(en, {
2511
2608
  ref: t,
2512
2609
  quickCommand: y,
2513
2610
  icon: b,
@@ -2520,18 +2617,18 @@ var Yt = B(R((e, t) => {
2520
2617
  ...f
2521
2618
  }) : null;
2522
2619
  }));
2523
- Yt.displayName = "CommandGroup";
2524
- var Xt = P(Y, { iconKey: "Check" }), Zt = (e) => {
2525
- let { commandKey: t, label: n, groupKey: r, icon: i, sx: a, ...o } = e, [s] = ye(t ?? []), c = W(() => {
2620
+ nn.displayName = "CommandGroup";
2621
+ var rn = N(Y, { iconKey: "Check" }), an = (e) => {
2622
+ let { commandKey: t, label: n, groupKey: r, icon: i, sx: a, ...o } = e, [s] = _e(t ?? []), c = H(() => {
2526
2623
  if (i !== void 0) return i;
2527
2624
  let e = s?.getIcon(r);
2528
- return e ? (typeof e == "string" && (e = P(Y, { iconKey: e })), e) : Xt;
2625
+ return e ? (typeof e == "string" && (e = N(Y, { iconKey: e })), e) : rn;
2529
2626
  }, [
2530
2627
  i,
2531
2628
  r,
2532
2629
  s
2533
2630
  ]);
2534
- return F(T, {
2631
+ return P(x, {
2535
2632
  sx: {
2536
2633
  display: "flex",
2537
2634
  flexDirection: "row",
@@ -2541,7 +2638,7 @@ var Xt = P(Y, { iconKey: "Check" }), Zt = (e) => {
2541
2638
  ...a
2542
2639
  },
2543
2640
  ...o,
2544
- children: [c, P(M, {
2641
+ children: [c, N(A, {
2545
2642
  component: "div",
2546
2643
  sx: {
2547
2644
  whiteSpace: "nowrap",
@@ -2553,13 +2650,13 @@ var Xt = P(Y, { iconKey: "Check" }), Zt = (e) => {
2553
2650
  children: n ?? s?.getLabel(r)
2554
2651
  })]
2555
2652
  });
2556
- }, Qt = B(R((e, t) => {
2557
- let { sx: n, propsCommandButton: r, parentFloat: i, groupKey: a, members: o, registry: s, renderToolbarPalette: c, children: l, ...u } = e, d = ve(), f = s ?? d, p = W(() => o ?? (a ? f.resolveMembers(a) : null) ?? null, [
2653
+ }, on = R(L((e, t) => {
2654
+ let { sx: n, propsCommandButton: r, parentFloat: i, groupKey: a, members: o, registry: s, renderToolbarPalette: c, children: l, ...u } = e, d = ge(), f = s ?? d, p = H(() => o ?? (a ? f.resolveMembers(a) : null) ?? null, [
2558
2655
  o,
2559
2656
  a,
2560
2657
  f,
2561
2658
  f.getVersion()
2562
- ]), m = Se(t, () => ({}), []), [h, g] = K(null), { reference: _ } = xe({
2659
+ ]), m = be(t, () => ({}), []), [h, g] = W(null), { reference: _ } = ye({
2563
2660
  label: "toolbar",
2564
2661
  anchor: m.current,
2565
2662
  parentFloat: i,
@@ -2569,17 +2666,17 @@ var Xt = P(Y, { iconKey: "Check" }), Zt = (e) => {
2569
2666
  e && requestAnimationFrame(() => {
2570
2667
  m.current?.contains(document.activeElement) && e.focus();
2571
2668
  });
2572
- }, [h]), y = W(() => ({
2669
+ }, [h]), y = H(() => ({
2573
2670
  dense: !0,
2574
2671
  outlined: !1
2575
- }), []), b = W(() => ({ ...r || {} }), [r]), x = W(() => ({
2672
+ }), []), b = H(() => ({ ...r || {} }), [r]), x = H(() => ({
2576
2673
  ...y,
2577
2674
  ...b
2578
- }), [y, b]), S = W(() => ({ ...b }), [x, r]), C = 0;
2675
+ }), [y, b]), S = H(() => ({ ...b }), [x, r]), C = 0;
2579
2676
  y.dense || (C += 2), y.outlined && C++;
2580
2677
  let w = 2;
2581
2678
  y.dense || (w = 4);
2582
- let T = W(() => {
2679
+ let T = H(() => {
2583
2680
  let e = {
2584
2681
  propsCommandButton: x,
2585
2682
  propsCommandPopup: {
@@ -2587,7 +2684,7 @@ var Xt = P(Y, { iconKey: "Check" }), Zt = (e) => {
2587
2684
  ...r
2588
2685
  }
2589
2686
  };
2590
- return c ? c(e) : p ? P(bt, { children: Jt(p, {
2687
+ return c ? c(e) : p ? N(wt, { children: tn(p, {
2591
2688
  dividerOrientation: "vertical",
2592
2689
  groupKey: a,
2593
2690
  propsCommandButton: e.propsCommandButton,
@@ -2603,7 +2700,7 @@ var Xt = P(Y, { iconKey: "Check" }), Zt = (e) => {
2603
2700
  a,
2604
2701
  f
2605
2702
  ]);
2606
- return P(j, {
2703
+ return N(ee, {
2607
2704
  variant: "dense",
2608
2705
  sx: {
2609
2706
  minHeight: "unset",
@@ -2631,7 +2728,7 @@ var Xt = P(Y, { iconKey: "Check" }), Zt = (e) => {
2631
2728
  h && e.which === X.Escape && h.focus();
2632
2729
  },
2633
2730
  ...u,
2634
- children: P("div", {
2731
+ children: N("div", {
2635
2732
  ref: m,
2636
2733
  style: {
2637
2734
  flex: "1 1 100%",
@@ -2642,9 +2739,9 @@ var Xt = P(Y, { iconKey: "Check" }), Zt = (e) => {
2642
2739
  alignItems: "center",
2643
2740
  maxWidth: "100%"
2644
2741
  },
2645
- children: P(he, {
2742
+ children: N(fe, {
2646
2743
  value: _,
2647
- children: P(fe, {
2744
+ children: N(le, {
2648
2745
  value: v,
2649
2746
  children: T
2650
2747
  })
@@ -2652,20 +2749,20 @@ var Xt = P(Y, { iconKey: "Check" }), Zt = (e) => {
2652
2749
  })
2653
2750
  });
2654
2751
  }));
2655
- Qt.displayName = "CommandToolbar";
2656
- var $t = B(R((e, t) => {
2657
- let { groupKey: n, members: r, registry: i, projectAs: a = "quick", defaultIcon: o, ...s } = e, c = ve(), l = i ?? c, u = W(() => r ?? (n ? l.resolveMembers(n) : null) ?? null, [
2752
+ on.displayName = "CommandToolbar";
2753
+ var sn = R(L((e, t) => {
2754
+ let { groupKey: n, members: r, registry: i, projectAs: a = "quick", defaultIcon: o, ...s } = e, c = ge(), l = i ?? c, u = H(() => r ?? (n ? l.resolveMembers(n) : null) ?? null, [
2658
2755
  r,
2659
2756
  n,
2660
2757
  l
2661
- ]), d = W(() => {
2758
+ ]), d = H(() => {
2662
2759
  let e = [], t = u ?? [];
2663
2760
  for (let n = 0; n < t.length; n++) {
2664
2761
  let r = t[n];
2665
2762
  r && r !== "-" && (typeof r == "string" ? e.push(r) : r.key && e.push(r.key));
2666
2763
  }
2667
2764
  return e;
2668
- }, [u]), f = ye(d), p = null, m = null;
2765
+ }, [u]), f = _e(d), p = null, m = null;
2669
2766
  for (let e = 0; !p && e < f.length; e++) {
2670
2767
  let t = f[e];
2671
2768
  t && !t.disabled() && t.getState() && (p = d[e], m = t.getIcon());
@@ -2677,7 +2774,7 @@ var $t = B(R((e, t) => {
2677
2774
  quickCommand: p ?? d[0],
2678
2775
  icon: void 0
2679
2776
  };
2680
- return P(Yt, {
2777
+ return N(nn, {
2681
2778
  ref: t,
2682
2779
  groupKey: n,
2683
2780
  members: r,
@@ -2686,5 +2783,5 @@ var $t = B(R((e, t) => {
2686
2783
  ...h
2687
2784
  });
2688
2785
  }));
2689
- $t.displayName = "ToggleGroupButton";
2690
- export { Le as AnimatedBouncingEllipsisIcon, Fe as AnimatedCircleIcon, Pe as AnimatedClockIcon, Ie as AnimatedFadingEllipsisIcon, Ve as AnimatedLoadingPanel, Re as AnimatedOrbitIcon, ze as AnimatedTraversingEllipsisIcon, r as ArrowDownIcon, x as ArrowRightIcon, C as ChipStrip, Ye as ClosingReason, Wt as CommandButton, Yt as CommandGroup, qt as CommandPopupButton, Qt as CommandToolbar, Bt as CommandTooltip, it as ContextMenu, Me as ExhibitDivider, $e as ExhibitFloatPanel, tt as ExhibitFloatProvider, st as ExhibitIconButton, dt as ExhibitMenuHeader, ut as ExhibitMenuItem, gt as ExhibitOptionButton, ft as ExhibitPopupIconButton, ht as ExhibitPopupMenuItem, i as ExhibitTooltip, Kt as InputCommandButton, _ as InternalWindow, Zt as LabelIcon, kt as ModalProvider, nt as NestingPopupButton, y as OptionsDialog, bt as OverflowPalette, Je as PopupAutoFocus, Xe as PopupButtonType, yt as SelectedIcon, v as SimpleTooltip, Ge as StackTrace, Ke as StackTraceErrorPanel, $t as ToggleGroupButton, Te as buttonLabelSx, Ee as composeButtonContent, Qe as createDownArrow, b as createExhibitTheme, ke as createScrollButton, w as createStrokeShadowFilter, Ze as defaultCreatePopupPanel, s as elevateColor, c as elevatedSurface, Mt as getModalConfig, o as getScrollbarCssVariables, g as hexToRGB, m as optionIdentity, p as overlayAlpha, u as raisedSurface, l as raisedSurfaceAt, d as registerUtilsMuiLocales, Jt as renderMembers, Oe as renderScrollButtonEdge, je as renderScrollButtonEnd, Ae as renderScrollButtonStart, f as scrollbarTheming, jt as setModalConfig, a as strokeShadowFilter, h as toShortcutElements, zt as useInputDialog, It as useLazyWindow, Ft as useModal, Lt as useOptionsDialog };
2786
+ sn.displayName = "ToggleGroupButton";
2787
+ export { Ie as AnimatedBouncingEllipsisIcon, Pe as AnimatedCircleIcon, Ne as AnimatedClockIcon, Fe as AnimatedFadingEllipsisIcon, He as AnimatedLoadingPanel, Le as AnimatedOrbitIcon, Re as AnimatedTraversingEllipsisIcon, p as ArrowDownIcon, u 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, m as InternalWindow, an as LabelIcon, Ye as LazyLoadErrorPanel, dt as MenuItemInsets, Nt as ModalProvider, it as NestingPopupButton, g as OptionsDialog, wt as OverflowPalette, Xe as PopupAutoFocus, Qe as PopupButtonType, St as SelectedIcon, h as SimpleTooltip, Ke as StackTrace, qe as StackTraceErrorPanel, sn as ToggleGroupButton, we as buttonLabelSx, Te as composeButtonContent, et as createDownArrow, _ as createExhibitTheme, Oe as createScrollButton, s as createStrokeShadowFilter, $e as defaultCreatePopupPanel, i as elevateColor, It as getModalConfig, r as getScrollbarCssVariables, a as hexToRGB, Ve as hideLoadingPanel, Ht as lazyModal, d as optionIdentity, c as registerUtilsMuiLocales, tn as renderMembers, De as renderScrollButtonEdge, Ae as renderScrollButtonEnd, ke as renderScrollButtonStart, l as scrollbarTheming, Ft as setModalConfig, Be as showLoadingPanel, o as strokeShadowFilter, f as toShortcutElements, Kt as useInputDialog, Ut as useLazyWindow, zt as useModal, Wt as useOptionsDialog };