react-ecosistema-unp 0.8.1 → 0.8.15-react-19
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/Anchor-D8f6vg0T.js +40 -0
- package/dist/Bootstrap-Bjgu14O1.js +1136 -0
- package/dist/Button-DD8y8HBa.js +78 -0
- package/dist/Button-t4PJaubx.js +33 -0
- package/dist/{NotificacionUsuario-DRuxRQ6q.js → NotificacionUsuario-BQ655oML.js} +370 -400
- package/dist/TabContext-CdjYJzMB.js +125 -0
- package/dist/accessibility/barra-accesibilidad/BarraAccesibilidad.js +13 -13
- package/dist/assets/BarraAccesibilidad.css +1 -1
- package/dist/assets/Breadcrumb.css +1 -0
- package/dist/assets/TabVentana.css +1 -1
- package/dist/auth/hooks/useFinalizarSesion.js +7 -7
- package/dist/lib/shared/breadcrumb/Breadcrumb.d.ts +11 -0
- package/dist/shared/breadcrumb/Breadcrumb.js +69 -0
- package/dist/shared/menu-lateral/MenuLateral.js +7 -7
- package/dist/shared/notificacion-usuario/NotificacionUsuario.js +1 -1
- package/dist/shared/ventana-lienzo/VentanaLienzo.js +18 -12
- package/dist/shared/ventana-tabs/TabVentana.js +1 -1
- package/dist/shared/ventana-tabs/VentanaTabs.js +22 -22
- package/dist/ui/paginador/Paginador.js +1 -1
- package/dist/ui/tarjeta/Tarjeta.js +1 -1
- package/dist/ui/tarjeta/tarjeta-agregar/TarjetaAgregar.js +1 -1
- package/dist/ui/tarjeta-lectura/TarjetaLectura.js +1 -1
- package/dist/ui/tarjeta-listado/TarjetaListado.js +6 -6
- package/dist/useEventCallback-Bfo0-hwZ.js +16 -0
- package/dist/utils/components/ProtectedRoute.js +6 -6
- package/dist/utils/components/UserRoute.js +4 -4
- package/package.json +13 -15
- package/dist/Bootstrap-alDYHlwa.js +0 -19871
- package/dist/Button-Gn1tKaoW.js +0 -106
- package/dist/TabContext-BvNFEruk.js +0 -138
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.breadcrumb-container{z-index:1000;margin-top:0;margin-left:78px;padding:10px 20px;background-color:#f8f9fa;height:3.438rem}.breadcrumb-container a{text-decoration:none;color:#303d50;font-weight:500;font-size:14px;transition:color .3s ease}.breadcrumb-container a:hover{color:#0056b3}.breadcrumb-container span{margin:0;color:#6c757d;font-size:14px}ol.breadcrumb{margin:0!important}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nav{background:#f8f9fa;padding-top:.
|
|
1
|
+
.nav{background:#f8f9fa;padding-top:.66rem}.nav-tabs{padding-left:.66rem;padding-right:1.75rem;--bs-nav-tabs-link-active-color: #074470;--bs-nav-tabs-link-active-bg: #ffffff;--bs-nav-tabs-link-hover-border-color: #c3c3c3;--bs-nav-link-color: #697580;--bs-nav-link-hover-color: #344754}.nav-item{font-weight:500}.nav-link{padding:.55rem 1.75rem .66rem;--bs-nav-tabs-border-radius: 10px}.tab-content{padding:.5rem;height:calc(100vh - 3.813rem);overflow-y:auto}.tab-content::-webkit-scrollbar{width:12px}.tab-content::-webkit-scrollbar-track{background:transparent}.tab-content::-webkit-scrollbar-thumb{background-color:#303d50;border-radius:20px;border:3px solid transparent;background-clip:padding-box}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { useAuthId as O } from "./AuthHook.js";
|
|
2
|
+
import { FinSesionService as C } from "../services/FinSesionService.js";
|
|
3
|
+
import { isValidElement as S } from "react";
|
|
4
|
+
import { a as E } from "../../chunk-IR6S3I6Y-Dvzk3EbC.js";
|
|
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) => S(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 = E(), { setAuthToken: o, setUserToken: a } = O();
|
|
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 C(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) {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
interface BreadcrumbItem {
|
|
3
|
+
label: string;
|
|
4
|
+
link?: string;
|
|
5
|
+
}
|
|
6
|
+
interface BreadcrumbNavProps {
|
|
7
|
+
items: BreadcrumbItem[];
|
|
8
|
+
rightComponent?: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare const BreadcrumbNav: React.FC<BreadcrumbNavProps>;
|
|
11
|
+
export default BreadcrumbNav;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { jsx as e, jsxs as v } from "react/jsx-runtime";
|
|
2
|
+
import { u as b, c as u } from "../../ThemeProvider-DwZMEupk.js";
|
|
3
|
+
import * as o from "react";
|
|
4
|
+
import { A as I } from "../../Anchor-D8f6vg0T.js";
|
|
5
|
+
import '../../assets/Breadcrumb.css';const f = /* @__PURE__ */ o.forwardRef(({
|
|
6
|
+
bsPrefix: c,
|
|
7
|
+
active: a = !1,
|
|
8
|
+
children: r,
|
|
9
|
+
className: s,
|
|
10
|
+
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
11
|
+
as: m = "li",
|
|
12
|
+
linkAs: d = I,
|
|
13
|
+
linkProps: l = {},
|
|
14
|
+
href: n,
|
|
15
|
+
title: i,
|
|
16
|
+
target: N,
|
|
17
|
+
...h
|
|
18
|
+
}, B) => {
|
|
19
|
+
const x = b(c, "breadcrumb-item");
|
|
20
|
+
return /* @__PURE__ */ e(m, {
|
|
21
|
+
ref: B,
|
|
22
|
+
...h,
|
|
23
|
+
className: u(x, s, {
|
|
24
|
+
active: a
|
|
25
|
+
}),
|
|
26
|
+
"aria-current": a ? "page" : void 0,
|
|
27
|
+
children: a ? r : /* @__PURE__ */ e(d, {
|
|
28
|
+
...l,
|
|
29
|
+
href: n,
|
|
30
|
+
title: i,
|
|
31
|
+
target: N,
|
|
32
|
+
children: r
|
|
33
|
+
})
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
f.displayName = "BreadcrumbItem";
|
|
37
|
+
const p = /* @__PURE__ */ o.forwardRef(({
|
|
38
|
+
bsPrefix: c,
|
|
39
|
+
className: a,
|
|
40
|
+
listProps: r = {},
|
|
41
|
+
children: s,
|
|
42
|
+
label: m = "breadcrumb",
|
|
43
|
+
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
44
|
+
as: d = "nav",
|
|
45
|
+
...l
|
|
46
|
+
}, n) => {
|
|
47
|
+
const i = b(c, "breadcrumb");
|
|
48
|
+
return /* @__PURE__ */ e(d, {
|
|
49
|
+
"aria-label": m,
|
|
50
|
+
className: a,
|
|
51
|
+
ref: n,
|
|
52
|
+
...l,
|
|
53
|
+
children: /* @__PURE__ */ e("ol", {
|
|
54
|
+
...r,
|
|
55
|
+
className: u(i, r == null ? void 0 : r.className),
|
|
56
|
+
children: s
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
p.displayName = "Breadcrumb";
|
|
61
|
+
const t = Object.assign(p, {
|
|
62
|
+
Item: f
|
|
63
|
+
}), w = ({ items: c, rightComponent: a }) => /* @__PURE__ */ e("div", { className: "breadcrumb-container", children: /* @__PURE__ */ v("div", { className: "breadcrumb-wrapper", children: [
|
|
64
|
+
/* @__PURE__ */ e(t, { className: "mb-0", children: c.map((r, s) => /* @__PURE__ */ e(t.Item, { href: r.link, active: !r.link, children: r.label }, s)) }),
|
|
65
|
+
/* @__PURE__ */ e("div", { className: "mb-0", children: a })
|
|
66
|
+
] }) });
|
|
67
|
+
export {
|
|
68
|
+
w as default
|
|
69
|
+
};
|
|
@@ -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 { a as z } from "../../chunk-IR6S3I6Y-Dvzk3EbC.js";
|
|
4
3
|
import { j as d } from "../../index-CuHybtft.js";
|
|
5
|
-
import { useFinalizarSesion as
|
|
6
|
-
import { urlBase as
|
|
7
|
-
import { l as
|
|
4
|
+
import { useFinalizarSesion as z } from "../../auth/hooks/useFinalizarSesion.js";
|
|
5
|
+
import { urlBase as b, urlCertificadoLaboral as M } from "../../utils/Url.js";
|
|
6
|
+
import { l as k } from "../../logo_escudo_blanco-DaOI8SGq.js";
|
|
8
7
|
import { G as i } from "../../iconBase-LROS5hdG.js";
|
|
8
|
+
import { a as B } from "../../chunk-IR6S3I6Y-Dvzk3EbC.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 = B(), { FinSesion: u } = z();
|
|
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: k,
|
|
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: `${b}${M}`, 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
|
] }),
|
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { MenuLateral as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import t from "react";
|
|
3
|
+
import s from "../breadcrumb/Breadcrumb.js";
|
|
4
|
+
import { MenuLateral as l } from "../menu-lateral/MenuLateral.js";
|
|
5
|
+
import { B as i } from "../../chunk-IR6S3I6Y-Dvzk3EbC.js";
|
|
6
|
+
const g = ({ children: n }) => {
|
|
7
|
+
const [a, r] = t.useState(!1);
|
|
8
|
+
return /* @__PURE__ */ o(i, { children: [
|
|
9
|
+
/* @__PURE__ */ e(s, { items: [
|
|
10
|
+
{ label: "Inicio", link: "/" },
|
|
11
|
+
{ label: "Órdenes de Trabajo", link: "/analistaCalidad/OrdenesTrabajo" },
|
|
12
|
+
{ label: "Entrevista" }
|
|
13
|
+
] }),
|
|
14
|
+
/* @__PURE__ */ e(l, { onToggle: () => {
|
|
15
|
+
r(!a);
|
|
16
|
+
}, isOpen: a }),
|
|
17
|
+
/* @__PURE__ */ e("div", { className: `${a ? "menu-open" : ""}`, children: /* @__PURE__ */ e("div", { className: "main-section", style: { padding: "0.5rem" }, children: n }) })
|
|
12
18
|
] });
|
|
13
19
|
};
|
|
14
20
|
export {
|
|
15
|
-
|
|
21
|
+
g as VentanaLienzo
|
|
16
22
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { T as i, g as b, a as p, b as T } from "../../Bootstrap-
|
|
2
|
+
import { T as i, g as b, a as p, b as T } from "../../Bootstrap-Bjgu14O1.js";
|
|
3
3
|
import { P as t } from "../../index-B-HWDQSx.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import '../../assets/TabVentana.css';const o = ({
|
|
@@ -1,13 +1,13 @@
|
|
|
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 E, useEffect as M } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { u as ee, T as te, g as ne, a as ae, b as re } from "../../Bootstrap-alDYHlwa.js";
|
|
4
|
+
import { MenuLateral as H } from "../menu-lateral/MenuLateral.js";
|
|
5
|
+
import { N as F, u as W, a as Y, d as z, b as G, q as J, c as B, e as D, f as Q, g as X } from "../../NotificacionUsuario-BQ655oML.js";
|
|
6
|
+
import { u as Z, T as ee, g as te, a as ne, b as ae } from "../../Bootstrap-Bjgu14O1.js";
|
|
8
7
|
import { u as L, c as k } from "../../ThemeProvider-DwZMEupk.js";
|
|
9
|
-
import { S as P, T as
|
|
10
|
-
import { c as
|
|
8
|
+
import { S as P, T as re, m as se } from "../../TabContext-CdjYJzMB.js";
|
|
9
|
+
import { c as oe } from "../../CardHeaderContext-DVw0yHuy.js";
|
|
10
|
+
import { B as le } from "../../chunk-IR6S3I6Y-Dvzk3EbC.js";
|
|
11
11
|
function R(n, e) {
|
|
12
12
|
let a = 0;
|
|
13
13
|
return b.Children.map(n, (t) => /* @__PURE__ */ b.isValidElement(t) ? e(t, a++) : t);
|
|
@@ -29,7 +29,7 @@ function de(n, e) {
|
|
|
29
29
|
return a;
|
|
30
30
|
}
|
|
31
31
|
const A = () => {
|
|
32
|
-
}, I =
|
|
32
|
+
}, I = z("event-key"), U = /* @__PURE__ */ b.forwardRef((n, e) => {
|
|
33
33
|
let {
|
|
34
34
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
35
35
|
as: a = "div",
|
|
@@ -38,13 +38,13 @@ const A = () => {
|
|
|
38
38
|
role: c,
|
|
39
39
|
onKeyDown: o
|
|
40
40
|
} = n, u = de(n, ce);
|
|
41
|
-
const x =
|
|
41
|
+
const x = W(), m = O(!1), y = E(P), l = E(re);
|
|
42
42
|
let v, N;
|
|
43
43
|
l && (c = c || "tablist", s = l.activeKey, v = l.getControlledId, N = l.getControllerId);
|
|
44
44
|
const f = O(null), p = (i) => {
|
|
45
45
|
const d = f.current;
|
|
46
46
|
if (!d) return null;
|
|
47
|
-
const K =
|
|
47
|
+
const K = J(d, `[${I}]:not([aria-disabled=true])`), S = d.querySelector("[aria-selected=true]");
|
|
48
48
|
if (!S || S !== document.activeElement) return null;
|
|
49
49
|
const w = K.indexOf(S);
|
|
50
50
|
if (w === -1) return null;
|
|
@@ -68,7 +68,7 @@ const A = () => {
|
|
|
68
68
|
default:
|
|
69
69
|
return;
|
|
70
70
|
}
|
|
71
|
-
d && (i.preventDefault(), h(d.dataset[
|
|
71
|
+
d && (i.preventDefault(), h(d.dataset[G("EventKey")] || null, i), m.current = !0, x());
|
|
72
72
|
};
|
|
73
73
|
M(() => {
|
|
74
74
|
if (f.current && m.current) {
|
|
@@ -77,14 +77,14 @@ const A = () => {
|
|
|
77
77
|
}
|
|
78
78
|
m.current = !1;
|
|
79
79
|
});
|
|
80
|
-
const q =
|
|
80
|
+
const q = Z(e, f);
|
|
81
81
|
return /* @__PURE__ */ r(P.Provider, {
|
|
82
82
|
value: h,
|
|
83
|
-
children: /* @__PURE__ */ r(
|
|
83
|
+
children: /* @__PURE__ */ r(Y.Provider, {
|
|
84
84
|
value: {
|
|
85
85
|
role: c,
|
|
86
86
|
// used by NavLink to determine it's role
|
|
87
|
-
activeKey:
|
|
87
|
+
activeKey: se(s),
|
|
88
88
|
getControlledId: v || A,
|
|
89
89
|
getControllerId: N || A
|
|
90
90
|
},
|
|
@@ -98,7 +98,7 @@ const A = () => {
|
|
|
98
98
|
});
|
|
99
99
|
U.displayName = "Nav";
|
|
100
100
|
const ue = Object.assign(U, {
|
|
101
|
-
Item:
|
|
101
|
+
Item: F
|
|
102
102
|
}), $ = /* @__PURE__ */ b.forwardRef(({
|
|
103
103
|
className: n,
|
|
104
104
|
bsPrefix: e,
|
|
@@ -126,7 +126,7 @@ const V = /* @__PURE__ */ b.forwardRef((n, e) => {
|
|
|
126
126
|
activeKey: "onSelect"
|
|
127
127
|
}), v = L(t, "nav");
|
|
128
128
|
let N, f, p = !1;
|
|
129
|
-
const h = E(
|
|
129
|
+
const h = E(Q), C = E(oe);
|
|
130
130
|
return h ? (N = h.bsPrefix, p = u ?? !0) : C && ({
|
|
131
131
|
cardHeaderBsPrefix: f
|
|
132
132
|
} = C), /* @__PURE__ */ r(ue, {
|
|
@@ -194,11 +194,11 @@ const _ = (n) => {
|
|
|
194
194
|
} = D(n, {
|
|
195
195
|
activeKey: "onSelect"
|
|
196
196
|
});
|
|
197
|
-
return /* @__PURE__ */ j(
|
|
197
|
+
return /* @__PURE__ */ j(ee, {
|
|
198
198
|
id: e,
|
|
199
199
|
activeKey: x,
|
|
200
200
|
onSelect: a,
|
|
201
|
-
transition:
|
|
201
|
+
transition: te(t),
|
|
202
202
|
mountOnEnter: s,
|
|
203
203
|
unmountOnExit: c,
|
|
204
204
|
children: [/* @__PURE__ */ r(fe, {
|
|
@@ -208,12 +208,12 @@ const _ = (n) => {
|
|
|
208
208
|
as: "ul",
|
|
209
209
|
variant: o,
|
|
210
210
|
children: R(u, ve)
|
|
211
|
-
}), /* @__PURE__ */ r(
|
|
211
|
+
}), /* @__PURE__ */ r(ne, {
|
|
212
212
|
children: R(u, (y) => {
|
|
213
213
|
const l = {
|
|
214
214
|
...y.props
|
|
215
215
|
};
|
|
216
|
-
return delete l.title, delete l.disabled, delete l.tabClassName, delete l.tabAttrs, /* @__PURE__ */ r(
|
|
216
|
+
return delete l.title, delete l.disabled, delete l.tabClassName, delete l.tabAttrs, /* @__PURE__ */ r(ae, {
|
|
217
217
|
...l
|
|
218
218
|
});
|
|
219
219
|
})
|
|
@@ -223,9 +223,9 @@ const _ = (n) => {
|
|
|
223
223
|
_.displayName = "Tabs";
|
|
224
224
|
const Te = ({ children: n }) => {
|
|
225
225
|
const [e, a] = T.useState(!1), [t, s] = T.useState(void 0);
|
|
226
|
-
return /* @__PURE__ */ j(
|
|
227
|
-
/* @__PURE__ */ r(
|
|
228
|
-
/* @__PURE__ */ r(
|
|
226
|
+
return /* @__PURE__ */ j(le, { children: [
|
|
227
|
+
/* @__PURE__ */ r(X, {}),
|
|
228
|
+
/* @__PURE__ */ r(H, { onToggle: () => {
|
|
229
229
|
a(!e);
|
|
230
230
|
}, isOpen: e }),
|
|
231
231
|
/* @__PURE__ */ r("div", { className: `${e ? "menu-open" : ""}`, children: /* @__PURE__ */ r("div", { className: "main-section", children: /* @__PURE__ */ r(
|
|
@@ -2,7 +2,7 @@ import { jsxs as t, Fragment as m, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as u, useRef as f, useEffect as h } from "react";
|
|
3
3
|
import '../../assets/Paginador.css';/* empty css */
|
|
4
4
|
import { C as p } from "../../Card-aTqC9rSK.js";
|
|
5
|
-
import { B as c } from "../../Button-
|
|
5
|
+
import { B as c } from "../../Button-t4PJaubx.js";
|
|
6
6
|
const N = ({ stepContent: a, onSubmit: d, canJump: s = !0 }) => {
|
|
7
7
|
const [r, l] = u(0), n = f(null);
|
|
8
8
|
return h(() => {
|
|
@@ -5,7 +5,7 @@ import { C as N, a as g } from "../../Card-aTqC9rSK.js";
|
|
|
5
5
|
import { C as w } from "../../CardBody-B9vvCH8g.js";
|
|
6
6
|
import { u as C, a as E, b as T, c as $ } from "../../ThemeProvider-DwZMEupk.js";
|
|
7
7
|
import * as v from "react";
|
|
8
|
-
import { B as p } from "../../Button-
|
|
8
|
+
import { B as p } from "../../Button-t4PJaubx.js";
|
|
9
9
|
const d = /* @__PURE__ */ v.forwardRef(({
|
|
10
10
|
bsPrefix: c,
|
|
11
11
|
className: r,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { b as a } from "../../../index-PYPwtOs4.js";
|
|
3
|
-
import { B as s } from "../../../Button-
|
|
3
|
+
import { B as s } from "../../../Button-t4PJaubx.js";
|
|
4
4
|
const d = {
|
|
5
5
|
fontColor: "#303d50s",
|
|
6
6
|
fontSize: "1.1rem",
|
|
@@ -3,7 +3,7 @@ import { useState as f, useRef as p, useEffect as v } from "react";
|
|
|
3
3
|
import '../../assets/TarjetaLectura.css';/* empty css */
|
|
4
4
|
import { Logo as y } from "../logo/Logo.js";
|
|
5
5
|
import { SeccionTarjetaLectura as _ } from "./seccion-tarjeta-lectura/SeccionTarjetaLectura.js";
|
|
6
|
-
import { B as d } from "../../Button-
|
|
6
|
+
import { B as d } from "../../Button-t4PJaubx.js";
|
|
7
7
|
const k = ({ title: h, subtitle: m, headerContent: u, stepContent: n, children: o }) => {
|
|
8
8
|
const [r, c] = f(0), l = p(null);
|
|
9
9
|
return v(() => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as a, jsxs as l } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { G as c } from "../../iconBase-LROS5hdG.js";
|
|
2
|
+
import { d as s, e as d } from "../../index-PYPwtOs4.js";
|
|
3
|
+
import { G as n } from "../../iconBase-LROS5hdG.js";
|
|
5
4
|
import '../../assets/TarjetaListado.css';/* empty css */
|
|
5
|
+
import { a as c } from "../../chunk-IR6S3I6Y-Dvzk3EbC.js";
|
|
6
6
|
function m(o) {
|
|
7
|
-
return
|
|
7
|
+
return n({ 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: [] }] })(o);
|
|
8
8
|
}
|
|
9
9
|
const N = ({ sections: o }) => {
|
|
10
|
-
const e =
|
|
10
|
+
const e = c();
|
|
11
11
|
return /* @__PURE__ */ a("div", { className: "listado-tarjetas", children: o.map((t, r) => /* @__PURE__ */ l("div", { className: "tarjeta-listado-row", children: [
|
|
12
12
|
/* @__PURE__ */ l(
|
|
13
13
|
"div",
|
|
@@ -19,7 +19,7 @@ const N = ({ sections: o }) => {
|
|
|
19
19
|
/* @__PURE__ */ a(t.icon, { className: "tarjeta-listado-process-menu" }),
|
|
20
20
|
/* @__PURE__ */ a("span", { children: t.label })
|
|
21
21
|
] }),
|
|
22
|
-
"closed" in t && /* @__PURE__ */ a("div", { className: "tarjeta-listado-state-container", children: t.closed ? /* @__PURE__ */ a(
|
|
22
|
+
"closed" in t && /* @__PURE__ */ a("div", { className: "tarjeta-listado-state-container", children: t.closed ? /* @__PURE__ */ a(s, { style: { color: "#3AB34A" } }) : /* @__PURE__ */ a(d, { style: { color: "#E2E2E2" } }) })
|
|
23
23
|
]
|
|
24
24
|
}
|
|
25
25
|
),
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useRef as n, useEffect as u, useCallback as c } from "react";
|
|
2
|
+
function f(r) {
|
|
3
|
+
const e = n(r);
|
|
4
|
+
return u(() => {
|
|
5
|
+
e.current = r;
|
|
6
|
+
}, [r]), e;
|
|
7
|
+
}
|
|
8
|
+
function s(r) {
|
|
9
|
+
const e = f(r);
|
|
10
|
+
return c(function(...t) {
|
|
11
|
+
return e.current && e.current(...t);
|
|
12
|
+
}, [e]);
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
s as u
|
|
16
|
+
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { useAuthId as d } from "../../auth/hooks/AuthHook.js";
|
|
3
|
+
import { j as p } from "../../index-CuHybtft.js";
|
|
4
|
+
import { u as f, N as r, O as h } from "../../chunk-IR6S3I6Y-Dvzk3EbC.js";
|
|
5
5
|
const T = () => {
|
|
6
|
-
const { authToken: c, userToken: n } =
|
|
6
|
+
const { authToken: c, userToken: n } = d(), i = f(), a = n || localStorage.getItem("user_token");
|
|
7
7
|
if (!(c || localStorage.getItem("access_token")) || !a)
|
|
8
8
|
return /* @__PURE__ */ e(r, { to: "/", replace: !0 });
|
|
9
9
|
let s;
|
|
10
10
|
try {
|
|
11
|
-
s =
|
|
11
|
+
s = p(a);
|
|
12
12
|
} catch (t) {
|
|
13
13
|
return console.error("Error decoding token:", t), /* @__PURE__ */ e(r, { to: "/", replace: !0 });
|
|
14
14
|
}
|
|
15
15
|
const u = s.access_url, o = i.pathname, l = u.map(
|
|
16
16
|
(t) => t.startsWith("/") ? t : `/${t}`
|
|
17
17
|
), m = o.startsWith("/") ? o : `/${o}`;
|
|
18
|
-
return l.includes(m) ? /* @__PURE__ */ e(
|
|
18
|
+
return l.includes(m) ? /* @__PURE__ */ e(h, {}) : /* @__PURE__ */ e(r, { to: "/sistema/pagina-no-permitida", replace: !0 });
|
|
19
19
|
};
|
|
20
20
|
export {
|
|
21
21
|
T as ProtectedRoute
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useAuthId as a } from "../../auth/hooks/AuthHook.js";
|
|
3
|
+
import { N as s, O as n } from "../../chunk-IR6S3I6Y-Dvzk3EbC.js";
|
|
4
4
|
const p = () => {
|
|
5
|
-
const { authToken: e, userToken: o } =
|
|
6
|
-
return !(e || localStorage.getItem("access_token")) || !r ? /* @__PURE__ */ t(
|
|
5
|
+
const { authToken: e, userToken: o } = a(), r = o || localStorage.getItem("user_token");
|
|
6
|
+
return !(e || localStorage.getItem("access_token")) || !r ? /* @__PURE__ */ t(s, { 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.8.
|
|
5
|
+
"version": "0.8.15-react-19",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
@@ -52,30 +52,28 @@
|
|
|
52
52
|
"deploy:storybook": "gh-pages -d .storybook-build -b gh-pages -t"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"react": "
|
|
56
|
-
"react-dom": "
|
|
55
|
+
"react": "19.0.0",
|
|
56
|
+
"react-dom": "19.0.0"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"bootstrap": "^5.3.3",
|
|
60
60
|
"jwt-decode": "^4.0.0",
|
|
61
61
|
"lottie-react": "^2.4.1",
|
|
62
|
-
"react": "^18.3.1",
|
|
63
62
|
"react-bootstrap": "^2.10.9",
|
|
64
|
-
"react-dom": "^18.3.1",
|
|
65
63
|
"react-icons": "^5.4.0",
|
|
66
|
-
"react-router": "^7.1.5",
|
|
64
|
+
"react-router-dom": "^7.1.5",
|
|
67
65
|
"react-toastify": "^11.0.3"
|
|
68
66
|
},
|
|
69
67
|
"devDependencies": {
|
|
70
68
|
"@chromatic-com/storybook": "^3.2.4",
|
|
71
69
|
"@eslint/js": "^9.17.0",
|
|
72
|
-
"@storybook/addon-essentials": "^8.5.
|
|
73
|
-
"@storybook/addon-interactions": "^8.5.
|
|
74
|
-
"@storybook/addon-onboarding": "^8.5.
|
|
75
|
-
"@storybook/blocks": "^8.5.
|
|
76
|
-
"@storybook/react": "^8.5.
|
|
77
|
-
"@storybook/react-vite": "^8.5.
|
|
78
|
-
"@storybook/test": "^8.5.
|
|
70
|
+
"@storybook/addon-essentials": "^8.5.5",
|
|
71
|
+
"@storybook/addon-interactions": "^8.5.5",
|
|
72
|
+
"@storybook/addon-onboarding": "^8.5.5",
|
|
73
|
+
"@storybook/blocks": "^8.5.5",
|
|
74
|
+
"@storybook/react": "^8.5.5",
|
|
75
|
+
"@storybook/react-vite": "^8.5.5",
|
|
76
|
+
"@storybook/test": "^8.5.5",
|
|
79
77
|
"@types/node": "^22.10.10",
|
|
80
78
|
"@types/react": "^18.3.18",
|
|
81
79
|
"@types/react-dom": "^18.3.5",
|
|
@@ -87,10 +85,10 @@
|
|
|
87
85
|
"gh-pages": "^6.3.0",
|
|
88
86
|
"glob": "^11.0.1",
|
|
89
87
|
"globals": "^15.14.0",
|
|
90
|
-
"storybook": "^8.5.
|
|
88
|
+
"storybook": "^8.5.5",
|
|
91
89
|
"typescript": "~5.6.2",
|
|
92
90
|
"typescript-eslint": "^8.18.2",
|
|
93
|
-
"vite": "^6.0
|
|
91
|
+
"vite": "^6.1.0",
|
|
94
92
|
"vite-plugin-dts": "^4.5.0",
|
|
95
93
|
"vite-plugin-lib-inject-css": "^2.2.1"
|
|
96
94
|
},
|