biblio-react 3.0.0-alpha185 → 3.0.0-alpha186

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
@@ -10057,19 +10057,19 @@ const KS = /* @__PURE__ */ a(() => {
10057
10057
  }, "dateTimeToString"), Fi = O.createContext(), YS = At(), QS = /* @__PURE__ */ a(() => {
10058
10058
  const e = lt(YS), t = La();
10059
10059
  return /* @__PURE__ */ a((n, o = {}) => {
10060
- const { opcion: i, estado: s, ...l } = o, u = (window.location.href.match(/m\d{4}/) || [""])[0], p = `${localStorage.getItem("flag_modulos") === "1" ? u : "."}/form_${String(n)}`;
10061
- let f = p;
10062
- i === "F" && (f += s === "N" ? "/create" : `/${l.clave}`), setTimeout(() => {
10063
- const h = e.current.panels.find(
10064
- (g) => g.id === `win_${p}`
10060
+ const { opcion: i, estado: s, ...l } = o, u = `form_${String(n)}`;
10061
+ let d = u;
10062
+ i === "F" && (d += s === "N" ? "/create" : `/${l.clave}`), setTimeout(() => {
10063
+ const p = e.current.panels.find(
10064
+ (f) => f.id === `win_${u}`
10065
10065
  );
10066
- h ? h.api.setActive() : e.current.addPanel({
10067
- id: `win_${p}`,
10066
+ p ? p.api.setActive() : e.current.addPanel({
10067
+ id: `win_${u}`,
10068
10068
  component: "default",
10069
10069
  params: {
10070
- rutaActual: p
10070
+ rutaActual: `/${u}`
10071
10071
  }
10072
- }), t(`/${f}`, { state: l });
10072
+ }), t(`/${d}`, { state: l });
10073
10073
  });
10074
10074
  }, "abrirVentanaSistema");
10075
10075
  }, "useAbrirVentanaSistema"), XS = /* @__PURE__ */ a(() => {