biblio-react 3.0.46 → 3.0.48

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
@@ -2,11 +2,11 @@ var rd = Object.defineProperty;
2
2
  var n = (e, t) => rd(e, "name", { value: t, configurable: !0 });
3
3
  import { jsx as i, jsxs as F, Fragment as ot } from "react/jsx-runtime";
4
4
  import * as S from "react";
5
- import { forwardRef as dr, createElement as ns, createContext as st, useState as ee, useMemo as de, useContext as Ce, useRef as De, useCallback as te, useEffect as oe, Fragment as dt, isValidElement as lo, Children as Hn, cloneElement as At, useImperativeHandle as sd, memo as ad } from "react";
5
+ import { forwardRef as dr, createElement as ns, createContext as at, useState as ee, useMemo as de, useContext as Ce, useRef as De, useCallback as te, useEffect as oe, Fragment as dt, isValidElement as lo, Children as Hn, cloneElement as At, useImperativeHandle as sd, memo as ad } from "react";
6
6
  import ba from "@mui/icons-material/Lock";
7
7
  import ld from "@mui/icons-material/VpnLock";
8
8
  import { MenuItem as _t, ListItemIcon as ao, ListItemText as vo, useMediaQuery as pt, Typography as Ko, Box as U, useTheme as Zn, Card as ya, CardHeader as cd, Divider as dd, CardContent as xa, Stack as ei, IconButton as Xe, Tooltip as xt, createTheme as ud, ThemeProvider as pd, Chip as Hi, Menu as Yo, alpha as fd, StyledEngineProvider as Ca, CircularProgress as va, DialogTitle as ji, Dialog as jn, DialogContent as qi, Collapse as md, List as hd, Switch as gd, DialogActions as is, Button as rs, Paper as wa, Table as bd, TableHead as yd, TableRow as ss, TableCell as io, Skeleton as ro, TableBody as xd } from "@mui/material";
9
- import { useTranslate as ge, useUserMenu as Cd, useResourceDefinitions as ur, AppBar as vd, UserMenu as wd, Logout as Sd, required as Pd, TopToolbar as Sa, ShowButton as Md, useNotify as rn, useDataProvider as Dt, useResourceContext as ye, useListContext as Jt, useRedirect as Ot, useUnselectAll as Id, ResourceDefinitionContext as Pa, useStoreContext as Rd, NumberField as Td, DateField as as, TextField as qo, ReferenceField as Fd, useResourceDefinition as ti, useGetResourceLabel as oi, ResourceContextProvider as wo, useLocaleState as pr, BulkActionsToolbar as Ma, Button as Je, useRecordContext as at, useInput as sn, useGetList as Ia, Labeled as fr, Confirm as ni, Form as Fo, SaveButton as an, useGetOne as Ra, useCreateController as Ad, CreateContextProvider as kd, useDeleteWithConfirmController as _d, Toolbar as Ta, ToolbarClasses as Ed, useDelete as Fa, useSaveContext as Dd, Create as Od, Loading as uo, useListController as Ld, ListContextProvider as Aa, List as ka, Filter as Bd, SearchInput as mr, Pagination as Nd, Edit as $d, useEditContext as Vd, useSidebarState as _a, Menu as zd, DashboardMenuItem as Wd, MenuItemLink as Ea, Layout as Gd, FilterContext as Hd, FilterButton as jd, sanitizeListRestProps as qd, useLogin as Ud, TextInput as Et, PasswordInput as Da, Show as Kd, useShowContext as Xd, useCreatePath as Yd, useSplatPathBase as Jd, getTabbedFormTabFullPath as Pn, TabbedFormTabs as Oa, defaultTheme as La, FormTab as Qd, BooleanField as Zd, ImageInput as eu, ImageField as tu, FileInput as ou, BooleanInput as nu, ReferenceInput as Ba, AutocompleteInput as Na, useChoicesContext as $a, SelectInput as iu, ReferenceArrayInput as ru, AutocompleteArrayInput as su, RadioButtonGroupInput as Va, useRecordSelection as za, ListActions as au, Datagrid as lu, SelectAllButton as cu, ValidationError as du, FieldTitle as Wa } from "react-admin";
9
+ import { useTranslate as me, useUserMenu as Cd, useResourceDefinitions as ur, AppBar as vd, UserMenu as wd, Logout as Sd, required as Pd, TopToolbar as Sa, ShowButton as Md, useNotify as rn, useDataProvider as Dt, useResourceContext as ye, useListContext as Jt, useRedirect as Ot, useUnselectAll as Id, ResourceDefinitionContext as Pa, useStoreContext as Rd, NumberField as Td, DateField as as, TextField as qo, ReferenceField as Fd, useResourceDefinition as ti, useGetResourceLabel as oi, ResourceContextProvider as wo, useLocaleState as pr, BulkActionsToolbar as Ma, Button as Je, useRecordContext as nt, useInput as sn, useGetList as Ia, Labeled as fr, Confirm as ni, Form as Fo, SaveButton as an, useGetOne as Ra, useCreateController as Ad, CreateContextProvider as kd, useDeleteWithConfirmController as _d, Toolbar as Ta, ToolbarClasses as Ed, useDelete as Fa, useSaveContext as Dd, Create as Od, Loading as uo, useListController as Ld, ListContextProvider as Aa, List as ka, Filter as Bd, SearchInput as mr, Pagination as Nd, Edit as $d, useEditContext as Vd, useSidebarState as _a, Menu as zd, DashboardMenuItem as Wd, MenuItemLink as Ea, Layout as Gd, FilterContext as Hd, FilterButton as jd, sanitizeListRestProps as qd, useLogin as Ud, TextInput as Et, PasswordInput as Da, Show as Kd, useShowContext as Xd, useCreatePath as Yd, useSplatPathBase as Jd, getTabbedFormTabFullPath as Pn, TabbedFormTabs as Oa, defaultTheme as La, FormTab as Qd, BooleanField as Zd, ImageInput as eu, ImageField as tu, FileInput as ou, BooleanInput as nu, ReferenceInput as Ba, AutocompleteInput as Na, useChoicesContext as $a, SelectInput as iu, ReferenceArrayInput as ru, AutocompleteArrayInput as su, RadioButtonGroupInput as Va, useRecordSelection as za, ListActions as au, Datagrid as lu, SelectAllButton as cu, ValidationError as du, FieldTitle as Wa } from "react-admin";
10
10
  import { Link as Ui, useNavigate as ii, useLocation as lt, Routes as Ga, Route as Ha, useParams as ja, matchPath as Jo } from "react-router-dom";
11
11
  import { styled as Lt, alpha as bt, ThemeProvider as qa, useThemeProps as Ua, useTheme as uu } from "@mui/material/styles";
12
12
  import ln from "@mui/icons-material/Add";
@@ -117,7 +117,7 @@ import { TreeItem as ms } from "@mui/x-tree-view/TreeItem";
117
117
  import Pp from "@mui/icons-material/Groups";
118
118
  import Sr from "@mui/material/TextField";
119
119
  const Mp = dr((e, t) => {
120
- const o = ge(), { onClose: r } = Cd(), a = ur(), s = a.form_275, l = a.form_59;
120
+ const o = me(), { onClose: r } = Cd(), a = ur(), s = a.form_275, l = a.form_59;
121
121
  return [
122
122
  s ? /* @__PURE__ */ ns(
123
123
  _t,
@@ -168,7 +168,7 @@ const Mp = dr((e, t) => {
168
168
  ),
169
169
  t && /* @__PURE__ */ i(U, { component: "span", sx: { flex: 1 } })
170
170
  ] });
171
- }, "CustomAppBar"), gl = st(), Io = /* @__PURE__ */ n(({ children: e }) => {
171
+ }, "CustomAppBar"), gl = at(), Io = /* @__PURE__ */ n(({ children: e }) => {
172
172
  const [t, o] = ee(!1), [r, a] = ee(""), s = de(
173
173
  () => ({
174
174
  open: t,
@@ -183,7 +183,7 @@ const Mp = dr((e, t) => {
183
183
  [t, r, o, a]
184
184
  );
185
185
  return /* @__PURE__ */ i(gl.Provider, { value: s, children: e });
186
- }, "ProgressProvider"), Ao = /* @__PURE__ */ n(() => Ce(gl), "useFormProgress"), Qi = st(), Zi = st(0), Tp = /* @__PURE__ */ n((e, t) => {
186
+ }, "ProgressProvider"), Ao = /* @__PURE__ */ n(() => Ce(gl), "useFormProgress"), Qi = at(), Zi = at(0), Tp = /* @__PURE__ */ n((e, t) => {
187
187
  for (let o = e.length - 1; o >= 0; o -= 1)
188
188
  if (t(e[o], o))
189
189
  return o;
@@ -227,7 +227,7 @@ const Mp = dr((e, t) => {
227
227
  [c, u, r, s]
228
228
  );
229
229
  return o && !t ? e : /* @__PURE__ */ i(Qi.Provider, { value: p, children: e });
230
- }, "AsistenteProvider"), St = /* @__PURE__ */ n(() => Ce(Qi), "useAsistente"), gs = !1, bs = "mui", bl = st(), ys = /* @__PURE__ */ n(({
230
+ }, "AsistenteProvider"), St = /* @__PURE__ */ n(() => Ce(Qi), "useAsistente"), gs = !1, bs = "mui", bl = at(), ys = /* @__PURE__ */ n(({
231
231
  hasCreate: e,
232
232
  hasSeleccionMultiple: t,
233
233
  chkSeleccion: o,
@@ -341,7 +341,7 @@ const Mp = dr((e, t) => {
341
341
  payload: { scope: e }
342
342
  }), "clearReduxScopeAction");
343
343
  let xs = 0;
344
- const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createReduxScope"), Pr = /* @__PURE__ */ n((e, t, o) => Array.isArray(e) && e.find((r) => r?.id === t && r?.scope === o) || null, "findReduxScopedItem"), Mr = st({}), ko = st(void 0), Zo = st(), Ir = /* @__PURE__ */ n(({ value: e, children: t }) => {
344
+ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createReduxScope"), Pr = /* @__PURE__ */ n((e, t, o) => Array.isArray(e) && e.find((r) => r?.id === t && r?.scope === o) || null, "findReduxScopedItem"), Mr = at({}), ko = at(void 0), Zo = at(), Ir = /* @__PURE__ */ n(({ value: e, children: t }) => {
345
345
  const o = qe()?.control, [r, a] = ee({}), s = Bt(), l = e.scopeIdentity ?? e.estado ?? "ficha", c = De(l), [u, p] = ee(
346
346
  () => tr("ficha")
347
347
  );
@@ -415,22 +415,22 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
415
415
  onFocus: R,
416
416
  onChange: E,
417
417
  onBlur: D,
418
- hidden: H = !1,
419
- disabled: O = !1,
420
- validate: V,
418
+ hidden: V = !1,
419
+ disabled: L = !1,
420
+ validate: z,
421
421
  required: $,
422
422
  ...k
423
423
  } = e, {
424
- onFocus: L,
424
+ onFocus: O,
425
425
  onBlur: v,
426
426
  onChange: _,
427
427
  hidden: K,
428
428
  disabled: q,
429
429
  useContenido: Z = pn,
430
430
  validate: X,
431
- required: W,
431
+ required: G,
432
432
  ...re
433
- } = T, ne = c || K === void 0 ? H : K, be = c || q === void 0 ? O : q, N = c || L === void 0 ? R : L, Q = c || v === void 0 ? D : v, me = c || _ === void 0 ? E : _, we = Ct(e), Oe = Z({
433
+ } = T, ne = c || K === void 0 ? V : K, be = c || q === void 0 ? L : q, N = c || O === void 0 ? R : O, Q = c || v === void 0 ? D : v, he = c || _ === void 0 ? E : _, we = Ct(e), Oe = Z({
434
434
  ...k,
435
435
  estado: o,
436
436
  hidden: ne,
@@ -442,21 +442,21 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
442
442
  disabled: se,
443
443
  onFocus: Fe,
444
444
  onChange: Ue,
445
- onBlur: G,
445
+ onBlur: H,
446
446
  validate: ue,
447
447
  required: ae,
448
448
  ...ve
449
- } = Oe, Le = Fe || N, Ie = G || Q, Se = Ue || me, gt = [V, X, ue].flat().some((pe) => pe?.isRequired), Ae = w !== void 0 ? w : ae !== void 0 ? ae : g ? !0 : c || W === void 0 ? $ ?? gt : W, Ze = h !== void 0 ? h : Be !== void 0 ? Be : f ? !0 : ne, Mt = b !== void 0 ? b : se !== void 0 ? se : m ? !0 : be, nt = de(() => {
450
- const pe = Array.isArray(V) ? V : [V], Ge = Array.isArray(X) ? X : [X], Ke = Array.isArray(ue) ? ue : [ue];
449
+ } = Oe, Le = Fe || N, Ie = H || Q, Se = Ue || he, gt = [z, X, ue].flat().some((pe) => pe?.isRequired), Ae = w !== void 0 ? w : ae !== void 0 ? ae : g ? !0 : c || G === void 0 ? $ ?? gt : G, Ze = h !== void 0 ? h : Be !== void 0 ? Be : f ? !0 : ne, Mt = b !== void 0 ? b : se !== void 0 ? se : m ? !0 : be, it = de(() => {
450
+ const pe = Array.isArray(z) ? z : [z], Ge = Array.isArray(X) ? X : [X], Ke = Array.isArray(ue) ? ue : [ue];
451
451
  let Ne = [
452
452
  ...pe,
453
453
  ...Ge,
454
454
  ...Ke,
455
455
  x
456
- ].filter((it) => it !== void 0);
457
- return Ae ? Ne.push(xl) : Ne = Ne.filter((it) => !it.isRequired), Ne;
456
+ ].filter((rt) => rt !== void 0);
457
+ return Ae ? Ne.push(xl) : Ne = Ne.filter((rt) => !rt.isRequired), Ne;
458
458
  }, [
459
- V,
459
+ z,
460
460
  X,
461
461
  ue,
462
462
  x,
@@ -478,7 +478,7 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
478
478
  onBlur: /* @__PURE__ */ n((pe) => Ie && Ie(we, o, pe), "handleBlur"),
479
479
  onChange: /* @__PURE__ */ n((pe) => Se && Se(we, o, pe), "handleChange"),
480
480
  helperText: !1,
481
- validate: nt,
481
+ validate: it,
482
482
  ...k,
483
483
  ...re,
484
484
  ...ve,
@@ -493,7 +493,7 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
493
493
  if (!(e instanceof Date) || isNaN(e.getDate())) return "";
494
494
  const t = "00", o = e.getFullYear().toString(), r = (e.getMonth() + 1).toString(), a = e.getDate().toString();
495
495
  return `${o}-${(t + r).slice(-2)}-${(t + a).slice(-2)}`;
496
- }, "convertDateToString$2"), Yy = /* @__PURE__ */ n((e) => {
496
+ }, "convertDateToString$2"), Jy = /* @__PURE__ */ n((e) => {
497
497
  if (e == null || e === "")
498
498
  return "";
499
499
  if (e instanceof Date)
@@ -503,12 +503,12 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
503
503
  return t[2] + "-" + t[1] + "-" + t[0];
504
504
  }
505
505
  return Kn(new Date(e));
506
- }, "dateFormat"), Jy = /* @__PURE__ */ n((e) => {
506
+ }, "dateFormat"), Qy = /* @__PURE__ */ n((e) => {
507
507
  if (!e)
508
508
  return "";
509
509
  const t = e.split("-");
510
510
  return t[2] + "/" + t[1] + "/" + t[0];
511
- }, "dateParser"), Vp = /^\d{2}\/\d{2}\/\d{4}\s\d{2}:\d{2}$/, Qy = /* @__PURE__ */ n((e) => {
511
+ }, "dateParser"), Vp = /^\d{2}\/\d{2}\/\d{4}\s\d{2}:\d{2}$/, Zy = /* @__PURE__ */ n((e) => {
512
512
  if (e == null || e === "")
513
513
  return "";
514
514
  if (e instanceof Date)
@@ -518,12 +518,12 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
518
518
  return o[2] + "-" + o[1] + "-" + o[0] + " " + t[1];
519
519
  }
520
520
  return Kn(new Date(e));
521
- }, "dateTimeFormat"), Zy = /* @__PURE__ */ n((e) => {
521
+ }, "dateTimeFormat"), e0 = /* @__PURE__ */ n((e) => {
522
522
  if (!e)
523
523
  return "";
524
524
  const t = e.split("T"), o = t[0].split("-");
525
525
  return o[2] + "/" + o[1] + "/" + o[0] + " " + t[1];
526
- }, "dateTimeParser"), e0 = /* @__PURE__ */ n((e) => {
526
+ }, "dateTimeParser"), t0 = /* @__PURE__ */ n((e) => {
527
527
  if (!e)
528
528
  return "";
529
529
  if (e instanceof Date)
@@ -539,7 +539,7 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
539
539
  let o = /* @__PURE__ */ new Date();
540
540
  return o.setHours(t[0]), o.setMinutes(t[1]), o.toString();
541
541
  }
542
- }, "timeFormat"), t0 = /* @__PURE__ */ n((e, t) => e ? e.split(" ")[4].substring(0, 5) : "", "timeParser"), zp = /* @__PURE__ */ n(({
542
+ }, "timeFormat"), o0 = /* @__PURE__ */ n((e, t) => e ? e.split(" ")[4].substring(0, 5) : "", "timeParser"), zp = /* @__PURE__ */ n(({
543
543
  className: e,
544
544
  record: t,
545
545
  hasEdit: o,
@@ -565,7 +565,7 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
565
565
  displayedFilters: I,
566
566
  sort: R,
567
567
  ...E
568
- }) => E, "sanitizeRestProps$5"), o0 = /* @__PURE__ */ n((e) => {
568
+ }) => E, "sanitizeRestProps$5"), n0 = /* @__PURE__ */ n((e) => {
569
569
  const { hidden: t } = Qe(e);
570
570
  return !t && /* @__PURE__ */ i(
571
571
  wt,
@@ -577,7 +577,7 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
577
577
  children: e.children
578
578
  }
579
579
  );
580
- }, "Separador"), n0 = /* @__PURE__ */ n(({
580
+ }, "Separador"), i0 = /* @__PURE__ */ n(({
581
581
  children: e,
582
582
  className: t,
583
583
  data: o,
@@ -597,7 +597,7 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
597
597
  ]
598
598
  }
599
599
  );
600
- }, "FichaActions"), xl = Pd(), i0 = xl, r0 = { inputFormat: "dd/MM/yyyy" }, s0 = /* @__PURE__ */ n((e) => (t, o) => {
600
+ }, "FichaActions"), xl = Pd(), r0 = xl, s0 = { inputFormat: "dd/MM/yyyy" }, a0 = /* @__PURE__ */ n((e) => (t, o) => {
601
601
  const r = o[e];
602
602
  if (t && r) {
603
603
  const a = new Date(r.split("/").reverse().join("/")), s = new Date(t.split("/").reverse().join("/"));
@@ -607,16 +607,16 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
607
607
  args: { menor: r }
608
608
  };
609
609
  }
610
- }, "etrFechaMayorQue"), a0 = /* @__PURE__ */ n((e = "es") => ({
610
+ }, "etrFechaMayorQue"), l0 = /* @__PURE__ */ n((e = "es") => ({
611
611
  locale: e === "en" ? ku : _u
612
- }), "localeOptions"), l0 = [
612
+ }), "localeOptions"), c0 = [
613
613
  { id: "1", name: "Aprobado" },
614
614
  { id: "2", name: "Rechazado" },
615
615
  { id: "3", name: "Pendiente" }
616
616
  ], Wp = /* @__PURE__ */ n((e, t) => {
617
617
  const o = document.createElement("a");
618
618
  o.style.display = "none", document.body.appendChild(o), o.setAttribute("href", e), o.setAttribute("download", t), o.click();
619
- }, "descargarLink"), c0 = /* @__PURE__ */ n(async (e, t) => {
619
+ }, "descargarLink"), d0 = /* @__PURE__ */ n(async (e, t) => {
620
620
  window.fetch(e).then((o) => {
621
621
  if (!o.ok)
622
622
  throw new Error("Network response was not ok");
@@ -625,15 +625,15 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
625
625
  const r = URL.createObjectURL(o);
626
626
  Wp(r, t), URL.revokeObjectURL(r);
627
627
  }).catch((o) => console.error("Error al descargar el archivo:", o));
628
- }, "descargarUrl"), d0 = /* @__PURE__ */ n((e) => {
628
+ }, "descargarUrl"), u0 = /* @__PURE__ */ n((e) => {
629
629
  if (!e) return "";
630
630
  const [t, o, r] = e.split("/").map(Number);
631
631
  return new Date(r, o - 1, t);
632
- }, "stringToDate"), u0 = /* @__PURE__ */ n((e) => {
632
+ }, "stringToDate"), p0 = /* @__PURE__ */ n((e) => {
633
633
  if (!e) return "";
634
634
  const [t, o] = e.split(" "), [r, a, s] = t.split("/").map(Number), [l, c] = o.split(":").map(Number);
635
635
  return new Date(s, a - 1, r, l, c);
636
- }, "stringToDateTime"), p0 = /* @__PURE__ */ n((e) => {
636
+ }, "stringToDateTime"), f0 = /* @__PURE__ */ n((e) => {
637
637
  if (!e) return "";
638
638
  const t = e?.value ?? e;
639
639
  if (!t) return "";
@@ -651,7 +651,7 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
651
651
  return String(t);
652
652
  const r = String(o.getDate()).padStart(2, "0"), a = String(o.getMonth() + 1).padStart(2, "0"), s = String(o.getFullYear());
653
653
  return `${r}/${a}/${s}`;
654
- }, "dateToString"), f0 = /* @__PURE__ */ n((e) => {
654
+ }, "dateToString"), m0 = /* @__PURE__ */ n((e) => {
655
655
  const t = {
656
656
  day: "2-digit",
657
657
  month: "2-digit",
@@ -661,7 +661,7 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
661
661
  hour12: !1
662
662
  };
663
663
  return e.toLocaleString("es", t).replace(",", "");
664
- }, "dateTimeToString"), Ye = S.createContext(), Cl = st(), Gp = /* @__PURE__ */ n((e) => e == null || e === "" || e === "0" ? [] : e === "-1" ? ["-1"] : String(e).split(",").map((t) => t.trim()).filter(Boolean), "normalizarPermisosBotones"), vl = /* @__PURE__ */ n((e, t) => {
664
+ }, "dateTimeToString"), Ye = S.createContext(), Cl = at(), Gp = /* @__PURE__ */ n((e) => e == null || e === "" || e === "0" ? [] : e === "-1" ? ["-1"] : String(e).split(",").map((t) => t.trim()).filter(Boolean), "normalizarPermisosBotones"), vl = /* @__PURE__ */ n((e, t) => {
665
665
  if (!t)
666
666
  return !0;
667
667
  const o = Gp(e?.permisosBotones);
@@ -770,7 +770,7 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
770
770
  ),
771
771
  [o]
772
772
  ), r];
773
- }, "useAjax"), Fl = st(), Al = /* @__PURE__ */ n(({ children: e }) => {
773
+ }, "useAjax"), Fl = at(), Al = /* @__PURE__ */ n(({ children: e }) => {
774
774
  const [t, o] = ee({}), r = /* @__PURE__ */ n((s, l) => {
775
775
  o((c) => ({
776
776
  ...c,
@@ -790,7 +790,7 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
790
790
  o.refetchQueries({ queryKey: [t], type: "active" });
791
791
  }, [o, t]);
792
792
  }, "useResourceRefresh"), pn = /* @__PURE__ */ n(() => ({}), "useDefaultHook"), di = /* @__PURE__ */ n((e) => {
793
- const t = Jt(), o = ht(), r = Ot(), a = ii(), s = Ao(), l = ye(e), c = _l(e), u = Id(l), p = St(), d = Nt(), f = ge(), g = wl(), [m] = Rr(l), y = Ce(Pa), b = ur(), h = `lista_${l.split("_")[1]}`, { getItem: w } = Rd(), P = w(`${h}.selectedIds`), M = w(`${h}.selectedDetails`), x = /* @__PURE__ */ n((T) => {
793
+ const t = Jt(), o = ht(), r = Ot(), a = ii(), s = Ao(), l = ye(e), c = _l(e), u = Id(l), p = St(), d = Nt(), f = me(), g = wl(), [m] = Rr(l), y = Ce(Pa), b = ur(), h = `lista_${l.split("_")[1]}`, { getItem: w } = Rd(), P = w(`${h}.selectedIds`), M = w(`${h}.selectedDetails`), x = /* @__PURE__ */ n((T) => {
794
794
  const I = T?.name;
795
795
  !I || b?.[I] || y?.register?.(T);
796
796
  }, "registerResource");
@@ -815,7 +815,7 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
815
815
  abrirVentanaSistema: g,
816
816
  registerResource: x
817
817
  };
818
- }, "useUtilsGrilla"), m0 = /* @__PURE__ */ n((e) => {
818
+ }, "useUtilsGrilla"), h0 = /* @__PURE__ */ n((e) => {
819
819
  const t = Sl(), o = Pl(), r = Ml(), a = Il(), s = Rl(), l = Tl(), c = Ao(), u = ht(), p = Ot(), d = ii(), f = ye(e), g = St(), {
820
820
  propsContenidos: m,
821
821
  setPropsContenidos: y,
@@ -854,9 +854,9 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
854
854
  }, "getForm"), p = /* @__PURE__ */ n((...v) => u()?.trigger?.(...v), "trigger"), d = /* @__PURE__ */ n((v) => (_, K) => {
855
855
  v(_, K), setTimeout(() => p(_), 0);
856
856
  }, "withRevalidate"), f = kl(), g = Sl(), m = Pl(), y = Ml(), b = Il(), h = Rl(), w = Tl(), P = Ao(), M = ht(), x = Ot(), T = ii(), I = St(), R = wl(), E = Ce(Pa), D = ur(), {
857
- propsContenidos: H,
858
- setPropsContenidos: O,
859
- fichaProps: { etrs: V = {} } = {}
857
+ propsContenidos: V,
858
+ setPropsContenidos: L,
859
+ fichaProps: { etrs: z = {} } = {}
860
860
  } = Te() || {}, $ = Ce(ko) || {}, [k] = Rr(t);
861
861
  return {
862
862
  // Devuelve la instancia RHF actual
@@ -876,17 +876,17 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
876
876
  const _ = v?.name;
877
877
  !_ || D?.[_] || E?.register?.(v);
878
878
  }, "registerResource"),
879
- ficha: { propsContenidos: H, setPropsContenidos: O },
879
+ ficha: { propsContenidos: V, setPropsContenidos: L },
880
880
  setHiddenButton: f?.setHidden,
881
881
  setHidden: d(m),
882
882
  setDisable: d(y),
883
883
  setRequire: d(b),
884
884
  setError: d(h),
885
885
  setLabel: d(w),
886
- etrs: V,
886
+ etrs: z,
887
887
  asisEtr: $
888
888
  };
889
- }, "useUtilsFicha"), El = st({
889
+ }, "useUtilsFicha"), El = at({
890
890
  hidden: !1,
891
891
  isActive: !0,
892
892
  hasBeenActive: !0
@@ -920,7 +920,7 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
920
920
  ...r
921
921
  };
922
922
  return !a && (t === "N" || t === "D" ? /* @__PURE__ */ i(Td, { ...s }) : t === "F" ? /* @__PURE__ */ i(as, { ...s }) : t === "Z" ? /* @__PURE__ */ i(as, { ...s, showTime: !0 }) : /* @__PURE__ */ i(qo, { ...s }));
923
- }, "TextField"), h0 = /* @__PURE__ */ n((e, t, o) => {
923
+ }, "TextField"), g0 = /* @__PURE__ */ n((e, t, o) => {
924
924
  const r = /* @__PURE__ */ n((a) => /* @__PURE__ */ i(
925
925
  Fd,
926
926
  {
@@ -1024,7 +1024,7 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
1024
1024
  },
1025
1025
  [t, r, o]
1026
1026
  );
1027
- }, "useDeleteRow"), g0 = /* @__PURE__ */ n((e) => {
1027
+ }, "useDeleteRow"), b0 = /* @__PURE__ */ n((e) => {
1028
1028
  const { [e.source]: t } = e.useFormulario(), o = { ...e, enviarTodo: !!t?.enviarTodo }, r = Bl(o), a = Nl(o), s = $l(o);
1029
1029
  return {
1030
1030
  addRow: r,
@@ -1063,7 +1063,7 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
1063
1063
  fill: e.palette.mode === "light" ? "#f5f5f5" : "#fff"
1064
1064
  }
1065
1065
  })), Tr = /* @__PURE__ */ n(() => {
1066
- const e = ge();
1066
+ const e = me();
1067
1067
  return /* @__PURE__ */ F(Kp, { children: [
1068
1068
  /* @__PURE__ */ i(
1069
1069
  "svg",
@@ -1502,16 +1502,16 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
1502
1502
  return null;
1503
1503
  }, "parseBooleanValue"), d = S.useMemo(() => {
1504
1504
  const x = e.row ?? {}, T = c.find((D) => {
1505
- const H = (D.field?.toLowerCase?.() ?? "").replace(
1505
+ const V = (D.field?.toLowerCase?.() ?? "").replace(
1506
1506
  /_lis$/,
1507
1507
  ""
1508
- ), O = (D.headerName ?? "").toString().toLowerCase(), V = x?.[D.field], $ = [
1508
+ ), L = (D.headerName ?? "").toString().toLowerCase(), z = x?.[D.field], $ = [
1509
1509
  "nombrecompleto",
1510
1510
  "nombrecompletodos",
1511
1511
  "funcnom",
1512
1512
  "funnom"
1513
- ].includes(H) || O.includes("nombre completo") || O === "funcionario", k = D.type === "number" || D.type === "numeric" || u(V);
1514
- return $ && !k && V != null && V !== "";
1513
+ ].includes(V) || L.includes("nombre completo") || L === "funcionario", k = D.type === "number" || D.type === "numeric" || u(z);
1514
+ return $ && !k && z != null && z !== "";
1515
1515
  });
1516
1516
  if (T?.field)
1517
1517
  return T;
@@ -1523,29 +1523,29 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
1523
1523
  "titulo",
1524
1524
  "title"
1525
1525
  ], R = c.find((D) => {
1526
- const H = D.field?.toLowerCase?.() ?? "", O = I.some((k) => H.includes(k)), V = x?.[D.field], $ = D.type === "number" || D.type === "numeric" || u(V);
1527
- return O && !$ && V != null && V !== "";
1526
+ const V = D.field?.toLowerCase?.() ?? "", L = I.some((k) => V.includes(k)), z = x?.[D.field], $ = D.type === "number" || D.type === "numeric" || u(z);
1527
+ return L && !$ && z != null && z !== "";
1528
1528
  });
1529
1529
  return R?.field ? R : c.find((D) => {
1530
- const H = x?.[D.field];
1531
- return !(D.type === "number" || D.type === "numeric" || u(H)) && H != null && H !== "";
1530
+ const V = x?.[D.field];
1531
+ return !(D.type === "number" || D.type === "numeric" || u(V)) && V != null && V !== "";
1532
1532
  });
1533
1533
  }, [c, e.row]), f = d?.field, g = d?.headerName ?? d?.field ?? "Detalle", m = S.useMemo(() => {
1534
1534
  const x = e.row ?? {};
1535
1535
  return f ? x?.[f] : void 0;
1536
1536
  }, [e.row, f]), y = typeof e.primaryText == "function" ? e.primaryText(e.row) : e.primaryText, b = typeof e.primaryTextPrefix == "function" ? e.primaryTextPrefix(e.row) : e.primaryTextPrefix, h = typeof e.secondaryText == "function" ? e.secondaryText(e.row) : e.secondaryText, w = S.useCallback(
1537
1537
  (x, T) => {
1538
- const I = x?.field?.toLowerCase() ?? "", R = x?.type, E = R === "date" || R === "dateTime" || I.includes("fecha") || T instanceof Date, D = R === "time" || I.includes("hora") || I.includes("time") || (x?.headerName || "").toString().toLowerCase().includes("hora"), H = R === "number" || R === "numeric" || typeof T == "number", O = R === "boolean";
1538
+ const I = x?.field?.toLowerCase() ?? "", R = x?.type, E = R === "date" || R === "dateTime" || I.includes("fecha") || T instanceof Date, D = R === "time" || I.includes("hora") || I.includes("time") || (x?.headerName || "").toString().toLowerCase().includes("hora"), V = R === "number" || R === "numeric" || typeof T == "number", L = R === "boolean";
1539
1539
  return I.endsWith("_lis") || (!x?.align || I.endsWith("nom")) && !R ? {
1540
1540
  icon: Gu,
1541
1541
  color: o.palette.secondary.main
1542
1542
  } : E || D ? {
1543
1543
  icon: D ? Wu : ls,
1544
1544
  color: o.palette.info.main
1545
- } : H ? {
1545
+ } : V ? {
1546
1546
  icon: $u,
1547
1547
  color: o.palette.success.dark
1548
- } : O ? {
1548
+ } : L ? {
1549
1549
  icon: Hu,
1550
1550
  color: o.palette.warning.main
1551
1551
  } : {
@@ -1691,9 +1691,9 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
1691
1691
  rowGap: 1.5
1692
1692
  },
1693
1693
  children: P.map((x) => {
1694
- const T = x.field, I = x?.headerName ?? T, R = e.row ?? {}, E = R?.[T], D = w(x, E), H = D.icon === ls || D.icon === zu;
1695
- let O, V = !1, $ = null;
1696
- const L = Ar(
1694
+ const T = x.field, I = x?.headerName ?? T, R = e.row ?? {}, E = R?.[T], D = w(x, E), V = D.icon === ls || D.icon === zu;
1695
+ let L, z = !1, $ = null;
1696
+ const O = Ar(
1697
1697
  x,
1698
1698
  {
1699
1699
  row: R,
@@ -1715,7 +1715,7 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
1715
1715
  hasFocus: !1,
1716
1716
  tabIndex: -1
1717
1717
  }, K = x.renderCell(_);
1718
- O = L ? /* @__PURE__ */ i(
1718
+ L = O ? /* @__PURE__ */ i(
1719
1719
  So,
1720
1720
  {
1721
1721
  colDef: x,
@@ -1732,7 +1732,7 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
1732
1732
  }
1733
1733
  ) : K;
1734
1734
  } else
1735
- O = M(x, E, R), x?.type === "boolean" && !H ? ($ = p(E), V = !0, O = /* @__PURE__ */ F(
1735
+ L = M(x, E, R), x?.type === "boolean" && !V ? ($ = p(E), z = !0, L = /* @__PURE__ */ F(
1736
1736
  ei,
1737
1737
  {
1738
1738
  direction: "row",
@@ -1772,18 +1772,18 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
1772
1772
  )
1773
1773
  ]
1774
1774
  }
1775
- )) : O = /* @__PURE__ */ i(
1775
+ )) : L = /* @__PURE__ */ i(
1776
1776
  So,
1777
1777
  {
1778
1778
  colDef: x,
1779
1779
  value: E,
1780
- formattedValue: O,
1780
+ formattedValue: L,
1781
1781
  row: R,
1782
1782
  columns: c,
1783
1783
  primaryField: f
1784
1784
  }
1785
1785
  );
1786
- const v = V || S.isValidElement(O);
1786
+ const v = z || S.isValidElement(L);
1787
1787
  return /* @__PURE__ */ F(
1788
1788
  U,
1789
1789
  {
@@ -1830,7 +1830,7 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
1830
1830
  lineHeight: 1.4,
1831
1831
  "& > *": { maxWidth: "100%" }
1832
1832
  },
1833
- children: v ? O : /* @__PURE__ */ i(
1833
+ children: v ? L : /* @__PURE__ */ i(
1834
1834
  Ko,
1835
1835
  {
1836
1836
  component: "span",
@@ -1841,7 +1841,7 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
1841
1841
  fontWeight: "inherit",
1842
1842
  lineHeight: "inherit"
1843
1843
  },
1844
- children: O
1844
+ children: L
1845
1845
  }
1846
1846
  )
1847
1847
  }
@@ -1957,7 +1957,7 @@ function kr(e) {
1957
1957
  }
1958
1958
  n(kr, "Drawer");
1959
1959
  function Rf(e) {
1960
- const t = ge(), { listView: o, container: r } = e, [a, s] = S.useState(!1), l = Qt(), c = co(l, Ya), u = co(
1960
+ const t = me(), { listView: o, container: r } = e, [a, s] = S.useState(!1), l = Qt(), c = co(l, Ya), u = co(
1961
1961
  l,
1962
1962
  Xa
1963
1963
  ), p = /* @__PURE__ */ n((d) => {
@@ -1998,7 +1998,7 @@ function Rf(e) {
1998
1998
  }
1999
1999
  n(Rf, "ToolbarColumnsItem");
2000
2000
  function Tf(e) {
2001
- const t = ge(), { listView: o, container: r, containerRef: a } = e, [s, l] = S.useState(!1), [c, u] = S.useState(null), p = Qt(), d = co(p, Ya), f = co(p, hu), g = d.filter((h) => h.sortable), m = f.length, y = /* @__PURE__ */ n((h, w) => {
2001
+ const t = me(), { listView: o, container: r, containerRef: a } = e, [s, l] = S.useState(!1), [c, u] = S.useState(null), p = Qt(), d = co(p, Ya), f = co(p, hu), g = d.filter((h) => h.sortable), m = f.length, y = /* @__PURE__ */ n((h, w) => {
2002
2002
  p.current.sortColumn(h, w, !0);
2003
2003
  }, "handleSortChange");
2004
2004
  S.useEffect(() => {
@@ -2163,7 +2163,7 @@ const Hl = /* @__PURE__ */ n((e) => typeof e == "boolean" ? e : !!parseInt(e), "
2163
2163
  }
2164
2164
  );
2165
2165
  }, "ExportMenuItem"), Kl = /* @__PURE__ */ n(({ containerRef: e, fetchRowsForExport: t, ...o }) => {
2166
- const [r, a] = ee(null), [s, l] = ee(!1), c = Qt(), u = rn(), p = ge(), {
2166
+ const [r, a] = ee(null), [s, l] = ee(!1), c = Qt(), u = rn(), p = me(), {
2167
2167
  csvOptions: d = {},
2168
2168
  excelOptions: f = {},
2169
2169
  printOptions: g = {},
@@ -2173,17 +2173,17 @@ const Hl = /* @__PURE__ */ n((e) => typeof e == "boolean" ? e : !!parseInt(e), "
2173
2173
  e?.current && a(e.current);
2174
2174
  }, [e]);
2175
2175
  const M = S.useCallback(
2176
- (L, v) => c.current?.getLocaleText?.(L) ?? v,
2176
+ (O, v) => c.current?.getLocaleText?.(O) ?? v,
2177
2177
  [c]
2178
2178
  ), x = S.useCallback(
2179
- (L) => ({
2180
- ...L,
2179
+ (O) => ({
2180
+ ...O,
2181
2181
  getRowsToExport: ql
2182
2182
  }),
2183
2183
  []
2184
2184
  ), T = S.useCallback(
2185
- (L) => {
2186
- const v = x(L);
2185
+ (O) => {
2186
+ const v = x(O);
2187
2187
  if (v.fileName)
2188
2188
  return v;
2189
2189
  const _ = _f(
@@ -2201,15 +2201,15 @@ const Hl = /* @__PURE__ */ n((e) => typeof e == "boolean" ? e : !!parseInt(e), "
2201
2201
  x
2202
2202
  ]
2203
2203
  ), I = S.useCallback(
2204
- (L) => {
2204
+ (O) => {
2205
2205
  const v = new Set(
2206
2206
  (c.current?.getAllColumns?.() ?? []).filter((_) => _.type === "boolean").map((_) => _.field)
2207
2207
  );
2208
- return jl(L, v);
2208
+ return jl(O, v);
2209
2209
  },
2210
2210
  [c]
2211
2211
  ), R = S.useCallback(
2212
- async (L, v) => {
2212
+ async (O, v) => {
2213
2213
  if (s)
2214
2214
  return;
2215
2215
  let _ = null, K = !1;
@@ -2218,7 +2218,7 @@ const Hl = /* @__PURE__ */ n((e) => typeof e == "boolean" ? e : !!parseInt(e), "
2218
2218
  const q = await t();
2219
2219
  _ = kf(c), K = !0, c.current.setRows(Array.isArray(q) ? q : []), await Af();
2220
2220
  }
2221
- L === "csv" ? c.current?.exportDataAsCsv?.(v) : L === "excel" ? await c.current?.exportDataAsExcel?.(v) : L === "print" && await Lf(c, v);
2221
+ O === "csv" ? c.current?.exportDataAsCsv?.(v) : O === "excel" ? await c.current?.exportDataAsExcel?.(v) : O === "print" && await Lf(c, v);
2222
2222
  } catch (q) {
2223
2223
  console.error("metiri-grid-export-failed", q), u(p("pos.export_failed"), { type: "error" });
2224
2224
  } finally {
@@ -2230,12 +2230,12 @@ const Hl = /* @__PURE__ */ n((e) => typeof e == "boolean" ? e : !!parseInt(e), "
2230
2230
  if (!r) return null;
2231
2231
  const E = T(d), D = I(
2232
2232
  T(f)
2233
- ), H = T({
2233
+ ), V = T({
2234
2234
  hideFooter: !0,
2235
2235
  hideToolbar: !0,
2236
2236
  ...g
2237
- }), O = d.disableToolbarButton !== !0 && typeof c.current?.exportDataAsCsv == "function", V = f.disableToolbarButton !== !0 && typeof c.current?.exportDataAsExcel == "function", $ = g.disableToolbarButton !== !0, k = !!s || !!y?.button?.disabled;
2238
- return !O && !V && !$ ? null : xr(
2237
+ }), L = d.disableToolbarButton !== !0 && typeof c.current?.exportDataAsCsv == "function", z = f.disableToolbarButton !== !0 && typeof c.current?.exportDataAsExcel == "function", $ = g.disableToolbarButton !== !0, k = !!s || !!y?.button?.disabled;
2238
+ return !L && !z && !$ ? null : xr(
2239
2239
  /* @__PURE__ */ F(
2240
2240
  xu,
2241
2241
  {
@@ -2249,21 +2249,21 @@ const Hl = /* @__PURE__ */ n((e) => typeof e == "boolean" ? e : !!parseInt(e), "
2249
2249
  },
2250
2250
  ...b,
2251
2251
  children: [
2252
- O && /* @__PURE__ */ i(
2252
+ L && /* @__PURE__ */ i(
2253
2253
  Ai,
2254
2254
  {
2255
2255
  disabled: k,
2256
2256
  label: M("toolbarExportCSV", "CSV"),
2257
- onExport: /* @__PURE__ */ n((L) => R("csv", L), "onExport"),
2257
+ onExport: /* @__PURE__ */ n((O) => R("csv", O), "onExport"),
2258
2258
  options: E
2259
2259
  }
2260
2260
  ),
2261
- V && /* @__PURE__ */ i(
2261
+ z && /* @__PURE__ */ i(
2262
2262
  Ai,
2263
2263
  {
2264
2264
  disabled: k,
2265
2265
  label: M("toolbarExportExcel", "Excel"),
2266
- onExport: /* @__PURE__ */ n((L) => R("excel", L), "onExport"),
2266
+ onExport: /* @__PURE__ */ n((O) => R("excel", O), "onExport"),
2267
2267
  options: D
2268
2268
  }
2269
2269
  ),
@@ -2272,8 +2272,8 @@ const Hl = /* @__PURE__ */ n((e) => typeof e == "boolean" ? e : !!parseInt(e), "
2272
2272
  {
2273
2273
  disabled: k,
2274
2274
  label: M("toolbarExportPrint", "PDF"),
2275
- onExport: /* @__PURE__ */ n((L) => R("print", L), "onExport"),
2276
- options: H
2275
+ onExport: /* @__PURE__ */ n((O) => R("print", O), "onExport"),
2276
+ options: V
2277
2277
  }
2278
2278
  )
2279
2279
  ]
@@ -2429,7 +2429,7 @@ function Nf(e) {
2429
2429
  );
2430
2430
  }
2431
2431
  n(Nf, "Toolbar");
2432
- const Yl = st({ resolve: null }), b0 = /* @__PURE__ */ n(({ resolve: e, children: t }) => {
2432
+ const Yl = at({ resolve: null }), y0 = /* @__PURE__ */ n(({ resolve: e, children: t }) => {
2433
2433
  const o = de(() => ({ resolve: e }), [e]);
2434
2434
  return /* @__PURE__ */ i(Yl.Provider, { value: o, children: t });
2435
2435
  }, "FormResolverProvider"), $f = /* @__PURE__ */ n(() => Ce(Yl), "useFormResolver"), Go = {
@@ -2586,10 +2586,10 @@ const Yl = st({ resolve: null }), b0 = /* @__PURE__ */ n(({ resolve: e, children
2586
2586
  }, "removeStoredSize"), Kf = /* @__PURE__ */ n((e, t) => {
2587
2587
  !e || !t || (e.style.width = `${Math.round(t.width)}px`, e.style.height = `${Math.round(t.height)}px`, e.style.maxWidth = `${Math.round(t.maxWidth)}px`, e.style.maxHeight = `${Math.round(t.maxHeight)}px`, e.style.minWidth = `${Math.round(t.minWidth)}px`, e.style.minHeight = `${Math.round(t.minHeight)}px`);
2588
2588
  }, "applyPopupSizeStyles"), Qn = /* @__PURE__ */ n((e) => {
2589
- const t = ge(), o = ye(), r = e?.resource ?? o ?? "default", s = Nt()?.props, l = e?.dockviewTabParent === !0, c = S.useContext(Ye) || {}, u = c?.popup ?? c?.popupSize ?? null, p = S.useMemo(
2589
+ const t = me(), o = ye(), r = e?.resource ?? o ?? "default", s = Nt()?.props, l = e?.dockviewTabParent === !0, c = S.useContext(Ye) || {}, u = c?.popup ?? c?.popupSize ?? null, p = S.useMemo(
2590
2590
  () => Hf(u, e?.popupRatio),
2591
2591
  [u, e?.popupRatio]
2592
- ), d = pt((O) => O.breakpoints.down("sm")), [f, g] = S.useState(null), m = S.useMemo(
2592
+ ), d = pt((L) => L.breakpoints.down("sm")), [f, g] = S.useState(null), m = S.useMemo(
2593
2593
  () => l ? Rs(s) : null,
2594
2594
  [l, s]
2595
2595
  ), y = S.useMemo(
@@ -2598,8 +2598,8 @@ const Yl = st({ resolve: null }), b0 = /* @__PURE__ */ n(({ resolve: e, children
2598
2598
  ), [b, h] = S.useState(
2599
2599
  () => qf(y)
2600
2600
  ), w = S.useRef(null), P = S.useMemo(() => {
2601
- const O = m?.getBoundingClientRect?.() ?? Is(s);
2602
- return Ts({ rect: O, ratio: p });
2601
+ const L = m?.getBoundingClientRect?.() ?? Is(s);
2602
+ return Ts({ rect: L, ratio: p });
2603
2603
  }, [s, m, p]);
2604
2604
  S.useEffect(() => {
2605
2605
  b || d || h({
@@ -2609,38 +2609,38 @@ const Yl = st({ resolve: null }), b0 = /* @__PURE__ */ n(({ resolve: e, children
2609
2609
  }, [P.height, P.width, d, b]), S.useEffect(() => {
2610
2610
  if (!f || d || typeof ResizeObserver > "u")
2611
2611
  return;
2612
- const O = new ResizeObserver((V) => {
2613
- const $ = V?.[0];
2612
+ const L = new ResizeObserver((z) => {
2613
+ const $ = z?.[0];
2614
2614
  if (!$?.contentRect)
2615
2615
  return;
2616
2616
  const k = {
2617
2617
  width: Math.round($.contentRect.width),
2618
2618
  height: Math.round($.contentRect.height)
2619
2619
  };
2620
- h((L) => L?.width === k.width && L?.height === k.height ? L : k), w.current && clearTimeout(w.current), w.current = setTimeout(() => {
2620
+ h((O) => O?.width === k.width && O?.height === k.height ? O : k), w.current && clearTimeout(w.current), w.current = setTimeout(() => {
2621
2621
  Fs(y, k);
2622
2622
  }, 200);
2623
2623
  });
2624
- return O.observe(f), () => {
2625
- w.current && clearTimeout(w.current), O.disconnect();
2624
+ return L.observe(f), () => {
2625
+ w.current && clearTimeout(w.current), L.disconnect();
2626
2626
  };
2627
2627
  }, [f, y, d]);
2628
2628
  const M = S.useCallback(
2629
- (O) => {
2630
- const V = m?.getBoundingClientRect?.() ?? Is(s), $ = Ts({ rect: V, ratio: p }), k = {
2629
+ (L) => {
2630
+ const z = m?.getBoundingClientRect?.() ?? Is(s), $ = Ts({ rect: z, ratio: p }), k = {
2631
2631
  width: $.width,
2632
2632
  height: $.height
2633
2633
  };
2634
2634
  if (Uf(y), Fs(y, k), h(k), d)
2635
2635
  return;
2636
- const L = f ?? O?.currentTarget?.closest?.(".MuiDialog-paper") ?? null;
2637
- Kf(L, $);
2636
+ const O = f ?? L?.currentTarget?.closest?.(".MuiDialog-paper") ?? null;
2637
+ Kf(O, $);
2638
2638
  },
2639
2639
  [s, d, f, m, p, y]
2640
2640
  ), x = b || {
2641
2641
  width: P.width,
2642
2642
  height: P.height
2643
- }, T = P.maxWidth, I = P.maxHeight, R = P.minWidth, E = P.minHeight, D = l ? "100%" : "100vw", H = l ? "100%" : "100dvh";
2643
+ }, T = P.maxWidth, I = P.maxHeight, R = P.minWidth, E = P.minHeight, D = l ? "100%" : "100vw", V = l ? "100%" : "100dvh";
2644
2644
  return S.useMemo(
2645
2645
  () => ({
2646
2646
  ...Go,
@@ -2679,9 +2679,9 @@ const Yl = st({ resolve: null }), b0 = /* @__PURE__ */ n(({ resolve: e, children
2679
2679
  xs: D,
2680
2680
  sm: l ? `min(100%, ${T}px)` : `${T}px`
2681
2681
  },
2682
- height: { xs: H, sm: `${x.height}px` },
2682
+ height: { xs: V, sm: `${x.height}px` },
2683
2683
  maxHeight: {
2684
- xs: H,
2684
+ xs: V,
2685
2685
  sm: l ? `min(100%, ${I}px)` : `${I}px`
2686
2686
  },
2687
2687
  minWidth: {
@@ -2689,7 +2689,7 @@ const Yl = st({ resolve: null }), b0 = /* @__PURE__ */ n(({ resolve: e, children
2689
2689
  sm: l ? `min(100%, ${R}px)` : `${R}px`
2690
2690
  },
2691
2691
  minHeight: {
2692
- xs: H,
2692
+ xs: V,
2693
2693
  sm: l ? `min(100%, ${E}px)` : `${E}px`
2694
2694
  },
2695
2695
  resize: { xs: "none", sm: "both" },
@@ -2713,7 +2713,7 @@ const Yl = st({ resolve: null }), b0 = /* @__PURE__ */ n(({ resolve: e, children
2713
2713
  width: 18,
2714
2714
  height: 18,
2715
2715
  borderRadius: 0,
2716
- background: /* @__PURE__ */ n((O) => `repeating-linear-gradient(135deg, ${O.palette.primary.main} 0 2px, transparent 2px 4px)`, "background"),
2716
+ background: /* @__PURE__ */ n((L) => `repeating-linear-gradient(135deg, ${L.palette.primary.main} 0 2px, transparent 2px 4px)`, "background"),
2717
2717
  clipPath: "polygon(100% 0, 100% 100%, 0 100%)",
2718
2718
  pointerEvents: "none",
2719
2719
  display: { xs: "none", sm: "block" },
@@ -2736,7 +2736,7 @@ const Yl = st({ resolve: null }), b0 = /* @__PURE__ */ n(({ resolve: e, children
2736
2736
  x.height,
2737
2737
  x.width,
2738
2738
  t,
2739
- H,
2739
+ V,
2740
2740
  D
2741
2741
  ]
2742
2742
  );
@@ -2792,7 +2792,7 @@ const Yl = st({ resolve: null }), b0 = /* @__PURE__ */ n(({ resolve: e, children
2792
2792
  const s = Xf(t, a);
2793
2793
  return a?.container === void 0 && delete s.container, s;
2794
2794
  }, "resolvePopupDialogProps"), Dr = /* @__PURE__ */ n((e) => {
2795
- const t = ye(), o = e?.resource ?? t, r = oi(), a = ge(), s = ht(), l = St(), c = $f(), p = Nt()?.props, d = c?.resolve ? c.resolve(o) : null, f = Qn({
2795
+ const t = ye(), o = e?.resource ?? t, r = oi(), a = me(), s = ht(), l = St(), c = $f(), p = Nt()?.props, d = c?.resolve ? c.resolve(o) : null, f = Qn({
2796
2796
  resource: o,
2797
2797
  popupRatio: e?.popupRatio
2798
2798
  }), g = Qn({
@@ -2958,7 +2958,7 @@ const Yl = st({ resolve: null }), b0 = /* @__PURE__ */ n(({ resolve: e, children
2958
2958
  borra: p,
2959
2959
  nuevoDesde: d,
2960
2960
  onClose: f
2961
- } = e, g = ye(e), m = ge(), y = di(e), b = Zn(), { showCreate: h, showEdit: w, showShow: P } = Dr({ resource: g }), M = !ir(t.row, c), x = !ec(t.row, u), T = l && M, I = t?.id ?? t?.row?.id;
2961
+ } = e, g = ye(e), m = me(), y = di(e), b = Zn(), { showCreate: h, showEdit: w, showShow: P } = Dr({ resource: g }), M = !ir(t.row, c), x = !ec(t.row, u), T = l && M, I = t?.id ?? t?.row?.id;
2962
2962
  return /* @__PURE__ */ F(
2963
2963
  U,
2964
2964
  {
@@ -3518,14 +3518,14 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
3518
3518
  nuevoDesde: R = !1,
3519
3519
  pivotEnabled: E,
3520
3520
  pivotUi: D = "mui",
3521
- pivotServerSide: H = !0,
3522
- pivotingColDef: O,
3523
- onPivotModelChange: V,
3521
+ pivotServerSide: V = !0,
3522
+ pivotingColDef: L,
3523
+ onPivotModelChange: z,
3524
3524
  onAggregationModelChange: $,
3525
3525
  slots: k,
3526
- slotProps: L,
3526
+ slotProps: O,
3527
3527
  ...v
3528
- } = e, [_, K] = S.useState(0), q = S.useRef(null), [Z, X] = S.useState({ top: 2, left: 8, h: 28 }), W = pt((C) => C.breakpoints.down("md")), re = di(e), ne = ge(), [be] = pr(), N = (be === "en" ? Cr : vr).components.MuiDataGrid.defaultProps.localeText, Q = sm(), me = ye(e), {
3528
+ } = e, [_, K] = S.useState(0), q = S.useRef(null), [Z, X] = S.useState({ top: 2, left: 8, h: 28 }), G = pt((C) => C.breakpoints.down("md")), re = di(e), ne = me(), [be] = pr(), N = (be === "en" ? Cr : vr).components.MuiDataGrid.defaultProps.localeText, Q = sm(), he = ye(e), {
3529
3529
  props: {
3530
3530
  bulkActionButtons: we = r,
3531
3531
  hasCreate: Oe,
@@ -3533,7 +3533,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
3533
3533
  chkSeleccion: se,
3534
3534
  actionsContainerRef: Fe,
3535
3535
  filterActionsContainerRef: Ue,
3536
- gridContainerRef: G,
3536
+ gridContainerRef: H,
3537
3537
  viewMode: ue = "grilla",
3538
3538
  hideGridToolbarActions: ae = !0,
3539
3539
  pivotEnabled: ve = !1,
@@ -3544,19 +3544,19 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
3544
3544
  setProps: gt
3545
3545
  } = Nt(), Ae = E ?? ve, Ze = D ?? Le, Mt = S.useCallback(
3546
3546
  (C) => {
3547
- if (q.current = C, !!G) {
3548
- if (typeof G == "function") {
3549
- G(C);
3547
+ if (q.current = C, !!H) {
3548
+ if (typeof H == "function") {
3549
+ H(C);
3550
3550
  return;
3551
3551
  }
3552
- G.current = C;
3552
+ H.current = C;
3553
3553
  }
3554
3554
  },
3555
- [G]
3556
- ), nt = v?.unstable_listView ?? Se?.unstable_listView ?? !1, Y = Ae && ue === "pivot";
3555
+ [H]
3556
+ ), it = v?.unstable_listView ?? Se?.unstable_listView ?? !1, Y = Ae && ue === "pivot";
3557
3557
  S.useLayoutEffect(() => {
3558
3558
  const C = q.current;
3559
- if (!C || nt) return;
3559
+ if (!C || it) return;
3560
3560
  const A = /* @__PURE__ */ n(() => {
3561
3561
  C.style.setProperty(
3562
3562
  "--metiri-grid-top",
@@ -3568,7 +3568,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
3568
3568
  return j.observe(C.parentElement), window.addEventListener("resize", A), () => {
3569
3569
  j.disconnect(), window.removeEventListener("resize", A);
3570
3570
  };
3571
- }, [nt]);
3571
+ }, [it]);
3572
3572
  const J = hr(), [B, ie] = S.useState(
3573
3573
  Ls
3574
3574
  ), pe = S.useCallback(() => {
@@ -3579,7 +3579,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
3579
3579
  }, [v]), Ne = S.useMemo(() => {
3580
3580
  const C = { ...Se };
3581
3581
  return delete C.dataSource, delete C.pivotingColDef, C;
3582
- }, [Se]), it = S.useRef(null), $t = S.useRef(null), Vt = S.useMemo(() => {
3582
+ }, [Se]), rt = S.useRef(null), $t = S.useRef(null), Vt = S.useMemo(() => {
3583
3583
  const C = {
3584
3584
  ...Bs,
3585
3585
  ...v?.aggregationFunctions || {},
@@ -3610,7 +3610,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
3610
3610
  It(A), Q?.(A);
3611
3611
  },
3612
3612
  [Zt, It, Q]
3613
- ), gi = nt || !ae || Eo !== !1 || Y, ho = S.useCallback(async () => typeof mo != "function" ? zt : mo(), [zt, mo]), bi = Y ? void 0 : ho, hn = S.useMemo(() => {
3613
+ ), gi = it || !ae || Eo !== !1 || Y, ho = S.useCallback(async () => typeof mo != "function" ? zt : mo(), [zt, mo]), bi = Y ? void 0 : ho, hn = S.useMemo(() => {
3614
3614
  const C = {
3615
3615
  loadingOverlay: Yp,
3616
3616
  noRowsOverlay: Tr,
@@ -3623,51 +3623,51 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
3623
3623
  rows: [],
3624
3624
  columns: [],
3625
3625
  values: []
3626
- }), [, $e] = S.useState({}), ke = H && Y, Tt = S.useMemo(() => {
3626
+ }), [, $e] = S.useState({}), ke = V && Y, Tt = S.useMemo(() => {
3627
3627
  if (!Y)
3628
3628
  return Ge;
3629
3629
  const C = /* @__PURE__ */ n((A) => {
3630
3630
  if (!A)
3631
3631
  return A;
3632
- const j = typeof A.getRows == "function" ? (...z) => A.getRows(...z) : A.getRows, ce = typeof A.getGroupKey == "function" ? (...z) => A.getGroupKey(...z) : null, he = /* @__PURE__ */ n((z) => {
3633
- const Pe = ce?.(z);
3634
- if (Pe != null && Pe !== "")
3632
+ const j = typeof A.getRows == "function" ? (...W) => A.getRows(...W) : A.getRows, ce = typeof A.getGroupKey == "function" ? (...W) => A.getGroupKey(...W) : null, ge = /* @__PURE__ */ n((W) => {
3633
+ const Pe = ce?.(W);
3634
+ if (Pe != null)
3635
3635
  return String(Pe);
3636
- if (!z || typeof z != "object")
3636
+ if (!W || typeof W != "object")
3637
3637
  return "";
3638
3638
  const ze = (Oo.current?.rows ?? []).map(_n).filter(Boolean);
3639
3639
  for (let Re = 0; Re < ze.length; Re += 1) {
3640
- const Ee = ze[Re], rt = z[Ee];
3641
- if (rt != null && rt !== "")
3642
- return String(rt);
3640
+ const Ee = ze[Re], st = W[Ee];
3641
+ if (st != null && st !== "")
3642
+ return String(st);
3643
3643
  }
3644
- const fe = Object.keys(z).find(
3645
- (Re) => Re !== "id" && Re !== "__childrenCount" && Re !== "childrenCount" && z[Re] != null && z[Re] !== ""
3644
+ const fe = Object.keys(W).find(
3645
+ (Re) => Re !== "id" && Re !== "__childrenCount" && Re !== "childrenCount" && W[Re] != null && W[Re] !== ""
3646
3646
  );
3647
- return fe ? String(z[fe]) : z.id != null ? String(z.id) : "";
3648
- }, "getGroupKey"), _e = typeof A.getChildrenCount == "function" ? (...z) => A.getChildrenCount(...z) : null, xe = /* @__PURE__ */ n((z) => {
3649
- const Pe = _e?.(z);
3650
- return Number.isFinite(Pe) ? Pe : z?.childrenCount ?? z?.__childrenCount ?? 0;
3651
- }, "getChildrenCount"), Ve = typeof A.getAggregatedValue == "function" ? (...z) => A.getAggregatedValue(...z) : null;
3647
+ return fe ? String(W[fe]) : W.id != null ? String(W.id) : "";
3648
+ }, "getGroupKey"), _e = typeof A.getChildrenCount == "function" ? (...W) => A.getChildrenCount(...W) : null, xe = /* @__PURE__ */ n((W) => {
3649
+ const Pe = _e?.(W);
3650
+ return Number.isFinite(Pe) ? Pe : W?.childrenCount ?? W?.__childrenCount ?? 0;
3651
+ }, "getChildrenCount"), Ve = typeof A.getAggregatedValue == "function" ? (...W) => A.getAggregatedValue(...W) : null;
3652
3652
  return {
3653
3653
  ...A,
3654
3654
  getRows: j,
3655
- getGroupKey: he,
3655
+ getGroupKey: ge,
3656
3656
  getChildrenCount: xe,
3657
- getAggregatedValue: /* @__PURE__ */ n((z, Pe) => {
3658
- const ze = Ve?.(z, Pe);
3657
+ getAggregatedValue: /* @__PURE__ */ n((W, Pe) => {
3658
+ const ze = Ve?.(W, Pe);
3659
3659
  if (ze != null)
3660
3660
  return ze;
3661
- if (!z || !Pe)
3661
+ if (!W || !Pe)
3662
3662
  return;
3663
3663
  const We = vm(Pe);
3664
3664
  for (let fe = 0; fe < We.length; fe += 1) {
3665
- const Re = We[fe], Ee = z[Re];
3665
+ const Re = We[fe], Ee = W[Re];
3666
3666
  if (Ee != null)
3667
3667
  return Ee;
3668
3668
  }
3669
3669
  for (let fe = 0; fe < We.length; fe += 1) {
3670
- const Re = We[fe], Ee = z[`${Re}Aggregate`];
3670
+ const Re = We[fe], Ee = W[`${Re}Aggregate`];
3671
3671
  if (Ee !== void 0)
3672
3672
  return Ee;
3673
3673
  }
@@ -3678,7 +3678,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
3678
3678
  getRows: /* @__PURE__ */ n(async (A) => {
3679
3679
  const j = A.pivotModel || {};
3680
3680
  Oo.current = j;
3681
- const ce = A.start ?? 0, he = A.end ?? ce + 50, _e = Math.max(1, he - ce), xe = Math.floor(ce / _e) + 1, Ve = A.sortModel ?? [], Ft = Ve[0]?.field ?? He.field ?? "id", z = (Ve[0]?.sort ?? He.order ?? "ASC").toUpperCase(), Pe = J.current?.state?.rowGrouping?.model?.[0], ze = w({
3681
+ const ce = A.start ?? 0, ge = A.end ?? ce + 50, _e = Math.max(1, ge - ce), xe = Math.floor(ce / _e) + 1, Ve = A.sortModel ?? [], Ft = Ve[0]?.field ?? He.field ?? "id", W = (Ve[0]?.sort ?? He.order ?? "ASC").toUpperCase(), Pe = J.current?.state?.rowGrouping?.model?.[0], ze = w({
3682
3682
  groupingField: Pe,
3683
3683
  ...A.filterModel || {}
3684
3684
  }), fe = {
@@ -3686,7 +3686,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
3686
3686
  ...ze
3687
3687
  }, Re = JSON.stringify({
3688
3688
  start: ce,
3689
- end: he,
3689
+ end: ge,
3690
3690
  sortModel: Ve,
3691
3691
  filterModel: fe,
3692
3692
  pivotModel: j,
@@ -3706,9 +3706,9 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
3706
3706
  ),
3707
3707
  groupFields: JSON.stringify(A.groupFields ?? []),
3708
3708
  groupKeys: JSON.stringify(A.groupKeys ?? [])
3709
- }, rt = _o.getList(me, {
3709
+ }, st = _o.getList(he, {
3710
3710
  pagination: { page: xe, perPage: _e },
3711
- sort: { field: Ft, order: z },
3711
+ sort: { field: Ft, order: W },
3712
3712
  filter: fe,
3713
3713
  meta: Ee
3714
3714
  }).then((ct) => {
@@ -3773,7 +3773,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
3773
3773
  aggregateRow: ct.aggregateRow
3774
3774
  };
3775
3775
  });
3776
- return to.current = { key: Re, promise: rt }, rt;
3776
+ return to.current = { key: Re, promise: st }, st;
3777
3777
  }, "getRows")
3778
3778
  });
3779
3779
  }, [
@@ -3782,21 +3782,21 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
3782
3782
  _o,
3783
3783
  Ge,
3784
3784
  Y,
3785
- me,
3785
+ he,
3786
3786
  v?.meta,
3787
3787
  Se?.meta,
3788
3788
  He.field,
3789
3789
  He.order
3790
3790
  ]), kc = S.useCallback(
3791
3791
  (C, A) => {
3792
- const ce = (Array.isArray(A) ? A : []).map((he) => Ws(he && typeof he == "object" ? he.key ?? he.group : he));
3792
+ const ce = (Array.isArray(A) ? A : []).map((ge) => Ws(ge && typeof ge == "object" ? ge.key ?? ge.group : ge));
3793
3793
  return {
3794
3794
  field: ce.length ? `${C}__${ce.join("__")}` : C,
3795
3795
  minWidth: 120
3796
3796
  };
3797
3797
  },
3798
3798
  []
3799
- ), _c = O ?? (Tt ? kc : void 0), { showCreate: Vr, showEdit: yi, showShow: Ec } = Dr({ resource: me }), Lo = Ce(Ye) || {}, {
3799
+ ), _c = L ?? (Tt ? kc : void 0), { showCreate: Vr, showEdit: yi, showShow: Ec } = Dr({ resource: he }), Lo = Ce(Ye) || {}, {
3800
3800
  user: gn = Es,
3801
3801
  lang: zr = Es
3802
3802
  } = Lo, Dc = en(Lo, "borrar") || en(Lo, "delete"), bn = I && !Dc, xi = Ce(Cl), Wt = Or(), yn = (J.current?.state?.rowGrouping?.model?.length ?? 0) > 0, Ci = yn && !Y ? `${Z.h + 4}px` : 0;
@@ -3810,11 +3810,11 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
3810
3810
  }, [J, Ze, Y]), oe(() => {
3811
3811
  if (xi) {
3812
3812
  const C = xi.current.panels.find(
3813
- (A) => A.id === `win_${me}`
3813
+ (A) => A.id === `win_${he}`
3814
3814
  );
3815
3815
  C && (C.params.apiRef = J);
3816
3816
  }
3817
- }, [J, me, xi]), oe(() => {
3817
+ }, [J, he, xi]), oe(() => {
3818
3818
  const C = {};
3819
3819
  Ie !== J && (C.apiRef = J), ve !== Ae && (C.pivotEnabled = Ae), Le !== Ze && (C.pivotUi = Ze), Object.keys(C).length > 0 && gt?.(C);
3820
3820
  }, [
@@ -3856,7 +3856,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
3856
3856
  }, "renderCell")
3857
3857
  }),
3858
3858
  [J]
3859
- ), Bo = S.useMemo(() => `metiri_rowGrouping_${(me || "").toString().trim() || "default"}`, [me]), go = S.useMemo(() => {
3859
+ ), Bo = S.useMemo(() => `metiri_rowGrouping_${(he || "").toString().trim() || "default"}`, [he]), go = S.useMemo(() => {
3860
3860
  try {
3861
3861
  const C = localStorage.getItem(Bo), A = C ? JSON.parse(C) : [];
3862
3862
  return Array.isArray(A) ? A : [];
@@ -3920,18 +3920,18 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
3920
3920
  [Bo, Y]
3921
3921
  );
3922
3922
  S.useEffect(() => {
3923
- if (!(!J.current || Y || W))
3923
+ if (!(!J.current || Y || G))
3924
3924
  try {
3925
3925
  const C = J.current.state?.rowGrouping?.model ?? [];
3926
3926
  go.length && JSON.stringify(C) !== JSON.stringify(go) && J.current.setRowGroupingModel(go);
3927
3927
  } catch {
3928
3928
  }
3929
- }, [Y, W]), S.useEffect(() => {
3929
+ }, [Y, G]), S.useEffect(() => {
3930
3930
  !J.current || !Y || J.current.setRowGroupingModel([]);
3931
3931
  }, [J, Y]);
3932
- const Cn = Y || W ? [] : go.length ? go : xn?.rowGrouping?.model ?? [];
3932
+ const Cn = Y || G ? [] : go.length ? go : xn?.rowGrouping?.model ?? [];
3933
3933
  S.useEffect(() => {
3934
- if (Y || W) return;
3934
+ if (Y || G) return;
3935
3935
  const C = J.current?.state?.rowGrouping?.model ?? Cn, A = Ds(He, C);
3936
3936
  (A.field !== He.field || A.order !== He.order) && fo(A);
3937
3937
  }, [
@@ -3939,7 +3939,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
3939
3939
  _,
3940
3940
  Cn,
3941
3941
  Y,
3942
- W,
3942
+ G,
3943
3943
  fo,
3944
3944
  He.field,
3945
3945
  He.order
@@ -3948,7 +3948,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
3948
3948
  () => ({
3949
3949
  ...Gt,
3950
3950
  ...vi ? { sorting: vi } : {},
3951
- pinnedColumns: !W && !Y ? { right: ["actions"] } : {},
3951
+ pinnedColumns: !G && !Y ? { right: ["actions"] } : {},
3952
3952
  rowGrouping: { model: Cn }
3953
3953
  //filter: {
3954
3954
  // filterModel: {
@@ -3957,7 +3957,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
3957
3957
  // },
3958
3958
  //},
3959
3959
  }),
3960
- [Cn, vi, W, Gt]
3960
+ [Cn, vi, G, Gt]
3961
3961
  ), Bc = Qa({
3962
3962
  apiRef: J,
3963
3963
  initialState: Ur
@@ -3981,21 +3981,21 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
3981
3981
  hideable: !1,
3982
3982
  renderHeader: /* @__PURE__ */ n(() => /* @__PURE__ */ i(ot, { children: o }), "renderHeader"),
3983
3983
  getActions: /* @__PURE__ */ n((C) => {
3984
- const A = J.current.getRowNode(C.id), j = A?.children?.[0], ce = !!M && typeof j == "string" && j.indexOf(`${M}=`) !== -1, he = !ir(C.row, l), _e = !ec(
3984
+ const A = J.current.getRowNode(C.id), j = A?.children?.[0], ce = !!M && typeof j == "string" && j.indexOf(`${M}=`) !== -1, ge = !ir(C.row, l), _e = !ec(
3985
3985
  C.row,
3986
3986
  c
3987
- ), xe = x && he, Ve = Kr.current, Ft = (C.row?.id == null || C.row?.id === "") && ce, z = A?.type === "group" || Ft ? void 0 : C.row?.id ?? C.id, Pe = z ? /* @__PURE__ */ i(
3987
+ ), xe = x && ge, Ve = Kr.current, Ft = (C.row?.id == null || C.row?.id === "") && ce, W = A?.type === "group" || Ft ? void 0 : C.row?.id ?? C.id, Pe = W ? /* @__PURE__ */ i(
3988
3988
  xo,
3989
3989
  {
3990
3990
  label: ne("ra.action.show"),
3991
3991
  icon: /* @__PURE__ */ i(Un, { color: "primary" }),
3992
3992
  onClick: /* @__PURE__ */ n((fe) => {
3993
- fe && (fe.defaultMuiPrevented = !0, fe.stopPropagation()), Ec({ id: z, record: C.row });
3993
+ fe && (fe.defaultMuiPrevented = !0, fe.stopPropagation()), Ec({ id: W, record: C.row });
3994
3994
  }, "onClick")
3995
3995
  },
3996
- `show-${z}`
3996
+ `show-${W}`
3997
3997
  ) : null, ze = R || bn && !_e, We = (t || []).filter((fe) => Yt(Lo, fe)).map((fe, Re) => {
3998
- const { handler: Ee, key: rt, sx: ct, ...$o } = fe;
3998
+ const { handler: Ee, key: st, sx: ct, ...$o } = fe;
3999
3999
  return /* @__PURE__ */ i(
4000
4000
  xo,
4001
4001
  {
@@ -4011,7 +4011,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4011
4011
  ...Ve,
4012
4012
  record: C.row
4013
4013
  },
4014
- rt
4014
+ st
4015
4015
  ) : !1, "onClick"),
4016
4016
  ...$o
4017
4017
  },
@@ -4021,7 +4021,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4021
4021
  if (bn && !_e) {
4022
4022
  const fe = /* @__PURE__ */ n(() => {
4023
4023
  yi({
4024
- id: z,
4024
+ id: W,
4025
4025
  estado: "B",
4026
4026
  record: C.row
4027
4027
  });
@@ -4039,14 +4039,14 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4039
4039
  ),
4040
4040
  showInMenu: !0
4041
4041
  },
4042
- `delete-${z}`
4042
+ `delete-${W}`
4043
4043
  )
4044
4044
  );
4045
4045
  }
4046
4046
  if (R) {
4047
4047
  const fe = /* @__PURE__ */ n(() => {
4048
4048
  Vr({
4049
- id: z,
4049
+ id: W,
4050
4050
  estado: "ND",
4051
4051
  record: C.row
4052
4052
  });
@@ -4061,11 +4061,11 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4061
4061
  icon: /* @__PURE__ */ i(qn, {}),
4062
4062
  showInMenu: !0
4063
4063
  },
4064
- `nd-${z}`
4064
+ `nd-${W}`
4065
4065
  )
4066
4066
  );
4067
4067
  }
4068
- return z ? [
4068
+ return W ? [
4069
4069
  ...m ? [
4070
4070
  xe ? Pe : /* @__PURE__ */ i(
4071
4071
  xo,
@@ -4076,20 +4076,20 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4076
4076
  /* @__PURE__ */ i(
4077
4077
  tl,
4078
4078
  {
4079
- color: he ? "inherit" : "primary"
4079
+ color: ge ? "inherit" : "primary"
4080
4080
  }
4081
4081
  ),
4082
- he ? void 0 : Wt.palette.primary.main
4082
+ ge ? void 0 : Wt.palette.primary.main
4083
4083
  ),
4084
- disabled: he,
4084
+ disabled: ge,
4085
4085
  onClick: /* @__PURE__ */ n((fe) => {
4086
4086
  fe && (fe.defaultMuiPrevented = !0, fe.stopPropagation()), yi({
4087
- id: z,
4087
+ id: W,
4088
4088
  record: C.row
4089
4089
  });
4090
4090
  }, "onClick")
4091
4091
  },
4092
- `edit-${z}`
4092
+ `edit-${W}`
4093
4093
  )
4094
4094
  ] : x ? [Pe] : [],
4095
4095
  ...We
@@ -4105,13 +4105,13 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4105
4105
  `${M}=`
4106
4106
  )?.[1] : "", Ee = String(
4107
4107
  Re ?? ""
4108
- ).replaceAll("'", "").replaceAll("[", "").replaceAll("]", "").trim().split("AND")[0].trim(), rt = M ? {
4108
+ ).replaceAll("'", "").replaceAll("[", "").replaceAll("]", "").trim().split("AND")[0].trim(), st = M ? {
4109
4109
  [M]: Ee
4110
4110
  } : void 0;
4111
- Vr({ record: rt });
4111
+ Vr({ record: st });
4112
4112
  }, "onClick")
4113
4113
  },
4114
- `cgb-${z}}`
4114
+ `cgb-${W}}`
4115
4115
  )
4116
4116
  ] : [];
4117
4117
  }, "getActions")
@@ -4129,7 +4129,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4129
4129
  x,
4130
4130
  l,
4131
4131
  R,
4132
- me,
4132
+ he,
4133
4133
  ne,
4134
4134
  bo,
4135
4135
  Y
@@ -4171,7 +4171,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4171
4171
  C.preventDefault(), C.stopPropagation();
4172
4172
  return;
4173
4173
  }
4174
- if (W || Y || !wi)
4174
+ if (G || Y || !wi)
4175
4175
  return;
4176
4176
  const j = Yr(C);
4177
4177
  if (!j)
@@ -4181,14 +4181,14 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4181
4181
  const xe = Number(j);
4182
4182
  !Number.isNaN(xe) && J.current?.getRowNode(xe) && (ce = xe);
4183
4183
  }
4184
- let he = null;
4184
+ let ge = null;
4185
4185
  try {
4186
- he = J.current?.getRowParams(ce);
4186
+ ge = J.current?.getRowParams(ce);
4187
4187
  } catch {
4188
4188
  }
4189
- if (!he)
4189
+ if (!ge)
4190
4190
  return;
4191
- const _e = (wi.getActions(he) || []).filter(
4191
+ const _e = (wi.getActions(ge) || []).filter(
4192
4192
  (xe) => lo(xe) && xe.props?.showInMenu
4193
4193
  ).map((xe, Ve) => ({
4194
4194
  key: xe.key ?? `ctx-row-action-${Ve}`,
@@ -4211,7 +4211,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4211
4211
  wi,
4212
4212
  J,
4213
4213
  Y,
4214
- W,
4214
+ G,
4215
4215
  Yr,
4216
4216
  Do
4217
4217
  ]
@@ -4237,7 +4237,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4237
4237
  const ce = 8 + (q.current.querySelector(
4238
4238
  ".MuiDataGrid-pinnedColumnHeaders--left"
4239
4239
  )?.getBoundingClientRect()?.width ?? 0);
4240
- X((he) => he.top === 2 && he.left === ce && he.h === 28 ? he : {
4240
+ X((ge) => ge.top === 2 && ge.left === ce && ge.h === 28 ? ge : {
4241
4241
  top: 2,
4242
4242
  left: ce,
4243
4243
  h: 28
@@ -4262,20 +4262,20 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4262
4262
  ...A,
4263
4263
  valueGetter: Hl,
4264
4264
  valueFormatter: A.valueFormatter ?? _r
4265
- } : A, ce = j.type === "date" && j.filterOperators === void 0 ? bm : j.filterOperators, he = j.valueFormatter, _e = /* @__PURE__ */ n((z, Pe, ze, We) => Mn(Pe) ? z ?? "" : he ? he(z, Pe, ze, We) : z, "safeVF");
4265
+ } : A, ce = j.type === "date" && j.filterOperators === void 0 ? bm : j.filterOperators, ge = j.valueFormatter, _e = /* @__PURE__ */ n((W, Pe, ze, We) => Mn(Pe) ? W ?? "" : ge ? ge(W, Pe, ze, We) : W, "safeVF");
4266
4266
  if (j.type === "actions" || Wn.has(j.field))
4267
4267
  return {
4268
4268
  ...j,
4269
4269
  filterOperators: ce,
4270
4270
  valueFormatter: _e
4271
4271
  };
4272
- const xe = /* @__PURE__ */ n((z, Pe) => /* @__PURE__ */ i(
4272
+ const xe = /* @__PURE__ */ n((W, Pe) => /* @__PURE__ */ i(
4273
4273
  So,
4274
4274
  {
4275
4275
  colDef: j,
4276
- value: z?.value,
4277
- formattedValue: z?.formattedValue,
4278
- row: z?.row,
4276
+ value: W?.value,
4277
+ formattedValue: W?.formattedValue,
4278
+ row: W?.row,
4279
4279
  columns: No,
4280
4280
  primaryField: C,
4281
4281
  children: Pe
@@ -4290,10 +4290,10 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4290
4290
  valueFormatter: _e,
4291
4291
  align: "left",
4292
4292
  headerAlign: "left",
4293
- colSpan: /* @__PURE__ */ n((z, Pe) => Mn(Pe) ? 0 : void 0, "colSpan"),
4294
- renderCell: /* @__PURE__ */ n((z) => Ve ? Ft ? xe(z, Ve(z)) : Ve(z) : xe(
4295
- z,
4296
- z?.formattedValue ?? z?.value
4293
+ colSpan: /* @__PURE__ */ n((W, Pe) => Mn(Pe) ? 0 : void 0, "colSpan"),
4294
+ renderCell: /* @__PURE__ */ n((W) => Ve ? Ft ? xe(W, Ve(W)) : Ve(W) : xe(
4295
+ W,
4296
+ W?.formattedValue ?? W?.value
4297
4297
  ), "renderCell")
4298
4298
  } : {
4299
4299
  ...j,
@@ -4301,8 +4301,8 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4301
4301
  valueFormatter: _e,
4302
4302
  align: "left",
4303
4303
  headerAlign: "left",
4304
- cellClassName: /* @__PURE__ */ n((z) => z?.rowNode?.type === "group" ? "metiri-group-label" : void 0, "cellClassName"),
4305
- colSpan: /* @__PURE__ */ n((z, Pe) => {
4304
+ cellClassName: /* @__PURE__ */ n((W) => W?.rowNode?.type === "group" ? "metiri-group-label" : void 0, "cellClassName"),
4305
+ colSpan: /* @__PURE__ */ n((W, Pe) => {
4306
4306
  if (!Mn(Pe))
4307
4307
  return;
4308
4308
  const ze = J.current?.getVisibleColumns?.() ?? [], We = J.current?.state?.pinnedColumns ?? J.current?.state?.columns?.pinnedColumns ?? {
@@ -4310,12 +4310,12 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4310
4310
  right: []
4311
4311
  }, fe = new Set(We.left || []), Re = new Set(We.right || []), Ee = ze.filter(
4312
4312
  (ct) => !fe.has(ct.field) && !Re.has(ct.field)
4313
- ), rt = Ee.findIndex((ct) => ct.field === C);
4314
- return rt === -1 ? Ee.length : Ee.length - rt;
4313
+ ), st = Ee.findIndex((ct) => ct.field === C);
4314
+ return st === -1 ? Ee.length : Ee.length - st;
4315
4315
  }, "colSpan"),
4316
- renderCell: /* @__PURE__ */ n((z) => {
4317
- if (z?.rowNode?.type === "group") {
4318
- const ze = 10 + Math.max(0, z.rowNode.depth ?? 0) * 14, We = z.rowNode.groupingField ?? "", fe = No.find((Ee) => Ee.field === We)?.headerName ?? We, Re = String(z.rowNode.groupingKey ?? "");
4316
+ renderCell: /* @__PURE__ */ n((W) => {
4317
+ if (W?.rowNode?.type === "group") {
4318
+ const ze = 10 + Math.max(0, W.rowNode.depth ?? 0) * 14, We = W.rowNode.groupingField ?? "", fe = No.find((Ee) => Ee.field === We)?.headerName ?? We, Re = String(W.rowNode.groupingKey ?? "");
4319
4319
  return /* @__PURE__ */ F(
4320
4320
  "span",
4321
4321
  {
@@ -4329,7 +4329,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4329
4329
  }
4330
4330
  );
4331
4331
  }
4332
- return Ve ? Ft ? xe(z, Ve(z)) : Ve(z) : xe(z, z?.formattedValue ?? z?.value);
4332
+ return Ve ? Ft ? xe(W, Ve(W)) : Ve(W) : xe(W, W?.formattedValue ?? W?.value);
4333
4333
  }, "renderCell")
4334
4334
  };
4335
4335
  });
@@ -4358,7 +4358,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4358
4358
  ) || Vs(A) || kn(A, yo) || J.current.setFilterModel(yo);
4359
4359
  }, [J, Y, yo]), S.useEffect(
4360
4360
  () => () => {
4361
- it.current && clearTimeout(it.current);
4361
+ rt.current && clearTimeout(rt.current);
4362
4362
  },
4363
4363
  []
4364
4364
  );
@@ -4379,19 +4379,19 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4379
4379
  }),
4380
4380
  [et]
4381
4381
  ), qc = /* @__PURE__ */ n((C) => {
4382
- if (Y && Tt || ($t.current = C, it.current && clearTimeout(it.current), Vs(C)) || kn(C, yo))
4382
+ if (Y && Tt || ($t.current = C, rt.current && clearTimeout(rt.current), Vs(C)) || kn(C, yo))
4383
4383
  return;
4384
- const ce = (J.current.state.rowGrouping?.model || [])[0], he = w({
4384
+ const ce = (J.current.state.rowGrouping?.model || [])[0], ge = w({
4385
4385
  groupingField: ce,
4386
4386
  ...C
4387
4387
  });
4388
- it.current = setTimeout(() => {
4389
- mn(he, po), it.current = null;
4388
+ rt.current = setTimeout(() => {
4389
+ mn(ge, po), rt.current = null;
4390
4390
  }, hm);
4391
4391
  }, "handleFilterChange"), Uc = /* @__PURE__ */ n((C) => {
4392
4392
  if (Y && Tt)
4393
4393
  return;
4394
- const A = W ? [] : J.current?.state?.rowGrouping?.model || [];
4394
+ const A = G ? [] : J.current?.state?.rowGrouping?.model || [];
4395
4395
  fo(Ds({
4396
4396
  field: C[0]?.field || "",
4397
4397
  order: C[0]?.sort?.toUpperCase() || ""
@@ -4403,14 +4403,14 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4403
4403
  columns: [],
4404
4404
  values: []
4405
4405
  }
4406
- ), V?.(
4406
+ ), z?.(
4407
4407
  C || {
4408
4408
  rows: [],
4409
4409
  columns: [],
4410
4410
  values: []
4411
4411
  }
4412
4412
  );
4413
- }, [V]), Xc = S.useCallback(
4413
+ }, [z]), Xc = S.useCallback(
4414
4414
  (C) => {
4415
4415
  const A = C || {};
4416
4416
  $e(A), $?.(A);
@@ -4545,7 +4545,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4545
4545
  Ma,
4546
4546
  {
4547
4547
  selectedIds: et,
4548
- selectAllButton: W && zt.some((C) => !et.includes(C.id)) ? /* @__PURE__ */ i(xt, { title: ne("pos.select_all"), children: /* @__PURE__ */ i(
4548
+ selectAllButton: G && zt.some((C) => !et.includes(C.id)) ? /* @__PURE__ */ i(xt, { title: ne("pos.select_all"), children: /* @__PURE__ */ i(
4549
4549
  Xe,
4550
4550
  {
4551
4551
  "aria-label": ne("pos.select_all"),
@@ -4618,11 +4618,11 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4618
4618
  sx: { pointerEvents: "auto" },
4619
4619
  onDelete: /* @__PURE__ */ n((j) => {
4620
4620
  j.stopPropagation();
4621
- const he = (J.current?.state?.rowGrouping?.model || []).filter(
4621
+ const ge = (J.current?.state?.rowGrouping?.model || []).filter(
4622
4622
  (_e) => _e !== C
4623
4623
  );
4624
4624
  J.current?.setRowGroupingModel(
4625
- he
4625
+ ge
4626
4626
  ), J.current?.setColumnVisibility?.(
4627
4627
  C,
4628
4628
  !0
@@ -4672,18 +4672,18 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4672
4672
  loadingOverlay: {
4673
4673
  mensaje: re.progress.mensaje
4674
4674
  },
4675
- ...L,
4675
+ ...O,
4676
4676
  toolbar: {
4677
- ...L?.toolbar,
4677
+ ...O?.toolbar,
4678
4678
  actionsContainerRef: Fe,
4679
4679
  exporter: Eo,
4680
4680
  fetchRowsForExport: bi,
4681
4681
  filterActionsContainerRef: Ue
4682
4682
  },
4683
4683
  row: {
4684
- ...L?.row,
4684
+ ...O?.row,
4685
4685
  onContextMenu: /* @__PURE__ */ n((C) => {
4686
- L?.row?.onContextMenu?.(C), C.defaultPrevented || Jr(C);
4686
+ O?.row?.onContextMenu?.(C), C.defaultPrevented || Jr(C);
4687
4687
  }, "onContextMenu")
4688
4688
  }
4689
4689
  },
@@ -4701,7 +4701,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4701
4701
  onFilterModelChange: qc,
4702
4702
  rowSelectionModel: jc,
4703
4703
  onRowGroupingModelChange: Lc,
4704
- disableRowGrouping: W || Se?.disableRowGrouping || v?.disableRowGrouping,
4704
+ disableRowGrouping: G || Se?.disableRowGrouping || v?.disableRowGrouping,
4705
4705
  onRowSelectionModelChange: Hc,
4706
4706
  isRowSelectable: /* @__PURE__ */ n((C) => {
4707
4707
  const A = C?.id;
@@ -4719,7 +4719,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4719
4719
  pageSizeOptions: dm,
4720
4720
  isCellEditable: Qc,
4721
4721
  defaultGroupingExpansionDepth: Y ? 0 : -1,
4722
- disableColumnResize: nt ? !0 : void 0,
4722
+ disableColumnResize: it ? !0 : void 0,
4723
4723
  ...Ke,
4724
4724
  ...Ne,
4725
4725
  onColumnWidthChange: $c,
@@ -4778,12 +4778,12 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4778
4778
  const {
4779
4779
  key: j,
4780
4780
  label: ce,
4781
- icon: he,
4781
+ icon: ge,
4782
4782
  disabled: _e,
4783
4783
  className: xe,
4784
4784
  sx: Ve,
4785
4785
  closeMenuOnClick: Ft,
4786
- inert: z,
4786
+ inert: W,
4787
4787
  onClick: Pe
4788
4788
  } = C || {};
4789
4789
  return /* @__PURE__ */ F(
@@ -4792,12 +4792,12 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4792
4792
  disabled: _e,
4793
4793
  className: xe,
4794
4794
  sx: Gs(Ve),
4795
- disableRipple: !!z,
4795
+ disableRipple: !!W,
4796
4796
  onClick: /* @__PURE__ */ n((ze) => {
4797
4797
  typeof Pe == "function" && Pe(ze), Ft && pe();
4798
4798
  }, "onClick"),
4799
4799
  children: [
4800
- he ? /* @__PURE__ */ i(ao, { children: he }) : null,
4800
+ ge ? /* @__PURE__ */ i(ao, { children: ge }) : null,
4801
4801
  /* @__PURE__ */ i(vo, { children: ce })
4802
4802
  ]
4803
4803
  },
@@ -4831,32 +4831,32 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4831
4831
  ...w
4832
4832
  } = e, P = S.useRef(null), M = Ce(Ye) || {}, { lang: x = [] } = M, T = en(M, "borrar") || en(M, "delete"), I = m && !T, R = b ? [] : (s || []).filter(
4833
4833
  (se) => Yt(M, se)
4834
- ), E = !!(!b && (c || d || y || I || R.length)), D = ye(e), { sort: H } = Jt(), O = /* @__PURE__ */ n(() => P.current, "container"), V = pt((se) => se.breakpoints.down("md")), $ = h ?? V, k = h && !V, [L] = pr(), v = (L === "en" ? Cr : vr).components.MuiDataGrid.defaultProps.localeText, _ = hr(), {
4834
+ ), E = !!(!b && (c || d || y || I || R.length)), D = ye(e), { sort: V } = Jt(), L = /* @__PURE__ */ n(() => P.current, "container"), z = pt((se) => se.breakpoints.down("md")), $ = h ?? z, k = h && !z, [O] = pr(), v = (O === "en" ? Cr : vr).components.MuiDataGrid.defaultProps.localeText, _ = hr(), {
4835
4835
  props: { gridContainerRef: K, chkSeleccion: q }
4836
4836
  } = Nt(), [Z, X] = S.useState({
4837
4837
  overlay: null,
4838
4838
  params: null
4839
4839
  });
4840
- let W = a?.rowGrouping?.model?.[0];
4840
+ let G = a?.rowGrouping?.model?.[0];
4841
4841
  try {
4842
- W = JSON.parse(
4842
+ G = JSON.parse(
4843
4843
  localStorage.getItem(
4844
4844
  `metiri_rowGrouping_${D || "default"}`
4845
4845
  )
4846
- )?.[0] ?? W;
4846
+ )?.[0] ?? G;
4847
4847
  } catch {
4848
4848
  }
4849
- const re = t.find((se) => se.field === W), ne = re ? (se) => re.groupingValueGetter?.(
4850
- se?.[W],
4849
+ const re = t.find((se) => se.field === G), ne = re ? (se) => re.groupingValueGetter?.(
4850
+ se?.[G],
4851
4851
  se
4852
- ) ?? se?.[W] : void 0, be = l ? l.split(",").map((se) => se.trim()).filter(Boolean) : [], Q = (be.length ? be.map(
4852
+ ) ?? se?.[G] : void 0, be = l ? l.split(",").map((se) => se.trim()).filter(Boolean) : [], Q = (be.length ? be.map(
4853
4853
  (se) => t.find(
4854
4854
  (Fe) => Fe.field === se || Fe.field === se + "_lis"
4855
4855
  )
4856
4856
  ).filter(Boolean) : t).map((se) => ({
4857
4857
  ...se,
4858
4858
  headerName: x[se.field.replace("_lis", "")] ?? se.headerName
4859
- })), me = /* @__PURE__ */ n(() => {
4859
+ })), he = /* @__PURE__ */ n(() => {
4860
4860
  X({ overlay: null, params: null });
4861
4861
  }, "handleCloseOverlay"), we = S.useMemo(
4862
4862
  () => ({
@@ -4932,7 +4932,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4932
4932
  initialState: {
4933
4933
  density: "comfortable",
4934
4934
  sorting: {
4935
- sortModel: [{ field: H.field, sort: H.order }]
4935
+ sortModel: [{ field: V.field, sort: V.order }]
4936
4936
  },
4937
4937
  ...a,
4938
4938
  rowGrouping: null
@@ -5016,8 +5016,8 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5016
5016
  Zf,
5017
5017
  {
5018
5018
  open: Z.overlay === "actions",
5019
- container: O,
5020
- onClose: me,
5019
+ container: L,
5020
+ onClose: he,
5021
5021
  params: Z.params,
5022
5022
  actions: R,
5023
5023
  hasEdit: b ? !1 : c,
@@ -5198,7 +5198,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5198
5198
  onBeforeSubmitAsistente: c = Ro,
5199
5199
  onAfterSubmitAsistente: u = Ro,
5200
5200
  validateAllowAdd: p
5201
- } = e, [d, f] = S.useState(!1), g = ye(e), m = qe(), y = Qt(), b = Bl({ apiRef: y, source: s, enviarTodo: l }), h = "N", { estado: w } = Te(), P = Ct(), x = ge()("ra.action.create");
5201
+ } = e, [d, f] = S.useState(!1), g = ye(e), m = qe(), y = Qt(), b = Bl({ apiRef: y, source: s, enviarTodo: l }), h = "N", { estado: w } = Te(), P = Ct(), x = me()("ra.action.create");
5202
5202
  return /* @__PURE__ */ F(ot, { children: [
5203
5203
  /* @__PURE__ */ i(
5204
5204
  Je,
@@ -5259,7 +5259,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5259
5259
  enviarTodo: c,
5260
5260
  onBeforeSubmitAsistente: u = Ro,
5261
5261
  onAfterSubmitAsistente: p = Ro
5262
- } = e, d = ge(), [f, g] = S.useState(!1), m = Qt(), y = qe(), b = Nl({ apiRef: m, source: s, enviarTodo: c }), h = "M", { estado: w } = Te(), P = Ct(), M = d("ra.action.edit");
5262
+ } = e, d = me(), [f, g] = S.useState(!1), m = Qt(), y = qe(), b = Nl({ apiRef: m, source: s, enviarTodo: c }), h = "M", { estado: w } = Te(), P = Ct(), M = d("ra.action.edit");
5263
5263
  return /* @__PURE__ */ F(ot, { children: [
5264
5264
  /* @__PURE__ */ i(
5265
5265
  Je,
@@ -5351,7 +5351,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5351
5351
  minWidth: 0,
5352
5352
  overflowX: "auto",
5353
5353
  overflowY: "hidden"
5354
- }, y0 = /* @__PURE__ */ n((e) => {
5354
+ }, x0 = /* @__PURE__ */ n((e) => {
5355
5355
  const {
5356
5356
  filterBy: t = "",
5357
5357
  claves: o,
@@ -5373,12 +5373,12 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5373
5373
  slotProps: P,
5374
5374
  showToolbar: M,
5375
5375
  ...x
5376
- } = e, [T, I] = S.useState([]), R = at(e), E = qe(), D = De(E), { field: H } = sn({ defaultValue: "", ...e }), O = Or(), {
5377
- isActive: V,
5378
- hasBeenActive: $ = V
5376
+ } = e, [T, I] = S.useState([]), R = nt(e), E = qe(), D = De(E), { field: V } = sn({ defaultValue: "", ...e }), L = Or(), {
5377
+ isActive: z,
5378
+ hasBeenActive: $ = z
5379
5379
  } = ui(), {
5380
5380
  isLoading: k,
5381
- fichaProps: { [m]: L } = {},
5381
+ fichaProps: { [m]: O } = {},
5382
5382
  propsContenidos: { [m]: v = {} } = {}
5383
5383
  } = Te(), _ = Pt(), K = br((le) => Pr(le.configInputs, m, _)), {
5384
5384
  conts: q = []
@@ -5386,7 +5386,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5386
5386
  } = Ce(Ye), {
5387
5387
  hidden: Z,
5388
5388
  disabled: X,
5389
- label: W
5389
+ label: G
5390
5390
  } = q[m] || {
5391
5391
  hidden: 0,
5392
5392
  disabled: 0,
@@ -5396,18 +5396,18 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5396
5396
  disabled: be,
5397
5397
  hidden: N,
5398
5398
  enableLoad: Q,
5399
- useContenido: me = pn,
5399
+ useContenido: he = pn,
5400
5400
  onBeforeSubmitAsistente: we,
5401
5401
  onAfterSubmitAsistente: Oe,
5402
5402
  allowEdit: Be,
5403
5403
  allowAdd: se,
5404
5404
  allowRemove: Fe,
5405
5405
  columns: Ue,
5406
- slots: G,
5406
+ slots: H,
5407
5407
  slotProps: ue,
5408
5408
  initialState: ae,
5409
5409
  validateAllowAdd: ve
5410
- } = L || {}, Le = `${m}_enviartodo`, [Ie, Se] = S.useState(r), [{ field: gt, sort: Ae }] = r, Ze = X || d || be, Mt = re !== void 0 ? re : Z ? !0 : N !== void 0 ? N : f, nt = v.enableLoad ?? Q ?? p, Y = Be ?? l, J = se ?? c, B = Fe ?? u;
5410
+ } = O || {}, Le = `${m}_enviartodo`, [Ie, Se] = S.useState(r), [{ field: gt, sort: Ae }] = r, Ze = X || d || be, Mt = re !== void 0 ? re : Z ? !0 : N !== void 0 ? N : f, it = v.enableLoad ?? Q ?? p, Y = Be ?? l, J = se ?? c, B = Fe ?? u;
5411
5411
  let ie = { ...h };
5412
5412
  R && t.split(",").forEach((le) => {
5413
5413
  le && (ie[le] = [
@@ -5421,14 +5421,14 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5421
5421
  }), oe(() => {
5422
5422
  D.current = E;
5423
5423
  }, [E]), oe(() => {
5424
- if (!nt) {
5424
+ if (!it) {
5425
5425
  const le = setTimeout(() => {
5426
5426
  const $e = js(g).length > 0, ke = D.current.getValues(m);
5427
5427
  !$e && ke !== "" && ke !== void 0 && D.current.setValue(m, "");
5428
5428
  }, 1e3);
5429
5429
  return () => clearTimeout(le);
5430
5430
  }
5431
- }, [g, nt, m]), oe(() => {
5431
+ }, [g, it, m]), oe(() => {
5432
5432
  ne ? D.current.getValues(Le) !== "true" && D.current.setValue(Le, "true") : D.current.unregister(Le);
5433
5433
  }, [ne, Le]), oe(() => {
5434
5434
  g.__setEtrRows = I;
@@ -5447,7 +5447,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5447
5447
  filter: ie
5448
5448
  },
5449
5449
  {
5450
- enabled: nt && !k && $,
5450
+ enabled: it && !k && $,
5451
5451
  onSuccess: /* @__PURE__ */ n((le) => {
5452
5452
  clearTimeout(pe.current);
5453
5453
  const $e = le?.data || [];
@@ -5463,7 +5463,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5463
5463
  }, 1e3)), I($e);
5464
5464
  }, "onSuccess")
5465
5465
  }
5466
- ), Ne = me({
5466
+ ), Ne = he({
5467
5467
  ...e,
5468
5468
  refetch: Ke
5469
5469
  });
@@ -5473,7 +5473,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5473
5473
  Asegúrese de incluir una instrucción return al final de la función`
5474
5474
  );
5475
5475
  const {
5476
- slots: it,
5476
+ slots: rt,
5477
5477
  slotProps: $t,
5478
5478
  ...Vt
5479
5479
  } = Ne || {}, {
@@ -5483,14 +5483,14 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5483
5483
  ...et
5484
5484
  } = v || {}, It = de(() => {
5485
5485
  const le = {
5486
- ...G || {},
5486
+ ...H || {},
5487
5487
  ...zt || {},
5488
- ...it || {},
5488
+ ...rt || {},
5489
5489
  ...w || {},
5490
5490
  noRowsOverlay: Tr
5491
5491
  };
5492
5492
  return typeof le.toolbar == "boolean" && (le.toolbar = void 0), le;
5493
- }, [G, zt, it, w]), po = de(
5493
+ }, [H, zt, rt, w]), po = de(
5494
5494
  () => ({
5495
5495
  ...ue || {},
5496
5496
  ...Zt || {},
@@ -5672,7 +5672,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5672
5672
  [hn]
5673
5673
  ), Oo = !0;
5674
5674
  return oe(() => {
5675
- if (!V || !Oo)
5675
+ if (!z || !Oo)
5676
5676
  return;
5677
5677
  const le = /* @__PURE__ */ n(() => {
5678
5678
  g?.current?.resize?.(), typeof window < "u" && window.dispatchEvent(new Event("resize"));
@@ -5680,7 +5680,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5680
5680
  return () => {
5681
5681
  cancelAnimationFrame($e), clearTimeout(ke);
5682
5682
  };
5683
- }, [g, to, V, T.length, Oo]), Mt ? null : /* @__PURE__ */ i(U, { sx: b ? [qs, b] : qs, children: /* @__PURE__ */ i(
5683
+ }, [g, to, z, T.length, Oo]), Mt ? null : /* @__PURE__ */ i(U, { sx: b ? [qs, b] : qs, children: /* @__PURE__ */ i(
5684
5684
  U,
5685
5685
  {
5686
5686
  sx: {
@@ -5702,11 +5702,11 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5702
5702
  overflow: "hidden",
5703
5703
  ...y
5704
5704
  },
5705
- children: /* @__PURE__ */ i(Ca, { injectFirst: !0, children: /* @__PURE__ */ i(qa, { theme: O, children: /* @__PURE__ */ F(dt, { children: [
5705
+ children: /* @__PURE__ */ i(Ca, { injectFirst: !0, children: /* @__PURE__ */ i(qa, { theme: L, children: /* @__PURE__ */ F(dt, { children: [
5706
5706
  /* @__PURE__ */ i(
5707
5707
  fr,
5708
5708
  {
5709
- label: W || e.label,
5709
+ label: G || e.label,
5710
5710
  source: m,
5711
5711
  resource: e.resource,
5712
5712
  isRequired: e.isRequired,
@@ -5813,7 +5813,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5813
5813
  )
5814
5814
  }
5815
5815
  ),
5816
- /* @__PURE__ */ i("input", { type: "hidden", ...H }),
5816
+ /* @__PURE__ */ i("input", { type: "hidden", ...V }),
5817
5817
  ne ? /* @__PURE__ */ i(
5818
5818
  "input",
5819
5819
  {
@@ -5828,7 +5828,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5828
5828
  )
5829
5829
  }
5830
5830
  ) });
5831
- }, "EtrGrid"), x0 = /* @__PURE__ */ n((e) => {
5831
+ }, "EtrGrid"), C0 = /* @__PURE__ */ n((e) => {
5832
5832
  const {
5833
5833
  filterBy: t = "",
5834
5834
  sortModel: o,
@@ -5837,15 +5837,15 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5837
5837
  enableLoad: s = !0,
5838
5838
  initialState: l,
5839
5839
  ...c
5840
- } = e, { isLoading: u } = Te(), p = at(e), [d, f] = ee(o), [{ field: g, sort: m }] = o;
5840
+ } = e, { isLoading: u } = Te(), p = nt(e), [d, f] = ee(o), [{ field: g, sort: m }] = o;
5841
5841
  let y = {};
5842
- p && t.split(",").forEach((L) => {
5843
- L && (y[L] = [
5842
+ p && t.split(",").forEach((O) => {
5843
+ O && (y[O] = [
5844
5844
  {
5845
5845
  type: "string",
5846
5846
  comparison: "eq",
5847
- value: p[L],
5848
- field: L
5847
+ value: p[O],
5848
+ field: O
5849
5849
  }
5850
5850
  ]);
5851
5851
  });
@@ -5854,8 +5854,8 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5854
5854
  hasBeenActive: T = x
5855
5855
  } = ui() || {}, { [e.source]: I = {} } = w, { useContenido: R = pn, ...E } = I, {
5856
5856
  data: D = [],
5857
- isFetching: H,
5858
- refetch: O
5857
+ isFetching: V,
5858
+ refetch: L
5859
5859
  } = Ia(
5860
5860
  a,
5861
5861
  {
@@ -5866,8 +5866,8 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5866
5866
  {
5867
5867
  enabled: s && !u && T
5868
5868
  }
5869
- ), V = hr(), $ = Qa({
5870
- apiRef: V,
5869
+ ), z = hr(), $ = Qa({
5870
+ apiRef: z,
5871
5871
  initialState: l
5872
5872
  });
5873
5873
  R({
@@ -5877,8 +5877,8 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5877
5877
  isLoading: h,
5878
5878
  utils: M,
5879
5879
  ...E,
5880
- refetch: O,
5881
- apiRef: V
5880
+ refetch: L,
5881
+ apiRef: z
5882
5882
  });
5883
5883
  const k = D;
5884
5884
  return T ? /* @__PURE__ */ i(
@@ -5893,13 +5893,13 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5893
5893
  children: /* @__PURE__ */ i(Ca, { injectFirst: !0, children: /* @__PURE__ */ i(qa, { theme: P, children: /* @__PURE__ */ i(
5894
5894
  gr,
5895
5895
  {
5896
- apiRef: V,
5896
+ apiRef: z,
5897
5897
  rows: k,
5898
5898
  columns: r,
5899
- loading: H || u,
5899
+ loading: V || u,
5900
5900
  sx: {
5901
5901
  "& .MuiDataGrid-columnsContainer": {
5902
- backgroundColor: /* @__PURE__ */ n((L) => L.palette.mode === "light" ? "#fafafa" : "#1d1d1d", "backgroundColor")
5902
+ backgroundColor: /* @__PURE__ */ n((O) => O.palette.mode === "light" ? "#fafafa" : "#1d1d1d", "backgroundColor")
5903
5903
  },
5904
5904
  "& .MuiDataGrid-iconSeparator": {
5905
5905
  display: "none"
@@ -5909,7 +5909,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5909
5909
  paginationModel: { page: 1, pageSize: 50 },
5910
5910
  hideFooter: !0,
5911
5911
  sortModel: d,
5912
- onSortModelChange: /* @__PURE__ */ n((L) => f(L), "onSortModelChange"),
5912
+ onSortModelChange: /* @__PURE__ */ n((O) => f(O), "onSortModelChange"),
5913
5913
  slots: {
5914
5914
  //header: <div>This is my custom Toolbar!</div>,
5915
5915
  noRowsOverlay: Tr
@@ -5920,7 +5920,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5920
5920
  ) }) })
5921
5921
  }
5922
5922
  ) : null;
5923
- }, "GE"), C0 = /* @__PURE__ */ n((e) => {
5923
+ }, "GE"), v0 = /* @__PURE__ */ n((e) => {
5924
5924
  const {
5925
5925
  filterValues: t,
5926
5926
  setFilters: o,
@@ -5953,7 +5953,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5953
5953
  }, "TabbedGrillaEtriek"), Lr = /* @__PURE__ */ n((e) => {
5954
5954
  const { useFormulario: t = pn, ...o } = e;
5955
5955
  return { fichaProps: { ...t(o), etrs: o.etrs } };
5956
- }, "useInitFicha"), Lm = /* @__PURE__ */ n((e, t, o) => Ra(e, { id: o?.id || "-1", meta: o }, t), "useNuevo"), v0 = /* @__PURE__ */ n((e, t) => {
5956
+ }, "useInitFicha"), Lm = /* @__PURE__ */ n((e, t, o) => Ra(e, { id: o?.id || "-1", meta: o }, t), "useNuevo"), w0 = /* @__PURE__ */ n((e, t) => {
5957
5957
  const o = ye(), {
5958
5958
  data: r,
5959
5959
  isFetching: a,
@@ -5963,7 +5963,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5963
5963
  });
5964
5964
  return a || s ? "" : r?.etiqueta || "";
5965
5965
  }, "useReferenceLabel"), dc = /* @__PURE__ */ n((e) => {
5966
- const t = ge(), { defaultTitle: o, onClose: r, record: a, title: s } = e;
5966
+ const t = me(), { defaultTitle: o, onClose: r, record: a, title: s } = e;
5967
5967
  return /* @__PURE__ */ F(Bm, { id: "edit-dialog-title", children: [
5968
5968
  lo(s) ? At(s, { record: a }) : s ? t(s, { _: s }) : o,
5969
5969
  /* @__PURE__ */ i(
@@ -5988,7 +5988,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5988
5988
  top: e.spacing(1),
5989
5989
  color: e.palette.grey[500]
5990
5990
  }
5991
- })), fc = st(null), mc = /* @__PURE__ */ n((e) => {
5991
+ })), fc = at(null), mc = /* @__PURE__ */ n((e) => {
5992
5992
  const t = Ce(fc), o = {
5993
5993
  isOpen: e?.isOpen ?? t?.isOpen,
5994
5994
  open: e?.open ?? t?.open,
@@ -6045,7 +6045,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
6045
6045
  PaperProps: u,
6046
6046
  mutationOptions: p,
6047
6047
  ...d
6048
- } = e, f = ye(e), g = r ?? f, m = oi(), y = ge(), b = Ot(), h = S.useCallback(() => {
6048
+ } = e, f = ye(e), g = r ?? f, m = oi(), y = me(), b = Ot(), h = S.useCallback(() => {
6049
6049
  if (s)
6050
6050
  return s();
6051
6051
  b("list", g, void 0, void 0, {
@@ -6108,7 +6108,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
6108
6108
  }
6109
6109
  ) });
6110
6110
  }, "CreateDialogView"), hc = /* @__PURE__ */ n((e) => {
6111
- const t = ge(), [o, r] = ee(!1), a = te(() => {
6111
+ const t = me(), [o, r] = ee(!1), a = te(() => {
6112
6112
  r(!0);
6113
6113
  }, []), s = te(() => {
6114
6114
  r(!1);
@@ -6180,7 +6180,7 @@ function pi() {
6180
6180
  }
6181
6181
  n(pi, "clsx");
6182
6182
  const Hm = /* @__PURE__ */ n((e) => {
6183
- const { validateDelete: t, className: o } = e, r = ye(e), a = at(), s = ht(), { mutationOptions: { onError: l } = {} } = Te(), { open: c, isLoading: u, handleDialogOpen: p, handleDialogClose: d } = _d({ record: a, resource: r }), f = /* @__PURE__ */ n((m) => {
6183
+ const { validateDelete: t, className: o } = e, r = ye(e), a = nt(), s = ht(), { mutationOptions: { onError: l } = {} } = Te(), { open: c, isLoading: u, handleDialogOpen: p, handleDialogClose: d } = _d({ record: a, resource: r }), f = /* @__PURE__ */ n((m) => {
6184
6184
  p(m);
6185
6185
  }, "handleClick"), g = te(
6186
6186
  async (m) => {
@@ -6218,7 +6218,7 @@ const Hm = /* @__PURE__ */ n((e) => {
6218
6218
  }
6219
6219
  )
6220
6220
  ] });
6221
- }, "DeleteButtonWithValidation"), jm = {}, bc = S.createContext(null), w0 = /* @__PURE__ */ n(({ value: e, children: t }) => /* @__PURE__ */ i(bc.Provider, { value: e || jm, children: t }), "PreviewSandboxProvider"), fn = /* @__PURE__ */ n(() => S.useContext(bc) || null, "usePreviewSandbox"), fi = /* @__PURE__ */ n((e) => {
6221
+ }, "DeleteButtonWithValidation"), jm = {}, bc = S.createContext(null), S0 = /* @__PURE__ */ n(({ value: e, children: t }) => /* @__PURE__ */ i(bc.Provider, { value: e || jm, children: t }), "PreviewSandboxProvider"), fn = /* @__PURE__ */ n(() => S.useContext(bc) || null, "usePreviewSandbox"), fi = /* @__PURE__ */ n((e) => {
6222
6222
  const t = fn(), o = t?.resources || {};
6223
6223
  return !t?.enabled || !e ? null : o[e] || null;
6224
6224
  }, "usePreviewSandboxResource"), En = /* @__PURE__ */ n((e) => typeof e == "function", "isFunction"), Di = /* @__PURE__ */ n((e, t) => {
@@ -6288,7 +6288,7 @@ const Hm = /* @__PURE__ */ n((e) => {
6288
6288
  ] }) });
6289
6289
  }, "ToolbarFicha"), Oi = /* @__PURE__ */ n(() => {
6290
6290
  }, "dontSave"), Um = /* @__PURE__ */ n(() => typeof document > "u" ? !1 : !!document.activeElement?.closest?.(qm), "isDialogInteraction$1"), Km = /* @__PURE__ */ n((e, t) => typeof e?.hide != "function" || !e?.open ? !1 : t ? !0 : Um() ? !!(e?.props?._popupKey || e?.props?.tipo === "vista") : !1, "canHideAsistentePopup$1"), hi = /* @__PURE__ */ n((e) => {
6291
- const { borrar: t = !1 } = e, o = ye(), r = at(), a = ge(), s = Ot(), l = ht(), c = St(), {
6291
+ const { borrar: t = !1 } = e, o = ye(), r = nt(), a = me(), s = Ot(), l = ht(), c = St(), {
6292
6292
  estado: u,
6293
6293
  mutationOptions: p = {},
6294
6294
  fichaProps: { onBeforeSubmitFicha: d } = {}
@@ -6367,10 +6367,10 @@ const yc = /* @__PURE__ */ n(() => {
6367
6367
  }, [e]), null;
6368
6368
  }, "FormResetter"), Xm = /* @__PURE__ */ n((e) => {
6369
6369
  ar = e;
6370
- }, "registerFormReset"), S0 = /* @__PURE__ */ n(() => ar ? (ar(), !0) : !1, "resetForm"), Dn = /* @__PURE__ */ new Set(), Ym = /* @__PURE__ */ n((e) => {
6370
+ }, "registerFormReset"), P0 = /* @__PURE__ */ n(() => ar ? (ar(), !0) : !1, "resetForm"), Dn = /* @__PURE__ */ new Set(), Ym = /* @__PURE__ */ n((e) => {
6371
6371
  const { children: t, enableLoad: o, queryOptions: r, fichaProps: a, mutationOptions: s } = e, [l, c] = ee(null), u = lt(), p = Dt(), d = ye(e), f = fi(d), g = e.estado ?? (u?.state?.estado || "N"), m = u?.state?.record, y = e.record ?? m, b = e.id ?? u?.state?.id ?? y?.id ?? "-1", h = `${d}:${g}:${b}`, P = b === "-1" && y && typeof y == "object" && !Array.isArray(y) ? Object.fromEntries(
6372
6372
  Object.entries(y).filter(
6373
- ([, O]) => O != null && (typeof O == "string" || typeof O == "number" || typeof O == "boolean")
6373
+ ([, L]) => L != null && (typeof L == "string" || typeof L == "number" || typeof L == "boolean")
6374
6374
  )
6375
6375
  ) : {}, M = {
6376
6376
  estado: g,
@@ -6383,7 +6383,7 @@ const yc = /* @__PURE__ */ n(() => {
6383
6383
  enabled: o && !f
6384
6384
  },
6385
6385
  M
6386
- ), I = f?.record || f?.initialValues || x, E = (f ? !1 : T) && !I, D = y && typeof y == "object" && !Array.isArray(y) ? { ...I || {}, ...y } : I, H = de(
6386
+ ), I = f?.record || f?.initialValues || x, E = (f ? !1 : T) && !I, D = y && typeof y == "object" && !Array.isArray(y) ? { ...I || {}, ...y } : I, V = de(
6387
6387
  () => ({
6388
6388
  estado: g,
6389
6389
  initialValues: D || {},
@@ -6402,19 +6402,19 @@ const yc = /* @__PURE__ */ n(() => {
6402
6402
  ]
6403
6403
  );
6404
6404
  return oe(() => {
6405
- let O = !0;
6405
+ let L = !0;
6406
6406
  return f ? (c(f.formConfig || {}), () => {
6407
- O = !1;
6407
+ L = !1;
6408
6408
  }) : o ? (c(null), E ? () => {
6409
- O = !1;
6410
- } : (p.getFichaConfig(d, { estado: g }).then((V) => {
6411
- O && c(V.data);
6409
+ L = !1;
6410
+ } : (p.getFichaConfig(d, { estado: g }).then((z) => {
6411
+ L && c(z.data);
6412
6412
  }).catch(() => {
6413
- O && c({});
6413
+ L && c({});
6414
6414
  }), () => {
6415
- O = !1;
6415
+ L = !1;
6416
6416
  })) : (c({}), () => {
6417
- O = !1;
6417
+ L = !1;
6418
6418
  });
6419
6419
  }, [
6420
6420
  p,
@@ -6424,7 +6424,7 @@ const yc = /* @__PURE__ */ n(() => {
6424
6424
  d,
6425
6425
  f,
6426
6426
  h
6427
- ]), o && l === null ? /* @__PURE__ */ i(uo, { loadingPrimary: "", loadingSecondary: "", timeout: 0 }) : /* @__PURE__ */ i(Ir, { value: H, children: /* @__PURE__ */ i(Ye.Provider, { value: l, children: t }) });
6427
+ ]), o && l === null ? /* @__PURE__ */ i(uo, { loadingPrimary: "", loadingSecondary: "", timeout: 0 }) : /* @__PURE__ */ i(Ir, { value: V, children: /* @__PURE__ */ i(Ye.Provider, { value: l, children: t }) });
6428
6428
  }, "CreateChildren"), Us = /* @__PURE__ */ n((e) => {
6429
6429
  const t = lt(), {
6430
6430
  useFormulario: o,
@@ -6478,7 +6478,7 @@ const yc = /* @__PURE__ */ n(() => {
6478
6478
  const t = lt(), o = St(), r = Ot(), a = ht(), s = ye(e), l = Qn({
6479
6479
  resource: s,
6480
6480
  dockviewTabParent: !0
6481
- }), c = oi(), u = ge(), p = De(!1), d = t?.state?._asistentePopup === "router" && typeof o?.show == "function", f = d ? `${s}:create` : null;
6481
+ }), c = oi(), u = me(), p = De(!1), d = t?.state?._asistentePopup === "router" && typeof o?.show == "function", f = d ? `${s}:create` : null;
6482
6482
  return oe(() => {
6483
6483
  if (!d || p.current || (p.current = !0, f && (Dn.has(f) || o?.open && o?.props?._popupKey === f) || !f))
6484
6484
  return;
@@ -6525,7 +6525,7 @@ const yc = /* @__PURE__ */ n(() => {
6525
6525
  s,
6526
6526
  u
6527
6527
  ]), d ? null : /* @__PURE__ */ i(Us, { ...e });
6528
- }, "CreateEtriek"), P0 = Lt(Jm, {
6528
+ }, "CreateEtriek"), M0 = Lt(Jm, {
6529
6529
  name: on,
6530
6530
  overridesResolver: /* @__PURE__ */ n((e, t) => t.root, "overridesResolver")
6531
6531
  })(({ theme: e }) => Br(e)), Qm = /* @__PURE__ */ n((e) => {
@@ -6637,7 +6637,7 @@ const yc = /* @__PURE__ */ n(() => {
6637
6637
  const { props: t } = Nt();
6638
6638
  return t?.viewMode === "pivot" || e === !1 ? null : lo(e) ? e : /* @__PURE__ */ i(Nd, { rowsPerPageOptions: nh });
6639
6639
  }, "PivotAwarePagination"), Ho = /* @__PURE__ */ n(() => {
6640
- }, "noop"), M0 = /* @__PURE__ */ n((e) => {
6640
+ }, "noop"), I0 = /* @__PURE__ */ n((e) => {
6641
6641
  const t = ye(e), {
6642
6642
  tipo: o,
6643
6643
  hasCreate: r,
@@ -6648,15 +6648,15 @@ const yc = /* @__PURE__ */ n(() => {
6648
6648
  onSelectionChange: u,
6649
6649
  storeKey: p,
6650
6650
  ...d
6651
- } = e, f = Ce(Zo), g = o === "ventana" ? eh : ka, m = fi(t), { pathname: y, state: b } = lt(), h = Dt(), [w, P] = ee(null), [M, x] = ee(s), [T, I] = ee([]), [R, E] = ee({}), [D, H] = ee(
6651
+ } = e, f = Ce(Zo), g = o === "ventana" ? eh : ka, m = fi(t), { pathname: y, state: b } = lt(), h = Dt(), [w, P] = ee(null), [M, x] = ee(s), [T, I] = ee([]), [R, E] = ee({}), [D, V] = ee(
6652
6652
  d.sort || { field: "id", order: "ASC" }
6653
- ), [O, V] = ee(
6653
+ ), [L, z] = ee(
6654
6654
  Xs
6655
6655
  ), $ = De(null), k = /* @__PURE__ */ n((X) => {
6656
6656
  x(X.target.checked);
6657
- }, "handleChange"), L = te((X) => {
6657
+ }, "handleChange"), O = te((X) => {
6658
6658
  I(
6659
- (W) => W.includes(X) ? W.filter((re) => re !== X) : [...W, X]
6659
+ (G) => G.includes(X) ? G.filter((re) => re !== X) : [...G, X]
6660
6660
  );
6661
6661
  }, []), v = m?.rows || m?.data || [], _ = S.useMemo(
6662
6662
  () => ({
@@ -6672,7 +6672,7 @@ const yc = /* @__PURE__ */ n(() => {
6672
6672
  setPerPage: Ho,
6673
6673
  selectedIds: T,
6674
6674
  onSelect: I,
6675
- onToggleItem: L,
6675
+ onToggleItem: O,
6676
6676
  onUnselectItems: /* @__PURE__ */ n(() => I([]), "onUnselectItems"),
6677
6677
  displayedFilters: {},
6678
6678
  filterValues: R,
@@ -6680,7 +6680,7 @@ const yc = /* @__PURE__ */ n(() => {
6680
6680
  showFilter: Ho,
6681
6681
  hideFilter: Ho,
6682
6682
  sort: D,
6683
- setSort: H,
6683
+ setSort: V,
6684
6684
  defaultTitle: "",
6685
6685
  exporter: !1,
6686
6686
  resource: t,
@@ -6688,7 +6688,7 @@ const yc = /* @__PURE__ */ n(() => {
6688
6688
  getData: /* @__PURE__ */ n(() => v, "getData")
6689
6689
  }),
6690
6690
  [
6691
- L,
6691
+ O,
6692
6692
  t,
6693
6693
  d.perPage,
6694
6694
  R,
@@ -6711,7 +6711,7 @@ const yc = /* @__PURE__ */ n(() => {
6711
6711
  const X = $.current;
6712
6712
  if (!X)
6713
6713
  return;
6714
- let W = null;
6714
+ let G = null;
6715
6715
  const re = typeof ResizeObserver < "u" ? new ResizeObserver(() => {
6716
6716
  be();
6717
6717
  }) : null, ne = typeof MutationObserver < "u" ? new MutationObserver(() => {
@@ -6721,17 +6721,17 @@ const yc = /* @__PURE__ */ n(() => {
6721
6721
  const N = X.querySelector(
6722
6722
  Ys
6723
6723
  );
6724
- W !== N && (W && re && re.unobserve(W), W = N, W && re && re.observe(W));
6725
- const Q = W ? Math.ceil(W.getBoundingClientRect().height) : Xs;
6726
- V(
6727
- (me) => me === Q ? me : Q
6724
+ G !== N && (G && re && re.unobserve(G), G = N, G && re && re.observe(G));
6725
+ const Q = G ? Math.ceil(G.getBoundingClientRect().height) : Xs;
6726
+ z(
6727
+ (he) => he === Q ? he : Q
6728
6728
  );
6729
6729
  }
6730
6730
  return n(be, "syncPaginationHeight"), ne?.observe(X, {
6731
6731
  childList: !0,
6732
6732
  subtree: !0
6733
6733
  }), be(), () => {
6734
- ne?.disconnect(), W && re && re.unobserve(W), re?.disconnect();
6734
+ ne?.disconnect(), G && re && re.unobserve(G), re?.disconnect();
6735
6735
  };
6736
6736
  }, []), w === null)
6737
6737
  return /* @__PURE__ */ i(uo, { loadingPrimary: "", loadingSecondary: "", timeout: 0 });
@@ -6799,8 +6799,8 @@ const yc = /* @__PURE__ */ n(() => {
6799
6799
  }
6800
6800
  ),
6801
6801
  sx: {
6802
- "--metiri-list-pagination-height": `${O}px`,
6803
- "--metiri-list-bottom-offset": `calc(${O}px + ${oh}px)`,
6802
+ "--metiri-list-pagination-height": `${L}px`,
6803
+ "--metiri-list-bottom-offset": `calc(${L}px + ${oh}px)`,
6804
6804
  "& .RaListToolbar-root": {
6805
6805
  display: {
6806
6806
  xs: "grid",
@@ -6886,14 +6886,14 @@ const yc = /* @__PURE__ */ n(() => {
6886
6886
  selectedIds: u,
6887
6887
  redirect: p,
6888
6888
  ...d
6889
- }) => d, "sanitizeRestProps$2"), I0 = /* @__PURE__ */ n((e) => {
6890
- const t = ge(), {
6889
+ }) => d, "sanitizeRestProps$2"), R0 = /* @__PURE__ */ n((e) => {
6890
+ const t = me(), {
6891
6891
  resource: o,
6892
6892
  className: r,
6893
6893
  icon: a = /* @__PURE__ */ i(cn, {}),
6894
6894
  label: s = "ra.action.delete",
6895
6895
  ...l
6896
- } = e, c = at(), [u, { isFetching: p }] = Fa(o, {
6896
+ } = e, c = nt(), [u, { isFetching: p }] = Fa(o, {
6897
6897
  id: c.id
6898
6898
  });
6899
6899
  return /* @__PURE__ */ i(ci, { title: t("ra.action.delete"), children: /* @__PURE__ */ i(
@@ -7005,7 +7005,7 @@ const yc = /* @__PURE__ */ n(() => {
7005
7005
  const t = lt(), o = St(), r = Ot(), a = ht(), s = ye(e), l = Qn({
7006
7006
  resource: s,
7007
7007
  dockviewTabParent: !0
7008
- }), c = oi(), u = ge(), p = ja(), d = De(!1), f = t?.state?._asistentePopup === "router" && typeof o?.show == "function", g = Jo(`/${s}/:id/*`, t.pathname) || Jo(`/${s}/:id`, t.pathname), m = e.id ?? p?.id ?? t?.state?.id ?? t?.state?.record?.id ?? e.record?.id ?? g?.params?.id, y = f && !!m, b = y ? `${s}:${m}` : null;
7008
+ }), c = oi(), u = me(), p = ja(), d = De(!1), f = t?.state?._asistentePopup === "router" && typeof o?.show == "function", g = Jo(`/${s}/:id/*`, t.pathname) || Jo(`/${s}/:id`, t.pathname), m = e.id ?? p?.id ?? t?.state?.id ?? t?.state?.record?.id ?? e.record?.id ?? g?.params?.id, y = f && !!m, b = y ? `${s}:${m}` : null;
7009
7009
  return oe(() => {
7010
7010
  if (!y || d.current || (d.current = !0, b && (On.has(b) || o?.open && o?.props?._popupKey === b) || !b))
7011
7011
  return;
@@ -7052,10 +7052,10 @@ const yc = /* @__PURE__ */ n(() => {
7052
7052
  s,
7053
7053
  u
7054
7054
  ]), y ? null : /* @__PURE__ */ i(Qs, { ...e });
7055
- }, "EditEtriek"), R0 = Lt(ch, {
7055
+ }, "EditEtriek"), T0 = Lt(ch, {
7056
7056
  name: on,
7057
7057
  overridesResolver: /* @__PURE__ */ n((e, t) => t.root, "overridesResolver")
7058
- })(({ theme: e }) => Br(e)), T0 = S.forwardRef((e, t) => {
7058
+ })(({ theme: e }) => Br(e)), F0 = S.forwardRef((e, t) => {
7059
7059
  const {
7060
7060
  isOpen: o,
7061
7061
  onSubmit: r,
@@ -7143,7 +7143,7 @@ const yc = /* @__PURE__ */ n(() => {
7143
7143
  }, ph = ".MuiDialog-paper", Li = /* @__PURE__ */ n((e) => {
7144
7144
  e.preventDefault();
7145
7145
  }, "disableKeyboardEvents"), fh = /* @__PURE__ */ n(() => typeof document > "u" ? !1 : !!document.activeElement?.closest?.(ph), "isDialogInteraction"), mh = /* @__PURE__ */ n((e, t) => typeof e?.hide != "function" || !e?.open ? !1 : t ? !0 : fh() ? !!(e?.props?._popupKey || e?.props?.tipo === "vista") : !1, "canHideAsistentePopup"), Cc = /* @__PURE__ */ n((e) => {
7146
- const t = Ao(), o = lt(), r = ye(), a = Ot(), s = at(), l = St(), { estado: c, mutationOptions: u = {} } = Te(), p = u?._popupKey, d = c === "B" || o.state?.estado === "B", f = hi({ borrar: d, ...e }), g = t.open || d, m = t.open ? uh : dh;
7146
+ const t = Ao(), o = lt(), r = ye(), a = Ot(), s = nt(), l = St(), { estado: c, mutationOptions: u = {} } = Te(), p = u?._popupKey, d = c === "B" || o.state?.estado === "B", f = hi({ borrar: d, ...e }), g = t.open || d, m = t.open ? uh : dh;
7147
7147
  return /* @__PURE__ */ F(ot, { children: [
7148
7148
  t.open && /* @__PURE__ */ i(
7149
7149
  uo,
@@ -7295,7 +7295,7 @@ const yc = /* @__PURE__ */ n(() => {
7295
7295
  width: "100%",
7296
7296
  maxWidth: "100%"
7297
7297
  }
7298
- })), xh = /* @__PURE__ */ n(({ record: e, resource: t, ...o }) => o, "sanitizeRestProps$1"), F0 = /* @__PURE__ */ n((e) => {
7298
+ })), xh = /* @__PURE__ */ n(({ record: e, resource: t, ...o }) => o, "sanitizeRestProps$1"), A0 = /* @__PURE__ */ n((e) => {
7299
7299
  const {
7300
7300
  children: t,
7301
7301
  contentScroll: o = "inner",
@@ -7332,7 +7332,7 @@ const yc = /* @__PURE__ */ n(() => {
7332
7332
  c
7333
7333
  ) }) });
7334
7334
  }, "FormEtriek"), Ch = /* @__PURE__ */ n((e) => {
7335
- const { handleToggle: t, isOpen: o, name: r, icon: a, children: s, dense: l } = e, c = ge(), [u] = _a(), p = /* @__PURE__ */ F(_t, { dense: l, onClick: t, children: [
7335
+ const { handleToggle: t, isOpen: o, name: r, icon: a, children: s, dense: l } = e, c = me(), [u] = _a(), p = /* @__PURE__ */ F(_t, { dense: l, onClick: t, children: [
7336
7336
  /* @__PURE__ */ i(ao, { sx: { minWidth: 5 }, children: o ? /* @__PURE__ */ i(Za, {}) : a }),
7337
7337
  /* @__PURE__ */ i(Ko, { variant: "inherit", color: "textSecondary", children: c(r) })
7338
7338
  ] });
@@ -7388,7 +7388,7 @@ const yc = /* @__PURE__ */ n(() => {
7388
7388
  );
7389
7389
  }) });
7390
7390
  }, "renderMenu"), vh = /* @__PURE__ */ n(({ dense: e = !1 }) => {
7391
- const t = ge(), [o, r] = ee({ mnuPrueba: !1 }), a = pt((g) => g.breakpoints.down("sm")), [s] = _a(), l = JSON.parse(localStorage.getItem("menus")), f = vc({
7391
+ const t = me(), [o, r] = ee({ mnuPrueba: !1 }), a = pt((g) => g.breakpoints.down("sm")), [s] = _a(), l = JSON.parse(localStorage.getItem("menus")), f = vc({
7392
7392
  items: l,
7393
7393
  handleToggle: /* @__PURE__ */ n((g) => {
7394
7394
  r((m) => ({ ...m, [g]: !m[g] }));
@@ -7433,7 +7433,7 @@ const yc = /* @__PURE__ */ n(() => {
7433
7433
  ] })
7434
7434
  }
7435
7435
  );
7436
- }, "Menu"), A0 = /* @__PURE__ */ n((e) => /* @__PURE__ */ i(Gd, { ...e, appBar: Rp, menu: vh }), "Layout"), wh = /* @__PURE__ */ n((e) => {
7436
+ }, "Menu"), k0 = /* @__PURE__ */ n((e) => /* @__PURE__ */ i(Gd, { ...e, appBar: Rp, menu: vh }), "Layout"), wh = /* @__PURE__ */ n((e) => {
7437
7437
  const {
7438
7438
  label: t = "ra.action.refresh",
7439
7439
  icon: o = Sh,
@@ -7487,57 +7487,57 @@ const yc = /* @__PURE__ */ n(() => {
7487
7487
  jsBotonGrilla: u = Ph,
7488
7488
  refresh: p = !0,
7489
7489
  ...d
7490
- } = e, [f, g] = S.useState(null), [m, y] = S.useState(null), [b, h] = S.useState({}), w = ge(), P = Jt(), { displayedFilters: M, filterValues: x, exporter: T, showFilter: I } = P, R = ye(e), { hasCreate: E } = ti(e), D = Ce(Hd) || r, H = di(e), O = Ce(Ye) || {}, {
7490
+ } = e, [f, g] = S.useState(null), [m, y] = S.useState(null), [b, h] = S.useState({}), w = me(), P = Jt(), { displayedFilters: M, filterValues: x, exporter: T, showFilter: I } = P, R = ye(e), { hasCreate: E } = ti(e), D = Ce(Hd) || r, V = di(e), L = Ce(Ye) || {}, {
7491
7491
  props: {
7492
- hasCreate: V,
7492
+ hasCreate: z,
7493
7493
  hasSeleccionMultiple: $,
7494
7494
  chkSeleccion: k,
7495
- handleSeleccionMultiple: L,
7495
+ handleSeleccionMultiple: O,
7496
7496
  actionsContainerRef: v,
7497
7497
  filterActionsContainerRef: _,
7498
7498
  viewMode: K = "grilla",
7499
7499
  setViewMode: q,
7500
7500
  hideViewModeMenu: Z = !1,
7501
7501
  pivotEnabled: X = !1,
7502
- pivotUi: W = "mui",
7502
+ pivotUi: G = "mui",
7503
7503
  apiRef: re
7504
7504
  }
7505
- } = Nt(), ne = !X && K === "pivot" ? "grilla" : K, { showCreate: be } = Dr({ resource: R }), N = pt((G) => G.breakpoints.down("md"));
7505
+ } = Nt(), ne = !X && K === "pivot" ? "grilla" : K, { showCreate: be } = Dr({ resource: R }), N = pt((H) => H.breakpoints.down("md"));
7506
7506
  sd(t, () => v.current);
7507
- const Q = { ...H, ...P }, me = /* @__PURE__ */ n((G) => {
7508
- g(G.currentTarget);
7507
+ const Q = { ...V, ...P }, he = /* @__PURE__ */ n((H) => {
7508
+ g(H.currentTarget);
7509
7509
  }, "handleOpenMenu"), we = /* @__PURE__ */ n(() => {
7510
7510
  g(null), y(null);
7511
- }, "handleCloseMenu"), Oe = /* @__PURE__ */ n((G) => {
7512
- y(G);
7513
- }, "handleOpenSubMenu"), Be = /* @__PURE__ */ n((G) => {
7514
- G?.stopPropagation?.(), re?.current?.showSidebar?.("pivot");
7515
- }, "handleOpenPivotPanel"), se = /* @__PURE__ */ n((G, ue, ae) => {
7511
+ }, "handleCloseMenu"), Oe = /* @__PURE__ */ n((H) => {
7512
+ y(H);
7513
+ }, "handleOpenSubMenu"), Be = /* @__PURE__ */ n((H) => {
7514
+ H?.stopPropagation?.(), re?.current?.showSidebar?.("pivot");
7515
+ }, "handleOpenPivotPanel"), se = /* @__PURE__ */ n((H, ue, ae) => {
7516
7516
  ae?.selectOnClick && h((ve) => ({
7517
7517
  ...ve,
7518
- [ue]: { selectedOption: G }
7518
+ [ue]: { selectedOption: H }
7519
7519
  })), we();
7520
7520
  }, "handleSubMenuItemSelect");
7521
7521
  delete d.hasCreate;
7522
7522
  const Fe = S.useMemo(
7523
- () => Hn.map(s, (G, ue) => {
7524
- const ae = G.props || {};
7523
+ () => Hn.map(s, (H, ue) => {
7524
+ const ae = H.props || {};
7525
7525
  if (Array.isArray(ae.options) && ae.options.length > 0)
7526
7526
  return {
7527
7527
  type: "MenuButton",
7528
- label: G.props.title || G.props.label,
7529
- icon: G.props.icon,
7530
- options: G.props.options,
7531
- perbot: G.props.perbot,
7532
- initialSelectedIndex: G.props.initialSelectedIndex ?? 0,
7533
- selectOnClick: G.props.selectOnClick !== !1,
7534
- keepParentLabel: G.props.keepParentLabel === !0,
7528
+ label: H.props.title || H.props.label,
7529
+ icon: H.props.icon,
7530
+ options: H.props.options,
7531
+ perbot: H.props.perbot,
7532
+ initialSelectedIndex: H.props.initialSelectedIndex ?? 0,
7533
+ selectOnClick: H.props.selectOnClick !== !1,
7534
+ keepParentLabel: H.props.keepParentLabel === !0,
7535
7535
  index: ue
7536
7536
  };
7537
7537
  if (ae.children && (ae.title || ae.label))
7538
7538
  return {
7539
7539
  type: "Button",
7540
- key: G.key,
7540
+ key: H.key,
7541
7541
  title: ae.title || ae.label,
7542
7542
  icon: ae.children,
7543
7543
  onClick: ae.onClick,
@@ -7545,11 +7545,11 @@ const yc = /* @__PURE__ */ n(() => {
7545
7545
  to: ae.to,
7546
7546
  perbot: ae.perbot
7547
7547
  };
7548
- if (G.type?.isButton) {
7549
- const Ie = G?.type?.menu;
7548
+ if (H.type?.isButton) {
7549
+ const Ie = H?.type?.menu;
7550
7550
  return {
7551
7551
  type: "Button",
7552
- key: G.key,
7552
+ key: H.key,
7553
7553
  title: Ie?.title,
7554
7554
  icon: Ie?.icon,
7555
7555
  component: Ie?.component,
@@ -7562,16 +7562,16 @@ const yc = /* @__PURE__ */ n(() => {
7562
7562
  }) || [],
7563
7563
  [s]
7564
7564
  ), Ue = S.useMemo(() => {
7565
- const G = (Fe || []).map((ue) => {
7565
+ const H = (Fe || []).map((ue) => {
7566
7566
  if (ue?.type === "Button")
7567
- return Yt(O, ue) ? ue : null;
7567
+ return Yt(L, ue) ? ue : null;
7568
7568
  if (ue?.type === "MenuButton") {
7569
7569
  const ae = ue.options?.[ue.initialSelectedIndex ?? 0];
7570
- if (!Yt(O, ae))
7570
+ if (!Yt(L, ae))
7571
7571
  return null;
7572
7572
  const ve = wc(
7573
7573
  ue.options,
7574
- O
7574
+ L
7575
7575
  );
7576
7576
  return ve.length === 0 ? null : {
7577
7577
  ...ue,
@@ -7608,11 +7608,11 @@ const yc = /* @__PURE__ */ n(() => {
7608
7608
  selectOnClick: !0,
7609
7609
  keepParentLabel: !0,
7610
7610
  index: "view-mode"
7611
- }, ...G];
7611
+ }, ...H];
7612
7612
  }
7613
- return G;
7613
+ return H;
7614
7614
  }, [
7615
- O,
7615
+ L,
7616
7616
  ne,
7617
7617
  Z,
7618
7618
  N,
@@ -7622,8 +7622,8 @@ const yc = /* @__PURE__ */ n(() => {
7622
7622
  w
7623
7623
  ]);
7624
7624
  return oe(() => {
7625
- h((G) => {
7626
- const ue = { ...G };
7625
+ h((H) => {
7626
+ const ue = { ...H };
7627
7627
  return Ue.forEach((ae) => {
7628
7628
  if (ae.type === "MenuButton" && ae.selectOnClick) {
7629
7629
  const ve = ae.options?.[0]?.children?.[0] ?? ae.options?.[0], Le = ue[ae.index]?.selectedOption?.key, Ie = ae.options?.some(
@@ -7651,7 +7651,7 @@ const yc = /* @__PURE__ */ n(() => {
7651
7651
  filterValues: x,
7652
7652
  context: "button"
7653
7653
  }) : D && /* @__PURE__ */ i(jd, {}),
7654
- E && V !== !1 && /* @__PURE__ */ i(
7654
+ E && z !== !1 && /* @__PURE__ */ i(
7655
7655
  Je,
7656
7656
  {
7657
7657
  label: "ra.action.create",
@@ -7667,8 +7667,8 @@ const yc = /* @__PURE__ */ n(() => {
7667
7667
  }
7668
7668
  ),
7669
7669
  p !== !1 && /* @__PURE__ */ i(wh, { resource: R }),
7670
- X && W !== "custom" && ne === "pivot" && /* @__PURE__ */ i(Xe, { onClick: Be, children: /* @__PURE__ */ i(qn, {}) }),
7671
- !c && Ue.length > 0 && /* @__PURE__ */ i(Xe, { onClick: me, children: /* @__PURE__ */ i(ep, {}) }),
7670
+ X && G !== "custom" && ne === "pivot" && /* @__PURE__ */ i(Xe, { onClick: Be, children: /* @__PURE__ */ i(qn, {}) }),
7671
+ !c && Ue.length > 0 && /* @__PURE__ */ i(Xe, { onClick: he, children: /* @__PURE__ */ i(ep, {}) }),
7672
7672
  !c && Ue.length > 0 && /* @__PURE__ */ i(
7673
7673
  Yo,
7674
7674
  {
@@ -7683,43 +7683,43 @@ const yc = /* @__PURE__ */ n(() => {
7683
7683
  vertical: "top",
7684
7684
  horizontal: "right"
7685
7685
  },
7686
- children: Ue.map((G) => {
7687
- if (G.type === "Button")
7686
+ children: Ue.map((H) => {
7687
+ if (H.type === "Button")
7688
7688
  return /* @__PURE__ */ F(
7689
7689
  _t,
7690
7690
  {
7691
- component: G.component,
7692
- to: G.to,
7691
+ component: H.component,
7692
+ to: H.to,
7693
7693
  onClick: /* @__PURE__ */ n((ue) => {
7694
- G.onClick ? G.onClick(ue, Q) : u(
7694
+ H.onClick ? H.onClick(ue, Q) : u(
7695
7695
  Q,
7696
- G.key
7696
+ H.key
7697
7697
  ), we();
7698
7698
  }, "onClick"),
7699
- title: G.title,
7699
+ title: H.title,
7700
7700
  sx: Bi,
7701
7701
  children: [
7702
- /* @__PURE__ */ i(ao, { sx: Ni, children: At(G.icon, {
7702
+ /* @__PURE__ */ i(ao, { sx: Ni, children: At(H.icon, {
7703
7703
  fontSize: "inherit"
7704
7704
  }) }),
7705
7705
  /* @__PURE__ */ i(
7706
7706
  vo,
7707
7707
  {
7708
- primary: G.title,
7708
+ primary: H.title,
7709
7709
  primaryTypographyProps: $i
7710
7710
  }
7711
7711
  )
7712
7712
  ]
7713
7713
  },
7714
- G.key
7714
+ H.key
7715
7715
  );
7716
- if (G.type === "MenuButton") {
7717
- const ae = b[G.index]?.selectedOption, ve = G.keepParentLabel ? G.label : ae?.label || G.label, Le = G.keepParentLabel ? G.icon : ae?.icon || G.icon;
7716
+ if (H.type === "MenuButton") {
7717
+ const ae = b[H.index]?.selectedOption, ve = H.keepParentLabel ? H.label : ae?.label || H.label, Le = H.keepParentLabel ? H.icon : ae?.icon || H.icon;
7718
7718
  return [
7719
7719
  /* @__PURE__ */ F(
7720
7720
  _t,
7721
7721
  {
7722
- onClick: /* @__PURE__ */ n(() => Oe(G.index), "onClick"),
7722
+ onClick: /* @__PURE__ */ n(() => Oe(H.index), "onClick"),
7723
7723
  sx: Bi,
7724
7724
  children: [
7725
7725
  /* @__PURE__ */ i(ao, { sx: Ni, children: At(Le, {
@@ -7734,13 +7734,13 @@ const yc = /* @__PURE__ */ n(() => {
7734
7734
  )
7735
7735
  ]
7736
7736
  },
7737
- `menu-${G.index}`
7737
+ `menu-${H.index}`
7738
7738
  ),
7739
7739
  /* @__PURE__ */ i(
7740
7740
  Yo,
7741
7741
  {
7742
7742
  anchorEl: f,
7743
- open: m === G.index,
7743
+ open: m === H.index,
7744
7744
  onClose: we,
7745
7745
  anchorOrigin: {
7746
7746
  vertical: "top",
@@ -7762,10 +7762,10 @@ const yc = /* @__PURE__ */ n(() => {
7762
7762
  boxShadow: "0 2px 10px rgba(0,0,0,0.1)"
7763
7763
  }
7764
7764
  },
7765
- children: G.options.flatMap((Ie) => (Array.isArray(
7765
+ children: H.options.flatMap((Ie) => (Array.isArray(
7766
7766
  Ie?.children
7767
7767
  ) && Ie.children.length > 0 ? Ie.children : [Ie]).map((Ae) => {
7768
- const Ze = G.selectOnClick && b[G.index]?.selectedOption?.key === Ae.key;
7768
+ const Ze = H.selectOnClick && b[H.index]?.selectedOption?.key === Ae.key;
7769
7769
  return /* @__PURE__ */ F(
7770
7770
  _t,
7771
7771
  {
@@ -7773,8 +7773,8 @@ const yc = /* @__PURE__ */ n(() => {
7773
7773
  onClick: /* @__PURE__ */ n((Mt) => {
7774
7774
  se(
7775
7775
  Ae,
7776
- G.index,
7777
- G
7776
+ H.index,
7777
+ H
7778
7778
  ), Ae.onClick ? Ae.onClick(
7779
7779
  Mt,
7780
7780
  Q
@@ -7810,7 +7810,7 @@ const yc = /* @__PURE__ */ n(() => {
7810
7810
  );
7811
7811
  }))
7812
7812
  },
7813
- `submenu-${G.index}`
7813
+ `submenu-${H.index}`
7814
7814
  )
7815
7815
  ];
7816
7816
  }
@@ -7824,7 +7824,7 @@ const yc = /* @__PURE__ */ n(() => {
7824
7824
  title: w("pos.multiple_selection"),
7825
7825
  size: "medium",
7826
7826
  checked: k,
7827
- onChange: L
7827
+ onChange: O
7828
7828
  },
7829
7829
  "multiple"
7830
7830
  )
@@ -7841,7 +7841,7 @@ const yc = /* @__PURE__ */ n(() => {
7841
7841
  c,
7842
7842
  T,
7843
7843
  E,
7844
- V,
7844
+ z,
7845
7845
  $,
7846
7846
  k,
7847
7847
  N,
@@ -7853,12 +7853,12 @@ const yc = /* @__PURE__ */ n(() => {
7853
7853
  b
7854
7854
  ]
7855
7855
  );
7856
- }), k0 = /* @__PURE__ */ n((e) => {
7856
+ }), _0 = /* @__PURE__ */ n((e) => {
7857
7857
  const {
7858
7858
  loginBackgroundImage: t,
7859
7859
  nameSource: o = "username",
7860
7860
  passwordSource: r = "password"
7861
- } = e, [a, s] = ee(!1), l = ge(), c = l("ra.auth.sign_in"), u = ht(), p = Ud(), d = lt();
7861
+ } = e, [a, s] = ee(!1), l = me(), c = l("ra.auth.sign_in"), u = ht(), p = Ud(), d = lt();
7862
7862
  return /* @__PURE__ */ i(Fo, { onSubmit: /* @__PURE__ */ n((m) => {
7863
7863
  s(!0), p(m, d.state ? d.state.nextPathname : "/").catch(
7864
7864
  (y) => {
@@ -7983,7 +7983,7 @@ const yc = /* @__PURE__ */ n(() => {
7983
7983
  fontSize: e.typography.caption.fontSize,
7984
7984
  fontWeight: e.typography.fontWeightMedium,
7985
7985
  lineHeight: e.typography.body2.lineHeight
7986
- }), "MENU_BUTTON_TEXT_SX"), _0 = /* @__PURE__ */ n((e) => {
7986
+ }), "MENU_BUTTON_TEXT_SX"), E0 = /* @__PURE__ */ n((e) => {
7987
7987
  const {
7988
7988
  options: t = [],
7989
7989
  icon: o,
@@ -7998,21 +7998,21 @@ const yc = /* @__PURE__ */ n(() => {
7998
7998
  if (!Yt(d, D))
7999
7999
  return;
8000
8000
  if (Array.isArray(D?.children) && D.children.length > 0) {
8001
- const O = D.children.filter(
8002
- (V) => Yt(d, V)
8001
+ const L = D.children.filter(
8002
+ (z) => Yt(d, z)
8003
8003
  );
8004
- if (O.length === 0)
8004
+ if (L.length === 0)
8005
8005
  return;
8006
8006
  R.push({
8007
8007
  type: "header",
8008
8008
  key: D.key || D.label,
8009
8009
  label: D.label,
8010
8010
  icon: D.icon
8011
- }), O.forEach((V) => {
8012
- I.push(V), R.push({
8011
+ }), L.forEach((z) => {
8012
+ I.push(z), R.push({
8013
8013
  type: "item",
8014
- key: V.key || V.label,
8015
- option: V,
8014
+ key: z.key || z.label,
8015
+ option: z,
8016
8016
  leafIndex: I.length - 1,
8017
8017
  indent: 2
8018
8018
  // indent visual para hijos
@@ -8151,8 +8151,8 @@ const yc = /* @__PURE__ */ n(() => {
8151
8151
  );
8152
8152
  }) })
8153
8153
  ] });
8154
- }, "MenuButton"), E0 = /* @__PURE__ */ n((e) => {
8155
- const { fields: t, className: o, ...r } = e, { campos: a, separador: s = "", secundario: l = [], hasSecundario: c } = t, u = at(), p = a.map((d) => u[d] !== void 0 ? u[d] : d).join(`${s}`);
8154
+ }, "MenuButton"), D0 = /* @__PURE__ */ n((e) => {
8155
+ const { fields: t, className: o, ...r } = e, { campos: a, separador: s = "", secundario: l = [], hasSecundario: c } = t, u = nt(), p = a.map((d) => u[d] !== void 0 ? u[d] : d).join(`${s}`);
8156
8156
  return /* @__PURE__ */ F(wt, { noWrap: !0, variant: "inherit", className: o, ...r, children: [
8157
8157
  p,
8158
8158
  c && /* @__PURE__ */ i(
@@ -8194,7 +8194,7 @@ const yc = /* @__PURE__ */ n(() => {
8194
8194
  }, "ShowChildren"), Rh = /* @__PURE__ */ n((e) => {
8195
8195
  const t = lt(), { useFormulario: o, children: r, ...a } = e, s = yl(e), l = e.estado ?? (t?.state?.estado || "M"), { fichaProps: c } = Lr({ ...e, estado: l });
8196
8196
  return /* @__PURE__ */ i(Io, { children: /* @__PURE__ */ i(Kd, { id: s, emptyWhileLoading: !0, ...a, ...c?.panel, children: /* @__PURE__ */ i(Ih, { estado: l, fichaProps: c, children: r }) }) });
8197
- }, "ShowEtriek"), D0 = Lt(Rh, {
8197
+ }, "ShowEtriek"), O0 = Lt(Rh, {
8198
8198
  name: on,
8199
8199
  overridesResolver: /* @__PURE__ */ n((e, t) => t.root, "overridesResolver")
8200
8200
  })(({ theme: e }) => Br(e)), Th = /* @__PURE__ */ n((e) => {
@@ -8206,7 +8206,7 @@ const yc = /* @__PURE__ */ n(() => {
8206
8206
  color: s = "primary",
8207
8207
  to: l,
8208
8208
  ...c
8209
- } = e, u = ge(), p = a ? u(a, { _: a }) : void 0, d = Fh(l);
8209
+ } = e, u = me(), p = a ? u(a, { _: a }) : void 0, d = Fh(l);
8210
8210
  return a && !r ? /* @__PURE__ */ i(xt, { title: p, children: /* @__PURE__ */ i(
8211
8211
  Xe,
8212
8212
  {
@@ -8250,7 +8250,7 @@ const yc = /* @__PURE__ */ n(() => {
8250
8250
  resource: a,
8251
8251
  scrollToTop: s = !0,
8252
8252
  ...l
8253
- } = e, c = ye(e), u = at(e), p = Yd();
8253
+ } = e, c = ye(e), u = nt(e), p = Yd();
8254
8254
  return u ? /* @__PURE__ */ i(
8255
8255
  Th,
8256
8256
  {
@@ -8266,7 +8266,7 @@ const yc = /* @__PURE__ */ n(() => {
8266
8266
  }, "ShowGridButton"), kh = {
8267
8267
  true: { _scrollToTop: !0 },
8268
8268
  false: {}
8269
- }, _h = /* @__PURE__ */ i(Un, {}), Eh = /* @__PURE__ */ n((e) => e.stopPropagation(), "stopPropagation"), O0 = ad(
8269
+ }, _h = /* @__PURE__ */ i(Un, {}), Eh = /* @__PURE__ */ n((e) => e.stopPropagation(), "stopPropagation"), L0 = ad(
8270
8270
  Ah,
8271
8271
  (e, t) => e.resource === t.resource && (e.record && t.record ? e.record.id === t.record.id : e.record == t.record) && e.label === t.label && e.disabled === t.disabled
8272
8272
  ), Uo = "RaTabbedForm", je = {
@@ -8311,22 +8311,22 @@ const yc = /* @__PURE__ */ n(() => {
8311
8311
  oe(() => {
8312
8312
  x.current?.updateScrollButtons();
8313
8313
  }, [P, M]);
8314
- const I = /* @__PURE__ */ n((k, L) => {
8315
- l || (y(L), p && p(
8314
+ const I = /* @__PURE__ */ n((k, O) => {
8315
+ l || (y(O), p && p(
8316
8316
  w,
8317
8317
  h,
8318
8318
  {
8319
- newTab: L,
8319
+ newTab: O,
8320
8320
  prevTab: m,
8321
8321
  setTab: y
8322
8322
  },
8323
8323
  k
8324
- )), c.props.onChange && c.props.onChange(k, L);
8324
+ )), c.props.onChange && c.props.onChange(k, O);
8325
8325
  }, "handleTabChange"), R = de(() => Hn.toArray(o), [o]), E = de(
8326
- () => R.reduce((k, L) => oa(L) ? [...k, { tab: L, tabIndex: k.length }] : k, []),
8326
+ () => R.reduce((k, O) => oa(O) ? [...k, { tab: O, tabIndex: k.length }] : k, []),
8327
8327
  [R]
8328
- ), D = de(() => l ? E.findIndex(({ tab: k, tabIndex: L }) => {
8329
- const v = Pn(k, L);
8328
+ ), D = de(() => l ? E.findIndex(({ tab: k, tabIndex: O }) => {
8329
+ const v = Pn(k, O);
8330
8330
  return Jo(
8331
8331
  `${b}/${v}`,
8332
8332
  f.pathname
@@ -8337,19 +8337,19 @@ const yc = /* @__PURE__ */ n(() => {
8337
8337
  l,
8338
8338
  m,
8339
8339
  E
8340
- ]), H = de(() => !l || D >= 0 ? D : E.length ? 0 : -1, [D, l, E.length]), O = de(() => {
8340
+ ]), V = de(() => !l || D >= 0 ? D : E.length ? 0 : -1, [D, l, E.length]), L = de(() => {
8341
8341
  if (l) {
8342
- const k = E[H];
8342
+ const k = E[V];
8343
8343
  return k ? Pn(
8344
8344
  k.tab,
8345
8345
  k.tabIndex
8346
8346
  ) : !1;
8347
8347
  }
8348
8348
  return m;
8349
- }, [H, l, E, m]), V = de(
8349
+ }, [V, l, E, m]), z = de(
8350
8350
  () => E.map(
8351
- ({ tab: k, tabIndex: L }) => At(k, {
8352
- value: l ? Pn(k, L) : L
8351
+ ({ tab: k, tabIndex: O }) => At(k, {
8352
+ value: l ? Pn(k, O) : O
8353
8353
  })
8354
8354
  ),
8355
8355
  [l, E]
@@ -8364,12 +8364,12 @@ const yc = /* @__PURE__ */ n(() => {
8364
8364
  action: T,
8365
8365
  syncWithLocation: l,
8366
8366
  url: s,
8367
- value: O,
8367
+ value: L,
8368
8368
  variant: "scrollable",
8369
8369
  scrollButtons: !0,
8370
8370
  allowScrollButtonsMobile: !0
8371
8371
  },
8372
- V
8372
+ z
8373
8373
  ) }), "renderTabHeaders");
8374
8374
  return /* @__PURE__ */ F(
8375
8375
  Me,
@@ -8472,24 +8472,24 @@ const yc = /* @__PURE__ */ n(() => {
8472
8472
  },
8473
8473
  children: /* @__PURE__ */ i(a, { children: (() => {
8474
8474
  let k = -1;
8475
- return Hn.map(o, (L) => {
8476
- if (!L)
8475
+ return Hn.map(o, (O) => {
8476
+ if (!O)
8477
8477
  return null;
8478
- if (!oa(L))
8479
- return L;
8478
+ if (!oa(O))
8479
+ return O;
8480
8480
  k += 1;
8481
8481
  const v = Pn(
8482
- L,
8482
+ O,
8483
8483
  k
8484
- ), K = !(l ? H === k : m === k);
8485
- return At(L, {
8484
+ ), K = !(l ? V === k : m === k);
8485
+ return At(O, {
8486
8486
  intent: "content",
8487
8487
  resource: g,
8488
8488
  hidden: K,
8489
8489
  inert: K ? "" : void 0,
8490
8490
  // Mantener dimensiones para las grillas sin desmontar sus datos.
8491
8491
  style: K ? {
8492
- ...L.props.style,
8492
+ ...O.props.style,
8493
8493
  display: "flex",
8494
8494
  position: "absolute",
8495
8495
  inset: 0,
@@ -8497,11 +8497,11 @@ const yc = /* @__PURE__ */ n(() => {
8497
8497
  opacity: 0,
8498
8498
  pointerEvents: "none",
8499
8499
  overflow: "hidden"
8500
- } : L.props.style,
8500
+ } : O.props.style,
8501
8501
  value: l ? v : k,
8502
8502
  className: [
8503
8503
  Gn.tab,
8504
- L.props.className || ""
8504
+ O.props.className || ""
8505
8505
  ].join(" ").trim()
8506
8506
  });
8507
8507
  });
@@ -8583,7 +8583,7 @@ const yc = /* @__PURE__ */ n(() => {
8583
8583
  minHeight: 0,
8584
8584
  height: "100%"
8585
8585
  }
8586
- })), Vh = /* @__PURE__ */ n(({ record: e, resource: t, ...o }) => o, "sanitizeRestProps"), L0 = /* @__PURE__ */ n((e) => {
8586
+ })), Vh = /* @__PURE__ */ n(({ record: e, resource: t, ...o }) => o, "sanitizeRestProps"), B0 = /* @__PURE__ */ n((e) => {
8587
8587
  const {
8588
8588
  children: t,
8589
8589
  syncWithLocation: o = !1,
@@ -8714,18 +8714,18 @@ const yc = /* @__PURE__ */ n(() => {
8714
8714
  }
8715
8715
  }
8716
8716
  }
8717
- }), B0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8717
+ }), N0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8718
8718
  __proto__: null,
8719
8719
  darkTheme: zh,
8720
8720
  lightTheme: Wh
8721
8721
  }, Symbol.toStringTag, { value: "Module" })), na = S.forwardRef(/* @__PURE__ */ n(function(t, o) {
8722
8722
  return /* @__PURE__ */ i(cp, { direction: "up", ref: o, ...t });
8723
- }, "Transition2")), ia = st(!1), Gh = {
8723
+ }, "Transition2")), ia = at(!1), Gh = {
8724
8724
  disableEnforceFocus: !0,
8725
8725
  disableAutoFocus: !0,
8726
8726
  disableRestoreFocus: !0
8727
- }, N0 = /* @__PURE__ */ n((e) => {
8728
- const { isLoading: t } = e, o = ge(), r = ye(e), a = St(), s = Ce(ia), l = De(
8727
+ }, $0 = /* @__PURE__ */ n((e) => {
8728
+ const { isLoading: t } = e, o = me(), r = ye(e), a = St(), s = Ce(ia), l = De(
8729
8729
  `asistente-host-${Math.random().toString(36).slice(2)}`
8730
8730
  ), c = a?.hostId, u = !c || c === l.current;
8731
8731
  oe(() => {
@@ -8894,10 +8894,10 @@ const yc = /* @__PURE__ */ n(() => {
8894
8894
  saveAlwaysEnable: R,
8895
8895
  cancelLabel: E,
8896
8896
  confirmLabel: D,
8897
- hasForm: H,
8898
- contentScroll: O = "dialog"
8897
+ hasForm: V,
8898
+ contentScroll: L = "dialog"
8899
8899
  }) => {
8900
- const V = /* @__PURE__ */ F(dt, { children: [
8900
+ const z = /* @__PURE__ */ F(dt, { children: [
8901
8901
  /* @__PURE__ */ i(
8902
8902
  qi,
8903
8903
  {
@@ -8909,7 +8909,7 @@ const yc = /* @__PURE__ */ n(() => {
8909
8909
  flex: 1,
8910
8910
  minHeight: 0,
8911
8911
  overflowX: "hidden",
8912
- overflowY: O === "contained" ? "hidden" : "auto"
8912
+ overflowY: L === "contained" ? "hidden" : "auto"
8913
8913
  },
8914
8914
  children: /* @__PURE__ */ i(ei, { spacing: 2, sx: { flexShrink: 0 }, children: h })
8915
8915
  }
@@ -8925,7 +8925,7 @@ const yc = /* @__PURE__ */ n(() => {
8925
8925
  children: /* @__PURE__ */ i(Xo, {})
8926
8926
  }
8927
8927
  ),
8928
- !H && T && /* @__PURE__ */ i(
8928
+ !V && T && /* @__PURE__ */ i(
8929
8929
  an,
8930
8930
  {
8931
8931
  label: D,
@@ -8952,7 +8952,7 @@ const yc = /* @__PURE__ */ n(() => {
8952
8952
  minHeight: 0
8953
8953
  }
8954
8954
  },
8955
- children: H ? V : /* @__PURE__ */ i(Fo, { resource: r, onSubmit: w, children: V })
8955
+ children: V ? z : /* @__PURE__ */ i(Fo, { resource: r, onSubmit: w, children: z })
8956
8956
  }
8957
8957
  )
8958
8958
  ] });
@@ -9000,12 +9000,12 @@ const yc = /* @__PURE__ */ n(() => {
9000
9000
  tipo: R = "form",
9001
9001
  botonesExtra: E = [],
9002
9002
  showAceptar: D = !0,
9003
- showCancelar: H = !0,
9004
- formDividers: O = !0,
9005
- saveAlwaysEnable: V = !1,
9003
+ showCancelar: V = !0,
9004
+ formDividers: L = !0,
9005
+ saveAlwaysEnable: z = !1,
9006
9006
  cancelLabel: $ = "ra.action.cancel",
9007
9007
  confirmLabel: k = "ra.action.confirm",
9008
- hasForm: L = !1,
9008
+ hasForm: O = !1,
9009
9009
  dialogProps: v = {}
9010
9010
  } = b || {}, {
9011
9011
  popupControls: _ = {},
@@ -9015,7 +9015,7 @@ const yc = /* @__PURE__ */ n(() => {
9015
9015
  } = v || {}, X = P ? {
9016
9016
  ...Gh,
9017
9017
  ...Z
9018
- } : Z, W = {
9018
+ } : Z, G = {
9019
9019
  display: "flex",
9020
9020
  flexDirection: "column",
9021
9021
  ...R === "form" && K === "contained" ? { overflow: "hidden" } : {},
@@ -9023,7 +9023,7 @@ const yc = /* @__PURE__ */ n(() => {
9023
9023
  }, re = {
9024
9024
  ...q,
9025
9025
  sx: {
9026
- ...W,
9026
+ ...G,
9027
9027
  ...q.sx || {}
9028
9028
  }
9029
9029
  }, ne = /* @__PURE__ */ n((be, N) => {
@@ -9048,7 +9048,7 @@ const yc = /* @__PURE__ */ n(() => {
9048
9048
  confirmLabel: k,
9049
9049
  botonesExtra: E,
9050
9050
  showAceptar: D,
9051
- showCancelar: H
9051
+ showCancelar: V
9052
9052
  }) })
9053
9053
  },
9054
9054
  `asistente_${h}`
@@ -9069,13 +9069,13 @@ const yc = /* @__PURE__ */ n(() => {
9069
9069
  aceptar: T,
9070
9070
  cancelar: I,
9071
9071
  botonesExtra: E,
9072
- showCancelar: H,
9072
+ showCancelar: V,
9073
9073
  showAceptar: D,
9074
- formDividers: O,
9075
- saveAlwaysEnable: V,
9074
+ formDividers: L,
9075
+ saveAlwaysEnable: z,
9076
9076
  cancelLabel: $,
9077
9077
  confirmLabel: k,
9078
- hasForm: L,
9078
+ hasForm: O,
9079
9079
  contentScroll: K
9080
9080
  }) : g({
9081
9081
  title: M,
@@ -9091,7 +9091,7 @@ const yc = /* @__PURE__ */ n(() => {
9091
9091
  `asistente_${h}`
9092
9092
  );
9093
9093
  }) });
9094
- }, "Asistente"), $0 = /* @__PURE__ */ n((e) => {
9094
+ }, "Asistente"), V0 = /* @__PURE__ */ n((e) => {
9095
9095
  const {
9096
9096
  jsBotoneraPart: t,
9097
9097
  estado: o,
@@ -9099,7 +9099,7 @@ const yc = /* @__PURE__ */ n(() => {
9099
9099
  incluyeAcciones: a = !1,
9100
9100
  saveButtonProps: s,
9101
9101
  ...l
9102
- } = e, [c, u] = ee(!1), p = Ct(l), d = ht(), f = ge(), { trigger: g } = qe(), { hidden: m } = kl(), y = S.useContext(Ye) || {}, b = S.useMemo(
9102
+ } = e, [c, u] = ee(!1), p = Ct(l), d = ht(), f = me(), { trigger: g } = qe(), { hidden: m } = kl(), y = S.useContext(Ye) || {}, b = S.useMemo(
9103
9103
  () => [...r || [], ...t?.buttons || []],
9104
9104
  [r, t]
9105
9105
  ), h = te(
@@ -9131,7 +9131,7 @@ const yc = /* @__PURE__ */ n(() => {
9131
9131
  w.name
9132
9132
  ))
9133
9133
  ] });
9134
- }, "FormToolbar"), V0 = /* @__PURE__ */ n((e) => /* @__PURE__ */ i(uo, { timeout: 0, ...e }), "Loading"), z0 = /* @__PURE__ */ n(({ title: e, children: t, sx: o, source: r, ...a }) => {
9134
+ }, "FormToolbar"), z0 = /* @__PURE__ */ n((e) => /* @__PURE__ */ i(uo, { timeout: 0, ...e }), "Loading"), W0 = /* @__PURE__ */ n(({ title: e, children: t, sx: o, source: r, ...a }) => {
9135
9135
  const { hidden: s, propsContenido: l } = Qe({
9136
9136
  source: r,
9137
9137
  ...a
@@ -9214,7 +9214,7 @@ const yc = /* @__PURE__ */ n(() => {
9214
9214
  whiteSpace: "nowrap",
9215
9215
  overflow: "hidden",
9216
9216
  textOverflow: "ellipsis"
9217
- }, W0 = /* @__PURE__ */ n((e) => {
9217
+ }, G0 = /* @__PURE__ */ n((e) => {
9218
9218
  const { label: t, icon: o, ...r } = e, a = pt((y) => y.breakpoints.down("md")), s = o ?? pp, l = t ?? "", c = !!r.hidden, [u, p] = ee(!c);
9219
9219
  oe(() => {
9220
9220
  c || p(!0);
@@ -9230,7 +9230,7 @@ const yc = /* @__PURE__ */ n(() => {
9230
9230
  return /* @__PURE__ */ i(jp, { value: f, children: /* @__PURE__ */ i(Qd, { icon: /* @__PURE__ */ i(xt, { title: l, children: /* @__PURE__ */ i(s, { fontSize: "medium" }) }), label: a ? "" : /* @__PURE__ */ i(xt, { title: l, children: /* @__PURE__ */ i("span", { style: Hh, children: t }) }), ...r }) });
9231
9231
  }, "FormTab");
9232
9232
  sl.ra.page.empty = "No records yet";
9233
- const G0 = {
9233
+ const H0 = {
9234
9234
  ...sl,
9235
9235
  from_camera: "From camera",
9236
9236
  take_foto: "Take photo",
@@ -9318,7 +9318,7 @@ mt.ra.action.back = "Volver";
9318
9318
  mt.ra.message.delete_title = "Eliminar";
9319
9319
  mt.ra.input.file.upload_single = "Seleccione o arrastre archivo";
9320
9320
  mt.ra.input.image.upload_single = "Seleccione o arrastre imagen";
9321
- const H0 = {
9321
+ const j0 = {
9322
9322
  ...mt,
9323
9323
  from_camera: "Desde camara",
9324
9324
  take_foto: "Tomar foto",
@@ -9394,8 +9394,8 @@ const H0 = {
9394
9394
  greater_or_equal: "Debe ser mayor o igual a %{menor}"
9395
9395
  }
9396
9396
  //...resources
9397
- }, j0 = /* @__PURE__ */ n((e) => {
9398
- const { propsContenido: t, hidden: o } = Dl(e), r = at();
9397
+ }, q0 = /* @__PURE__ */ n((e) => {
9398
+ const { propsContenido: t, hidden: o } = Dl(e), r = nt();
9399
9399
  if (o || !r) return null;
9400
9400
  const a = r[e.source], s = {
9401
9401
  ...r,
@@ -9403,7 +9403,7 @@ const H0 = {
9403
9403
  };
9404
9404
  return /* @__PURE__ */ i(Zd, { ...t, record: s });
9405
9405
  }, "BooleanField"), ra = /* @__PURE__ */ n((e) => {
9406
- const [t, o] = ee(!1), [r, a] = ee(!1), s = qe(), l = ht(), c = De(l), u = De(null), p = De(null), d = ge(), { field: f, sx: g } = e, m = typeof navigator < "u" && /Android|iPhone|iPad|iPod/i.test(navigator.userAgent), y = /* @__PURE__ */ n(({ target: b }) => {
9406
+ const [t, o] = ee(!1), [r, a] = ee(!1), s = qe(), l = ht(), c = De(l), u = De(null), p = De(null), d = me(), { field: f, sx: g } = e, m = typeof navigator < "u" && /Android|iPhone|iPad|iPod/i.test(navigator.userAgent), y = /* @__PURE__ */ n(({ target: b }) => {
9407
9407
  const [h] = b.files;
9408
9408
  h && (s.setValue(
9409
9409
  f,
@@ -9558,7 +9558,7 @@ const H0 = {
9558
9558
  })) : e;
9559
9559
  }
9560
9560
  }, "formatFile"), qh = /* @__PURE__ */ n(({ actions: e }) => {
9561
- const t = at(), o = Nr(t);
9561
+ const t = nt(), o = Nr(t);
9562
9562
  return /* @__PURE__ */ F(
9563
9563
  Me,
9564
9564
  {
@@ -9609,13 +9609,42 @@ const H0 = {
9609
9609
  ]
9610
9610
  }
9611
9611
  );
9612
- }, "ArchivoPreview"), Uh = {
9612
+ }, "ArchivoPreview"), Uh = /* @__PURE__ */ n(({ download: e }) => {
9613
+ const t = nt(), o = me(), r = t?.src;
9614
+ return /* @__PURE__ */ F(Me, { sx: { display: "flex", alignItems: "center", gap: 1, ml: 5.5 }, children: [
9615
+ /* @__PURE__ */ i(
9616
+ Xt,
9617
+ {
9618
+ component: fs,
9619
+ href: r,
9620
+ disabled: !r,
9621
+ target: "_blank",
9622
+ size: "small",
9623
+ title: o("pos.view_attachment"),
9624
+ children: /* @__PURE__ */ i(fp, { color: "primary" })
9625
+ }
9626
+ ),
9627
+ /* @__PURE__ */ i(
9628
+ Xt,
9629
+ {
9630
+ component: fs,
9631
+ href: r,
9632
+ disabled: !r,
9633
+ download: e,
9634
+ target: "_blank",
9635
+ size: "small",
9636
+ title: o("pos.download_attachment"),
9637
+ children: /* @__PURE__ */ i(mp, { color: "success" })
9638
+ }
9639
+ )
9640
+ ] });
9641
+ }, "ArchivoActions"), Kh = {
9613
9642
  "image/png": [".png"],
9614
9643
  "image/jpeg": [".jpg", ".jpeg"],
9615
9644
  "image/webp": [".webp"],
9616
9645
  "image/gif": [".gif"],
9617
9646
  "image/svg": [".svg"]
9618
- }, aa = /* @__PURE__ */ n(() => Promise.reject(), "preventFileRemoval"), Kh = [
9647
+ }, aa = /* @__PURE__ */ n(() => Promise.reject(), "preventFileRemoval"), Xh = [
9619
9648
  ".exe",
9620
9649
  ".msi",
9621
9650
  ".msp",
@@ -9636,7 +9665,7 @@ const H0 = {
9636
9665
  ".ocx",
9637
9666
  ".jar",
9638
9667
  ".apk"
9639
- ], Xh = [
9668
+ ], Yh = [
9640
9669
  "application/x-msdownload",
9641
9670
  "application/x-msdos-program",
9642
9671
  "application/x-msi",
@@ -9645,7 +9674,7 @@ const H0 = {
9645
9674
  "application/vnd.microsoft.portable-executable",
9646
9675
  "application/java-archive",
9647
9676
  "application/vnd.android.package-archive"
9648
- ], q0 = /* @__PURE__ */ n((e) => {
9677
+ ], U0 = /* @__PURE__ */ n((e) => {
9649
9678
  const t = rn(), { propsContenido: o, hidden: r } = Qe(e), {
9650
9679
  options: a = {},
9651
9680
  readOnly: s = !1,
@@ -9658,50 +9687,26 @@ const H0 = {
9658
9687
  download: f = !0,
9659
9688
  sx: g,
9660
9689
  ...m
9661
- } = o, y = l === "image" ? Uh : typeof d == "string" || d && typeof d == "object" ? d : void 0, b = /* @__PURE__ */ n((O) => {
9662
- const V = (O.name || "").toLowerCase(), $ = (O.type || "").toLowerCase();
9663
- return V.endsWith(".zip") || $ === "application/zip" || $ === "application/x-zip-compressed" ? null : Kh.some((k) => V.endsWith(k)) ? {
9690
+ } = o, y = l === "image" ? Kh : typeof d == "string" || d && typeof d == "object" ? d : void 0, b = /* @__PURE__ */ n((V) => {
9691
+ const L = (V.name || "").toLowerCase(), z = (V.type || "").toLowerCase();
9692
+ return L.endsWith(".zip") || z === "application/zip" || z === "application/x-zip-compressed" ? null : Xh.some(($) => L.endsWith($)) ? {
9664
9693
  code: "file-executable-blocked",
9665
9694
  message: h("pos.executables_not_allowed")
9666
- } : Xh.some((k) => $.startsWith(k)) ? {
9695
+ } : Yh.some(($) => z.startsWith($)) ? {
9667
9696
  code: "file-executable-blocked",
9668
9697
  message: h("pos.executables_zip_only")
9669
9698
  } : null;
9670
- }, "validatorNonImage"), h = ge(), w = at(e), [P, M] = ee(() => Date.now()), x = pt((O) => O.breakpoints.down("sm")), T = qe(), [I, R] = ee(
9699
+ }, "validatorNonImage"), h = me(), w = nt(e), [P, M] = ee(() => Date.now()), x = pt((V) => V.breakpoints.down("sm")), T = qe(), [I, R] = ee(
9671
9700
  w && u ? lr(`${u}/${w[m.source]}`, P) : void 0
9672
9701
  ), E = T?.getValues()[m.source];
9673
9702
  if (oe(() => {
9674
9703
  M(Date.now());
9675
9704
  }, [E]), oe(() => {
9676
- p && E && (E?.src ? R(E.src) : p(E).then((O) => {
9677
- R(lr(O, P));
9678
- }));
9705
+ p && typeof E == "string" && E && p(E).then((V) => {
9706
+ R(lr(V, P));
9707
+ });
9679
9708
  }, [E, P, p]), !T) return null;
9680
- const D = I ?? "#", H = /* @__PURE__ */ F(Me, { sx: { display: "flex", alignItems: "center", gap: 1, ml: 5.5 }, children: [
9681
- /* @__PURE__ */ i(
9682
- Xt,
9683
- {
9684
- component: fs,
9685
- href: D,
9686
- target: "_blank",
9687
- size: "small",
9688
- title: h("pos.view_attachment"),
9689
- children: /* @__PURE__ */ i(fp, { color: "primary" })
9690
- }
9691
- ),
9692
- /* @__PURE__ */ i(
9693
- Xt,
9694
- {
9695
- component: fs,
9696
- href: D,
9697
- download: f,
9698
- target: "_blank",
9699
- size: "small",
9700
- title: h("pos.download_attachment"),
9701
- children: /* @__PURE__ */ i(mp, { color: "success" })
9702
- }
9703
- )
9704
- ] });
9709
+ const D = /* @__PURE__ */ i(Uh, { download: f });
9705
9710
  return !r && (l === "image" ? /* @__PURE__ */ F(
9706
9711
  Yi,
9707
9712
  {
@@ -9721,7 +9726,7 @@ const H0 = {
9721
9726
  readOnly: s,
9722
9727
  options: { ...a, disabled: s || a.disabled },
9723
9728
  validateFileRemoval: s ? aa : m.validateFileRemoval,
9724
- format: /* @__PURE__ */ n((O) => sa(O, u, I, P), "format"),
9729
+ format: /* @__PURE__ */ n((V) => sa(V, u, I, P), "format"),
9725
9730
  placeholder: h("ra.input.image.upload_single"),
9726
9731
  accept: y,
9727
9732
  multiple: !1,
@@ -9736,7 +9741,7 @@ const H0 = {
9736
9741
  ],
9737
9742
  children: /* @__PURE__ */ F(Me, { children: [
9738
9743
  /* @__PURE__ */ i(tu, { source: "src", title: "" }, I ?? P),
9739
- H
9744
+ D
9740
9745
  ] })
9741
9746
  }
9742
9747
  ),
@@ -9763,16 +9768,16 @@ const H0 = {
9763
9768
  validateFileRemoval: s ? aa : m.validateFileRemoval,
9764
9769
  options: {
9765
9770
  ...l !== "image" ? { validator: b } : {},
9766
- onDropRejected: /* @__PURE__ */ n((O) => {
9771
+ onDropRejected: /* @__PURE__ */ n((V) => {
9767
9772
  t(
9768
- O?.[0]?.errors?.[0]?.message ?? h("pos.file_not_allowed"),
9773
+ V?.[0]?.errors?.[0]?.message ?? h("pos.file_not_allowed"),
9769
9774
  { type: "error" }
9770
9775
  );
9771
9776
  }, "onDropRejected"),
9772
9777
  ...a,
9773
9778
  disabled: s || a.disabled
9774
9779
  },
9775
- format: /* @__PURE__ */ n((O) => sa(O, u, I, P), "format"),
9780
+ format: /* @__PURE__ */ n((V) => sa(V, u, I, P), "format"),
9776
9781
  placeholder: h("ra.input.file.upload_single"),
9777
9782
  ...y ? { accept: y } : {},
9778
9783
  sx: [
@@ -9795,7 +9800,7 @@ const H0 = {
9795
9800
  "& .RaFileInputPreview-removeButton": { display: "none" }
9796
9801
  }
9797
9802
  ],
9798
- children: /* @__PURE__ */ i(qh, { actions: H })
9803
+ children: /* @__PURE__ */ i(qh, { actions: D })
9799
9804
  }
9800
9805
  ),
9801
9806
  !s && c && /* @__PURE__ */ i(ra, { sx: { mt: 3 }, field: m.source })
@@ -9810,12 +9815,12 @@ const H0 = {
9810
9815
  "& .MuiFormControlLabel-labelPlacementEnd": {
9811
9816
  display: "inline-flex"
9812
9817
  }
9813
- }, U0 = /* @__PURE__ */ n((e) => {
9818
+ }, K0 = /* @__PURE__ */ n((e) => {
9814
9819
  const { sx: t, ...o } = e, r = !!t?.gridColumn, { propsContenido: a, hidden: s } = Qe(
9815
9820
  r ? o : e
9816
9821
  );
9817
9822
  return !s && /* @__PURE__ */ i(U, { sx: r ? [la, t] : la, children: /* @__PURE__ */ i(nu, { ...a }) });
9818
- }, "CheckBox"), Yh = dr((e, t) => /* @__PURE__ */ i(xt, { ref: t, ...e })), $r = {
9823
+ }, "CheckBox"), Jh = dr((e, t) => /* @__PURE__ */ i(xt, { ref: t, ...e })), $r = {
9819
9824
  overflow: "hidden",
9820
9825
  textOverflow: "ellipsis",
9821
9826
  whiteSpace: "nowrap"
@@ -9837,7 +9842,7 @@ const H0 = {
9837
9842
  { "& .MuiAutocomplete-option": $r }
9838
9843
  ]
9839
9844
  }
9840
- }), "getComboSlotProps"), To = /* @__PURE__ */ n((e, t) => String(e ?? "") === String(t ?? ""), "sameId"), Vi = /* @__PURE__ */ n((e) => /^\s*(select|with)\b/i.test(String(e ?? "")), "looksLikeSql"), Jh = /* @__PURE__ */ n((e) => (Array.isArray(e) ? e : []).filter((t) => !t || typeof t != "object" ? !Vi(t) : !Vi(t.id) && !Vi(t.name)), "sanitizeSandboxChoices"), Qh = /* @__PURE__ */ n(({
9845
+ }), "getComboSlotProps"), To = /* @__PURE__ */ n((e, t) => String(e ?? "") === String(t ?? ""), "sameId"), Vi = /* @__PURE__ */ n((e) => /^\s*(select|with)\b/i.test(String(e ?? "")), "looksLikeSql"), Qh = /* @__PURE__ */ n((e) => (Array.isArray(e) ? e : []).filter((t) => !t || typeof t != "object" ? !Vi(t) : !Vi(t.id) && !Vi(t.name)), "sanitizeSandboxChoices"), Zh = /* @__PURE__ */ n(({
9841
9846
  choices: e,
9842
9847
  fullWidth: t,
9843
9848
  isTC: o,
@@ -9891,7 +9896,7 @@ const H0 = {
9891
9896
  return "";
9892
9897
  const o = t ?? e.id;
9893
9898
  return o == null ? "" : String(o);
9894
- }, "resolveChoiceLabel"), Zh = /* @__PURE__ */ n((e, t, o) => {
9899
+ }, "resolveChoiceLabel"), eg = /* @__PURE__ */ n((e, t, o) => {
9895
9900
  const r = e && typeof e == "object" ? { ...e } : {}, a = typeof o == "string" && o.endsWith("cod") ? `${o.slice(0, -3)}nom` : null, s = typeof o == "string" && o.endsWith("id") ? `${o.slice(0, -2)}name` : null, l = r.etiqueta ?? (a ? r[a] : void 0) ?? (s ? r[s] : void 0) ?? r.name ?? r.label;
9896
9901
  return (r.id === void 0 || r.id === null || r.id === "") && (r.id = t), (r.etiqueta === void 0 || r.etiqueta === null || r.etiqueta === "") && r.id !== void 0 && r.id !== null && r.id !== "" && (r.etiqueta = l == null ? Pc(r) : String(l)), r;
9897
9902
  }, "buildChoiceRecord"), ca = /* @__PURE__ */ n((e, t) => {
@@ -9904,7 +9909,7 @@ const H0 = {
9904
9909
  }, "mergeChoiceIntoItems"), Ln = /* @__PURE__ */ n((e, t) => !e || !t ? e : Array.isArray(e) ? ca(e, t) : Array.isArray(e?.data) ? {
9905
9910
  ...e,
9906
9911
  data: ca(e.data, t)
9907
- } : e, "injectChoiceIntoCachedResult"), eg = /* @__PURE__ */ n((e) => {
9912
+ } : e, "injectChoiceIntoCachedResult"), tg = /* @__PURE__ */ n((e) => {
9908
9913
  const {
9909
9914
  callback: t,
9910
9915
  callbackKey: o,
@@ -9951,7 +9956,7 @@ const H0 = {
9951
9956
  return;
9952
9957
  b.current = x, t(Object.values([g]));
9953
9958
  }
9954
- }, [g, t, o, f]), /* @__PURE__ */ i(Yh, { title: y.current?.value || "", placement: "top", arrow: !0, children: /* @__PURE__ */ i(
9959
+ }, [g, t, o, f]), /* @__PURE__ */ i(Jh, { title: y.current?.value || "", placement: "top", arrow: !0, children: /* @__PURE__ */ i(
9955
9960
  U,
9956
9961
  {
9957
9962
  sx: a ? { marginLeft: 1, ...r } : {
@@ -9988,7 +9993,7 @@ const H0 = {
9988
9993
  )
9989
9994
  }
9990
9995
  ) });
9991
- }, "SelectInputEtriek"), tg = /* @__PURE__ */ n((e) => {
9996
+ }, "SelectInputEtriek"), og = /* @__PURE__ */ n((e) => {
9992
9997
  const { propsContenido: t, hidden: o } = Qe(e), r = Bt(), a = un(), s = qe(), { isLoading: l } = Te(), {
9993
9998
  isActive: c,
9994
9999
  hasBeenActive: u = c
@@ -9998,18 +10003,18 @@ const H0 = {
9998
10003
  asistantResource: f,
9999
10004
  perPage: g = 500,
10000
10005
  ...m
10001
- } = t, { source: y, reference: b, fullWidth: h = !1 } = e, w = h || !!e.sx, P = ye(e), M = fi(P), [x, T] = ee([]), I = typeof m.optionText == "string" ? m.optionText : "etiqueta", R = Pt(), E = br((v) => Pr(v.reload_cb, y, R)), D = De(E), H = E === null && D.current ? D.current : E, O = u || H !== null;
10002
- let V, $;
10003
- if (H) {
10004
- const { callback: v, ..._ } = H;
10005
- V = v, $ = _;
10006
+ } = t, { source: y, reference: b, fullWidth: h = !1 } = e, w = h || !!e.sx, P = ye(e), M = fi(P), [x, T] = ee([]), I = typeof m.optionText == "string" ? m.optionText : "etiqueta", R = Pt(), E = br((v) => Pr(v.reload_cb, y, R)), D = De(E), V = E === null && D.current ? D.current : E, L = u || V !== null;
10007
+ let z, $;
10008
+ if (V) {
10009
+ const { callback: v, ..._ } = V;
10010
+ z = v, $ = _;
10006
10011
  }
10007
10012
  const k = te(
10008
10013
  (v, _) => {
10009
10014
  const K = {
10010
10015
  ..._?.data && typeof _.data == "object" ? _.data : {},
10011
10016
  ...v && typeof v == "object" ? v : {}
10012
- }, q = v?.id ?? v?.[y] ?? K?.id ?? K?.[y] ?? _?.id ?? _?.data?.id ?? _?.data?.[y], Z = Zh(K, q, y);
10017
+ }, q = v?.id ?? v?.[y] ?? K?.id ?? K?.[y] ?? _?.id ?? _?.data?.id ?? _?.data?.[y], Z = eg(K, q, y);
10013
10018
  Z && Z.id !== void 0 && Z.id !== null && Z.id !== "" && (T((X) => X.some(
10014
10019
  (re) => To(re?.id, Z.id)
10015
10020
  ) ? X : [Z, ...X].slice(0, 10)), a.setQueriesData(
@@ -10039,7 +10044,7 @@ const H0 = {
10039
10044
  });
10040
10045
  },
10041
10046
  [s, a, b, y]
10042
- ), L = te(
10047
+ ), O = te(
10043
10048
  (v, _, K) => {
10044
10049
  K === "input" && Array.isArray(x) && x.length > 0 && _ !== void 0 && T([]);
10045
10050
  },
@@ -10047,17 +10052,17 @@ const H0 = {
10047
10052
  );
10048
10053
  return oe(() => {
10049
10054
  E !== null && (D.current = E, r(_p(y, void 0, R)));
10050
- }, [r, E, R, y]), M && !o && !l && O ? /* @__PURE__ */ i(
10051
- Qh,
10055
+ }, [r, E, R, y]), M && !o && !l && L ? /* @__PURE__ */ i(
10056
+ Zh,
10052
10057
  {
10053
- choices: Jh(t.choices),
10058
+ choices: Qh(t.choices),
10054
10059
  fullWidth: w,
10055
10060
  isTC: e.isTC,
10056
10061
  optionText: I,
10057
10062
  restProps: m,
10058
10063
  sx: e.sx
10059
10064
  }
10060
- ) : !o && !l && O ? /* @__PURE__ */ F(
10065
+ ) : !o && !l && L ? /* @__PURE__ */ F(
10061
10066
  U,
10062
10067
  {
10063
10068
  sx: {
@@ -10083,18 +10088,18 @@ const H0 = {
10083
10088
  filter: $,
10084
10089
  queryOptions: {
10085
10090
  ...p || {},
10086
- enabled: (p?.enabled ?? !0) && O
10091
+ enabled: (p?.enabled ?? !0) && L
10087
10092
  },
10088
10093
  children: /* @__PURE__ */ i(
10089
- eg,
10094
+ tg,
10090
10095
  {
10091
10096
  ...m,
10092
- callback: V,
10093
- callbackKey: H,
10097
+ callback: z,
10098
+ callbackKey: V,
10094
10099
  fullWidth: w,
10095
10100
  isTC: e.isTC,
10096
10101
  injectedChoices: x,
10097
- onInputChange: L,
10102
+ onInputChange: O,
10098
10103
  optionText: I,
10099
10104
  sx: {
10100
10105
  width: "100%",
@@ -10127,7 +10132,7 @@ const H0 = {
10127
10132
  ]
10128
10133
  }
10129
10134
  ) : null;
10130
- }, "ComboBox"), K0 = /* @__PURE__ */ n((e) => {
10135
+ }, "ComboBox"), X0 = /* @__PURE__ */ n((e) => {
10131
10136
  const { propsContenido: t, hidden: o } = Qe(e), { conts: r = {} } = Ce(Ye) || {}, a = r?.[e.source]?.options, s = S.useMemo(() => {
10132
10137
  if (!(typeof a != "string" || a.trim() === ""))
10133
10138
  try {
@@ -10146,10 +10151,10 @@ const H0 = {
10146
10151
  return l !== void 0 ? p.choices = l : "choices" in p && delete p.choices, c && (p.emptyValue = "0"), p;
10147
10152
  }, [t, l, c]);
10148
10153
  return o ? null : /* @__PURE__ */ i(iu, { ...u });
10149
- }, "ComboBoxManual"), X0 = /* @__PURE__ */ n((e) => {
10150
- const { title: t, source: o, src: r } = e, a = at(e), s = `${r}/${a[o]}`;
10154
+ }, "ComboBoxManual"), Y0 = /* @__PURE__ */ n((e) => {
10155
+ const { title: t, source: o, src: r } = e, a = nt(e), s = `${r}/${a[o]}`;
10151
10156
  return /* @__PURE__ */ i(il, { title: t, src: s });
10152
- }, "ImageField"), og = /* @__PURE__ */ n((e) => (Array.isArray(e) ? e : []).map((t) => ({
10157
+ }, "ImageField"), ng = /* @__PURE__ */ n((e) => (Array.isArray(e) ? e : []).map((t) => ({
10153
10158
  ...t,
10154
10159
  id: t.id ?? t.value ?? t.codigo ?? "",
10155
10160
  etiqueta: t.etiqueta ?? t.name ?? t.label ?? t.nombre ?? t.id ?? t.value ?? ""
@@ -10200,9 +10205,9 @@ const H0 = {
10200
10205
  }
10201
10206
  ) }) })
10202
10207
  }
10203
- ), "SandboxChoiceList"), ng = /* @__PURE__ */ n(({ choices: e, disabled: t, label: o, source: r, sx: a }) => {
10208
+ ), "SandboxChoiceList"), ig = /* @__PURE__ */ n(({ choices: e, disabled: t, label: o, source: r, sx: a }) => {
10204
10209
  const { field: s } = sn({ source: r }), l = Array.isArray(s.value) ? s.value : [], c = S.useMemo(
10205
- () => og(e),
10210
+ () => ng(e),
10206
10211
  [e]
10207
10212
  ), u = S.useMemo(() => new Set(l), [l]), p = S.useMemo(
10208
10213
  () => c.filter((m) => !u.has(m.id)),
@@ -10262,8 +10267,8 @@ const H0 = {
10262
10267
  ) })
10263
10268
  }
10264
10269
  );
10265
- }, "ListCheckPreviewSandbox"), ua = /* @__PURE__ */ n((e, t) => e.filter((o) => !t.includes(o)), "not"), vt = /* @__PURE__ */ n((e, t) => e.filter((o) => t.includes(o)), "intersection"), ig = /* @__PURE__ */ n((e) => {
10266
- const t = ge(), { source: o, record: r, sx: a = {} } = e, { allChoices: s, availableChoices: l } = $a(), [c, u] = S.useState([]), [p, d] = S.useState(null), f = qe(), g = Tu({ control: f.control, name: o }), m = Array.isArray(g) ? g : r?.[o] || [], y = S.useMemo(
10270
+ }, "ListCheckPreviewSandbox"), ua = /* @__PURE__ */ n((e, t) => e.filter((o) => !t.includes(o)), "not"), vt = /* @__PURE__ */ n((e, t) => e.filter((o) => t.includes(o)), "intersection"), rg = /* @__PURE__ */ n((e) => {
10271
+ const t = me(), { source: o, record: r, sx: a = {} } = e, { allChoices: s, availableChoices: l } = $a(), [c, u] = S.useState([]), [p, d] = S.useState(null), f = qe(), g = Tu({ control: f.control, name: o }), m = Array.isArray(g) ? g : r?.[o] || [], y = S.useMemo(
10267
10272
  () => Array.isArray(r?.[o]) ? r[o] : [],
10268
10273
  [r, o]
10269
10274
  ), [b, h] = S.useState(""), { field: w } = sn({ defaultValue: "", ...e }), P = S.useMemo(
@@ -10294,8 +10299,8 @@ const H0 = {
10294
10299
  ), R = S.useMemo(() => ((Array.isArray(P) && P.length ? P : (M || []).filter((_) => !I.has(_.id))) || []).filter((_) => _ && !I.has(_.id)), [P, M, I]), E = /* @__PURE__ */ n((v, _, K) => () => {
10295
10300
  const q = c.indexOf(v), Z = [...c];
10296
10301
  if (K.shiftKey && p !== null) {
10297
- const X = Math.min(p, _), W = Math.max(p, _);
10298
- R.slice(X, W + 1).map((ne) => ne.id).forEach((ne) => {
10302
+ const X = Math.min(p, _), G = Math.max(p, _);
10303
+ R.slice(X, G + 1).map((ne) => ne.id).forEach((ne) => {
10299
10304
  Z.includes(ne) || Z.push(ne);
10300
10305
  });
10301
10306
  } else
@@ -10320,12 +10325,12 @@ const H0 = {
10320
10325
  }
10321
10326
  u((q) => q.filter((Z) => Z !== K));
10322
10327
  }
10323
- }, "handleDoubleClick"), H = /* @__PURE__ */ n(() => {
10328
+ }, "handleDoubleClick"), V = /* @__PURE__ */ n(() => {
10324
10329
  const v = (Array.isArray(M) ? M : []).map((_) => _.id).filter((_) => _ != null);
10325
10330
  f.setValue(o, v, { shouldDirty: !0 }), u([]);
10326
- }, "handleAllRight"), O = /* @__PURE__ */ n(() => {
10331
+ }, "handleAllRight"), L = /* @__PURE__ */ n(() => {
10327
10332
  f.setValue(o, [], { shouldDirty: !0 }), u([]);
10328
- }, "handleAllLeft"), V = /* @__PURE__ */ n(() => {
10333
+ }, "handleAllLeft"), z = /* @__PURE__ */ n(() => {
10329
10334
  const v = vt(
10330
10335
  c,
10331
10336
  R.map((K) => K.id)
@@ -10350,24 +10355,24 @@ const H0 = {
10350
10355
  f.setValue(o, K, { shouldDirty: !0 }), u(ua(c, v));
10351
10356
  }, "handleCheckedLeft"), k = /* @__PURE__ */ n(() => {
10352
10357
  typeof f.resetField == "function" ? f.resetField(o, { defaultValue: y }) : f.setValue(o, y, { shouldDirty: !1 }), u([]), d(null);
10353
- }, "handleResetChanges"), L = /* @__PURE__ */ n((v, _, K = {}) => {
10354
- const q = _ ? "Disponibles..." : "Seleccionados...", Z = /* @__PURE__ */ n((W) => {
10355
- h(W === "" ? W : W.target.value);
10358
+ }, "handleResetChanges"), O = /* @__PURE__ */ n((v, _, K = {}) => {
10359
+ const q = _ ? "Disponibles..." : "Seleccionados...", Z = /* @__PURE__ */ n((G) => {
10360
+ h(G === "" ? G : G.target.value);
10356
10361
  }, "handleSearchChange"), X = v.filter(
10357
- (W) => W.etiqueta.toLowerCase().includes(b.toLowerCase())
10362
+ (G) => G.etiqueta.toLowerCase().includes(b.toLowerCase())
10358
10363
  );
10359
10364
  return /* @__PURE__ */ F(
10360
10365
  dn,
10361
10366
  {
10362
- sx: /* @__PURE__ */ n((W) => {
10363
- const re = typeof K == "function" ? K(W) : K;
10367
+ sx: /* @__PURE__ */ n((G) => {
10368
+ const re = typeof K == "function" ? K(G) : K;
10364
10369
  return {
10365
10370
  width: "100%",
10366
10371
  minWidth: 0,
10367
- height: W.spacing(34),
10372
+ height: G.spacing(34),
10368
10373
  overflow: "hidden",
10369
- border: `1px solid ${W.palette.divider}`,
10370
- boxShadow: W.shadows[2],
10374
+ border: `1px solid ${G.palette.divider}`,
10375
+ boxShadow: G.shadows[2],
10371
10376
  display: "flex",
10372
10377
  flexDirection: "column",
10373
10378
  ...re
@@ -10410,14 +10415,14 @@ const H0 = {
10410
10415
  minHeight: 0,
10411
10416
  overflow: "auto"
10412
10417
  },
10413
- children: X.map((W, re) => {
10414
- const ne = `transfer-list-item-${W.id}-label`;
10418
+ children: X.map((G, re) => {
10419
+ const ne = `transfer-list-item-${G.id}-label`;
10415
10420
  return /* @__PURE__ */ F(
10416
10421
  qt,
10417
10422
  {
10418
10423
  role: "listitem",
10419
- onClick: /* @__PURE__ */ n((be) => E(W.id, re, be)(), "onClick"),
10420
- onDoubleClick: /* @__PURE__ */ n(() => D(W, _), "onDoubleClick"),
10424
+ onClick: /* @__PURE__ */ n((be) => E(G.id, re, be)(), "onClick"),
10425
+ onDoubleClick: /* @__PURE__ */ n(() => D(G, _), "onDoubleClick"),
10421
10426
  sx: /* @__PURE__ */ n((be) => ({
10422
10427
  borderBottom: `1px solid ${be.palette.divider}`,
10423
10428
  "&:hover": {
@@ -10428,7 +10433,7 @@ const H0 = {
10428
10433
  /* @__PURE__ */ i(Ut, { children: /* @__PURE__ */ i(
10429
10434
  al,
10430
10435
  {
10431
- checked: c.includes(W.id),
10436
+ checked: c.includes(G.id),
10432
10437
  tabIndex: -1,
10433
10438
  disableRipple: !0,
10434
10439
  inputProps: {
@@ -10446,7 +10451,7 @@ const H0 = {
10446
10451
  kt,
10447
10452
  {
10448
10453
  id: ne,
10449
- primary: W.etiqueta || W.name || `Item ${W.id}`,
10454
+ primary: G.etiqueta || G.name || `Item ${G.id}`,
10450
10455
  primaryTypographyProps: {
10451
10456
  variant: "body2",
10452
10457
  lineHeight: 1.3
@@ -10455,7 +10460,7 @@ const H0 = {
10455
10460
  )
10456
10461
  ]
10457
10462
  },
10458
- W.id
10463
+ G.id
10459
10464
  );
10460
10465
  })
10461
10466
  }
@@ -10494,7 +10499,7 @@ const H0 = {
10494
10499
  mb: 0
10495
10500
  }
10496
10501
  },
10497
- children: L(
10502
+ children: O(
10498
10503
  R,
10499
10504
  !0,
10500
10505
  (v) => ({
@@ -10520,7 +10525,7 @@ const H0 = {
10520
10525
  {
10521
10526
  variant: "contained",
10522
10527
  size: "small",
10523
- onClick: H,
10528
+ onClick: V,
10524
10529
  disabled: R.length === 0,
10525
10530
  sx: /* @__PURE__ */ n((v) => ({
10526
10531
  backgroundColor: R.length === 0 ? v.palette.grey[300] : v.palette.primary.main,
@@ -10540,7 +10545,7 @@ const H0 = {
10540
10545
  {
10541
10546
  variant: "contained",
10542
10547
  size: "small",
10543
- onClick: V,
10548
+ onClick: z,
10544
10549
  disabled: vt(
10545
10550
  c,
10546
10551
  R.map((v) => v.id)
@@ -10620,7 +10625,7 @@ const H0 = {
10620
10625
  {
10621
10626
  variant: "contained",
10622
10627
  size: "small",
10623
- onClick: O,
10628
+ onClick: L,
10624
10629
  disabled: T.length === 0,
10625
10630
  sx: /* @__PURE__ */ n((v) => ({
10626
10631
  backgroundColor: T.length === 0 ? v.palette.grey[300] : v.palette.primary.main,
@@ -10637,7 +10642,7 @@ const H0 = {
10637
10642
  ]
10638
10643
  }
10639
10644
  ),
10640
- /* @__PURE__ */ i(Me, { sx: /* @__PURE__ */ n((v) => ({ minWidth: 0, pt: v.spacing(2) }), "sx"), children: L(
10645
+ /* @__PURE__ */ i(Me, { sx: /* @__PURE__ */ n((v) => ({ minWidth: 0, pt: v.spacing(2) }), "sx"), children: O(
10641
10646
  T,
10642
10647
  !1,
10643
10648
  (v) => ({
@@ -10647,16 +10652,16 @@ const H0 = {
10647
10652
  ]
10648
10653
  }
10649
10654
  );
10650
- }, "TransferListChild"), Y0 = /* @__PURE__ */ n((e) => {
10655
+ }, "TransferListChild"), J0 = /* @__PURE__ */ n((e) => {
10651
10656
  const {
10652
10657
  propsContenido: { sx: t, choices: o = [], ...r },
10653
10658
  hidden: a
10654
10659
  } = Qe(e), { isLoading: s } = Te(), l = fn(), {
10655
10660
  isActive: c,
10656
10661
  hasBeenActive: u = c
10657
- } = ui(), p = pt((m) => m.breakpoints.down("md")), { source: d, reference: f } = e, g = at(e) || {};
10662
+ } = ui(), p = pt((m) => m.breakpoints.down("md")), { source: d, reference: f } = e, g = nt(e) || {};
10658
10663
  return !a && l?.enabled ? /* @__PURE__ */ i(
10659
- ng,
10664
+ ig,
10660
10665
  {
10661
10666
  ...r,
10662
10667
  sx: t,
@@ -10683,7 +10688,7 @@ const H0 = {
10683
10688
  optionValue: d
10684
10689
  }
10685
10690
  ) : /* @__PURE__ */ i(
10686
- ig,
10691
+ rg,
10687
10692
  {
10688
10693
  sx: t,
10689
10694
  ...r,
@@ -10694,10 +10699,10 @@ const H0 = {
10694
10699
  )
10695
10700
  }
10696
10701
  ) : null;
10697
- }, "ListCheck"), J0 = /* @__PURE__ */ n((e) => {
10702
+ }, "ListCheck"), Q0 = /* @__PURE__ */ n((e) => {
10698
10703
  const { propsContenido: t, hidden: o } = Qe(e);
10699
10704
  return !o && /* @__PURE__ */ i(Da, { ...t });
10700
- }, "Password"), Q0 = /* @__PURE__ */ n((e) => {
10705
+ }, "Password"), Z0 = /* @__PURE__ */ n((e) => {
10701
10706
  const {
10702
10707
  propsContenido: { sx: t, ...o },
10703
10708
  hidden: r
@@ -10714,7 +10719,7 @@ const H0 = {
10714
10719
  optionValue: e.source
10715
10720
  }
10716
10721
  ) }) : null;
10717
- }, "RadioButton"), Z0 = /* @__PURE__ */ n((e) => {
10722
+ }, "RadioButton"), ex = /* @__PURE__ */ n((e) => {
10718
10723
  const {
10719
10724
  propsContenido: { sx: t, ...o },
10720
10725
  hidden: r
@@ -10743,7 +10748,7 @@ const H0 = {
10743
10748
  }
10744
10749
  }
10745
10750
  );
10746
- }, "RadioButtonManual"), rg = S.forwardRef(/* @__PURE__ */ n(function(t, o) {
10751
+ }, "RadioButtonManual"), sg = S.forwardRef(/* @__PURE__ */ n(function(t, o) {
10747
10752
  const r = S.useRef(null), a = S.useCallback(
10748
10753
  (s) => {
10749
10754
  r.current = s, typeof o == "function" ? o(s) : o && (o.current = s);
@@ -10759,7 +10764,7 @@ const H0 = {
10759
10764
  children: /* @__PURE__ */ i(wa, { ref: a, ...t })
10760
10765
  }
10761
10766
  );
10762
- }, "PaperComponent2")), sg = { cursor: "move" }, ag = /* @__PURE__ */ n((e) => {
10767
+ }, "PaperComponent2")), ag = { cursor: "move" }, lg = /* @__PURE__ */ n((e) => {
10763
10768
  const {
10764
10769
  isOpen: t = !1,
10765
10770
  isLoading: o,
@@ -10773,7 +10778,7 @@ const H0 = {
10773
10778
  onConfirm: p,
10774
10779
  contentResource: d,
10775
10780
  translateOptions: f = {}
10776
- } = e, g = ge(), [m] = za({ resource: d }), y = te(
10781
+ } = e, g = me(), [m] = za({ resource: d }), y = te(
10777
10782
  (h, w) => {
10778
10783
  h.stopPropagation(), p(h, m);
10779
10784
  },
@@ -10788,10 +10793,10 @@ const H0 = {
10788
10793
  onClose: u,
10789
10794
  onClick: b,
10790
10795
  maxWidth: "md",
10791
- PaperComponent: rg,
10796
+ PaperComponent: sg,
10792
10797
  "aria-labelledby": "draggable-dialog-title",
10793
10798
  children: [
10794
- /* @__PURE__ */ i(li, { style: sg, id: "draggable-dialog-title", children: g(r, { _: r, ...f }) }),
10799
+ /* @__PURE__ */ i(li, { style: ag, id: "draggable-dialog-title", children: g(r, { _: r, ...f }) }),
10795
10800
  /* @__PURE__ */ i(ai, { dividers: !0, children: a }),
10796
10801
  /* @__PURE__ */ F(si, { children: [
10797
10802
  /* @__PURE__ */ F(yt, { disabled: o, onClick: u, children: [
@@ -10814,14 +10819,14 @@ const H0 = {
10814
10819
  ]
10815
10820
  }
10816
10821
  );
10817
- }, "FiltroAsig"), lg = /* @__PURE__ */ n(() => /* @__PURE__ */ i(dt, {}), "BulkActions"), cg = {
10822
+ }, "FiltroAsig"), cg = /* @__PURE__ */ n(() => /* @__PURE__ */ i(dt, {}), "BulkActions"), dg = {
10818
10823
  seleccion: "",
10819
10824
  all: !0,
10820
10825
  none: !1
10821
- }, dg = /* @__PURE__ */ n((e, t) => !e || e?.all ? t("pos.all") : e?.none || e.seleccion.length === 0 ? t("pos.none") : t("pos.selection_count", {
10826
+ }, ug = /* @__PURE__ */ n((e, t) => !e || e?.all ? t("pos.all") : e?.none || e.seleccion.length === 0 ? t("pos.none") : t("pos.selection_count", {
10822
10827
  count: e.seleccion.split(",").length
10823
- }), "format"), ug = /* @__PURE__ */ n((e) => e, "parse"), ex = /* @__PURE__ */ n((e) => {
10824
- const t = ge(), [o, r] = ee(!1), [a, s] = ee(null), l = De(!1), c = fn(), {
10828
+ }), "format"), pg = /* @__PURE__ */ n((e) => e, "parse"), tx = /* @__PURE__ */ n((e) => {
10829
+ const t = me(), [o, r] = ee(!1), [a, s] = ee(null), l = De(!1), c = fn(), {
10825
10830
  hidden: u,
10826
10831
  propsContenido: {
10827
10832
  readOnly: p,
@@ -10836,7 +10841,7 @@ const H0 = {
10836
10841
  } = Qe(e), w = qe();
10837
10842
  oe(() => {
10838
10843
  l.current || (setTimeout(() => {
10839
- w.setValue(b, cg);
10844
+ w.setValue(b, dg);
10840
10845
  }, 0), l.current = !0);
10841
10846
  }, [w, b]);
10842
10847
  const P = te(() => {
@@ -10879,8 +10884,8 @@ const H0 = {
10879
10884
  source: b,
10880
10885
  label: d,
10881
10886
  readOnly: !0,
10882
- parse: ug,
10883
- format: /* @__PURE__ */ n((I) => dg(I, t), "format"),
10887
+ parse: pg,
10888
+ format: /* @__PURE__ */ n((I) => ug(I, t), "format"),
10884
10889
  helperText: !1,
10885
10890
  InputProps: {
10886
10891
  endAdornment: /* @__PURE__ */ F(ot, { children: [
@@ -10926,7 +10931,7 @@ const H0 = {
10926
10931
  }
10927
10932
  ),
10928
10933
  !c?.enabled && m ? /* @__PURE__ */ i(
10929
- ag,
10934
+ lg,
10930
10935
  {
10931
10936
  isOpen: o,
10932
10937
  title: t("pos.selection_of", { label: d }),
@@ -10952,7 +10957,7 @@ const H0 = {
10952
10957
  },
10953
10958
  config: {
10954
10959
  actionButtons: !1,
10955
- bulkActionButtons: /* @__PURE__ */ i(lg, {}),
10960
+ bulkActionButtons: /* @__PURE__ */ i(cg, {}),
10956
10961
  hasEdit: !1
10957
10962
  }
10958
10963
  }),
@@ -10968,7 +10973,7 @@ const H0 = {
10968
10973
  asistente: "224",
10969
10974
  filtro: "",
10970
10975
  soloActivos: e
10971
- }), "createDefaultValue"), nn = /* @__PURE__ */ n((e) => e === !0 || e === "true" || e === 1 || e === "1", "isTrue"), Po = /* @__PURE__ */ n((e) => e == null ? "" : Array.isArray(e) ? e.filter(Boolean).join(",") : String(e), "normalizeSelectionValue"), Bn = /* @__PURE__ */ n((e) => Po(e).split(",").filter(Boolean), "getSelectionIds"), pg = /* @__PURE__ */ n((e) => e === "E" ? { radio: "mfu.estcod=[NOH[" } : e === "T" ? { radio: "null" } : { radio: "mfu.estcod=[HAB[" }, "getStatusMeta"), pa = /* @__PURE__ */ n((e) => e === "" || e === null || e === void 0 ? !0 : typeof e != "object" || Array.isArray(e) ? !1 : Po(e.seleccion) === "" && !nn(e.all) && (e.soloActivos === void 0 || e.soloActivos === null || e.soloActivos === ""), "isUninitializedStatusValue"), Nn = /* @__PURE__ */ n((e, t = {}) => {
10976
+ }), "createDefaultValue"), nn = /* @__PURE__ */ n((e) => e === !0 || e === "true" || e === 1 || e === "1", "isTrue"), Po = /* @__PURE__ */ n((e) => e == null ? "" : Array.isArray(e) ? e.filter(Boolean).join(",") : String(e), "normalizeSelectionValue"), Bn = /* @__PURE__ */ n((e) => Po(e).split(",").filter(Boolean), "getSelectionIds"), fg = /* @__PURE__ */ n((e) => e === "E" ? { radio: "mfu.estcod=[NOH[" } : e === "T" ? { radio: "null" } : { radio: "mfu.estcod=[HAB[" }, "getStatusMeta"), pa = /* @__PURE__ */ n((e) => e === "" || e === null || e === void 0 ? !0 : typeof e != "object" || Array.isArray(e) ? !1 : Po(e.seleccion) === "" && !nn(e.all) && (e.soloActivos === void 0 || e.soloActivos === null || e.soloActivos === ""), "isUninitializedStatusValue"), Nn = /* @__PURE__ */ n((e, t = {}) => {
10972
10977
  const o = Mc(t);
10973
10978
  return e === "" ? {
10974
10979
  ...o,
@@ -10990,8 +10995,8 @@ const H0 = {
10990
10995
  filtro: e.filtro === void 0 || e.filtro === null ? "" : String(e.filtro),
10991
10996
  soloActivos: so(e.soloActivos)
10992
10997
  };
10993
- }, "normalizeFieldValue"), fg = /* @__PURE__ */ n((e, t) => String(e.funnro || "").trim() === t || String(e.funcod || "").trim() === t, "matchesFuncionario"), mg = /* @__PURE__ */ n(async (e, t, o) => {
10994
- const r = pg(o), a = [{ funnro: t }, { funcod: t }, { q: t }];
10998
+ }, "normalizeFieldValue"), mg = /* @__PURE__ */ n((e, t) => String(e.funnro || "").trim() === t || String(e.funcod || "").trim() === t, "matchesFuncionario"), hg = /* @__PURE__ */ n(async (e, t, o) => {
10999
+ const r = fg(o), a = [{ funnro: t }, { funcod: t }, { q: t }];
10995
11000
  for (const s of a) {
10996
11001
  const { data: l = [] } = await e.getList("form_224", {
10997
11002
  pagination: { page: 1, perPage: 10 },
@@ -10999,13 +11004,13 @@ const H0 = {
10999
11004
  filter: s,
11000
11005
  meta: r
11001
11006
  }), c = l.find(
11002
- (u) => fg(u, t)
11007
+ (u) => mg(u, t)
11003
11008
  );
11004
11009
  if (c)
11005
11010
  return c;
11006
11011
  }
11007
11012
  return null;
11008
- }, "getFuncionarioManual"), hg = /* @__PURE__ */ n(async (e, t, o) => {
11013
+ }, "getFuncionarioManual"), gg = /* @__PURE__ */ n(async (e, t, o) => {
11009
11014
  try {
11010
11015
  const r = {
11011
11016
  pagination: { page: 1, perPage: 10 },
@@ -11025,7 +11030,7 @@ const H0 = {
11025
11030
  } catch {
11026
11031
  return t;
11027
11032
  }
11028
- }, "getFuncionarioTooltipLine"), gg = /* @__PURE__ */ n((e) => e ? typeof e == "string" ? e.trim() : typeof e == "object" && !Array.isArray(e) ? String(e.fillista || e.filgrilla || "").trim() : "" : "", "normalizeFilgrilla"), fa = /* @__PURE__ */ n((e, t) => t ? !e || e === "null" ? t : `(${e}) AND (${t})` : e, "combineFillista"), bg = /* @__PURE__ */ n(({ onRecordsLoaded: e }) => {
11033
+ }, "getFuncionarioTooltipLine"), bg = /* @__PURE__ */ n((e) => e ? typeof e == "string" ? e.trim() : typeof e == "object" && !Array.isArray(e) ? String(e.fillista || e.filgrilla || "").trim() : "" : "", "normalizeFilgrilla"), fa = /* @__PURE__ */ n((e, t) => t ? !e || e === "null" ? t : `(${e}) AND (${t})` : e, "combineFillista"), yg = /* @__PURE__ */ n(({ onRecordsLoaded: e }) => {
11029
11034
  const { data: t = [], isPending: o, isLoading: r, isFetching: a } = Jt(), s = de(
11030
11035
  () => Array.isArray(t) ? t : Object.values(t),
11031
11036
  [t]
@@ -11038,7 +11043,7 @@ const H0 = {
11038
11043
  }, [s]), oe(() => {
11039
11044
  !e || o || r || a || e(c.current);
11040
11045
  }, [e, l, a, r, o]), null;
11041
- }, "ListSelectionBridge"), yg = [
11046
+ }, "ListSelectionBridge"), xg = [
11042
11047
  { source: "funcod", label: "pos.code" },
11043
11048
  { source: "funced", label: "pos.id_number" },
11044
11049
  { source: "funpriape", label: "pos.surname" },
@@ -11055,7 +11060,7 @@ const H0 = {
11055
11060
  children: /* @__PURE__ */ F(bd, { size: "small", children: [
11056
11061
  /* @__PURE__ */ i(yd, { children: /* @__PURE__ */ F(ss, { children: [
11057
11062
  /* @__PURE__ */ i(io, { padding: "checkbox", children: /* @__PURE__ */ i(ro, { variant: "rounded", width: 18, height: 18 }) }),
11058
- yg.map((e) => /* @__PURE__ */ i(io, { children: /* @__PURE__ */ i(ro, { variant: "text", width: "70%" }) }, e.source))
11063
+ xg.map((e) => /* @__PURE__ */ i(io, { children: /* @__PURE__ */ i(ro, { variant: "text", width: "70%" }) }, e.source))
11059
11064
  ] }) }),
11060
11065
  /* @__PURE__ */ i(xd, { children: Array.from({ length: 8 }).map((e, t) => /* @__PURE__ */ F(ss, { children: [
11061
11066
  /* @__PURE__ */ i(io, { padding: "checkbox", children: /* @__PURE__ */ i(
@@ -11073,17 +11078,17 @@ const H0 = {
11073
11078
  ] }, t)) })
11074
11079
  ] })
11075
11080
  }
11076
- ), "FuncionariosGridSkeleton"), xg = /* @__PURE__ */ n(() => /* @__PURE__ */ i(
11081
+ ), "FuncionariosGridSkeleton"), Cg = /* @__PURE__ */ n(() => /* @__PURE__ */ i(
11077
11082
  Ma,
11078
11083
  {
11079
11084
  selectAllButton: /* @__PURE__ */ i(cu, { label: "pos.select_all_pages" })
11080
11085
  }
11081
- ), "TBSFBulkActionsToolbar"), Cg = /* @__PURE__ */ n(() => {
11086
+ ), "TBSFBulkActionsToolbar"), vg = /* @__PURE__ */ n(() => {
11082
11087
  const { isPending: e, isLoading: t, isFetching: o } = Jt();
11083
11088
  return e || t || o ? /* @__PURE__ */ i(Ic, {}) : /* @__PURE__ */ F(
11084
11089
  lu,
11085
11090
  {
11086
- bulkActionsToolbar: /* @__PURE__ */ i(xg, {}),
11091
+ bulkActionsToolbar: /* @__PURE__ */ i(Cg, {}),
11087
11092
  bulkActionButtons: /* @__PURE__ */ i("span", {}),
11088
11093
  rowClick: "toggleSelection",
11089
11094
  sx: {
@@ -11117,7 +11122,7 @@ const H0 = {
11117
11122
  ]
11118
11123
  }
11119
11124
  );
11120
- }, "AsistenteDatagrid"), vg = /* @__PURE__ */ n(({ onRecordsLoaded: e, queryOptions: t, ...o }) => /* @__PURE__ */ F(
11125
+ }, "AsistenteDatagrid"), wg = /* @__PURE__ */ n(({ onRecordsLoaded: e, queryOptions: t, ...o }) => /* @__PURE__ */ F(
11121
11126
  ka,
11122
11127
  {
11123
11128
  ...o,
@@ -11148,11 +11153,11 @@ const H0 = {
11148
11153
  }
11149
11154
  },
11150
11155
  children: [
11151
- /* @__PURE__ */ i(bg, { onRecordsLoaded: e }),
11152
- /* @__PURE__ */ i(Cg, {})
11156
+ /* @__PURE__ */ i(yg, { onRecordsLoaded: e }),
11157
+ /* @__PURE__ */ i(vg, {})
11153
11158
  ]
11154
11159
  }
11155
- ), "AsistenteList"), wg = { fillista: "empcod=-1", mapId: ["funcod"] }, $n = {
11160
+ ), "AsistenteList"), Sg = { fillista: "empcod=-1", mapId: ["funcod"] }, $n = {
11156
11161
  id: "__todos__",
11157
11162
  text: "pos.all",
11158
11163
  children: [],
@@ -11226,8 +11231,8 @@ const H0 = {
11226
11231
  Icon: fl,
11227
11232
  getMeta: /* @__PURE__ */ n(() => ({ radio: "null" }), "getMeta")
11228
11233
  }
11229
- ], Sg = /* @__PURE__ */ n((e) => {
11230
- const t = ge(), {
11234
+ ], Pg = /* @__PURE__ */ n((e) => {
11235
+ const t = me(), {
11231
11236
  filgrilla: o = {},
11232
11237
  meta: r,
11233
11238
  onRecordsLoaded: a,
@@ -11238,9 +11243,9 @@ const H0 = {
11238
11243
  filterOptionKeys: p
11239
11244
  } = e, d = de(() => !Array.isArray(p) || p.length === 0 ? jo : jo.filter(
11240
11245
  (N) => p.includes(N.key)
11241
- ), [p]), [f, g] = ee(wg), [m, y] = ee([]), [b, h] = ee(null), [w, P] = ee(!0), [M, x] = ee(!1), [T, I] = ee(
11246
+ ), [p]), [f, g] = ee(Sg), [m, y] = ee([]), [b, h] = ee(null), [w, P] = ee(!0), [M, x] = ee(!1), [T, I] = ee(
11242
11247
  d.find((N) => N.key === u) || d[0] || jo[0]
11243
- ), R = Dt(), E = un(), D = rn(), H = te(
11248
+ ), R = Dt(), E = un(), D = rn(), V = te(
11244
11249
  (N) => E.fetchQuery({
11245
11250
  queryKey: ["form_224", "getChildNodes", { parentId: N }],
11246
11251
  queryFn: /* @__PURE__ */ n(async () => (await R.getChildNodes("form_224", {
@@ -11249,8 +11254,8 @@ const H0 = {
11249
11254
  staleTime: 0
11250
11255
  }),
11251
11256
  [R, E]
11252
- ), O = uu(), V = !!b, $ = de(
11253
- () => gg(o),
11257
+ ), L = uu(), z = !!b, $ = de(
11258
+ () => bg(o),
11254
11259
  [o]
11255
11260
  ), k = de(
11256
11261
  () => ({
@@ -11258,7 +11263,7 @@ const H0 = {
11258
11263
  ...T.getMeta()
11259
11264
  }),
11260
11265
  [r, T]
11261
- ), L = de(
11266
+ ), O = de(
11262
11267
  () => [
11263
11268
  T.key,
11264
11269
  JSON.stringify(f),
@@ -11280,25 +11285,25 @@ const H0 = {
11280
11285
  let N = !0;
11281
11286
  return (/* @__PURE__ */ n(async () => {
11282
11287
  try {
11283
- const me = await H("");
11284
- N && y([$n, ...me]);
11288
+ const he = await V("");
11289
+ N && y([$n, ...he]);
11285
11290
  } catch {
11286
11291
  N && D("Data Loading Error", { type: "error" });
11287
11292
  }
11288
11293
  }, "loadInitialData"))(), () => {
11289
11294
  N = !1;
11290
11295
  };
11291
- }, [H, D]);
11296
+ }, [V, D]);
11292
11297
  const v = te(
11293
11298
  (N, Q) => {
11294
11299
  if (String(Q).endsWith("-placeholder"))
11295
11300
  return;
11296
- const me = cr(m, Q), we = Q === $n.id ? {
11301
+ const he = cr(m, Q), we = Q === $n.id ? {
11297
11302
  fillista: fa("null", $),
11298
11303
  mapId: ["funcod"]
11299
11304
  } : {
11300
11305
  fillista: fa(
11301
- me?.accion || Q,
11306
+ he?.accion || Q,
11302
11307
  $
11303
11308
  ),
11304
11309
  mapId: ["funcod"]
@@ -11306,7 +11311,7 @@ const H0 = {
11306
11311
  P(!0), g(we), l?.({
11307
11312
  filter: we,
11308
11313
  meta: k,
11309
- selectedNode: me
11314
+ selectedNode: he
11310
11315
  });
11311
11316
  },
11312
11317
  [$, k, l, m]
@@ -11315,11 +11320,11 @@ const H0 = {
11315
11320
  P(!1), a && a(N);
11316
11321
  },
11317
11322
  [a]
11318
- ), K = /* @__PURE__ */ n(async (N, Q, me) => {
11323
+ ), K = /* @__PURE__ */ n(async (N, Q, he) => {
11319
11324
  const we = cr(m, Q);
11320
- if (!(!me || !we?.hasItems || we.children.length > 0))
11325
+ if (!(!he || !we?.hasItems || we.children.length > 0))
11321
11326
  try {
11322
- const Oe = await H(Q), Be = /* @__PURE__ */ n((se) => se.map((Fe) => String(Fe.id) === String(Q) ? Fe.children.length > 0 ? Fe : { ...Fe, children: Oe } : Fe.children.length > 0 ? { ...Fe, children: Be(Fe.children) } : Fe), "updateNodeChildren");
11327
+ const Oe = await V(Q), Be = /* @__PURE__ */ n((se) => se.map((Fe) => String(Fe.id) === String(Q) ? Fe.children.length > 0 ? Fe : { ...Fe, children: Oe } : Fe.children.length > 0 ? { ...Fe, children: Be(Fe.children) } : Fe), "updateNodeChildren");
11323
11328
  y((se) => Be(se));
11324
11329
  } catch {
11325
11330
  D("Data Loading Error", { type: "error" });
@@ -11339,7 +11344,7 @@ const H0 = {
11339
11344
  Q,
11340
11345
  {
11341
11346
  fontSize: "small",
11342
- sx: { color: O.palette.primary.main }
11347
+ sx: { color: L.palette.primary.main }
11343
11348
  }
11344
11349
  ),
11345
11350
  /* @__PURE__ */ i("span", { children: N.id === $n.id ? t(N.text) : N.text })
@@ -11376,10 +11381,10 @@ const H0 = {
11376
11381
  Q.id
11377
11382
  )), "renderTreeItems"), X = /* @__PURE__ */ n((N) => {
11378
11383
  h(N.currentTarget);
11379
- }, "handleMenuOpen"), W = /* @__PURE__ */ n(() => {
11384
+ }, "handleMenuOpen"), G = /* @__PURE__ */ n(() => {
11380
11385
  h(null);
11381
11386
  }, "handleMenuClose"), re = /* @__PURE__ */ n((N) => {
11382
- P(!0), I(N), c?.(N), W();
11387
+ P(!0), I(N), c?.(N), G();
11383
11388
  }, "handleFiltroFuncionarios"), ne = /* @__PURE__ */ n(() => {
11384
11389
  x((N) => !N);
11385
11390
  }, "toggleTreePanel"), be = T.Icon;
@@ -11464,8 +11469,8 @@ const H0 = {
11464
11469
  Yo,
11465
11470
  {
11466
11471
  anchorEl: b,
11467
- open: V,
11468
- onClose: W,
11472
+ open: z,
11473
+ onClose: G,
11469
11474
  children: d.map((N) => {
11470
11475
  const Q = N.Icon;
11471
11476
  return /* @__PURE__ */ F(
@@ -11529,14 +11534,14 @@ const H0 = {
11529
11534
  },
11530
11535
  children: [
11531
11536
  /* @__PURE__ */ i(
11532
- vg,
11537
+ wg,
11533
11538
  {
11534
11539
  resource: "form_224",
11535
11540
  filter: f,
11536
11541
  queryOptions: { meta: k },
11537
11542
  onRecordsLoaded: _
11538
11543
  },
11539
- L
11544
+ O
11540
11545
  ),
11541
11546
  w ? /* @__PURE__ */ i(
11542
11547
  U,
@@ -11557,7 +11562,7 @@ const H0 = {
11557
11562
  ]
11558
11563
  }
11559
11564
  );
11560
- }, "TreeWithList"), Pg = S.forwardRef(/* @__PURE__ */ n(function(t, o) {
11565
+ }, "TreeWithList"), Mg = S.forwardRef(/* @__PURE__ */ n(function(t, o) {
11561
11566
  const r = S.useRef(null), a = S.useCallback(
11562
11567
  (s) => {
11563
11568
  r.current = s, typeof o == "function" ? o(s) : o && (o.current = s);
@@ -11573,7 +11578,7 @@ const H0 = {
11573
11578
  children: /* @__PURE__ */ i(wa, { ref: a, ...t })
11574
11579
  }
11575
11580
  );
11576
- }, "PaperComponent2")), Mg = { cursor: "move" }, Ig = /* @__PURE__ */ n((e) => {
11581
+ }, "PaperComponent2")), Ig = { cursor: "move" }, Rg = /* @__PURE__ */ n((e) => {
11577
11582
  const {
11578
11583
  isOpen: t = !1,
11579
11584
  isLoading: o,
@@ -11591,20 +11596,20 @@ const H0 = {
11591
11596
  initialFilterKey: y,
11592
11597
  filterOptionKeys: b,
11593
11598
  dialogProps: h
11594
- } = e, w = Dt(), P = ge(), [M] = za({ resource: "form_224" }), [x, T] = ee({}), [I, R] = ee(null), [E, D] = ee(!1), H = te(($) => {
11599
+ } = e, w = Dt(), P = me(), [M] = za({ resource: "form_224" }), [x, T] = ee({}), [I, R] = ee(null), [E, D] = ee(!1), V = te(($) => {
11595
11600
  T((k) => {
11596
- const L = { ...k };
11601
+ const O = { ...k };
11597
11602
  return $.forEach((v) => {
11598
- L[String(v.id)] = v;
11599
- }), L;
11603
+ O[String(v.id)] = v;
11604
+ }), O;
11600
11605
  });
11601
- }, []), O = te(
11606
+ }, []), L = te(
11602
11607
  async ($, k) => {
11603
11608
  $.stopPropagation(), D(!0);
11604
11609
  try {
11605
- let L = { ...x };
11610
+ let O = { ...x };
11606
11611
  const v = M.filter(
11607
- (q) => !L[String(q)]
11612
+ (q) => !O[String(q)]
11608
11613
  );
11609
11614
  if (v.length > 0 && I)
11610
11615
  try {
@@ -11623,11 +11628,11 @@ const H0 = {
11623
11628
  meta: I.meta
11624
11629
  }
11625
11630
  )).data || []).forEach((Z) => {
11626
- L[String(Z.id)] = Z;
11631
+ O[String(Z.id)] = Z;
11627
11632
  });
11628
11633
  } catch {
11629
11634
  }
11630
- const _ = M.map((q) => L[String(q)]).filter(Boolean), K = {
11635
+ const _ = M.map((q) => O[String(q)]).filter(Boolean), K = {
11631
11636
  button: k,
11632
11637
  selectedIds: M,
11633
11638
  selectedRecords: _,
@@ -11644,7 +11649,7 @@ const H0 = {
11644
11649
  }
11645
11650
  },
11646
11651
  [w, I, u, x, M]
11647
- ), V = te(($) => {
11652
+ ), z = te(($) => {
11648
11653
  $.stopPropagation();
11649
11654
  }, []);
11650
11655
  return /* @__PURE__ */ F(
@@ -11652,20 +11657,20 @@ const H0 = {
11652
11657
  {
11653
11658
  open: t,
11654
11659
  onClose: c,
11655
- onClick: V,
11660
+ onClick: z,
11656
11661
  fullWidth: !0,
11657
11662
  maxWidth: "lg",
11658
- PaperComponent: Pg,
11663
+ PaperComponent: Mg,
11659
11664
  "aria-labelledby": "draggable-dialog-title",
11660
11665
  ...h,
11661
11666
  children: [
11662
- /* @__PURE__ */ i(li, { style: Mg, id: "draggable-dialog-title", children: P(r, { _: r, ...p }) }),
11667
+ /* @__PURE__ */ i(li, { style: Ig, id: "draggable-dialog-title", children: P(r, { _: r, ...p }) }),
11663
11668
  /* @__PURE__ */ i(ai, { dividers: !0, children: /* @__PURE__ */ i(
11664
- Sg,
11669
+ Pg,
11665
11670
  {
11666
11671
  filgrilla: d,
11667
11672
  meta: f,
11668
- onRecordsLoaded: H,
11673
+ onRecordsLoaded: V,
11669
11674
  onListParamsChange: R,
11670
11675
  onStructureFilterChange: g,
11671
11676
  onStatusFilterChange: m,
@@ -11682,7 +11687,7 @@ const H0 = {
11682
11687
  yt,
11683
11688
  {
11684
11689
  disabled: o || E,
11685
- onClick: /* @__PURE__ */ n(($) => O($, "yes"), "onClick"),
11690
+ onClick: /* @__PURE__ */ n(($) => L($, "yes"), "onClick"),
11686
11691
  autoFocus: !0,
11687
11692
  children: [
11688
11693
  /* @__PURE__ */ i(s, { sx: { paddingRight: "0.5em" } }),
@@ -11713,14 +11718,14 @@ const H0 = {
11713
11718
  Icon: Pp,
11714
11719
  popupFilterKey: "todos"
11715
11720
  }
11716
- ], Rg = {
11721
+ ], Tg = {
11717
11722
  activos: "A",
11718
11723
  egresados: "E",
11719
11724
  egresadosmes: "E",
11720
11725
  egresadosdosmeses: "E",
11721
11726
  todos: "T"
11722
- }, tx = /* @__PURE__ */ n((e) => {
11723
- const { source: t, onChange: o, fullWidth: r = !1 } = e, [a, s] = ee(!1), [l, c] = ee(null), [u, p] = ee(""), d = fn(), f = Dt(), g = un(), m = rn(), y = ge(), b = qe(), { estado: h, fichaProps: w = {} } = Te(), P = De(!1), {
11727
+ }, ox = /* @__PURE__ */ n((e) => {
11728
+ const { source: t, onChange: o, fullWidth: r = !1 } = e, [a, s] = ee(!1), [l, c] = ee(null), [u, p] = ee(""), d = fn(), f = Dt(), g = un(), m = rn(), y = me(), b = qe(), { estado: h, fichaProps: w = {} } = Te(), P = De(!1), {
11724
11729
  hidden: M,
11725
11730
  propsContenido: {
11726
11731
  readOnly: x,
@@ -11729,12 +11734,12 @@ const H0 = {
11729
11734
  allowNone: R = !0,
11730
11735
  allowAll: E = !0,
11731
11736
  allowStatus: D = !0,
11732
- allowManual: H = !0,
11733
- onManualSearchStart: O,
11734
- onManualSearchEnd: V,
11737
+ allowManual: V = !0,
11738
+ onManualSearchStart: L,
11739
+ onManualSearchEnd: z,
11735
11740
  soloActivos: $ = "A",
11736
11741
  filgrilla: k,
11737
- meta: L,
11742
+ meta: O,
11738
11743
  validate: v,
11739
11744
  isRequired: _,
11740
11745
  ...K
@@ -11755,9 +11760,9 @@ const H0 = {
11755
11760
  name: t,
11756
11761
  control: b.control,
11757
11762
  rules: q
11758
- }), { [t]: W = {} } = w, re = Ct(e), ne = W.onChange === void 0 ? o : W.onChange, be = D !== !1 && $ !== !1, [N, Q] = ee(
11763
+ }), { [t]: G = {} } = w, re = Ct(e), ne = G.onChange === void 0 ? o : G.onChange, be = D !== !1 && $ !== !1, [N, Q] = ee(
11759
11764
  so($)
11760
- ), me = de(
11765
+ ), he = de(
11761
11766
  () => Wi.find((B) => B.value === N) || Wi[0],
11762
11767
  [N]
11763
11768
  );
@@ -11780,7 +11785,7 @@ const H0 = {
11780
11785
  const we = te(
11781
11786
  (B) => {
11782
11787
  if (be && pa(B))
11783
- return y(me.label);
11788
+ return y(he.label);
11784
11789
  const ie = Nn(B, {
11785
11790
  soloActivos: N
11786
11791
  });
@@ -11790,7 +11795,7 @@ const H0 = {
11790
11795
  },
11791
11796
  [
11792
11797
  N,
11793
- me.label,
11798
+ he.label,
11794
11799
  E,
11795
11800
  y,
11796
11801
  be
@@ -11819,7 +11824,7 @@ const H0 = {
11819
11824
  return (/* @__PURE__ */ n(async () => {
11820
11825
  const Ke = await Promise.all(
11821
11826
  ie.slice(0, 12).map(
11822
- (Ne) => hg(f, Ne, g)
11827
+ (Ne) => gg(f, Ne, g)
11823
11828
  )
11824
11829
  );
11825
11830
  pe && Ue(
@@ -11832,7 +11837,7 @@ const H0 = {
11832
11837
  pe = !1;
11833
11838
  };
11834
11839
  }, [N, f, Oe, g]);
11835
- const G = te(
11840
+ const H = te(
11836
11841
  (B) => {
11837
11842
  ne && ne(re, h, B);
11838
11843
  },
@@ -11866,9 +11871,9 @@ const H0 = {
11866
11871
  }, []), ve = te(
11867
11872
  (B, ie) => {
11868
11873
  const pe = ue(ie);
11869
- b.setValue(t, pe), G(B);
11874
+ b.setValue(t, pe), H(B);
11870
11875
  },
11871
- [ue, b, t, G]
11876
+ [ue, b, t, H]
11872
11877
  ), Le = te(
11873
11878
  (B, ie, pe = {}) => {
11874
11879
  s(!1), ve(B, {
@@ -11912,7 +11917,7 @@ const H0 = {
11912
11917
  [ve]
11913
11918
  ), Mt = te(
11914
11919
  (B) => {
11915
- const ie = Rg[B?.key] || N;
11920
+ const ie = Tg[B?.key] || N;
11916
11921
  Q(ie), b.setValue(
11917
11922
  t,
11918
11923
  ue({
@@ -11924,16 +11929,16 @@ const H0 = {
11924
11929
  );
11925
11930
  },
11926
11931
  [N, ue, b, t]
11927
- ), nt = te(
11932
+ ), it = te(
11928
11933
  async (B) => {
11929
11934
  const ie = String(u || "").trim();
11930
- if (!H || ie === "")
11935
+ if (!V || ie === "")
11931
11936
  return;
11932
11937
  let pe = !1;
11933
- O && (O(re, h, B), pe = !0);
11938
+ L && (L(re, h, B), pe = !0);
11934
11939
  let Ge = null;
11935
11940
  try {
11936
- Ge = await mg(
11941
+ Ge = await hg(
11937
11942
  f,
11938
11943
  ie,
11939
11944
  N
@@ -11944,28 +11949,28 @@ const H0 = {
11944
11949
  if (!Ge) {
11945
11950
  p(""), m(`El funcionario '${ie}' no existe`, {
11946
11951
  type: "error"
11947
- }), pe && V?.(re, h, B);
11952
+ }), pe && z?.(re, h, B);
11948
11953
  return;
11949
11954
  }
11950
- pe && (V?.(re, h, B), pe = !1), ve(B, {
11955
+ pe && (z?.(re, h, B), pe = !1), ve(B, {
11951
11956
  seleccion: String(Ge.funcod || "").trim(),
11952
11957
  all: !1,
11953
11958
  none: !1
11954
11959
  }), p("");
11955
11960
  },
11956
11961
  [
11957
- H,
11962
+ V,
11958
11963
  N,
11959
11964
  f,
11960
11965
  h,
11961
11966
  u,
11962
11967
  m,
11963
- V,
11964
- O,
11968
+ z,
11969
+ L,
11965
11970
  ve,
11966
11971
  re
11967
11972
  ]
11968
- ), Y = me.Icon, J = (Fe || se).split(`
11973
+ ), Y = he.Icon, J = (Fe || se).split(`
11969
11974
  `).filter(Boolean);
11970
11975
  return M ? null : /* @__PURE__ */ F(ot, { children: [
11971
11976
  /* @__PURE__ */ i(
@@ -11997,16 +12002,16 @@ const H0 = {
11997
12002
  p(ie);
11998
12003
  }, "onChange"),
11999
12004
  onBlur: /* @__PURE__ */ n((B) => {
12000
- Z.onBlur(), nt(B);
12005
+ Z.onBlur(), it(B);
12001
12006
  }, "onBlur"),
12002
12007
  onKeyDown: /* @__PURE__ */ n((B) => {
12003
- B.key === "Enter" && (B.preventDefault(), nt(B));
12008
+ B.key === "Enter" && (B.preventDefault(), it(B));
12004
12009
  }, "onKeyDown"),
12005
12010
  error: !!X.error,
12006
12011
  helperText: X.error?.message || "",
12007
12012
  disabled: x,
12008
12013
  inputProps: {
12009
- readOnly: !H,
12014
+ readOnly: !V,
12010
12015
  inputMode: "numeric",
12011
12016
  pattern: "[0-9]*"
12012
12017
  },
@@ -12123,7 +12128,7 @@ const H0 = {
12123
12128
  xt,
12124
12129
  {
12125
12130
  title: y(
12126
- me.label
12131
+ he.label
12127
12132
  ),
12128
12133
  children: /* @__PURE__ */ F(
12129
12134
  Xe,
@@ -12131,7 +12136,7 @@ const H0 = {
12131
12136
  onClick: gt,
12132
12137
  disabled: x,
12133
12138
  "aria-label": y(
12134
- me.label
12139
+ he.label
12135
12140
  ),
12136
12141
  size: "small",
12137
12142
  children: [
@@ -12217,33 +12222,33 @@ const H0 = {
12217
12222
  }
12218
12223
  ),
12219
12224
  d?.enabled ? null : /* @__PURE__ */ i(
12220
- Ig,
12225
+ Rg,
12221
12226
  {
12222
12227
  isOpen: a,
12223
12228
  title: y("pos.selection_of", { label: I }),
12224
12229
  onConfirm: Le,
12225
12230
  onClose: ae,
12226
12231
  filgrilla: k,
12227
- meta: L,
12228
- initialFilterKey: me.popupFilterKey,
12232
+ meta: O,
12233
+ initialFilterKey: he.popupFilterKey,
12229
12234
  onStatusFilterChange: Mt
12230
12235
  }
12231
12236
  )
12232
12237
  ] });
12233
- }, "TBSF"), Tg = S.lazy(
12238
+ }, "TBSF"), Fg = S.lazy(
12234
12239
  () => import("ra-input-rich-text").then((e) => ({
12235
12240
  default: e.RichTextInput
12236
12241
  }))
12237
- ), ox = /* @__PURE__ */ n((e) => {
12242
+ ), nx = /* @__PURE__ */ n((e) => {
12238
12243
  const {
12239
12244
  propsContenido: { html: t = !1, ...o },
12240
12245
  hidden: r
12241
12246
  } = Qe(e);
12242
- return r ? null : t ? /* @__PURE__ */ i(S.Suspense, { fallback: null, children: /* @__PURE__ */ i(Tg, { ...o, className: "" }) }) : /* @__PURE__ */ i(Et, { multiline: !0, ...o });
12247
+ return r ? null : t ? /* @__PURE__ */ i(S.Suspense, { fallback: null, children: /* @__PURE__ */ i(Fg, { ...o, className: "" }) }) : /* @__PURE__ */ i(Et, { multiline: !0, ...o });
12243
12248
  }, "TextArea"), Tc = /* @__PURE__ */ n((e) => {
12244
- const { helperText: t, error: o } = e, r = ge();
12245
- return o ? /* @__PURE__ */ i(du, { error: o }) : t === !1 ? null : lo(t) ? t : typeof t == "string" ? /* @__PURE__ */ i(ot, { children: r(t, { _: t }) }) : /* @__PURE__ */ i("span", { dangerouslySetInnerHTML: Fg });
12246
- }, "InputHelperText"), Fg = { __html: "&#8203;" }, Fc = /* @__PURE__ */ n(({
12249
+ const { helperText: t, error: o } = e, r = me();
12250
+ return o ? /* @__PURE__ */ i(du, { error: o }) : t === !1 ? null : lo(t) ? t : typeof t == "string" ? /* @__PURE__ */ i(ot, { children: r(t, { _: t }) }) : /* @__PURE__ */ i("span", { dangerouslySetInnerHTML: Ag });
12251
+ }, "InputHelperText"), Ag = { __html: "&#8203;" }, Fc = /* @__PURE__ */ n(({
12247
12252
  afterSubmit: e,
12248
12253
  allowNull: t,
12249
12254
  alwaysOn: o,
@@ -12270,29 +12275,29 @@ const H0 = {
12270
12275
  optionText: R,
12271
12276
  optionValue: E,
12272
12277
  parse: D,
12273
- record: H,
12274
- ref: O,
12275
- refetch: V,
12278
+ record: V,
12279
+ ref: L,
12280
+ refetch: z,
12276
12281
  render: $,
12277
12282
  resource: k,
12278
- setFilter: L,
12283
+ setFilter: O,
12279
12284
  setPagination: v,
12280
12285
  setSort: _,
12281
12286
  shouldUnregister: K,
12282
12287
  source: q,
12283
12288
  submitError: Z,
12284
12289
  subscription: X,
12285
- textAlign: W,
12290
+ textAlign: G,
12286
12291
  translate: re,
12287
12292
  translateChoice: ne,
12288
12293
  validate: be,
12289
12294
  validateFields: N,
12290
12295
  value: Q,
12291
- ...me
12292
- }) => me, "sanitizeInputRestProps"), Ag = /* @__PURE__ */ n(({
12296
+ ...he
12297
+ }) => he, "sanitizeInputRestProps"), kg = /* @__PURE__ */ n(({
12293
12298
  className: e,
12294
12299
  defaultValue: t,
12295
- format: o = Eg,
12300
+ format: o = Dg,
12296
12301
  label: r,
12297
12302
  name: a,
12298
12303
  source: s,
@@ -12352,7 +12357,7 @@ const H0 = {
12352
12357
  isRequired: T
12353
12358
  }
12354
12359
  ),
12355
- InputLabelProps: _g,
12360
+ InputLabelProps: Eg,
12356
12361
  sx: { ...h, mt: 1 },
12357
12362
  ...Fc(w)
12358
12363
  }
@@ -12361,10 +12366,10 @@ const H0 = {
12361
12366
  if (!(e instanceof Date) || isNaN(e.getDate())) return "";
12362
12367
  const t = "00", o = e.getFullYear().toString(), r = (e.getMonth() + 1).toString(), a = e.getDate().toString();
12363
12368
  return `${o}-${(t + r).slice(-2)}-${(t + a).slice(-2)}`;
12364
- }, "convertDateToString$1"), kg = /^\d{4}-\d{2}-\d{2}$/, _g = { shrink: !0 }, Eg = /* @__PURE__ */ n((e) => e == null || e === "" ? "" : e instanceof Date ? ha(e) : kg.test(e) ? e : ha(new Date(e)), "getStringFromDate"), Dg = /* @__PURE__ */ n((e) => e ? new Date(e) : e === "" ? null : e, "parseDateTime"), Og = /* @__PURE__ */ n(({
12369
+ }, "convertDateToString$1"), _g = /^\d{4}-\d{2}-\d{2}$/, Eg = { shrink: !0 }, Dg = /* @__PURE__ */ n((e) => e == null || e === "" ? "" : e instanceof Date ? ha(e) : _g.test(e) ? e : ha(new Date(e)), "getStringFromDate"), Og = /* @__PURE__ */ n((e) => e ? new Date(e) : e === "" ? null : e, "parseDateTime"), Lg = /* @__PURE__ */ n(({
12365
12370
  className: e,
12366
12371
  defaultValue: t,
12367
- format: o = $g,
12372
+ format: o = Vg,
12368
12373
  label: r,
12369
12374
  helperText: a,
12370
12375
  margin: s,
@@ -12372,7 +12377,7 @@ const H0 = {
12372
12377
  onChange: c,
12373
12378
  source: u,
12374
12379
  resource: p,
12375
- parse: d = Dg,
12380
+ parse: d = Og,
12376
12381
  validate: f,
12377
12382
  variant: g,
12378
12383
  disabled: m,
@@ -12422,16 +12427,16 @@ const H0 = {
12422
12427
  isRequired: x
12423
12428
  }
12424
12429
  ),
12425
- InputLabelProps: Ng,
12430
+ InputLabelProps: $g,
12426
12431
  sx: { ...b, mt: 1 },
12427
12432
  ...Fc(h)
12428
12433
  }
12429
12434
  );
12430
- }, "DateTimeInput"), Ac = /* @__PURE__ */ n((e = 2) => (t) => ("0".repeat(e) + t).slice(-e), "leftPad"), Lg = Ac(4), Vn = Ac(2), ga = /* @__PURE__ */ n((e) => {
12435
+ }, "DateTimeInput"), Ac = /* @__PURE__ */ n((e = 2) => (t) => ("0".repeat(e) + t).slice(-e), "leftPad"), Bg = Ac(4), Vn = Ac(2), ga = /* @__PURE__ */ n((e) => {
12431
12436
  if (!(e instanceof Date) || isNaN(e.getDate())) return "";
12432
- const t = Lg(e.getFullYear()), o = Vn(e.getMonth() + 1), r = Vn(e.getDate()), a = Vn(e.getHours()), s = Vn(e.getMinutes());
12437
+ const t = Bg(e.getFullYear()), o = Vn(e.getMonth() + 1), r = Vn(e.getDate()), a = Vn(e.getHours()), s = Vn(e.getMinutes());
12433
12438
  return `${t}-${o}-${r}T${a}:${s}`;
12434
- }, "convertDateToString"), Bg = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/, Ng = { shrink: !0 }, $g = /* @__PURE__ */ n((e) => e == null || e === "" ? "" : e instanceof Date ? ga(e) : Bg.test(e) ? e : ga(new Date(e)), "formatDateTime"), Vg = /* @__PURE__ */ n(({
12439
+ }, "convertDateToString"), Ng = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/, $g = { shrink: !0 }, Vg = /* @__PURE__ */ n((e) => e == null || e === "" ? "" : e instanceof Date ? ga(e) : Ng.test(e) ? e : ga(new Date(e)), "formatDateTime"), zg = /* @__PURE__ */ n(({
12435
12440
  totalDigits: e = 10,
12436
12441
  maxDecimals: t = 2,
12437
12442
  decimalComma: o = !0,
@@ -12474,7 +12479,7 @@ const H0 = {
12474
12479
  format: u
12475
12480
  }
12476
12481
  );
12477
- }, "DecimalInput"), zg = /* @__PURE__ */ n(({ maxLength: e = 10, allowNegative: t = !0, ...o }) => {
12482
+ }, "DecimalInput"), Wg = /* @__PURE__ */ n(({ maxLength: e = 10, allowNegative: t = !0, ...o }) => {
12478
12483
  const r = te(
12479
12484
  (l) => {
12480
12485
  if (!l) return "";
@@ -12497,11 +12502,11 @@ const H0 = {
12497
12502
  }
12498
12503
  }
12499
12504
  );
12500
- }, "IntegerInput"), nx = /* @__PURE__ */ n((e) => {
12505
+ }, "IntegerInput"), ix = /* @__PURE__ */ n((e) => {
12501
12506
  const { tipo: t, ...o } = e, { propsContenido: r, hidden: a } = Qe(o), s = {
12502
12507
  ...r
12503
12508
  };
12504
- return a ? null : t === "N" ? /* @__PURE__ */ i(zg, { ...s }) : t === "D" ? /* @__PURE__ */ i(Vg, { ...s, totalDigits: s.maxLength }) : t === "F" ? /* @__PURE__ */ i(Ag, { ...s }) : t === "Z" ? /* @__PURE__ */ i(Og, { ...s }) : t === "H" ? /* @__PURE__ */ i(Et, { ...s, type: "time" }) : t === "TF" ? /* @__PURE__ */ i(
12509
+ return a ? null : t === "N" ? /* @__PURE__ */ i(Wg, { ...s }) : t === "D" ? /* @__PURE__ */ i(zg, { ...s, totalDigits: s.maxLength }) : t === "F" ? /* @__PURE__ */ i(kg, { ...s }) : t === "Z" ? /* @__PURE__ */ i(Lg, { ...s }) : t === "H" ? /* @__PURE__ */ i(Et, { ...s, type: "time" }) : t === "TF" ? /* @__PURE__ */ i(
12505
12510
  Et,
12506
12511
  {
12507
12512
  ...s,
@@ -12514,7 +12519,7 @@ const H0 = {
12514
12519
  inputProps: { maxLength: s.maxLength }
12515
12520
  }
12516
12521
  );
12517
- }, "TextBox"), Gi = /* @__PURE__ */ n((e) => typeof e == "string" ? e.trimStart() : e, "trimLeading"), ix = /* @__PURE__ */ n((e) => {
12522
+ }, "TextBox"), Gi = /* @__PURE__ */ n((e) => typeof e == "string" ? e.trimStart() : e, "trimLeading"), rx = /* @__PURE__ */ n((e) => {
12518
12523
  const { label: t, sx: o, source: r } = e, a = qe(), { estado: s } = Te(), {
12519
12524
  hidden: l,
12520
12525
  propsContenido: { helperText: c, sx: u, readOnly: p, onChange: d, InputProps: f }
@@ -12558,7 +12563,7 @@ const H0 = {
12558
12563
  }
12559
12564
  ),
12560
12565
  /* @__PURE__ */ i(
12561
- tg,
12566
+ og,
12562
12567
  {
12563
12568
  ...e,
12564
12569
  label: t,
@@ -12573,110 +12578,110 @@ const H0 = {
12573
12578
  }, "TextCombo");
12574
12579
  export {
12575
12580
  Rp as AppBar,
12576
- N0 as Asistente,
12581
+ $0 as Asistente,
12577
12582
  Qi as AsistenteContext,
12578
12583
  hs as AsistenteProvider,
12579
- j0 as BooleanField,
12580
- q0 as Camino,
12581
- U0 as CheckBox,
12582
- tg as ComboBox,
12583
- K0 as ComboBoxManual,
12584
+ q0 as BooleanField,
12585
+ U0 as Camino,
12586
+ K0 as CheckBox,
12587
+ og as ComboBox,
12588
+ X0 as ComboBoxManual,
12584
12589
  Ye as ConfigContext,
12585
- P0 as CreateEtriek,
12586
- I0 as DeleteButtonNoWarning,
12587
- R0 as EditEtriek,
12588
- y0 as EtrGrid,
12589
- n0 as FichaActions,
12590
+ M0 as CreateEtriek,
12591
+ R0 as DeleteButtonNoWarning,
12592
+ T0 as EditEtriek,
12593
+ x0 as EtrGrid,
12594
+ i0 as FichaActions,
12590
12595
  Mr as FichaContext,
12591
12596
  Ir as FichaProvider,
12592
- ag as FiltroAsisTBS,
12593
- Ig as FiltroFuncionarios,
12597
+ lg as FiltroAsisTBS,
12598
+ Rg as FiltroFuncionarios,
12594
12599
  Gn as FormClasses,
12595
- T0 as FormDialog,
12596
- F0 as FormEtriek,
12597
- b0 as FormResolverProvider,
12598
- W0 as FormTab,
12599
- $0 as FormToolbar,
12600
+ F0 as FormDialog,
12601
+ A0 as FormEtriek,
12602
+ y0 as FormResolverProvider,
12603
+ G0 as FormTab,
12604
+ V0 as FormToolbar,
12600
12605
  Fl as FormToolbarContext,
12601
12606
  Al as FormToolbarProvider,
12602
- x0 as GE,
12607
+ C0 as GE,
12603
12608
  Th as GridButton,
12604
12609
  Rm as GrillaEtriek,
12605
12610
  bl as GrillaEtriekContext,
12606
12611
  ys as GrillaEtriekProvider,
12607
12612
  Zo as IdContext,
12608
- X0 as ImageField,
12609
- A0 as Layout,
12613
+ Y0 as ImageField,
12614
+ k0 as Layout,
12610
12615
  Mh as ListActionsEtriek,
12611
- Y0 as ListCheck,
12612
- M0 as ListEtriek,
12613
- V0 as Loading,
12614
- k0 as Login,
12616
+ J0 as ListCheck,
12617
+ I0 as ListEtriek,
12618
+ z0 as Loading,
12619
+ _0 as Login,
12615
12620
  vh as Menu,
12616
- _0 as MenuButton,
12617
- E0 as MultiTextField,
12618
- J0 as Password,
12619
- w0 as PreviewSandboxProvider,
12621
+ E0 as MenuButton,
12622
+ D0 as MultiTextField,
12623
+ Q0 as Password,
12624
+ S0 as PreviewSandboxProvider,
12620
12625
  gl as ProgressContext,
12621
12626
  Io as ProgressProvider,
12622
- Q0 as RadioButton,
12623
- Z0 as RadioButtonManual,
12627
+ Z0 as RadioButton,
12628
+ ex as RadioButtonManual,
12624
12629
  wh as RefreshButton,
12625
- z0 as SectionGroup,
12626
- o0 as Separador,
12627
- D0 as ShowEtriek,
12628
- O0 as ShowGridButton,
12630
+ W0 as SectionGroup,
12631
+ n0 as Separador,
12632
+ O0 as ShowEtriek,
12633
+ L0 as ShowGridButton,
12629
12634
  Ch as SubMenu,
12630
- tx as TBSF,
12631
- L0 as TabbedFormEtriek,
12632
- C0 as TabbedGrillaEtriek,
12633
- ox as TextArea,
12634
- nx as TextBox,
12635
- ex as TextBoxSelection,
12636
- ix as TextCombo,
12635
+ ox as TBSF,
12636
+ B0 as TabbedFormEtriek,
12637
+ v0 as TabbedGrillaEtriek,
12638
+ nx as TextArea,
12639
+ ix as TextBox,
12640
+ tx as TextBoxSelection,
12641
+ rx as TextCombo,
12637
12642
  qp as TextField,
12638
12643
  mi as ToolbarFicha,
12639
12644
  Cl as WinContext,
12640
- l0 as choicesEstado,
12645
+ c0 as choicesEstado,
12641
12646
  er as clearReduxScopeAction,
12642
- Yy as dateFormat,
12643
- r0 as dateFormatOptions,
12644
- Jy as dateParser,
12645
- Qy as dateTimeFormat,
12646
- Zy as dateTimeParser,
12647
- f0 as dateTimeToString,
12648
- p0 as dateToString,
12647
+ Jy as dateFormat,
12648
+ s0 as dateFormatOptions,
12649
+ Qy as dateParser,
12650
+ Zy as dateTimeFormat,
12651
+ e0 as dateTimeParser,
12652
+ m0 as dateTimeToString,
12653
+ f0 as dateToString,
12649
12654
  _p as deleteRecargarComboBox,
12650
12655
  Wp as descargarLink,
12651
- c0 as descargarUrl,
12652
- G0 as enMessages,
12656
+ d0 as descargarUrl,
12657
+ H0 as enMessages,
12653
12658
  Yt as esAccionVisible,
12654
- H0 as esMessages,
12659
+ j0 as esMessages,
12655
12660
  en as estaAccionOculta,
12656
- s0 as etrFechaMayorQue,
12661
+ a0 as etrFechaMayorQue,
12657
12662
  xl as etrRequerido,
12658
- i0 as etrRequeridoNumerico,
12663
+ r0 as etrRequeridoNumerico,
12659
12664
  Br as getClassesForm,
12660
12665
  Np as getFormcodFromResource,
12661
- a0 as localeOptions,
12666
+ l0 as localeOptions,
12662
12667
  kp as recargarComboBox,
12663
- h0 as renderCellComboBox,
12664
- S0 as resetForm,
12668
+ g0 as renderCellComboBox,
12669
+ P0 as resetForm,
12665
12670
  Dp as setDisableAction,
12666
12671
  Lp as setErrorAction,
12667
12672
  Ep as setHiddenAction,
12668
12673
  Bp as setLabelAction,
12669
12674
  Op as setRequireAction,
12670
- d0 as stringToDate,
12671
- u0 as stringToDateTime,
12672
- B0 as themes,
12675
+ u0 as stringToDate,
12676
+ p0 as stringToDateTime,
12677
+ N0 as themes,
12673
12678
  vl as tienePermisoBotonEspecial,
12674
- e0 as timeFormat,
12675
- t0 as timeParser,
12679
+ t0 as timeFormat,
12680
+ o0 as timeParser,
12676
12681
  Rr as useAjax,
12677
12682
  St as useAsistente,
12678
12683
  Qe as useContenidoController,
12679
- g0 as useEtrActions,
12684
+ b0 as useEtrActions,
12680
12685
  Te as useFicha,
12681
12686
  Dl as useFieldController,
12682
12687
  $f as useFormResolver,
@@ -12690,10 +12695,10 @@ export {
12690
12695
  Lm as useNuevo,
12691
12696
  fn as usePreviewSandbox,
12692
12697
  fi as usePreviewSandboxResource,
12693
- v0 as useReferenceLabel,
12698
+ w0 as useReferenceLabel,
12694
12699
  _l as useResourceRefresh,
12695
12700
  Ct as useUtils,
12696
12701
  di as useUtilsGrilla,
12697
- m0 as useUtilsSubmit
12702
+ h0 as useUtilsSubmit
12698
12703
  };
12699
12704
  //# sourceMappingURL=index.js.map