biblio-react 3.0.0-alpha112 → 3.0.0-alpha113

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.
package/dist/index.js CHANGED
@@ -9656,15 +9656,14 @@ const cL = /^(\d+)(th|st|nd|rd)?/i, uL = /\d+/i, dL = {
9656
9656
  validate: Y,
9657
9657
  required: me,
9658
9658
  ...Be
9659
- } = Z, be = ie || W, Me = pe || J, st = _ || G, Ve = m !== void 0 ? m : me !== void 0 ? me : s || D === void 0 ? R : D, Ne = Array.isArray($) ? $ : [$], nt = Array.isArray(K) ? K : [K], rt = Array.isArray(Y) ? Y : [Y], je = [
9659
+ } = Z, be = ie || W, Me = pe || J, st = _ || G, Ve = m !== void 0 ? m : me !== void 0 ? me : s || D === void 0 ? R : D, Ne = Array.isArray($) ? $ : [$], nt = Array.isArray(K) ? K : [K], rt = Array.isArray(Y) ? Y : [Y], Le = [
9660
9660
  ...Ne,
9661
9661
  ...nt,
9662
9662
  ...rt,
9663
9663
  O,
9664
- k,
9665
- p ? Bf : void 0
9664
+ k
9666
9665
  ].filter((He) => He !== void 0);
9667
- return {
9666
+ return Le.length === 0 && p && Le.push(Bf), {
9668
9667
  propsContenido: {
9669
9668
  sx: {
9670
9669
  mr: { xs: 0, md: 1 },
@@ -9680,15 +9679,15 @@ const cL = /^(\d+)(th|st|nd|rd)?/i, uL = /\d+/i, dL = {
9680
9679
  onBlur: /* @__PURE__ */ a((He) => Me && Me(te, r, He), "onBlur"),
9681
9680
  onChange: /* @__PURE__ */ a((He) => st && st(te, r, He), "onChange"),
9682
9681
  helperText: !1,
9683
- validate: je,
9682
+ validate: Le,
9684
9683
  ...A,
9685
9684
  ...j,
9686
9685
  ...Be,
9687
- readOnly: f ? !0 : h !== void 0 ? h : se !== void 0 ? se : H,
9686
+ readOnly: h !== void 0 ? h : se !== void 0 ? se : f ? !0 : H,
9688
9687
  ...v ? { label: v } : {},
9689
9688
  required: Ve
9690
9689
  },
9691
- hidden: d ? !0 : g !== void 0 ? g : oe !== void 0 ? oe : ee
9690
+ hidden: g !== void 0 ? g : oe !== void 0 ? oe : d ? !0 : ee
9692
9691
  };
9693
9692
  }, "useContenidoController"), ta = "FormEtriek", Fp = {
9694
9693
  form: `${ta}-form`,
@@ -11315,7 +11314,7 @@ const ba = Oe("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
11315
11314
  size: _.size,
11316
11315
  startAdornment: D,
11317
11316
  type: j
11318
- }), je = _D(rt), He = K.root || d.Root || Vd, ht = L.root || p.root || {}, Ot = K.input || d.Input || Hd;
11317
+ }), Le = _D(rt), He = K.root || d.Root || Vd, ht = L.root || p.root || {}, Ot = K.input || d.Input || Hd;
11319
11318
  return Ne = E({}, Ne, (n = L.input) != null ? n : p.input), /* @__PURE__ */ q(x.Fragment, {
11320
11319
  children: [!g && jD, /* @__PURE__ */ q(He, E({}, ht, !ha(He) && {
11321
11320
  ownerState: E({}, rt, ht.ownerState)
@@ -11323,7 +11322,7 @@ const ba = Oe("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
11323
11322
  ref: r,
11324
11323
  onClick: st
11325
11324
  }, H, {
11326
- className: re(je.root, ht.className, u, V && "MuiInputBase-readOnly"),
11325
+ className: re(Le.root, ht.className, u, V && "MuiInputBase-readOnly"),
11327
11326
  children: [D, /* @__PURE__ */ y(jd.Provider, {
11328
11327
  value: null,
11329
11328
  children: /* @__PURE__ */ y(Ot, E({
@@ -11350,7 +11349,7 @@ const ba = Oe("MuiInputBase", ["root", "formControl", "focused", "disabled", "ad
11350
11349
  ownerState: E({}, rt, Ne.ownerState)
11351
11350
  }, {
11352
11351
  ref: Z,
11353
- className: re(je.input, Ne.className, V && "MuiInputBase-readOnly"),
11352
+ className: re(Le.input, Ne.className, V && "MuiInputBase-readOnly"),
11354
11353
  onBlur: be,
11355
11354
  onChange: Me,
11356
11355
  onFocus: Be
@@ -12341,10 +12340,10 @@ const e2 = Oe("MuiButtonBase", ["root", "disabled", "focusVisible"]), t2 = ["act
12341
12340
  L.current.pulsate(ye);
12342
12341
  })), S && S(ye), b && ye.target === ye.currentTarget && Ve() && ye.key === " " && !ye.defaultPrevented && b(ye);
12343
12342
  });
12344
- let je = u;
12345
- je === "button" && (z.href || z.to) && (je = g);
12343
+ let Le = u;
12344
+ Le === "button" && (z.href || z.to) && (Le = g);
12346
12345
  const He = {};
12347
- je === "button" ? (He.type = V === void 0 ? "button" : V, He.disabled = d) : (!z.href && !z.to && (He.role = "button"), d && (He["aria-disabled"] = d));
12346
+ Le === "button" ? (He.type = V === void 0 ? "button" : V, He.disabled = d) : (!z.href && !z.to && (He.role = "button"), d && (He["aria-disabled"] = d));
12348
12347
  const ht = Tt(r, H, B);
12349
12348
  process.env.NODE_ENV !== "production" && x.useEffect(() => {
12350
12349
  Z && !L.current && console.error(["MUI: The `component` prop provided to ButtonBase is invalid.", "Please make sure the children prop is rendered in this custom component."].join(`
@@ -12361,7 +12360,7 @@ const e2 = Oe("MuiButtonBase", ["root", "disabled", "focusVisible"]), t2 = ["act
12361
12360
  focusVisible: W
12362
12361
  }), Fe = r2(Ot);
12363
12362
  return /* @__PURE__ */ q(n2, E({
12364
- as: je,
12363
+ as: Le,
12365
12364
  className: re(Fe.root, l),
12366
12365
  ownerState: Ot,
12367
12366
  onBlur: Me,
@@ -23102,7 +23101,7 @@ const zz = x.forwardRef(/* @__PURE__ */ a(function(t, r) {
23102
23101
  ), $t = v && lt, he = t.filter((Q) => oe.length === 0 ? !0 : !oe.find(
23103
23102
  (le) => le === Q.key
23104
23103
  ) || Q.key !== "geovictoria").map((Q, le) => {
23105
- const { handler: ke, key: Le, ...ct } = Q;
23104
+ const { handler: ke, key: De, ...ct } = Q;
23106
23105
  return /* @__PURE__ */ y(
23107
23106
  gp,
23108
23107
  {
@@ -23115,7 +23114,7 @@ const zz = x.forwardRef(/* @__PURE__ */ a(function(t, r) {
23115
23114
  ...F,
23116
23115
  record: de.row
23117
23116
  },
23118
- Le
23117
+ De
23119
23118
  ) : !1, "onClick"),
23120
23119
  ...ct
23121
23120
  },
@@ -23224,7 +23223,7 @@ const zz = x.forwardRef(/* @__PURE__ */ a(function(t, r) {
23224
23223
  ] : [];
23225
23224
  }, "getActions")
23226
23225
  }
23227
- ]) : Ne, rt = mr(() => nt, []), je = I && Rn(R), He = /* @__PURE__ */ a((de) => {
23226
+ ]) : Ne, rt = mr(() => nt, []), Le = I && Rn(R), He = /* @__PURE__ */ a((de) => {
23228
23227
  L || (I || !O ? D(de) : Z.current.isRowSelected(de[0]) ? D([]) : D(de));
23229
23228
  }, "handleSelectionChange"), ht = /* @__PURE__ */ a((de) => {
23230
23229
  var he;
@@ -23253,7 +23252,7 @@ const zz = x.forwardRef(/* @__PURE__ */ a(function(t, r) {
23253
23252
  } : {} : {};
23254
23253
  return /* @__PURE__ */ q(pn, { children: [
23255
23254
  /* @__PURE__ */ y(AC, { isLoading: L }),
23256
- je && N ? /* @__PURE__ */ y(uP, { selectedIds: K, children: R }) : null,
23255
+ Le && N ? /* @__PURE__ */ y(uP, { selectedIds: K, children: R }) : null,
23257
23256
  /* @__PURE__ */ y(zw, { theme: _, children: /* @__PURE__ */ y(
23258
23257
  it,
23259
23258
  {
@@ -23757,7 +23756,7 @@ const zz = x.forwardRef(/* @__PURE__ */ a(function(t, r) {
23757
23756
  allowRemove: D,
23758
23757
  slots: j,
23759
23758
  validateAllowAdd: ee
23760
- } = P || {}, [H, W] = Ie(n), [{ field: J, sort: G }] = n, te = R || d || N, Z = $ ? !0 : A !== void 0 ? A : V !== void 0 ? V : p, oe = K ?? s, se = D ?? l;
23759
+ } = P || {}, [H, W] = Ie(n), [{ field: J, sort: G }] = n, te = R || d || N, Z = A !== void 0 ? A : $ ? !0 : V !== void 0 ? V : p, oe = K ?? s, se = D ?? l;
23761
23760
  let ie = { ...m };
23762
23761
  k && t.split(",").forEach((be) => {
23763
23762
  be && (ie[be] = [
@@ -24891,24 +24890,24 @@ const _C = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
24891
24890
  const Q = be.current;
24892
24891
  let le;
24893
24892
  if (Q) {
24894
- const Le = Q.getBoundingClientRect();
24893
+ const De = Q.getBoundingClientRect();
24895
24894
  le = {
24896
24895
  clientWidth: Q.clientWidth,
24897
24896
  scrollLeft: Q.scrollLeft,
24898
24897
  scrollTop: Q.scrollTop,
24899
24898
  scrollLeftNormalized: $w(Q, i ? "rtl" : "ltr"),
24900
24899
  scrollWidth: Q.scrollWidth,
24901
- top: Le.top,
24902
- bottom: Le.bottom,
24903
- left: Le.left,
24904
- right: Le.right
24900
+ top: De.top,
24901
+ bottom: De.bottom,
24902
+ left: De.left,
24903
+ right: De.right
24905
24904
  };
24906
24905
  }
24907
24906
  let ke;
24908
24907
  if (Q && M !== !1) {
24909
- const Le = Me.current.children;
24910
- if (Le.length > 0) {
24911
- const ct = Le[Be.get(M)];
24908
+ const De = Me.current.children;
24909
+ if (De.length > 0) {
24910
+ const ct = De[Be.get(M)];
24912
24911
  process.env.NODE_ENV !== "production" && (ct || console.error(["MUI: The `value` provided to the Tabs component is invalid.", `None of the Tabs' children match with "${M}".`, Be.keys ? `You can provide one of the following values: ${Array.from(Be.keys()).join(", ")}.` : null].join(`
24913
24912
  `))), ke = ct ? ct.getBoundingClientRect() : null, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && !N0 && ke && ke.width === 0 && ke.height === 0 && // if the whole Tabs component is hidden, don't warn
24914
24913
  le.clientWidth !== 0 && (le = null, console.error(["MUI: The `value` provided to the Tabs component is invalid.", `The Tab with this \`value\` ("${M}") is not part of the document layout.`, "Make sure the tab item is present in the document or that it's not `display: none`."].join(`
@@ -24924,22 +24923,22 @@ const _C = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
24924
24923
  tabsMeta: Q,
24925
24924
  tabMeta: le
24926
24925
  } = st();
24927
- let ke = 0, Le;
24926
+ let ke = 0, De;
24928
24927
  if (N)
24929
- Le = "top", le && Q && (ke = le.top - Q.top + Q.scrollTop);
24930
- else if (Le = i ? "right" : "left", le && Q) {
24928
+ De = "top", le && Q && (ke = le.top - Q.top + Q.scrollTop);
24929
+ else if (De = i ? "right" : "left", le && Q) {
24931
24930
  const kt = i ? Q.scrollLeftNormalized + Q.clientWidth - Q.scrollWidth : Q.scrollLeft;
24932
- ke = (i ? -1 : 1) * (le[Le] - Q[Le] + kt);
24931
+ ke = (i ? -1 : 1) * (le[De] - Q[De] + kt);
24933
24932
  }
24934
24933
  const ct = {
24935
- [Le]: ke,
24934
+ [De]: ke,
24936
24935
  // May be wrong until the font is loaded.
24937
24936
  [K]: le ? le[K] : 0
24938
24937
  };
24939
- if (isNaN(G[Le]) || isNaN(G[K]))
24938
+ if (isNaN(G[De]) || isNaN(G[K]))
24940
24939
  te(ct);
24941
24940
  else {
24942
- const kt = Math.abs(G[Le] - ct[Le]), br = Math.abs(G[K] - ct[K]);
24941
+ const kt = Math.abs(G[De] - ct[De]), br = Math.abs(G[K] - ct[K]);
24943
24942
  (kt >= 1 || br >= 1) && te(ct);
24944
24943
  }
24945
24944
  }), Ne = /* @__PURE__ */ a((Q, {
@@ -24955,16 +24954,16 @@ const _C = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
24955
24954
  const Q = be.current[L];
24956
24955
  let le = 0;
24957
24956
  const ke = Array.from(Me.current.children);
24958
- for (let Le = 0; Le < ke.length; Le += 1) {
24959
- const ct = ke[Le];
24957
+ for (let De = 0; De < ke.length; De += 1) {
24958
+ const ct = ke[De];
24960
24959
  if (le + ct[L] > Q) {
24961
- Le === 0 && (le = Q);
24960
+ De === 0 && (le = Q);
24962
24961
  break;
24963
24962
  }
24964
24963
  le += ct[L];
24965
24964
  }
24966
24965
  return le;
24967
- }, "getScrollSize"), je = /* @__PURE__ */ a(() => {
24966
+ }, "getScrollSize"), Le = /* @__PURE__ */ a(() => {
24968
24967
  nt(-1 * rt());
24969
24968
  }, "handleStartScrollClick"), He = /* @__PURE__ */ a(() => {
24970
24969
  nt(rt());
@@ -24989,7 +24988,7 @@ const _C = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
24989
24988
  },
24990
24989
  orientation: v,
24991
24990
  direction: i ? "right" : "left",
24992
- onClick: je,
24991
+ onClick: Le,
24993
24992
  disabled: !Z
24994
24993
  }, P, {
24995
24994
  className: re(j.scrollButtons, P.className)
@@ -25014,13 +25013,13 @@ const _C = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
25014
25013
  } = st();
25015
25014
  if (!(!ke || !le)) {
25016
25015
  if (ke[z] < le[z]) {
25017
- const Le = le[V] + (ke[z] - le[z]);
25018
- Ne(Le, {
25016
+ const De = le[V] + (ke[z] - le[z]);
25017
+ Ne(De, {
25019
25018
  animation: Q
25020
25019
  });
25021
25020
  } else if (ke[B] > le[B]) {
25022
- const Le = le[V] + (ke[B] - le[B]);
25023
- Ne(Le, {
25021
+ const De = le[V] + (ke[B] - le[B]);
25022
+ Ne(De, {
25024
25023
  animation: Q
25025
25024
  });
25026
25025
  }
@@ -25043,8 +25042,8 @@ const _C = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
25043
25042
  (zr = le) == null || zr.observe(jn);
25044
25043
  });
25045
25044
  }), Q(), ye();
25046
- }, "handleMutation"), Le = Wr(be.current);
25047
- Le.addEventListener("resize", Q);
25045
+ }, "handleMutation"), De = Wr(be.current);
25046
+ De.addEventListener("resize", Q);
25048
25047
  let ct;
25049
25048
  return typeof ResizeObserver < "u" && (le = new ResizeObserver(Q), Array.from(Me.current.children).forEach((kt) => {
25050
25049
  le.observe(kt);
@@ -25052,12 +25051,12 @@ const _C = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
25052
25051
  childList: !0
25053
25052
  })), () => {
25054
25053
  var kt, br;
25055
- Q.clear(), Le.removeEventListener("resize", Q), (kt = ct) == null || kt.disconnect(), (br = le) == null || br.disconnect();
25054
+ Q.clear(), De.removeEventListener("resize", Q), (kt = ct) == null || kt.disconnect(), (br = le) == null || br.disconnect();
25056
25055
  };
25057
25056
  }, [Ve, ye]), x.useEffect(() => {
25058
25057
  const Q = Array.from(Me.current.children), le = Q.length;
25059
25058
  if (typeof IntersectionObserver < "u" && le > 0 && I && k !== !1) {
25060
- const ke = Q[0], Le = Q[le - 1], ct = {
25059
+ const ke = Q[0], De = Q[le - 1], ct = {
25061
25060
  root: be.current,
25062
25061
  threshold: 0.99
25063
25062
  }, kt = /* @__PURE__ */ a((Mi) => {
@@ -25067,7 +25066,7 @@ const _C = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
25067
25066
  const jn = /* @__PURE__ */ a((Mi) => {
25068
25067
  ie(!Mi[0].isIntersecting);
25069
25068
  }, "handleScrollButtonEnd"), zr = new IntersectionObserver(jn, ct);
25070
- return zr.observe(Le), () => {
25069
+ return zr.observe(De), () => {
25071
25070
  br.disconnect(), zr.disconnect();
25072
25071
  };
25073
25072
  }
@@ -26733,7 +26732,7 @@ function s5(e) {
26733
26732
  w[C] = Be, A[C] = Be - B;
26734
26733
  }
26735
26734
  if (l) {
26736
- var be, Me = C === "x" ? Zt : er, st = C === "x" ? Ir : Nr, Ve = w[S], Ne = S === "y" ? "height" : "width", nt = Ve + v[Me], rt = Ve - v[st], je = [Zt, er].indexOf(O) !== -1, He = (be = R == null ? void 0 : R[S]) != null ? be : 0, ht = je ? nt : Ve - P[Ne] - F[Ne] - He + $.altAxis, Ot = je ? Ve + P[Ne] + F[Ne] - He - $.altAxis : rt, Fe = g && je ? AV(ht, Ve, Ot) : bs(g ? ht : nt, Ve, g ? Ot : rt);
26735
+ var be, Me = C === "x" ? Zt : er, st = C === "x" ? Ir : Nr, Ve = w[S], Ne = S === "y" ? "height" : "width", nt = Ve + v[Me], rt = Ve - v[st], Le = [Zt, er].indexOf(O) !== -1, He = (be = R == null ? void 0 : R[S]) != null ? be : 0, ht = Le ? nt : Ve - P[Ne] - F[Ne] - He + $.altAxis, Ot = Le ? Ve + P[Ne] + F[Ne] - He - $.altAxis : rt, Fe = g && Le ? AV(ht, Ve, Ot) : bs(g ? ht : nt, Ve, g ? Ot : rt);
26737
26736
  w[S] = Fe, A[S] = Fe - Ve;
26738
26737
  }
26739
26738
  t.modifiersData[n] = A;
@@ -27658,7 +27657,7 @@ const Yd = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
27658
27657
  TransitionProps: pe
27659
27658
  } = w, Y = ne(w, A5), me = /* @__PURE__ */ x.isValidElement(F) ? F : /* @__PURE__ */ y("span", {
27660
27659
  children: F
27661
- }), Be = yn(), be = El(), [Me, st] = x.useState(), [Ve, Ne] = x.useState(null), nt = x.useRef(!1), rt = N || K, je = Vi(), He = Vi(), ht = Vi(), Ot = Vi(), [Fe, ye] = Gs({
27660
+ }), Be = yn(), be = El(), [Me, st] = x.useState(), [Ve, Ne] = x.useState(null), nt = x.useRef(!1), rt = N || K, Le = Vi(), He = Vi(), ht = Vi(), Ot = Vi(), [Fe, ye] = Gs({
27662
27661
  controlled: J,
27663
27662
  default: !1,
27664
27663
  name: "Tooltip",
@@ -27667,77 +27666,77 @@ const Yd = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
27667
27666
  let de = Fe;
27668
27667
  if (process.env.NODE_ENV !== "production") {
27669
27668
  const {
27670
- current: De
27669
+ current: _e
27671
27670
  } = x.useRef(J !== void 0);
27672
27671
  x.useEffect(() => {
27673
- Me && Me.disabled && !De && ie !== "" && Me.tagName.toLowerCase() === "button" && console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.", "A disabled element does not fire events.", "Tooltip needs to listen to the child element's events to display the title.", "", "Add a simple wrapper element, such as a `span`."].join(`
27672
+ Me && Me.disabled && !_e && ie !== "" && Me.tagName.toLowerCase() === "button" && console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.", "A disabled element does not fire events.", "Tooltip needs to listen to the child element's events to display the title.", "", "Add a simple wrapper element, such as a `span`."].join(`
27674
27673
  `));
27675
- }, [ie, Me, De]);
27674
+ }, [ie, Me, _e]);
27676
27675
  }
27677
27676
  const tt = Tl(D), lt = x.useRef(), $t = cr(() => {
27678
27677
  lt.current !== void 0 && (document.body.style.WebkitUserSelect = lt.current, lt.current = void 0), Ot.clear();
27679
27678
  });
27680
27679
  x.useEffect(() => $t, [$t]);
27681
- const he = /* @__PURE__ */ a((De) => {
27682
- G0.clear(), Yl = !0, ye(!0), W && !de && W(De);
27680
+ const he = /* @__PURE__ */ a((_e) => {
27681
+ G0.clear(), Yl = !0, ye(!0), W && !de && W(_e);
27683
27682
  }, "handleOpen"), Q = cr(
27684
27683
  /**
27685
27684
  * @param {React.SyntheticEvent | Event} event
27686
27685
  */
27687
- (De) => {
27686
+ (_e) => {
27688
27687
  G0.start(800 + j, () => {
27689
27688
  Yl = !1;
27690
- }), ye(!1), H && de && H(De), je.start(Be.transitions.duration.shortest, () => {
27689
+ }), ye(!1), H && de && H(_e), Le.start(Be.transitions.duration.shortest, () => {
27691
27690
  nt.current = !1;
27692
27691
  });
27693
27692
  }
27694
- ), le = /* @__PURE__ */ a((De) => {
27695
- nt.current && De.type !== "touchstart" || (Me && Me.removeAttribute("title"), He.clear(), ht.clear(), z || Yl && B ? He.start(Yl ? B : z, () => {
27696
- he(De);
27697
- }) : he(De));
27698
- }, "handleMouseOver"), ke = /* @__PURE__ */ a((De) => {
27693
+ ), le = /* @__PURE__ */ a((_e) => {
27694
+ nt.current && _e.type !== "touchstart" || (Me && Me.removeAttribute("title"), He.clear(), ht.clear(), z || Yl && B ? He.start(Yl ? B : z, () => {
27695
+ he(_e);
27696
+ }) : he(_e));
27697
+ }, "handleMouseOver"), ke = /* @__PURE__ */ a((_e) => {
27699
27698
  He.clear(), ht.start(j, () => {
27700
- Q(De);
27699
+ Q(_e);
27701
27700
  });
27702
27701
  }, "handleMouseLeave"), {
27703
- isFocusVisibleRef: Le,
27702
+ isFocusVisibleRef: De,
27704
27703
  onBlur: ct,
27705
27704
  onFocus: kt,
27706
27705
  ref: br
27707
- } = Ad(), [, jn] = x.useState(!1), zr = /* @__PURE__ */ a((De) => {
27708
- ct(De), Le.current === !1 && (jn(!1), ke(De));
27709
- }, "handleBlur"), Mi = /* @__PURE__ */ a((De) => {
27710
- Me || st(De.currentTarget), kt(De), Le.current === !0 && (jn(!0), le(De));
27711
- }, "handleFocus"), Yy = /* @__PURE__ */ a((De) => {
27706
+ } = Ad(), [, jn] = x.useState(!1), zr = /* @__PURE__ */ a((_e) => {
27707
+ ct(_e), De.current === !1 && (jn(!1), ke(_e));
27708
+ }, "handleBlur"), Mi = /* @__PURE__ */ a((_e) => {
27709
+ Me || st(_e.currentTarget), kt(_e), De.current === !0 && (jn(!0), le(_e));
27710
+ }, "handleFocus"), Yy = /* @__PURE__ */ a((_e) => {
27712
27711
  nt.current = !0;
27713
27712
  const sr = me.props;
27714
- sr.onTouchStart && sr.onTouchStart(De);
27715
- }, "detectTouchStart"), bw = /* @__PURE__ */ a((De) => {
27716
- Yy(De), ht.clear(), je.clear(), $t(), lt.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", Ot.start(L, () => {
27717
- document.body.style.WebkitUserSelect = lt.current, le(De);
27713
+ sr.onTouchStart && sr.onTouchStart(_e);
27714
+ }, "detectTouchStart"), bw = /* @__PURE__ */ a((_e) => {
27715
+ Yy(_e), ht.clear(), Le.clear(), $t(), lt.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", Ot.start(L, () => {
27716
+ document.body.style.WebkitUserSelect = lt.current, le(_e);
27718
27717
  });
27719
- }, "handleTouchStart"), yw = /* @__PURE__ */ a((De) => {
27720
- me.props.onTouchEnd && me.props.onTouchEnd(De), $t(), ht.start(ee, () => {
27721
- Q(De);
27718
+ }, "handleTouchStart"), yw = /* @__PURE__ */ a((_e) => {
27719
+ me.props.onTouchEnd && me.props.onTouchEnd(_e), $t(), ht.start(ee, () => {
27720
+ Q(_e);
27722
27721
  });
27723
27722
  }, "handleTouchEnd");
27724
27723
  x.useEffect(() => {
27725
27724
  if (!de)
27726
27725
  return;
27727
- function De(sr) {
27726
+ function _e(sr) {
27728
27727
  (sr.key === "Escape" || sr.key === "Esc") && Q(sr);
27729
27728
  }
27730
- return a(De, "handleKeyDown"), document.addEventListener("keydown", De), () => {
27731
- document.removeEventListener("keydown", De);
27729
+ return a(_e, "handleKeyDown"), document.addEventListener("keydown", _e), () => {
27730
+ document.removeEventListener("keydown", _e);
27732
27731
  };
27733
27732
  }, [Q, de]);
27734
27733
  const vw = Tt(me.ref, br, st, r);
27735
27734
  !ie && ie !== 0 && (de = !1);
27736
- const fp = x.useRef(), Ow = /* @__PURE__ */ a((De) => {
27735
+ const fp = x.useRef(), Ow = /* @__PURE__ */ a((_e) => {
27737
27736
  const sr = me.props;
27738
- sr.onMouseMove && sr.onMouseMove(De), ts = {
27739
- x: De.clientX,
27740
- y: De.clientY
27737
+ sr.onMouseMove && sr.onMouseMove(_e), ts = {
27738
+ x: _e.clientX,
27739
+ y: _e.clientY
27741
27740
  }, fp.current && fp.current.update();
27742
27741
  }, "handleMouseMove"), Ya = {}, hp = typeof ie == "string";
27743
27742
  R ? (Ya.title = !de && hp && !I ? ie : null, Ya["aria-describedby"] = de ? tt : null) : (Ya["aria-label"] = hp ? ie : null, Ya["aria-labelledby"] = de && !hp ? tt : null);
@@ -27756,7 +27755,7 @@ const Yd = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
27756
27755
  V || (yr.onTouchStart = bw, yr.onTouchEnd = yw), I || (yr.onMouseOver = Jl(le, yr.onMouseOver), yr.onMouseLeave = Jl(ke, yr.onMouseLeave), rt || (Ja.onMouseOver = le, Ja.onMouseLeave = ke)), A || (yr.onFocus = Jl(Mi, yr.onFocus), yr.onBlur = Jl(zr, yr.onBlur), rt || (Ja.onFocus = Mi, Ja.onBlur = zr)), process.env.NODE_ENV !== "production" && me.props.title && console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.", `Remove this title prop \`${me.props.title}\` or the Tooltip component.`].join(`
27757
27756
  `));
27758
27757
  const xw = x.useMemo(() => {
27759
- var De;
27758
+ var _e;
27760
27759
  let sr = [{
27761
27760
  name: "arrow",
27762
27761
  enabled: !!Ve,
@@ -27765,7 +27764,7 @@ const Yd = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
27765
27764
  padding: 4
27766
27765
  }
27767
27766
  }];
27768
- return (De = Z.popperOptions) != null && De.modifiers && (sr = sr.concat(Z.popperOptions.modifiers)), E({}, Z.popperOptions, {
27767
+ return (_e = Z.popperOptions) != null && _e.modifiers && (sr = sr.concat(Z.popperOptions.modifiers)), E({}, Z.popperOptions, {
27769
27768
  modifiers: sr
27770
27769
  });
27771
27770
  }, [Ve, Z]), Qa = E({}, w, {
@@ -27803,10 +27802,10 @@ const Yd = /* @__PURE__ */ x.forwardRef(/* @__PURE__ */ a(function(t, r) {
27803
27802
  }, Ja, Sw, {
27804
27803
  popperOptions: xw,
27805
27804
  children: /* @__PURE__ */ a(({
27806
- TransitionProps: De
27805
+ TransitionProps: _e
27807
27806
  }) => /* @__PURE__ */ y(Qy, E({
27808
27807
  timeout: Be.transitions.duration.shorter
27809
- }, De, Cw, {
27808
+ }, _e, Cw, {
27810
27809
  children: /* @__PURE__ */ q(Xy, E({}, Tw, {
27811
27810
  children: [ie, P ? /* @__PURE__ */ y(Zy, E({}, Ew, {
27812
27811
  ref: Ne
@@ -29787,19 +29786,19 @@ const L3 = /* @__PURE__ */ a((e) => {
29787
29786
  let be = Be.top - me.vertical, Me = Be.left - me.horizontal;
29788
29787
  const st = be + Y.height, Ve = Me + Y.width, Ne = Wr(vc(u)), nt = Ne.innerHeight - v, rt = Ne.innerWidth - v;
29789
29788
  if (v !== null && be < v) {
29790
- const je = be - v;
29791
- be -= je, me.vertical += je;
29789
+ const Le = be - v;
29790
+ be -= Le, me.vertical += Le;
29792
29791
  } else if (v !== null && st > nt) {
29793
- const je = st - nt;
29794
- be -= je, me.vertical += je;
29792
+ const Le = st - nt;
29793
+ be -= Le, me.vertical += Le;
29795
29794
  }
29796
29795
  if (process.env.NODE_ENV !== "production" && Y.height > nt && Y.height && nt && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${Y.height - nt}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
29797
29796
  `)), v !== null && Me < v) {
29798
- const je = Me - v;
29799
- Me -= je, me.horizontal += je;
29797
+ const Le = Me - v;
29798
+ Me -= Le, me.horizontal += Le;
29800
29799
  } else if (Ve > rt) {
29801
- const je = Ve - rt;
29802
- Me -= je, me.horizontal += je;
29800
+ const Le = Ve - rt;
29801
+ Me -= Le, me.horizontal += Le;
29803
29802
  }
29804
29803
  return {
29805
29804
  top: `${Math.round(be)}px`,
@@ -43237,10 +43236,10 @@ function qE(e) {
43237
43236
  return typeof e == "function";
43238
43237
  }
43239
43238
  a(qE, "isFunction$3");
43240
- function _e(e, t = void 0, ...r) {
43239
+ function je(e, t = void 0, ...r) {
43241
43240
  return qE(e) ? t ? e.bind(t)(...r) : e(...r) : e;
43242
43241
  }
43243
- a(_e, "callOrReturn");
43242
+ a(je, "callOrReturn");
43244
43243
  function $U(e = {}) {
43245
43244
  return Object.keys(e).length === 0 && e.constructor === Object;
43246
43245
  }
@@ -43291,22 +43290,22 @@ function NU(e, t) {
43291
43290
  };
43292
43291
  }, {}), g = tx({
43293
43292
  ...h,
43294
- content: _e(ge(d, "content", f)),
43295
- marks: _e(ge(d, "marks", f)),
43296
- group: _e(ge(d, "group", f)),
43297
- inline: _e(ge(d, "inline", f)),
43298
- atom: _e(ge(d, "atom", f)),
43299
- selectable: _e(ge(d, "selectable", f)),
43300
- draggable: _e(ge(d, "draggable", f)),
43301
- code: _e(ge(d, "code", f)),
43302
- whitespace: _e(ge(d, "whitespace", f)),
43303
- defining: _e(ge(d, "defining", f)),
43304
- isolating: _e(ge(d, "isolating", f)),
43293
+ content: je(ge(d, "content", f)),
43294
+ marks: je(ge(d, "marks", f)),
43295
+ group: je(ge(d, "group", f)),
43296
+ inline: je(ge(d, "inline", f)),
43297
+ atom: je(ge(d, "atom", f)),
43298
+ selectable: je(ge(d, "selectable", f)),
43299
+ draggable: je(ge(d, "draggable", f)),
43300
+ code: je(ge(d, "code", f)),
43301
+ whitespace: je(ge(d, "whitespace", f)),
43302
+ defining: je(ge(d, "defining", f)),
43303
+ isolating: je(ge(d, "isolating", f)),
43305
43304
  attrs: Object.fromEntries(p.map((O) => {
43306
43305
  var k;
43307
43306
  return [O.name, { default: (k = O == null ? void 0 : O.attribute) === null || k === void 0 ? void 0 : k.default }];
43308
43307
  }))
43309
- }), m = _e(ge(d, "parseHTML", f));
43308
+ }), m = je(ge(d, "parseHTML", f));
43310
43309
  m && (g.parseDOM = m.map((O) => ex(O, p)));
43311
43310
  const b = ge(d, "renderHTML", f);
43312
43311
  b && (g.toDOM = (O) => b({
@@ -43329,16 +43328,16 @@ function NU(e, t) {
43329
43328
  };
43330
43329
  }, {}), g = tx({
43331
43330
  ...h,
43332
- inclusive: _e(ge(d, "inclusive", f)),
43333
- excludes: _e(ge(d, "excludes", f)),
43334
- group: _e(ge(d, "group", f)),
43335
- spanning: _e(ge(d, "spanning", f)),
43336
- code: _e(ge(d, "code", f)),
43331
+ inclusive: je(ge(d, "inclusive", f)),
43332
+ excludes: je(ge(d, "excludes", f)),
43333
+ group: je(ge(d, "group", f)),
43334
+ spanning: je(ge(d, "spanning", f)),
43335
+ code: je(ge(d, "code", f)),
43337
43336
  attrs: Object.fromEntries(p.map((v) => {
43338
43337
  var O;
43339
43338
  return [v.name, { default: (O = v == null ? void 0 : v.attribute) === null || O === void 0 ? void 0 : O.default }];
43340
43339
  }))
43341
- }), m = _e(ge(d, "parseHTML", f));
43340
+ }), m = je(ge(d, "parseHTML", f));
43342
43341
  m && (g.parseDOM = m.map((v) => ex(v, p)));
43343
43342
  const b = ge(d, "renderHTML", f);
43344
43343
  return b && (g.toDOM = (v) => b({
@@ -43534,9 +43533,9 @@ const Ns = class Ns {
43534
43533
  }, this.config = {
43535
43534
  ...this.config,
43536
43535
  ...t
43537
- }, this.name = this.config.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = _e(ge(this, "addOptions", {
43536
+ }, this.name = this.config.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = je(ge(this, "addOptions", {
43538
43537
  name: this.name
43539
- }))), this.storage = _e(ge(this, "addStorage", {
43538
+ }))), this.storage = je(ge(this, "addStorage", {
43540
43539
  name: this.name,
43541
43540
  options: this.options
43542
43541
  })) || {};
@@ -43553,9 +43552,9 @@ const Ns = class Ns {
43553
43552
  }
43554
43553
  extend(t = {}) {
43555
43554
  const r = new Ns(t);
43556
- return r.parent = this, this.child = r, r.name = t.name ? t.name : r.parent.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${r.name}".`), r.options = _e(ge(r, "addOptions", {
43555
+ return r.parent = this, this.child = r, r.name = t.name ? t.name : r.parent.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${r.name}".`), r.options = je(ge(r, "addOptions", {
43557
43556
  name: r.name
43558
- })), r.storage = _e(ge(r, "addStorage", {
43557
+ })), r.storage = je(ge(r, "addStorage", {
43559
43558
  name: r.name,
43560
43559
  options: r.options
43561
43560
  })), r;
@@ -43863,7 +43862,7 @@ const zo = class zo {
43863
43862
  editor: this.editor,
43864
43863
  type: sf(t.name, this.schema)
43865
43864
  };
43866
- t.type === "mark" && (!((r = _e(ge(t, "keepOnSplit", n))) !== null && r !== void 0) || r) && this.splittableMarks.push(t.name);
43865
+ t.type === "mark" && (!((r = je(ge(t, "keepOnSplit", n))) !== null && r !== void 0) || r) && this.splittableMarks.push(t.name);
43867
43866
  const o = ge(t, "onBeforeCreate", n), i = ge(t, "onCreate", n), s = ge(t, "onUpdate", n), l = ge(t, "onSelectionUpdate", n), u = ge(t, "onTransaction", n), d = ge(t, "onFocus", n), p = ge(t, "onBlur", n), f = ge(t, "onDestroy", n);
43868
43867
  o && this.editor.on("beforeCreate", o), i && this.editor.on("create", i), s && this.editor.on("update", s), l && this.editor.on("selectionUpdate", l), u && this.editor.on("transaction", u), d && this.editor.on("focus", d), p && this.editor.on("blur", p), f && this.editor.on("destroy", f);
43869
43868
  });
@@ -43879,9 +43878,9 @@ const Ls = class Ls {
43879
43878
  }, this.config = {
43880
43879
  ...this.config,
43881
43880
  ...t
43882
- }, this.name = this.config.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = _e(ge(this, "addOptions", {
43881
+ }, this.name = this.config.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = je(ge(this, "addOptions", {
43883
43882
  name: this.name
43884
- }))), this.storage = _e(ge(this, "addStorage", {
43883
+ }))), this.storage = je(ge(this, "addStorage", {
43885
43884
  name: this.name,
43886
43885
  options: this.options
43887
43886
  })) || {};
@@ -43898,9 +43897,9 @@ const Ls = class Ls {
43898
43897
  }
43899
43898
  extend(t = {}) {
43900
43899
  const r = new Ls({ ...this.config, ...t });
43901
- return r.parent = this, this.child = r, r.name = t.name ? t.name : r.parent.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${r.name}".`), r.options = _e(ge(r, "addOptions", {
43900
+ return r.parent = this, this.child = r, r.name = t.name ? t.name : r.parent.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${r.name}".`), r.options = je(ge(r, "addOptions", {
43902
43901
  name: r.name
43903
- })), r.storage = _e(ge(r, "addStorage", {
43902
+ })), r.storage = je(ge(r, "addStorage", {
43904
43903
  name: r.name,
43905
43904
  options: r.options
43906
43905
  })), r;
@@ -44544,7 +44543,7 @@ function ox(e, t) {
44544
44543
  name: n.name,
44545
44544
  options: n.options,
44546
44545
  storage: n.storage
44547
- }, i = _e(ge(n, "group", o));
44546
+ }, i = je(ge(n, "group", o));
44548
44547
  return typeof i != "string" ? !1 : i.split(" ").includes("list");
44549
44548
  }
44550
44549
  a(ox, "isList");
@@ -45621,7 +45620,7 @@ function xi(e) {
45621
45620
  return new Ra({
45622
45621
  find: e.find,
45623
45622
  handler: /* @__PURE__ */ a(({ state: t, range: r, match: n }) => {
45624
- const o = _e(e.getAttributes, void 0, n);
45623
+ const o = je(e.getAttributes, void 0, n);
45625
45624
  if (o === !1 || o === null)
45626
45625
  return null;
45627
45626
  const { tr: i } = t, s = n[n.length - 1], l = n[0];
@@ -45641,7 +45640,7 @@ function ek(e) {
45641
45640
  return new Ra({
45642
45641
  find: e.find,
45643
45642
  handler: /* @__PURE__ */ a(({ state: t, range: r, match: n }) => {
45644
- const o = _e(e.getAttributes, void 0, n) || {}, { tr: i } = t, s = r.from;
45643
+ const o = je(e.getAttributes, void 0, n) || {}, { tr: i } = t, s = r.from;
45645
45644
  let l = r.to;
45646
45645
  const u = e.type.create(o);
45647
45646
  if (n[1]) {
@@ -45663,7 +45662,7 @@ function Dh(e) {
45663
45662
  return new Ra({
45664
45663
  find: e.find,
45665
45664
  handler: /* @__PURE__ */ a(({ state: t, range: r, match: n }) => {
45666
- const o = t.doc.resolve(r.from), i = _e(e.getAttributes, void 0, n) || {};
45665
+ const o = t.doc.resolve(r.from), i = je(e.getAttributes, void 0, n) || {};
45667
45666
  if (!o.node(-1).canReplaceWith(o.index(-1), o.indexAfter(-1), e.type))
45668
45667
  return null;
45669
45668
  t.tr.delete(r.from, r.to).setBlockType(r.from, r.from, e.type, i);
@@ -45675,7 +45674,7 @@ function dl(e) {
45675
45674
  return new Ra({
45676
45675
  find: e.find,
45677
45676
  handler: /* @__PURE__ */ a(({ state: t, range: r, match: n, chain: o }) => {
45678
- const i = _e(e.getAttributes, void 0, n) || {}, s = t.tr.delete(r.from, r.to), u = s.doc.resolve(r.from).blockRange(), d = u && ib(u, e.type, i);
45677
+ const i = je(e.getAttributes, void 0, n) || {}, s = t.tr.delete(r.from, r.to), u = s.doc.resolve(r.from).blockRange(), d = u && ib(u, e.type, i);
45679
45678
  if (!d)
45680
45679
  return null;
45681
45680
  if (s.wrap(u, d), e.keepMarks && e.editor) {
@@ -45703,9 +45702,9 @@ const Ds = class Ds {
45703
45702
  }, this.config = {
45704
45703
  ...this.config,
45705
45704
  ...t
45706
- }, this.name = this.config.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = _e(ge(this, "addOptions", {
45705
+ }, this.name = this.config.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = je(ge(this, "addOptions", {
45707
45706
  name: this.name
45708
- }))), this.storage = _e(ge(this, "addStorage", {
45707
+ }))), this.storage = je(ge(this, "addStorage", {
45709
45708
  name: this.name,
45710
45709
  options: this.options
45711
45710
  })) || {};
@@ -45722,9 +45721,9 @@ const Ds = class Ds {
45722
45721
  }
45723
45722
  extend(t = {}) {
45724
45723
  const r = new Ds(t);
45725
- return r.parent = this, this.child = r, r.name = t.name ? t.name : r.parent.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${r.name}".`), r.options = _e(ge(r, "addOptions", {
45724
+ return r.parent = this, this.child = r, r.name = t.name ? t.name : r.parent.name, t.defaultOptions && Object.keys(t.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${r.name}".`), r.options = je(ge(r, "addOptions", {
45726
45725
  name: r.name
45727
- })), r.storage = _e(ge(r, "addStorage", {
45726
+ })), r.storage = je(ge(r, "addStorage", {
45728
45727
  name: r.name,
45729
45728
  options: r.options
45730
45729
  })), r;
@@ -45736,7 +45735,7 @@ function co(e) {
45736
45735
  return new Rh({
45737
45736
  find: e.find,
45738
45737
  handler: /* @__PURE__ */ a(({ state: t, range: r, match: n, pasteEvent: o }) => {
45739
- const i = _e(e.getAttributes, void 0, n, o);
45738
+ const i = je(e.getAttributes, void 0, n, o);
45740
45739
  if (i === !1 || i === null)
45741
45740
  return null;
45742
45741
  const { tr: s } = t, l = n[n.length - 1], u = n[0];
@@ -48182,7 +48181,7 @@ const G7 = Ut.create({
48182
48181
  storage: e.storage
48183
48182
  };
48184
48183
  return {
48185
- allowGapCursor: (t = _e(ge(e, "allowGapCursor", r))) !== null && t !== void 0 ? t : null
48184
+ allowGapCursor: (t = je(ge(e, "allowGapCursor", r))) !== null && t !== void 0 ? t : null
48186
48185
  };
48187
48186
  }
48188
48187
  }), K7 = or.create({
@@ -52220,14 +52219,14 @@ const PQ = /* @__PURE__ */ a((e) => {
52220
52219
  } else
52221
52220
  le = he.props.value;
52222
52221
  if (he.props.onClick && he.props.onClick(Q), L !== le && (K(le), w)) {
52223
- const ke = Q.nativeEvent || Q, Le = new ke.constructor(ke.type, ke);
52224
- Object.defineProperty(Le, "target", {
52222
+ const ke = Q.nativeEvent || Q, De = new ke.constructor(ke.type, ke);
52223
+ Object.defineProperty(De, "target", {
52225
52224
  writable: !0,
52226
52225
  value: {
52227
52226
  value: le,
52228
52227
  name: C
52229
52228
  }
52230
- }), w(Le, he);
52229
+ }), w(De, he);
52231
52230
  }
52232
52231
  T || _(!1, Q);
52233
52232
  }
@@ -52252,10 +52251,10 @@ const PQ = /* @__PURE__ */ a((e) => {
52252
52251
  delete B["aria-invalid"];
52253
52252
  let Ne, nt;
52254
52253
  const rt = [];
52255
- let je = !1, He = !1;
52254
+ let Le = !1, He = !1;
52256
52255
  (_c({
52257
52256
  value: L
52258
- }) || g) && (A ? Ne = A(L) : je = !0);
52257
+ }) || g) && (A ? Ne = A(L) : Le = !0);
52259
52258
  const ht = me.map((he) => {
52260
52259
  if (!/* @__PURE__ */ x.isValidElement(he))
52261
52260
  return null;
@@ -52265,9 +52264,9 @@ const PQ = /* @__PURE__ */ a((e) => {
52265
52264
  if (T) {
52266
52265
  if (!Array.isArray(L))
52267
52266
  throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." : In(2));
52268
- Q = L.some((le) => Vx(le, he.props.value)), Q && je && rt.push(he.props.children);
52267
+ Q = L.some((le) => Vx(le, he.props.value)), Q && Le && rt.push(he.props.children);
52269
52268
  } else
52270
- Q = Vx(L, he.props.value), Q && je && (nt = he.props.children);
52269
+ Q = Vx(L, he.props.value), Q && Le && (nt = he.props.children);
52271
52270
  return Q && (He = !0), /* @__PURE__ */ x.cloneElement(he, {
52272
52271
  "aria-selected": Q ? "true" : "false",
52273
52272
  onClick: be(he),
@@ -52288,7 +52287,7 @@ const PQ = /* @__PURE__ */ a((e) => {
52288
52287
  console.warn([`MUI: You have provided an out-of-range value \`${L}\` for the select ${C ? `(name="${C}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${he.filter((Q) => Q != null).map((Q) => `\`${Q}\``).join(", ") || '""'}.`].join(`
52289
52288
  `));
52290
52289
  }
52291
- }, [He, me, T, C, L]), je && (T ? rt.length === 0 ? Ne = null : Ne = rt.reduce((he, Q, le) => (he.push(Q), le < rt.length - 1 && he.push(", "), he), []) : Ne = nt);
52290
+ }, [He, me, T, C, L]), Le && (T ? rt.length === 0 ? Ne = null : Ne = rt.reduce((he, Q, le) => (he.push(Q), le < rt.length - 1 && he.push(", "), he), []) : Ne = nt);
52292
52291
  let Ot = te;
52293
52292
  !l && G && W && (Ot = ie.clientWidth);
52294
52293
  let Fe;