react-ecosistema-unp 1.8.0-pre.8 → 1.8.0-pre.9

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.
@@ -67,8 +67,8 @@ function G(t) {
67
67
  function W(t) {
68
68
  return i({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z" }, child: [] }] })(t);
69
69
  }
70
- const b1 = ({ onToggle: t, isOpen: c, showConnectionStatus: x }) => {
71
- const [N, f] = o(!0), [m, p] = o(null), k = c ? "sidebar-bar-panel open" : "sidebar-bar-panel", w = H(), { FinSesion: b } = C(), { connectionStatus: v } = A(), [z, l] = o(!1), [M, n] = o(""), h = `${window.location.host}`;
70
+ const b1 = ({ onToggle: t, isOpen: l, showConnectionStatus: x }) => {
71
+ const [N, f] = o(!0), [m, p] = o(null), k = l ? "sidebar-bar-panel open" : "sidebar-bar-panel", w = H(), { FinSesion: b } = C(), { connectionStatus: v } = A(), [z, c] = o(!1), [M, n] = o(""), h = `${window.location.host}`;
72
72
  if (d(() => {
73
73
  const r = localStorage.getItem("access_token");
74
74
  if (r) {
@@ -78,7 +78,7 @@ const b1 = ({ onToggle: t, isOpen: c, showConnectionStatus: x }) => {
78
78
  f(!1);
79
79
  }, []), d(() => {
80
80
  const r = setTimeout(() => {
81
- const s = localStorage.getItem("access_token");
81
+ const s = localStorage.getItem("auth_state");
82
82
  if (s) {
83
83
  const _ = u(s);
84
84
  p(_);
@@ -86,13 +86,13 @@ const b1 = ({ onToggle: t, isOpen: c, showConnectionStatus: x }) => {
86
86
  }, 2e3);
87
87
  return () => clearTimeout(r);
88
88
  }, []), d(() => {
89
- h.includes("localhost") ? (l(!0), n("Entorno local")) : h.includes("ecosistemadesarrollo") ? (l(!0), n("Entorno de desarrollo")) : h.includes("ecosistemapruebas") ? (l(!0), n("Entorno de pruebas")) : (l(!1), n(""));
89
+ h.includes("localhost") ? (c(!0), n("Entorno local")) : h.includes("ecosistemadesarrollo") ? (c(!0), n("Entorno de desarrollo")) : h.includes("ecosistemapruebas") ? (c(!0), n("Entorno de pruebas")) : (c(!1), n(""));
90
90
  }, []), N)
91
91
  return /* @__PURE__ */ a(g, {});
92
92
  const B = () => {
93
93
  w("/unp/ecosistema/usuario");
94
94
  };
95
- return /* @__PURE__ */ a("div", { className: `container-fluid ${c ? "menu-open" : ""}`, children: /* @__PURE__ */ e("div", { className: k, children: [
95
+ return /* @__PURE__ */ a("div", { className: `container-fluid ${l ? "menu-open" : ""}`, children: /* @__PURE__ */ e("div", { className: k, children: [
96
96
  /* @__PURE__ */ e("div", { className: "logo_details", children: [
97
97
  /* @__PURE__ */ a(
98
98
  "img",
@@ -103,7 +103,7 @@ const b1 = ({ onToggle: t, isOpen: c, showConnectionStatus: x }) => {
103
103
  }
104
104
  ),
105
105
  /* @__PURE__ */ a("div", { className: "logo-name", children: "EI - UNP" }),
106
- c ? /* @__PURE__ */ a(
106
+ l ? /* @__PURE__ */ a(
107
107
  $,
108
108
  {
109
109
  className: "bx bx-menu i",
@@ -194,7 +194,7 @@ const b1 = ({ onToggle: t, isOpen: c, showConnectionStatus: x }) => {
194
194
  ] })
195
195
  ] }),
196
196
  /* @__PURE__ */ e("div", { className: "profile-content", children: [
197
- !c && x && /* @__PURE__ */ a(g, { children: v === "connected" ? /* @__PURE__ */ e("div", { className: "gear-tooltip-container", children: [
197
+ !l && x && /* @__PURE__ */ a(g, { children: v === "connected" ? /* @__PURE__ */ e("div", { className: "gear-tooltip-container", children: [
198
198
  /* @__PURE__ */ e(
199
199
  "svg",
200
200
  {
@@ -256,7 +256,7 @@ const b1 = ({ onToggle: t, isOpen: c, showConnectionStatus: x }) => {
256
256
  ]
257
257
  }
258
258
  ) }),
259
- !c && z && /* @__PURE__ */ e("div", { className: "gear-tooltip-container", children: [
259
+ !l && z && /* @__PURE__ */ e("div", { className: "gear-tooltip-container", children: [
260
260
  /* @__PURE__ */ a(
261
261
  "svg",
262
262
  {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "react-ecosistema-unp",
3
3
  "author": "Ecosistema de Información - Unidad Nacional de Protección",
4
4
  "private": false,
5
- "version": "1.8.0-pre.8",
5
+ "version": "1.8.0-pre.9",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  ".": {