react-ecosistema-unp 0.1.6 → 0.2.0
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/TabPane-C423iXKE.js +20717 -0
- package/dist/assets/TabVentana.css +5 -0
- package/dist/iconBase-LROS5hdG.js +112 -0
- package/dist/lib/shared/components/NotificacionUsuario.d.ts +3 -0
- package/dist/lib/shared/components/TabVentana.d.ts +8 -0
- package/dist/lib/shared/components/VentanaUsuario.d.ts +6 -0
- package/dist/shared/components/MenuLateral.js +152 -259
- package/dist/shared/components/NotificacionUsuario.js +9 -0
- package/dist/shared/components/TabVentana.js +45 -0
- package/dist/shared/components/VentanaUsuario.js +488 -0
- package/package.json +1 -1
|
@@ -1,231 +1,124 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { u as
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { jsx as e, Fragment as x, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as p, useEffect as m } from "react";
|
|
3
|
+
import { u as k, a as z } from "../../useFinalizarSesion-COlHmXt5.js";
|
|
4
|
+
import { G as c } from "../../iconBase-LROS5hdG.js";
|
|
5
|
+
import { urlBase as M, urlCertificadoLaboral as w } from "../../utils/Url.js";
|
|
6
|
+
import '../../assets/MenuLateral.css';class o extends Error {
|
|
7
|
+
}
|
|
8
|
+
o.prototype.name = "InvalidTokenError";
|
|
9
|
+
function B(a) {
|
|
10
|
+
return decodeURIComponent(atob(a).replace(/(.)/g, (i, l) => {
|
|
11
|
+
let n = l.charCodeAt(0).toString(16).toUpperCase();
|
|
12
|
+
return n.length < 2 && (n = "0" + n), "%" + n;
|
|
12
13
|
}));
|
|
13
14
|
}
|
|
14
|
-
function
|
|
15
|
-
let
|
|
16
|
-
switch (
|
|
15
|
+
function _(a) {
|
|
16
|
+
let i = a.replace(/-/g, "+").replace(/_/g, "/");
|
|
17
|
+
switch (i.length % 4) {
|
|
17
18
|
case 0:
|
|
18
19
|
break;
|
|
19
20
|
case 2:
|
|
20
|
-
|
|
21
|
+
i += "==";
|
|
21
22
|
break;
|
|
22
23
|
case 3:
|
|
23
|
-
|
|
24
|
+
i += "=";
|
|
24
25
|
break;
|
|
25
26
|
default:
|
|
26
27
|
throw new Error("base64 string is not of the correct length");
|
|
27
28
|
}
|
|
28
29
|
try {
|
|
29
|
-
return
|
|
30
|
+
return B(i);
|
|
30
31
|
} catch {
|
|
31
|
-
return atob(
|
|
32
|
+
return atob(i);
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
-
if (typeof
|
|
36
|
-
throw new
|
|
37
|
-
|
|
38
|
-
const
|
|
39
|
-
if (typeof
|
|
40
|
-
throw new
|
|
41
|
-
let
|
|
35
|
+
function g(a, i) {
|
|
36
|
+
if (typeof a != "string")
|
|
37
|
+
throw new o("Invalid token specified: must be a string");
|
|
38
|
+
i || (i = {});
|
|
39
|
+
const l = i.header === !0 ? 0 : 1, n = a.split(".")[l];
|
|
40
|
+
if (typeof n != "string")
|
|
41
|
+
throw new o(`Invalid token specified: missing part #${l + 1}`);
|
|
42
|
+
let r;
|
|
42
43
|
try {
|
|
43
|
-
|
|
44
|
+
r = _(n);
|
|
44
45
|
} catch (s) {
|
|
45
|
-
throw new
|
|
46
|
+
throw new o(`Invalid token specified: invalid base64 for part #${l + 1} (${s.message})`);
|
|
46
47
|
}
|
|
47
48
|
try {
|
|
48
|
-
return JSON.parse(
|
|
49
|
+
return JSON.parse(r);
|
|
49
50
|
} catch (s) {
|
|
50
|
-
throw new
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
var k = {
|
|
54
|
-
color: void 0,
|
|
55
|
-
size: void 0,
|
|
56
|
-
className: void 0,
|
|
57
|
-
style: void 0,
|
|
58
|
-
attr: void 0
|
|
59
|
-
}, w = d.createContext && /* @__PURE__ */ d.createContext(k), E = ["attr", "size", "title"];
|
|
60
|
-
function A(e, t) {
|
|
61
|
-
if (e == null) return {};
|
|
62
|
-
var r = I(e, t), i, c;
|
|
63
|
-
if (Object.getOwnPropertySymbols) {
|
|
64
|
-
var s = Object.getOwnPropertySymbols(e);
|
|
65
|
-
for (c = 0; c < s.length; c++)
|
|
66
|
-
i = s[c], !(t.indexOf(i) >= 0) && Object.prototype.propertyIsEnumerable.call(e, i) && (r[i] = e[i]);
|
|
67
|
-
}
|
|
68
|
-
return r;
|
|
69
|
-
}
|
|
70
|
-
function I(e, t) {
|
|
71
|
-
if (e == null) return {};
|
|
72
|
-
var r = {};
|
|
73
|
-
for (var i in e)
|
|
74
|
-
if (Object.prototype.hasOwnProperty.call(e, i)) {
|
|
75
|
-
if (t.indexOf(i) >= 0) continue;
|
|
76
|
-
r[i] = e[i];
|
|
77
|
-
}
|
|
78
|
-
return r;
|
|
79
|
-
}
|
|
80
|
-
function f() {
|
|
81
|
-
return f = Object.assign ? Object.assign.bind() : function(e) {
|
|
82
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
83
|
-
var r = arguments[t];
|
|
84
|
-
for (var i in r)
|
|
85
|
-
Object.prototype.hasOwnProperty.call(r, i) && (e[i] = r[i]);
|
|
86
|
-
}
|
|
87
|
-
return e;
|
|
88
|
-
}, f.apply(this, arguments);
|
|
89
|
-
}
|
|
90
|
-
function z(e, t) {
|
|
91
|
-
var r = Object.keys(e);
|
|
92
|
-
if (Object.getOwnPropertySymbols) {
|
|
93
|
-
var i = Object.getOwnPropertySymbols(e);
|
|
94
|
-
t && (i = i.filter(function(c) {
|
|
95
|
-
return Object.getOwnPropertyDescriptor(e, c).enumerable;
|
|
96
|
-
})), r.push.apply(r, i);
|
|
51
|
+
throw new o(`Invalid token specified: invalid json for part #${l + 1} (${s.message})`);
|
|
97
52
|
}
|
|
98
|
-
return r;
|
|
99
|
-
}
|
|
100
|
-
function g(e) {
|
|
101
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
102
|
-
var r = arguments[t] != null ? arguments[t] : {};
|
|
103
|
-
t % 2 ? z(Object(r), !0).forEach(function(i) {
|
|
104
|
-
V(e, i, r[i]);
|
|
105
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : z(Object(r)).forEach(function(i) {
|
|
106
|
-
Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(r, i));
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
return e;
|
|
110
|
-
}
|
|
111
|
-
function V(e, t, r) {
|
|
112
|
-
return t = L(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
113
|
-
}
|
|
114
|
-
function L(e) {
|
|
115
|
-
var t = T(e, "string");
|
|
116
|
-
return typeof t == "symbol" ? t : t + "";
|
|
117
|
-
}
|
|
118
|
-
function T(e, t) {
|
|
119
|
-
if (typeof e != "object" || !e) return e;
|
|
120
|
-
var r = e[Symbol.toPrimitive];
|
|
121
|
-
if (r !== void 0) {
|
|
122
|
-
var i = r.call(e, t || "default");
|
|
123
|
-
if (typeof i != "object") return i;
|
|
124
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
125
|
-
}
|
|
126
|
-
return (t === "string" ? String : Number)(e);
|
|
127
|
-
}
|
|
128
|
-
function y(e) {
|
|
129
|
-
return e && e.map((t, r) => /* @__PURE__ */ d.createElement(t.tag, g({
|
|
130
|
-
key: r
|
|
131
|
-
}, t.attr), y(t.child)));
|
|
132
|
-
}
|
|
133
|
-
function l(e) {
|
|
134
|
-
return (t) => /* @__PURE__ */ d.createElement(D, f({
|
|
135
|
-
attr: g({}, e.attr)
|
|
136
|
-
}, t), y(e.child));
|
|
137
|
-
}
|
|
138
|
-
function D(e) {
|
|
139
|
-
var t = (r) => {
|
|
140
|
-
var {
|
|
141
|
-
attr: i,
|
|
142
|
-
size: c,
|
|
143
|
-
title: s
|
|
144
|
-
} = e, v = A(e, E), u = c || r.size || "1em", o;
|
|
145
|
-
return r.className && (o = r.className), e.className && (o = (o ? o + " " : "") + e.className), /* @__PURE__ */ d.createElement("svg", f({
|
|
146
|
-
stroke: "currentColor",
|
|
147
|
-
fill: "currentColor",
|
|
148
|
-
strokeWidth: "0"
|
|
149
|
-
}, r.attr, i, v, {
|
|
150
|
-
className: o,
|
|
151
|
-
style: g(g({
|
|
152
|
-
color: e.color || r.color
|
|
153
|
-
}, r.style), e.style),
|
|
154
|
-
height: u,
|
|
155
|
-
width: u,
|
|
156
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
157
|
-
}), s && /* @__PURE__ */ d.createElement("title", null, s), e.children);
|
|
158
|
-
};
|
|
159
|
-
return w !== void 0 ? /* @__PURE__ */ d.createElement(w.Consumer, null, (r) => t(r)) : t(k);
|
|
160
53
|
}
|
|
161
|
-
function
|
|
162
|
-
return
|
|
54
|
+
function C(a) {
|
|
55
|
+
return c({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M2 12h2a7.986 7.986 0 0 1 2.337-5.663 7.91 7.91 0 0 1 2.542-1.71 8.12 8.12 0 0 1 6.13-.041A2.488 2.488 0 0 0 17.5 7C18.886 7 20 5.886 20 4.5S18.886 2 17.5 2c-.689 0-1.312.276-1.763.725-2.431-.973-5.223-.958-7.635.059a9.928 9.928 0 0 0-3.18 2.139 9.92 9.92 0 0 0-2.14 3.179A10.005 10.005 0 0 0 2 12zm17.373 3.122c-.401.952-.977 1.808-1.71 2.541s-1.589 1.309-2.542 1.71a8.12 8.12 0 0 1-6.13.041A2.488 2.488 0 0 0 6.5 17C5.114 17 4 18.114 4 19.5S5.114 22 6.5 22c.689 0 1.312-.276 1.763-.725A9.965 9.965 0 0 0 12 22a9.983 9.983 0 0 0 9.217-6.102A9.992 9.992 0 0 0 22 12h-2a7.993 7.993 0 0 1-.627 3.122z" }, child: [] }, { tag: "path", attr: { d: "M12 7.462c-2.502 0-4.538 2.036-4.538 4.538S9.498 16.538 12 16.538s4.538-2.036 4.538-4.538S14.502 7.462 12 7.462zm0 7.076c-1.399 0-2.538-1.139-2.538-2.538S10.601 9.462 12 9.462s2.538 1.139 2.538 2.538-1.139 2.538-2.538 2.538z" }, child: [] }] })(a);
|
|
163
56
|
}
|
|
164
|
-
function
|
|
165
|
-
return
|
|
57
|
+
function H(a) {
|
|
58
|
+
return c({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M19 2H6c-1.206 0-3 .799-3 3v14c0 2.201 1.794 3 3 3h15v-2H6.012C5.55 19.988 5 19.806 5 19s.55-.988 1.012-1H21V4c0-1.103-.897-2-2-2zm0 14H5V5c0-.806.55-.988 1-1h13v12z" }, child: [] }] })(a);
|
|
166
59
|
}
|
|
167
|
-
function
|
|
168
|
-
return
|
|
60
|
+
function A(a) {
|
|
61
|
+
return c({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M20 4H4c-1.103 0-2 .897-2 2v12c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V6c0-1.103-.897-2-2-2zm0 2v.511l-8 6.223-8-6.222V6h16zM4 18V9.044l7.386 5.745a.994.994 0 0 0 1.228 0L20 9.044 20.002 18H4z" }, child: [] }] })(a);
|
|
169
62
|
}
|
|
170
|
-
function
|
|
171
|
-
return
|
|
63
|
+
function S(a) {
|
|
64
|
+
return c({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M11.953 2C6.465 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.493 2 11.953 2zM12 20c-4.411 0-8-3.589-8-8s3.567-8 7.953-8C16.391 4 20 7.589 20 12s-3.589 8-8 8z" }, child: [] }, { tag: "path", attr: { d: "M11 7h2v7h-2zm0 8h2v2h-2z" }, child: [] }] })(a);
|
|
172
65
|
}
|
|
173
|
-
function
|
|
174
|
-
return
|
|
66
|
+
function V(a) {
|
|
67
|
+
return c({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M19.903 8.586a.997.997 0 0 0-.196-.293l-6-6a.997.997 0 0 0-.293-.196c-.03-.014-.062-.022-.094-.033a.991.991 0 0 0-.259-.051C13.04 2.011 13.021 2 13 2H6c-1.103 0-2 .897-2 2v16c0 1.103.897 2 2 2h12c1.103 0 2-.897 2-2V9c0-.021-.011-.04-.013-.062a.952.952 0 0 0-.051-.259c-.01-.032-.019-.063-.033-.093zM16.586 8H14V5.414L16.586 8zM6 20V4h6v5a1 1 0 0 0 1 1h5l.002 10H6z" }, child: [] }, { tag: "path", attr: { d: "M8 12h8v2H8zm0 4h8v2H8zm0-8h2v2H8z" }, child: [] }] })(a);
|
|
175
68
|
}
|
|
176
|
-
function
|
|
177
|
-
return
|
|
69
|
+
function I(a) {
|
|
70
|
+
return c({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M3 13h1v7c0 1.103.897 2 2 2h12c1.103 0 2-.897 2-2v-7h1a1 1 0 0 0 .707-1.707l-9-9a.999.999 0 0 0-1.414 0l-9 9A1 1 0 0 0 3 13zm7 7v-5h4v5h-4zm2-15.586 6 6V15l.001 5H16v-5c0-1.103-.897-2-2-2h-4c-1.103 0-2 .897-2 2v5H6v-9.586l6-6z" }, child: [] }] })(a);
|
|
178
71
|
}
|
|
179
|
-
function
|
|
180
|
-
return
|
|
72
|
+
function L(a) {
|
|
73
|
+
return c({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M4.222 19.778a4.983 4.983 0 0 0 3.535 1.462 4.986 4.986 0 0 0 3.536-1.462l2.828-2.829-1.414-1.414-2.828 2.829a3.007 3.007 0 0 1-4.243 0 3.005 3.005 0 0 1 0-4.243l2.829-2.828-1.414-1.414-2.829 2.828a5.006 5.006 0 0 0 0 7.071zm15.556-8.485a5.008 5.008 0 0 0 0-7.071 5.006 5.006 0 0 0-7.071 0L9.879 7.051l1.414 1.414 2.828-2.829a3.007 3.007 0 0 1 4.243 0 3.005 3.005 0 0 1 0 4.243l-2.829 2.828 1.414 1.414 2.829-2.828z" }, child: [] }, { tag: "path", attr: { d: "m8.464 16.95-1.415-1.414 8.487-8.486 1.414 1.415z" }, child: [] }] })(a);
|
|
181
74
|
}
|
|
182
|
-
function
|
|
183
|
-
return
|
|
75
|
+
function y(a) {
|
|
76
|
+
return c({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M16 13v-2H7V8l-5 4 5 4v-3z" }, child: [] }, { tag: "path", attr: { d: "M20 3h-9c-1.103 0-2 .897-2 2v4h2V5h9v14h-9v-4H9v4c0 1.103.897 2 2 2h9c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2z" }, child: [] }] })(a);
|
|
184
77
|
}
|
|
185
|
-
function
|
|
186
|
-
return
|
|
78
|
+
function E(a) {
|
|
79
|
+
return c({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "m12 17 1-2V9.858c1.721-.447 3-2 3-3.858 0-2.206-1.794-4-4-4S8 3.794 8 6c0 1.858 1.279 3.411 3 3.858V15l1 2zM10 6c0-1.103.897-2 2-2s2 .897 2 2-.897 2-2 2-2-.897-2-2z" }, child: [] }, { tag: "path", attr: { d: "m16.267 10.563-.533 1.928C18.325 13.207 20 14.584 20 16c0 1.892-3.285 4-8 4s-8-2.108-8-4c0-1.416 1.675-2.793 4.267-3.51l-.533-1.928C4.197 11.54 2 13.623 2 16c0 3.364 4.393 6 10 6s10-2.636 10-6c0-2.377-2.197-4.46-5.733-5.437z" }, child: [] }] })(a);
|
|
187
80
|
}
|
|
188
|
-
function
|
|
189
|
-
return
|
|
81
|
+
function P(a) {
|
|
82
|
+
return c({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M4 6h16v2H4zm4 5h12v2H8zm5 5h7v2h-7z" }, child: [] }] })(a);
|
|
190
83
|
}
|
|
191
|
-
function
|
|
192
|
-
return
|
|
84
|
+
function T(a) {
|
|
85
|
+
return c({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M4 6h16v2H4zm0 5h16v2H4zm0 5h16v2H4z" }, child: [] }] })(a);
|
|
193
86
|
}
|
|
194
|
-
function
|
|
195
|
-
return
|
|
87
|
+
function U(a) {
|
|
88
|
+
return c({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M11.63 21.91A.9.9 0 0 0 12 22a1 1 0 0 0 .41-.09C22 17.67 21 7 21 6.9a1 1 0 0 0-.55-.79l-8-4a1 1 0 0 0-.9 0l-8 4A1 1 0 0 0 3 6.9c0 .1-.92 10.77 8.63 15.01zM5 7.63l7-3.51 7 3.51c.05 2-.27 9-7 12.27C5.26 16.63 4.94 9.64 5 7.63z" }, child: [] }, { tag: "path", attr: { d: "M11.06 16h2v-3h3.01v-2h-3.01V8h-2v3h-3v2h3v3z" }, child: [] }] })(a);
|
|
196
89
|
}
|
|
197
|
-
function
|
|
198
|
-
return
|
|
90
|
+
function $(a) {
|
|
91
|
+
return c({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M3.414 13.778 2 15.192l4.949 2.121 2.122 4.95 1.414-1.414-.707-3.536L13.091 14l3.61 7.704 1.339-1.339-1.19-10.123 2.828-2.829a2 2 0 1 0-2.828-2.828l-2.903 2.903L3.824 6.297 2.559 7.563l7.644 3.67-3.253 3.253-3.536-.708z" }, child: [] }] })(a);
|
|
199
92
|
}
|
|
200
|
-
function
|
|
201
|
-
return
|
|
93
|
+
function D(a) {
|
|
94
|
+
return c({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M15.661 15.549a1.315 1.315 0 0 0 1.185-1.386 1.363 1.363 0 0 0-1.35-1.302h-.048a1.352 1.352 0 0 0-1.303 1.397c.024.379.179.687.391.911-.827 1.609-2.07 2.794-3.954 3.788-1.266.663-2.604.912-3.905.734-1.089-.153-1.94-.64-2.463-1.421-.78-1.185-.852-2.462-.201-3.74a5.597 5.597 0 0 1 1.658-1.931 7.88 7.88 0 0 1-.331-1.218c-3.506 2.51-3.148 5.942-2.084 7.564.794 1.184 2.415 1.941 4.19 1.941.474 0 .972-.035 1.457-.154 3.077-.592 5.409-2.438 6.747-5.16l.011-.023z" }, child: [] }, { tag: "path", attr: { d: "M19.887 12.589c-1.834-2.154-4.533-3.337-7.611-3.337h-.403c-.2-.438-.661-.711-1.183-.711h-.036c-.744 0-1.325.64-1.301 1.385.023.71.627 1.302 1.35 1.302h.059a1.332 1.332 0 0 0 1.183-.828h.439c1.824 0 3.551.532 5.126 1.574 1.206.792 2.072 1.834 2.557 3.077.425 1.019.402 2.013-.035 2.843-.675 1.302-1.812 1.988-3.314 1.988-.947 0-1.871-.296-2.345-.509-.283.235-.758.626-1.102.863 1.042.473 2.096.746 3.113.746 2.309 0 4.023-1.302 4.676-2.557.709-1.422.651-3.813-1.161-5.859l-.012.023z" }, child: [] }, { tag: "path", attr: { d: "M7.647 15.975c.023.71.626 1.302 1.35 1.302h.048a1.334 1.334 0 0 0 1.302-1.397c0-.71-.616-1.301-1.338-1.301h-.048c-.048 0-.118 0-.178.022-.982-1.657-1.397-3.434-1.242-5.349.094-1.445.567-2.7 1.42-3.742.71-.888 2.048-1.326 2.96-1.35 2.556-.048 3.622 3.138 3.704 4.404l1.184.354C16.536 5.036 14.122 3 11.813 3 9.647 3 7.647 4.574 6.842 6.884c-1.102 3.077-.379 6.036.971 8.404-.118.154-.189.426-.166.687z" }, child: [] }] })(a);
|
|
202
95
|
}
|
|
203
|
-
const
|
|
204
|
-
const [
|
|
205
|
-
if (
|
|
206
|
-
const
|
|
207
|
-
if (
|
|
208
|
-
const
|
|
209
|
-
s(
|
|
96
|
+
const q = ({ onToggle: a, isOpen: i }) => {
|
|
97
|
+
const [l, n] = p(!0), [r, s] = p(null), u = i ? "sidebar-bar-panel open" : "sidebar-bar-panel", v = k(), { FinSesion: f } = z();
|
|
98
|
+
if (m(() => {
|
|
99
|
+
const d = localStorage.getItem("user_token");
|
|
100
|
+
if (d) {
|
|
101
|
+
const h = g(d);
|
|
102
|
+
s(h);
|
|
210
103
|
}
|
|
211
|
-
|
|
212
|
-
}, []),
|
|
213
|
-
const
|
|
214
|
-
const
|
|
215
|
-
if (
|
|
216
|
-
const
|
|
217
|
-
s(
|
|
104
|
+
n(!1);
|
|
105
|
+
}, []), m(() => {
|
|
106
|
+
const d = setTimeout(() => {
|
|
107
|
+
const h = localStorage.getItem("user_token");
|
|
108
|
+
if (h) {
|
|
109
|
+
const N = g(h);
|
|
110
|
+
s(N);
|
|
218
111
|
}
|
|
219
112
|
}, 2e3);
|
|
220
|
-
return () => clearTimeout(
|
|
221
|
-
}, []),
|
|
222
|
-
return /* @__PURE__ */
|
|
223
|
-
const
|
|
224
|
-
|
|
113
|
+
return () => clearTimeout(d);
|
|
114
|
+
}, []), l)
|
|
115
|
+
return /* @__PURE__ */ e(x, {});
|
|
116
|
+
const b = () => {
|
|
117
|
+
v("/sistema/usuario");
|
|
225
118
|
};
|
|
226
|
-
return /* @__PURE__ */
|
|
227
|
-
/* @__PURE__ */
|
|
228
|
-
/* @__PURE__ */
|
|
119
|
+
return /* @__PURE__ */ e("div", { className: `container-fluid ${i ? "menu-open" : ""}`, children: /* @__PURE__ */ t("div", { className: u, children: [
|
|
120
|
+
/* @__PURE__ */ t("div", { className: "logo_details", children: [
|
|
121
|
+
/* @__PURE__ */ e(
|
|
229
122
|
"img",
|
|
230
123
|
{
|
|
231
124
|
src: "/logo-unp-gris.png",
|
|
@@ -233,121 +126,121 @@ const ne = ({ onToggle: e, isOpen: t }) => {
|
|
|
233
126
|
className: "icon logo-image"
|
|
234
127
|
}
|
|
235
128
|
),
|
|
236
|
-
/* @__PURE__ */
|
|
237
|
-
|
|
238
|
-
|
|
129
|
+
/* @__PURE__ */ e("div", { className: "logo-name", children: "EI-UNP" }),
|
|
130
|
+
i ? /* @__PURE__ */ e(
|
|
131
|
+
P,
|
|
239
132
|
{
|
|
240
133
|
className: "bx bx-menu i",
|
|
241
134
|
id: "btn",
|
|
242
|
-
onClick:
|
|
135
|
+
onClick: a
|
|
243
136
|
}
|
|
244
|
-
) : /* @__PURE__ */
|
|
137
|
+
) : /* @__PURE__ */ e(T, { className: "bx bx-menu i", id: "btn", onClick: a })
|
|
245
138
|
] }),
|
|
246
|
-
/* @__PURE__ */
|
|
247
|
-
/* @__PURE__ */
|
|
248
|
-
/* @__PURE__ */
|
|
249
|
-
/* @__PURE__ */
|
|
250
|
-
/* @__PURE__ */
|
|
139
|
+
/* @__PURE__ */ t("ul", { className: "nav-list-panel", children: [
|
|
140
|
+
/* @__PURE__ */ t("li", { children: [
|
|
141
|
+
/* @__PURE__ */ t("a", { href: "", children: [
|
|
142
|
+
/* @__PURE__ */ e(I, { className: "bx bx-home i2" }),
|
|
143
|
+
/* @__PURE__ */ e("span", { className: "link_name", children: "Inicio" })
|
|
251
144
|
] }),
|
|
252
|
-
/* @__PURE__ */
|
|
145
|
+
/* @__PURE__ */ e("span", { className: "tooltip", children: "Inicio" })
|
|
253
146
|
] }),
|
|
254
|
-
/* @__PURE__ */
|
|
255
|
-
/* @__PURE__ */
|
|
256
|
-
/* @__PURE__ */
|
|
257
|
-
/* @__PURE__ */
|
|
147
|
+
/* @__PURE__ */ t("li", { children: [
|
|
148
|
+
/* @__PURE__ */ t("a", { href: "", children: [
|
|
149
|
+
/* @__PURE__ */ e(E, { className: "bx bx-map-pin i2" }),
|
|
150
|
+
/* @__PURE__ */ e("span", { className: "link_name", children: "Mapa del proceso" })
|
|
258
151
|
] }),
|
|
259
|
-
/* @__PURE__ */
|
|
152
|
+
/* @__PURE__ */ e("span", { className: "tooltip", children: "Mapa del proceso" })
|
|
260
153
|
] }),
|
|
261
|
-
/* @__PURE__ */
|
|
262
|
-
/* @__PURE__ */
|
|
263
|
-
/* @__PURE__ */
|
|
264
|
-
/* @__PURE__ */
|
|
154
|
+
/* @__PURE__ */ t("li", { children: [
|
|
155
|
+
/* @__PURE__ */ t("a", { href: "", children: [
|
|
156
|
+
/* @__PURE__ */ e(H, { className: "bx bx-book-alt i2" }),
|
|
157
|
+
/* @__PURE__ */ e("span", { className: "link_name", children: "Manuales de usuario" })
|
|
265
158
|
] }),
|
|
266
|
-
/* @__PURE__ */
|
|
159
|
+
/* @__PURE__ */ e("span", { className: "tooltip", children: "Manual de usuario" })
|
|
267
160
|
] }),
|
|
268
|
-
/* @__PURE__ */
|
|
269
|
-
/* @__PURE__ */
|
|
270
|
-
/* @__PURE__ */
|
|
271
|
-
/* @__PURE__ */
|
|
272
|
-
/* @__PURE__ */
|
|
161
|
+
/* @__PURE__ */ e("div", { style: { paddingLeft: "15px", paddingRight: "15px" }, children: /* @__PURE__ */ e("hr", { style: { borderTop: "1px solid white" } }) }),
|
|
162
|
+
/* @__PURE__ */ t("li", { children: [
|
|
163
|
+
/* @__PURE__ */ t("a", { href: "https://www.unp.gov.co/", target: "_blank", children: [
|
|
164
|
+
/* @__PURE__ */ e(L, { className: "bx bx-link-alt i2" }),
|
|
165
|
+
/* @__PURE__ */ e("span", { className: "link_name", children: "Portal UNP" })
|
|
273
166
|
] }),
|
|
274
|
-
/* @__PURE__ */
|
|
167
|
+
/* @__PURE__ */ e("span", { className: "tooltip", children: "Portal UNP" })
|
|
275
168
|
] }),
|
|
276
|
-
/* @__PURE__ */
|
|
277
|
-
/* @__PURE__ */
|
|
169
|
+
/* @__PURE__ */ t("li", { children: [
|
|
170
|
+
/* @__PURE__ */ t(
|
|
278
171
|
"a",
|
|
279
172
|
{
|
|
280
173
|
href: "https://login.microsoftonline.com/common/oauth2/authorize?client_id=00000002-0000-0ff1-ce00-000000000000&redirect_uri=https%3a%2f%2foutlook.office365.com%2fowa%2f&resource=00000002-0000-0ff1-ce00-000000000000&response_mode=form_post&response_type=code+id_token&scope=openid&msafed=1&msaredir=1&client-request-id=f8488f2f-33b7-d769-3dc8-fe71d263f531&protectedtoken=true&claims=%7b%22id_token%22%3a%7b%22xms_cc%22%3a%7b%22values%22%3a%5b%22CP1%22%5d%7d%7d%7d&nonce=638372347486593361.36439678-d731-49f6-a49f-cc0594f2abb0&state=Dcs7EoAgDEVR0HE5kc8LCVkO4NBaun1T3NPdGEI4vcOL2Qkq6NAKVu7SDJByQxgm2ulRFGLbQsOltXIz3nXMmaO_V3q_kX4",
|
|
281
174
|
target: "_blank",
|
|
282
175
|
children: [
|
|
283
|
-
/* @__PURE__ */
|
|
284
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ e(A, { className: "bx bx-envelope i2" }),
|
|
177
|
+
/* @__PURE__ */ e("span", { className: "link_name", children: "Correo institucional" })
|
|
285
178
|
]
|
|
286
179
|
}
|
|
287
180
|
),
|
|
288
|
-
/* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ e("span", { className: "tooltip", children: "Correo institucional" })
|
|
289
182
|
] }),
|
|
290
|
-
/* @__PURE__ */
|
|
291
|
-
/* @__PURE__ */
|
|
292
|
-
/* @__PURE__ */
|
|
293
|
-
/* @__PURE__ */
|
|
183
|
+
/* @__PURE__ */ t("li", { children: [
|
|
184
|
+
/* @__PURE__ */ t("a", { href: "http://intranet.unp.gov.co/", target: "_blank", children: [
|
|
185
|
+
/* @__PURE__ */ e(D, { className: "bx bxl-redux i2" }),
|
|
186
|
+
/* @__PURE__ */ e("span", { className: "link_name", children: "Acceso directo a Intranet" })
|
|
294
187
|
] }),
|
|
295
|
-
/* @__PURE__ */
|
|
188
|
+
/* @__PURE__ */ e("span", { className: "tooltip", children: "Acceso directo a Intranet" })
|
|
296
189
|
] }),
|
|
297
|
-
/* @__PURE__ */
|
|
298
|
-
/* @__PURE__ */
|
|
299
|
-
/* @__PURE__ */
|
|
300
|
-
/* @__PURE__ */
|
|
190
|
+
/* @__PURE__ */ t("li", { children: [
|
|
191
|
+
/* @__PURE__ */ t("a", { href: "https://mesadeservicios.unp.gov.co/HEAT/", target: "_blank", children: [
|
|
192
|
+
/* @__PURE__ */ e(S, { className: "bx bx-error-circle i2" }),
|
|
193
|
+
/* @__PURE__ */ e("span", { className: "link_name", children: "Mesa de servicios" })
|
|
301
194
|
] }),
|
|
302
|
-
/* @__PURE__ */
|
|
195
|
+
/* @__PURE__ */ e("span", { className: "tooltip", children: "Mesa de servicios" })
|
|
303
196
|
] }),
|
|
304
|
-
/* @__PURE__ */
|
|
305
|
-
/* @__PURE__ */
|
|
306
|
-
/* @__PURE__ */
|
|
307
|
-
/* @__PURE__ */
|
|
308
|
-
/* @__PURE__ */
|
|
197
|
+
/* @__PURE__ */ e("div", { style: { paddingLeft: "15px", paddingRight: "15px" }, children: /* @__PURE__ */ e("hr", { style: { borderTop: "1px solid white" } }) }),
|
|
198
|
+
/* @__PURE__ */ t("li", { children: [
|
|
199
|
+
/* @__PURE__ */ t("a", { href: "", children: [
|
|
200
|
+
/* @__PURE__ */ e(U, { className: "bx i2" }),
|
|
201
|
+
/* @__PURE__ */ e("span", { className: "link_name", children: "Medida de emergencia" })
|
|
309
202
|
] }),
|
|
310
|
-
/* @__PURE__ */
|
|
203
|
+
/* @__PURE__ */ e("span", { className: "tooltip", children: "Medida de emergencia" })
|
|
311
204
|
] }),
|
|
312
|
-
/* @__PURE__ */
|
|
313
|
-
/* @__PURE__ */
|
|
314
|
-
/* @__PURE__ */
|
|
315
|
-
/* @__PURE__ */
|
|
205
|
+
/* @__PURE__ */ t("li", { children: [
|
|
206
|
+
/* @__PURE__ */ t("a", { href: "", children: [
|
|
207
|
+
/* @__PURE__ */ e(C, { className: "bx i2" }),
|
|
208
|
+
/* @__PURE__ */ e("span", { className: "link_name", children: "Acta de reunión" })
|
|
316
209
|
] }),
|
|
317
|
-
/* @__PURE__ */
|
|
210
|
+
/* @__PURE__ */ e("span", { className: "tooltip", children: "Acta de reunión" })
|
|
318
211
|
] }),
|
|
319
|
-
/* @__PURE__ */
|
|
320
|
-
/* @__PURE__ */
|
|
321
|
-
/* @__PURE__ */
|
|
322
|
-
/* @__PURE__ */
|
|
212
|
+
/* @__PURE__ */ t("li", { children: [
|
|
213
|
+
/* @__PURE__ */ t("a", { href: "", children: [
|
|
214
|
+
/* @__PURE__ */ e($, { className: "bx i2" }),
|
|
215
|
+
/* @__PURE__ */ e("span", { className: "link_name", children: "Solicitud de viáticos" })
|
|
323
216
|
] }),
|
|
324
|
-
/* @__PURE__ */
|
|
217
|
+
/* @__PURE__ */ e("span", { className: "tooltip", children: "Solicitud de viáticos" })
|
|
325
218
|
] }),
|
|
326
|
-
/* @__PURE__ */
|
|
327
|
-
/* @__PURE__ */
|
|
328
|
-
/* @__PURE__ */
|
|
329
|
-
/* @__PURE__ */
|
|
219
|
+
/* @__PURE__ */ t("li", { children: [
|
|
220
|
+
/* @__PURE__ */ t("a", { href: `${M}${w}`, children: [
|
|
221
|
+
/* @__PURE__ */ e(V, { className: "bx i2" }),
|
|
222
|
+
/* @__PURE__ */ e("span", { className: "link_name", children: "Certificados laborales (OPS)" })
|
|
330
223
|
] }),
|
|
331
|
-
/* @__PURE__ */
|
|
224
|
+
/* @__PURE__ */ e("span", { className: "tooltip", children: "Certificados laborales (OPS)" })
|
|
332
225
|
] })
|
|
333
226
|
] }),
|
|
334
|
-
/* @__PURE__ */
|
|
335
|
-
/* @__PURE__ */
|
|
227
|
+
/* @__PURE__ */ e("div", { className: "profile-content", children: /* @__PURE__ */ t("div", { className: "profile", children: [
|
|
228
|
+
/* @__PURE__ */ e(
|
|
336
229
|
"div",
|
|
337
230
|
{
|
|
338
231
|
className: "profile-detail",
|
|
339
|
-
onClick:
|
|
232
|
+
onClick: b,
|
|
340
233
|
style: { cursor: "pointer" },
|
|
341
|
-
children:
|
|
342
|
-
/* @__PURE__ */
|
|
343
|
-
/* @__PURE__ */
|
|
234
|
+
children: r && /* @__PURE__ */ t("div", { className: "name-job", style: { marginTop: "3px" }, children: [
|
|
235
|
+
/* @__PURE__ */ e("div", { className: "name", children: r.access_nuser }),
|
|
236
|
+
/* @__PURE__ */ e("div", { className: "job", children: r.acces_linker })
|
|
344
237
|
] })
|
|
345
238
|
}
|
|
346
239
|
),
|
|
347
|
-
/* @__PURE__ */
|
|
240
|
+
/* @__PURE__ */ e(y, { className: "icon", onClick: f })
|
|
348
241
|
] }) })
|
|
349
242
|
] }) });
|
|
350
243
|
};
|
|
351
244
|
export {
|
|
352
|
-
|
|
245
|
+
q as MenuLateral
|
|
353
246
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { G as i } from "../../iconBase-LROS5hdG.js";
|
|
3
|
+
function o(t) {
|
|
4
|
+
return i({ tag: "svg", attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64zm215.39-149.71c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71z" }, child: [] }] })(t);
|
|
5
|
+
}
|
|
6
|
+
const e = () => /* @__PURE__ */ c(o, { style: { width: "25px", height: "25px" } });
|
|
7
|
+
export {
|
|
8
|
+
e as default
|
|
9
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { T as i, g as b, a as p, b as T, P as t } from "../../TabPane-C423iXKE.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import '../../assets/TabVentana.css';const o = ({
|
|
5
|
+
transition: a,
|
|
6
|
+
...n
|
|
7
|
+
}) => /* @__PURE__ */ e(i, {
|
|
8
|
+
...n,
|
|
9
|
+
transition: b(a)
|
|
10
|
+
});
|
|
11
|
+
o.displayName = "TabContainer";
|
|
12
|
+
const c = {
|
|
13
|
+
eventKey: t.oneOfType([t.string, t.number]),
|
|
14
|
+
/**
|
|
15
|
+
* Content for the tab title.
|
|
16
|
+
*/
|
|
17
|
+
title: t.node.isRequired,
|
|
18
|
+
/**
|
|
19
|
+
* The disabled state of the tab.
|
|
20
|
+
*/
|
|
21
|
+
disabled: t.bool,
|
|
22
|
+
/**
|
|
23
|
+
* Class to pass to the underlying nav link.
|
|
24
|
+
*/
|
|
25
|
+
tabClassName: t.string,
|
|
26
|
+
/**
|
|
27
|
+
* Object containing attributes to pass to underlying nav link.
|
|
28
|
+
*/
|
|
29
|
+
tabAttrs: t.object
|
|
30
|
+
}, s = () => {
|
|
31
|
+
throw new Error("ReactBootstrap: The `Tab` component is not meant to be rendered! It's an abstract component that is only valid as a direct Child of the `Tabs` Component. For custom tabs components use TabPane and TabsContainer directly");
|
|
32
|
+
};
|
|
33
|
+
s.propTypes = c;
|
|
34
|
+
const m = Object.assign(s, {
|
|
35
|
+
Container: o,
|
|
36
|
+
Content: p,
|
|
37
|
+
Pane: T
|
|
38
|
+
}), y = ({
|
|
39
|
+
eventKey: a,
|
|
40
|
+
title: n,
|
|
41
|
+
children: r
|
|
42
|
+
}) => /* @__PURE__ */ e(m, { eventKey: a, title: n, children: r });
|
|
43
|
+
export {
|
|
44
|
+
y as default
|
|
45
|
+
};
|