biblio-react 3.0.41 → 3.0.42

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
@@ -4,7 +4,7 @@ var i = (e, t) => nm(e, "name", { value: t, configurable: !0 });
4
4
  var Yc = (e, t, o) => Ax(e, typeof t != "symbol" ? t + "" : t, o);
5
5
  import { jsx as f, jsxs as K, Fragment as bo } from "react/jsx-runtime";
6
6
  import * as S from "react";
7
- import Eo, { forwardRef as Ll, useContext as ot, createElement as rm, isValidElement as Zo, cloneElement as Po, Children as ps, createContext as Ro, useState as Fe, useMemo as je, useRef as eo, useCallback as De, useEffect as Be, Fragment as Bo, useImperativeHandle as $x, memo as Nx } from "react";
7
+ import Eo, { forwardRef as Ll, useContext as ot, createElement as rm, isValidElement as Zo, cloneElement as Po, Children as ps, createContext as Ro, useState as Fe, useMemo as We, useRef as eo, useCallback as De, useEffect as Be, Fragment as Bo, useImperativeHandle as $x, memo as Nx } from "react";
8
8
  import { MenuItem as kn, ListItemIcon as Sr, ListItemText as Yr, useMediaQuery as Wo, Typography as ts, Box as Oe, useTheme as Bl, Card as xb, CardHeader as Dx, Divider as Fx, CardContent as Cb, Stack as Vl, IconButton as ao, Tooltip as on, createTheme as _x, ThemeProvider as Lx, Chip as zd, Menu as fs, alpha as Bx, StyledEngineProvider as wb, CircularProgress as Tb, DialogTitle as jd, Dialog as sl, DialogContent as Wd, Collapse as Vx, List as zx, Switch as jx, DialogActions as im, Button as sm, Paper as Eb, Table as Wx, TableHead as Hx, TableRow as am, TableCell as lr, Skeleton as cr, TableBody as Ux } from "@mui/material";
9
9
  import { useTranslate as Ze, useUserMenu as Gx, useResourceDefinitions as Xu, AppBar as qx, UserMenu as Kx, Logout as Yx, required as Xx, TopToolbar as Pb, ShowButton as Jx, useNotify as zl, useDataProvider as _n, useResourceContext as tt, useListContext as tr, useRedirect as Ln, useUnselectAll as Qx, ResourceDefinitionContext as Ob, useStoreContext as Zx, NumberField as eC, DateField as lm, TextField as Ki, ReferenceField as tC, useResourceDefinition as jl, useGetResourceLabel as Wl, ResourceContextProvider as Xr, useLocaleState as Ju, BulkActionsToolbar as Ib, Button as po, useRecordContext as Mo, useInput as $s, useGetList as Rb, Labeled as Qu, Confirm as Hl, Form as yi, SaveButton as Ns, useGetOne as Mb, useCreateController as oC, CreateContextProvider as nC, useDeleteWithConfirmController as rC, Toolbar as kb, ToolbarClasses as iC, useDelete as Ab, useSaveContext as sC, Create as aC, Loading as Er, useListController as lC, ListContextProvider as $b, List as Nb, Filter as cC, SearchInput as Db, Pagination as dC, Edit as uC, useEditContext as pC, useSidebarState as Fb, Menu as fC, DashboardMenuItem as mC, MenuItemLink as _b, Layout as hC, FilterContext as gC, FilterButton as bC, sanitizeListRestProps as yC, useLogin as vC, TextInput as An, PasswordInput as Lb, Show as SC, useShowContext as xC, useCreatePath as CC, useSplatPathBase as wC, getTabbedFormTabFullPath as ma, TabbedFormTabs as Bb, defaultTheme as Vb, FormTab as TC, BooleanField as EC, ImageInput as PC, ImageField as OC, FileInput as IC, BooleanInput as RC, ReferenceInput as zb, AutocompleteInput as jb, useChoicesContext as Wb, SelectInput as MC, ReferenceArrayInput as kC, AutocompleteArrayInput as AC, RadioButtonGroupInput as Hb, useRecordSelection as Ub, ListActions as $C, Datagrid as NC, SelectAllButton as DC, ValidationError as FC, FieldTitle as Gb } from "react-admin";
10
10
  import { Link as Hd, useNavigate as Ul, useLocation as ko, Routes as qb, Route as Kb, useParams as Yb, matchPath as ms } from "react-router-dom";
@@ -167,9 +167,9 @@ function n1() {
167
167
  }
168
168
  }
169
169
  i(x, "typeOf");
170
- var C = d, E = p, I = c, A = l, k = t, N = u, F = n, O = y, $ = m, M = o, D = a, R = s, L = h, W = !1;
170
+ var C = d, E = p, I = c, A = l, k = t, N = u, F = n, O = y, $ = m, M = o, D = a, R = s, L = h, H = !1;
171
171
  function j(B) {
172
- return W || (W = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), _(B) || x(B) === d;
172
+ return H || (H = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), _(B) || x(B) === d;
173
173
  }
174
174
  i(j, "isAsyncMode");
175
175
  function _(B) {
@@ -534,7 +534,7 @@ function s1() {
534
534
  var q = _[V];
535
535
  if (typeof q != "function")
536
536
  return a(
537
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + W(q) + " at index " + V + "."
537
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + H(q) + " at index " + V + "."
538
538
  ), l;
539
539
  }
540
540
  function Z(U, Y, te, z, G) {
@@ -661,7 +661,7 @@ Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
661
661
  return V;
662
662
  }
663
663
  i(L, "getPreciseType");
664
- function W(_) {
664
+ function H(_) {
665
665
  var V = L(_);
666
666
  switch (V) {
667
667
  case "array":
@@ -675,7 +675,7 @@ Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
675
675
  return V;
676
676
  }
677
677
  }
678
- i(W, "getPostfixForTypeWarning");
678
+ i(H, "getPostfixForTypeWarning");
679
679
  function j(_) {
680
680
  return !_.constructor || !_.constructor.name ? b : _.constructor.name;
681
681
  }
@@ -2568,9 +2568,9 @@ function Fw() {
2568
2568
  }
2569
2569
  }
2570
2570
  i(x, "typeOf");
2571
- var C = d, E = p, I = c, A = l, k = t, N = u, F = n, O = y, $ = m, M = o, D = a, R = s, L = h, W = !1;
2571
+ var C = d, E = p, I = c, A = l, k = t, N = u, F = n, O = y, $ = m, M = o, D = a, R = s, L = h, H = !1;
2572
2572
  function j(B) {
2573
- return W || (W = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), _(B) || x(B) === d;
2573
+ return H || (H = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), _(B) || x(B) === d;
2574
2574
  }
2575
2575
  i(j, "isAsyncMode");
2576
2576
  function _(B) {
@@ -4486,11 +4486,11 @@ function KT(e) {
4486
4486
  defaultMode: $ = "system",
4487
4487
  forceThemeRerender: M = !1,
4488
4488
  noSsr: D
4489
- } = w, R = S.useRef(!1), L = vp(), W = S.useContext(p), j = !!W && !F, _ = S.useMemo(() => T || (typeof o == "function" ? o() : o), [T]), V = _[t], q = V || _, {
4489
+ } = w, R = S.useRef(!1), L = vp(), H = S.useContext(p), j = !!H && !F, _ = S.useMemo(() => T || (typeof o == "function" ? o() : o), [T]), V = _[t], q = V || _, {
4490
4490
  colorSchemes: Z = h,
4491
4491
  components: U = b,
4492
4492
  cssVarPrefix: Y
4493
- } = q, te = Object.keys(Z).filter((He) => !!Z[He]).join(","), z = S.useMemo(() => te.split(","), [te]), G = typeof l == "string" ? l : l.light, Q = typeof l == "string" ? l : l.dark, ee = Z[G] && Z[Q] ? $ : Z[q.defaultColorScheme]?.palette?.mode || q.palette?.mode, {
4493
+ } = q, te = Object.keys(Z).filter((je) => !!Z[je]).join(","), z = S.useMemo(() => te.split(","), [te]), G = typeof l == "string" ? l : l.light, Q = typeof l == "string" ? l : l.dark, ee = Z[G] && Z[Q] ? $ : Z[q.defaultColorScheme]?.palette?.mode || q.palette?.mode, {
4494
4494
  mode: se,
4495
4495
  setMode: B,
4496
4496
  systemMode: pe,
@@ -4510,17 +4510,17 @@ function KT(e) {
4510
4510
  noSsr: D
4511
4511
  });
4512
4512
  let ge = se, xe = de;
4513
- j && (ge = W.mode, xe = W.colorScheme), process.env.NODE_ENV !== "production" && M && !q.vars && console.warn(["MUI: The `forceThemeRerender` prop should only be used with CSS theme variables.", "Note that it will slow down the app when changing between modes, so only do this when you cannot find a better solution."].join(`
4513
+ j && (ge = H.mode, xe = H.colorScheme), process.env.NODE_ENV !== "production" && M && !q.vars && console.warn(["MUI: The `forceThemeRerender` prop should only be used with CSS theme variables.", "Note that it will slow down the app when changing between modes, so only do this when you cannot find a better solution."].join(`
4514
4514
  `));
4515
4515
  let Ie = xe || q.defaultColorScheme;
4516
4516
  q.vars && !M && (Ie = q.defaultColorScheme);
4517
4517
  const we = S.useMemo(() => {
4518
- const He = q.generateThemeVars?.() || q.vars, le = {
4518
+ const je = q.generateThemeVars?.() || q.vars, le = {
4519
4519
  ...q,
4520
4520
  components: U,
4521
4521
  colorSchemes: Z,
4522
4522
  cssVarPrefix: Y,
4523
- vars: He
4523
+ vars: je
4524
4524
  };
4525
4525
  if (typeof le.generateSpacing == "function" && (le.spacing = le.generateSpacing()), Ie) {
4526
4526
  const X = Z[Ie];
@@ -4535,9 +4535,9 @@ function KT(e) {
4535
4535
  }, [q, Ie, U, Z, Y]), me = q.colorSchemeSelector;
4536
4536
  oo(() => {
4537
4537
  if (xe && N && me && me !== "media") {
4538
- const He = me;
4538
+ const je = me;
4539
4539
  let le = me;
4540
- if (He === "class" && (le = ".%s"), He === "data" && (le = "[data-%s]"), He?.startsWith("data-") && !He.includes("%s") && (le = `[${He}="%s"]`), le.startsWith("."))
4540
+ if (je === "class" && (le = ".%s"), je === "data" && (le = "[data-%s]"), je?.startsWith("data-") && !je.includes("%s") && (le = `[${je}="%s"]`), le.startsWith("."))
4541
4541
  N.classList.remove(...z.map((X) => le.substring(1).replace("%s", X))), N.classList.add(le.substring(1).replace("%s", xe));
4542
4542
  else {
4543
4543
  const X = le.replace("%s", xe).match(/\[([^\]]+)\]/);
@@ -4551,29 +4551,29 @@ function KT(e) {
4551
4551
  }
4552
4552
  }
4553
4553
  }, [xe, me, N, z]), S.useEffect(() => {
4554
- let He;
4554
+ let je;
4555
4555
  if (E && R.current && k) {
4556
4556
  const le = k.createElement("style");
4557
- le.appendChild(k.createTextNode(qT)), k.head.appendChild(le), window.getComputedStyle(k.body), He = setTimeout(() => {
4557
+ le.appendChild(k.createTextNode(qT)), k.head.appendChild(le), window.getComputedStyle(k.body), je = setTimeout(() => {
4558
4558
  k.head.removeChild(le);
4559
4559
  }, 1);
4560
4560
  }
4561
4561
  return () => {
4562
- clearTimeout(He);
4562
+ clearTimeout(je);
4563
4563
  };
4564
4564
  }, [xe, E, k]), S.useEffect(() => (R.current = !0, () => {
4565
4565
  R.current = !1;
4566
4566
  }), []);
4567
- const We = S.useMemo(() => ({
4567
+ const He = S.useMemo(() => ({
4568
4568
  allColorSchemes: z,
4569
4569
  colorScheme: xe,
4570
4570
  darkColorScheme: J,
4571
4571
  lightColorScheme: ae,
4572
4572
  mode: ge,
4573
4573
  setColorScheme: ie,
4574
- setMode: process.env.NODE_ENV === "production" ? B : (He) => {
4574
+ setMode: process.env.NODE_ENV === "production" ? B : (je) => {
4575
4575
  we.colorSchemeSelector === "media" && console.error(["MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).", "To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.", "To learn more, visit https://mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually"].join(`
4576
- `)), B(He);
4576
+ `)), B(je);
4577
4577
  },
4578
4578
  systemMode: pe
4579
4579
  }), [z, xe, J, ae, ge, ie, B, pe, we.colorSchemeSelector]);
@@ -4589,7 +4589,7 @@ function KT(e) {
4589
4589
  })]
4590
4590
  });
4591
4591
  return j ? Ct : /* @__PURE__ */ f(p.Provider, {
4592
- value: We,
4592
+ value: He,
4593
4593
  children: Ct
4594
4594
  });
4595
4595
  }
@@ -5079,7 +5079,7 @@ function gE(e = {}) {
5079
5079
  columnSpacing: N = A,
5080
5080
  unstable_level: F = 0,
5081
5081
  ...O
5082
- } = y, $ = l(E, b.breakpoints, (V) => V !== !1), M = l(I, b.breakpoints), D = u.columns ?? (F ? void 0 : w), R = u.spacing ?? (F ? void 0 : A), L = u.rowSpacing ?? u.spacing ?? (F ? void 0 : k), W = u.columnSpacing ?? u.spacing ?? (F ? void 0 : N), j = {
5082
+ } = y, $ = l(E, b.breakpoints, (V) => V !== !1), M = l(I, b.breakpoints), D = u.columns ?? (F ? void 0 : w), R = u.spacing ?? (F ? void 0 : A), L = u.rowSpacing ?? u.spacing ?? (F ? void 0 : k), H = u.columnSpacing ?? u.spacing ?? (F ? void 0 : N), j = {
5083
5083
  ...y,
5084
5084
  level: F,
5085
5085
  columns: D,
@@ -5088,7 +5088,7 @@ function gE(e = {}) {
5088
5088
  wrap: C,
5089
5089
  spacing: R,
5090
5090
  rowSpacing: L,
5091
- columnSpacing: W,
5091
+ columnSpacing: H,
5092
5092
  size: $,
5093
5093
  offset: M
5094
5094
  }, _ = a(j, b);
@@ -6065,14 +6065,14 @@ function ZE(e = {}, ...t) {
6065
6065
  };
6066
6066
  Object.keys(E.colorSchemes).forEach((F) => {
6067
6067
  const O = E.colorSchemes[F].palette, $ = /* @__PURE__ */ i((D) => {
6068
- const R = D.split("-"), L = R[1], W = R[2];
6069
- return m(D, O[L][W]);
6068
+ const R = D.split("-"), L = R[1], H = R[2];
6069
+ return m(D, O[L][H]);
6070
6070
  }, "setCssVarColor");
6071
6071
  O.mode === "light" && (oe(O.common, "background", "#fff"), oe(O.common, "onBackground", "#000")), O.mode === "dark" && (oe(O.common, "background", "#000"), oe(O.common, "onBackground", "#fff"));
6072
6072
  function M(D, R, L) {
6073
6073
  if (x) {
6074
- let W;
6075
- return D === dr && (W = `transparent ${((1 - L) * 100).toFixed(0)}%`), D === mt && (W = `#000 ${(L * 100).toFixed(0)}%`), D === ht && (W = `#fff ${(L * 100).toFixed(0)}%`), `color-mix(in ${x}, ${R}, ${W})`;
6074
+ let H;
6075
+ return D === dr && (H = `transparent ${((1 - L) * 100).toFixed(0)}%`), D === mt && (H = `#000 ${(L * 100).toFixed(0)}%`), D === ht && (H = `#fff ${(L * 100).toFixed(0)}%`), `color-mix(in ${x}, ${R}, ${H})`;
6076
6076
  }
6077
6077
  return D(R, L);
6078
6078
  }
@@ -6201,7 +6201,7 @@ function Yy(e) {
6201
6201
  return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
6202
6202
  }
6203
6203
  i(Yy, "slotShouldForwardProp");
6204
- const Jt = /* @__PURE__ */ i((e) => Yy(e) && e !== "classes", "rootShouldForwardProp"), ne = Iy({
6204
+ const Jt = /* @__PURE__ */ i((e) => Yy(e) && e !== "classes", "rootShouldForwardProp"), re = Iy({
6205
6205
  themeId: en,
6206
6206
  defaultTheme: dc,
6207
6207
  rootShouldForwardProp: Jt
@@ -6244,7 +6244,7 @@ const nP = /* @__PURE__ */ i((e) => {
6244
6244
  root: ["root", t !== "inherit" && `color${ue(t)}`, `fontSize${ue(o)}`]
6245
6245
  };
6246
6246
  return ke(s, oP, n);
6247
- }, "useUtilityClasses$R"), rP = ne("svg", {
6247
+ }, "useUtilityClasses$R"), rP = re("svg", {
6248
6248
  name: "MuiSvgIcon",
6249
6249
  slot: "Root",
6250
6250
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -8069,7 +8069,7 @@ const _P = /* @__PURE__ */ i((e) => {
8069
8069
  return ke({
8070
8070
  root: ["root", o && "invisible"]
8071
8071
  }, FP, t);
8072
- }, "useUtilityClasses$Q"), LP = ne("div", {
8072
+ }, "useUtilityClasses$Q"), LP = re("div", {
8073
8073
  name: "MuiBackdrop",
8074
8074
  slot: "Root",
8075
8075
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -8354,7 +8354,7 @@ const WP = /* @__PURE__ */ i((e) => {
8354
8354
  root: ["root", !t && o && "hidden"],
8355
8355
  backdrop: ["backdrop"]
8356
8356
  }, jP, n);
8357
- }, "useUtilityClasses$P"), HP = ne("div", {
8357
+ }, "useUtilityClasses$P"), HP = re("div", {
8358
8358
  name: "MuiModal",
8359
8359
  slot: "Root",
8360
8360
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -8380,7 +8380,7 @@ const WP = /* @__PURE__ */ i((e) => {
8380
8380
  visibility: "hidden"
8381
8381
  }
8382
8382
  }]
8383
- }))), UP = ne(Ip, {
8383
+ }))), UP = re(Ip, {
8384
8384
  name: "MuiModal",
8385
8385
  slot: "Backdrop"
8386
8386
  })({
@@ -8432,7 +8432,7 @@ const WP = /* @__PURE__ */ i((e) => {
8432
8432
  getRootProps: D,
8433
8433
  getBackdropProps: R,
8434
8434
  getTransitionProps: L,
8435
- portalRef: W,
8435
+ portalRef: H,
8436
8436
  isTopModal: j,
8437
8437
  exited: _,
8438
8438
  hasTransition: V
@@ -8487,7 +8487,7 @@ const WP = /* @__PURE__ */ i((e) => {
8487
8487
  ownerState: q
8488
8488
  });
8489
8489
  return !C && !k && (!V || _) ? null : /* @__PURE__ */ f(Cs, {
8490
- ref: W,
8490
+ ref: H,
8491
8491
  container: u,
8492
8492
  disablePortal: w,
8493
8493
  children: /* @__PURE__ */ K(te, {
@@ -8723,7 +8723,7 @@ const KP = /* @__PURE__ */ i((e) => {
8723
8723
  root: ["root", n, !t && "rounded", n === "elevation" && `elevation${o}`]
8724
8724
  };
8725
8725
  return ke(a, qP, s);
8726
- }, "useUtilityClasses$O"), YP = ne("div", {
8726
+ }, "useUtilityClasses$O"), YP = re("div", {
8727
8727
  name: "MuiPaper",
8728
8728
  slot: "Root",
8729
8729
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -8859,7 +8859,7 @@ function XP(e) {
8859
8859
  i(XP, "getDialogUtilityClass");
8860
8860
  const dd = Ae("MuiDialog", ["root", "backdrop", "scrollPaper", "scrollBody", "container", "paper", "paperScrollPaper", "paperScrollBody", "paperWidthFalse", "paperWidthXs", "paperWidthSm", "paperWidthMd", "paperWidthLg", "paperWidthXl", "paperFullWidth", "paperFullScreen"]), Mp = /* @__PURE__ */ S.createContext({});
8861
8861
  process.env.NODE_ENV !== "production" && (Mp.displayName = "DialogContext");
8862
- const JP = ne(Ip, {
8862
+ const JP = re(Ip, {
8863
8863
  name: "MuiDialog",
8864
8864
  slot: "Backdrop"
8865
8865
  })({
@@ -8879,7 +8879,7 @@ const JP = ne(Ip, {
8879
8879
  paper: ["paper", `paperScroll${ue(o)}`, `paperWidth${ue(String(n))}`, s && "paperFullWidth", a && "paperFullScreen"]
8880
8880
  };
8881
8881
  return ke(l, XP, t);
8882
- }, "useUtilityClasses$N"), ZP = ne(uc, {
8882
+ }, "useUtilityClasses$N"), ZP = re(uc, {
8883
8883
  name: "MuiDialog",
8884
8884
  slot: "Root"
8885
8885
  })({
@@ -8887,7 +8887,7 @@ const JP = ne(Ip, {
8887
8887
  // Use !important to override the Modal inline-style.
8888
8888
  position: "absolute !important"
8889
8889
  }
8890
- }), eO = ne("div", {
8890
+ }), eO = re("div", {
8891
8891
  name: "MuiDialog",
8892
8892
  slot: "Container",
8893
8893
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -8929,7 +8929,7 @@ const JP = ne(Ip, {
8929
8929
  }
8930
8930
  }
8931
8931
  }]
8932
- }), tO = ne(Xo, {
8932
+ }), tO = re(Xo, {
8933
8933
  name: "MuiDialog",
8934
8934
  slot: "Paper",
8935
8935
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -9063,9 +9063,9 @@ const JP = ne(Ip, {
9063
9063
  D.current = pe.target === pe.currentTarget;
9064
9064
  }, "handleMouseDown"), L = /* @__PURE__ */ i((pe) => {
9065
9065
  w && w(pe), D.current && (D.current = null, P && P(pe, "backdropClick"));
9066
- }, "handleBackdropClick"), W = Or(c), j = S.useMemo(() => ({
9067
- titleId: W
9068
- }), [W]), _ = {
9066
+ }, "handleBackdropClick"), H = Or(c), j = S.useMemo(() => ({
9067
+ titleId: H
9068
+ }), [H]), _ = {
9069
9069
  transition: k,
9070
9070
  ...I
9071
9071
  }, V = {
@@ -9139,7 +9139,7 @@ const JP = ne(Ip, {
9139
9139
  elevation: 24,
9140
9140
  role: "dialog",
9141
9141
  "aria-describedby": l,
9142
- "aria-labelledby": W,
9142
+ "aria-labelledby": H,
9143
9143
  "aria-modal": d,
9144
9144
  ...G,
9145
9145
  children: /* @__PURE__ */ f(Mp.Provider, {
@@ -9319,7 +9319,7 @@ const nO = /* @__PURE__ */ i((e) => {
9319
9319
  return ke({
9320
9320
  root: ["root", !o && "spacing"]
9321
9321
  }, oO, t);
9322
- }, "useUtilityClasses$M"), rO = ne("div", {
9322
+ }, "useUtilityClasses$M"), rO = re("div", {
9323
9323
  name: "MuiDialogActions",
9324
9324
  slot: "Root",
9325
9325
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -9407,7 +9407,7 @@ const aO = Ae("MuiDialogTitle", ["root"]), lO = /* @__PURE__ */ i((e) => {
9407
9407
  return ke({
9408
9408
  root: ["root", o && "dividers"]
9409
9409
  }, iO, t);
9410
- }, "useUtilityClasses$L"), cO = ne("div", {
9410
+ }, "useUtilityClasses$L"), cO = re("div", {
9411
9411
  name: "MuiDialogContent",
9412
9412
  slot: "Root",
9413
9413
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -9532,7 +9532,7 @@ const ph = Ae("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "sub
9532
9532
  root: ["root", a, e.align !== "inherit" && `align${ue(t)}`, o && "gutterBottom", n && "noWrap", s && "paragraph"]
9533
9533
  };
9534
9534
  return ke(c, pO, l);
9535
- }, "useUtilityClasses$K"), gO = ne("span", {
9535
+ }, "useUtilityClasses$K"), gO = re("span", {
9536
9536
  name: "MuiTypography",
9537
9537
  slot: "Root",
9538
9538
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -9767,7 +9767,7 @@ const yO = /* @__PURE__ */ i((e) => {
9767
9767
  // forward classes to the Typography
9768
9768
  ...n
9769
9769
  };
9770
- }, "useUtilityClasses$J"), vO = ne(Yt, {
9770
+ }, "useUtilityClasses$J"), vO = re(Yt, {
9771
9771
  shouldForwardProp: /* @__PURE__ */ i((e) => Jt(e) || e === "classes", "shouldForwardProp"),
9772
9772
  name: "MuiDialogContentText",
9773
9773
  slot: "Root"
@@ -9820,7 +9820,7 @@ const SO = /* @__PURE__ */ i((e) => {
9820
9820
  return ke({
9821
9821
  root: ["root"]
9822
9822
  }, sO, t);
9823
- }, "useUtilityClasses$I"), xO = ne(Yt, {
9823
+ }, "useUtilityClasses$I"), xO = re(Yt, {
9824
9824
  name: "MuiDialogTitle",
9825
9825
  slot: "Root"
9826
9826
  })({
@@ -9874,7 +9874,7 @@ process.env.NODE_ENV !== "production" && (Xs.propTypes = {
9874
9874
  sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object])
9875
9875
  });
9876
9876
  const av = Ro(), ci = /* @__PURE__ */ i(({ children: e }) => {
9877
- const [t, o] = Fe(!1), [n, s] = Fe(""), a = je(
9877
+ const [t, o] = Fe(!1), [n, s] = Fe(""), a = We(
9878
9878
  () => ({
9879
9879
  open: t,
9880
9880
  mensaje: n,
@@ -9906,7 +9906,7 @@ const av = Ro(), ci = /* @__PURE__ */ i(({ children: e }) => {
9906
9906
  }
9907
9907
  return null;
9908
9908
  }, "getHideMatcher"), mh = /* @__PURE__ */ i(({ children: e, isolate: t = !1 }) => {
9909
- const o = ot(lu), [n, s] = Fe([]), [a, l] = Fe(null), c = n.length > 0, d = n[n.length - 1] || {}, p = je(
9909
+ const o = ot(lu), [n, s] = Fe([]), [a, l] = Fe(null), c = n.length > 0, d = n[n.length - 1] || {}, p = We(
9910
9910
  () => ({
9911
9911
  open: c,
9912
9912
  props: d,
@@ -9954,7 +9954,7 @@ const av = Ro(), ci = /* @__PURE__ */ i(({ children: e }) => {
9954
9954
  Be(() => {
9955
9955
  !y && b === "pivot" && m("grilla");
9956
9956
  }, [y, b]);
9957
- const w = je(
9957
+ const w = We(
9958
9958
  () => ({
9959
9959
  props: {
9960
9960
  ...u,
@@ -10859,7 +10859,7 @@ const uu = /* @__PURE__ */ i((e = "scope") => (yh += 1, `${e}-${yh}`), "createRe
10859
10859
  },
10860
10860
  [s, c]
10861
10861
  );
10862
- const p = je(
10862
+ const p = We(
10863
10863
  () => ({
10864
10864
  estado: e.estado,
10865
10865
  initialValues: e.initialValues,
@@ -10912,7 +10912,7 @@ const uu = /* @__PURE__ */ i((e = "scope") => (yh += 1, `${e}-${yh}`), "createRe
10912
10912
  required: w,
10913
10913
  error: P,
10914
10914
  label: T
10915
- } = p || {}, x = je(
10915
+ } = p || {}, x = We(
10916
10916
  () => typeof P == "function" ? P : P === void 0 ? void 0 : () => P,
10917
10917
  [P]
10918
10918
  ), { [t]: C = {} } = s, { [t]: E = {} } = a, {
@@ -10928,13 +10928,13 @@ const uu = /* @__PURE__ */ i((e = "scope") => (yh += 1, `${e}-${yh}`), "createRe
10928
10928
  onFocus: D,
10929
10929
  onBlur: R,
10930
10930
  onChange: L,
10931
- hidden: W,
10931
+ hidden: H,
10932
10932
  disabled: j,
10933
10933
  useContenido: _ = Qs,
10934
10934
  validate: V,
10935
10935
  required: q,
10936
10936
  ...Z
10937
- } = C, U = c || W === void 0 ? N : W, Y = c || j === void 0 ? F : j, te = c || D === void 0 ? I : D, z = c || R === void 0 ? k : R, G = c || L === void 0 ? A : L, Q = sn(e), ee = _({
10937
+ } = C, U = c || H === void 0 ? N : H, Y = c || j === void 0 ? F : j, te = c || D === void 0 ? I : D, z = c || R === void 0 ? k : R, G = c || L === void 0 ? A : L, Q = sn(e), ee = _({
10938
10938
  ...M,
10939
10939
  estado: o,
10940
10940
  hidden: U,
@@ -10950,7 +10950,7 @@ const uu = /* @__PURE__ */ i((e = "scope") => (yh += 1, `${e}-${yh}`), "createRe
10950
10950
  validate: de,
10951
10951
  required: ie,
10952
10952
  ...ge
10953
- } = ee, xe = pe || te, Ie = J || z, we = ae || G, me = [O, V, de].flat().some((be) => be?.isRequired), We = w !== void 0 ? w : ie !== void 0 ? ie : b ? !0 : c || q === void 0 ? $ ?? me : q, ze = v !== void 0 ? v : se !== void 0 ? se : h ? !0 : U, Ct = g !== void 0 ? g : B !== void 0 ? B : m ? !0 : Y, He = je(() => {
10953
+ } = ee, xe = pe || te, Ie = J || z, we = ae || G, me = [O, V, de].flat().some((be) => be?.isRequired), He = w !== void 0 ? w : ie !== void 0 ? ie : b ? !0 : c || q === void 0 ? $ ?? me : q, ze = v !== void 0 ? v : se !== void 0 ? se : h ? !0 : U, Ct = g !== void 0 ? g : B !== void 0 ? B : m ? !0 : Y, je = We(() => {
10954
10954
  const be = Array.isArray(O) ? O : [O], wt = Array.isArray(V) ? V : [V], Je = Array.isArray(de) ? de : [de];
10955
10955
  let st = [
10956
10956
  ...be,
@@ -10958,13 +10958,13 @@ const uu = /* @__PURE__ */ i((e = "scope") => (yh += 1, `${e}-${yh}`), "createRe
10958
10958
  ...Je,
10959
10959
  x
10960
10960
  ].filter((It) => It !== void 0);
10961
- return We ? st.push(uv) : st = st.filter((It) => !It.isRequired), st;
10961
+ return He ? st.push(uv) : st = st.filter((It) => !It.isRequired), st;
10962
10962
  }, [
10963
10963
  O,
10964
10964
  V,
10965
10965
  de,
10966
10966
  x,
10967
- We
10967
+ He
10968
10968
  ]), le = De(
10969
10969
  (be) => {
10970
10970
  xe && xe(Q, o, be);
@@ -10978,7 +10978,7 @@ const uu = /* @__PURE__ */ i((e = "scope") => (yh += 1, `${e}-${yh}`), "createRe
10978
10978
  [we, Q, o]
10979
10979
  );
10980
10980
  return {
10981
- propsContenido: je(
10981
+ propsContenido: We(
10982
10982
  () => ({
10983
10983
  sx: {
10984
10984
  mr: { xs: 0, md: 1 },
@@ -10992,20 +10992,20 @@ const uu = /* @__PURE__ */ i((e = "scope") => (yh += 1, `${e}-${yh}`), "createRe
10992
10992
  onBlur: X,
10993
10993
  onChange: fe,
10994
10994
  helperText: !1,
10995
- validate: He,
10995
+ validate: je,
10996
10996
  ...M,
10997
10997
  ...Z,
10998
10998
  ...ge,
10999
10999
  readOnly: Ct,
11000
11000
  ...T ? { label: T } : { label: y || e.label },
11001
- isRequired: We,
11001
+ isRequired: He,
11002
11002
  ...E
11003
11003
  }),
11004
11004
  [
11005
11005
  le,
11006
11006
  X,
11007
11007
  fe,
11008
- He,
11008
+ je,
11009
11009
  M,
11010
11010
  Z,
11011
11011
  ge,
@@ -11013,7 +11013,7 @@ const uu = /* @__PURE__ */ i((e = "scope") => (yh += 1, `${e}-${yh}`), "createRe
11013
11013
  T,
11014
11014
  y,
11015
11015
  e.label,
11016
- We,
11016
+ He,
11017
11017
  E
11018
11018
  ]
11019
11019
  ),
@@ -11306,7 +11306,7 @@ const uu = /* @__PURE__ */ i((e = "scope") => (yh += 1, `${e}-${yh}`), "createRe
11306
11306
  ...c,
11307
11307
  [a]: l
11308
11308
  }));
11309
- }, "setVisibilidad"), s = je(
11309
+ }, "setVisibilidad"), s = We(
11310
11310
  () => ({
11311
11311
  hidden: t,
11312
11312
  setHidden: n
@@ -11612,7 +11612,7 @@ const Qo = 44, pu = Vs`
11612
11612
  circle: ["circle", `circle${ue(o)}`, s && "circleDisableShrink"]
11613
11613
  };
11614
11614
  return ke(a, JI, t);
11615
- }, "useUtilityClasses$H"), tR = ne("span", {
11615
+ }, "useUtilityClasses$H"), tR = re("span", {
11616
11616
  name: "MuiCircularProgress",
11617
11617
  slot: "Root",
11618
11618
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -11647,13 +11647,13 @@ const Qo = 44, pu = Vs`
11647
11647
  color: (e.vars || e).palette[t].main
11648
11648
  }
11649
11649
  }))]
11650
- }))), oR = ne("svg", {
11650
+ }))), oR = re("svg", {
11651
11651
  name: "MuiCircularProgress",
11652
11652
  slot: "Svg"
11653
11653
  })({
11654
11654
  display: "block"
11655
11655
  // Keeps the progress centered
11656
- }), nR = ne("circle", {
11656
+ }), nR = re("circle", {
11657
11657
  name: "MuiCircularProgress",
11658
11658
  slot: "Circle",
11659
11659
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -11692,7 +11692,7 @@ const Qo = 44, pu = Vs`
11692
11692
  animation: `${fu} 1.4s ease-in-out infinite`
11693
11693
  }
11694
11694
  }]
11695
- }))), rR = ne("circle", {
11695
+ }))), rR = re("circle", {
11696
11696
  name: "MuiCircularProgress",
11697
11697
  slot: "Track"
11698
11698
  })(Ve(({
@@ -11833,7 +11833,7 @@ process.env.NODE_ENV !== "production" && (Ci.propTypes = {
11833
11833
  */
11834
11834
  variant: r.oneOf(["determinate", "indeterminate"])
11835
11835
  });
11836
- const iR = ne("div")(({ theme: e }) => ({
11836
+ const iR = re("div")(({ theme: e }) => ({
11837
11837
  display: "flex",
11838
11838
  flexDirection: "column",
11839
11839
  alignItems: "center",
@@ -11923,7 +11923,7 @@ const iR = ne("div")(({ theme: e }) => ({
11923
11923
  ),
11924
11924
  /* @__PURE__ */ f(Oe, { sx: { mt: 1 }, children: e("ra.navigation.no_results") })
11925
11925
  ] });
11926
- }, "CustomNoRowsOverlay"), sR = ne("div")(({ theme: e }) => ({
11926
+ }, "CustomNoRowsOverlay"), sR = re("div")(({ theme: e }) => ({
11927
11927
  display: "flex",
11928
11928
  flexDirection: "column",
11929
11929
  alignItems: "center",
@@ -12543,7 +12543,7 @@ const iR = ne("div")(({ theme: e }) => ({
12543
12543
  // props opcionales comunes:
12544
12544
  hasFocus: !1,
12545
12545
  tabIndex: -1
12546
- }, W = x.renderCell(L);
12546
+ }, H = x.renderCell(L);
12547
12547
  F = D ? /* @__PURE__ */ f(
12548
12548
  ni,
12549
12549
  {
@@ -12557,9 +12557,9 @@ const iR = ne("div")(({ theme: e }) => ({
12557
12557
  row: I,
12558
12558
  columns: c,
12559
12559
  primaryField: h,
12560
- children: W
12560
+ children: H
12561
12561
  }
12562
- ) : W;
12562
+ ) : H;
12563
12563
  } else
12564
12564
  F = T(x, A, I), x?.type === "boolean" && !N ? ($ = p(A), O = !0, F = /* @__PURE__ */ K(
12565
12565
  Vl,
@@ -13317,8 +13317,8 @@ function IM(e) {
13317
13317
  padding: p
13318
13318
  }), L = M ? $ ? Go : vo : $ ? Uo : yo;
13319
13319
  C[D] > E[D] && (L = el(L));
13320
- var W = el(L), j = [];
13321
- if (a && j.push(R[O] <= 0), c && j.push(R[L] <= 0, R[W] <= 0), j.every(function(U) {
13320
+ var H = el(L), j = [];
13321
+ if (a && j.push(R[O] <= 0), c && j.push(R[L] <= 0, R[H] <= 0), j.every(function(U) {
13322
13322
  return U;
13323
13323
  })) {
13324
13324
  k = F, A = !1;
@@ -13464,14 +13464,14 @@ function LM(e) {
13464
13464
  };
13465
13465
  if (E) {
13466
13466
  if (a) {
13467
- var $, M = x === "y" ? yo : vo, D = x === "y" ? Uo : Go, R = x === "y" ? "height" : "width", L = E[x], W = L + v[M], j = L - v[D], _ = m ? -A[R] / 2 : 0, V = P === di ? I[R] : A[R], q = P === di ? -A[R] : -I[R], Z = t.elements.arrow, U = m && Z ? zp(Z) : {
13467
+ var $, M = x === "y" ? yo : vo, D = x === "y" ? Uo : Go, R = x === "y" ? "height" : "width", L = E[x], H = L + v[M], j = L - v[D], _ = m ? -A[R] / 2 : 0, V = P === di ? I[R] : A[R], q = P === di ? -A[R] : -I[R], Z = t.elements.arrow, U = m && Z ? zp(Z) : {
13468
13468
  width: 0,
13469
13469
  height: 0
13470
- }, Y = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Hv(), te = Y[M], z = Y[D], G = is(0, I[R], U[R]), Q = T ? I[R] / 2 - _ - G - te - N.mainAxis : V - G - te - N.mainAxis, ee = T ? -I[R] / 2 + _ + G + z + N.mainAxis : q + G + z + N.mainAxis, se = t.elements.arrow && ea(t.elements.arrow), B = se ? x === "y" ? se.clientTop || 0 : se.clientLeft || 0 : 0, pe = ($ = F?.[x]) != null ? $ : 0, ae = L + Q - pe - B, J = L + ee - pe, de = is(m ? wl(W, ae) : W, L, m ? xr(j, J) : j);
13470
+ }, Y = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Hv(), te = Y[M], z = Y[D], G = is(0, I[R], U[R]), Q = T ? I[R] / 2 - _ - G - te - N.mainAxis : V - G - te - N.mainAxis, ee = T ? -I[R] / 2 + _ + G + z + N.mainAxis : q + G + z + N.mainAxis, se = t.elements.arrow && ea(t.elements.arrow), B = se ? x === "y" ? se.clientTop || 0 : se.clientLeft || 0 : 0, pe = ($ = F?.[x]) != null ? $ : 0, ae = L + Q - pe - B, J = L + ee - pe, de = is(m ? wl(H, ae) : H, L, m ? xr(j, J) : j);
13471
13471
  E[x] = de, O[x] = de - L;
13472
13472
  }
13473
13473
  if (c) {
13474
- var ie, ge = x === "x" ? yo : vo, xe = x === "x" ? Uo : Go, Ie = E[C], we = C === "y" ? "height" : "width", me = Ie + v[ge], We = Ie - v[xe], ze = [yo, vo].indexOf(w) !== -1, Ct = (ie = F?.[C]) != null ? ie : 0, He = ze ? me : Ie - I[we] - A[we] - Ct + N.altAxis, le = ze ? Ie + I[we] + A[we] - Ct - N.altAxis : We, X = m && ze ? lM(He, Ie, le) : is(m ? He : me, Ie, m ? le : We);
13474
+ var ie, ge = x === "x" ? yo : vo, xe = x === "x" ? Uo : Go, Ie = E[C], we = C === "y" ? "height" : "width", me = Ie + v[ge], He = Ie - v[xe], ze = [yo, vo].indexOf(w) !== -1, Ct = (ie = F?.[C]) != null ? ie : 0, je = ze ? me : Ie - I[we] - A[we] - Ct + N.altAxis, le = ze ? Ie + I[we] + A[we] - Ct - N.altAxis : He, X = m && ze ? lM(je, Ie, le) : is(m ? je : me, Ie, m ? le : He);
13475
13475
  E[C] = X, O[C] = X - Ie;
13476
13476
  }
13477
13477
  t.modifiersData[n] = O;
@@ -13786,12 +13786,12 @@ const e2 = /* @__PURE__ */ i((e) => {
13786
13786
  }, [n]), oo(() => {
13787
13787
  if (!k || !d)
13788
13788
  return;
13789
- const D = /* @__PURE__ */ i((W) => {
13790
- A(W.placement);
13789
+ const D = /* @__PURE__ */ i((H) => {
13790
+ A(H.placement);
13791
13791
  }, "handlePopperUpdate");
13792
13792
  if (process.env.NODE_ENV !== "production" && k && gc(k) && k.nodeType === 1) {
13793
- const W = k.getBoundingClientRect();
13794
- wi() && W.top === 0 && W.left === 0 && W.right === 0 && W.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
13793
+ const H = k.getBoundingClientRect();
13794
+ wi() && H.top === 0 && H.left === 0 && H.right === 0 && H.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
13795
13795
  `));
13796
13796
  }
13797
13797
  let R = [{
@@ -13809,9 +13809,9 @@ const e2 = /* @__PURE__ */ i((e) => {
13809
13809
  enabled: !0,
13810
13810
  phase: "afterWrite",
13811
13811
  fn: /* @__PURE__ */ i(({
13812
- state: W
13812
+ state: H
13813
13813
  }) => {
13814
- D(W);
13814
+ D(H);
13815
13815
  }, "fn")
13816
13816
  }];
13817
13817
  c != null && (R = R.concat(c)), u && u.modifiers != null && (R = R.concat(u.modifiers));
@@ -14031,7 +14031,7 @@ process.env.NODE_ENV !== "production" && (Yv.propTypes = {
14031
14031
  */
14032
14032
  transition: r.bool
14033
14033
  });
14034
- const n2 = ne(Yv, {
14034
+ const n2 = re(Yv, {
14035
14035
  name: "MuiPopper",
14036
14036
  slot: "Root"
14037
14037
  })({}), Gp = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ i(function(t, o) {
@@ -14423,7 +14423,7 @@ const Fo = Ae("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
14423
14423
  100% {
14424
14424
  transform: scale(1);
14425
14425
  }
14426
- `, m2 = ne("span", {
14426
+ `, m2 = re("span", {
14427
14427
  name: "MuiTouchRipple",
14428
14428
  slot: "Root"
14429
14429
  })({
@@ -14436,7 +14436,7 @@ const Fo = Ae("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsa
14436
14436
  bottom: 0,
14437
14437
  left: 0,
14438
14438
  borderRadius: "inherit"
14439
- }), h2 = ne(Jv, {
14439
+ }), h2 = re(Jv, {
14440
14440
  name: "MuiTouchRipple",
14441
14441
  slot: "Ripple"
14442
14442
  })`
@@ -14635,7 +14635,7 @@ const b2 = Ae("MuiButtonBase", ["root", "disabled", "focusVisible"]), y2 = /* @_
14635
14635
  root: ["root", t && "disabled", o && "focusVisible"]
14636
14636
  }, g2, s);
14637
14637
  return o && n && (l.root += ` ${n}`), l;
14638
- }, "useUtilityClasses$F"), v2 = ne("button", {
14638
+ }, "useUtilityClasses$F"), v2 = re("button", {
14639
14639
  name: "MuiButtonBase",
14640
14640
  slot: "Root"
14641
14641
  })({
@@ -14712,10 +14712,10 @@ const b2 = Ae("MuiButtonBase", ["root", "disabled", "focusVisible"]), y2 = /* @_
14712
14712
  touchRippleRef: D,
14713
14713
  type: R,
14714
14714
  ...L
14715
- } = n, W = S.useRef(null), j = s2(), _ = Mt(j.ref, D), [V, q] = S.useState(!1);
14715
+ } = n, H = S.useRef(null), j = s2(), _ = Mt(j.ref, D), [V, q] = S.useState(!1);
14716
14716
  p && V && q(!1), S.useImperativeHandle(s, () => ({
14717
14717
  focusVisible: /* @__PURE__ */ i(() => {
14718
- q(!0), W.current.focus();
14718
+ q(!0), H.current.focus();
14719
14719
  }, "focusVisible")
14720
14720
  }), []);
14721
14721
  const Z = j.shouldMount && !u && !p;
@@ -14727,9 +14727,9 @@ const b2 = Ae("MuiButtonBase", ["root", "disabled", "focusVisible"]), y2 = /* @_
14727
14727
  }, h), Q = On(j, "start", O, h), ee = On(j, "stop", N, h), se = On(j, "stop", F, h), B = On(j, "stop", (me) => {
14728
14728
  mi(me.target) || q(!1), g && g(me);
14729
14729
  }, !1), pe = fo((me) => {
14730
- W.current || (W.current = me.currentTarget), mi(me.target) && (q(!0), x && x(me)), T && T(me);
14730
+ H.current || (H.current = me.currentTarget), mi(me.target) && (q(!0), x && x(me)), T && T(me);
14731
14731
  }), ae = /* @__PURE__ */ i(() => {
14732
- const me = W.current;
14732
+ const me = H.current;
14733
14733
  return d && d !== "button" && !(me.tagName === "A" && me.href);
14734
14734
  }, "isNonNativeButton"), J = fo((me) => {
14735
14735
  b && !me.repeat && V && me.key === " " && j.stop(me, () => {
@@ -14748,7 +14748,7 @@ const b2 = Ae("MuiButtonBase", ["root", "disabled", "focusVisible"]), y2 = /* @_
14748
14748
  ge.type = R === void 0 && !me ? "button" : R, ge.disabled = p;
14749
14749
  } else
14750
14750
  !L.href && !L.to && (ge.role = "button"), p && (ge["aria-disabled"] = p);
14751
- const xe = Mt(o, W), Ie = {
14751
+ const xe = Mt(o, H), Ie = {
14752
14752
  ...n,
14753
14753
  centerRipple: a,
14754
14754
  component: d,
@@ -14972,7 +14972,7 @@ const vu = Ae("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
14972
14972
  loadingWrapper: ["loadingWrapper"]
14973
14973
  };
14974
14974
  return ke(c, S2, t);
14975
- }, "useUtilityClasses$E"), C2 = ne(ir, {
14975
+ }, "useUtilityClasses$E"), C2 = re(ir, {
14976
14976
  name: "MuiIconButton",
14977
14977
  slot: "Root",
14978
14978
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -15084,7 +15084,7 @@ const vu = Ae("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
15084
15084
  [`&.${vu.loading}`]: {
15085
15085
  color: "transparent"
15086
15086
  }
15087
- }))), w2 = ne("span", {
15087
+ }))), w2 = re("span", {
15088
15088
  name: "MuiIconButton",
15089
15089
  slot: "LoadingIndicator"
15090
15090
  })(({
@@ -15455,7 +15455,7 @@ const yc = /* @__PURE__ */ i((e, t) => {
15455
15455
  input: ["input", n && "disabled", y === "search" && "inputTypeSearch", u && "inputMultiline", b === "small" && "inputSizeSmall", p && "inputHiddenLabel", m && "inputAdornedStart", a && "inputAdornedEnd", h && "readOnly"]
15456
15456
  };
15457
15457
  return ke(g, O2, t);
15458
- }, "useUtilityClasses$D"), Sc = ne("div", {
15458
+ }, "useUtilityClasses$D"), Sc = re("div", {
15459
15459
  name: "MuiInputBase",
15460
15460
  slot: "Root",
15461
15461
  overridesResolver: yc
@@ -15499,7 +15499,7 @@ const yc = /* @__PURE__ */ i((e, t) => {
15499
15499
  width: "100%"
15500
15500
  }
15501
15501
  }]
15502
- }))), xc = ne("input", {
15502
+ }))), xc = re("input", {
15503
15503
  name: "MuiInputBase",
15504
15504
  slot: "Input",
15505
15505
  overridesResolver: vc
@@ -15660,7 +15660,7 @@ const yc = /* @__PURE__ */ i((e, t) => {
15660
15660
  onKeyUp: D,
15661
15661
  placeholder: R,
15662
15662
  readOnly: L,
15663
- renderSuffix: W,
15663
+ renderSuffix: H,
15664
15664
  rows: j,
15665
15665
  size: _,
15666
15666
  slotProps: V = {},
@@ -15716,8 +15716,8 @@ const yc = /* @__PURE__ */ i((e, t) => {
15716
15716
  const me = /* @__PURE__ */ i((be) => {
15717
15717
  Q.current && be.currentTarget === be.target && Q.current.focus(), O && O(be);
15718
15718
  }, "handleClick");
15719
- let We = P, ze = T;
15720
- A && We === "input" && (j ? (process.env.NODE_ENV !== "production" && (I || E) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), ze = {
15719
+ let He = P, ze = T;
15720
+ A && He === "input" && (j ? (process.env.NODE_ENV !== "production" && (I || E) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), ze = {
15721
15721
  type: void 0,
15722
15722
  minRows: j,
15723
15723
  maxRows: j,
@@ -15727,7 +15727,7 @@ const yc = /* @__PURE__ */ i((e, t) => {
15727
15727
  maxRows: E,
15728
15728
  minRows: I,
15729
15729
  ...ze
15730
- }, We = Zv);
15730
+ }, He = Zv);
15731
15731
  const Ct = /* @__PURE__ */ i((be) => {
15732
15732
  ge(be.animationName === "mui-auto-fill-cancel" ? Q.current : {
15733
15733
  value: "x"
@@ -15736,7 +15736,7 @@ const yc = /* @__PURE__ */ i((e, t) => {
15736
15736
  S.useEffect(() => {
15737
15737
  ae && ae.setAdornedStart(!!Z);
15738
15738
  }, [ae, Z]);
15739
- const He = {
15739
+ const je = {
15740
15740
  ...n,
15741
15741
  color: J.color || "primary",
15742
15742
  disabled: J.disabled,
@@ -15750,7 +15750,7 @@ const yc = /* @__PURE__ */ i((e, t) => {
15750
15750
  size: J.size,
15751
15751
  startAdornment: Z,
15752
15752
  type: U
15753
- }, le = I2(He), X = q.root || p.Root || Sc, fe = V.root || u.root || {}, Ge = q.input || p.Input || xc;
15753
+ }, le = I2(je), X = q.root || p.Root || Sc, fe = V.root || u.root || {}, Ge = q.input || p.Input || xc;
15754
15754
  return ze = {
15755
15755
  ...ze,
15756
15756
  ...V.input ?? u.input
@@ -15764,7 +15764,7 @@ const yc = /* @__PURE__ */ i((e, t) => {
15764
15764
  ...te,
15765
15765
  ...!li(X) && {
15766
15766
  ownerState: {
15767
- ...He,
15767
+ ...je,
15768
15768
  ...fe.ownerState
15769
15769
  }
15770
15770
  },
@@ -15791,9 +15791,9 @@ const yc = /* @__PURE__ */ i((e, t) => {
15791
15791
  type: U,
15792
15792
  ...ze,
15793
15793
  ...!li(Ge) && {
15794
- as: We,
15794
+ as: He,
15795
15795
  ownerState: {
15796
- ...He,
15796
+ ...je,
15797
15797
  ...ze.ownerState
15798
15798
  }
15799
15799
  },
@@ -15803,7 +15803,7 @@ const yc = /* @__PURE__ */ i((e, t) => {
15803
15803
  onChange: we,
15804
15804
  onFocus: xe
15805
15805
  })
15806
- }), y, W ? W({
15806
+ }), y, H ? H({
15807
15807
  ...J,
15808
15808
  startAdornment: Z
15809
15809
  }) : null]
@@ -16132,7 +16132,7 @@ const D2 = Ae("MuiBadge", [
16132
16132
  badge: ["badge", a, n && "invisible", `anchorOrigin${ue(o.vertical)}${ue(o.horizontal)}`, `anchorOrigin${ue(o.vertical)}${ue(o.horizontal)}${ue(s)}`, `overlap${ue(s)}`, t !== "default" && `color${ue(t)}`]
16133
16133
  };
16134
16134
  return ke(c, N2, l);
16135
- }, "useUtilityClasses$C"), _2 = ne("span", {
16135
+ }, "useUtilityClasses$C"), _2 = re("span", {
16136
16136
  name: "MuiBadge",
16137
16137
  slot: "Root"
16138
16138
  })({
@@ -16141,7 +16141,7 @@ const D2 = Ae("MuiBadge", [
16141
16141
  // For correct alignment with the text.
16142
16142
  verticalAlign: "middle",
16143
16143
  flexShrink: 0
16144
- }), L2 = ne("span", {
16144
+ }), L2 = re("span", {
16145
16145
  name: "MuiBadge",
16146
16146
  slot: "Badge",
16147
16147
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -16288,7 +16288,7 @@ const Su = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ i(function(t, o) {
16288
16288
  color: F,
16289
16289
  overlap: O,
16290
16290
  variant: M
16291
- }, W = F2(L), j = {
16291
+ }, H = F2(L), j = {
16292
16292
  slots: {
16293
16293
  root: v?.root ?? d.Root,
16294
16294
  badge: v?.badge ?? d.Badge
@@ -16304,7 +16304,7 @@ const Su = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ i(function(t, o) {
16304
16304
  ...x
16305
16305
  },
16306
16306
  ownerState: L,
16307
- className: ce(W.root, a),
16307
+ className: ce(H.root, a),
16308
16308
  ref: o,
16309
16309
  additionalProps: {
16310
16310
  as: c
@@ -16313,7 +16313,7 @@ const Su = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ i(function(t, o) {
16313
16313
  elementType: L2,
16314
16314
  externalForwardedProps: j,
16315
16315
  ownerState: L,
16316
- className: W.badge
16316
+ className: H.badge
16317
16317
  });
16318
16318
  return /* @__PURE__ */ K(_, {
16319
16319
  ...V,
@@ -16452,7 +16452,7 @@ const V2 = /* @__PURE__ */ i((e) => {
16452
16452
  input: ["input"]
16453
16453
  };
16454
16454
  return ke(a, B2, t);
16455
- }, "useUtilityClasses$B"), z2 = ne(ir, {
16455
+ }, "useUtilityClasses$B"), z2 = re(ir, {
16456
16456
  name: "MuiSwitchBase"
16457
16457
  })({
16458
16458
  padding: 9,
@@ -16490,7 +16490,7 @@ const V2 = /* @__PURE__ */ i((e) => {
16490
16490
  marginRight: -12
16491
16491
  }
16492
16492
  }]
16493
- }), j2 = ne("input", {
16493
+ }), j2 = re("input", {
16494
16494
  name: "MuiSwitchBase",
16495
16495
  shouldForwardProp: Jt
16496
16496
  })({
@@ -16546,13 +16546,13 @@ const V2 = /* @__PURE__ */ i((e) => {
16546
16546
  }, "handleInputChange");
16547
16547
  let R = c;
16548
16548
  O && typeof R > "u" && (R = O.disabled);
16549
- const L = C === "checkbox" || C === "radio", W = {
16549
+ const L = C === "checkbox" || C === "radio", H = {
16550
16550
  ...t,
16551
16551
  checked: N,
16552
16552
  disabled: R,
16553
16553
  disableFocusRipple: d,
16554
16554
  edge: p
16555
- }, j = V2(W), _ = {
16555
+ }, j = V2(H), _ = {
16556
16556
  slots: I,
16557
16557
  slotProps: {
16558
16558
  input: b,
@@ -16577,7 +16577,7 @@ const V2 = /* @__PURE__ */ i((e) => {
16577
16577
  Y.onBlur?.(te), M(te);
16578
16578
  }, "onBlur")
16579
16579
  }), "getSlotProps"),
16580
- ownerState: W,
16580
+ ownerState: H,
16581
16581
  additionalProps: {
16582
16582
  centerRipple: !0,
16583
16583
  focusRipple: !d,
@@ -16595,7 +16595,7 @@ const V2 = /* @__PURE__ */ i((e) => {
16595
16595
  Y.onChange?.(te), D(te);
16596
16596
  }, "onChange")
16597
16597
  }), "getSlotProps"),
16598
- ownerState: W,
16598
+ ownerState: H,
16599
16599
  additionalProps: {
16600
16600
  autoFocus: n,
16601
16601
  checked: s,
@@ -16763,7 +16763,7 @@ const md = Ae("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "c
16763
16763
  // forward the disabled and checked classes to the SwitchBase
16764
16764
  ...l
16765
16765
  };
16766
- }, "useUtilityClasses$A"), K2 = ne(e0, {
16766
+ }, "useUtilityClasses$A"), K2 = re(e0, {
16767
16767
  shouldForwardProp: /* @__PURE__ */ i((e) => Jt(e) || e === "classes", "shouldForwardProp"),
16768
16768
  name: "MuiCheckbox",
16769
16769
  slot: "Root",
@@ -17012,7 +17012,7 @@ const Fh = Ae("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle",
17012
17012
  root: ["root", t && "absolute", d, a && "light", l === "vertical" && "vertical", s && "flexItem", o && "withChildren", o && l === "vertical" && "withChildrenVertical", c === "right" && l !== "vertical" && "textAlignRight", c === "left" && l !== "vertical" && "textAlignLeft"],
17013
17013
  wrapper: ["wrapper", l === "vertical" && "wrapperVertical"]
17014
17014
  }, Q2, n);
17015
- }, "useUtilityClasses$z"), ek = ne("div", {
17015
+ }, "useUtilityClasses$z"), ek = re("div", {
17016
17016
  name: "MuiDivider",
17017
17017
  slot: "Root",
17018
17018
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -17153,7 +17153,7 @@ const Fh = Ae("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle",
17153
17153
  }
17154
17154
  }
17155
17155
  }]
17156
- }))), tk = ne("span", {
17156
+ }))), tk = re("span", {
17157
17157
  name: "MuiDivider",
17158
17158
  slot: "Wrapper",
17159
17159
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -17298,7 +17298,7 @@ const nk = /* @__PURE__ */ i((e) => {
17298
17298
  return ke({
17299
17299
  root: ["root", t === "flex-start" && "alignItemsFlexStart"]
17300
17300
  }, ok, o);
17301
- }, "useUtilityClasses$y"), rk = ne("div", {
17301
+ }, "useUtilityClasses$y"), rk = re("div", {
17302
17302
  name: "MuiListItemIcon",
17303
17303
  slot: "Root",
17304
17304
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -17380,7 +17380,7 @@ const Gr = Ae("MuiListItemText", ["root", "multiline", "dense", "inset", "primar
17380
17380
  primary: ["primary"],
17381
17381
  secondary: ["secondary"]
17382
17382
  }, ik, t);
17383
- }, "useUtilityClasses$x"), ak = ne("div", {
17383
+ }, "useUtilityClasses$x"), ak = re("div", {
17384
17384
  name: "MuiListItemText",
17385
17385
  slot: "Root",
17386
17386
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -17714,7 +17714,7 @@ const pk = /* @__PURE__ */ i((e) => {
17714
17714
  return ke({
17715
17715
  root: ["root", !o && "padding", n && "dense", s && "subheader"]
17716
17716
  }, uk, t);
17717
- }, "useUtilityClasses$w"), fk = ne("ul", {
17717
+ }, "useUtilityClasses$w"), fk = re("ul", {
17718
17718
  name: "MuiList",
17719
17719
  slot: "Root",
17720
17720
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -18003,7 +18003,7 @@ const zi = Ae("MuiMenuItem", ["root", "focusVisible", "dense", "disabled", "divi
18003
18003
  ...l,
18004
18004
  ...d
18005
18005
  };
18006
- }, "useUtilityClasses$v"), bk = ne(ir, {
18006
+ }, "useUtilityClasses$v"), bk = re(ir, {
18007
18007
  shouldForwardProp: /* @__PURE__ */ i((e) => Jt(e) || e === "classes", "shouldForwardProp"),
18008
18008
  name: "MuiMenuItem",
18009
18009
  slot: "Root",
@@ -18238,7 +18238,7 @@ const yk = /* @__PURE__ */ i((e) => {
18238
18238
  // forward classes to the InputBase
18239
18239
  ...s
18240
18240
  };
18241
- }, "useUtilityClasses$u"), vk = ne(Sc, {
18241
+ }, "useUtilityClasses$u"), vk = re(Sc, {
18242
18242
  shouldForwardProp: /* @__PURE__ */ i((e) => Jt(e) || e === "classes", "shouldForwardProp"),
18243
18243
  name: "MuiInput",
18244
18244
  slot: "Root",
@@ -18328,7 +18328,7 @@ const yk = /* @__PURE__ */ i((e) => {
18328
18328
  }
18329
18329
  }))]
18330
18330
  };
18331
- })), Sk = ne(xc, {
18331
+ })), Sk = re(xc, {
18332
18332
  name: "MuiInput",
18333
18333
  slot: "Input",
18334
18334
  overridesResolver: vc
@@ -18573,7 +18573,7 @@ const xk = /* @__PURE__ */ i((e) => {
18573
18573
  // forward classes to the InputBase
18574
18574
  ...p
18575
18575
  };
18576
- }, "useUtilityClasses$t"), Ck = ne(Sc, {
18576
+ }, "useUtilityClasses$t"), Ck = re(Sc, {
18577
18577
  shouldForwardProp: /* @__PURE__ */ i((e) => Jt(e) || e === "classes", "shouldForwardProp"),
18578
18578
  name: "MuiFilledInput",
18579
18579
  slot: "Root",
@@ -18716,7 +18716,7 @@ const xk = /* @__PURE__ */ i((e) => {
18716
18716
  }
18717
18717
  }]
18718
18718
  };
18719
- })), wk = ne(xc, {
18719
+ })), wk = re(xc, {
18720
18720
  name: "MuiFilledInput",
18721
18721
  slot: "Input",
18722
18722
  overridesResolver: vc
@@ -19039,7 +19039,7 @@ process.env.NODE_ENV !== "production" && (Pc.propTypes = {
19039
19039
  });
19040
19040
  Pc.muiName = "Input";
19041
19041
  var jh;
19042
- const Tk = ne("fieldset", {
19042
+ const Tk = re("fieldset", {
19043
19043
  name: "MuiNotchedOutlined",
19044
19044
  shouldForwardProp: Jt
19045
19045
  })({
@@ -19057,7 +19057,7 @@ const Tk = ne("fieldset", {
19057
19057
  borderWidth: 1,
19058
19058
  overflow: "hidden",
19059
19059
  minWidth: "0%"
19060
- }), Ek = ne("legend", {
19060
+ }), Ek = re("legend", {
19061
19061
  name: "MuiNotchedOutlined",
19062
19062
  shouldForwardProp: Jt
19063
19063
  })(Ve(({
@@ -19195,7 +19195,7 @@ const Pk = /* @__PURE__ */ i((e) => {
19195
19195
  // forward classes to the InputBase
19196
19196
  ...n
19197
19197
  };
19198
- }, "useUtilityClasses$s"), Ok = ne(Sc, {
19198
+ }, "useUtilityClasses$s"), Ok = re(Sc, {
19199
19199
  shouldForwardProp: /* @__PURE__ */ i((e) => Jt(e) || e === "classes", "shouldForwardProp"),
19200
19200
  name: "MuiOutlinedInput",
19201
19201
  slot: "Root",
@@ -19270,7 +19270,7 @@ const Pk = /* @__PURE__ */ i((e) => {
19270
19270
  }
19271
19271
  }]
19272
19272
  };
19273
- })), Ik = ne(n0, {
19273
+ })), Ik = re(n0, {
19274
19274
  name: "MuiOutlinedInput",
19275
19275
  slot: "NotchedOutline"
19276
19276
  })(Ve(({
@@ -19280,7 +19280,7 @@ const Pk = /* @__PURE__ */ i((e) => {
19280
19280
  return {
19281
19281
  borderColor: e.vars ? e.alpha(e.vars.palette.common.onBackground, 0.23) : t
19282
19282
  };
19283
- })), Rk = ne(xc, {
19283
+ })), Rk = re(xc, {
19284
19284
  name: "MuiOutlinedInput",
19285
19285
  slot: "Input",
19286
19286
  overridesResolver: vc
@@ -19596,7 +19596,7 @@ const as = Ae("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled",
19596
19596
  asterisk: ["asterisk", a && "error"]
19597
19597
  };
19598
19598
  return ke(d, Mk, t);
19599
- }, "useUtilityClasses$r"), Ak = ne("label", {
19599
+ }, "useUtilityClasses$r"), Ak = re("label", {
19600
19600
  name: "MuiFormLabel",
19601
19601
  slot: "Root",
19602
19602
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -19633,7 +19633,7 @@ const as = Ae("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled",
19633
19633
  }
19634
19634
  }
19635
19635
  }]
19636
- }))), $k = ne("span", {
19636
+ }))), $k = re("span", {
19637
19637
  name: "MuiFormLabel",
19638
19638
  slot: "Asterisk"
19639
19639
  })(Ve(({
@@ -19761,7 +19761,7 @@ const Dk = /* @__PURE__ */ i((e) => {
19761
19761
  // forward the focused, disabled, etc. classes to the FormLabel
19762
19762
  ...p
19763
19763
  };
19764
- }, "useUtilityClasses$q"), Fk = ne(r0, {
19764
+ }, "useUtilityClasses$q"), Fk = re(r0, {
19765
19765
  shouldForwardProp: /* @__PURE__ */ i((e) => Jt(e) || e === "classes", "shouldForwardProp"),
19766
19766
  name: "MuiInputLabel",
19767
19767
  slot: "Root",
@@ -20013,7 +20013,7 @@ const Lk = /* @__PURE__ */ i((e) => {
20013
20013
  root: ["root", o !== "none" && `margin${ue(o)}`, n && "fullWidth"]
20014
20014
  };
20015
20015
  return ke(s, _k, t);
20016
- }, "useUtilityClasses$p"), Bk = ne("div", {
20016
+ }, "useUtilityClasses$p"), Bk = re("div", {
20017
20017
  name: "MuiFormControl",
20018
20018
  slot: "Root",
20019
20019
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -20093,8 +20093,8 @@ const Lk = /* @__PURE__ */ i((e) => {
20093
20093
  return s && S.Children.forEach(s, (L) => {
20094
20094
  if (!ei(L, ["Input", "Select"]))
20095
20095
  return;
20096
- const W = ei(L, ["Select"]) ? L.props.input : L;
20097
- W && P2(W.props) && (R = !0);
20096
+ const H = ei(L, ["Select"]) ? L.props.input : L;
20097
+ H && P2(H.props) && (R = !0);
20098
20098
  }), R;
20099
20099
  }), [E, I] = S.useState(() => {
20100
20100
  let R = !1;
@@ -20249,7 +20249,7 @@ const zk = /* @__PURE__ */ i((e) => {
20249
20249
  root: ["root", s && "disabled", a && "error", n && `size${ue(n)}`, o && "contained", c && "focused", l && "filled", d && "required"]
20250
20250
  };
20251
20251
  return ke(p, Vk, t);
20252
- }, "useUtilityClasses$o"), jk = ne("p", {
20252
+ }, "useUtilityClasses$o"), jk = re("p", {
20253
20253
  name: "MuiFormHelperText",
20254
20254
  slot: "Root",
20255
20255
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -20438,7 +20438,7 @@ const Wk = {
20438
20438
  Op(D);
20439
20439
  const {
20440
20440
  duration: L,
20441
- delay: W,
20441
+ delay: H,
20442
20442
  easing: j
20443
20443
  } = Dn({
20444
20444
  style: y,
@@ -20450,17 +20450,17 @@ const Wk = {
20450
20450
  let _;
20451
20451
  g === "auto" ? (_ = x.transitions.getAutoHeightDuration(D.clientHeight), T.current = _) : _ = L, D.style.transition = [x.transitions.create("opacity", {
20452
20452
  duration: _,
20453
- delay: W
20453
+ delay: H
20454
20454
  }), x.transitions.create("transform", {
20455
20455
  duration: gd ? _ : _ * 0.666,
20456
- delay: W,
20456
+ delay: H,
20457
20457
  easing: j
20458
20458
  })].join(","), d && d(D, R);
20459
20459
  }), N = I(p), F = I(m), O = I((D) => {
20460
20460
  const {
20461
20461
  duration: R,
20462
20462
  delay: L,
20463
- easing: W
20463
+ easing: H
20464
20464
  } = Dn({
20465
20465
  style: y,
20466
20466
  timeout: g,
@@ -20475,7 +20475,7 @@ const Wk = {
20475
20475
  }), x.transitions.create("transform", {
20476
20476
  duration: gd ? j : j * 0.666,
20477
20477
  delay: gd ? L : L || j * 0.333,
20478
- easing: W
20478
+ easing: H
20479
20479
  })].join(","), D.style.opacity = 0, D.style.transform = Cu(0.75), h && h(D);
20480
20480
  }), $ = I(b);
20481
20481
  return /* @__PURE__ */ f(v, {
@@ -20616,10 +20616,10 @@ const Uk = /* @__PURE__ */ i((e) => {
20616
20616
  root: ["root"],
20617
20617
  paper: ["paper"]
20618
20618
  }, Hk, t);
20619
- }, "useUtilityClasses$n"), Gk = ne(uc, {
20619
+ }, "useUtilityClasses$n"), Gk = re(uc, {
20620
20620
  name: "MuiPopover",
20621
20621
  slot: "Root"
20622
- })({}), l0 = ne(Xo, {
20622
+ })({}), l0 = re(Xo, {
20623
20623
  name: "MuiPopover",
20624
20624
  slot: "Paper"
20625
20625
  })({
@@ -20738,7 +20738,7 @@ const Uk = /* @__PURE__ */ i((e) => {
20738
20738
  S.useEffect(() => (E && window.addEventListener("scroll", R), () => window.removeEventListener("scroll", R)), [a, E, R]);
20739
20739
  const L = /* @__PURE__ */ i(() => {
20740
20740
  R();
20741
- }, "handleEntering"), W = /* @__PURE__ */ i(() => {
20741
+ }, "handleEntering"), H = /* @__PURE__ */ i(() => {
20742
20742
  D(!1);
20743
20743
  }, "handleExited");
20744
20744
  S.useEffect(() => {
@@ -20778,7 +20778,7 @@ const Uk = /* @__PURE__ */ i((e) => {
20778
20778
  ee.onEntering?.(se, B), L();
20779
20779
  }, "onEntering"),
20780
20780
  onExited: /* @__PURE__ */ i((se) => {
20781
- ee.onExited?.(se), W();
20781
+ ee.onExited?.(se), H();
20782
20782
  }, "onExited")
20783
20783
  }), "getSlotProps"),
20784
20784
  additionalProps: {
@@ -21063,11 +21063,11 @@ const Kk = {
21063
21063
  paper: ["paper"],
21064
21064
  list: ["list"]
21065
21065
  }, qk, t);
21066
- }, "useUtilityClasses$m"), Jk = ne(c0, {
21066
+ }, "useUtilityClasses$m"), Jk = re(c0, {
21067
21067
  shouldForwardProp: /* @__PURE__ */ i((e) => Jt(e) || e === "classes", "shouldForwardProp"),
21068
21068
  name: "MuiMenu",
21069
21069
  slot: "Root"
21070
- })({}), Qk = ne(l0, {
21070
+ })({}), Qk = re(l0, {
21071
21071
  name: "MuiMenu",
21072
21072
  slot: "Paper"
21073
21073
  })({
@@ -21077,7 +21077,7 @@ const Kk = {
21077
21077
  maxHeight: "calc(100% - 96px)",
21078
21078
  // Add iOS momentum scrolling for iOS < 13.0
21079
21079
  WebkitOverflowScrolling: "touch"
21080
- }), Zk = ne(o0, {
21080
+ }), Zk = re(o0, {
21081
21081
  name: "MuiMenu",
21082
21082
  slot: "List"
21083
21083
  })({
@@ -21159,7 +21159,7 @@ const Kk = {
21159
21159
  }, "onKeyDown")
21160
21160
  }), "getSlotProps"),
21161
21161
  ownerState: C
21162
- }), W = typeof O.slotProps.transition == "function" ? O.slotProps.transition(C) : O.slotProps.transition;
21162
+ }), H = typeof O.slotProps.transition == "function" ? O.slotProps.transition(C) : O.slotProps.transition;
21163
21163
  return /* @__PURE__ */ f(Jk, {
21164
21164
  onClose: p,
21165
21165
  anchorOrigin: {
@@ -21181,9 +21181,9 @@ const Kk = {
21181
21181
  paper: D,
21182
21182
  backdrop: typeof P.backdrop == "function" ? P.backdrop(C) : P.backdrop,
21183
21183
  transition: {
21184
- ...W,
21184
+ ...H,
21185
21185
  onEntering: /* @__PURE__ */ i((...j) => {
21186
- k(...j), W?.onEntering?.(...j);
21186
+ k(...j), H?.onEntering?.(...j);
21187
21187
  }, "onEntering")
21188
21188
  }
21189
21189
  },
@@ -21331,7 +21331,7 @@ const Kp = Ae("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
21331
21331
  icon: ["icon", `icon${ue(o)}`, a && "iconOpen", n && "disabled"]
21332
21332
  };
21333
21333
  return ke(c, eA, t);
21334
- }, "useUtilityClasses$l"), d0 = ne("select", {
21334
+ }, "useUtilityClasses$l"), d0 = re("select", {
21335
21335
  name: "MuiNativeSelect"
21336
21336
  })(({
21337
21337
  theme: e
@@ -21395,7 +21395,7 @@ const Kp = Ae("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
21395
21395
  }
21396
21396
  }
21397
21397
  }]
21398
- })), oA = ne(d0, {
21398
+ })), oA = re(d0, {
21399
21399
  name: "MuiNativeSelect",
21400
21400
  slot: "Select",
21401
21401
  shouldForwardProp: Jt,
@@ -21407,7 +21407,7 @@ const Kp = Ae("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
21407
21407
  [`&.${Kp.multiple}`]: t.multiple
21408
21408
  }];
21409
21409
  }, "overridesResolver")
21410
- })({}), u0 = ne("svg", {
21410
+ })({}), u0 = re("svg", {
21411
21411
  name: "MuiNativeSelect"
21412
21412
  })(({
21413
21413
  theme: e
@@ -21446,7 +21446,7 @@ const Kp = Ae("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
21446
21446
  right: 7
21447
21447
  }
21448
21448
  }]
21449
- })), nA = ne(u0, {
21449
+ })), nA = re(u0, {
21450
21450
  name: "MuiNativeSelect",
21451
21451
  slot: "Icon",
21452
21452
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -21545,7 +21545,7 @@ function f0(e) {
21545
21545
  i(f0, "getSelectUtilityClasses");
21546
21546
  const ji = Ae("MuiSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "focused", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]);
21547
21547
  var Kh;
21548
- const rA = ne(d0, {
21548
+ const rA = re(d0, {
21549
21549
  name: "MuiSelect",
21550
21550
  slot: "Select",
21551
21551
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -21579,7 +21579,7 @@ const rA = ne(d0, {
21579
21579
  whiteSpace: "nowrap",
21580
21580
  overflow: "hidden"
21581
21581
  }
21582
- }), iA = ne(u0, {
21582
+ }), iA = re(u0, {
21583
21583
  name: "MuiSelect",
21584
21584
  slot: "Icon",
21585
21585
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -21588,7 +21588,7 @@ const rA = ne(d0, {
21588
21588
  } = e;
21589
21589
  return [t.icon, o.variant && t[`icon${ue(o.variant)}`], o.open && t.iconOpen];
21590
21590
  }, "overridesResolver")
21591
- })({}), sA = ne("input", {
21591
+ })({}), sA = re("input", {
21592
21592
  shouldForwardProp: /* @__PURE__ */ i((e) => Yy(e) && e !== "classes", "shouldForwardProp"),
21593
21593
  name: "MuiSelect",
21594
21594
  slot: "NativeInput"
@@ -21659,11 +21659,11 @@ const lA = /* @__PURE__ */ i((e) => {
21659
21659
  tabIndex: R,
21660
21660
  // catching `type` from Input which makes no sense for SelectInput
21661
21661
  type: L,
21662
- value: W,
21662
+ value: H,
21663
21663
  variant: j = "standard",
21664
21664
  ..._
21665
21665
  } = t, [V, q] = fl({
21666
- controlled: W,
21666
+ controlled: H,
21667
21667
  default: u,
21668
21668
  name: "Select"
21669
21669
  }), [Z, U] = fl({
@@ -21748,7 +21748,7 @@ const lA = /* @__PURE__ */ i((e) => {
21748
21748
  // https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
21749
21749
  "Enter"
21750
21750
  ].includes(Ce.key) && (Ce.preventDefault(), de(!0, Ce)), A?.(Ce));
21751
- }, "handleKeyDown"), We = /* @__PURE__ */ i((Ce) => {
21751
+ }, "handleKeyDown"), He = /* @__PURE__ */ i((Ce) => {
21752
21752
  !J && x && (Object.defineProperty(Ce, "target", {
21753
21753
  writable: !0,
21754
21754
  value: {
@@ -21759,7 +21759,7 @@ const lA = /* @__PURE__ */ i((e) => {
21759
21759
  }, "handleBlur");
21760
21760
  delete _["aria-invalid"];
21761
21761
  let ze, Ct;
21762
- const He = [];
21762
+ const je = [];
21763
21763
  let le = !1, X = !1;
21764
21764
  (Pl({
21765
21765
  value: V
@@ -21773,7 +21773,7 @@ const lA = /* @__PURE__ */ i((e) => {
21773
21773
  if (P) {
21774
21774
  if (!Array.isArray(V))
21775
21775
  throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." : Nn(2));
21776
- Le = V.some((pt) => Yh(pt, Ce.props.value)), Le && le && He.push(Ce.props.children);
21776
+ Le = V.some((pt) => Yh(pt, Ce.props.value)), Le && le && je.push(Ce.props.children);
21777
21777
  } else
21778
21778
  Le = Yh(V, Ce.props.value), Le && le && (Ct = Ce.props.children);
21779
21779
  return Le && (X = !0), /* @__PURE__ */ S.cloneElement(Ce, {
@@ -21796,7 +21796,7 @@ const lA = /* @__PURE__ */ i((e) => {
21796
21796
  console.warn([`MUI: You have provided an out-of-range value \`${V}\` for the select ${T ? `(name="${T}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${Ce.filter((Le) => Le != null).map((Le) => `\`${Le}\``).join(", ") || '""'}.`].join(`
21797
21797
  `));
21798
21798
  }
21799
- }, [X, xe, P, T, V]), le && (P ? He.length === 0 ? ze = null : ze = He.reduce((Ce, Le, pt) => (Ce.push(Le), pt < He.length - 1 && Ce.push(", "), Ce), []) : ze = Ct);
21799
+ }, [X, xe, P, T, V]), le && (P ? je.length === 0 ? ze = null : ze = je.reduce((Ce, Le, pt) => (Ce.push(Le), pt < je.length - 1 && Ce.push(", "), Ce), []) : ze = Ct);
21800
21800
  let Ge = ee;
21801
21801
  !l && Q && z && (Ge = ae.clientWidth);
21802
21802
  let be;
@@ -21831,7 +21831,7 @@ const lA = /* @__PURE__ */ i((e) => {
21831
21831
  "aria-invalid": m ? "true" : void 0,
21832
21832
  onKeyDown: me,
21833
21833
  onMouseDown: h || O ? null : ie,
21834
- onBlur: We,
21834
+ onBlur: He,
21835
21835
  onFocus: I,
21836
21836
  ...D,
21837
21837
  ownerState: Je,
@@ -22061,7 +22061,7 @@ const cA = /* @__PURE__ */ i((e) => {
22061
22061
  name: "MuiSelect",
22062
22062
  slot: "Root",
22063
22063
  shouldForwardProp: /* @__PURE__ */ i((e) => Jt(e) && e !== "variant", "shouldForwardProp")
22064
- }, dA = ne(Ec, Yp)(""), uA = ne(Oc, Yp)(""), pA = ne(Pc, Yp)(""), Xp = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ i(function(t, o) {
22064
+ }, dA = re(Ec, Yp)(""), uA = re(Oc, Yp)(""), pA = re(Pc, Yp)(""), Xp = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ i(function(t, o) {
22065
22065
  const n = $e({
22066
22066
  name: "MuiSelect",
22067
22067
  props: t
@@ -22099,7 +22099,7 @@ const cA = /* @__PURE__ */ i((e) => {
22099
22099
  }, D = cA(M), {
22100
22100
  root: R,
22101
22101
  ...L
22102
- } = D, W = b || {
22102
+ } = D, H = b || {
22103
22103
  standard: /* @__PURE__ */ f(dA, {
22104
22104
  ownerState: M
22105
22105
  }),
@@ -22110,9 +22110,9 @@ const cA = /* @__PURE__ */ i((e) => {
22110
22110
  filled: /* @__PURE__ */ f(pA, {
22111
22111
  ownerState: M
22112
22112
  })
22113
- }[$], j = Mt(o, Rr(W));
22113
+ }[$], j = Mt(o, Rr(H));
22114
22114
  return /* @__PURE__ */ f(S.Fragment, {
22115
- children: /* @__PURE__ */ S.cloneElement(W, {
22115
+ children: /* @__PURE__ */ S.cloneElement(H, {
22116
22116
  // Most of the logic is implemented in `SelectInput`.
22117
22117
  // The `Select` component is a simple API wrapper to expose something better to play with.
22118
22118
  inputComponent: N,
@@ -22149,7 +22149,7 @@ const cA = /* @__PURE__ */ i((e) => {
22149
22149
  notched: !0
22150
22150
  } : {},
22151
22151
  ref: j,
22152
- className: ce(W.props.className, c, D.root),
22152
+ className: ce(H.props.className, c, D.root),
22153
22153
  // If a custom input is provided via 'input' prop, do not allow 'variant' to be propagated to it's root element. See https://github.com/mui/material-ui/issues/33894.
22154
22154
  ...!b && {
22155
22155
  variant: $
@@ -22322,7 +22322,7 @@ const mA = {
22322
22322
  return ke({
22323
22323
  root: ["root"]
22324
22324
  }, fA, t);
22325
- }, "useUtilityClasses$i"), gA = ne(s0, {
22325
+ }, "useUtilityClasses$i"), gA = re(s0, {
22326
22326
  name: "MuiTextField",
22327
22327
  slot: "Root"
22328
22328
  })({}), Ic = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ i(function(t, o) {
@@ -22360,7 +22360,7 @@ const mA = {
22360
22360
  select: D = !1,
22361
22361
  SelectProps: R,
22362
22362
  slots: L = {},
22363
- slotProps: W = {},
22363
+ slotProps: H = {},
22364
22364
  type: j,
22365
22365
  value: _,
22366
22366
  variant: V = "outlined",
@@ -22386,7 +22386,7 @@ const mA = {
22386
22386
  htmlInput: w,
22387
22387
  formHelperText: b,
22388
22388
  select: R,
22389
- ...W
22389
+ ...H
22390
22390
  }
22391
22391
  }, ee = {}, se = Q.slotProps.inputLabel;
22392
22392
  V === "outlined" && (se && typeof se.shrink < "u" && (ee.notched = se.shrink), ee.label = x), D && ((!R || !R.native) && (ee.id = void 0), ee["aria-describedby"] = void 0);
@@ -22425,7 +22425,7 @@ const mA = {
22425
22425
  elementType: a0,
22426
22426
  externalForwardedProps: Q,
22427
22427
  ownerState: Z
22428
- }), [me, We] = _e("select", {
22428
+ }), [me, He] = _e("select", {
22429
22429
  elementType: Xp,
22430
22430
  externalForwardedProps: Q,
22431
22431
  ownerState: Z
@@ -22467,7 +22467,7 @@ const mA = {
22467
22467
  labelId: z,
22468
22468
  value: _,
22469
22469
  input: ze,
22470
- ...We,
22470
+ ...He,
22471
22471
  children: l
22472
22472
  }) : ze, y && /* @__PURE__ */ f(Ie, {
22473
22473
  id: te,
@@ -22735,7 +22735,7 @@ const yA = /* @__PURE__ */ i((e) => {
22735
22735
  fontSize: 22
22736
22736
  }
22737
22737
  }
22738
- }], vA = ne(ir, {
22738
+ }], vA = re(ir, {
22739
22739
  shouldForwardProp: /* @__PURE__ */ i((e) => Jt(e) || e === "classes", "shouldForwardProp"),
22740
22740
  name: "MuiButton",
22741
22741
  slot: "Root",
@@ -22943,7 +22943,7 @@ const yA = /* @__PURE__ */ i((e) => {
22943
22943
  }
22944
22944
  }]
22945
22945
  };
22946
- })), SA = ne("span", {
22946
+ })), SA = re("span", {
22947
22947
  name: "MuiButton",
22948
22948
  slot: "StartIcon",
22949
22949
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -22986,7 +22986,7 @@ const yA = /* @__PURE__ */ i((e) => {
22986
22986
  marginRight: -8
22987
22987
  }
22988
22988
  }, ...b0]
22989
- })), xA = ne("span", {
22989
+ })), xA = re("span", {
22990
22990
  name: "MuiButton",
22991
22991
  slot: "EndIcon",
22992
22992
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -23029,7 +23029,7 @@ const yA = /* @__PURE__ */ i((e) => {
23029
23029
  marginLeft: -8
23030
23030
  }
23031
23031
  }, ...b0]
23032
- })), CA = ne("span", {
23032
+ })), CA = re("span", {
23033
23033
  name: "MuiButton",
23034
23034
  slot: "LoadingIndicator"
23035
23035
  })(({
@@ -23119,7 +23119,7 @@ const yA = /* @__PURE__ */ i((e) => {
23119
23119
  right: -10
23120
23120
  }
23121
23121
  }]
23122
- })), Xh = ne("span", {
23122
+ })), Xh = re("span", {
23123
23123
  name: "MuiButton",
23124
23124
  slot: "LoadingIconPlaceholder"
23125
23125
  })({
@@ -23349,7 +23349,7 @@ const EA = /* @__PURE__ */ i((e) => {
23349
23349
  arrow: ["arrow"]
23350
23350
  };
23351
23351
  return ke(l, wA, t);
23352
- }, "useUtilityClasses$g"), PA = ne(Gp, {
23352
+ }, "useUtilityClasses$g"), PA = re(Gp, {
23353
23353
  name: "MuiTooltip",
23354
23354
  slot: "Popper",
23355
23355
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -23452,7 +23452,7 @@ const EA = /* @__PURE__ */ i((e) => {
23452
23452
  }
23453
23453
  }
23454
23454
  }]
23455
- }))), OA = ne("div", {
23455
+ }))), OA = re("div", {
23456
23456
  name: "MuiTooltip",
23457
23457
  slot: "Tooltip",
23458
23458
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -23573,7 +23573,7 @@ const EA = /* @__PURE__ */ i((e) => {
23573
23573
  }
23574
23574
  }
23575
23575
  }]
23576
- }))), IA = ne("span", {
23576
+ }))), IA = re("span", {
23577
23577
  name: "MuiTooltip",
23578
23578
  slot: "Arrow"
23579
23579
  })(Ve(({
@@ -23643,7 +23643,7 @@ const ta = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ i(function(t, o) {
23643
23643
  ...R
23644
23644
  } = n, L = /* @__PURE__ */ S.isValidElement(a) ? a : /* @__PURE__ */ f("span", {
23645
23645
  children: a
23646
- }), W = Ao(), j = Pr(), [_, V] = S.useState(), [q, Z] = S.useState(null), U = S.useRef(!1), Y = b || w, te = vr(), z = vr(), G = vr(), Q = vr(), [ee, se] = fl({
23646
+ }), H = Ao(), j = Pr(), [_, V] = S.useState(), [q, Z] = S.useState(null), U = S.useRef(!1), Y = b || w, te = vr(), z = vr(), G = vr(), Q = vr(), [ee, se] = fl({
23647
23647
  controlled: I,
23648
23648
  default: !1,
23649
23649
  name: "Tooltip",
@@ -23672,7 +23672,7 @@ const ta = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ i(function(t, o) {
23672
23672
  (Ne) => {
23673
23673
  Jh.start(800 + T, () => {
23674
23674
  Ia = !1;
23675
- }), se(!1), C && B && C(Ne), te.start(W.transitions.duration.shortest, () => {
23675
+ }), se(!1), C && B && C(Ne), te.start(H.transitions.duration.shortest, () => {
23676
23676
  U.current = !1;
23677
23677
  });
23678
23678
  }
@@ -23697,12 +23697,12 @@ const ta = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ i(function(t, o) {
23697
23697
  }
23698
23698
  }, "handleBlur"), me = /* @__PURE__ */ i((Ne) => {
23699
23699
  _ || V(Ne.currentTarget), mi(Ne.target) && (Ie(!0), ge(Ne));
23700
- }, "handleFocus"), We = /* @__PURE__ */ i((Ne) => {
23700
+ }, "handleFocus"), He = /* @__PURE__ */ i((Ne) => {
23701
23701
  U.current = !0;
23702
23702
  const Pt = L.props;
23703
23703
  Pt.onTouchStart && Pt.onTouchStart(Ne);
23704
23704
  }, "detectTouchStart"), ze = /* @__PURE__ */ i((Ne) => {
23705
- We(Ne), G.clear(), te.clear(), J(), ae.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", Q.start(v, () => {
23705
+ He(Ne), G.clear(), te.clear(), J(), ae.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", Q.start(v, () => {
23706
23706
  document.body.style.WebkitUserSelect = ae.current, ge(Ne);
23707
23707
  });
23708
23708
  }, "handleTouchStart"), Ct = /* @__PURE__ */ i((Ne) => {
@@ -23720,7 +23720,7 @@ const ta = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ i(function(t, o) {
23720
23720
  document.removeEventListener("keydown", Ne);
23721
23721
  };
23722
23722
  }, [ie, B]);
23723
- const He = Mt(Rr(L), V, o);
23723
+ const je = Mt(Rr(L), V, o);
23724
23724
  !$ && $ !== 0 && (B = !1);
23725
23725
  const le = S.useRef(), X = /* @__PURE__ */ i((Ne) => {
23726
23726
  const Pt = L.props;
@@ -23735,8 +23735,8 @@ const ta = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ i(function(t, o) {
23735
23735
  ...R,
23736
23736
  ...L.props,
23737
23737
  className: ce(R.className, L.props.className),
23738
- onTouchStart: We,
23739
- ref: He,
23738
+ onTouchStart: He,
23739
+ ref: je,
23740
23740
  ...w ? {
23741
23741
  onMouseMove: X
23742
23742
  } : {}
@@ -23836,7 +23836,7 @@ const ta = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ i(function(t, o) {
23836
23836
  children: /* @__PURE__ */ i(({
23837
23837
  TransitionProps: Ne
23838
23838
  }) => /* @__PURE__ */ f(Et, {
23839
- timeout: W.transitions.duration.shorter,
23839
+ timeout: H.transitions.duration.shorter,
23840
23840
  ...Ne,
23841
23841
  ...Wt,
23842
23842
  children: /* @__PURE__ */ K(ln, {
@@ -24050,7 +24050,7 @@ const MA = /* @__PURE__ */ i((e) => {
24050
24050
  return ke({
24051
24051
  root: ["root", !o && "gutters", n]
24052
24052
  }, RA, t);
24053
- }, "useUtilityClasses$f"), kA = ne("div", {
24053
+ }, "useUtilityClasses$f"), kA = re("div", {
24054
24054
  name: "MuiToolbar",
24055
24055
  slot: "Root",
24056
24056
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -24238,7 +24238,7 @@ const LA = Ae("MuiTabScrollButton", ["root", "vertical", "horizontal", "disabled
24238
24238
  return ke({
24239
24239
  root: ["root", o, n && "disabled"]
24240
24240
  }, _A, t);
24241
- }, "useUtilityClasses$e"), VA = ne(ir, {
24241
+ }, "useUtilityClasses$e"), VA = re(ir, {
24242
24242
  name: "MuiTabScrollButton",
24243
24243
  slot: "Root",
24244
24244
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -24413,7 +24413,7 @@ const bd = Ae("MuiTabs", ["root", "vertical", "list", "flexContainer", "flexCont
24413
24413
  scrollableX: [s && "scrollableX"],
24414
24414
  hideScrollbar: [n && "hideScrollbar"]
24415
24415
  }, zA, d);
24416
- }, "useUtilityClasses$d"), WA = ne("div", {
24416
+ }, "useUtilityClasses$d"), WA = re("div", {
24417
24417
  name: "MuiTabs",
24418
24418
  slot: "Root",
24419
24419
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -24453,7 +24453,7 @@ const bd = Ae("MuiTabs", ["root", "vertical", "list", "flexContainer", "flexCont
24453
24453
  }
24454
24454
  }
24455
24455
  }]
24456
- }))), HA = ne("div", {
24456
+ }))), HA = re("div", {
24457
24457
  name: "MuiTabs",
24458
24458
  slot: "Scroller",
24459
24459
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -24505,7 +24505,7 @@ const bd = Ae("MuiTabs", ["root", "vertical", "list", "flexContainer", "flexCont
24505
24505
  overflowX: "hidden"
24506
24506
  }
24507
24507
  }]
24508
- }), UA = ne("div", {
24508
+ }), UA = re("div", {
24509
24509
  name: "MuiTabs",
24510
24510
  slot: "List",
24511
24511
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -24531,7 +24531,7 @@ const bd = Ae("MuiTabs", ["root", "vertical", "list", "flexContainer", "flexCont
24531
24531
  justifyContent: "center"
24532
24532
  }
24533
24533
  }]
24534
- }), GA = ne("span", {
24534
+ }), GA = re("span", {
24535
24535
  name: "MuiTabs",
24536
24536
  slot: "Indicator"
24537
24537
  })(Ve(({
@@ -24566,7 +24566,7 @@ const bd = Ae("MuiTabs", ["root", "vertical", "list", "flexContainer", "flexCont
24566
24566
  right: 0
24567
24567
  }
24568
24568
  }]
24569
- }))), qA = ne(v0)({
24569
+ }))), qA = re(v0)({
24570
24570
  overflowX: "auto",
24571
24571
  overflowY: "hidden",
24572
24572
  // Hide dimensionless scrollbar on macOS
@@ -24609,7 +24609,7 @@ const x0 = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ i(function(t, o) {
24609
24609
  variant: N = "standard",
24610
24610
  visibleScrollbar: F = !1,
24611
24611
  ...O
24612
- } = n, $ = N === "scrollable", M = v === "vertical", D = M ? "scrollTop" : "scrollLeft", R = M ? "top" : "left", L = M ? "bottom" : "right", W = M ? "clientHeight" : "clientWidth", j = M ? "height" : "width", _ = {
24612
+ } = n, $ = N === "scrollable", M = v === "vertical", D = M ? "scrollTop" : "scrollLeft", R = M ? "top" : "left", L = M ? "bottom" : "right", H = M ? "clientHeight" : "clientWidth", j = M ? "height" : "width", _ = {
24613
24613
  ...n,
24614
24614
  component: b,
24615
24615
  allowScrollButtonsMobile: m,
@@ -24701,26 +24701,26 @@ const x0 = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ i(function(t, o) {
24701
24701
  Re ? DA(D, ie.current, ye, {
24702
24702
  duration: s.transitions.duration.standard
24703
24703
  }) : ie.current[D] = ye;
24704
- }, "scroll"), We = /* @__PURE__ */ i((ye) => {
24704
+ }, "scroll"), He = /* @__PURE__ */ i((ye) => {
24705
24705
  let Re = ie.current[D];
24706
24706
  M ? Re += ye : Re += ye * (a ? -1 : 1), me(Re);
24707
24707
  }, "moveTabsScroll"), ze = /* @__PURE__ */ i(() => {
24708
- const ye = ie.current[W];
24708
+ const ye = ie.current[H];
24709
24709
  let Re = 0;
24710
24710
  const Ke = Array.from(ge.current.children);
24711
24711
  for (let Xe = 0; Xe < Ke.length; Xe += 1) {
24712
24712
  const Se = Ke[Xe];
24713
- if (Re + Se[W] > ye) {
24713
+ if (Re + Se[H] > ye) {
24714
24714
  Xe === 0 && (Re = ye);
24715
24715
  break;
24716
24716
  }
24717
- Re += Se[W];
24717
+ Re += Se[H];
24718
24718
  }
24719
24719
  return Re;
24720
24720
  }, "getScrollSize"), Ct = /* @__PURE__ */ i(() => {
24721
- We(-1 * ze());
24722
- }, "handleStartScrollClick"), He = /* @__PURE__ */ i(() => {
24723
- We(ze());
24721
+ He(-1 * ze());
24722
+ }, "handleStartScrollClick"), je = /* @__PURE__ */ i(() => {
24723
+ He(ze());
24724
24724
  }, "handleEndScrollClick"), [le, {
24725
24725
  onChange: X,
24726
24726
  ...fe
@@ -24765,7 +24765,7 @@ const x0 = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ i(function(t, o) {
24765
24765
  ...wt
24766
24766
  }) : null, ye.scrollButtonEnd = Ke ? /* @__PURE__ */ f(be, {
24767
24767
  direction: a ? "left" : "right",
24768
- onClick: He,
24768
+ onClick: je,
24769
24769
  disabled: !ee,
24770
24770
  ...wt
24771
24771
  }) : null, ye;
@@ -25127,7 +25127,7 @@ const Do = Ae("MuiTab", ["root", "labelIcon", "textColorInherit", "textColorPrim
25127
25127
  icon: ["iconWrapper", "icon"]
25128
25128
  };
25129
25129
  return ke(p, KA, t);
25130
- }, "useUtilityClasses$c"), XA = ne(ir, {
25130
+ }, "useUtilityClasses$c"), XA = re(ir, {
25131
25131
  name: "MuiTab",
25132
25132
  slot: "Root",
25133
25133
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -26711,7 +26711,7 @@ const Hr = Ae("MuiListItemButton", ["root", "focusVisible", "dense", "alignItems
26711
26711
  ...o,
26712
26712
  ...p
26713
26713
  };
26714
- }, "useUtilityClasses$b"), oN = ne(ir, {
26714
+ }, "useUtilityClasses$b"), oN = re(ir, {
26715
26715
  shouldForwardProp: /* @__PURE__ */ i((e) => Jt(e) || e === "classes", "shouldForwardProp"),
26716
26716
  name: "MuiListItemButton",
26717
26717
  slot: "Root",
@@ -26930,7 +26930,7 @@ const rN = /* @__PURE__ */ i((e) => {
26930
26930
  return ke({
26931
26931
  root: ["root", t && "disableGutters"]
26932
26932
  }, nN, o);
26933
- }, "useUtilityClasses$a"), iN = ne("div", {
26933
+ }, "useUtilityClasses$a"), iN = re("div", {
26934
26934
  name: "MuiListItemSecondaryAction",
26935
26935
  slot: "Root",
26936
26936
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -27013,7 +27013,7 @@ const sN = /* @__PURE__ */ i((e, t) => {
27013
27013
  container: ["container"],
27014
27014
  secondaryAction: ["secondaryAction"]
27015
27015
  }, Q$, o);
27016
- }, "useUtilityClasses$9"), lN = ne("div", {
27016
+ }, "useUtilityClasses$9"), lN = re("div", {
27017
27017
  name: "MuiListItem",
27018
27018
  slot: "Root",
27019
27019
  overridesResolver: sN
@@ -27112,7 +27112,7 @@ const sN = /* @__PURE__ */ i((e, t) => {
27112
27112
  paddingRight: 48
27113
27113
  }
27114
27114
  }]
27115
- }))), cN = ne("li", {
27115
+ }))), cN = re("li", {
27116
27116
  name: "MuiListItem",
27117
27117
  slot: "Container"
27118
27118
  })({
@@ -27161,12 +27161,12 @@ const sN = /* @__PURE__ */ i((e, t) => {
27161
27161
  externalForwardedProps: $,
27162
27162
  ownerState: N,
27163
27163
  className: F.secondaryAction
27164
- }), R = T.root || d.Root || lN, L = P.root || p.root || {}, W = {
27164
+ }), R = T.root || d.Root || lN, L = P.root || p.root || {}, H = {
27165
27165
  className: ce(F.root, L.className, l),
27166
27166
  ...x
27167
27167
  };
27168
27168
  let j = c || "li";
27169
- return k ? (j = !W.component && !c ? "div" : j, u === "li" && (j === "li" ? j = "div" : W.component === "li" && (W.component = "div")), /* @__PURE__ */ f(jo.Provider, {
27169
+ return k ? (j = !H.component && !c ? "div" : j, u === "li" && (j === "li" ? j = "div" : H.component === "li" && (H.component = "div")), /* @__PURE__ */ f(jo.Provider, {
27170
27170
  value: E,
27171
27171
  children: /* @__PURE__ */ K(cN, {
27172
27172
  as: u,
@@ -27183,7 +27183,7 @@ const sN = /* @__PURE__ */ i((e, t) => {
27183
27183
  ...L.ownerState
27184
27184
  }
27185
27185
  },
27186
- ...W,
27186
+ ...H,
27187
27187
  children: A
27188
27188
  }), A.pop()]
27189
27189
  })
@@ -27199,7 +27199,7 @@ const sN = /* @__PURE__ */ i((e, t) => {
27199
27199
  ...L.ownerState
27200
27200
  }
27201
27201
  },
27202
- ...W,
27202
+ ...H,
27203
27203
  children: [A, w && /* @__PURE__ */ f(M, {
27204
27204
  ...D,
27205
27205
  children: w
@@ -27418,11 +27418,11 @@ const of = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ i(function(t, o) {
27418
27418
  // eslint-disable-next-line react/prop-types
27419
27419
  TransitionComponent: C = Yo,
27420
27420
  ...E
27421
- } = t, I = S.useRef(null), A = Mt(Rr(d), I, o), k = /* @__PURE__ */ i((W) => (j) => {
27422
- W && (j === void 0 ? W(I.current) : W(I.current, j));
27423
- }, "normalizedTransitionCallback"), N = k((W, j) => {
27424
- Na(u, W, p), Op(W), m && m(W, j);
27425
- }), F = k((W, j) => {
27421
+ } = t, I = S.useRef(null), A = Mt(Rr(d), I, o), k = /* @__PURE__ */ i((H) => (j) => {
27422
+ H && (j === void 0 ? H(I.current) : H(I.current, j));
27423
+ }, "normalizedTransitionCallback"), N = k((H, j) => {
27424
+ Na(u, H, p), Op(H), m && m(H, j);
27425
+ }), F = k((H, j) => {
27426
27426
  const _ = Dn({
27427
27427
  timeout: x,
27428
27428
  style: T,
@@ -27430,12 +27430,12 @@ const of = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ i(function(t, o) {
27430
27430
  }, {
27431
27431
  mode: "enter"
27432
27432
  });
27433
- W.style.webkitTransition = n.transitions.create("-webkit-transform", {
27433
+ H.style.webkitTransition = n.transitions.create("-webkit-transform", {
27434
27434
  ..._
27435
- }), W.style.transition = n.transitions.create("transform", {
27435
+ }), H.style.transition = n.transitions.create("transform", {
27436
27436
  ..._
27437
- }), W.style.webkitTransform = "none", W.style.transform = "none", g && g(W, j);
27438
- }), O = k(y), $ = k(P), M = k((W) => {
27437
+ }), H.style.webkitTransform = "none", H.style.transform = "none", g && g(H, j);
27438
+ }), O = k(y), $ = k(P), M = k((H) => {
27439
27439
  const j = Dn({
27440
27440
  timeout: x,
27441
27441
  style: T,
@@ -27443,22 +27443,22 @@ const of = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ i(function(t, o) {
27443
27443
  }, {
27444
27444
  mode: "exit"
27445
27445
  });
27446
- W.style.webkitTransition = n.transitions.create("-webkit-transform", j), W.style.transition = n.transitions.create("transform", j), Na(u, W, p), v && v(W);
27447
- }), D = k((W) => {
27448
- W.style.webkitTransition = "", W.style.transition = "", w && w(W);
27449
- }), R = /* @__PURE__ */ i((W) => {
27450
- l && l(I.current, W);
27446
+ H.style.webkitTransition = n.transitions.create("-webkit-transform", j), H.style.transition = n.transitions.create("transform", j), Na(u, H, p), v && v(H);
27447
+ }), D = k((H) => {
27448
+ H.style.webkitTransition = "", H.style.transition = "", w && w(H);
27449
+ }), R = /* @__PURE__ */ i((H) => {
27450
+ l && l(I.current, H);
27451
27451
  }, "handleAddEndListener"), L = S.useCallback(() => {
27452
27452
  I.current && Na(u, I.current, p);
27453
27453
  }, [u, p]);
27454
27454
  return S.useEffect(() => {
27455
27455
  if (b || u === "down" || u === "right")
27456
27456
  return;
27457
- const W = Hs(() => {
27457
+ const H = Hs(() => {
27458
27458
  I.current && Na(u, I.current, p);
27459
27459
  }), j = to(I.current);
27460
- return j.addEventListener("resize", W), () => {
27461
- W.clear(), j.removeEventListener("resize", W);
27460
+ return j.addEventListener("resize", H), () => {
27461
+ H.clear(), j.removeEventListener("resize", H);
27462
27462
  };
27463
27463
  }, [u, b, p]), S.useEffect(() => {
27464
27464
  b || L();
@@ -27475,13 +27475,13 @@ const of = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ i(function(t, o) {
27475
27475
  in: b,
27476
27476
  timeout: x,
27477
27477
  ...E,
27478
- children: /* @__PURE__ */ i((W, {
27478
+ children: /* @__PURE__ */ i((H, {
27479
27479
  ownerState: j,
27480
27480
  ..._
27481
27481
  }) => /* @__PURE__ */ S.cloneElement(d, {
27482
27482
  ref: A,
27483
27483
  style: {
27484
- visibility: W === "exited" && !b ? "hidden" : void 0,
27484
+ visibility: H === "exited" && !b ? "hidden" : void 0,
27485
27485
  ...T,
27486
27486
  ...d.props.style
27487
27487
  },
@@ -27613,7 +27613,7 @@ const z0 = /* @__PURE__ */ i((e, t) => {
27613
27613
  paper: ["paper", `paperAnchor${ue(o)}`, n !== "temporary" && `paperAnchorDocked${ue(o)}`]
27614
27614
  };
27615
27615
  return ke(s, uN, t);
27616
- }, "useUtilityClasses$8"), fN = ne(uc, {
27616
+ }, "useUtilityClasses$8"), fN = re(uc, {
27617
27617
  name: "MuiDrawer",
27618
27618
  slot: "Root",
27619
27619
  overridesResolver: z0
@@ -27621,7 +27621,7 @@ const z0 = /* @__PURE__ */ i((e, t) => {
27621
27621
  theme: e
27622
27622
  }) => ({
27623
27623
  zIndex: (e.vars || e).zIndex.drawer
27624
- }))), mN = ne("div", {
27624
+ }))), mN = re("div", {
27625
27625
  shouldForwardProp: Jt,
27626
27626
  name: "MuiDrawer",
27627
27627
  slot: "Docked",
@@ -27629,7 +27629,7 @@ const z0 = /* @__PURE__ */ i((e, t) => {
27629
27629
  overridesResolver: z0
27630
27630
  })({
27631
27631
  flex: "0 0 auto"
27632
- }), hN = ne(Xo, {
27632
+ }), hN = re(Xo, {
27633
27633
  name: "MuiDrawer",
27634
27634
  slot: "Paper",
27635
27635
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -27818,7 +27818,7 @@ const W0 = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ i(function(t, o) {
27818
27818
  backdrop: M.slotProps.backdrop
27819
27819
  }
27820
27820
  }
27821
- }), [L, W] = _e("paper", {
27821
+ }), [L, H] = _e("paper", {
27822
27822
  elementType: hN,
27823
27823
  shouldForwardComponentProp: !0,
27824
27824
  className: ce($.paper, w.className),
@@ -27851,7 +27851,7 @@ const W0 = /* @__PURE__ */ S.forwardRef(/* @__PURE__ */ i(function(t, o) {
27851
27851
  appear: k.current
27852
27852
  }
27853
27853
  }), Z = /* @__PURE__ */ f(L, {
27854
- ...W,
27854
+ ...H,
27855
27855
  children: p
27856
27856
  });
27857
27857
  if (C === "permanent")
@@ -27981,7 +27981,7 @@ process.env.NODE_ENV !== "production" && (W0.propTypes = {
27981
27981
  */
27982
27982
  variant: r.oneOf(["permanent", "persistent", "temporary"])
27983
27983
  });
27984
- const gN = ne("div", {
27984
+ const gN = re("div", {
27985
27985
  name: "MuiSwipeArea",
27986
27986
  shouldForwardProp: Jt
27987
27987
  })(Ve(({
@@ -28159,7 +28159,7 @@ const vN = typeof navigator < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent
28159
28159
  ...N
28160
28160
  } = n, [F, O] = S.useState(!1), $ = S.useRef({
28161
28161
  isSwiping: null
28162
- }), M = S.useRef(), D = S.useRef(), R = S.useRef(), L = Mt(T.ref, R), W = S.useRef(!1), j = S.useRef();
28162
+ }), M = S.useRef(), D = S.useRef(), R = S.useRef(), L = Mt(T.ref, R), H = S.useRef(!1), j = S.useRef();
28163
28163
  oo(() => {
28164
28164
  j.current = null;
28165
28165
  }, [P]);
@@ -28181,9 +28181,9 @@ const vN = typeof navigator < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent
28181
28181
  ie.opacity = 1 - z / Hi(pe, R.current), ee && (ie.webkitTransition = de, ie.transition = de);
28182
28182
  }
28183
28183
  }, [l, c, u, s, E]), V = fo((z) => {
28184
- if (!W.current)
28184
+ if (!H.current)
28185
28185
  return;
28186
- if (In = null, W.current = !1, Gd.flushSync(() => {
28186
+ if (In = null, H.current = !1, Gd.flushSync(() => {
28187
28187
  O(!1);
28188
28188
  }), !$.current.isSwiping) {
28189
28189
  $.current.isSwiping = null;
@@ -28211,10 +28211,10 @@ const vN = typeof navigator < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent
28211
28211
  const G = gr(l);
28212
28212
  !P && R.current && _(Hi(G, R.current) + (d ? 15 : -Cd), {
28213
28213
  changeTransition: !1
28214
- }), $.current.velocity = 0, $.current.lastTime = null, $.current.lastTranslate = null, $.current.paperHit = !1, W.current = !0;
28214
+ }), $.current.velocity = 0, $.current.lastTime = null, $.current.lastTranslate = null, $.current.paperHit = !1, H.current = !0;
28215
28215
  }
28216
28216
  }, "startMaybeSwiping"), Z = fo((z) => {
28217
- if (!R.current || !W.current || In !== null && In !== $.current)
28217
+ if (!R.current || !H.current || In !== null && In !== $.current)
28218
28218
  return;
28219
28219
  q(!0);
28220
28220
  const G = Zi(s, l), Q = gr(l), ee = wd(G, z.touches, Kt(z.currentTarget)), se = Td(G, z.touches, to(z.currentTarget));
@@ -28493,7 +28493,7 @@ process.env.NODE_ENV !== "production" && (U0.propTypes = {
28493
28493
  variant: r.oneOf(["permanent", "persistent", "temporary"])
28494
28494
  });
28495
28495
  const Ml = wE({
28496
- createStyledComponent: ne("div", {
28496
+ createStyledComponent: re("div", {
28497
28497
  name: "MuiStack",
28498
28498
  slot: "Root"
28499
28499
  }),
@@ -28896,17 +28896,17 @@ const q0 = /* @__PURE__ */ i((e) => typeof e == "boolean" ? e : !!parseInt(e), "
28896
28896
  async (D, R) => {
28897
28897
  if (a)
28898
28898
  return;
28899
- let L = null, W = !1;
28899
+ let L = null, H = !1;
28900
28900
  try {
28901
28901
  if (l(!0), typeof t == "function" && typeof c.current?.setRows == "function") {
28902
28902
  const j = await t();
28903
- L = PN(c), W = !0, c.current.setRows(Array.isArray(j) ? j : []), await EN();
28903
+ L = PN(c), H = !0, c.current.setRows(Array.isArray(j) ? j : []), await EN();
28904
28904
  }
28905
28905
  D === "csv" ? c.current?.exportDataAsCsv?.(R) : D === "excel" ? await c.current?.exportDataAsExcel?.(R) : D === "print" && await kN(c, R);
28906
28906
  } catch (j) {
28907
28907
  console.error("metiri-grid-export-failed", j), d(p("pos.export_failed"), { type: "error" });
28908
28908
  } finally {
28909
- W && L && c.current?.setRows?.(L), l(!1);
28909
+ H && L && c.current?.setRows?.(L), l(!1);
28910
28910
  }
28911
28911
  },
28912
28912
  [c, t, a, d]
@@ -29114,7 +29114,7 @@ function $N(e) {
29114
29114
  }
29115
29115
  i($N, "Toolbar");
29116
29116
  const Z0 = Ro({ resolve: null }), d4 = /* @__PURE__ */ i(({ resolve: e, children: t }) => {
29117
- const o = je(() => ({ resolve: e }), [e]);
29117
+ const o = We(() => ({ resolve: e }), [e]);
29118
29118
  return /* @__PURE__ */ f(Z0.Provider, { value: o, children: t });
29119
29119
  }, "FormResolverProvider"), NN = /* @__PURE__ */ i(() => ot(Z0), "useFormResolver"), Ui = {
29120
29120
  maxWidth: "md",
@@ -30488,7 +30488,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
30488
30488
  slots: M,
30489
30489
  slotProps: D,
30490
30490
  ...R
30491
- } = e, [L, W] = S.useState(0), j = S.useRef(null), [_, V] = S.useState({ top: 2, left: 8, h: 28 }), q = Wo((H) => H.breakpoints.down("md")), Z = pc(e), U = Ze(), [Y] = Ju(), te = (Y === "en" ? lf : cf).components.MuiDataGrid.defaultProps.localeText, z = oD(), G = tt(e), {
30491
+ } = e, [L, H] = S.useState(0), j = S.useRef(null), [_, V] = S.useState({ top: 2, left: 8, h: 28 }), q = Wo((W) => W.breakpoints.down("md")), Z = pc(e), U = Ze(), [Y] = Ju(), te = (Y === "en" ? lf : cf).components.MuiDataGrid.defaultProps.localeText, z = oD(), G = tt(e), {
30492
30492
  props: {
30493
30493
  bulkActionButtons: Q = n,
30494
30494
  hasCreate: ee,
@@ -30505,34 +30505,50 @@ const xD = S.memo(/* @__PURE__ */ i(function({
30505
30505
  ...we
30506
30506
  },
30507
30507
  setProps: me
30508
- } = Vn(), We = A ?? ge, ze = k ?? xe, Ct = S.useCallback(
30509
- (H) => {
30510
- if (j.current = H, !!J) {
30508
+ } = Vn(), He = A ?? ge, ze = k ?? xe, Ct = S.useCallback(
30509
+ (W) => {
30510
+ if (j.current = W, !!J) {
30511
30511
  if (typeof J == "function") {
30512
- J(H);
30512
+ J(W);
30513
30513
  return;
30514
30514
  }
30515
- J.current = H;
30515
+ J.current = W;
30516
30516
  }
30517
30517
  },
30518
30518
  [J]
30519
- ), He = R?.unstable_listView ?? we?.unstable_listView ?? !1, le = We && de === "pivot", X = Zu(), [fe, Ge] = S.useState(
30519
+ ), je = R?.unstable_listView ?? we?.unstable_listView ?? !1, le = He && de === "pivot";
30520
+ S.useLayoutEffect(() => {
30521
+ const W = j.current;
30522
+ if (!W || je) return;
30523
+ const ne = /* @__PURE__ */ i(() => {
30524
+ W.style.setProperty(
30525
+ "--metiri-grid-top",
30526
+ `${Math.max(0, W.getBoundingClientRect().top)}px`
30527
+ );
30528
+ }, "updateTop");
30529
+ ne();
30530
+ const Ee = new ResizeObserver(ne);
30531
+ return Ee.observe(W.parentElement), window.addEventListener("resize", ne), () => {
30532
+ Ee.disconnect(), window.removeEventListener("resize", ne);
30533
+ };
30534
+ }, [je]);
30535
+ const X = Zu(), [fe, Ge] = S.useState(
30520
30536
  Ig
30521
30537
  ), be = S.useCallback(() => {
30522
30538
  Ge(Ig());
30523
30539
  }, []), wt = R?.dataSource ?? we?.dataSource, Je = S.useMemo(() => {
30524
- const H = { ...R };
30525
- return delete H.dataSource, delete H.pivotingColDef, H;
30540
+ const W = { ...R };
30541
+ return delete W.dataSource, delete W.pivotingColDef, W;
30526
30542
  }, [R]), st = S.useMemo(() => {
30527
- const H = { ...we };
30528
- return delete H.dataSource, delete H.pivotingColDef, H;
30543
+ const W = { ...we };
30544
+ return delete W.dataSource, delete W.pivotingColDef, W;
30529
30545
  }, [we]), It = S.useRef(null), no = S.useRef(null), uo = S.useMemo(() => {
30530
- const H = {
30546
+ const W = {
30531
30547
  ...Rg,
30532
30548
  ...R?.aggregationFunctions || {},
30533
30549
  ...we?.aggregationFunctions || {}
30534
30550
  };
30535
- return H.count || (H.count = Rg.count), H;
30551
+ return W.count || (W.count = Rg.count), W;
30536
30552
  }, [R?.aggregationFunctions, we?.aggregationFunctions]), Ce = _n(), {
30537
30553
  data: Le = [],
30538
30554
  isFetching: pt,
@@ -30550,22 +30566,22 @@ const xD = S.memo(/* @__PURE__ */ i(function({
30550
30566
  Re.current && !B && Et.length && (Wt([]), z?.([])), Re.current = B;
30551
30567
  }, [B, Wt, z, Et.length]);
30552
30568
  const Ke = S.useCallback(
30553
- (H) => {
30569
+ (W) => {
30554
30570
  if (pt)
30555
30571
  return;
30556
- const re = [H];
30557
- Wt(re), z?.(re);
30572
+ const ne = [W];
30573
+ Wt(ne), z?.(ne);
30558
30574
  },
30559
30575
  [pt, Wt, z]
30560
- ), Xe = He || !ie || ye !== !1 || le, Se = S.useCallback(async () => typeof Pt != "function" ? Le : Pt(), [Le, Pt]), ft = le ? void 0 : Se, io = S.useMemo(() => {
30561
- const H = {
30576
+ ), Xe = je || !ie || ye !== !1 || le, Se = S.useCallback(async () => typeof Pt != "function" ? Le : Pt(), [Le, Pt]), ft = le ? void 0 : Se, io = S.useMemo(() => {
30577
+ const W = {
30562
30578
  loadingOverlay: aR,
30563
30579
  noRowsOverlay: Fp,
30564
30580
  baseIconButton: dS,
30565
30581
  toolbar: xD,
30566
30582
  ...M
30567
30583
  };
30568
- return typeof H.toolbar == "boolean" && (H.toolbar = void 0), H;
30584
+ return typeof W.toolbar == "boolean" && (W.toolbar = void 0), W;
30569
30585
  }, [M]), Tn = S.useRef({ key: null, promise: null }), Oi = S.useRef({ rows: [] }), [, kr] = S.useState({
30570
30586
  rows: [],
30571
30587
  columns: [],
@@ -30573,10 +30589,10 @@ const xD = S.memo(/* @__PURE__ */ i(function({
30573
30589
  }), [, Lf] = S.useState({}), Lc = N && le, ia = S.useMemo(() => {
30574
30590
  if (!le)
30575
30591
  return wt;
30576
- const H = /* @__PURE__ */ i((re) => {
30577
- if (!re)
30578
- return re;
30579
- const Ee = typeof re.getRows == "function" ? (...ve) => re.getRows(...ve) : re.getRows, Ue = typeof re.getGroupKey == "function" ? (...ve) => re.getGroupKey(...ve) : null, Qe = /* @__PURE__ */ i((ve) => {
30592
+ const W = /* @__PURE__ */ i((ne) => {
30593
+ if (!ne)
30594
+ return ne;
30595
+ const Ee = typeof ne.getRows == "function" ? (...ve) => ne.getRows(...ve) : ne.getRows, Ue = typeof ne.getGroupKey == "function" ? (...ve) => ne.getGroupKey(...ve) : null, Qe = /* @__PURE__ */ i((ve) => {
30580
30596
  const gt = Ue?.(ve);
30581
30597
  if (gt != null && gt !== "")
30582
30598
  return String(gt);
@@ -30592,12 +30608,12 @@ const xD = S.memo(/* @__PURE__ */ i(function({
30592
30608
  (Ot) => Ot !== "id" && Ot !== "__childrenCount" && Ot !== "childrenCount" && ve[Ot] != null && ve[Ot] !== ""
30593
30609
  );
30594
30610
  return Ye ? String(ve[Ye]) : ve.id != null ? String(ve.id) : "";
30595
- }, "getGroupKey"), _t = typeof re.getChildrenCount == "function" ? (...ve) => re.getChildrenCount(...ve) : null, nt = /* @__PURE__ */ i((ve) => {
30611
+ }, "getGroupKey"), _t = typeof ne.getChildrenCount == "function" ? (...ve) => ne.getChildrenCount(...ve) : null, nt = /* @__PURE__ */ i((ve) => {
30596
30612
  const gt = _t?.(ve);
30597
30613
  return Number.isFinite(gt) ? gt : ve?.childrenCount ?? ve?.__childrenCount ?? 0;
30598
- }, "getChildrenCount"), Ht = typeof re.getAggregatedValue == "function" ? (...ve) => re.getAggregatedValue(...ve) : null;
30614
+ }, "getChildrenCount"), Ht = typeof ne.getAggregatedValue == "function" ? (...ve) => ne.getAggregatedValue(...ve) : null;
30599
30615
  return {
30600
- ...re,
30616
+ ...ne,
30601
30617
  getRows: Ee,
30602
30618
  getGroupKey: Qe,
30603
30619
  getChildrenCount: nt,
@@ -30621,13 +30637,13 @@ const xD = S.memo(/* @__PURE__ */ i(function({
30621
30637
  }, "getAggregatedValue")
30622
30638
  };
30623
30639
  }, "ensureDataSourceGrouping");
30624
- return H(wt || {
30625
- getRows: /* @__PURE__ */ i(async (re) => {
30626
- const Ee = re.pivotModel || {};
30640
+ return W(wt || {
30641
+ getRows: /* @__PURE__ */ i(async (ne) => {
30642
+ const Ee = ne.pivotModel || {};
30627
30643
  Oi.current = Ee;
30628
- const Ue = re.start ?? 0, Qe = re.end ?? Ue + 50, _t = Math.max(1, Qe - Ue), nt = Math.floor(Ue / _t) + 1, Ht = re.sortModel ?? [], En = Ht[0]?.field ?? Ft.field ?? "id", ve = (Ht[0]?.sort ?? Ft.order ?? "ASC").toUpperCase(), gt = X.current?.state?.rowGrouping?.model?.[0], Ut = w({
30644
+ const Ue = ne.start ?? 0, Qe = ne.end ?? Ue + 50, _t = Math.max(1, Qe - Ue), nt = Math.floor(Ue / _t) + 1, Ht = ne.sortModel ?? [], En = Ht[0]?.field ?? Ft.field ?? "id", ve = (Ht[0]?.sort ?? Ft.order ?? "ASC").toUpperCase(), gt = X.current?.state?.rowGrouping?.model?.[0], Ut = w({
30629
30645
  groupingField: gt,
30630
- ...re.filterModel || {}
30646
+ ...ne.filterModel || {}
30631
30647
  }), Ye = {
30632
30648
  ...ro && typeof ro == "object" && !Array.isArray(ro) ? ro : {},
30633
30649
  ...Ut
@@ -30637,9 +30653,9 @@ const xD = S.memo(/* @__PURE__ */ i(function({
30637
30653
  sortModel: Ht,
30638
30654
  filterModel: Ye,
30639
30655
  pivotModel: Ee,
30640
- aggregationModel: re.aggregationModel || {},
30641
- groupFields: re.groupFields || [],
30642
- groupKeys: re.groupKeys || []
30656
+ aggregationModel: ne.aggregationModel || {},
30657
+ groupFields: ne.groupFields || [],
30658
+ groupKeys: ne.groupKeys || []
30643
30659
  });
30644
30660
  if (Tn.current.key === Ot)
30645
30661
  return Tn.current.promise;
@@ -30649,10 +30665,10 @@ const xD = S.memo(/* @__PURE__ */ i(function({
30649
30665
  pivot: 1,
30650
30666
  pivotModel: JSON.stringify(Ee),
30651
30667
  aggregationModel: JSON.stringify(
30652
- re.aggregationModel ?? {}
30668
+ ne.aggregationModel ?? {}
30653
30669
  ),
30654
- groupFields: JSON.stringify(re.groupFields ?? []),
30655
- groupKeys: JSON.stringify(re.groupKeys ?? [])
30670
+ groupFields: JSON.stringify(ne.groupFields ?? []),
30671
+ groupKeys: JSON.stringify(ne.groupKeys ?? [])
30656
30672
  }, Co = Ce.getList(G, {
30657
30673
  pagination: { page: nt, perPage: _t },
30658
30674
  sort: { field: En, order: ve },
@@ -30661,7 +30677,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
30661
30677
  }).then((No) => {
30662
30678
  const ki = No.data || [], Uc = Array.isArray(
30663
30679
  No.pivotColumns
30664
- ) ? No.pivotColumns : [], Gc = Ee.rows || [], Ox = Ee.columns || [], tm = Ee.values || [], Ix = Gc.map(Va).filter(Boolean), ua = (re.groupFields || []).map(Va).filter(Boolean), Ai = re.groupKeys || [], Rx = Ix.length > 0 && Ox.length === 0 && tm.length === 0, Mx = ki.some(
30680
+ ) ? No.pivotColumns : [], Gc = Ee.rows || [], Ox = Ee.columns || [], tm = Ee.values || [], Ix = Gc.map(Va).filter(Boolean), ua = (ne.groupFields || []).map(Va).filter(Boolean), Ai = ne.groupKeys || [], Rx = Ix.length > 0 && Ox.length === 0 && tm.length === 0, Mx = ki.some(
30665
30681
  (Un) => Un?.childrenCount != null || Un?.__childrenCount != null
30666
30682
  );
30667
30683
  let $i = ki, qc = No.total ?? 0;
@@ -30735,10 +30751,10 @@ const xD = S.memo(/* @__PURE__ */ i(function({
30735
30751
  Ft.field,
30736
30752
  Ft.order
30737
30753
  ]), rx = S.useCallback(
30738
- (H, re) => {
30739
- const Ue = (Array.isArray(re) ? re : []).map((Qe) => Ng(Qe && typeof Qe == "object" ? Qe.key ?? Qe.group : Qe));
30754
+ (W, ne) => {
30755
+ const Ue = (Array.isArray(ne) ? ne : []).map((Qe) => Ng(Qe && typeof Qe == "object" ? Qe.key ?? Qe.group : Qe));
30740
30756
  return {
30741
- field: Ue.length ? `${H}__${Ue.join("__")}` : H,
30757
+ field: Ue.length ? `${W}__${Ue.join("__")}` : W,
30742
30758
  minWidth: 120
30743
30759
  };
30744
30760
  },
@@ -30750,26 +30766,26 @@ const xD = S.memo(/* @__PURE__ */ i(function({
30750
30766
  Be(() => {
30751
30767
  if (!le || ze === "custom" || !X.current?.showSidebar || X.current?.state?.sidebar?.open && X.current?.state?.sidebar?.value === "pivot")
30752
30768
  return;
30753
- const re = requestAnimationFrame(() => {
30769
+ const ne = requestAnimationFrame(() => {
30754
30770
  X.current?.showSidebar?.("pivot");
30755
30771
  });
30756
- return () => cancelAnimationFrame(re);
30772
+ return () => cancelAnimationFrame(ne);
30757
30773
  }, [X, ze, le]), Be(() => {
30758
30774
  if (Vc) {
30759
- const H = Vc.current.panels.find(
30760
- (re) => re.id === `win_${G}`
30775
+ const W = Vc.current.panels.find(
30776
+ (ne) => ne.id === `win_${G}`
30761
30777
  );
30762
- H && (H.params.apiRef = X);
30778
+ W && (W.params.apiRef = X);
30763
30779
  }
30764
30780
  }, [X, G, Vc]), Be(() => {
30765
- const H = {};
30766
- Ie !== X && (H.apiRef = X), ge !== We && (H.pivotEnabled = We), xe !== ze && (H.pivotUi = ze), Object.keys(H).length > 0 && me?.(H);
30781
+ const W = {};
30782
+ Ie !== X && (W.apiRef = X), ge !== He && (W.pivotEnabled = He), xe !== ze && (W.pivotUi = ze), Object.keys(W).length > 0 && me?.(W);
30767
30783
  }, [
30768
30784
  X,
30769
30785
  Ie,
30770
30786
  ge,
30771
30787
  xe,
30772
- We,
30788
+ He,
30773
30789
  ze,
30774
30790
  me
30775
30791
  ]);
@@ -30784,20 +30800,20 @@ const xD = S.memo(/* @__PURE__ */ i(function({
30784
30800
  disableColumnMenu: !0,
30785
30801
  flex: 0,
30786
30802
  colSpan: /* @__PURE__ */ i(() => 1, "colSpan"),
30787
- renderCell: /* @__PURE__ */ i((H) => {
30788
- if (!H?.rowNode || H.rowNode.type !== "group")
30803
+ renderCell: /* @__PURE__ */ i((W) => {
30804
+ if (!W?.rowNode || W.rowNode.type !== "group")
30789
30805
  return null;
30790
- const re = !!H.rowNode.childrenExpanded;
30806
+ const ne = !!W.rowNode.childrenExpanded;
30791
30807
  return /* @__PURE__ */ f(
30792
30808
  ao,
30793
30809
  {
30794
30810
  size: "small",
30795
30811
  onClick: /* @__PURE__ */ i((Ue) => {
30796
- Ue.stopPropagation(), X.current?.setRowChildrenExpansion(H.id, !re);
30812
+ Ue.stopPropagation(), X.current?.setRowChildrenExpansion(W.id, !ne);
30797
30813
  }, "toggle"),
30798
30814
  tabIndex: -1,
30799
30815
  sx: { "& svg": { fontSize: 20 } },
30800
- children: re ? /* @__PURE__ */ f(Av, {}) : /* @__PURE__ */ f(lR, {})
30816
+ children: ne ? /* @__PURE__ */ f(Av, {}) : /* @__PURE__ */ f(lR, {})
30801
30817
  }
30802
30818
  );
30803
30819
  }, "renderCell")
@@ -30805,35 +30821,35 @@ const xD = S.memo(/* @__PURE__ */ i(function({
30805
30821
  [X]
30806
30822
  ), Ri = S.useMemo(() => `metiri_rowGrouping_${(G || "").toString().trim() || "default"}`, [G]), Ar = S.useMemo(() => {
30807
30823
  try {
30808
- const H = localStorage.getItem(Ri), re = H ? JSON.parse(H) : [];
30809
- return Array.isArray(re) ? re : [];
30824
+ const W = localStorage.getItem(Ri), ne = W ? JSON.parse(W) : [];
30825
+ return Array.isArray(ne) ? ne : [];
30810
30826
  } catch {
30811
30827
  return [];
30812
30828
  }
30813
30829
  }, [Ri]), jf = S.useMemo(
30814
- () => a.map((H) => {
30815
- const re = sa[H.field.replace("_lis", "")];
30816
- return re ? { ...H, ...re } : H;
30830
+ () => a.map((W) => {
30831
+ const ne = sa[W.field.replace("_lis", "")];
30832
+ return ne ? { ...W, ...ne } : W;
30817
30833
  }).sort(
30818
- (H, re) => parseInt(
30819
- sa[H.field.replace("_lis", "")]?.orden
30820
- ) - parseInt(sa[re.field.replace("_lis", "")]?.orden)
30834
+ (W, ne) => parseInt(
30835
+ sa[W.field.replace("_lis", "")]?.orden
30836
+ ) - parseInt(sa[ne.field.replace("_lis", "")]?.orden)
30821
30837
  ),
30822
30838
  [a, sa]
30823
30839
  ), {
30824
30840
  columns: { columnVisibilityModel: Wf = nS },
30825
30841
  ...ca
30826
30842
  } = v, { columnVisibilityModel: Hf, columnOrder: Uf, columnasConfiguradas: Gf } = S.useMemo(() => {
30827
- const H = {}, re = [], Ee = [];
30843
+ const W = {}, ne = [], Ee = [];
30828
30844
  return jf.forEach((Ue) => {
30829
- H[Ue.field] = Ue.oculto !== void 0 ? !Ue.oculto : Wf[Ue.field] ?? !0, re.push(Ue.field), Ee.push({
30845
+ W[Ue.field] = Ue.oculto !== void 0 ? !Ue.oculto : Wf[Ue.field] ?? !0, ne.push(Ue.field), Ee.push({
30830
30846
  ...Ue,
30831
30847
  width: Ue.ancho ? parseInt(Ue.ancho) : Ue.width
30832
30848
  // Usar el ancho de las configuraciones si está disponible
30833
30849
  });
30834
30850
  }), {
30835
- columnVisibilityModel: H,
30836
- columnOrder: re,
30851
+ columnVisibilityModel: W,
30852
+ columnOrder: ne,
30837
30853
  columnasConfiguradas: Ee
30838
30854
  };
30839
30855
  }, [jf, Wf]), Hn = S.useMemo(
@@ -30849,19 +30865,19 @@ const xD = S.memo(/* @__PURE__ */ i(function({
30849
30865
  if (Hn?.sorting?.sortModel?.length)
30850
30866
  return Hn.sorting;
30851
30867
  if (Ft.field) {
30852
- const H = Ft.order?.toLowerCase?.();
30868
+ const W = Ft.order?.toLowerCase?.();
30853
30869
  return {
30854
- sortModel: Ft.field.split(",").map((re) => ({ field: re, sort: H }))
30870
+ sortModel: Ft.field.split(",").map((ne) => ({ field: ne, sort: W }))
30855
30871
  };
30856
30872
  }
30857
30873
  }, [Hn?.sorting, Ft.field, Ft.order]), cx = S.useCallback(
30858
- (H = []) => {
30874
+ (W = []) => {
30859
30875
  if (!le) {
30860
30876
  try {
30861
- localStorage.setItem(Ri, JSON.stringify(H));
30877
+ localStorage.setItem(Ri, JSON.stringify(W));
30862
30878
  } catch {
30863
30879
  }
30864
- W((re) => re + 1);
30880
+ H((ne) => ne + 1);
30865
30881
  }
30866
30882
  },
30867
30883
  [Ri, le]
@@ -30869,8 +30885,8 @@ const xD = S.memo(/* @__PURE__ */ i(function({
30869
30885
  S.useEffect(() => {
30870
30886
  if (!(!X.current || le || q))
30871
30887
  try {
30872
- const H = X.current.state?.rowGrouping?.model ?? [];
30873
- Ar.length && JSON.stringify(H) !== JSON.stringify(Ar) && X.current.setRowGroupingModel(Ar);
30888
+ const W = X.current.state?.rowGrouping?.model ?? [];
30889
+ Ar.length && JSON.stringify(W) !== JSON.stringify(Ar) && X.current.setRowGroupingModel(Ar);
30874
30890
  } catch {
30875
30891
  }
30876
30892
  }, [le, q]), S.useEffect(() => {
@@ -30879,8 +30895,8 @@ const xD = S.memo(/* @__PURE__ */ i(function({
30879
30895
  const da = le || q ? [] : Ar.length ? Ar : ca?.rowGrouping?.model ?? [];
30880
30896
  S.useEffect(() => {
30881
30897
  if (le || q) return;
30882
- const H = X.current?.state?.rowGrouping?.model ?? da, re = Pg(Ft, H);
30883
- (re.field !== Ft.field || re.order !== Ft.order) && Ne(re);
30898
+ const W = X.current?.state?.rowGrouping?.model ?? da, ne = Pg(Ft, W);
30899
+ (ne.field !== Ft.field || ne.order !== Ft.order) && Ne(ne);
30884
30900
  }, [
30885
30901
  X,
30886
30902
  L,
@@ -30915,9 +30931,9 @@ const xD = S.memo(/* @__PURE__ */ i(function({
30915
30931
  Kf.current = Z;
30916
30932
  }, [Z]);
30917
30933
  const $r = S.useMemo(
30918
- () => Gf.map((H) => ({
30919
- ...H,
30920
- headerName: Vf[H.field.replace("_lis", "")] ?? H.headerName
30934
+ () => Gf.map((W) => ({
30935
+ ...W,
30936
+ headerName: Vf[W.field.replace("_lis", "")] ?? W.headerName
30921
30937
  })),
30922
30938
  [Gf, Vf]
30923
30939
  ), Yf = S.useMemo(() => le || !(t.length > 0 || m || x || I || aa) ? $r : $r.concat([
@@ -30927,17 +30943,17 @@ const xD = S.memo(/* @__PURE__ */ i(function({
30927
30943
  width: 100,
30928
30944
  hideable: !1,
30929
30945
  renderHeader: /* @__PURE__ */ i(() => /* @__PURE__ */ f(bo, { children: o }), "renderHeader"),
30930
- getActions: /* @__PURE__ */ i((H) => {
30931
- const re = X.current.getRowNode(H.id), Ee = re?.children?.[0], Ue = !!T && typeof Ee == "string" && Ee.indexOf(`${T}=`) !== -1, Qe = !Mu(H.row, l), _t = !rS(
30932
- H.row,
30946
+ getActions: /* @__PURE__ */ i((W) => {
30947
+ const ne = X.current.getRowNode(W.id), Ee = ne?.children?.[0], Ue = !!T && typeof Ee == "string" && Ee.indexOf(`${T}=`) !== -1, Qe = !Mu(W.row, l), _t = !rS(
30948
+ W.row,
30933
30949
  c
30934
- ), nt = x && Qe, Ht = Kf.current, En = (H.row?.id == null || H.row?.id === "") && Ue, ve = re?.type === "group" || En ? void 0 : H.row?.id ?? H.id, gt = ve ? /* @__PURE__ */ f(
30950
+ ), nt = x && Qe, Ht = Kf.current, En = (W.row?.id == null || W.row?.id === "") && Ue, ve = ne?.type === "group" || En ? void 0 : W.row?.id ?? W.id, gt = ve ? /* @__PURE__ */ f(
30935
30951
  Dr,
30936
30952
  {
30937
30953
  label: U("ra.action.show"),
30938
30954
  icon: /* @__PURE__ */ f(xl, { color: "primary" }),
30939
30955
  onClick: /* @__PURE__ */ i((Ye) => {
30940
- Ye && (Ye.defaultMuiPrevented = !0, Ye.stopPropagation()), sx({ id: ve, record: H.row });
30956
+ Ye && (Ye.defaultMuiPrevented = !0, Ye.stopPropagation()), sx({ id: ve, record: W.row });
30941
30957
  }, "onClick")
30942
30958
  },
30943
30959
  `show-${ve}`
@@ -30956,7 +30972,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
30956
30972
  onClick: /* @__PURE__ */ i((Uc) => typeof Lt == "function" ? Lt(
30957
30973
  {
30958
30974
  ...Ht,
30959
- record: H.row
30975
+ record: W.row
30960
30976
  },
30961
30977
  Co
30962
30978
  ) : !1, "onClick"),
@@ -30970,7 +30986,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
30970
30986
  Bc({
30971
30987
  id: ve,
30972
30988
  estado: "B",
30973
- record: H.row
30989
+ record: W.row
30974
30990
  });
30975
30991
  }, "handleClick");
30976
30992
  Gt.unshift(
@@ -30995,7 +31011,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
30995
31011
  Bf({
30996
31012
  id: ve,
30997
31013
  estado: "ND",
30998
- record: H.row
31014
+ record: W.row
30999
31015
  });
31000
31016
  }, "handleClick");
31001
31017
  Gt.unshift(
@@ -31032,7 +31048,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
31032
31048
  onClick: /* @__PURE__ */ i((Ye) => {
31033
31049
  Ye && (Ye.defaultMuiPrevented = !0, Ye.stopPropagation()), Bc({
31034
31050
  id: ve,
31035
- record: H.row
31051
+ record: W.row
31036
31052
  });
31037
31053
  }, "onClick")
31038
31054
  },
@@ -31085,42 +31101,42 @@ const xD = S.memo(/* @__PURE__ */ i(function({
31085
31101
  columns: Yf,
31086
31102
  enabled: !le
31087
31103
  }), px = S.useCallback(
31088
- (H, re, Ee) => {
31089
- ho.onColumnWidthChange(H), Je?.onColumnWidthChange?.(H, re, Ee), st?.onColumnWidthChange?.(
31090
- H,
31091
- re,
31104
+ (W, ne, Ee) => {
31105
+ ho.onColumnWidthChange(W), Je?.onColumnWidthChange?.(W, ne, Ee), st?.onColumnWidthChange?.(
31106
+ W,
31107
+ ne,
31092
31108
  Ee
31093
31109
  );
31094
31110
  },
31095
31111
  [ho, st, Je]
31096
31112
  ), fx = S.useCallback(
31097
- (H, re, Ee) => {
31098
- ho.onColumnOrderChange(H), Je?.onColumnOrderChange?.(H, re, Ee), st?.onColumnOrderChange?.(
31099
- H,
31100
- re,
31113
+ (W, ne, Ee) => {
31114
+ ho.onColumnOrderChange(W), Je?.onColumnOrderChange?.(W, ne, Ee), st?.onColumnOrderChange?.(
31115
+ W,
31116
+ ne,
31101
31117
  Ee
31102
31118
  );
31103
31119
  },
31104
31120
  [ho, st, Je]
31105
31121
  ), jc = S.useMemo(
31106
31122
  () => ho.columns.find(
31107
- (H) => H?.field === "actions" && typeof H?.getActions == "function"
31123
+ (W) => W?.field === "actions" && typeof W?.getActions == "function"
31108
31124
  ) ?? null,
31109
31125
  [ho.columns]
31110
- ), Xf = S.useCallback((H) => {
31111
- const Ee = (H.currentTarget instanceof HTMLDivElement ? H.currentTarget : null)?.getAttribute("data-id");
31112
- return Ee || (typeof document > "u" ? null : document.elementsFromPoint(H.clientX, H.clientY).find(
31126
+ ), Xf = S.useCallback((W) => {
31127
+ const Ee = (W.currentTarget instanceof HTMLDivElement ? W.currentTarget : null)?.getAttribute("data-id");
31128
+ return Ee || (typeof document > "u" ? null : document.elementsFromPoint(W.clientX, W.clientY).find(
31113
31129
  (_t) => _t instanceof Element && _t.matches(dD)
31114
31130
  )?.getAttribute("data-id") ?? null);
31115
31131
  }, []), Jf = S.useCallback(
31116
- (H) => {
31117
- if ((H.target instanceof Element ? H.target : null)?.closest(Og)) {
31118
- H.preventDefault(), H.stopPropagation();
31132
+ (W) => {
31133
+ if ((W.target instanceof Element ? W.target : null)?.closest(Og)) {
31134
+ W.preventDefault(), W.stopPropagation();
31119
31135
  return;
31120
31136
  }
31121
31137
  if (q || le || !jc)
31122
31138
  return;
31123
- const Ee = Xf(H);
31139
+ const Ee = Xf(W);
31124
31140
  if (!Ee)
31125
31141
  return;
31126
31142
  let Ue = Ee;
@@ -31148,9 +31164,9 @@ const xD = S.memo(/* @__PURE__ */ i(function({
31148
31164
  inert: nt.props?.inert,
31149
31165
  onClick: nt.props?.onClick
31150
31166
  }));
31151
- _t.length !== 0 && (H.preventDefault(), H.stopPropagation(), Ke(Ue), Ge({
31152
- mouseX: H.clientX,
31153
- mouseY: H.clientY,
31167
+ _t.length !== 0 && (W.preventDefault(), W.stopPropagation(), Ke(Ue), Ge({
31168
+ mouseX: W.clientX,
31169
+ mouseY: W.clientY,
31154
31170
  actions: _t
31155
31171
  }));
31156
31172
  },
@@ -31163,17 +31179,17 @@ const xD = S.memo(/* @__PURE__ */ i(function({
31163
31179
  Ke
31164
31180
  ]
31165
31181
  ), Qf = fe.mouseX !== null && fe.mouseY !== null, Zf = S.useCallback(
31166
- (H) => (Hn?.columns?.columnVisibilityModel || {})[H] !== !1,
31182
+ (W) => (Hn?.columns?.columnVisibilityModel || {})[W] !== !1,
31167
31183
  [Hn]
31168
31184
  );
31169
31185
  S.useEffect(() => {
31170
31186
  if (!Ar.length) {
31171
- const H = ca?.rowGrouping?.model ?? Hn?.rowGrouping?.model ?? [];
31172
- if (Array.isArray(H) && H.length)
31187
+ const W = ca?.rowGrouping?.model ?? Hn?.rowGrouping?.model ?? [];
31188
+ if (Array.isArray(W) && W.length)
31173
31189
  try {
31174
31190
  localStorage.setItem(
31175
31191
  Ri,
31176
- JSON.stringify(H)
31192
+ JSON.stringify(W)
31177
31193
  );
31178
31194
  } catch {
31179
31195
  }
@@ -31197,19 +31213,19 @@ const xD = S.memo(/* @__PURE__ */ i(function({
31197
31213
  L
31198
31214
  ]);
31199
31215
  const Wc = S.useCallback(() => {
31200
- const H = X?.current?.getVisibleColumns?.() || [];
31201
- return H.length ? H.map((re) => re.field) : ho.columns.filter((re) => Zf(re.field)).map((re) => re.field);
31216
+ const W = X?.current?.getVisibleColumns?.() || [];
31217
+ return W.length ? W.map((ne) => ne.field) : ho.columns.filter((ne) => Zf(ne.field)).map((ne) => ne.field);
31202
31218
  }, [X, ho.columns, Zf, L]), em = S.useMemo(() => Wc().find((Ee) => !ol.has(Ee)) ?? ho.columns.find((Ee) => !ol.has(Ee.field))?.field ?? ho.columns[0]?.field, [ho.columns, Wc, L]), Mi = S.useMemo(
31203
31219
  () => ho.columns,
31204
31220
  [ho.columns]
31205
31221
  ), Hc = S.useMemo(() => {
31206
- const H = em;
31207
- return Mi.map((re) => {
31208
- const Ee = re.type === "boolean" ? {
31209
- ...re,
31222
+ const W = em;
31223
+ return Mi.map((ne) => {
31224
+ const Ee = ne.type === "boolean" ? {
31225
+ ...ne,
31210
31226
  valueGetter: q0,
31211
- valueFormatter: re.valueFormatter ?? rf
31212
- } : re, Ue = Ee.type === "date" && Ee.filterOperators === void 0 ? fD : Ee.filterOperators, Qe = Ee.valueFormatter, _t = /* @__PURE__ */ i((ve, gt, Ut, Gt) => ha(gt) ? ve ?? "" : Qe ? Qe(ve, gt, Ut, Gt) : ve, "safeVF");
31227
+ valueFormatter: ne.valueFormatter ?? rf
31228
+ } : ne, Ue = Ee.type === "date" && Ee.filterOperators === void 0 ? fD : Ee.filterOperators, Qe = Ee.valueFormatter, _t = /* @__PURE__ */ i((ve, gt, Ut, Gt) => ha(gt) ? ve ?? "" : Qe ? Qe(ve, gt, Ut, Gt) : ve, "safeVF");
31213
31229
  if (Ee.type === "actions" || ol.has(Ee.field))
31214
31230
  return {
31215
31231
  ...Ee,
@@ -31224,14 +31240,14 @@ const xD = S.memo(/* @__PURE__ */ i(function({
31224
31240
  formattedValue: ve?.formattedValue,
31225
31241
  row: ve?.row,
31226
31242
  columns: Mi,
31227
- primaryField: H,
31243
+ primaryField: W,
31228
31244
  children: gt
31229
31245
  }
31230
31246
  ), "renderTypedCell"), Ht = Ee.renderCell, En = Lp(Ee, {
31231
31247
  columns: Mi,
31232
- primaryField: H
31248
+ primaryField: W
31233
31249
  });
31234
- return Ee.field !== H ? {
31250
+ return Ee.field !== W ? {
31235
31251
  ...Ee,
31236
31252
  filterOperators: Ue,
31237
31253
  valueFormatter: _t,
@@ -31257,7 +31273,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
31257
31273
  right: []
31258
31274
  }, Ye = new Set(Gt.left || []), Ot = new Set(Gt.right || []), Lt = Ut.filter(
31259
31275
  (No) => !Ye.has(No.field) && !Ot.has(No.field)
31260
- ), Co = Lt.findIndex((No) => No.field === H);
31276
+ ), Co = Lt.findIndex((No) => No.field === W);
31261
31277
  return Co === -1 ? Lt.length : Lt.length - Co;
31262
31278
  }, "colSpan"),
31263
31279
  renderCell: /* @__PURE__ */ i((ve) => {
@@ -31296,13 +31312,13 @@ const xD = S.memo(/* @__PURE__ */ i(function({
31296
31312
  S.useEffect(() => {
31297
31313
  if (le || !X.current)
31298
31314
  return;
31299
- const H = no.current;
31300
- H && Ba(Nr, H) && (no.current = null);
31301
- const re = X.current.state?.filter?.filterModel;
31315
+ const W = no.current;
31316
+ W && Ba(Nr, W) && (no.current = null);
31317
+ const ne = X.current.state?.filter?.filterModel;
31302
31318
  no.current && !Ba(
31303
31319
  Nr,
31304
31320
  no.current
31305
- ) || Ag(re) || Ba(re, Nr) || X.current.setFilterModel(Nr);
31321
+ ) || Ag(ne) || Ba(ne, Nr) || X.current.setFilterModel(Nr);
31306
31322
  }, [X, le, Nr]), S.useEffect(
31307
31323
  () => () => {
31308
31324
  It.current && clearTimeout(It.current);
@@ -31310,14 +31326,14 @@ const xD = S.memo(/* @__PURE__ */ i(function({
31310
31326
  []
31311
31327
  );
31312
31328
  const mx = se && Zo(Q), hx = /* @__PURE__ */ i(() => {
31313
- const H = Array.from(
31314
- /* @__PURE__ */ new Set([...Et, ...Le.map((re) => re.id)])
31329
+ const W = Array.from(
31330
+ /* @__PURE__ */ new Set([...Et, ...Le.map((ne) => ne.id)])
31315
31331
  );
31316
- Wt(H), z?.(H);
31317
- }, "selectAllVisibleRows"), gx = /* @__PURE__ */ i((H) => Array.from(H?.ids ?? []), "normalizeRowSelectionModel"), bx = /* @__PURE__ */ i((H) => {
31332
+ Wt(W), z?.(W);
31333
+ }, "selectAllVisibleRows"), gx = /* @__PURE__ */ i((W) => Array.from(W?.ids ?? []), "normalizeRowSelectionModel"), bx = /* @__PURE__ */ i((W) => {
31318
31334
  if (!pt) {
31319
- const re = gx(H);
31320
- Wt(re), z?.(re);
31335
+ const ne = gx(W);
31336
+ Wt(ne), z?.(ne);
31321
31337
  }
31322
31338
  }, "handleSelectionChange"), yx = S.useMemo(
31323
31339
  () => ({
@@ -31325,42 +31341,42 @@ const xD = S.memo(/* @__PURE__ */ i(function({
31325
31341
  ids: new Set(Et)
31326
31342
  }),
31327
31343
  [Et]
31328
- ), vx = /* @__PURE__ */ i((H) => {
31329
- if (le && ia || (no.current = H, It.current && clearTimeout(It.current), Ag(H)) || Ba(H, Nr))
31344
+ ), vx = /* @__PURE__ */ i((W) => {
31345
+ if (le && ia || (no.current = W, It.current && clearTimeout(It.current), Ag(W)) || Ba(W, Nr))
31330
31346
  return;
31331
31347
  const Ue = (X.current.state.rowGrouping?.model || [])[0], Qe = w({
31332
31348
  groupingField: Ue,
31333
- ...H
31349
+ ...W
31334
31350
  });
31335
31351
  It.current = setTimeout(() => {
31336
31352
  cn(Qe, ln), It.current = null;
31337
31353
  }, uD);
31338
- }, "handleFilterChange"), Sx = /* @__PURE__ */ i((H) => {
31354
+ }, "handleFilterChange"), Sx = /* @__PURE__ */ i((W) => {
31339
31355
  if (le && ia)
31340
31356
  return;
31341
- const re = q ? [] : X.current?.state?.rowGrouping?.model || [];
31357
+ const ne = q ? [] : X.current?.state?.rowGrouping?.model || [];
31342
31358
  Ne(Pg({
31343
- field: H[0]?.field || "",
31344
- order: H[0]?.sort?.toUpperCase() || ""
31345
- }, re));
31346
- }, "handleSortModelChange"), xx = S.useCallback((H) => {
31359
+ field: W[0]?.field || "",
31360
+ order: W[0]?.sort?.toUpperCase() || ""
31361
+ }, ne));
31362
+ }, "handleSortModelChange"), xx = S.useCallback((W) => {
31347
31363
  kr(
31348
- H || {
31364
+ W || {
31349
31365
  rows: [],
31350
31366
  columns: [],
31351
31367
  values: []
31352
31368
  }
31353
31369
  ), O?.(
31354
- H || {
31370
+ W || {
31355
31371
  rows: [],
31356
31372
  columns: [],
31357
31373
  values: []
31358
31374
  }
31359
31375
  );
31360
31376
  }, [O]), Cx = S.useCallback(
31361
- (H) => {
31362
- const re = H || {};
31363
- Lf(re), $?.(re);
31377
+ (W) => {
31378
+ const ne = W || {};
31379
+ Lf(ne), $?.(ne);
31364
31380
  },
31365
31381
  [$]
31366
31382
  );
@@ -31371,26 +31387,26 @@ const xD = S.memo(/* @__PURE__ */ i(function({
31371
31387
  values: []
31372
31388
  }), Lf({}));
31373
31389
  }, [le]);
31374
- const wx = /* @__PURE__ */ i((H, re) => {
31390
+ const wx = /* @__PURE__ */ i((W, ne) => {
31375
31391
  if (le) {
31376
- re && (re.defaultMuiPrevented = !0);
31392
+ ne && (ne.defaultMuiPrevented = !0);
31377
31393
  return;
31378
31394
  }
31379
- !H?.id?.startsWith("auto-generated-row") && m && Mu(H.row, l) && Bc({ id: H.id, record: H.row });
31395
+ !W?.id?.startsWith("auto-generated-row") && m && Mu(W.row, l) && Bc({ id: W.id, record: W.row });
31380
31396
  }, "handleRowDoubleClick"), Tx = S.useCallback(
31381
- (H, re, Ee) => {
31382
- Je?.onCellDoubleClick?.(H, re, Ee), st?.onCellDoubleClick?.(H, re, Ee), le && (re.defaultMuiPrevented = !0);
31397
+ (W, ne, Ee) => {
31398
+ Je?.onCellDoubleClick?.(W, ne, Ee), st?.onCellDoubleClick?.(W, ne, Ee), le && (ne.defaultMuiPrevented = !0);
31383
31399
  },
31384
31400
  [le, st, Je]
31385
31401
  ), Ex = S.useCallback(
31386
- (H) => {
31402
+ (W) => {
31387
31403
  if (le)
31388
31404
  return !1;
31389
- const re = st?.isCellEditable;
31390
- if (typeof re == "function")
31391
- return re(H);
31405
+ const ne = st?.isCellEditable;
31406
+ if (typeof ne == "function")
31407
+ return ne(W);
31392
31408
  const Ee = Je?.isCellEditable;
31393
- return typeof Ee == "function" ? Ee(H) : !0;
31409
+ return typeof Ee == "function" ? Ee(W) : !0;
31394
31410
  },
31395
31411
  [le, st, Je]
31396
31412
  ), Px = {
@@ -31412,10 +31428,10 @@ const xD = S.memo(/* @__PURE__ */ i(function({
31412
31428
  borderColor: Wn.palette.divider
31413
31429
  }
31414
31430
  },
31415
- "& .metiri-group-row .MuiDataGrid-cell": /* @__PURE__ */ i((H) => ({
31416
- backgroundColor: H.palette.action.hover,
31417
- borderBottom: `1px solid ${H.palette.divider}`,
31418
- borderTop: `1px solid ${H.palette.divider}`
31431
+ "& .metiri-group-row .MuiDataGrid-cell": /* @__PURE__ */ i((W) => ({
31432
+ backgroundColor: W.palette.action.hover,
31433
+ borderBottom: `1px solid ${W.palette.divider}`,
31434
+ borderTop: `1px solid ${W.palette.divider}`
31419
31435
  }), "& .metiri-group-row .MuiDataGrid-cell"),
31420
31436
  '& .metiri-group-row .MuiDataGrid-cell[data-field="__check__"]': {
31421
31437
  display: "none"
@@ -31491,7 +31507,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
31491
31507
  Ib,
31492
31508
  {
31493
31509
  selectedIds: Et,
31494
- selectAllButton: q && Le.some((H) => !Et.includes(H.id)) ? /* @__PURE__ */ f(on, { title: U("pos.select_all"), children: /* @__PURE__ */ f(
31510
+ selectAllButton: q && Le.some((W) => !Et.includes(W.id)) ? /* @__PURE__ */ f(on, { title: U("pos.select_all"), children: /* @__PURE__ */ f(
31495
31511
  ao,
31496
31512
  {
31497
31513
  "aria-label": U("pos.select_all"),
@@ -31521,7 +31537,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
31521
31537
  position: "relative",
31522
31538
  paddingTop: zf,
31523
31539
  display: "grid",
31524
- gridTemplateRows: "max(320px, calc(76vh - var(--metiri-list-bottom-offset, var(--metiri-list-pagination-height, 0px)))) 1fr auto",
31540
+ gridTemplateRows: "max(320px, calc(100dvh - var(--metiri-grid-top, 24vh) - var(--metiri-list-bottom-offset, var(--metiri-list-pagination-height, 0px)))) 1fr auto",
31525
31541
  "& .MuiDataGrid-cell": {
31526
31542
  fontSize: "0.75rem"
31527
31543
  },
@@ -31552,30 +31568,30 @@ const xD = S.memo(/* @__PURE__ */ i(function({
31552
31568
  spacing: 0.5,
31553
31569
  sx: { flexWrap: "wrap" },
31554
31570
  children: [
31555
- (X.current?.state?.rowGrouping?.model || []).map((H) => {
31556
- const re = Yf.find(
31557
- (Ee) => Ee.field === H
31558
- )?.headerName ?? H;
31571
+ (X.current?.state?.rowGrouping?.model || []).map((W) => {
31572
+ const ne = Yf.find(
31573
+ (Ee) => Ee.field === W
31574
+ )?.headerName ?? W;
31559
31575
  return /* @__PURE__ */ f(
31560
31576
  zd,
31561
31577
  {
31562
31578
  size: "small",
31563
- label: re,
31579
+ label: ne,
31564
31580
  sx: { pointerEvents: "auto" },
31565
31581
  onDelete: /* @__PURE__ */ i((Ee) => {
31566
31582
  Ee.stopPropagation();
31567
31583
  const Qe = (X.current?.state?.rowGrouping?.model || []).filter(
31568
- (_t) => _t !== H
31584
+ (_t) => _t !== W
31569
31585
  );
31570
31586
  X.current?.setRowGroupingModel(
31571
31587
  Qe
31572
31588
  ), X.current?.setColumnVisibility?.(
31573
- H,
31589
+ W,
31574
31590
  !0
31575
31591
  );
31576
31592
  }, "onDelete")
31577
31593
  },
31578
- H
31594
+ W
31579
31595
  );
31580
31596
  }),
31581
31597
  /* @__PURE__ */ f(
@@ -31585,10 +31601,10 @@ const xD = S.memo(/* @__PURE__ */ i(function({
31585
31601
  variant: "outlined",
31586
31602
  label: Y === "en" ? "Ungroup" : "Desagrupar",
31587
31603
  sx: { pointerEvents: "auto" },
31588
- onClick: /* @__PURE__ */ i((H) => {
31589
- H.stopPropagation();
31590
- const re = X.current?.state?.rowGrouping?.model || [];
31591
- X.current?.setRowGroupingModel([]), re.forEach(
31604
+ onClick: /* @__PURE__ */ i((W) => {
31605
+ W.stopPropagation();
31606
+ const ne = X.current?.state?.rowGrouping?.model || [];
31607
+ X.current?.setRowGroupingModel([]), ne.forEach(
31592
31608
  (Ee) => X.current?.setColumnVisibility?.(
31593
31609
  Ee,
31594
31610
  !0
@@ -31606,7 +31622,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
31606
31622
  ep,
31607
31623
  {
31608
31624
  sx: Px,
31609
- getRowClassName: /* @__PURE__ */ i((H) => ha(H.row) ? "metiri-group-row" : "", "getRowClassName"),
31625
+ getRowClassName: /* @__PURE__ */ i((W) => ha(W.row) ? "metiri-group-row" : "", "getRowClassName"),
31610
31626
  localeText: {
31611
31627
  ...te,
31612
31628
  toolbarExportCSV: "CSV",
@@ -31628,15 +31644,15 @@ const xD = S.memo(/* @__PURE__ */ i(function({
31628
31644
  },
31629
31645
  row: {
31630
31646
  ...D?.row,
31631
- onContextMenu: /* @__PURE__ */ i((H) => {
31632
- D?.row?.onContextMenu?.(H), H.defaultPrevented || Jf(H);
31647
+ onContextMenu: /* @__PURE__ */ i((W) => {
31648
+ D?.row?.onContextMenu?.(W), W.defaultPrevented || Jf(W);
31633
31649
  }, "onContextMenu")
31634
31650
  }
31635
31651
  },
31636
31652
  columns: le ? $r : Hc,
31637
31653
  rows: Lc ? [] : Le,
31638
31654
  apiRef: X,
31639
- pivotActive: We ? le : void 0,
31655
+ pivotActive: He ? le : void 0,
31640
31656
  groupingColDef: le ? void 0 : lx,
31641
31657
  loading: pt || Z.progress.open,
31642
31658
  hideFooterRowCount: !0,
@@ -31649,9 +31665,9 @@ const xD = S.memo(/* @__PURE__ */ i(function({
31649
31665
  onRowGroupingModelChange: cx,
31650
31666
  disableRowGrouping: q || we?.disableRowGrouping || R?.disableRowGrouping,
31651
31667
  onRowSelectionModelChange: bx,
31652
- isRowSelectable: /* @__PURE__ */ i((H) => {
31653
- const re = H?.id;
31654
- return typeof re == "string" ? !re.startsWith("auto-generated-row") : !0;
31668
+ isRowSelectable: /* @__PURE__ */ i((W) => {
31669
+ const ne = W?.id;
31670
+ return typeof ne == "string" ? !ne.startsWith("auto-generated-row") : !0;
31655
31671
  }, "isRowSelectable"),
31656
31672
  onRowDoubleClick: wx,
31657
31673
  onCellDoubleClick: Tx,
@@ -31665,7 +31681,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
31665
31681
  pageSizeOptions: sD,
31666
31682
  isCellEditable: Ex,
31667
31683
  defaultGroupingExpansionDepth: le ? 0 : -1,
31668
- disableColumnResize: He ? !0 : void 0,
31684
+ disableColumnResize: je ? !0 : void 0,
31669
31685
  ...Je,
31670
31686
  ...st,
31671
31687
  onColumnWidthChange: px,
@@ -31674,7 +31690,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
31674
31690
  disableColumnSelector: le ? !0 : we?.disableColumnSelector ?? R?.disableColumnSelector,
31675
31691
  showCellVerticalBorder: le ? !0 : we?.showCellVerticalBorder ?? R?.showCellVerticalBorder,
31676
31692
  showColumnVerticalBorder: le ? !0 : we?.showColumnVerticalBorder ?? R?.showColumnVerticalBorder,
31677
- hideFooter: le ? !0 : we?.hideFooter ?? R?.hideFooter,
31693
+ hideFooter: le ? !0 : we?.hideFooter ?? R?.hideFooter ?? !0,
31678
31694
  columnGroupingModel: we?.columnGroupingModel ?? R?.columnGroupingModel,
31679
31695
  columnGroupHeaderHeight: we?.columnGroupHeaderHeight ?? R?.columnGroupHeaderHeight,
31680
31696
  aggregationFunctions: uo,
@@ -31691,14 +31707,14 @@ const xD = S.memo(/* @__PURE__ */ i(function({
31691
31707
  onClose: be,
31692
31708
  slotProps: {
31693
31709
  root: {
31694
- onContextMenu: /* @__PURE__ */ i((H) => {
31695
- if ((H.target instanceof Element ? H.target : null)?.closest(
31710
+ onContextMenu: /* @__PURE__ */ i((W) => {
31711
+ if ((W.target instanceof Element ? W.target : null)?.closest(
31696
31712
  Og
31697
31713
  )) {
31698
- H.preventDefault(), H.stopPropagation();
31714
+ W.preventDefault(), W.stopPropagation();
31699
31715
  return;
31700
31716
  }
31701
- H.preventDefault(), H.stopPropagation(), Jf(H);
31717
+ W.preventDefault(), W.stopPropagation(), Jf(W);
31702
31718
  }, "onContextMenu")
31703
31719
  },
31704
31720
  paper: {
@@ -31720,7 +31736,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
31720
31736
  autoFocusItem: !0,
31721
31737
  className: Ud.menuList
31722
31738
  },
31723
- children: fe.actions.map((H, re) => {
31739
+ children: fe.actions.map((W, ne) => {
31724
31740
  const {
31725
31741
  key: Ee,
31726
31742
  label: Ue,
@@ -31731,7 +31747,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
31731
31747
  closeMenuOnClick: En,
31732
31748
  inert: ve,
31733
31749
  onClick: gt
31734
- } = H || {};
31750
+ } = W || {};
31735
31751
  return /* @__PURE__ */ K(
31736
31752
  kn,
31737
31753
  {
@@ -31747,7 +31763,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
31747
31763
  /* @__PURE__ */ f(Yr, { children: Ue })
31748
31764
  ]
31749
31765
  },
31750
- Ee ?? `ctx-row-action-${re}`
31766
+ Ee ?? `ctx-row-action-${ne}`
31751
31767
  );
31752
31768
  })
31753
31769
  }
@@ -31778,7 +31794,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
31778
31794
  } = e, P = S.useRef(null), T = ot(lo) || {}, { lang: x = [] } = T, C = Ts(T, "borrar") || Ts(T, "delete"), E = m && !C, I = g ? [] : (a || []).filter(
31779
31795
  (B) => Yn(T, B)
31780
31796
  ), A = !!(!g && (c || u || y || E || I.length)), k = tt(e), { sort: N } = tr(), F = /* @__PURE__ */ i(() => P.current, "container"), O = Wo((B) => B.breakpoints.down("md")), $ = v ?? O, M = v && !O, [D] = Ju(), R = (D === "en" ? lf : cf).components.MuiDataGrid.defaultProps.localeText, L = Zu(), {
31781
- props: { gridContainerRef: W, chkSeleccion: j }
31797
+ props: { gridContainerRef: H, chkSeleccion: j }
31782
31798
  } = Vn(), [_, V] = S.useState({
31783
31799
  overlay: null,
31784
31800
  params: null
@@ -31839,7 +31855,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
31839
31855
  return /* @__PURE__ */ K(
31840
31856
  "div",
31841
31857
  {
31842
- ref: W,
31858
+ ref: H,
31843
31859
  style: {
31844
31860
  width: "100%",
31845
31861
  margin: "0 auto",
@@ -32015,7 +32031,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
32015
32031
  pivotUi: d
32016
32032
  }
32017
32033
  ) });
32018
- }, "GrillaEtriek"), TD = ne(po, {
32034
+ }, "GrillaEtriek"), TD = re(po, {
32019
32035
  name: "EtrDeleteButton",
32020
32036
  overridesResolver: /* @__PURE__ */ i((e, t) => t.root, "overridesResolver")
32021
32037
  })(({ theme: e }) => ({
@@ -32326,7 +32342,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
32326
32342
  isLoading: M,
32327
32343
  fichaProps: { [m]: D } = {},
32328
32344
  propsContenidos: { [m]: R = {} } = {}
32329
- } = kt(), L = zn(), W = tp((Se) => Ap(Se.configInputs, m, L)), {
32345
+ } = kt(), L = zn(), H = tp((Se) => Ap(Se.configInputs, m, L)), {
32330
32346
  conts: j = []
32331
32347
  //user = [],
32332
32348
  } = ot(lo), {
@@ -32337,7 +32353,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
32337
32353
  hidden: 0,
32338
32354
  disabled: 0,
32339
32355
  label: void 0
32340
- }, { hidden: Z } = W || {}, {
32356
+ }, { hidden: Z } = H || {}, {
32341
32357
  enviarTodo: U = !1,
32342
32358
  disabled: Y,
32343
32359
  hidden: te,
@@ -32353,7 +32369,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
32353
32369
  slotProps: de,
32354
32370
  initialState: ie,
32355
32371
  validateAllowAdd: ge
32356
- } = D || {}, xe = `${m}_enviartodo`, [Ie, we] = S.useState(n), [{ field: me, sort: We }] = n, ze = V || u || Y, Ct = Z !== void 0 ? Z : _ ? !0 : te !== void 0 ? te : h, He = R.enableLoad ?? z ?? p, le = se ?? l, X = B ?? c, fe = pe ?? d;
32372
+ } = D || {}, xe = `${m}_enviartodo`, [Ie, we] = S.useState(n), [{ field: me, sort: He }] = n, ze = V || u || Y, Ct = Z !== void 0 ? Z : _ ? !0 : te !== void 0 ? te : h, je = R.enableLoad ?? z ?? p, le = se ?? l, X = B ?? c, fe = pe ?? d;
32357
32373
  let Ge = { ...v };
32358
32374
  I && t.split(",").forEach((Se) => {
32359
32375
  Se && (Ge[Se] = [
@@ -32367,14 +32383,14 @@ const xD = S.memo(/* @__PURE__ */ i(function({
32367
32383
  }), Be(() => {
32368
32384
  k.current = A;
32369
32385
  }, [A]), Be(() => {
32370
- if (!He) {
32386
+ if (!je) {
32371
32387
  const Se = setTimeout(() => {
32372
32388
  const ft = _g(b).length > 0, io = k.current.getValues(m);
32373
32389
  !ft && io !== "" && io !== void 0 && k.current.setValue(m, "");
32374
32390
  }, 1e3);
32375
32391
  return () => clearTimeout(Se);
32376
32392
  }
32377
- }, [b, He, m]), Be(() => {
32393
+ }, [b, je, m]), Be(() => {
32378
32394
  U ? k.current.getValues(xe) !== "true" && k.current.setValue(xe, "true") : k.current.unregister(xe);
32379
32395
  }, [U, xe]), Be(() => {
32380
32396
  b.__setEtrRows = E;
@@ -32387,11 +32403,11 @@ const xD = S.memo(/* @__PURE__ */ i(function({
32387
32403
  a,
32388
32404
  {
32389
32405
  pagination: { page: 1, perPage: 200 },
32390
- sort: { field: me, order: We },
32406
+ sort: { field: me, order: He },
32391
32407
  filter: Ge
32392
32408
  },
32393
32409
  {
32394
- enabled: He && !M && $,
32410
+ enabled: je && !M && $,
32395
32411
  onSuccess: /* @__PURE__ */ i((Se) => {
32396
32412
  const ft = Se?.data || [];
32397
32413
  U ? k.current.setValue(
@@ -32431,7 +32447,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
32431
32447
  slots: Le,
32432
32448
  slotProps: pt,
32433
32449
  ...Et
32434
- } = R || {}, Wt = je(() => {
32450
+ } = R || {}, Wt = We(() => {
32435
32451
  const Se = {
32436
32452
  ...J || {},
32437
32453
  ...Le || {},
@@ -32440,7 +32456,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
32440
32456
  noRowsOverlay: Fp
32441
32457
  };
32442
32458
  return typeof Se.toolbar == "boolean" && (Se.toolbar = void 0), Se;
32443
- }, [J, Le, It, w]), ln = je(
32459
+ }, [J, Le, It, w]), ln = We(
32444
32460
  () => ({
32445
32461
  ...de || {},
32446
32462
  ...pt || {},
@@ -32526,7 +32542,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
32526
32542
  );
32527
32543
  }, "renderCell")
32528
32544
  }));
32529
- const cn = je(() => ro, [JSON.stringify(ro)]), Ft = new Set(
32545
+ const cn = We(() => ro, [JSON.stringify(ro)]), Ft = new Set(
32530
32546
  cn.filter((Se) => Se.type === "boolean").map((Se) => Se.field)
32531
32547
  ), Ne = Ft.size ? {
32532
32548
  ...ln,
@@ -32537,7 +32553,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
32537
32553
  Ft
32538
32554
  )
32539
32555
  }
32540
- } : ln, Pt = je(
32556
+ } : ln, Pt = We(
32541
32557
  () => ({
32542
32558
  ...x.initialState?.columns?.columnVisibilityModel || {},
32543
32559
  ...ie?.columns?.columnVisibilityModel || {},
@@ -32556,7 +32572,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
32556
32572
  Et.initialState?.columns?.columnVisibilityModel
32557
32573
  )
32558
32574
  ]
32559
- ), ye = je(
32575
+ ), ye = We(
32560
32576
  () => ({
32561
32577
  ...x.initialState || {},
32562
32578
  ...ie || {},
@@ -32577,12 +32593,12 @@ const xD = S.memo(/* @__PURE__ */ i(function({
32577
32593
  JSON.stringify(Et.initialState),
32578
32594
  JSON.stringify(Pt)
32579
32595
  ]
32580
- ), Re = je(
32596
+ ), Re = We(
32581
32597
  () => cn.filter(
32582
32598
  (Se) => Pt[Se?.field] !== !1
32583
32599
  ),
32584
32600
  [cn, Pt]
32585
- ), Ke = je(
32601
+ ), Ke = We(
32586
32602
  () => Re.reduce((Se, ft) => Fg(ft?.width) ? Se + ft.width : Fg(ft?.minWidth) ? Se + ft.minWidth : Se + 140, 0),
32587
32603
  [Re]
32588
32604
  ), Xe = !0;
@@ -32752,7 +32768,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
32752
32768
  enableLoad: a = !0,
32753
32769
  initialState: l,
32754
32770
  ...c
32755
- } = e, { isLoading: d } = kt(), p = Mo(e), [u, h] = Fe(o), [{ field: b, sort: m }] = o, y = je(
32771
+ } = e, { isLoading: d } = kt(), p = Mo(e), [u, h] = Fe(o), [{ field: b, sort: m }] = o, y = We(
32756
32772
  () => [...n],
32757
32773
  [JSON.stringify(n)]
32758
32774
  );
@@ -32898,7 +32914,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
32898
32914
  ] });
32899
32915
  }, "FormDialogTitle"), hS = "RaFormDialogTitle", gS = {
32900
32916
  closeButton: `${hS}-closeButton`
32901
- }, ND = ne(jd, {
32917
+ }, ND = re(jd, {
32902
32918
  name: hS,
32903
32919
  overridesResolver: /* @__PURE__ */ i((e, t) => t.root, "overridesResolver")
32904
32920
  })(({ theme: e }) => ({
@@ -33034,7 +33050,7 @@ const xD = S.memo(/* @__PURE__ */ i(function({
33034
33050
  n(!0);
33035
33051
  }, []), a = De(() => {
33036
33052
  n(!1);
33037
- }, []), l = je(
33053
+ }, []), l = We(
33038
33054
  () => ({
33039
33055
  isOpen: o,
33040
33056
  open: s,
@@ -33278,7 +33294,7 @@ const xS = /* @__PURE__ */ i(() => {
33278
33294
  enabled: o && !h
33279
33295
  },
33280
33296
  T
33281
- ), E = h?.record || h?.initialValues || x, I = h ? !1 : C, A = y && typeof y == "object" && !Array.isArray(y) ? { ...E || {}, ...y } : E, k = je(
33297
+ ), E = h?.record || h?.initialValues || x, I = h ? !1 : C, A = y && typeof y == "object" && !Array.isArray(y) ? { ...E || {}, ...y } : E, k = We(
33282
33298
  () => ({
33283
33299
  estado: b,
33284
33300
  initialValues: A || {},
@@ -33325,7 +33341,7 @@ const xS = /* @__PURE__ */ i(() => {
33325
33341
  id: u,
33326
33342
  record: h,
33327
33343
  ...b
33328
- } = e, m = p ?? (t?.state?.estado || "N"), { fichaProps: y } = uf({ ...e, estado: m }), g = s === "ventana" ? VD : aC, v = je(
33344
+ } = e, m = p ?? (t?.state?.estado || "N"), { fichaProps: y } = uf({ ...e, estado: m }), g = s === "ventana" ? VD : aC, v = We(
33329
33345
  () => Is(
33330
33346
  Is(
33331
33347
  l,
@@ -33412,7 +33428,7 @@ const xS = /* @__PURE__ */ i(() => {
33412
33428
  a,
33413
33429
  d
33414
33430
  ]), u ? null : /* @__PURE__ */ f(Bg, { ...e });
33415
- }, "CreateEtriek"), b4 = ne(YD, {
33431
+ }, "CreateEtriek"), b4 = re(YD, {
33416
33432
  name: Rs,
33417
33433
  overridesResolver: /* @__PURE__ */ i((e, t) => t.root, "overridesResolver")
33418
33434
  })(({ theme: e }) => pf(e)), XD = /* @__PURE__ */ i((e) => {
@@ -33622,9 +33638,9 @@ const xS = /* @__PURE__ */ i(() => {
33622
33638
  };
33623
33639
  }, []), w === null)
33624
33640
  return /* @__PURE__ */ f(Er, { loadingPrimary: "", loadingSecondary: "", timeout: 0 });
33625
- let W = u.filter, j = u.queryOptions;
33641
+ let H = u.filter, j = u.queryOptions;
33626
33642
  const _ = u.filters === void 0 ? /* @__PURE__ */ f(oF, {}) : u.filters;
33627
- return g && y.substring(1) === t && (W = g.filter ?? u.filter, j = g?.meta ? { meta: { ...g.meta } } : u.queryOptions), m ? /* @__PURE__ */ f(
33643
+ return g && y.substring(1) === t && (H = g.filter ?? u.filter, j = g?.meta ? { meta: { ...g.meta } } : u.queryOptions), m ? /* @__PURE__ */ f(
33628
33644
  bh,
33629
33645
  {
33630
33646
  hasCreate: n,
@@ -33677,7 +33693,7 @@ const xS = /* @__PURE__ */ i(() => {
33677
33693
  ...u,
33678
33694
  perPage: u.perPage ?? Wg,
33679
33695
  filters: _,
33680
- filter: W,
33696
+ filter: H,
33681
33697
  queryOptions: j,
33682
33698
  pagination: /* @__PURE__ */ f(
33683
33699
  nF,
@@ -33743,7 +33759,10 @@ const xS = /* @__PURE__ */ i(() => {
33743
33759
  }
33744
33760
  },
33745
33761
  [`& ${jg}`]: {
33746
- position: "sticky",
33762
+ position: {
33763
+ xs: "sticky",
33764
+ md: "relative"
33765
+ },
33747
33766
  bottom: 0,
33748
33767
  zIndex: 10,
33749
33768
  backgroundColor: "background.paper"
@@ -33799,7 +33818,7 @@ const xS = /* @__PURE__ */ i(() => {
33799
33818
  typeof e[o] == "string" && e[o].trim().length === 0 || (e[o] == null && (e[o] = ""), t[o] = e[o]);
33800
33819
  return t;
33801
33820
  }, "defaultTransform"), sF = /* @__PURE__ */ i((e) => {
33802
- const { children: t, fichaProps: o, mutationOptions: n } = e, s = pC(), [a, l] = Fe(null), c = ko(), d = _n(), p = tt(e), u = Nc(p), { record: h, isFetching: b } = s, m = u?.record || u?.initialValues || h, y = u ? !1 : b, g = e.estado ?? (c?.state?.estado || "M"), v = h?.id ?? c?.state?.id ?? "edit", w = `${p}:${g}:${v}`, P = je(
33821
+ const { children: t, fichaProps: o, mutationOptions: n } = e, s = pC(), [a, l] = Fe(null), c = ko(), d = _n(), p = tt(e), u = Nc(p), { record: h, isFetching: b } = s, m = u?.record || u?.initialValues || h, y = u ? !1 : b, g = e.estado ?? (c?.state?.estado || "M"), v = h?.id ?? c?.state?.id ?? "edit", w = `${p}:${g}:${v}`, P = We(
33803
33822
  () => ({
33804
33823
  estado: g,
33805
33824
  initialValues: m,
@@ -33839,7 +33858,7 @@ const xS = /* @__PURE__ */ i(() => {
33839
33858
  popupMutationOptions: a,
33840
33859
  children: l,
33841
33860
  ...c
33842
- } = e, d = Yb(), p = dv(e) ?? d?.id, u = e.estado ?? (t?.state?.estado || "M"), { fichaProps: h } = uf({ ...e, estado: u }), b = je(
33861
+ } = e, d = Yb(), p = dv(e) ?? d?.id, u = e.estado ?? (t?.state?.estado || "M"), { fichaProps: h } = uf({ ...e, estado: u }), b = We(
33843
33862
  () => Is(
33844
33863
  Is(
33845
33864
  s,
@@ -33929,7 +33948,7 @@ const xS = /* @__PURE__ */ i(() => {
33929
33948
  a,
33930
33949
  d
33931
33950
  ]), y ? null : /* @__PURE__ */ f(Hg, { ...e });
33932
- }, "EditEtriek"), S4 = ne(aF, {
33951
+ }, "EditEtriek"), S4 = re(aF, {
33933
33952
  name: Rs,
33934
33953
  overridesResolver: /* @__PURE__ */ i((e, t) => t.root, "overridesResolver")
33935
33954
  })(({ theme: e }) => pf(e)), x4 = S.forwardRef((e, t) => {
@@ -34139,7 +34158,7 @@ const xS = /* @__PURE__ */ i(() => {
34139
34158
  ]
34140
34159
  }
34141
34160
  );
34142
- }, "StickySimpleFormView"), hF = /* @__PURE__ */ f(Dc, {}), gF = ne(yi)(() => ({
34161
+ }, "StickySimpleFormView"), hF = /* @__PURE__ */ f(Dc, {}), gF = re(yi)(() => ({
34143
34162
  display: "flex",
34144
34163
  flexDirection: "column",
34145
34164
  flex: 1,
@@ -34383,14 +34402,14 @@ const xS = /* @__PURE__ */ i(() => {
34383
34402
  handleSeleccionMultiple: D,
34384
34403
  actionsContainerRef: R,
34385
34404
  filterActionsContainerRef: L,
34386
- viewMode: W = "grilla",
34405
+ viewMode: H = "grilla",
34387
34406
  setViewMode: j,
34388
34407
  hideViewModeMenu: _ = !1,
34389
34408
  pivotEnabled: V = !1,
34390
34409
  pivotUi: q = "mui",
34391
34410
  apiRef: Z
34392
34411
  }
34393
- } = Vn(), U = !V && W === "pivot" ? "grilla" : W, { showCreate: Y } = af({ resource: I }), te = Wo((J) => J.breakpoints.down("md"));
34412
+ } = Vn(), U = !V && H === "pivot" ? "grilla" : H, { showCreate: Y } = af({ resource: I }), te = Wo((J) => J.breakpoints.down("md"));
34394
34413
  $x(t, () => R.current);
34395
34414
  const z = { ...N, ...P }, G = /* @__PURE__ */ i((J) => {
34396
34415
  b(J.currentTarget);
@@ -34523,7 +34542,7 @@ const xS = /* @__PURE__ */ i(() => {
34523
34542
  }
34524
34543
  }), de;
34525
34544
  });
34526
- }, [ae]), je(
34545
+ }, [ae]), We(
34527
34546
  () => /* @__PURE__ */ K(Pb, { className: o, ...yC(u), children: [
34528
34547
  /* @__PURE__ */ f(
34529
34548
  "div",
@@ -34652,23 +34671,23 @@ const xS = /* @__PURE__ */ i(() => {
34652
34671
  },
34653
34672
  children: J.options.flatMap((Ie) => (Array.isArray(
34654
34673
  Ie?.children
34655
- ) && Ie.children.length > 0 ? Ie.children : [Ie]).map((We) => {
34656
- const ze = J.selectOnClick && g[J.index]?.selectedOption?.key === We.key;
34674
+ ) && Ie.children.length > 0 ? Ie.children : [Ie]).map((He) => {
34675
+ const ze = J.selectOnClick && g[J.index]?.selectedOption?.key === He.key;
34657
34676
  return /* @__PURE__ */ K(
34658
34677
  kn,
34659
34678
  {
34660
34679
  selected: ze,
34661
34680
  onClick: /* @__PURE__ */ i((Ct) => {
34662
34681
  B(
34663
- We,
34682
+ He,
34664
34683
  J.index,
34665
34684
  J
34666
- ), We.onClick ? We.onClick(
34685
+ ), He.onClick ? He.onClick(
34667
34686
  Ct,
34668
34687
  z
34669
34688
  ) : d(
34670
34689
  z,
34671
- We.key
34690
+ He.key
34672
34691
  );
34673
34692
  }, "onClick"),
34674
34693
  sx: kd,
@@ -34678,7 +34697,7 @@ const xS = /* @__PURE__ */ i(() => {
34678
34697
  {
34679
34698
  sx: Ad,
34680
34699
  children: Po(
34681
- We.icon,
34700
+ He.icon,
34682
34701
  {
34683
34702
  fontSize: "inherit"
34684
34703
  }
@@ -34688,13 +34707,13 @@ const xS = /* @__PURE__ */ i(() => {
34688
34707
  /* @__PURE__ */ f(
34689
34708
  Yr,
34690
34709
  {
34691
- primary: We.label,
34710
+ primary: He.label,
34692
34711
  primaryTypographyProps: $d
34693
34712
  }
34694
34713
  )
34695
34714
  ]
34696
34715
  },
34697
- We.key
34716
+ He.key
34698
34717
  );
34699
34718
  }))
34700
34719
  },
@@ -34760,7 +34779,7 @@ const RF = /* @__PURE__ */ i((e) => {
34760
34779
  img: ["img"],
34761
34780
  fallback: ["fallback"]
34762
34781
  }, IF, t);
34763
- }, "useUtilityClasses$7"), MF = ne("div", {
34782
+ }, "useUtilityClasses$7"), MF = re("div", {
34764
34783
  name: "MuiAvatar",
34765
34784
  slot: "Root",
34766
34785
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -34815,7 +34834,7 @@ const RF = /* @__PURE__ */ i((e) => {
34815
34834
  }
34816
34835
  }
34817
34836
  }]
34818
- }))), kF = ne("img", {
34837
+ }))), kF = re("img", {
34819
34838
  name: "MuiAvatar",
34820
34839
  slot: "Img"
34821
34840
  })({
@@ -34828,7 +34847,7 @@ const RF = /* @__PURE__ */ i((e) => {
34828
34847
  color: "transparent",
34829
34848
  // Hide the image broken icon, only works on Chrome.
34830
34849
  textIndent: 1e4
34831
- }), AF = ne(OF, {
34850
+ }), AF = re(OF, {
34832
34851
  name: "MuiAvatar",
34833
34852
  slot: "Fallback"
34834
34853
  })({
@@ -35024,7 +35043,7 @@ const DF = /* @__PURE__ */ i((e) => {
35024
35043
  return ke({
35025
35044
  root: ["root"]
35026
35045
  }, NF, t);
35027
- }, "useUtilityClasses$6"), FF = ne(Xo, {
35046
+ }, "useUtilityClasses$6"), FF = re(Xo, {
35028
35047
  name: "MuiCard",
35029
35048
  slot: "Root"
35030
35049
  })({
@@ -35089,7 +35108,7 @@ const LF = /* @__PURE__ */ i((e) => {
35089
35108
  return ke({
35090
35109
  root: ["root", !o && "spacing"]
35091
35110
  }, _F, t);
35092
- }, "useUtilityClasses$5"), BF = ne("div", {
35111
+ }, "useUtilityClasses$5"), BF = re("div", {
35093
35112
  name: "MuiCardActions",
35094
35113
  slot: "Root",
35095
35114
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -35299,7 +35318,7 @@ const T4 = /* @__PURE__ */ i((e) => {
35299
35318
  // NUEVO (opcional): si querés forzar el tooltip del botón, aunque el seleccionado sea otro
35300
35319
  title: a
35301
35320
  // string
35302
- } = e, [l, c] = Fe(!1), d = eo(), p = tt(e), u = ot(lo) || {}, { menuModel: h, leafOptions: b, menuVisible: m } = je(() => {
35321
+ } = e, [l, c] = Fe(!1), d = eo(), p = tt(e), u = ot(lo) || {}, { menuModel: h, leafOptions: b, menuVisible: m } = We(() => {
35303
35322
  const E = [], I = [], A = t?.[s];
35304
35323
  return Yn(u, A) ? ((t || []).forEach((k) => {
35305
35324
  if (!Yn(u, k))
@@ -35476,7 +35495,7 @@ const T4 = /* @__PURE__ */ i((e) => {
35476
35495
  )
35477
35496
  ] });
35478
35497
  }, "MultiTextField"), VF = /* @__PURE__ */ i((e) => {
35479
- const { children: t, fichaProps: o } = e, n = xC(), [s, a] = Fe(null), l = ko(), c = _n(), d = tt(e), { record: p, isFetching: u } = n, h = e.estado ?? (l?.state?.estado || "M"), b = p?.id ?? l?.state?.id ?? "show", m = `${d}:${h}:${b}`, y = je(
35498
+ const { children: t, fichaProps: o } = e, n = xC(), [s, a] = Fe(null), l = ko(), c = _n(), d = tt(e), { record: p, isFetching: u } = n, h = e.estado ?? (l?.state?.estado || "M"), b = p?.id ?? l?.state?.id ?? "show", m = `${d}:${h}:${b}`, y = We(
35480
35499
  () => ({
35481
35500
  estado: h,
35482
35501
  initialValues: p,
@@ -35501,7 +35520,7 @@ const T4 = /* @__PURE__ */ i((e) => {
35501
35520
  }, "ShowChildren"), zF = /* @__PURE__ */ i((e) => {
35502
35521
  const t = ko(), { useFormulario: o, children: n, ...s } = e, a = dv(e), l = e.estado ?? (t?.state?.estado || "M"), { fichaProps: c } = uf({ ...e, estado: l });
35503
35522
  return /* @__PURE__ */ f(ci, { children: /* @__PURE__ */ f(SC, { id: a, emptyWhileLoading: !0, ...s, ...c?.panel, children: /* @__PURE__ */ f(VF, { estado: l, fichaProps: c, children: n }) }) });
35504
- }, "ShowEtriek"), O4 = ne(zF, {
35523
+ }, "ShowEtriek"), O4 = re(zF, {
35505
35524
  name: Rs,
35506
35525
  overridesResolver: /* @__PURE__ */ i((e, t) => t.root, "overridesResolver")
35507
35526
  })(({ theme: e }) => pf(e)), jF = /* @__PURE__ */ i((e) => {
@@ -35629,10 +35648,10 @@ const T4 = /* @__PURE__ */ i((e) => {
35629
35648
  },
35630
35649
  M
35631
35650
  )), c.props.onChange && c.props.onChange(M, D);
35632
- }, "handleTabChange"), I = je(() => ps.toArray(o), [o]), A = je(
35651
+ }, "handleTabChange"), I = We(() => ps.toArray(o), [o]), A = We(
35633
35652
  () => I.reduce((M, D) => Yg(D) ? [...M, { tab: D, tabIndex: M.length }] : M, []),
35634
35653
  [I]
35635
- ), k = je(() => l ? A.findIndex(({ tab: M, tabIndex: D }) => {
35654
+ ), k = We(() => l ? A.findIndex(({ tab: M, tabIndex: D }) => {
35636
35655
  const R = ma(M, D);
35637
35656
  return ms(
35638
35657
  `${g}/${R}`,
@@ -35644,7 +35663,7 @@ const T4 = /* @__PURE__ */ i((e) => {
35644
35663
  l,
35645
35664
  m,
35646
35665
  A
35647
- ]), N = je(() => !l || k >= 0 ? k : A.length ? 0 : -1, [k, l, A.length]), F = je(() => {
35666
+ ]), N = We(() => !l || k >= 0 ? k : A.length ? 0 : -1, [k, l, A.length]), F = We(() => {
35648
35667
  if (l) {
35649
35668
  const M = A[N];
35650
35669
  return M ? ma(
@@ -35653,7 +35672,7 @@ const T4 = /* @__PURE__ */ i((e) => {
35653
35672
  ) : !1;
35654
35673
  }
35655
35674
  return m;
35656
- }, [N, l, A, m]), O = je(
35675
+ }, [N, l, A, m]), O = We(
35657
35676
  () => A.map(
35658
35677
  ({ tab: M, tabIndex: D }) => Po(M, {
35659
35678
  value: l ? ma(M, D) : D
@@ -35788,14 +35807,14 @@ const T4 = /* @__PURE__ */ i((e) => {
35788
35807
  const R = ma(
35789
35808
  D,
35790
35809
  M
35791
- ), W = !(l ? N === M : m === M);
35810
+ ), H = !(l ? N === M : m === M);
35792
35811
  return Po(D, {
35793
35812
  intent: "content",
35794
35813
  resource: b,
35795
- hidden: W,
35796
- inert: W ? "" : void 0,
35814
+ hidden: H,
35815
+ inert: H ? "" : void 0,
35797
35816
  // Mantener dimensiones para las grillas sin desmontar sus datos.
35798
- style: W ? {
35817
+ style: H ? {
35799
35818
  ...D.props.style,
35800
35819
  display: "flex",
35801
35820
  position: "absolute",
@@ -35829,7 +35848,7 @@ const T4 = /* @__PURE__ */ i((e) => {
35829
35848
  ]
35830
35849
  }
35831
35850
  );
35832
- }, "StickyTabbedFormView"), JF = /* @__PURE__ */ f(Bb, {}), QF = /* @__PURE__ */ f(Dc, {}), ZF = ne(yi)(() => ({
35851
+ }, "StickyTabbedFormView"), JF = /* @__PURE__ */ f(Bb, {}), QF = /* @__PURE__ */ f(Dc, {}), ZF = re(yi)(() => ({
35833
35852
  display: "flex",
35834
35853
  flexDirection: "column",
35835
35854
  flex: 1,
@@ -36044,7 +36063,7 @@ const i_ = /* @__PURE__ */ i((e) => {
36044
36063
  root: ["root", `color${ue(t)}`, `position${ue(o)}`]
36045
36064
  };
36046
36065
  return ke(s, r_, n);
36047
- }, "useUtilityClasses$4"), Jg = /* @__PURE__ */ i((e, t) => e ? `${e.replace(")", "")}, ${t})` : t, "joinVars"), s_ = ne(Xo, {
36066
+ }, "useUtilityClasses$4"), Jg = /* @__PURE__ */ i((e, t) => e ? `${e.replace(")", "")}, ${t})` : t, "joinVars"), s_ = re(Xo, {
36048
36067
  name: "MuiAppBar",
36049
36068
  slot: "Root",
36050
36069
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -36540,7 +36559,7 @@ const Qg = S.forwardRef(/* @__PURE__ */ i(function(t, o) {
36540
36559
  dialogProps: R = {}
36541
36560
  } = g || {}, {
36542
36561
  popupControls: L = {},
36543
- contentScroll: W = "dialog",
36562
+ contentScroll: H = "dialog",
36544
36563
  PaperProps: j = {},
36545
36564
  ..._
36546
36565
  } = R || {}, V = P ? {
@@ -36549,7 +36568,7 @@ const Qg = S.forwardRef(/* @__PURE__ */ i(function(t, o) {
36549
36568
  } : _, q = {
36550
36569
  display: "flex",
36551
36570
  flexDirection: "column",
36552
- ...I === "form" && W === "contained" ? { overflow: "hidden" } : {},
36571
+ ...I === "form" && H === "contained" ? { overflow: "hidden" } : {},
36553
36572
  ...I === "vista" ? { height: { xs: "100%", sm: "75vh" } } : {}
36554
36573
  }, Z = {
36555
36574
  ...j,
@@ -36607,7 +36626,7 @@ const Qg = S.forwardRef(/* @__PURE__ */ i(function(t, o) {
36607
36626
  cancelLabel: $,
36608
36627
  confirmLabel: M,
36609
36628
  hasForm: D,
36610
- contentScroll: W
36629
+ contentScroll: H
36611
36630
  }) : b({
36612
36631
  title: T,
36613
36632
  controles: x,
@@ -36663,7 +36682,7 @@ const Qg = S.forwardRef(/* @__PURE__ */ i(function(t, o) {
36663
36682
  ))
36664
36683
  ] });
36665
36684
  }, "FormToolbar"), $4 = /* @__PURE__ */ i((e) => /* @__PURE__ */ f(Er, { timeout: 0, ...e }), "Loading"), hf = gE({
36666
- createStyledComponent: ne("div", {
36685
+ createStyledComponent: re("div", {
36667
36686
  name: "MuiGrid",
36668
36687
  slot: "Root",
36669
36688
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -36869,7 +36888,7 @@ const N4 = /* @__PURE__ */ i(({ title: e, children: t, sx: o, source: n, ...s })
36869
36888
  Be(() => {
36870
36889
  c || p(!0);
36871
36890
  }, [c]);
36872
- const u = d || !c, h = je(
36891
+ const u = d || !c, h = We(
36873
36892
  () => ({
36874
36893
  hidden: c,
36875
36894
  isActive: !c,
@@ -37087,7 +37106,7 @@ const f_ = Ae("MuiLink", ["root", "underlineNone", "underlineHover", "underlineA
37087
37106
  root: ["root", `underline${ue(s)}`, o === "button" && "button", n && "focusVisible"]
37088
37107
  };
37089
37108
  return ke(a, p_, t);
37090
- }, "useUtilityClasses$3"), g_ = ne(Yt, {
37109
+ }, "useUtilityClasses$3"), g_ = re(Yt, {
37091
37110
  name: "MuiLink",
37092
37111
  slot: "Root",
37093
37112
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -37821,7 +37840,7 @@ const b_ = Pe([/* @__PURE__ */ f("circle", {
37821
37840
  isFetching: h,
37822
37841
  allChoices: b,
37823
37842
  availableChoices: m
37824
- } = Wb(), y = eo(null), g = eo(null), v = je(() => {
37843
+ } = Wb(), y = eo(null), g = eo(null), v = We(() => {
37825
37844
  const x = Array.isArray(m) ? m : [];
37826
37845
  if (!Array.isArray(c) || c.length === 0)
37827
37846
  return x;
@@ -37829,7 +37848,7 @@ const b_ = Pe([/* @__PURE__ */ f("circle", {
37829
37848
  return x.forEach((E) => {
37830
37849
  C.some((I) => bi(I?.id, E?.id)) || C.push(E);
37831
37850
  }), C;
37832
- }, [m, c]), w = je(() => u?.isRequired || h || !Array.isArray(v) ? !1 : !v.some((x) => bi(x?.id, "0")), [h, v, u?.isRequired]), P = De(
37851
+ }, [m, c]), w = We(() => u?.isRequired || h || !Array.isArray(v) ? !1 : !v.some((x) => bi(x?.id, "0")), [h, v, u?.isRequired]), P = De(
37833
37852
  (x, C) => {
37834
37853
  typeof a == "function" && a({
37835
37854
  target: {
@@ -37907,10 +37926,10 @@ const b_ = Pe([/* @__PURE__ */ f("circle", {
37907
37926
  }
37908
37927
  const M = De(
37909
37928
  (R, L) => {
37910
- const W = {
37929
+ const H = {
37911
37930
  ...L?.data && typeof L.data == "object" ? L.data : {},
37912
37931
  ...R && typeof R == "object" ? R : {}
37913
- }, j = R?.id ?? R?.[y] ?? W?.id ?? W?.[y] ?? L?.id ?? L?.data?.id ?? L?.data?.[y], _ = O_(W, j, y);
37932
+ }, j = R?.id ?? R?.[y] ?? H?.id ?? H?.[y] ?? L?.id ?? L?.data?.id ?? L?.data?.[y], _ = O_(H, j, y);
37914
37933
  _ && _.id !== void 0 && _.id !== null && _.id !== "" && (C((V) => V.some(
37915
37934
  (Z) => bi(Z?.id, _.id)
37916
37935
  ) ? V : [_, ...V].slice(0, 10)), s.setQueriesData(
@@ -37941,8 +37960,8 @@ const b_ = Pe([/* @__PURE__ */ f("circle", {
37941
37960
  },
37942
37961
  [a, s, g, y]
37943
37962
  ), D = De(
37944
- (R, L, W) => {
37945
- W === "input" && Array.isArray(x) && x.length > 0 && L !== void 0 && C([]);
37963
+ (R, L, H) => {
37964
+ H === "input" && Array.isArray(x) && x.length > 0 && L !== void 0 && C([]);
37946
37965
  },
37947
37966
  [x]
37948
37967
  );
@@ -38194,9 +38213,9 @@ const b_ = Pe([/* @__PURE__ */ f("circle", {
38194
38213
  ), E = S.useMemo(
38195
38214
  () => new Set(Array.isArray(m) ? m : []),
38196
38215
  [m]
38197
- ), I = S.useMemo(() => ((Array.isArray(P) && P.length ? P : (T || []).filter((L) => !E.has(L.id))) || []).filter((L) => L && !E.has(L.id)), [P, T, E]), A = /* @__PURE__ */ i((R, L, W) => () => {
38216
+ ), I = S.useMemo(() => ((Array.isArray(P) && P.length ? P : (T || []).filter((L) => !E.has(L.id))) || []).filter((L) => L && !E.has(L.id)), [P, T, E]), A = /* @__PURE__ */ i((R, L, H) => () => {
38198
38217
  const j = c.indexOf(R), _ = [...c];
38199
- if (W.shiftKey && p !== null) {
38218
+ if (H.shiftKey && p !== null) {
38200
38219
  const V = Math.min(p, L), q = Math.max(p, L);
38201
38220
  I.slice(V, q + 1).map((U) => U.id).forEach((U) => {
38202
38221
  _.includes(U) || _.push(U);
@@ -38205,23 +38224,23 @@ const b_ = Pe([/* @__PURE__ */ f("circle", {
38205
38224
  j === -1 ? _.push(R) : _.splice(j, 1);
38206
38225
  d(_), u(L);
38207
38226
  }, "handleToggle"), k = /* @__PURE__ */ i((R, L) => {
38208
- const W = R?.id;
38209
- if (W != null) {
38227
+ const H = R?.id;
38228
+ if (H != null) {
38210
38229
  if (L) {
38211
- if (E.has(W))
38230
+ if (E.has(H))
38212
38231
  return;
38213
38232
  const j = [
38214
38233
  ...Array.isArray(m) ? m : [],
38215
- W
38234
+ H
38216
38235
  ];
38217
38236
  h.setValue(o, j, { shouldDirty: !0 });
38218
38237
  } else {
38219
38238
  const j = (Array.isArray(m) ? m : []).filter(
38220
- (_) => _ !== W
38239
+ (_) => _ !== H
38221
38240
  );
38222
38241
  h.setValue(o, j, { shouldDirty: !0 });
38223
38242
  }
38224
- d((j) => j.filter((_) => _ !== W));
38243
+ d((j) => j.filter((_) => _ !== H));
38225
38244
  }
38226
38245
  }, "handleDoubleClick"), N = /* @__PURE__ */ i(() => {
38227
38246
  const R = (Array.isArray(T) ? T : []).map((L) => L.id).filter((L) => L != null);
@@ -38231,13 +38250,13 @@ const b_ = Pe([/* @__PURE__ */ f("circle", {
38231
38250
  }, "handleAllLeft"), O = /* @__PURE__ */ i(() => {
38232
38251
  const R = un(
38233
38252
  c,
38234
- I.map((W) => W.id)
38253
+ I.map((H) => H.id)
38235
38254
  );
38236
38255
  if (!R.length)
38237
38256
  return;
38238
38257
  const L = [
38239
38258
  ...Array.isArray(m) ? m : [],
38240
- ...R.filter((W) => !E.has(W))
38259
+ ...R.filter((H) => !E.has(H))
38241
38260
  ];
38242
38261
  h.setValue(o, L, { shouldDirty: !0 }), d(sb(c, R));
38243
38262
  }, "handleCheckedRight"), $ = /* @__PURE__ */ i(() => {
@@ -38247,13 +38266,13 @@ const b_ = Pe([/* @__PURE__ */ f("circle", {
38247
38266
  );
38248
38267
  if (!R.length)
38249
38268
  return;
38250
- const L = new Set(R), W = (Array.isArray(m) ? m : []).filter(
38269
+ const L = new Set(R), H = (Array.isArray(m) ? m : []).filter(
38251
38270
  (j) => !L.has(j)
38252
38271
  );
38253
- h.setValue(o, W, { shouldDirty: !0 }), d(sb(c, R));
38272
+ h.setValue(o, H, { shouldDirty: !0 }), d(sb(c, R));
38254
38273
  }, "handleCheckedLeft"), M = /* @__PURE__ */ i(() => {
38255
38274
  typeof h.resetField == "function" ? h.resetField(o, { defaultValue: y }) : h.setValue(o, y, { shouldDirty: !1 }), d([]), u(null);
38256
- }, "handleResetChanges"), D = /* @__PURE__ */ i((R, L, W = {}) => {
38275
+ }, "handleResetChanges"), D = /* @__PURE__ */ i((R, L, H = {}) => {
38257
38276
  const j = L ? "Disponibles..." : "Seleccionados...", _ = /* @__PURE__ */ i((q) => {
38258
38277
  v(q === "" ? q : q.target.value);
38259
38278
  }, "handleSearchChange"), V = R.filter(
@@ -38263,7 +38282,7 @@ const b_ = Pe([/* @__PURE__ */ f("circle", {
38263
38282
  Xo,
38264
38283
  {
38265
38284
  sx: /* @__PURE__ */ i((q) => {
38266
- const Z = typeof W == "function" ? W(q) : W;
38285
+ const Z = typeof H == "function" ? H(q) : H;
38267
38286
  return {
38268
38287
  width: "100%",
38269
38288
  minWidth: 0,
@@ -40762,7 +40781,7 @@ const wL = LS(), TL = /* @__PURE__ */ i((e) => {
40762
40781
  // itemDragAndDropOverlay: ['itemDragAndDropOverlay'], => feature not available on this component
40763
40782
  // itemErrorIcon: ['itemErrorIcon'], => feature not available on this component
40764
40783
  }, Y_, t), [t]);
40765
- }, "useUtilityClasses$2"), EL = ne("ul", {
40784
+ }, "useUtilityClasses$2"), EL = re("ul", {
40766
40785
  name: "MuiSimpleTreeView",
40767
40786
  slot: "Root"
40768
40787
  })({
@@ -40986,7 +41005,7 @@ const OL = /* @__PURE__ */ i((e) => {
40986
41005
  wrapper: ["wrapper", t],
40987
41006
  wrapperInner: ["wrapperInner", t]
40988
41007
  }, PL, o);
40989
- }, "useUtilityClasses$1"), IL = ne("div", {
41008
+ }, "useUtilityClasses$1"), IL = re("div", {
40990
41009
  name: "MuiCollapse",
40991
41010
  slot: "Root",
40992
41011
  overridesResolver: /* @__PURE__ */ i((e, t) => {
@@ -41034,7 +41053,7 @@ const OL = /* @__PURE__ */ i((e) => {
41034
41053
  visibility: "hidden"
41035
41054
  }
41036
41055
  }]
41037
- }))), RL = ne("div", {
41056
+ }))), RL = re("div", {
41038
41057
  name: "MuiCollapse",
41039
41058
  slot: "Wrapper"
41040
41059
  })({
@@ -41050,7 +41069,7 @@ const OL = /* @__PURE__ */ i((e) => {
41050
41069
  height: "100%"
41051
41070
  }
41052
41071
  }]
41053
- }), ML = ne("div", {
41072
+ }), ML = re("div", {
41054
41073
  name: "MuiCollapse",
41055
41074
  slot: "WrapperInner"
41056
41075
  })({
@@ -41094,7 +41113,7 @@ const OL = /* @__PURE__ */ i((e) => {
41094
41113
  ...n,
41095
41114
  orientation: w,
41096
41115
  collapsedSize: c
41097
- }, k = OL(A), N = Ao(), F = vr(), O = S.useRef(null), $ = S.useRef(), M = typeof c == "number" ? `${c}px` : c, D = w === "horizontal", R = D ? "width" : "height", L = S.useRef(null), W = Mt(o, L), j = /* @__PURE__ */ i((J) => (de) => {
41116
+ }, k = OL(A), N = Ao(), F = vr(), O = S.useRef(null), $ = S.useRef(), M = typeof c == "number" ? `${c}px` : c, D = w === "horizontal", R = D ? "width" : "height", L = S.useRef(null), H = Mt(o, L), j = /* @__PURE__ */ i((J) => (de) => {
41098
41117
  if (J) {
41099
41118
  const ie = L.current;
41100
41119
  de === void 0 ? J(ie) : J(ie, de);
@@ -41148,7 +41167,7 @@ const OL = /* @__PURE__ */ i((e) => {
41148
41167
  slotProps: T,
41149
41168
  component: d
41150
41169
  }, [Q, ee] = _e("root", {
41151
- ref: W,
41170
+ ref: H,
41152
41171
  className: ce(k.root, l),
41153
41172
  elementType: IL,
41154
41173
  externalForwardedProps: G,
@@ -41558,7 +41577,7 @@ process.env.NODE_ENV !== "production" && (qS.propTypes = {
41558
41577
  selected: r.bool.isRequired
41559
41578
  }).isRequired
41560
41579
  });
41561
- const _L = ne("div", {
41580
+ const _L = re("div", {
41562
41581
  name: "MuiTreeItemDragAndDropOverlay",
41563
41582
  slot: "Root",
41564
41583
  shouldForwardProp: /* @__PURE__ */ i((e) => Zr(e) && e !== "action", "shouldForwardProp")
@@ -41647,7 +41666,7 @@ process.env.NODE_ENV !== "production" && (YS.propTypes = {
41647
41666
  id: r.string,
41648
41667
  itemId: r.string.isRequired
41649
41668
  });
41650
- const LL = ne("input", {
41669
+ const LL = re("input", {
41651
41670
  name: "MuiTreeItem",
41652
41671
  slot: "LabelInput"
41653
41672
  })(({
@@ -41662,7 +41681,7 @@ const LL = ne("input", {
41662
41681
  "&:focus": {
41663
41682
  outline: `1px solid ${(e.vars || e).palette.primary.main}`
41664
41683
  }
41665
- })), BL = ["visible"], VL = ["id", "itemId", "label", "disabled", "disableSelection", "children", "slots", "slotProps", "classes"], zL = LS(), jL = ne("li", {
41684
+ })), BL = ["visible"], VL = ["id", "itemId", "label", "disabled", "disableSelection", "children", "slots", "slotProps", "classes"], zL = LS(), jL = re("li", {
41666
41685
  name: "MuiTreeItem",
41667
41686
  slot: "Root"
41668
41687
  })({
@@ -41670,7 +41689,7 @@ const LL = ne("input", {
41670
41689
  margin: 0,
41671
41690
  padding: 0,
41672
41691
  outline: 0
41673
- }), WL = ne("div", {
41692
+ }), WL = re("div", {
41674
41693
  name: "MuiTreeItem",
41675
41694
  slot: "Content",
41676
41695
  shouldForwardProp: /* @__PURE__ */ i((e) => Zr(e) && e !== "status", "shouldForwardProp")
@@ -41717,7 +41736,7 @@ const LL = ne("input", {
41717
41736
  "&[data-selected][data-focused]": {
41718
41737
  backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : Bt(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
41719
41738
  }
41720
- })), HL = ne("div", {
41739
+ })), HL = re("div", {
41721
41740
  name: "MuiTreeItem",
41722
41741
  slot: "Label",
41723
41742
  shouldForwardProp: /* @__PURE__ */ i((e) => Zr(e) && e !== "editable", "shouldForwardProp")
@@ -41740,7 +41759,7 @@ const LL = ne("input", {
41740
41759
  paddingLeft: "2px"
41741
41760
  }
41742
41761
  }]
41743
- })), UL = ne("div", {
41762
+ })), UL = re("div", {
41744
41763
  name: "MuiTreeItem",
41745
41764
  slot: "IconContainer"
41746
41765
  })({
@@ -41753,14 +41772,14 @@ const LL = ne("input", {
41753
41772
  "& svg": {
41754
41773
  fontSize: 18
41755
41774
  }
41756
- }), GL = ne(Nl, {
41775
+ }), GL = re(Nl, {
41757
41776
  name: "MuiTreeItem",
41758
41777
  slot: "GroupTransition",
41759
41778
  overridesResolver: /* @__PURE__ */ i((e, t) => t.groupTransition, "overridesResolver")
41760
41779
  })({
41761
41780
  margin: 0,
41762
41781
  padding: 0
41763
- }), qL = ne("div", {
41782
+ }), qL = re("div", {
41764
41783
  name: "MuiTreeItem",
41765
41784
  slot: "ErrorIcon"
41766
41785
  })({
@@ -41770,12 +41789,12 @@ const LL = ne("input", {
41770
41789
  height: 7,
41771
41790
  borderRadius: "50%",
41772
41791
  backgroundColor: "red"
41773
- }), KL = ne(Ci, {
41792
+ }), KL = re(Ci, {
41774
41793
  name: "MuiTreeItem",
41775
41794
  slot: "LoadingIcon"
41776
41795
  })({
41777
41796
  color: "text.primary"
41778
- }), XS = ne(/* @__PURE__ */ S.forwardRef((e, t) => {
41797
+ }), XS = re(/* @__PURE__ */ S.forwardRef((e, t) => {
41779
41798
  const {
41780
41799
  visible: o
41781
41800
  } = e, n = mc(e, BL);
@@ -41878,7 +41897,7 @@ const YL = /* @__PURE__ */ i((e) => {
41878
41897
  externalSlotProps: h.iconContainer,
41879
41898
  ownerState: {},
41880
41899
  className: N.iconContainer
41881
- }), L = u.label ?? HL, W = qt({
41900
+ }), L = u.label ?? HL, H = qt({
41882
41901
  elementType: L,
41883
41902
  getSlotProps: T,
41884
41903
  externalSlotProps: h.label,
@@ -41930,7 +41949,7 @@ const YL = /* @__PURE__ */ i((e) => {
41930
41949
  slots: u,
41931
41950
  slotProps: h
41932
41951
  })]
41933
- })), /* @__PURE__ */ f(j, he({}, _)), k.editing ? /* @__PURE__ */ f(Z, he({}, U)) : /* @__PURE__ */ f(L, he({}, W)), /* @__PURE__ */ f(Y, he({}, te))]
41952
+ })), /* @__PURE__ */ f(j, he({}, _)), k.editing ? /* @__PURE__ */ f(Z, he({}, U)) : /* @__PURE__ */ f(L, he({}, H)), /* @__PURE__ */ f(Y, he({}, te))]
41934
41953
  })), p && /* @__PURE__ */ f(GL, he({
41935
41954
  as: V
41936
41955
  }, q))]
@@ -42063,10 +42082,10 @@ const hr = /* @__PURE__ */ i((e) => e === "E" ? "E" : e === "T" ? "T" : "A", "no
42063
42082
  return t;
42064
42083
  }
42065
42084
  }, "getFuncionarioTooltipLine"), e5 = /* @__PURE__ */ i((e) => e ? typeof e == "string" ? e.trim() : typeof e == "object" && !Array.isArray(e) ? String(e.fillista || e.filgrilla || "").trim() : "" : "", "normalizeFilgrilla"), bb = /* @__PURE__ */ i((e, t) => t ? !e || e === "null" ? t : `(${e}) AND (${t})` : e, "combineFillista"), t5 = /* @__PURE__ */ i(({ onRecordsLoaded: e }) => {
42066
- const { data: t = [], isPending: o, isLoading: n, isFetching: s } = tr(), a = je(
42085
+ const { data: t = [], isPending: o, isLoading: n, isFetching: s } = tr(), a = We(
42067
42086
  () => Array.isArray(t) ? t : Object.values(t),
42068
42087
  [t]
42069
- ), l = je(
42088
+ ), l = We(
42070
42089
  () => a.map((d) => String(d.id)).join("|"),
42071
42090
  [a]
42072
42091
  ), c = S.useRef(a);
@@ -42269,20 +42288,20 @@ const hr = /* @__PURE__ */ i((e) => e === "E" ? "E" : e === "T" ? "T" : "A", "no
42269
42288
  onStatusFilterChange: c,
42270
42289
  initialFilterKey: d = qi[0].key,
42271
42290
  filterOptionKeys: p
42272
- } = e, u = je(() => !Array.isArray(p) || p.length === 0 ? qi : qi.filter(
42291
+ } = e, u = We(() => !Array.isArray(p) || p.length === 0 ? qi : qi.filter(
42273
42292
  (U) => p.includes(U.key)
42274
42293
  ), [p]), [h, b] = Fe(s5), [m, y] = Fe([]), [g, v] = Fe(null), [w, P] = Fe(!0), [T, x] = Fe(!1), [C, E] = Fe(
42275
42294
  u.find((U) => U.key === d) || u[0] || qi[0]
42276
- ), I = _n(), A = Ao(), k = !!g, N = je(
42295
+ ), I = _n(), A = Ao(), k = !!g, N = We(
42277
42296
  () => e5(o),
42278
42297
  [o]
42279
- ), F = je(
42298
+ ), F = We(
42280
42299
  () => ({
42281
42300
  ...n || {},
42282
42301
  ...C.getMeta()
42283
42302
  }),
42284
42303
  [n, C]
42285
- ), O = je(
42304
+ ), O = We(
42286
42305
  () => [
42287
42306
  C.key,
42288
42307
  JSON.stringify(h),
@@ -42377,12 +42396,12 @@ const hr = /* @__PURE__ */ i((e) => e === "E" ? "E" : e === "T" ? "T" : "A", "no
42377
42396
  ]
42378
42397
  }
42379
42398
  ) : U.id === Ka.id ? t(U.text) : U.text;
42380
- }, "renderNodeLabel"), W = /* @__PURE__ */ i((U) => U.map((Y) => /* @__PURE__ */ f(
42399
+ }, "renderNodeLabel"), H = /* @__PURE__ */ i((U) => U.map((Y) => /* @__PURE__ */ f(
42381
42400
  Dl,
42382
42401
  {
42383
42402
  itemId: Y.id,
42384
42403
  label: L(Y),
42385
- children: Y.children.length > 0 ? W(Y.children) : Y.hasItems ? /* @__PURE__ */ f(
42404
+ children: Y.children.length > 0 ? H(Y.children) : Y.hasItems ? /* @__PURE__ */ f(
42386
42405
  Dl,
42387
42406
  {
42388
42407
  itemId: `${Y.id}-placeholder`,
@@ -42538,7 +42557,7 @@ const hr = /* @__PURE__ */ i((e) => e === "E" ? "E" : e === "T" ? "T" : "A", "no
42538
42557
  fontSize: 18
42539
42558
  }
42540
42559
  },
42541
- children: W(m)
42560
+ children: H(m)
42542
42561
  }
42543
42562
  )
42544
42563
  ]
@@ -42658,7 +42677,7 @@ const hr = /* @__PURE__ */ i((e) => e === "E" ? "E" : e === "T" ? "T" : "A", "no
42658
42677
  });
42659
42678
  } catch {
42660
42679
  }
42661
- const L = T.map((j) => D[String(j)]).filter(Boolean), W = {
42680
+ const L = T.map((j) => D[String(j)]).filter(Boolean), H = {
42662
42681
  button: M,
42663
42682
  selectedIds: T,
42664
42683
  selectedRecords: L,
@@ -42669,7 +42688,7 @@ const hr = /* @__PURE__ */ i((e) => e === "E" ? "E" : e === "T" ? "T" : "A", "no
42669
42688
  (j) => j.funnro
42670
42689
  )
42671
42690
  };
42672
- d($, W.selectedIds, W);
42691
+ d($, H.selectedIds, H);
42673
42692
  } finally {
42674
42693
  k(!1);
42675
42694
  }
@@ -42772,7 +42791,7 @@ const hr = /* @__PURE__ */ i((e) => e === "E" ? "E" : e === "T" ? "T" : "A", "no
42772
42791
  isRequired: R,
42773
42792
  ...L
42774
42793
  }
42775
- } = mo(e), W = D ? {
42794
+ } = mo(e), H = D ? {
42776
42795
  validate: /* @__PURE__ */ i((X) => {
42777
42796
  const fe = Array.isArray(D) ? D : [D];
42778
42797
  for (const Ge of fe) {
@@ -42787,10 +42806,10 @@ const hr = /* @__PURE__ */ i((e) => e === "E" ? "E" : e === "T" ? "T" : "A", "no
42787
42806
  } : void 0, { field: j, fieldState: _ } = JC({
42788
42807
  name: t,
42789
42808
  control: y.control,
42790
- rules: W
42809
+ rules: H
42791
42810
  }), { [t]: V = {} } = v, q = sn(e), Z = V.onChange === void 0 ? o : V.onChange, U = A !== !1 && O !== !1, [Y, te] = Fe(
42792
42811
  hr(O)
42793
- ), z = je(
42812
+ ), z = We(
42794
42813
  () => Bd.find((X) => X.value === Y) || Bd[0],
42795
42814
  [Y]
42796
42815
  );
@@ -42828,10 +42847,10 @@ const hr = /* @__PURE__ */ i((e) => e === "E" ? "E" : e === "T" ? "T" : "A", "no
42828
42847
  m,
42829
42848
  U
42830
42849
  ]
42831
- ), Q = j.value, ee = je(
42850
+ ), Q = j.value, ee = We(
42832
42851
  () => G(Q),
42833
42852
  [Q, G]
42834
- ), se = je(() => {
42853
+ ), se = We(() => {
42835
42854
  const X = qa(Q, {
42836
42855
  soloActivos: Y
42837
42856
  });
@@ -42931,7 +42950,7 @@ const hr = /* @__PURE__ */ i((e) => e === "E" ? "E" : e === "T" ? "T" : "A", "no
42931
42950
  c(X.currentTarget);
42932
42951
  }, []), me = De(() => {
42933
42952
  c(null);
42934
- }, []), We = De(
42953
+ }, []), He = De(
42935
42954
  (X, fe) => {
42936
42955
  te(fe.value), c(null), ie(X, {
42937
42956
  seleccion: "",
@@ -42996,7 +43015,7 @@ const hr = /* @__PURE__ */ i((e) => e === "E" ? "E" : e === "T" ? "T" : "A", "no
42996
43015
  ie,
42997
43016
  q
42998
43017
  ]
42999
- ), He = z.Icon, le = (B || se).split(`
43018
+ ), je = z.Icon, le = (B || se).split(`
43000
43019
  `).filter(Boolean);
43001
43020
  return P ? null : /* @__PURE__ */ K(bo, { children: [
43002
43021
  /* @__PURE__ */ f(
@@ -43166,7 +43185,7 @@ const hr = /* @__PURE__ */ i((e) => e === "E" ? "E" : e === "T" ? "T" : "A", "no
43166
43185
  ),
43167
43186
  size: "small",
43168
43187
  children: [
43169
- /* @__PURE__ */ f(He, { fontSize: "small" }),
43188
+ /* @__PURE__ */ f(je, { fontSize: "small" }),
43170
43189
  /* @__PURE__ */ f(mf, { fontSize: "small" })
43171
43190
  ]
43172
43191
  }
@@ -43230,7 +43249,7 @@ const hr = /* @__PURE__ */ i((e) => e === "E" ? "E" : e === "T" ? "T" : "A", "no
43230
43249
  kn,
43231
43250
  {
43232
43251
  selected: X.value === Y,
43233
- onClick: /* @__PURE__ */ i((Ge) => We(Ge, X), "onClick"),
43252
+ onClick: /* @__PURE__ */ i((Ge) => He(Ge, X), "onClick"),
43234
43253
  children: [
43235
43254
  /* @__PURE__ */ f(
43236
43255
  fe,
@@ -43309,7 +43328,7 @@ const hr = /* @__PURE__ */ i((e) => e === "E" ? "E" : e === "T" ? "T" : "A", "no
43309
43328
  setFilter: D,
43310
43329
  setPagination: R,
43311
43330
  setSort: L,
43312
- shouldUnregister: W,
43331
+ shouldUnregister: H,
43313
43332
  source: j,
43314
43333
  submitError: _,
43315
43334
  subscription: V,