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

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.10
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 "./Cijezc4MPpSmVgKY.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,128 @@ 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
+ Ye.displayName = "LazyLoadErrorPanel";
965
+ var Xe = {
922
966
  Popup: "popup",
923
967
  Anchor: "anchor"
924
- }, Ye = {
968
+ }, Ze = {
925
969
  ByPopup: "popupDone",
926
970
  Cancel: "popupCancel",
927
971
  ClickAway: "clickAway"
928
- }, Xe = {
972
+ }, Qe = {
929
973
  Toolbar: "toolbar",
930
974
  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),
975
+ }, $e = (e) => {
976
+ let { closeFloat: t, closeFloatAll: n, floatReference: r, popupContainer: i, children: a, className: o, sx: s, ...c } = e;
977
+ return j(y, {
978
+ className: v("menu", o),
935
979
  sx: {
936
980
  display: "flex",
937
981
  flexDirection: "column",
938
982
  paddingTop: (e) => `${e.shape.borderRadius}px`,
939
983
  paddingBottom: (e) => `${e.shape.borderRadius}px`,
940
- ...c
984
+ ...s
941
985
  },
942
- ...l,
943
- children: o
986
+ ...c,
987
+ children: a
944
988
  });
945
- }, Qe = (e, t, n) => {
946
- let i = "";
947
- return n && (i = (i ? i + " " : "") + "rotate(180deg)"), P(r, {
989
+ }, et = (e, t, n) => {
990
+ let r = "";
991
+ return n && (r = (r ? r + " " : "") + "rotate(180deg)"), j(f, {
948
992
  style: {
949
993
  marginLeft: e ? void 0 : t ? "-0.25rem" : "-3px",
950
994
  marginRight: e ? void 0 : t ? "-0.25rem" : "-6px",
951
- transform: i
995
+ transform: r
952
996
  },
953
997
  color: "inherit"
954
998
  });
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(() => {
999
+ }, tt = z(R((e, t) => {
1000
+ let { open: n, anchorEl: r, anchorPosition: i, label: a, floatReference: o, createPopupPanel: s = $e, propsPopper: l, onMount: u, onClosing: d, onClose: f, onOpening: p, onOpen: m, children: h, sx: g, ..._ } = e, v = Z(d ?? (() => {}), [d]), y = Z(f ?? (() => {}), [f]), b = Z(p ?? (() => {}), [p]), x = Z(m ?? (() => {}), [m]), [S, C] = W(), w = U(null), T = Z((e, t) => {
1001
+ C(e), u?.(w.current, t);
1002
+ }, [u]), E = H(() => {
959
1003
  let e = {
960
1004
  popupContainer: S,
961
1005
  floatReference: o,
962
1006
  children: h,
963
1007
  ..._
964
1008
  }, t = s(e);
965
- return P(A, {
1009
+ return j(D, {
966
1010
  elevation: 8,
967
1011
  ref: w,
968
1012
  sx: {
@@ -972,7 +1016,7 @@ var qe = (e, t = !1, n = !1, r = !1, i = (e) => e) => se(e) ? e : e instanceof E
972
1016
  outline: "none",
973
1017
  backgroundColor: "var(--sxl-color-elevated, var(--sxl-color-base-100, #fff))",
974
1018
  border: "1px solid var(--sxl-color-elevated-border, transparent)",
975
- "&.MuiPaper-root": (e) => f(e)
1019
+ "&.MuiPaper-root": (e) => c(e)
976
1020
  },
977
1021
  tabIndex: 0,
978
1022
  children: t
@@ -983,7 +1027,7 @@ var qe = (e, t = !1, n = !1, r = !1, i = (e) => e) => se(e) ? e : e instanceof E
983
1027
  S,
984
1028
  o
985
1029
  ]);
986
- return P(pe, {
1030
+ return j(le, {
987
1031
  ref: t,
988
1032
  anchorEl: r,
989
1033
  anchorPosition: i,
@@ -994,29 +1038,29 @@ var qe = (e, t = !1, n = !1, r = !1, i = (e) => e) => se(e) ? e : e instanceof E
994
1038
  onOpen: x,
995
1039
  onClosing: v,
996
1040
  onClose: y,
997
- ...c,
1041
+ ...l,
998
1042
  children: E
999
1043
  });
1000
1044
  }));
1001
- $e.displayName = "ExhibitFloatPanel";
1002
- var et = (e) => P($e, { ...e }), tt = (e) => P(me, {
1003
- renderFloatPanel: et,
1004
- createPopupPanel: Ze,
1045
+ tt.displayName = "ExhibitFloatPanel";
1046
+ var nt = (e) => j(tt, { ...e }), rt = (e) => j(ue, {
1047
+ renderFloatPanel: nt,
1048
+ createPopupPanel: $e,
1005
1049
  ...e
1006
- }), nt = B(R((e, t) => {
1050
+ }), it = z(R((e, t) => {
1007
1051
  let { nestedChildren: n, variant: r, disabled: i, createPopupPanel: a, ...o } = e, s = {
1008
1052
  disabled: i,
1009
1053
  createPopupPanel: Z((e) => {
1010
- if (!n || n.length === 0) return P(N, {});
1054
+ if (!n || n.length === 0) return j(A, {});
1011
1055
  let { popupContainer: r, floatReference: i, ref: a, ...o } = e, s = [];
1012
1056
  for (let e = 0; e < n.length; e++) {
1013
1057
  let t = n[e];
1014
- t && s.push(P(nt, {
1058
+ t && s.push(j(it, {
1015
1059
  ...o,
1016
1060
  ...t
1017
1061
  }, e));
1018
1062
  }
1019
- return F(T, {
1063
+ return M(y, {
1020
1064
  ref: t,
1021
1065
  sx: {
1022
1066
  display: "flex",
@@ -1027,25 +1071,23 @@ var et = (e) => P($e, { ...e }), tt = (e) => P(me, {
1027
1071
  children: [
1028
1072
  "Children here",
1029
1073
  s,
1030
- P(ut, { children: "Close other children" })
1074
+ j(pt, { children: "Close other children" })
1031
1075
  ]
1032
1076
  });
1033
1077
  }, [n]),
1034
1078
  ...o
1035
1079
  };
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(() => ({
1080
+ return j(r === Qe.Toolbar ? ht : vt, { ...s });
1081
+ })), at = { placement: "right-start" }, ot = z(R((e, t) => {
1082
+ let { children: n, sx: r, parentFloat: i, createPopupPanel: a, propsPopper: o = at, label: s, ...c } = e;
1083
+ if (!ne(n)) throw Error("Must supply a child component to enable a context menu.");
1084
+ let l = n, u = H(() => ({
1043
1085
  ...l?.props,
1044
1086
  ...c,
1045
1087
  onContextMenu: (e) => {
1046
1088
  l?.props?.onContextMenu?.(e), e.isDefaultPrevented() || (c?.onContextMenu?.(e), e.isDefaultPrevented() || (p(e), e.preventDefault()));
1047
1089
  }
1048
- }), [c, l?.props]), d = Z(a ?? (() => {}), [a]), [f, p] = K(null), { reference: m, component: h } = xe({
1090
+ }), [c, l?.props]), d = Z(a ?? (() => {}), [a]), [f, p] = W(null), { reference: m, component: h } = _e({
1049
1091
  label: s ?? "contextMenu",
1050
1092
  propsPopper: o,
1051
1093
  parentFloat: i,
@@ -1053,22 +1095,22 @@ var et = (e) => P($e, { ...e }), tt = (e) => P(me, {
1053
1095
  onClose: () => p(null),
1054
1096
  createPopupPanel: d
1055
1097
  });
1056
- return H(() => {
1098
+ return V(() => {
1057
1099
  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 = {
1100
+ }, [f]), M(A, { children: [te(n, u), h] });
1101
+ })), st = j(J, {}), ct = j(J, { iconKey: "Check" }), lt = z(R((e, n) => {
1102
+ 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
1103
  marginRight: "0px",
1062
1104
  padding: r ? "2px" : "7px",
1063
1105
  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`,
1106
+ color: (e) => u ? void 0 : e.palette.text.icon ?? e.palette.action.active,
1107
+ border: (e) => `solid ${i ? e.palette.divider : "transparent"} 1px`,
1066
1108
  "& .MuiTouchRipple-child": { borderRadius: (e) => `${e.shape.borderRadius}px !important` },
1067
1109
  "&.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`
1110
+ backgroundColor: (e) => G(e.palette.text.primary, e.palette.action.selectedOpacity),
1111
+ border: (e) => `solid ${i ? e.palette.text?.primary : e.palette.divider} 1px`
1070
1112
  },
1071
- "&.Mui-disabled": { border: (e) => `solid ${a ? e.palette.divider : "transparent"} 1px` },
1113
+ "&.Mui-disabled": { border: (e) => `solid ${i ? e.palette.divider : "transparent"} 1px` },
1072
1114
  "&.Mui-disabled > .icon path": {
1073
1115
  filter: "grayscale(65%)",
1074
1116
  opacity: ".8"
@@ -1077,77 +1119,85 @@ var et = (e) => P($e, { ...e }), tt = (e) => P(me, {
1077
1119
  outline: "solid transparent 1px",
1078
1120
  border: "1px solid transparent"
1079
1121
  },
1080
- ...f
1081
- }, S = {
1122
+ ...d
1123
+ }, w = {
1082
1124
  "&:hover:not(.Mui-disabled, [disabled])": {
1083
1125
  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
1126
+ border: (e) => `solid ${i ? e.palette.text?.primary : e.palette.divider} 1px`,
1127
+ "&.Mui-selected": { backgroundColor: (e) => G(e.palette.text.primary, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity) },
1128
+ "> .outline-hover": { outline: (e) => `solid ${i ? e.palette.text?.primary : e.palette.divider} 1px` },
1129
+ backgroundColor: (e) => G(e.palette.action.active, e.palette.action.hoverOpacity),
1130
+ "@media (hover: none)": { backgroundColor: "transparent" }
1088
1131
  },
1089
1132
  "&.Mui-focusVisible": {
1090
1133
  outline: (e) => `solid ${e.palette.primary.main} 1px`,
1091
1134
  border: (e) => `1px solid ${e.palette?.primary?.main}`,
1092
1135
  zIndex: 1
1093
1136
  }
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, {
1137
+ }, T = C;
1138
+ a || (T = oe.mergeContentful(C, w));
1139
+ let E = H(() => {
1140
+ let e = typeof s == "function" ? s() : s;
1141
+ return e === null ? e : e || (o === void 0 ? st : ct);
1142
+ }, [s, o]), D = M(S, {
1100
1143
  component: "div",
1101
- ref: t,
1102
- className: n({
1103
- "Mui-focusVisible": y,
1104
- "Mui-selected": s,
1105
- "Mui-disabled": p
1106
- }, m),
1144
+ ref: n,
1145
+ className: v({
1146
+ "Mui-focusVisible": b,
1147
+ "Mui-selected": o,
1148
+ "Mui-disabled": f
1149
+ }, p),
1107
1150
  onFocus: (e) => {
1108
- b(!0), h?.(e);
1151
+ x(!0), h?.(e);
1109
1152
  },
1110
1153
  onBlur: (e) => {
1111
- b(!1), g?.(e);
1154
+ x(!1), g?.(e);
1112
1155
  },
1113
1156
  size: "small",
1114
1157
  TouchRippleProps: { center: !1 },
1115
- sx: C,
1158
+ sx: T,
1116
1159
  edge: "end",
1117
1160
  ..._,
1118
- disabled: p || !1,
1119
- children: [w, u]
1161
+ disabled: f || !1,
1162
+ children: [E, l]
1120
1163
  });
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
- })
1164
+ if (c) {
1165
+ if (c.simple && c.label && !c.disabled) {
1166
+ let { label: e, description: t, maxWidth: n, shortcut: r, useModifierSymbols: i, componentDisabled: a, simple: o, chips: s, ref: l, ...u } = c;
1167
+ D = j(m, {
1168
+ disableInteractive: !0,
1169
+ title: e ?? "",
1170
+ ...u,
1171
+ children: j(y, {
1172
+ sx: { display: "flex" },
1173
+ children: D
1174
+ })
1175
+ });
1176
+ } else D = j(t, {
1177
+ children: D,
1178
+ ...c
1131
1179
  });
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(() => {
1180
+ }
1181
+ return D;
1182
+ })), ut = j(J, {}), dt = {
1183
+ marginLeft: "4px",
1184
+ marginRight: "4px",
1185
+ paddingLeft: "6px",
1186
+ paddingRight: "18px"
1187
+ }, ft = (e) => e.icon, pt = z(R((n, r) => {
1188
+ let { icon: i = ut, renderIcon: a = ft, className: o, onFocus: s, selected: c, onBlur: l, onMouseOver: u, onMouseOut: d, onMouseEnter: f, disabled: p, children: m, sx: h, propsTooltip: g, chips: _, primary: y, ...b } = n, x = ge(), [S, C] = W(!1), [w, D] = W(!1), O = H(() => {
1139
1189
  let e = a?.({
1140
- icon: r,
1190
+ icon: i,
1141
1191
  disabled: p,
1142
1192
  selected: c
1143
1193
  });
1144
- return e ? P(k, {
1145
- className: n({
1146
- "Mui-focusVisible": x,
1194
+ return e ? j(E, {
1195
+ className: v({
1196
+ "Mui-focusVisible": S,
1147
1197
  "Mui-hovered": w
1148
1198
  }),
1149
1199
  sx: {
1150
- "& .MuiSvgIcon-root": { color: (e) => v ? void 0 : e.palette.text.icon ?? e.palette.action.active },
1200
+ "& .MuiSvgIcon-root": { color: (e) => y ? void 0 : e.palette.text.icon ?? e.palette.action.active },
1151
1201
  "&.Mui-hovered:not(.Mui-disabled, [disabled])": { "& .MuiSvgIcon-root": { color: (e) => e.palette.text.primary } }
1152
1202
  },
1153
1203
  children: e
@@ -1155,46 +1205,44 @@ var et = (e) => P($e, { ...e }), tt = (e) => P(me, {
1155
1205
  }, [
1156
1206
  a,
1157
1207
  p,
1158
- r,
1159
- x,
1208
+ i,
1209
+ S,
1160
1210
  w,
1161
- v,
1211
+ y,
1162
1212
  c
1163
- ]), D = F(te, {
1164
- ref: t,
1213
+ ]), k = M(T, {
1214
+ ref: r,
1165
1215
  role: "menuitem",
1166
1216
  disabled: p,
1167
1217
  onMouseOver: (e) => {
1168
- u?.(e), e.isDefaultPrevented() || T(!0);
1218
+ u?.(e), e.isDefaultPrevented() || D(!0);
1169
1219
  },
1170
1220
  onMouseOut: (e) => {
1171
- d?.(e), e.isDefaultPrevented() || T(!1);
1221
+ d?.(e), e.isDefaultPrevented() || D(!1);
1172
1222
  },
1173
1223
  onMouseEnter: (e) => {
1174
- f?.(e), e.isDefaultPrevented() || b?.closeChild();
1224
+ f?.(e), e.isDefaultPrevented() || x?.closeChild();
1175
1225
  },
1176
1226
  TouchRippleProps: { center: !1 },
1177
- className: n({
1178
- "Mui-focusVisible": x,
1227
+ className: v({
1228
+ "Mui-focusVisible": S,
1179
1229
  "Mui-hovered": w
1180
1230
  }, o),
1181
1231
  onFocus: (e) => {
1182
- s?.(e), S(!0);
1232
+ s?.(e), C(!0);
1183
1233
  },
1184
1234
  onBlur: (e) => {
1185
- l?.(e), S(!1);
1235
+ l?.(e), C(!1);
1186
1236
  },
1187
1237
  sx: {
1188
1238
  flex: "1 1 100%",
1239
+ whiteSpace: "nowrap",
1189
1240
  fontFamily: (e) => e.typography.fontFamily,
1190
1241
  fontWeight: 400,
1191
1242
  lineHeight: 1.5,
1192
1243
  paddingTop: "2px",
1193
1244
  paddingBottom: "2px",
1194
- marginLeft: "4px",
1195
- marginRight: "4px",
1196
- paddingLeft: "6px",
1197
- paddingRight: "18px",
1245
+ ...dt,
1198
1246
  borderRadius: "4px",
1199
1247
  fontSize: "0.875em",
1200
1248
  "@media (pointer: coarse)": { fontSize: "1em" },
@@ -1204,21 +1252,21 @@ var et = (e) => P($e, { ...e }), tt = (e) => P(me, {
1204
1252
  "&.Mui-hovered:not(.Mui-disabled, [disabled])": { color: (e) => e.palette.text.primary },
1205
1253
  ...h
1206
1254
  },
1207
- ...y,
1255
+ ...b,
1208
1256
  children: [
1209
- E,
1257
+ O,
1210
1258
  m,
1211
- _ ? P(C, { chips: _ }) : null
1259
+ _ ? j(e, { chips: _ }) : null
1212
1260
  ]
1213
1261
  });
1214
- return g && (D = P(i, {
1215
- children: D,
1262
+ return g && (k = j(t, {
1263
+ children: k,
1216
1264
  placement: "right-start",
1217
1265
  ...g
1218
- })), D;
1219
- })), dt = B(R((e, t) => {
1266
+ })), k;
1267
+ })), mt = z(R((e, t) => {
1220
1268
  let { children: n, sx: r, primary: i = !1, variant: a = "subtitle1", ...o } = e;
1221
- return P(N, { children: P(M, {
1269
+ return j(A, { children: j(k, {
1222
1270
  ref: t,
1223
1271
  variant: a,
1224
1272
  component: "div",
@@ -1234,11 +1282,11 @@ var et = (e) => P($e, { ...e }), tt = (e) => P(me, {
1234
1282
  ...o,
1235
1283
  children: n
1236
1284
  }) });
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);
1285
+ })), ht = z(R((e, t) => {
1286
+ let { dense: n = !0, outlined: r = !1, label: i, showLabel: a = !1, selected: o = !1, onQuickClick: s, parentFloat: c, createPopupPanel: l, propsPopup: u, onPopupOpen: d, onPopupClose: f, propsQuickButton: p, renderQuickButton: h, tooltip: g = "", createTooltip: _, icon: b, disabled: x, propsButton: C = oe.EmptyObject, disableHover: w, ripple: T, primary: E, children: D, sx: O, className: k, ...N } = e, P = ee(), F = H(() => {
1287
+ let e = (e, t, n, i = n) => {
1288
+ let a = typeof r == "boolean" ? null : r[e];
1289
+ return typeof a == "function" ? a(t) : a || (r ? n : i);
1242
1290
  };
1243
1291
  return {
1244
1292
  outline: {
@@ -1246,45 +1294,45 @@ var et = (e) => P($e, { ...e }), tt = (e) => P(me, {
1246
1294
  hoverColor: (t) => e("hoverColor", t, t.palette.text?.primary, t.palette.divider),
1247
1295
  focusColor: (t) => e("focusColor", t, t.palette?.primary?.main)
1248
1296
  },
1249
- active: k.palette.mode === "dark" ? k.palette.text.secondary : k.palette.text.primary,
1250
- text: k.palette.text.icon ?? k.palette.action.active
1297
+ active: P.palette.mode === "dark" ? P.palette.text.secondary : P.palette.text.primary,
1298
+ text: P.palette.text.icon ?? P.palette.action.active
1251
1299
  };
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,
1300
+ }, [r, P]), [I, te] = W(!1), [L, R] = W(!1), [ne, z] = W(!1), B = U(null), re = U(null), V = _e({
1301
+ anchor: B.current,
1302
+ label: i,
1303
+ createPopupPanel: l,
1304
+ parentFloat: c,
1305
+ propsPopper: u?.propsPopper,
1258
1306
  onClose: () => {
1259
- M(!1), p?.();
1307
+ te(!1), f?.();
1260
1308
  },
1261
1309
  onOpen: () => {
1262
- M(!0), f?.();
1310
+ te(!0), d?.();
1263
1311
  }
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);
1312
+ }), ie = Z((e) => {
1313
+ s?.(e), V.reference.close(0);
1314
+ }, [s, V]), ae = Z(() => {
1315
+ I ? V.reference.close(0) : V.reference.open(0);
1268
1316
  }, [
1269
- j,
1270
- R,
1271
- l,
1272
- a
1273
- ]), B = W(() => {
1317
+ I,
1318
+ V,
1319
+ c,
1320
+ i
1321
+ ]), K = H(() => {
1274
1322
  let e = {
1275
1323
  "&.bordered": {
1276
1324
  borderWidth: "1px",
1277
1325
  borderRadius: "0px",
1278
1326
  borderTopStyle: "solid",
1279
1327
  borderBottomStyle: "solid",
1280
- borderColor: (e) => A.outline.color(e),
1281
- "&.Mui-focusVisible": { border: (e) => `1px solid ${A.outline.focusColor(e)} !important` },
1328
+ borderColor: (e) => F.outline.color(e),
1329
+ "&.Mui-focusVisible": { border: (e) => `1px solid ${F.outline.focusColor(e)} !important` },
1282
1330
  "&:hover:not(.Mui-disabled, [disabled])": {
1283
- borderColor: () => S ? "transparent" : void 0,
1284
- backgroundColor: () => S ? "transparent" : void 0
1331
+ borderColor: () => w ? "transparent" : void 0,
1332
+ backgroundColor: () => w ? "transparent" : void 0
1285
1333
  },
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) },
1334
+ "&.Mui-hovered:not(.Mui-disabled, [disabled])": { borderColor: (e) => F.outline.hoverColor(e) },
1335
+ "&.Mui-selected:not(.Mui-disabled, [disabled])": { borderColor: (e) => F.outline.hoverColor(e) },
1288
1336
  "&.left": {
1289
1337
  borderTopLeftRadius: (e) => `${e.shape.borderRadius}px`,
1290
1338
  borderBottomLeftRadius: (e) => `${e.shape.borderRadius}px`,
@@ -1293,7 +1341,7 @@ var et = (e) => P($e, { ...e }), tt = (e) => P(me, {
1293
1341
  "&.hard-right": {
1294
1342
  borderRightStyle: "solid",
1295
1343
  borderRightWidth: "1px",
1296
- borderRightColor: (e) => A.outline.color(e)
1344
+ borderRightColor: (e) => F.outline.color(e)
1297
1345
  },
1298
1346
  "&.right": {
1299
1347
  borderTopRightRadius: (e) => `${e.shape.borderRadius}px`,
@@ -1304,165 +1352,172 @@ var et = (e) => P($e, { ...e }), tt = (e) => P(me, {
1304
1352
  },
1305
1353
  "& .MuiTouchRipple-child": { borderRadius: (e) => `${e.shape.borderRadius}px !important` }
1306
1354
  }, t = { "&.Mui-selected": {
1307
- backgroundColor: (e) => q(e.palette.primary.main, e.palette.action.selectedOpacity),
1355
+ backgroundColor: (e) => G(e.palette.primary.main, e.palette.action.selectedOpacity),
1308
1356
  "&: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) }
1357
+ backgroundColor: (e) => G(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
1358
+ "@media (hover: none)": { backgroundColor: (e) => G(e.palette.primary.main, e.palette.action.selectedOpacity) }
1311
1359
  }
1312
- } }, n = {
1360
+ } }, r = {
1313
1361
  maxHeight: "100%",
1314
1362
  "&.Mui-selected": {
1315
- backgroundColor: (e) => q(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity),
1363
+ backgroundColor: (e) => G(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity),
1316
1364
  "&: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) }
1365
+ backgroundColor: (e) => G(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
1366
+ "@media (hover: none)": { backgroundColor: (e) => G(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity) }
1367
+ }
1368
+ },
1369
+ "&:hover:not(.Mui-disabled, [disabled])": {
1370
+ color: (e) => e.palette.text.primary,
1371
+ ...w ? null : {
1372
+ backgroundColor: (e) => G(e.palette.action.active, e.palette.action.hoverOpacity),
1373
+ "@media (hover: none)": { backgroundColor: "transparent" }
1319
1374
  }
1320
1375
  },
1321
- "&:hover:not(.Mui-disabled, [disabled])": { color: (e) => e.palette.text.primary },
1322
- backgroundColor: () => S ? "transparent" : void 0,
1376
+ backgroundColor: () => w ? "transparent" : void 0,
1323
1377
  color: (e) => e.palette.text.icon,
1324
1378
  "&.Mui-disabled > .icon path": {
1325
1379
  filter: "grayscale(65%)",
1326
1380
  opacity: ".8"
1327
1381
  },
1328
- padding: () => r ? "2px 3px" : "7px",
1382
+ padding: () => n ? "2px 3px" : "7px",
1329
1383
  marginRight: "0"
1330
- }, i = ue.mergeContentful(n, e), a = ue.mergeContentful(i, t), o = ue.mergeContentful(n, e);
1384
+ }, i = oe.mergeContentful(r, e), a = oe.mergeContentful(i, t), o = oe.mergeContentful(r, e);
1331
1385
  return {
1332
1386
  quickButtonStyling: i,
1333
1387
  openQuickButtonStyling: a,
1334
1388
  compoundStyling: o,
1335
- openCompoundStyling: ue.mergeContentful(o, t)
1389
+ openCompoundStyling: oe.mergeContentful(o, t)
1336
1390
  };
1337
- }, [A, S]), V = Z((e) => {
1391
+ }, [F, w]), se = Z((e) => {
1338
1392
  let { children: t, ref: n, ...r } = e;
1339
- return P(v, {
1393
+ return j(m, {
1340
1394
  ref: n,
1341
1395
  ...r,
1342
1396
  disableInteractive: !0,
1343
1397
  children: t
1344
1398
  });
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, {
1399
+ }, []), q = s || h, ce = q && (p?.tooltip || p?.createTooltip), J = (e) => {
1400
+ let { tooltip: t, createTooltip: n, sx: r, ...i } = e, a = j(S, {
1347
1401
  sx: { ...r },
1348
1402
  component: "div",
1349
1403
  ...i
1350
1404
  });
1351
- return H && (a = (n ?? V)({
1352
- title: j ? "" : t ?? g,
1353
- children: P("div", { children: a })
1354
- }, j)), a;
1405
+ return ce && (a = (n ?? se)({
1406
+ title: I ? "" : t ?? g,
1407
+ children: j("div", { children: a })
1408
+ }, I)), a;
1355
1409
  }, 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,
1410
+ e.keyCode === Y.Space ? ae() : e.keyCode === Y.F4 || e.keyCode === Y.Down ? V.reference.open(0) : e.keyCode === Y.Up && V.reference.close(0);
1411
+ } }, ue = j(A, {}), de = H(() => Te((typeof b == "function" ? b() : b) ?? (q ? gt : null), a ? i : null), [
1412
+ b,
1413
+ i,
1359
1414
  a,
1360
- o,
1361
- ce
1415
+ q
1362
1416
  ]);
1363
- if (ce) {
1364
- let e = j ? B.openQuickButtonStyling : B.quickButtonStyling, t = (h || U)({
1417
+ if (q) {
1418
+ let e = I ? K.openQuickButtonStyling : K.quickButtonStyling, t = (h || J)({
1365
1419
  tabIndex: -1,
1366
- disabled: b,
1420
+ disabled: x,
1367
1421
  size: "small",
1368
1422
  edge: "end",
1369
1423
  onMouseEnter: () => {
1370
- R.reference.parent?.closeChild();
1424
+ V.reference.parent?.closeChild();
1371
1425
  },
1372
1426
  onMouseDown: (e) => {
1373
- e.button === 0 && (e.preventDefault(), se(e));
1427
+ e.button === 0 && (e.preventDefault(), ie(e));
1374
1428
  },
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,
1429
+ disableRipple: !!T,
1430
+ children: M(A, { children: [de, T] }),
1431
+ ...p,
1432
+ className: v({
1433
+ "Mui-focusVisible": L || I,
1434
+ "Mui-selected": o,
1435
+ "Mui-hovered": ne || I,
1436
+ "Mui-disabled": x,
1383
1437
  bordered: !0,
1384
1438
  left: !0,
1385
1439
  "hard-right": !0
1386
- }, m?.className),
1440
+ }, p?.className),
1387
1441
  sx: {
1388
- ...B.quickButtonStyling,
1442
+ ...K.quickButtonStyling,
1389
1443
  height: "100%",
1390
- ...m?.sx
1444
+ ...p?.sx
1391
1445
  }
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,
1446
+ }), r = et(!0, n, I);
1447
+ ce && (r = (_ ?? se)({
1448
+ title: I ? "" : g,
1449
+ children: r
1450
+ }, I)), ue = M(A, { children: [t, j(S, {
1451
+ ref: re,
1398
1452
  component: "div",
1399
- className: n({
1400
- "Mui-selected": j,
1401
- "Mui-hovered": ie || j,
1402
- "Mui-disabled": b,
1403
- "Mui-focusVisible": I || j,
1453
+ className: v({
1454
+ "Mui-selected": I,
1455
+ "Mui-hovered": ne || I,
1456
+ "Mui-disabled": x,
1457
+ "Mui-focusVisible": L || I,
1404
1458
  bordered: !0,
1405
1459
  right: !0,
1406
1460
  divider: !0
1407
1461
  }),
1408
1462
  sx: {
1409
- paddingLeft: (r ? 0 : 2) + "px",
1410
- paddingRight: (r ? 0 : 2) + "px",
1463
+ paddingLeft: (n ? 0 : 2) + "px",
1464
+ paddingRight: (n ? 0 : 2) + "px",
1411
1465
  width: () => "calc(var(--icon-size, 1.25em) * 0.8)",
1412
- ...B.quickButtonStyling,
1466
+ ...K.quickButtonStyling,
1413
1467
  ...e
1414
1468
  },
1415
1469
  TouchRippleProps: { center: !1 },
1416
1470
  tabIndex: -1,
1417
- disabled: b,
1471
+ disabled: x,
1418
1472
  size: "small",
1419
1473
  edge: "end",
1420
1474
  onMouseDown: (e) => {
1421
- e.button === 0 && (e.preventDefault(), z());
1475
+ e.button === 0 && (e.preventDefault(), ae());
1422
1476
  },
1423
- children: i
1477
+ children: r
1424
1478
  })] });
1425
1479
  } else {
1426
- let e = j ? B.openCompoundStyling : B.compoundStyling;
1427
- de = P(st, {
1428
- ref: oe,
1480
+ let e = I ? K.openCompoundStyling : K.compoundStyling;
1481
+ ue = j(lt, {
1482
+ ref: re,
1429
1483
  tabIndex: -1,
1430
- disabled: b,
1484
+ disabled: x,
1431
1485
  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,
1486
+ icon: de,
1487
+ className: v({
1488
+ "Mui-selected": I || o,
1489
+ "Mui-hovered": ne,
1490
+ "Mui-disabled": x,
1491
+ "Mui-focusVisible": L || I,
1438
1492
  bordered: !0,
1439
1493
  left: !0,
1440
1494
  right: !0
1441
1495
  }),
1442
1496
  sx: {
1443
- ...B.quickButtonStyling,
1497
+ flex: "1 1 auto",
1498
+ ...K.quickButtonStyling,
1444
1499
  ...e
1445
1500
  },
1446
1501
  onMouseDown: (e) => {
1447
- e.button === 0 && (e.preventDefault(), z());
1502
+ e.button === 0 && (e.preventDefault(), ae());
1448
1503
  },
1449
- children: Qe(!1, r, j)
1504
+ children: et(!1, n, I)
1450
1505
  });
1451
1506
  }
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),
1507
+ let { className: X, sx: fe, ...pe } = C, me = j(y, {
1508
+ onFocus: () => R(!0),
1509
+ onBlur: () => R(!1),
1510
+ onMouseOver: () => z(!0),
1511
+ onMouseOut: () => z(!1),
1457
1512
  ...le,
1458
1513
  "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
1514
+ ref: B,
1515
+ tabIndex: x ? void 0 : 0,
1516
+ className: v(X, "split-button-root", {
1517
+ "Mui-focusVisible": L || I,
1518
+ "Mui-selected": I || o,
1519
+ "Mui-hovered": ne,
1520
+ "Mui-disabled": x
1466
1521
  }),
1467
1522
  sx: {
1468
1523
  display: "flex",
@@ -1470,116 +1525,116 @@ var et = (e) => P($e, { ...e }), tt = (e) => P(me, {
1470
1525
  alignItems: "stretch",
1471
1526
  width: "fit-content",
1472
1527
  "&:not(.Mui-disabled)": { cursor: "pointer" },
1473
- marginLeft: i ? "1px" : "0px",
1474
- marginRight: i ? "1px" : "0px",
1528
+ marginLeft: r ? "1px" : "0px",
1529
+ marginRight: r ? "1px" : "0px",
1475
1530
  borderRadius: (e) => `${e.shape.borderRadius}px`,
1476
1531
  "&.Mui-focusVisible": {
1477
1532
  outline: (e) => `solid ${e.palette.primary.main} 1px`,
1478
1533
  zIndex: 2
1479
1534
  },
1480
- ...Y
1535
+ ...fe
1481
1536
  },
1482
1537
  ...pe,
1483
- children: de
1538
+ children: ue
1484
1539
  });
1485
- return H || (me = (_ ?? V)({
1486
- title: j ? "" : g,
1540
+ return ce || (me = (_ ?? se)({
1541
+ title: I ? "" : g,
1487
1542
  children: me
1488
- }, j)), F(T, {
1489
- className: n(O, "popupIconButton"),
1543
+ }, I)), M(y, {
1544
+ className: v(k, "popupIconButton"),
1490
1545
  ref: t,
1491
- ...te,
1546
+ ...N,
1492
1547
  sx: {
1493
- zIndex: I || j ? 2 : void 0,
1548
+ zIndex: L || I ? 2 : void 0,
1494
1549
  display: "flex",
1495
1550
  alignItems: "center",
1496
- ...ee
1551
+ ...O
1497
1552
  },
1498
- children: [me, R.component]
1553
+ children: [me, V.component]
1499
1554
  });
1500
1555
  }));
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;
1556
+ ht.displayName = "ExhibitPopupIconButton";
1557
+ var gt = j(J, { iconKey: "Check" }), _t = {}, vt = z(R((e, t) => {
1558
+ let { selected: n = !1, label: r, showLabel: i, onQuickClick: a, parentFloat: o, createPopupPanel: s, propsPopup: c = _t, onPopupOpen: u, onPopupClose: d, propsQuickButton: f, renderQuickButton: p, tooltip: h = "", createTooltip: g, icon: _, disabled: b, ripple: S, primary: C, children: w, sx: E, ...D } = e, [O, k] = W(!1), [ee, N] = W(!1), [P, F] = W(!1), [I, te] = W(!1), L = U(null), R = U(null), ne = H(() => {
1559
+ if (!c) return;
1560
+ let { propsPopper: e } = c;
1506
1561
  return {
1507
1562
  placement: "right-start",
1508
1563
  offsets: [-4, -2],
1509
1564
  ...e
1510
1565
  };
1511
- }, [l]), L = xe({
1512
- anchor: I.current,
1513
- label: i,
1514
- createPopupPanel: c,
1515
- parentFloat: s,
1516
- propsPopper: ie,
1566
+ }, [c]), z = _e({
1567
+ anchor: L.current,
1568
+ label: r,
1569
+ createPopupPanel: s,
1570
+ parentFloat: o,
1571
+ propsPopper: ne,
1517
1572
  onClose: () => {
1518
- ee(!1), d?.();
1573
+ k(!1), d?.();
1519
1574
  },
1520
1575
  onOpen: () => {
1521
- ee(!0), u?.();
1576
+ k(!0), u?.();
1522
1577
  }
1523
- }), ae = Z((e) => {
1524
- e.button === 0 && (o?.(e), L.reference.close(0));
1525
- }, [o]), oe = P(x, {}), R = { "&.Mui-selected": {
1578
+ }), re = Z((e) => {
1579
+ e.button === 0 && (a?.(e), z.reference.close(0));
1580
+ }, [a]), V = j(l, {}), ie = { "&.Mui-selected": {
1526
1581
  color: (e) => e.palette.text.primary,
1527
1582
  "& svg * ": { color: (e) => e.palette.text.primary }
1528
- } }, se = V((e) => {
1583
+ } }, ae = B((e) => {
1529
1584
  let { children: t, ref: n, ...r } = e;
1530
- return P(v, {
1585
+ return j(m, {
1531
1586
  ref: n,
1532
1587
  ...r,
1533
1588
  disableInteractive: !0,
1534
1589
  children: t
1535
1590
  });
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 }),
1591
+ }, []), G = a || p, oe = (e) => {
1592
+ let { tooltip: t, createTooltip: n, ...i } = e;
1593
+ return M(pt, {
1594
+ icon: _,
1595
+ disableRipple: !!S,
1596
+ className: v({ "Mui-hovered": P }),
1542
1597
  sx: {
1543
1598
  flex: "1 1 100%",
1544
- ...R
1599
+ ...ie
1545
1600
  },
1546
- ...a,
1547
- children: [i, y]
1601
+ ...i,
1602
+ children: [r, S]
1548
1603
  });
1549
- }, ce = {
1604
+ }, K = {
1550
1605
  onFocus: () => {
1551
- k(!0);
1606
+ N(!0);
1552
1607
  },
1553
- onBlur: () => k(!1),
1608
+ onBlur: () => N(!1),
1554
1609
  onMouseOver: () => {
1555
- j(!0);
1610
+ F(!0);
1556
1611
  },
1557
1612
  onMouseLeave: () => {
1558
- j(!1);
1613
+ F(!1);
1559
1614
  },
1560
1615
  onMouseEnter: (e) => {
1561
- e.preventDefault(), L.reference.open();
1616
+ e.preventDefault(), z.reference.open();
1562
1617
  },
1563
1618
  onMouseDown: (e) => {
1564
1619
  e.button === 0 && e.preventDefault();
1565
1620
  }
1566
- }, H = P(N, {});
1567
- if (z) {
1568
- let e = {
1621
+ }, se = j(A, {});
1622
+ if (G) {
1623
+ let e = (p || oe)({
1569
1624
  tabIndex: -1,
1570
- disabled: _,
1625
+ disabled: b,
1571
1626
  onMouseEnter: () => {
1572
- L.reference.parent?.closeChild();
1627
+ z.reference.parent?.closeChild();
1573
1628
  },
1574
1629
  onMouseDown: (e) => {
1575
- e.button === 0 && (e.preventDefault(), ae(e));
1630
+ e.button === 0 && (e.preventDefault(), re(e));
1576
1631
  },
1577
- className: n("quick-left", {}, f?.className),
1632
+ className: v("quick-left", {}, f?.className),
1578
1633
  ...f
1579
- };
1580
- H = F(N, { children: [
1581
- (p || B)(e),
1582
- P(E, {
1634
+ });
1635
+ se = M(A, { children: [
1636
+ e,
1637
+ j(x, {
1583
1638
  sx: {
1584
1639
  ml: "0px",
1585
1640
  mr: "0px"
@@ -1588,11 +1643,11 @@ var pt = P(Y, { iconKey: "Check" }), mt = {}, ht = B(R((e, t) => {
1588
1643
  variant: "middle",
1589
1644
  flexItem: !0
1590
1645
  }),
1591
- P(te, {
1592
- ref: re,
1593
- className: n({
1594
- "Mui-selected": D,
1595
- "Mui-hovered": A
1646
+ j(T, {
1647
+ ref: R,
1648
+ className: v({
1649
+ "Mui-selected": O,
1650
+ "Mui-hovered": P
1596
1651
  }),
1597
1652
  sx: {
1598
1653
  borderTopLeftRadius: "0px",
@@ -1604,14 +1659,14 @@ var pt = P(Y, { iconKey: "Check" }), mt = {}, ht = B(R((e, t) => {
1604
1659
  paddingBottom: "2px",
1605
1660
  marginLeft: "0px",
1606
1661
  marginRight: "6px",
1607
- color: (e) => b ? void 0 : e.palette.text.secondary,
1662
+ color: (e) => C ? void 0 : e.palette.text.secondary,
1608
1663
  "&.Mui-hovered:not(.Mui-disabled, [disabled])": { color: (e) => e.palette.text.primary },
1609
- ...R
1664
+ ...ie
1610
1665
  },
1611
1666
  tabIndex: -1,
1612
- disabled: _,
1613
- ...ce,
1614
- children: P(T, {
1667
+ disabled: b,
1668
+ ...K,
1669
+ children: j(y, {
1615
1670
  className: "expand-icon",
1616
1671
  sx: {
1617
1672
  flex: "none",
@@ -1619,61 +1674,61 @@ var pt = P(Y, { iconKey: "Check" }), mt = {}, ht = B(R((e, t) => {
1619
1674
  border: "1px solid transparent",
1620
1675
  paddingTop: "1px",
1621
1676
  paddingBottom: "1px",
1622
- color: (e) => b ? void 0 : e.palette.text.icon ?? e.palette.action.active
1677
+ color: (e) => C ? void 0 : e.palette.text.icon ?? e.palette.action.active
1623
1678
  },
1624
1679
  onMouseOver: (e) => {
1625
- e.preventDefault(), ne(!0);
1680
+ e.preventDefault(), te(!0);
1626
1681
  },
1627
1682
  onMouseLeave: () => {
1628
- ne(!1);
1683
+ te(!1);
1629
1684
  },
1630
1685
  onClick: (e) => {
1631
- e.preventDefault(), D ? L.reference.close() : L.reference.open();
1686
+ e.preventDefault(), O ? z.reference.close() : z.reference.open();
1632
1687
  },
1633
- children: oe
1688
+ children: V
1634
1689
  })
1635
1690
  })
1636
1691
  ] });
1637
- } else H = F(ut, {
1638
- ref: re,
1692
+ } else se = M(pt, {
1693
+ ref: R,
1639
1694
  tabIndex: -1,
1640
- disabled: _,
1641
- icon: g,
1642
- className: n({
1643
- "Mui-selected": D || r,
1644
- "Mui-hovered": A
1695
+ disabled: b,
1696
+ icon: _,
1697
+ className: v({
1698
+ "Mui-selected": O || n,
1699
+ "Mui-hovered": P
1645
1700
  }),
1646
1701
  sx: {
1647
1702
  flex: "1 1 100%",
1648
1703
  paddingRight: "0px",
1649
- ...R
1704
+ ...ie
1650
1705
  },
1651
1706
  onClick: (e) => {
1652
- e.preventDefault(), D ? L.reference.close() : L.reference.open();
1707
+ e.preventDefault(), O ? z.reference.close() : z.reference.open();
1653
1708
  },
1654
- ...ce,
1655
- children: [P("div", {
1709
+ ...K,
1710
+ children: [j("div", {
1656
1711
  style: { flex: "1 1 100%" },
1657
- children: i
1658
- }), P(T, {
1712
+ children: r
1713
+ }), j(y, {
1659
1714
  className: "expand-icon",
1660
1715
  sx: {
1661
1716
  flex: "none",
1662
1717
  display: "flex",
1663
- color: (e) => b ? void 0 : e.palette.text.icon ?? e.palette.action.active
1718
+ color: (e) => C ? void 0 : e.palette.text.icon ?? e.palette.action.active
1664
1719
  },
1665
- children: oe
1720
+ children: V
1666
1721
  })]
1667
1722
  });
1668
- let U = P(T, {
1723
+ let q = j(y, {
1669
1724
  "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
1725
+ ref: L,
1726
+ tabIndex: b ? void 0 : 0,
1727
+ className: v({
1728
+ "Mui-disabled": b,
1729
+ "Mui-selected": O,
1730
+ "Mui-focusVisible": ee || O,
1731
+ "Mui-hovered": P
1677
1732
  }),
1678
1733
  sx: {
1679
1734
  display: "flex",
@@ -1686,145 +1741,164 @@ var pt = P(Y, { iconKey: "Check" }), mt = {}, ht = B(R((e, t) => {
1686
1741
  marginRight: "-1px"
1687
1742
  },
1688
1743
  "&.Mui-disabled > .icon path": { filter: "grayscale(65%)" },
1689
- ...C
1744
+ ...E
1690
1745
  },
1691
- ...w,
1692
- children: H
1746
+ ...D,
1747
+ children: se
1693
1748
  });
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, {
1749
+ return G && !I && (f?.tooltip || f?.createTooltip) && (q = (f?.createTooltip ?? ae)({
1750
+ title: O ? "" : q ?? f?.tooltip,
1751
+ children: q
1752
+ }, O)), M(y, {
1698
1753
  ref: t,
1699
1754
  sx: {
1700
- zIndex: O || D ? 2 : void 0,
1755
+ zIndex: ee || O ? 2 : void 0,
1701
1756
  display: "flex",
1702
1757
  " .tooltip-wrapper": {
1703
1758
  display: "flex",
1704
1759
  flex: "1 1 100%"
1705
1760
  }
1706
1761
  },
1707
- children: [U, L.component]
1762
+ children: [q, z.component]
1708
1763
  });
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, {
1764
+ })), yt = z(R((e, n) => {
1765
+ let { onSelectToggle: r, selected: i = !1, label: a, shortcut: o, tabIndex: s = 0, preventFocus: c = !1, ...l } = e;
1766
+ return j(t, {
1712
1767
  label: a,
1713
1768
  shortcut: o,
1714
- children: P(st, {
1715
- ref: t,
1769
+ children: j(lt, {
1770
+ ref: n,
1716
1771
  outlined: !1,
1717
1772
  tabIndex: s,
1718
- selected: r,
1773
+ selected: i,
1719
1774
  onMouseDown: (e) => {
1720
1775
  c && e.preventDefault();
1721
1776
  },
1722
1777
  onClick: () => {
1723
- n?.(!r);
1778
+ r?.(!i);
1724
1779
  },
1725
1780
  ...l
1726
1781
  })
1727
1782
  });
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(() => ({
1783
+ })), bt = j(J, {}), xt = j(J, { iconKey: "Check" }), St = z(R((e, t) => {
1784
+ let { children: n, selected: r = !0, outlined: i = !0, sx: a, ...o } = e, s = H(() => ({
1730
1785
  display: "flex",
1731
1786
  border: (e) => r ? `solid ${i ? e.palette.divider : "transparent"} 1px` : "solid transparent 1px",
1732
1787
  borderRadius: (e) => `${e.shape.borderRadius}px`,
1733
1788
  backgroundColor: (e) => {
1734
- if (r) return q(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity);
1789
+ if (r) return G(e.palette.text.icon ?? e.palette.action.active, e.palette.action.selectedOpacity);
1735
1790
  },
1736
1791
  ...a
1737
1792
  }), [a]), c = n;
1738
- return c === null && (c = _t), c ||= vt, P(T, {
1793
+ return c === null && (c = bt), c ||= xt, j(y, {
1739
1794
  ref: t,
1740
1795
  sx: s,
1741
1796
  ...o,
1742
1797
  children: c
1743
1798
  });
1744
1799
  }));
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();
1800
+ s();
1801
+ var Ct = {
1802
+ inline: null,
1803
+ popup: []
1804
+ }, wt = z(R((e, n) => {
1805
+ let { children: r, sx: i, ...a } = e, o = Se(), s = ve(n, () => ({}), []), [c, l] = xe(), u = U(null), d = U(null), [f, p] = ae((e) => e + 1, 0), [m, h] = W(null), [g, v] = W(null), b = g?.popup ?? null, x = U(0), [S, C] = W(!1), w = U(!1), T = ge(), E = U(T);
1806
+ E.current = T;
1807
+ let D = B(() => {
1808
+ E.current?.closeChild(0);
1809
+ }, []), O = B(() => {
1810
+ w.current = !0, C(!0);
1811
+ }, []), k = B(() => {
1812
+ w.current = !1, C(!1);
1813
+ }, []), ee = U(null), A = U(/* @__PURE__ */ new Map()), N = B(() => {
1814
+ A.current.clear(), v(null), p();
1749
1815
  }, []);
1750
- U(() => {
1751
- f.current = { refs: [] };
1752
- let e = [], t = re.toArray(r), n = 0;
1816
+ ie(() => {
1817
+ d.current = { refs: [] };
1818
+ let e = [], t = P.toArray(r), n = 0;
1753
1819
  t.forEach((r, i) => {
1754
- e.push(P(T, {
1755
- sx: { display: "flex" },
1820
+ e.push(j(y, {
1821
+ sx: {
1822
+ display: "flex",
1823
+ flex: "0 0 auto"
1824
+ },
1756
1825
  ref: (e) => {
1757
- n++, n === t.length && m();
1826
+ n++, n === t.length && p();
1758
1827
  let r = { current: null };
1759
- r.current = e, f.current.refs[i] = r;
1828
+ r.current = e, d.current.refs[i] = r;
1760
1829
  },
1761
1830
  children: r
1762
1831
  }, 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) => {
1832
+ }), h(e);
1833
+ }, [r, l]), ie(() => {
1834
+ if (!m) return;
1835
+ let e = d.current?.refs ?? [], t = e.length;
1836
+ if (!s.current || t === 0) return void v(null);
1837
+ let n = s.current?.getBoundingClientRect(), r = [], i = [], a = () => {
1838
+ let n = ee.current;
1839
+ n ? n.disconnect() : n = ee.current = new ResizeObserver((e) => {
1771
1840
  for (let t = 0; t < e.length; t++) {
1772
1841
  let n = e[t].target;
1773
1842
  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();
1843
+ let r = A.current.get(n);
1844
+ if (r !== void 0 && Math.abs(n.getBoundingClientRect().width - r) > .5) return void N();
1776
1845
  }
1777
- }), C.current.clear();
1846
+ }), A.current.clear();
1778
1847
  for (let r = 0; r < t; r++) {
1779
1848
  let t = e[r]?.current;
1780
- t && (C.current.set(t, t.getBoundingClientRect().width), n.observe(t));
1849
+ t && (A.current.set(t, t.getBoundingClientRect().width), n.observe(t));
1781
1850
  }
1782
- }, o = 0, s = !1;
1783
- for (let r = 0; !s && r < t; r++) {
1851
+ }, o = 0, c = !1;
1852
+ for (let r = 0; !c && r < t; r++) {
1784
1853
  let t = e[r];
1785
1854
  if (!t) continue;
1786
1855
  if (!t.current) {
1787
- s = !0;
1856
+ c = !0;
1788
1857
  continue;
1789
1858
  }
1790
1859
  let i = t.current.getBoundingClientRect();
1791
- o += i?.width, o > n.width && (s = !0);
1860
+ o += i?.width, o > n.width && (c = !0);
1792
1861
  }
1793
- if (!s) return a(), v(null), void b([]);
1794
- let l = d.current?.getBoundingClientRect();
1862
+ if (!c) return a(), w.current && D(), void v(Ct);
1863
+ let l = u.current?.getBoundingClientRect();
1864
+ l?.width && (x.current = l.width);
1865
+ let f = n.width - x.current;
1795
1866
  o = 0;
1796
- for (let a = 0; a < t; a++) {
1797
- let t = e[a], s = !1;
1867
+ for (let n = 0; n < t; n++) {
1868
+ let t = e[n], a = !1;
1798
1869
  if (t.current) {
1799
1870
  let e = t.current.getBoundingClientRect();
1800
- o += e?.width, o < n.width - (l?.width ?? 0) && (s = !0);
1871
+ o += e?.width, o <= f && (a = !0);
1801
1872
  }
1802
- s ? r.push(h[a]) : i.push(h[a]);
1873
+ a ? r.push(m[n]) : i.push(m[n]);
1803
1874
  }
1804
- a(), v(r.length > 0 ? r : null), b(i.length > 0 ? i : null);
1875
+ a(), v({
1876
+ inline: r,
1877
+ popup: i
1878
+ });
1805
1879
  }, [
1806
1880
  r,
1807
- h,
1808
- u,
1809
- p
1810
- ]), U(() => () => {
1811
- x.current?.disconnect(), x.current = null;
1881
+ m,
1882
+ l,
1883
+ f
1884
+ ]), ie(() => () => {
1885
+ ee.current?.disconnect(), ee.current = null;
1812
1886
  }, []);
1813
- let E = V((e) => {
1814
- let t = [], n = y?.length ?? 0;
1887
+ let F = B((e) => {
1888
+ let t = [], n = b?.length ?? 0;
1815
1889
  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, {
1890
+ let n = P.toArray(b[e])[0];
1891
+ P.toArray(n.props.children?.props?.children ?? n.props.children).forEach((n, r) => {
1892
+ let i = n, a = {
1819
1893
  ...i.props,
1820
1894
  key: `overflow-${e}-${r}${i.key ?? ""}`
1821
- });
1822
- t.push(a);
1895
+ }, o = te(i, a);
1896
+ t.push(o);
1823
1897
  });
1824
1898
  }
1825
- return Ze({
1899
+ return $e({
1826
1900
  ...e,
1827
- children: P(T, {
1901
+ children: j(y, {
1828
1902
  className: "overflow-palette-popup-panel",
1829
1903
  sx: {
1830
1904
  display: "flex",
@@ -1840,48 +1914,57 @@ var bt = B(R((e, n) => {
1840
1914
  children: t
1841
1915
  })
1842
1916
  });
1843
- }, [y]);
1844
- return F(T, {
1917
+ }, [b]), I = _([
1918
+ s,
1919
+ c,
1920
+ n
1921
+ ]);
1922
+ return M(y, {
1845
1923
  className: "overflow-palette",
1846
1924
  sx: {
1847
1925
  display: "flex",
1848
1926
  flexDirection: "row",
1927
+ flexWrap: "nowrap",
1849
1928
  flex: "1 1 100%",
1850
1929
  width: "100%",
1851
1930
  maxWidth: "100%",
1852
- ...a
1931
+ minWidth: 0,
1932
+ overflow: "hidden",
1933
+ ...i
1853
1934
  },
1854
- ref: S([
1855
- c,
1856
- l,
1857
- n
1858
- ]),
1859
- ...o,
1860
- children: [P(T, {
1935
+ ref: I,
1936
+ ...a,
1937
+ children: [j(y, {
1861
1938
  sx: {
1862
1939
  flexDirection: "row",
1863
1940
  display: "flex",
1941
+ flexWrap: "nowrap",
1864
1942
  maxWidth: "100%",
1865
1943
  flex: "1 1 100%",
1944
+ minWidth: 0,
1945
+ overflow: "hidden",
1866
1946
  alignItems: "center"
1867
1947
  },
1868
- children: _ ?? h
1869
- }), P(T, {
1948
+ children: g?.inline ?? m
1949
+ }), j(y, {
1870
1950
  className: "overflow-palette-popup-button",
1871
1951
  sx: {
1872
- display: y !== null && y.length === 0 ? "none" : "flex",
1873
- flex: "1 1 0"
1952
+ display: S || b === null || b.length !== 0 ? "flex" : "none",
1953
+ flex: "0 0 auto",
1954
+ alignItems: "center"
1874
1955
  },
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,
1956
+ children: j(ht, {
1957
+ createPopupPanel: F,
1958
+ ref: u,
1959
+ onPopupOpen: O,
1960
+ onPopupClose: k,
1961
+ createTooltip: ({ children: e }, n) => j(t, {
1962
+ label: o("overflow.more"),
1963
+ description: o("overflow.moreDescription"),
1964
+ disabled: n,
1882
1965
  children: e
1883
1966
  }),
1884
- icon: P(Y, { iconKey: "MoreHorizontal" })
1967
+ icon: j(J, { iconKey: "MoreHorizontal" })
1885
1968
  })
1886
1969
  })]
1887
1970
  });
@@ -1895,7 +1978,7 @@ function Q() {
1895
1978
  return e;
1896
1979
  }, Q.apply(null, arguments);
1897
1980
  }
1898
- function xt(e, t) {
1981
+ function Tt(e, t) {
1899
1982
  if (e == null) return {};
1900
1983
  var n = {};
1901
1984
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -1904,7 +1987,7 @@ function xt(e, t) {
1904
1987
  }
1905
1988
  return n;
1906
1989
  }
1907
- var $, St = {
1990
+ var $, Et = {
1908
1991
  state: {},
1909
1992
  updateModal: function() {},
1910
1993
  hideModal: function() {},
@@ -1918,12 +2001,12 @@ var $, St = {
1918
2001
  update: function() {}
1919
2002
  };
1920
2003
  }
1921
- }, Ct = oe(void 0);
2004
+ }, Dt = L(void 0);
1922
2005
  (function(e) {
1923
2006
  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
2007
  })($ ||= {});
1925
- var wt = {};
1926
- function Tt(e, t) {
2008
+ var Ot = {};
2009
+ function kt(e, t) {
1927
2010
  switch (t.type) {
1928
2011
  case $.SHOW:
1929
2012
  var n, r = t.payload, i = r.id, a = r.component, o = r.props, s = r.options;
@@ -1952,38 +2035,38 @@ function Tt(e, t) {
1952
2035
  default: throw Error("Unexpected action");
1953
2036
  }
1954
2037
  }
1955
- var Et = "[ERROR]: Modal ID is missing", Dt = function(e) {
2038
+ var At = "[ERROR]: Modal ID is missing", jt = function(e) {
1956
2039
  e === void 0 && (e = 8);
1957
2040
  for (var t = [], n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", r = 0; r < e; r++) t[r] = n.charAt(Math.floor(62 * Math.random()));
1958
2041
  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);
2042
+ }, Mt = ["open"];
2043
+ function Nt(e) {
2044
+ var t = e.children, n = e.legacy, r = n !== void 0 && n, i = e.suspense, a = i === void 0 || i, o = e.fallback, s = o === void 0 ? null : o, c = N.useReducer(kt, Ot), l = c[0], u = c[1], d = N.useCallback(function(e, t) {
2045
+ var n = Tt(t, Mt);
1963
2046
  e ? u({
1964
2047
  type: $.UPDATE,
1965
2048
  payload: {
1966
2049
  id: e,
1967
2050
  props: n
1968
2051
  }
1969
- }) : console.error(Et);
1970
- }, [u]), f = I.useCallback(function(e) {
2052
+ }) : console.error(At);
2053
+ }, [u]), f = N.useCallback(function(e) {
1971
2054
  e ? u({
1972
2055
  type: $.HIDE,
1973
2056
  payload: { id: e }
1974
- }) : console.error(Et);
1975
- }, [u]), p = I.useCallback(function(e) {
2057
+ }) : console.error(At);
2058
+ }, [u]), p = N.useCallback(function(e) {
1976
2059
  e ? u({
1977
2060
  type: $.DESTROY,
1978
2061
  payload: { id: e }
1979
- }) : console.error(Et);
1980
- }, [u]), m = I.useCallback(function(e) {
2062
+ }) : console.error(At);
2063
+ }, [u]), m = N.useCallback(function(e) {
1981
2064
  e ? u({
1982
2065
  type: $.DESTROY_BY_ROOT_ID,
1983
2066
  payload: { rootId: e }
1984
2067
  }) : console.error("[ERROR]: Modal root ID is missing");
1985
- }, [u]), h = I.useCallback(function(e, t, n) {
1986
- var r = Dt(8);
2068
+ }, [u]), h = N.useCallback(function(e, t, n) {
2069
+ var r = jt(8);
1987
2070
  return n && n.rootId && (r = n.rootId + "." + r), u({
1988
2071
  type: $.SHOW,
1989
2072
  payload: {
@@ -2009,20 +2092,20 @@ function kt(e) {
2009
2092
  f,
2010
2093
  p,
2011
2094
  d
2012
- ]), g = a ? L : ie;
2013
- return I.createElement(Ct.Provider, { value: {
2095
+ ]), g = a ? I : F;
2096
+ return N.createElement(Dt.Provider, { value: {
2014
2097
  state: l,
2015
2098
  updateModal: d,
2016
2099
  hideModal: f,
2017
2100
  destroyModal: p,
2018
2101
  showModal: h,
2019
2102
  destroyModalsByRootId: m
2020
- } }, t, I.createElement(g, Object.assign({}, a && { fallback: s }), Object.keys(l).map(function(e) {
2103
+ } }, t, N.createElement(g, Object.assign({}, a && { fallback: s }), Object.keys(l).map(function(e) {
2021
2104
  var t = l[e], n = t.component, i = t.props, a = t.options, o = function() {
2022
2105
  var t, n;
2023
2106
  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
2107
  }, s = {};
2025
- return s = r ? { onExited: o } : { TransitionProps: Q({}, i?.TransitionProps, { onExited: o }) }, I.createElement(n, Object.assign({}, i, {
2108
+ return s = r ? { onExited: o } : { TransitionProps: Q({}, i?.TransitionProps, { onExited: o }) }, N.createElement(n, Object.assign({}, i, {
2026
2109
  key: e,
2027
2110
  onClose: function() {
2028
2111
  a && a.hideOnClose && f(e), a && a.destroyOnClose && a.hideOnClose && p(e), i && i.onClose && i.onClose.apply(i, arguments);
@@ -2030,27 +2113,27 @@ function kt(e) {
2030
2113
  }, a && !a.destroyOnClose && s));
2031
2114
  })));
2032
2115
  }
2033
- var At = { enforceProvider: !1 };
2034
- function jt(e) {
2035
- Object.assign(At, e);
2116
+ var Pt = { enforceProvider: !1 };
2117
+ function Ft(e) {
2118
+ Object.assign(Pt, e);
2036
2119
  }
2037
- function Mt() {
2038
- return At;
2120
+ function It() {
2121
+ return Pt;
2039
2122
  }
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() {
2123
+ var Lt = ["showModal", "destroyModalsByRootId"], Rt = { disableAutoDestroy: !1 };
2124
+ function zt(e) {
2125
+ e === void 0 && (e = Rt);
2126
+ var t = Q({}, Rt, e).disableAutoDestroy, n = function() {
2127
+ var e = re(Dt);
2128
+ if (It().enforceProvider && e === void 0) throw Error("useModalContext must be used within a ModalProvider");
2129
+ return e || Et;
2130
+ }(), r = n.showModal, i = n.destroyModalsByRootId, a = Tt(n, Lt), o = U(jt(6));
2131
+ return V(function() {
2049
2132
  return function() {
2050
2133
  !t && i && i(o.current);
2051
2134
  };
2052
2135
  }, [t, i]), Q({
2053
- showModal: V(function(e, t, n) {
2136
+ showModal: B(function(e, t, n) {
2054
2137
  return r(e, t, Q({
2055
2138
  rootId: o.current,
2056
2139
  hideOnClose: !0
@@ -2059,10 +2142,29 @@ function Ft(e) {
2059
2142
  destroyModalsByRootId: i
2060
2143
  }, a);
2061
2144
  }
2062
- function It(e) {
2063
- let [t, n] = K(() => /* @__PURE__ */ new Map()), r = G(null);
2145
+ var Bt = L(void 0), Vt = ({ error: e }) => {
2146
+ let t = re(Bt);
2147
+ return V(() => {
2148
+ t?.(e);
2149
+ }, [e]), null;
2150
+ };
2151
+ function Ht(e) {
2152
+ let t = pe(e, { renderError: (e) => j(Vt, { error: e }) });
2153
+ return (e) => {
2154
+ let { onLoadError: n, ...r } = e;
2155
+ return j(Bt.Provider, {
2156
+ value: n,
2157
+ children: j(I, {
2158
+ fallback: null,
2159
+ children: j(t, { ...r })
2160
+ })
2161
+ });
2162
+ };
2163
+ }
2164
+ function Ut(e) {
2165
+ let [t, n] = W(() => /* @__PURE__ */ new Map()), r = U(null);
2064
2166
  r.current === null && (r.current = /* @__PURE__ */ new Map());
2065
- let { showModal: i, updateModal: a, destroyModal: o, hideModal: s } = Ft({ disableAutoDestroy: !0 });
2167
+ let { showModal: i, updateModal: a, destroyModal: o, hideModal: s } = zt({ disableAutoDestroy: !0 });
2066
2168
  return (c, l, u, d) => new Promise((f, p) => {
2067
2169
  let m = !1;
2068
2170
  u?.disableAutoDestroy !== void 0 && (m = u.disableAutoDestroy, delete (u = { ...u }).disableAutoDestroy);
@@ -2091,6 +2193,10 @@ function It(e) {
2091
2193
  }), t;
2092
2194
  }), f(e);
2093
2195
  },
2196
+ onLoadError: (e) => {
2197
+ let r = t.get(c);
2198
+ n((e) => (e.delete(c), e)), r?.id && o(r.id), p(e);
2199
+ },
2094
2200
  disableAutoDestroy: m,
2095
2201
  revealToken: 0,
2096
2202
  startHidden: h,
@@ -2112,7 +2218,7 @@ function It(e) {
2112
2218
  }
2113
2219
  if (!l) return void p(`Invalid function for window '${c}'`);
2114
2220
  let v = r.current.get(c);
2115
- v || (v = z(l), r.current.set(c, v));
2221
+ v || (v = Ht(l), r.current.set(c, v));
2116
2222
  let y = i(v, g, { destroyOnClose: !m });
2117
2223
  n((e) => (e.set(c, {
2118
2224
  id: y.id,
@@ -2121,10 +2227,10 @@ function It(e) {
2121
2227
  }), e)), h && f(null);
2122
2228
  });
2123
2229
  }
2124
- var Lt = (e) => {
2125
- let { showModal: t } = Ft();
2230
+ var Wt = (e) => {
2231
+ let { showModal: t } = zt();
2126
2232
  return (n) => new Promise((r) => {
2127
- let i = t(y, {
2233
+ let i = t(h, {
2128
2234
  ...e,
2129
2235
  ...n,
2130
2236
  onOption(e, t, i) {
@@ -2135,12 +2241,12 @@ var Lt = (e) => {
2135
2241
  }
2136
2242
  });
2137
2243
  });
2138
- }, Rt = z(() => import("./DL0kfA1tkA8abU1N.mjs")), zt = (e) => {
2139
- let { showModal: t } = Ft();
2244
+ }, Gt = Ht(se("utils-mui:inputDialog", () => import("./C9y4YEtSjLoI4eoI.mjs")).load), Kt = (e) => {
2245
+ let { showModal: t } = zt();
2140
2246
  return (n) => {
2141
2247
  let { defaultOption: r = n.options?.[0], cancelOption: i = "Cancel", ...a } = n;
2142
- return new Promise((n) => {
2143
- let o = t(Rt, {
2248
+ return new Promise((n, o) => {
2249
+ let s = t(Gt, {
2144
2250
  ...e,
2145
2251
  defaultOption: r,
2146
2252
  cancelOption: i,
@@ -2158,22 +2264,25 @@ var Lt = (e) => {
2158
2264
  });
2159
2265
  },
2160
2266
  onDone: () => {
2161
- a?.onDone?.(), o.hide();
2267
+ a?.onDone?.(), s.hide();
2268
+ },
2269
+ onLoadError: (e) => {
2270
+ s.destroy(), o(e);
2162
2271
  }
2163
2272
  });
2164
2273
  });
2165
2274
  };
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,
2275
+ }, qt = z(R((e, n) => {
2276
+ let { commandKey: r, command: i, disabled: a, shortcut: o, children: s, ...c } = e, [l] = he(r ?? []), u = i ?? l, d = u?.getShortcut();
2277
+ return j(t, {
2278
+ ref: n,
2170
2279
  label: a === void 0 ? "" : u?.getLabel(),
2171
2280
  shortcut: o === void 0 ? Array.isArray(d) ? d[0] : d : o,
2172
2281
  description: u?.getDescription(),
2173
2282
  disabled: a,
2174
2283
  componentDisabled: u?.disabled(),
2175
2284
  ...c,
2176
- children: P("div", {
2285
+ children: j("div", {
2177
2286
  style: {
2178
2287
  display: "flex",
2179
2288
  flex: "1 1 0%"
@@ -2181,69 +2290,75 @@ var Lt = (e) => {
2181
2290
  children: s
2182
2291
  })
2183
2292
  });
2184
- })), Vt = we;
2185
- function Ht() {
2186
- let e = G(null);
2293
+ })), Jt = Ce;
2294
+ function Yt() {
2295
+ let e = U(null);
2187
2296
  return {
2188
- ripple: W(() => P(Vt, {
2297
+ ripple: H(() => j(Jt, {
2189
2298
  ref: e,
2190
2299
  center: !1
2191
2300
  }), []),
2192
- trigger: V(() => {
2301
+ trigger: B(() => {
2193
2302
  e.current?.start(void 0, { center: !0 }), setTimeout(() => e.current?.stop(), 180);
2194
2303
  }, [])
2195
2304
  };
2196
2305
  }
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() {
2306
+ var Xt = j(J, {}), Zt = z(R((e, t) => {
2307
+ let { commandKey: n, command: r, groupKey: i, icon: a, label: o, showLabel: s = !1, disabled: c, variant: l = q.Toolbar, shortcut: u, commandState: d, propsTooltip: f, ...p } = e, { ripple: m, trigger: h } = Yt(), g = H(() => ({ onExecute() {
2199
2308
  h();
2200
- } }), [h]), [_] = ye(n ?? [], g), v = r ?? _, y = V((e) => {
2309
+ } }), [h]), [_] = he(n ?? [], g), v = r ?? _, y = B((e) => {
2201
2310
  e.button === 0 && e.preventDefault();
2202
- }, []), b = V(async (e) => {
2311
+ }, []), b = B(async (e) => {
2203
2312
  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;
2313
+ }, [v, d]), x = B((e) => {
2314
+ e.keyCode !== Y.Enter && e.keyCode !== Y.Space || v?.execute(d);
2315
+ }, [v, d]), S = c ?? (!v || v.disabled()), C = v?.getState(), w = H(() => {
2316
+ if (a === null) return Xt;
2208
2317
  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 = {
2318
+ return e = typeof a == "function" ? v ? a(v) : void 0 : a, e ||= v?.getIcon(i), e ? (typeof e == "string" && (e = j(J, { iconKey: e })), e) : l === q.Toolbar || C ? void 0 : Xt;
2319
+ }, [
2320
+ v,
2321
+ i,
2322
+ a,
2323
+ C,
2324
+ l
2325
+ ]), T = {
2211
2326
  tabIndex: 0,
2212
2327
  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
2328
+ selected: !!C,
2329
+ icon: l === q.Toolbar ? s ? Te(w, o ?? v?.getLabel(i)) : w : j(St, {
2330
+ selected: C ?? !1,
2331
+ children: w
2217
2332
  }),
2218
2333
  disableRipple: !0,
2219
- disabled: C,
2334
+ disabled: S,
2220
2335
  onMouseDown: y,
2221
2336
  onMouseUp: b,
2222
2337
  onKeyDown: x
2223
2338
  }, E;
2224
- return E = l === J.Menuitem ? F(ut, {
2339
+ return E = l === q.Menuitem ? M(pt, {
2225
2340
  ...p,
2226
2341
  ...T,
2227
2342
  children: [o ?? v?.getLabel(i), m]
2228
- }) : P(st, {
2343
+ }) : j(lt, {
2229
2344
  ...p,
2230
2345
  ...T,
2231
2346
  children: m
2232
- }), o || v?.getLabel() ? (C && (E = P("div", { children: E })), E = P(Bt, {
2347
+ }), (o || v?.getLabel()) && (S && (E = j("div", { children: E })), E = j(qt, {
2233
2348
  commandKey: n,
2234
2349
  command: r,
2235
- disabled: C,
2236
- placement: l === J.Toolbar ? "bottom-start" : "right-start",
2350
+ disabled: S,
2351
+ placement: l === q.Toolbar ? "bottom-start" : "right-start",
2237
2352
  shortcut: u,
2238
2353
  ...f,
2239
2354
  children: E
2240
- }), E) : E;
2355
+ })), E;
2241
2356
  }));
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() {
2357
+ Zt.displayName = "CommandButton";
2358
+ var Qt = j(J, {}), $t = z(R((e, t) => {
2359
+ let { commandKey: n, groupKey: r, icon: i, commandState: a, label: o, variant: s = q.Toolbar, disabled: c, parseInput: l, inputProps: u, inputRef: d, ...f } = e, { ripple: p, trigger: m } = Yt(), h = H(() => ({ onExecute() {
2245
2360
  m();
2246
- } }), [m]), g = ye(n ?? [], h)[0], _ = () => g?.getState()?.toString() || "", [v, y] = K(""), b = G(_()), x = Z(() => {
2361
+ } }), [m]), g = he(n ?? [], h)[0], _ = () => g?.getState()?.toString() || "", [v, y] = W(""), b = U(_()), x = Z(() => {
2247
2362
  let e = v;
2248
2363
  if (l) try {
2249
2364
  e = l(v);
@@ -2258,14 +2373,14 @@ var Gt = P(Y, {}), Kt = B(R((e, t) => {
2258
2373
  v,
2259
2374
  l
2260
2375
  ]);
2261
- H(() => {
2376
+ V(() => {
2262
2377
  y(_());
2263
2378
  }, [g?.getState()]);
2264
- let S = W(() => {
2265
- if (i === null) return Gt;
2379
+ let w = H(() => {
2380
+ if (i === null) return Qt;
2266
2381
  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, {
2382
+ return e = typeof i == "function" ? g ? i(g) : void 0 : i, e ||= g?.getIcon(), e ? (typeof e == "string" && (e = j(J, { iconKey: e })), e) : s === q.Toolbar || g?.getState() ? void 0 : Qt;
2383
+ }, [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
2384
  ...f,
2270
2385
  sx: {
2271
2386
  paddingTop: "0px",
@@ -2280,8 +2395,8 @@ var Gt = P(Y, {}), Kt = B(R((e, t) => {
2280
2395
  onMouseUp: (e) => {
2281
2396
  e.button === 0 && e.stopPropagation();
2282
2397
  },
2283
- children: P(ee, {
2284
- disabled: w,
2398
+ children: j(C, {
2399
+ disabled: E,
2285
2400
  inputRef: d,
2286
2401
  inputProps: {
2287
2402
  tabIndex: 0,
@@ -2312,13 +2427,13 @@ var Gt = P(Y, {}), Kt = B(R((e, t) => {
2312
2427
  e.target?.select();
2313
2428
  },
2314
2429
  onKeyDown: (e) => {
2315
- if (e.which === X.Enter) _() !== v && (e.stopPropagation(), e.preventDefault(), x());
2316
- else if (e.which === X.Escape) _() !== v && (y(_()), setTimeout(() => {
2430
+ if (e.which === Y.Enter) _() !== v && (e.stopPropagation(), e.preventDefault(), x());
2431
+ else if (e.which === Y.Escape) _() !== v && (y(_()), setTimeout(() => {
2317
2432
  e.target?.select();
2318
2433
  }, 0), e.stopPropagation(), e.preventDefault());
2319
2434
  else {
2320
2435
  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();
2436
+ if (e.which === Y.Space) return void e.preventDefault();
2322
2437
  }
2323
2438
  },
2324
2439
  onBlur: () => {
@@ -2331,13 +2446,13 @@ var Gt = P(Y, {}), Kt = B(R((e, t) => {
2331
2446
  })
2332
2447
  }), [
2333
2448
  v,
2334
- w,
2449
+ E,
2335
2450
  u,
2336
2451
  d
2337
- ]), E = {
2452
+ ]), O = {
2338
2453
  tabIndex: 0,
2339
2454
  ref: t,
2340
- icon: S,
2455
+ icon: w,
2341
2456
  disableRipple: !0,
2342
2457
  disabled: c || !g || g.disabled(),
2343
2458
  onMouseDown: (e) => {
@@ -2347,34 +2462,34 @@ var Gt = P(Y, {}), Kt = B(R((e, t) => {
2347
2462
  e.button !== 0 || e.isPropagationStopped() || e.isDefaultPrevented() || e.isDefaultPrevented() || (e.preventDefault(), x());
2348
2463
  },
2349
2464
  onKeyDown: (e) => {
2350
- e.keyCode !== X.Enter && e.keyCode !== X.Tab || x();
2465
+ e.keyCode !== Y.Enter && e.keyCode !== Y.Tab || x();
2351
2466
  }
2352
- }, O;
2353
- return O = s === J.Menuitem ? F(ut, {
2467
+ }, k;
2468
+ return k = s === q.Menuitem ? M(pt, {
2354
2469
  ...f,
2355
- ...E,
2470
+ ...O,
2356
2471
  children: [
2357
- C,
2358
2472
  T,
2473
+ D,
2359
2474
  p
2360
2475
  ]
2361
- }) : P(st, {
2476
+ }) : j(lt, {
2362
2477
  ...f,
2363
- ...E,
2478
+ ...O,
2364
2479
  children: p
2365
- }), g?.getLabel() ? ((g.disabled() || c) && (O = P("div", { children: O })), O = P(Bt, {
2480
+ }), g?.getLabel() && ((g.disabled() || c) && (k = j("div", { children: k })), k = j(qt, {
2366
2481
  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() {
2482
+ placement: s === q.Toolbar ? "bottom-start" : "right-start",
2483
+ children: k
2484
+ })), k;
2485
+ })), en = z(R((e, n) => {
2486
+ let { variant: r = q.Toolbar, quickCommand: i, onQuickClick: a, commandState: o, disabled: s, label: c, icon: l, createPopupPanel: u, tooltip: d, selected: f, groupKey: p, ...m } = e, { ripple: h, trigger: g } = Yt(), _ = H(() => ({ onExecute() {
2372
2487
  g();
2373
- } }), [g]), [v] = ye(r ?? [], _), { label: y, icon: b } = W(() => {
2488
+ } }), [g]), [v] = he(i ?? [], _), { label: y, icon: b } = H(() => {
2374
2489
  let e = null;
2375
2490
  c && (e = typeof c == "function" ? v ? c(v) : null : c), e ||= v?.getLabel?.(p);
2376
2491
  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), {
2492
+ return t ||= v?.getIcon?.(p), typeof t == "string" ? t = j(J, { iconKey: t }) : typeof t == "function" && (t = v ? t(v) : void 0), {
2378
2493
  label: e,
2379
2494
  icon: t
2380
2495
  };
@@ -2383,36 +2498,36 @@ var Gt = P(Y, {}), Kt = B(R((e, t) => {
2383
2498
  c,
2384
2499
  l
2385
2500
  ]), x = {
2386
- disabled: s || !(v || !r),
2501
+ disabled: s || !(v || !i),
2387
2502
  ripple: h,
2388
2503
  onQuickClick: a,
2389
2504
  tooltip: d,
2390
2505
  label: y,
2391
2506
  icon: b
2392
2507
  };
2393
- (y || d) && (x.createTooltip = ({ children: e }, t) => P(i, {
2508
+ (y || d) && (x.createTooltip = ({ children: e }, n) => j(t, {
2394
2509
  label: y,
2395
2510
  description: d,
2396
- disabled: t,
2511
+ disabled: n,
2397
2512
  children: e
2398
2513
  }));
2399
2514
  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,
2515
+ return v ? (x.propsQuickButton = {}, x.propsQuickButton.createTooltip = ({ children: e, placement: t }, n) => j(qt, {
2516
+ commandKey: i,
2517
+ placement: t ?? r === q.Toolbar ? "bottom-start" : "right-start",
2518
+ disabled: n,
2404
2519
  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, {
2520
+ }), x.disabled = x.disabled ?? v?.disabled(), a || (x.onQuickClick = C)) : i && (x.onQuickClick = () => {}), x.selected = f ?? v?.getState(), x.createPopupPanel = S, r === q.Toolbar ? j(ht, {
2406
2521
  ...m,
2407
2522
  ...x,
2408
- ref: t
2409
- }) : P(ht, {
2523
+ ref: n
2524
+ }) : j(vt, {
2410
2525
  ...m,
2411
2526
  ...x,
2412
- ref: t
2527
+ ref: n
2413
2528
  });
2414
2529
  }));
2415
- function Jt(e, t = {}) {
2530
+ function tn(e, t = {}) {
2416
2531
  let { variant: n, dividerOrientation: r = "vertical", groupKey: i, commandState: a, propsCommandButton: o, propsCommandPopup: s, registry: c } = t, l = { ...o };
2417
2532
  n !== void 0 && (l.variant = n);
2418
2533
  let u = { ...s };
@@ -2427,10 +2542,10 @@ function Jt(e, t = {}) {
2427
2542
  icon: n?.getIcon?.(i),
2428
2543
  showLabel: n?.showLabel
2429
2544
  };
2430
- return (n?.render ? n.render(r, i) : P(Wt, { ...r })) ?? null;
2545
+ return (n?.render ? n.render(r, i) : j(Zt, { ...r })) ?? null;
2431
2546
  }, f = (e) => {
2432
2547
  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, {
2548
+ if (!t) return ((e) => Array.isArray(e.members) ? e.render ? e.render({ ...u }, void 0) ?? null : j(nn, {
2434
2549
  ...u,
2435
2550
  members: e.members,
2436
2551
  icon: e.getIcon?.(),
@@ -2439,7 +2554,7 @@ function Jt(e, t = {}) {
2439
2554
  }) : (e.render ? e.render({ ...u }, i) : null) ?? null)(e);
2440
2555
  let r = c?.get(t) ?? null;
2441
2556
  return r ? ((e, t, n) => {
2442
- if (Array.isArray(e.members)) return e.render ? e.render({ ...u }, t) ?? null : P(Yt, {
2557
+ if (Array.isArray(e.members)) return e.render ? e.render({ ...u }, t) ?? null : j(nn, {
2443
2558
  ...u,
2444
2559
  groupKey: t,
2445
2560
  icon: n?.getIcon?.(t),
@@ -2461,34 +2576,34 @@ function Jt(e, t = {}) {
2461
2576
  continue;
2462
2577
  }
2463
2578
  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);
2579
+ n && (h &&= (p.push(j(je, { orientation: r }, "member-" + m++)), !1), p.push(te(n, { key: "member-" + m++ })), g = !0);
2465
2580
  }
2466
2581
  return p;
2467
2582
  }
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, [
2583
+ en.displayName = "CommandPopupButton";
2584
+ var nn = z(R((e, t) => {
2585
+ let { groupKey: n, members: r, registry: i, quickCommand: a, icon: o, label: s, showLabel: c, tooltip: l, commandState: u, disabled: d, ...f } = e, p = me(), m = i ?? p, h = !r && n ? m.get(n) : null, g = h && Array.isArray(h.members) ? h : null, _ = H(() => r ?? (n ? m.resolveMembers(n) : null) ?? null, [
2471
2586
  r,
2472
2587
  n,
2473
2588
  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(() => {
2589
+ ]), 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
2590
  let e = [], t = _ ?? [];
2476
2591
  for (let n = 0; n < t.length; n++) {
2477
2592
  let r = t[n];
2478
2593
  r && r !== "-" && (typeof r == "string" ? e.push(r) : r.key && e.push(r.key));
2479
2594
  }
2480
2595
  return e;
2481
- }, [_]), T = ye(y ? [y, ...w] : w), E = W(() => {
2596
+ }, [_]), T = he(y ? [y, ...w] : w), E = H(() => {
2482
2597
  for (let e = 0; e < T.length; e++) {
2483
2598
  let t = T[e];
2484
2599
  if (t && !t.disabled()) return !1;
2485
2600
  }
2486
2601
  return !0;
2487
- }, [T]), D = V((e) => {
2602
+ }, [T]), D = B((e) => {
2488
2603
  let t = {};
2489
2604
  d !== void 0 && (t.disabled = d);
2490
- let n = Jt(_, {
2491
- variant: J.Menuitem,
2605
+ let n = tn(_, {
2606
+ variant: q.Menuitem,
2492
2607
  dividerOrientation: "horizontal",
2493
2608
  groupKey: v,
2494
2609
  commandState: u,
@@ -2496,7 +2611,7 @@ var Yt = B(R((e, t) => {
2496
2611
  propsCommandPopup: t,
2497
2612
  registry: m
2498
2613
  });
2499
- return Ze({
2614
+ return $e({
2500
2615
  ...e,
2501
2616
  children: n
2502
2617
  });
@@ -2507,7 +2622,7 @@ var Yt = B(R((e, t) => {
2507
2622
  u,
2508
2623
  d
2509
2624
  ]);
2510
- return _ ? P(qt, {
2625
+ return _ ? j(en, {
2511
2626
  ref: t,
2512
2627
  quickCommand: y,
2513
2628
  icon: b,
@@ -2520,18 +2635,18 @@ var Yt = B(R((e, t) => {
2520
2635
  ...f
2521
2636
  }) : null;
2522
2637
  }));
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(() => {
2638
+ nn.displayName = "CommandGroup";
2639
+ var rn = j(J, { iconKey: "Check" }), an = (e) => {
2640
+ let { commandKey: t, label: n, groupKey: r, icon: i, sx: a, ...o } = e, [s] = he(t ?? []), c = H(() => {
2526
2641
  if (i !== void 0) return i;
2527
2642
  let e = s?.getIcon(r);
2528
- return e ? (typeof e == "string" && (e = P(Y, { iconKey: e })), e) : Xt;
2643
+ return e ? (typeof e == "string" && (e = j(J, { iconKey: e })), e) : rn;
2529
2644
  }, [
2530
2645
  i,
2531
2646
  r,
2532
2647
  s
2533
2648
  ]);
2534
- return F(T, {
2649
+ return M(y, {
2535
2650
  sx: {
2536
2651
  display: "flex",
2537
2652
  flexDirection: "row",
@@ -2541,7 +2656,7 @@ var Xt = P(Y, { iconKey: "Check" }), Zt = (e) => {
2541
2656
  ...a
2542
2657
  },
2543
2658
  ...o,
2544
- children: [c, P(M, {
2659
+ children: [c, j(k, {
2545
2660
  component: "div",
2546
2661
  sx: {
2547
2662
  whiteSpace: "nowrap",
@@ -2553,13 +2668,13 @@ var Xt = P(Y, { iconKey: "Check" }), Zt = (e) => {
2553
2668
  children: n ?? s?.getLabel(r)
2554
2669
  })]
2555
2670
  });
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, [
2671
+ }, on = z(R((e, t) => {
2672
+ let { sx: n, propsCommandButton: r, parentFloat: i, groupKey: a, members: o, registry: s, renderToolbarPalette: c, children: l, ...u } = e, d = me(), f = s ?? d, p = H(() => o ?? (a ? f.resolveMembers(a) : null) ?? null, [
2558
2673
  o,
2559
2674
  a,
2560
2675
  f,
2561
2676
  f.getVersion()
2562
- ]), m = Se(t, () => ({}), []), [h, g] = K(null), { reference: _ } = xe({
2677
+ ]), m = ve(t, () => ({}), []), [h, g] = W(null), { reference: _ } = _e({
2563
2678
  label: "toolbar",
2564
2679
  anchor: m.current,
2565
2680
  parentFloat: i,
@@ -2569,17 +2684,17 @@ var Xt = P(Y, { iconKey: "Check" }), Zt = (e) => {
2569
2684
  e && requestAnimationFrame(() => {
2570
2685
  m.current?.contains(document.activeElement) && e.focus();
2571
2686
  });
2572
- }, [h]), y = W(() => ({
2687
+ }, [h]), y = H(() => ({
2573
2688
  dense: !0,
2574
2689
  outlined: !1
2575
- }), []), b = W(() => ({ ...r || {} }), [r]), x = W(() => ({
2690
+ }), []), b = H(() => ({ ...r || {} }), [r]), x = H(() => ({
2576
2691
  ...y,
2577
2692
  ...b
2578
- }), [y, b]), S = W(() => ({ ...b }), [x, r]), C = 0;
2693
+ }), [y, b]), S = H(() => ({ ...b }), [x, r]), C = 0;
2579
2694
  y.dense || (C += 2), y.outlined && C++;
2580
2695
  let w = 2;
2581
2696
  y.dense || (w = 4);
2582
- let T = W(() => {
2697
+ let T = H(() => {
2583
2698
  let e = {
2584
2699
  propsCommandButton: x,
2585
2700
  propsCommandPopup: {
@@ -2587,7 +2702,7 @@ var Xt = P(Y, { iconKey: "Check" }), Zt = (e) => {
2587
2702
  ...r
2588
2703
  }
2589
2704
  };
2590
- return c ? c(e) : p ? P(bt, { children: Jt(p, {
2705
+ return c ? c(e) : p ? j(wt, { children: tn(p, {
2591
2706
  dividerOrientation: "vertical",
2592
2707
  groupKey: a,
2593
2708
  propsCommandButton: e.propsCommandButton,
@@ -2603,7 +2718,7 @@ var Xt = P(Y, { iconKey: "Check" }), Zt = (e) => {
2603
2718
  a,
2604
2719
  f
2605
2720
  ]);
2606
- return P(j, {
2721
+ return j(O, {
2607
2722
  variant: "dense",
2608
2723
  sx: {
2609
2724
  minHeight: "unset",
@@ -2628,10 +2743,10 @@ var Xt = P(Y, { iconKey: "Check" }), Zt = (e) => {
2628
2743
  h && !m?.current?.contains(e.relatedTarget) && g(null);
2629
2744
  },
2630
2745
  onKeyDown: (e) => {
2631
- h && e.which === X.Escape && h.focus();
2746
+ h && e.which === Y.Escape && h.focus();
2632
2747
  },
2633
2748
  ...u,
2634
- children: P("div", {
2749
+ children: j("div", {
2635
2750
  ref: m,
2636
2751
  style: {
2637
2752
  flex: "1 1 100%",
@@ -2642,9 +2757,9 @@ var Xt = P(Y, { iconKey: "Check" }), Zt = (e) => {
2642
2757
  alignItems: "center",
2643
2758
  maxWidth: "100%"
2644
2759
  },
2645
- children: P(he, {
2760
+ children: j(de, {
2646
2761
  value: _,
2647
- children: P(fe, {
2762
+ children: j(ce, {
2648
2763
  value: v,
2649
2764
  children: T
2650
2765
  })
@@ -2652,20 +2767,20 @@ var Xt = P(Y, { iconKey: "Check" }), Zt = (e) => {
2652
2767
  })
2653
2768
  });
2654
2769
  }));
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, [
2770
+ on.displayName = "CommandToolbar";
2771
+ var sn = z(R((e, t) => {
2772
+ let { groupKey: n, members: r, registry: i, projectAs: a = "quick", defaultIcon: o, ...s } = e, c = me(), l = i ?? c, u = H(() => r ?? (n ? l.resolveMembers(n) : null) ?? null, [
2658
2773
  r,
2659
2774
  n,
2660
2775
  l
2661
- ]), d = W(() => {
2776
+ ]), d = H(() => {
2662
2777
  let e = [], t = u ?? [];
2663
2778
  for (let n = 0; n < t.length; n++) {
2664
2779
  let r = t[n];
2665
2780
  r && r !== "-" && (typeof r == "string" ? e.push(r) : r.key && e.push(r.key));
2666
2781
  }
2667
2782
  return e;
2668
- }, [u]), f = ye(d), p = null, m = null;
2783
+ }, [u]), f = he(d), p = null, m = null;
2669
2784
  for (let e = 0; !p && e < f.length; e++) {
2670
2785
  let t = f[e];
2671
2786
  t && !t.disabled() && t.getState() && (p = d[e], m = t.getIcon());
@@ -2677,7 +2792,7 @@ var $t = B(R((e, t) => {
2677
2792
  quickCommand: p ?? d[0],
2678
2793
  icon: void 0
2679
2794
  };
2680
- return P(Yt, {
2795
+ return j(nn, {
2681
2796
  ref: t,
2682
2797
  groupKey: n,
2683
2798
  members: r,
@@ -2686,5 +2801,5 @@ var $t = B(R((e, t) => {
2686
2801
  ...h
2687
2802
  });
2688
2803
  }));
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 };
2804
+ sn.displayName = "ToggleGroupButton";
2805
+ export { Ie as AnimatedBouncingEllipsisIcon, Pe as AnimatedCircleIcon, Ne as AnimatedClockIcon, Fe as AnimatedFadingEllipsisIcon, He as AnimatedLoadingPanel, Le as AnimatedOrbitIcon, Re as AnimatedTraversingEllipsisIcon, f as ArrowDownIcon, l as ArrowRightIcon, e as ChipStrip, Ze as ClosingReason, Zt as CommandButton, nn as CommandGroup, en as CommandPopupButton, on as CommandToolbar, qt as CommandTooltip, ot as ContextMenu, je as ExhibitDivider, tt as ExhibitFloatPanel, rt as ExhibitFloatProvider, lt as ExhibitIconButton, mt as ExhibitMenuHeader, pt as ExhibitMenuItem, yt as ExhibitOptionButton, ht as ExhibitPopupIconButton, vt as ExhibitPopupMenuItem, t as ExhibitTooltip, $t as InputCommandButton, p as InternalWindow, an as LabelIcon, Ye as LazyLoadErrorPanel, dt as MenuItemInsets, Nt as ModalProvider, it as NestingPopupButton, h as OptionsDialog, wt as OverflowPalette, Xe as PopupAutoFocus, Qe as PopupButtonType, St as SelectedIcon, m as SimpleTooltip, Ke as StackTrace, qe as StackTraceErrorPanel, sn as ToggleGroupButton, we as buttonLabelSx, Te as composeButtonContent, et as createDownArrow, g as createExhibitTheme, Oe as createScrollButton, o as createStrokeShadowFilter, $e as defaultCreatePopupPanel, r as elevateColor, It as getModalConfig, n as getScrollbarCssVariables, i as hexToRGB, Ve as hideLoadingPanel, Ht as lazyModal, u as optionIdentity, s as registerUtilsMuiLocales, tn as renderMembers, De as renderScrollButtonEdge, Ae as renderScrollButtonEnd, ke as renderScrollButtonStart, c as scrollbarTheming, Ft as setModalConfig, Be as showLoadingPanel, a as strokeShadowFilter, d as toShortcutElements, Kt as useInputDialog, Ut as useLazyWindow, zt as useModal, Wt as useOptionsDialog };