react-ecosistema-unp 0.9.14 → 0.9.15
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-Q7bzCwAs.js → TabPane-BvUHIFlv.js} +45 -46
- package/dist/auth/hooks/useFinalizarSesion.js +7 -7
- package/dist/lib/utils/components/ProtectedRoute.d.ts +1 -4
- package/dist/lib/utils/components/UserRoute.d.ts +1 -4
- package/dist/shared/menu-lateral/MenuLateral.js +7 -7
- package/dist/shared/tab-ventana/TabVentana.js +1 -1
- package/dist/shared/ventana-lienzo/VentanaLienzo.js +12 -12
- package/dist/shared/ventana-tabs/VentanaTabs.js +27 -27
- package/dist/tables/tabla-registros/encabezado-tabla/EncabezadoTabla.js +3 -2
- package/dist/ui/items-modal/ItemsModal.js +6 -6
- package/dist/utils/components/ProtectedRoute.js +16 -14
- package/dist/utils/components/UserRoute.js +5 -5
- package/package.json +3 -3
- package/dist/chunk-IR6S3I6Y-DDsyyqUQ.js +0 -1615
|
@@ -5,7 +5,43 @@ import { jsx as v } from "react/jsx-runtime";
|
|
|
5
5
|
import { g as he, c as q, u as te } from "./ThemeProvider-CFCmmLJC.js";
|
|
6
6
|
import { u as ve } from "./useEventCallback-Bfo0-hwZ.js";
|
|
7
7
|
import { P as g } from "./index-Bk5C3cP1.js";
|
|
8
|
-
|
|
8
|
+
function F(t, s) {
|
|
9
|
+
return F = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(c, o) {
|
|
10
|
+
return c.__proto__ = o, c;
|
|
11
|
+
}, F(t, s);
|
|
12
|
+
}
|
|
13
|
+
function Oe(t, s) {
|
|
14
|
+
t.prototype = Object.create(s.prototype), t.prototype.constructor = t, F(t, s);
|
|
15
|
+
}
|
|
16
|
+
function _e(t) {
|
|
17
|
+
var s = pe(t);
|
|
18
|
+
return s && s.defaultView || window;
|
|
19
|
+
}
|
|
20
|
+
function xe(t, s) {
|
|
21
|
+
return _e(t).getComputedStyle(t, s);
|
|
22
|
+
}
|
|
23
|
+
var Te = /([A-Z])/g;
|
|
24
|
+
function be(t) {
|
|
25
|
+
return t.replace(Te, "-$1").toLowerCase();
|
|
26
|
+
}
|
|
27
|
+
var Se = /^ms-/;
|
|
28
|
+
function k(t) {
|
|
29
|
+
return be(t).replace(Se, "-ms-");
|
|
30
|
+
}
|
|
31
|
+
var Re = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;
|
|
32
|
+
function De(t) {
|
|
33
|
+
return !!(t && Re.test(t));
|
|
34
|
+
}
|
|
35
|
+
function ne(t, s) {
|
|
36
|
+
var c = "", o = "";
|
|
37
|
+
if (typeof s == "string")
|
|
38
|
+
return t.style.getPropertyValue(k(s)) || xe(t).getPropertyValue(k(s));
|
|
39
|
+
Object.keys(s).forEach(function(a) {
|
|
40
|
+
var r = s[a];
|
|
41
|
+
!r && r !== 0 ? t.style.removeProperty(k(a)) : De(a) ? o += a + "(" + r + ") " : c += k(a) + ": " + r + ";";
|
|
42
|
+
}), o && (c += "transform: " + o + ";"), t.style.cssText += ";" + c;
|
|
43
|
+
}
|
|
44
|
+
var I = { exports: {} }, E = {};
|
|
9
45
|
/**
|
|
10
46
|
* @license React
|
|
11
47
|
* react-dom.production.js
|
|
@@ -16,7 +52,7 @@ var k = { exports: {} }, E = {};
|
|
|
16
52
|
* LICENSE file in the root directory of this source tree.
|
|
17
53
|
*/
|
|
18
54
|
var Y;
|
|
19
|
-
function
|
|
55
|
+
function Ne() {
|
|
20
56
|
if (Y) return E;
|
|
21
57
|
Y = 1;
|
|
22
58
|
var t = _;
|
|
@@ -159,7 +195,7 @@ var h = {};
|
|
|
159
195
|
* LICENSE file in the root directory of this source tree.
|
|
160
196
|
*/
|
|
161
197
|
var X;
|
|
162
|
-
function
|
|
198
|
+
function Ce() {
|
|
163
199
|
return X || (X = 1, process.env.NODE_ENV !== "production" && function() {
|
|
164
200
|
function t() {
|
|
165
201
|
}
|
|
@@ -372,8 +408,8 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
372
408
|
}()), h;
|
|
373
409
|
}
|
|
374
410
|
var z;
|
|
375
|
-
function
|
|
376
|
-
if (z) return
|
|
411
|
+
function we() {
|
|
412
|
+
if (z) return I.exports;
|
|
377
413
|
z = 1;
|
|
378
414
|
function t() {
|
|
379
415
|
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
|
|
@@ -386,47 +422,10 @@ function xe() {
|
|
|
386
422
|
}
|
|
387
423
|
}
|
|
388
424
|
}
|
|
389
|
-
return process.env.NODE_ENV === "production" ? (t(),
|
|
390
|
-
}
|
|
391
|
-
var Te = xe();
|
|
392
|
-
const P = /* @__PURE__ */ he(Te);
|
|
393
|
-
function F(t, s) {
|
|
394
|
-
return F = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(c, o) {
|
|
395
|
-
return c.__proto__ = o, c;
|
|
396
|
-
}, F(t, s);
|
|
397
|
-
}
|
|
398
|
-
function be(t, s) {
|
|
399
|
-
t.prototype = Object.create(s.prototype), t.prototype.constructor = t, F(t, s);
|
|
400
|
-
}
|
|
401
|
-
function Se(t) {
|
|
402
|
-
var s = pe(t);
|
|
403
|
-
return s && s.defaultView || window;
|
|
404
|
-
}
|
|
405
|
-
function Re(t, s) {
|
|
406
|
-
return Se(t).getComputedStyle(t, s);
|
|
407
|
-
}
|
|
408
|
-
var De = /([A-Z])/g;
|
|
409
|
-
function Ne(t) {
|
|
410
|
-
return t.replace(De, "-$1").toLowerCase();
|
|
411
|
-
}
|
|
412
|
-
var Ce = /^ms-/;
|
|
413
|
-
function I(t) {
|
|
414
|
-
return Ne(t).replace(Ce, "-ms-");
|
|
415
|
-
}
|
|
416
|
-
var we = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;
|
|
417
|
-
function Me(t) {
|
|
418
|
-
return !!(t && we.test(t));
|
|
419
|
-
}
|
|
420
|
-
function ne(t, s) {
|
|
421
|
-
var c = "", o = "";
|
|
422
|
-
if (typeof s == "string")
|
|
423
|
-
return t.style.getPropertyValue(I(s)) || Re(t).getPropertyValue(I(s));
|
|
424
|
-
Object.keys(s).forEach(function(a) {
|
|
425
|
-
var r = s[a];
|
|
426
|
-
!r && r !== 0 ? t.style.removeProperty(I(a)) : Me(a) ? o += a + "(" + r + ") " : c += I(a) + ": " + r + ";";
|
|
427
|
-
}), o && (c += "transform: " + o + ";"), t.style.cssText += ";" + c;
|
|
425
|
+
return process.env.NODE_ENV === "production" ? (t(), I.exports = Ne()) : I.exports = Ce(), I.exports;
|
|
428
426
|
}
|
|
429
|
-
|
|
427
|
+
var Me = we();
|
|
428
|
+
const P = /* @__PURE__ */ he(Me), Z = {
|
|
430
429
|
disabled: !1
|
|
431
430
|
};
|
|
432
431
|
var Pe = process.env.NODE_ENV !== "production" ? g.oneOfType([g.number, g.shape({
|
|
@@ -450,7 +449,7 @@ const re = _.createContext(null);
|
|
|
450
449
|
var Le = function(s) {
|
|
451
450
|
return s.scrollTop;
|
|
452
451
|
}, L = "unmounted", S = "exited", b = "entering", R = "entered", G = "exiting", x = /* @__PURE__ */ function(t) {
|
|
453
|
-
|
|
452
|
+
Oe(s, t);
|
|
454
453
|
function s(o, a) {
|
|
455
454
|
var r;
|
|
456
455
|
r = t.call(this, o, a) || this;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { useNavigate as O } from "react-router-dom";
|
|
2
|
+
import { useAuthId as C } from "./AuthHook.js";
|
|
3
|
+
import { FinSesionService as S } from "../services/FinSesionService.js";
|
|
4
|
+
import { isValidElement as E } from "react";
|
|
5
5
|
function L(t) {
|
|
6
6
|
if (typeof document > "u") return;
|
|
7
7
|
let o = document.head || document.getElementsByTagName("head")[0], a = document.createElement("style");
|
|
@@ -9,7 +9,7 @@ function L(t) {
|
|
|
9
9
|
}
|
|
10
10
|
L(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
|
11
11
|
`);
|
|
12
|
-
var g = (t) => typeof t == "number" && !isNaN(t), c = (t) => typeof t == "string", k = (t) => typeof t == "function", U = (t) => c(t) || g(t), X = (t) =>
|
|
12
|
+
var g = (t) => typeof t == "number" && !isNaN(t), c = (t) => typeof t == "string", k = (t) => typeof t == "function", U = (t) => c(t) || g(t), X = (t) => E(t) || c(t) || k(t) || g(t), D = 1, w = () => `${D++}`, i = /* @__PURE__ */ new Map(), u = [], x = /* @__PURE__ */ new Set(), I = () => i.size > 0, R = (t, { containerId: o }) => {
|
|
13
13
|
var a;
|
|
14
14
|
return (a = i.get(o || 1)) == null ? void 0 : a.toasts.get(t);
|
|
15
15
|
};
|
|
@@ -114,7 +114,7 @@ r.onChange = B;
|
|
|
114
114
|
r.play = (t) => z(!0, t);
|
|
115
115
|
r.pause = (t) => z(!1, t);
|
|
116
116
|
const Z = () => {
|
|
117
|
-
const t =
|
|
117
|
+
const t = O(), { setAuthToken: o, setUserToken: a } = C();
|
|
118
118
|
return { FinSesion: () => {
|
|
119
119
|
r.promise(
|
|
120
120
|
new Promise(async (s, e) => {
|
|
@@ -122,7 +122,7 @@ const Z = () => {
|
|
|
122
122
|
const n = localStorage.getItem("access_token");
|
|
123
123
|
if (!n)
|
|
124
124
|
throw new Error("No se encontró el token de acceso.");
|
|
125
|
-
await
|
|
125
|
+
await S(n), localStorage.removeItem("access_token"), localStorage.removeItem("user_token"), o(null), a(null), setTimeout(() => {
|
|
126
126
|
s(!0), t("/");
|
|
127
127
|
}, 1e3);
|
|
128
128
|
} catch (n) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as a, Fragment as x, jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as o, useEffect as h } from "react";
|
|
3
|
+
import { useNavigate as z } from "react-router-dom";
|
|
3
4
|
import { j as d } from "../../index-CuHybtft.js";
|
|
4
|
-
import { useFinalizarSesion as
|
|
5
|
-
import { urlBase as
|
|
6
|
-
import { l as
|
|
5
|
+
import { useFinalizarSesion as b } from "../../auth/hooks/useFinalizarSesion.js";
|
|
6
|
+
import { urlBase as M, urlCertificadoLaboral as k } from "../../utils/Url.js";
|
|
7
|
+
import { l as B } from "../../logo_escudo_blanco-DaOI8SGq.js";
|
|
7
8
|
import { G as i } from "../../iconBase-LROS5hdG.js";
|
|
8
|
-
import { a as B } from "../../chunk-IR6S3I6Y-DDsyyqUQ.js";
|
|
9
9
|
import '../../assets/MenuLateral.css';function H(e) {
|
|
10
10
|
return i({ 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: [] }] })(e);
|
|
11
11
|
}
|
|
@@ -49,7 +49,7 @@ function E(e) {
|
|
|
49
49
|
return i({ 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: [] }] })(e);
|
|
50
50
|
}
|
|
51
51
|
const J = ({ onToggle: e, isOpen: n }) => {
|
|
52
|
-
const [m, p] = o(!0), [r, s] = o(null), v = n ? "sidebar-bar-panel open" : "sidebar-bar-panel", g =
|
|
52
|
+
const [m, p] = o(!0), [r, s] = o(null), v = n ? "sidebar-bar-panel open" : "sidebar-bar-panel", g = z(), { FinSesion: u } = b();
|
|
53
53
|
if (h(() => {
|
|
54
54
|
const l = localStorage.getItem("user_token");
|
|
55
55
|
if (l) {
|
|
@@ -76,7 +76,7 @@ const J = ({ onToggle: e, isOpen: n }) => {
|
|
|
76
76
|
/* @__PURE__ */ a(
|
|
77
77
|
"img",
|
|
78
78
|
{
|
|
79
|
-
src:
|
|
79
|
+
src: B,
|
|
80
80
|
alt: "Logo",
|
|
81
81
|
className: "icon logo-image"
|
|
82
82
|
}
|
|
@@ -172,7 +172,7 @@ const J = ({ onToggle: e, isOpen: n }) => {
|
|
|
172
172
|
/* @__PURE__ */ a("span", { className: "tooltip", children: "Solicitud de viáticos" })
|
|
173
173
|
] }),
|
|
174
174
|
/* @__PURE__ */ t("li", { children: [
|
|
175
|
-
/* @__PURE__ */ t("a", { href: `${
|
|
175
|
+
/* @__PURE__ */ t("a", { href: `${M}${k}`, target: "_blank", children: [
|
|
176
176
|
/* @__PURE__ */ a(A, { className: "bx i2" }),
|
|
177
177
|
/* @__PURE__ */ a("span", { className: "link_name", children: "Certificados laborales (OPS)" })
|
|
178
178
|
] }),
|
|
@@ -2,7 +2,7 @@ import { jsx as a } from "react/jsx-runtime";
|
|
|
2
2
|
import '../../assets/Bootstrap.css';import '../../assets/TabVentana.css';/* empty css */
|
|
3
3
|
import { P as t } from "../../index-Bk5C3cP1.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import { T as i, g as b, a as p, b as T } from "../../TabPane-
|
|
5
|
+
import { T as i, g as b, a as p, b as T } from "../../TabPane-BvUHIFlv.js";
|
|
6
6
|
const e = ({
|
|
7
7
|
transition: n,
|
|
8
8
|
...o
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import '../../assets/VentanaLienzo.css';const x = ({ children: r, items:
|
|
8
|
-
const [n,
|
|
9
|
-
return /* @__PURE__ */ o(
|
|
10
|
-
/* @__PURE__ */ e(
|
|
11
|
-
/* @__PURE__ */ e(
|
|
12
|
-
|
|
2
|
+
import s from "react";
|
|
3
|
+
import { BrowserRouter as i } from "react-router-dom";
|
|
4
|
+
import { IconosSistema as l } from "../iconos-sistema/IconosSistema.js";
|
|
5
|
+
import { BreadcrumbNav as c } from "../breadcrumb/Breadcrumb.js";
|
|
6
|
+
import { MenuLateral as p } from "../menu-lateral/MenuLateral.js";
|
|
7
|
+
import '../../assets/VentanaLienzo.css';const x = ({ children: r, items: t, extraInput: a }) => {
|
|
8
|
+
const [n, m] = s.useState(!1);
|
|
9
|
+
return /* @__PURE__ */ o(i, { children: [
|
|
10
|
+
/* @__PURE__ */ e(l, { elements: a }),
|
|
11
|
+
/* @__PURE__ */ e(p, { onToggle: () => {
|
|
12
|
+
m(!n);
|
|
13
13
|
}, isOpen: n }),
|
|
14
14
|
/* @__PURE__ */ e("div", { className: `${n ? "menu-open" : ""}`, children: /* @__PURE__ */ o("div", { className: "main-section", children: [
|
|
15
|
-
/* @__PURE__ */ e(
|
|
15
|
+
/* @__PURE__ */ e(c, { items: t }),
|
|
16
16
|
/* @__PURE__ */ e("div", { className: "ventana-lienzo-container", children: r })
|
|
17
17
|
] }) })
|
|
18
18
|
] });
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as r, jsxs as j } from "react/jsx-runtime";
|
|
2
2
|
import * as b from "react";
|
|
3
3
|
import T, { useRef as O, useContext as S, useEffect as M } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { BrowserRouter as H } from "react-router-dom";
|
|
5
|
+
import { MenuLateral as F } from "../menu-lateral/MenuLateral.js";
|
|
6
|
+
import { IconosSistema as W } from "../iconos-sistema/IconosSistema.js";
|
|
6
7
|
import '../../assets/Bootstrap.css';/* empty css */
|
|
7
|
-
import { a as
|
|
8
|
-
import { u as
|
|
8
|
+
import { a as Y, u as z, b as G, d as J, c as Q, q as X, e as D, f as B, g as Z } from "../../NotificacionUsuario-xD2pyELE.js";
|
|
9
|
+
import { u as ee, T as te, g as ne, a as ae, b as re } from "../../TabPane-BvUHIFlv.js";
|
|
9
10
|
import { u as L, c as k } from "../../ThemeProvider-CFCmmLJC.js";
|
|
10
|
-
import { S as I, T as
|
|
11
|
-
import { c as
|
|
12
|
-
import { B as le } from "../../chunk-IR6S3I6Y-DDsyyqUQ.js";
|
|
11
|
+
import { S as I, T as oe, m as se } from "../../TabContext-CdjYJzMB.js";
|
|
12
|
+
import { c as le } from "../../CardHeaderContext-DVw0yHuy.js";
|
|
13
13
|
function P(n, e) {
|
|
14
14
|
let a = 0;
|
|
15
15
|
return b.Children.map(n, (t) => /* @__PURE__ */ b.isValidElement(t) ? e(t, a++) : t);
|
|
@@ -31,7 +31,7 @@ function de(n, e) {
|
|
|
31
31
|
return a;
|
|
32
32
|
}
|
|
33
33
|
const R = () => {
|
|
34
|
-
}, A =
|
|
34
|
+
}, A = J("event-key"), V = /* @__PURE__ */ b.forwardRef((n, e) => {
|
|
35
35
|
let {
|
|
36
36
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
37
37
|
as: a = "div",
|
|
@@ -40,13 +40,13 @@ const R = () => {
|
|
|
40
40
|
role: c,
|
|
41
41
|
onKeyDown: u
|
|
42
42
|
} = n, s = de(n, ce);
|
|
43
|
-
const N =
|
|
43
|
+
const N = z(), m = O(!1), y = S(I), l = S(oe);
|
|
44
44
|
let v, x;
|
|
45
45
|
l && (c = c || "tablist", o = l.activeKey, v = l.getControlledId, x = l.getControllerId);
|
|
46
46
|
const f = O(null), p = (i) => {
|
|
47
47
|
const d = f.current;
|
|
48
48
|
if (!d) return null;
|
|
49
|
-
const K =
|
|
49
|
+
const K = X(d, `[${A}]:not([aria-disabled=true])`), E = d.querySelector("[aria-selected=true]");
|
|
50
50
|
if (!E || E !== document.activeElement) return null;
|
|
51
51
|
const w = K.indexOf(E);
|
|
52
52
|
if (w === -1) return null;
|
|
@@ -70,7 +70,7 @@ const R = () => {
|
|
|
70
70
|
default:
|
|
71
71
|
return;
|
|
72
72
|
}
|
|
73
|
-
d && (i.preventDefault(), h(d.dataset[
|
|
73
|
+
d && (i.preventDefault(), h(d.dataset[Q("EventKey")] || null, i), m.current = !0, N());
|
|
74
74
|
};
|
|
75
75
|
M(() => {
|
|
76
76
|
if (f.current && m.current) {
|
|
@@ -79,14 +79,14 @@ const R = () => {
|
|
|
79
79
|
}
|
|
80
80
|
m.current = !1;
|
|
81
81
|
});
|
|
82
|
-
const U =
|
|
82
|
+
const U = ee(e, f);
|
|
83
83
|
return /* @__PURE__ */ r(I.Provider, {
|
|
84
84
|
value: h,
|
|
85
|
-
children: /* @__PURE__ */ r(
|
|
85
|
+
children: /* @__PURE__ */ r(G.Provider, {
|
|
86
86
|
value: {
|
|
87
87
|
role: c,
|
|
88
88
|
// used by NavLink to determine it's role
|
|
89
|
-
activeKey:
|
|
89
|
+
activeKey: se(o),
|
|
90
90
|
getControlledId: v || R,
|
|
91
91
|
getControllerId: x || R
|
|
92
92
|
},
|
|
@@ -100,7 +100,7 @@ const R = () => {
|
|
|
100
100
|
});
|
|
101
101
|
V.displayName = "Nav";
|
|
102
102
|
const ue = Object.assign(V, {
|
|
103
|
-
Item:
|
|
103
|
+
Item: Y
|
|
104
104
|
}), $ = /* @__PURE__ */ b.forwardRef(({
|
|
105
105
|
className: n,
|
|
106
106
|
bsPrefix: e,
|
|
@@ -124,11 +124,11 @@ const _ = /* @__PURE__ */ b.forwardRef((n, e) => {
|
|
|
124
124
|
className: m,
|
|
125
125
|
activeKey: y,
|
|
126
126
|
...l
|
|
127
|
-
} =
|
|
127
|
+
} = B(n, {
|
|
128
128
|
activeKey: "onSelect"
|
|
129
129
|
}), v = L(t, "nav");
|
|
130
130
|
let x, f, p = !1;
|
|
131
|
-
const h = S(
|
|
131
|
+
const h = S(Z), C = S(le);
|
|
132
132
|
return h ? (x = h.bsPrefix, p = s ?? !0) : C && ({
|
|
133
133
|
cardHeaderBsPrefix: f
|
|
134
134
|
} = C), /* @__PURE__ */ r(ue, {
|
|
@@ -150,7 +150,7 @@ const _ = /* @__PURE__ */ b.forwardRef((n, e) => {
|
|
|
150
150
|
_.displayName = "Nav";
|
|
151
151
|
const fe = Object.assign(_, {
|
|
152
152
|
Item: $,
|
|
153
|
-
Link:
|
|
153
|
+
Link: D
|
|
154
154
|
});
|
|
155
155
|
function me(n) {
|
|
156
156
|
let e;
|
|
@@ -170,7 +170,7 @@ function ve(n) {
|
|
|
170
170
|
return e == null ? null : /* @__PURE__ */ r($, {
|
|
171
171
|
as: "li",
|
|
172
172
|
role: "presentation",
|
|
173
|
-
children: /* @__PURE__ */ r(
|
|
173
|
+
children: /* @__PURE__ */ r(D, {
|
|
174
174
|
as: "button",
|
|
175
175
|
type: "button",
|
|
176
176
|
eventKey: a,
|
|
@@ -193,14 +193,14 @@ const q = (n) => {
|
|
|
193
193
|
children: s,
|
|
194
194
|
activeKey: N = me(s),
|
|
195
195
|
...m
|
|
196
|
-
} =
|
|
196
|
+
} = B(n, {
|
|
197
197
|
activeKey: "onSelect"
|
|
198
198
|
});
|
|
199
|
-
return /* @__PURE__ */ j(
|
|
199
|
+
return /* @__PURE__ */ j(te, {
|
|
200
200
|
id: e,
|
|
201
201
|
activeKey: N,
|
|
202
202
|
onSelect: a,
|
|
203
|
-
transition:
|
|
203
|
+
transition: ne(t),
|
|
204
204
|
mountOnEnter: o,
|
|
205
205
|
unmountOnExit: c,
|
|
206
206
|
children: [/* @__PURE__ */ r(fe, {
|
|
@@ -210,12 +210,12 @@ const q = (n) => {
|
|
|
210
210
|
as: "ul",
|
|
211
211
|
variant: u,
|
|
212
212
|
children: P(s, ve)
|
|
213
|
-
}), /* @__PURE__ */ r(
|
|
213
|
+
}), /* @__PURE__ */ r(ae, {
|
|
214
214
|
children: P(s, (y) => {
|
|
215
215
|
const l = {
|
|
216
216
|
...y.props
|
|
217
217
|
};
|
|
218
|
-
return delete l.title, delete l.disabled, delete l.tabClassName, delete l.tabAttrs, /* @__PURE__ */ r(
|
|
218
|
+
return delete l.title, delete l.disabled, delete l.tabClassName, delete l.tabAttrs, /* @__PURE__ */ r(re, {
|
|
219
219
|
...l
|
|
220
220
|
});
|
|
221
221
|
})
|
|
@@ -225,9 +225,9 @@ const q = (n) => {
|
|
|
225
225
|
q.displayName = "Tabs";
|
|
226
226
|
const Ee = ({ children: n, extraInput: e }) => {
|
|
227
227
|
const [a, t] = T.useState(!1), [o, c] = T.useState(void 0);
|
|
228
|
-
return /* @__PURE__ */ j(
|
|
229
|
-
/* @__PURE__ */ r(
|
|
230
|
-
/* @__PURE__ */ r(
|
|
228
|
+
return /* @__PURE__ */ j(H, { children: [
|
|
229
|
+
/* @__PURE__ */ r(W, { elements: e }),
|
|
230
|
+
/* @__PURE__ */ r(F, { onToggle: () => {
|
|
231
231
|
t(!a);
|
|
232
232
|
}, isOpen: a }),
|
|
233
233
|
/* @__PURE__ */ r("div", { className: `${a ? "menu-open" : ""}`, children: /* @__PURE__ */ r("div", { className: "main-section", children: /* @__PURE__ */ r(
|
|
@@ -6,10 +6,11 @@ import '../../../assets/IconoTooltip.css';import '../../../assets/ItemsModal.css
|
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
import "../../../ui/logo/Logo.js";
|
|
9
|
+
import "react-router-dom";
|
|
9
10
|
/* empty css */
|
|
10
11
|
/* empty css */
|
|
11
12
|
import { BusquedaInput as e } from "../buscador/Buscador.js";
|
|
12
|
-
const
|
|
13
|
+
const E = ({
|
|
13
14
|
title: m,
|
|
14
15
|
subtitle: t,
|
|
15
16
|
data: p,
|
|
@@ -23,5 +24,5 @@ const z = ({
|
|
|
23
24
|
] })
|
|
24
25
|
] });
|
|
25
26
|
export {
|
|
26
|
-
|
|
27
|
+
E as EncabezadoTabla
|
|
27
28
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as o, jsxs as t } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useNavigate as d } from "react-router-dom";
|
|
3
|
+
import { h as s, i as n } from "../../index-D_9gBL0I.js";
|
|
4
|
+
import { G as c } from "../../iconBase-LROS5hdG.js";
|
|
4
5
|
import '../../assets/ItemsModal.css';/* empty css */
|
|
5
|
-
import { a as c } from "../../chunk-IR6S3I6Y-DDsyyqUQ.js";
|
|
6
6
|
function m(l) {
|
|
7
|
-
return
|
|
7
|
+
return c({ tag: "svg", attr: { viewBox: "0 0 32 32" }, child: [{ tag: "path", attr: { d: "M 15 4 L 15 20.5625 L 9.71875 15.28125 L 8.28125 16.71875 L 15.28125 23.71875 L 16 24.40625 L 16.71875 23.71875 L 23.71875 16.71875 L 22.28125 15.28125 L 17 20.5625 L 17 4 Z M 7 26 L 7 28 L 25 28 L 25 26 Z" }, child: [] }] })(l);
|
|
8
8
|
}
|
|
9
9
|
const N = ({ sections: l }) => {
|
|
10
|
-
const e =
|
|
10
|
+
const e = d();
|
|
11
11
|
return /* @__PURE__ */ o("div", { className: "listado-tarjetas", children: l.map((a, r) => /* @__PURE__ */ t("div", { className: "tarjeta-listado-row", children: [
|
|
12
12
|
/* @__PURE__ */ t(
|
|
13
13
|
"div",
|
|
@@ -19,7 +19,7 @@ const N = ({ sections: l }) => {
|
|
|
19
19
|
/* @__PURE__ */ o(a.icon, { className: "tarjeta-listado-process-menu" }),
|
|
20
20
|
/* @__PURE__ */ o("span", { children: a.label })
|
|
21
21
|
] }),
|
|
22
|
-
"closed" in a && /* @__PURE__ */ o("div", { className: "tarjeta-listado-state-container", children: a.closed ? /* @__PURE__ */ o(
|
|
22
|
+
"closed" in a && /* @__PURE__ */ o("div", { className: "tarjeta-listado-state-container", children: a.closed ? /* @__PURE__ */ o(s, { style: { color: "#3AB34A" } }) : /* @__PURE__ */ o(n, { style: { color: "#E2E2E2" } }) })
|
|
23
23
|
]
|
|
24
24
|
}
|
|
25
25
|
),
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useLocation as d, Navigate as r, Outlet as p } from "react-router-dom";
|
|
2
3
|
import { useAuthId as f } from "../../auth/hooks/AuthHook.js";
|
|
3
|
-
import { j as
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
import { j as h } from "../../index-CuHybtft.js";
|
|
5
|
+
const T = () => {
|
|
6
|
+
const { authToken: s, userToken: n } = f(), i = d(), a = n || localStorage.getItem("user_token");
|
|
7
|
+
if (!(s || localStorage.getItem("access_token")) || !a)
|
|
8
|
+
return /* @__PURE__ */ e(r, { to: "/", replace: !0 });
|
|
9
|
+
let c;
|
|
9
10
|
try {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} catch (c) {
|
|
14
|
-
return console.error("Error decoding token:", c), /* @__PURE__ */ t(r, { to: "/", replace: !0 });
|
|
11
|
+
c = h(a);
|
|
12
|
+
} catch (t) {
|
|
13
|
+
return console.error("Error decoding token:", t), /* @__PURE__ */ e(r, { to: "/", replace: !0 });
|
|
15
14
|
}
|
|
16
|
-
|
|
15
|
+
const u = c.access_url, o = i.pathname, l = u.map(
|
|
16
|
+
(t) => t.startsWith("/") ? t : `/${t}`
|
|
17
|
+
), m = o.startsWith("/") ? o : `/${o}`;
|
|
18
|
+
return l.includes(m) ? /* @__PURE__ */ e(p, {}) : /* @__PURE__ */ e(r, { to: "/sistema/pagina-no-permitida", replace: !0 });
|
|
17
19
|
};
|
|
18
20
|
export {
|
|
19
|
-
|
|
21
|
+
T as ProtectedRoute
|
|
20
22
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as t
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Navigate as a, Outlet as n } from "react-router-dom";
|
|
2
3
|
import { useAuthId as s } from "../../auth/hooks/AuthHook.js";
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
return !(o || localStorage.getItem("access_token")) || !a ? /* @__PURE__ */ t(m, { to: "/sistema/pagina-no-permitida", replace: !0 }) : /* @__PURE__ */ t(n, { children: e });
|
|
4
|
+
const p = () => {
|
|
5
|
+
const { authToken: e, userToken: o } = s(), r = o || localStorage.getItem("user_token");
|
|
6
|
+
return !(e || localStorage.getItem("access_token")) || !r ? /* @__PURE__ */ t(a, { to: "/sistema/pagina-no-permitida", replace: !0 }) : /* @__PURE__ */ t(n, {});
|
|
7
7
|
};
|
|
8
8
|
export {
|
|
9
9
|
p as UserRoute
|
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": "0.9.
|
|
5
|
+
"version": "0.9.15",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
@@ -57,7 +57,8 @@
|
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"react": ">=18.0.0 <=20.0.0",
|
|
60
|
-
"react-dom": ">=18.0.0 <=20.0.0"
|
|
60
|
+
"react-dom": ">=18.0.0 <=20.0.0",
|
|
61
|
+
"react-router-dom": ">=6.0.0 <=8.0.0"
|
|
61
62
|
},
|
|
62
63
|
"dependencies": {
|
|
63
64
|
"bootstrap": "^5.3.3",
|
|
@@ -65,7 +66,6 @@
|
|
|
65
66
|
"lottie-react": "^2.4.1",
|
|
66
67
|
"react-bootstrap": "^2.10.9",
|
|
67
68
|
"react-icons": "^5.4.0",
|
|
68
|
-
"react-router-dom": "^7.1.5",
|
|
69
69
|
"react-toastify": "^11.0.3",
|
|
70
70
|
"sweetalert2": "^11.16.1"
|
|
71
71
|
},
|