react-ecosistema-unp 2.6.0 → 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.
Files changed (80) hide show
  1. package/README.md +3 -1
  2. package/dist/{AppList-CNtk-CBh.js → AppList-BMiq1ohd.js} +65 -65
  3. package/dist/{Button-eLVX04GZ.js → Button-CFf-9Lsg.js} +1 -1
  4. package/dist/{Card-_JzS9Ssz.js → Card-pj1hogT6.js} +2 -2
  5. package/dist/{CardBody-CUEPjltD.js → CardBody-osBHz8Sj.js} +1 -1
  6. package/dist/FormCheck-C44kvYaC.js +109 -0
  7. package/dist/{FormControl-DshWdHuR.js → FormControl-CjlQ5vZ8.js} +6 -6
  8. package/dist/{FormGroup-B8RAswur.js → FormGroup-BKpeUcMi.js} +3 -3
  9. package/dist/{Spinner-D69BfVXa.js → Spinner-DlaZVI7E.js} +1 -1
  10. package/dist/{TabPane-D71zhQGl.js → TabPane-C7rqu9vB.js} +1 -1
  11. package/dist/{Table-cUZFLrPi.js → Table-CYSh6C16.js} +1 -1
  12. package/dist/ThemeProvider-D8TYBK1p.js +41 -0
  13. package/dist/assets/SmartTextArea.css +1 -1
  14. package/dist/cards/tarjeta/Tarjeta.js +3 -3
  15. package/dist/cards/tarjeta/nuevo-elemento/NuevoElemento.js +2 -2
  16. package/dist/cards/tarjeta/seccion-tarjeta/SeccionTarjeta.js +1 -1
  17. package/dist/cards/tarjeta-info/TarjetaInfo.js +3 -3
  18. package/dist/cards/tarjeta-lectura/TarjetaLectura.js +1 -1
  19. package/dist/data/tarjeta-datos/TarjetaDatos.js +2 -2
  20. package/dist/ia/diccionario/analisisRiesgo.js +245 -0
  21. package/dist/ia/diccionario/index.js +9 -0
  22. package/dist/ia/diccionario/tipos.js +4 -0
  23. package/dist/ia/larissa/larissaService.js +160 -0
  24. package/dist/ia/smart-textarea/DiffResult.js +7 -0
  25. package/dist/ia/smart-textarea/SmartTextArea.js +550 -0
  26. package/dist/ia/smart-textarea/diff.js +55 -0
  27. package/dist/ia.js +26 -0
  28. package/dist/{index-HaNVi1BU.js → index-DBLHT45t.js} +61 -61
  29. package/dist/lib/ia/diccionario/analisisRiesgo.d.ts +170 -0
  30. package/dist/lib/ia/diccionario/index.d.ts +10 -0
  31. package/dist/lib/ia/diccionario/tipos.d.ts +40 -0
  32. package/dist/lib/ia/larissa/larissaService.d.ts +153 -0
  33. package/dist/lib/ia/smart-textarea/DiffResult.d.ts +7 -0
  34. package/dist/lib/ia/smart-textarea/SmartTextArea.d.ts +82 -0
  35. package/dist/lib/ia/smart-textarea/diff.d.ts +15 -0
  36. package/dist/lib/ia.d.ts +8 -0
  37. package/dist/lib/ui.d.ts +0 -2
  38. package/dist/shared/app-list/AppList.js +2 -2
  39. package/dist/shared/breadcrumb/Breadcrumb.js +1 -1
  40. package/dist/shared/iconos-sistema/IconosSistema.js +1 -1
  41. package/dist/shared/iconos-sistema/logout-button/LogoutButton.js +1 -1
  42. package/dist/shared/menu-lateral/MenuLateral.js +3 -4
  43. package/dist/shared/notificacion-usuario/NotificacionUsuario.js +20 -21
  44. package/dist/shared/tab-ventana/TabVentana.js +1 -1
  45. package/dist/shared/ventana-tabs/VentanaTabs.js +3 -3
  46. package/dist/tables/custom-data-table/CustomDataTable.js +4 -5
  47. package/dist/tables/custom-data-table-split/CustomDataTableSplit.js +4 -5
  48. package/dist/tables/eco-data-table/components/EcoBandejaEncabezado.js +3 -4
  49. package/dist/tables/eco-data-table/components/EcoDataTable/EcoDataTable.js +14 -14
  50. package/dist/tables/eco-data-table/components/EcoDataTableLoading.js +1 -1
  51. package/dist/tables/eco-data-table/components/EcoDataTablePageStatus.js +1 -1
  52. package/dist/tables/tabla-registros/buscador/Buscador.js +4 -4
  53. package/dist/tables/tabla-registros/encabezado-tabla/EncabezadoTabla.js +3 -4
  54. package/dist/tables/tabla-registros/modal-v2/EcoModal.js +8 -8
  55. package/dist/tables/tabla-registros/tabla/Tabla.js +17 -17
  56. package/dist/ui/alertas/AlertaFormulario.js +1 -1
  57. package/dist/ui/contenido-modal/ContenidoModal.js +1 -1
  58. package/dist/ui/contenido-modal/ContenidoModalv0.1.js +1 -1
  59. package/dist/ui/contenido-modal-v2/ContenidoModalV2.js +3 -3
  60. package/dist/ui/contenido-modal-v2/ModalV2Menu.js +1 -1
  61. package/dist/ui/icono-tooltip/IconoTooltip.js +24 -24
  62. package/dist/ui/items-modal/ItemsModal.js +1 -1
  63. package/dist/ui/nav-formularios-lateral/NavFormulariosLateral.js +1 -1
  64. package/dist/ui/notificacion-popover-v2/NotificacionPopoverV2.js +55 -55
  65. package/dist/ui/paginador/Paginador.js +2 -2
  66. package/dist/ui/seccion-formulario/SeccionFormulario.js +1 -1
  67. package/dist/ui/status-filter-bar/StatusFilterBar.js +7 -7
  68. package/dist/ui/status-semaphore/StatusSemaphore.js +1 -1
  69. package/dist/ui/stepper-v2/StepperV2.js +2 -2
  70. package/dist/ui.js +6 -8
  71. package/dist/utils/eco-provider/EcoContext.js +3 -4
  72. package/dist/utils/modal-radicados/AuxRadicadosComponents/TarjetaRadicado.js +11 -12
  73. package/dist/utils/modal-radicados/DocumentoVisorEstado.js +4 -5
  74. package/dist/utils/modal-radicados/ModalDocumento.js +10 -10
  75. package/dist/utils/modal-radicados/ModalRadicado.js +152 -254
  76. package/dist/utils/unp-historico/UnpHistorico.js +4 -5
  77. package/package.json +5 -2
  78. package/dist/ThemeProvider-Cv61y4Uy.js +0 -27
  79. package/dist/lib/ui/smart-textarea/SmartTextArea.d.ts +0 -17
  80. package/dist/ui/smart-textarea/SmartTextArea.js +0 -123
@@ -1,22 +1,21 @@
1
- import { jsx as e, jsxs as a, Fragment as S } from "react/jsx-runtime";
2
- import * as V from "react";
3
- import { useContext as H, useMemo as se, useState as y, useRef as de, useEffect as q } from "react";
4
- import { ModalDocumento as le, getIconByType as me } from "./ModalDocumento.js";
5
- import { RadicadosTarjetas as he } from "./AuxRadicadosComponents/RadicadosTarjetas.js";
6
- import { h as pe, a0 as ue, a1 as X, a2 as be, a3 as fe, a4 as ye, I as ge, a5 as ve, n as Ne, a6 as xe } from "../../index-HaNVi1BU.js";
7
- import { getUserToken as ee } from "../../auth/services/User.js";
8
- import { fetchDocumentoBinario as Se } from "./AuxRadicadosComponents/fetchDocumentosProtecdoc.js";
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 _e } from "../../cards/tarjeta/contenedor-tarjeta/ContenedorTarjeta.js";
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 De } from "../../cards/tarjeta-info/TarjetaInfo.js";
15
+ import { TarjetaInfo as be } from "../../cards/tarjeta-info/TarjetaInfo.js";
17
16
  /* empty css */
18
- import { Subtitulo as x } from "../../ui/subtitulo/Subtitulo.js";
19
- import { ContenidoModal as Fe } from "../../ui/contenido-modal/ContenidoModal.js";
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 Re } from "../../tables/tabla-registros/modal-v2/EcoModal.js";
29
- import { Animacion as $ } from "../../ui/animacion/Animacion.js";
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
- /* empty css */
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 z } from "../../Table-cUZFLrPi.js";
47
- import { a as M, F as Te, b as je } from "../../FormGroup-B8RAswur.js";
48
- import { c as K } from "../../index-ZphT3dr_.js";
49
- import { u as L } from "../../ThemeProvider-Cv61y4Uy.js";
50
- import { h as ke } from "../../ElementChildren-67NLtZ0A.js";
51
- const J = /* @__PURE__ */ V.forwardRef(({
52
- id: r,
53
- bsPrefix: n,
54
- className: p,
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
- q(() => {
157
- u(null), h(!1);
158
- }, [r, N.length]), q(() => {
159
- if (!n || !F) {
160
- v([]), C({});
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
- I(!0);
62
+ k(!0);
165
63
  try {
166
- const t = await fetch(`${E}gsc/gestionap/${F}`, {
64
+ const t = await fetch(`${_}gsc/gestionap/${S}`, {
167
65
  method: "GET",
168
66
  headers: {
169
- Authorization: `Bearer ${ee()}`,
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 m = await t.json();
176
- v(Array.isArray(m) ? m : []);
73
+ const s = await t.json();
74
+ j(Array.isArray(s) ? s : []);
177
75
  } catch (t) {
178
- w.error("Error fetching gestion:", t), v([]);
76
+ B.error("Error fetching gestion:", t), j([]);
179
77
  } finally {
180
- I(!1);
78
+ k(!1);
181
79
  }
182
80
  })();
183
- }, [n, F, E]), q(() => {
184
- !n || f.length === 0 || f.forEach((o) => {
185
- const t = o.id_gestion;
186
- if (!t || k[t] || D[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
- A((c) => ({ ...c, [t]: !0 }));
87
+ C((n) => ({ ...n, [t]: !0 }));
190
88
  try {
191
- const c = await fetch(`${E}usuario/archivo/`, {
89
+ const n = await fetch(`${_}usuario/archivo/`, {
192
90
  method: "POST",
193
91
  headers: {
194
92
  "Content-Type": "application/json",
195
- Authorization: `Bearer ${ee()}`,
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 (!c.ok)
102
+ if (!n.ok)
205
103
  throw new Error("Error al obtener documentos de gestión");
206
- const i = await c.json(), d = Array.isArray(i == null ? void 0 : i.documentos) ? i.documentos.filter((l) => !!l.archivo_base64) : [];
207
- C((l) => ({ ...l, [t]: d }));
208
- } catch (c) {
209
- w.error("Error al obtener documentos de gestión:", c), C((i) => ({ ...i, [t]: [] }));
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
- A((c) => ({ ...c, [t]: !1 }));
109
+ C((n) => ({ ...n, [t]: !1 }));
212
110
  }
213
111
  })();
214
112
  });
215
- }, [n, f, k, D, E]);
216
- const Y = () => {
217
- b.current && (URL.revokeObjectURL(b.current), b.current = null), h(!1), u(null);
218
- }, re = async (o) => {
219
- if (o.fuente === "legacy") {
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: o.mime_type,
223
- name: o.nombre,
224
- base64: o.archivo_base64
225
- }), h(!0);
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), h(!0);
126
+ u(null), f(!0);
229
127
  try {
230
- const t = await Se(o.id_documento, p), m = URL.createObjectURL(t);
231
- b.current = m;
232
- const c = o.tipoDocumento || t.type || "";
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: c,
236
- name: o.nombreDocumento,
133
+ mimeType: n,
134
+ name: r.nombreDocumento,
237
135
  base64: "",
238
- blobUrl: m
136
+ blobUrl: s
239
137
  });
240
138
  } catch (t) {
241
- w.error("Error al descargar documento protecdoc:", t), Y();
139
+ B.error("Error al descargar documento protecdoc:", t), U();
242
140
  }
243
- }, ie = (o) => {
141
+ }, w = (r) => {
244
142
  u({
245
143
  data: "",
246
- mimeType: o.mime_type,
247
- name: o.nombre,
248
- base64: o.archivo_base64
249
- }), h(!0);
250
- }, ne = [
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: pe,
254
- content: (o) => N.length > 0 || n ? /* @__PURE__ */ a(S, { children: [
151
+ icon: re,
152
+ content: (r) => x.length > 0 || m ? /* @__PURE__ */ a(b, { children: [
255
153
  /* @__PURE__ */ a(
256
- Re,
154
+ ye,
257
155
  {
258
- show: g,
259
- onHide: Y,
260
- title: (s == null ? void 0 : s.name) || "",
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: () => R(!_),
162
+ isMaximized: M,
163
+ onToggleMaximize: () => q(!M),
266
164
  showMaximizeButton: !0,
267
165
  otherModalOpen: !0,
268
166
  hasBody: !1,
269
167
  children: [
270
- g && !s && /* @__PURE__ */ e($, { type: "loading_duck" }),
271
- s && /* @__PURE__ */ e(
272
- le,
168
+ E && !l && /* @__PURE__ */ e(D, { type: "loading_duck" }),
169
+ l && /* @__PURE__ */ e(
170
+ te,
273
171
  {
274
- data: s.data,
275
- mimeType: s.mimeType,
276
- name: s.name,
277
- base64: s.base64,
278
- blobUrl: s.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
- N.length > 0 && /* @__PURE__ */ e(
285
- he,
182
+ x.length > 0 && /* @__PURE__ */ e(
183
+ ie,
286
184
  {
287
- radicados: N,
288
- onDocumentoClick: re,
289
- setView: o,
290
- setTraceData: G,
291
- protecdocVersion: p,
292
- setTraceLoading: P
185
+ radicados: x,
186
+ onDocumentoClick: Z,
187
+ setView: r,
188
+ setTraceData: H,
189
+ protecdocVersion: P,
190
+ setTraceLoading: K
293
191
  }
294
192
  ),
295
- n && /* @__PURE__ */ e(S, { children: j ? /* @__PURE__ */ e("div", { className: "aux-radicados__loading", children: /* @__PURE__ */ e($, { type: "loading_duck", width: 200 }) }) : f.length > 0 ? f.map((t, m) => {
296
- const c = k[t.id_gestion] || [], i = !!D[t.id_gestion];
297
- return /* @__PURE__ */ a(De, { label: `Gestión ${t.fecha_gestion}`, icon: ue, children: [
298
- /* @__PURE__ */ e(x, { icon: X, subtitle: "Documentación del solicitante" }),
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
- B,
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
- B,
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
- B,
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
- B,
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(x, { icon: be, subtitle: "Información de la gestión" }),
329
- /* @__PURE__ */ e(z, { striped: !0, bordered: !0, children: /* @__PURE__ */ a("tbody", { children: [
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(x, { icon: fe, subtitle: "Entidad solicitante" }),
358
- /* @__PURE__ */ e(z, { striped: !0, bordered: !0, children: /* @__PURE__ */ a("tbody", { children: [
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(x, { icon: ye, subtitle: "Motivo por cuál no se inicia ruta" }),
383
- /* @__PURE__ */ e(z, { striped: !0, bordered: !0, children: /* @__PURE__ */ e("tbody", { children: t.motivosNoInicio.map((d, l) => /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { className: "text-start", children: d }) }, l)) }) })
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(x, { icon: ge, subtitle: "Criterios primarios de confirmación de la solicitud" }),
387
- t.criterios.map((d, l) => /* @__PURE__ */ e(
388
- B,
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: d,
288
+ labelPregunta: c,
391
289
  preguntaDocumentacion: !0
392
290
  },
393
- l
291
+ d
394
292
  )),
395
- t.zonaCriterio && /* @__PURE__ */ e(z, { striped: !0, bordered: !0, children: /* @__PURE__ */ e("tbody", { children: /* @__PURE__ */ a("tr", { children: [
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(x, { icon: ve, subtitle: "Remitido a entidad" }),
402
- /* @__PURE__ */ e(z, { striped: !0, bordered: !0, children: /* @__PURE__ */ a("tbody", { children: [
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
- c.length > 0 ? /* @__PURE__ */ a(S, { children: [
426
- /* @__PURE__ */ e(x, { icon: X, subtitle: "Documentación de la gestión" }),
427
- c.map((d, l) => /* @__PURE__ */ a(
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: () => ie(d),
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
- me(d.mime_type),
342
+ ae(c.mime_type),
445
343
  /* @__PURE__ */ e("span", { children: "Anexo Gestión GSC" })
446
344
  ] }),
447
- /* @__PURE__ */ e(Ne, {})
345
+ /* @__PURE__ */ e(me, {})
448
346
  ]
449
347
  },
450
- `${t.id_gestion}-${l}`
348
+ `${t.id_gestion}-${d}`
451
349
  ))
452
- ] }) : i ? /* @__PURE__ */ e($, { type: "loading_duck", width: 200 }) : null
453
- ] }, t.id_gestion ?? m);
454
- }) : /* @__PURE__ */ a(S, { children: [
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
- F
354
+ S
457
355
  ] }) })
458
- ] }) : /* @__PURE__ */ e(S, { children: "Sin información adicional para los radicados" })
356
+ ] }) : /* @__PURE__ */ e(b, { children: "Sin información adicional para los radicados" })
459
357
  },
460
358
  {
461
359
  label: "Trazabilidad",
462
- content: () => /* @__PURE__ */ e(S, { children: O ? /* @__PURE__ */ e("div", { className: "aux-radicados__loading", children: /* @__PURE__ */ e($, { type: "loading_duck", width: 200 }) }) : T ? /* @__PURE__ */ e("div", { className: "vp-trazabilidad-container", children: (() => {
463
- const o = (T.inProgress || []).map((i) => ({ ...i, _inProgress: !0 })), m = (T.completed || []).map((i) => ({ ...i, _inProgress: !1 })).sort((i, d) => (d.endDate || 0) - (i.endDate || 0)), c = [...o, ...m];
464
- return /* @__PURE__ */ e("div", { children: c.map((i, d) => {
465
- var W;
466
- const l = i._inProgress ? "En progreso" : ((W = i.trackState) == null ? void 0 : W.state) ?? "", Q = i.subsectionObject ?? "", oe = i.user ?? "", ce = ae(i.endDate);
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
- d < c.length - 1 && /* @__PURE__ */ e("div", { className: "vp-line-vertical" })
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(xe, {}) }) }),
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: l }),
476
- Q && /* @__PURE__ */ e("div", { className: "vp-event-observacion", children: Q }),
477
- /* @__PURE__ */ e("div", { className: "vp-event-fecha text-muted small", children: oe }),
478
- /* @__PURE__ */ e("div", { className: "vp-event-fecha text-muted small", children: ce })
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 ?? d);
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
- Fe,
385
+ fe,
488
386
  {
489
- title: (r == null ? void 0 : r.numeroRegistro) ?? "Correspondencia",
490
- modalContent: ne
387
+ title: (o == null ? void 0 : o.numeroRegistro) ?? "Correspondencia",
388
+ modalContent: Q
491
389
  }
492
390
  );
493
- }, B = ({ labelPregunta: r, preguntaDocumentacion: n }) => /* @__PURE__ */ e(_e, { children: /* @__PURE__ */ a("div", { style: { display: "flex", gap: "1rem" }, children: [
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
- r,
393
+ o,
496
394
  " ",
497
395
  /* @__PURE__ */ e("span", { className: "text-danger", children: "*" })
498
396
  ] }),
499
- /* @__PURE__ */ e(je, { controlId: "formulario", children: /* @__PURE__ */ e(
500
- Ce,
397
+ /* @__PURE__ */ e(ge, { controlId: "formulario", children: /* @__PURE__ */ e(
398
+ ve,
501
399
  {
502
400
  type: "switch",
503
401
  id: "adjuntaFormulario",
504
- checked: n,
402
+ checked: m,
505
403
  name: "adjuntaFormulario",
506
- label: n ? " Sí" : " No",
404
+ label: m ? " Sí" : " No",
507
405
  disabled: !0
508
406
  }
509
407
  ) })
510
408
  ] }) });
511
409
  export {
512
- Rt as ModalRadicado
410
+ pt as ModalRadicado
513
411
  };