react-ecosistema-unp 1.11.2 → 1.12.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/assets/Trazabilidad.css +1 -0
- package/dist/cards/tarjeta/nuevo-elemento/NuevoElemento.js +1 -1
- package/dist/cards/tarjeta-info/TarjetaInfo.js +4 -4
- package/dist/data/tarjeta-datos/TarjetaDatos.js +1 -1
- package/dist/{index-D-4rP6-t.js → index-qp3PAlMa.js} +69 -61
- package/dist/lib/utils/modal-radicados/AuxRadicadosComponents/RadicadosTarjetas.d.ts +8 -0
- package/dist/lib/utils/modal-radicados/AuxRadicadosComponents/TarjetaRadicado.d.ts +8 -0
- package/dist/lib/utils/modal-radicados/AuxRadicadosComponents/fetchTrazabilidad.d.ts +4 -0
- package/dist/shared/app-list/AppList.js +1 -1
- package/dist/shared/iconos-sistema/logout-button/LogoutButton.js +1 -1
- package/dist/shared/menu-lateral/MenuLateral.js +4 -3
- package/dist/tables/tabla-registros/buscador/Buscador.js +3 -3
- package/dist/tables/tabla-registros/modal-v2/EcoModal.js +10 -10
- package/dist/tables/tabla-registros/tabla/Tabla.js +10 -10
- package/dist/ui/contenido-modal/ContenidoModal.js +9 -9
- package/dist/ui/contenido-modal/ContenidoModalv0.1.js +1 -1
- package/dist/ui/icono-tooltip/IconoTooltip.js +8 -8
- package/dist/ui/items-modal/ItemsModal.js +1 -1
- package/dist/utils/eco-provider/EcoContext.js +4 -3
- package/dist/utils/modal-radicados/AuxRadicadosComponents/RadicadosTarjetas.js +10 -7
- package/dist/utils/modal-radicados/AuxRadicadosComponents/TarjetaRadicado.js +48 -35
- package/dist/utils/modal-radicados/AuxRadicadosComponents/fetchTrazabilidad.js +17 -0
- package/dist/utils/modal-radicados/ModalDocumento.js +1 -1
- package/dist/utils/modal-radicados/ModalRadicado.js +79 -46
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.history{position:relative;padding-right:1rem;padding-left:2rem;margin-top:20px;border-left:2px solid #858686}.history-item{position:relative;margin-bottom:2.5rem}.history-point{width:12px;height:12px;background-color:#358bd5;border-radius:50%;position:absolute;left:-6px;top:5px}.history-content{padding-left:1rem}.history-date{font-weight:400;color:#616161;margin-bottom:1rem}.history-user-container{display:flex}.history-user-label{font-weight:500;margin-bottom:.5rem;margin-right:.66rem}.history-user{font-weight:400;color:#666;margin-bottom:1rem}.vp-timeline-vertical{display:flex;flex-direction:column;padding-left:2rem;border-left:2px solid #ccc;position:relative;gap:2rem}.vp-timeline-event{display:flex;position:relative}.vp-timeline-left{position:relative;margin-right:1rem;display:flex;flex-direction:column;align-items:center}.vp-point-vertical{width:12px;height:12px;background-color:#8261c0;border-radius:50%;z-index:1}.vp-line-vertical{flex-grow:1;width:2px;background-color:#3a42b3}.vp-timeline-content{display:flex;flex-direction:column;gap:.5rem}.vp-icon-circle{width:36px;height:36px;background-color:#4e859b;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-top:-.6rem;margin-right:1rem}.vp-event-details{margin-top:.5rem;margin-bottom:2rem}.vp-event-estado{font-weight:700;color:#333}.vp-event-observacion{color:#555}.vp-event-fecha{color:#999;font-size:.85rem}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { D as s } from "../../../index-qp3PAlMa.js";
|
|
3
3
|
import '../../../assets/Bootstrap.css';/* empty css */
|
|
4
4
|
import { B as a } from "../../../Button-D26BYcuk.js";
|
|
5
5
|
const d = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useState as c, useRef as
|
|
3
|
-
import {
|
|
2
|
+
import { useState as c, useRef as u, useEffect as j } from "react";
|
|
3
|
+
import { l as p, m as N } from "../../index-qp3PAlMa.js";
|
|
4
4
|
import '../../assets/UnpHistorico.css';/* empty css */
|
|
5
5
|
const b = ({ icon: l, label: h, show: f = !1, children: o, extraItem: i }) => {
|
|
6
|
-
const [e, s] = c(f), [m, r] = c(0), n =
|
|
7
|
-
return
|
|
6
|
+
const [e, s] = c(f), [m, r] = c(0), n = u(null);
|
|
7
|
+
return j(() => {
|
|
8
8
|
if (!n.current) return;
|
|
9
9
|
const d = n.current;
|
|
10
10
|
(() => {
|
|
@@ -3,7 +3,7 @@ import "react";
|
|
|
3
3
|
import '../../assets/SeccionTarjetaLectura.css';import '../../assets/Logo.css';import '../../assets/TarjetaLectura.css';import '../../assets/ContenedorTarjeta.css';import '../../assets/Bootstrap.css';import '../../assets/Tarjeta.css';/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
import "../../cards/tarjeta/seccion-tarjeta/SeccionTarjeta.js";
|
|
6
|
-
import {
|
|
6
|
+
import { C as t } from "../../index-qp3PAlMa.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
@@ -14,10 +14,10 @@ function s(c) {
|
|
|
14
14
|
function n(c) {
|
|
15
15
|
return l({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160 352 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l111.5 0c0 0 0 0 0 0l.4 0c17.7 0 32-14.3 32-32l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 35.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2c-4 4-6.7 8.8-8.1 14c-.3 1.2-.6 2.5-.8 3.8c-.3 1.7-.4 3.4-.4 5.1L16 432c0 17.7 14.3 32 32 32s32-14.3 32-32l0-35.1 17.6 17.5c0 0 0 0 0 0c87.5 87.4 229.3 87.4 316.7 0c24.4-24.4 42.1-53.1 52.9-83.8c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.5 62.5-163.8 62.5-226.3 0l-.1-.1L125.6 352l34.4 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L48.4 288c-1.6 0-3.2 .1-4.8 .3s-3.1 .5-4.6 1z" }, child: [] }] })(c);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function h(c) {
|
|
18
18
|
return l({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z" }, child: [] }] })(c);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function z(c) {
|
|
21
21
|
return l({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z" }, child: [] }] })(c);
|
|
22
22
|
}
|
|
23
23
|
function d(c) {
|
|
@@ -27,121 +27,129 @@ function e(c) {
|
|
|
27
27
|
return l({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM241 377c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l87-87-87-87c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L345 239c9.4 9.4 9.4 24.6 0 33.9L241 377z" }, child: [] }] })(c);
|
|
28
28
|
}
|
|
29
29
|
function L(c) {
|
|
30
|
-
return l({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "
|
|
30
|
+
return l({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M75 75L41 41C25.9 25.9 0 36.6 0 57.9L0 168c0 13.3 10.7 24 24 24l110.1 0c21.4 0 32.1-25.9 17-41l-30.8-30.8C155 85.5 203 64 256 64c106 0 192 86 192 192s-86 192-192 192c-40.8 0-78.6-12.7-109.7-34.4c-14.5-10.1-34.4-6.6-44.6 7.9s-6.6 34.4 7.9 44.6C151.2 495 201.7 512 256 512c141.4 0 256-114.6 256-256S397.4 0 256 0C185.3 0 121.3 28.7 75 75zm181 53c-13.3 0-24 10.7-24 24l0 104c0 6.4 2.5 12.5 7 17l72 72c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-65-65 0-94.1c0-13.3-10.7-24-24-24z" }, child: [] }] })(c);
|
|
31
31
|
}
|
|
32
32
|
function o(c) {
|
|
33
|
-
return l({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M256
|
|
33
|
+
return l({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z" }, child: [] }] })(c);
|
|
34
34
|
}
|
|
35
35
|
function M(c) {
|
|
36
|
-
return l({ attr: { viewBox: "0 0
|
|
36
|
+
return l({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM199.4 312.6c31.2 31.2 81.9 31.2 113.1 0c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9c-50 50-131 50-181 0s-50-131 0-181s131-50 181 0c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0c-31.2-31.2-81.9-31.2-113.1 0s-31.2 81.9 0 113.1z" }, child: [] }] })(c);
|
|
37
37
|
}
|
|
38
38
|
function u(c) {
|
|
39
|
-
return l({ attr: { viewBox: "0 0 640 512" }, child: [{ tag: "path", attr: { d: "
|
|
39
|
+
return l({ attr: { viewBox: "0 0 640 512" }, child: [{ tag: "path", attr: { d: "M128 0C110.3 0 96 14.3 96 32l0 192 96 0 0-32c0-35.3 28.7-64 64-64l224 0 0-96c0-17.7-14.3-32-32-32L128 0zM256 160c-17.7 0-32 14.3-32 32l0 32 96 0c35.3 0 64 28.7 64 64l0 128 192 0c17.7 0 32-14.3 32-32l0-192c0-17.7-14.3-32-32-32l-320 0zm240 64l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM64 256c-17.7 0-32 14.3-32 32l0 13L187.1 415.9c1.4 1 3.1 1.6 4.9 1.6s3.5-.6 4.9-1.6L352 301l0-13c0-17.7-14.3-32-32-32L64 256zm288 84.8L216 441.6c-6.9 5.1-15.3 7.9-24 7.9s-17-2.8-24-7.9L32 340.8 32 480c0 17.7 14.3 32 32 32l256 0c17.7 0 32-14.3 32-32l0-139.2z" }, child: [] }] })(c);
|
|
40
40
|
}
|
|
41
41
|
function C(c) {
|
|
42
|
-
return l({ attr: { viewBox: "0 0
|
|
42
|
+
return l({ attr: { viewBox: "0 0 640 512" }, child: [{ tag: "path", attr: { d: "M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z" }, child: [] }] })(c);
|
|
43
43
|
}
|
|
44
44
|
function F(c) {
|
|
45
|
-
return l({ attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256
|
|
45
|
+
return l({ attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zm2 226.3c37.1 22.4 62 63.1 62 109.7s-24.9 87.3-62 109.7c-7.6 4.6-17.4 2.1-22-5.4s-2.1-17.4 5.4-22C269.4 401.5 288 370.9 288 336s-18.6-65.5-46.5-82.3c-7.6-4.6-10-14.4-5.4-22s14.4-10 22-5.4zm-91.9 30.9c6 2.5 9.9 8.3 9.9 14.8l0 128c0 6.5-3.9 12.3-9.9 14.8s-12.9 1.1-17.4-3.5L113.4 376 80 376c-8.8 0-16-7.2-16-16l0-48c0-8.8 7.2-16 16-16l33.4 0 35.3-35.3c4.6-4.6 11.5-5.9 17.4-3.5zm51 34.9c6.6-5.9 16.7-5.3 22.6 1.3C249.8 304.6 256 319.6 256 336s-6.2 31.4-16.3 42.7c-5.9 6.6-16 7.1-22.6 1.3s-7.1-16-1.3-22.6c5.1-5.7 8.1-13.1 8.1-21.3s-3.1-15.7-8.1-21.3c-5.9-6.6-5.3-16.7 1.3-22.6z" }, child: [] }] })(c);
|
|
46
46
|
}
|
|
47
47
|
function p(c) {
|
|
48
|
-
return l({ attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256
|
|
48
|
+
return l({ attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM155.7 250.2L192 302.1l36.3-51.9c7.6-10.9 22.6-13.5 33.4-5.9s13.5 22.6 5.9 33.4L221.3 344l46.4 66.2c7.6 10.9 5 25.8-5.9 33.4s-25.8 5-33.4-5.9L192 385.8l-36.3 51.9c-7.6 10.9-22.6 13.5-33.4 5.9s-13.5-22.6-5.9-33.4L162.7 344l-46.4-66.2c-7.6-10.9-5-25.8 5.9-33.4s25.8-5 33.4 5.9z" }, child: [] }] })(c);
|
|
49
49
|
}
|
|
50
50
|
function g(c) {
|
|
51
|
+
return l({ attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM64 256a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm152 32c5.3 0 10.2 2.6 13.2 6.9l88 128c3.4 4.9 3.7 11.3 1 16.5s-8.2 8.6-14.2 8.6l-88 0-40 0-48 0-48 0c-5.8 0-11.1-3.1-13.9-8.1s-2.8-11.2 .2-16.1l48-80c2.9-4.8 8.1-7.8 13.7-7.8s10.8 2.9 13.7 7.8l12.8 21.4 48.3-70.2c3-4.3 7.9-6.9 13.2-6.9z" }, child: [] }] })(c);
|
|
52
|
+
}
|
|
53
|
+
function w(c) {
|
|
51
54
|
return l({ attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM112 256l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z" }, child: [] }] })(c);
|
|
52
55
|
}
|
|
53
56
|
function m(c) {
|
|
54
57
|
return l({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 144-208 0c-35.3 0-64 28.7-64 64l0 144-48 0c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zM176 352l32 0c30.9 0 56 25.1 56 56s-25.1 56-56 56l-16 0 0 32c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-48 0-80c0-8.8 7.2-16 16-16zm32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0 0 48 16 0zm96-80l32 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-32 0c-8.8 0-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zm32 128c8.8 0 16-7.2 16-16l0-64c0-8.8-7.2-16-16-16l-16 0 0 96 16 0zm80-112c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 32 32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 48c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-64 0-64z" }, child: [] }] })(c);
|
|
55
58
|
}
|
|
56
|
-
function
|
|
59
|
+
function x(c) {
|
|
57
60
|
return l({ attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM64 288c0-17.7 14.3-32 32-32l96 0c17.7 0 32 14.3 32 32l0 96c0 17.7-14.3 32-32 32l-96 0c-17.7 0-32-14.3-32-32l0-96zM300.9 397.9L256 368l0-64 44.9-29.9c2-1.3 4.4-2.1 6.8-2.1c6.8 0 12.3 5.5 12.3 12.3l0 103.4c0 6.8-5.5 12.3-12.3 12.3c-2.4 0-4.8-.7-6.8-2.1z" }, child: [] }] })(c);
|
|
58
61
|
}
|
|
59
|
-
function
|
|
62
|
+
function f(c) {
|
|
60
63
|
return l({ attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM111 257.1l26.8 89.2 31.6-90.3c3.4-9.6 12.5-16.1 22.7-16.1s19.3 6.4 22.7 16.1l31.6 90.3L273 257.1c3.8-12.7 17.2-19.9 29.9-16.1s19.9 17.2 16.1 29.9l-48 160c-3 10-12 16.9-22.4 17.1s-19.8-6.2-23.2-16.1L192 336.6l-33.3 95.3c-3.4 9.8-12.8 16.3-23.2 16.1s-19.5-7.1-22.4-17.1l-48-160c-3.8-12.7 3.4-26.1 16.1-29.9s26.1 3.4 29.9 16.1z" }, child: [] }] })(c);
|
|
61
64
|
}
|
|
62
65
|
function B(c) {
|
|
63
66
|
return l({ attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM96 48c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16zm-6.3 71.8c3.7-14 16.4-23.8 30.9-23.8l14.8 0c14.5 0 27.2 9.7 30.9 23.8l23.5 88.2c1.4 5.4 2.1 10.9 2.1 16.4c0 35.2-28.8 63.7-64 63.7s-64-28.5-64-63.7c0-5.5 .7-11.1 2.1-16.4l23.5-88.2zM112 336c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0z" }, child: [] }] })(c);
|
|
64
67
|
}
|
|
65
|
-
function
|
|
68
|
+
function v(c) {
|
|
66
69
|
return l({ attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 288c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128z" }, child: [] }] })(c);
|
|
67
70
|
}
|
|
68
|
-
function
|
|
71
|
+
function A(c) {
|
|
69
72
|
return l({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M64 480H448c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H288c-10.1 0-19.6-4.7-25.6-12.8L243.2 57.6C231.1 41.5 212.1 32 192 32H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64z" }, child: [] }] })(c);
|
|
70
73
|
}
|
|
71
|
-
function
|
|
74
|
+
function S(c) {
|
|
72
75
|
return l({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M128 136c0-22.1-17.9-40-40-40L40 96C17.9 96 0 113.9 0 136l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zm0 192c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zm32-192l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zM288 328c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zm32-192l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zM448 328c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48z" }, child: [] }] })(c);
|
|
73
76
|
}
|
|
74
|
-
function
|
|
77
|
+
function R(c) {
|
|
75
78
|
return l({ attr: { viewBox: "0 0 640 512" }, child: [{ tag: "path", attr: { d: "M128 0C92.7 0 64 28.7 64 64l0 224-44.8 0C8.6 288 0 296.6 0 307.2C0 349.6 34.4 384 76.8 384L320 384l0-96-192 0 0-224 320 0 0 32 64 0 0-32c0-35.3-28.7-64-64-64L128 0zM512 128l-112 0c-26.5 0-48 21.5-48 48l0 288c0 26.5 21.5 48 48 48l192 0c26.5 0 48-21.5 48-48l0-208-96 0c-17.7 0-32-14.3-32-32l0-96zm32 0l0 96 96 0-96-96z" }, child: [] }] })(c);
|
|
76
79
|
}
|
|
77
|
-
function
|
|
80
|
+
function k(c) {
|
|
78
81
|
return l({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z" }, child: [] }] })(c);
|
|
79
82
|
}
|
|
80
83
|
function E(c) {
|
|
81
84
|
return l({ attr: { viewBox: "0 0 576 512" }, child: [{ tag: "path", attr: { d: "M112 48a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm40 304l0 128c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-223.1L59.4 304.5c-9.1 15.1-28.8 20-43.9 10.9s-20-28.8-10.9-43.9l58.3-97c17.4-28.9 48.6-46.6 82.3-46.6l29.7 0c33.7 0 64.9 17.7 82.3 46.6l44.9 74.7c-16.1 17.6-28.6 38.5-36.6 61.5c-1.9-1.8-3.5-3.9-4.9-6.3L232 256.9 232 480c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-128-16 0zM432 224a144 144 0 1 1 0 288 144 144 0 1 1 0-288zm0 240a24 24 0 1 0 0-48 24 24 0 1 0 0 48zm0-192c-8.8 0-16 7.2-16 16l0 80c0 8.8 7.2 16 16 16s16-7.2 16-16l0-80c0-8.8-7.2-16-16-16z" }, child: [] }] })(c);
|
|
82
85
|
}
|
|
83
|
-
function
|
|
86
|
+
function G(c) {
|
|
84
87
|
return l({ attr: { viewBox: "0 0 640 512" }, child: [{ tag: "path", attr: { d: "M384 32l128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L398.4 96c-5.2 25.8-22.9 47.1-46.4 57.3L352 448l160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0-192 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0 0-294.7c-23.5-10.3-41.2-31.6-46.4-57.3L128 96c-17.7 0-32-14.3-32-32s14.3-32 32-32l128 0c14.6-19.4 37.8-32 64-32s49.4 12.6 64 32zm55.6 288l144.9 0L512 195.8 439.6 320zM512 416c-62.9 0-115.2-34-126-78.9c-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1C627.2 382 574.9 416 512 416zM126.8 195.8L54.4 320l144.9 0L126.8 195.8zM.9 337.1c-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1C242 382 189.7 416 126.8 416S11.7 382 .9 337.1z" }, child: [] }] })(c);
|
|
85
88
|
}
|
|
86
|
-
function
|
|
89
|
+
function U(c) {
|
|
87
90
|
return l({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M135.2 17.7L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0c-12.1 0-23.2 6.8-28.6 17.7zM416 128L32 128 53.2 467c1.6 25.3 22.6 45 47.9 45l245.8 0c25.3 0 46.3-19.7 47.9-45L416 128z" }, child: [] }] })(c);
|
|
88
91
|
}
|
|
89
|
-
function
|
|
92
|
+
function W(c) {
|
|
90
93
|
return l({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z" }, child: [] }] })(c);
|
|
91
94
|
}
|
|
92
|
-
function
|
|
95
|
+
function y(c) {
|
|
93
96
|
return l({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M352 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9L370.7 96 201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L416 141.3l41.4 41.4c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6l0-128c0-17.7-14.3-32-32-32L352 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z" }, child: [] }] })(c);
|
|
94
97
|
}
|
|
95
|
-
function
|
|
98
|
+
function H(c) {
|
|
96
99
|
return l({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z" }, child: [] }] })(c);
|
|
97
100
|
}
|
|
98
|
-
function
|
|
101
|
+
function q(c) {
|
|
99
102
|
return l({ attr: { viewBox: "0 0 640 512" }, child: [{ tag: "path", attr: { d: "M144 0a80 80 0 1 1 0 160A80 80 0 1 1 144 0zM512 0a80 80 0 1 1 0 160A80 80 0 1 1 512 0zM0 298.7C0 239.8 47.8 192 106.7 192l42.7 0c15.9 0 31 3.5 44.6 9.7c-1.3 7.2-1.9 14.7-1.9 22.3c0 38.2 16.8 72.5 43.3 96c-.2 0-.4 0-.7 0L21.3 320C9.6 320 0 310.4 0 298.7zM405.3 320c-.2 0-.4 0-.7 0c26.6-23.5 43.3-57.8 43.3-96c0-7.6-.7-15-1.9-22.3c13.6-6.3 28.7-9.7 44.6-9.7l42.7 0C592.2 192 640 239.8 640 298.7c0 11.8-9.6 21.3-21.3 21.3l-213.3 0zM224 224a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM128 485.3C128 411.7 187.7 352 261.3 352l117.3 0C452.3 352 512 411.7 512 485.3c0 14.7-11.9 26.7-26.7 26.7l-330.7 0c-14.7 0-26.7-11.9-26.7-26.7z" }, child: [] }] })(c);
|
|
100
103
|
}
|
|
101
|
-
function
|
|
104
|
+
function D(c) {
|
|
102
105
|
return l({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zM96 96l320 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L96 160c-17.7 0-32-14.3-32-32s14.3-32 32-32z" }, child: [] }] })(c);
|
|
103
106
|
}
|
|
104
|
-
function
|
|
107
|
+
function I(c) {
|
|
105
108
|
return l({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M432 64L208 64c-8.8 0-16 7.2-16 16l0 16-64 0 0-16c0-44.2 35.8-80 80-80L432 0c44.2 0 80 35.8 80 80l0 224c0 44.2-35.8 80-80 80l-16 0 0-64 16 0c8.8 0 16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zM0 192c0-35.3 28.7-64 64-64l256 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 192zm64 32c0 17.7 14.3 32 32 32l192 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 192c-17.7 0-32 14.3-32 32z" }, child: [] }] })(c);
|
|
106
109
|
}
|
|
107
|
-
function
|
|
110
|
+
function V(c) {
|
|
111
|
+
return l({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M152 24c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40L64 64C28.7 64 0 92.7 0 128l0 16 0 48L0 448c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-256 0-48 0-16c0-35.3-28.7-64-64-64l-40 0 0-40c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 40L152 64l0-40zM48 192l352 0 0 256c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-256z" }, child: [] }] })(c);
|
|
112
|
+
}
|
|
113
|
+
function P(c) {
|
|
108
114
|
return l({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z" }, child: [] }] })(c);
|
|
109
115
|
}
|
|
110
116
|
export {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
117
|
+
R as A,
|
|
118
|
+
q as B,
|
|
119
|
+
H as C,
|
|
120
|
+
U as D,
|
|
121
|
+
z as E,
|
|
122
|
+
v as F,
|
|
123
|
+
o as G,
|
|
124
|
+
P as H,
|
|
125
|
+
S as I,
|
|
126
|
+
r as J,
|
|
127
|
+
k as K,
|
|
128
|
+
i as L,
|
|
129
|
+
V as a,
|
|
130
|
+
m as b,
|
|
131
|
+
g as c,
|
|
132
|
+
f as d,
|
|
133
|
+
p as e,
|
|
134
|
+
B as f,
|
|
135
|
+
F as g,
|
|
136
|
+
x as h,
|
|
137
|
+
w as i,
|
|
138
|
+
y as j,
|
|
139
|
+
L as k,
|
|
140
|
+
d as l,
|
|
141
|
+
e as m,
|
|
142
|
+
C as n,
|
|
143
|
+
I as o,
|
|
144
|
+
D as p,
|
|
145
|
+
A as q,
|
|
146
|
+
E as r,
|
|
147
|
+
u as s,
|
|
148
|
+
s as t,
|
|
149
|
+
a as u,
|
|
150
|
+
h as v,
|
|
151
|
+
M as w,
|
|
152
|
+
n as x,
|
|
153
|
+
W as y,
|
|
154
|
+
G as z
|
|
147
155
|
};
|
|
@@ -5,6 +5,14 @@ export interface RadicadosTarjetasProps {
|
|
|
5
5
|
radicados: RadicadoItem[];
|
|
6
6
|
/** Callback al hacer clic en un documento; en el modal suele abrir el visor (ModalDocumento) */
|
|
7
7
|
onDocumentoClick?: (doc: DocumentoRadicado) => void;
|
|
8
|
+
setView: (view: number) => void;
|
|
9
|
+
/** Setter para cargar la trazabilidad en el modal */
|
|
10
|
+
setTraceData?: (data: {
|
|
11
|
+
inProgress: any[];
|
|
12
|
+
completed: any[];
|
|
13
|
+
} | null) => void;
|
|
14
|
+
/** Setter para indicar carga de trazabilidad */
|
|
15
|
+
setTraceLoading?: (loading: boolean) => void;
|
|
8
16
|
}
|
|
9
17
|
/**
|
|
10
18
|
* Lista de tarjetas, una por radicado. Cada tarjeta muestra numero_radicado y fecha;
|
|
@@ -5,6 +5,14 @@ export interface TarjetaRadicadoProps {
|
|
|
5
5
|
radicado: RadicadoItem;
|
|
6
6
|
/** Callback al hacer clic en un documento (ej. abrir visor en el modal) */
|
|
7
7
|
onDocumentoClick?: (doc: DocumentoRadicado) => void;
|
|
8
|
+
setView: (view: number) => void;
|
|
9
|
+
/** Setter para pasar la trazabilidad al modal */
|
|
10
|
+
setTraceData?: (data: {
|
|
11
|
+
inProgress: any[];
|
|
12
|
+
completed: any[];
|
|
13
|
+
} | null) => void;
|
|
14
|
+
/** Setter para indicar carga de trazabilidad */
|
|
15
|
+
setTraceLoading?: (loading: boolean) => void;
|
|
8
16
|
}
|
|
9
17
|
/**
|
|
10
18
|
* Tarjeta por radicado: título = numero_radicado + fecha_asignacion.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o, jsxs as r } from "react/jsx-runtime";
|
|
2
2
|
import { useState as d, useEffect as h } from "react";
|
|
3
3
|
import { F as t, g as u, h as f, i as v, j as N } from "../../index-Cxj2q-tb.js";
|
|
4
|
-
import {
|
|
4
|
+
import { L as z } from "../../index-qp3PAlMa.js";
|
|
5
5
|
import { G as g } from "../../iconBase-DSKTHwal.js";
|
|
6
6
|
import { N as w } from "../../NavDropdown-D63ml3Lh.js";
|
|
7
7
|
import '../../assets/AppList.css';function U(s) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as t, Fragment as i, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { useFinalizarSesion as n } from "../../../auth/hooks/useFinalizarSesion.js";
|
|
3
|
-
import {
|
|
3
|
+
import { J as s } from "../../../index-qp3PAlMa.js";
|
|
4
4
|
import { L as m } from "../../../index-Cy8qF6oY.js";
|
|
5
5
|
import '../../../assets/LogoutButton.css';const p = () => {
|
|
6
6
|
const { FinSesion: r } = n();
|
|
@@ -4,7 +4,7 @@ import { useNavigate as C } from "react-router-dom";
|
|
|
4
4
|
import { useFinalizarSesion as H } from "../../auth/hooks/useFinalizarSesion.js";
|
|
5
5
|
import { urlPandaPDF as L, urlBaseProd as S, urlCertificadoLaboral as A } from "../../utils/Url.js";
|
|
6
6
|
import "../../auth/contexts/AuthContex.js";
|
|
7
|
-
import '../../assets/EcoModalStyles.css';import '../../assets/Modal.css';import '../../assets/ContenedorVentana.css';import '../../assets/IconoTooltip.css';import '../../assets/ItemsModal.css';import '../../assets/Paginador.css';import '../../assets/ContenidoModal.css';import '../../assets/Encabezado.css';import '../../assets/SeccionTarjetaLectura.css';import '../../assets/Logo.css';import '../../assets/TarjetaLectura.css';import '../../assets/ContenedorTarjeta.css';import '../../assets/Bootstrap.css';import '../../assets/Tarjeta.css';import '../../assets/UnpHistorico.css';import '../../assets/MenuLateral.css';/* empty css */
|
|
7
|
+
import '../../assets/Trazabilidad.css';import '../../assets/EcoModalStyles.css';import '../../assets/Modal.css';import '../../assets/ContenedorVentana.css';import '../../assets/IconoTooltip.css';import '../../assets/ItemsModal.css';import '../../assets/Paginador.css';import '../../assets/ContenidoModal.css';import '../../assets/Encabezado.css';import '../../assets/SeccionTarjetaLectura.css';import '../../assets/Logo.css';import '../../assets/TarjetaLectura.css';import '../../assets/ContenedorTarjeta.css';import '../../assets/Bootstrap.css';import '../../assets/Tarjeta.css';import '../../assets/UnpHistorico.css';import '../../assets/MenuLateral.css';/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
10
|
import "../../cards/tarjeta/seccion-tarjeta/SeccionTarjeta.js";
|
|
@@ -27,6 +27,7 @@ import "../../ui/animacion/Animacion.js";
|
|
|
27
27
|
import { L as y } from "../../index-Cy8qF6oY.js";
|
|
28
28
|
import { useWebSocketConnection as P } from "../../utils/websocket-manager/WebSocketContext.js";
|
|
29
29
|
import "../../auth/services/User.js";
|
|
30
|
+
/* empty css */
|
|
30
31
|
import V from "../../logo_escudo_blanco-CnWh5GYD.js";
|
|
31
32
|
import { G as i } from "../../iconBase-DSKTHwal.js";
|
|
32
33
|
function E(t) {
|
|
@@ -65,7 +66,7 @@ function J(t) {
|
|
|
65
66
|
function W(t) {
|
|
66
67
|
return i({ attr: { role: "img", viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M4.224 0a3.14 3.14 0 00-3.14 3.127 3.1 3.1 0 001.079 2.36 11.811 11.811 0 00-2.037 6.639C.126 18.68 5.458 24 12 24c6.542 0 11.874-5.32 11.874-11.874a11.69 11.69 0 00-2.025-6.614 3.136 3.136 0 001.09-2.373A3.132 3.132 0 0019.8.012a3.118 3.118 0 00-2.636 1.438A11.792 11.792 0 0012.012.264c-1.845 0-3.595.419-5.152 1.174A3.133 3.133 0 004.224 0zM12 1.198c1.713 0 3.331.396 4.78 1.102a10.995 10.995 0 014.29 3.715 10.89 10.89 0 011.882 6.135c.011 6.039-4.901 10.951-10.94 10.951-6.04 0-10.951-4.912-10.951-10.951 0-2.277.694-4.386 1.88-6.135A11.08 11.08 0 017.232 2.3 10.773 10.773 0 0112 1.198zM7.367 6.345c-.853.012-1.743.292-2.28.653-1.031.682-2.29 2.156-2.085 4.181.191 2.025 1.785 3.283 2.612 3.283.826 0 1.234-.42 1.485-1.45.252-1.018 1.115-2.192 2.217-3.45s-.024-2.469-.024-2.469c-.393-.513-1.052-.727-1.755-.747a3.952 3.952 0 00-.17-.001zm9.233.007l-.17.001c-.702.02-1.358.233-1.746.752 0 0-1.126 1.21-.024 2.469 1.114 1.258 1.965 2.432 2.217 3.45.251 1.019.659 1.438 1.485 1.45.827 0 2.409-1.258 2.612-3.283.204-2.025-1.054-3.51-2.084-4.182-.544-.36-1.437-.643-2.29-.657zm-8.962 2c.348 0 .624.275.624.623-.012.335-.288.623-.624.623a.619.619 0 01-.623-.623c0-.348.276-.624.623-.624zm8.891 0c.348 0 .623.275.623.623-.012.335-.287.623-.623.623a.619.619 0 01-.623-.623c0-.348.288-.624.623-.624zm-4.541 4.025c-.527 0-2.06.096-2.06.587 0 .887 1.88 1.522 2.06 1.474.18.048 2.06-.587 2.06-1.474 0-.49-1.52-.587-2.06-.587zM9.076 15.17c0 1.414 1.294 2.564 2.912 2.564 1.618 0 2.924-1.15 2.924-2.564z" }, child: [] }] })(t);
|
|
67
68
|
}
|
|
68
|
-
const
|
|
69
|
+
const _1 = ({ onToggle: t, isOpen: c, showConnectionStatus: g }) => {
|
|
69
70
|
const [N, x] = s(!0), [m, p] = s(null), f = c ? "sidebar-bar-panel open" : "sidebar-bar-panel", k = C(), { FinSesion: w } = H(), z = `${window.location.protocol}//${window.location.host}/`, { connectionStatus: v } = P(), [b, l] = s(!1), [M, n] = s(""), h = `${window.location.host}`;
|
|
70
71
|
if (d(() => {
|
|
71
72
|
const r = localStorage.getItem("auth_state");
|
|
@@ -296,5 +297,5 @@ const M1 = ({ onToggle: t, isOpen: c, showConnectionStatus: g }) => {
|
|
|
296
297
|
] }) });
|
|
297
298
|
};
|
|
298
299
|
export {
|
|
299
|
-
|
|
300
|
+
_1 as MenuLateral
|
|
300
301
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n, jsxs as f } from "react/jsx-runtime";
|
|
2
2
|
import * as d from "react";
|
|
3
3
|
import { useState as c, useEffect as g } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { K as N } from "../../../index-qp3PAlMa.js";
|
|
5
5
|
import { F as x, a as h } from "../../../FormGroup-Cr4mD8Eg.js";
|
|
6
6
|
import { u as $, c as v } from "../../../ThemeProvider-Bo7O8d1Q.js";
|
|
7
7
|
import '../../../assets/Buscador.css';const u = /* @__PURE__ */ d.forwardRef(({
|
|
@@ -23,7 +23,7 @@ import '../../../assets/Buscador.css';const u = /* @__PURE__ */ d.forwardRef(({
|
|
|
23
23
|
});
|
|
24
24
|
});
|
|
25
25
|
u.displayName = "Spinner";
|
|
26
|
-
const
|
|
26
|
+
const j = ({ onSearch: a, onFetchTableSearch: r }) => {
|
|
27
27
|
const [s, o] = c(""), [i, t] = c(!1), m = (e) => e.normalize("NFD").replace(/[\u0300-\u036f]/g, ""), l = (e) => {
|
|
28
28
|
const p = m(e.target.value);
|
|
29
29
|
a(p), o(e.target.value);
|
|
@@ -50,5 +50,5 @@ const I = ({ onSearch: a, onFetchTableSearch: r }) => {
|
|
|
50
50
|
] }) });
|
|
51
51
|
};
|
|
52
52
|
export {
|
|
53
|
-
|
|
53
|
+
j as BusquedaInput
|
|
54
54
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as t, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import { useState as m, useRef as M, useEffect as u } from "react";
|
|
3
3
|
import { R as q } from "../../../index-Bn9ixj44.js";
|
|
4
|
-
import {
|
|
4
|
+
import { o as A, p as B } from "../../../index-qp3PAlMa.js";
|
|
5
5
|
import '../../../assets/EcoModalStyles.css';/* empty css */
|
|
6
6
|
const X = ({
|
|
7
7
|
show: r,
|
|
@@ -16,19 +16,19 @@ const X = ({
|
|
|
16
16
|
primaryPosition: s = "right",
|
|
17
17
|
disableClose: h = !1,
|
|
18
18
|
hasSecondaryModalOpen: R = !1,
|
|
19
|
-
otherModalOpen:
|
|
19
|
+
otherModalOpen: n = !1,
|
|
20
20
|
widthPercent: y,
|
|
21
21
|
headerBgColor: j = "#303D50",
|
|
22
22
|
hasBody: D = !0,
|
|
23
23
|
showOverlay: $ = !0
|
|
24
24
|
}) => {
|
|
25
|
-
const [b, v] = m(!1), [c,
|
|
25
|
+
const [b, v] = m(!1), [c, _] = m(!1), [g, w] = m(!1), a = M(null);
|
|
26
26
|
u(() => (w(!0), o === "secondary" && !a.current && (a.current = document.createElement("div"), a.current.className = "modal_portal_container", document.body.appendChild(a.current)), () => {
|
|
27
27
|
w(!1), a.current && (document.body.removeChild(a.current), a.current = null);
|
|
28
28
|
}), [o]), u(() => {
|
|
29
29
|
const e = document.body;
|
|
30
|
-
return r ? (v(!0), e.classList.add("eco_modal_open")) : (
|
|
31
|
-
g && (v(!1),
|
|
30
|
+
return r ? (v(!0), e.classList.add("eco_modal_open")) : (_(!0), setTimeout(() => {
|
|
31
|
+
g && (v(!1), _(!1)), e.classList.remove("eco_modal_open");
|
|
32
32
|
}, 200)), () => {
|
|
33
33
|
e.classList.remove("eco_modal_open");
|
|
34
34
|
};
|
|
@@ -38,7 +38,7 @@ const X = ({
|
|
|
38
38
|
s === "left" ? "eco_modal_primary_left" : "eco_modal_primary_right"
|
|
39
39
|
));
|
|
40
40
|
const d = () => {
|
|
41
|
-
if (!(r &&
|
|
41
|
+
if (!(r && n && !l)) {
|
|
42
42
|
e.classList.remove("eco_modal_two_modals_50", "eco_modal_two_modals_large");
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
@@ -47,16 +47,16 @@ const X = ({
|
|
|
47
47
|
return d(), window.addEventListener("resize", d), () => {
|
|
48
48
|
o === "primary" && e.classList.remove("eco_modal_primary_right", "eco_modal_primary_left"), e.classList.remove("eco_modal_two_modals_50", "eco_modal_two_modals_large"), window.removeEventListener("resize", d);
|
|
49
49
|
};
|
|
50
|
-
}, [o, s, r,
|
|
50
|
+
}, [o, s, r, n, l]);
|
|
51
51
|
const x = () => o === "primary" ? s === "center" ? "eco_modal_primary_center" : `eco_modal_primary_${s}` : `eco_modal_secondary_${s === "left" ? "right" : "left"}`, W = () => {
|
|
52
52
|
const e = ["eco_modal_overlay"];
|
|
53
53
|
return $ && e.push("eco_modal_overlay_bg"), o === "primary" ? e.push(`eco_modal_primary_${s}`) : e.push("eco_modal_secondary_overlay"), b && !c && e.push("eco_modal_show"), c && e.push("eco_modal_hide"), e.join(" ");
|
|
54
54
|
}, z = () => {
|
|
55
55
|
const e = ["eco_modal_container", o, x()];
|
|
56
56
|
return b && !c && e.push("eco_modal_show"), c && e.push("eco_modal_hide"), l && e.push("eco_modal_maximized"), s === "center" && e.push("eco_modal_centered"), e.join(" ");
|
|
57
|
-
}, C = o === "primary" ? h || R : h, F = o === "primary" && r &&
|
|
58
|
-
!C && o === "primary" && k && (
|
|
59
|
-
f(),
|
|
57
|
+
}, C = o === "primary" ? h || R : h, F = o === "primary" && r && n, O = () => {
|
|
58
|
+
!C && o === "primary" && k && (_(!0), setTimeout(() => {
|
|
59
|
+
f(), _(!1);
|
|
60
60
|
}, 200));
|
|
61
61
|
}, I = () => {
|
|
62
62
|
const e = {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r, jsxs as d } from "react/jsx-runtime";
|
|
2
2
|
import L, { useState as m, useEffect as S } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { H as w, I as ee } from "../../../index-qp3PAlMa.js";
|
|
4
4
|
import { b as te, c as re, d as se, e as oe } from "../../../index-Cxj2q-tb.js";
|
|
5
5
|
import { T as ie } from "../../../Table-BX9pfi6X.js";
|
|
6
6
|
import { F as ne, a as ae } from "../../../FormGroup-Cr4mD8Eg.js";
|
|
@@ -29,13 +29,13 @@ import '../../../assets/Tabla.css';const ye = ({
|
|
|
29
29
|
cellSelectionColor: V,
|
|
30
30
|
//
|
|
31
31
|
onLoadMore: B,
|
|
32
|
-
isFiltering:
|
|
32
|
+
isFiltering: H,
|
|
33
33
|
showColumnCount: C
|
|
34
34
|
}) => {
|
|
35
35
|
const [l, $] = m({
|
|
36
36
|
key: null,
|
|
37
37
|
direction: null
|
|
38
|
-
}), [c, q] = m([]), [y,
|
|
38
|
+
}), [c, q] = m([]), [y, G] = m(null), [k, j] = m(null);
|
|
39
39
|
S(() => {
|
|
40
40
|
F == null || F(c);
|
|
41
41
|
}, [c]);
|
|
@@ -45,17 +45,17 @@ import '../../../assets/Tabla.css';const ye = ({
|
|
|
45
45
|
const n = s[i], t = c.includes(e);
|
|
46
46
|
let a = [];
|
|
47
47
|
if (t)
|
|
48
|
-
a = c.filter((p) => p !== e), a.length === 0 && (
|
|
48
|
+
a = c.filter((p) => p !== e), a.length === 0 && (j(null), G(null));
|
|
49
49
|
else if (c.length === 0) {
|
|
50
|
-
a = [e],
|
|
50
|
+
a = [e], G(n.tipoMesa);
|
|
51
51
|
const p = n.tipoMesa, X = s.filter((g) => g.tipoMesa === p && g.numeroRegistro !== e), O = s.filter((g) => g.tipoMesa !== p), W = s.findIndex((g) => g.numeroRegistro === e), Y = O.slice(0, W), Z = O.slice(W);
|
|
52
|
-
|
|
52
|
+
j([...Y, n, ...X, ...Z]);
|
|
53
53
|
} else {
|
|
54
54
|
if (y && n.tipoMesa !== y) return;
|
|
55
55
|
a = [...c, e];
|
|
56
56
|
}
|
|
57
57
|
q(a);
|
|
58
|
-
},
|
|
58
|
+
}, E = { i: 0 }, z = (e) => {
|
|
59
59
|
if (v) {
|
|
60
60
|
const o = e / v * 100;
|
|
61
61
|
return o <= 25 ? { backgroundColor: "#3AB34A", color: "#FFFFFF" } : o <= 50 ? { backgroundColor: "#F8EB10", color: "#000000" } : o <= 75 ? { backgroundColor: "#F79122", color: "#000000" } : { backgroundColor: "#E91720", color: "#FFFFFF" };
|
|
@@ -67,7 +67,7 @@ import '../../../assets/Tabla.css';const ye = ({
|
|
|
67
67
|
if (P((n) => {
|
|
68
68
|
const t = n + 10;
|
|
69
69
|
return Math.min(t, f.length);
|
|
70
|
-
}),
|
|
70
|
+
}), H)
|
|
71
71
|
return;
|
|
72
72
|
f.length - N < 5 && B && B();
|
|
73
73
|
}
|
|
@@ -144,7 +144,7 @@ import '../../../assets/Tabla.css';const ye = ({
|
|
|
144
144
|
/* @__PURE__ */ d("tbody", { children: [
|
|
145
145
|
x.slice(0, N).map((e, o) => {
|
|
146
146
|
let s = !1;
|
|
147
|
-
b ? e.estadoRegistro === "en_gestion" ? s = !0 : e.estadoRegistro === "por_gestionar" && (!A &&
|
|
147
|
+
b ? e.estadoRegistro === "en_gestion" ? s = !0 : e.estadoRegistro === "por_gestionar" && (!A && E.i < 60 ? (s = !0, E.i++) : A && (s = !0)) : s = !0;
|
|
148
148
|
const i = u && y != null && e.tipoMesa !== y, n = c.includes(e.numeroRegistro);
|
|
149
149
|
return /* @__PURE__ */ d(L.Fragment, { children: [
|
|
150
150
|
/* @__PURE__ */ d(
|
|
@@ -224,7 +224,7 @@ import '../../../assets/Tabla.css';const ye = ({
|
|
|
224
224
|
}, children: /* @__PURE__ */ r(ee, { style: { fontSize: "1.3rem" } }) }) }) })
|
|
225
225
|
] }, o);
|
|
226
226
|
}),
|
|
227
|
-
D && !
|
|
227
|
+
D && !H && /* @__PURE__ */ r("tr", { children: /* @__PURE__ */ r("td", { colSpan: h.length, className: "text-center", children: "Cargando más datos..." }) })
|
|
228
228
|
] })
|
|
229
229
|
] }) }) });
|
|
230
230
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as i, Fragment as p, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import f, { useState as o } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { n as v } from "../../index-qp3PAlMa.js";
|
|
4
4
|
import '../../assets/ContenidoModal.css';/* empty css */
|
|
5
5
|
const y = ({ title: N, modalContent: s, children: d, extraElement: m }) => {
|
|
6
|
-
const [a,
|
|
6
|
+
const [a, l] = o(0), [h, c] = o(!0), [r, n] = o(!1);
|
|
7
7
|
return /* @__PURE__ */ i(p, { children: [
|
|
8
8
|
/* @__PURE__ */ i("div", { style: { padding: "0.5rem" }, children: [
|
|
9
9
|
/* @__PURE__ */ i("div", { className: "modal-title-container", children: [
|
|
@@ -13,19 +13,19 @@ const y = ({ title: N, modalContent: s, children: d, extraElement: m }) => {
|
|
|
13
13
|
] }),
|
|
14
14
|
/* @__PURE__ */ i("div", { className: "modal-subtitle-container-right", style: { display: "flex", justifyContent: "flex-end", alignItems: "center" }, children: [
|
|
15
15
|
s && /* @__PURE__ */ i("div", { className: "animation-wrapper", children: [
|
|
16
|
-
h && /* @__PURE__ */ e("div", { className: `buttons-group ${r ? "hide" : "show"}`, children: s.slice(1).map((
|
|
16
|
+
h && /* @__PURE__ */ e("div", { className: `buttons-group ${r ? "hide" : "show"}`, children: s.slice(1).map((t, u) => /* @__PURE__ */ e(f.Fragment, { children: t.icon && /* @__PURE__ */ i("div", { className: "icon-container", children: [
|
|
17
17
|
/* @__PURE__ */ e(
|
|
18
|
-
|
|
18
|
+
t.icon,
|
|
19
19
|
{
|
|
20
20
|
className: "icon-registro",
|
|
21
21
|
onClick: () => {
|
|
22
22
|
setTimeout(() => {
|
|
23
23
|
c(!1);
|
|
24
|
-
}, 200),
|
|
24
|
+
}, 200), l(u + 1), n(!0);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
),
|
|
28
|
-
/* @__PURE__ */ e("span", { className: "tooltip-text", children:
|
|
28
|
+
/* @__PURE__ */ e("span", { className: "tooltip-text", children: t.label })
|
|
29
29
|
] }) }, u)) }),
|
|
30
30
|
!h && /* @__PURE__ */ e("div", { className: `close-group ${r ? "show" : "hide"}`, children: /* @__PURE__ */ i("div", { className: "icon-container", children: [
|
|
31
31
|
/* @__PURE__ */ e(
|
|
@@ -35,7 +35,7 @@ const y = ({ title: N, modalContent: s, children: d, extraElement: m }) => {
|
|
|
35
35
|
onClick: () => {
|
|
36
36
|
setTimeout(() => {
|
|
37
37
|
c(!0);
|
|
38
|
-
}, 200), n(!1),
|
|
38
|
+
}, 200), n(!1), l(0);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
),
|
|
@@ -48,8 +48,8 @@ const y = ({ title: N, modalContent: s, children: d, extraElement: m }) => {
|
|
|
48
48
|
/* @__PURE__ */ e("hr", { className: "modal-horizontal-line" })
|
|
49
49
|
] }),
|
|
50
50
|
/* @__PURE__ */ i("div", { className: "modal-title-body", children: [
|
|
51
|
-
s && (s[a].content instanceof Function ? s[a].content((
|
|
52
|
-
t
|
|
51
|
+
s && (s[a].content instanceof Function ? s[a].content((t) => {
|
|
52
|
+
l(t), setTimeout(() => {
|
|
53
53
|
c(!1);
|
|
54
54
|
}, 200), n(!0);
|
|
55
55
|
}) : s[a].content),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as t, Fragment as N, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as m, useEffect as p } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { n as v } from "../../index-qp3PAlMa.js";
|
|
4
4
|
import '../../assets/ContenidoModal.css';/* empty css */
|
|
5
5
|
const y = ({ title: d, children: h, buttons: s, isShowing: i, setIsShowing: u = (() => {
|
|
6
6
|
}) }) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as A, jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import { useState as L } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { q as M, r as U, s as B, t as j, u as z, v as J, w as W, x as q, y as P, z as Y, i as g, A as h, B as G, C as H } from "../../index-qp3PAlMa.js";
|
|
4
4
|
import '../../assets/IconoTooltip.css';/* empty css */
|
|
5
5
|
const _ = ({ recordType: x, taken: o = !0, customIcon: l }) => {
|
|
6
6
|
const [a, b] = L(!1);
|
|
7
7
|
let r = "", c = {}, e = null, w = { color: o ? "#287cd1" : "#c8c8c8" };
|
|
8
|
-
const f = "#28a19d", n = "#ed7e3e", d = "#3e52ed",
|
|
8
|
+
const f = "#28a19d", n = "#ed7e3e", d = "#3e52ed", C = "#ed3e49", v = "#edd958", I = "#18a871", p = "#db493b", m = "#6845e6", F = "#c2e545", y = "#43b1dd", R = "#de6f43", N = "#6b6e6e", i = "#666666f4", s = (E) => {
|
|
9
9
|
const t = E.replace(/^#/, ""), T = parseInt(t.slice(0, 2), 16) / 255, D = parseInt(t.slice(2, 4), 16) / 255, S = parseInt(t.slice(4, 6), 16) / 255;
|
|
10
10
|
return 0.2126 * T + 0.7152 * D + 0.0722 * S;
|
|
11
11
|
};
|
|
@@ -68,14 +68,14 @@ const _ = ({ recordType: x, taken: o = !0, customIcon: l }) => {
|
|
|
68
68
|
break;
|
|
69
69
|
case "Emergencia":
|
|
70
70
|
r = o ? "Emergencia" : "Nuevo registro", c = {
|
|
71
|
-
backgroundColor: o ?
|
|
72
|
-
color: o && s(
|
|
71
|
+
backgroundColor: o ? C : i,
|
|
72
|
+
color: o && s(C) > 0.5 ? "#141414" : "#fcfcfc"
|
|
73
73
|
}, e = P;
|
|
74
74
|
break;
|
|
75
75
|
case "Reasignación":
|
|
76
76
|
r = o ? "Reasignación" : "Nuevo registro", c = {
|
|
77
|
-
backgroundColor: o ?
|
|
78
|
-
color: o && s(
|
|
77
|
+
backgroundColor: o ? v : i,
|
|
78
|
+
color: o && s(v) > 0.5 ? "#141414" : "#fcfcfc"
|
|
79
79
|
}, e = q;
|
|
80
80
|
break;
|
|
81
81
|
case "CTAR":
|
|
@@ -100,13 +100,13 @@ const _ = ({ recordType: x, taken: o = !0, customIcon: l }) => {
|
|
|
100
100
|
r = o ? "Implementación" : "Nuevo registro", c = {
|
|
101
101
|
backgroundColor: o ? F : i,
|
|
102
102
|
color: o && s(F) > 0.5 ? "#141414" : "#fcfcfc"
|
|
103
|
-
}, e =
|
|
103
|
+
}, e = j;
|
|
104
104
|
break;
|
|
105
105
|
case "Correspondencia":
|
|
106
106
|
r = o ? "Correspondencia" : "Nuevo registro", c = {
|
|
107
107
|
backgroundColor: o ? y : i,
|
|
108
108
|
color: "#fcfcfc"
|
|
109
|
-
}, e =
|
|
109
|
+
}, e = B;
|
|
110
110
|
break;
|
|
111
111
|
case "Uso indebido":
|
|
112
112
|
r = o ? "Uso indebido" : "Nuevo registro", c = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { useNavigate as i } from "react-router-dom";
|
|
3
|
-
import {
|
|
3
|
+
import { E as s, G as n } from "../../index-qp3PAlMa.js";
|
|
4
4
|
import { G as c } from "../../iconBase-DSKTHwal.js";
|
|
5
5
|
import '../../assets/ItemsModal.css';/* empty css */
|
|
6
6
|
function m(o) {
|
|
@@ -2,7 +2,7 @@ import { jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { AuthProvider as t } from "../../auth/contexts/AuthContex.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-router-dom";
|
|
5
|
-
import '../../assets/EcoModalStyles.css';import '../../assets/Modal.css';import '../../assets/ContenedorVentana.css';import '../../assets/IconoTooltip.css';import '../../assets/ItemsModal.css';import '../../assets/Paginador.css';import '../../assets/ContenidoModal.css';import '../../assets/Encabezado.css';import '../../assets/SeccionTarjetaLectura.css';import '../../assets/Logo.css';import '../../assets/TarjetaLectura.css';import '../../assets/ContenedorTarjeta.css';import '../../assets/Bootstrap.css';import '../../assets/Tarjeta.css';import '../../assets/UnpHistorico.css';/* empty css */
|
|
5
|
+
import '../../assets/Trazabilidad.css';import '../../assets/EcoModalStyles.css';import '../../assets/Modal.css';import '../../assets/ContenedorVentana.css';import '../../assets/IconoTooltip.css';import '../../assets/ItemsModal.css';import '../../assets/Paginador.css';import '../../assets/ContenidoModal.css';import '../../assets/Encabezado.css';import '../../assets/SeccionTarjetaLectura.css';import '../../assets/Logo.css';import '../../assets/TarjetaLectura.css';import '../../assets/ContenedorTarjeta.css';import '../../assets/Bootstrap.css';import '../../assets/Tarjeta.css';import '../../assets/UnpHistorico.css';/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
import "../../cards/tarjeta/seccion-tarjeta/SeccionTarjeta.js";
|
|
@@ -25,7 +25,8 @@ import "../../ui/animacion/Animacion.js";
|
|
|
25
25
|
import "../../index-Cy8qF6oY.js";
|
|
26
26
|
import { WebSocketProvider as i } from "../websocket-manager/WebSocketContext.js";
|
|
27
27
|
import "../../auth/services/User.js";
|
|
28
|
-
|
|
28
|
+
/* empty css */
|
|
29
|
+
const C = ({ children: o }) => /* @__PURE__ */ r(t, { children: /* @__PURE__ */ r(i, { children: o }) });
|
|
29
30
|
export {
|
|
30
|
-
|
|
31
|
+
C as EcoProvider
|
|
31
32
|
};
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { jsx as a, Fragment as
|
|
2
|
-
import { TarjetaRadicado as
|
|
3
|
-
const
|
|
4
|
-
|
|
1
|
+
import { jsx as a, Fragment as i } from "react/jsx-runtime";
|
|
2
|
+
import { TarjetaRadicado as p } from "./TarjetaRadicado.js";
|
|
3
|
+
const s = ({ radicados: r, onDocumentoClick: e, setView: n, setTraceData: l, setTraceLoading: m }) => !Array.isArray(r) || r.length === 0 ? null : /* @__PURE__ */ a(i, { children: r.map((t, o) => /* @__PURE__ */ a(
|
|
4
|
+
p,
|
|
5
5
|
{
|
|
6
6
|
radicado: t,
|
|
7
|
-
onDocumentoClick: e
|
|
7
|
+
onDocumentoClick: e,
|
|
8
|
+
setView: n,
|
|
9
|
+
setTraceData: l,
|
|
10
|
+
setTraceLoading: m
|
|
8
11
|
},
|
|
9
|
-
t.llave_radicado ??
|
|
12
|
+
t.llave_radicado ?? o
|
|
10
13
|
)) });
|
|
11
14
|
export {
|
|
12
|
-
|
|
15
|
+
s as RadicadosTarjetas
|
|
13
16
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import {
|
|
4
|
-
import { fetchDocumentosArrayRadicados as
|
|
1
|
+
import { jsx as t, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import { useState as l, useEffect as w } from "react";
|
|
3
|
+
import { i as R, F as q, j as A, k as E } from "../../../index-qp3PAlMa.js";
|
|
4
|
+
import { fetchDocumentosArrayRadicados as I } from "./fetchDocumentos.js";
|
|
5
|
+
import { fetchTrazabilidad as P } from "./fetchTrazabilidad.js";
|
|
5
6
|
import '../../../assets/EcoModalStyles.css';import '../../../assets/Modal.css';import '../../../assets/ContenedorVentana.css';import '../../../assets/IconoTooltip.css';import '../../../assets/ItemsModal.css';import '../../../assets/Paginador.css';import '../../../assets/ContenidoModal.css';import '../../../assets/Encabezado.css';import '../../../assets/SeccionTarjetaLectura.css';import '../../../assets/Logo.css';import '../../../assets/TarjetaLectura.css';import '../../../assets/ContenedorTarjeta.css';import '../../../assets/Bootstrap.css';import '../../../assets/Tarjeta.css';/* empty css */
|
|
6
7
|
/* empty css */
|
|
7
8
|
import "../../../cards/tarjeta/seccion-tarjeta/SeccionTarjeta.js";
|
|
@@ -9,7 +10,7 @@ import "../../../cards/tarjeta/seccion-tarjeta/SeccionTarjeta.js";
|
|
|
9
10
|
/* empty css */
|
|
10
11
|
/* empty css */
|
|
11
12
|
/* empty css */
|
|
12
|
-
import { TarjetaInfo as
|
|
13
|
+
import { TarjetaInfo as S } from "../../../cards/tarjeta-info/TarjetaInfo.js";
|
|
13
14
|
/* empty css */
|
|
14
15
|
import "../../../ui/subtitulo/Subtitulo.js";
|
|
15
16
|
/* empty css */
|
|
@@ -21,58 +22,70 @@ import "react-router-dom";
|
|
|
21
22
|
/* empty css */
|
|
22
23
|
import "../../../index-Bn9ixj44.js";
|
|
23
24
|
/* empty css */
|
|
24
|
-
import { Animacion as
|
|
25
|
-
const
|
|
26
|
-
const [
|
|
27
|
-
if (!(
|
|
28
|
-
|
|
25
|
+
import { Animacion as $ } from "../../../ui/animacion/Animacion.js";
|
|
26
|
+
const ar = ({ radicado: m, onDocumentoClick: o, setView: F, setTraceData: a, setTraceLoading: c }) => {
|
|
27
|
+
const [f, y] = l([]), [s, h] = l(!1), [p, _] = l(!1), [u, x] = l(null), [e, N] = l(!1), b = `${m.numero_radicado} – ${m.fecha_asignacion}`, v = async () => {
|
|
28
|
+
if (!(p || s)) {
|
|
29
|
+
h(!0), x(null);
|
|
29
30
|
try {
|
|
30
|
-
const r = await
|
|
31
|
-
|
|
31
|
+
const r = await I(m.llave_radicado, h);
|
|
32
|
+
y(Array.isArray(r) ? r : []), _(!0);
|
|
32
33
|
} catch {
|
|
33
|
-
|
|
34
|
+
x("No se pudieron cargar los documentos."), y([]), _(!0);
|
|
34
35
|
} finally {
|
|
35
|
-
|
|
36
|
+
h(!1);
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
};
|
|
39
|
-
return
|
|
40
|
-
|
|
41
|
-
}, [
|
|
40
|
+
return w(() => {
|
|
41
|
+
e && !p && !s && v();
|
|
42
|
+
}, [e]), /* @__PURE__ */ t(
|
|
42
43
|
"div",
|
|
43
44
|
{
|
|
44
45
|
onClick: (r) => {
|
|
45
|
-
!r.target.closest(".file_container_qy") && !
|
|
46
|
+
!r.target.closest(".file_container_qy") && !e && N(!0);
|
|
46
47
|
},
|
|
47
|
-
style: { cursor:
|
|
48
|
-
children: /* @__PURE__ */
|
|
49
|
-
|
|
48
|
+
style: { cursor: e ? "default" : "pointer" },
|
|
49
|
+
children: /* @__PURE__ */ g(
|
|
50
|
+
S,
|
|
50
51
|
{
|
|
51
|
-
icon:
|
|
52
|
-
label:
|
|
53
|
-
show:
|
|
52
|
+
icon: R,
|
|
53
|
+
label: b,
|
|
54
|
+
show: e,
|
|
55
|
+
extraItem: /* @__PURE__ */ t(E, { style: { cursor: "pointer", marginRight: "1rem" }, onClick: async (r) => {
|
|
56
|
+
var n, d;
|
|
57
|
+
if (r.stopPropagation(), a && a(null), c && c(!0), F(1), a)
|
|
58
|
+
try {
|
|
59
|
+
const i = await P(m.numero_radicado), j = (((n = i == null ? void 0 : i.inProgress) == null ? void 0 : n.length) || 0) + (((d = i == null ? void 0 : i.completed) == null ? void 0 : d.length) || 0) > 0;
|
|
60
|
+
a(j ? i : null);
|
|
61
|
+
} catch (i) {
|
|
62
|
+
console.error(i), a(null);
|
|
63
|
+
} finally {
|
|
64
|
+
c && c(!1);
|
|
65
|
+
}
|
|
66
|
+
} }),
|
|
54
67
|
children: [
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
68
|
+
e && s && /* @__PURE__ */ t("div", { className: "aux-radicados__loading", children: /* @__PURE__ */ t($, { type: "loading_duck", width: 200 }) }),
|
|
69
|
+
e && u && /* @__PURE__ */ t("p", { className: "text-danger mb-0", children: u }),
|
|
70
|
+
e && p && !s && f.length > 0 && /* @__PURE__ */ t("div", { className: "aux-radicados__lista", children: f.map((r, n) => /* @__PURE__ */ g(
|
|
58
71
|
"div",
|
|
59
72
|
{
|
|
60
73
|
className: "file_container_qy",
|
|
61
|
-
onClick: () =>
|
|
74
|
+
onClick: () => o == null ? void 0 : o(r),
|
|
62
75
|
role: "button",
|
|
63
76
|
tabIndex: 0,
|
|
64
|
-
onKeyDown: (
|
|
77
|
+
onKeyDown: (d) => d.key === "Enter" && (o == null ? void 0 : o(r)),
|
|
65
78
|
children: [
|
|
66
|
-
/* @__PURE__ */
|
|
67
|
-
/* @__PURE__ */ t(
|
|
79
|
+
/* @__PURE__ */ g("div", { className: "icon_name_container_qy", children: [
|
|
80
|
+
/* @__PURE__ */ t(q, {}),
|
|
68
81
|
/* @__PURE__ */ t("span", { children: r.nombre ?? "Documento" })
|
|
69
82
|
] }),
|
|
70
|
-
/* @__PURE__ */ t(
|
|
83
|
+
/* @__PURE__ */ t(A, {})
|
|
71
84
|
]
|
|
72
85
|
},
|
|
73
|
-
r.id_docpersona ??
|
|
86
|
+
r.id_docpersona ?? n
|
|
74
87
|
)) }),
|
|
75
|
-
|
|
88
|
+
e && p && !s && f.length === 0 && !u && /* @__PURE__ */ t("p", { className: "text-muted mb-0", children: "No hay documentos para este radicado." })
|
|
76
89
|
]
|
|
77
90
|
}
|
|
78
91
|
)
|
|
@@ -80,5 +93,5 @@ const D = ({ radicado: n, onDocumentoClick: e }) => {
|
|
|
80
93
|
);
|
|
81
94
|
};
|
|
82
95
|
export {
|
|
83
|
-
|
|
96
|
+
ar as TarjetaRadicado
|
|
84
97
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
async function n(e) {
|
|
2
|
+
const a = "https://protecdoc.unp.gov.co/soaint-sgd-web-api-gateway/apis/tracking-gateway-api/filter", s = new URLSearchParams({
|
|
3
|
+
objectId: e,
|
|
4
|
+
referred: "true",
|
|
5
|
+
status: "true"
|
|
6
|
+
}), o = `${a}?${s.toString()}`, t = await fetch(o, { method: "GET" });
|
|
7
|
+
if (!t.ok)
|
|
8
|
+
throw new Error(`Error fetching trazabilidad: ${t.status}`);
|
|
9
|
+
const r = await t.json();
|
|
10
|
+
return !r || r.inProgress == null && r.completed == null ? { inProgress: [], completed: [] } : {
|
|
11
|
+
inProgress: Array.isArray(r.inProgress) ? r.inProgress : [],
|
|
12
|
+
completed: Array.isArray(r.completed) ? r.completed : []
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
n as fetchTrazabilidad
|
|
17
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as l, Fragment as F, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as C, useRef as k, useEffect as L } from "react";
|
|
3
3
|
import { a as O } from "../../index-Cxj2q-tb.js";
|
|
4
|
-
import {
|
|
4
|
+
import { b as P, c as M, d as q, e as H, f as N, g as S, h as Z, F as G } from "../../index-qp3PAlMa.js";
|
|
5
5
|
import '../../assets/EcoModalStyles.css';import '../../assets/Modal.css';import '../../assets/ContenedorVentana.css';import '../../assets/IconoTooltip.css';import '../../assets/ItemsModal.css';import '../../assets/Bootstrap.css';import '../../assets/Paginador.css';import '../../assets/ContenidoModal.css';import '../../assets/Encabezado.css';import '../../assets/Logo.css';/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
7
|
import "../../ui/subtitulo/Subtitulo.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { ModalDocumento as
|
|
4
|
-
import { RadicadosTarjetas as
|
|
5
|
-
import { F as
|
|
1
|
+
import { jsx as e, jsxs as s, Fragment as u } from "react/jsx-runtime";
|
|
2
|
+
import { useState as d, useEffect as P } from "react";
|
|
3
|
+
import { ModalDocumento as R } from "./ModalDocumento.js";
|
|
4
|
+
import { RadicadosTarjetas as $ } from "./AuxRadicadosComponents/RadicadosTarjetas.js";
|
|
5
|
+
import { F as j, a as k } from "../../index-qp3PAlMa.js";
|
|
6
6
|
import "../../auth/services/User.js";
|
|
7
|
-
import '../../assets/Modal.css';import '../../assets/ContenedorVentana.css';import '../../assets/IconoTooltip.css';import '../../assets/ItemsModal.css';import '../../assets/Paginador.css';import '../../assets/Encabezado.css';import '../../assets/UnpHistorico.css';import '../../assets/SeccionTarjetaLectura.css';import '../../assets/Logo.css';import '../../assets/TarjetaLectura.css';import '../../assets/ContenedorTarjeta.css';import '../../assets/Bootstrap.css';import '../../assets/Tarjeta.css';/* empty css */
|
|
7
|
+
import '../../assets/Trazabilidad.css';import '../../assets/Modal.css';import '../../assets/ContenedorVentana.css';import '../../assets/IconoTooltip.css';import '../../assets/ItemsModal.css';import '../../assets/Paginador.css';import '../../assets/Encabezado.css';import '../../assets/UnpHistorico.css';import '../../assets/SeccionTarjetaLectura.css';import '../../assets/Logo.css';import '../../assets/TarjetaLectura.css';import '../../assets/ContenedorTarjeta.css';import '../../assets/Bootstrap.css';import '../../assets/Tarjeta.css';/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
import "../../cards/tarjeta/seccion-tarjeta/SeccionTarjeta.js";
|
|
10
10
|
/* empty css */
|
|
@@ -14,75 +14,108 @@ import "../../cards/tarjeta/seccion-tarjeta/SeccionTarjeta.js";
|
|
|
14
14
|
/* empty css */
|
|
15
15
|
/* empty css */
|
|
16
16
|
import "../../ui/subtitulo/Subtitulo.js";
|
|
17
|
-
import { ContenidoModal as
|
|
17
|
+
import { ContenidoModal as A } from "../../ui/contenido-modal/ContenidoModal.js";
|
|
18
18
|
/* empty css */
|
|
19
19
|
import "react-router-dom";
|
|
20
20
|
/* empty css */
|
|
21
21
|
/* empty css */
|
|
22
22
|
/* empty css */
|
|
23
23
|
/* empty css */
|
|
24
|
-
import { EcoModal as
|
|
25
|
-
import "../../ui/animacion/Animacion.js";
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
import { EcoModal as E } from "../../tables/tabla-registros/modal-v2/EcoModal.js";
|
|
25
|
+
import { Animacion as L } from "../../ui/animacion/Animacion.js";
|
|
26
|
+
/* empty css */
|
|
27
|
+
const le = ({ row: i }) => {
|
|
28
|
+
const [S, l] = d(!1), [o, f] = d(null), [g, N] = d(!1), [m, M] = d(null), [z, x] = d(!1), p = Array.isArray(i == null ? void 0 : i.radicados) ? i.radicados : [], D = (t) => {
|
|
29
|
+
if (!t) return "";
|
|
30
|
+
const n = new Date(Number(t)), v = n.getFullYear(), c = String(n.getMonth() + 1).padStart(2, "0"), a = String(n.getDate()).padStart(2, "0"), r = String(n.getHours()).padStart(2, "0"), h = String(n.getMinutes()).padStart(2, "0");
|
|
31
|
+
return `${v}-${c}-${a} ${r}:${h}`;
|
|
32
|
+
};
|
|
33
|
+
P(() => {
|
|
34
|
+
f(null), l(!1);
|
|
35
|
+
}, [i, p.length]);
|
|
36
|
+
const T = (t) => {
|
|
37
|
+
f({
|
|
33
38
|
data: "",
|
|
34
|
-
mimeType:
|
|
35
|
-
name:
|
|
36
|
-
base64:
|
|
37
|
-
}),
|
|
38
|
-
},
|
|
39
|
+
mimeType: t.mime_type,
|
|
40
|
+
name: t.nombre,
|
|
41
|
+
base64: t.archivo_base64
|
|
42
|
+
}), l(!0);
|
|
43
|
+
}, _ = [
|
|
39
44
|
{
|
|
40
45
|
label: "Documentación de los radicados",
|
|
41
|
-
icon:
|
|
42
|
-
content: () =>
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
|
|
46
|
+
icon: j,
|
|
47
|
+
content: (t) => p.length > 0 ? /* @__PURE__ */ s(u, { children: [
|
|
48
|
+
/* @__PURE__ */ e(
|
|
49
|
+
E,
|
|
45
50
|
{
|
|
46
|
-
show:
|
|
47
|
-
onHide: () =>
|
|
48
|
-
title: (
|
|
51
|
+
show: S,
|
|
52
|
+
onHide: () => l(!1),
|
|
53
|
+
title: (o == null ? void 0 : o.name) || "",
|
|
49
54
|
modalType: "secondary",
|
|
50
55
|
primaryPosition: "left",
|
|
51
56
|
closeModalOut: !0,
|
|
52
|
-
isMaximized:
|
|
53
|
-
onToggleMaximize: () =>
|
|
57
|
+
isMaximized: g,
|
|
58
|
+
onToggleMaximize: () => N(!g),
|
|
54
59
|
showMaximizeButton: !0,
|
|
55
60
|
otherModalOpen: !0,
|
|
56
61
|
hasBody: !1,
|
|
57
|
-
children:
|
|
58
|
-
|
|
62
|
+
children: o && /* @__PURE__ */ e(
|
|
63
|
+
R,
|
|
59
64
|
{
|
|
60
|
-
data:
|
|
61
|
-
mimeType:
|
|
62
|
-
name:
|
|
63
|
-
base64:
|
|
65
|
+
data: o.data,
|
|
66
|
+
mimeType: o.mimeType,
|
|
67
|
+
name: o.name,
|
|
68
|
+
base64: o.base64
|
|
64
69
|
}
|
|
65
70
|
)
|
|
66
71
|
}
|
|
67
72
|
),
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
-
|
|
73
|
+
/* @__PURE__ */ e(
|
|
74
|
+
$,
|
|
70
75
|
{
|
|
71
|
-
radicados:
|
|
72
|
-
onDocumentoClick:
|
|
76
|
+
radicados: p,
|
|
77
|
+
onDocumentoClick: T,
|
|
78
|
+
setView: t,
|
|
79
|
+
setTraceData: M,
|
|
80
|
+
setTraceLoading: x
|
|
73
81
|
}
|
|
74
82
|
)
|
|
75
|
-
] }) : /* @__PURE__ */
|
|
83
|
+
] }) : /* @__PURE__ */ e(u, { children: "Sin información adicional para los radicados" })
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
label: "Trazabilidad",
|
|
87
|
+
content: () => /* @__PURE__ */ e(u, { children: z ? /* @__PURE__ */ e("div", { className: "aux-radicados__loading", children: /* @__PURE__ */ e(L, { type: "loading_duck", width: 200 }) }) : m ? /* @__PURE__ */ e("div", { className: "vp-trazabilidad-container", children: (() => {
|
|
88
|
+
const t = (m.inProgress || []).map((a) => ({ ...a, _inProgress: !0 })), v = (m.completed || []).map((a) => ({ ...a, _inProgress: !1 })).sort((a, r) => (r.endDate || 0) - (a.endDate || 0)), c = [...t, ...v];
|
|
89
|
+
return /* @__PURE__ */ e("div", { children: c.map((a, r) => {
|
|
90
|
+
var y;
|
|
91
|
+
const h = a._inProgress ? "En progreso" : ((y = a.trackState) == null ? void 0 : y.state) ?? "", b = a.subsectionObject ?? "", F = a.user ?? "", C = D(a.endDate);
|
|
92
|
+
return /* @__PURE__ */ s("div", { className: "vp-timeline-event", children: [
|
|
93
|
+
/* @__PURE__ */ s("div", { className: "vp-timeline-left", children: [
|
|
94
|
+
/* @__PURE__ */ e("div", { className: "vp-point-vertical" }),
|
|
95
|
+
r < c.length - 1 && /* @__PURE__ */ e("div", { className: "vp-line-vertical" })
|
|
96
|
+
] }),
|
|
97
|
+
/* @__PURE__ */ s("div", { className: "vp-timeline-content", children: [
|
|
98
|
+
/* @__PURE__ */ e("div", { style: { display: "flex" }, children: /* @__PURE__ */ e("div", { className: "vp-icon-circle", children: /* @__PURE__ */ e(k, {}) }) }),
|
|
99
|
+
/* @__PURE__ */ s("div", { className: "vp-event-details", children: [
|
|
100
|
+
/* @__PURE__ */ e("div", { className: "vp-event-estado fw-bold", children: h }),
|
|
101
|
+
b && /* @__PURE__ */ e("div", { className: "vp-event-observacion", children: b }),
|
|
102
|
+
/* @__PURE__ */ e("div", { className: "vp-event-fecha text-muted small", children: F }),
|
|
103
|
+
/* @__PURE__ */ e("div", { className: "vp-event-fecha text-muted small", children: C })
|
|
104
|
+
] })
|
|
105
|
+
] })
|
|
106
|
+
] }, a.trackId ?? r);
|
|
107
|
+
}) });
|
|
108
|
+
})() }) : /* @__PURE__ */ e("div", { children: "No hay trazabilidad" }) })
|
|
76
109
|
}
|
|
77
110
|
];
|
|
78
|
-
return /* @__PURE__ */
|
|
79
|
-
|
|
111
|
+
return /* @__PURE__ */ e(
|
|
112
|
+
A,
|
|
80
113
|
{
|
|
81
|
-
title: (
|
|
82
|
-
modalContent:
|
|
114
|
+
title: (i == null ? void 0 : i.numeroRegistro) ?? "Correspondencia",
|
|
115
|
+
modalContent: _
|
|
83
116
|
}
|
|
84
117
|
);
|
|
85
118
|
};
|
|
86
119
|
export {
|
|
87
|
-
|
|
120
|
+
le as ModalRadicado
|
|
88
121
|
};
|