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

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