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.
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 -1
  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 +1 @@
1
- .sta-wrapper{display:flex;flex-direction:column;gap:4px;width:100%}.sta-label-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px}.sta-label{font-size:.875rem;font-weight:600;color:#374151;margin:0;line-height:1.4}.sta-required{color:#e53e3e}.sta-btn-group{display:flex;gap:6px;flex-shrink:0}.sta-btn{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;font-size:.775rem;font-weight:600;color:#074470;background:#07447012;border:1px solid rgba(7,68,112,.25);border-radius:5px;cursor:pointer;transition:background .15s,border-color .15s;white-space:nowrap}.sta-btn:hover:not(:disabled){background:#07447024;border-color:#07447073}.sta-btn:disabled{opacity:.45;cursor:not-allowed}.sta-btn--replace{margin-top:8px;padding:5px 14px;font-size:.82rem;color:#fff;background:#074470;border-color:#074470}.sta-btn--replace:hover:not(:disabled){background:#053558;border-color:#053558}.sta-spinner{display:inline-block;width:11px;height:11px;border:2px solid rgba(7,68,112,.3);border-top-color:#074470;border-radius:50%;animation:sta-spin .6s linear infinite}@keyframes sta-spin{to{transform:rotate(360deg)}}.sta-textarea{width:100%;padding:8px 12px;font-size:.875rem;color:#1a202c;background:#fff;border:1px solid #dee2e6;border-radius:6px;resize:vertical;transition:border-color .15s,box-shadow .15s;line-height:1.5;font-family:inherit}.sta-textarea:focus{outline:none;border-color:#074470;box-shadow:0 0 0 2px #0744701f}.sta-textarea--highlight{border-color:#f59e0b;box-shadow:0 0 0 2px #f59e0b26}.sta-textarea:disabled{background:#f8fafc;color:#94a3b8;cursor:not-allowed}.sta-counter{font-size:.75rem;color:#94a3b8;text-align:right;margin-top:-2px}.sta-panel{background:#f0f7ff;border:1px solid #bfdbfe;border-radius:8px;padding:12px 14px;margin-top:2px;animation:sta-slidein .18s ease}@keyframes sta-slidein{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.sta-panel-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.sta-panel-title{font-size:.78rem;font-weight:700;color:#1e40af;text-transform:uppercase;letter-spacing:.04em}.sta-panel-close{background:none;border:none;cursor:pointer;font-size:1.1rem;line-height:1;color:#64748b;padding:0 2px;transition:color .12s}.sta-panel-close:hover{color:#1e293b}.sta-panel-text{font-size:.875rem;color:#1e293b;line-height:1.6;margin:0;white-space:pre-wrap}.sta-panel-error{font-size:.85rem;color:#b91c1c;margin:0}@media(prefers-color-scheme:dark){.sta-label{color:#e2e8f0}.sta-textarea{background:#1e293b;color:#f1f5f9;border-color:#334155}.sta-textarea:focus{border-color:#60a5fa;box-shadow:0 0 0 2px #60a5fa26}.sta-textarea:disabled{background:#0f172a;color:#475569}.sta-panel{background:#1e3a5f;border-color:#2563eb}.sta-panel-title{color:#93c5fd}.sta-panel-text{color:#e2e8f0}.sta-btn{color:#93c5fd;background:#93c5fd1a;border-color:#93c5fd4d}.sta-counter{color:#64748b}}:root[data-theme=dark] .sta-label{color:#e2e8f0}:root[data-theme=dark] .sta-textarea{background:#1e293b;color:#f1f5f9;border-color:#334155}:root[data-theme=dark] .sta-panel{background:#1e3a5f;border-color:#2563eb}:root[data-theme=dark] .sta-panel-title{color:#93c5fd}:root[data-theme=dark] .sta-panel-text{color:#e2e8f0}:root[data-theme=dark] .sta-btn{color:#93c5fd;background:#93c5fd1a;border-color:#93c5fd4d}:root[data-theme=light] .sta-label{color:#374151}:root[data-theme=light] .sta-textarea{background:#fff;color:#1a202c;border-color:#dee2e6}:root[data-theme=light] .sta-panel{background:#f0f7ff;border-color:#bfdbfe}
1
+ .sia-wrapper{display:flex;flex-direction:column;gap:6px;width:100%}.sia-header-row{display:flex;align-items:center;gap:8px}.sia-header-left{flex:1;margin-bottom:0}.sia-header-left label,.sia-header-left .form-label{margin-bottom:0}.sia-actions-row{display:flex;gap:6px;flex-shrink:0;margin-left:auto}.sia-btn{display:inline-flex;align-items:center;gap:5px;padding:3px 12px;font-size:.775rem;font-weight:600;color:#074470;background:#07447012;border:1px solid rgba(7,68,112,.25);border-radius:5px;cursor:pointer;transition:background .15s,border-color .15s;white-space:nowrap;line-height:1.6}.sia-btn:hover:not(:disabled){background:#07447024;border-color:#07447073}.sia-btn:disabled{opacity:.4;cursor:not-allowed}.sia-btn--primary{color:#fff;background:#074470;border-color:#074470}.sia-btn--primary:hover:not(:disabled){background:#053558;border-color:#053558}.sia-btn--ghost{color:#6c757d;background:transparent;border-color:#dee2e6}.sia-btn--ghost:hover:not(:disabled){background:#f8f9fa;border-color:#adb5bd}.sia-spinner-bs{width:.7rem!important;height:.7rem!important;border-width:.12em!important}.sia-error{font-size:.8rem;color:#b91c1c;padding:6px 10px;background:#fef2f2;border:1px solid #fecaca;border-radius:5px}.sia-panel{border:1px solid #bfdbfe;border-radius:6px;background:#f0f7ff;overflow:hidden;animation:sia-slidein .18s ease}@keyframes sia-slidein{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.sia-panel-header{display:flex;align-items:center;justify-content:space-between;padding:6px 12px;background:#dbeafe;border-bottom:1px solid #bfdbfe}.sia-panel-title{font-size:.75rem;font-weight:700;color:#1e40af;text-transform:uppercase;letter-spacing:.04em}.sia-panel-hint{font-size:.72rem;color:#3b82f6}.sia-diff-box{padding:8px 12px;font-size:.875rem;line-height:1.6;color:#1e293b;white-space:pre-wrap;word-break:break-word;font-family:inherit;min-height:60px}.sia-diff-mark{background:#bbf7d0;color:#14532d;border-radius:2px;padding:0 1px;font-style:normal}.sia-panel-footer{display:flex;gap:8px;padding:8px 12px;border-top:1px solid #bfdbfe;background:#f0f7ff}.sia-panel-header-right{display:flex;align-items:center;gap:6px}.sia-panel-hint--ok{color:#15803d;font-weight:600}.sia-collapse-btn{background:none;border:none;cursor:pointer;color:#3b82f6;font-size:.65rem;padding:0 2px;line-height:1;opacity:.7;transition:opacity .1s}.sia-collapse-btn:hover{opacity:1}.sia-wrapper textarea.form-control{will-change:height;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}.sia-char-count{font-size:.7rem;color:#6b7280;font-variant-numeric:tabular-nums;white-space:nowrap}.sia-char-count--over{color:#b91c1c;font-weight:700}.sia-limit-warning{font-size:.78rem;color:#92400e;background:#fffbeb;border:1px solid #fcd34d;border-radius:4px;padding:4px 10px;flex:1}.sia-panel-footer-actions{display:flex;align-items:center;gap:8px}.sia-disclaimer{margin:6px 0 0;font-size:.7rem;color:#6b7280;line-height:1.4}.sia-stale-banner{padding:5px 12px;font-size:.75rem;color:#92400e;background:#fffbeb;border-bottom:1px solid #fcd34d}.sia-drafting-preview{padding:10px 14px;font-size:.875rem;line-height:1.7;color:#1e293b;white-space:pre-wrap;word-break:break-word}.sia-edit-textarea{width:100%;padding:8px 12px;font-size:.875rem;line-height:1.6;color:#1e293b;background:#fff;border:none;border-bottom:1px solid #bfdbfe;resize:vertical;font-family:inherit;outline:none;box-sizing:border-box}
@@ -2,9 +2,9 @@ import { jsxs as l, jsx as t, Fragment as c } from "react/jsx-runtime";
2
2
  import a from "react";
3
3
  import '../../assets/Bootstrap.css';import '../../assets/Tarjeta.css';/* empty css */
4
4
  /* empty css */
5
- import { C as v, a as E } from "../../Card-_JzS9Ssz.js";
6
- import { C as T } from "../../CardBody-CUEPjltD.js";
7
- import { B as x } from "../../Button-eLVX04GZ.js";
5
+ import { C as v, a as E } from "../../Card-pj1hogT6.js";
6
+ import { C as T } from "../../CardBody-osBHz8Sj.js";
7
+ import { B as x } from "../../Button-CFf-9Lsg.js";
8
8
  const V = {
9
9
  width: "100px"
10
10
  }, k = ({
@@ -1,7 +1,7 @@
1
1
  import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
- import { J as s } from "../../../index-HaNVi1BU.js";
2
+ import { Q as s } from "../../../index-DBLHT45t.js";
3
3
  import '../../../assets/Bootstrap.css';/* empty css */
4
- import { B as a } from "../../../Button-eLVX04GZ.js";
4
+ import { B as a } from "../../../Button-CFf-9Lsg.js";
5
5
  const d = {
6
6
  fontColor: "#303d50s",
7
7
  fontSize: "1.1rem",
@@ -1,6 +1,6 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import o from "react";
3
- import { C as d } from "../../../CardBody-CUEPjltD.js";
3
+ import { C as d } from "../../../CardBody-osBHz8Sj.js";
4
4
  import '../../../assets/SeccionTarjeta.css';const m = ({ isGray: a = !1, children: e, isLast: r = !1, hasPaddingTop: i = !0 }) => {
5
5
  const t = o.Children.toArray(e), s = t[0] && o.isValidElement(t[0]) && t[0].type.displayName === "Subtitulo";
6
6
  return /* @__PURE__ */ l(
@@ -1,8 +1,8 @@
1
1
  import { jsxs as a, jsx as t } from "react/jsx-runtime";
2
2
  import { useState as c, useRef as u, useEffect as j } from "react";
3
- import { p, q as N } from "../../index-HaNVi1BU.js";
3
+ import { x as p, y as N } from "../../index-DBLHT45t.js";
4
4
  import '../../assets/TarjetaInfo.css';/* empty css */
5
- const b = ({ icon: l, label: h, show: f = !1, children: o, extraItem: i }) => {
5
+ const H = ({ icon: l, label: h, show: f = !1, children: o, extraItem: i }) => {
6
6
  const [e, s] = c(f), [m, r] = c(0), n = u(null);
7
7
  return j(() => {
8
8
  if (!n.current) return;
@@ -44,5 +44,5 @@ const b = ({ icon: l, label: h, show: f = !1, children: o, extraItem: i }) => {
44
44
  ] });
45
45
  };
46
46
  export {
47
- b as TarjetaInfo
47
+ H as TarjetaInfo
48
48
  };
@@ -4,7 +4,7 @@ import '../../assets/Bootstrap.css';import '../../assets/TarjetaLectura.css';/*
4
4
  import { Logo as g } from "../../ui/logo/Logo.js";
5
5
  import { SeccionTarjetaLectura as _ } from "./seccion-tarjeta-lectura/SeccionTarjetaLectura.js";
6
6
  /* empty css */
7
- import { B as m } from "../../Button-eLVX04GZ.js";
7
+ import { B as m } from "../../Button-CFf-9Lsg.js";
8
8
  const L = ({ title: h, subtitle: u, headerContent: f, stepContent: n, children: o }) => {
9
9
  const [r, a] = v(0), p = d(null), c = d(null);
10
10
  return y(() => {
@@ -3,13 +3,13 @@ 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 { I as t } from "../../index-HaNVi1BU.js";
6
+ import { f as t } from "../../index-DBLHT45t.js";
7
7
  /* empty css */
8
8
  /* empty css */
9
9
  /* empty css */
10
10
  /* empty css */
11
11
  import { TarjetaInfo as n } from "../../cards/tarjeta-info/TarjetaInfo.js";
12
- import { T as c } from "../../Table-cUZFLrPi.js";
12
+ import { T as c } from "../../Table-CYSh6C16.js";
13
13
  const N = () => {
14
14
  const i = () => /* @__PURE__ */ r("td", { className: "text-start", children: "      .      " });
15
15
  return /* @__PURE__ */ r(n, { label: "Datos básicos", icon: t, children: /* @__PURE__ */ r(c, { responsive: !0, striped: !0, children: /* @__PURE__ */ e("tbody", { children: [
@@ -0,0 +1,245 @@
1
+ import { ubicacionPara as N } from "./tipos.js";
2
+ const S = {
3
+ ANALISTA_RIESGO: 2203,
4
+ REVISOR_CALIDAD: 2206
5
+ }, E = N(S.ANALISTA_RIESGO), A = N(S.REVISOR_CALIDAD), L = {
6
+ // ── Entrevista (1) ───────────────────────────────────────────────────────
7
+ // Informacion familiar
8
+ /** 1 · componenteConyugal · causaFallecimientoConyuge — Causa de fallecimiento del cónyuge */
9
+ ENTREVISTA_CAUSA_FALLECIMIENTO_CONYUGE: E(1),
10
+ /** 2 · HijosInfo · causaFallecimientoHijo — Causa de fallecimiento del hijo */
11
+ ENTREVISTA_CAUSA_FALLECIMIENTO_HIJO: E(2),
12
+ /** 3 · ComponenteFliaOrigen · causaFallecimientoFamiliar — Causa de fallecimiento del familiar */
13
+ ENTREVISTA_CAUSA_FALLECIMIENTO_FAMILIAR: E(3),
14
+ /** 4 · relacionFamiliar · observaciones — Relación de personas con las que reside */
15
+ ENTREVISTA_RELACION_RESIDENTES: E(4),
16
+ /** 5 · relacionFamiliar · observacionesAntecedentesFamiliares — Antecedentes de amenaza contra familiares */
17
+ ENTREVISTA_ANTECEDENTES_FAMILIARES: E(5),
18
+ // Informacion laboral
19
+ /** 6 · InfoLaboral · observacionesLaborales — Observaciones */
20
+ ENTREVISTA_OBSERVACIONES_LABORALES: E(6),
21
+ // Grupo y condición poblacional
22
+ /** 7 · componenteActividadPoblacional · observacionesActividadPoblacional — Contextualice */
23
+ ENTREVISTA_CONTEXTO_POBLACIONAL: E(7),
24
+ /** 8 · componenteHistorial · observaciones — Observaciones del historial */
25
+ ENTREVISTA_OBSERVACIONES_HISTORIAL: E(8),
26
+ // Medidas y autoproteccion
27
+ /** 9 · componenteMedidas · medidasCautelares — Medidas cautelares o provisionales */
28
+ ENTREVISTA_MEDIDAS_CAUTELARES: E(9),
29
+ /** 10 · componenteMedidas · medidasEspeciales — Medidas especiales de protección */
30
+ ENTREVISTA_MEDIDAS_ESPECIALES: E(10),
31
+ /** 11 · componenteMedidas · observacionesAutoproteccion — Observaciones del acta de autoprotección */
32
+ ENTREVISTA_OBSERVACIONES_AUTOPROTECCION: E(11),
33
+ // Desplazamientos y entorno
34
+ /** 12 · componenteDesplazamientos · puntosVulnerabilidad — Puntos de posibles vulnerabilidades */
35
+ ENTREVISTA_PUNTOS_VULNERABILIDAD: E(12),
36
+ /** 13 · componenteEntorno · observacionesEntorno — Actividades de esparcimiento y recreación */
37
+ ENTREVISTA_OBSERVACIONES_ENTORNO: E(13),
38
+ // Denuncias y/o quejas
39
+ /** 14 · componenteDenuncias · observaciones — Observaciones */
40
+ ENTREVISTA_OBSERVACIONES_DENUNCIAS: E(14),
41
+ // Relato de hechos
42
+ /** 15 · componenteRelatoHechos · parteIntroductoria — Parte introductoria */
43
+ ENTREVISTA_PARTE_INTRODUCTORIA: E(15),
44
+ /** 16 · componenteRelatoHechos · variablesRiesgo — Variables generadoras de riesgo */
45
+ ENTREVISTA_VARIABLES_RIESGO: E(16),
46
+ /** 17 · componenteRelatoHechos · relatoHechos — Relato de los hechos ocurridos */
47
+ ENTREVISTA_RELATO_HECHOS: E(17),
48
+ /** 18 · componenteRelatoHechos · antecedentesRiesgo — Antecedentes de riesgo o amenazas */
49
+ ENTREVISTA_ANTECEDENTES_RIESGO: E(18),
50
+ /** 19 · componenteRelatoHechos · vulnerabilidad — Vulnerabilidades */
51
+ ENTREVISTA_VULNERABILIDADES: E(19),
52
+ /** 20 · componenteRelatoHechos · aspectosAdicionales — Aspectos adicionales */
53
+ ENTREVISTA_ASPECTOS_ADICIONALES: E(20),
54
+ /** 21 · componenteRelatoHechos · peticionEvaluado — Petición */
55
+ ENTREVISTA_PETICION: E(21),
56
+ // ── Persona de protección (2) ────────────────────────────────────────────
57
+ // Características de la entrevista (bloque repetido por escolta)
58
+ /** 22 · componenteInfoEntrevista · amenazas — Situaciones de amenaza conocidas */
59
+ ESCOLTAS_AMENAZAS: E(22),
60
+ /** 23 · componenteInfoEntrevista · desplazamientos — Desplazamientos a zonas de peligrosidad */
61
+ ESCOLTAS_DESPLAZAMIENTOS: E(23),
62
+ /** 24 · componenteInfoEntrevista · actividades — Actividades poblacionales */
63
+ ESCOLTAS_ACTIVIDADES: E(24),
64
+ /** 25 · componenteInfoEntrevista · conductas — Conductas que generan riesgo adicional */
65
+ ESCOLTAS_CONDUCTAS: E(25),
66
+ // Observaciones
67
+ /** 26 · comportenteObservaciones · observaciones — Observaciones generales */
68
+ ESCOLTAS_OBSERVACIONES_GENERALES: E(26),
69
+ // ── Entrevista a tercero (3) ─────────────────────────────────────────────
70
+ /** 27 · componenteEntrevistaTerceros · sinopsis — Sinopsis de la información (bloque repetido por tercero) */
71
+ TERCEROS_SINOPSIS: E(27),
72
+ // ── Documental (4) ───────────────────────────────────────────────────────
73
+ /** 28 · componenteDocumental · resultadosObtenidos — Resultados obtenidos (bloque repetido por fuente) */
74
+ DOCUMENTAL_RESULTADOS: E(28),
75
+ // ── Entornos (5) ─────────────────────────────────────────────────────────
76
+ // Relaciones interpersonales y entorno social
77
+ /** 29 · componenteDesplazamientos · relacionesVecinos — Relaciones con vecinos */
78
+ ENTORNO_RELACIONES_VECINOS: E(29),
79
+ /** 30 · componenteDesplazamientos · relacionesTrabajo — Relaciones laborales */
80
+ ENTORNO_RELACIONES_LABORALES: E(30),
81
+ /** 31 · componenteDesplazamientos · relacionesEsparcimiento — Relaciones en espacios de esparcimiento */
82
+ ENTORNO_RELACIONES_ESPARCIMIENTO: E(31),
83
+ /** 32 · componenteDesplazamientos · situacionesConvivencia — Situaciones de convivencia y seguridad */
84
+ ENTORNO_CONVIVENCIA: E(32),
85
+ /** 33 · componenteDesplazamientos · perfilEntornoSocial — Perfil en entorno social comunitario */
86
+ ENTORNO_PERFIL_SOCIAL: E(33),
87
+ // Desplazamientos
88
+ /** 34 · componenteDesplazamientos · analisisDesplazamientos — Análisis y observaciones sobre desplazamientos */
89
+ ENTORNO_ANALISIS_DESPLAZAMIENTOS: E(34),
90
+ // Entorno residencial
91
+ /** 35 · componenteEntornoResidencia · barrerasFisicasResidencia — Barreras físicas y/o naturales */
92
+ ENTORNO_BARRERAS_RESIDENCIA: E(35),
93
+ /** 36 · componenteEntornoResidencia · controlIngresoResidencia — Control para el ingreso al sitio */
94
+ ENTORNO_CONTROL_INGRESO_RESIDENCIA: E(36),
95
+ /** 37 · componenteEntornoResidencia · medidasTecnicasResidencia — Medidas técnicas de seguridad del sitio */
96
+ ENTORNO_MEDIDAS_TECNICAS_RESIDENCIA: E(37),
97
+ /** 38 · componenteEntornoResidencia · puntosApoyoResidencia — Puntos de apoyo en cercanías */
98
+ ENTORNO_PUNTOS_APOYO_RESIDENCIA: E(38),
99
+ // Entorno laboral
100
+ /** 39 · componenteEntornoLaboral · barrerasFisicasActividad — Barreras físicas y/o naturales */
101
+ ENTORNO_BARRERAS_ACTIVIDAD: E(39),
102
+ /** 40 · componenteEntornoLaboral · controlIngresoActividad — Control para el ingreso al sitio */
103
+ ENTORNO_CONTROL_INGRESO_ACTIVIDAD: E(40),
104
+ /** 41 · componenteEntornoLaboral · medidasTecnicasActividad — Medidas técnicas de seguridad del sitio */
105
+ ENTORNO_MEDIDAS_TECNICAS_ACTIVIDAD: E(41),
106
+ /** 42 · componenteEntornoLaboral · puntosApoyoActividad — Puntos de apoyo en cercanías */
107
+ ENTORNO_PUNTOS_APOYO_ACTIVIDAD: E(42),
108
+ // Justificación de anexos
109
+ /** 43 · formularioEntorno · justificacionAnexos — Justificación por la cual no se adjuntan documentos */
110
+ ENTORNO_JUSTIFICACION_ANEXOS: E(43),
111
+ // ── Matriz de riesgo (6) ─ ids 44 a 48, ver `ubicacionMatriz` más abajo ───
112
+ // ── Informe ejecutivo (7) ────────────────────────────────────────────────
113
+ /** 49 · componenteAnalisis · hechosAnteriores — Hechos anteriores/antecedentes */
114
+ INFORME_HECHOS_ANTERIORES: E(49),
115
+ /** 50 · componenteAnalisis · hechosActuales — Hechos actuales */
116
+ INFORME_HECHOS_ACTUALES: E(50),
117
+ /** 51 · componenteAnalisis · descripcionUltimoContacto — Descripción */
118
+ INFORME_DESCRIPCION_ULTIMO_CONTACTO: E(51),
119
+ /** 52 · componenteAnalisis · actividadesVerificacion — Actividades de verificación */
120
+ INFORME_ACTIVIDADES_VERIFICACION: E(52),
121
+ /** 53 · componenteAnalisis · amenaza — Amenaza */
122
+ INFORME_AMENAZA: E(53),
123
+ /** 54 · componenteAnalisis · riesgo — Riesgo específico */
124
+ INFORME_RIESGO: E(54),
125
+ /** 55 · componenteAnalisis · vulnerabilidad — Vulnerabilidad */
126
+ INFORME_VULNERABILIDAD: E(55),
127
+ /** 56 · componenteAnalisis · conclusion — Conclusión */
128
+ INFORME_CONCLUSION: E(56),
129
+ /** 57 · componenteAnalisis · pretencionesEvaluar — Pretensiones de la persona a evaluar */
130
+ INFORME_PRETENSIONES: E(57),
131
+ /** 58 · componenteAnalisis2 · medidasEmergencia — Medidas de emergencia */
132
+ INFORME_MEDIDAS_EMERGENCIA: E(58),
133
+ /** 59 · componenteAnalisis2 · contextoOrdenPublico — Contexto orden público */
134
+ INFORME_CONTEXTO_ORDEN_PUBLICO: E(59),
135
+ /** 60 · componenteAnalisis2 · relacionFamiliar — Relación familiar */
136
+ INFORME_RELACION_FAMILIAR: E(60),
137
+ /** 61 · componenteAnalisis2 · informesRiesgoDefensoria — Informes de riesgo y alertas tempranas vigentes */
138
+ INFORME_INFORMES_RIESGO: E(61),
139
+ /** 62 · componenteAnalisis2 · medidasCautelares — Medidas cautelares */
140
+ INFORME_MEDIDAS_CAUTELARES: E(62),
141
+ /** 63 · componenteAmenaza · observaciones — Observaciones finales del analista */
142
+ INFORME_OBSERVACIONES_ANALISTA: E(63),
143
+ /** 64 · componenteFactorDiferencial · observacionesDiferenciales — Observaciones */
144
+ INFORME_OBSERVACIONES_DIFERENCIALES: E(64),
145
+ // ── Contacto (8) ─────────────────────────────────────────────────────────
146
+ /** 65 · observacionesArchivos · observacionesGenerales — Observaciones generales */
147
+ CONTACTO_OBSERVACIONES_GENERALES: E(65),
148
+ // ── Inactivación (9) ─────────────────────────────────────────────────────
149
+ // Gestión de la información (solo aparece si el switch del bloque está en Sí)
150
+ /** 69 · ComponenteGestionInformacion · obsGestionIntegralME — Gestión integral de medidas de emergencia o de protección */
151
+ INACTIVACION_OBS_GESTION_INTEGRAL: E(69),
152
+ /** 70 · ComponenteGestionInformacion · obsSolicitudReevaluacionCERREM — Reevaluación por devolución CERREM, CESEP o UP-PCC */
153
+ INACTIVACION_OBS_REEVALUACION_CERREM: E(70),
154
+ /** 71 · ComponenteGestionInformacion · obsSolicitudEvaluacionOrdenJudicial — Evaluación por orden judicial */
155
+ INACTIVACION_OBS_ORDEN_JUDICIAL: E(71),
156
+ /** 72 · ComponenteGestionInformacion · obsSolicitudReevaluacionRecursoRepo — Reevaluación al resolver el recurso de reposición */
157
+ INACTIVACION_OBS_RECURSO_REPOSICION: E(72),
158
+ // Hechos (bloque repetido por hecho)
159
+ /** 73 · ComponenteHechos · lugarReferencia — Lugar de referencia */
160
+ INACTIVACION_LUGAR_REFERENCIA: E(73),
161
+ /** 74 · ComponenteHechos · relato — Relato de los hechos */
162
+ INACTIVACION_RELATO_HECHO: E(74),
163
+ /** 75 · ComponenteReferencias · datosReferencia-N — Referencia del hecho (repetida por referencia) */
164
+ INACTIVACION_REFERENCIA_HECHO: E(75),
165
+ // Sustentación
166
+ /** 76 · ComponenteSustentacion · argumentos — Argumentos que sustentan la solicitud */
167
+ INACTIVACION_ARGUMENTOS: E(76),
168
+ // Fuentes del expediente (bloque repetido por fuente seleccionada)
169
+ /** 77 · ChecklistFuentesExpediente · obs-{id} — Observación y sustento de la fuente documental */
170
+ INACTIVACION_OBS_FUENTE_DOCUMENTAL: E(77),
171
+ /** 78 · ChecklistFuentesExpediente · obs-{id} — Observación y sustento de la entrevista a terceros */
172
+ INACTIVACION_OBS_FUENTE_TERCERO: E(78),
173
+ // ── Consentimiento (10) ──────────────────────────────────────────────────
174
+ /** 66 · infoConsentimiento · observaciones — Observaciones (único campo del formulario) */
175
+ CONSENTIMIENTO_OBSERVACIONES: E(66),
176
+ // ── Desistimiento (11) ───────────────────────────────────────────────────
177
+ /** 68 · DatosDesistimiento · observaciones — Observaciones sobre la decisión de desistir */
178
+ DESISTIMIENTO_OBSERVACIONES: E(68),
179
+ // ── Gestor de registro CTAR (12) ─────────────────────────────────────────
180
+ /**
181
+ * 67 · PaginaDiagnostico:1130 · sin `name` — Texto de prueba.
182
+ * Es el SmartTextArea del modal de diagnóstico: sirve para validar la
183
+ * conexión con Larissa, así que conviene que también deje métrica.
184
+ */
185
+ DIAGNOSTICO_PRUEBA: E(67),
186
+ // ── Gestión de calidad (13) ── ids 79 a 105, ver `ubicacionCalidad` más abajo
187
+ // Las entradas de aquí son las de respaldo; los componentes usan
188
+ // `ubicacionCalidad`, que separa la métrica por formulario revisado.
189
+ // ─────────────────────────────────────────────────────────────────────
190
+ // Es transversal: los mismos componentes sirven a todos los formularios, así
191
+ // que el formulario no queda en la métrica; el caso sí, por el registro.
192
+ // Observaciones del revisor (rol revisor de calidad)
193
+ /** 79 · DictamenCalidadLateral · observacionTexto — Detalle de la observación nueva */
194
+ CALIDAD_NUEVA_OBSERVACION: A(79),
195
+ /** 80 · DictamenCalidadLateral · editTexto — Detalle de la observación al editarla */
196
+ CALIDAD_EDITAR_OBSERVACION: A(80),
197
+ /** 81 · DictamenCalidadLateral · replyTexto — Respuesta al analista */
198
+ CALIDAD_RESPUESTA_ANALISTA: A(81),
199
+ // Respuestas del analista
200
+ /** 82 · ObservacionesCalidadCard · respuestasTexto — Justificación de la observación (en cada formulario) */
201
+ CALIDAD_JUSTIFICACION: E(82),
202
+ /** 83 · ResumenFormatoContent · respuestasTexto — Justificación de la observación (desde el resumen) */
203
+ CALIDAD_JUSTIFICACION_RESUMEN: E(83)
204
+ }, R = {
205
+ /** 44 · 1. Evaluación de la amenaza · Fuentes de información */
206
+ 1: 44,
207
+ /** 45 · 2. Evaluación del riesgo específico · Fuentes de información */
208
+ 2: 45,
209
+ /** 46 · 3. Evaluación de la vulnerabilidad · Fuentes de información */
210
+ 3: 46,
211
+ /** 47 · 4. Resumen consolidado de evaluación · Fuentes de información */
212
+ 4: 47
213
+ }, D = (O) => E(R[O] ?? 48), T = {
214
+ /** 44 · Entrevista */
215
+ 1: { revisor: 84, analista: 85 },
216
+ /** 45 · Persona de proteccion */
217
+ 2: { revisor: 86, analista: 87 },
218
+ /** 46 · Entrevista a tercero */
219
+ 3: { revisor: 88, analista: 89 },
220
+ /** 47 · Documental */
221
+ 4: { revisor: 90, analista: 91 },
222
+ /** 48 · Entornos */
223
+ 5: { revisor: 92, analista: 93 },
224
+ /** 49 · Matriz de riesgo */
225
+ 6: { revisor: 94, analista: 95 },
226
+ /** 50 · Informe ejecutivo */
227
+ 7: { revisor: 96, analista: 97 },
228
+ /** 51 · Contacto */
229
+ 8: { revisor: 98, analista: 99 },
230
+ /** 52 · Inactivacion */
231
+ 9: { revisor: 100, analista: 101 },
232
+ /** 53 · Consentimiento */
233
+ 10: { revisor: 102, analista: 103 },
234
+ /** 54 · Desistimiento */
235
+ 11: { revisor: 104, analista: 105 }
236
+ }, V = (O, _) => {
237
+ const I = T[Number(O)];
238
+ return _ === "revisor" ? A((I == null ? void 0 : I.revisor) ?? 79) : E((I == null ? void 0 : I.analista) ?? 82);
239
+ };
240
+ export {
241
+ S as ROL_IA,
242
+ L as UBICACION_IA,
243
+ V as ubicacionCalidad,
244
+ D as ubicacionMatriz
245
+ };
@@ -0,0 +1,9 @@
1
+ import { ubicacionPara as o } from "./tipos.js";
2
+ import { ROL_IA as r, UBICACION_IA as I, ubicacionCalidad as b, ubicacionMatriz as n } from "./analisisRiesgo.js";
3
+ export {
4
+ r as ROL_IA,
5
+ I as UBICACION_IA,
6
+ b as ubicacionCalidad,
7
+ n as ubicacionMatriz,
8
+ o as ubicacionPara
9
+ };
@@ -0,0 +1,4 @@
1
+ const o = (a) => (c) => ({ campo: c, rol: a });
2
+ export {
3
+ o as ubicacionPara
4
+ };
@@ -0,0 +1,160 @@
1
+ import { getUserToken as y } from "../../auth/services/User.js";
2
+ import { logger as I } from "../../utils/logger/logger.js";
3
+ const d = {
4
+ nombre_sistema: 120,
5
+ codigo_sistema: 30,
6
+ nombre_aplicativo: 120,
7
+ codigo_aplicativo: 60,
8
+ nombre_seccion: 300,
9
+ codigo_seccion: 60,
10
+ nombre_campo: 300,
11
+ codigo_campo: 80
12
+ }, $ = /* @__PURE__ */ new Set(["nombre_sistema", "codigo_sistema"]), R = /^[a-z0-9]+(?:[_-][a-z0-9]+)*$/;
13
+ function L(e) {
14
+ const r = [];
15
+ for (const o of Object.keys(d)) {
16
+ const n = (e[o] ?? "").trim();
17
+ if (!n) {
18
+ $.has(o) || r.push(`${o} es obligatorio.`);
19
+ continue;
20
+ }
21
+ n.length > d[o] && r.push(`${o} tiene ${n.length} caracteres; el máximo es ${d[o]}.`), o.startsWith("codigo_") && !R.test(n.toLowerCase()) && r.push(`${o} solo admite letras, números, '_' y '-', sin espacios.`);
22
+ }
23
+ return r;
24
+ }
25
+ function P(e) {
26
+ if (!e) return;
27
+ const r = L(e);
28
+ r.length && I.warn(
29
+ `[SmartTextArea] La ubicación no es válida y la métrica quedaría sin campo:
30
+ - ` + r.join(`
31
+ - `),
32
+ e
33
+ );
34
+ }
35
+ const A = 480 * 60 * 1e3, M = 1e3, T = 100, m = "/registro/ia/larissa/", v = "/registro/ia/spelling/", C = "api-ser", O = {
36
+ TEXT_EMPTY: "El texto no puede estar vacío.",
37
+ INTERNAL_ERROR: "Error interno de Larissa. Intente de nuevo.",
38
+ LLM_PROVIDER_ERROR: "Larissa no está disponible en este momento."
39
+ };
40
+ function h(e, r) {
41
+ return e && O[e] ? O[e] : r || "Error desconocido en Larissa.";
42
+ }
43
+ function w(e) {
44
+ if (!e) return;
45
+ const r = Object.fromEntries(
46
+ Object.entries(e).filter(([, o]) => o != null)
47
+ );
48
+ return Object.keys(r).length ? r : void 0;
49
+ }
50
+ function p(e) {
51
+ const r = (e ?? "").replace(/\/$/, "");
52
+ if (!r) throw new Error("URL de Larissa no configurada.");
53
+ return r;
54
+ }
55
+ function _(e = y, r) {
56
+ const o = e();
57
+ return {
58
+ "Content-Type": "application/json",
59
+ ...o ? { Authorization: `Bearer ${o}` } : {},
60
+ "BK-Service": r ?? C
61
+ };
62
+ }
63
+ async function b(e, r) {
64
+ try {
65
+ return await fetch(e, r);
66
+ } catch {
67
+ throw new Error("No se pudo conectar con Larissa. Verifique su conexión.");
68
+ }
69
+ }
70
+ async function U(e, r, o, n, s, i = {}) {
71
+ var g, E;
72
+ const l = p(o), a = w(s), u = i.ruta ?? m, f = {
73
+ method: "POST",
74
+ headers: _(n, i.servicio),
75
+ body: JSON.stringify({
76
+ text: e,
77
+ type: r,
78
+ ...a ? { metrica: a } : {}
79
+ })
80
+ };
81
+ let c = await b(`${l}${u}`, f);
82
+ c.status === 404 && u === m && (c = await b(`${l}${v}`, f));
83
+ let t;
84
+ try {
85
+ t = await c.json();
86
+ } catch {
87
+ throw new Error(`Error inesperado del servidor (${c.status}).`);
88
+ }
89
+ if (c.status === 400) throw new Error(h(t == null ? void 0 : t.code, t == null ? void 0 : t.message));
90
+ if (c.status === 422) {
91
+ const S = (E = (g = t == null ? void 0 : t.detail) == null ? void 0 : g[0]) == null ? void 0 : E.msg;
92
+ throw new Error(S ? `Error de validación: ${S}` : "Los datos enviados no son válidos.");
93
+ }
94
+ if (!c.ok) throw new Error(h(t == null ? void 0 : t.code, t == null ? void 0 : t.message));
95
+ if (!(t != null && t.success)) throw new Error(h(t == null ? void 0 : t.code, t == null ? void 0 : t.message));
96
+ return {
97
+ corrected_text: t.corrected_text ?? "",
98
+ original_text: t.original_text ?? "",
99
+ id_diaglarissa: t.id_diaglarissa
100
+ };
101
+ }
102
+ async function j(e, r, o, n, s = {}, i) {
103
+ try {
104
+ const l = p(o), a = s.ruta ?? m;
105
+ return (await fetch(`${l}${a}${e}/aplicado/`, {
106
+ method: "PATCH",
107
+ headers: _(n, s.servicio),
108
+ body: JSON.stringify(!r && i ? { aplicado: r, motivo: i } : { aplicado: r })
109
+ })).ok;
110
+ } catch {
111
+ return !1;
112
+ }
113
+ }
114
+ async function k(e, r, o, n = {}) {
115
+ const s = n.ruta ?? m, i = w(e.metrica);
116
+ if (s === v || !i || i.campo === void 0 && !i.ubicacion) return !1;
117
+ const { sesion: l, ...a } = i;
118
+ try {
119
+ const u = p(r);
120
+ return (await fetch(`${u}${s}sesion/`, {
121
+ method: "POST",
122
+ headers: _(o, n.servicio),
123
+ keepalive: !0,
124
+ body: JSON.stringify({
125
+ ...e,
126
+ metrica: a,
127
+ tiempo_activo_ms: Math.min(Math.max(Math.round(e.tiempo_activo_ms), 0), A),
128
+ solicitudes: Math.min(e.solicitudes, M),
129
+ pendiente: e.pendiente ?? null,
130
+ ediciones: (e.ediciones ?? []).slice(0, T)
131
+ })
132
+ })).ok;
133
+ } catch {
134
+ return !1;
135
+ }
136
+ }
137
+ function D() {
138
+ const e = globalThis.crypto;
139
+ if (typeof (e == null ? void 0 : e.randomUUID) == "function") return e.randomUUID();
140
+ const r = new Uint8Array(16);
141
+ if (typeof (e == null ? void 0 : e.getRandomValues) == "function") e.getRandomValues(r);
142
+ else for (let n = 0; n < r.length; n++) r[n] = Math.floor(Math.random() * 256);
143
+ r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128;
144
+ const o = Array.from(r, (n) => n.toString(16).padStart(2, "0")).join("");
145
+ return `${o.slice(0, 8)}-${o.slice(8, 12)}-${o.slice(12, 16)}-${o.slice(16, 20)}-${o.slice(20)}`;
146
+ }
147
+ const B = (e, r, o) => U(e, "spelling", r, o);
148
+ export {
149
+ d as LIMITES_UBICACION,
150
+ m as RUTA_LARISSA,
151
+ v as RUTA_SPELLING,
152
+ A as TIEMPO_SESION_MAX_MS,
153
+ P as avisarUbicacion,
154
+ U as fetchLarissaCorrection,
155
+ B as fetchSpellingCorrection,
156
+ j as informarAplicado,
157
+ k as informarSesion,
158
+ D as nuevoIdSesion,
159
+ L as revisarUbicacion
160
+ };
@@ -0,0 +1,7 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ const c = ({ tokens: e }) => /* @__PURE__ */ s("div", { className: "sia-diff-box", children: e.map(
3
+ (a, i) => a.changed ? /* @__PURE__ */ s("mark", { className: "sia-diff-mark", children: a.text }, i) : /* @__PURE__ */ s("span", { children: a.text }, i)
4
+ ) });
5
+ export {
6
+ c as DiffResult
7
+ };