biblio-react 3.0.45 → 3.0.46

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
@@ -242,15 +242,15 @@ const Mp = dr((e, t) => {
242
242
  handleSeleccionMultiple: r,
243
243
  pivotEnabled: gs,
244
244
  pivotUi: bs
245
- }), [g, m] = ee("grilla"), b = d.pivotEnabled ?? gs, y = d.pivotUi ?? bs, h = te((P) => {
245
+ }), [g, m] = ee("grilla"), y = d.pivotEnabled ?? gs, b = d.pivotUi ?? bs, h = te((P) => {
246
246
  m((M) => {
247
247
  const x = typeof P == "function" ? P(M) : P;
248
- return !b && x === "pivot" ? "grilla" : x;
248
+ return !y && x === "pivot" ? "grilla" : x;
249
249
  });
250
- }, [b]);
250
+ }, [y]);
251
251
  oe(() => {
252
- !b && g === "pivot" && m("grilla");
253
- }, [b, g]);
252
+ !y && g === "pivot" && m("grilla");
253
+ }, [y, g]);
254
254
  const w = de(
255
255
  () => ({
256
256
  props: {
@@ -265,8 +265,8 @@ const Mp = dr((e, t) => {
265
265
  gridContainerRef: p,
266
266
  viewMode: g,
267
267
  setViewMode: h,
268
- pivotEnabled: b,
269
- pivotUi: y
268
+ pivotEnabled: y,
269
+ pivotUi: b
270
270
  },
271
271
  setProps: /* @__PURE__ */ n((P) => {
272
272
  f((M) => ({ ...M, ...P }));
@@ -284,8 +284,8 @@ const Mp = dr((e, t) => {
284
284
  p,
285
285
  g,
286
286
  h,
287
- b,
288
- y
287
+ y,
288
+ b
289
289
  ]
290
290
  );
291
291
  return /* @__PURE__ */ i(bl.Provider, { value: w, children: l });
@@ -401,9 +401,9 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
401
401
  hidden: f,
402
402
  required: g,
403
403
  disabled: m,
404
- label: b
404
+ label: y
405
405
  } = d.length === 0 || !d[t] ? { hidden: 0, required: 0, disabled: 0, label: void 0 } : d[t], {
406
- disabled: y,
406
+ disabled: b,
407
407
  hidden: h,
408
408
  required: w,
409
409
  error: P,
@@ -446,7 +446,7 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
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 = y !== void 0 ? y : se !== void 0 ? se : m ? !0 : be, nt = de(() => {
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
450
  const pe = Array.isArray(V) ? V : [V], Ge = Array.isArray(X) ? X : [X], Ke = Array.isArray(ue) ? ue : [ue];
451
451
  let Ne = [
452
452
  ...pe,
@@ -483,7 +483,7 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
483
483
  ...re,
484
484
  ...ve,
485
485
  readOnly: Mt,
486
- ...M ? { label: M } : { label: b || e.label },
486
+ ...M ? { label: M } : { label: y || e.label },
487
487
  isRequired: Ae,
488
488
  ...I
489
489
  },
@@ -554,8 +554,8 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
554
554
  defaultTitle: f,
555
555
  setPage: g,
556
556
  setFilters: m,
557
- selectedIds: b,
558
- onUnselectItems: y,
557
+ selectedIds: y,
558
+ onUnselectItems: b,
559
559
  onToggleItem: h,
560
560
  isLoading: w,
561
561
  exporter: P,
@@ -790,9 +790,9 @@ 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), b = Ce(Pa), y = 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 = 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) => {
794
794
  const I = T?.name;
795
- !I || y?.[I] || b?.register?.(T);
795
+ !I || b?.[I] || y?.register?.(T);
796
796
  }, "registerResource");
797
797
  return {
798
798
  ajax: m,
@@ -818,8 +818,8 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
818
818
  }, "useUtilsGrilla"), m0 = /* @__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
- setPropsContenidos: b,
822
- fichaProps: { etrs: y = {} } = {}
821
+ setPropsContenidos: y,
822
+ fichaProps: { etrs: b = {} } = {}
823
823
  } = Te() || {}, h = Ce(ko) || {}, [w] = Rr(f);
824
824
  return {
825
825
  ajax: w,
@@ -829,13 +829,13 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
829
829
  recargarComboBox: t,
830
830
  progress: c,
831
831
  asistente: g,
832
- ficha: { propsContenidos: m, setPropsContenidos: b },
832
+ ficha: { propsContenidos: m, setPropsContenidos: y },
833
833
  setHidden: o,
834
834
  setDisable: r,
835
835
  setRequire: a,
836
836
  setError: s,
837
837
  setLabel: l,
838
- etrs: y,
838
+ etrs: b,
839
839
  asisEtr: h
840
840
  };
841
841
  }, "useUtilsSubmit"), Rn = /* @__PURE__ */ new Map(), Ct = /* @__PURE__ */ n((e) => {
@@ -853,7 +853,7 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
853
853
  return v?.size === 1 ? v.values().next().value.form : null;
854
854
  }, "getForm"), p = /* @__PURE__ */ n((...v) => u()?.trigger?.(...v), "trigger"), d = /* @__PURE__ */ n((v) => (_, K) => {
855
855
  v(_, K), setTimeout(() => p(_), 0);
856
- }, "withRevalidate"), f = kl(), g = Sl(), m = Pl(), b = Ml(), y = Il(), h = Rl(), w = Tl(), P = Ao(), M = ht(), x = Ot(), T = ii(), I = St(), R = wl(), E = Ce(Pa), D = ur(), {
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
857
  propsContenidos: H,
858
858
  setPropsContenidos: O,
859
859
  fichaProps: { etrs: V = {} } = {}
@@ -879,8 +879,8 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
879
879
  ficha: { propsContenidos: H, setPropsContenidos: O },
880
880
  setHiddenButton: f?.setHidden,
881
881
  setHidden: d(m),
882
- setDisable: d(b),
883
- setRequire: d(y),
882
+ setDisable: d(y),
883
+ setRequire: d(b),
884
884
  setError: d(h),
885
885
  setLabel: d(w),
886
886
  etrs: V,
@@ -1310,7 +1310,7 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
1310
1310
  displayValue: p,
1311
1311
  formattedValue: o,
1312
1312
  value: t
1313
- }), m = e?.type === "boolean" || g !== null, b = yf(e, t), y = zl(e, t);
1313
+ }), m = e?.type === "boolean" || g !== null, y = yf(e, t), b = zl(e, t);
1314
1314
  if (m) {
1315
1315
  const P = g !== null ? g : mf(t), M = P ? u.palette.success.main : u.palette.error.main;
1316
1316
  return /* @__PURE__ */ F(
@@ -1461,7 +1461,7 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
1461
1461
  }
1462
1462
  );
1463
1463
  }
1464
- const h = y.isNumber ? y.isDecimal ? Qp : Jp : b ? Zp : u.palette.text?.primary || ef, w = y.isNumber ? 650 : 600;
1464
+ const h = b.isNumber ? b.isDecimal ? Qp : Jp : y ? Zp : u.palette.text?.primary || ef, w = b.isNumber ? 650 : 600;
1465
1465
  return /* @__PURE__ */ i(
1466
1466
  U,
1467
1467
  {
@@ -1533,7 +1533,7 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
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
- }, [e.row, f]), b = typeof e.primaryText == "function" ? e.primaryText(e.row) : e.primaryText, y = typeof e.primaryTextPrefix == "function" ? e.primaryTextPrefix(e.row) : e.primaryTextPrefix, h = typeof e.secondaryText == "function" ? e.secondaryText(e.row) : e.secondaryText, w = S.useCallback(
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
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";
1539
1539
  return I.endsWith("_lis") || (!x?.align || I.endsWith("nom")) && !R ? {
@@ -1556,9 +1556,9 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
1556
1556
  [o]
1557
1557
  ), P = S.useMemo(
1558
1558
  () => c.filter(
1559
- (x) => y || x.field !== f
1559
+ (x) => b || x.field !== f
1560
1560
  ),
1561
- [c, y, f]
1561
+ [c, b, f]
1562
1562
  ), M = /* @__PURE__ */ n((x, T, I) => {
1563
1563
  if (typeof x?.valueFormatter == "function") {
1564
1564
  try {
@@ -1608,7 +1608,7 @@ const tr = /* @__PURE__ */ n((e = "scope") => (xs += 1, `${e}-${xs}`), "createRe
1608
1608
  /* @__PURE__ */ i(
1609
1609
  cd,
1610
1610
  {
1611
- title: b ?? ([y, m].filter((x) => x != null && x !== "").join(" — ") || "Detalle del registro"),
1611
+ title: y ?? ([b, m].filter((x) => x != null && x !== "").join(" — ") || "Detalle del registro"),
1612
1612
  subheader: h ?? g,
1613
1613
  action: e.showAction ? /* @__PURE__ */ i(
1614
1614
  U,
@@ -1998,13 +1998,13 @@ 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, b = /* @__PURE__ */ n((h, w) => {
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) => {
2002
2002
  p.current.sortColumn(h, w, !0);
2003
2003
  }, "handleSortChange");
2004
2004
  S.useEffect(() => {
2005
2005
  a?.current && u(a.current);
2006
2006
  }, [a]);
2007
- const y = /* @__PURE__ */ F(S.Fragment, { children: [
2007
+ const b = /* @__PURE__ */ F(S.Fragment, { children: [
2008
2008
  /* @__PURE__ */ i(
2009
2009
  Jn,
2010
2010
  {
@@ -2030,7 +2030,7 @@ function Tf(e) {
2030
2030
  return P && (M = P.sort === "asc" ? "desc" : null), /* @__PURE__ */ i(yr, { disablePadding: !0, children: /* @__PURE__ */ F(
2031
2031
  qt,
2032
2032
  {
2033
- onClick: /* @__PURE__ */ n(() => b(h.field, M), "onClick"),
2033
+ onClick: /* @__PURE__ */ n(() => y(h.field, M), "onClick"),
2034
2034
  children: [
2035
2035
  /* @__PURE__ */ i(Ut, { children: P && /* @__PURE__ */ i(
2036
2036
  cs,
@@ -2048,7 +2048,7 @@ function Tf(e) {
2048
2048
  }
2049
2049
  )
2050
2050
  ] });
2051
- return a && !c ? null : c ? xr(y, c) : y;
2051
+ return a && !c ? null : c ? xr(b, c) : b;
2052
2052
  }
2053
2053
  n(Tf, "ToolbarSortItem");
2054
2054
  const Hl = /* @__PURE__ */ n((e) => typeof e == "boolean" ? e : !!parseInt(e), "getBooleanGridValue"), _r = /* @__PURE__ */ n((e) => e ? "Si" : "No", "formatBooleanExportValue"), Ff = /* @__PURE__ */ n((e, t) => {
@@ -2108,8 +2108,8 @@ const Hl = /* @__PURE__ */ n((e) => typeof e == "boolean" ? e : !!parseInt(e), "
2108
2108
  return;
2109
2109
  const d = c / u.length, f = u.map(() => d), g = t.fileName?.replace(/_/g, " ") || "Grilla";
2110
2110
  let m = vs(r, g, a, a + 8);
2111
- const b = 7, y = u.length > 10 ? 5 : 7;
2112
- r.setFontSize(y), ws(r, u, f, a, m, b), m += b, p.forEach((w) => {
2111
+ const y = 7, b = u.length > 10 ? 5 : 7;
2112
+ r.setFontSize(b), ws(r, u, f, a, m, y), m += y, p.forEach((w) => {
2113
2113
  const P = u.map(
2114
2114
  (T, I) => r.splitTextToSize(
2115
2115
  Of(e, w, T),
@@ -2119,7 +2119,7 @@ const Hl = /* @__PURE__ */ n((e) => typeof e == "boolean" ? e : !!parseInt(e), "
2119
2119
  6,
2120
2120
  ...P.map((T) => T.length * 3.2 + 2.4)
2121
2121
  );
2122
- m + M > l - a && (r.addPage(), m = vs(r, g, a, a + 8), r.setFontSize(y), ws(r, u, f, a, m, b), m += b);
2122
+ m + M > l - a && (r.addPage(), m = vs(r, g, a, a + 8), r.setFontSize(b), ws(r, u, f, a, m, y), m += y);
2123
2123
  let x = a;
2124
2124
  u.forEach((T, I) => {
2125
2125
  r.setDrawColor(225, 229, 235), r.rect(x, m, f[I], M), r.text(P[I], x + 1.2, m + 4, {
@@ -2168,7 +2168,7 @@ const Hl = /* @__PURE__ */ n((e) => typeof e == "boolean" ? e : !!parseInt(e), "
2168
2168
  excelOptions: f = {},
2169
2169
  printOptions: g = {},
2170
2170
  ...m
2171
- } = o, { slotProps: b = {}, ...y } = m, h = ye(), w = ti({ resource: h }), P = S.useContext(Ye) || {};
2171
+ } = o, { slotProps: y = {}, ...b } = m, h = ye(), w = ti({ resource: h }), P = S.useContext(Ye) || {};
2172
2172
  oe(() => {
2173
2173
  e?.current && a(e.current);
2174
2174
  }, [e]);
@@ -2234,20 +2234,20 @@ const Hl = /* @__PURE__ */ n((e) => typeof e == "boolean" ? e : !!parseInt(e), "
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 || !!b?.button?.disabled;
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
2238
  return !O && !V && !$ ? null : xr(
2239
2239
  /* @__PURE__ */ F(
2240
2240
  xu,
2241
2241
  {
2242
2242
  slotProps: {
2243
- ...b,
2243
+ ...y,
2244
2244
  button: {
2245
- ...b?.button,
2245
+ ...y?.button,
2246
2246
  disabled: k,
2247
- sx: Ul(b?.button?.sx)
2247
+ sx: Ul(y?.button?.sx)
2248
2248
  }
2249
2249
  },
2250
- ...y,
2250
+ ...b,
2251
2251
  children: [
2252
2252
  O && /* @__PURE__ */ i(
2253
2253
  Ai,
@@ -2322,7 +2322,7 @@ function Nf(e) {
2322
2322
  } = Nt(), m = co(
2323
2323
  c,
2324
2324
  vu
2325
- ), b = s && m > 0, y = t && f && !l && !b, h = /* @__PURE__ */ n(() => {
2325
+ ), y = s && m > 0, b = t && f && !l && !y, h = /* @__PURE__ */ n(() => {
2326
2326
  c.current.setRowSelectionModel([]);
2327
2327
  }, "handleClearSelection"), w = {
2328
2328
  listView: t,
@@ -2334,7 +2334,7 @@ function Nf(e) {
2334
2334
  wu,
2335
2335
  {
2336
2336
  sx: {
2337
- display: y ? "none" : "flex",
2337
+ display: b ? "none" : "flex",
2338
2338
  position: "relative",
2339
2339
  borderBottom: "1px solid",
2340
2340
  borderColor: Ju[300],
@@ -2343,7 +2343,7 @@ function Nf(e) {
2343
2343
  py: 0.25,
2344
2344
  gap: 0
2345
2345
  },
2346
- children: b ? /* @__PURE__ */ F(S.Fragment, { children: [
2346
+ children: y ? /* @__PURE__ */ F(S.Fragment, { children: [
2347
2347
  /* @__PURE__ */ i(
2348
2348
  Jn,
2349
2349
  {
@@ -2592,21 +2592,21 @@ const Yl = st({ resolve: null }), b0 = /* @__PURE__ */ n(({ resolve: e, children
2592
2592
  ), d = pt((O) => O.breakpoints.down("sm")), [f, g] = S.useState(null), m = S.useMemo(
2593
2593
  () => l ? Rs(s) : null,
2594
2594
  [l, s]
2595
- ), b = S.useMemo(
2595
+ ), y = S.useMemo(
2596
2596
  () => `metiri_popup_size_${r}`,
2597
2597
  [r]
2598
- ), [y, h] = S.useState(
2599
- () => qf(b)
2598
+ ), [b, h] = S.useState(
2599
+ () => qf(y)
2600
2600
  ), w = S.useRef(null), P = S.useMemo(() => {
2601
2601
  const O = m?.getBoundingClientRect?.() ?? Is(s);
2602
2602
  return Ts({ rect: O, ratio: p });
2603
2603
  }, [s, m, p]);
2604
2604
  S.useEffect(() => {
2605
- y || d || h({
2605
+ b || d || h({
2606
2606
  width: P.width,
2607
2607
  height: P.height
2608
2608
  });
2609
- }, [P.height, P.width, d, y]), S.useEffect(() => {
2609
+ }, [P.height, P.width, d, b]), S.useEffect(() => {
2610
2610
  if (!f || d || typeof ResizeObserver > "u")
2611
2611
  return;
2612
2612
  const O = new ResizeObserver((V) => {
@@ -2618,26 +2618,26 @@ const Yl = st({ resolve: null }), b0 = /* @__PURE__ */ n(({ resolve: e, children
2618
2618
  height: Math.round($.contentRect.height)
2619
2619
  };
2620
2620
  h((L) => L?.width === k.width && L?.height === k.height ? L : k), w.current && clearTimeout(w.current), w.current = setTimeout(() => {
2621
- Fs(b, k);
2621
+ Fs(y, k);
2622
2622
  }, 200);
2623
2623
  });
2624
2624
  return O.observe(f), () => {
2625
2625
  w.current && clearTimeout(w.current), O.disconnect();
2626
2626
  };
2627
- }, [f, b, d]);
2627
+ }, [f, y, d]);
2628
2628
  const M = S.useCallback(
2629
2629
  (O) => {
2630
2630
  const V = m?.getBoundingClientRect?.() ?? Is(s), $ = Ts({ rect: V, ratio: p }), k = {
2631
2631
  width: $.width,
2632
2632
  height: $.height
2633
2633
  };
2634
- if (Uf(b), Fs(b, k), h(k), d)
2634
+ if (Uf(y), Fs(y, k), h(k), d)
2635
2635
  return;
2636
2636
  const L = f ?? O?.currentTarget?.closest?.(".MuiDialog-paper") ?? null;
2637
2637
  Kf(L, $);
2638
2638
  },
2639
- [s, d, f, m, p, b]
2640
- ), x = y || {
2639
+ [s, d, f, m, p, y]
2640
+ ), x = b || {
2641
2641
  width: P.width,
2642
2642
  height: P.height
2643
2643
  }, T = P.maxWidth, I = P.maxHeight, R = P.minWidth, E = P.minHeight, D = l ? "100%" : "100vw", H = l ? "100%" : "100dvh";
@@ -2848,7 +2848,7 @@ const Yl = st({ resolve: null }), b0 = /* @__PURE__ */ n(({ resolve: e, children
2848
2848
  d?.create,
2849
2849
  a
2850
2850
  ]
2851
- ), b = S.useCallback(
2851
+ ), y = S.useCallback(
2852
2852
  (h) => {
2853
2853
  const w = d?.edit, P = h?.id ?? h?.record?.id;
2854
2854
  if (!w || !o || !l?.show || !P)
@@ -2897,7 +2897,7 @@ const Yl = st({ resolve: null }), b0 = /* @__PURE__ */ n(({ resolve: e, children
2897
2897
  d?.edit,
2898
2898
  a
2899
2899
  ]
2900
- ), y = S.useCallback(
2900
+ ), b = S.useCallback(
2901
2901
  (h) => {
2902
2902
  const w = d?.show, P = h?.id;
2903
2903
  if (!w || !o || !l?.show || !P)
@@ -2927,7 +2927,7 @@ const Yl = st({ resolve: null }), b0 = /* @__PURE__ */ n(({ resolve: e, children
2927
2927
  d?.show
2928
2928
  ]
2929
2929
  );
2930
- return { showCreate: m, showEdit: b, showShow: y };
2930
+ return { showCreate: m, showEdit: y, showShow: b };
2931
2931
  }, "useAsistentePopup"), Jl = /* @__PURE__ */ n((e, t) => S.isValidElement(e) ? e : typeof e == "function" ? /* @__PURE__ */ i(e, {}) : t, "resolveActionIcon$1"), Jf = /* @__PURE__ */ n((e, t, o) => /* @__PURE__ */ i(
2932
2932
  U,
2933
2933
  {
@@ -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(), b = di(e), y = 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 = 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;
2962
2962
  return /* @__PURE__ */ F(
2963
2963
  U,
2964
2964
  {
@@ -2994,7 +2994,7 @@ const Yl = st({ resolve: null }), b0 = /* @__PURE__ */ n(({ resolve: e, children
2994
2994
  color: M ? "inherit" : "primary"
2995
2995
  }
2996
2996
  ),
2997
- M ? void 0 : y.palette.primary.main
2997
+ M ? void 0 : b.palette.primary.main
2998
2998
  ) : l ? /* @__PURE__ */ i(Un, { color: "inherit" }) : [] }),
2999
2999
  /* @__PURE__ */ i(
3000
3000
  kt,
@@ -3061,7 +3061,7 @@ const Yl = st({ resolve: null }), b0 = /* @__PURE__ */ n(({ resolve: e, children
3061
3061
  {
3062
3062
  onClick: /* @__PURE__ */ n(() => typeof R.handler == "function" ? (f && f(), R.handler(
3063
3063
  {
3064
- ...b,
3064
+ ...y,
3065
3065
  record: t.row
3066
3066
  },
3067
3067
  R.key
@@ -3127,15 +3127,15 @@ const Yl = st({ resolve: null }), b0 = /* @__PURE__ */ n(({ resolve: e, children
3127
3127
  type: p,
3128
3128
  ...d
3129
3129
  }) => {
3130
- const f = Ja(), g = a?.root?.slotProps, m = S.useId(), [b, y] = S.useState(
3130
+ const f = Ja(), g = a?.root?.slotProps, m = S.useId(), [y, b] = S.useState(
3131
3131
  () => _s(e.value)
3132
3132
  );
3133
3133
  S.useEffect(() => {
3134
- y(_s(e.value));
3134
+ b(_s(e.value));
3135
3135
  }, [e.value]);
3136
3136
  const h = /* @__PURE__ */ n((w) => {
3137
3137
  const P = om(w.target.value);
3138
- if (y(P), P === "") {
3138
+ if (b(P), P === "") {
3139
3139
  t({ ...e, value: void 0 });
3140
3140
  return;
3141
3141
  }
@@ -3150,7 +3150,7 @@ const Yl = st({ resolve: null }), b0 = /* @__PURE__ */ n(({ resolve: e, children
3150
3150
  id: m,
3151
3151
  label: o.current.getLocaleText("filterPanelInputLabel"),
3152
3152
  placeholder: "dd/mm/aaaa",
3153
- value: b,
3153
+ value: y,
3154
3154
  onChange: h,
3155
3155
  type: "text",
3156
3156
  disabled: u,
@@ -3506,8 +3506,8 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
3506
3506
  onLoadGrilla: f,
3507
3507
  mobileColumns: g,
3508
3508
  hasEdit: m,
3509
- editIcon: b,
3510
- deleteIcon: y,
3509
+ editIcon: y,
3510
+ deleteIcon: b,
3511
3511
  initialState: h = pm,
3512
3512
  convertFilterModelToFilterValues: w = ym,
3513
3513
  convertFilterValuesToFilterModel: P = Cm,
@@ -4034,7 +4034,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4034
4034
  onClick: fe,
4035
4035
  label: ne("ra.action.delete"),
4036
4036
  icon: rc(
4037
- y,
4037
+ b,
4038
4038
  /* @__PURE__ */ i(cn, {})
4039
4039
  ),
4040
4040
  showInMenu: !0
@@ -4072,7 +4072,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4072
4072
  {
4073
4073
  label: ne("ra.action.edit"),
4074
4074
  icon: wm(
4075
- b,
4075
+ y,
4076
4076
  /* @__PURE__ */ i(
4077
4077
  tl,
4078
4078
  {
@@ -4123,8 +4123,8 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4123
4123
  bn,
4124
4124
  M,
4125
4125
  Lo,
4126
- y,
4127
4126
  b,
4127
+ y,
4128
4128
  m,
4129
4129
  x,
4130
4130
  l,
@@ -4825,13 +4825,13 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4825
4825
  isRowEditable: f,
4826
4826
  isRowDeletable: g,
4827
4827
  borra: m,
4828
- nuevoDesde: b,
4829
- pivotActive: y = !1,
4828
+ nuevoDesde: y,
4829
+ pivotActive: b = !1,
4830
4830
  forceListView: h,
4831
4831
  ...w
4832
- } = e, P = S.useRef(null), M = Ce(Ye) || {}, { lang: x = [] } = M, T = en(M, "borrar") || en(M, "delete"), I = m && !T, R = y ? [] : (s || []).filter(
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 = !!(!y && (c || d || b || 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: 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(), {
4835
4835
  props: { gridContainerRef: K, chkSeleccion: q }
4836
4836
  } = Nt(), [Z, X] = S.useState({
4837
4837
  overlay: null,
@@ -4920,7 +4920,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
4920
4920
  showQuickFilter: !1,
4921
4921
  listView: $,
4922
4922
  container: null,
4923
- pivotActive: y
4923
+ pivotActive: b
4924
4924
  },
4925
4925
  loadingOverlay: {
4926
4926
  variant: "linear-progress"
@@ -5003,7 +5003,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5003
5003
  disableVirtualization: k,
5004
5004
  onRowClick: void 0,
5005
5005
  onCellClick: /* @__PURE__ */ n((se, Fe) => {
5006
- y || !E || Fe?.defaultMuiPrevented || q || Wn.has(se?.field) || X({ overlay: "actions", params: se });
5006
+ b || !E || Fe?.defaultMuiPrevented || q || Wn.has(se?.field) || X({ overlay: "actions", params: se });
5007
5007
  }, "onCellClick"),
5008
5008
  hideFooterSelectedRowCount: !0,
5009
5009
  ...w,
@@ -5020,12 +5020,12 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5020
5020
  onClose: me,
5021
5021
  params: Z.params,
5022
5022
  actions: R,
5023
- hasEdit: y ? !1 : c,
5024
- hasVerFicha: y ? !1 : d,
5025
- isRowEditable: y ? void 0 : f,
5026
- isRowDeletable: y ? void 0 : g,
5027
- borra: y ? !1 : I,
5028
- nuevoDesde: y ? !1 : b,
5023
+ hasEdit: b ? !1 : c,
5024
+ hasVerFicha: b ? !1 : d,
5025
+ isRowEditable: b ? void 0 : f,
5026
+ isRowDeletable: b ? void 0 : g,
5027
+ borra: b ? !1 : I,
5028
+ nuevoDesde: b ? !1 : y,
5029
5029
  editIcon: u,
5030
5030
  deleteIcon: p
5031
5031
  }
@@ -5043,8 +5043,8 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5043
5043
  ...p
5044
5044
  } = e, d = a === !1 ? a : r?.borra, f = s, g = l, {
5045
5045
  props: { viewMode: m = "grilla" }
5046
- } = Nt(), b = c && m === "pivot";
5047
- return /* @__PURE__ */ i(U, { sx: { display: "flex", flexDirection: "column", gap: 1 }, children: !b && (t ? !0 : m === "ficha") ? /* @__PURE__ */ i(
5046
+ } = Nt(), y = c && m === "pivot";
5047
+ return /* @__PURE__ */ i(U, { sx: { display: "flex", flexDirection: "column", gap: 1 }, children: !y && (t ? !0 : m === "ficha") ? /* @__PURE__ */ i(
5048
5048
  Im,
5049
5049
  {
5050
5050
  ...p,
@@ -5052,7 +5052,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5052
5052
  borra: d,
5053
5053
  editIcon: f,
5054
5054
  deleteIcon: g,
5055
- pivotActive: b,
5055
+ pivotActive: y,
5056
5056
  pivotEnabled: c,
5057
5057
  pivotUi: u,
5058
5058
  forceListView: !0
@@ -5150,9 +5150,9 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5150
5150
  camposClaveFila: l,
5151
5151
  setOpen: c,
5152
5152
  open: u
5153
- } = e, { dirtyFields: p, isValid: d } = Ru(), { fichaProps: { [e.source]: f = {} } = {} } = Te(), g = Ao(), { onAfterRenderAsistente: m, ...b } = f, y = Ct({ resource: o });
5153
+ } = e, { dirtyFields: p, isValid: d } = Ru(), { fichaProps: { [e.source]: f = {} } = {} } = Te(), g = Ao(), { onAfterRenderAsistente: m, ...y } = f, b = Ct({ resource: o });
5154
5154
  return oe(() => {
5155
- u && typeof m == "function" && m({ ...y, form: t }, r);
5155
+ u && typeof m == "function" && m({ ...b, form: t }, r);
5156
5156
  }, [u]), /* @__PURE__ */ F(ot, { children: [
5157
5157
  /* @__PURE__ */ i(ai, { children: /* @__PURE__ */ i(ei, { spacing: 4, children: Hn.map(
5158
5158
  a,
@@ -5163,7 +5163,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5163
5163
  fullWidth: !0,
5164
5164
  sx: { margin: 0 },
5165
5165
  disabled: r !== "N" && (l.indexOf(h.props.source) !== -1 || h.props.disabled),
5166
- ...b[h.props.source]
5166
+ ...y[h.props.source]
5167
5167
  /*InputLabelProps: { shrink: true },*/
5168
5168
  })
5169
5169
  ) }) }),
@@ -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(), b = Qt(), y = Bl({ apiRef: b, 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 = ge()("ra.action.create");
5202
5202
  return /* @__PURE__ */ F(ot, { children: [
5203
5203
  /* @__PURE__ */ i(
5204
5204
  Je,
@@ -5227,7 +5227,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5227
5227
  h,
5228
5228
  w
5229
5229
  );
5230
- E !== !1 && (y(typeof E == "object" ? E : I, m), f(!1), u(P, I, h, w));
5230
+ E !== !1 && (b(typeof E == "object" ? E : I, m), f(!1), u(P, I, h, w));
5231
5231
  }, "handleSubmit"),
5232
5232
  children: /* @__PURE__ */ i(
5233
5233
  cc,
@@ -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(), b = qe(), y = Nl({ apiRef: m, source: s, enviarTodo: c }), h = "M", { estado: w } = Te(), P = Ct(), M = d("ra.action.edit");
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");
5263
5263
  return /* @__PURE__ */ F(ot, { children: [
5264
5264
  /* @__PURE__ */ i(
5265
5265
  Je,
@@ -5287,13 +5287,13 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5287
5287
  h,
5288
5288
  w
5289
5289
  );
5290
- R !== !1 && (y(l.id, typeof R == "object" ? R : T, b), g(!1), p(P, T, h, w));
5290
+ R !== !1 && (b(l.id, typeof R == "object" ? R : T, y), g(!1), p(P, T, h, w));
5291
5291
  }, "handleSubmit"),
5292
5292
  children: /* @__PURE__ */ i(
5293
5293
  cc,
5294
5294
  {
5295
5295
  source: s,
5296
- form: b,
5296
+ form: y,
5297
5297
  resource: r,
5298
5298
  estado: h,
5299
5299
  editors: t,
@@ -5318,7 +5318,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5318
5318
  enviarTodo: s,
5319
5319
  onBeforeSubmitAsistente: l = Ro,
5320
5320
  onAfterSubmitAsistente: c = Ro
5321
- } = e, [u, p] = S.useState(!1), d = Qt(), f = qe(), g = $l({ apiRef: d, source: a, enviarTodo: s }), { estado: m } = Te(), b = Ct();
5321
+ } = e, [u, p] = S.useState(!1), d = Qt(), f = qe(), g = $l({ apiRef: d, source: a, enviarTodo: s }), { estado: m } = Te(), y = Ct();
5322
5322
  return /* @__PURE__ */ F(dt, { children: [
5323
5323
  /* @__PURE__ */ i(
5324
5324
  Tm,
@@ -5337,7 +5337,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5337
5337
  title: t,
5338
5338
  content: o,
5339
5339
  onConfirm: /* @__PURE__ */ n(async (h) => {
5340
- await l(b, r, "B", m) !== !1 && (g(r.id, f), c(b, r, "B", m));
5340
+ await l(y, r, "B", m) !== !1 && (g(r.id, f), c(y, r, "B", m));
5341
5341
  }, "handleSubmit"),
5342
5342
  onClose: /* @__PURE__ */ n((h) => {
5343
5343
  p(!1), h.stopPropagation();
@@ -5366,8 +5366,8 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5366
5366
  hidden: f = !1,
5367
5367
  apiRef: g,
5368
5368
  source: m,
5369
- sxContainer: b = {},
5370
- slotSx: y,
5369
+ sxContainer: y = {},
5370
+ slotSx: b,
5371
5371
  filter: h,
5372
5372
  slots: w,
5373
5373
  slotProps: P,
@@ -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: y ? [qs, y] : qs, children: /* @__PURE__ */ i(
5683
+ }, [g, to, V, T.length, Oo]), Mt ? null : /* @__PURE__ */ i(U, { sx: b ? [qs, b] : qs, children: /* @__PURE__ */ i(
5684
5684
  U,
5685
5685
  {
5686
5686
  sx: {
@@ -5700,7 +5700,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5700
5700
  borderRadius: 0,
5701
5701
  marginTop: 1,
5702
5702
  overflow: "hidden",
5703
- ...b
5703
+ ...y
5704
5704
  },
5705
5705
  children: /* @__PURE__ */ i(Ca, { injectFirst: !0, children: /* @__PURE__ */ i(qa, { theme: O, children: /* @__PURE__ */ F(dt, { children: [
5706
5706
  /* @__PURE__ */ i(
@@ -5838,9 +5838,9 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5838
5838
  initialState: l,
5839
5839
  ...c
5840
5840
  } = e, { isLoading: u } = Te(), p = at(e), [d, f] = ee(o), [{ field: g, sort: m }] = o;
5841
- let b = {};
5841
+ let y = {};
5842
5842
  p && t.split(",").forEach((L) => {
5843
- L && (b[L] = [
5843
+ L && (y[L] = [
5844
5844
  {
5845
5845
  type: "string",
5846
5846
  comparison: "eq",
@@ -5849,7 +5849,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5849
5849
  }
5850
5850
  ]);
5851
5851
  });
5852
- const { estado: y, isLoading: h, fichaProps: w = {} } = Te(), P = Or(), M = Ct(e), {
5852
+ const { estado: b, isLoading: h, fichaProps: w = {} } = Te(), P = Or(), M = Ct(e), {
5853
5853
  isActive: x = !0,
5854
5854
  hasBeenActive: T = x
5855
5855
  } = ui() || {}, { [e.source]: I = {} } = w, { useContenido: R = pn, ...E } = I, {
@@ -5861,7 +5861,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5861
5861
  {
5862
5862
  pagination: { page: 1, perPage: 200 },
5863
5863
  sort: { field: g, order: m },
5864
- filter: b
5864
+ filter: y
5865
5865
  },
5866
5866
  {
5867
5867
  enabled: s && !u && T
@@ -5872,7 +5872,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
5872
5872
  });
5873
5873
  R({
5874
5874
  ...c,
5875
- estado: y,
5875
+ estado: b,
5876
5876
  hidden: e.hidden,
5877
5877
  isLoading: h,
5878
5878
  utils: M,
@@ -6011,8 +6011,8 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
6011
6011
  permissions: g = null,
6012
6012
  transform: m = null,
6013
6013
  // ?? nunca al DOM:
6014
- isOpen: b = null,
6015
- open: y = null,
6014
+ isOpen: y = null,
6015
+ open: b = null,
6016
6016
  close: h = null,
6017
6017
  redirect: w = null,
6018
6018
  resource: P = null,
@@ -6045,13 +6045,13 @@ 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(), b = ge(), y = Ot(), h = S.useCallback(() => {
6048
+ } = e, f = ye(e), g = r ?? f, m = oi(), y = ge(), b = Ot(), h = S.useCallback(() => {
6049
6049
  if (s)
6050
6050
  return s();
6051
- y("list", g, void 0, void 0, {
6051
+ b("list", g, void 0, void 0, {
6052
6052
  _scrollToTop: !1
6053
6053
  });
6054
- }, [s, y, g]), w = S.useMemo(
6054
+ }, [s, b, g]), w = S.useMemo(
6055
6055
  () => ({
6056
6056
  resource: g,
6057
6057
  redirect: !1,
@@ -6063,7 +6063,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
6063
6063
  }
6064
6064
  }),
6065
6065
  [g, p, h]
6066
- ), P = Ad(w), M = o ?? `${b("ra.action.create")} ${g ? m(g, 1) : ""}`.trim(), x = /* @__PURE__ */ i(wo, { value: g, children: /* @__PURE__ */ i(kd, { value: P, children: t }) });
6066
+ ), P = Ad(w), M = o ?? `${y("ra.action.create")} ${g ? m(g, 1) : ""}`.trim(), x = /* @__PURE__ */ i(wo, { value: g, children: /* @__PURE__ */ i(kd, { value: P, children: t }) });
6067
6067
  return /* @__PURE__ */ i(ot, { children: a && /* @__PURE__ */ F(
6068
6068
  jn,
6069
6069
  {
@@ -6126,11 +6126,11 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
6126
6126
  dialog: d,
6127
6127
  ButtonProps: f
6128
6128
  } = e, g = te(
6129
- (y) => {
6130
- a(), y.stopPropagation();
6129
+ (b) => {
6130
+ a(), b.stopPropagation();
6131
6131
  },
6132
6132
  [a]
6133
- ), m = t(u, { _: u }), b = p ? /* @__PURE__ */ i(xt, { title: m, children: /* @__PURE__ */ i(
6133
+ ), m = t(u, { _: u }), y = p ? /* @__PURE__ */ i(xt, { title: m, children: /* @__PURE__ */ i(
6134
6134
  Xe,
6135
6135
  {
6136
6136
  "aria-label": m,
@@ -6142,7 +6142,7 @@ const Mm = S.memo(/* @__PURE__ */ n(function({
6142
6142
  }
6143
6143
  ) }) : /* @__PURE__ */ i(Je, { label: m, ...f, onClick: g, children: c });
6144
6144
  return /* @__PURE__ */ F(fc.Provider, { value: l, children: [
6145
- b,
6145
+ y,
6146
6146
  d
6147
6147
  ] });
6148
6148
  }, "FormDialogButton"), zm = /* @__PURE__ */ i(Ou, {}), Wm = /* @__PURE__ */ n((e) => {
@@ -6187,8 +6187,8 @@ const Hm = /* @__PURE__ */ n((e) => {
6187
6187
  if (a)
6188
6188
  try {
6189
6189
  await t(a);
6190
- } catch (b) {
6191
- l && typeof l == "function" ? l(b) : s(b.message, { type: "error" });
6190
+ } catch (y) {
6191
+ l && typeof l == "function" ? l(y) : s(y.message, { type: "error" });
6192
6192
  } finally {
6193
6193
  d(m);
6194
6194
  }
@@ -6292,7 +6292,7 @@ const Hm = /* @__PURE__ */ n((e) => {
6292
6292
  estado: u,
6293
6293
  mutationOptions: p = {},
6294
6294
  fichaProps: { onBeforeSubmitFicha: d } = {}
6295
- } = Te(), { onError: f, onSuccess: g, _popupKey: m } = p, b = Ct(e), [y] = Fa(
6295
+ } = Te(), { onError: f, onSuccess: g, _popupKey: m } = p, y = Ct(e), [b] = Fa(
6296
6296
  o,
6297
6297
  {
6298
6298
  id: r?.id
@@ -6337,12 +6337,12 @@ const Hm = /* @__PURE__ */ n((e) => {
6337
6337
  }), Oi();
6338
6338
  const x = /* @__PURE__ */ n((I, R) => h(I, tn(R, p)), "saveWithMutationOptions"), T = d && await d(
6339
6339
  {
6340
- submit: x,
6341
- ...b
6340
+ submit: t ? () => b() : x,
6341
+ ...y
6342
6342
  },
6343
6343
  t ? "B" : u
6344
6344
  );
6345
- return typeof T == "string" ? (l(T, { type: "error" }), Oi()) : T === void 0 || T ? t ? y() : x(M) : Oi();
6345
+ return typeof T == "string" ? (l(T, { type: "error" }), Oi()) : T === void 0 || T ? t ? b() : x(M) : Oi();
6346
6346
  },
6347
6347
  [
6348
6348
  d,
@@ -6353,8 +6353,8 @@ const Hm = /* @__PURE__ */ n((e) => {
6353
6353
  o,
6354
6354
  t,
6355
6355
  u,
6356
- y,
6357
- b
6356
+ b,
6357
+ y
6358
6358
  ]
6359
6359
  );
6360
6360
  return w?.enabled || t === !0 || typeof d == "function" ? P : void 0;
@@ -6368,13 +6368,13 @@ const yc = /* @__PURE__ */ n(() => {
6368
6368
  }, "FormResetter"), Xm = /* @__PURE__ */ n((e) => {
6369
6369
  ar = e;
6370
6370
  }, "registerFormReset"), S0 = /* @__PURE__ */ n(() => ar ? (ar(), !0) : !1, "resetForm"), Dn = /* @__PURE__ */ new Set(), Ym = /* @__PURE__ */ n((e) => {
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, b = e.record ?? m, y = e.id ?? u?.state?.id ?? b?.id ?? "-1", h = `${d}:${g}:${y}`, P = y === "-1" && b && typeof b == "object" && !Array.isArray(b) ? Object.fromEntries(
6372
- Object.entries(b).filter(
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
+ Object.entries(y).filter(
6373
6373
  ([, O]) => O != null && (typeof O == "string" || typeof O == "number" || typeof O == "boolean")
6374
6374
  )
6375
6375
  ) : {}, M = {
6376
6376
  estado: g,
6377
- id: y,
6377
+ id: b,
6378
6378
  ...P,
6379
6379
  ...r?.meta
6380
6380
  }, { data: x, isFetching: T } = Lm(
@@ -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 = b && typeof b == "object" && !Array.isArray(b) ? { ...I || {}, ...b } : 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, H = de(
6387
6387
  () => ({
6388
6388
  estado: g,
6389
6389
  initialValues: D || {},
@@ -6438,24 +6438,24 @@ const yc = /* @__PURE__ */ n(() => {
6438
6438
  id: d,
6439
6439
  record: f,
6440
6440
  ...g
6441
- } = e, m = p ?? (t?.state?.estado || "N"), { fichaProps: b } = Lr({ ...e, estado: m }), y = a === "ventana" ? Wm : Od, h = de(
6441
+ } = e, m = p ?? (t?.state?.estado || "N"), { fichaProps: y } = Lr({ ...e, estado: m }), b = a === "ventana" ? Wm : Od, h = de(
6442
6442
  () => tn(
6443
6443
  tn(
6444
6444
  l,
6445
- b?.panel?.mutationOptions
6445
+ y?.panel?.mutationOptions
6446
6446
  ),
6447
6447
  c
6448
6448
  ),
6449
6449
  [
6450
6450
  l,
6451
- b?.panel?.mutationOptions,
6451
+ y?.panel?.mutationOptions,
6452
6452
  c
6453
6453
  ]
6454
6454
  ), w = /* @__PURE__ */ i(
6455
- y,
6455
+ b,
6456
6456
  {
6457
6457
  redirect: "list",
6458
- ...b?.panel,
6458
+ ...y?.panel,
6459
6459
  ...g,
6460
6460
  mutationOptions: h,
6461
6461
  children: /* @__PURE__ */ i(
@@ -6464,7 +6464,7 @@ const yc = /* @__PURE__ */ n(() => {
6464
6464
  estado: m,
6465
6465
  id: d,
6466
6466
  record: f,
6467
- fichaProps: b,
6467
+ fichaProps: y,
6468
6468
  enableLoad: r,
6469
6469
  queryOptions: s,
6470
6470
  mutationOptions: h,
@@ -6487,7 +6487,7 @@ const yc = /* @__PURE__ */ n(() => {
6487
6487
  f && Dn.delete(f), f ? o.hide({ popupKey: f }) : o.hide(), r("list", s, void 0, void 0, {
6488
6488
  _scrollToTop: !1
6489
6489
  });
6490
- }, "handleClose"), m = e.mutationOptions || {}, b = {
6490
+ }, "handleClose"), m = e.mutationOptions || {}, y = {
6491
6491
  ...m,
6492
6492
  ...f ? { _popupKey: f } : {},
6493
6493
  onSuccess: /* @__PURE__ */ n((...h) => {
@@ -6496,9 +6496,9 @@ const yc = /* @__PURE__ */ n(() => {
6496
6496
  messageArgs: { smart_count: 1 }
6497
6497
  }), f && Dn.delete(f), f ? o.hide({ popupKey: f }) : o.hide();
6498
6498
  }, "onSuccess")
6499
- }, y = e.title ?? `${u("ra.action.create")} ${c(s, 1) || s}`;
6499
+ }, b = e.title ?? `${u("ra.action.create")} ${c(s, 1) || s}`;
6500
6500
  o.show({
6501
- title: y,
6501
+ title: b,
6502
6502
  tipo: "vista",
6503
6503
  cancelar: g,
6504
6504
  dialogProps: l,
@@ -6509,7 +6509,7 @@ const yc = /* @__PURE__ */ n(() => {
6509
6509
  ...e,
6510
6510
  resource: s,
6511
6511
  tipo: void 0,
6512
- mutationOptions: b
6512
+ mutationOptions: y
6513
6513
  }
6514
6514
  ) })
6515
6515
  });
@@ -6565,12 +6565,12 @@ const yc = /* @__PURE__ */ n(() => {
6565
6565
  a.close ? a.close() : s("list", a.resource, void 0, void 0, {
6566
6566
  _scrollToTop: !1
6567
6567
  });
6568
- }, "handleClose"), b = Zm(a), {
6569
- disableEnforceFocus: y = !0,
6568
+ }, "handleClose"), y = Zm(a), {
6569
+ disableEnforceFocus: b = !0,
6570
6570
  disableAutoFocus: h = !0,
6571
6571
  disableRestoreFocus: w = !0,
6572
6572
  ...P
6573
- } = b;
6573
+ } = y;
6574
6574
  return /* @__PURE__ */ F(
6575
6575
  jn,
6576
6576
  {
@@ -6578,7 +6578,7 @@ const yc = /* @__PURE__ */ n(() => {
6578
6578
  "aria-labelledby": "list-dialog-title",
6579
6579
  onClose: m,
6580
6580
  "data-testid": "list-dialog",
6581
- disableEnforceFocus: y,
6581
+ disableEnforceFocus: b,
6582
6582
  disableAutoFocus: h,
6583
6583
  disableRestoreFocus: w,
6584
6584
  ...P,
@@ -6612,8 +6612,8 @@ const yc = /* @__PURE__ */ n(() => {
6612
6612
  permissions: f = null,
6613
6613
  transform: g = null,
6614
6614
  isOpen: m = null,
6615
- open: b = null,
6616
- close: y = null,
6615
+ open: y = null,
6616
+ close: b = null,
6617
6617
  ...h
6618
6618
  }) => h, "sanitizeRestProps$3"), eh = /* @__PURE__ */ n((e) => {
6619
6619
  const {
@@ -6648,7 +6648,7 @@ 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: b, state: y } = 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, H] = ee(
6652
6652
  d.sort || { field: "id", order: "ASC" }
6653
6653
  ), [O, V] = ee(
6654
6654
  Xs
@@ -6702,12 +6702,12 @@ const yc = /* @__PURE__ */ n(() => {
6702
6702
  P(m.gridConfig || {});
6703
6703
  return;
6704
6704
  }
6705
- h.getGrillaConfig(t, y).then((X) => {
6705
+ h.getGrillaConfig(t, b).then((X) => {
6706
6706
  P(X.data);
6707
6707
  }).catch((X) => {
6708
6708
  w === null && P({});
6709
6709
  });
6710
- }, [h, t, m, y]), oe(() => {
6710
+ }, [h, t, m, b]), oe(() => {
6711
6711
  const X = $.current;
6712
6712
  if (!X)
6713
6713
  return;
@@ -6737,7 +6737,7 @@ const yc = /* @__PURE__ */ n(() => {
6737
6737
  return /* @__PURE__ */ i(uo, { loadingPrimary: "", loadingSecondary: "", timeout: 0 });
6738
6738
  let K = d.filter, q = d.queryOptions;
6739
6739
  const Z = d.filters === void 0 ? /* @__PURE__ */ i(ih, {}) : d.filters;
6740
- return y && b.substring(1) === t && (K = y.filter ?? d.filter, q = y?.meta ? { meta: { ...y.meta } } : d.queryOptions), m ? /* @__PURE__ */ i(
6740
+ return b && y.substring(1) === t && (K = b.filter ?? d.filter, q = b?.meta ? { meta: { ...b.meta } } : d.queryOptions), m ? /* @__PURE__ */ i(
6741
6741
  ys,
6742
6742
  {
6743
6743
  hasCreate: r,
@@ -6915,18 +6915,18 @@ const yc = /* @__PURE__ */ n(() => {
6915
6915
  typeof e[o] == "string" && e[o].trim().length === 0 || (e[o] == null && (e[o] = ""), t[o] = e[o]);
6916
6916
  return t;
6917
6917
  }, "defaultTransform"), lh = /* @__PURE__ */ n((e) => {
6918
- const { children: t, fichaProps: o, mutationOptions: r } = e, a = Vd(), [s, l] = ee(null), c = lt(), u = Dt(), p = ye(e), d = fi(p), { record: f, isFetching: g } = a, m = d?.record || d?.initialValues || f, y = (d ? !1 : g) && !m, h = e.estado ?? (c?.state?.estado || "M"), w = f?.id ?? c?.state?.id ?? "edit", P = `${p}:${h}:${w}`, M = de(
6918
+ const { children: t, fichaProps: o, mutationOptions: r } = e, a = Vd(), [s, l] = ee(null), c = lt(), u = Dt(), p = ye(e), d = fi(p), { record: f, isFetching: g } = a, m = d?.record || d?.initialValues || f, b = (d ? !1 : g) && !m, h = e.estado ?? (c?.state?.estado || "M"), w = f?.id ?? c?.state?.id ?? "edit", P = `${p}:${h}:${w}`, M = de(
6919
6919
  () => ({
6920
6920
  estado: h,
6921
6921
  initialValues: m,
6922
- isLoading: y,
6922
+ isLoading: b,
6923
6923
  mutationOptions: r,
6924
6924
  fichaProps: o,
6925
6925
  scopeIdentity: P
6926
6926
  }),
6927
6927
  [
6928
6928
  m,
6929
- y,
6929
+ b,
6930
6930
  r,
6931
6931
  o,
6932
6932
  h,
@@ -6937,7 +6937,7 @@ const yc = /* @__PURE__ */ n(() => {
6937
6937
  let x = !0;
6938
6938
  return d ? (l(d.formConfig || {}), () => {
6939
6939
  x = !1;
6940
- }) : (l(null), y ? () => {
6940
+ }) : (l(null), b ? () => {
6941
6941
  x = !1;
6942
6942
  } : (u.getFichaConfig(p, { estado: h }).then((T) => {
6943
6943
  x && l(T.data);
@@ -6949,7 +6949,7 @@ const yc = /* @__PURE__ */ n(() => {
6949
6949
  }, [
6950
6950
  u,
6951
6951
  h,
6952
- y,
6952
+ b,
6953
6953
  p,
6954
6954
  d,
6955
6955
  P
@@ -6975,7 +6975,7 @@ const yc = /* @__PURE__ */ n(() => {
6975
6975
  f?.panel?.mutationOptions,
6976
6976
  s
6977
6977
  ]
6978
- ), m = c.queryOptions ?? f?.panel?.queryOptions, b = /* @__PURE__ */ i(
6978
+ ), m = c.queryOptions ?? f?.panel?.queryOptions, y = /* @__PURE__ */ i(
6979
6979
  $d,
6980
6980
  {
6981
6981
  emptyWhileLoading: !0,
@@ -7000,28 +7000,28 @@ const yc = /* @__PURE__ */ n(() => {
7000
7000
  )
7001
7001
  }
7002
7002
  );
7003
- return /* @__PURE__ */ i(Io, { children: b });
7003
+ return /* @__PURE__ */ i(Io, { children: y });
7004
7004
  }, "EditEtriekView"), ch = /* @__PURE__ */ n((e) => {
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, b = f && !!m, y = b ? `${s}:${m}` : null;
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;
7009
7009
  return oe(() => {
7010
- if (!b || d.current || (d.current = !0, y && (On.has(y) || o?.open && o?.props?._popupKey === y) || !y))
7010
+ if (!y || d.current || (d.current = !0, b && (On.has(b) || o?.open && o?.props?._popupKey === b) || !b))
7011
7011
  return;
7012
- y && On.add(y);
7012
+ b && On.add(b);
7013
7013
  const h = /* @__PURE__ */ n(() => {
7014
- y && On.delete(y), y ? o.hide({ popupKey: y }) : o.hide(), r("list", s, void 0, void 0, {
7014
+ b && On.delete(b), b ? o.hide({ popupKey: b }) : o.hide(), r("list", s, void 0, void 0, {
7015
7015
  _scrollToTop: !1
7016
7016
  });
7017
7017
  }, "handleClose"), w = e.mutationOptions || {}, P = {
7018
7018
  ...w,
7019
- ...y ? { _popupKey: y } : {},
7019
+ ...b ? { _popupKey: b } : {},
7020
7020
  onSuccess: /* @__PURE__ */ n((...x) => {
7021
7021
  typeof w.onSuccess == "function" ? w.onSuccess(...x) : a("ra.notification.updated", {
7022
7022
  type: "info",
7023
7023
  messageArgs: { smart_count: 1 }
7024
- }), y && On.delete(y), y ? o.hide({ popupKey: y }) : o.hide();
7024
+ }), b && On.delete(b), b ? o.hide({ popupKey: b }) : o.hide();
7025
7025
  }, "onSuccess")
7026
7026
  }, M = e.title ?? `${u("ra.action.edit")} ${c(s, 1) || s}`;
7027
7027
  o.show({
@@ -7029,7 +7029,7 @@ const yc = /* @__PURE__ */ n(() => {
7029
7029
  tipo: "vista",
7030
7030
  cancelar: h,
7031
7031
  dialogProps: l,
7032
- _popupKey: y,
7032
+ _popupKey: b,
7033
7033
  controles: /* @__PURE__ */ i(wo, { value: s, children: /* @__PURE__ */ i(Zo.Provider, { value: m, children: /* @__PURE__ */ i(
7034
7034
  Qs,
7035
7035
  {
@@ -7042,16 +7042,16 @@ const yc = /* @__PURE__ */ n(() => {
7042
7042
  });
7043
7043
  }, [
7044
7044
  o,
7045
- b,
7045
+ y,
7046
7046
  c,
7047
7047
  a,
7048
7048
  l,
7049
- y,
7049
+ b,
7050
7050
  e,
7051
7051
  r,
7052
7052
  s,
7053
7053
  u
7054
- ]), b ? null : /* @__PURE__ */ i(Qs, { ...e });
7054
+ ]), y ? null : /* @__PURE__ */ i(Qs, { ...e });
7055
7055
  }, "EditEtriek"), R0 = Lt(ch, {
7056
7056
  name: on,
7057
7057
  overridesResolver: /* @__PURE__ */ n((e, t) => t.root, "overridesResolver")
@@ -7182,12 +7182,12 @@ const yc = /* @__PURE__ */ n(() => {
7182
7182
  onConfirm: /* @__PURE__ */ n(async () => {
7183
7183
  await f(s);
7184
7184
  }, "onConfirm"),
7185
- onClose: /* @__PURE__ */ n((b, y) => {
7185
+ onClose: /* @__PURE__ */ n((y, b) => {
7186
7186
  if (mh(l, p)) {
7187
7187
  p ? l.hide({ popupKey: p }) : l.hide();
7188
7188
  return;
7189
7189
  }
7190
- y !== "backdropClick" && a("list", r);
7190
+ b !== "backdropClick" && a("list", r);
7191
7191
  }, "onClose")
7192
7192
  }
7193
7193
  )
@@ -7487,7 +7487,7 @@ 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, b] = S.useState(null), [y, 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 = 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) || {}, {
7491
7491
  props: {
7492
7492
  hasCreate: V,
7493
7493
  hasSeleccionMultiple: $,
@@ -7507,9 +7507,9 @@ const yc = /* @__PURE__ */ n(() => {
7507
7507
  const Q = { ...H, ...P }, me = /* @__PURE__ */ n((G) => {
7508
7508
  g(G.currentTarget);
7509
7509
  }, "handleOpenMenu"), we = /* @__PURE__ */ n(() => {
7510
- g(null), b(null);
7510
+ g(null), y(null);
7511
7511
  }, "handleCloseMenu"), Oe = /* @__PURE__ */ n((G) => {
7512
- b(G);
7512
+ y(G);
7513
7513
  }, "handleOpenSubMenu"), Be = /* @__PURE__ */ n((G) => {
7514
7514
  G?.stopPropagation?.(), re?.current?.showSidebar?.("pivot");
7515
7515
  }, "handleOpenPivotPanel"), se = /* @__PURE__ */ n((G, ue, ae) => {
@@ -7714,7 +7714,7 @@ const yc = /* @__PURE__ */ n(() => {
7714
7714
  G.key
7715
7715
  );
7716
7716
  if (G.type === "MenuButton") {
7717
- const ae = y[G.index]?.selectedOption, ve = G.keepParentLabel ? G.label : ae?.label || G.label, Le = G.keepParentLabel ? G.icon : ae?.icon || G.icon;
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;
7718
7718
  return [
7719
7719
  /* @__PURE__ */ F(
7720
7720
  _t,
@@ -7765,7 +7765,7 @@ const yc = /* @__PURE__ */ n(() => {
7765
7765
  children: G.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 && y[G.index]?.selectedOption?.key === Ae.key;
7768
+ const Ze = G.selectOnClick && b[G.index]?.selectedOption?.key === Ae.key;
7769
7769
  return /* @__PURE__ */ F(
7770
7770
  _t,
7771
7771
  {
@@ -7850,7 +7850,7 @@ const yc = /* @__PURE__ */ n(() => {
7850
7850
  f,
7851
7851
  m,
7852
7852
  Ue,
7853
- y
7853
+ b
7854
7854
  ]
7855
7855
  );
7856
7856
  }), k0 = /* @__PURE__ */ n((e) => {
@@ -7861,21 +7861,21 @@ const yc = /* @__PURE__ */ n(() => {
7861
7861
  } = e, [a, s] = ee(!1), l = ge(), 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
- (b) => {
7864
+ (y) => {
7865
7865
  s(!1), u(
7866
- typeof b == "string" ? b : typeof b > "u" || !b.message ? "ra.auth.sign_in_error" : b.message,
7866
+ typeof y == "string" ? y : typeof y > "u" || !y.message ? "ra.auth.sign_in_error" : y.message,
7867
7867
  {
7868
7868
  type: "error",
7869
7869
  messageArgs: {
7870
- _: typeof b == "string" ? b : b && b.message ? b.message : void 0
7870
+ _: typeof y == "string" ? y : y && y.message ? y.message : void 0
7871
7871
  }
7872
7872
  }
7873
7873
  );
7874
7874
  }
7875
7875
  );
7876
7876
  }, "handleSubmit"), validate: /* @__PURE__ */ n((m) => {
7877
- const b = {};
7878
- return m[o] || (b[o] = l("ra.validation.required")), m[r] || (b[r] = l("ra.validation.required")), b;
7877
+ const y = {};
7878
+ return m[o] || (y[o] = l("ra.validation.required")), m[r] || (y[r] = l("ra.validation.required")), y;
7879
7879
  }, "validate"), children: /* @__PURE__ */ i(
7880
7880
  U,
7881
7881
  {
@@ -8027,10 +8027,10 @@ const yc = /* @__PURE__ */ n(() => {
8027
8027
  indent: 0
8028
8028
  });
8029
8029
  }), { menuModel: R, leafOptions: I, menuVisible: !0 }) : { menuModel: R, leafOptions: I, menuVisible: !1 };
8030
- }, [d, a, t]), b = Math.max(
8030
+ }, [d, a, t]), y = Math.max(
8031
8031
  0,
8032
8032
  Math.min(a, Math.max(g.length - 1, 0))
8033
- ), [y, h] = ee(b);
8033
+ ), [b, h] = ee(y);
8034
8034
  oe(() => {
8035
8035
  h(
8036
8036
  (I) => Math.max(
@@ -8045,7 +8045,7 @@ const yc = /* @__PURE__ */ n(() => {
8045
8045
  u.current && u.current.contains(I.target) || c(!1);
8046
8046
  }, "handleClose"), M = /* @__PURE__ */ n((I, R) => {
8047
8047
  h(R), c(!1);
8048
- }, "handleLeafClick"), x = g[y], T = x?.icon || o;
8048
+ }, "handleLeafClick"), x = g[b], T = x?.icon || o;
8049
8049
  return !m || g.length === 0 ? null : /* @__PURE__ */ F(dt, { children: [
8050
8050
  /* @__PURE__ */ i(ci, { title: s ?? x?.label, children: /* @__PURE__ */ F(
8051
8051
  Xt,
@@ -8108,7 +8108,7 @@ const yc = /* @__PURE__ */ n(() => {
8108
8108
  us,
8109
8109
  {
8110
8110
  disabled: R.disabled,
8111
- selected: E === y,
8111
+ selected: E === b,
8112
8112
  onClick: /* @__PURE__ */ n((D) => {
8113
8113
  M(D, E), R.onClick && R.onClick(D, E);
8114
8114
  }, "onClick"),
@@ -8169,7 +8169,7 @@ const yc = /* @__PURE__ */ n(() => {
8169
8169
  )
8170
8170
  ] });
8171
8171
  }, "MultiTextField"), Ih = /* @__PURE__ */ n((e) => {
8172
- const { children: t, fichaProps: o } = e, r = Xd(), [a, s] = ee(null), l = lt(), c = Dt(), u = ye(e), { record: p, isFetching: d } = r, f = e.estado ?? (l?.state?.estado || "M"), g = p?.id ?? l?.state?.id ?? "show", m = `${u}:${f}:${g}`, b = de(
8172
+ const { children: t, fichaProps: o } = e, r = Xd(), [a, s] = ee(null), l = lt(), c = Dt(), u = ye(e), { record: p, isFetching: d } = r, f = e.estado ?? (l?.state?.estado || "M"), g = p?.id ?? l?.state?.id ?? "show", m = `${u}:${f}:${g}`, y = de(
8173
8173
  () => ({
8174
8174
  estado: f,
8175
8175
  initialValues: p,
@@ -8180,17 +8180,17 @@ const yc = /* @__PURE__ */ n(() => {
8180
8180
  [p, d, o, f, m]
8181
8181
  );
8182
8182
  return oe(() => {
8183
- let y = !0;
8183
+ let b = !0;
8184
8184
  return s(null), d ? () => {
8185
- y = !1;
8185
+ b = !1;
8186
8186
  } : (c.getFichaConfig(u, { estado: "M" }).then((h) => {
8187
- y && s(h.data);
8187
+ b && s(h.data);
8188
8188
  }).catch(() => {
8189
- y && s({});
8189
+ b && s({});
8190
8190
  }), () => {
8191
- y = !1;
8191
+ b = !1;
8192
8192
  });
8193
- }, [c, f, d, u]), a === null ? /* @__PURE__ */ i(uo, { loadingPrimary: "", loadingSecondary: "", timeout: 0 }) : /* @__PURE__ */ i(Ir, { value: b, children: /* @__PURE__ */ i(Ye.Provider, { value: a, children: t }) });
8193
+ }, [c, f, d, u]), a === null ? /* @__PURE__ */ i(uo, { loadingPrimary: "", loadingSecondary: "", timeout: 0 }) : /* @__PURE__ */ i(Ir, { value: y, children: /* @__PURE__ */ i(Ye.Provider, { value: a, children: t }) });
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 }) }) });
@@ -8307,18 +8307,18 @@ const yc = /* @__PURE__ */ n(() => {
8307
8307
  toolbar: u = Nh,
8308
8308
  onChange: p,
8309
8309
  ...d
8310
- } = t, f = lt(), g = ye(t), [m, b] = ee(0), y = Jd(), { estado: h } = Te(), w = Ct(t), P = pt((k) => k.breakpoints.down("sm")), M = pt((k) => k.breakpoints.down("md")), x = De(null), T = sp(x, c.props.action);
8310
+ } = t, f = lt(), g = ye(t), [m, y] = ee(0), b = Jd(), { estado: h } = Te(), w = Ct(t), P = pt((k) => k.breakpoints.down("sm")), M = pt((k) => k.breakpoints.down("md")), x = De(null), T = sp(x, c.props.action);
8311
8311
  oe(() => {
8312
8312
  x.current?.updateScrollButtons();
8313
8313
  }, [P, M]);
8314
8314
  const I = /* @__PURE__ */ n((k, L) => {
8315
- l || (b(L), p && p(
8315
+ l || (y(L), p && p(
8316
8316
  w,
8317
8317
  h,
8318
8318
  {
8319
8319
  newTab: L,
8320
8320
  prevTab: m,
8321
- setTab: b
8321
+ setTab: y
8322
8322
  },
8323
8323
  k
8324
8324
  )), c.props.onChange && c.props.onChange(k, L);
@@ -8328,12 +8328,12 @@ const yc = /* @__PURE__ */ n(() => {
8328
8328
  ), D = de(() => l ? E.findIndex(({ tab: k, tabIndex: L }) => {
8329
8329
  const v = Pn(k, L);
8330
8330
  return Jo(
8331
- `${y}/${v}`,
8331
+ `${b}/${v}`,
8332
8332
  f.pathname
8333
8333
  );
8334
8334
  }) : E.findIndex(({ tabIndex: k }) => k === m), [
8335
8335
  f.pathname,
8336
- y,
8336
+ b,
8337
8337
  l,
8338
8338
  m,
8339
8339
  E
@@ -8600,8 +8600,8 @@ const yc = /* @__PURE__ */ n(() => {
8600
8600
  if (!u) return null;
8601
8601
  const {
8602
8602
  toolbar: m,
8603
- tabs: b,
8604
- onChange: y,
8603
+ tabs: y,
8604
+ onChange: b,
8605
8605
  ...h
8606
8606
  } = d;
8607
8607
  return /* @__PURE__ */ i(Al, { children: /* @__PURE__ */ i(Cc, { children: /* @__PURE__ */ i(
@@ -8618,8 +8618,8 @@ const yc = /* @__PURE__ */ n(() => {
8618
8618
  {
8619
8619
  formRootPathname: g,
8620
8620
  syncWithLocation: o,
8621
- onChange: y !== void 0 ? y : l,
8622
- tabs: b !== void 0 ? b : s !== void 0 ? s : /* @__PURE__ */ i(Oa, {}),
8621
+ onChange: b !== void 0 ? b : l,
8622
+ tabs: y !== void 0 ? y : s !== void 0 ? s : /* @__PURE__ */ i(Oa, {}),
8623
8623
  toolbar: m !== void 0 ? m : a !== void 0 ? a : /* @__PURE__ */ i(mi, { deleteButton: r }),
8624
8624
  children: [
8625
8625
  t,
@@ -8734,14 +8734,14 @@ const yc = /* @__PURE__ */ n(() => {
8734
8734
  a.unregisterHost && a.unregisterHost(l.current);
8735
8735
  };
8736
8736
  }, [a, u]);
8737
- const { hide: p, stack: d = [] } = a || {}, f = /* @__PURE__ */ n(({ botonesExtra: y }) => {
8737
+ const { hide: p, stack: d = [] } = a || {}, f = /* @__PURE__ */ n(({ botonesExtra: b }) => {
8738
8738
  const h = qe(), w = /* @__PURE__ */ n((P) => (M) => {
8739
8739
  if (typeof P != "function")
8740
8740
  return;
8741
8741
  const x = h?.getValues ? h.getValues() : void 0;
8742
8742
  P(x, M);
8743
8743
  }, "getExtraClickHandler");
8744
- return (y || []).map(
8744
+ return (b || []).map(
8745
8745
  ({ label: P = "", icon: M = /* @__PURE__ */ i(ps, {}), handler: x }, T) => /* @__PURE__ */ i(
8746
8746
  Je,
8747
8747
  {
@@ -8754,7 +8754,7 @@ const yc = /* @__PURE__ */ n(() => {
8754
8754
  )
8755
8755
  );
8756
8756
  }, "BotonesExtra"), g = /* @__PURE__ */ n(({
8757
- title: y,
8757
+ title: b,
8758
8758
  controles: h,
8759
8759
  botonesExtra: w,
8760
8760
  cancelar: P,
@@ -8779,7 +8779,7 @@ const yc = /* @__PURE__ */ n(() => {
8779
8779
  sx: { ml: 2, flex: 1 },
8780
8780
  variant: "h6",
8781
8781
  component: "div",
8782
- children: y
8782
+ children: b
8783
8783
  }
8784
8784
  ),
8785
8785
  /* @__PURE__ */ i(f, { botonesExtra: w }),
@@ -8883,7 +8883,7 @@ const yc = /* @__PURE__ */ n(() => {
8883
8883
  ]
8884
8884
  }
8885
8885
  ), "getDialogVista"), m = /* @__PURE__ */ n(({
8886
- title: y,
8886
+ title: b,
8887
8887
  controles: h,
8888
8888
  aceptar: w,
8889
8889
  cancelar: P,
@@ -8936,7 +8936,7 @@ const yc = /* @__PURE__ */ n(() => {
8936
8936
  ] })
8937
8937
  ] });
8938
8938
  return /* @__PURE__ */ F(dt, { children: [
8939
- /* @__PURE__ */ i(ji, { id: "draggable-dialog-title", children: y }),
8939
+ /* @__PURE__ */ i(ji, { id: "draggable-dialog-title", children: b }),
8940
8940
  /* @__PURE__ */ i(
8941
8941
  U,
8942
8942
  {
@@ -8956,8 +8956,8 @@ const yc = /* @__PURE__ */ n(() => {
8956
8956
  }
8957
8957
  )
8958
8958
  ] });
8959
- }, "getDialogForm"), b = /* @__PURE__ */ n(({
8960
- title: y,
8959
+ }, "getDialogForm"), y = /* @__PURE__ */ n(({
8960
+ title: b,
8961
8961
  controles: h,
8962
8962
  aceptar: w,
8963
8963
  cancelar: P,
@@ -8967,7 +8967,7 @@ const yc = /* @__PURE__ */ n(() => {
8967
8967
  showAceptar: I,
8968
8968
  showCancelar: R
8969
8969
  }) => /* @__PURE__ */ F(dt, { children: [
8970
- /* @__PURE__ */ i(ji, { children: y || o("pos.attention") }),
8970
+ /* @__PURE__ */ i(ji, { children: b || o("pos.attention") }),
8971
8971
  /* @__PURE__ */ i(qi, { sx: { pt: 1, pb: 0 }, children: h }),
8972
8972
  /* @__PURE__ */ F(is, { sx: { flexShrink: 0 }, children: [
8973
8973
  /* @__PURE__ */ i(f, { botonesExtra: T }),
@@ -8991,8 +8991,8 @@ const yc = /* @__PURE__ */ n(() => {
8991
8991
  )
8992
8992
  ] })
8993
8993
  ] }), "getConfirm");
8994
- return s || !u ? null : /* @__PURE__ */ i(ia.Provider, { value: !0, children: d.map((y, h) => {
8995
- const w = h === d.length - 1, P = y?.tipo === "confirm" && h > 0, {
8994
+ return s || !u ? null : /* @__PURE__ */ i(ia.Provider, { value: !0, children: d.map((b, h) => {
8995
+ const w = h === d.length - 1, P = b?.tipo === "confirm" && h > 0, {
8996
8996
  title: M,
8997
8997
  controles: x,
8998
8998
  aceptar: T,
@@ -9007,7 +9007,7 @@ const yc = /* @__PURE__ */ n(() => {
9007
9007
  confirmLabel: k = "ra.action.confirm",
9008
9008
  hasForm: L = !1,
9009
9009
  dialogProps: v = {}
9010
- } = y || {}, {
9010
+ } = b || {}, {
9011
9011
  popupControls: _ = {},
9012
9012
  contentScroll: K = "dialog",
9013
9013
  PaperProps: q = {},
@@ -9039,7 +9039,7 @@ const yc = /* @__PURE__ */ n(() => {
9039
9039
  TransitionComponent: na,
9040
9040
  ...X,
9041
9041
  PaperProps: re,
9042
- children: /* @__PURE__ */ i(Zi.Provider, { value: h + 1, children: b({
9042
+ children: /* @__PURE__ */ i(Zi.Provider, { value: h + 1, children: y({
9043
9043
  title: M,
9044
9044
  controles: x,
9045
9045
  aceptar: T,
@@ -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(), b = S.useContext(Ye) || {}, y = S.useMemo(
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(
9103
9103
  () => [...r || [], ...t?.buttons || []],
9104
9104
  [r, t]
9105
9105
  ), h = te(
@@ -9116,8 +9116,8 @@ const yc = /* @__PURE__ */ n(() => {
9116
9116
  );
9117
9117
  return /* @__PURE__ */ F(Ta, { children: [
9118
9118
  a ? /* @__PURE__ */ i(an, { sx: { mr: 1 }, ...s }) : null,
9119
- y.filter(
9120
- (w) => !m[w.name] && vl(b, w.perbot)
9119
+ b.filter(
9120
+ (w) => !m[w.name] && vl(y, w.perbot)
9121
9121
  ).map((w) => /* @__PURE__ */ i(
9122
9122
  Je,
9123
9123
  {
@@ -9215,7 +9215,7 @@ const yc = /* @__PURE__ */ n(() => {
9215
9215
  overflow: "hidden",
9216
9216
  textOverflow: "ellipsis"
9217
9217
  }, W0 = /* @__PURE__ */ n((e) => {
9218
- const { label: t, icon: o, ...r } = e, a = pt((b) => b.breakpoints.down("md")), s = o ?? pp, l = t ?? "", c = !!r.hidden, [u, p] = ee(!c);
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);
9221
9221
  }, [c]);
@@ -9403,8 +9403,8 @@ 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), b = /* @__PURE__ */ n(({ target: y }) => {
9407
- const [h] = y.files;
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 }) => {
9407
+ const [h] = b.files;
9408
9408
  h && (s.setValue(
9409
9409
  f,
9410
9410
  {
@@ -9413,30 +9413,30 @@ const H0 = {
9413
9413
  rawFile: h
9414
9414
  },
9415
9415
  { shouldDirty: !0, shouldValidate: !0 }
9416
- ), y.value = "");
9416
+ ), b.value = "");
9417
9417
  }, "handleNativeCapture");
9418
9418
  return oe(() => {
9419
9419
  c.current = l;
9420
9420
  }, [l]), oe(() => {
9421
9421
  if (!t) return;
9422
- let y = !0, h;
9422
+ let b = !0, h;
9423
9423
  const w = u.current;
9424
9424
  return (/* @__PURE__ */ n(async () => {
9425
9425
  try {
9426
9426
  if (h = await navigator.mediaDevices.getUserMedia({
9427
9427
  video: !0,
9428
9428
  audio: !1
9429
- }), !y || !w) {
9429
+ }), !b || !w) {
9430
9430
  h.getTracks().forEach((M) => M.stop());
9431
9431
  return;
9432
9432
  }
9433
9433
  w.srcObject = h;
9434
9434
  } catch (M) {
9435
- if (!y) return;
9435
+ if (!b) return;
9436
9436
  c.current(M.message, { type: "error" }), o(!1);
9437
9437
  }
9438
9438
  }, "openCamera"))(), () => {
9439
- y = !1, h?.getTracks().forEach((M) => M.stop()), w && w.srcObject === h && (w.srcObject = null);
9439
+ b = !1, h?.getTracks().forEach((M) => M.stop()), w && w.srcObject === h && (w.srcObject = null);
9440
9440
  };
9441
9441
  }, [t]), /* @__PURE__ */ F(dt, { children: [
9442
9442
  /* @__PURE__ */ i(
@@ -9451,9 +9451,9 @@ const H0 = {
9451
9451
  rs,
9452
9452
  {
9453
9453
  onClick: /* @__PURE__ */ n(() => {
9454
- const y = u.current, h = p.current;
9454
+ const b = u.current, h = p.current;
9455
9455
  h.getContext("2d").drawImage(
9456
- y,
9456
+ b,
9457
9457
  0,
9458
9458
  0,
9459
9459
  h.width,
@@ -9488,7 +9488,7 @@ const H0 = {
9488
9488
  }
9489
9489
  )
9490
9490
  ] }),
9491
- onConfirm: /* @__PURE__ */ n((y) => {
9491
+ onConfirm: /* @__PURE__ */ n((b) => {
9492
9492
  r && p.current.toBlob(function(h) {
9493
9493
  const w = new File([h], `${f}-img.jpg`, {
9494
9494
  type: "image/jpeg"
@@ -9524,7 +9524,7 @@ const H0 = {
9524
9524
  type: "file",
9525
9525
  accept: "image/*",
9526
9526
  capture: "user",
9527
- onChange: b
9527
+ onChange: y
9528
9528
  }
9529
9529
  )
9530
9530
  ]
@@ -9658,7 +9658,7 @@ const H0 = {
9658
9658
  download: f = !0,
9659
9659
  sx: g,
9660
9660
  ...m
9661
- } = o, b = l === "image" ? Uh : typeof d == "string" || d && typeof d == "object" ? d : void 0, y = /* @__PURE__ */ n((O) => {
9661
+ } = o, y = l === "image" ? Uh : typeof d == "string" || d && typeof d == "object" ? d : void 0, b = /* @__PURE__ */ n((O) => {
9662
9662
  const V = (O.name || "").toLowerCase(), $ = (O.type || "").toLowerCase();
9663
9663
  return V.endsWith(".zip") || $ === "application/zip" || $ === "application/x-zip-compressed" ? null : Kh.some((k) => V.endsWith(k)) ? {
9664
9664
  code: "file-executable-blocked",
@@ -9723,7 +9723,7 @@ const H0 = {
9723
9723
  validateFileRemoval: s ? aa : m.validateFileRemoval,
9724
9724
  format: /* @__PURE__ */ n((O) => sa(O, u, I, P), "format"),
9725
9725
  placeholder: h("ra.input.image.upload_single"),
9726
- accept: b,
9726
+ accept: y,
9727
9727
  multiple: !1,
9728
9728
  inputProps: {
9729
9729
  capture: "user"
@@ -9762,7 +9762,7 @@ const H0 = {
9762
9762
  readOnly: s,
9763
9763
  validateFileRemoval: s ? aa : m.validateFileRemoval,
9764
9764
  options: {
9765
- ...l !== "image" ? { validator: y } : {},
9765
+ ...l !== "image" ? { validator: b } : {},
9766
9766
  onDropRejected: /* @__PURE__ */ n((O) => {
9767
9767
  t(
9768
9768
  O?.[0]?.errors?.[0]?.message ?? h("pos.file_not_allowed"),
@@ -9774,7 +9774,7 @@ const H0 = {
9774
9774
  },
9775
9775
  format: /* @__PURE__ */ n((O) => sa(O, u, I, P), "format"),
9776
9776
  placeholder: h("ra.input.file.upload_single"),
9777
- ...b ? { accept: b } : {},
9777
+ ...y ? { accept: y } : {},
9778
9778
  sx: [
9779
9779
  ...Array.isArray(g) ? g : [g],
9780
9780
  {
@@ -9920,7 +9920,7 @@ const H0 = {
9920
9920
  isFetching: f,
9921
9921
  allChoices: g,
9922
9922
  availableChoices: m
9923
- } = $a(), b = De(null), y = De(null), h = de(() => {
9923
+ } = $a(), y = De(null), b = De(null), h = de(() => {
9924
9924
  const x = Array.isArray(m) ? m : [];
9925
9925
  if (!Array.isArray(c) || c.length === 0)
9926
9926
  return x;
@@ -9947,11 +9947,11 @@ const H0 = {
9947
9947
  return oe(() => {
9948
9948
  if (!f && typeof t == "function") {
9949
9949
  const x = o ?? t;
9950
- if (y.current === x)
9950
+ if (b.current === x)
9951
9951
  return;
9952
- y.current = x, t(Object.values([g]));
9952
+ b.current = x, t(Object.values([g]));
9953
9953
  }
9954
- }, [g, t, o, f]), /* @__PURE__ */ i(Yh, { title: b.current?.value || "", placement: "top", arrow: !0, children: /* @__PURE__ */ i(
9954
+ }, [g, t, o, f]), /* @__PURE__ */ i(Yh, { title: y.current?.value || "", placement: "top", arrow: !0, children: /* @__PURE__ */ i(
9955
9955
  U,
9956
9956
  {
9957
9957
  sx: a ? { marginLeft: 1, ...r } : {
@@ -9983,7 +9983,7 @@ const H0 = {
9983
9983
  emptyValue: w ? "0" : d.emptyValue,
9984
9984
  onChange: P,
9985
9985
  onInputChange: M,
9986
- TextFieldProps: { inputRef: b }
9986
+ TextFieldProps: { inputRef: y }
9987
9987
  }
9988
9988
  )
9989
9989
  }
@@ -9998,7 +9998,7 @@ const H0 = {
9998
9998
  asistantResource: f,
9999
9999
  perPage: g = 500,
10000
10000
  ...m
10001
- } = t, { source: b, reference: y, 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, b, R)), D = De(E), H = E === null && D.current ? D.current : E, O = u || H !== null;
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
10002
  let V, $;
10003
10003
  if (H) {
10004
10004
  const { callback: v, ..._ } = H;
@@ -10009,36 +10009,36 @@ const H0 = {
10009
10009
  const K = {
10010
10010
  ..._?.data && typeof _.data == "object" ? _.data : {},
10011
10011
  ...v && typeof v == "object" ? v : {}
10012
- }, q = v?.id ?? v?.[b] ?? K?.id ?? K?.[b] ?? _?.id ?? _?.data?.id ?? _?.data?.[b], Z = Zh(K, q, b);
10012
+ }, q = v?.id ?? v?.[y] ?? K?.id ?? K?.[y] ?? _?.id ?? _?.data?.id ?? _?.data?.[y], Z = Zh(K, q, y);
10013
10013
  Z && Z.id !== void 0 && Z.id !== null && Z.id !== "" && (T((X) => X.some(
10014
10014
  (re) => To(re?.id, Z.id)
10015
10015
  ) ? X : [Z, ...X].slice(0, 10)), a.setQueriesData(
10016
- { queryKey: [y, "getList"] },
10016
+ { queryKey: [b, "getList"] },
10017
10017
  (X) => Ln(X, Z)
10018
10018
  ), a.setQueriesData(
10019
- { queryKey: [y, "getManyReference"] },
10019
+ { queryKey: [b, "getManyReference"] },
10020
10020
  (X) => Ln(X, Z)
10021
10021
  ), a.setQueriesData(
10022
- { queryKey: [y, "getMany"] },
10022
+ { queryKey: [b, "getMany"] },
10023
10023
  (X) => Ln(X, Z)
10024
10024
  ), a.setQueriesData(
10025
- { queryKey: [y, "getOne"] },
10025
+ { queryKey: [b, "getOne"] },
10026
10026
  (X) => Ln(X, Z)
10027
10027
  )), a.invalidateQueries({
10028
- queryKey: [y, "getList"]
10028
+ queryKey: [b, "getList"]
10029
10029
  }), a.invalidateQueries({
10030
- queryKey: [y, "getMany"]
10030
+ queryKey: [b, "getMany"]
10031
10031
  }), a.invalidateQueries({
10032
- queryKey: [y, "getManyReference"]
10032
+ queryKey: [b, "getManyReference"]
10033
10033
  }), a.invalidateQueries({
10034
- queryKey: [y, "getOne"]
10035
- }), typeof s?.setValue == "function" && q !== void 0 && q !== null && q !== "" && s.setValue(b, q, {
10034
+ queryKey: [b, "getOne"]
10035
+ }), typeof s?.setValue == "function" && q !== void 0 && q !== null && q !== "" && s.setValue(y, q, {
10036
10036
  shouldDirty: !0,
10037
10037
  shouldTouch: !0,
10038
10038
  shouldValidate: !0
10039
10039
  });
10040
10040
  },
10041
- [s, a, y, b]
10041
+ [s, a, b, y]
10042
10042
  ), L = te(
10043
10043
  (v, _, K) => {
10044
10044
  K === "input" && Array.isArray(x) && x.length > 0 && _ !== void 0 && T([]);
@@ -10046,8 +10046,8 @@ const H0 = {
10046
10046
  [x]
10047
10047
  );
10048
10048
  return oe(() => {
10049
- E !== null && (D.current = E, r(_p(b, void 0, R)));
10050
- }, [r, E, R, b]), M && !o && !l && O ? /* @__PURE__ */ i(
10049
+ E !== null && (D.current = E, r(_p(y, void 0, R)));
10050
+ }, [r, E, R, y]), M && !o && !l && O ? /* @__PURE__ */ i(
10051
10051
  Qh,
10052
10052
  {
10053
10053
  choices: Jh(t.choices),
@@ -10077,8 +10077,8 @@ const H0 = {
10077
10077
  /* @__PURE__ */ i(U, { sx: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ i(
10078
10078
  Ba,
10079
10079
  {
10080
- reference: y,
10081
- source: b,
10080
+ reference: b,
10081
+ source: y,
10082
10082
  perPage: g,
10083
10083
  filter: $,
10084
10084
  queryOptions: {
@@ -10208,12 +10208,12 @@ const H0 = {
10208
10208
  () => c.filter((m) => !u.has(m.id)),
10209
10209
  [c, u]
10210
10210
  ), d = S.useMemo(
10211
- () => l.map((m) => c.find((b) => b.id === m)).filter(Boolean),
10211
+ () => l.map((m) => c.find((y) => y.id === m)).filter(Boolean),
10212
10212
  [c, l]
10213
10213
  ), f = /* @__PURE__ */ n((m) => {
10214
10214
  t || u.has(m) || s.onChange([...l, m]);
10215
10215
  }, "moveRight"), g = /* @__PURE__ */ n((m) => {
10216
- t || s.onChange(l.filter((b) => b !== m));
10216
+ t || s.onChange(l.filter((y) => y !== m));
10217
10217
  }, "moveLeft");
10218
10218
  return /* @__PURE__ */ i(
10219
10219
  Me,
@@ -10263,10 +10263,10 @@ const H0 = {
10263
10263
  }
10264
10264
  );
10265
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] || [], b = S.useMemo(
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(
10267
10267
  () => Array.isArray(r?.[o]) ? r[o] : [],
10268
10268
  [r, o]
10269
- ), [y, h] = S.useState(""), { field: w } = sn({ defaultValue: "", ...e }), P = S.useMemo(
10269
+ ), [b, h] = S.useState(""), { field: w } = sn({ defaultValue: "", ...e }), P = S.useMemo(
10270
10270
  () => Array.isArray(m) && m.length > 0 ? l?.filter(
10271
10271
  (v) => !m.some((_) => _ === v.id)
10272
10272
  ) || [] : l || [],
@@ -10349,12 +10349,12 @@ const H0 = {
10349
10349
  );
10350
10350
  f.setValue(o, K, { shouldDirty: !0 }), u(ua(c, v));
10351
10351
  }, "handleCheckedLeft"), k = /* @__PURE__ */ n(() => {
10352
- typeof f.resetField == "function" ? f.resetField(o, { defaultValue: b }) : f.setValue(o, b, { shouldDirty: !1 }), u([]), d(null);
10352
+ typeof f.resetField == "function" ? f.resetField(o, { defaultValue: y }) : f.setValue(o, y, { shouldDirty: !1 }), u([]), d(null);
10353
10353
  }, "handleResetChanges"), L = /* @__PURE__ */ n((v, _, K = {}) => {
10354
10354
  const q = _ ? "Disponibles..." : "Seleccionados...", Z = /* @__PURE__ */ n((W) => {
10355
10355
  h(W === "" ? W : W.target.value);
10356
10356
  }, "handleSearchChange"), X = v.filter(
10357
- (W) => W.etiqueta.toLowerCase().includes(y.toLowerCase())
10357
+ (W) => W.etiqueta.toLowerCase().includes(b.toLowerCase())
10358
10358
  );
10359
10359
  return /* @__PURE__ */ F(
10360
10360
  dn,
@@ -10390,7 +10390,7 @@ const H0 = {
10390
10390
  alwaysOn: !0,
10391
10391
  fullWidth: !0,
10392
10392
  resettable: !0,
10393
- value: y,
10393
+ value: b,
10394
10394
  onChange: Z,
10395
10395
  placeholder: q,
10396
10396
  inputProps: { "aria-label": q },
@@ -10773,12 +10773,12 @@ const H0 = {
10773
10773
  onConfirm: p,
10774
10774
  contentResource: d,
10775
10775
  translateOptions: f = {}
10776
- } = e, g = ge(), [m] = za({ resource: d }), b = te(
10776
+ } = e, g = ge(), [m] = za({ resource: d }), y = te(
10777
10777
  (h, w) => {
10778
10778
  h.stopPropagation(), p(h, m);
10779
10779
  },
10780
10780
  [m, p]
10781
- ), y = te((h) => {
10781
+ ), b = te((h) => {
10782
10782
  h.stopPropagation();
10783
10783
  }, []);
10784
10784
  return /* @__PURE__ */ F(
@@ -10786,7 +10786,7 @@ const H0 = {
10786
10786
  {
10787
10787
  open: t,
10788
10788
  onClose: u,
10789
- onClick: y,
10789
+ onClick: b,
10790
10790
  maxWidth: "md",
10791
10791
  PaperComponent: rg,
10792
10792
  "aria-labelledby": "draggable-dialog-title",
@@ -10802,7 +10802,7 @@ const H0 = {
10802
10802
  yt,
10803
10803
  {
10804
10804
  disabled: o,
10805
- onClick: /* @__PURE__ */ n((h) => b(h, "yes"), "onClick"),
10805
+ onClick: /* @__PURE__ */ n((h) => y(h, "yes"), "onClick"),
10806
10806
  autoFocus: !0,
10807
10807
  children: [
10808
10808
  /* @__PURE__ */ i(l, { sx: { paddingRight: "0.5em" } }),
@@ -10829,33 +10829,33 @@ const H0 = {
10829
10829
  sx: f,
10830
10830
  onChange: g,
10831
10831
  asistant: m,
10832
- asistantResource: b,
10833
- source: y,
10832
+ asistantResource: y,
10833
+ source: b,
10834
10834
  ...h
10835
10835
  }
10836
10836
  } = Qe(e), w = qe();
10837
10837
  oe(() => {
10838
10838
  l.current || (setTimeout(() => {
10839
- w.setValue(y, cg);
10839
+ w.setValue(b, cg);
10840
10840
  }, 0), l.current = !0);
10841
- }, [w, y]);
10841
+ }, [w, b]);
10842
10842
  const P = te(() => {
10843
10843
  r(!1), s(null);
10844
10844
  }, [r]), M = /* @__PURE__ */ n((I, R) => {
10845
10845
  const E = Array.isArray(a) ? a : R;
10846
- r(!1), w.setValue(y, {
10846
+ r(!1), w.setValue(b, {
10847
10847
  seleccion: E.join(","),
10848
10848
  all: !1,
10849
10849
  none: !1
10850
10850
  }), g(I);
10851
10851
  }, "handleConfirm"), x = /* @__PURE__ */ n((I) => {
10852
- w.setValue(y, {
10852
+ w.setValue(b, {
10853
10853
  seleccion: "",
10854
10854
  all: !1,
10855
10855
  none: !0
10856
10856
  }), g(I);
10857
10857
  }, "handleNinguno"), T = /* @__PURE__ */ n((I) => {
10858
- w.setValue(y, {
10858
+ w.setValue(b, {
10859
10859
  seleccion: "",
10860
10860
  all: !0,
10861
10861
  none: !1
@@ -10876,7 +10876,7 @@ const H0 = {
10876
10876
  Et,
10877
10877
  {
10878
10878
  ...h,
10879
- source: y,
10879
+ source: b,
10880
10880
  label: d,
10881
10881
  readOnly: !0,
10882
10882
  parse: ug,
@@ -10930,7 +10930,7 @@ const H0 = {
10930
10930
  {
10931
10931
  isOpen: o,
10932
10932
  title: t("pos.selection_of", { label: d }),
10933
- contentResource: b,
10933
+ contentResource: y,
10934
10934
  content: S.createElement(m, {
10935
10935
  panel: {
10936
10936
  hasCreate: !1,
@@ -10948,7 +10948,7 @@ const H0 = {
10948
10948
  hideViewModeMenu: !0,
10949
10949
  hideGridToolbarActions: !0,
10950
10950
  onSelectionChange: s,
10951
- resource: b
10951
+ resource: y
10952
10952
  },
10953
10953
  config: {
10954
10954
  actionButtons: !1,
@@ -11238,7 +11238,7 @@ const H0 = {
11238
11238
  filterOptionKeys: p
11239
11239
  } = e, d = de(() => !Array.isArray(p) || p.length === 0 ? jo : jo.filter(
11240
11240
  (N) => p.includes(N.key)
11241
- ), [p]), [f, g] = ee(wg), [m, b] = ee([]), [y, h] = ee(null), [w, P] = ee(!0), [M, x] = ee(!1), [T, I] = ee(
11241
+ ), [p]), [f, g] = ee(wg), [m, y] = ee([]), [b, h] = ee(null), [w, P] = ee(!0), [M, x] = ee(!1), [T, I] = ee(
11242
11242
  d.find((N) => N.key === u) || d[0] || jo[0]
11243
11243
  ), R = Dt(), E = un(), D = rn(), H = te(
11244
11244
  (N) => E.fetchQuery({
@@ -11249,7 +11249,7 @@ const H0 = {
11249
11249
  staleTime: 0
11250
11250
  }),
11251
11251
  [R, E]
11252
- ), O = uu(), V = !!y, $ = de(
11252
+ ), O = uu(), V = !!b, $ = de(
11253
11253
  () => gg(o),
11254
11254
  [o]
11255
11255
  ), k = de(
@@ -11281,7 +11281,7 @@ const H0 = {
11281
11281
  return (/* @__PURE__ */ n(async () => {
11282
11282
  try {
11283
11283
  const me = await H("");
11284
- N && b([$n, ...me]);
11284
+ N && y([$n, ...me]);
11285
11285
  } catch {
11286
11286
  N && D("Data Loading Error", { type: "error" });
11287
11287
  }
@@ -11320,7 +11320,7 @@ const H0 = {
11320
11320
  if (!(!me || !we?.hasItems || we.children.length > 0))
11321
11321
  try {
11322
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");
11323
- b((se) => Be(se));
11323
+ y((se) => Be(se));
11324
11324
  } catch {
11325
11325
  D("Data Loading Error", { type: "error" });
11326
11326
  }
@@ -11463,7 +11463,7 @@ const H0 = {
11463
11463
  /* @__PURE__ */ i(
11464
11464
  Yo,
11465
11465
  {
11466
- anchorEl: y,
11466
+ anchorEl: b,
11467
11467
  open: V,
11468
11468
  onClose: W,
11469
11469
  children: d.map((N) => {
@@ -11588,8 +11588,8 @@ const H0 = {
11588
11588
  meta: f,
11589
11589
  onStructureFilterChange: g,
11590
11590
  onStatusFilterChange: m,
11591
- initialFilterKey: b,
11592
- filterOptionKeys: y,
11591
+ initialFilterKey: y,
11592
+ filterOptionKeys: b,
11593
11593
  dialogProps: h
11594
11594
  } = e, w = Dt(), P = ge(), [M] = za({ resource: "form_224" }), [x, T] = ee({}), [I, R] = ee(null), [E, D] = ee(!1), H = te(($) => {
11595
11595
  T((k) => {
@@ -11669,8 +11669,8 @@ const H0 = {
11669
11669
  onListParamsChange: R,
11670
11670
  onStructureFilterChange: g,
11671
11671
  onStatusFilterChange: m,
11672
- initialFilterKey: b,
11673
- filterOptionKeys: y
11672
+ initialFilterKey: y,
11673
+ filterOptionKeys: b
11674
11674
  }
11675
11675
  ) }),
11676
11676
  /* @__PURE__ */ F(si, { children: [
@@ -11720,12 +11720,12 @@ const H0 = {
11720
11720
  egresadosdosmeses: "E",
11721
11721
  todos: "T"
11722
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(), b = ge(), y = qe(), { estado: h, fichaProps: w = {} } = Te(), P = De(!1), {
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), {
11724
11724
  hidden: M,
11725
11725
  propsContenido: {
11726
11726
  readOnly: x,
11727
11727
  sx: T,
11728
- label: I = b("pos.employees"),
11728
+ label: I = y("pos.employees"),
11729
11729
  allowNone: R = !0,
11730
11730
  allowAll: E = !0,
11731
11731
  allowStatus: D = !0,
@@ -11745,7 +11745,7 @@ const H0 = {
11745
11745
  for (const pe of ie) {
11746
11746
  if (typeof pe != "function")
11747
11747
  continue;
11748
- const Ge = pe(B, y.getValues(), e);
11748
+ const Ge = pe(B, b.getValues(), e);
11749
11749
  if (Ge)
11750
11750
  return Ge;
11751
11751
  }
@@ -11753,7 +11753,7 @@ const H0 = {
11753
11753
  }, "validate")
11754
11754
  } : void 0, { field: Z, fieldState: X } = Fu({
11755
11755
  name: t,
11756
- control: y.control,
11756
+ control: b.control,
11757
11757
  rules: q
11758
11758
  }), { [t]: W = {} } = w, re = Ct(e), ne = W.onChange === void 0 ? o : W.onChange, be = D !== !1 && $ !== !1, [N, Q] = ee(
11759
11759
  so($)
@@ -11765,26 +11765,26 @@ const H0 = {
11765
11765
  Q(so($));
11766
11766
  }, [$]), oe(() => {
11767
11767
  P.current || (setTimeout(() => {
11768
- const B = y.getValues(t);
11768
+ const B = b.getValues(t);
11769
11769
  if (be ? pa(B) : B == null || B === "") {
11770
11770
  const ie = Mc({
11771
11771
  soloActivos: so($)
11772
11772
  });
11773
- y.setValue(
11773
+ b.setValue(
11774
11774
  t,
11775
11775
  E === !1 ? { ...ie, all: !1, none: !0 } : ie
11776
11776
  );
11777
11777
  }
11778
11778
  }, 0), P.current = !0);
11779
- }, [E, y, $, t, be]);
11779
+ }, [E, b, $, t, be]);
11780
11780
  const we = te(
11781
11781
  (B) => {
11782
11782
  if (be && pa(B))
11783
- return b(me.label);
11783
+ return y(me.label);
11784
11784
  const ie = Nn(B, {
11785
11785
  soloActivos: N
11786
11786
  });
11787
- return String(B) === B ? B === "" ? b("pos.none") : b("pos.selection_count", { count: 1 }) : !B || ie.all ? E === !1 ? b("pos.none") : ie.soloActivos === "A" ? b("pos.active") : ie.soloActivos === "E" ? b("pos.terminated") : b("pos.all") : ie.none || Bn(ie.seleccion).length === 0 ? b("pos.none") : b("pos.selection_count", {
11787
+ return String(B) === B ? B === "" ? y("pos.none") : y("pos.selection_count", { count: 1 }) : !B || ie.all ? E === !1 ? y("pos.none") : ie.soloActivos === "A" ? y("pos.active") : ie.soloActivos === "E" ? y("pos.terminated") : y("pos.all") : ie.none || Bn(ie.seleccion).length === 0 ? y("pos.none") : y("pos.selection_count", {
11788
11788
  count: Bn(ie.seleccion).length
11789
11789
  });
11790
11790
  },
@@ -11792,7 +11792,7 @@ const H0 = {
11792
11792
  N,
11793
11793
  me.label,
11794
11794
  E,
11795
- b,
11795
+ y,
11796
11796
  be
11797
11797
  ]
11798
11798
  ), Oe = Z.value, Be = de(
@@ -11839,7 +11839,7 @@ const H0 = {
11839
11839
  [h, ne, re]
11840
11840
  ), ue = te(
11841
11841
  (B) => {
11842
- const ie = Nn(y.getValues(t), {
11842
+ const ie = Nn(b.getValues(t), {
11843
11843
  soloActivos: so($)
11844
11844
  }), pe = Object.prototype.hasOwnProperty.call(
11845
11845
  B,
@@ -11860,15 +11860,15 @@ const H0 = {
11860
11860
  ...Object.prototype.hasOwnProperty.call(B, "none") ? { none: nn(B.none) } : {}
11861
11861
  };
11862
11862
  },
11863
- [y, $, t]
11863
+ [b, $, t]
11864
11864
  ), ae = te(() => {
11865
11865
  s(!1);
11866
11866
  }, []), ve = te(
11867
11867
  (B, ie) => {
11868
11868
  const pe = ue(ie);
11869
- y.setValue(t, pe), G(B);
11869
+ b.setValue(t, pe), G(B);
11870
11870
  },
11871
- [ue, y, t, G]
11871
+ [ue, b, t, G]
11872
11872
  ), Le = te(
11873
11873
  (B, ie, pe = {}) => {
11874
11874
  s(!1), ve(B, {
@@ -11913,7 +11913,7 @@ const H0 = {
11913
11913
  ), Mt = te(
11914
11914
  (B) => {
11915
11915
  const ie = Rg[B?.key] || N;
11916
- Q(ie), y.setValue(
11916
+ Q(ie), b.setValue(
11917
11917
  t,
11918
11918
  ue({
11919
11919
  seleccion: "",
@@ -11923,7 +11923,7 @@ const H0 = {
11923
11923
  })
11924
11924
  );
11925
11925
  },
11926
- [N, ue, y, t]
11926
+ [N, ue, b, t]
11927
11927
  ), nt = te(
11928
11928
  async (B) => {
11929
11929
  const ie = String(u || "").trim();
@@ -12113,16 +12113,16 @@ const H0 = {
12113
12113
  {
12114
12114
  onClick: Ie,
12115
12115
  disabled: x,
12116
- "aria-label": b("pos.none"),
12116
+ "aria-label": y("pos.none"),
12117
12117
  size: "small",
12118
- title: b("pos.none"),
12118
+ title: y("pos.none"),
12119
12119
  children: /* @__PURE__ */ i(Ji, {})
12120
12120
  }
12121
12121
  ),
12122
12122
  /* @__PURE__ */ i(
12123
12123
  xt,
12124
12124
  {
12125
- title: b(
12125
+ title: y(
12126
12126
  me.label
12127
12127
  ),
12128
12128
  children: /* @__PURE__ */ F(
@@ -12130,7 +12130,7 @@ const H0 = {
12130
12130
  {
12131
12131
  onClick: gt,
12132
12132
  disabled: x,
12133
- "aria-label": b(
12133
+ "aria-label": y(
12134
12134
  me.label
12135
12135
  ),
12136
12136
  size: "small",
@@ -12148,9 +12148,9 @@ const H0 = {
12148
12148
  {
12149
12149
  onClick: Ie,
12150
12150
  disabled: x,
12151
- "aria-label": b("pos.none"),
12151
+ "aria-label": y("pos.none"),
12152
12152
  size: "small",
12153
- title: b("pos.none"),
12153
+ title: y("pos.none"),
12154
12154
  children: /* @__PURE__ */ i(Ji, {})
12155
12155
  }
12156
12156
  ),
@@ -12159,9 +12159,9 @@ const H0 = {
12159
12159
  {
12160
12160
  onClick: Se,
12161
12161
  disabled: x,
12162
- "aria-label": b("pos.all"),
12162
+ "aria-label": y("pos.all"),
12163
12163
  size: "small",
12164
- title: b("pos.all"),
12164
+ title: y("pos.all"),
12165
12165
  children: /* @__PURE__ */ i(ll, {})
12166
12166
  }
12167
12167
  )
@@ -12173,9 +12173,9 @@ const H0 = {
12173
12173
  d?.enabled || s(!0);
12174
12174
  }, "onClick"),
12175
12175
  disabled: x,
12176
- "aria-label": b("pos.selection"),
12176
+ "aria-label": y("pos.selection"),
12177
12177
  size: "small",
12178
- title: b("pos.selection"),
12178
+ title: y("pos.selection"),
12179
12179
  children: /* @__PURE__ */ i(cl, {})
12180
12180
  }
12181
12181
  )
@@ -12208,7 +12208,7 @@ const H0 = {
12208
12208
  style: { marginRight: 8 }
12209
12209
  }
12210
12210
  ),
12211
- b(B.label)
12211
+ y(B.label)
12212
12212
  ]
12213
12213
  },
12214
12214
  B.value
@@ -12220,7 +12220,7 @@ const H0 = {
12220
12220
  Ig,
12221
12221
  {
12222
12222
  isOpen: a,
12223
- title: b("pos.selection_of", { label: I }),
12223
+ title: y("pos.selection_of", { label: I }),
12224
12224
  onConfirm: Le,
12225
12225
  onClose: ae,
12226
12226
  filgrilla: k,
@@ -12258,8 +12258,8 @@ const H0 = {
12258
12258
  initialValue: f,
12259
12259
  initializeForm: g,
12260
12260
  input: m,
12261
- isEqual: b,
12262
- isRequired: y,
12261
+ isEqual: y,
12262
+ isRequired: b,
12263
12263
  label: h,
12264
12264
  limitChoicesToValue: w,
12265
12265
  locale: P,
@@ -12304,8 +12304,8 @@ const H0 = {
12304
12304
  parse: f,
12305
12305
  validate: g,
12306
12306
  variant: m,
12307
- disabled: b,
12308
- readOnly: y,
12307
+ disabled: y,
12308
+ readOnly: b,
12309
12309
  sx: h,
12310
12310
  ...w
12311
12311
  }) => {
@@ -12319,8 +12319,8 @@ const H0 = {
12319
12319
  resource: l,
12320
12320
  source: s,
12321
12321
  validate: g,
12322
- disabled: b,
12323
- readOnly: y,
12322
+ disabled: y,
12323
+ readOnly: b,
12324
12324
  ...w
12325
12325
  }), { error: I, invalid: R } = M, E = c !== !1 || R;
12326
12326
  return /* @__PURE__ */ i(
@@ -12334,8 +12334,8 @@ const H0 = {
12334
12334
  variant: m,
12335
12335
  margin: u,
12336
12336
  error: R,
12337
- disabled: b || y,
12338
- readOnly: y,
12337
+ disabled: y || b,
12338
+ readOnly: b,
12339
12339
  helperText: E ? /* @__PURE__ */ i(
12340
12340
  Tc,
12341
12341
  {
@@ -12376,8 +12376,8 @@ const H0 = {
12376
12376
  validate: f,
12377
12377
  variant: g,
12378
12378
  disabled: m,
12379
- readOnly: b,
12380
- sx: y,
12379
+ readOnly: y,
12380
+ sx: b,
12381
12381
  ...h
12382
12382
  }) => {
12383
12383
  const { field: w, fieldState: P, id: M, isRequired: x } = sn({
@@ -12390,7 +12390,7 @@ const H0 = {
12390
12390
  source: u,
12391
12391
  validate: f,
12392
12392
  disabled: m,
12393
- readOnly: b,
12393
+ readOnly: y,
12394
12394
  ...h
12395
12395
  }), { error: T, invalid: I } = P, R = a !== !1 || I;
12396
12396
  return /* @__PURE__ */ i(
@@ -12404,8 +12404,8 @@ const H0 = {
12404
12404
  variant: g,
12405
12405
  margin: s,
12406
12406
  error: I,
12407
- disabled: m || b,
12408
- readOnly: b,
12407
+ disabled: m || y,
12408
+ readOnly: y,
12409
12409
  helperText: R ? /* @__PURE__ */ i(
12410
12410
  Tc,
12411
12411
  {
@@ -12423,7 +12423,7 @@ const H0 = {
12423
12423
  }
12424
12424
  ),
12425
12425
  InputLabelProps: Ng,
12426
- sx: { ...y, mt: 1 },
12426
+ sx: { ...b, mt: 1 },
12427
12427
  ...Fc(h)
12428
12428
  }
12429
12429
  );
@@ -12449,8 +12449,8 @@ const H0 = {
12449
12449
  const g = e - f.length;
12450
12450
  if (g <= 0)
12451
12451
  return f;
12452
- const [m, b = ""] = d.split(".", 2), y = m.slice(0, g), h = g - y.length, w = b.slice(0, Math.min(t, h));
12453
- return f + (d.includes(".") && w.length < 1 && h > 0 ? `${y}.` : d.includes(".") && h > 0 ? `${y}.${w}` : y);
12452
+ const [m, y = ""] = d.split(".", 2), b = m.slice(0, g), h = g - b.length, w = y.slice(0, Math.min(t, h));
12453
+ return f + (d.includes(".") && w.length < 1 && h > 0 ? `${b}.` : d.includes(".") && h > 0 ? `${b}.${w}` : b);
12454
12454
  },
12455
12455
  [e, t, r]
12456
12456
  ), l = te(