@amateescu/portal-ui-components 0.0.49 → 0.0.51

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,25 +1,25 @@
1
- import { jsx as v, jsxs as Y, Fragment as mn } from "react/jsx-runtime";
2
- import * as M from "react";
3
- import $e, { useState as We, useRef as gt, useMemo as Ke, useEffect as bt, useCallback as St } from "react";
4
- import { FormControl as In, InputLabel as gn, OutlinedInput as bn, InputAdornment as yt, IconButton as Sn, Box as fe, Chip as xt, Collapse as yn, Paper as xn, TextField as En, Typography as Ue, Checkbox as Cn } from "@mui/material";
1
+ import { jsx as v, jsxs as Q, Fragment as gt } from "react/jsx-runtime";
2
+ import * as O from "react";
3
+ import $e, { useState as We, useRef as bt, useMemo as Ke, useEffect as St, useCallback as yt } from "react";
4
+ import { FormControl as In, InputLabel as gn, OutlinedInput as bn, InputAdornment as xt, IconButton as Sn, Box as fe, Chip as Et, Collapse as yn, Paper as xn, TextField as En, Typography as Ue, Checkbox as Cn } from "@mui/material";
5
5
  import { S as vn } from "../../Search-DnJ3yLMg.js";
6
6
  import { E as wn } from "../../ExpandMore-CHNJSd5N.js";
7
7
  import { C as Tn } from "../../Clear-B32X2R1T.js";
8
8
  import { b as Be, c as S, f as kn, a as On, e as Mn, B as Pn, r as Rn } from "../../ButtonBase-ugYh038t.js";
9
- import { b as Ee, g as Ce, P as i, s as G, f as ve, u as Kt, x as Ln, c as Q, m as Ut, e as ye, r as Ht, w as st, q as be } from "../../DefaultPropsProvider-BQx1AiAq.js";
10
- import { u as Dn, b as te, c as _n, a as An } from "../../useFormControl-Ivp9nwoj.js";
9
+ import { b as Ee, g as Ce, P as i, s as X, f as ve, u as Ut, x as Ln, c as Y, m as Ht, e as ye, r as qt, w as st, q as be } from "../../DefaultPropsProvider-BQx1AiAq.js";
10
+ import { u as Dn, b as ne, c as _n, a as An } from "../../useFormControl-Ivp9nwoj.js";
11
11
  import { u as Nn } from "../../index-DfCFE9GG.js";
12
- import { u as Ie, e as re, r as Et } from "../../useSlot-B1oIMjd_.js";
12
+ import { u as Ie, e as se, r as Ct } from "../../useSlot-B1oIMjd_.js";
13
13
  import { c as we } from "../../createSvgIcon-Crk7qT6j.js";
14
14
  import { u as Fn } from "../../useControlled-D1L5tREc.js";
15
- import { c as Ct } from "../../createSimplePaletteValueFilter-Bz8RuRaa.js";
16
- import { T as Vn, g as vt, m as zn } from "../../utils-6k-H8qFR.js";
15
+ import { c as vt } from "../../createSimplePaletteValueFilter-Bz8RuRaa.js";
16
+ import { T as Vn, g as wt, m as zn } from "../../utils-6k-H8qFR.js";
17
17
  import { C as jn } from "../../CircularProgress-D1FWO7Cz.js";
18
18
  import { u as $n } from "../../useTheme-9dlwNzrD.js";
19
- const wt = {};
19
+ const Tt = {};
20
20
  function it(t, e) {
21
- const n = M.useRef(wt);
22
- return n.current === wt && (n.current = t(e)), n;
21
+ const n = O.useRef(Tt);
22
+ return n.current === Tt && (n.current = t(e)), n;
23
23
  }
24
24
  function Ne(t, e, n, o) {
25
25
  const r = it(Bn).current;
@@ -78,43 +78,43 @@ function Kn(t, e) {
78
78
  }
79
79
  };
80
80
  }
81
- const Tt = /* @__PURE__ */ new Set();
81
+ const kt = /* @__PURE__ */ new Set();
82
82
  function et(t, e = "warning") {
83
83
  if (process.env.NODE_ENV === "production")
84
84
  return;
85
85
  const n = Array.isArray(t) ? t.join(`
86
86
  `) : t;
87
- Tt.has(n) || (Tt.add(n), e === "error" ? console.error(n) : console.warn(n));
87
+ kt.has(n) || (kt.add(n), e === "error" ? console.error(n) : console.warn(n));
88
88
  }
89
- function qt(t) {
89
+ function Gt(t) {
90
90
  return Dn;
91
91
  }
92
92
  function Un(t) {
93
93
  return Ee("MuiSimpleTreeView", t);
94
94
  }
95
95
  Ce("MuiSimpleTreeView", ["root", "item", "itemContent", "itemGroupTransition", "itemIconContainer", "itemLabel", "itemCheckbox"]);
96
- const tt = Object.freeze([]), Se = Object.freeze({}), lt = /* @__PURE__ */ M.createContext(null);
96
+ const tt = Object.freeze([]), Se = Object.freeze({}), lt = /* @__PURE__ */ O.createContext(null);
97
97
  process.env.NODE_ENV !== "production" && (lt.displayName = "TreeViewContext");
98
98
  const ge = () => {
99
- const t = M.useContext(lt);
99
+ const t = O.useContext(lt);
100
100
  if (t == null)
101
101
  throw new Error(["MUI X: Could not find the Tree View context.", "It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.", "This can also happen if you are bundling multiple versions of the Tree View."].join(`
102
102
  `));
103
103
  return t;
104
- }, at = /* @__PURE__ */ M.createContext({
104
+ }, at = /* @__PURE__ */ O.createContext({
105
105
  classes: {},
106
106
  slots: {},
107
107
  slotProps: {}
108
108
  });
109
109
  process.env.NODE_ENV !== "production" && (at.displayName = "TreeViewStyleContext");
110
- const Gt = () => M.useContext(at), Hn = (t) => {
110
+ const Xt = () => O.useContext(at), Hn = (t) => {
111
111
  const {
112
112
  store: e,
113
113
  apiRef: n,
114
114
  rootRef: o
115
115
  } = t, r = it(() => e.buildPublicAPI()).current;
116
116
  qn(r, n);
117
- const s = M.useCallback((a) => {
117
+ const s = O.useCallback((a) => {
118
118
  let h = null, d = null;
119
119
  const c = [], p = {};
120
120
  e.itemPluginManager.listPlugins().forEach((m) => {
@@ -129,8 +129,8 @@ const Gt = () => M.useContext(at), Hn = (t) => {
129
129
  });
130
130
  const f = (m) => (I) => {
131
131
  const b = {};
132
- return c.forEach((x) => {
133
- const w = x[m];
132
+ return c.forEach((E) => {
133
+ const w = E[m];
134
134
  w != null && Object.assign(b, w(I));
135
135
  }), b;
136
136
  }, u = Object.fromEntries(Object.keys(p).map((m) => [m, f(m)]));
@@ -139,7 +139,7 @@ const Gt = () => M.useContext(at), Hn = (t) => {
139
139
  rootRef: h,
140
140
  propsEnhancers: u
141
141
  };
142
- }, [e]), l = M.useCallback(({
142
+ }, [e]), l = O.useCallback(({
143
143
  itemId: a,
144
144
  children: h,
145
145
  idAttribute: d
@@ -157,7 +157,7 @@ const Gt = () => M.useContext(at), Hn = (t) => {
157
157
  }
158
158
  return c;
159
159
  }, [e]);
160
- return M.useMemo(() => ({
160
+ return O.useMemo(() => ({
161
161
  runItemPlugins: s,
162
162
  wrapItem: l,
163
163
  publicAPI: r,
@@ -181,7 +181,7 @@ function Gn(t) {
181
181
  store: e,
182
182
  apiRef: n,
183
183
  rootRef: o
184
- }), d = M.useMemo(() => ({
184
+ }), d = O.useMemo(() => ({
185
185
  classes: r,
186
186
  slots: {
187
187
  collapseIcon: s.collapseIcon,
@@ -223,14 +223,14 @@ function Jn(t) {
223
223
  selectedItems: m,
224
224
  defaultSelectedItems: I,
225
225
  multiSelect: b,
226
- checkboxSelection: x,
226
+ checkboxSelection: E,
227
227
  selectionPropagation: w,
228
- onSelectedItemsChange: _,
229
- onItemSelectionToggle: R,
230
- onItemFocus: F
228
+ onSelectedItemsChange: M,
229
+ onItemSelectionToggle: L,
230
+ onItemFocus: _
231
231
  // SimpleTreeViewStore parameters
232
232
  // Forwarded props
233
- } = t, C = Be(t, Xn), D = M.useMemo(() => ({
233
+ } = t, x = Be(t, Xn), D = O.useMemo(() => ({
234
234
  // Shared parameters
235
235
  disabledItemsFocusable: r,
236
236
  onItemClick: s,
@@ -245,11 +245,11 @@ function Jn(t) {
245
245
  selectedItems: m,
246
246
  defaultSelectedItems: I,
247
247
  multiSelect: b,
248
- checkboxSelection: x,
248
+ checkboxSelection: E,
249
249
  selectionPropagation: w,
250
- onSelectedItemsChange: _,
251
- onItemSelectionToggle: R,
252
- onItemFocus: F
250
+ onSelectedItemsChange: M,
251
+ onItemSelectionToggle: L,
252
+ onItemFocus: _
253
253
  // SimpleTreeViewStore parameters
254
254
  }), [
255
255
  // Shared parameters
@@ -266,11 +266,11 @@ function Jn(t) {
266
266
  m,
267
267
  I,
268
268
  b,
269
- x,
269
+ E,
270
270
  w,
271
- _,
272
- R,
273
- F
271
+ M,
272
+ L,
273
+ _
274
274
  // SimpleTreeViewStore parameters
275
275
  ]);
276
276
  return {
@@ -278,7 +278,7 @@ function Jn(t) {
278
278
  slots: n,
279
279
  slotProps: o,
280
280
  parameters: D,
281
- forwardedProps: C
281
+ forwardedProps: x
282
282
  };
283
283
  }
284
284
  var Qn = (t, e, n) => {
@@ -347,7 +347,7 @@ function no(t, e = "expected all items to be functions, instead received the fol
347
347
  throw new TypeError(`${e}[${n}]`);
348
348
  }
349
349
  }
350
- var kt = (t) => Array.isArray(t) ? t : [t];
350
+ var Ot = (t) => Array.isArray(t) ? t : [t];
351
351
  function oo(t) {
352
352
  const e = Array.isArray(t[0]) ? t[0] : t;
353
353
  return no(
@@ -355,7 +355,7 @@ function oo(t) {
355
355
  "createSelector expects all input-selectors to be functions, but received the following types: "
356
356
  ), e;
357
357
  }
358
- function Ot(t, e) {
358
+ function Mt(t, e) {
359
359
  const n = [], { length: o } = t;
360
360
  for (let r = 0; r < o; r++)
361
361
  n.push(t[r].apply(null, e));
@@ -461,7 +461,7 @@ var uo = class {
461
461
  deref() {
462
462
  return this.value;
463
463
  }
464
- }, po = typeof WeakRef < "u" ? WeakRef : uo, fo = 0, Mt = 1;
464
+ }, po = typeof WeakRef < "u" ? WeakRef : uo, fo = 0, Pt = 1;
465
465
  function Pe() {
466
466
  return {
467
467
  s: fo,
@@ -470,7 +470,7 @@ function Pe() {
470
470
  p: null
471
471
  };
472
472
  }
473
- function Xt(t, e = {}) {
473
+ function Jt(t, e = {}) {
474
474
  let n = Pe();
475
475
  const { resultEqualityCheck: o } = e;
476
476
  let r, s = 0;
@@ -493,13 +493,13 @@ function Xt(t, e = {}) {
493
493
  }
494
494
  const d = a;
495
495
  let c;
496
- if (a.s === Mt)
496
+ if (a.s === Pt)
497
497
  c = a.v;
498
498
  else if (c = t.apply(null, arguments), s++, o) {
499
499
  const p = r?.deref?.() ?? r;
500
500
  p != null && o(p, c) && (c = p, s !== 0 && s--), r = typeof c == "object" && c !== null || typeof c == "function" ? new po(c) : c;
501
501
  }
502
- return d.s = Mt, d.v = c, c;
502
+ return d.s = Pt, d.v = c, c;
503
503
  }
504
504
  return l.clearCache = () => {
505
505
  n = Pe(), l.resetResultsCount();
@@ -507,7 +507,7 @@ function Xt(t, e = {}) {
507
507
  s = 0;
508
508
  }, l;
509
509
  }
510
- function Jt(t, ...e) {
510
+ function Qt(t, ...e) {
511
511
  const n = typeof t == "function" ? {
512
512
  memoize: t,
513
513
  memoizeOptions: e
@@ -523,46 +523,46 @@ function Jt(t, ...e) {
523
523
  }, {
524
524
  memoize: p,
525
525
  memoizeOptions: f = [],
526
- argsMemoize: u = Xt,
526
+ argsMemoize: u = Jt,
527
527
  argsMemoizeOptions: m = [],
528
528
  devModeChecks: I = {}
529
- } = c, b = kt(f), x = kt(m), w = oo(r), _ = p(function() {
529
+ } = c, b = Ot(f), E = Ot(m), w = oo(r), M = p(function() {
530
530
  return s++, d.apply(
531
531
  null,
532
532
  arguments
533
533
  );
534
534
  }, ...b);
535
- let R = !0;
536
- const F = u(function() {
535
+ let L = !0;
536
+ const _ = u(function() {
537
537
  l++;
538
- const D = Ot(
538
+ const D = Mt(
539
539
  w,
540
540
  arguments
541
541
  );
542
- if (a = _.apply(null, D), process.env.NODE_ENV !== "production") {
543
- const { identityFunctionCheck: V, inputStabilityCheck: j } = ro(R, I);
542
+ if (a = M.apply(null, D), process.env.NODE_ENV !== "production") {
543
+ const { identityFunctionCheck: V, inputStabilityCheck: B } = ro(L, I);
544
544
  if (V.shouldRun && V.run(
545
545
  d,
546
546
  D,
547
547
  a
548
- ), j.shouldRun) {
549
- const E = Ot(
548
+ ), B.shouldRun) {
549
+ const j = Mt(
550
550
  w,
551
551
  arguments
552
552
  );
553
- j.run(
554
- { inputSelectorResults: D, inputSelectorResultsCopy: E },
553
+ B.run(
554
+ { inputSelectorResults: D, inputSelectorResultsCopy: j },
555
555
  { memoize: p, memoizeOptions: b },
556
556
  arguments
557
557
  );
558
558
  }
559
- R && (R = !1);
559
+ L && (L = !1);
560
560
  }
561
561
  return a;
562
- }, ...x);
563
- return Object.assign(F, {
562
+ }, ...E);
563
+ return Object.assign(_, {
564
564
  resultFunc: d,
565
- memoizedResultFunc: _,
565
+ memoizedResultFunc: M,
566
566
  dependencies: w,
567
567
  dependencyRecomputations: () => l,
568
568
  resetDependencyRecomputations: () => {
@@ -581,7 +581,7 @@ function Jt(t, ...e) {
581
581
  withTypes: () => o
582
582
  }), o;
583
583
  }
584
- var ho = /* @__PURE__ */ Jt(Xt), mo = Object.assign(
584
+ var ho = /* @__PURE__ */ Qt(Jt), mo = Object.assign(
585
585
  (t, e = ho) => {
586
586
  to(
587
587
  t,
@@ -597,35 +597,35 @@ var ho = /* @__PURE__ */ Jt(Xt), mo = Object.assign(
597
597
  },
598
598
  { withTypes: () => mo }
599
599
  );
600
- const Io = Jt({
600
+ const Io = Qt({
601
601
  memoize: co,
602
602
  memoizeOptions: {
603
603
  maxSize: 1,
604
604
  equalityCheck: Object.is
605
605
  }
606
- }), P = (t, e, n, o, r, s, l, a, ...h) => {
606
+ }), R = (t, e, n, o, r, s, l, a, ...h) => {
607
607
  if (h.length > 0)
608
608
  throw new Error("Unsupported number of selectors");
609
609
  let d;
610
610
  if (t && e && n && o && r && s && l && a)
611
611
  d = (c, p, f, u) => {
612
- const m = t(c, p, f, u), I = e(c, p, f, u), b = n(c, p, f, u), x = o(c, p, f, u), w = r(c, p, f, u), _ = s(c, p, f, u), R = l(c, p, f, u);
613
- return a(m, I, b, x, w, _, R, p, f, u);
612
+ const m = t(c, p, f, u), I = e(c, p, f, u), b = n(c, p, f, u), E = o(c, p, f, u), w = r(c, p, f, u), M = s(c, p, f, u), L = l(c, p, f, u);
613
+ return a(m, I, b, E, w, M, L, p, f, u);
614
614
  };
615
615
  else if (t && e && n && o && r && s && l)
616
616
  d = (c, p, f, u) => {
617
- const m = t(c, p, f, u), I = e(c, p, f, u), b = n(c, p, f, u), x = o(c, p, f, u), w = r(c, p, f, u), _ = s(c, p, f, u);
618
- return l(m, I, b, x, w, _, p, f, u);
617
+ const m = t(c, p, f, u), I = e(c, p, f, u), b = n(c, p, f, u), E = o(c, p, f, u), w = r(c, p, f, u), M = s(c, p, f, u);
618
+ return l(m, I, b, E, w, M, p, f, u);
619
619
  };
620
620
  else if (t && e && n && o && r && s)
621
621
  d = (c, p, f, u) => {
622
- const m = t(c, p, f, u), I = e(c, p, f, u), b = n(c, p, f, u), x = o(c, p, f, u), w = r(c, p, f, u);
623
- return s(m, I, b, x, w, p, f, u);
622
+ const m = t(c, p, f, u), I = e(c, p, f, u), b = n(c, p, f, u), E = o(c, p, f, u), w = r(c, p, f, u);
623
+ return s(m, I, b, E, w, p, f, u);
624
624
  };
625
625
  else if (t && e && n && o && r)
626
626
  d = (c, p, f, u) => {
627
- const m = t(c, p, f, u), I = e(c, p, f, u), b = n(c, p, f, u), x = o(c, p, f, u);
628
- return r(m, I, b, x, p, f, u);
627
+ const m = t(c, p, f, u), I = e(c, p, f, u), b = n(c, p, f, u), E = o(c, p, f, u);
628
+ return r(m, I, b, E, p, f, u);
629
629
  };
630
630
  else if (t && e && n && o)
631
631
  d = (c, p, f, u) => {
@@ -660,7 +660,7 @@ const Io = Jt({
660
660
  }, h.__cacheKey__ = f, o += 1);
661
661
  let u = n.get(f);
662
662
  if (!u) {
663
- const m = e.length === 1 ? [(x) => x, r] : e;
663
+ const m = e.length === 1 ? [(E) => E, r] : e;
664
664
  let I = e;
665
665
  const b = [void 0, void 0, void 0];
666
666
  switch (l) {
@@ -706,10 +706,10 @@ const Io = Jt({
706
706
  };
707
707
  }, Te = go();
708
708
  var Re = { exports: {} }, He = {};
709
- var Pt;
709
+ var Rt;
710
710
  function bo() {
711
- if (Pt) return He;
712
- Pt = 1;
711
+ if (Rt) return He;
712
+ Rt = 1;
713
713
  var t = $e;
714
714
  function e(p, f) {
715
715
  return p === f && (p !== 0 || 1 / p === 1 / f) || p !== p && f !== f;
@@ -748,9 +748,9 @@ function bo() {
748
748
  return He.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : c, He;
749
749
  }
750
750
  var qe = {};
751
- var Rt;
751
+ var Lt;
752
752
  function So() {
753
- return Rt || (Rt = 1, process.env.NODE_ENV !== "production" && (function() {
753
+ return Lt || (Lt = 1, process.env.NODE_ENV !== "production" && (function() {
754
754
  function t(u, m) {
755
755
  return u === m && (u !== 0 || 1 / u === 1 / m) || u !== u && m !== m;
756
756
  }
@@ -768,16 +768,16 @@ function So() {
768
768
  b = l({
769
769
  inst: { value: I, getSnapshot: m }
770
770
  });
771
- var x = b[0].inst, w = b[1];
771
+ var E = b[0].inst, w = b[1];
772
772
  return h(
773
773
  function() {
774
- x.value = I, x.getSnapshot = m, n(x) && w({ inst: x });
774
+ E.value = I, E.getSnapshot = m, n(E) && w({ inst: E });
775
775
  },
776
776
  [u, I, m]
777
777
  ), a(
778
778
  function() {
779
- return n(x) && w({ inst: x }), u(function() {
780
- n(x) && w({ inst: x });
779
+ return n(E) && w({ inst: E }), u(function() {
780
+ n(E) && w({ inst: E });
781
781
  });
782
782
  },
783
783
  [u]
@@ -801,15 +801,15 @@ function So() {
801
801
  qe.useSyncExternalStore = r.useSyncExternalStore !== void 0 ? r.useSyncExternalStore : f, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
802
802
  })()), qe;
803
803
  }
804
- var Lt;
804
+ var Dt;
805
805
  function ct() {
806
- return Lt || (Lt = 1, process.env.NODE_ENV === "production" ? Re.exports = bo() : Re.exports = So()), Re.exports;
806
+ return Dt || (Dt = 1, process.env.NODE_ENV === "production" ? Re.exports = bo() : Re.exports = So()), Re.exports;
807
807
  }
808
808
  var yo = ct(), Le = { exports: {} }, Ge = {};
809
- var Dt;
809
+ var _t;
810
810
  function xo() {
811
- if (Dt) return Ge;
812
- Dt = 1;
811
+ if (_t) return Ge;
812
+ _t = 1;
813
813
  var t = $e, e = ct();
814
814
  function n(d, c) {
815
815
  return d === c && (d !== 0 || 1 / d === 1 / c) || d !== d && c !== c;
@@ -823,26 +823,26 @@ function xo() {
823
823
  } else I = m.current;
824
824
  m = a(
825
825
  function() {
826
- function x(C) {
826
+ function E(x) {
827
827
  if (!w) {
828
- if (w = !0, _ = C, C = f(C), u !== void 0 && I.hasValue) {
828
+ if (w = !0, M = x, x = f(x), u !== void 0 && I.hasValue) {
829
829
  var D = I.value;
830
- if (u(D, C))
831
- return R = D;
830
+ if (u(D, x))
831
+ return L = D;
832
832
  }
833
- return R = C;
833
+ return L = x;
834
834
  }
835
- if (D = R, o(_, C)) return D;
836
- var V = f(C);
837
- return u !== void 0 && u(D, V) ? (_ = C, D) : (_ = C, R = V);
835
+ if (D = L, o(M, x)) return D;
836
+ var V = f(x);
837
+ return u !== void 0 && u(D, V) ? (M = x, D) : (M = x, L = V);
838
838
  }
839
- var w = !1, _, R, F = p === void 0 ? null : p;
839
+ var w = !1, M, L, _ = p === void 0 ? null : p;
840
840
  return [
841
841
  function() {
842
- return x(c());
842
+ return E(c());
843
843
  },
844
- F === null ? void 0 : function() {
845
- return x(F());
844
+ _ === null ? void 0 : function() {
845
+ return E(_());
846
846
  }
847
847
  ];
848
848
  },
@@ -858,9 +858,9 @@ function xo() {
858
858
  }, Ge;
859
859
  }
860
860
  var Xe = {};
861
- var _t;
861
+ var At;
862
862
  function Eo() {
863
- return _t || (_t = 1, process.env.NODE_ENV !== "production" && (function() {
863
+ return At || (At = 1, process.env.NODE_ENV !== "production" && (function() {
864
864
  function t(d, c) {
865
865
  return d === c && (d !== 0 || 1 / d === 1 / c) || d !== d && c !== c;
866
866
  }
@@ -874,27 +874,27 @@ function Eo() {
874
874
  } else I = m.current;
875
875
  m = a(
876
876
  function() {
877
- function x(C) {
877
+ function E(x) {
878
878
  if (!w) {
879
- if (w = !0, _ = C, C = f(C), u !== void 0 && I.hasValue) {
879
+ if (w = !0, M = x, x = f(x), u !== void 0 && I.hasValue) {
880
880
  var D = I.value;
881
- if (u(D, C))
882
- return R = D;
881
+ if (u(D, x))
882
+ return L = D;
883
883
  }
884
- return R = C;
884
+ return L = x;
885
885
  }
886
- if (D = R, o(_, C))
886
+ if (D = L, o(M, x))
887
887
  return D;
888
- var V = f(C);
889
- return u !== void 0 && u(D, V) ? (_ = C, D) : (_ = C, R = V);
888
+ var V = f(x);
889
+ return u !== void 0 && u(D, V) ? (M = x, D) : (M = x, L = V);
890
890
  }
891
- var w = !1, _, R, F = p === void 0 ? null : p;
891
+ var w = !1, M, L, _ = p === void 0 ? null : p;
892
892
  return [
893
893
  function() {
894
- return x(c());
894
+ return E(c());
895
895
  },
896
- F === null ? void 0 : function() {
897
- return x(F());
896
+ _ === null ? void 0 : function() {
897
+ return E(_());
898
898
  }
899
899
  ];
900
900
  },
@@ -910,17 +910,17 @@ function Eo() {
910
910
  }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
911
911
  })()), Xe;
912
912
  }
913
- var At;
913
+ var Nt;
914
914
  function Co() {
915
- return At || (At = 1, process.env.NODE_ENV === "production" ? Le.exports = xo() : Le.exports = Eo()), Le.exports;
915
+ return Nt || (Nt = 1, process.env.NODE_ENV === "production" ? Le.exports = xo() : Le.exports = Eo()), Le.exports;
916
916
  }
917
917
  var vo = Co();
918
- const wo = parseInt(M.version, 10), To = wo >= 19, ko = To ? Oo : Mo;
918
+ const wo = parseInt(O.version, 10), To = wo >= 19, ko = To ? Oo : Mo;
919
919
  function W(t, e, n, o, r) {
920
920
  return ko(t, e, n, o, r);
921
921
  }
922
922
  function Oo(t, e, n, o, r) {
923
- const s = M.useCallback(() => e(t.getSnapshot(), n, o, r), [t, e, n, o, r]);
923
+ const s = O.useCallback(() => e(t.getSnapshot(), n, o, r), [t, e, n, o, r]);
924
924
  return yo.useSyncExternalStore(t.subscribe, s, s);
925
925
  }
926
926
  function Mo(t, e, n, o, r) {
@@ -968,18 +968,18 @@ class dt {
968
968
  }
969
969
  use = (e, n, o, r) => W(this, e, n, o, r);
970
970
  }
971
- const Nt = P((t) => t.providedTreeId ?? t.treeId), ke = {
971
+ const Ft = R((t) => t.providedTreeId ?? t.treeId), ke = {
972
972
  /**
973
973
  * Get the id attribute of the tree view.
974
974
  */
975
- treeId: Nt,
975
+ treeId: Ft,
976
976
  /**
977
977
  * Generate the id attribute (i.e.: the `id` attribute passed to the DOM element) of a Tree Item.
978
978
  * If the user explicitly defined an id attribute, it will be returned.
979
979
  * Otherwise, the method creates a unique id for the item based on the Tree View id attribute and the item `itemId`
980
980
  */
981
- treeItemIdAttribute: P(Nt, (t, e, n) => n ?? `${t ?? ""}-${e}`)
982
- }, se = "__TREE_VIEW_ROOT_PARENT_ID__", Qt = (t) => {
981
+ treeItemIdAttribute: R(Ft, (t, e, n) => n ?? `${t ?? ""}-${e}`)
982
+ }, ie = "__TREE_VIEW_ROOT_PARENT_ID__", Yt = (t) => {
983
983
  const e = {};
984
984
  return t.forEach((n, o) => {
985
985
  e[n] = o;
@@ -1000,7 +1000,7 @@ const Nt = P((t) => t.providedTreeId ?? t.treeId), ke = {
1000
1000
  }
1001
1001
  return !1;
1002
1002
  };
1003
- function Ft(t) {
1003
+ function Vt(t) {
1004
1004
  const {
1005
1005
  storeParameters: e,
1006
1006
  items: n,
@@ -1042,7 +1042,7 @@ function Ft(t) {
1042
1042
  metaLookup: a,
1043
1043
  modelLookup: h,
1044
1044
  orderedChildrenIds: d,
1045
- childrenIndexes: Qt(d),
1045
+ childrenIndexes: Yt(d),
1046
1046
  itemsChildren: c
1047
1047
  };
1048
1048
  }
@@ -1065,58 +1065,58 @@ const Ro = [], y = {
1065
1065
  /**
1066
1066
  * Gets the DOM structure of the Tree View.
1067
1067
  */
1068
- domStructure: P((t) => t.domStructure),
1068
+ domStructure: R((t) => t.domStructure),
1069
1069
  /**
1070
1070
  * Checks whether the disabled items are focusable.
1071
1071
  */
1072
- disabledItemFocusable: P((t) => t.disabledItemsFocusable),
1072
+ disabledItemFocusable: R((t) => t.disabledItemsFocusable),
1073
1073
  /**
1074
1074
  * Gets the meta-information of all items.
1075
1075
  */
1076
- itemMetaLookup: P((t) => t.itemMetaLookup),
1076
+ itemMetaLookup: R((t) => t.itemMetaLookup),
1077
1077
  /**
1078
1078
  * Gets the ordered children ids of all items.
1079
1079
  */
1080
- itemOrderedChildrenIdsLookup: P((t) => t.itemOrderedChildrenIdsLookup),
1080
+ itemOrderedChildrenIdsLookup: R((t) => t.itemOrderedChildrenIdsLookup),
1081
1081
  /**
1082
1082
  * Gets the meta-information of an item.
1083
1083
  */
1084
- itemMeta: P((t, e) => t.itemMetaLookup[e ?? se] ?? null),
1084
+ itemMeta: R((t, e) => t.itemMetaLookup[e ?? ie] ?? null),
1085
1085
  /**
1086
1086
  * Gets the ordered children ids of an item.
1087
1087
  */
1088
- itemOrderedChildrenIds: P((t, e) => t.itemOrderedChildrenIdsLookup[e ?? se] ?? Ro),
1088
+ itemOrderedChildrenIds: R((t, e) => t.itemOrderedChildrenIdsLookup[e ?? ie] ?? Ro),
1089
1089
  /**
1090
1090
  * Gets the model of an item.
1091
1091
  */
1092
- itemModel: P((t, e) => t.itemModelLookup[e]),
1092
+ itemModel: R((t, e) => t.itemModelLookup[e]),
1093
1093
  /**
1094
1094
  * Checks whether an item is disabled.
1095
1095
  */
1096
- isItemDisabled: P((t, e) => Ve(t.itemMetaLookup, e)),
1096
+ isItemDisabled: R((t, e) => Ve(t.itemMetaLookup, e)),
1097
1097
  /**
1098
1098
  * Gets the index of an item in its parent's children.
1099
1099
  */
1100
- itemIndex: P((t, e) => {
1100
+ itemIndex: R((t, e) => {
1101
1101
  const n = t.itemMetaLookup[e];
1102
- return n == null ? -1 : t.itemChildrenIndexesLookup[n.parentId ?? se][n.id];
1102
+ return n == null ? -1 : t.itemChildrenIndexesLookup[n.parentId ?? ie][n.id];
1103
1103
  }),
1104
1104
  /**
1105
1105
  * Gets the id of an item's parent.
1106
1106
  */
1107
- itemParentId: P((t, e) => t.itemMetaLookup[e]?.parentId ?? null),
1107
+ itemParentId: R((t, e) => t.itemMetaLookup[e]?.parentId ?? null),
1108
1108
  /**
1109
1109
  * Gets the depth of an item (items at the root level have a depth of 0).
1110
1110
  */
1111
- itemDepth: P((t, e) => t.itemMetaLookup[e]?.depth ?? 0),
1111
+ itemDepth: R((t, e) => t.itemMetaLookup[e]?.depth ?? 0),
1112
1112
  /**
1113
1113
  * Checks whether an item can be focused.
1114
1114
  */
1115
- canItemBeFocused: P((t, e) => t.disabledItemsFocusable || !Ve(t.itemMetaLookup, e)),
1115
+ canItemBeFocused: R((t, e) => t.disabledItemsFocusable || !Ve(t.itemMetaLookup, e)),
1116
1116
  /**
1117
1117
  * Gets the identation between an item and its children.
1118
1118
  */
1119
- itemChildrenIndentation: P((t) => t.itemChildrenIndentation)
1119
+ itemChildrenIndentation: R((t) => t.itemChildrenIndentation)
1120
1120
  };
1121
1121
  class De {
1122
1122
  // We can't type `store`, otherwise we get the following TS error:
@@ -1137,18 +1137,18 @@ class De {
1137
1137
  static buildItemsStateIfNeeded = (e) => {
1138
1138
  const n = {}, o = {}, r = {}, s = {};
1139
1139
  function l(a, h, d) {
1140
- const c = h ?? se, {
1140
+ const c = h ?? ie, {
1141
1141
  metaLookup: p,
1142
1142
  modelLookup: f,
1143
1143
  orderedChildrenIds: u,
1144
1144
  childrenIndexes: m,
1145
1145
  itemsChildren: I
1146
- } = Ft({
1146
+ } = Vt({
1147
1147
  storeParameters: e,
1148
1148
  items: a,
1149
1149
  parentId: h,
1150
1150
  depth: d,
1151
- isItemExpandable: (b, x) => !!x && x.length > 0,
1151
+ isItemExpandable: (b, E) => !!E && E.length > 0,
1152
1152
  otherItemsMetaLookup: n
1153
1153
  });
1154
1154
  Object.assign(n, p), Object.assign(o, f), r[c] = u, s[c] = m;
@@ -1239,12 +1239,12 @@ class De {
1239
1239
  parentId: n,
1240
1240
  getChildrenCount: o
1241
1241
  }) => {
1242
- const r = n ?? se, s = n == null ? -1 : y.itemDepth(this.store.state, n), {
1242
+ const r = n ?? ie, s = n == null ? -1 : y.itemDepth(this.store.state, n), {
1243
1243
  metaLookup: l,
1244
1244
  modelLookup: a,
1245
1245
  orderedChildrenIds: h,
1246
1246
  childrenIndexes: d
1247
- } = Ft({
1247
+ } = Vt({
1248
1248
  storeParameters: this.store.parameters,
1249
1249
  items: e,
1250
1250
  parentId: n,
@@ -1273,7 +1273,7 @@ class De {
1273
1273
  return d.parentId === e ? a : S({}, a, {
1274
1274
  [d.id]: d
1275
1275
  });
1276
- }, {}), r = S({}, this.store.state.itemOrderedChildrenIdsLookup), s = S({}, this.store.state.itemChildrenIndexesLookup), l = e ?? se;
1276
+ }, {}), r = S({}, this.store.state.itemOrderedChildrenIdsLookup), s = S({}, this.store.state.itemChildrenIndexesLookup), l = e ?? ie;
1277
1277
  delete s[l], delete r[l], this.store.update({
1278
1278
  itemMetaLookup: o,
1279
1279
  itemOrderedChildrenIdsLookup: r,
@@ -1289,58 +1289,58 @@ class De {
1289
1289
  this.store.parameters.onItemClick?.(e, n);
1290
1290
  };
1291
1291
  }
1292
- const Yt = Te((t) => t.selectedItems, (t) => Array.isArray(t) ? t : t != null ? [t] : []), Vt = Te(Yt, (t) => {
1292
+ const Zt = Te((t) => t.selectedItems, (t) => Array.isArray(t) ? t : t != null ? [t] : []), zt = Te(Zt, (t) => {
1293
1293
  const e = /* @__PURE__ */ new Map();
1294
1294
  return t.forEach((n) => {
1295
1295
  e.set(n, !0);
1296
1296
  }), e;
1297
- }), Je = P((t, e) => t.itemMetaLookup[e]?.selectable ?? !0), N = {
1297
+ }), Je = R((t, e) => t.itemMetaLookup[e]?.selectable ?? !0), N = {
1298
1298
  /**
1299
1299
  * Gets the selected items as provided to the component.
1300
1300
  */
1301
- selectedItemsRaw: P((t) => t.selectedItems),
1301
+ selectedItemsRaw: R((t) => t.selectedItems),
1302
1302
  /**
1303
1303
  * Gets the selected items as an array.
1304
1304
  */
1305
- selectedItems: Yt,
1305
+ selectedItems: Zt,
1306
1306
  /**
1307
1307
  * Gets the selected items as a Map.
1308
1308
  */
1309
- selectedItemsMap: Vt,
1309
+ selectedItemsMap: zt,
1310
1310
  /**
1311
1311
  * Checks whether selection is enabled.
1312
1312
  */
1313
- enabled: P((t) => !t.disableSelection),
1313
+ enabled: R((t) => !t.disableSelection),
1314
1314
  /**
1315
1315
  * Checks whether multi selection is enabled.
1316
1316
  */
1317
- isMultiSelectEnabled: P((t) => t.multiSelect),
1317
+ isMultiSelectEnabled: R((t) => t.multiSelect),
1318
1318
  /**
1319
1319
  * Checks whether checkbox selection is enabled.
1320
1320
  */
1321
- isCheckboxSelectionEnabled: P((t) => t.checkboxSelection),
1321
+ isCheckboxSelectionEnabled: R((t) => t.checkboxSelection),
1322
1322
  /**
1323
1323
  * Gets the selection propagation rules.
1324
1324
  */
1325
- propagationRules: P((t) => t.selectionPropagation),
1325
+ propagationRules: R((t) => t.selectionPropagation),
1326
1326
  /**
1327
1327
  * Checks whether an item is selected.
1328
1328
  */
1329
- isItemSelected: P(Vt, (t, e) => t.has(e)),
1329
+ isItemSelected: R(zt, (t, e) => t.has(e)),
1330
1330
  /**
1331
1331
  * Checks whether the selection feature is enabled for an item.
1332
1332
  * Returns `true` when selection is enabled on the Tree View and the item is selectable (even if the item is disabled).
1333
1333
  */
1334
- isFeatureEnabledForItem: P(Je, (t) => !t.disableSelection, (t, e, n) => e && t),
1334
+ isFeatureEnabledForItem: R(Je, (t) => !t.disableSelection, (t, e, n) => e && t),
1335
1335
  /**
1336
1336
  * Checks whether an item can be selected (if selection is enabled, if the item is not disabled, and if the item is selectable).
1337
1337
  */
1338
- canItemBeSelected: P(y.isItemDisabled, Je, (t) => !t.disableSelection, (t, e, n, o) => n && !t && e),
1338
+ canItemBeSelected: R(y.isItemDisabled, Je, (t) => !t.disableSelection, (t, e, n, o) => n && !t && e),
1339
1339
  /**
1340
1340
  * Checks whether an item is selectable based on the `isItemSelectionDisabled` prop.
1341
1341
  */
1342
1342
  isItemSelectable: Je
1343
- }, Lo = P((t, e) => {
1343
+ }, Lo = R((t, e) => {
1344
1344
  if (N.isItemSelected(t, e))
1345
1345
  return "checked";
1346
1346
  let n = !1, o = !1;
@@ -1384,11 +1384,11 @@ const Yt = Te((t) => t.selectedItems, (t) => Array.isArray(t) ? t : t != null ?
1384
1384
  return t.forEach((n) => {
1385
1385
  e.set(n, !0);
1386
1386
  }), e;
1387
- }), H = {
1387
+ }), q = {
1388
1388
  /**
1389
1389
  * Gets the expanded items as provided to the component.
1390
1390
  */
1391
- expandedItemsRaw: P((t) => t.expandedItems),
1391
+ expandedItemsRaw: R((t) => t.expandedItems),
1392
1392
  /**
1393
1393
  * Gets the expanded items as a Map.
1394
1394
  */
@@ -1405,27 +1405,27 @@ const Yt = Te((t) => t.selectedItems, (t) => Array.isArray(t) ? t : t != null ?
1405
1405
  r.push(...n(l));
1406
1406
  return r;
1407
1407
  }
1408
- return (t[se] ?? []).flatMap(n);
1408
+ return (t[ie] ?? []).flatMap(n);
1409
1409
  }),
1410
1410
  /**
1411
1411
  * Gets the slot that triggers the item's expansion when clicked.
1412
1412
  */
1413
- triggerSlot: P((t) => t.expansionTrigger),
1413
+ triggerSlot: R((t) => t.expansionTrigger),
1414
1414
  /**
1415
1415
  * Checks whether an item is expanded.
1416
1416
  */
1417
- isItemExpanded: P(Qe, (t, e) => t.has(e)),
1417
+ isItemExpanded: R(Qe, (t, e) => t.has(e)),
1418
1418
  /**
1419
1419
  * Checks whether an item is expandable.
1420
1420
  */
1421
- isItemExpandable: P(y.itemMeta, (t, e) => t?.expandable ?? !1)
1421
+ isItemExpandable: R(y.itemMeta, (t, e) => t?.expandable ?? !1)
1422
1422
  }, nt = (t, e) => {
1423
1423
  let n = e.length - 1;
1424
1424
  for (; n >= 0 && !y.canItemBeFocused(t, e[n]); )
1425
1425
  n -= 1;
1426
1426
  if (n !== -1)
1427
1427
  return e[n];
1428
- }, Zt = (t, e) => {
1428
+ }, en = (t, e) => {
1429
1429
  const n = y.itemMeta(t, e);
1430
1430
  if (!n)
1431
1431
  return null;
@@ -1436,13 +1436,13 @@ const Yt = Te((t) => t.selectedItems, (t) => Array.isArray(t) ? t : t != null ?
1436
1436
  for (; !y.canItemBeFocused(t, o[s]) && s >= 0; )
1437
1437
  s -= 1;
1438
1438
  if (s === -1)
1439
- return n.parentId == null ? null : Zt(t, n.parentId);
1439
+ return n.parentId == null ? null : en(t, n.parentId);
1440
1440
  let l = o[s], a = nt(t, y.itemOrderedChildrenIds(t, l));
1441
- for (; H.isItemExpanded(t, l) && a != null; )
1441
+ for (; q.isItemExpanded(t, l) && a != null; )
1442
1442
  l = a, a = nt(t, y.itemOrderedChildrenIds(t, l));
1443
1443
  return l;
1444
1444
  }, _e = (t, e) => {
1445
- if (H.isItemExpanded(t, e)) {
1445
+ if (q.isItemExpanded(t, e)) {
1446
1446
  const o = y.itemOrderedChildrenIds(t, e).find((r) => y.canItemBeFocused(t, r));
1447
1447
  if (o != null)
1448
1448
  return o;
@@ -1460,16 +1460,16 @@ const Yt = Te((t) => t.selectedItems, (t) => Array.isArray(t) ? t : t != null ?
1460
1460
  n = y.itemMeta(t, n.parentId);
1461
1461
  }
1462
1462
  return null;
1463
- }, en = (t) => {
1463
+ }, tn = (t) => {
1464
1464
  let e = null;
1465
- for (; e == null || H.isItemExpanded(t, e); ) {
1465
+ for (; e == null || q.isItemExpanded(t, e); ) {
1466
1466
  const n = y.itemOrderedChildrenIds(t, e), o = nt(t, n);
1467
1467
  if (o == null)
1468
1468
  return e;
1469
1469
  e = o;
1470
1470
  }
1471
1471
  return e;
1472
- }, ze = (t) => y.itemOrderedChildrenIds(t, null).find((e) => y.canItemBeFocused(t, e)), tn = (t, e, n) => {
1472
+ }, ze = (t) => y.itemOrderedChildrenIds(t, null).find((e) => y.canItemBeFocused(t, e)), nn = (t, e, n) => {
1473
1473
  if (e === n)
1474
1474
  return [e, n];
1475
1475
  const o = y.itemMeta(t, e), r = y.itemMeta(t, n);
@@ -1485,7 +1485,7 @@ const Yt = Te((t) => t.selectedItems, (t) => Array.isArray(t) ? t : t != null ?
1485
1485
  return m.indexOf(I) < m.indexOf(b) ? [e, n] : [n, e];
1486
1486
  }, _o = (t, e, n) => {
1487
1487
  const o = (h) => {
1488
- if (H.isItemExpandable(t, h) && H.isItemExpanded(t, h))
1488
+ if (q.isItemExpandable(t, h) && q.isItemExpanded(t, h))
1489
1489
  return y.itemOrderedChildrenIds(t, h)[0];
1490
1490
  let d = y.itemMeta(t, h);
1491
1491
  for (; d != null; ) {
@@ -1495,7 +1495,7 @@ const Yt = Te((t) => t.selectedItems, (t) => Array.isArray(t) ? t : t != null ?
1495
1495
  d = d.parentId ? y.itemMeta(t, d.parentId) : null;
1496
1496
  }
1497
1497
  throw new Error("Invalid range");
1498
- }, [r, s] = tn(t, e, n), l = [r];
1498
+ }, [r, s] = nn(t, e, n), l = [r];
1499
1499
  let a = r;
1500
1500
  for (; a !== s; )
1501
1501
  a = o(a), y.isItemDisabled(t, a) || l.push(a);
@@ -1532,7 +1532,7 @@ class No {
1532
1532
  additionalItemsToPropagate: o
1533
1533
  }) : d = n, l)
1534
1534
  if (c) {
1535
- const p = nn({
1535
+ const p = on({
1536
1536
  store: this.store,
1537
1537
  newModel: d,
1538
1538
  oldModel: h
@@ -1604,7 +1604,7 @@ class No {
1604
1604
  */
1605
1605
  expandSelectionRange = (e, n) => {
1606
1606
  if (this.lastSelectedItem != null) {
1607
- const [o, r] = tn(this.store.state, n, this.lastSelectedItem);
1607
+ const [o, r] = nn(this.store.state, n, this.lastSelectedItem);
1608
1608
  this.selectRange(e, [o, r]);
1609
1609
  }
1610
1610
  };
@@ -1622,7 +1622,7 @@ class No {
1622
1622
  * @param {TreeViewItemId} itemId The id of the item from which the selection range should be expanded.
1623
1623
  */
1624
1624
  selectRangeFromItemToEnd = (e, n) => {
1625
- this.selectRange(e, [n, en(this.store.state)]);
1625
+ this.selectRange(e, [n, tn(this.store.state)]);
1626
1626
  };
1627
1627
  /**
1628
1628
  * Update the selection when navigating with ArrowUp / ArrowDown keys.
@@ -1650,7 +1650,7 @@ function Fo({
1650
1650
  if (!e.descendants && !e.parents)
1651
1651
  return n;
1652
1652
  let s = !1;
1653
- const l = Ae(n), a = nn({
1653
+ const l = Ae(n), a = on({
1654
1654
  store: t,
1655
1655
  newModel: n,
1656
1656
  oldModel: o
@@ -1687,7 +1687,7 @@ function Fo({
1687
1687
  }
1688
1688
  }), s ? Object.keys(l) : n;
1689
1689
  }
1690
- function nn({
1690
+ function on({
1691
1691
  store: t,
1692
1692
  oldModel: e,
1693
1693
  newModel: n
@@ -1728,7 +1728,7 @@ function Vo(t, e, n) {
1728
1728
  function zo(t) {
1729
1729
  return t.replace(/["\\]/g, "\\$&");
1730
1730
  }
1731
- const ut = /* @__PURE__ */ M.createContext(null);
1731
+ const ut = /* @__PURE__ */ O.createContext(null);
1732
1732
  process.env.NODE_ENV !== "production" && (ut.displayName = "TreeViewChildrenItemContext");
1733
1733
  function pt(t) {
1734
1734
  const {
@@ -1738,8 +1738,8 @@ function pt(t) {
1738
1738
  } = t, {
1739
1739
  store: r,
1740
1740
  rootRef: s
1741
- } = ge(), l = M.useRef(/* @__PURE__ */ new Map());
1742
- M.useEffect(() => {
1741
+ } = ge(), l = O.useRef(/* @__PURE__ */ new Map());
1742
+ O.useEffect(() => {
1743
1743
  if (!s.current)
1744
1744
  return;
1745
1745
  const h = y.itemOrderedChildrenIds(r.state, n ?? null) ?? [], d = zo(o ?? s.current.id);
@@ -1751,7 +1751,7 @@ function pt(t) {
1751
1751
  const c = s.current.querySelectorAll(`${n == null ? "" : `*[id="${d}"] `}[role="treeitem"]:not(*[id="${d}"] [role="treeitem"] [role="treeitem"])`), p = Array.from(c).map((u) => l.current.get(u.id));
1752
1752
  (p.length !== h.length || p.some((u, m) => u !== h[m])) && r.jsxItems.setJSXItemsOrderedChildrenIds(n ?? null, p);
1753
1753
  });
1754
- const a = M.useMemo(() => ({
1754
+ const a = O.useMemo(() => ({
1755
1755
  registerChild: (h, d) => l.current.set(h, d),
1756
1756
  unregisterChild: (h) => l.current.delete(h),
1757
1757
  parentId: n
@@ -1765,12 +1765,12 @@ process.env.NODE_ENV !== "production" && (pt.propTypes = {
1765
1765
  children: i.node,
1766
1766
  id: i.string
1767
1767
  });
1768
- const xe = /* @__PURE__ */ M.createContext(() => -1);
1768
+ const xe = /* @__PURE__ */ O.createContext(() => -1);
1769
1769
  process.env.NODE_ENV !== "production" && (xe.displayName = "TreeViewItemDepthContext");
1770
1770
  const jo = () => {
1771
- }, rt = typeof document < "u" ? M.useLayoutEffect : jo, $o = [];
1771
+ }, rt = typeof document < "u" ? O.useLayoutEffect : jo, $o = [];
1772
1772
  function Bo(t) {
1773
- M.useEffect(t, $o);
1773
+ O.useEffect(t, $o);
1774
1774
  }
1775
1775
  function Wo(t, e) {
1776
1776
  const n = Nn(), o = it(() => new t(S({}, e, {
@@ -1826,7 +1826,7 @@ const Uo = ({
1826
1826
  isItemEditable: t,
1827
1827
  expansionTrigger: e
1828
1828
  }) => e || (t ? "iconContainer" : "content");
1829
- function on(t) {
1829
+ function rn(t) {
1830
1830
  return {
1831
1831
  disabledItemsFocusable: t.disabledItemsFocusable ?? !1,
1832
1832
  domStructure: "nested",
@@ -1843,20 +1843,20 @@ function on(t) {
1843
1843
  selectionPropagation: t.selectionPropagation ?? Se
1844
1844
  };
1845
1845
  }
1846
- function zt(t, e, n) {
1846
+ function jt(t, e, n) {
1847
1847
  return t !== void 0 ? t : e !== void 0 ? e : n;
1848
1848
  }
1849
1849
  function Ho(t) {
1850
1850
  return S({
1851
1851
  treeId: void 0,
1852
1852
  focusedItemId: null
1853
- }, on(t), De.buildItemsStateIfNeeded(t), {
1854
- expandedItems: zt(t.expandedItems, t.defaultExpandedItems, []),
1855
- selectedItems: zt(t.selectedItems, t.defaultSelectedItems, t.multiSelect ? tt : null)
1853
+ }, rn(t), De.buildItemsStateIfNeeded(t), {
1854
+ expandedItems: jt(t.expandedItems, t.defaultExpandedItems, []),
1855
+ selectedItems: jt(t.selectedItems, t.defaultSelectedItems, t.multiSelect ? tt : null)
1856
1856
  });
1857
1857
  }
1858
- let jt = 0;
1859
- const qo = () => (jt += 1, `mui-tree-view-${jt}`);
1858
+ let $t = 0;
1859
+ const qo = () => ($t += 1, `mui-tree-view-${$t}`);
1860
1860
  class Go {
1861
1861
  timeoutIds = /* @__PURE__ */ new Map();
1862
1862
  intervalIds = /* @__PURE__ */ new Map();
@@ -1898,7 +1898,7 @@ class Xo {
1898
1898
  * @param {TreeViewItemId} itemId The id of the item to check.
1899
1899
  * @returns {boolean} `true` if the item is expanded, `false` otherwise.
1900
1900
  */
1901
- isItemExpanded = (e) => H.isItemExpanded(this.store.state, e);
1901
+ isItemExpanded = (e) => q.isItemExpanded(this.store.state, e);
1902
1902
  buildPublicAPI = () => ({
1903
1903
  isItemExpanded: this.isItemExpanded,
1904
1904
  setItemExpansion: this.setItemExpansion
@@ -1915,7 +1915,7 @@ class Xo {
1915
1915
  event: n = null,
1916
1916
  shouldBeExpanded: o
1917
1917
  }) => {
1918
- const r = H.isItemExpanded(this.store.state, e), s = o ?? !r;
1918
+ const r = q.isItemExpanded(this.store.state, e), s = o ?? !r;
1919
1919
  if (r === s)
1920
1920
  return;
1921
1921
  const l = {
@@ -1943,7 +1943,7 @@ class Xo {
1943
1943
  event: n,
1944
1944
  shouldBeExpanded: o
1945
1945
  }) => {
1946
- const r = H.expandedItemsRaw(this.store.state);
1946
+ const r = q.expandedItemsRaw(this.store.state);
1947
1947
  let s;
1948
1948
  o ? s = [e].concat(r) : s = r.filter((l) => l !== e), this.store.parameters.onItemExpansionToggle?.(n, e, o), this.setExpandedItems(n, s);
1949
1949
  };
@@ -1956,7 +1956,7 @@ class Xo {
1956
1956
  const o = y.itemMeta(this.store.state, n);
1957
1957
  if (o == null)
1958
1958
  return;
1959
- const s = y.itemOrderedChildrenIds(this.store.state, o.parentId).filter((a) => H.isItemExpandable(this.store.state, a) && !H.isItemExpanded(this.store.state, a)), l = H.expandedItemsRaw(this.store.state).concat(s);
1959
+ const s = y.itemOrderedChildrenIds(this.store.state, o.parentId).filter((a) => q.isItemExpandable(this.store.state, a) && !q.isItemExpanded(this.store.state, a)), l = q.expandedItemsRaw(this.store.state).concat(s);
1960
1960
  s.length > 0 && (this.store.parameters.onItemExpansionToggle && s.forEach((a) => {
1961
1961
  this.store.parameters.onItemExpansionToggle(e, a, !0);
1962
1962
  }), this.setExpandedItems(e, l));
@@ -1978,27 +1978,27 @@ const me = {
1978
1978
  /**
1979
1979
  * Checks whether an item is editable.
1980
1980
  */
1981
- isItemEditable: P((t) => t.isItemEditable, y.itemModel, (t, e, n) => !e || t == null ? !1 : typeof t == "boolean" ? t : t(e)),
1981
+ isItemEditable: R((t) => t.isItemEditable, y.itemModel, (t, e, n) => !e || t == null ? !1 : typeof t == "boolean" ? t : t(e)),
1982
1982
  /**
1983
1983
  * Checks whether an item is being edited.
1984
1984
  */
1985
- isItemBeingEdited: P((t, e) => e == null ? !1 : t.editedItemId === e),
1985
+ isItemBeingEdited: R((t, e) => e == null ? !1 : t.editedItemId === e),
1986
1986
  /**
1987
1987
  * Checks whether any item is being edited.
1988
1988
  */
1989
- isAnyItemBeingEdited: P((t) => !!t.editedItemId)
1989
+ isAnyItemBeingEdited: R((t) => !!t.editedItemId)
1990
1990
  }, Jo = 500;
1991
1991
  class Qo {
1992
1992
  typeaheadQuery = "";
1993
1993
  // We can't type `store`, otherwise we get the following TS error:
1994
1994
  // 'keyboardNavigation' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
1995
1995
  constructor(e) {
1996
- this.store = e, this.labelMap = $t(y.itemMetaLookup(this.store.state)), this.store.registerStoreEffect(y.itemMetaLookup, (n, o) => {
1997
- this.store.shouldIgnoreItemsStateUpdate() || (this.labelMap = $t(o));
1996
+ this.store = e, this.labelMap = Bt(y.itemMetaLookup(this.store.state)), this.store.registerStoreEffect(y.itemMetaLookup, (n, o) => {
1997
+ this.store.shouldIgnoreItemsStateUpdate() || (this.labelMap = Bt(o));
1998
1998
  });
1999
1999
  }
2000
2000
  canToggleItemSelection = (e) => N.canItemBeSelected(this.store.state, e);
2001
- canToggleItemExpansion = (e) => !y.isItemDisabled(this.store.state, e) && H.isItemExpandable(this.store.state, e);
2001
+ canToggleItemExpansion = (e) => !y.isItemDisabled(this.store.state, e) && q.isItemExpandable(this.store.state, e);
2002
2002
  getFirstItemMatchingTypeaheadQuery = (e, n) => {
2003
2003
  const o = (d) => {
2004
2004
  const c = _e(this.store.state, d);
@@ -2071,7 +2071,7 @@ class Qo {
2071
2071
  }
2072
2072
  // Focuses the previous focusable item
2073
2073
  case r === "ArrowUp": {
2074
- const l = Zt(this.store.state, n);
2074
+ const l = en(this.store.state, n);
2075
2075
  l && (e.preventDefault(), this.store.focus.focusItem(e, l), s && e.shiftKey && this.canToggleItemSelection(l) && this.store.selection.selectItemFromArrowNavigation(e, n, l));
2076
2076
  break;
2077
2077
  }
@@ -2080,7 +2080,7 @@ class Qo {
2080
2080
  case (r === "ArrowRight" && !this.store.parameters.isRtl || r === "ArrowLeft" && this.store.parameters.isRtl): {
2081
2081
  if (o)
2082
2082
  return;
2083
- if (H.isItemExpanded(this.store.state, n)) {
2083
+ if (q.isItemExpanded(this.store.state, n)) {
2084
2084
  const l = _e(this.store.state, n);
2085
2085
  l && (this.store.focus.focusItem(e, l), e.preventDefault());
2086
2086
  } else this.canToggleItemExpansion(n) && (this.store.expansion.setItemExpansion({
@@ -2094,7 +2094,7 @@ class Qo {
2094
2094
  case (r === "ArrowLeft" && !this.store.parameters.isRtl || r === "ArrowRight" && this.store.parameters.isRtl): {
2095
2095
  if (o)
2096
2096
  return;
2097
- if (this.canToggleItemExpansion(n) && H.isItemExpanded(this.store.state, n))
2097
+ if (this.canToggleItemExpansion(n) && q.isItemExpanded(this.store.state, n))
2098
2098
  this.store.expansion.setItemExpansion({
2099
2099
  event: e,
2100
2100
  itemId: n
@@ -2112,7 +2112,7 @@ class Qo {
2112
2112
  }
2113
2113
  // Focuses the last item in the tree
2114
2114
  case r === "End": {
2115
- this.canToggleItemSelection(n) && s && o && e.shiftKey ? this.store.selection.selectRangeFromItemToEnd(e, n) : this.store.focus.focusItem(e, en(this.store.state)), e.preventDefault();
2115
+ this.canToggleItemSelection(n) && s && o && e.shiftKey ? this.store.selection.selectRangeFromItemToEnd(e, n) : this.store.focus.focusItem(e, tn(this.store.state)), e.preventDefault();
2116
2116
  break;
2117
2117
  }
2118
2118
  // Expand all siblings that are at the same level as the focused item
@@ -2141,13 +2141,13 @@ class Qo {
2141
2141
  function Yo(t) {
2142
2142
  return !!t && t.length === 1 && !!t.match(/\S/);
2143
2143
  }
2144
- function $t(t) {
2144
+ function Bt(t) {
2145
2145
  const e = {}, n = (o) => {
2146
2146
  e[o.id] = o.label.toLowerCase();
2147
2147
  };
2148
2148
  return Object.values(t).forEach(n), e;
2149
2149
  }
2150
- const Bt = Te(N.selectedItems, H.expandedItemsMap, y.itemMetaLookup, y.disabledItemFocusable, (t) => y.itemOrderedChildrenIds(t, null), (t, e, n, o, r) => {
2150
+ const Wt = Te(N.selectedItems, q.expandedItemsMap, y.itemMetaLookup, y.disabledItemFocusable, (t) => y.itemOrderedChildrenIds(t, null), (t, e, n, o, r) => {
2151
2151
  const s = t.find((a) => {
2152
2152
  if (!o && Ve(n, a))
2153
2153
  return !1;
@@ -2164,19 +2164,19 @@ const Bt = Te(N.selectedItems, H.expandedItemsMap, y.itemMetaLookup, y.disabledI
2164
2164
  * At any point in time, there is a single item that can be sequentially focused in the Tree View.
2165
2165
  * This item is the first selected item (that is both visible and navigable), if any, or the first navigable item if no item is selected.
2166
2166
  */
2167
- defaultFocusableItemId: Bt,
2167
+ defaultFocusableItemId: Wt,
2168
2168
  /**
2169
2169
  * Checks whether an item is the default focusable item.
2170
2170
  */
2171
- isItemTheDefaultFocusableItem: P(Bt, (t, e) => t === e),
2171
+ isItemTheDefaultFocusableItem: R(Wt, (t, e) => t === e),
2172
2172
  /**
2173
2173
  * Gets the id of the item that is currently focused.
2174
2174
  */
2175
- focusedItemId: P((t) => t.focusedItemId),
2175
+ focusedItemId: R((t) => t.focusedItemId),
2176
2176
  /**
2177
2177
  * Checks whether an item is focused.
2178
2178
  */
2179
- isItemFocused: P((t, e) => t.focusedItemId === e)
2179
+ isItemFocused: R((t, e) => t.focusedItemId === e)
2180
2180
  };
2181
2181
  class Zo {
2182
2182
  // We can't type `store`, otherwise we get the following TS error:
@@ -2213,7 +2213,7 @@ class Zo {
2213
2213
  */
2214
2214
  focusItem = (e, n) => {
2215
2215
  const o = y.itemMeta(this.store.state, n);
2216
- o && (o.parentId == null || H.isItemExpanded(this.store.state, o.parentId)) && this.applyItemFocus(e, n);
2216
+ o && (o.parentId == null || q.isItemExpanded(this.store.state, o.parentId)) && this.applyItemFocus(e, n);
2217
2217
  };
2218
2218
  /**
2219
2219
  * Remove the focus from the currently focused item (both from the internal state and the DOM).
@@ -2279,7 +2279,7 @@ class tr extends dt {
2279
2279
  const h = e[a], d = e[l] !== void 0, c = this.initialParameters?.[a], p = this.initialParameters?.[l] !== void 0;
2280
2280
  p !== d ? et([`MUI X Tree View: A component is changing the ${p ? "" : "un"}controlled ${l} state of ${this.instanceName} to be ${p ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${l} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"], "error") : JSON.stringify(c) !== JSON.stringify(h) && et([`MUI X Tree View: A component is changing the default ${l} state of an uncontrolled ${this.instanceName} after being initialized. `, `To suppress this warning opt to use a controlled ${this.instanceName}.`], "error");
2281
2281
  }
2282
- }, o = on(e);
2282
+ }, o = rn(e);
2283
2283
  n(o, "expandedItems", "defaultExpandedItems"), n(o, "selectedItems", "defaultSelectedItems"), (this.state.providedTreeId !== e.id || this.state.treeId === void 0) && (o.treeId = qo()), !this.mapper.shouldIgnoreItemsStateUpdate(e) && De.shouldRebuildItemsState(e, this.parameters) && Object.assign(o, De.buildItemsStateIfNeeded(e));
2284
2284
  const r = this.mapper.updateStateFromParameters(o, e, n);
2285
2285
  this.update(r), this.parameters = e;
@@ -2319,23 +2319,23 @@ class tr extends dt {
2319
2319
  function nr(t) {
2320
2320
  return t.isPropagationStopped !== void 0;
2321
2321
  }
2322
- const Wt = {
2322
+ const Kt = {
2323
2323
  /**
2324
2324
  * Checks if the lazy loaded state is empty.
2325
2325
  */
2326
- isEmpty: P((t) => t.lazyLoadedItems == null ? !0 : Object.keys(t.lazyLoadedItems.loading).length === 0 && Object.keys(t.lazyLoadedItems.errors).length === 0),
2326
+ isEmpty: R((t) => t.lazyLoadedItems == null ? !0 : Object.keys(t.lazyLoadedItems.loading).length === 0 && Object.keys(t.lazyLoadedItems.errors).length === 0),
2327
2327
  /**
2328
2328
  * Checks whether an item is loading.
2329
2329
  */
2330
- isItemLoading: P((t, e) => t.lazyLoadedItems?.loading[e ?? se] ?? !1),
2330
+ isItemLoading: R((t, e) => t.lazyLoadedItems?.loading[e ?? ie] ?? !1),
2331
2331
  /**
2332
2332
  * Checks whether an item has errors.
2333
2333
  */
2334
- itemHasError: P((t, e) => !!t.lazyLoadedItems?.errors[e ?? se]),
2334
+ itemHasError: R((t, e) => !!t.lazyLoadedItems?.errors[e ?? ie]),
2335
2335
  /**
2336
2336
  * Get an item error.
2337
2337
  */
2338
- itemError: P((t, e) => t.lazyLoadedItems?.errors[e ?? se])
2338
+ itemError: R((t, e) => t.lazyLoadedItems?.errors[e ?? ie])
2339
2339
  }, ft = (t) => Array.isArray(t) ? t.length > 0 && t.some(ft) : !!t, or = ({
2340
2340
  itemId: t,
2341
2341
  children: e
@@ -2343,7 +2343,7 @@ const Wt = {
2343
2343
  const {
2344
2344
  store: n,
2345
2345
  publicAPI: o
2346
- } = ge(), r = W(n, H.isItemExpandable, t), s = W(n, Wt.isItemLoading, t), l = W(n, Wt.itemHasError, t), a = ft(e) || r, h = W(n, H.isItemExpanded, t), d = W(n, de.isItemFocused, t), c = W(n, N.isItemSelected, t), p = W(n, y.isItemDisabled, t), f = W(n, me.isItemBeingEdited, t), u = W(n, me.isItemEditable, t), m = {
2346
+ } = ge(), r = W(n, q.isItemExpandable, t), s = W(n, Kt.isItemLoading, t), l = W(n, Kt.itemHasError, t), a = ft(e) || r, h = W(n, q.isItemExpanded, t), d = W(n, de.isItemFocused, t), c = W(n, N.isItemSelected, t), p = W(n, y.isItemDisabled, t), f = W(n, me.isItemBeingEdited, t), u = W(n, me.isItemEditable, t), m = {
2347
2347
  expandable: a,
2348
2348
  expanded: h,
2349
2349
  focused: d,
@@ -2353,34 +2353,34 @@ const Wt = {
2353
2353
  editable: u,
2354
2354
  loading: s,
2355
2355
  error: l
2356
- }, I = (C) => {
2356
+ }, I = (x) => {
2357
2357
  if (m.disabled)
2358
2358
  return;
2359
- m.focused || n.focus.focusItem(C, t);
2360
- const D = N.isMultiSelectEnabled(n.state) && (C.shiftKey || C.ctrlKey || C.metaKey);
2361
- m.expandable && !(D && H.isItemExpanded(n.state, t)) && n.expansion.setItemExpansion({
2362
- event: C,
2359
+ m.focused || n.focus.focusItem(x, t);
2360
+ const D = N.isMultiSelectEnabled(n.state) && (x.shiftKey || x.ctrlKey || x.metaKey);
2361
+ m.expandable && !(D && q.isItemExpanded(n.state, t)) && n.expansion.setItemExpansion({
2362
+ event: x,
2363
2363
  itemId: t
2364
2364
  });
2365
- }, b = (C) => {
2365
+ }, b = (x) => {
2366
2366
  if (!N.canItemBeSelected(n.state, t))
2367
2367
  return;
2368
- !m.focused && !m.editing && n.focus.focusItem(C, t), N.isMultiSelectEnabled(n.state) && (C.shiftKey || C.ctrlKey || C.metaKey) ? C.shiftKey ? n.selection.expandSelectionRange(C, t) : n.selection.setItemSelection({
2369
- event: C,
2368
+ !m.focused && !m.editing && n.focus.focusItem(x, t), N.isMultiSelectEnabled(n.state) && (x.shiftKey || x.ctrlKey || x.metaKey) ? x.shiftKey ? n.selection.expandSelectionRange(x, t) : n.selection.setItemSelection({
2369
+ event: x,
2370
2370
  itemId: t,
2371
2371
  keepExistingSelection: !0
2372
2372
  }) : n.selection.setItemSelection({
2373
- event: C,
2373
+ event: x,
2374
2374
  itemId: t,
2375
2375
  shouldBeSelected: !0
2376
2376
  });
2377
- }, x = (C) => {
2378
- const D = C.nativeEvent.shiftKey, V = N.isMultiSelectEnabled(n.state);
2379
- V && D ? n.selection.expandSelectionRange(C, t) : n.selection.setItemSelection({
2380
- event: C,
2377
+ }, E = (x) => {
2378
+ const D = x.nativeEvent.shiftKey, V = N.isMultiSelectEnabled(n.state);
2379
+ V && D ? n.selection.expandSelectionRange(x, t) : n.selection.setItemSelection({
2380
+ event: x,
2381
2381
  itemId: t,
2382
2382
  keepExistingSelection: V,
2383
- shouldBeSelected: C.target.checked
2383
+ shouldBeSelected: x.target.checked
2384
2384
  });
2385
2385
  }, w = () => {
2386
2386
  n.labelEditing && (f ? n.labelEditing.setEditedItem(null) : n.labelEditing.setEditedItem(t));
@@ -2389,13 +2389,13 @@ const Wt = {
2389
2389
  interactions: {
2390
2390
  handleExpansion: I,
2391
2391
  handleSelection: b,
2392
- handleCheckboxSelection: x,
2392
+ handleCheckboxSelection: E,
2393
2393
  toggleItemEditing: w,
2394
- handleSaveItemLabel: (C, D) => {
2395
- n.labelEditing && me.isItemBeingEdited(n.state, t) && (n.labelEditing.updateItemLabel(t, D), w(), n.focus.focusItem(C, t));
2394
+ handleSaveItemLabel: (x, D) => {
2395
+ n.labelEditing && me.isItemBeingEdited(n.state, t) && (n.labelEditing.updateItemLabel(t, D), w(), n.focus.focusItem(x, t));
2396
2396
  },
2397
- handleCancelItemLabelEditing: (C) => {
2398
- n.labelEditing && me.isItemBeingEdited(n.state, t) && (w(), n.focus.focusItem(C, t));
2397
+ handleCancelItemLabelEditing: (x) => {
2398
+ n.labelEditing && me.isItemBeingEdited(n.state, t) && (w(), n.focus.focusItem(x, t));
2399
2399
  }
2400
2400
  },
2401
2401
  status: m,
@@ -2415,7 +2415,7 @@ const Wt = {
2415
2415
  label: a,
2416
2416
  itemId: h,
2417
2417
  id: d
2418
- } = t, c = M.useContext(ut);
2418
+ } = t, c = O.useContext(ut);
2419
2419
  if (c == null)
2420
2420
  throw new Error(["MUI X: Could not find the Tree View Children Item context.", "It looks like you rendered your component outside of a SimpleTreeView parent component.", "This can also happen if you are bundling multiple versions of the Tree View."].join(`
2421
2421
  `));
@@ -2423,29 +2423,29 @@ const Wt = {
2423
2423
  registerChild: p,
2424
2424
  unregisterChild: f,
2425
2425
  parentId: u
2426
- } = c, m = ft(r), I = M.useRef(null), b = Ne(I, n), x = W(o, ke.treeItemIdAttribute, h, d);
2427
- return rt(() => (p(x, h), () => {
2428
- f(x), f(x);
2429
- }), [o, p, f, x, h]), rt(() => o.jsxItems.insertJSXItem({
2426
+ } = c, m = ft(r), I = O.useRef(null), b = Ne(I, n), E = W(o, ke.treeItemIdAttribute, h, d);
2427
+ return rt(() => (p(E, h), () => {
2428
+ f(E), f(E);
2429
+ }), [o, p, f, E, h]), rt(() => o.jsxItems.insertJSXItem({
2430
2430
  id: h,
2431
2431
  idAttribute: d,
2432
2432
  parentId: u,
2433
2433
  expandable: m,
2434
2434
  disabled: s,
2435
2435
  selectable: !l
2436
- }), [o, u, h, m, s, l, d]), M.useEffect(() => {
2436
+ }), [o, u, h, m, s, l, d]), O.useEffect(() => {
2437
2437
  if (a)
2438
2438
  return o.jsxItems.mapLabelFromJSX(h, (I.current?.textContent ?? "").toLowerCase());
2439
2439
  }, [o, h, a]), {
2440
2440
  contentRef: b,
2441
2441
  rootRef: e
2442
2442
  };
2443
- }, rn = ({
2443
+ }, sn = ({
2444
2444
  children: t,
2445
2445
  itemId: e,
2446
2446
  idAttribute: n
2447
2447
  }) => {
2448
- const o = M.useContext(xe);
2448
+ const o = O.useContext(xe);
2449
2449
  return /* @__PURE__ */ v(pt, {
2450
2450
  itemId: e,
2451
2451
  idAttribute: n,
@@ -2455,10 +2455,10 @@ const Wt = {
2455
2455
  })
2456
2456
  });
2457
2457
  };
2458
- process.env.NODE_ENV !== "production" && (rn.displayName = "jsxItemsitemWrapper");
2458
+ process.env.NODE_ENV !== "production" && (sn.displayName = "jsxItemsitemWrapper");
2459
2459
  class sr {
2460
2460
  constructor(e) {
2461
- this.store = e, e.itemPluginManager.register(rr, rn);
2461
+ this.store = e, e.itemPluginManager.register(rr, sn);
2462
2462
  }
2463
2463
  /**
2464
2464
  * Insert a new item in the state from a Tree Item component.
@@ -2508,13 +2508,13 @@ class sr {
2508
2508
  * @param {TreeViewItemId[]} orderedChildrenIds The ids of the item's children.
2509
2509
  */
2510
2510
  setJSXItemsOrderedChildrenIds = (e, n) => {
2511
- const o = e ?? se;
2511
+ const o = e ?? ie;
2512
2512
  this.store.update({
2513
2513
  itemOrderedChildrenIdsLookup: S({}, this.store.state.itemOrderedChildrenIdsLookup, {
2514
2514
  [o]: n
2515
2515
  }),
2516
2516
  itemChildrenIndexesLookup: S({}, this.store.state.itemChildrenIndexesLookup, {
2517
- [o]: Qt(n)
2517
+ [o]: Yt(n)
2518
2518
  })
2519
2519
  });
2520
2520
  };
@@ -2537,11 +2537,11 @@ class lr extends tr {
2537
2537
  }));
2538
2538
  }
2539
2539
  }
2540
- const ar = qt(), cr = (t) => {
2540
+ const ar = Gt(), cr = (t) => {
2541
2541
  const {
2542
2542
  classes: e
2543
2543
  } = t;
2544
- return M.useMemo(() => ve({
2544
+ return O.useMemo(() => ve({
2545
2545
  root: ["root"],
2546
2546
  item: ["item"],
2547
2547
  itemContent: ["itemContent"],
@@ -2553,7 +2553,7 @@ const ar = qt(), cr = (t) => {
2553
2553
  // itemDragAndDropOverlay: ['itemDragAndDropOverlay'], => feature not available on this component
2554
2554
  // itemErrorIcon: ['itemErrorIcon'], => feature not available on this component
2555
2555
  }, Un, e), [e]);
2556
- }, dr = G("ul", {
2556
+ }, dr = X("ul", {
2557
2557
  name: "MuiSimpleTreeView",
2558
2558
  slot: "Root"
2559
2559
  })({
@@ -2562,7 +2562,7 @@ const ar = qt(), cr = (t) => {
2562
2562
  listStyle: "none",
2563
2563
  outline: 0,
2564
2564
  position: "relative"
2565
- }), ht = /* @__PURE__ */ M.forwardRef(function(e, n) {
2565
+ }), ht = /* @__PURE__ */ O.forwardRef(function(e, n) {
2566
2566
  const o = ar({
2567
2567
  props: e,
2568
2568
  name: "MuiSimpleTreeView"
@@ -2574,7 +2574,7 @@ const ar = qt(), cr = (t) => {
2574
2574
  apiRef: l,
2575
2575
  parameters: a,
2576
2576
  forwardedProps: h
2577
- } = Jn(o), d = Wo(lr, a), c = M.useRef(null), p = Ne(n, c), f = Vo(d, h, p), u = cr(o), m = r?.root ?? dr, I = te({
2577
+ } = Jn(o), d = Wo(lr, a), c = O.useRef(null), p = Ne(n, c), f = Vo(d, h, p), u = cr(o), m = r?.root ?? dr, I = ne({
2578
2578
  elementType: m,
2579
2579
  externalSlotProps: s?.root,
2580
2580
  className: u.root,
@@ -2776,7 +2776,7 @@ const pr = (t) => {
2776
2776
  wrapperInner: ["wrapperInner", `${e}`]
2777
2777
  };
2778
2778
  return ve(o, ur, n);
2779
- }, fr = G("div", {
2779
+ }, fr = X("div", {
2780
2780
  name: "MuiCollapse",
2781
2781
  slot: "Root",
2782
2782
  overridesResolver: (t, e) => {
@@ -2785,7 +2785,7 @@ const pr = (t) => {
2785
2785
  } = t;
2786
2786
  return [e.root, e[n.orientation], n.state === "entered" && e.entered, n.state === "exited" && !n.in && n.collapsedSize === "0px" && e.hidden];
2787
2787
  }
2788
- })(Ut(({
2788
+ })(Ht(({
2789
2789
  theme: t
2790
2790
  }) => ({
2791
2791
  height: 0,
@@ -2824,7 +2824,7 @@ const pr = (t) => {
2824
2824
  visibility: "hidden"
2825
2825
  }
2826
2826
  }]
2827
- }))), hr = G("div", {
2827
+ }))), hr = X("div", {
2828
2828
  name: "MuiCollapse",
2829
2829
  slot: "Wrapper"
2830
2830
  })({
@@ -2840,7 +2840,7 @@ const pr = (t) => {
2840
2840
  height: "100%"
2841
2841
  }
2842
2842
  }]
2843
- }), mr = G("div", {
2843
+ }), mr = X("div", {
2844
2844
  name: "MuiCollapse",
2845
2845
  slot: "WrapperInner"
2846
2846
  })({
@@ -2854,8 +2854,8 @@ const pr = (t) => {
2854
2854
  height: "100%"
2855
2855
  }
2856
2856
  }]
2857
- }), je = /* @__PURE__ */ M.forwardRef(function(e, n) {
2858
- const o = Kt({
2857
+ }), je = /* @__PURE__ */ O.forwardRef(function(e, n) {
2858
+ const o = Ut({
2859
2859
  props: e,
2860
2860
  name: "MuiCollapse"
2861
2861
  }), {
@@ -2872,128 +2872,128 @@ const pr = (t) => {
2872
2872
  onExit: m,
2873
2873
  onExited: I,
2874
2874
  onExiting: b,
2875
- orientation: x = "vertical",
2875
+ orientation: E = "vertical",
2876
2876
  slots: w = {},
2877
- slotProps: _ = {},
2878
- style: R,
2879
- timeout: F = Ln.standard,
2877
+ slotProps: M = {},
2878
+ style: L,
2879
+ timeout: _ = Ln.standard,
2880
2880
  // eslint-disable-next-line react/prop-types
2881
- TransitionComponent: C = Vn,
2881
+ TransitionComponent: x = Vn,
2882
2882
  ...D
2883
2883
  } = o, V = {
2884
2884
  ...o,
2885
- orientation: x,
2885
+ orientation: E,
2886
2886
  collapsedSize: a
2887
- }, j = pr(V), E = $n(), k = kn(), O = M.useRef(null), A = M.useRef(), L = typeof a == "number" ? `${a}px` : a, $ = x === "horizontal", B = $ ? "width" : "height", J = M.useRef(null), Z = On(n, J), q = (z) => (ne) => {
2887
+ }, B = pr(V), j = $n(), k = kn(), C = O.useRef(null), F = O.useRef(), A = typeof a == "number" ? `${a}px` : a, P = E === "horizontal", $ = P ? "width" : "height", K = O.useRef(null), ee = On(n, K), G = (z) => (oe) => {
2888
2888
  if (z) {
2889
- const oe = J.current;
2890
- ne === void 0 ? z(oe) : z(oe, ne);
2889
+ const re = K.current;
2890
+ oe === void 0 ? z(re) : z(re, oe);
2891
2891
  }
2892
- }, ie = () => O.current ? O.current[$ ? "clientWidth" : "clientHeight"] : 0, ae = q((z, ne) => {
2893
- O.current && $ && (O.current.style.position = "absolute"), z.style[B] = L, p && p(z, ne);
2894
- }), ue = q((z, ne) => {
2895
- const oe = ie();
2896
- O.current && $ && (O.current.style.position = "");
2892
+ }, Z = () => C.current ? C.current[P ? "clientWidth" : "clientHeight"] : 0, ae = G((z, oe) => {
2893
+ C.current && P && (C.current.style.position = "absolute"), z.style[$] = A, p && p(z, oe);
2894
+ }), ue = G((z, oe) => {
2895
+ const re = Z();
2896
+ C.current && P && (C.current.style.position = "");
2897
2897
  const {
2898
2898
  duration: le,
2899
2899
  easing: Me
2900
- } = vt({
2901
- style: R,
2902
- timeout: F,
2900
+ } = wt({
2901
+ style: L,
2902
+ timeout: _,
2903
2903
  easing: d
2904
2904
  }, {
2905
2905
  mode: "enter"
2906
2906
  });
2907
- if (F === "auto") {
2908
- const It = E.transitions.getAutoHeightDuration(oe);
2909
- z.style.transitionDuration = `${It}ms`, A.current = It;
2907
+ if (_ === "auto") {
2908
+ const It = j.transitions.getAutoHeightDuration(re);
2909
+ z.style.transitionDuration = `${It}ms`, F.current = It;
2910
2910
  } else
2911
2911
  z.style.transitionDuration = typeof le == "string" ? le : `${le}ms`;
2912
- z.style[B] = `${oe}px`, z.style.transitionTimingFunction = Me, u && u(z, ne);
2913
- }), ce = q((z, ne) => {
2914
- z.style[B] = "auto", f && f(z, ne);
2915
- }), pe = q((z) => {
2916
- z.style[B] = `${ie()}px`, m && m(z);
2917
- }), K = q(I), X = q((z) => {
2918
- const ne = ie(), {
2919
- duration: oe,
2912
+ z.style[$] = `${re}px`, z.style.transitionTimingFunction = Me, u && u(z, oe);
2913
+ }), ce = G((z, oe) => {
2914
+ z.style[$] = "auto", f && f(z, oe);
2915
+ }), pe = G((z) => {
2916
+ z.style[$] = `${Z()}px`, m && m(z);
2917
+ }), U = G(I), J = G((z) => {
2918
+ const oe = Z(), {
2919
+ duration: re,
2920
2920
  easing: le
2921
- } = vt({
2922
- style: R,
2923
- timeout: F,
2921
+ } = wt({
2922
+ style: L,
2923
+ timeout: _,
2924
2924
  easing: d
2925
2925
  }, {
2926
2926
  mode: "exit"
2927
2927
  });
2928
- if (F === "auto") {
2929
- const Me = E.transitions.getAutoHeightDuration(ne);
2930
- z.style.transitionDuration = `${Me}ms`, A.current = Me;
2928
+ if (_ === "auto") {
2929
+ const Me = j.transitions.getAutoHeightDuration(oe);
2930
+ z.style.transitionDuration = `${Me}ms`, F.current = Me;
2931
2931
  } else
2932
- z.style.transitionDuration = typeof oe == "string" ? oe : `${oe}ms`;
2933
- z.style[B] = L, z.style.transitionTimingFunction = le, b && b(z);
2932
+ z.style.transitionDuration = typeof re == "string" ? re : `${re}ms`;
2933
+ z.style[$] = A, z.style.transitionTimingFunction = le, b && b(z);
2934
2934
  }), T = (z) => {
2935
- F === "auto" && k.start(A.current || 0, z), r && r(J.current, z);
2935
+ _ === "auto" && k.start(F.current || 0, z), r && r(K.current, z);
2936
2936
  }, g = {
2937
2937
  slots: w,
2938
- slotProps: _,
2938
+ slotProps: M,
2939
2939
  component: h
2940
- }, [U, ee] = Ie("root", {
2941
- ref: Z,
2942
- className: Q(j.root, l),
2940
+ }, [H, te] = Ie("root", {
2941
+ ref: ee,
2942
+ className: Y(B.root, l),
2943
2943
  elementType: fr,
2944
2944
  externalForwardedProps: g,
2945
2945
  ownerState: V,
2946
2946
  additionalProps: {
2947
2947
  style: {
2948
- [$ ? "minWidth" : "minHeight"]: L,
2949
- ...R
2948
+ [P ? "minWidth" : "minHeight"]: A,
2949
+ ...L
2950
2950
  }
2951
2951
  }
2952
- }), [Oe, pn] = Ie("wrapper", {
2953
- ref: O,
2954
- className: j.wrapper,
2952
+ }), [Oe, fn] = Ie("wrapper", {
2953
+ ref: C,
2954
+ className: B.wrapper,
2955
2955
  elementType: hr,
2956
2956
  externalForwardedProps: g,
2957
2957
  ownerState: V
2958
- }), [fn, hn] = Ie("wrapperInner", {
2959
- className: j.wrapperInner,
2958
+ }), [hn, mn] = Ie("wrapperInner", {
2959
+ className: B.wrapperInner,
2960
2960
  elementType: mr,
2961
2961
  externalForwardedProps: g,
2962
2962
  ownerState: V
2963
2963
  });
2964
- return /* @__PURE__ */ v(C, {
2964
+ return /* @__PURE__ */ v(x, {
2965
2965
  in: c,
2966
2966
  onEnter: ae,
2967
2967
  onEntered: ce,
2968
2968
  onEntering: ue,
2969
2969
  onExit: pe,
2970
- onExited: K,
2971
- onExiting: X,
2970
+ onExited: U,
2971
+ onExiting: J,
2972
2972
  addEndListener: T,
2973
- nodeRef: J,
2974
- timeout: F === "auto" ? null : F,
2973
+ nodeRef: K,
2974
+ timeout: _ === "auto" ? null : _,
2975
2975
  ...D,
2976
2976
  children: (z, {
2977
- ownerState: ne,
2978
- ...oe
2977
+ ownerState: oe,
2978
+ ...re
2979
2979
  }) => {
2980
2980
  const le = {
2981
2981
  ...V,
2982
2982
  state: z
2983
2983
  };
2984
- return /* @__PURE__ */ v(U, {
2985
- ...ee,
2986
- className: Q(ee.className, {
2987
- entered: j.entered,
2988
- exited: !c && L === "0px" && j.hidden
2984
+ return /* @__PURE__ */ v(H, {
2985
+ ...te,
2986
+ className: Y(te.className, {
2987
+ entered: B.entered,
2988
+ exited: !c && A === "0px" && B.hidden
2989
2989
  }[z]),
2990
2990
  ownerState: le,
2991
- ...oe,
2991
+ ...re,
2992
2992
  children: /* @__PURE__ */ v(Oe, {
2993
- ...pn,
2993
+ ...fn,
2994
2994
  ownerState: le,
2995
- children: /* @__PURE__ */ v(fn, {
2996
- ...hn,
2995
+ children: /* @__PURE__ */ v(hn, {
2996
+ ...mn,
2997
2997
  ownerState: le,
2998
2998
  children: s
2999
2999
  })
@@ -3131,7 +3131,7 @@ const gr = (t) => {
3131
3131
  input: ["input"]
3132
3132
  };
3133
3133
  return ve(s, Ir, e);
3134
- }, br = G(Pn, {
3134
+ }, br = X(Pn, {
3135
3135
  name: "MuiSwitchBase"
3136
3136
  })({
3137
3137
  padding: 9,
@@ -3169,9 +3169,9 @@ const gr = (t) => {
3169
3169
  marginRight: -12
3170
3170
  }
3171
3171
  }]
3172
- }), Sr = G("input", {
3172
+ }), Sr = X("input", {
3173
3173
  name: "MuiSwitchBase",
3174
- shouldForwardProp: Ht
3174
+ shouldForwardProp: qt
3175
3175
  })({
3176
3176
  cursor: "inherit",
3177
3177
  position: "absolute",
@@ -3183,7 +3183,7 @@ const gr = (t) => {
3183
3183
  margin: 0,
3184
3184
  padding: 0,
3185
3185
  zIndex: 1
3186
- }), sn = /* @__PURE__ */ M.forwardRef(function(e, n) {
3186
+ }), ln = /* @__PURE__ */ O.forwardRef(function(e, n) {
3187
3187
  const {
3188
3188
  autoFocus: o,
3189
3189
  checked: r,
@@ -3199,39 +3199,39 @@ const gr = (t) => {
3199
3199
  name: m,
3200
3200
  onBlur: I,
3201
3201
  onChange: b,
3202
- onFocus: x,
3202
+ onFocus: E,
3203
3203
  readOnly: w,
3204
- required: _ = !1,
3205
- tabIndex: R,
3206
- type: F,
3207
- value: C,
3204
+ required: M = !1,
3205
+ tabIndex: L,
3206
+ type: _,
3207
+ value: x,
3208
3208
  slots: D = {},
3209
3209
  slotProps: V = {},
3210
- ...j
3211
- } = e, [E, k] = Fn({
3210
+ ...B
3211
+ } = e, [j, k] = Fn({
3212
3212
  controlled: r,
3213
3213
  default: !!l,
3214
3214
  name: "SwitchBase",
3215
3215
  state: "checked"
3216
- }), O = _n(), A = (K) => {
3217
- x && x(K), O && O.onFocus && O.onFocus(K);
3218
- }, L = (K) => {
3219
- I && I(K), O && O.onBlur && O.onBlur(K);
3220
- }, $ = (K) => {
3221
- if (K.nativeEvent.defaultPrevented || w)
3216
+ }), C = _n(), F = (U) => {
3217
+ E && E(U), C && C.onFocus && C.onFocus(U);
3218
+ }, A = (U) => {
3219
+ I && I(U), C && C.onBlur && C.onBlur(U);
3220
+ }, P = (U) => {
3221
+ if (U.nativeEvent.defaultPrevented || w)
3222
3222
  return;
3223
- const X = K.target.checked;
3224
- k(X), b && b(K, X);
3223
+ const J = U.target.checked;
3224
+ k(J), b && b(U, J);
3225
3225
  };
3226
- let B = a;
3227
- O && typeof B > "u" && (B = O.disabled);
3228
- const J = F === "checkbox" || F === "radio", Z = {
3226
+ let $ = a;
3227
+ C && typeof $ > "u" && ($ = C.disabled);
3228
+ const K = _ === "checkbox" || _ === "radio", ee = {
3229
3229
  ...e,
3230
- checked: E,
3231
- disabled: B,
3230
+ checked: j,
3231
+ disabled: $,
3232
3232
  disableFocusRipple: h,
3233
3233
  edge: d
3234
- }, q = gr(Z), ie = {
3234
+ }, G = gr(ee), Z = {
3235
3235
  slots: D,
3236
3236
  slotProps: {
3237
3237
  input: f,
@@ -3240,66 +3240,66 @@ const gr = (t) => {
3240
3240
  }, [ae, ue] = Ie("root", {
3241
3241
  ref: n,
3242
3242
  elementType: br,
3243
- className: q.root,
3243
+ className: G.root,
3244
3244
  shouldForwardComponentProp: !0,
3245
3245
  externalForwardedProps: {
3246
- ...ie,
3246
+ ...Z,
3247
3247
  component: "span",
3248
- ...j
3248
+ ...B
3249
3249
  },
3250
- getSlotProps: (K) => ({
3251
- ...K,
3252
- onFocus: (X) => {
3253
- K.onFocus?.(X), A(X);
3250
+ getSlotProps: (U) => ({
3251
+ ...U,
3252
+ onFocus: (J) => {
3253
+ U.onFocus?.(J), F(J);
3254
3254
  },
3255
- onBlur: (X) => {
3256
- K.onBlur?.(X), L(X);
3255
+ onBlur: (J) => {
3256
+ U.onBlur?.(J), A(J);
3257
3257
  }
3258
3258
  }),
3259
- ownerState: Z,
3259
+ ownerState: ee,
3260
3260
  additionalProps: {
3261
3261
  centerRipple: !0,
3262
3262
  focusRipple: !h,
3263
- disabled: B,
3263
+ disabled: $,
3264
3264
  role: void 0,
3265
3265
  tabIndex: null
3266
3266
  }
3267
3267
  }), [ce, pe] = Ie("input", {
3268
3268
  ref: u,
3269
3269
  elementType: Sr,
3270
- className: q.input,
3271
- externalForwardedProps: ie,
3272
- getSlotProps: (K) => ({
3273
- ...K,
3274
- onChange: (X) => {
3275
- K.onChange?.(X), $(X);
3270
+ className: G.input,
3271
+ externalForwardedProps: Z,
3272
+ getSlotProps: (U) => ({
3273
+ ...U,
3274
+ onChange: (J) => {
3275
+ U.onChange?.(J), P(J);
3276
3276
  }
3277
3277
  }),
3278
- ownerState: Z,
3278
+ ownerState: ee,
3279
3279
  additionalProps: {
3280
3280
  autoFocus: o,
3281
3281
  checked: r,
3282
3282
  defaultChecked: l,
3283
- disabled: B,
3284
- id: J ? p : void 0,
3283
+ disabled: $,
3284
+ id: K ? p : void 0,
3285
3285
  name: m,
3286
3286
  readOnly: w,
3287
- required: _,
3288
- tabIndex: R,
3289
- type: F,
3290
- ...F === "checkbox" && C === void 0 ? {} : {
3291
- value: C
3287
+ required: M,
3288
+ tabIndex: L,
3289
+ type: _,
3290
+ ..._ === "checkbox" && x === void 0 ? {} : {
3291
+ value: x
3292
3292
  }
3293
3293
  }
3294
3294
  });
3295
- return /* @__PURE__ */ Y(ae, {
3295
+ return /* @__PURE__ */ Q(ae, {
3296
3296
  ...ue,
3297
3297
  children: [/* @__PURE__ */ v(ce, {
3298
3298
  ...pe
3299
- }), E ? s : c]
3299
+ }), j ? s : c]
3300
3300
  });
3301
3301
  });
3302
- process.env.NODE_ENV !== "production" && (sn.propTypes = {
3302
+ process.env.NODE_ENV !== "production" && (ln.propTypes = {
3303
3303
  /**
3304
3304
  * If `true`, the `input` element is focused during the first mount.
3305
3305
  */
@@ -3442,8 +3442,8 @@ const Ye = Ce("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "c
3442
3442
  // forward the disabled and checked classes to the SwitchBase
3443
3443
  ...l
3444
3444
  };
3445
- }, wr = G(sn, {
3446
- shouldForwardProp: (t) => Ht(t) || t === "classes",
3445
+ }, wr = X(ln, {
3446
+ shouldForwardProp: (t) => qt(t) || t === "classes",
3447
3447
  name: "MuiCheckbox",
3448
3448
  slot: "Root",
3449
3449
  overridesResolver: (t, e) => {
@@ -3452,7 +3452,7 @@ const Ye = Ce("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "c
3452
3452
  } = t;
3453
3453
  return [e.root, n.indeterminate && e.indeterminate, e[`size${ye(n.size)}`], n.color !== "default" && e[`color${ye(n.color)}`]];
3454
3454
  }
3455
- })(Ut(({
3455
+ })(Ht(({
3456
3456
  theme: t
3457
3457
  }) => ({
3458
3458
  color: (t.vars || t).palette.text.secondary,
@@ -3466,7 +3466,7 @@ const Ye = Ce("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "c
3466
3466
  backgroundColor: t.alpha((t.vars || t).palette.action.active, (t.vars || t).palette.action.hoverOpacity)
3467
3467
  }
3468
3468
  }
3469
- }, ...Object.entries(t.palette).filter(Ct()).map(([e]) => ({
3469
+ }, ...Object.entries(t.palette).filter(vt()).map(([e]) => ({
3470
3470
  props: {
3471
3471
  color: e,
3472
3472
  disableRipple: !1
@@ -3476,7 +3476,7 @@ const Ye = Ce("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "c
3476
3476
  backgroundColor: t.alpha((t.vars || t).palette[e].main, (t.vars || t).palette.action.hoverOpacity)
3477
3477
  }
3478
3478
  }
3479
- })), ...Object.entries(t.palette).filter(Ct()).map(([e]) => ({
3479
+ })), ...Object.entries(t.palette).filter(vt()).map(([e]) => ({
3480
3480
  props: {
3481
3481
  color: e
3482
3482
  },
@@ -3502,8 +3502,8 @@ const Ye = Ce("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "c
3502
3502
  }
3503
3503
  }
3504
3504
  }]
3505
- }))), Tr = /* @__PURE__ */ v(xr, {}), kr = /* @__PURE__ */ v(yr, {}), Or = /* @__PURE__ */ v(Er, {}), ln = /* @__PURE__ */ M.forwardRef(function(e, n) {
3506
- const o = Kt({
3505
+ }))), Tr = /* @__PURE__ */ v(xr, {}), kr = /* @__PURE__ */ v(yr, {}), Or = /* @__PURE__ */ v(Er, {}), an = /* @__PURE__ */ O.forwardRef(function(e, n) {
3506
+ const o = Ut({
3507
3507
  props: e,
3508
3508
  name: "MuiCheckbox"
3509
3509
  }), {
@@ -3519,16 +3519,16 @@ const Ye = Ce("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "c
3519
3519
  slots: u = {},
3520
3520
  slotProps: m = {},
3521
3521
  ...I
3522
- } = o, b = a ? h : l, x = a ? h : r, w = {
3522
+ } = o, b = a ? h : l, E = a ? h : r, w = {
3523
3523
  ...o,
3524
3524
  disableRipple: p,
3525
3525
  color: s,
3526
3526
  indeterminate: a,
3527
3527
  size: c
3528
- }, _ = vr(w), R = m.input ?? d, [F, C] = Ie("root", {
3528
+ }, M = vr(w), L = m.input ?? d, [_, x] = Ie("root", {
3529
3529
  ref: n,
3530
3530
  elementType: wr,
3531
- className: Q(_.root, f),
3531
+ className: Y(M.root, f),
3532
3532
  shouldForwardComponentProp: !0,
3533
3533
  externalForwardedProps: {
3534
3534
  slots: u,
@@ -3538,27 +3538,27 @@ const Ye = Ce("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "c
3538
3538
  ownerState: w,
3539
3539
  additionalProps: {
3540
3540
  type: "checkbox",
3541
- icon: /* @__PURE__ */ M.cloneElement(b, {
3541
+ icon: /* @__PURE__ */ O.cloneElement(b, {
3542
3542
  fontSize: b.props.fontSize ?? c
3543
3543
  }),
3544
- checkedIcon: /* @__PURE__ */ M.cloneElement(x, {
3545
- fontSize: x.props.fontSize ?? c
3544
+ checkedIcon: /* @__PURE__ */ O.cloneElement(E, {
3545
+ fontSize: E.props.fontSize ?? c
3546
3546
  }),
3547
3547
  disableRipple: p,
3548
3548
  slots: u,
3549
3549
  slotProps: {
3550
- input: zn(typeof R == "function" ? R(w) : R, {
3550
+ input: zn(typeof L == "function" ? L(w) : L, {
3551
3551
  "data-indeterminate": a
3552
3552
  })
3553
3553
  }
3554
3554
  }
3555
3555
  });
3556
- return /* @__PURE__ */ v(F, {
3557
- ...C,
3558
- classes: _
3556
+ return /* @__PURE__ */ v(_, {
3557
+ ...x,
3558
+ classes: M
3559
3559
  });
3560
3560
  });
3561
- process.env.NODE_ENV !== "production" && (ln.propTypes = {
3561
+ process.env.NODE_ENV !== "production" && (an.propTypes = {
3562
3562
  // ┌────────────────────────────── Warning ──────────────────────────────┐
3563
3563
  // │ These PropTypes are generated from the TypeScript type definitions. │
3564
3564
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -3677,7 +3677,7 @@ const Mr = (t, e, n) => typeof n == "function" ? n(t, e) : n, Pr = (t) => {
3677
3677
  runItemPlugins: e,
3678
3678
  publicAPI: n,
3679
3679
  store: o
3680
- } = ge(), r = M.useContext(xe), s = W(o, Mr, t.itemId, r), {
3680
+ } = ge(), r = O.useContext(xe), s = W(o, Mr, t.itemId, r), {
3681
3681
  id: l,
3682
3682
  itemId: a,
3683
3683
  label: h,
@@ -3693,29 +3693,29 @@ const Mr = (t, e, n) => typeof n == "function" ? n(t, e) : n, Pr = (t) => {
3693
3693
  } = or({
3694
3694
  itemId: a,
3695
3695
  children: d
3696
- }), b = M.useRef(null), x = M.useRef(null), w = Ne(c, p, b), _ = Ne(f, x), R = M.useRef(null), F = W(o, N.isCheckboxSelectionEnabled), C = W(o, ke.treeItemIdAttribute, a, l), D = W(o, de.isItemTheDefaultFocusableItem, a), V = {
3696
+ }), b = O.useRef(null), E = O.useRef(null), w = Ne(c, p, b), M = Ne(f, E), L = O.useRef(null), _ = W(o, N.isCheckboxSelectionEnabled), x = W(o, ke.treeItemIdAttribute, a, l), D = W(o, de.isItemTheDefaultFocusableItem, a), V = {
3697
3697
  rootRefObject: b,
3698
- contentRefObject: x,
3698
+ contentRefObject: E,
3699
3699
  interactions: m
3700
- }, j = (T) => (g) => {
3700
+ }, B = (T) => (g) => {
3701
3701
  T.onFocus?.(g), !g.defaultMuiPrevented && !I.focused && y.canItemBeFocused(o.state, a) && g.currentTarget === g.target && o.focus.focusItem(g, a);
3702
- }, E = (T) => (g) => {
3702
+ }, j = (T) => (g) => {
3703
3703
  if (T.onBlur?.(g), g.defaultMuiPrevented)
3704
3704
  return;
3705
- const U = o.items.getItemDOMElement(a);
3705
+ const H = o.items.getItemDOMElement(a);
3706
3706
  I.editing || // we can exit the editing state by clicking outside the input (within the Tree Item) or by pressing Enter or Escape -> we don't want to remove the focused item from the state in these cases
3707
3707
  // we can also exit the editing state by clicking on the root itself -> want to remove the focused item from the state in this case
3708
- g.relatedTarget && ot(g.relatedTarget, U) && (g.target && g.target?.dataset?.element === "labelInput" && ot(g.target, U) || g.relatedTarget?.dataset?.element === "labelInput") || o.focus.removeFocusedItem();
3708
+ g.relatedTarget && ot(g.relatedTarget, H) && (g.target && g.target?.dataset?.element === "labelInput" && ot(g.target, H) || g.relatedTarget?.dataset?.element === "labelInput") || o.focus.removeFocusedItem();
3709
3709
  }, k = (T) => (g) => {
3710
3710
  T.onKeyDown?.(g), !(g.defaultMuiPrevented || g.target?.dataset?.element === "labelInput") && o.keyboardNavigation.handleItemKeyDown(g, a);
3711
- }, O = (T) => (g) => {
3711
+ }, C = (T) => (g) => {
3712
3712
  T.onDoubleClick?.(g), !g.defaultMuiPrevented && m.toggleItemEditing();
3713
+ }, F = (T) => (g) => {
3714
+ T.onClick?.(g), o.items.handleItemClick(g, a), !(g.defaultMuiPrevented || L.current?.contains(g.target)) && (q.triggerSlot(o.state) === "content" && m.handleExpansion(g), _ || m.handleSelection(g));
3713
3715
  }, A = (T) => (g) => {
3714
- T.onClick?.(g), o.items.handleItemClick(g, a), !(g.defaultMuiPrevented || R.current?.contains(g.target)) && (H.triggerSlot(o.state) === "content" && m.handleExpansion(g), F || m.handleSelection(g));
3715
- }, L = (T) => (g) => {
3716
3716
  T.onMouseDown?.(g), !g.defaultMuiPrevented && (g.shiftKey || g.ctrlKey || g.metaKey || I.disabled) && g.preventDefault();
3717
- }, $ = (T) => (g) => {
3718
- T.onClick?.(g), !g.defaultMuiPrevented && H.triggerSlot(o.state) === "iconContainer" && m.handleExpansion(g);
3717
+ }, P = (T) => (g) => {
3718
+ T.onClick?.(g), !g.defaultMuiPrevented && q.triggerSlot(o.state) === "iconContainer" && m.handleExpansion(g);
3719
3719
  };
3720
3720
  return {
3721
3721
  getContextProviderProps: () => ({
@@ -3723,42 +3723,42 @@ const Mr = (t, e, n) => typeof n == "function" ? n(t, e) : n, Pr = (t) => {
3723
3723
  id: l
3724
3724
  }),
3725
3725
  getRootProps: (T = {}) => {
3726
- const g = S({}, re(t), re(T)), U = S({}, g, {
3726
+ const g = S({}, se(t), se(T)), H = S({}, g, {
3727
3727
  ref: w,
3728
3728
  role: "treeitem",
3729
3729
  tabIndex: D ? 0 : -1,
3730
- id: C,
3730
+ id: x,
3731
3731
  "aria-expanded": I.expandable ? I.expanded : void 0,
3732
3732
  "aria-disabled": I.disabled || void 0
3733
3733
  }, T, {
3734
3734
  style: S({}, T.style ?? {}, {
3735
3735
  "--TreeView-itemDepth": s
3736
3736
  }),
3737
- onFocus: j(g),
3738
- onBlur: E(g),
3737
+ onFocus: B(g),
3738
+ onBlur: j(g),
3739
3739
  onKeyDown: k(g)
3740
- }), ee = u.root?.(S({}, V, {
3740
+ }), te = u.root?.(S({}, V, {
3741
3741
  externalEventHandlers: g
3742
3742
  })) ?? {};
3743
- return S({}, U, ee);
3743
+ return S({}, H, te);
3744
3744
  },
3745
3745
  getContentProps: (T = {}) => {
3746
- const g = re(T), U = S({}, g, T, {
3747
- ref: _,
3748
- onClick: A(g),
3749
- onMouseDown: L(g),
3746
+ const g = se(T), H = S({}, g, T, {
3747
+ ref: M,
3748
+ onClick: F(g),
3749
+ onMouseDown: A(g),
3750
3750
  status: I
3751
3751
  });
3752
3752
  ["expanded", "selected", "focused", "disabled", "editing", "editable"].forEach((Oe) => {
3753
- I[Oe] && (U[`data-${Oe}`] = "");
3753
+ I[Oe] && (H[`data-${Oe}`] = "");
3754
3754
  });
3755
- const ee = u.content?.(S({}, V, {
3755
+ const te = u.content?.(S({}, V, {
3756
3756
  externalEventHandlers: g
3757
3757
  })) ?? {};
3758
- return S({}, U, ee);
3758
+ return S({}, H, te);
3759
3759
  },
3760
3760
  getGroupTransitionProps: (T = {}) => {
3761
- const g = re(T);
3761
+ const g = se(T);
3762
3762
  return S({}, g, {
3763
3763
  unmountOnExit: !0,
3764
3764
  component: "ul",
@@ -3768,48 +3768,48 @@ const Mr = (t, e, n) => typeof n == "function" ? n(t, e) : n, Pr = (t) => {
3768
3768
  }, T);
3769
3769
  },
3770
3770
  getIconContainerProps: (T = {}) => {
3771
- const g = re(T);
3771
+ const g = se(T);
3772
3772
  return S({}, g, T, {
3773
- onClick: $(g)
3773
+ onClick: P(g)
3774
3774
  });
3775
3775
  },
3776
3776
  getCheckboxProps: (T = {}) => {
3777
- const g = re(T), U = S({}, g, {
3778
- ref: R,
3777
+ const g = se(T), H = S({}, g, {
3778
+ ref: L,
3779
3779
  "aria-hidden": !0
3780
- }, T), ee = u.checkbox?.(S({}, V, {
3780
+ }, T), te = u.checkbox?.(S({}, V, {
3781
3781
  externalEventHandlers: g
3782
3782
  })) ?? {};
3783
- return S({}, U, ee);
3783
+ return S({}, H, te);
3784
3784
  },
3785
3785
  getLabelProps: (T = {}) => {
3786
- const g = S({}, re(T)), U = S({}, g, {
3786
+ const g = S({}, se(T)), H = S({}, g, {
3787
3787
  children: h
3788
3788
  }, T, {
3789
- onDoubleClick: O(g)
3790
- }), ee = u.label?.(S({}, V, {
3789
+ onDoubleClick: C(g)
3790
+ }), te = u.label?.(S({}, V, {
3791
3791
  externalEventHandlers: g
3792
3792
  })) ?? {};
3793
- return S({}, ee, U);
3793
+ return S({}, te, H);
3794
3794
  },
3795
3795
  getLabelInputProps: (T = {}) => {
3796
- const g = re(T), U = u.labelInput?.(S({}, V, {
3796
+ const g = se(T), H = u.labelInput?.(S({}, V, {
3797
3797
  externalEventHandlers: g
3798
3798
  })) ?? {};
3799
- return S({}, T, U);
3799
+ return S({}, T, H);
3800
3800
  },
3801
3801
  getDragAndDropOverlayProps: (T = {}) => {
3802
- const g = re(T), U = u.dragAndDropOverlay?.(S({}, V, {
3802
+ const g = se(T), H = u.dragAndDropOverlay?.(S({}, V, {
3803
3803
  externalEventHandlers: g
3804
3804
  })) ?? {};
3805
- return S({}, T, U);
3805
+ return S({}, T, H);
3806
3806
  },
3807
3807
  getErrorContainerProps: (T = {}) => {
3808
- const g = re(T);
3808
+ const g = se(T);
3809
3809
  return S({}, g, T);
3810
3810
  },
3811
3811
  getLoadingContainerProps: (T = {}) => {
3812
- const g = re(T);
3812
+ const g = se(T);
3813
3813
  return S({
3814
3814
  size: "12px",
3815
3815
  thickness: 6
@@ -3850,7 +3850,7 @@ const Lr = we(/* @__PURE__ */ v("path", {
3850
3850
  function Ze(t, e, n) {
3851
3851
  return t !== void 0 ? t : e !== void 0 ? e : n;
3852
3852
  }
3853
- function an(t) {
3853
+ function cn(t) {
3854
3854
  const {
3855
3855
  slots: e,
3856
3856
  slotProps: n,
@@ -3858,7 +3858,7 @@ function an(t) {
3858
3858
  } = t, {
3859
3859
  slots: r,
3860
3860
  slotProps: s
3861
- } = Gt(), l = {
3861
+ } = Xt(), l = {
3862
3862
  collapseIcon: Ze(e?.collapseIcon, r.collapseIcon, Dr),
3863
3863
  expandIcon: Ze(e?.expandIcon, r.expandIcon, Lr),
3864
3864
  endIcon: Ze(e?.endIcon, r.endIcon),
@@ -3866,15 +3866,15 @@ function an(t) {
3866
3866
  };
3867
3867
  let a;
3868
3868
  l?.icon ? a = "icon" : o.expandable ? o.expanded ? a = "collapseIcon" : a = "expandIcon" : a = "endIcon";
3869
- const h = l[a], d = te({
3869
+ const h = l[a], d = ne({
3870
3870
  elementType: h,
3871
- externalSlotProps: (p) => S({}, Et(s[a], p), Et(n?.[a], p)),
3871
+ externalSlotProps: (p) => S({}, Ct(s[a], p), Ct(n?.[a], p)),
3872
3872
  // TODO: Add proper ownerState
3873
3873
  ownerState: {}
3874
3874
  }), c = Be(d, _r);
3875
3875
  return h ? /* @__PURE__ */ v(h, S({}, c)) : null;
3876
3876
  }
3877
- process.env.NODE_ENV !== "production" && (an.propTypes = {
3877
+ process.env.NODE_ENV !== "production" && (cn.propTypes = {
3878
3878
  // ----------------------------- Warning --------------------------------
3879
3879
  // | These PropTypes are generated from the TypeScript type definitions |
3880
3880
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -3901,7 +3901,7 @@ process.env.NODE_ENV !== "production" && (an.propTypes = {
3901
3901
  selected: i.bool.isRequired
3902
3902
  }).isRequired
3903
3903
  });
3904
- const Ar = G("div", {
3904
+ const Ar = X("div", {
3905
3905
  name: "MuiTreeItemDragAndDropOverlay",
3906
3906
  slot: "Root",
3907
3907
  shouldForwardProp: (t) => st(t) && t !== "action"
@@ -3950,10 +3950,10 @@ const Ar = G("div", {
3950
3950
  }
3951
3951
  }]
3952
3952
  }));
3953
- function cn(t) {
3953
+ function dn(t) {
3954
3954
  return t.action == null ? null : /* @__PURE__ */ v(Ar, S({}, t));
3955
3955
  }
3956
- process.env.NODE_ENV !== "production" && (cn.propTypes = {
3956
+ process.env.NODE_ENV !== "production" && (dn.propTypes = {
3957
3957
  // ----------------------------- Warning --------------------------------
3958
3958
  // | These PropTypes are generated from the TypeScript type definitions |
3959
3959
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -3961,7 +3961,7 @@ process.env.NODE_ENV !== "production" && (cn.propTypes = {
3961
3961
  action: i.oneOf(["make-child", "move-to-parent", "reorder-above", "reorder-below"]),
3962
3962
  style: i.object
3963
3963
  });
3964
- function dn(t) {
3964
+ function un(t) {
3965
3965
  const {
3966
3966
  children: e,
3967
3967
  itemId: n,
@@ -3970,7 +3970,7 @@ function dn(t) {
3970
3970
  wrapItem: r,
3971
3971
  store: s
3972
3972
  } = ge(), l = W(s, ke.treeItemIdAttribute, n, o);
3973
- return /* @__PURE__ */ v(M.Fragment, {
3973
+ return /* @__PURE__ */ v(O.Fragment, {
3974
3974
  children: r({
3975
3975
  children: e,
3976
3976
  itemId: n,
@@ -3979,7 +3979,7 @@ function dn(t) {
3979
3979
  })
3980
3980
  });
3981
3981
  }
3982
- process.env.NODE_ENV !== "production" && (dn.propTypes = {
3982
+ process.env.NODE_ENV !== "production" && (un.propTypes = {
3983
3983
  // ----------------------------- Warning --------------------------------
3984
3984
  // | These PropTypes are generated from the TypeScript type definitions |
3985
3985
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -3988,7 +3988,7 @@ process.env.NODE_ENV !== "production" && (dn.propTypes = {
3988
3988
  id: i.string,
3989
3989
  itemId: i.string.isRequired
3990
3990
  });
3991
- const Nr = G("input", {
3991
+ const Nr = X("input", {
3992
3992
  name: "MuiTreeItem",
3993
3993
  slot: "LabelInput"
3994
3994
  })(({
@@ -4003,7 +4003,7 @@ const Nr = G("input", {
4003
4003
  "&:focus": {
4004
4004
  outline: `1px solid ${(t.vars || t).palette.primary.main}`
4005
4005
  }
4006
- })), Fr = ["visible"], Vr = ["id", "itemId", "label", "disabled", "disableSelection", "children", "slots", "slotProps", "classes"], zr = qt(), jr = G("li", {
4006
+ })), Fr = ["visible"], Vr = ["id", "itemId", "label", "disabled", "disableSelection", "children", "slots", "slotProps", "classes"], zr = Gt(), jr = X("li", {
4007
4007
  name: "MuiTreeItem",
4008
4008
  slot: "Root"
4009
4009
  })({
@@ -4011,7 +4011,7 @@ const Nr = G("input", {
4011
4011
  margin: 0,
4012
4012
  padding: 0,
4013
4013
  outline: 0
4014
- }), $r = G("div", {
4014
+ }), $r = X("div", {
4015
4015
  name: "MuiTreeItem",
4016
4016
  slot: "Content",
4017
4017
  shouldForwardProp: (t) => st(t) && t !== "status"
@@ -4058,7 +4058,7 @@ const Nr = G("input", {
4058
4058
  "&[data-selected][data-focused]": {
4059
4059
  backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))` : be(t.palette.primary.main, t.palette.action.selectedOpacity + t.palette.action.focusOpacity)
4060
4060
  }
4061
- })), Br = G("div", {
4061
+ })), Br = X("div", {
4062
4062
  name: "MuiTreeItem",
4063
4063
  slot: "Label",
4064
4064
  shouldForwardProp: (t) => st(t) && t !== "editable"
@@ -4081,7 +4081,7 @@ const Nr = G("input", {
4081
4081
  paddingLeft: "2px"
4082
4082
  }
4083
4083
  }]
4084
- })), Wr = G("div", {
4084
+ })), Wr = X("div", {
4085
4085
  name: "MuiTreeItem",
4086
4086
  slot: "IconContainer"
4087
4087
  })({
@@ -4094,14 +4094,14 @@ const Nr = G("input", {
4094
4094
  "& svg": {
4095
4095
  fontSize: 18
4096
4096
  }
4097
- }), Kr = G(je, {
4097
+ }), Kr = X(je, {
4098
4098
  name: "MuiTreeItem",
4099
4099
  slot: "GroupTransition",
4100
4100
  overridesResolver: (t, e) => e.groupTransition
4101
4101
  })({
4102
4102
  margin: 0,
4103
4103
  padding: 0
4104
- }), Ur = G("div", {
4104
+ }), Ur = X("div", {
4105
4105
  name: "MuiTreeItem",
4106
4106
  slot: "ErrorIcon"
4107
4107
  })({
@@ -4111,16 +4111,16 @@ const Nr = G("input", {
4111
4111
  height: 7,
4112
4112
  borderRadius: "50%",
4113
4113
  backgroundColor: "red"
4114
- }), Hr = G(jn, {
4114
+ }), Hr = X(jn, {
4115
4115
  name: "MuiTreeItem",
4116
4116
  slot: "LoadingIcon"
4117
4117
  })({
4118
4118
  color: "text.primary"
4119
- }), un = G(/* @__PURE__ */ M.forwardRef((t, e) => {
4119
+ }), pn = X(/* @__PURE__ */ O.forwardRef((t, e) => {
4120
4120
  const {
4121
4121
  visible: n
4122
4122
  } = t, o = Be(t, Fr);
4123
- return n ? /* @__PURE__ */ v(ln, S({}, o, {
4123
+ return n ? /* @__PURE__ */ v(an, S({}, o, {
4124
4124
  ref: e
4125
4125
  })) : null;
4126
4126
  }), {
@@ -4129,21 +4129,21 @@ const Nr = G("input", {
4129
4129
  })({
4130
4130
  padding: 0
4131
4131
  });
4132
- process.env.NODE_ENV !== "production" && (un.displayName = "TreeItemCheckbox");
4132
+ process.env.NODE_ENV !== "production" && (pn.displayName = "TreeItemCheckbox");
4133
4133
  const qr = (t) => {
4134
4134
  const {
4135
4135
  classes: e
4136
- } = Gt(), n = S({}, t, {
4137
- root: Q(t?.root, e.root),
4138
- content: Q(t?.content, e.itemContent),
4139
- iconContainer: Q(t?.iconContainer, e.itemIconContainer),
4140
- checkbox: Q(t?.checkbox, e.itemCheckbox),
4141
- label: Q(t?.label, e.itemLabel),
4142
- groupTransition: Q(t?.groupTransition, e.itemGroupTransition),
4143
- labelInput: Q(t?.labelInput, e.itemLabelInput),
4144
- dragAndDropOverlay: Q(t?.dragAndDropOverlay, e.itemDragAndDropOverlay),
4145
- errorIcon: Q(t?.errorIcon, e.itemErrorIcon),
4146
- loadingIcon: Q(t?.loadingIcon, e.itemLoadingIcon)
4136
+ } = Xt(), n = S({}, t, {
4137
+ root: Y(t?.root, e.root),
4138
+ content: Y(t?.content, e.itemContent),
4139
+ iconContainer: Y(t?.iconContainer, e.itemIconContainer),
4140
+ checkbox: Y(t?.checkbox, e.itemCheckbox),
4141
+ label: Y(t?.label, e.itemLabel),
4142
+ groupTransition: Y(t?.groupTransition, e.itemGroupTransition),
4143
+ labelInput: Y(t?.labelInput, e.itemLabelInput),
4144
+ dragAndDropOverlay: Y(t?.dragAndDropOverlay, e.itemDragAndDropOverlay),
4145
+ errorIcon: Y(t?.errorIcon, e.itemErrorIcon),
4146
+ loadingIcon: Y(t?.loadingIcon, e.itemLoadingIcon)
4147
4147
  });
4148
4148
  return ve({
4149
4149
  root: ["root"],
@@ -4163,7 +4163,7 @@ const qr = (t) => {
4163
4163
  focused: ["focused"],
4164
4164
  disabled: ["disabled"]
4165
4165
  }, Rr, n);
4166
- }, mt = /* @__PURE__ */ M.forwardRef(function(e, n) {
4166
+ }, mt = /* @__PURE__ */ O.forwardRef(function(e, n) {
4167
4167
  const o = zr({
4168
4168
  props: e,
4169
4169
  name: "MuiTreeItem"
@@ -4181,15 +4181,15 @@ const qr = (t) => {
4181
4181
  getContextProviderProps: m,
4182
4182
  getRootProps: I,
4183
4183
  getContentProps: b,
4184
- getIconContainerProps: x,
4184
+ getIconContainerProps: E,
4185
4185
  getCheckboxProps: w,
4186
- getLabelProps: _,
4187
- getGroupTransitionProps: R,
4188
- getLabelInputProps: F,
4189
- getDragAndDropOverlayProps: C,
4186
+ getLabelProps: M,
4187
+ getGroupTransitionProps: L,
4188
+ getLabelInputProps: _,
4189
+ getDragAndDropOverlayProps: x,
4190
4190
  getErrorContainerProps: D,
4191
4191
  getLoadingContainerProps: V,
4192
- status: j
4192
+ status: B
4193
4193
  } = Pr({
4194
4194
  id: r,
4195
4195
  itemId: s,
@@ -4197,7 +4197,7 @@ const qr = (t) => {
4197
4197
  label: l,
4198
4198
  disabled: a,
4199
4199
  disableSelection: h
4200
- }), E = qr(f), k = c.root ?? jr, O = te({
4200
+ }), j = qr(f), k = c.root ?? jr, C = ne({
4201
4201
  elementType: k,
4202
4202
  getSlotProps: I,
4203
4203
  externalForwardedProps: u,
@@ -4206,72 +4206,72 @@ const qr = (t) => {
4206
4206
  ref: n
4207
4207
  },
4208
4208
  ownerState: {},
4209
- className: E.root
4210
- }), A = c.content ?? $r, L = te({
4211
- elementType: A,
4209
+ className: j.root
4210
+ }), F = c.content ?? $r, A = ne({
4211
+ elementType: F,
4212
4212
  getSlotProps: b,
4213
4213
  externalSlotProps: p.content,
4214
4214
  ownerState: {},
4215
- className: Q(E.content, j.expanded && E.expanded, j.selected && E.selected, j.focused && E.focused, j.disabled && E.disabled, j.editing && E.editing, j.editable && E.editable)
4216
- }), $ = c.iconContainer ?? Wr, B = te({
4217
- elementType: $,
4218
- getSlotProps: x,
4215
+ className: Y(j.content, B.expanded && j.expanded, B.selected && j.selected, B.focused && j.focused, B.disabled && j.disabled, B.editing && j.editing, B.editable && j.editable)
4216
+ }), P = c.iconContainer ?? Wr, $ = ne({
4217
+ elementType: P,
4218
+ getSlotProps: E,
4219
4219
  externalSlotProps: p.iconContainer,
4220
4220
  ownerState: {},
4221
- className: E.iconContainer
4222
- }), J = c.label ?? Br, Z = te({
4223
- elementType: J,
4224
- getSlotProps: _,
4221
+ className: j.iconContainer
4222
+ }), K = c.label ?? Br, ee = ne({
4223
+ elementType: K,
4224
+ getSlotProps: M,
4225
4225
  externalSlotProps: p.label,
4226
4226
  ownerState: {},
4227
- className: E.label
4228
- }), q = c.checkbox ?? un, ie = te({
4229
- elementType: q,
4227
+ className: j.label
4228
+ }), G = c.checkbox ?? pn, Z = ne({
4229
+ elementType: G,
4230
4230
  getSlotProps: w,
4231
4231
  externalSlotProps: p.checkbox,
4232
4232
  ownerState: {},
4233
- className: E.checkbox
4234
- }), ae = c.groupTransition ?? void 0, ue = te({
4233
+ className: j.checkbox
4234
+ }), ae = c.groupTransition ?? void 0, ue = ne({
4235
4235
  elementType: ae,
4236
- getSlotProps: R,
4236
+ getSlotProps: L,
4237
4237
  externalSlotProps: p.groupTransition,
4238
4238
  ownerState: {},
4239
- className: E.groupTransition
4240
- }), ce = c.labelInput ?? Nr, pe = te({
4239
+ className: j.groupTransition
4240
+ }), ce = c.labelInput ?? Nr, pe = ne({
4241
4241
  elementType: ce,
4242
- getSlotProps: F,
4242
+ getSlotProps: _,
4243
4243
  externalSlotProps: p.labelInput,
4244
4244
  ownerState: {},
4245
- className: E.labelInput
4246
- }), K = c.dragAndDropOverlay ?? cn, X = te({
4247
- elementType: K,
4248
- getSlotProps: C,
4245
+ className: j.labelInput
4246
+ }), U = c.dragAndDropOverlay ?? dn, J = ne({
4247
+ elementType: U,
4248
+ getSlotProps: x,
4249
4249
  externalSlotProps: p.dragAndDropOverlay,
4250
4250
  ownerState: {},
4251
- className: E.dragAndDropOverlay
4252
- }), T = c.errorIcon ?? Ur, g = te({
4251
+ className: j.dragAndDropOverlay
4252
+ }), T = c.errorIcon ?? Ur, g = ne({
4253
4253
  elementType: T,
4254
4254
  getSlotProps: D,
4255
4255
  externalSlotProps: p.errorIcon,
4256
4256
  ownerState: {},
4257
- className: E.errorIcon
4258
- }), U = c.loadingIcon ?? Hr, ee = te({
4259
- elementType: U,
4257
+ className: j.errorIcon
4258
+ }), H = c.loadingIcon ?? Hr, te = ne({
4259
+ elementType: H,
4260
4260
  getSlotProps: V,
4261
4261
  externalSlotProps: p.loadingIcon,
4262
4262
  ownerState: {},
4263
- className: E.loadingIcon
4263
+ className: j.loadingIcon
4264
4264
  });
4265
- return /* @__PURE__ */ v(dn, S({}, m(), {
4266
- children: /* @__PURE__ */ Y(k, S({}, O, {
4267
- children: [/* @__PURE__ */ Y(A, S({}, L, {
4268
- children: [/* @__PURE__ */ Y($, S({}, B, {
4269
- children: [j.error && /* @__PURE__ */ v(T, S({}, g)), j.loading ? /* @__PURE__ */ v(U, S({}, ee)) : /* @__PURE__ */ v(an, {
4270
- status: j,
4265
+ return /* @__PURE__ */ v(un, S({}, m(), {
4266
+ children: /* @__PURE__ */ Q(k, S({}, C, {
4267
+ children: [/* @__PURE__ */ Q(F, S({}, A, {
4268
+ children: [/* @__PURE__ */ Q(P, S({}, $, {
4269
+ children: [B.error && /* @__PURE__ */ v(T, S({}, g)), B.loading ? /* @__PURE__ */ v(H, S({}, te)) : /* @__PURE__ */ v(cn, {
4270
+ status: B,
4271
4271
  slots: c,
4272
4272
  slotProps: p
4273
4273
  })]
4274
- })), /* @__PURE__ */ v(q, S({}, ie)), j.editing ? /* @__PURE__ */ v(ce, S({}, pe)) : /* @__PURE__ */ v(J, S({}, Z)), /* @__PURE__ */ v(K, S({}, X))]
4274
+ })), /* @__PURE__ */ v(G, S({}, Z)), B.editing ? /* @__PURE__ */ v(ce, S({}, pe)) : /* @__PURE__ */ v(K, S({}, ee)), /* @__PURE__ */ v(U, S({}, J))]
4275
4275
  })), d && /* @__PURE__ */ v(Kr, S({
4276
4276
  as: ae
4277
4277
  }, ue))]
@@ -4363,92 +4363,93 @@ function us({
4363
4363
  isRtl: l = !1,
4364
4364
  width: a = 300,
4365
4365
  placeholder: h = "Search...",
4366
- maxHeight: d = 300
4366
+ maxHeight: d = 300,
4367
+ showId: c = !0
4367
4368
  }) {
4368
- const [c, p] = We(""), [f, u] = We(!1), [m, I] = We(5), b = gt(null), x = gt(null), w = Ke(() => {
4369
+ const [p, f] = We(""), [u, m] = We(!1), [I, b] = We(5), E = bt(null), w = bt(null), M = Ke(() => {
4369
4370
  if (!e || r.length === 0) return [];
4370
- const E = new Set(r), k = [], O = (A) => {
4371
- for (const L of A)
4372
- L.children && L.children.length > 0 ? O(L.children) : E.has(L.value) && k.push(L.label);
4371
+ const k = new Set(r), C = [], F = (A) => {
4372
+ for (const P of A)
4373
+ P.children && P.children.length > 0 ? F(P.children) : k.has(P.value) && C.push(P.label);
4373
4374
  };
4374
- return O(e), k;
4375
+ return F(e), C;
4375
4376
  }, [e, r]);
4376
- bt(() => {
4377
- const E = (k) => {
4378
- b.current && !b.current.contains(k.target) && u(!1);
4377
+ St(() => {
4378
+ const k = (C) => {
4379
+ E.current && !E.current.contains(C.target) && m(!1);
4379
4380
  };
4380
- return f && document.addEventListener("mousedown", E), () => {
4381
- document.removeEventListener("mousedown", E);
4381
+ return u && document.addEventListener("mousedown", k), () => {
4382
+ document.removeEventListener("mousedown", k);
4382
4383
  };
4383
- }, [f]), bt(() => {
4384
- const E = () => {
4385
- if (!x.current || w.length === 0) {
4386
- I(5);
4384
+ }, [u]), St(() => {
4385
+ const k = () => {
4386
+ if (!w.current || M.length === 0) {
4387
+ b(5);
4387
4388
  return;
4388
4389
  }
4389
- const O = x.current.offsetWidth, A = 60, L = 110, $ = 45, B = 4, J = O - $ - B, Z = (A + L) / 2, q = Math.max(1, Math.floor(J / (Z + B)));
4390
- I(Math.min(q, w.length));
4390
+ const F = w.current.offsetWidth, A = 60, P = 110, $ = 45, K = 4, ee = F - $ - K, G = (A + P) / 2, Z = Math.max(1, Math.floor(ee / (G + K)));
4391
+ b(Math.min(Z, M.length));
4391
4392
  };
4392
- E();
4393
- const k = new ResizeObserver(E);
4394
- return x.current && k.observe(x.current), () => k.disconnect();
4395
- }, [w.length]);
4396
- const _ = Ke(() => {
4393
+ k();
4394
+ const C = new ResizeObserver(k);
4395
+ return w.current && C.observe(w.current), () => C.disconnect();
4396
+ }, [M.length]);
4397
+ const L = Ke(() => {
4397
4398
  if (!e) return [];
4398
- if (!c.trim()) return e;
4399
- const E = c.toLowerCase(), k = (O) => {
4399
+ if (!p.trim()) return e;
4400
+ const k = p.toLowerCase(), C = (F) => {
4400
4401
  const A = [];
4401
- for (const L of O) {
4402
- const $ = L.label.toLowerCase().includes(E) || String(L.id).toLowerCase().includes(E) || L.externalId && String(L.externalId).toLowerCase().includes(E), B = L.children ? k(L.children) : [];
4403
- ($ || B.length > 0) && A.push({
4404
- ...L,
4405
- children: B.length > 0 ? B : L.children
4402
+ for (const P of F) {
4403
+ const $ = P.label.toLowerCase().includes(k) || String(P.id).toLowerCase().includes(k) || P.externalId && String(P.externalId).toLowerCase().includes(k), K = P.children ? C(P.children) : [];
4404
+ ($ || K.length > 0) && A.push({
4405
+ ...P,
4406
+ children: K.length > 0 ? K : P.children
4406
4407
  });
4407
4408
  }
4408
4409
  return A;
4409
4410
  };
4410
- return k(e);
4411
- }, [e, c]), R = St((E) => !E.children || E.children.length === 0 ? [E.value] : E.children.flatMap((k) => {
4412
- const O = he(e || [], k.value) || k;
4413
- return R(O);
4414
- }), [e]), F = St(
4415
- (E) => {
4416
- const k = he(e || [], E.value) || E, O = R(k);
4417
- if (k.children && k.children.length > 0)
4418
- if (O.every(($) => r.includes($))) {
4419
- const $ = new Set(O);
4420
- n(r.filter((B) => !$.has(B)));
4411
+ return C(e);
4412
+ }, [e, p]), _ = yt((k) => !k.children || k.children.length === 0 ? [k.value] : k.children.flatMap((C) => {
4413
+ const F = he(e || [], C.value) || C;
4414
+ return _(F);
4415
+ }), [e]), x = yt(
4416
+ (k) => {
4417
+ const C = he(e || [], k.value) || k, F = _(C);
4418
+ if (C.children && C.children.length > 0)
4419
+ if (F.every(($) => r.includes($))) {
4420
+ const $ = new Set(F);
4421
+ n(r.filter((K) => !$.has(K)));
4421
4422
  } else {
4422
- const $ = /* @__PURE__ */ new Set([...r, ...O]);
4423
+ const $ = /* @__PURE__ */ new Set([...r, ...F]);
4423
4424
  n(Array.from($));
4424
4425
  }
4425
4426
  else {
4426
- const L = r.includes(E.value);
4427
- n(L ? r.filter(($) => $ !== E.value) : [...r, E.value]);
4427
+ const P = r.includes(k.value);
4428
+ n(P ? r.filter(($) => $ !== k.value) : [...r, k.value]);
4428
4429
  }
4429
4430
  },
4430
- [e, r, n, R]
4431
- ), C = (E) => {
4432
- E.stopPropagation(), n([]);
4433
- }, { areAllChildrenSelected: D, areSomeChildrenSelected: V } = Ke(() => {
4434
- const E = (O) => {
4435
- const A = he(e || [], O);
4436
- return !A || !A.children || A.children.length === 0 ? r.includes(O) : A.children.every((L) => E(L.value));
4437
- }, k = (O) => {
4438
- const A = he(e || [], O);
4439
- return !A || !A.children || A.children.length === 0 ? r.includes(O) : A.children.some((L) => k(L.value));
4431
+ [e, r, n, _]
4432
+ ), D = (k) => {
4433
+ k.stopPropagation(), n([]);
4434
+ }, { areAllChildrenSelected: V, areSomeChildrenSelected: B } = Ke(() => {
4435
+ const k = (F) => {
4436
+ const A = he(e || [], F);
4437
+ return !A || !A.children || A.children.length === 0 ? r.includes(F) : A.children.every((P) => k(P.value));
4438
+ }, C = (F) => {
4439
+ const A = he(e || [], F);
4440
+ return !A || !A.children || A.children.length === 0 ? r.includes(F) : A.children.some((P) => C(P.value));
4440
4441
  };
4441
4442
  return {
4442
- areAllChildrenSelected: E,
4443
- areSomeChildrenSelected: k
4443
+ areAllChildrenSelected: k,
4444
+ areSomeChildrenSelected: C
4444
4445
  };
4445
- }, [e, r]), j = (E) => E.map((k) => {
4446
- const O = he(e || [], k.value), A = O?.children && O.children.length > 0, L = !A, $ = L && r.includes(k.value), B = A && D(k.value), J = A && V(k.value), Z = A && J && !B;
4446
+ }, [e, r]), j = (k) => k.map((C) => {
4447
+ const F = he(e || [], C.value), A = F?.children && F.children.length > 0, P = !A, $ = P && r.includes(C.value), K = A && V(C.value), ee = A && B(C.value), G = A && ee && !K;
4447
4448
  return /* @__PURE__ */ v(
4448
4449
  mt,
4449
4450
  {
4450
- itemId: k.value,
4451
- label: /* @__PURE__ */ Y(
4451
+ itemId: C.value,
4452
+ label: /* @__PURE__ */ Q(
4452
4453
  fe,
4453
4454
  {
4454
4455
  sx: {
@@ -4456,39 +4457,41 @@ function us({
4456
4457
  alignItems: "flex-start",
4457
4458
  py: 0.5
4458
4459
  },
4459
- onClick: (q) => {
4460
- q.stopPropagation(), F(k);
4460
+ onClick: (Z) => {
4461
+ Z.stopPropagation(), x(C);
4461
4462
  },
4462
4463
  children: [
4463
4464
  /* @__PURE__ */ v(
4464
4465
  Cn,
4465
4466
  {
4466
- checked: L ? $ : B,
4467
- indeterminate: Z,
4467
+ checked: P ? $ : K,
4468
+ indeterminate: G,
4468
4469
  size: "small",
4469
4470
  sx: { p: 0, mr: 1 }
4470
4471
  }
4471
4472
  ),
4472
- /* @__PURE__ */ Y(fe, { sx: { display: "flex", flexDirection: "column" }, children: [
4473
+ /* @__PURE__ */ Q(fe, { sx: { display: "flex", flexDirection: "column" }, children: [
4473
4474
  /* @__PURE__ */ v(
4474
4475
  Ue,
4475
4476
  {
4476
4477
  component: "span",
4477
4478
  sx: { fontWeight: 600, fontSize: "0.875rem" },
4478
- children: k.label
4479
+ children: C.label
4479
4480
  }
4480
4481
  ),
4481
- /* @__PURE__ */ Y(
4482
+ (c || C.externalId !== void 0 && C.externalId !== "") && /* @__PURE__ */ Q(
4482
4483
  Ue,
4483
4484
  {
4484
4485
  component: "span",
4485
4486
  sx: { fontSize: "0.75rem", color: "text.secondary" },
4486
4487
  children: [
4487
- "Id: ",
4488
- k.id,
4489
- k.externalId !== void 0 && k.externalId !== "" && /* @__PURE__ */ Y("span", { style: { marginLeft: 8 }, children: [
4488
+ c && /* @__PURE__ */ Q(gt, { children: [
4489
+ "Id: ",
4490
+ C.id
4491
+ ] }),
4492
+ C.externalId !== void 0 && C.externalId !== "" && /* @__PURE__ */ Q("span", { style: { marginLeft: c ? 8 : 0 }, children: [
4490
4493
  "External ID: ",
4491
- k.externalId
4494
+ C.externalId
4492
4495
  ] })
4493
4496
  ]
4494
4497
  }
@@ -4497,15 +4500,15 @@ function us({
4497
4500
  ]
4498
4501
  }
4499
4502
  ),
4500
- children: k.children && j(k.children)
4503
+ children: C.children && j(C.children)
4501
4504
  },
4502
- k.value
4505
+ C.value
4503
4506
  );
4504
4507
  });
4505
- return /* @__PURE__ */ Y(
4508
+ return /* @__PURE__ */ Q(
4506
4509
  In,
4507
4510
  {
4508
- ref: b,
4511
+ ref: E,
4509
4512
  size: "small",
4510
4513
  sx: {
4511
4514
  width: o ? "100%" : a,
@@ -4513,14 +4516,14 @@ function us({
4513
4516
  },
4514
4517
  disabled: s,
4515
4518
  children: [
4516
- /* @__PURE__ */ v(gn, { shrink: f || r.length > 0, children: t }),
4519
+ /* @__PURE__ */ v(gn, { shrink: u || r.length > 0, children: t }),
4517
4520
  /* @__PURE__ */ v(
4518
4521
  bn,
4519
4522
  {
4520
4523
  label: t,
4521
- notched: f || r.length > 0,
4524
+ notched: u || r.length > 0,
4522
4525
  readOnly: !0,
4523
- onClick: () => !s && u(!f),
4526
+ onClick: () => !s && m(!u),
4524
4527
  sx: {
4525
4528
  borderRadius: "8px",
4526
4529
  bgcolor: "var(--color-background)",
@@ -4539,7 +4542,7 @@ function us({
4539
4542
  startAdornment: /* @__PURE__ */ v(
4540
4543
  fe,
4541
4544
  {
4542
- ref: x,
4545
+ ref: w,
4543
4546
  sx: {
4544
4547
  display: "flex",
4545
4548
  flexWrap: "nowrap",
@@ -4550,11 +4553,11 @@ function us({
4550
4553
  py: 0.5,
4551
4554
  pl: 1
4552
4555
  },
4553
- children: w.length > 0 ? /* @__PURE__ */ Y(mn, { children: [
4554
- w.slice(0, m).map((E) => /* @__PURE__ */ v(
4555
- xt,
4556
+ children: M.length > 0 ? /* @__PURE__ */ Q(gt, { children: [
4557
+ M.slice(0, I).map((k) => /* @__PURE__ */ v(
4558
+ Et,
4556
4559
  {
4557
- label: E,
4560
+ label: k,
4558
4561
  size: "small",
4559
4562
  sx: {
4560
4563
  height: 24,
@@ -4568,12 +4571,12 @@ function us({
4568
4571
  }
4569
4572
  }
4570
4573
  },
4571
- E
4574
+ k
4572
4575
  )),
4573
- w.length > m && /* @__PURE__ */ v(
4574
- xt,
4576
+ M.length > I && /* @__PURE__ */ v(
4577
+ Et,
4575
4578
  {
4576
- label: `+${w.length - m}`,
4579
+ label: `+${M.length - I}`,
4577
4580
  size: "small",
4578
4581
  sx: { height: 24, flexShrink: 0 }
4579
4582
  }
@@ -4581,13 +4584,13 @@ function us({
4581
4584
  ] }) : null
4582
4585
  }
4583
4586
  ),
4584
- endAdornment: /* @__PURE__ */ Y(yt, { position: "end", sx: { flexShrink: 0 }, children: [
4585
- r.length > 0 && !s && /* @__PURE__ */ v(Sn, { size: "small", onClick: C, children: /* @__PURE__ */ v(Tn, { fontSize: "small" }) }),
4587
+ endAdornment: /* @__PURE__ */ Q(xt, { position: "end", sx: { flexShrink: 0 }, children: [
4588
+ r.length > 0 && !s && /* @__PURE__ */ v(Sn, { size: "small", onClick: D, children: /* @__PURE__ */ v(Tn, { fontSize: "small" }) }),
4586
4589
  /* @__PURE__ */ v(
4587
4590
  wn,
4588
4591
  {
4589
4592
  sx: {
4590
- transform: f ? "rotate(180deg)" : "rotate(0deg)",
4593
+ transform: u ? "rotate(180deg)" : "rotate(0deg)",
4591
4594
  transition: "transform 0.2s"
4592
4595
  }
4593
4596
  }
@@ -4595,7 +4598,7 @@ function us({
4595
4598
  ] })
4596
4599
  }
4597
4600
  ),
4598
- /* @__PURE__ */ v(yn, { in: f && !s, children: /* @__PURE__ */ Y(
4601
+ /* @__PURE__ */ v(yn, { in: u && !s, children: /* @__PURE__ */ Q(
4599
4602
  xn,
4600
4603
  {
4601
4604
  elevation: 3,
@@ -4614,11 +4617,11 @@ function us({
4614
4617
  fullWidth: !0,
4615
4618
  size: "small",
4616
4619
  placeholder: h,
4617
- value: c,
4618
- onChange: (E) => p(E.target.value),
4620
+ value: p,
4621
+ onChange: (k) => f(k.target.value),
4619
4622
  slotProps: {
4620
4623
  input: {
4621
- startAdornment: /* @__PURE__ */ v(yt, { position: "start", children: /* @__PURE__ */ v(vn, { fontSize: "small" }) })
4624
+ startAdornment: /* @__PURE__ */ v(xt, { position: "start", children: /* @__PURE__ */ v(vn, { fontSize: "small" }) })
4622
4625
  }
4623
4626
  },
4624
4627
  sx: {
@@ -4628,9 +4631,9 @@ function us({
4628
4631
  }
4629
4632
  }
4630
4633
  ) }),
4631
- /* @__PURE__ */ Y(fe, { sx: { maxHeight: d, overflow: "auto" }, children: [
4632
- /* @__PURE__ */ v(ht, { children: j(_) }),
4633
- _.length === 0 && /* @__PURE__ */ v(fe, { sx: { p: 2, textAlign: "center" }, children: /* @__PURE__ */ v(Ue, { color: "text.secondary", variant: "body2", children: "No options found" }) })
4634
+ /* @__PURE__ */ Q(fe, { sx: { maxHeight: d, overflow: "auto" }, children: [
4635
+ /* @__PURE__ */ v(ht, { children: j(L) }),
4636
+ L.length === 0 && /* @__PURE__ */ v(fe, { sx: { p: 2, textAlign: "center" }, children: /* @__PURE__ */ v(Ue, { color: "text.secondary", variant: "body2", children: "No options found" }) })
4634
4637
  ] })
4635
4638
  ]
4636
4639
  }