@sheetxl/utils-mui 0.8.0-beta.9 → 1.0.2

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