react-ecosistema-unp 1.2.4 → 1.2.5
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as t, Fragment as i, jsxs as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsx as t, Fragment as i, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { useState as o, useEffect as x } from "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';import '../../assets/UnpHistorico.css';/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
import "../../cards/tarjeta/seccion-tarjeta/SeccionTarjeta.js";
|
|
@@ -11,134 +11,134 @@ import { TarjetaInfo as N } from "../../cards/tarjeta-info/TarjetaInfo.js";
|
|
|
11
11
|
import { F as b } from "../../index-COVtBfm6.js";
|
|
12
12
|
import { fetchHistorico as p } from "./FetchHistorico.js";
|
|
13
13
|
import { T as u } from "../../Table-dmTfkFLf.js";
|
|
14
|
-
const D = ({ endpoint:
|
|
15
|
-
const [c,
|
|
14
|
+
const D = ({ endpoint: n, nuip: d }) => {
|
|
15
|
+
const [c, h] = o({
|
|
16
16
|
sintesisHechos1: !1,
|
|
17
17
|
sintesisHehcos2: !1
|
|
18
|
-
}), [r, m] =
|
|
19
|
-
|
|
20
|
-
...
|
|
21
|
-
[e]: !
|
|
18
|
+
}), [r, m] = o([]), l = (e) => {
|
|
19
|
+
h((s) => ({
|
|
20
|
+
...s,
|
|
21
|
+
[e]: !s[e]
|
|
22
22
|
}));
|
|
23
23
|
};
|
|
24
24
|
return x(() => {
|
|
25
25
|
(async () => {
|
|
26
|
-
const
|
|
27
|
-
m(
|
|
26
|
+
const s = await p(n, d);
|
|
27
|
+
m(s);
|
|
28
28
|
})();
|
|
29
|
-
}, [d]), /* @__PURE__ */ t(i, { children: r && r.length > 0 ? /* @__PURE__ */ t(i, { children: r.sort((e,
|
|
30
|
-
/* @__PURE__ */
|
|
29
|
+
}, [d]), /* @__PURE__ */ t(i, { children: r && r.length > 0 ? /* @__PURE__ */ t(i, { children: r.sort((e, s) => e.ordenTrabajo < s.ordenTrabajo ? 1 : -1).map((e, s) => /* @__PURE__ */ t(N, { icon: b, label: `OT ${e.ordenTrabajo} • ${e.tipoEstudio}`, children: /* @__PURE__ */ t(u, { striped: !0, bordered: !0, children: /* @__PURE__ */ a("tbody", { children: [
|
|
30
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
31
31
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Evaluado" }) }),
|
|
32
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.nombreCompleto })
|
|
32
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.nombreCompleto && e.nombreCompleto })
|
|
33
33
|
] }),
|
|
34
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
35
35
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Nuip" }) }),
|
|
36
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.nuip })
|
|
36
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.nuip && e.nuip })
|
|
37
37
|
] }),
|
|
38
|
-
/* @__PURE__ */
|
|
38
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
39
39
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Ubicación" }) }),
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
-
e.departamento,
|
|
40
|
+
/* @__PURE__ */ a("td", { className: "text-start", children: [
|
|
41
|
+
e.departamento && e.departamento,
|
|
42
42
|
", ",
|
|
43
|
-
e.municipio
|
|
43
|
+
e.municipio && e.municipio
|
|
44
44
|
] })
|
|
45
45
|
] }),
|
|
46
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
47
47
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Celular" }) }),
|
|
48
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.celularEvaluado })
|
|
48
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.celularEvaluado && e.celularEvaluado })
|
|
49
49
|
] }),
|
|
50
|
-
/* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
51
51
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Correo electrónico" }) }),
|
|
52
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.correoEvaluado })
|
|
52
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.correoEvaluado && e.correoEvaluado })
|
|
53
53
|
] }),
|
|
54
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
55
55
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Factor diferencial" }) }),
|
|
56
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.factorDiferencial })
|
|
56
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.factorDiferencial && e.factorDiferencial })
|
|
57
57
|
] }),
|
|
58
58
|
/* @__PURE__ */ t("tr", { children: /* @__PURE__ */ t("td", { colSpan: 2 }) }),
|
|
59
|
-
/* @__PURE__ */
|
|
59
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
60
60
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Analista de riesgo" }) }),
|
|
61
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.analistaRiesgo })
|
|
61
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.analistaRiesgo && e.analistaRiesgo })
|
|
62
62
|
] }),
|
|
63
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
64
64
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Estado OT" }) }),
|
|
65
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.EstadoOT })
|
|
65
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.EstadoOT && e.EstadoOT })
|
|
66
66
|
] }),
|
|
67
|
-
/* @__PURE__ */
|
|
67
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
68
68
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Tipo de estudio" }) }),
|
|
69
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.tipoEstudio })
|
|
69
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.tipoEstudio && e.tipoEstudio })
|
|
70
70
|
] }),
|
|
71
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
72
72
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Evaluación de riesgo anterior" }) }),
|
|
73
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.evaluacionRiesgo })
|
|
73
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.evaluacionRiesgo && e.evaluacionRiesgo })
|
|
74
74
|
] }),
|
|
75
|
-
/* @__PURE__ */
|
|
75
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
76
76
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Fecha autorización" }) }),
|
|
77
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.FechaAutorizacion })
|
|
77
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.FechaAutorizacion && e.FechaAutorizacion })
|
|
78
78
|
] }),
|
|
79
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
80
80
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Población" }) }),
|
|
81
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.poblacion })
|
|
81
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.poblacion && e.poblacion })
|
|
82
82
|
] }),
|
|
83
|
-
/* @__PURE__ */
|
|
83
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
84
84
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Subpoblación" }) }),
|
|
85
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.subpoblacion })
|
|
85
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.subpoblacion && e.subpoblacion })
|
|
86
86
|
] }),
|
|
87
|
-
/* @__PURE__ */
|
|
87
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
88
88
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Cargo" }) }),
|
|
89
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.cargo_evaluado })
|
|
89
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.cargo_evaluado && e.cargo_evaluado })
|
|
90
90
|
] }),
|
|
91
|
-
/* @__PURE__ */
|
|
91
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
92
92
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Fecha de entrevista" }) }),
|
|
93
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.fechaEntrevista })
|
|
93
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.fechaEntrevista && e.fechaEntrevista })
|
|
94
94
|
] }),
|
|
95
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
96
96
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Síntesis de hechos #1" }) }),
|
|
97
|
-
/* @__PURE__ */
|
|
97
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.sintesisHechos1 && /* @__PURE__ */ a(i, { children: [
|
|
98
98
|
c.sintesisHechos1 ? e.sintesisHechos1 + " " : e.sintesisHechos1.slice(0, 250) + "... ",
|
|
99
99
|
/* @__PURE__ */ t("a", { className: "link-primary", onClick: () => l("sintesisHechos1"), children: c.sintesisHechos1 ? "Ver menos" : "Ver más" })
|
|
100
|
-
] })
|
|
100
|
+
] }) })
|
|
101
101
|
] }),
|
|
102
|
-
/* @__PURE__ */
|
|
102
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
103
103
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Síntesos de hechos #2" }) }),
|
|
104
|
-
/* @__PURE__ */
|
|
104
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.sintesisHechos2 && /* @__PURE__ */ a(i, { children: [
|
|
105
105
|
c.sintesisHechos2 ? e.sintesisHechos2 + " " : e.sintesisHechos2.slice(0, 250) + "... ",
|
|
106
106
|
/* @__PURE__ */ t("a", { className: "link-primary", onClick: () => l("sintesisHechos2"), children: c.sintesisHechos2 ? "Ver menos" : "Ver más" })
|
|
107
|
-
] })
|
|
107
|
+
] }) })
|
|
108
108
|
] }),
|
|
109
|
-
/* @__PURE__ */
|
|
109
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
110
110
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Desplazamiento" }) }),
|
|
111
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.desplazamientos })
|
|
111
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.desplazamientos && e.desplazamientos })
|
|
112
112
|
] }),
|
|
113
|
-
/* @__PURE__ */
|
|
113
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
114
114
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Contexto público" }) }),
|
|
115
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.contextoPublico })
|
|
115
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.contextoPublico && e.contextoPublico })
|
|
116
116
|
] }),
|
|
117
|
-
/* @__PURE__ */
|
|
117
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
118
118
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Observaciones CIAT" }) }),
|
|
119
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.observacionesCIAT })
|
|
119
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.observacionesCIAT && e.observacionesCIAT })
|
|
120
120
|
] }),
|
|
121
|
-
/* @__PURE__ */
|
|
121
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
122
122
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Medidas de protección vigentes" }) }),
|
|
123
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.medidasProteccion })
|
|
123
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.medidasProteccion && e.medidasProteccion })
|
|
124
124
|
] }),
|
|
125
|
-
/* @__PURE__ */
|
|
125
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
126
126
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Medidas de emergencia" }) }),
|
|
127
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.medidasEmergencia })
|
|
127
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.medidasEmergencia && e.medidasEmergencia })
|
|
128
128
|
] }),
|
|
129
|
-
/* @__PURE__ */
|
|
129
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
130
130
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Ponderación de la matriz" }) }),
|
|
131
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.ponderacionMatriz })
|
|
131
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.ponderacionMatriz && e.ponderacionMatriz })
|
|
132
132
|
] }),
|
|
133
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
134
134
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Motivo de la inactivación" }) }),
|
|
135
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.motivoInactivacion })
|
|
135
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.motivoInactivacion && e.motivoInactivacion })
|
|
136
136
|
] }),
|
|
137
|
-
/* @__PURE__ */
|
|
137
|
+
/* @__PURE__ */ a("tr", { children: [
|
|
138
138
|
/* @__PURE__ */ t("td", { className: "text-start", children: /* @__PURE__ */ t("b", { children: "Tipo de anulación" }) }),
|
|
139
|
-
/* @__PURE__ */ t("td", { className: "text-start", children: e.tipoAnulacion })
|
|
139
|
+
/* @__PURE__ */ t("td", { className: "text-start", children: e.tipoAnulacion && e.tipoAnulacion })
|
|
140
140
|
] })
|
|
141
|
-
] }) }) },
|
|
141
|
+
] }) }) }, s)) }) : /* @__PURE__ */ t(i, { children: "No hay información disponible." }) });
|
|
142
142
|
};
|
|
143
143
|
export {
|
|
144
144
|
D as UnpHistorico
|