react-ecosistema-unp 2.6.1 → 2.7.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/README.md +3 -1
- package/dist/{AppList-CNtk-CBh.js → AppList-BMiq1ohd.js} +65 -65
- package/dist/{Button-eLVX04GZ.js → Button-CFf-9Lsg.js} +1 -1
- package/dist/{Card-_JzS9Ssz.js → Card-pj1hogT6.js} +2 -2
- package/dist/{CardBody-CUEPjltD.js → CardBody-osBHz8Sj.js} +1 -1
- package/dist/FormCheck-C44kvYaC.js +109 -0
- package/dist/{FormControl-DshWdHuR.js → FormControl-CjlQ5vZ8.js} +6 -6
- package/dist/{FormGroup-B8RAswur.js → FormGroup-BKpeUcMi.js} +3 -3
- package/dist/{Spinner-D69BfVXa.js → Spinner-DlaZVI7E.js} +1 -1
- package/dist/{TabPane-D71zhQGl.js → TabPane-C7rqu9vB.js} +1 -1
- package/dist/{Table-cUZFLrPi.js → Table-CYSh6C16.js} +1 -1
- package/dist/ThemeProvider-D8TYBK1p.js +41 -0
- package/dist/assets/SmartTextArea.css +1 -1
- package/dist/cards/tarjeta/Tarjeta.js +3 -3
- package/dist/cards/tarjeta/nuevo-elemento/NuevoElemento.js +2 -2
- package/dist/cards/tarjeta/seccion-tarjeta/SeccionTarjeta.js +1 -1
- package/dist/cards/tarjeta-info/TarjetaInfo.js +3 -3
- package/dist/cards/tarjeta-lectura/TarjetaLectura.js +1 -1
- package/dist/data/tarjeta-datos/TarjetaDatos.js +2 -2
- package/dist/ia/diccionario/analisisRiesgo.js +245 -0
- package/dist/ia/diccionario/index.js +9 -0
- package/dist/ia/diccionario/tipos.js +4 -0
- package/dist/ia/larissa/larissaService.js +160 -0
- package/dist/ia/smart-textarea/DiffResult.js +7 -0
- package/dist/ia/smart-textarea/SmartTextArea.js +550 -0
- package/dist/ia/smart-textarea/diff.js +55 -0
- package/dist/ia.js +26 -0
- package/dist/{index-HaNVi1BU.js → index-DBLHT45t.js} +61 -61
- package/dist/lib/ia/diccionario/analisisRiesgo.d.ts +170 -0
- package/dist/lib/ia/diccionario/index.d.ts +10 -0
- package/dist/lib/ia/diccionario/tipos.d.ts +40 -0
- package/dist/lib/ia/larissa/larissaService.d.ts +153 -0
- package/dist/lib/ia/smart-textarea/DiffResult.d.ts +7 -0
- package/dist/lib/ia/smart-textarea/SmartTextArea.d.ts +82 -0
- package/dist/lib/ia/smart-textarea/diff.d.ts +15 -0
- package/dist/lib/ia.d.ts +8 -0
- package/dist/lib/ui.d.ts +0 -2
- package/dist/shared/app-list/AppList.js +2 -2
- package/dist/shared/breadcrumb/Breadcrumb.js +1 -1
- package/dist/shared/iconos-sistema/IconosSistema.js +1 -1
- package/dist/shared/iconos-sistema/logout-button/LogoutButton.js +1 -1
- package/dist/shared/menu-lateral/MenuLateral.js +3 -4
- package/dist/shared/notificacion-usuario/NotificacionUsuario.js +20 -21
- package/dist/shared/tab-ventana/TabVentana.js +1 -1
- package/dist/shared/ventana-tabs/VentanaTabs.js +3 -3
- package/dist/tables/custom-data-table/CustomDataTable.js +4 -5
- package/dist/tables/custom-data-table-split/CustomDataTableSplit.js +4 -5
- package/dist/tables/eco-data-table/components/EcoBandejaEncabezado.js +3 -4
- package/dist/tables/eco-data-table/components/EcoDataTable/EcoDataTable.js +14 -14
- package/dist/tables/eco-data-table/components/EcoDataTableLoading.js +1 -1
- package/dist/tables/eco-data-table/components/EcoDataTablePageStatus.js +1 -1
- package/dist/tables/tabla-registros/buscador/Buscador.js +4 -4
- package/dist/tables/tabla-registros/encabezado-tabla/EncabezadoTabla.js +3 -4
- package/dist/tables/tabla-registros/modal-v2/EcoModal.js +8 -8
- package/dist/tables/tabla-registros/tabla/Tabla.js +17 -17
- package/dist/ui/alertas/AlertaFormulario.js +1 -1
- package/dist/ui/contenido-modal/ContenidoModal.js +1 -1
- package/dist/ui/contenido-modal/ContenidoModalv0.1.js +1 -1
- package/dist/ui/contenido-modal-v2/ContenidoModalV2.js +3 -3
- package/dist/ui/contenido-modal-v2/ModalV2Menu.js +1 -1
- package/dist/ui/icono-tooltip/IconoTooltip.js +24 -24
- package/dist/ui/items-modal/ItemsModal.js +1 -1
- package/dist/ui/nav-formularios-lateral/NavFormulariosLateral.js +1 -1
- package/dist/ui/notificacion-popover-v2/NotificacionPopoverV2.js +55 -55
- package/dist/ui/paginador/Paginador.js +2 -2
- package/dist/ui/seccion-formulario/SeccionFormulario.js +1 -1
- package/dist/ui/status-filter-bar/StatusFilterBar.js +7 -7
- package/dist/ui/status-semaphore/StatusSemaphore.js +1 -1
- package/dist/ui/stepper-v2/StepperV2.js +2 -2
- package/dist/ui.js +6 -8
- package/dist/utils/eco-provider/EcoContext.js +3 -4
- package/dist/utils/modal-radicados/AuxRadicadosComponents/TarjetaRadicado.js +11 -12
- package/dist/utils/modal-radicados/DocumentoVisorEstado.js +4 -5
- package/dist/utils/modal-radicados/ModalDocumento.js +10 -10
- package/dist/utils/modal-radicados/ModalRadicado.js +152 -254
- package/dist/utils/unp-historico/UnpHistorico.js +4 -5
- package/package.json +5 -1
- package/dist/ThemeProvider-Cv61y4Uy.js +0 -27
- package/dist/lib/ui/smart-textarea/SmartTextArea.d.ts +0 -17
- package/dist/ui/smart-textarea/SmartTextArea.js +0 -123
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import { jsx as e, jsxs as a, Fragment as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import '../../assets/Trazabilidad.css';import '../../assets/SmartTextArea.css';import '../../assets/EcoFooter.css';import '../../assets/ResumenEvaluacion.css';import '../../assets/AlertaFormulario.css';import '../../assets/SeccionFormulario.css';import '../../assets/NotificacionPopoverV2.css';import '../../assets/CardGestionLateral.css';import '../../assets/NavFormulariosLateral.css';import '../../assets/DatosBasicosCard.css';import '../../assets/StatusFilterBar.css';import '../../assets/PaginadorV2.css';import '../../assets/StatusSemaphore.css';import '../../assets/TableSkeleton.css';import '../../assets/Modal.css';import '../../assets/ContenedorVentana.css';import '../../assets/IconoTooltip.css';import '../../assets/ItemsModal.css';import '../../assets/StepperV2.css';import '../../assets/Paginador.css';import '../../assets/ContenidoModalV2.css';import '../../assets/Encabezado.css';import '../../assets/SeccionTarjetaLectura.css';import '../../assets/Logo.css';import '../../assets/TarjetaLectura.css';import '../../assets/Bootstrap.css';import '../../assets/Tarjeta.css';/* empty css */
|
|
1
|
+
import { jsx as e, jsxs as a, Fragment as b } from "react/jsx-runtime";
|
|
2
|
+
import { useState as p, useRef as ee, useEffect as A } from "react";
|
|
3
|
+
import { ModalDocumento as te, getIconByType as ae } from "./ModalDocumento.js";
|
|
4
|
+
import { RadicadosTarjetas as ie } from "./AuxRadicadosComponents/RadicadosTarjetas.js";
|
|
5
|
+
import { F as re, a as ne, b as L, c as oe, d as ce, e as de, f as se, g as le, h as me, i as pe } from "../../index-DBLHT45t.js";
|
|
6
|
+
import { getUserToken as O } from "../../auth/services/User.js";
|
|
7
|
+
import { fetchDocumentoBinario as he } from "./AuxRadicadosComponents/fetchDocumentosProtecdoc.js";
|
|
8
|
+
import '../../assets/Trazabilidad.css';import '../../assets/EcoFooter.css';import '../../assets/ResumenEvaluacion.css';import '../../assets/AlertaFormulario.css';import '../../assets/SeccionFormulario.css';import '../../assets/NotificacionPopoverV2.css';import '../../assets/CardGestionLateral.css';import '../../assets/NavFormulariosLateral.css';import '../../assets/DatosBasicosCard.css';import '../../assets/StatusFilterBar.css';import '../../assets/PaginadorV2.css';import '../../assets/StatusSemaphore.css';import '../../assets/TableSkeleton.css';import '../../assets/Modal.css';import '../../assets/ContenedorVentana.css';import '../../assets/IconoTooltip.css';import '../../assets/ItemsModal.css';import '../../assets/StepperV2.css';import '../../assets/Paginador.css';import '../../assets/ContenidoModalV2.css';import '../../assets/Encabezado.css';import '../../assets/SeccionTarjetaLectura.css';import '../../assets/Logo.css';import '../../assets/TarjetaLectura.css';import '../../assets/Bootstrap.css';import '../../assets/Tarjeta.css';/* empty css */
|
|
10
9
|
/* empty css */
|
|
11
10
|
import "../../cards/tarjeta/seccion-tarjeta/SeccionTarjeta.js";
|
|
12
|
-
import { ContenedorTarjeta as
|
|
11
|
+
import { ContenedorTarjeta as ue } from "../../cards/tarjeta/contenedor-tarjeta/ContenedorTarjeta.js";
|
|
13
12
|
/* empty css */
|
|
14
13
|
/* empty css */
|
|
15
14
|
/* empty css */
|
|
16
|
-
import { TarjetaInfo as
|
|
15
|
+
import { TarjetaInfo as be } from "../../cards/tarjeta-info/TarjetaInfo.js";
|
|
17
16
|
/* empty css */
|
|
18
|
-
import { Subtitulo as
|
|
19
|
-
import { ContenidoModal as
|
|
17
|
+
import { Subtitulo as h } from "../../ui/subtitulo/Subtitulo.js";
|
|
18
|
+
import { ContenidoModal as fe } from "../../ui/contenido-modal/ContenidoModal.js";
|
|
20
19
|
/* empty css */
|
|
21
20
|
/* empty css */
|
|
22
21
|
/* empty css */
|
|
@@ -25,8 +24,8 @@ import "react-router-dom";
|
|
|
25
24
|
/* empty css */
|
|
26
25
|
/* empty css */
|
|
27
26
|
/* empty css */
|
|
28
|
-
import { EcoModal as
|
|
29
|
-
import { Animacion as
|
|
27
|
+
import { EcoModal as ye } from "../../tables/tabla-registros/modal-v2/EcoModal.js";
|
|
28
|
+
import { Animacion as D } from "../../ui/animacion/Animacion.js";
|
|
30
29
|
/* empty css */
|
|
31
30
|
/* empty css */
|
|
32
31
|
/* empty css */
|
|
@@ -40,159 +39,58 @@ import "../sanitizar-html/sanitizarHtml.js";
|
|
|
40
39
|
/* empty css */
|
|
41
40
|
/* empty css */
|
|
42
41
|
/* empty css */
|
|
43
|
-
|
|
44
|
-
import { logger as w } from "../logger/logger.js";
|
|
42
|
+
import { logger as B } from "../logger/logger.js";
|
|
45
43
|
/* empty css */
|
|
46
|
-
import { T as
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
const J =
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
type: g = "checkbox",
|
|
56
|
-
isValid: h = !1,
|
|
57
|
-
isInvalid: s = !1,
|
|
58
|
-
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
59
|
-
as: u = "input",
|
|
60
|
-
..._
|
|
61
|
-
}, R) => {
|
|
62
|
-
const {
|
|
63
|
-
controlId: b
|
|
64
|
-
} = H(M);
|
|
65
|
-
return n = L(n, "form-check-input"), /* @__PURE__ */ e(u, {
|
|
66
|
-
..._,
|
|
67
|
-
ref: R,
|
|
68
|
-
type: g,
|
|
69
|
-
id: r || b,
|
|
70
|
-
className: K(p, n, h && "is-valid", s && "is-invalid")
|
|
71
|
-
});
|
|
72
|
-
});
|
|
73
|
-
J.displayName = "FormCheckInput";
|
|
74
|
-
const U = /* @__PURE__ */ V.forwardRef(({
|
|
75
|
-
bsPrefix: r,
|
|
76
|
-
className: n,
|
|
77
|
-
htmlFor: p,
|
|
78
|
-
...g
|
|
79
|
-
}, h) => {
|
|
80
|
-
const {
|
|
81
|
-
controlId: s
|
|
82
|
-
} = H(M);
|
|
83
|
-
return r = L(r, "form-check-label"), /* @__PURE__ */ e("label", {
|
|
84
|
-
...g,
|
|
85
|
-
ref: h,
|
|
86
|
-
htmlFor: p || s,
|
|
87
|
-
className: K(n, r)
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
U.displayName = "FormCheckLabel";
|
|
91
|
-
const te = /* @__PURE__ */ V.forwardRef(({
|
|
92
|
-
id: r,
|
|
93
|
-
bsPrefix: n,
|
|
94
|
-
bsSwitchPrefix: p,
|
|
95
|
-
inline: g = !1,
|
|
96
|
-
reverse: h = !1,
|
|
97
|
-
disabled: s = !1,
|
|
98
|
-
isValid: u = !1,
|
|
99
|
-
isInvalid: _ = !1,
|
|
100
|
-
feedbackTooltip: R = !1,
|
|
101
|
-
feedback: b,
|
|
102
|
-
feedbackType: T,
|
|
103
|
-
className: G,
|
|
104
|
-
style: O,
|
|
105
|
-
title: P = "",
|
|
106
|
-
type: f = "checkbox",
|
|
107
|
-
label: v,
|
|
108
|
-
children: j,
|
|
109
|
-
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
110
|
-
as: I = "input",
|
|
111
|
-
...k
|
|
112
|
-
}, C) => {
|
|
113
|
-
n = L(n, "form-check"), p = L(p, "form-switch");
|
|
114
|
-
const {
|
|
115
|
-
controlId: D
|
|
116
|
-
} = H(M), A = se(() => ({
|
|
117
|
-
controlId: r || D
|
|
118
|
-
}), [D, r]), N = !j && v != null && v !== !1 || ke(j, U), F = /* @__PURE__ */ e(J, {
|
|
119
|
-
...k,
|
|
120
|
-
type: f === "switch" ? "checkbox" : f,
|
|
121
|
-
ref: C,
|
|
122
|
-
isValid: u,
|
|
123
|
-
isInvalid: _,
|
|
124
|
-
disabled: s,
|
|
125
|
-
as: I
|
|
126
|
-
});
|
|
127
|
-
return /* @__PURE__ */ e(M.Provider, {
|
|
128
|
-
value: A,
|
|
129
|
-
children: /* @__PURE__ */ e("div", {
|
|
130
|
-
style: O,
|
|
131
|
-
className: K(G, N && n, g && `${n}-inline`, h && `${n}-reverse`, f === "switch" && p),
|
|
132
|
-
children: j || /* @__PURE__ */ a(S, {
|
|
133
|
-
children: [F, N && /* @__PURE__ */ e(U, {
|
|
134
|
-
title: P,
|
|
135
|
-
children: v
|
|
136
|
-
}), b && /* @__PURE__ */ e(Te, {
|
|
137
|
-
type: T,
|
|
138
|
-
tooltip: R,
|
|
139
|
-
children: b
|
|
140
|
-
})]
|
|
141
|
-
})
|
|
142
|
-
})
|
|
143
|
-
});
|
|
144
|
-
});
|
|
145
|
-
te.displayName = "FormCheck";
|
|
146
|
-
const Ce = Object.assign(te, {
|
|
147
|
-
Input: J,
|
|
148
|
-
Label: U
|
|
149
|
-
}), Rt = ({ row: r, showGestionCard: n = !1, protecdocVersion: p = "v1" }) => {
|
|
150
|
-
var Z;
|
|
151
|
-
const [g, h] = y(!1), [s, u] = y(null), [_, R] = y(!1), b = de(null), [T, G] = y(null), [O, P] = y(!1), [f, v] = y([]), [j, I] = y(!1), [k, C] = y({}), [D, A] = y({}), N = Array.isArray(r == null ? void 0 : r.radicados) ? r.radicados : [], F = ((Z = r == null ? void 0 : r.registro) == null ? void 0 : Z.numeroRegistro) ?? (r == null ? void 0 : r.numeroRegistro), E = `${window.location.protocol}//${window.location.host}/api-gateway/`, ae = (o) => {
|
|
152
|
-
if (!o) return "";
|
|
153
|
-
const t = new Date(Number(o)), m = t.getFullYear(), c = String(t.getMonth() + 1).padStart(2, "0"), i = String(t.getDate()).padStart(2, "0"), d = String(t.getHours()).padStart(2, "0"), l = String(t.getMinutes()).padStart(2, "0");
|
|
154
|
-
return `${m}-${c}-${i} ${d}:${l}`;
|
|
44
|
+
import { T as g } from "../../Table-CYSh6C16.js";
|
|
45
|
+
import { F as ge } from "../../FormGroup-BKpeUcMi.js";
|
|
46
|
+
import { F as ve } from "../../FormCheck-C44kvYaC.js";
|
|
47
|
+
const pt = ({ row: o, showGestionCard: m = !1, protecdocVersion: P = "v1" }) => {
|
|
48
|
+
var $;
|
|
49
|
+
const [E, f] = p(!1), [l, u] = p(null), [M, q] = p(!1), N = ee(null), [T, H] = p(null), [V, K] = p(!1), [y, j] = p([]), [J, k] = p(!1), [R, F] = p({}), [z, C] = p({}), x = Array.isArray(o == null ? void 0 : o.radicados) ? o.radicados : [], S = (($ = o == null ? void 0 : o.registro) == null ? void 0 : $.numeroRegistro) ?? (o == null ? void 0 : o.numeroRegistro), _ = `${window.location.protocol}//${window.location.host}/api-gateway/`, Y = (r) => {
|
|
50
|
+
if (!r) return "";
|
|
51
|
+
const t = new Date(Number(r)), s = t.getFullYear(), n = String(t.getMonth() + 1).padStart(2, "0"), i = String(t.getDate()).padStart(2, "0"), c = String(t.getHours()).padStart(2, "0"), d = String(t.getMinutes()).padStart(2, "0");
|
|
52
|
+
return `${s}-${n}-${i} ${c}:${d}`;
|
|
155
53
|
};
|
|
156
|
-
|
|
157
|
-
u(null),
|
|
158
|
-
}, [
|
|
159
|
-
if (!
|
|
160
|
-
|
|
54
|
+
A(() => {
|
|
55
|
+
u(null), f(!1);
|
|
56
|
+
}, [o, x.length]), A(() => {
|
|
57
|
+
if (!m || !S) {
|
|
58
|
+
j([]), F({});
|
|
161
59
|
return;
|
|
162
60
|
}
|
|
163
61
|
(async () => {
|
|
164
|
-
|
|
62
|
+
k(!0);
|
|
165
63
|
try {
|
|
166
|
-
const t = await fetch(`${
|
|
64
|
+
const t = await fetch(`${_}gsc/gestionap/${S}`, {
|
|
167
65
|
method: "GET",
|
|
168
66
|
headers: {
|
|
169
|
-
Authorization: `Bearer ${
|
|
67
|
+
Authorization: `Bearer ${O()}`,
|
|
170
68
|
"BK-Service": "api-gsc"
|
|
171
69
|
}
|
|
172
70
|
});
|
|
173
71
|
if (!t.ok)
|
|
174
72
|
throw new Error("Error al obtener datos de gestión");
|
|
175
|
-
const
|
|
176
|
-
|
|
73
|
+
const s = await t.json();
|
|
74
|
+
j(Array.isArray(s) ? s : []);
|
|
177
75
|
} catch (t) {
|
|
178
|
-
|
|
76
|
+
B.error("Error fetching gestion:", t), j([]);
|
|
179
77
|
} finally {
|
|
180
|
-
|
|
78
|
+
k(!1);
|
|
181
79
|
}
|
|
182
80
|
})();
|
|
183
|
-
}, [
|
|
184
|
-
!
|
|
185
|
-
const t =
|
|
186
|
-
if (!t ||
|
|
81
|
+
}, [m, S, _]), A(() => {
|
|
82
|
+
!m || y.length === 0 || y.forEach((r) => {
|
|
83
|
+
const t = r.id_gestion;
|
|
84
|
+
if (!t || R[t] || z[t])
|
|
187
85
|
return;
|
|
188
86
|
(async () => {
|
|
189
|
-
|
|
87
|
+
C((n) => ({ ...n, [t]: !0 }));
|
|
190
88
|
try {
|
|
191
|
-
const
|
|
89
|
+
const n = await fetch(`${_}usuario/archivo/`, {
|
|
192
90
|
method: "POST",
|
|
193
91
|
headers: {
|
|
194
92
|
"Content-Type": "application/json",
|
|
195
|
-
Authorization: `Bearer ${
|
|
93
|
+
Authorization: `Bearer ${O()}`,
|
|
196
94
|
"BK-Service": "api-doc"
|
|
197
95
|
},
|
|
198
96
|
body: JSON.stringify({
|
|
@@ -201,132 +99,132 @@ const Ce = Object.assign(te, {
|
|
|
201
99
|
grupo: 8001
|
|
202
100
|
})
|
|
203
101
|
});
|
|
204
|
-
if (!
|
|
102
|
+
if (!n.ok)
|
|
205
103
|
throw new Error("Error al obtener documentos de gestión");
|
|
206
|
-
const i = await
|
|
207
|
-
|
|
208
|
-
} catch (
|
|
209
|
-
|
|
104
|
+
const i = await n.json(), c = Array.isArray(i == null ? void 0 : i.documentos) ? i.documentos.filter((d) => !!d.archivo_base64) : [];
|
|
105
|
+
F((d) => ({ ...d, [t]: c }));
|
|
106
|
+
} catch (n) {
|
|
107
|
+
B.error("Error al obtener documentos de gestión:", n), F((i) => ({ ...i, [t]: [] }));
|
|
210
108
|
} finally {
|
|
211
|
-
|
|
109
|
+
C((n) => ({ ...n, [t]: !1 }));
|
|
212
110
|
}
|
|
213
111
|
})();
|
|
214
112
|
});
|
|
215
|
-
}, [
|
|
216
|
-
const
|
|
217
|
-
|
|
218
|
-
},
|
|
219
|
-
if (
|
|
113
|
+
}, [m, y, R, z, _]);
|
|
114
|
+
const U = () => {
|
|
115
|
+
N.current && (URL.revokeObjectURL(N.current), N.current = null), f(!1), u(null);
|
|
116
|
+
}, Z = async (r) => {
|
|
117
|
+
if (r.fuente === "legacy") {
|
|
220
118
|
u({
|
|
221
119
|
data: "",
|
|
222
|
-
mimeType:
|
|
223
|
-
name:
|
|
224
|
-
base64:
|
|
225
|
-
}),
|
|
120
|
+
mimeType: r.mime_type,
|
|
121
|
+
name: r.nombre,
|
|
122
|
+
base64: r.archivo_base64
|
|
123
|
+
}), f(!0);
|
|
226
124
|
return;
|
|
227
125
|
}
|
|
228
|
-
u(null),
|
|
126
|
+
u(null), f(!0);
|
|
229
127
|
try {
|
|
230
|
-
const t = await
|
|
231
|
-
|
|
232
|
-
const
|
|
128
|
+
const t = await he(r.id_documento, P), s = URL.createObjectURL(t);
|
|
129
|
+
N.current = s;
|
|
130
|
+
const n = r.tipoDocumento || t.type || "";
|
|
233
131
|
u({
|
|
234
132
|
data: "",
|
|
235
|
-
mimeType:
|
|
236
|
-
name:
|
|
133
|
+
mimeType: n,
|
|
134
|
+
name: r.nombreDocumento,
|
|
237
135
|
base64: "",
|
|
238
|
-
blobUrl:
|
|
136
|
+
blobUrl: s
|
|
239
137
|
});
|
|
240
138
|
} catch (t) {
|
|
241
|
-
|
|
139
|
+
B.error("Error al descargar documento protecdoc:", t), U();
|
|
242
140
|
}
|
|
243
|
-
},
|
|
141
|
+
}, w = (r) => {
|
|
244
142
|
u({
|
|
245
143
|
data: "",
|
|
246
|
-
mimeType:
|
|
247
|
-
name:
|
|
248
|
-
base64:
|
|
249
|
-
}),
|
|
250
|
-
},
|
|
144
|
+
mimeType: r.mime_type,
|
|
145
|
+
name: r.nombre,
|
|
146
|
+
base64: r.archivo_base64
|
|
147
|
+
}), f(!0);
|
|
148
|
+
}, Q = [
|
|
251
149
|
{
|
|
252
150
|
label: "Documentación de los radicados",
|
|
253
|
-
icon:
|
|
254
|
-
content: (
|
|
151
|
+
icon: re,
|
|
152
|
+
content: (r) => x.length > 0 || m ? /* @__PURE__ */ a(b, { children: [
|
|
255
153
|
/* @__PURE__ */ a(
|
|
256
|
-
|
|
154
|
+
ye,
|
|
257
155
|
{
|
|
258
|
-
show:
|
|
259
|
-
onHide:
|
|
260
|
-
title: (
|
|
156
|
+
show: E,
|
|
157
|
+
onHide: U,
|
|
158
|
+
title: (l == null ? void 0 : l.name) || "",
|
|
261
159
|
modalType: "secondary",
|
|
262
160
|
primaryPosition: "left",
|
|
263
161
|
closeModalOut: !0,
|
|
264
|
-
isMaximized:
|
|
265
|
-
onToggleMaximize: () =>
|
|
162
|
+
isMaximized: M,
|
|
163
|
+
onToggleMaximize: () => q(!M),
|
|
266
164
|
showMaximizeButton: !0,
|
|
267
165
|
otherModalOpen: !0,
|
|
268
166
|
hasBody: !1,
|
|
269
167
|
children: [
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
168
|
+
E && !l && /* @__PURE__ */ e(D, { type: "loading_duck" }),
|
|
169
|
+
l && /* @__PURE__ */ e(
|
|
170
|
+
te,
|
|
273
171
|
{
|
|
274
|
-
data:
|
|
275
|
-
mimeType:
|
|
276
|
-
name:
|
|
277
|
-
base64:
|
|
278
|
-
blobUrl:
|
|
172
|
+
data: l.data,
|
|
173
|
+
mimeType: l.mimeType,
|
|
174
|
+
name: l.name,
|
|
175
|
+
base64: l.base64,
|
|
176
|
+
blobUrl: l.blobUrl
|
|
279
177
|
}
|
|
280
178
|
)
|
|
281
179
|
]
|
|
282
180
|
}
|
|
283
181
|
),
|
|
284
|
-
|
|
285
|
-
|
|
182
|
+
x.length > 0 && /* @__PURE__ */ e(
|
|
183
|
+
ie,
|
|
286
184
|
{
|
|
287
|
-
radicados:
|
|
288
|
-
onDocumentoClick:
|
|
289
|
-
setView:
|
|
290
|
-
setTraceData:
|
|
291
|
-
protecdocVersion:
|
|
292
|
-
setTraceLoading:
|
|
185
|
+
radicados: x,
|
|
186
|
+
onDocumentoClick: Z,
|
|
187
|
+
setView: r,
|
|
188
|
+
setTraceData: H,
|
|
189
|
+
protecdocVersion: P,
|
|
190
|
+
setTraceLoading: K
|
|
293
191
|
}
|
|
294
192
|
),
|
|
295
|
-
|
|
296
|
-
const
|
|
297
|
-
return /* @__PURE__ */ a(
|
|
298
|
-
/* @__PURE__ */ e(
|
|
193
|
+
m && /* @__PURE__ */ e(b, { children: J ? /* @__PURE__ */ e("div", { className: "aux-radicados__loading", children: /* @__PURE__ */ e(D, { type: "loading_duck", width: 200 }) }) : y.length > 0 ? y.map((t, s) => {
|
|
194
|
+
const n = R[t.id_gestion] || [], i = !!z[t.id_gestion];
|
|
195
|
+
return /* @__PURE__ */ a(be, { label: `Gestión ${t.fecha_gestion}`, icon: ne, children: [
|
|
196
|
+
/* @__PURE__ */ e(h, { icon: L, subtitle: "Documentación del solicitante" }),
|
|
299
197
|
/* @__PURE__ */ e(
|
|
300
|
-
|
|
198
|
+
v,
|
|
301
199
|
{
|
|
302
200
|
labelPregunta: "¿Adjunta formulario de solicitud de inscripción y está debida y totalmente diligenciado?",
|
|
303
201
|
preguntaDocumentacion: !!t.adjuntaFormulario
|
|
304
202
|
}
|
|
305
203
|
),
|
|
306
204
|
/* @__PURE__ */ e(
|
|
307
|
-
|
|
205
|
+
v,
|
|
308
206
|
{
|
|
309
207
|
labelPregunta: "¿Adjunta o anexa fotocopia de la cédula de ciudadanía por ambos lados?",
|
|
310
208
|
preguntaDocumentacion: !!t.adjuntaNuip
|
|
311
209
|
}
|
|
312
210
|
),
|
|
313
211
|
/* @__PURE__ */ e(
|
|
314
|
-
|
|
212
|
+
v,
|
|
315
213
|
{
|
|
316
214
|
labelPregunta: "¿Adjunta o anexa acreditación de la población objeto del programa?",
|
|
317
215
|
preguntaDocumentacion: !!t.adjuntaAcreditacion
|
|
318
216
|
}
|
|
319
217
|
),
|
|
320
218
|
/* @__PURE__ */ e(
|
|
321
|
-
|
|
219
|
+
v,
|
|
322
220
|
{
|
|
323
221
|
labelPregunta: "¿Adjunta o anexa denuncia(s), queja(s) o evidencia(s) del hecho o situación de amenaza o riesgo?",
|
|
324
222
|
preguntaDocumentacion: !!t.adjunta_evidencias
|
|
325
223
|
}
|
|
326
224
|
),
|
|
327
225
|
/* @__PURE__ */ a("div", { style: { marginTop: "1.5rem", marginBottom: "1.5rem" }, children: [
|
|
328
|
-
/* @__PURE__ */ e(
|
|
329
|
-
/* @__PURE__ */ e(
|
|
226
|
+
/* @__PURE__ */ e(h, { icon: oe, subtitle: "Información de la gestión" }),
|
|
227
|
+
/* @__PURE__ */ e(g, { striped: !0, bordered: !0, children: /* @__PURE__ */ a("tbody", { children: [
|
|
330
228
|
t.subpoblacion && /* @__PURE__ */ a("tr", { children: [
|
|
331
229
|
/* @__PURE__ */ e("td", { className: "text-start", children: /* @__PURE__ */ e("b", { children: "Subpoblación objeto" }) }),
|
|
332
230
|
/* @__PURE__ */ e("td", { className: "text-start", children: t.subpoblacion })
|
|
@@ -354,8 +252,8 @@ const Ce = Object.assign(te, {
|
|
|
354
252
|
] }) })
|
|
355
253
|
] }),
|
|
356
254
|
t.entidadSolicitante && /* @__PURE__ */ a("div", { style: { marginTop: "1.5rem", marginBottom: "1.5rem" }, children: [
|
|
357
|
-
/* @__PURE__ */ e(
|
|
358
|
-
/* @__PURE__ */ e(
|
|
255
|
+
/* @__PURE__ */ e(h, { icon: ce, subtitle: "Entidad solicitante" }),
|
|
256
|
+
/* @__PURE__ */ e(g, { striped: !0, bordered: !0, children: /* @__PURE__ */ a("tbody", { children: [
|
|
359
257
|
/* @__PURE__ */ a("tr", { children: [
|
|
360
258
|
/* @__PURE__ */ e("td", { className: "text-start", children: /* @__PURE__ */ e("b", { children: "Ámbito" }) }),
|
|
361
259
|
/* @__PURE__ */ e("td", { className: "text-start", children: t.entidadSolicitante.ambito })
|
|
@@ -379,27 +277,27 @@ const Ce = Object.assign(te, {
|
|
|
379
277
|
] }) })
|
|
380
278
|
] }),
|
|
381
279
|
Array.isArray(t.motivosNoInicio) && t.motivosNoInicio.length > 0 && /* @__PURE__ */ a("div", { style: { marginTop: "1.5rem", marginBottom: "1.5rem" }, children: [
|
|
382
|
-
/* @__PURE__ */ e(
|
|
383
|
-
/* @__PURE__ */ e(
|
|
280
|
+
/* @__PURE__ */ e(h, { icon: de, subtitle: "Motivo por cuál no se inicia ruta" }),
|
|
281
|
+
/* @__PURE__ */ e(g, { striped: !0, bordered: !0, children: /* @__PURE__ */ e("tbody", { children: t.motivosNoInicio.map((c, d) => /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { className: "text-start", children: c }) }, d)) }) })
|
|
384
282
|
] }),
|
|
385
283
|
Array.isArray(t.criterios) && t.criterios.length > 0 && /* @__PURE__ */ a("div", { style: { marginTop: "1.5rem", marginBottom: "1.5rem" }, children: [
|
|
386
|
-
/* @__PURE__ */ e(
|
|
387
|
-
t.criterios.map((
|
|
388
|
-
|
|
284
|
+
/* @__PURE__ */ e(h, { icon: se, subtitle: "Criterios primarios de confirmación de la solicitud" }),
|
|
285
|
+
t.criterios.map((c, d) => /* @__PURE__ */ e(
|
|
286
|
+
v,
|
|
389
287
|
{
|
|
390
|
-
labelPregunta:
|
|
288
|
+
labelPregunta: c,
|
|
391
289
|
preguntaDocumentacion: !0
|
|
392
290
|
},
|
|
393
|
-
|
|
291
|
+
d
|
|
394
292
|
)),
|
|
395
|
-
t.zonaCriterio && /* @__PURE__ */ e(
|
|
293
|
+
t.zonaCriterio && /* @__PURE__ */ e(g, { striped: !0, bordered: !0, children: /* @__PURE__ */ e("tbody", { children: /* @__PURE__ */ a("tr", { children: [
|
|
396
294
|
/* @__PURE__ */ e("td", { className: "text-start", children: "Zona" }),
|
|
397
295
|
/* @__PURE__ */ e("td", { className: "text-start", children: t.zonaCriterio })
|
|
398
296
|
] }) }) })
|
|
399
297
|
] }),
|
|
400
298
|
t.entidadRemision && /* @__PURE__ */ a("div", { style: { marginTop: "1.5rem", marginBottom: "1.5rem" }, children: [
|
|
401
|
-
/* @__PURE__ */ e(
|
|
402
|
-
/* @__PURE__ */ e(
|
|
299
|
+
/* @__PURE__ */ e(h, { icon: le, subtitle: "Remitido a entidad" }),
|
|
300
|
+
/* @__PURE__ */ e(g, { striped: !0, bordered: !0, children: /* @__PURE__ */ a("tbody", { children: [
|
|
403
301
|
/* @__PURE__ */ a("tr", { children: [
|
|
404
302
|
/* @__PURE__ */ e("td", { className: "text-start", children: /* @__PURE__ */ e("b", { children: "Ámbito" }) }),
|
|
405
303
|
/* @__PURE__ */ e("td", { className: "text-start", children: t.entidadRemision.ambito })
|
|
@@ -422,9 +320,9 @@ const Ce = Object.assign(te, {
|
|
|
422
320
|
] })
|
|
423
321
|
] }) })
|
|
424
322
|
] }),
|
|
425
|
-
|
|
426
|
-
/* @__PURE__ */ e(
|
|
427
|
-
|
|
323
|
+
n.length > 0 ? /* @__PURE__ */ a(b, { children: [
|
|
324
|
+
/* @__PURE__ */ e(h, { icon: L, subtitle: "Documentación de la gestión" }),
|
|
325
|
+
n.map((c, d) => /* @__PURE__ */ a(
|
|
428
326
|
"div",
|
|
429
327
|
{
|
|
430
328
|
className: "file_container_qy",
|
|
@@ -438,76 +336,76 @@ const Ce = Object.assign(te, {
|
|
|
438
336
|
alignItems: "center",
|
|
439
337
|
marginBottom: "1rem"
|
|
440
338
|
},
|
|
441
|
-
onClick: () =>
|
|
339
|
+
onClick: () => w(c),
|
|
442
340
|
children: [
|
|
443
341
|
/* @__PURE__ */ a("div", { className: "icon_name_container_qy", style: { display: "flex", gap: "1rem", alignItems: "center" }, children: [
|
|
444
|
-
|
|
342
|
+
ae(c.mime_type),
|
|
445
343
|
/* @__PURE__ */ e("span", { children: "Anexo Gestión GSC" })
|
|
446
344
|
] }),
|
|
447
|
-
/* @__PURE__ */ e(
|
|
345
|
+
/* @__PURE__ */ e(me, {})
|
|
448
346
|
]
|
|
449
347
|
},
|
|
450
|
-
`${t.id_gestion}-${
|
|
348
|
+
`${t.id_gestion}-${d}`
|
|
451
349
|
))
|
|
452
|
-
] }) : i ? /* @__PURE__ */ e(
|
|
453
|
-
] }, t.id_gestion ??
|
|
454
|
-
}) : /* @__PURE__ */ a(
|
|
350
|
+
] }) : i ? /* @__PURE__ */ e(D, { type: "loading_duck", width: 200 }) : null
|
|
351
|
+
] }, t.id_gestion ?? s);
|
|
352
|
+
}) : /* @__PURE__ */ a(b, { children: [
|
|
455
353
|
"No se ha realizado la gestión para el registro No. ",
|
|
456
|
-
|
|
354
|
+
S
|
|
457
355
|
] }) })
|
|
458
|
-
] }) : /* @__PURE__ */ e(
|
|
356
|
+
] }) : /* @__PURE__ */ e(b, { children: "Sin información adicional para los radicados" })
|
|
459
357
|
},
|
|
460
358
|
{
|
|
461
359
|
label: "Trazabilidad",
|
|
462
|
-
content: () => /* @__PURE__ */ e(
|
|
463
|
-
const
|
|
464
|
-
return /* @__PURE__ */ e("div", { children:
|
|
465
|
-
var
|
|
466
|
-
const
|
|
360
|
+
content: () => /* @__PURE__ */ e(b, { children: V ? /* @__PURE__ */ e("div", { className: "aux-radicados__loading", children: /* @__PURE__ */ e(D, { type: "loading_duck", width: 200 }) }) : T ? /* @__PURE__ */ e("div", { className: "vp-trazabilidad-container", children: (() => {
|
|
361
|
+
const r = (T.inProgress || []).map((i) => ({ ...i, _inProgress: !0 })), s = (T.completed || []).map((i) => ({ ...i, _inProgress: !1 })).sort((i, c) => (c.endDate || 0) - (i.endDate || 0)), n = [...r, ...s];
|
|
362
|
+
return /* @__PURE__ */ e("div", { children: n.map((i, c) => {
|
|
363
|
+
var I;
|
|
364
|
+
const d = i._inProgress ? "En progreso" : ((I = i.trackState) == null ? void 0 : I.state) ?? "", G = i.subsectionObject ?? "", W = i.user ?? "", X = Y(i.endDate);
|
|
467
365
|
return /* @__PURE__ */ a("div", { className: "vp-timeline-event", children: [
|
|
468
366
|
/* @__PURE__ */ a("div", { className: "vp-timeline-left", children: [
|
|
469
367
|
/* @__PURE__ */ e("div", { className: "vp-point-vertical" }),
|
|
470
|
-
|
|
368
|
+
c < n.length - 1 && /* @__PURE__ */ e("div", { className: "vp-line-vertical" })
|
|
471
369
|
] }),
|
|
472
370
|
/* @__PURE__ */ a("div", { className: "vp-timeline-content", children: [
|
|
473
|
-
/* @__PURE__ */ e("div", { style: { display: "flex" }, children: /* @__PURE__ */ e("div", { className: "vp-icon-circle", children: /* @__PURE__ */ e(
|
|
371
|
+
/* @__PURE__ */ e("div", { style: { display: "flex" }, children: /* @__PURE__ */ e("div", { className: "vp-icon-circle", children: /* @__PURE__ */ e(pe, {}) }) }),
|
|
474
372
|
/* @__PURE__ */ a("div", { className: "vp-event-details", children: [
|
|
475
|
-
/* @__PURE__ */ e("div", { className: "vp-event-estado fw-bold", children:
|
|
476
|
-
|
|
477
|
-
/* @__PURE__ */ e("div", { className: "vp-event-fecha text-muted small", children:
|
|
478
|
-
/* @__PURE__ */ e("div", { className: "vp-event-fecha text-muted small", children:
|
|
373
|
+
/* @__PURE__ */ e("div", { className: "vp-event-estado fw-bold", children: d }),
|
|
374
|
+
G && /* @__PURE__ */ e("div", { className: "vp-event-observacion", children: G }),
|
|
375
|
+
/* @__PURE__ */ e("div", { className: "vp-event-fecha text-muted small", children: W }),
|
|
376
|
+
/* @__PURE__ */ e("div", { className: "vp-event-fecha text-muted small", children: X })
|
|
479
377
|
] })
|
|
480
378
|
] })
|
|
481
|
-
] }, i.trackId ??
|
|
379
|
+
] }, i.trackId ?? c);
|
|
482
380
|
}) });
|
|
483
381
|
})() }) : /* @__PURE__ */ e("div", { children: "No hay trazabilidad" }) })
|
|
484
382
|
}
|
|
485
383
|
];
|
|
486
384
|
return /* @__PURE__ */ e(
|
|
487
|
-
|
|
385
|
+
fe,
|
|
488
386
|
{
|
|
489
|
-
title: (
|
|
490
|
-
modalContent:
|
|
387
|
+
title: (o == null ? void 0 : o.numeroRegistro) ?? "Correspondencia",
|
|
388
|
+
modalContent: Q
|
|
491
389
|
}
|
|
492
390
|
);
|
|
493
|
-
},
|
|
391
|
+
}, v = ({ labelPregunta: o, preguntaDocumentacion: m }) => /* @__PURE__ */ e(ue, { children: /* @__PURE__ */ a("div", { style: { display: "flex", gap: "1rem" }, children: [
|
|
494
392
|
/* @__PURE__ */ a("span", { children: [
|
|
495
|
-
|
|
393
|
+
o,
|
|
496
394
|
" ",
|
|
497
395
|
/* @__PURE__ */ e("span", { className: "text-danger", children: "*" })
|
|
498
396
|
] }),
|
|
499
|
-
/* @__PURE__ */ e(
|
|
500
|
-
|
|
397
|
+
/* @__PURE__ */ e(ge, { controlId: "formulario", children: /* @__PURE__ */ e(
|
|
398
|
+
ve,
|
|
501
399
|
{
|
|
502
400
|
type: "switch",
|
|
503
401
|
id: "adjuntaFormulario",
|
|
504
|
-
checked:
|
|
402
|
+
checked: m,
|
|
505
403
|
name: "adjuntaFormulario",
|
|
506
|
-
label:
|
|
404
|
+
label: m ? " Sí" : " No",
|
|
507
405
|
disabled: !0
|
|
508
406
|
}
|
|
509
407
|
) })
|
|
510
408
|
] }) });
|
|
511
409
|
export {
|
|
512
|
-
|
|
410
|
+
pt as ModalRadicado
|
|
513
411
|
};
|