biblio-react 3.0.0-alpha123 → 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,10 +28273,7 @@ const J3 = /* @__PURE__ */ a(({
28287
28273
  )
28288
28274
  ] });
28289
28275
  }, "DisabledWrapper"), Dte = /* @__PURE__ */ a((t) => {
28290
- const { children: e, ...r } = t, {
28291
- initialValues: n,
28292
- fichaProps: { config: o = {} }
28293
- } = At(), i = fp(t);
28276
+ const { children: e, ...r } = t, { initialValues: n, fichaProps: { config: o = {} } = {} } = wt(), i = fp(t);
28294
28277
  return n ? /* @__PURE__ */ y(sk, { children: /* @__PURE__ */ y(dE, { children: /* @__PURE__ */ W(
28295
28278
  RP,
28296
28279
  {
@@ -30617,7 +30600,7 @@ const Vte = /* @__PURE__ */ a((t) => {
30617
30600
  fontSize: "medium"
30618
30601
  }),
30619
30602
  /* @__PURE__ */ y(lt, { component: "span", sx: { paddingRight: "1em" } }),
30620
- /* @__PURE__ */ y(Pt, { fontSize: "small", color: "textPrimary", children: T.label })
30603
+ /* @__PURE__ */ y(Rt, { fontSize: "small", color: "textPrimary", children: T.label })
30621
30604
  ]
30622
30605
  },
30623
30606
  T.label
@@ -30625,10 +30608,10 @@ const Vte = /* @__PURE__ */ a((t) => {
30625
30608
  ] });
30626
30609
  }, "MenuButton"), jte = /* @__PURE__ */ a((t) => {
30627
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}`);
30628
- 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: [
30629
30612
  d,
30630
30613
  l && /* @__PURE__ */ y(
30631
- Pt,
30614
+ Rt,
30632
30615
  {
30633
30616
  component: "span",
30634
30617
  display: "block",
@@ -30683,10 +30666,7 @@ const Vte = /* @__PURE__ */ a((t) => {
30683
30666
  toolbar: l = yH,
30684
30667
  onChange: u,
30685
30668
  ...d
30686
- } = t, p = Oo(), f = oR(""), h = dt(t), [g, m] = De(0), {
30687
- estado: b,
30688
- fichaProps: { etrs: v }
30689
- } = 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) => {
30690
30670
  i || (m(S), u && u(
30691
30671
  x,
30692
30672
  b,
@@ -30775,10 +30755,7 @@ const SH = /* @__PURE__ */ a(({
30775
30755
  warnWhenUnsavedChanges: v,
30776
30756
  ...x
30777
30757
  }) => x, "sanitizeRestProps"), Hte = /* @__PURE__ */ a((t) => {
30778
- const { syncWithLocation: e = !1, children: r, ...n } = t, {
30779
- initialValues: o,
30780
- fichaProps: { config: i = {} }
30781
- } = At(), s = fp(t);
30758
+ const { syncWithLocation: e = !1, children: r, ...n } = t, { initialValues: o, fichaProps: { config: i = {} } = {} } = wt(), s = fp(t);
30782
30759
  return o ? /* @__PURE__ */ y(sk, { children: /* @__PURE__ */ y(dE, { children: /* @__PURE__ */ W(
30783
30760
  TE,
30784
30761
  {
@@ -31053,7 +31030,7 @@ const FH = Oe("MuiLink", ["root", "underlineNone", "underlineHover", "underlineA
31053
31030
  root: ["root", `underline${ce(o)}`, r === "button" && "button", n && "focusVisible"]
31054
31031
  };
31055
31032
  return Se(i, AH, e);
31056
- }, "useUtilityClasses$d"), DH = Q(Pt, {
31033
+ }, "useUtilityClasses$d"), DH = Q(Rt, {
31057
31034
  name: "MuiLink",
31058
31035
  slot: "Root",
31059
31036
  overridesResolver: /* @__PURE__ */ a((t, e) => {
@@ -31488,7 +31465,7 @@ const tO = /* @__PURE__ */ a((t) => {
31488
31465
  }
31489
31466
  ) });
31490
31467
  }, "SelectInputEtriek"), qH = /* @__PURE__ */ a((t) => {
31491
- 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(), {
31492
31469
  queryOptions: i,
31493
31470
  asistant: s,
31494
31471
  asistantResource: l,
@@ -32717,7 +32694,7 @@ const nO = /* @__PURE__ */ a((t, e) => t.filter((r) => !e.includes(r)), "not"),
32717
32694
  const {
32718
32695
  propsContenido: { sx: e, ...r },
32719
32696
  hidden: n
32720
- } = 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) || {};
32721
32698
  return !n && !o ? /* @__PURE__ */ y(
32722
32699
  QP,
32723
32700
  {
@@ -32754,7 +32731,7 @@ const nO = /* @__PURE__ */ a((t, e) => t.filter((r) => !e.includes(r)), "not"),
32754
32731
  const {
32755
32732
  propsContenido: { sx: e, ...r },
32756
32733
  hidden: n
32757
- } = pr(t), { isLoading: o } = At(), { source: i, reference: s } = t;
32734
+ } = pr(t), { isLoading: o } = wt(), { source: i, reference: s } = t;
32758
32735
  return !n && !o ? /* @__PURE__ */ y(OS, { source: i, reference: s, children: /* @__PURE__ */ y(
32759
32736
  CS,
32760
32737
  {
@@ -33215,7 +33192,7 @@ const D6 = /* @__PURE__ */ a((t) => /* @__PURE__ */ y(
33215
33192
  sx: o,
33216
33193
  onChange: i,
33217
33194
  ...s
33218
- } = 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), {
33219
33196
  hidden: b,
33220
33197
  propsContenido: { readOnly: v, sx: x, label: T = "Funcionarios" }
33221
33198
  } = pr(t), { [n]: k = {}, etrs: C } = h, S = wn({ ...t, etrs: C, asisEtr: g }), w = k.onChange === void 0 ? i : k.onChange;
@@ -38581,7 +38558,7 @@ const fv = class fv {
38581
38558
  }
38582
38559
  };
38583
38560
  a(fv, "Plugin");
38584
- let wt = fv;
38561
+ let Mt = fv;
38585
38562
  const Ff = /* @__PURE__ */ Object.create(null);
38586
38563
  function dT(t) {
38587
38564
  return t in Ff ? t + "$" + ++Ff[t] : (Ff[t] = 0, t + "$");
@@ -42628,7 +42605,7 @@ function _f(t, e, r = !0) {
42628
42605
  }
42629
42606
  a(_f, "modifiers");
42630
42607
  function xU(t) {
42631
- return new wt({ props: { handleKeyDown: HT(t) } });
42608
+ return new Mt({ props: { handleKeyDown: HT(t) } });
42632
42609
  }
42633
42610
  a(xU, "keymap");
42634
42611
  function HT(t) {
@@ -43495,7 +43472,7 @@ function Sc(t) {
43495
43472
  }
43496
43473
  a(Sc, "run$1$1");
43497
43474
  function QU(t) {
43498
- const { editor: e, rules: r } = t, n = new wt({
43475
+ const { editor: e, rules: r } = t, n = new Mt({
43499
43476
  state: {
43500
43477
  init() {
43501
43478
  return null;
@@ -43704,7 +43681,7 @@ function n7(t) {
43704
43681
  }) || !b.steps.length))
43705
43682
  return l = typeof DragEvent < "u" ? new DragEvent("drop") : null, s = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, b;
43706
43683
  }, "processEvent");
43707
- return r.map((p) => new wt({
43684
+ return r.map((p) => new Mt({
43708
43685
  // we register a global drag handler to track the current drag source element
43709
43686
  view(f) {
43710
43687
  const h = /* @__PURE__ */ a((g) => {
@@ -43996,7 +43973,7 @@ const i7 = Kt.create({
43996
43973
  },
43997
43974
  addProseMirrorPlugins() {
43998
43975
  return [
43999
- new wt({
43976
+ new Mt({
44000
43977
  key: new Qt("clipboardTextSerializer"),
44001
43978
  props: {
44002
43979
  clipboardTextSerializer: /* @__PURE__ */ a(() => {
@@ -44964,7 +44941,7 @@ const Mq = Kt.create({
44964
44941
  name: "drop",
44965
44942
  addProseMirrorPlugins() {
44966
44943
  return [
44967
- new wt({
44944
+ new Mt({
44968
44945
  key: new Qt("tiptapDrop"),
44969
44946
  props: {
44970
44947
  handleDrop: /* @__PURE__ */ a((t, e, r, n) => {
@@ -44983,7 +44960,7 @@ const Mq = Kt.create({
44983
44960
  name: "editable",
44984
44961
  addProseMirrorPlugins() {
44985
44962
  return [
44986
- new wt({
44963
+ new Mt({
44987
44964
  key: new Qt("editable"),
44988
44965
  props: {
44989
44966
  editable: /* @__PURE__ */ a(() => this.editor.options.editable, "editable")
@@ -44996,7 +44973,7 @@ const Mq = Kt.create({
44996
44973
  addProseMirrorPlugins() {
44997
44974
  const { editor: t } = this;
44998
44975
  return [
44999
- new wt({
44976
+ new Mt({
45000
44977
  key: new Qt("focusEvents"),
45001
44978
  props: {
45002
44979
  handleDOMEvents: {
@@ -45069,7 +45046,7 @@ const Mq = Kt.create({
45069
45046
  // to a paragraph if necessary.
45070
45047
  // This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well
45071
45048
  // with many other commands.
45072
- new wt({
45049
+ new Mt({
45073
45050
  key: new Qt("clearDocument"),
45074
45051
  appendTransaction: /* @__PURE__ */ a((t, e, r) => {
45075
45052
  const n = t.some((b) => b.docChanged) && !e.doc.eq(r.doc), o = t.some((b) => b.getMeta("preventClearDocument"));
@@ -45095,7 +45072,7 @@ const Mq = Kt.create({
45095
45072
  name: "paste",
45096
45073
  addProseMirrorPlugins() {
45097
45074
  return [
45098
- new wt({
45075
+ new Mt({
45099
45076
  key: new Qt("tiptapPaste"),
45100
45077
  props: {
45101
45078
  handlePaste: /* @__PURE__ */ a((t, e, r) => {
@@ -45113,7 +45090,7 @@ const Mq = Kt.create({
45113
45090
  name: "tabindex",
45114
45091
  addProseMirrorPlugins() {
45115
45092
  return [
45116
- new wt({
45093
+ new Mt({
45117
45094
  key: new Qt("tabindex"),
45118
45095
  props: {
45119
45096
  attributes: /* @__PURE__ */ a(() => this.editor.isEditable ? { tabindex: "0" } : {}, "attributes")
@@ -46701,7 +46678,7 @@ function l8(t) {
46701
46678
  }
46702
46679
  a(l8, "isValidLinkStructure");
46703
46680
  function c8(t) {
46704
- return new wt({
46681
+ return new Mt({
46705
46682
  key: new Qt("autolink"),
46706
46683
  appendTransaction: /* @__PURE__ */ a((e, r, n) => {
46707
46684
  const o = e.some((d) => d.docChanged) && !r.doc.eq(n.doc), i = e.some((d) => d.getMeta("preventAutolink"));
@@ -46738,7 +46715,7 @@ function c8(t) {
46738
46715
  }
46739
46716
  a(c8, "autolink");
46740
46717
  function u8(t) {
46741
- return new wt({
46718
+ return new Mt({
46742
46719
  key: new Qt("handleClickLink"),
46743
46720
  props: {
46744
46721
  handleClick: /* @__PURE__ */ a((e, r, n) => {
@@ -46759,7 +46736,7 @@ function u8(t) {
46759
46736
  }
46760
46737
  a(u8, "clickHandler");
46761
46738
  function d8(t) {
46762
- return new wt({
46739
+ return new Mt({
46763
46740
  key: new Qt("handlePasteLink"),
46764
46741
  props: {
46765
46742
  handlePaste: /* @__PURE__ */ a((e, r, n) => {
@@ -47899,7 +47876,7 @@ const L8 = /^\s*>\s$/, N8 = sr.create({
47899
47876
  return [
47900
47877
  // this plugin creates a code block for pasted content from VS Code
47901
47878
  // we can also detect the copied code language
47902
- new wt({
47879
+ new Mt({
47903
47880
  key: new Qt("codeBlockVSCodeHandler"),
47904
47881
  props: {
47905
47882
  handlePaste: /* @__PURE__ */ a((t, e) => {
@@ -47922,7 +47899,7 @@ const L8 = /^\s*>\s$/, N8 = sr.create({
47922
47899
  content: "block+"
47923
47900
  });
47924
47901
  function Q8(t = {}) {
47925
- return new wt({
47902
+ return new Mt({
47926
47903
  view(e) {
47927
47904
  return new Rm(e, t);
47928
47905
  }
@@ -48158,7 +48135,7 @@ function eG(t) {
48158
48135
  }
48159
48136
  a(eG, "closedAfter");
48160
48137
  function tG() {
48161
- return new wt({
48138
+ return new Mt({
48162
48139
  props: {
48163
48140
  decorations: iG,
48164
48141
  createSelectionBetween(t, e, r) {
@@ -48338,36 +48315,36 @@ const aG = Kt.create({
48338
48315
  }));
48339
48316
  }
48340
48317
  });
48341
- var hd = 200, Rt = /* @__PURE__ */ a(function() {
48318
+ var hd = 200, At = /* @__PURE__ */ a(function() {
48342
48319
  }, "RopeSequence");
48343
- Rt.prototype.append = /* @__PURE__ */ a(function(e) {
48344
- 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;
48345
48322
  }, "append");
48346
- Rt.prototype.prepend = /* @__PURE__ */ a(function(e) {
48347
- 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;
48348
48325
  }, "prepend");
48349
- Rt.prototype.appendInner = /* @__PURE__ */ a(function(e) {
48326
+ At.prototype.appendInner = /* @__PURE__ */ a(function(e) {
48350
48327
  return new cG(this, e);
48351
48328
  }, "appendInner");
48352
- Rt.prototype.slice = /* @__PURE__ */ a(function(e, r) {
48353
- 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));
48354
48331
  }, "slice");
48355
- Rt.prototype.get = /* @__PURE__ */ a(function(e) {
48332
+ At.prototype.get = /* @__PURE__ */ a(function(e) {
48356
48333
  if (!(e < 0 || e >= this.length))
48357
48334
  return this.getInner(e);
48358
48335
  }, "get");
48359
- Rt.prototype.forEach = /* @__PURE__ */ a(function(e, r, n) {
48336
+ At.prototype.forEach = /* @__PURE__ */ a(function(e, r, n) {
48360
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);
48361
48338
  }, "forEach");
48362
- Rt.prototype.map = /* @__PURE__ */ a(function(e, r, n) {
48339
+ At.prototype.map = /* @__PURE__ */ a(function(e, r, n) {
48363
48340
  r === void 0 && (r = 0), n === void 0 && (n = this.length);
48364
48341
  var o = [];
48365
48342
  return this.forEach(function(i, s) {
48366
48343
  return o.push(e(i, s));
48367
48344
  }, r, n), o;
48368
48345
  }, "map");
48369
- Rt.from = /* @__PURE__ */ a(function(e) {
48370
- 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;
48371
48348
  }, "from");
48372
48349
  var fw = /* @__PURE__ */ function(t) {
48373
48350
  function e(n) {
@@ -48400,8 +48377,8 @@ var fw = /* @__PURE__ */ function(t) {
48400
48377
  }, r.depth.get = function() {
48401
48378
  return 0;
48402
48379
  }, Object.defineProperties(e.prototype, r), e;
48403
- }(Rt);
48404
- Rt.empty = new fw([]);
48380
+ }(At);
48381
+ At.empty = new fw([]);
48405
48382
  var cG = /* @__PURE__ */ function(t) {
48406
48383
  function e(r, n) {
48407
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;
@@ -48434,7 +48411,7 @@ var cG = /* @__PURE__ */ function(t) {
48434
48411
  }, "leafPrepend"), e.prototype.appendInner = /* @__PURE__ */ a(function(n) {
48435
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);
48436
48413
  }, "appendInner"), e;
48437
- }(Rt);
48414
+ }(At);
48438
48415
  const uG = 500, io = class io {
48439
48416
  constructor(e, r) {
48440
48417
  this.items = e, this.eventCount = r;
@@ -48544,12 +48521,12 @@ const uG = 500, io = class io {
48544
48521
  (h = o.length && o[g].merge(f)) ? o[g] = h : o.push(f);
48545
48522
  }
48546
48523
  } else s.map && n--;
48547
- }, this.items.length, 0), new io(Rt.from(o.reverse()), i);
48524
+ }, this.items.length, 0), new io(At.from(o.reverse()), i);
48548
48525
  }
48549
48526
  };
48550
48527
  a(io, "Branch");
48551
48528
  let Ii = io;
48552
- Ii.empty = new Ii(Rt.empty, 0);
48529
+ Ii.empty = new Ii(At.empty, 0);
48553
48530
  function dG(t, e) {
48554
48531
  let r;
48555
48532
  return t.forEach((n, o) => {
@@ -48653,7 +48630,7 @@ function bG(t = {}) {
48653
48630
  return t = {
48654
48631
  depth: t.depth || 100,
48655
48632
  newGroupDelay: t.newGroupDelay || 500
48656
- }, new wt({
48633
+ }, new Mt({
48657
48634
  key: hi,
48658
48635
  state: {
48659
48636
  init() {
@@ -56852,7 +56829,7 @@ export {
56852
56829
  dp as useAsistente,
56853
56830
  pr as useContenidoController,
56854
56831
  wte as useEtrActions,
56855
- At as useFicha,
56832
+ wt as useFicha,
56856
56833
  uk as useFieldController,
56857
56834
  as as useFormProgress,
56858
56835
  fp as useFormSubmit,