biblio-react 3.0.0-alpha124 → 3.0.0-alpha125

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
@@ -8443,7 +8443,7 @@ const $N = ["align", "className", "component", "gutterBottom", "noWrap", "paragr
8443
8443
  secondary: "secondary.main",
8444
8444
  textSecondary: "text.secondary",
8445
8445
  error: "error.main"
8446
- }, _N = /* @__PURE__ */ a((t) => DN[t] || t, "transformDeprecatedColors$1"), Pt = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ a(function(e, r) {
8446
+ }, _N = /* @__PURE__ */ a((t) => DN[t] || t, "transformDeprecatedColors$1"), Rt = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ a(function(e, r) {
8447
8447
  const n = Ce({
8448
8448
  props: e,
8449
8449
  name: "MuiTypography"
@@ -8476,7 +8476,7 @@ const $N = ["align", "className", "component", "gutterBottom", "noWrap", "paragr
8476
8476
  className: re(x.root, l)
8477
8477
  }, m));
8478
8478
  }, "Typography"));
8479
- process.env.NODE_ENV !== "production" && (Pt.propTypes = {
8479
+ process.env.NODE_ENV !== "production" && (Rt.propTypes = {
8480
8480
  // ┌────────────────────────────── Warning ──────────────────────────────┐
8481
8481
  // │ These PropTypes are generated from the TypeScript type definitions. │
8482
8482
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -8563,7 +8563,7 @@ const VN = ["children", "className"], jN = /* @__PURE__ */ a((t) => {
8563
8563
  root: ["root"]
8564
8564
  }, BN, e);
8565
8565
  return E({}, e, n);
8566
- }, "useUtilityClasses$H"), zN = Q(Pt, {
8566
+ }, "useUtilityClasses$H"), zN = Q(Rt, {
8567
8567
  shouldForwardProp: /* @__PURE__ */ a((t) => Lt(t) || t === "classes", "shouldForwardProp"),
8568
8568
  name: "MuiDialogContentText",
8569
8569
  slot: "Root",
@@ -8615,7 +8615,7 @@ const HN = ["className", "id"], WN = /* @__PURE__ */ a((t) => {
8615
8615
  return Se({
8616
8616
  root: ["root"]
8617
8617
  }, MN, e);
8618
- }, "useUtilityClasses$G"), UN = Q(Pt, {
8618
+ }, "useUtilityClasses$G"), UN = Q(Rt, {
8619
8619
  name: "MuiDialogTitle",
8620
8620
  slot: "Root",
8621
8621
  overridesResolver: /* @__PURE__ */ a((t, e) => e.root, "overridesResolver")
@@ -9601,11 +9601,11 @@ const OD = /^(\d+)(th|st|nd|rd)?/i, SD = /\d+/i, CD = {
9601
9601
  ]
9602
9602
  );
9603
9603
  return /* @__PURE__ */ y(Gg.Provider, { value: o, children: e });
9604
- }, "FichaProvider"), At = /* @__PURE__ */ a(() => ot(Gg) || {}, "useFicha$1"), YC = /* @__PURE__ */ a((t) => {
9604
+ }, "FichaProvider"), wt = /* @__PURE__ */ a(() => ot(Gg) || {}, "useFicha"), YC = /* @__PURE__ */ a((t) => {
9605
9605
  const e = ot(KC);
9606
9606
  return (t == null ? void 0 : t.id) || e;
9607
9607
  }, "useIdContext"), pr = /* @__PURE__ */ a((t) => {
9608
- const { source: e } = t, { estado: r, isLoading: n, fichaProps: o = {} } = At(), i = ot(ss), s = i !== void 0, l = ig((ze) => {
9608
+ const { source: e } = t, { estado: r, isLoading: n, fichaProps: o = {} } = wt(), i = ot(ss), s = i !== void 0, l = ig((ze) => {
9609
9609
  const bt = ze.configInputs ? ze.configInputs.filter((Ct) => Ct.id === e) : [];
9610
9610
  return bt[0] ? bt[0] : null;
9611
9611
  }), {
@@ -9769,10 +9769,7 @@ const OD = /^(\d+)(th|st|nd|rd)?/i, SD = /\d+/i, CD = {
9769
9769
  ] }) });
9770
9770
  }, "ToolbarFicha"), pf = /* @__PURE__ */ a(() => {
9771
9771
  }, "dontSave"), fp = /* @__PURE__ */ a((t) => {
9772
- const { borrar: e = !1 } = t, r = dt(), n = ur(), o = Et(), i = Di(), {
9773
- fichaProps: { onBeforeSubmitFicha: s, etrs: l },
9774
- estado: u
9775
- } = At(), d = O_({ ...t, etrs: l }), [p] = uS(
9772
+ const { borrar: e = !1 } = t, r = dt(), n = ur(), o = Et(), i = Di(), { estado: s, fichaProps: { onBeforeSubmitFicha: l, etrs: u } = {} } = wt(), d = O_({ ...t, etrs: u }), [p] = uS(
9776
9773
  r,
9777
9774
  {
9778
9775
  id: n == null ? void 0 : n.id
@@ -9805,19 +9802,19 @@ const OD = /^(\d+)(th|st|nd|rd)?/i, SD = /\d+/i, CD = {
9805
9802
  }
9806
9803
  ), f = Un(), { save: h } = fP(), g = Ke(
9807
9804
  async (m) => {
9808
- const b = s && await s(
9805
+ const b = l && await l(
9809
9806
  {
9810
9807
  form: { getValues: /* @__PURE__ */ a(() => m, "getValues") },
9811
9808
  submit: h,
9812
9809
  ...d
9813
9810
  },
9814
- e ? "B" : u
9811
+ e ? "B" : s
9815
9812
  );
9816
9813
  return typeof b == "string" ? (f(b, { type: "error" }), pf()) : b === void 0 || b ? e ? p() : h(m) : pf();
9817
9814
  },
9818
- [s, f, pf, h]
9815
+ [l, f, pf, h]
9819
9816
  );
9820
- return typeof s == "function" ? g : void 0;
9817
+ return typeof l == "function" ? g : void 0;
9821
9818
  }, "useFormSubmit");
9822
9819
  let vh = null;
9823
9820
  const QC = /* @__PURE__ */ a(() => {
@@ -9906,7 +9903,7 @@ const QC = /* @__PURE__ */ a(() => {
9906
9903
  }) => F, "sanitizeRestProps$4"), hte = /* @__PURE__ */ a((t) => {
9907
9904
  const { hidden: e } = pr(t);
9908
9905
  return !e && /* @__PURE__ */ y(
9909
- Pt,
9906
+ Rt,
9910
9907
  {
9911
9908
  variant: "h6",
9912
9909
  gutterBottom: !0,
@@ -10119,7 +10116,7 @@ const QC = /* @__PURE__ */ a(() => {
10119
10116
  abrirVentanaSistema: h
10120
10117
  };
10121
10118
  }, "useUtilsGrilla"), O_ = /* @__PURE__ */ a((t) => {
10122
- const e = ek(), r = tk(), n = rk(), o = nk(), i = ok(), s = ik(), l = as(), u = Un(), d = Di(), p = Qa(), f = dt(t), h = dp(), { propsContenidos: g, setPropsContenidos: m } = At(), [b] = Jg(f), v = t.etrs || {};
10119
+ const e = ek(), r = tk(), n = rk(), o = nk(), i = ok(), s = ik(), l = as(), u = Un(), d = Di(), p = Qa(), f = dt(t), h = dp(), { propsContenidos: g, setPropsContenidos: m } = wt(), [b] = Jg(f), v = t.etrs || {};
10123
10120
  return {
10124
10121
  ajax: b,
10125
10122
  notify: u,
@@ -10137,7 +10134,7 @@ const QC = /* @__PURE__ */ a(() => {
10137
10134
  etrs: v
10138
10135
  };
10139
10136
  }, "useUtilsSubmit"), wn = /* @__PURE__ */ a((t) => {
10140
- const e = ek(), r = tk(), n = rk(), o = nk(), i = ok(), s = ik(), l = as(), u = Un(), d = Di(), p = Qa(), f = dr(), h = dt(t), g = dp(), m = lk(), b = ZC(), { propsContenidos: v, setPropsContenidos: x } = At(), [T] = Jg(h), k = t.etrs || {}, C = t.asisEtr || {}, S = f == null ? void 0 : f.trigger;
10137
+ const e = ek(), r = tk(), n = rk(), o = nk(), i = ok(), s = ik(), l = as(), u = Un(), d = Di(), p = Qa(), f = dr(), h = dt(t), g = dp(), m = lk(), b = ZC(), { propsContenidos: v, setPropsContenidos: x } = wt(), [T] = Jg(h), k = t.etrs || {}, C = t.asisEtr || {}, S = f == null ? void 0 : f.trigger;
10141
10138
  return {
10142
10139
  form: f,
10143
10140
  ajax: T,
@@ -10194,7 +10191,7 @@ const QC = /* @__PURE__ */ a(() => {
10194
10191
  asisEtr: C
10195
10192
  };
10196
10193
  }, "useUtilsFicha"), uk = /* @__PURE__ */ a((t) => {
10197
- const { estado: e, isLoading: r, fichaProps: n = {} } = At(), { [t.source]: o = {} } = n, { hidden: i = !1, ...s } = t, {
10194
+ const { estado: e, isLoading: r, fichaProps: n = {} } = wt(), { [t.source]: o = {} } = n, { hidden: i = !1, ...s } = t, {
10198
10195
  hidden: l,
10199
10196
  useContenido: u = tc,
10200
10197
  ...d
@@ -10732,7 +10729,7 @@ const D_ = /* @__PURE__ */ a((t) => {
10732
10729
  const l = n.current.getColumn(s), u = (l == null ? void 0 : l.headerName) ?? s, d = ((p = r.row) == null ? void 0 : p[s]) ?? "N/A";
10733
10730
  return /* @__PURE__ */ W(a0, { item: !0, xs: 12, children: [
10734
10731
  /* @__PURE__ */ y(
10735
- Pt,
10732
+ Rt,
10736
10733
  {
10737
10734
  variant: "caption",
10738
10735
  color: "text.secondary",
@@ -10742,7 +10739,7 @@ const D_ = /* @__PURE__ */ a((t) => {
10742
10739
  }
10743
10740
  ),
10744
10741
  /* @__PURE__ */ y(
10745
- Pt,
10742
+ Rt,
10746
10743
  {
10747
10744
  variant: "body2",
10748
10745
  component: "div",
@@ -13683,14 +13680,14 @@ const su = Oe("MuiListItemText", ["root", "multiline", "dense", "inset", "primar
13683
13680
  secondary: !!b,
13684
13681
  dense: g
13685
13682
  }), x = Z2(v);
13686
- return m != null && m.type !== Pt && !s && (m = /* @__PURE__ */ y(Pt, E({
13683
+ return m != null && m.type !== Rt && !s && (m = /* @__PURE__ */ y(Rt, E({
13687
13684
  variant: g ? "body2" : "body1",
13688
13685
  className: x.primary,
13689
13686
  component: d != null && d.variant ? void 0 : "span",
13690
13687
  display: "block"
13691
13688
  }, d, {
13692
13689
  children: m
13693
- }))), b != null && b.type !== Pt && !s && (b = /* @__PURE__ */ y(Pt, E({
13690
+ }))), b != null && b.type !== Rt && !s && (b = /* @__PURE__ */ y(Rt, E({
13694
13691
  variant: "body2",
13695
13692
  className: x.secondary,
13696
13693
  color: "text.secondary",
@@ -14824,7 +14821,7 @@ function bB(t) {
14824
14821
  container: r,
14825
14822
  onClose: /* @__PURE__ */ a(() => o(!1), "onClose"),
14826
14823
  children: [
14827
- /* @__PURE__ */ y(Rk, { children: /* @__PURE__ */ y(Pt, { fontWeight: 500, children: "Columnas" }) }),
14824
+ /* @__PURE__ */ y(Rk, { children: /* @__PURE__ */ y(Rt, { fontWeight: 500, children: "Columnas" }) }),
14828
14825
  /* @__PURE__ */ y(Ei, { children: s.map((d) => {
14829
14826
  const p = l[d.field] !== !1;
14830
14827
  return /* @__PURE__ */ y(kp, { disablePadding: !0, children: /* @__PURE__ */ W(
@@ -15317,7 +15314,7 @@ function MB(t) {
15317
15314
  container: r,
15318
15315
  onClose: /* @__PURE__ */ a(() => o(!1), "onClose"),
15319
15316
  children: [
15320
- /* @__PURE__ */ y(Rk, { children: /* @__PURE__ */ y(Pt, { fontWeight: 500, children: "Ordenar por" }) }),
15317
+ /* @__PURE__ */ y(Rk, { children: /* @__PURE__ */ y(Rt, { fontWeight: 500, children: "Ordenar por" }) }),
15321
15318
  /* @__PURE__ */ y(Ei, { children: u.map((f) => {
15322
15319
  const h = l.findIndex(
15323
15320
  (b) => b.field === f.field
@@ -15412,7 +15409,7 @@ function RB(t) {
15412
15409
  children: /* @__PURE__ */ y(pR, { fontSize: "small" })
15413
15410
  }
15414
15411
  ),
15415
- /* @__PURE__ */ W(Pt, { variant: "body2", children: [
15412
+ /* @__PURE__ */ W(Rt, { variant: "body2", children: [
15416
15413
  p,
15417
15414
  " seleccionado"
15418
15415
  ] })
@@ -22885,7 +22882,7 @@ const Zj = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
22885
22882
  }, "getDialogForm"))() : (/* @__PURE__ */ a(() => /* @__PURE__ */ W(vn, { children: [
22886
22883
  /* @__PURE__ */ y($k, { sx: { position: "relative" }, color: "inherit", children: /* @__PURE__ */ W(Lk, { disableGutters: !0, variant: "dense", children: [
22887
22884
  /* @__PURE__ */ y(
22888
- Pt,
22885
+ Rt,
22889
22886
  {
22890
22887
  sx: { ml: 2, flex: 1 },
22891
22888
  variant: "h6",
@@ -23194,7 +23191,7 @@ const Zj = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
23194
23191
  fontSize: "0.75rem"
23195
23192
  },
23196
23193
  showInMenu: !0,
23197
- onClick: /* @__PURE__ */ a((Mt) => typeof Te == "function" ? Te(
23194
+ onClick: /* @__PURE__ */ a((Pt) => typeof Te == "function" ? Te(
23198
23195
  {
23199
23196
  ...F,
23200
23197
  record: de.row
@@ -23595,9 +23592,7 @@ const Zj = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
23595
23592
  camposClaveFila: s,
23596
23593
  setOpen: l,
23597
23594
  open: u
23598
- } = t, { dirtyFields: d, isValid: p } = hR(), {
23599
- fichaProps: { [t.source]: f = {}, etrs: h }
23600
- } = At(), g = as(), m = ot(ss), { onAfterRenderAsistente: b, ...v } = f, x = wn({ resource: r, etrs: h, asisEtr: m });
23595
+ } = t, { dirtyFields: d, isValid: p } = hR(), { fichaProps: { [t.source]: f = {}, etrs: h } = {} } = wt(), g = as(), m = ot(ss), { onAfterRenderAsistente: b, ...v } = f, x = wn({ resource: r, etrs: h, asisEtr: m });
23601
23596
  return Ge(() => {
23602
23597
  u && typeof b == "function" && b({ ...x, form: e }, n);
23603
23598
  }, [u]), /* @__PURE__ */ W(Qr, { children: [
@@ -23645,10 +23640,7 @@ const Zj = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
23645
23640
  onBeforeSubmitAsistente: l = $a,
23646
23641
  onAfterSubmitAsistente: u = $a,
23647
23642
  validateAllowAdd: d
23648
- } = t, [p, f] = eg(!1), h = dt(t), g = dr(), m = _i(), b = pk({ apiRef: m, source: i, enviarTodo: s }), v = "N", {
23649
- estado: x,
23650
- fichaProps: { etrs: T }
23651
- } = At(), k = ot(ss), C = wn({ etrs: T, asisEtr: k }), w = Et()("ra.action.create");
23643
+ } = t, [p, f] = eg(!1), h = dt(t), g = dr(), m = _i(), b = pk({ apiRef: m, source: i, enviarTodo: s }), v = "N", { estado: x, fichaProps: { etrs: T } = {} } = wt(), k = ot(ss), C = wn({ etrs: T, asisEtr: k }), w = Et()("ra.action.create");
23652
23644
  return /* @__PURE__ */ W(Qr, { children: [
23653
23645
  /* @__PURE__ */ y(
23654
23646
  mr,
@@ -23709,10 +23701,7 @@ const Zj = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
23709
23701
  enviarTodo: l,
23710
23702
  onBeforeSubmitAsistente: u = $a,
23711
23703
  onAfterSubmitAsistente: d = $a
23712
- } = t, p = Et(), [f, h] = eg(!1), g = _i(), m = dr(), b = fk({ apiRef: g, source: i, enviarTodo: l }), v = "M", {
23713
- estado: x,
23714
- fichaProps: { etrs: T }
23715
- } = At(), k = ot(ss), C = wn({ etrs: T, asisEtr: k }), S = p("ra.action.edit");
23704
+ } = t, p = Et(), [f, h] = eg(!1), g = _i(), m = dr(), b = fk({ apiRef: g, source: i, enviarTodo: l }), v = "M", { estado: x, fichaProps: { etrs: T } = {} } = wt(), k = ot(ss), C = wn({ etrs: T, asisEtr: k }), S = p("ra.action.edit");
23716
23705
  return /* @__PURE__ */ W(Qr, { children: [
23717
23706
  /* @__PURE__ */ y(
23718
23707
  mr,
@@ -23771,10 +23760,7 @@ const Zj = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
23771
23760
  enviarTodo: i,
23772
23761
  onBeforeSubmitAsistente: s = $a,
23773
23762
  onAfterSubmitAsistente: l = $a
23774
- } = t, [u, d] = eg(!1), p = _i(), f = dr(), h = hk({ apiRef: p, source: o, enviarTodo: i }), {
23775
- estado: g,
23776
- fichaProps: { etrs: m }
23777
- } = At(), b = wn({ etrs: m });
23763
+ } = t, [u, d] = eg(!1), p = _i(), f = dr(), h = hk({ apiRef: p, source: o, enviarTodo: i }), { estado: g, fichaProps: { etrs: m } = {} } = wt(), b = wn({ etrs: m });
23778
23764
  return /* @__PURE__ */ W(vn, { children: [
23779
23765
  /* @__PURE__ */ y(
23780
23766
  bz,
@@ -23820,8 +23806,8 @@ const Zj = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
23820
23806
  ...b
23821
23807
  } = t, [v, x] = De([]), T = ur(t), k = dr(), { field: C } = qd({ defaultValue: "", ...t }), S = fb(), {
23822
23808
  isLoading: w,
23823
- fichaProps: { [h]: M }
23824
- } = At(), F = ig((be) => {
23809
+ fichaProps: { [h]: M } = {}
23810
+ } = wt(), F = ig((be) => {
23825
23811
  const Re = be.configInputs ? be.configInputs.filter((ut) => ut.id === h) : [];
23826
23812
  return Re[0] ? Re[0] : null;
23827
23813
  }), {
@@ -24018,7 +24004,7 @@ const Zj = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
24018
24004
  enableLoad: i = !0,
24019
24005
  initialState: s,
24020
24006
  ...l
24021
- } = t, { isLoading: u } = At(), d = ur(), [p, f] = De(r), [{ field: h, sort: g }] = r, m = Sr(
24007
+ } = t, { isLoading: u } = wt(), d = ur(), [p, f] = De(r), [{ field: h, sort: g }] = r, m = Sr(
24022
24008
  () => [...n],
24023
24009
  [JSON.stringify(n)]
24024
24010
  );
@@ -24033,7 +24019,7 @@ const Zj = O.forwardRef(/* @__PURE__ */ a(function(e, r) {
24033
24019
  }
24034
24020
  ]);
24035
24021
  });
24036
- const { estado: v, isLoading: x, fichaProps: T = {} } = At(), k = fb(), C = wn(t), { [t.source]: S = {} } = T, { useContenido: w = tc, ...M } = S, {
24022
+ const { estado: v, isLoading: x, fichaProps: T = {} } = wt(), k = fb(), C = wn(t), { [t.source]: S = {} } = T, { useContenido: w = tc, ...M } = S, {
24037
24023
  data: F = [],
24038
24024
  isFetching: P,
24039
24025
  refetch: I
@@ -25008,8 +24994,8 @@ const Hk = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ a(function(e, r) {
25008
24994
  if (L)
25009
24995
  Be = "top", le && Z && (Te = le.top - Z.top + Z.scrollTop);
25010
24996
  else if (Be = i ? "right" : "left", le && Z) {
25011
- const Mt = i ? Z.scrollLeftNormalized + Z.clientWidth - Z.scrollWidth : Z.scrollLeft;
25012
- Te = (i ? -1 : 1) * (le[Be] - Z[Be] + Mt);
24997
+ const Pt = i ? Z.scrollLeftNormalized + Z.clientWidth - Z.scrollWidth : Z.scrollLeft;
24998
+ Te = (i ? -1 : 1) * (le[Be] - Z[Be] + Pt);
25013
24999
  }
25014
25000
  const ft = {
25015
25001
  [Be]: Te,
@@ -25019,8 +25005,8 @@ const Hk = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ a(function(e, r) {
25019
25005
  if (isNaN(G[Be]) || isNaN(G[K]))
25020
25006
  te(ft);
25021
25007
  else {
25022
- const Mt = Math.abs(G[Be] - ft[Be]), kr = Math.abs(G[K] - ft[K]);
25023
- (Mt >= 1 || kr >= 1) && te(ft);
25008
+ const Pt = Math.abs(G[Be] - ft[Be]), kr = Math.abs(G[K] - ft[K]);
25009
+ (Pt >= 1 || kr >= 1) && te(ft);
25024
25010
  }
25025
25011
  }), _e = /* @__PURE__ */ a((Z, {
25026
25012
  animation: le = !0
@@ -25113,8 +25099,8 @@ const Hk = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ a(function(e, r) {
25113
25099
  be.current && Ue();
25114
25100
  });
25115
25101
  let le;
25116
- const Te = /* @__PURE__ */ a((Mt) => {
25117
- Mt.forEach((kr) => {
25102
+ const Te = /* @__PURE__ */ a((Pt) => {
25103
+ Pt.forEach((kr) => {
25118
25104
  kr.removedNodes.forEach((Gn) => {
25119
25105
  var qr;
25120
25106
  (qr = le) == null || qr.unobserve(Gn);
@@ -25126,13 +25112,13 @@ const Hk = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ a(function(e, r) {
25126
25112
  }, "handleMutation"), Be = Jr(be.current);
25127
25113
  Be.addEventListener("resize", Z);
25128
25114
  let ft;
25129
- return typeof ResizeObserver < "u" && (le = new ResizeObserver(Z), Array.from(Re.current.children).forEach((Mt) => {
25130
- le.observe(Mt);
25115
+ return typeof ResizeObserver < "u" && (le = new ResizeObserver(Z), Array.from(Re.current.children).forEach((Pt) => {
25116
+ le.observe(Pt);
25131
25117
  })), typeof MutationObserver < "u" && (ft = new MutationObserver(Te), ft.observe(Re.current, {
25132
25118
  childList: !0
25133
25119
  })), () => {
25134
- var Mt, kr;
25135
- Z.clear(), Be.removeEventListener("resize", Z), (Mt = ft) == null || Mt.disconnect(), (kr = le) == null || kr.disconnect();
25120
+ var Pt, kr;
25121
+ Z.clear(), Be.removeEventListener("resize", Z), (Pt = ft) == null || Pt.disconnect(), (kr = le) == null || kr.disconnect();
25136
25122
  };
25137
25123
  }, [Ue, ye]), O.useEffect(() => {
25138
25124
  const Z = Array.from(Re.current.children), le = Z.length;
@@ -25140,9 +25126,9 @@ const Hk = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ a(function(e, r) {
25140
25126
  const Te = Z[0], Be = Z[le - 1], ft = {
25141
25127
  root: be.current,
25142
25128
  threshold: 0.99
25143
- }, Mt = /* @__PURE__ */ a((zi) => {
25129
+ }, Pt = /* @__PURE__ */ a((zi) => {
25144
25130
  oe(!zi[0].isIntersecting);
25145
- }, "handleScrollButtonStart"), kr = new IntersectionObserver(Mt, ft);
25131
+ }, "handleScrollButtonStart"), kr = new IntersectionObserver(Pt, ft);
25146
25132
  kr.observe(Te);
25147
25133
  const Gn = /* @__PURE__ */ a((zi) => {
25148
25134
  ie(!zi[0].isIntersecting);
@@ -25190,12 +25176,12 @@ const Hk = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ a(function(e, r) {
25190
25176
  const le = Re.current, Te = $r(le).activeElement;
25191
25177
  if (Te.getAttribute("role") !== "tab")
25192
25178
  return;
25193
- let ft = v === "horizontal" ? "ArrowLeft" : "ArrowUp", Mt = v === "horizontal" ? "ArrowRight" : "ArrowDown";
25194
- switch (v === "horizontal" && i && (ft = "ArrowRight", Mt = "ArrowLeft"), Z.key) {
25179
+ let ft = v === "horizontal" ? "ArrowLeft" : "ArrowUp", Pt = v === "horizontal" ? "ArrowRight" : "ArrowDown";
25180
+ switch (v === "horizontal" && i && (ft = "ArrowRight", Pt = "ArrowLeft"), Z.key) {
25195
25181
  case ft:
25196
25182
  Z.preventDefault(), mc(le, Te, Lx);
25197
25183
  break;
25198
- case Mt:
25184
+ case Pt:
25199
25185
  Z.preventDefault(), mc(le, Te, $x);
25200
25186
  break;
25201
25187
  case "Home":
@@ -27782,12 +27768,12 @@ const wp = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ a(function(e, r) {
27782
27768
  }, "handleMouseLeave"), {
27783
27769
  isFocusVisibleRef: Be,
27784
27770
  onBlur: ft,
27785
- onFocus: Mt,
27771
+ onFocus: Pt,
27786
27772
  ref: kr
27787
27773
  } = lp(), [, Gn] = O.useState(!1), qr = /* @__PURE__ */ a((Ve) => {
27788
27774
  ft(Ve), Be.current === !1 && (Gn(!1), Te(Ve));
27789
27775
  }, "handleBlur"), zi = /* @__PURE__ */ a((Ve) => {
27790
- Re || ut(Ve.currentTarget), Mt(Ve), Be.current === !0 && (Gn(!0), le(Ve));
27776
+ Re || ut(Ve.currentTarget), Pt(Ve), Be.current === !0 && (Gn(!0), le(Ve));
27791
27777
  }, "handleFocus"), Qv = /* @__PURE__ */ a((Ve) => {
27792
27778
  st.current = !0;
27793
27779
  const fr = me.props;
@@ -28287,7 +28273,7 @@ const J3 = /* @__PURE__ */ a(({
28287
28273
  )
28288
28274
  ] });
28289
28275
  }, "DisabledWrapper"), Dte = /* @__PURE__ */ a((t) => {
28290
- const { children: e, ...r } = t, { initialValues: n, fichaProps: { config: o = {} } = {} } = At(), i = fp(t);
28276
+ const { children: e, ...r } = t, { initialValues: n, fichaProps: { config: o = {} } = {} } = wt(), i = fp(t);
28291
28277
  return n ? /* @__PURE__ */ y(sk, { children: /* @__PURE__ */ y(dE, { children: /* @__PURE__ */ W(
28292
28278
  RP,
28293
28279
  {
@@ -30614,7 +30600,7 @@ const Vte = /* @__PURE__ */ a((t) => {
30614
30600
  fontSize: "medium"
30615
30601
  }),
30616
30602
  /* @__PURE__ */ y(lt, { component: "span", sx: { paddingRight: "1em" } }),
30617
- /* @__PURE__ */ y(Pt, { fontSize: "small", color: "textPrimary", children: T.label })
30603
+ /* @__PURE__ */ y(Rt, { fontSize: "small", color: "textPrimary", children: T.label })
30618
30604
  ]
30619
30605
  },
30620
30606
  T.label
@@ -30622,10 +30608,10 @@ const Vte = /* @__PURE__ */ a((t) => {
30622
30608
  ] });
30623
30609
  }, "MenuButton"), jte = /* @__PURE__ */ a((t) => {
30624
30610
  const { fields: e, className: r, ...n } = t, { campos: o, separador: i = "", secundario: s = [], hasSecundario: l } = e, u = ur(), d = o.map((p) => u[p] !== void 0 ? u[p] : p).join(`${i}`);
30625
- return /* @__PURE__ */ W(Pt, { noWrap: !0, variant: "inherit", className: r, ...n, children: [
30611
+ return /* @__PURE__ */ W(Rt, { noWrap: !0, variant: "inherit", className: r, ...n, children: [
30626
30612
  d,
30627
30613
  l && /* @__PURE__ */ y(
30628
- Pt,
30614
+ Rt,
30629
30615
  {
30630
30616
  component: "span",
30631
30617
  display: "block",
@@ -30680,10 +30666,7 @@ const Vte = /* @__PURE__ */ a((t) => {
30680
30666
  toolbar: l = yH,
30681
30667
  onChange: u,
30682
30668
  ...d
30683
- } = t, p = Oo(), f = oR(""), h = dt(t), [g, m] = De(0), {
30684
- estado: b,
30685
- fichaProps: { etrs: v }
30686
- } = useFicha(), x = wn({ ...t, etrs: v }), T = /* @__PURE__ */ a((C, S) => {
30669
+ } = t, p = Oo(), f = oR(""), h = dt(t), [g, m] = De(0), { estado: b, fichaProps: { etrs: v } = {} } = wt(), x = wn({ ...t, etrs: v }), T = /* @__PURE__ */ a((C, S) => {
30687
30670
  i || (m(S), u && u(
30688
30671
  x,
30689
30672
  b,
@@ -30772,7 +30755,7 @@ const SH = /* @__PURE__ */ a(({
30772
30755
  warnWhenUnsavedChanges: v,
30773
30756
  ...x
30774
30757
  }) => x, "sanitizeRestProps"), Hte = /* @__PURE__ */ a((t) => {
30775
- const { syncWithLocation: e = !1, children: r, ...n } = t, { initialValues: o, fichaProps: { config: i = {} } = {} } = At(), s = fp(t);
30758
+ const { syncWithLocation: e = !1, children: r, ...n } = t, { initialValues: o, fichaProps: { config: i = {} } = {} } = wt(), s = fp(t);
30776
30759
  return o ? /* @__PURE__ */ y(sk, { children: /* @__PURE__ */ y(dE, { children: /* @__PURE__ */ W(
30777
30760
  TE,
30778
30761
  {
@@ -31047,7 +31030,7 @@ const FH = Oe("MuiLink", ["root", "underlineNone", "underlineHover", "underlineA
31047
31030
  root: ["root", `underline${ce(o)}`, r === "button" && "button", n && "focusVisible"]
31048
31031
  };
31049
31032
  return Se(i, AH, e);
31050
- }, "useUtilityClasses$d"), DH = Q(Pt, {
31033
+ }, "useUtilityClasses$d"), DH = Q(Rt, {
31051
31034
  name: "MuiLink",
31052
31035
  slot: "Root",
31053
31036
  overridesResolver: /* @__PURE__ */ a((t, e) => {
@@ -31482,7 +31465,7 @@ const tO = /* @__PURE__ */ a((t) => {
31482
31465
  }
31483
31466
  ) });
31484
31467
  }, "SelectInputEtriek"), qH = /* @__PURE__ */ a((t) => {
31485
- const { propsContenido: e, hidden: r } = pr(t), n = Bi(), { isLoading: o } = At(), {
31468
+ const { propsContenido: e, hidden: r } = pr(t), n = Bi(), { isLoading: o } = wt(), {
31486
31469
  queryOptions: i,
31487
31470
  asistant: s,
31488
31471
  asistantResource: l,
@@ -32711,7 +32694,7 @@ const nO = /* @__PURE__ */ a((t, e) => t.filter((r) => !e.includes(r)), "not"),
32711
32694
  const {
32712
32695
  propsContenido: { sx: e, ...r },
32713
32696
  hidden: n
32714
- } = pr(t), { isLoading: o } = At(), i = Ni((d) => d.breakpoints.down("md")), { source: s, reference: l } = t, u = ur(t) || {};
32697
+ } = pr(t), { isLoading: o } = wt(), i = Ni((d) => d.breakpoints.down("md")), { source: s, reference: l } = t, u = ur(t) || {};
32715
32698
  return !n && !o ? /* @__PURE__ */ y(
32716
32699
  QP,
32717
32700
  {
@@ -32748,7 +32731,7 @@ const nO = /* @__PURE__ */ a((t, e) => t.filter((r) => !e.includes(r)), "not"),
32748
32731
  const {
32749
32732
  propsContenido: { sx: e, ...r },
32750
32733
  hidden: n
32751
- } = pr(t), { isLoading: o } = At(), { source: i, reference: s } = t;
32734
+ } = pr(t), { isLoading: o } = wt(), { source: i, reference: s } = t;
32752
32735
  return !n && !o ? /* @__PURE__ */ y(OS, { source: i, reference: s, children: /* @__PURE__ */ y(
32753
32736
  CS,
32754
32737
  {
@@ -33209,7 +33192,7 @@ const D6 = /* @__PURE__ */ a((t) => /* @__PURE__ */ y(
33209
33192
  sx: o,
33210
33193
  onChange: i,
33211
33194
  ...s
33212
- } = t, [l] = kS({ resource: "form_224" }), [u, d] = De(!1), p = dr(), { estado: f, fichaProps: h = {} } = At(), g = ot(ss), m = Li(!1), {
33195
+ } = t, [l] = kS({ resource: "form_224" }), [u, d] = De(!1), p = dr(), { estado: f, fichaProps: h = {} } = wt(), g = ot(ss), m = Li(!1), {
33213
33196
  hidden: b,
33214
33197
  propsContenido: { readOnly: v, sx: x, label: T = "Funcionarios" }
33215
33198
  } = pr(t), { [n]: k = {}, etrs: C } = h, S = wn({ ...t, etrs: C, asisEtr: g }), w = k.onChange === void 0 ? i : k.onChange;
@@ -38575,7 +38558,7 @@ const fv = class fv {
38575
38558
  }
38576
38559
  };
38577
38560
  a(fv, "Plugin");
38578
- let wt = fv;
38561
+ let Mt = fv;
38579
38562
  const Ff = /* @__PURE__ */ Object.create(null);
38580
38563
  function dT(t) {
38581
38564
  return t in Ff ? t + "$" + ++Ff[t] : (Ff[t] = 0, t + "$");
@@ -42622,7 +42605,7 @@ function _f(t, e, r = !0) {
42622
42605
  }
42623
42606
  a(_f, "modifiers");
42624
42607
  function xU(t) {
42625
- return new wt({ props: { handleKeyDown: HT(t) } });
42608
+ return new Mt({ props: { handleKeyDown: HT(t) } });
42626
42609
  }
42627
42610
  a(xU, "keymap");
42628
42611
  function HT(t) {
@@ -43489,7 +43472,7 @@ function Sc(t) {
43489
43472
  }
43490
43473
  a(Sc, "run$1$1");
43491
43474
  function QU(t) {
43492
- const { editor: e, rules: r } = t, n = new wt({
43475
+ const { editor: e, rules: r } = t, n = new Mt({
43493
43476
  state: {
43494
43477
  init() {
43495
43478
  return null;
@@ -43698,7 +43681,7 @@ function n7(t) {
43698
43681
  }) || !b.steps.length))
43699
43682
  return l = typeof DragEvent < "u" ? new DragEvent("drop") : null, s = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, b;
43700
43683
  }, "processEvent");
43701
- return r.map((p) => new wt({
43684
+ return r.map((p) => new Mt({
43702
43685
  // we register a global drag handler to track the current drag source element
43703
43686
  view(f) {
43704
43687
  const h = /* @__PURE__ */ a((g) => {
@@ -43990,7 +43973,7 @@ const i7 = Kt.create({
43990
43973
  },
43991
43974
  addProseMirrorPlugins() {
43992
43975
  return [
43993
- new wt({
43976
+ new Mt({
43994
43977
  key: new Qt("clipboardTextSerializer"),
43995
43978
  props: {
43996
43979
  clipboardTextSerializer: /* @__PURE__ */ a(() => {
@@ -44958,7 +44941,7 @@ const Mq = Kt.create({
44958
44941
  name: "drop",
44959
44942
  addProseMirrorPlugins() {
44960
44943
  return [
44961
- new wt({
44944
+ new Mt({
44962
44945
  key: new Qt("tiptapDrop"),
44963
44946
  props: {
44964
44947
  handleDrop: /* @__PURE__ */ a((t, e, r, n) => {
@@ -44977,7 +44960,7 @@ const Mq = Kt.create({
44977
44960
  name: "editable",
44978
44961
  addProseMirrorPlugins() {
44979
44962
  return [
44980
- new wt({
44963
+ new Mt({
44981
44964
  key: new Qt("editable"),
44982
44965
  props: {
44983
44966
  editable: /* @__PURE__ */ a(() => this.editor.options.editable, "editable")
@@ -44990,7 +44973,7 @@ const Mq = Kt.create({
44990
44973
  addProseMirrorPlugins() {
44991
44974
  const { editor: t } = this;
44992
44975
  return [
44993
- new wt({
44976
+ new Mt({
44994
44977
  key: new Qt("focusEvents"),
44995
44978
  props: {
44996
44979
  handleDOMEvents: {
@@ -45063,7 +45046,7 @@ const Mq = Kt.create({
45063
45046
  // to a paragraph if necessary.
45064
45047
  // This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well
45065
45048
  // with many other commands.
45066
- new wt({
45049
+ new Mt({
45067
45050
  key: new Qt("clearDocument"),
45068
45051
  appendTransaction: /* @__PURE__ */ a((t, e, r) => {
45069
45052
  const n = t.some((b) => b.docChanged) && !e.doc.eq(r.doc), o = t.some((b) => b.getMeta("preventClearDocument"));
@@ -45089,7 +45072,7 @@ const Mq = Kt.create({
45089
45072
  name: "paste",
45090
45073
  addProseMirrorPlugins() {
45091
45074
  return [
45092
- new wt({
45075
+ new Mt({
45093
45076
  key: new Qt("tiptapPaste"),
45094
45077
  props: {
45095
45078
  handlePaste: /* @__PURE__ */ a((t, e, r) => {
@@ -45107,7 +45090,7 @@ const Mq = Kt.create({
45107
45090
  name: "tabindex",
45108
45091
  addProseMirrorPlugins() {
45109
45092
  return [
45110
- new wt({
45093
+ new Mt({
45111
45094
  key: new Qt("tabindex"),
45112
45095
  props: {
45113
45096
  attributes: /* @__PURE__ */ a(() => this.editor.isEditable ? { tabindex: "0" } : {}, "attributes")
@@ -46695,7 +46678,7 @@ function l8(t) {
46695
46678
  }
46696
46679
  a(l8, "isValidLinkStructure");
46697
46680
  function c8(t) {
46698
- return new wt({
46681
+ return new Mt({
46699
46682
  key: new Qt("autolink"),
46700
46683
  appendTransaction: /* @__PURE__ */ a((e, r, n) => {
46701
46684
  const o = e.some((d) => d.docChanged) && !r.doc.eq(n.doc), i = e.some((d) => d.getMeta("preventAutolink"));
@@ -46732,7 +46715,7 @@ function c8(t) {
46732
46715
  }
46733
46716
  a(c8, "autolink");
46734
46717
  function u8(t) {
46735
- return new wt({
46718
+ return new Mt({
46736
46719
  key: new Qt("handleClickLink"),
46737
46720
  props: {
46738
46721
  handleClick: /* @__PURE__ */ a((e, r, n) => {
@@ -46753,7 +46736,7 @@ function u8(t) {
46753
46736
  }
46754
46737
  a(u8, "clickHandler");
46755
46738
  function d8(t) {
46756
- return new wt({
46739
+ return new Mt({
46757
46740
  key: new Qt("handlePasteLink"),
46758
46741
  props: {
46759
46742
  handlePaste: /* @__PURE__ */ a((e, r, n) => {
@@ -47893,7 +47876,7 @@ const L8 = /^\s*>\s$/, N8 = sr.create({
47893
47876
  return [
47894
47877
  // this plugin creates a code block for pasted content from VS Code
47895
47878
  // we can also detect the copied code language
47896
- new wt({
47879
+ new Mt({
47897
47880
  key: new Qt("codeBlockVSCodeHandler"),
47898
47881
  props: {
47899
47882
  handlePaste: /* @__PURE__ */ a((t, e) => {
@@ -47916,7 +47899,7 @@ const L8 = /^\s*>\s$/, N8 = sr.create({
47916
47899
  content: "block+"
47917
47900
  });
47918
47901
  function Q8(t = {}) {
47919
- return new wt({
47902
+ return new Mt({
47920
47903
  view(e) {
47921
47904
  return new Rm(e, t);
47922
47905
  }
@@ -48152,7 +48135,7 @@ function eG(t) {
48152
48135
  }
48153
48136
  a(eG, "closedAfter");
48154
48137
  function tG() {
48155
- return new wt({
48138
+ return new Mt({
48156
48139
  props: {
48157
48140
  decorations: iG,
48158
48141
  createSelectionBetween(t, e, r) {
@@ -48332,36 +48315,36 @@ const aG = Kt.create({
48332
48315
  }));
48333
48316
  }
48334
48317
  });
48335
- var hd = 200, Rt = /* @__PURE__ */ a(function() {
48318
+ var hd = 200, At = /* @__PURE__ */ a(function() {
48336
48319
  }, "RopeSequence");
48337
- Rt.prototype.append = /* @__PURE__ */ a(function(e) {
48338
- return e.length ? (e = Rt.from(e), !this.length && e || e.length < hd && this.leafAppend(e) || this.length < hd && e.leafPrepend(this) || this.appendInner(e)) : this;
48320
+ At.prototype.append = /* @__PURE__ */ a(function(e) {
48321
+ return e.length ? (e = At.from(e), !this.length && e || e.length < hd && this.leafAppend(e) || this.length < hd && e.leafPrepend(this) || this.appendInner(e)) : this;
48339
48322
  }, "append");
48340
- Rt.prototype.prepend = /* @__PURE__ */ a(function(e) {
48341
- return e.length ? Rt.from(e).append(this) : this;
48323
+ At.prototype.prepend = /* @__PURE__ */ a(function(e) {
48324
+ return e.length ? At.from(e).append(this) : this;
48342
48325
  }, "prepend");
48343
- Rt.prototype.appendInner = /* @__PURE__ */ a(function(e) {
48326
+ At.prototype.appendInner = /* @__PURE__ */ a(function(e) {
48344
48327
  return new cG(this, e);
48345
48328
  }, "appendInner");
48346
- Rt.prototype.slice = /* @__PURE__ */ a(function(e, r) {
48347
- return e === void 0 && (e = 0), r === void 0 && (r = this.length), e >= r ? Rt.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, r));
48329
+ At.prototype.slice = /* @__PURE__ */ a(function(e, r) {
48330
+ return e === void 0 && (e = 0), r === void 0 && (r = this.length), e >= r ? At.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, r));
48348
48331
  }, "slice");
48349
- Rt.prototype.get = /* @__PURE__ */ a(function(e) {
48332
+ At.prototype.get = /* @__PURE__ */ a(function(e) {
48350
48333
  if (!(e < 0 || e >= this.length))
48351
48334
  return this.getInner(e);
48352
48335
  }, "get");
48353
- Rt.prototype.forEach = /* @__PURE__ */ a(function(e, r, n) {
48336
+ At.prototype.forEach = /* @__PURE__ */ a(function(e, r, n) {
48354
48337
  r === void 0 && (r = 0), n === void 0 && (n = this.length), r <= n ? this.forEachInner(e, r, n, 0) : this.forEachInvertedInner(e, r, n, 0);
48355
48338
  }, "forEach");
48356
- Rt.prototype.map = /* @__PURE__ */ a(function(e, r, n) {
48339
+ At.prototype.map = /* @__PURE__ */ a(function(e, r, n) {
48357
48340
  r === void 0 && (r = 0), n === void 0 && (n = this.length);
48358
48341
  var o = [];
48359
48342
  return this.forEach(function(i, s) {
48360
48343
  return o.push(e(i, s));
48361
48344
  }, r, n), o;
48362
48345
  }, "map");
48363
- Rt.from = /* @__PURE__ */ a(function(e) {
48364
- return e instanceof Rt ? e : e && e.length ? new fw(e) : Rt.empty;
48346
+ At.from = /* @__PURE__ */ a(function(e) {
48347
+ return e instanceof At ? e : e && e.length ? new fw(e) : At.empty;
48365
48348
  }, "from");
48366
48349
  var fw = /* @__PURE__ */ function(t) {
48367
48350
  function e(n) {
@@ -48394,8 +48377,8 @@ var fw = /* @__PURE__ */ function(t) {
48394
48377
  }, r.depth.get = function() {
48395
48378
  return 0;
48396
48379
  }, Object.defineProperties(e.prototype, r), e;
48397
- }(Rt);
48398
- Rt.empty = new fw([]);
48380
+ }(At);
48381
+ At.empty = new fw([]);
48399
48382
  var cG = /* @__PURE__ */ function(t) {
48400
48383
  function e(r, n) {
48401
48384
  t.call(this), this.left = r, this.right = n, this.length = r.length + n.length, this.depth = Math.max(r.depth, n.depth) + 1;
@@ -48428,7 +48411,7 @@ var cG = /* @__PURE__ */ function(t) {
48428
48411
  }, "leafPrepend"), e.prototype.appendInner = /* @__PURE__ */ a(function(n) {
48429
48412
  return this.left.depth >= Math.max(this.right.depth, n.depth) + 1 ? new e(this.left, new e(this.right, n)) : new e(this, n);
48430
48413
  }, "appendInner"), e;
48431
- }(Rt);
48414
+ }(At);
48432
48415
  const uG = 500, io = class io {
48433
48416
  constructor(e, r) {
48434
48417
  this.items = e, this.eventCount = r;
@@ -48538,12 +48521,12 @@ const uG = 500, io = class io {
48538
48521
  (h = o.length && o[g].merge(f)) ? o[g] = h : o.push(f);
48539
48522
  }
48540
48523
  } else s.map && n--;
48541
- }, this.items.length, 0), new io(Rt.from(o.reverse()), i);
48524
+ }, this.items.length, 0), new io(At.from(o.reverse()), i);
48542
48525
  }
48543
48526
  };
48544
48527
  a(io, "Branch");
48545
48528
  let Ii = io;
48546
- Ii.empty = new Ii(Rt.empty, 0);
48529
+ Ii.empty = new Ii(At.empty, 0);
48547
48530
  function dG(t, e) {
48548
48531
  let r;
48549
48532
  return t.forEach((n, o) => {
@@ -48647,7 +48630,7 @@ function bG(t = {}) {
48647
48630
  return t = {
48648
48631
  depth: t.depth || 100,
48649
48632
  newGroupDelay: t.newGroupDelay || 500
48650
- }, new wt({
48633
+ }, new Mt({
48651
48634
  key: hi,
48652
48635
  state: {
48653
48636
  init() {
@@ -56846,7 +56829,7 @@ export {
56846
56829
  dp as useAsistente,
56847
56830
  pr as useContenidoController,
56848
56831
  wte as useEtrActions,
56849
- At as useFicha,
56832
+ wt as useFicha,
56850
56833
  uk as useFieldController,
56851
56834
  as as useFormProgress,
56852
56835
  fp as useFormSubmit,