@smart-factor/gem-ui-components 0.0.107 → 0.0.108

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,13 +1,13 @@
1
1
  import { jsx as v, jsxs as Re } from "react/jsx-runtime";
2
2
  import * as x from "react";
3
3
  import { createElement as Ht } from "react";
4
- import { g as ge, e as he, f as st, H as Yt, q as Qt, h as Zt, J as en, u as fe, s as U, j as Me, l as be, t as tt, n as lt, P as o, K as at, w as Ne, B as me, L as tn, C as ct, M as nn, D as oe, A as on, i as ee, N as nt, _ as C, O as te, x as Q, o as rn, z as sn, p as ln, Q as ze, r as se, y as ot, F as an, S as cn, G as dn, I as un } from "./Stack-CdVfRhco.js";
5
- import { u as pn, a as fn, b as mn, w as Se, c as pe, d as In } from "./warning-VmSVedfJ.js";
6
- function gn(e) {
7
- return ge("MuiCollapse", e);
4
+ import { g as Ie, f as ge, h as st, H as Yt, t as Qt, i as Zt, J as en, u as pe, s as U, k as Me, n as he, v as tt, p as lt, P as o, K as at, x as Ne, C as fe, L as tn, D as ct, M as nn, c as be, B as on, j as ee, N as nt, _ as T, O as te, y as Q, o as rn, A as sn, q as ln, Q as ze, r as ie, z as ot, F as an, S as cn, G as dn, I as un } from "./Stack-CP81SpOh.js";
5
+ import { u as pn, a as fn, b as mn, w as Se, c as ue, d as In, V as gn, e as hn } from "./warning-CJpi1iFg.js";
6
+ function bn(e) {
7
+ return Ie("MuiCollapse", e);
8
8
  }
9
- he("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
10
- const hn = (e) => {
9
+ ge("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
10
+ const yn = (e) => {
11
11
  const {
12
12
  orientation: t,
13
13
  classes: n
@@ -18,8 +18,8 @@ const hn = (e) => {
18
18
  wrapper: ["wrapper", `${t}`],
19
19
  wrapperInner: ["wrapperInner", `${t}`]
20
20
  };
21
- return be(r, gn, n);
22
- }, bn = U("div", {
21
+ return he(r, bn, n);
22
+ }, xn = U("div", {
23
23
  name: "MuiCollapse",
24
24
  slot: "Root",
25
25
  overridesResolver: (e, t) => {
@@ -67,7 +67,7 @@ const hn = (e) => {
67
67
  visibility: "hidden"
68
68
  }
69
69
  }]
70
- }))), yn = U("div", {
70
+ }))), wn = U("div", {
71
71
  name: "MuiCollapse",
72
72
  slot: "Wrapper",
73
73
  overridesResolver: (e, t) => t.wrapper
@@ -84,7 +84,7 @@ const hn = (e) => {
84
84
  height: "100%"
85
85
  }
86
86
  }]
87
- }), xn = U("div", {
87
+ }), Tn = U("div", {
88
88
  name: "MuiCollapse",
89
89
  slot: "WrapperInner",
90
90
  overridesResolver: (e, t) => t.wrapperInner
@@ -122,12 +122,12 @@ const hn = (e) => {
122
122
  timeout: w = Yt.standard,
123
123
  // eslint-disable-next-line react/prop-types
124
124
  TransitionComponent: R = Qt,
125
- ...T
125
+ ...C
126
126
  } = r, S = {
127
127
  ...r,
128
128
  orientation: h,
129
129
  collapsedSize: s
130
- }, M = hn(S), z = Zt(), W = en(), D = x.useRef(null), j = x.useRef(), V = typeof s == "number" ? `${s}px` : s, B = h === "horizontal", N = B ? "width" : "height", K = x.useRef(null), q = fe(n, K), _ = (E) => (O) => {
130
+ }, M = yn(S), z = Zt(), W = en(), D = x.useRef(null), j = x.useRef(), V = typeof s == "number" ? `${s}px` : s, B = h === "horizontal", N = B ? "width" : "height", K = x.useRef(null), q = pe(n, K), _ = (E) => (O) => {
131
131
  if (E) {
132
132
  const L = K.current;
133
133
  O === void 0 ? E(L) : E(L, O);
@@ -148,8 +148,8 @@ const hn = (e) => {
148
148
  mode: "enter"
149
149
  });
150
150
  if (w === "auto") {
151
- const de = z.transitions.getAutoHeightDuration(L);
152
- E.style.transitionDuration = `${de}ms`, j.current = de;
151
+ const ce = z.transitions.getAutoHeightDuration(L);
152
+ E.style.transitionDuration = `${ce}ms`, j.current = ce;
153
153
  } else
154
154
  E.style.transitionDuration = typeof G == "string" ? G : `${G}ms`;
155
155
  E.style[N] = `${L}px`, E.style.transitionTimingFunction = F, g && g(E, O);
@@ -157,7 +157,7 @@ const hn = (e) => {
157
157
  E.style[N] = "auto", u && u(E, O);
158
158
  }), Y = _((E) => {
159
159
  E.style[N] = `${X()}px`, b && b(E);
160
- }), re = _(m), ce = _((E) => {
160
+ }), oe = _(m), ae = _((E) => {
161
161
  const O = X(), {
162
162
  duration: L,
163
163
  easing: G
@@ -181,18 +181,18 @@ const hn = (e) => {
181
181
  onEntered: $,
182
182
  onEntering: J,
183
183
  onExit: Y,
184
- onExited: re,
185
- onExiting: ce,
184
+ onExited: oe,
185
+ onExiting: ae,
186
186
  addEndListener: (E) => {
187
187
  w === "auto" && W.start(j.current || 0, E), l && l(K.current, E);
188
188
  },
189
189
  nodeRef: K,
190
190
  timeout: w === "auto" ? null : w,
191
- ...T,
191
+ ...C,
192
192
  children: (E, {
193
193
  ownerState: O,
194
194
  ...L
195
- }) => /* @__PURE__ */ v(bn, {
195
+ }) => /* @__PURE__ */ v(xn, {
196
196
  as: d,
197
197
  className: Me(M.root, c, {
198
198
  entered: M.entered,
@@ -208,14 +208,14 @@ const hn = (e) => {
208
208
  state: E
209
209
  },
210
210
  ...L,
211
- children: /* @__PURE__ */ v(yn, {
211
+ children: /* @__PURE__ */ v(wn, {
212
212
  ownerState: {
213
213
  ...S,
214
214
  state: E
215
215
  },
216
216
  className: M.wrapper,
217
217
  ref: D,
218
- children: /* @__PURE__ */ v(xn, {
218
+ children: /* @__PURE__ */ v(Tn, {
219
219
  ownerState: {
220
220
  ...S,
221
221
  state: E
@@ -323,22 +323,22 @@ process.env.NODE_ENV !== "production" && (Pe.propTypes = {
323
323
  })])
324
324
  });
325
325
  Pe && (Pe.muiSupportAuto = !0);
326
- function wn(e) {
327
- return ge("PrivateSwitchBase", e);
326
+ function Cn(e) {
327
+ return Ie("PrivateSwitchBase", e);
328
328
  }
329
- he("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
330
- const Cn = (e) => {
329
+ ge("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
330
+ const En = (e) => {
331
331
  const {
332
332
  classes: t,
333
333
  checked: n,
334
334
  disabled: r,
335
335
  edge: l
336
336
  } = e, I = {
337
- root: ["root", n && "checked", r && "disabled", l && `edge${me(l)}`],
337
+ root: ["root", n && "checked", r && "disabled", l && `edge${fe(l)}`],
338
338
  input: ["input"]
339
339
  };
340
- return be(I, wn, t);
341
- }, Tn = U(tn)({
340
+ return he(I, Cn, t);
341
+ }, vn = U(tn)({
342
342
  padding: 9,
343
343
  borderRadius: "50%",
344
344
  variants: [{
@@ -374,7 +374,7 @@ const Cn = (e) => {
374
374
  marginRight: -12
375
375
  }
376
376
  }]
377
- }), En = U("input", {
377
+ }), Sn = U("input", {
378
378
  shouldForwardProp: ct
379
379
  })({
380
380
  cursor: "inherit",
@@ -407,7 +407,7 @@ const Cn = (e) => {
407
407
  readOnly: y,
408
408
  required: w = !1,
409
409
  tabIndex: R,
410
- type: T,
410
+ type: C,
411
411
  value: S,
412
412
  slots: M = {},
413
413
  slotProps: z = {},
@@ -429,13 +429,13 @@ const Cn = (e) => {
429
429
  };
430
430
  let q = s;
431
431
  V && typeof q > "u" && (q = V.disabled);
432
- const _ = T === "checkbox" || T === "radio", X = {
432
+ const _ = C === "checkbox" || C === "radio", X = {
433
433
  ...t,
434
434
  checked: D,
435
435
  disabled: q,
436
436
  disableFocusRipple: d,
437
437
  edge: f
438
- }, A = Cn(X), J = {
438
+ }, A = En(X), J = {
439
439
  slots: M,
440
440
  slotProps: {
441
441
  input: u,
@@ -443,7 +443,7 @@ const Cn = (e) => {
443
443
  }
444
444
  }, [$, Y] = Ne("root", {
445
445
  ref: n,
446
- elementType: Tn,
446
+ elementType: vn,
447
447
  className: A.root,
448
448
  shouldForwardComponentProp: !0,
449
449
  externalForwardedProps: {
@@ -470,9 +470,9 @@ const Cn = (e) => {
470
470
  role: void 0,
471
471
  tabIndex: null
472
472
  }
473
- }), [re, ce] = Ne("input", {
473
+ }), [oe, ae] = Ne("input", {
474
474
  ref: g,
475
- elementType: En,
475
+ elementType: Sn,
476
476
  className: A.input,
477
477
  externalForwardedProps: J,
478
478
  getSlotProps: (k) => ({
@@ -493,16 +493,16 @@ const Cn = (e) => {
493
493
  readOnly: y,
494
494
  required: w,
495
495
  tabIndex: R,
496
- type: T,
497
- ...T === "checkbox" && S === void 0 ? {} : {
496
+ type: C,
497
+ ...C === "checkbox" && S === void 0 ? {} : {
498
498
  value: S
499
499
  }
500
500
  }
501
501
  });
502
502
  return /* @__PURE__ */ Re($, {
503
503
  ...Y,
504
- children: [/* @__PURE__ */ v(re, {
505
- ...ce
504
+ children: [/* @__PURE__ */ v(oe, {
505
+ ...ae
506
506
  }), D ? I : i]
507
507
  });
508
508
  });
@@ -625,31 +625,31 @@ process.env.NODE_ENV !== "production" && (dt.propTypes = {
625
625
  */
626
626
  value: o.any
627
627
  });
628
- const vn = oe(/* @__PURE__ */ v("path", {
628
+ const Pn = be(/* @__PURE__ */ v("path", {
629
629
  d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
630
- }), "CheckBoxOutlineBlank"), Sn = oe(/* @__PURE__ */ v("path", {
630
+ }), "CheckBoxOutlineBlank"), Rn = be(/* @__PURE__ */ v("path", {
631
631
  d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
632
- }), "CheckBox"), Pn = oe(/* @__PURE__ */ v("path", {
632
+ }), "CheckBox"), Mn = be(/* @__PURE__ */ v("path", {
633
633
  d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"
634
634
  }), "IndeterminateCheckBox");
635
- function Rn(e) {
636
- return ge("MuiCheckbox", e);
635
+ function kn(e) {
636
+ return Ie("MuiCheckbox", e);
637
637
  }
638
- const $e = he("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]), Mn = (e) => {
638
+ const $e = ge("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]), On = (e) => {
639
639
  const {
640
640
  classes: t,
641
641
  indeterminate: n,
642
642
  color: r,
643
643
  size: l
644
644
  } = e, I = {
645
- root: ["root", n && "indeterminate", `color${me(r)}`, `size${me(l)}`]
646
- }, c = be(I, Rn, t);
645
+ root: ["root", n && "indeterminate", `color${fe(r)}`, `size${fe(l)}`]
646
+ }, c = he(I, kn, t);
647
647
  return {
648
648
  ...t,
649
649
  // forward the disabled and checked classes to the SwitchBase
650
650
  ...c
651
651
  };
652
- }, kn = U(dt, {
652
+ }, Dn = U(dt, {
653
653
  shouldForwardProp: (e) => ct(e) || e === "classes",
654
654
  name: "MuiCheckbox",
655
655
  slot: "Root",
@@ -657,7 +657,7 @@ const $e = he("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "c
657
657
  const {
658
658
  ownerState: n
659
659
  } = e;
660
- return [t.root, n.indeterminate && t.indeterminate, t[`size${me(n.size)}`], n.color !== "default" && t[`color${me(n.color)}`]];
660
+ return [t.root, n.indeterminate && t.indeterminate, t[`size${fe(n.size)}`], n.color !== "default" && t[`color${fe(n.color)}`]];
661
661
  }
662
662
  })(lt(({
663
663
  theme: e
@@ -709,16 +709,16 @@ const $e = he("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "c
709
709
  }
710
710
  }
711
711
  }]
712
- }))), On = /* @__PURE__ */ v(Sn, {}), Dn = /* @__PURE__ */ v(vn, {}), Vn = /* @__PURE__ */ v(Pn, {}), ut = /* @__PURE__ */ x.forwardRef(function(t, n) {
712
+ }))), Vn = /* @__PURE__ */ v(Rn, {}), Fn = /* @__PURE__ */ v(Pn, {}), An = /* @__PURE__ */ v(Mn, {}), ut = /* @__PURE__ */ x.forwardRef(function(t, n) {
713
713
  const r = st({
714
714
  props: t,
715
715
  name: "MuiCheckbox"
716
716
  }), {
717
- checkedIcon: l = On,
717
+ checkedIcon: l = Vn,
718
718
  color: I = "primary",
719
- icon: c = Dn,
719
+ icon: c = Fn,
720
720
  indeterminate: s = !1,
721
- indeterminateIcon: d = Vn,
721
+ indeterminateIcon: d = An,
722
722
  inputProps: f,
723
723
  size: i = "medium",
724
724
  disableRipple: a = !1,
@@ -732,9 +732,9 @@ const $e = he("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "c
732
732
  color: I,
733
733
  indeterminate: s,
734
734
  size: i
735
- }, w = Mn(y), R = b.input ?? f, [T, S] = Ne("root", {
735
+ }, w = On(y), R = b.input ?? f, [C, S] = Ne("root", {
736
736
  ref: n,
737
- elementType: kn,
737
+ elementType: Dn,
738
738
  className: Me(w.root, u),
739
739
  shouldForwardComponentProp: !0,
740
740
  externalForwardedProps: {
@@ -760,7 +760,7 @@ const $e = he("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "c
760
760
  }
761
761
  }
762
762
  });
763
- return /* @__PURE__ */ v(T, {
763
+ return /* @__PURE__ */ v(C, {
764
764
  ...S,
765
765
  classes: w
766
766
  });
@@ -879,18 +879,13 @@ process.env.NODE_ENV !== "production" && (ut.propTypes = {
879
879
  */
880
880
  value: o.any
881
881
  });
882
- const Fn = oe(/* @__PURE__ */ v("path", {
883
- d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"
884
- }), "Visibility"), An = oe(/* @__PURE__ */ v("path", {
885
- d: "M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"
886
- }), "VisibilityOff");
887
882
  function pt(e) {
888
883
  return mn;
889
884
  }
890
885
  function $n(e) {
891
- return ge("MuiSimpleTreeView", e);
886
+ return Ie("MuiSimpleTreeView", e);
892
887
  }
893
- he("MuiSimpleTreeView", ["root"]);
888
+ ge("MuiSimpleTreeView", ["root"]);
894
889
  const Ln = (e, t) => {
895
890
  const n = x.useRef({}), [r, l] = x.useState(() => {
896
891
  const c = {};
@@ -907,7 +902,7 @@ const Ln = (e, t) => {
907
902
  return [c, {
908
903
  value: d,
909
904
  setControlledValue: (f) => {
910
- s.isControlled || l((i) => C({}, i, {
905
+ s.isControlled || l((i) => T({}, i, {
911
906
  [c]: f
912
907
  }));
913
908
  }
@@ -1007,8 +1002,8 @@ const zn = () => (rt += 1, `mui-tree-view-${rt}`), ke = ({
1007
1002
  setState: n
1008
1003
  }) => {
1009
1004
  x.useEffect(() => {
1010
- n((l) => l.id.treeId === e.id && l.id.treeId !== void 0 ? l : C({}, l, {
1011
- id: C({}, l.id, {
1005
+ n((l) => l.id.treeId === e.id && l.id.treeId !== void 0 ? l : T({}, l, {
1006
+ id: T({}, l.id, {
1012
1007
  treeId: e.id ?? zn()
1013
1008
  })
1014
1009
  }));
@@ -1149,7 +1144,7 @@ const Xn = ({
1149
1144
  } = Un({
1150
1145
  plugins: r,
1151
1146
  props: n
1152
- }), i = Ln(r, l), u = x.useRef({}).current, g = qn(c), b = x.useRef(null), m = fe(b, t), p = Kn({
1147
+ }), i = Ln(r, l), u = x.useRef({}).current, g = qn(c), b = x.useRef(null), m = pe(b, t), p = Kn({
1153
1148
  plugins: r,
1154
1149
  instance: u,
1155
1150
  publicAPI: g,
@@ -1176,7 +1171,7 @@ const Xn = ({
1176
1171
  };
1177
1172
  return r.forEach(R), {
1178
1173
  getRootProps: (S = {}) => {
1179
- const M = C({
1174
+ const M = T({
1180
1175
  role: "tree"
1181
1176
  }, I, S, {
1182
1177
  ref: m
@@ -1204,7 +1199,7 @@ function Wn(e) {
1204
1199
  })
1205
1200
  });
1206
1201
  }
1207
- const ae = () => {
1202
+ const le = () => {
1208
1203
  const e = x.useContext(_e);
1209
1204
  if (e == null)
1210
1205
  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(`
@@ -1217,8 +1212,8 @@ const ae = () => {
1217
1212
  return e.forEach((n, r) => {
1218
1213
  t[n] = r;
1219
1214
  }), t;
1220
- }, le = /* @__PURE__ */ x.createContext(() => -1);
1221
- process.env.NODE_ENV !== "production" && (le.displayName = "TreeViewItemDepthContext");
1215
+ }, se = /* @__PURE__ */ x.createContext(() => -1);
1216
+ process.env.NODE_ENV !== "production" && (se.displayName = "TreeViewItemDepthContext");
1222
1217
  const Jn = ["children"], ht = ({
1223
1218
  items: e,
1224
1219
  isItemDisabled: t,
@@ -1271,8 +1266,8 @@ const Jn = ["children"], ht = ({
1271
1266
  }) => {
1272
1267
  const I = x.useCallback((h) => n.items.itemMetaMap[h], [n.items.itemMetaMap]), c = x.useCallback((h) => n.items.itemMap[h], [n.items.itemMap]), s = x.useCallback(() => {
1273
1268
  const h = (y) => {
1274
- const w = n.items.itemMap[y], R = te(w, Jn), T = n.items.itemOrderedChildrenIds[y];
1275
- return T && (R.children = T.map(h)), R;
1269
+ const w = n.items.itemMap[y], R = te(w, Jn), C = n.items.itemOrderedChildrenIds[y];
1270
+ return C && (R.children = C.map(h)), R;
1276
1271
  };
1277
1272
  return n.items.itemOrderedChildrenIds[ne].map(h);
1278
1273
  }, [n.items.itemMap, n.items.itemOrderedChildrenIds]), d = x.useCallback((h) => {
@@ -1312,7 +1307,7 @@ const Jn = ["children"], ht = ({
1312
1307
  y.itemMetaMap[w.id] || It(e, "removeItem", {
1313
1308
  id: w.id
1314
1309
  });
1315
- }), C({}, h, {
1310
+ }), T({}, h, {
1316
1311
  items: y
1317
1312
  });
1318
1313
  });
@@ -1372,14 +1367,14 @@ ye.getInitialState = (e) => ({
1372
1367
  });
1373
1368
  ye.getDefaultizedParams = ({
1374
1369
  params: e
1375
- }) => C({}, e, {
1370
+ }) => T({}, e, {
1376
1371
  disabledItemsFocusable: e.disabledItemsFocusable ?? !1,
1377
1372
  itemChildrenIndentation: e.itemChildrenIndentation ?? "12px"
1378
1373
  });
1379
1374
  ye.wrapRoot = ({
1380
1375
  children: e,
1381
1376
  instance: t
1382
- }) => /* @__PURE__ */ v(le.Provider, {
1377
+ }) => /* @__PURE__ */ v(se.Provider, {
1383
1378
  value: (n) => {
1384
1379
  var r;
1385
1380
  return ((r = t.getItemMeta(n)) == null ? void 0 : r.depth) ?? 0;
@@ -1451,7 +1446,7 @@ Oe.models = {
1451
1446
  const Gn = [];
1452
1447
  Oe.getDefaultizedParams = ({
1453
1448
  params: e
1454
- }) => C({}, e, {
1449
+ }) => T({}, e, {
1455
1450
  defaultExpandedItems: e.defaultExpandedItems ?? Gn
1456
1451
  });
1457
1452
  Oe.params = {
@@ -1480,7 +1475,7 @@ const bt = (e, t) => {
1480
1475
  for (; e.isItemExpanded(c) && s != null; )
1481
1476
  c = s, s = e.getItemOrderedChildrenIds(c).find(e.isItemNavigable);
1482
1477
  return c;
1483
- }, Te = (e, t) => {
1478
+ }, Ce = (e, t) => {
1484
1479
  if (e.isItemExpanded(t)) {
1485
1480
  const r = e.getItemOrderedChildrenIds(t).find(e.isItemNavigable);
1486
1481
  if (r != null)
@@ -1508,7 +1503,7 @@ const bt = (e, t) => {
1508
1503
  t = r;
1509
1504
  }
1510
1505
  return t;
1511
- }, Ie = (e) => e.getItemOrderedChildrenIds(null).find(e.isItemNavigable), wt = (e, t, n) => {
1506
+ }, me = (e) => e.getItemOrderedChildrenIds(null).find(e.isItemNavigable), wt = (e, t, n) => {
1512
1507
  if (t === n)
1513
1508
  return [t, n];
1514
1509
  const r = e.getItemMeta(t), l = e.getItemMeta(n);
@@ -1538,10 +1533,10 @@ const bt = (e, t) => {
1538
1533
  s = r(s), e.isItemDisabled(s) || c.push(s);
1539
1534
  return c;
1540
1535
  }, Yn = (e) => {
1541
- let t = Ie(e);
1536
+ let t = me(e);
1542
1537
  const n = [];
1543
1538
  for (; t != null; )
1544
- n.push(t), t = Te(e, t);
1539
+ n.push(t), t = Ce(e, t);
1545
1540
  return n;
1546
1541
  }, je = (e, t) => t !== e.closest('*[role="treeitem"]'), Ee = (e) => Array.isArray(e) ? e : e != null ? [e] : [], Le = (e) => {
1547
1542
  const t = {};
@@ -1579,8 +1574,8 @@ const bt = (e, t) => {
1579
1574
  return;
1580
1575
  let w;
1581
1576
  if (h) {
1582
- const R = Ee(n.selectedItems.value), T = e.isItemSelected(p);
1583
- T && (y === !1 || y == null) ? w = R.filter((S) => S !== p) : !T && (y === !0 || y == null) ? w = [p].concat(R) : w = R;
1577
+ const R = Ee(n.selectedItems.value), C = e.isItemSelected(p);
1578
+ C && (y === !1 || y == null) ? w = R.filter((S) => S !== p) : !C && (y === !0 || y == null) ? w = [p].concat(R) : w = R;
1584
1579
  } else
1585
1580
  y === !1 || y == null && e.isItemSelected(p) ? w = t.multiSelect ? [] : null : w = t.multiSelect ? [p] : p;
1586
1581
  c(m, w), r.current = p, l.current = {};
@@ -1589,8 +1584,8 @@ const bt = (e, t) => {
1589
1584
  return;
1590
1585
  let y = Ee(n.selectedItems.value).slice();
1591
1586
  Object.keys(l.current).length > 0 && (y = y.filter((S) => !l.current[S]));
1592
- const w = Le(y), R = Hn(e, p, h), T = R.filter((S) => !w[S]);
1593
- y = y.concat(T), c(m, y), l.current = Le(R);
1587
+ const w = Le(y), R = Hn(e, p, h), C = R.filter((S) => !w[S]);
1588
+ y = y.concat(C), c(m, y), l.current = Le(R);
1594
1589
  };
1595
1590
  return {
1596
1591
  getRootProps: () => ({
@@ -1615,7 +1610,7 @@ const bt = (e, t) => {
1615
1610
  }
1616
1611
  },
1617
1612
  selectRangeFromStartToItem: (m, p) => {
1618
- f(m, [Ie(e), p]);
1613
+ f(m, [me(e), p]);
1619
1614
  },
1620
1615
  selectRangeFromItemToEnd: (m, p) => {
1621
1616
  f(m, [p, xt(e)]);
@@ -1647,7 +1642,7 @@ De.models = {
1647
1642
  const Qn = [];
1648
1643
  De.getDefaultizedParams = ({
1649
1644
  params: e
1650
- }) => C({}, e, {
1645
+ }) => T({}, e, {
1651
1646
  disableSelection: e.disableSelection ?? !1,
1652
1647
  multiSelect: e.multiSelect ?? !1,
1653
1648
  checkboxSelection: e.checkboxSelection ?? !1,
@@ -1745,9 +1740,9 @@ function no(e) {
1745
1740
  }
1746
1741
  const oo = {
1747
1742
  registry: null
1748
- }, ro = no(oo), Ct = (e = document) => {
1743
+ }, ro = no(oo), Tt = (e = document) => {
1749
1744
  const t = e.activeElement;
1750
- return t ? t.shadowRoot ? Ct(t.shadowRoot) : t : null;
1745
+ return t ? t.shadowRoot ? Tt(t.shadowRoot) : t : null;
1751
1746
  };
1752
1747
  function io(e) {
1753
1748
  return e.replace(/["\\]/g, "\\$&");
@@ -1759,7 +1754,7 @@ const so = (e, t) => {
1759
1754
  const l = e.getItemMeta(r);
1760
1755
  return l && (l.parentId == null || e.isItemExpanded(l.parentId));
1761
1756
  });
1762
- return n == null && (n = Ie(e)), n;
1757
+ return n == null && (n = me(e)), n;
1763
1758
  }, Ue = ({
1764
1759
  instance: e,
1765
1760
  params: t,
@@ -1770,10 +1765,10 @@ const so = (e, t) => {
1770
1765
  }) => {
1771
1766
  const c = so(e, l.selectedItems.value), s = Q((p) => {
1772
1767
  const h = typeof p == "function" ? p(n.focusedItemId) : p;
1773
- n.focusedItemId !== h && r((y) => C({}, y, {
1768
+ n.focusedItemId !== h && r((y) => T({}, y, {
1774
1769
  focusedItemId: h
1775
1770
  }));
1776
- }), d = x.useCallback(() => !!I.current && I.current.contains(Ct(rn(I.current))), [I]), f = x.useCallback((p) => n.focusedItemId === p && d(), [n.focusedItemId, d]), i = (p) => {
1771
+ }), d = x.useCallback(() => !!I.current && I.current.contains(Tt(rn(I.current))), [I]), f = x.useCallback((p) => n.focusedItemId === p && d(), [n.focusedItemId, d]), i = (p) => {
1777
1772
  const h = e.getItemMeta(p);
1778
1773
  return h && (h.parentId == null || e.isItemExpanded(h.parentId));
1779
1774
  }, a = (p, h) => {
@@ -1825,7 +1820,7 @@ const ve = (e, t) => e.getAvailablePlugins().has(t), lo = ({
1825
1820
  }) => {
1826
1821
  const {
1827
1822
  instance: t
1828
- } = ae(), {
1823
+ } = le(), {
1829
1824
  label: n,
1830
1825
  itemId: r
1831
1826
  } = e, [l, I] = x.useState(n), c = t.isItemBeingEdited(r);
@@ -1866,7 +1861,7 @@ const ve = (e, t) => e.getAvailablePlugins().has(t), lo = ({
1866
1861
  params: r
1867
1862
  }) => {
1868
1863
  const l = x.useRef(t.editedItemId), I = (a) => l.current === a, c = (a) => {
1869
- n((u) => C({}, u, {
1864
+ n((u) => T({}, u, {
1870
1865
  editedItemId: a
1871
1866
  })), l.current = a;
1872
1867
  }, s = (a) => a === t.editedItemId, d = !!r.isItemEditable, f = (a) => {
@@ -1880,10 +1875,10 @@ const ve = (e, t) => e.getAvailablePlugins().has(t), lo = ({
1880
1875
  `));
1881
1876
  n((g) => {
1882
1877
  const b = g.items.itemMetaMap[a];
1883
- return b.label !== u ? C({}, g, {
1884
- items: C({}, g.items, {
1885
- itemMetaMap: C({}, g.items.itemMetaMap, {
1886
- [a]: C({}, b, {
1878
+ return b.label !== u ? T({}, g, {
1879
+ items: T({}, g.items, {
1880
+ itemMetaMap: T({}, g.items.itemMetaMap, {
1881
+ [a]: T({}, b, {
1887
1882
  label: u
1888
1883
  })
1889
1884
  })
@@ -1911,7 +1906,7 @@ Z.getDefaultizedParams = ({
1911
1906
  experimentalFeatures: t
1912
1907
  }) => {
1913
1908
  const n = t == null ? void 0 : t.labelEditing;
1914
- return process.env.NODE_ENV !== "production" && e.isItemEditable && !n && Se(["MUI X: The label editing feature requires the `labelEditing` experimental feature to be enabled.", "You can do it by passing `experimentalFeatures={{ labelEditing: true}}` to the Rich Tree View Pro component.", "Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/editing/"]), C({}, e, {
1909
+ return process.env.NODE_ENV !== "production" && e.isItemEditable && !n && Se(["MUI X: The label editing feature requires the `labelEditing` experimental feature to be enabled.", "You can do it by passing `experimentalFeatures={{ labelEditing: true}}` to the Rich Tree View Pro component.", "Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/editing/"]), T({}, e, {
1915
1910
  isItemEditable: n ? e.isItemEditable ?? !1 : !1
1916
1911
  });
1917
1912
  };
@@ -1925,7 +1920,7 @@ Z.params = {
1925
1920
  function ao(e) {
1926
1921
  return !!e && e.length === 1 && !!e.match(/\S/);
1927
1922
  }
1928
- const Tt = ({
1923
+ const Ct = ({
1929
1924
  instance: e,
1930
1925
  params: t,
1931
1926
  state: n
@@ -1943,8 +1938,8 @@ const Tt = ({
1943
1938
  }, [n.items.itemMetaMap, t.getItemId, e]);
1944
1939
  const c = (i, a) => {
1945
1940
  const u = a.toLowerCase(), g = (h) => {
1946
- const y = Te(e, h);
1947
- return y === null ? Ie(e) : y;
1941
+ const y = Ce(e, h);
1942
+ return y === null ? me(e) : y;
1948
1943
  };
1949
1944
  let b = null, m = g(i);
1950
1945
  const p = {};
@@ -1985,7 +1980,7 @@ const Tt = ({
1985
1980
  }
1986
1981
  // Focus the next focusable item
1987
1982
  case g === "ArrowDown": {
1988
- const b = Te(e, a);
1983
+ const b = Ce(e, a);
1989
1984
  b && (i.preventDefault(), e.focusItem(i, b), t.multiSelect && i.shiftKey && s(b) && e.selectItemFromArrowNavigation(i, a, b));
1990
1985
  break;
1991
1986
  }
@@ -2001,7 +1996,7 @@ const Tt = ({
2001
1996
  if (u)
2002
1997
  return;
2003
1998
  if (e.isItemExpanded(a)) {
2004
- const b = Te(e, a);
1999
+ const b = Ce(e, a);
2005
2000
  b && (e.focusItem(i, b), i.preventDefault());
2006
2001
  } else d(a) && (e.toggleItemExpansion(i, a), i.preventDefault());
2007
2002
  break;
@@ -2021,7 +2016,7 @@ const Tt = ({
2021
2016
  }
2022
2017
  // Focuses the first item in the tree
2023
2018
  case g === "Home": {
2024
- s(a) && t.multiSelect && u && i.shiftKey ? e.selectRangeFromStartToItem(i, a) : e.focusItem(i, Ie(e)), i.preventDefault();
2019
+ s(a) && t.multiSelect && u && i.shiftKey ? e.selectRangeFromStartToItem(i, a) : e.focusItem(i, me(e)), i.preventDefault();
2025
2020
  break;
2026
2021
  }
2027
2022
  // Focuses the last item in the tree
@@ -2052,7 +2047,7 @@ const Tt = ({
2052
2047
  }
2053
2048
  };
2054
2049
  };
2055
- Tt.params = {};
2050
+ Ct.params = {};
2056
2051
  const Et = ({
2057
2052
  slots: e,
2058
2053
  slotProps: t
@@ -2083,7 +2078,7 @@ function qe(e) {
2083
2078
  instance: r,
2084
2079
  treeId: l,
2085
2080
  rootRef: I
2086
- } = ae(), c = x.useRef(/* @__PURE__ */ new Map());
2081
+ } = le(), c = x.useRef(/* @__PURE__ */ new Map());
2087
2082
  x.useEffect(() => {
2088
2083
  if (!I.current)
2089
2084
  return;
@@ -2126,13 +2121,13 @@ const xe = ({
2126
2121
  if (c.items.itemMetaMap[I.id] != null)
2127
2122
  throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.", "Alternatively, you can use the `getItemId` prop to specify a custom id for each item.", `Two items were provided with the same id in the \`items\` prop: "${I.id}"`].join(`
2128
2123
  `));
2129
- return C({}, c, {
2130
- items: C({}, c.items, {
2131
- itemMetaMap: C({}, c.items.itemMetaMap, {
2124
+ return T({}, c, {
2125
+ items: T({}, c.items, {
2126
+ itemMetaMap: T({}, c.items.itemMetaMap, {
2132
2127
  [I.id]: I
2133
2128
  }),
2134
2129
  // For Simple Tree View, we don't have a proper `item` object, so we create a very basic one.
2135
- itemMap: C({}, c.items.itemMap, {
2130
+ itemMap: T({}, c.items.itemMap, {
2136
2131
  [I.id]: {
2137
2132
  id: I.id,
2138
2133
  label: I.label
@@ -2142,9 +2137,9 @@ const xe = ({
2142
2137
  });
2143
2138
  }), () => {
2144
2139
  t((c) => {
2145
- const s = C({}, c.items.itemMetaMap), d = C({}, c.items.itemMap);
2146
- return delete s[I.id], delete d[I.id], C({}, c, {
2147
- items: C({}, c.items, {
2140
+ const s = T({}, c.items.itemMetaMap), d = T({}, c.items.itemMap);
2141
+ return delete s[I.id], delete d[I.id], T({}, c, {
2142
+ items: T({}, c.items, {
2148
2143
  itemMetaMap: s,
2149
2144
  itemMap: d
2150
2145
  })
@@ -2154,19 +2149,19 @@ const xe = ({
2154
2149
  });
2155
2150
  })), r = (I, c) => {
2156
2151
  const s = I ?? ne;
2157
- t((d) => C({}, d, {
2158
- items: C({}, d.items, {
2159
- itemOrderedChildrenIds: C({}, d.items.itemOrderedChildrenIds, {
2152
+ t((d) => T({}, d, {
2153
+ items: T({}, d.items, {
2154
+ itemOrderedChildrenIds: T({}, d.items.itemOrderedChildrenIds, {
2160
2155
  [s]: c
2161
2156
  }),
2162
- itemChildrenIndexes: C({}, d.items.itemChildrenIndexes, {
2157
+ itemChildrenIndexes: T({}, d.items.itemChildrenIndexes, {
2163
2158
  [s]: gt(c)
2164
2159
  })
2165
2160
  })
2166
2161
  }));
2167
2162
  }, l = Q((I, c) => (e.updateFirstCharMap((s) => (s[I] = c, s)), () => {
2168
2163
  e.updateFirstCharMap((s) => {
2169
- const d = C({}, s);
2164
+ const d = T({}, s);
2170
2165
  return delete d[I], d;
2171
2166
  });
2172
2167
  }));
@@ -2185,7 +2180,7 @@ const xe = ({
2185
2180
  const {
2186
2181
  instance: r,
2187
2182
  treeId: l
2188
- } = ae(), {
2183
+ } = le(), {
2189
2184
  children: I,
2190
2185
  disabled: c = !1,
2191
2186
  label: s,
@@ -2199,7 +2194,7 @@ const xe = ({
2199
2194
  registerChild: a,
2200
2195
  unregisterChild: u,
2201
2196
  parentId: g
2202
- } = i, b = vt(I), m = x.useRef(null), p = fe(m, n);
2197
+ } = i, b = vt(I), m = x.useRef(null), p = pe(m, n);
2203
2198
  return ln(() => {
2204
2199
  const h = ke({
2205
2200
  itemId: d,
@@ -2229,10 +2224,10 @@ xe.wrapItem = ({
2229
2224
  children: e,
2230
2225
  itemId: t
2231
2226
  }) => {
2232
- const n = x.useContext(le);
2227
+ const n = x.useContext(se);
2233
2228
  return /* @__PURE__ */ v(qe, {
2234
2229
  itemId: t,
2235
- children: /* @__PURE__ */ v(le.Provider, {
2230
+ children: /* @__PURE__ */ v(se.Provider, {
2236
2231
  value: n + 1,
2237
2232
  children: e
2238
2233
  })
@@ -2241,17 +2236,17 @@ xe.wrapItem = ({
2241
2236
  xe.wrapRoot = ({
2242
2237
  children: e
2243
2238
  }) => /* @__PURE__ */ v(qe, {
2244
- children: /* @__PURE__ */ v(le.Provider, {
2239
+ children: /* @__PURE__ */ v(se.Provider, {
2245
2240
  value: 0,
2246
2241
  children: e
2247
2242
  })
2248
2243
  });
2249
2244
  xe.params = {};
2250
- const uo = [ye, Oe, De, Ue, Tt, Et, xe], po = pt(), fo = (e) => {
2245
+ const uo = [ye, Oe, De, Ue, Ct, Et, xe], po = pt(), fo = (e) => {
2251
2246
  const {
2252
2247
  classes: t
2253
2248
  } = e;
2254
- return be({
2249
+ return he({
2255
2250
  root: ["root"]
2256
2251
  }, $n, t);
2257
2252
  }, mo = U("ul", {
@@ -2276,13 +2271,13 @@ const uo = [ye, Oe, De, Ue, Tt, Et, xe], po = pt(), fo = (e) => {
2276
2271
  } = Xn({
2277
2272
  plugins: uo,
2278
2273
  rootRef: n,
2279
- props: C({}, r, {
2274
+ props: T({}, r, {
2280
2275
  items: Io
2281
2276
  })
2282
2277
  }), {
2283
2278
  slots: s,
2284
2279
  slotProps: d
2285
- } = r, f = fo(r), i = (s == null ? void 0 : s.root) ?? mo, a = pe({
2280
+ } = r, f = fo(r), i = (s == null ? void 0 : s.root) ?? mo, a = ue({
2286
2281
  elementType: i,
2287
2282
  externalSlotProps: d == null ? void 0 : d.root,
2288
2283
  className: f.root,
@@ -2291,7 +2286,7 @@ const uo = [ye, Oe, De, Ue, Tt, Et, xe], po = pt(), fo = (e) => {
2291
2286
  });
2292
2287
  return /* @__PURE__ */ v(Wn, {
2293
2288
  value: c,
2294
- children: /* @__PURE__ */ v(i, C({}, a))
2289
+ children: /* @__PURE__ */ v(i, T({}, a))
2295
2290
  });
2296
2291
  });
2297
2292
  process.env.NODE_ENV !== "production" && (St.propTypes = {
@@ -2454,34 +2449,34 @@ function Pt(e) {
2454
2449
  expansion: {
2455
2450
  expansionTrigger: c
2456
2451
  }
2457
- } = ae(), s = t.isItemExpandable(e), d = t.isItemExpanded(e), f = t.isItemFocused(e), i = t.isItemSelected(e), a = t.isItemDisabled(e), u = t != null && t.isItemBeingEdited ? t == null ? void 0 : t.isItemBeingEdited(e) : !1, g = t.isItemEditable ? t.isItemEditable(e) : !1, b = (T) => {
2452
+ } = le(), s = t.isItemExpandable(e), d = t.isItemExpanded(e), f = t.isItemFocused(e), i = t.isItemSelected(e), a = t.isItemDisabled(e), u = t != null && t.isItemBeingEdited ? t == null ? void 0 : t.isItemBeingEdited(e) : !1, g = t.isItemEditable ? t.isItemEditable(e) : !1, b = (C) => {
2458
2453
  if (!a) {
2459
- f || t.focusItem(T, e);
2460
- const S = r && (T.shiftKey || T.ctrlKey || T.metaKey);
2461
- s && !(S && t.isItemExpanded(e)) && t.toggleItemExpansion(T, e);
2454
+ f || t.focusItem(C, e);
2455
+ const S = r && (C.shiftKey || C.ctrlKey || C.metaKey);
2456
+ s && !(S && t.isItemExpanded(e)) && t.toggleItemExpansion(C, e);
2462
2457
  }
2463
- }, m = (T) => {
2464
- a || (!f && !u && t.focusItem(T, e), r && (T.shiftKey || T.ctrlKey || T.metaKey) ? T.shiftKey ? t.expandSelectionRange(T, e) : t.selectItem({
2465
- event: T,
2458
+ }, m = (C) => {
2459
+ a || (!f && !u && t.focusItem(C, e), r && (C.shiftKey || C.ctrlKey || C.metaKey) ? C.shiftKey ? t.expandSelectionRange(C, e) : t.selectItem({
2460
+ event: C,
2466
2461
  itemId: e,
2467
2462
  keepExistingSelection: !0
2468
2463
  }) : t.selectItem({
2469
- event: T,
2464
+ event: C,
2470
2465
  itemId: e,
2471
2466
  shouldBeSelected: !0
2472
2467
  }));
2473
- }, p = (T) => {
2468
+ }, p = (C) => {
2474
2469
  if (I || a)
2475
2470
  return;
2476
- const S = T.nativeEvent.shiftKey;
2477
- r && S ? t.expandSelectionRange(T, e) : t.selectItem({
2478
- event: T,
2471
+ const S = C.nativeEvent.shiftKey;
2472
+ r && S ? t.expandSelectionRange(C, e) : t.selectItem({
2473
+ event: C,
2479
2474
  itemId: e,
2480
2475
  keepExistingSelection: r,
2481
- shouldBeSelected: T.target.checked
2476
+ shouldBeSelected: C.target.checked
2482
2477
  });
2483
- }, h = (T) => {
2484
- (T.shiftKey || T.ctrlKey || T.metaKey || a) && T.preventDefault();
2478
+ }, h = (C) => {
2479
+ (C.shiftKey || C.ctrlKey || C.metaKey || a) && C.preventDefault();
2485
2480
  }, y = () => {
2486
2481
  ve(t, Z) && t.isItemEditable(e) && (t.isItemBeingEdited(e) ? t.setEditedItemId(null) : t.setEditedItemId(e));
2487
2482
  };
@@ -2501,11 +2496,11 @@ function Pt(e) {
2501
2496
  preventSelection: h,
2502
2497
  expansionTrigger: c,
2503
2498
  toggleItemEditing: y,
2504
- handleSaveItemLabel: (T, S) => {
2505
- ve(t, Z) && t.isItemBeingEditedRef(e) && (t.updateItemLabel(e, S), y(), t.focusItem(T, e));
2499
+ handleSaveItemLabel: (C, S) => {
2500
+ ve(t, Z) && t.isItemBeingEditedRef(e) && (t.updateItemLabel(e, S), y(), t.focusItem(C, e));
2506
2501
  },
2507
- handleCancelItemLabelEditing: (T) => {
2508
- ve(t, Z) && t.isItemBeingEditedRef(e) && (y(), t.focusItem(T, e));
2502
+ handleCancelItemLabelEditing: (C) => {
2503
+ ve(t, Z) && t.isItemBeingEditedRef(e) && (y(), t.focusItem(C, e));
2509
2504
  }
2510
2505
  };
2511
2506
  }
@@ -2560,7 +2555,7 @@ const go = U("div", {
2560
2555
  }]
2561
2556
  }));
2562
2557
  function Rt(e) {
2563
- return e.action == null ? null : /* @__PURE__ */ v(go, C({}, e));
2558
+ return e.action == null ? null : /* @__PURE__ */ v(go, T({}, e));
2564
2559
  }
2565
2560
  process.env.NODE_ENV !== "production" && (Rt.propTypes = {
2566
2561
  // ----------------------------- Warning --------------------------------
@@ -2576,7 +2571,7 @@ const ho = U("input", {
2576
2571
  overridesResolver: (e, t) => t.labelInput
2577
2572
  })(({
2578
2573
  theme: e
2579
- }) => C({}, e.typography.body1, {
2574
+ }) => T({}, e.typography.body1, {
2580
2575
  width: "100%",
2581
2576
  backgroundColor: e.palette.background.paper,
2582
2577
  borderRadius: e.shape.borderRadius,
@@ -2606,7 +2601,7 @@ const ho = U("input", {
2606
2601
  focused: y,
2607
2602
  editing: w,
2608
2603
  editable: R,
2609
- disableSelection: T,
2604
+ disableSelection: C,
2610
2605
  checkboxSelection: S,
2611
2606
  handleExpansion: M,
2612
2607
  handleSelection: z,
@@ -2625,7 +2620,7 @@ const ho = U("input", {
2625
2620
  };
2626
2621
  return (
2627
2622
  /* eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions -- Key event is handled by the TreeView */
2628
- /* @__PURE__ */ Re("div", C({}, b, {
2623
+ /* @__PURE__ */ Re("div", T({}, b, {
2629
2624
  className: Me(r.root, l, p && r.expanded, h && r.selected, y && r.focused, m && r.disabled, w && r.editing, R && r.editable),
2630
2625
  onClick: _,
2631
2626
  onMouseDown: q,
@@ -2637,18 +2632,18 @@ const ho = U("input", {
2637
2632
  className: r.checkbox,
2638
2633
  checked: h,
2639
2634
  onChange: W,
2640
- disabled: m || T,
2635
+ disabled: m || C,
2641
2636
  ref: K,
2642
2637
  tabIndex: -1
2643
- }), w ? /* @__PURE__ */ v(ho, C({}, g, {
2638
+ }), w ? /* @__PURE__ */ v(ho, T({}, g, {
2644
2639
  className: r.labelInput
2645
- })) : /* @__PURE__ */ v("div", C({
2640
+ })) : /* @__PURE__ */ v("div", T({
2646
2641
  className: r.label
2647
2642
  }, R && {
2648
2643
  onDoubleClick: X
2649
2644
  }, {
2650
2645
  children: d
2651
- })), u && /* @__PURE__ */ v(Rt, C({}, u))]
2646
+ })), u && /* @__PURE__ */ v(Rt, T({}, u))]
2652
2647
  }))
2653
2648
  );
2654
2649
  });
@@ -2697,11 +2692,11 @@ process.env.NODE_ENV !== "production" && (Xe.propTypes = {
2697
2692
  })
2698
2693
  });
2699
2694
  function yo(e) {
2700
- return ge("MuiTreeItem", e);
2695
+ return Ie("MuiTreeItem", e);
2701
2696
  }
2702
- const H = he("MuiTreeItem", ["root", "groupTransition", "content", "expanded", "selected", "focused", "disabled", "iconContainer", "label", "checkbox", "labelInput", "editable", "editing", "dragAndDropOverlay"]), xo = oe(/* @__PURE__ */ v("path", {
2697
+ const H = ge("MuiTreeItem", ["root", "groupTransition", "content", "expanded", "selected", "focused", "disabled", "iconContainer", "label", "checkbox", "labelInput", "editable", "editing", "dragAndDropOverlay"]), xo = be(/* @__PURE__ */ v("path", {
2703
2698
  d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
2704
- }), "TreeViewExpandIcon"), wo = oe(/* @__PURE__ */ v("path", {
2699
+ }), "TreeViewExpandIcon"), wo = be(/* @__PURE__ */ v("path", {
2705
2700
  d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
2706
2701
  }), "TreeViewCollapseIcon");
2707
2702
  function Mt(e) {
@@ -2711,7 +2706,7 @@ function Mt(e) {
2711
2706
  } = e, {
2712
2707
  wrapItem: r,
2713
2708
  instance: l
2714
- } = ae();
2709
+ } = le();
2715
2710
  return r({
2716
2711
  children: t,
2717
2712
  itemId: n,
@@ -2726,11 +2721,11 @@ Mt.propTypes = {
2726
2721
  children: o.node,
2727
2722
  itemId: o.string.isRequired
2728
2723
  };
2729
- const Co = ["children", "className", "slots", "slotProps", "ContentComponent", "ContentProps", "itemId", "id", "label", "onClick", "onMouseDown", "onFocus", "onBlur", "onKeyDown"], To = ["ownerState"], Eo = ["ownerState"], vo = ["ownerState"], So = pt(), Po = (e) => {
2724
+ const To = ["children", "className", "slots", "slotProps", "ContentComponent", "ContentProps", "itemId", "id", "label", "onClick", "onMouseDown", "onFocus", "onBlur", "onKeyDown"], Co = ["ownerState"], Eo = ["ownerState"], vo = ["ownerState"], So = pt(), Po = (e) => {
2730
2725
  const {
2731
2726
  classes: t
2732
2727
  } = e;
2733
- return be({
2728
+ return he({
2734
2729
  root: ["root"],
2735
2730
  content: ["content"],
2736
2731
  expanded: ["expanded"],
@@ -2813,7 +2808,7 @@ const Co = ["children", "className", "slots", "slotProps", "ContentComponent", "
2813
2808
  fontSize: 18
2814
2809
  }
2815
2810
  },
2816
- [`& .${H.label}`]: C({
2811
+ [`& .${H.label}`]: T({
2817
2812
  width: "100%",
2818
2813
  boxSizing: "border-box",
2819
2814
  // prevent width + padding to overflow
@@ -2866,7 +2861,7 @@ const Co = ["children", "className", "slots", "slotProps", "ContentComponent", "
2866
2861
  },
2867
2862
  treeId: f,
2868
2863
  instance: i
2869
- } = ae(), a = x.useContext(le), u = So({
2864
+ } = le(), a = x.useContext(se), u = So({
2870
2865
  props: t,
2871
2866
  name: "MuiTreeItem"
2872
2867
  }), {
@@ -2878,12 +2873,12 @@ const Co = ["children", "className", "slots", "slotProps", "ContentComponent", "
2878
2873
  ContentProps: y,
2879
2874
  itemId: w,
2880
2875
  id: R,
2881
- label: T,
2876
+ label: C,
2882
2877
  onClick: S,
2883
2878
  onMouseDown: M,
2884
2879
  onBlur: z,
2885
2880
  onKeyDown: W
2886
- } = u, D = te(u, Co), {
2881
+ } = u, D = te(u, To), {
2887
2882
  expanded: j,
2888
2883
  focused: V,
2889
2884
  selected: B,
@@ -2898,23 +2893,23 @@ const Co = ["children", "className", "slots", "slotProps", "ContentComponent", "
2898
2893
  contentRef: A,
2899
2894
  rootRef: J,
2900
2895
  propsEnhancers: $
2901
- } = l(u), Y = x.useRef(null), re = x.useRef(null), ce = fe(n, J, Y), k = fe(y == null ? void 0 : y.ref, A, re), E = {
2896
+ } = l(u), Y = x.useRef(null), oe = x.useRef(null), ae = pe(n, J, Y), k = pe(y == null ? void 0 : y.ref, A, oe), E = {
2902
2897
  expandIcon: (m == null ? void 0 : m.expandIcon) ?? r.slots.expandIcon ?? xo,
2903
2898
  collapseIcon: (m == null ? void 0 : m.collapseIcon) ?? r.slots.collapseIcon ?? wo,
2904
2899
  endIcon: (m == null ? void 0 : m.endIcon) ?? r.slots.endIcon,
2905
2900
  icon: m == null ? void 0 : m.icon,
2906
2901
  groupTransition: m == null ? void 0 : m.groupTransition
2907
- }, O = (P) => Array.isArray(P) ? P.length > 0 && P.some(O) : !!P, L = O(g), G = C({}, u, {
2902
+ }, O = (P) => Array.isArray(P) ? P.length > 0 && P.some(O) : !!P, L = O(g), G = T({}, u, {
2908
2903
  expanded: j,
2909
2904
  focused: V,
2910
2905
  selected: B,
2911
2906
  disabled: N,
2912
2907
  indentationAtItemLevel: c
2913
- }), F = Po(G), de = E.groupTransition ?? void 0, Dt = pe({
2914
- elementType: de,
2908
+ }), F = Po(G), ce = E.groupTransition ?? void 0, Dt = ue({
2909
+ elementType: ce,
2915
2910
  ownerState: {},
2916
2911
  externalSlotProps: p == null ? void 0 : p.groupTransition,
2917
- additionalProps: C({
2912
+ additionalProps: T({
2918
2913
  unmountOnExit: !0,
2919
2914
  in: j,
2920
2915
  component: "ul",
@@ -2925,59 +2920,59 @@ const Co = ["children", "className", "slots", "slotProps", "ContentComponent", "
2925
2920
  className: F.groupTransition
2926
2921
  }), Vt = (P) => {
2927
2922
  d === "iconContainer" && q(P);
2928
- }, Ve = j ? E.collapseIcon : E.expandIcon, Ft = pe({
2923
+ }, Ve = j ? E.collapseIcon : E.expandIcon, Ft = ue({
2929
2924
  elementType: Ve,
2930
2925
  ownerState: {},
2931
- externalSlotProps: (P) => j ? C({}, se(r.slotProps.collapseIcon, P), se(p == null ? void 0 : p.collapseIcon, P)) : C({}, se(r.slotProps.expandIcon, P), se(p == null ? void 0 : p.expandIcon, P)),
2926
+ externalSlotProps: (P) => j ? T({}, ie(r.slotProps.collapseIcon, P), ie(p == null ? void 0 : p.collapseIcon, P)) : T({}, ie(r.slotProps.expandIcon, P), ie(p == null ? void 0 : p.expandIcon, P)),
2932
2927
  additionalProps: {
2933
2928
  onClick: Vt
2934
2929
  }
2935
- }), At = te(Ft, To), $t = L && Ve ? /* @__PURE__ */ v(Ve, C({}, At)) : null, Fe = L ? void 0 : E.endIcon, Lt = pe({
2930
+ }), At = te(Ft, Co), $t = L && Ve ? /* @__PURE__ */ v(Ve, T({}, At)) : null, Fe = L ? void 0 : E.endIcon, Lt = ue({
2936
2931
  elementType: Fe,
2937
2932
  ownerState: {},
2938
- externalSlotProps: (P) => L ? {} : C({}, se(r.slotProps.endIcon, P), se(p == null ? void 0 : p.endIcon, P))
2939
- }), Nt = te(Lt, Eo), jt = Fe ? /* @__PURE__ */ v(Fe, C({}, Nt)) : null, Ae = E.icon, zt = pe({
2933
+ externalSlotProps: (P) => L ? {} : T({}, ie(r.slotProps.endIcon, P), ie(p == null ? void 0 : p.endIcon, P))
2934
+ }), Nt = te(Lt, Eo), jt = Fe ? /* @__PURE__ */ v(Fe, T({}, Nt)) : null, Ae = E.icon, zt = ue({
2940
2935
  elementType: Ae,
2941
2936
  ownerState: {},
2942
2937
  externalSlotProps: p == null ? void 0 : p.icon
2943
- }), Bt = te(zt, vo), _t = Ae ? /* @__PURE__ */ v(Ae, C({}, Bt)) : null;
2938
+ }), Bt = te(zt, vo), _t = Ae ? /* @__PURE__ */ v(Ae, T({}, Bt)) : null;
2944
2939
  let we;
2945
2940
  B ? we = !0 : s || N ? we = void 0 : we = !1;
2946
2941
  function Ut(P) {
2947
2942
  !V && (!N || I) && P.currentTarget === P.target && i.focusItem(P, w);
2948
2943
  }
2949
2944
  function Kt(P) {
2950
- var ie, ue, Ze, et;
2945
+ var re, de, Ze, et;
2951
2946
  z == null || z(P), !(K || // 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
2952
2947
  // 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
2953
- P.relatedTarget && je(P.relatedTarget, Y.current) && (P.target && ((ue = (ie = P.target) == null ? void 0 : ie.dataset) == null ? void 0 : ue.element) === "labelInput" && je(P.target, Y.current) || ((et = (Ze = P.relatedTarget) == null ? void 0 : Ze.dataset) == null ? void 0 : et.element) === "labelInput")) && i.removeFocusedItem();
2948
+ P.relatedTarget && je(P.relatedTarget, Y.current) && (P.target && ((de = (re = P.target) == null ? void 0 : re.dataset) == null ? void 0 : de.element) === "labelInput" && je(P.target, Y.current) || ((et = (Ze = P.relatedTarget) == null ? void 0 : Ze.dataset) == null ? void 0 : et.element) === "labelInput")) && i.removeFocusedItem();
2954
2949
  }
2955
2950
  const qt = (P) => {
2956
- var ie, ue;
2957
- W == null || W(P), ((ue = (ie = P.target) == null ? void 0 : ie.dataset) == null ? void 0 : ue.element) !== "labelInput" && i.handleItemKeyDown(P, w);
2951
+ var re, de;
2952
+ W == null || W(P), ((de = (re = P.target) == null ? void 0 : re.dataset) == null ? void 0 : de.element) !== "labelInput" && i.handleItemKeyDown(P, w);
2958
2953
  }, Xt = ke({
2959
2954
  itemId: w,
2960
2955
  treeId: f,
2961
2956
  id: R
2962
- }), Wt = i.canItemBeTabbed(w) ? 0 : -1, Ce = {
2957
+ }), Wt = i.canItemBeTabbed(w) ? 0 : -1, Te = {
2963
2958
  rootRefObject: Y,
2964
- contentRefObject: re,
2959
+ contentRefObject: oe,
2965
2960
  interactions: {
2966
2961
  handleSaveItemLabel: X,
2967
2962
  handleCancelItemLabelEditing: _
2968
2963
  }
2969
- }, Jt = ((Ge = $.root) == null ? void 0 : Ge.call($, C({}, Ce, {
2964
+ }, Jt = ((Ge = $.root) == null ? void 0 : Ge.call($, T({}, Te, {
2970
2965
  externalEventHandlers: ot(D)
2971
- }))) ?? {}, Gt = ((He = $.content) == null ? void 0 : He.call($, C({}, Ce, {
2966
+ }))) ?? {}, Gt = ((He = $.content) == null ? void 0 : He.call($, T({}, Te, {
2972
2967
  externalEventHandlers: ot(y)
2973
- }))) ?? {}, We = ((Ye = $.dragAndDropOverlay) == null ? void 0 : Ye.call($, C({}, Ce, {
2968
+ }))) ?? {}, We = ((Ye = $.dragAndDropOverlay) == null ? void 0 : Ye.call($, T({}, Te, {
2974
2969
  externalEventHandlers: {}
2975
- }))) ?? {}, Je = ((Qe = $.labelInput) == null ? void 0 : Qe.call($, C({}, Ce, {
2970
+ }))) ?? {}, Je = ((Qe = $.labelInput) == null ? void 0 : Qe.call($, T({}, Te, {
2976
2971
  externalEventHandlers: {}
2977
2972
  }))) ?? {};
2978
2973
  return /* @__PURE__ */ v(Mt, {
2979
2974
  itemId: w,
2980
- children: /* @__PURE__ */ Re(Ro, C({
2975
+ children: /* @__PURE__ */ Re(Ro, T({
2981
2976
  className: Me(F.root, b),
2982
2977
  role: "treeitem",
2983
2978
  "aria-expanded": L ? j : void 0,
@@ -2990,12 +2985,12 @@ const Co = ["children", "className", "slots", "slotProps", "ContentComponent", "
2990
2985
  onFocus: Ut,
2991
2986
  onBlur: Kt,
2992
2987
  onKeyDown: qt,
2993
- ref: ce,
2994
- style: c ? C({}, D.style, {
2988
+ ref: ae,
2989
+ style: c ? T({}, D.style, {
2995
2990
  "--TreeView-itemDepth": typeof a == "function" ? a(w) : a
2996
2991
  }) : D.style
2997
2992
  }, Jt, {
2998
- children: [/* @__PURE__ */ v(Mo, C({
2993
+ children: [/* @__PURE__ */ v(Mo, T({
2999
2994
  as: h,
3000
2995
  classes: {
3001
2996
  root: F.content,
@@ -3010,7 +3005,7 @@ const Co = ["children", "className", "slots", "slotProps", "ContentComponent", "
3010
3005
  labelInput: F.labelInput,
3011
3006
  checkbox: F.checkbox
3012
3007
  },
3013
- label: T,
3008
+ label: C,
3014
3009
  itemId: w,
3015
3010
  onClick: S,
3016
3011
  onMouseDown: M,
@@ -3024,8 +3019,8 @@ const Co = ["children", "className", "slots", "slotProps", "ContentComponent", "
3024
3019
  labelInputProps: Je
3025
3020
  }, {
3026
3021
  ref: k
3027
- })), g && /* @__PURE__ */ v(ko, C({
3028
- as: de
3022
+ })), g && /* @__PURE__ */ v(ko, T({
3023
+ as: ce
3029
3024
  }, Dt, {
3030
3025
  children: g
3031
3026
  }))]
@@ -3121,7 +3116,7 @@ const $o = ({
3121
3116
  I.stopPropagation(), l(e, !t);
3122
3117
  },
3123
3118
  "data-testid": `toggle-visibility-${e}`,
3124
- children: t ? /* @__PURE__ */ v(Fn, { "data-testid": `visibility-icon-${e}` }) : /* @__PURE__ */ v(An, { "data-testid": `visibility-off-icon-${e}` })
3119
+ children: t ? /* @__PURE__ */ v(gn, { "data-testid": `visibility-icon-${e}` }) : /* @__PURE__ */ v(hn, { "data-testid": `visibility-off-icon-${e}` })
3125
3120
  }
3126
3121
  )
3127
3122
  ] }),