@litigiovirtual/ius-alertas 0.1.1 → 0.2.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.
@@ -3,8 +3,58 @@ import * as i0 from '@angular/core';
3
3
  import { InjectionToken, makeEnvironmentProviders, inject, Injectable, signal, computed, effect, untracked, input, numberAttribute, output, ChangeDetectionStrategy, Component } from '@angular/core';
4
4
  import { catchError, of, Subject, switchMap, EMPTY, map, finalize } from 'rxjs';
5
5
  import { HubConnectionBuilder } from '@microsoft/signalr';
6
+ import { DOCUMENT } from '@angular/common';
6
7
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
7
- import { ToastService, DrawerComponent, DropdownComponent, EmptyStateComponent, FlexComponent, IconButtonComponent, IllustrationComponent, IusDrawerHeaderActionsDirective, IusDropdownTriggerDirective, NotificationItemComponent, SectionHeaderComponent, SkeletonComponent, StatusStateComponent } from '@litigiovirtual/ius-design-components';
8
+ import { ToastService, ButtonComponent, DrawerComponent, DropdownComponent, EmptyStateComponent, FlexComponent, IconButtonComponent, IllustrationComponent, IusDrawerHeaderActionsDirective, IusDropdownTriggerDirective, IusModalFooterDirective, ModalComponent, NotificationItemComponent, SectionHeaderComponent, SkeletonComponent, StatusStateComponent, TextAreaComponent } from '@litigiovirtual/ius-design-components';
9
+
10
+ /**
11
+ * El destino de la alerta con `alerta=<id>`; null si no hay destino, si la ruta no es relativa (como la valida el Auth al
12
+ * recibirla) o si el prefijo no tiene web conocida.
13
+ */
14
+ function resolverDestino(destino, alertaID, app, urlApps) {
15
+ if (!destino) {
16
+ return null;
17
+ }
18
+ const separador = destino.indexOf(':');
19
+ if (separador < 0) {
20
+ return null;
21
+ }
22
+ const prefijo = destino.slice(0, separador);
23
+ const relativa = destino.slice(separador + 1);
24
+ // Pegada a la base, una ruta sin su «/» o con «//» cambia de host («@evil.com», «.evil.com»).
25
+ if (!esRutaRelativa(relativa)) {
26
+ return null;
27
+ }
28
+ const ruta = conAlerta(relativa, alertaID);
29
+ if (prefijo === app) {
30
+ return { tipo: 'interno', ruta };
31
+ }
32
+ // Sin hasOwn, «constructor» o «toString» salen del prototipo del objeto.
33
+ const base = Object.hasOwn(urlApps, prefijo) ? urlApps[prefijo] : undefined;
34
+ if (!base) {
35
+ return null;
36
+ }
37
+ return { tipo: 'externo', url: base.replace(/\/+$/, '') + ruta };
38
+ }
39
+ /** El path de una ruta interna, sin query ni fragmento: sirve para saber si el destino es la pantalla actual. */
40
+ function pathDeRuta(ruta) {
41
+ return ruta.split('#')[0].split('?')[0];
42
+ }
43
+ /** La misma regla que `EsDestinoRelativo` del Auth: «/» y algo más, sin «//», sin «\» ni caracteres de control. */
44
+ function esRutaRelativa(ruta) {
45
+ return /^\/[^/]/.test(ruta) && !/[\\\u0000-\u001f\u007f-\u009f]/.test(ruta);
46
+ }
47
+ /** Un `alerta=` que ya traiga el destino se reemplaza; los demás parámetros quedan tal cual, sin recodificar. */
48
+ function conAlerta(ruta, alertaID) {
49
+ const almohadilla = ruta.indexOf('#');
50
+ const sinFragmento = almohadilla < 0 ? ruta : ruta.slice(0, almohadilla);
51
+ const fragmento = almohadilla < 0 ? '' : ruta.slice(almohadilla);
52
+ const interrogacion = sinFragmento.indexOf('?');
53
+ const path = interrogacion < 0 ? sinFragmento : sinFragmento.slice(0, interrogacion);
54
+ const parametros = interrogacion < 0 ? [] : sinFragmento.slice(interrogacion + 1).split('&');
55
+ const otros = parametros.filter(p => p !== '' && p.split('=')[0] !== 'alerta');
56
+ return `${path}?${[...otros, `alerta=${alertaID}`].join('&')}${fragmento}`;
57
+ }
8
58
 
9
59
  /** En el orden del catálogo: es el orden del filtro. */
10
60
  const MODULOS_ALERTA = {
@@ -42,9 +92,29 @@ class AlertasApiService {
42
92
  headers: this.cabeceras(),
43
93
  }));
44
94
  }
95
+ destinoNoDisponible(accountID, alertaID) {
96
+ return this.responder(this.http.put(this.url('DestinoNoDisponible'), null, {
97
+ params: { accountID, alertaID },
98
+ headers: this.cabeceras(),
99
+ }));
100
+ }
101
+ solicitudCupo(accountID, solicitudCupoID) {
102
+ return this.responder(this.http.get(this.urlSubscripciones('SolicitudCupo'), {
103
+ params: { accountID, solicitudCupoID },
104
+ headers: this.cabeceras(),
105
+ }));
106
+ }
107
+ resolverSolicitudCupo(cuerpo) {
108
+ return this.responder(this.http.put(this.urlSubscripciones('ResolverSolicitudCupo'), cuerpo, {
109
+ headers: this.cabeceras(),
110
+ }));
111
+ }
45
112
  url(accion) {
46
113
  return `${this.config.urlAuth}/api/v1/Alert/${accion}`;
47
114
  }
115
+ urlSubscripciones(accion) {
116
+ return `${this.config.urlAuth}/api/v1/Subscripciones/${accion}`;
117
+ }
48
118
  // Explícito: la cookie de sesión no viaja al dominio del Auth (azurewebsites.net).
49
119
  cabeceras() {
50
120
  return new HttpHeaders({ Authorization: `Bearer ${this.config.token()}` });
@@ -212,9 +282,13 @@ function modulosConPendientes(alertas) {
212
282
  function hayMarcables(alertas) {
213
283
  return alertas.some(a => !a.seDecideEnSitio);
214
284
  }
285
+ /**
286
+ * Con ids cuentan solo ellos: la referencia no lleva `tipoReferencia`, y una «Tarea» y una «Asignacion» pueden compartir
287
+ * número. La referencia queda para los avisos sin ids (`DismissFromAmacode`).
288
+ */
215
289
  function coincideConSalida(a, salida) {
216
- if (salida.alertaIDs?.includes(a.alertaID))
217
- return true;
290
+ if (salida.alertaIDs)
291
+ return salida.alertaIDs.includes(a.alertaID);
218
292
  if (!salida.aplicacionOrigen || !salida.referenciaOrigenId)
219
293
  return false;
220
294
  return (a.aplicacionOrigen === salida.aplicacionOrigen &&
@@ -224,7 +298,26 @@ function coincideConSalida(a, salida) {
224
298
 
225
299
  const ERROR_GENERICO = 'El servicio no respondió. Vuelve a intentarlo.';
226
300
  const ALERTA_NO_ENCONTRADA = 'ALERTA_NO_ENCONTRADA';
301
+ const SOLICITUD_CUPO = 'SolicitudCupo';
302
+ /** La solicitud ya no existe, ya se resolvió o ya no se puede ver: lo que menciona la alerta se perdió (AC6/AC7). */
303
+ const SOLICITUD_PERDIDA = [
304
+ 'SOLICITUD_CUPO_NOT_FOUND',
305
+ 'SOLICITUD_CUPO_YA_RESUELTA',
306
+ 'DETALLE_CONTRATO_NOT_FOUND',
307
+ 'SUBSCRIPTION_PERMISSION_REQUIRED',
308
+ ];
227
309
  const MINUTO_MS = 60_000;
310
+ /** El error genérico solo con una falla real; un rechazo con código trae su propio mensaje. */
311
+ function mensajeDeError(respuesta) {
312
+ const fallaReal = !respuesta.code || respuesta.code === SERVICIO_NO_DISPONIBLE;
313
+ return fallaReal ? ERROR_GENERICO : respuesta.message || ERROR_GENERICO;
314
+ }
315
+ function solicitudPerdida(respuesta) {
316
+ return !respuesta.isSuccess && SOLICITUD_PERDIDA.includes(respuesta.code ?? '');
317
+ }
318
+ function solicitudAprobada(cupos) {
319
+ return cupos === 1 ? 'Solicitud aprobada · 1 cupo asignado' : `Solicitud aprobada · ${cupos} cupos asignados`;
320
+ }
228
321
  /** El panel de alertas de la cuenta activa: lo que pinta la campana y el drawer, en vivo. */
229
322
  class AlertasState {
230
323
  constructor() {
@@ -232,6 +325,7 @@ class AlertasState {
232
325
  this.api = inject(AlertasApiService);
233
326
  this.hub = inject(AlertasHubService);
234
327
  this.toast = inject(ToastService);
328
+ this.doc = inject(DOCUMENT);
235
329
  this.iniciado = signal(false, /* @ts-ignore */
236
330
  ...(ngDevMode ? [{ debugName: "iniciado" }] : /* istanbul ignore next */ []));
237
331
  this.lista = signal([], /* @ts-ignore */
@@ -246,11 +340,22 @@ class AlertasState {
246
340
  ...(ngDevMode ? [{ debugName: "_saliendo" }] : /* istanbul ignore next */ []));
247
341
  this._ahora = signal(ahoraEnColombia(), /* @ts-ignore */
248
342
  ...(ngDevMode ? [{ debugName: "_ahora" }] : /* istanbul ignore next */ []));
343
+ this._descarte = signal(null, /* @ts-ignore */
344
+ ...(ngDevMode ? [{ debugName: "_descarte" }] : /* istanbul ignore next */ []));
345
+ this._rechazo = signal(null, /* @ts-ignore */
346
+ ...(ngDevMode ? [{ debugName: "_rechazo" }] : /* istanbul ignore next */ []));
347
+ this._resolviendo = signal(new Set(), /* @ts-ignore */
348
+ ...(ngDevMode ? [{ debugName: "_resolviendo" }] : /* istanbul ignore next */ []));
249
349
  this.cargas = new Subject();
250
350
  /** Lo que cambió mientras viaja una carga: se reaplica sobre su respuesta, que puede ser anterior. */
251
351
  this.enVuelo = null;
252
- /** Con el PUT de «vista» pendiente, una recarga puede leer la base antes del commit: no vuelven a entrar. */
352
+ /**
353
+ * Con el PUT que la saca del Auth pendiente («vista» o destino no disponible), una recarga puede leer la base antes
354
+ * del commit: no vuelven a entrar.
355
+ */
253
356
  this.marcando = new Set();
357
+ /** Cada apertura (y cada reset) deja sin efecto la verificación de la anterior: gana la última. */
358
+ this.aperturas = 0;
254
359
  this.abierto = this._abierto.asReadonly();
255
360
  this.estado = this._estado.asReadonly();
256
361
  this.filtro = this._filtro.asReadonly();
@@ -258,6 +363,12 @@ class AlertasState {
258
363
  this.saliendo = this._saliendo.asReadonly();
259
364
  /** Hora de pared de Colombia (ver `ahoraEnColombia`); se refresca cada minuto con el panel abierto. */
260
365
  this.ahora = this._ahora.asReadonly();
366
+ /** La alerta que espera «Descartar y continuar» (AC5). */
367
+ this.descarte = this._descarte.asReadonly();
368
+ /** La solicitud de cupo con el modal de rechazo abierto. */
369
+ this.rechazo = this._rechazo.asReadonly();
370
+ /** Las solicitudes, por `alertaID`, con Aprobar o Rechazar en vuelo. */
371
+ this.resolviendo = this._resolviendo.asReadonly();
261
372
  this.vigentes = computed(() => this.lista().filter(a => !this._saliendo().has(a.alertaID)), /* @ts-ignore */
262
373
  ...(ngDevMode ? [{ debugName: "vigentes" }] : /* istanbul ignore next */ []));
263
374
  /** El número de la campana. */
@@ -277,7 +388,7 @@ class AlertasState {
277
388
  .pipe(switchMap(cuenta => (cuenta === undefined ? EMPTY : this.api.pendientes(cuenta).pipe(map(r => ({ cuenta, r }))))), takeUntilDestroyed())
278
389
  .subscribe(({ cuenta, r }) => this.alCargar(cuenta, r));
279
390
  this.hub.llegadas$.pipe(takeUntilDestroyed()).subscribe(alerta => this.alLlegar(alerta));
280
- this.hub.salidas$.pipe(takeUntilDestroyed()).subscribe(salida => this.sacar(a => coincideConSalida(a, salida)));
391
+ this.hub.salidas$.pipe(takeUntilDestroyed()).subscribe(salida => this.alSalir(salida));
281
392
  this.hub.conectado$.pipe(takeUntilDestroyed()).subscribe(() => this.recargar());
282
393
  this.config.sesionCerrada$.pipe(takeUntilDestroyed()).subscribe(() => this.alCerrarSesion());
283
394
  effect(() => {
@@ -350,6 +461,73 @@ class AlertasState {
350
461
  this.devolver(cuenta, marcables, r);
351
462
  });
352
463
  }
464
+ /**
465
+ * «Ver detalle» o la tarjeta: lleva a su destino sin quitarla (AC2, AC3). Las informativas no se abren, ni la solicitud
466
+ * con Aprobar o Rechazar en vuelo: su verificación respondería YA_RESUELTA y saldrían dos avisos.
467
+ */
468
+ abrir(alerta) {
469
+ if (alerta.clase === 'info' || this._resolviendo().has(alerta.alertaID))
470
+ return;
471
+ this.aperturas++;
472
+ const destino = this.destinoDe(alerta);
473
+ this.cerrar();
474
+ // Sin destino no hay a dónde ir ni cambios que perder: solo se cierra el panel.
475
+ if (!destino)
476
+ return;
477
+ if (this.pideDescarte(destino)) {
478
+ this._descarte.set(alerta);
479
+ return;
480
+ }
481
+ this.irA(alerta);
482
+ }
483
+ confirmarDescarte() {
484
+ const alerta = this._descarte();
485
+ if (!alerta)
486
+ return;
487
+ this.aperturas++;
488
+ this.config.cambiosSinGuardar?.descartar();
489
+ this._descarte.set(null);
490
+ // Descartar puede llevar a otra pantalla (el «Cancelar» de un formulario vuelve a su lista): no es que la persona se fuera.
491
+ this.irA(alerta, true);
492
+ }
493
+ /** Sigo donde estaba, con el panel cerrado. */
494
+ cancelarDescarte() {
495
+ this._descarte.set(null);
496
+ }
497
+ /**
498
+ * La pantalla de destino ya no muestra lo que menciona la alerta (AC6/AC7): sale y el Auth deja de tenerla.
499
+ * No exige que esté en la lista: la pantalla puede avisar antes de que el panel cargue.
500
+ */
501
+ destinoNoDisponible(alertaID) {
502
+ const cuenta = this.config.cuentaActiva();
503
+ if (cuenta === undefined || this.marcando.has(alertaID))
504
+ return;
505
+ this.sacar(a => a.alertaID === alertaID);
506
+ // Con una falla no vuelve: el Auth la sigue teniendo y la trae la próxima carga.
507
+ this.mientrasSeMarca([alertaID], this.api.destinoNoDisponible(cuenta, alertaID)).subscribe();
508
+ }
509
+ /** Aprueba lo pedido, sin confirmación (inventario 4.6). */
510
+ aprobar(alerta) {
511
+ this.resolverSolicitud(alerta, { aprobar: true }, r => {
512
+ this.toast.success(solicitudAprobada(r.object?.cuposAprobados ?? 0));
513
+ });
514
+ }
515
+ pedirRechazo(alerta) {
516
+ this._rechazo.set(alerta);
517
+ }
518
+ cancelarRechazo() {
519
+ this._rechazo.set(null);
520
+ }
521
+ /** Con una falla, el modal sigue abierto y conserva la razón para reintentar. */
522
+ rechazar(razon) {
523
+ const alerta = this._rechazo();
524
+ if (!alerta)
525
+ return;
526
+ this.resolverSolicitud(alerta, { aprobar: false, razon: razon.trim() }, () => {
527
+ this.cerrarRechazo(alerta);
528
+ this.toast.success('Solicitud rechazada');
529
+ });
530
+ }
353
531
  /** Fin de la transición de salida. */
354
532
  quitar(alertaID) {
355
533
  this.soltar([alertaID]);
@@ -363,6 +541,10 @@ class AlertasState {
363
541
  this._saliendo.set(new Set());
364
542
  this._filtro.set(null);
365
543
  this._estado.set('cargando');
544
+ this._descarte.set(null);
545
+ this._rechazo.set(null);
546
+ this._resolviendo.set(new Set());
547
+ this.aperturas++;
366
548
  }
367
549
  recargar() {
368
550
  const cuenta = this.config.cuentaActiva();
@@ -398,6 +580,18 @@ class AlertasState {
398
580
  this.toast.info(`${modulo} · ${alerta.titulo}`, { message: alerta.descripcion });
399
581
  }
400
582
  }
583
+ alSalir(salida) {
584
+ const rechazo = this._rechazo();
585
+ const descarte = this._descarte();
586
+ // Como el Drawer de F11 (inventario 4.15): si otro la resolvió, el modal ya no tiene qué decidir.
587
+ if (rechazo && coincideConSalida(rechazo, salida))
588
+ this._rechazo.set(null);
589
+ // Una solicitud resuelta tampoco tiene a dónde llevar: su descarte se cierra y los cambios se quedan. Un destino que no
590
+ // se decide en el sitio sigue ahí aunque la alerta salga.
591
+ if (descarte?.seDecideEnSitio && coincideConSalida(descarte, salida))
592
+ this._descarte.set(null);
593
+ this.sacar(a => coincideConSalida(a, salida));
594
+ }
401
595
  alCerrarSesion() {
402
596
  this.iniciado.set(false);
403
597
  this._abierto.set(false);
@@ -419,8 +613,94 @@ class AlertasState {
419
613
  return;
420
614
  this.soltar(alertas.map(a => a.alertaID));
421
615
  this.aplicar(lista => [...lista, ...alertas.filter(a => !lista.some(b => b.alertaID === a.alertaID))]);
422
- const fallaReal = !respuesta.code || respuesta.code === SERVICIO_NO_DISPONIBLE;
423
- this.toast.error(fallaReal ? ERROR_GENERICO : respuesta.message || ERROR_GENERICO);
616
+ this.toast.error(mensajeDeError(respuesta));
617
+ }
618
+ /** Una solicitud se verifica antes de salir: si se perdió, se dice aquí en vez de llevar a una pantalla vacía. */
619
+ irA(alerta, trasDescartar = false) {
620
+ const destino = this.destinoDe(alerta);
621
+ const cuenta = this.config.cuentaActiva();
622
+ if (!destino)
623
+ return;
624
+ if (alerta.tipoReferencia !== SOLICITUD_CUPO || cuenta === undefined) {
625
+ this.navegar(destino);
626
+ return;
627
+ }
628
+ const apertura = this.aperturas;
629
+ const pantalla = trasDescartar ? null : this.doc.location.pathname;
630
+ this.api.solicitudCupo(cuenta, Number(alerta.referenciaOrigenId)).subscribe(r => {
631
+ // Hexti puede tardar hasta el timeout del Auth: si mientras tanto se abrió otra o cambió la sesión, esta ya no manda.
632
+ if (apertura !== this.aperturas || cuenta !== this.config.cuentaActiva())
633
+ return;
634
+ // Tampoco si la persona se fue a otra pantalla por el menú: ya no quiere ir. Se compara el path porque la pantalla puede limpiar su
635
+ // propia query (replaceUrl) en ese rato sin que la persona se haya ido.
636
+ if (pantalla !== null && this.doc.location.pathname !== pantalla)
637
+ return;
638
+ // Una falla real (Hexti o el Auth caídos) no dice que no exista: se navega igual.
639
+ if (solicitudPerdida(r)) {
640
+ this.perdida(alerta, r.message);
641
+ return;
642
+ }
643
+ // Mientras se verificaba pudo empezar una edición.
644
+ if (this.pideDescarte(destino)) {
645
+ this._descarte.set(alerta);
646
+ return;
647
+ }
648
+ this.navegar(destino);
649
+ });
650
+ }
651
+ /** En la misma pantalla el destino se aplica sobre ella: no se sale de nada ni hay cambios que perder. */
652
+ pideDescarte(destino) {
653
+ const mismaPantalla = destino.tipo === 'interno' && pathDeRuta(destino.ruta) === this.doc.location.pathname;
654
+ return !mismaPantalla && !!this.config.cambiosSinGuardar?.hay();
655
+ }
656
+ navegar(destino) {
657
+ if (destino.tipo === 'interno') {
658
+ this.config.navegar(destino.ruta);
659
+ return;
660
+ }
661
+ this.doc.location.href = destino.url;
662
+ }
663
+ destinoDe(alerta) {
664
+ return resolverDestino(alerta.destino, alerta.alertaID, this.config.app, this.config.urlApps);
665
+ }
666
+ /** D5 en espera: la propuesta por defecto es que salga igual y se avise con el `message` del backend. */
667
+ perdida(alerta, mensaje) {
668
+ this.destinoNoDisponible(alerta.alertaID);
669
+ this.toast.error(mensaje || ERROR_GENERICO);
670
+ }
671
+ /** Una sola resolución en vuelo por solicitud. Con otro código o una falla real, la alerta se queda. */
672
+ resolverSolicitud(alerta, decision, alResolver) {
673
+ const cuenta = this.config.cuentaActiva();
674
+ const id = alerta.alertaID;
675
+ if (cuenta === undefined || this._resolviendo().has(id))
676
+ return;
677
+ this._resolviendo.update(ids => new Set([...ids, id]));
678
+ this.api
679
+ .resolverSolicitudCupo({ accountID: cuenta, solicitudCupoID: Number(alerta.referenciaOrigenId), ...decision })
680
+ .pipe(finalize(() => this._resolviendo.update(ids => new Set([...ids].filter(i => i !== id)))))
681
+ .subscribe(r => {
682
+ // Si ya no está en `resolviendo`, un reset (cambio de cuenta o cierre de sesión) la soltó: es de antes.
683
+ if (!this._resolviendo().has(id) || cuenta !== this.config.cuentaActiva())
684
+ return;
685
+ if (r.isSuccess) {
686
+ // El Auth cierra el aviso de todos, también el de quien resuelve, antes de responder: su DismissAlert suele
687
+ // llegar primero. Sacarla otra vez no la duplica, y el aviso de éxito va igual.
688
+ this.sacar(a => a.alertaID === id);
689
+ alResolver(r);
690
+ return;
691
+ }
692
+ if (solicitudPerdida(r)) {
693
+ this.cerrarRechazo(alerta);
694
+ this.perdida(alerta, r.message);
695
+ return;
696
+ }
697
+ this.toast.error(mensajeDeError(r));
698
+ });
699
+ }
700
+ /** Solo si el modal sigue siendo el de esta solicitud: pudo cancelarse y abrirse otro mientras viajaba. */
701
+ cerrarRechazo(alerta) {
702
+ if (this._rechazo()?.alertaID === alerta.alertaID)
703
+ this._rechazo.set(null);
424
704
  }
425
705
  mientrasSeMarca(ids, peticion) {
426
706
  ids.forEach(id => this.marcando.add(id));
@@ -455,6 +735,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
455
735
 
456
736
  /** Valor de «Todos los módulos» en el filtro. */
457
737
  const TODOS = 'todas';
738
+ /** Las acciones de una solicitud de cupo: se deciden en el sitio, sin salir de la pantalla. */
739
+ const ACCIONES_SOLICITUD = [
740
+ { key: 'aprobar', label: 'Aprobar', primary: true },
741
+ { key: 'rechazar', label: 'Rechazar' },
742
+ ];
458
743
  /** El panel de alertas (inventario F6·HU-1 §2–§6): solo pinta lo que recibe y avisa lo que pide el usuario. */
459
744
  class AlertasPanelComponent {
460
745
  constructor() {
@@ -479,6 +764,15 @@ class AlertasPanelComponent {
479
764
  /** Hora de pared de Colombia (`ahoraEnColombia`): de ella salen «hace N» y la hora. */
480
765
  this.ahora = input.required(/* @ts-ignore */
481
766
  ...(ngDevMode ? [{ debugName: "ahora" }] : /* istanbul ignore next */ []));
767
+ /** La alerta que espera «Descartar y continuar». */
768
+ this.descarte = input(null, /* @ts-ignore */
769
+ ...(ngDevMode ? [{ debugName: "descarte" }] : /* istanbul ignore next */ []));
770
+ /** La solicitud de cupo con el modal de rechazo abierto. */
771
+ this.rechazo = input(null, /* @ts-ignore */
772
+ ...(ngDevMode ? [{ debugName: "rechazo" }] : /* istanbul ignore next */ []));
773
+ /** Las solicitudes con Aprobar o Rechazar en vuelo. */
774
+ this.resolviendo = input(new Set(), /* @ts-ignore */
775
+ ...(ngDevMode ? [{ debugName: "resolviendo" }] : /* istanbul ignore next */ []));
482
776
  this.cerrar = output();
483
777
  this.reintentar = output();
484
778
  this.filtrar = output();
@@ -489,6 +783,13 @@ class AlertasPanelComponent {
489
783
  this.quitada = output();
490
784
  /** «Ver detalle» o la tarjeta de una alerta de acción (HU-2). */
491
785
  this.abrirAlerta = output();
786
+ /** «Aprobar» o «Rechazar» de una solicitud de cupo. */
787
+ this.accionAlerta = output();
788
+ this.confirmarDescarte = output();
789
+ this.cancelarDescarte = output();
790
+ /** La razón que escribió quien rechaza. */
791
+ this.confirmarRechazo = output();
792
+ this.cancelarRechazo = output();
492
793
  /** Con un filtro, la lista puede quedar vacía aunque haya pendientes de otros módulos. */
493
794
  this.hayPendientes = computed(() => this.grupos().length > 0 || this.modulos().length > 0, /* @ts-ignore */
494
795
  ...(ngDevMode ? [{ debugName: "hayPendientes" }] : /* istanbul ignore next */ []));
@@ -503,6 +804,16 @@ class AlertasPanelComponent {
503
804
  ...(ngDevMode ? [{ debugName: "cuerpo" }] : /* istanbul ignore next */ []));
504
805
  this.conAcciones = computed(() => this.estado() === 'listo' && this.hayPendientes(), /* @ts-ignore */
505
806
  ...(ngDevMode ? [{ debugName: "conAcciones" }] : /* istanbul ignore next */ []));
807
+ /** Se limpia cada vez que cambia la solicitud del modal de rechazo. */
808
+ this.razon = signal('', /* @ts-ignore */
809
+ ...(ngDevMode ? [{ debugName: "razon" }] : /* istanbul ignore next */ []));
810
+ this.sinRazon = computed(() => this.razon().trim() === '', /* @ts-ignore */
811
+ ...(ngDevMode ? [{ debugName: "sinRazon" }] : /* istanbul ignore next */ []));
812
+ this.rechazando = computed(() => {
813
+ const alerta = this.rechazo();
814
+ return alerta !== null && this.resolviendo().has(alerta.alertaID);
815
+ }, /* @ts-ignore */
816
+ ...(ngDevMode ? [{ debugName: "rechazando" }] : /* istanbul ignore next */ []));
506
817
  this.valorFiltro = computed(() => this.filtro() ?? TODOS, /* @ts-ignore */
507
818
  ...(ngDevMode ? [{ debugName: "valorFiltro" }] : /* istanbul ignore next */ []));
508
819
  this.tooltipFiltro = computed(() => {
@@ -524,20 +835,37 @@ class AlertasPanelComponent {
524
835
  modulo: MODULOS_ALERTA[alerta.modulo],
525
836
  tiempo: tiempoDeAlerta(alerta.fechaRegistro, ahora),
526
837
  deAccion: alerta.clase !== 'info',
838
+ acciones: this.accionesDe(alerta),
527
839
  })),
528
840
  }));
529
841
  }, /* @ts-ignore */
530
842
  ...(ngDevMode ? [{ debugName: "secciones" }] : /* istanbul ignore next */ []));
843
+ effect(() => {
844
+ this.rechazo();
845
+ this.razon.set('');
846
+ });
847
+ }
848
+ /** Cada acción se deshabilita mientras su solicitud se resuelve. */
849
+ accionesDe(alerta) {
850
+ if (!alerta.seDecideEnSitio || alerta.tipoReferencia !== 'SolicitudCupo') {
851
+ return [];
852
+ }
853
+ const enVuelo = this.resolviendo().has(alerta.alertaID);
854
+ return ACCIONES_SOLICITUD.map(accion => ({ ...accion, disabled: enVuelo }));
855
+ }
856
+ alAccionar(alerta, key) {
857
+ this.accionAlerta.emit({ alerta, accion: key === 'aprobar' ? 'aprobar' : 'rechazar' });
531
858
  }
532
859
  alFiltrar(valor) {
533
860
  this.filtrar.emit(valor === TODOS || valor === undefined ? null : valor);
534
861
  }
535
862
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AlertasPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
536
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AlertasPanelComponent, isStandalone: true, selector: "ius-alertas-panel", inputs: { offsetTop: { classPropertyName: "offsetTop", publicName: "offsetTop", isSignal: true, isRequired: false, transformFunction: null }, abierto: { classPropertyName: "abierto", publicName: "abierto", isSignal: true, isRequired: false, transformFunction: null }, estado: { classPropertyName: "estado", publicName: "estado", isSignal: true, isRequired: false, transformFunction: null }, grupos: { classPropertyName: "grupos", publicName: "grupos", isSignal: true, isRequired: false, transformFunction: null }, modulos: { classPropertyName: "modulos", publicName: "modulos", isSignal: true, isRequired: false, transformFunction: null }, filtro: { classPropertyName: "filtro", publicName: "filtro", isSignal: true, isRequired: false, transformFunction: null }, hayMarcables: { classPropertyName: "hayMarcables", publicName: "hayMarcables", isSignal: true, isRequired: false, transformFunction: null }, saliendo: { classPropertyName: "saliendo", publicName: "saliendo", isSignal: true, isRequired: false, transformFunction: null }, ahora: { classPropertyName: "ahora", publicName: "ahora", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { cerrar: "cerrar", reintentar: "reintentar", filtrar: "filtrar", marcarVista: "marcarVista", marcarTodas: "marcarTodas", quitada: "quitada", abrirAlerta: "abrirAlerta" }, ngImport: i0, template: "<ius-drawer\n side=\"right\"\n size=\"sm\"\n title=\"Alertas\"\n showClose\n [showScrim]=\"false\"\n [closeOnScrim]=\"false\"\n [offsetTop]=\"offsetTop()\"\n [open]=\"abierto()\"\n (closed)=\"cerrar.emit()\"\n>\n @if (conAcciones()) {\n <div iusDrawerHeaderActions ius-flex gap=\"xxs\" align=\"center\">\n @if (modulos().length > 1) {\n <ius-dropdown\n selectable\n placement=\"bottom-end\"\n label=\"Filtrar por m\u00F3dulo\"\n ariaLabel=\"Filtrar por m\u00F3dulo\"\n [items]=\"opciones()\"\n [value]=\"valorFiltro()\"\n (valueChange)=\"alFiltrar($event.value)\"\n >\n <ius-icon-button\n iusDropdownTrigger\n icon=\"filter_list\"\n shape=\"circle\"\n size=\"small\"\n ariaLabel=\"Filtrar\"\n [variant]=\"filtro() ? 'secondary' : 'tertiary'\"\n [tooltip]=\"tooltipFiltro()\"\n />\n </ius-dropdown>\n }\n <ius-icon-button\n icon=\"done_all\"\n variant=\"tertiary\"\n shape=\"circle\"\n size=\"small\"\n tooltip=\"Marcar todas como vistas\"\n ariaLabel=\"Marcar todas como vistas\"\n [disabled]=\"!hayMarcables()\"\n (clicked)=\"marcarTodas.emit()\"\n />\n </div>\n }\n\n @switch (cuerpo()) {\n @case ('cargando') {\n <div ius-flex direction=\"column\" gap=\"sm\">\n @for (pieza of [0, 1, 2, 3]; track pieza) {\n <ius-skeleton variant=\"rect\" height=\"56px\" />\n }\n </div>\n }\n @case ('error') {\n <div ius-flex direction=\"column\" align=\"center\" justify=\"center\" class=\"ius-alertas-panel__centro\">\n <ius-status-state\n status=\"error\"\n size=\"compact\"\n title=\"No se cargaron las alertas\"\n [illustrationTemplate]=\"ilustracionError\"\n [primaryAction]=\"{ label: 'Reintentar', icon: 'refresh' }\"\n (primaryClick)=\"reintentar.emit()\"\n />\n </div>\n }\n @case ('al-dia') {\n <div ius-flex direction=\"column\" align=\"center\" justify=\"center\" class=\"ius-alertas-panel__centro\">\n <ius-empty-state\n size=\"compact\"\n variant=\"no-data\"\n illustration=\"empty-inbox\"\n title=\"Est\u00E1s al d\u00EDa\"\n description=\"Cuando pase algo en tus procesos, tus tareas o tu cuenta, te avisamos aqu\u00ED.\"\n />\n </div>\n }\n @case ('sin-resultados') {\n <div ius-flex direction=\"column\" align=\"center\" justify=\"center\" class=\"ius-alertas-panel__centro\">\n <ius-empty-state\n size=\"compact\"\n variant=\"no-results\"\n title=\"No hay alertas de este m\u00F3dulo\"\n primaryAction=\"Ver todas\"\n [illustration]=\"true\"\n (primaryClick)=\"filtrar.emit(null)\"\n />\n </div>\n }\n @default {\n <div ius-flex direction=\"column\" gap=\"md\">\n @for (seccion of secciones(); track seccion.dia) {\n <div ius-flex direction=\"column\" gap=\"xs\">\n <ius-section-header variant=\"group\" [count]=\"seccion.alertas.length\">{{ seccion.etiqueta }}</ius-section-header>\n <div>\n @for (fila of seccion.filas; track fila.alerta.alertaID) {\n <ius-notification-item\n [kind]=\"fila.deAccion ? 'action' : 'info'\"\n [icon]=\"fila.modulo.icono\"\n [module]=\"fila.modulo.etiqueta\"\n [title]=\"fila.alerta.titulo\"\n [message]=\"fila.alerta.descripcion\"\n [time]=\"fila.tiempo\"\n [dismissible]=\"!fila.alerta.seDecideEnSitio\"\n [leaving]=\"saliendo().has(fila.alerta.alertaID)\"\n (opened)=\"abrirAlerta.emit(fila.alerta)\"\n (dismissed)=\"marcarVista.emit(fila.alerta.alertaID)\"\n (exited)=\"quitada.emit(fila.alerta.alertaID)\"\n />\n }\n </div>\n </div>\n }\n </div>\n }\n }\n</ius-drawer>\n\n<ng-template #ilustracionError>\n <ius-illustration name=\"screenError\" size=\"small\" />\n</ng-template>\n", styles: [".ius-alertas-panel__centro{min-height:100%}\n"], dependencies: [{ kind: "component", type: DrawerComponent, selector: "ius-drawer", inputs: ["open", "defaultOpen", "side", "size", "title", "centerTitle", "showBack", "showClose", "closeOnScrim", "closeOnEsc", "showScrim", "offsetTop", "ariaLabel"], outputs: ["closed", "openChange", "back"] }, { kind: "component", type: DropdownComponent, selector: "ius-dropdown", inputs: ["items", "selectable", "value", "label", "triggerLabel", "triggerIcon", "tone", "variant", "placement", "open", "defaultOpen", "ariaLabel"], outputs: ["valueChange", "openChange"] }, { kind: "component", type: EmptyStateComponent, selector: "ius-empty-state", inputs: ["variant", "size", "tone", "icon", "illustration", "illustrationTemplate", "title", "description", "primaryAction", "secondaryAction", "actionsTemplate", "role"], outputs: ["primaryClick", "secondaryClick"] }, { kind: "component", type: FlexComponent, selector: "ius-flex, [ius-flex]", inputs: ["direction", "gap", "align", "justify", "wrap", "inline"] }, { kind: "component", type: IconButtonComponent, selector: "ius-icon-button", inputs: ["icon", "variant", "size", "shape", "disabled", "type", "ariaLabel", "tooltip", "ariaPressed", "ariaExpanded", "ariaControls", "ariaHaspopup", "tooltipPlacement"], outputs: ["clicked"] }, { kind: "component", type: IllustrationComponent, selector: "ius-illustration", inputs: ["name", "size", "title"] }, { kind: "directive", type: IusDrawerHeaderActionsDirective, selector: "[iusDrawerHeaderActions]" }, { kind: "directive", type: IusDropdownTriggerDirective, selector: "[iusDropdownTrigger]" }, { kind: "component", type: NotificationItemComponent, selector: "ius-notification-item", inputs: ["kind", "icon", "module", "title", "message", "time", "unread", "dismissible", "openLabel", "dismissLabel", "actions", "leaving"], outputs: ["opened", "dismissed", "actionClick", "exited"] }, { kind: "component", type: SectionHeaderComponent, selector: "ius-section-header", inputs: ["icon", "count", "variant", "accent", "collapsible", "collapsed", "sticky", "ariaLabel"], outputs: ["toggle"] }, { kind: "component", type: SkeletonComponent, selector: "ius-skeleton", inputs: ["variant", "width", "height", "radius", "lines", "lastLineWidth", "bars", "gap", "animation", "loading", "ariaLabel"] }, { kind: "component", type: StatusStateComponent, selector: "ius-status-state", inputs: ["status", "code", "showCode", "title", "description", "illustrationTemplate", "icon", "tone", "size", "primaryAction", "secondaryAction", "role"], outputs: ["primaryClick", "secondaryClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
863
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AlertasPanelComponent, isStandalone: true, selector: "ius-alertas-panel", inputs: { offsetTop: { classPropertyName: "offsetTop", publicName: "offsetTop", isSignal: true, isRequired: false, transformFunction: null }, abierto: { classPropertyName: "abierto", publicName: "abierto", isSignal: true, isRequired: false, transformFunction: null }, estado: { classPropertyName: "estado", publicName: "estado", isSignal: true, isRequired: false, transformFunction: null }, grupos: { classPropertyName: "grupos", publicName: "grupos", isSignal: true, isRequired: false, transformFunction: null }, modulos: { classPropertyName: "modulos", publicName: "modulos", isSignal: true, isRequired: false, transformFunction: null }, filtro: { classPropertyName: "filtro", publicName: "filtro", isSignal: true, isRequired: false, transformFunction: null }, hayMarcables: { classPropertyName: "hayMarcables", publicName: "hayMarcables", isSignal: true, isRequired: false, transformFunction: null }, saliendo: { classPropertyName: "saliendo", publicName: "saliendo", isSignal: true, isRequired: false, transformFunction: null }, ahora: { classPropertyName: "ahora", publicName: "ahora", isSignal: true, isRequired: true, transformFunction: null }, descarte: { classPropertyName: "descarte", publicName: "descarte", isSignal: true, isRequired: false, transformFunction: null }, rechazo: { classPropertyName: "rechazo", publicName: "rechazo", isSignal: true, isRequired: false, transformFunction: null }, resolviendo: { classPropertyName: "resolviendo", publicName: "resolviendo", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { cerrar: "cerrar", reintentar: "reintentar", filtrar: "filtrar", marcarVista: "marcarVista", marcarTodas: "marcarTodas", quitada: "quitada", abrirAlerta: "abrirAlerta", accionAlerta: "accionAlerta", confirmarDescarte: "confirmarDescarte", cancelarDescarte: "cancelarDescarte", confirmarRechazo: "confirmarRechazo", cancelarRechazo: "cancelarRechazo" }, ngImport: i0, template: "<ius-drawer\n side=\"right\"\n size=\"sm\"\n title=\"Alertas\"\n showClose\n [showScrim]=\"false\"\n [closeOnScrim]=\"false\"\n [offsetTop]=\"offsetTop()\"\n [open]=\"abierto()\"\n (closed)=\"cerrar.emit()\"\n>\n @if (conAcciones()) {\n <div iusDrawerHeaderActions ius-flex gap=\"xxs\" align=\"center\">\n @if (modulos().length > 1) {\n <ius-dropdown\n selectable\n placement=\"bottom-end\"\n label=\"Filtrar por m\u00F3dulo\"\n ariaLabel=\"Filtrar por m\u00F3dulo\"\n [items]=\"opciones()\"\n [value]=\"valorFiltro()\"\n (valueChange)=\"alFiltrar($event.value)\"\n >\n <ius-icon-button\n iusDropdownTrigger\n icon=\"filter_list\"\n shape=\"circle\"\n size=\"small\"\n ariaLabel=\"Filtrar\"\n [variant]=\"filtro() ? 'secondary' : 'tertiary'\"\n [tooltip]=\"tooltipFiltro()\"\n />\n </ius-dropdown>\n }\n <ius-icon-button\n icon=\"done_all\"\n variant=\"tertiary\"\n shape=\"circle\"\n size=\"small\"\n tooltip=\"Marcar todas como vistas\"\n ariaLabel=\"Marcar todas como vistas\"\n [disabled]=\"!hayMarcables()\"\n (clicked)=\"marcarTodas.emit()\"\n />\n </div>\n }\n\n @switch (cuerpo()) {\n @case ('cargando') {\n <div ius-flex direction=\"column\" gap=\"sm\">\n @for (pieza of [0, 1, 2, 3]; track pieza) {\n <ius-skeleton variant=\"rect\" height=\"56px\" />\n }\n </div>\n }\n @case ('error') {\n <div ius-flex direction=\"column\" align=\"center\" justify=\"center\" class=\"ius-alertas-panel__centro\">\n <ius-status-state\n status=\"error\"\n size=\"compact\"\n title=\"No se cargaron las alertas\"\n [illustrationTemplate]=\"ilustracionError\"\n [primaryAction]=\"{ label: 'Reintentar', icon: 'refresh' }\"\n (primaryClick)=\"reintentar.emit()\"\n />\n </div>\n }\n @case ('al-dia') {\n <div ius-flex direction=\"column\" align=\"center\" justify=\"center\" class=\"ius-alertas-panel__centro\">\n <ius-empty-state\n size=\"compact\"\n variant=\"no-data\"\n illustration=\"empty-inbox\"\n title=\"Est\u00E1s al d\u00EDa\"\n description=\"Cuando pase algo en tus procesos, tus tareas o tu cuenta, te avisamos aqu\u00ED.\"\n />\n </div>\n }\n @case ('sin-resultados') {\n <div ius-flex direction=\"column\" align=\"center\" justify=\"center\" class=\"ius-alertas-panel__centro\">\n <ius-empty-state\n size=\"compact\"\n variant=\"no-results\"\n title=\"No hay alertas de este m\u00F3dulo\"\n primaryAction=\"Ver todas\"\n [illustration]=\"true\"\n (primaryClick)=\"filtrar.emit(null)\"\n />\n </div>\n }\n @default {\n <div ius-flex direction=\"column\" gap=\"md\">\n @for (seccion of secciones(); track seccion.dia) {\n <div ius-flex direction=\"column\" gap=\"xs\">\n <ius-section-header variant=\"group\" [count]=\"seccion.alertas.length\">{{ seccion.etiqueta }}</ius-section-header>\n <div>\n @for (fila of seccion.filas; track fila.alerta.alertaID) {\n <ius-notification-item\n [kind]=\"fila.deAccion ? 'action' : 'info'\"\n [icon]=\"fila.modulo.icono\"\n [module]=\"fila.modulo.etiqueta\"\n [title]=\"fila.alerta.titulo\"\n [message]=\"fila.alerta.descripcion\"\n [time]=\"fila.tiempo\"\n [dismissible]=\"!fila.alerta.seDecideEnSitio\"\n [leaving]=\"saliendo().has(fila.alerta.alertaID)\"\n [actions]=\"fila.acciones\"\n (opened)=\"abrirAlerta.emit(fila.alerta)\"\n (actionClick)=\"alAccionar(fila.alerta, $event)\"\n (dismissed)=\"marcarVista.emit(fila.alerta.alertaID)\"\n (exited)=\"quitada.emit(fila.alerta.alertaID)\"\n />\n }\n </div>\n </div>\n }\n </div>\n }\n }\n</ius-drawer>\n\n@if (rechazo()) {\n <ius-modal\n open\n size=\"small\"\n title=\"\u00BFRechazar la solicitud?\"\n (closed)=\"cancelarRechazo.emit()\"\n >\n <ius-text-area\n label=\"Raz\u00F3n del rechazo\"\n placeholder=\"Expl\u00EDcale al solicitante por qu\u00E9 no apruebas la solicitud\"\n required\n rows=\"3\"\n (valueChange)=\"razon.set($event)\"\n />\n <div iusModalFooter ius-flex justify=\"end\" gap=\"xs\">\n <ius-button variant=\"tertiary\" label=\"Cancelar\" (clicked)=\"cancelarRechazo.emit()\" />\n <ius-button\n variant=\"danger\"\n prefixIcon=\"close\"\n label=\"Rechazar solicitud\"\n [disabled]=\"sinRazon() || rechazando()\"\n (clicked)=\"confirmarRechazo.emit(razon())\"\n />\n </div>\n </ius-modal>\n}\n\n@if (descarte()) {\n <ius-modal\n open\n size=\"small\"\n dividers\n icon=\"help\"\n iconTone=\"warning\"\n destructive\n title=\"\u00BFDescartar los cambios?\"\n description=\"Tienes cambios sin guardar en esta pantalla.\"\n secondaryLabel=\"Cancelar\"\n primaryLabel=\"Descartar y continuar\"\n (closed)=\"cancelarDescarte.emit()\"\n (secondary)=\"cancelarDescarte.emit()\"\n (primary)=\"confirmarDescarte.emit()\"\n />\n}\n\n<ng-template #ilustracionError>\n <ius-illustration name=\"screenError\" size=\"small\" />\n</ng-template>\n", styles: [".ius-alertas-panel__centro{min-height:100%}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "ius-button", inputs: ["variant", "label", "prefixIcon", "sufixIcon", "dynamic", "loading", "status", "disabled", "pressed", "fullWidth", "type", "ariaLabel", "ariaCurrent", "action", "size"], outputs: ["clicked"] }, { kind: "component", type: DrawerComponent, selector: "ius-drawer", inputs: ["open", "defaultOpen", "side", "size", "title", "centerTitle", "showBack", "showClose", "closeOnScrim", "closeOnEsc", "showScrim", "offsetTop", "ariaLabel"], outputs: ["closed", "openChange", "back"] }, { kind: "component", type: DropdownComponent, selector: "ius-dropdown", inputs: ["items", "selectable", "value", "label", "triggerLabel", "triggerIcon", "tone", "variant", "placement", "open", "defaultOpen", "ariaLabel"], outputs: ["valueChange", "openChange"] }, { kind: "component", type: EmptyStateComponent, selector: "ius-empty-state", inputs: ["variant", "size", "tone", "icon", "illustration", "illustrationTemplate", "title", "description", "primaryAction", "secondaryAction", "actionsTemplate", "role"], outputs: ["primaryClick", "secondaryClick"] }, { kind: "component", type: FlexComponent, selector: "ius-flex, [ius-flex]", inputs: ["direction", "gap", "align", "justify", "wrap", "inline"] }, { kind: "component", type: IconButtonComponent, selector: "ius-icon-button", inputs: ["icon", "variant", "size", "shape", "disabled", "type", "ariaLabel", "tooltip", "ariaPressed", "ariaExpanded", "ariaControls", "ariaHaspopup", "tooltipPlacement"], outputs: ["clicked"] }, { kind: "component", type: IllustrationComponent, selector: "ius-illustration", inputs: ["name", "size", "title"] }, { kind: "directive", type: IusDrawerHeaderActionsDirective, selector: "[iusDrawerHeaderActions]" }, { kind: "directive", type: IusDropdownTriggerDirective, selector: "[iusDropdownTrigger]" }, { kind: "directive", type: IusModalFooterDirective, selector: "[iusModalFooter]" }, { kind: "component", type: ModalComponent, selector: "ius-modal", inputs: ["open", "size", "title", "description", "icon", "iconTone", "showClose", "primaryLabel", "primaryLoading", "primaryDisabled", "destructive", "secondaryLabel", "dividers", "closeOnScrim", "closeOnEsc", "zIndex", "ariaLabel"], outputs: ["closed", "primary", "secondary"] }, { kind: "component", type: NotificationItemComponent, selector: "ius-notification-item", inputs: ["kind", "icon", "module", "title", "message", "time", "unread", "dismissible", "openLabel", "dismissLabel", "actions", "leaving"], outputs: ["opened", "dismissed", "actionClick", "exited"] }, { kind: "component", type: SectionHeaderComponent, selector: "ius-section-header", inputs: ["icon", "count", "variant", "accent", "collapsible", "collapsed", "sticky", "ariaLabel"], outputs: ["toggle"] }, { kind: "component", type: SkeletonComponent, selector: "ius-skeleton", inputs: ["variant", "width", "height", "radius", "lines", "lastLineWidth", "bars", "gap", "animation", "loading", "ariaLabel"] }, { kind: "component", type: StatusStateComponent, selector: "ius-status-state", inputs: ["status", "code", "showCode", "title", "description", "illustrationTemplate", "icon", "tone", "size", "primaryAction", "secondaryAction", "role"], outputs: ["primaryClick", "secondaryClick"] }, { kind: "component", type: TextAreaComponent, selector: "ius-text-area", inputs: ["label", "placeholder", "required", "helpText", "errorText", "showHelpText", "showIconHelp", "iconHelpTitle", "iconHelpContent", "name", "rows", "maxRows", "autoGrow", "resizable", "maxLength", "showCount", "error", "disabled", "size", "state"], outputs: ["valueChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
537
864
  }
538
865
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AlertasPanelComponent, decorators: [{
539
866
  type: Component,
540
867
  args: [{ selector: 'ius-alertas-panel', standalone: true, imports: [
868
+ ButtonComponent,
541
869
  DrawerComponent,
542
870
  DropdownComponent,
543
871
  EmptyStateComponent,
@@ -546,12 +874,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
546
874
  IllustrationComponent,
547
875
  IusDrawerHeaderActionsDirective,
548
876
  IusDropdownTriggerDirective,
877
+ IusModalFooterDirective,
878
+ ModalComponent,
549
879
  NotificationItemComponent,
550
880
  SectionHeaderComponent,
551
881
  SkeletonComponent,
552
882
  StatusStateComponent,
553
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ius-drawer\n side=\"right\"\n size=\"sm\"\n title=\"Alertas\"\n showClose\n [showScrim]=\"false\"\n [closeOnScrim]=\"false\"\n [offsetTop]=\"offsetTop()\"\n [open]=\"abierto()\"\n (closed)=\"cerrar.emit()\"\n>\n @if (conAcciones()) {\n <div iusDrawerHeaderActions ius-flex gap=\"xxs\" align=\"center\">\n @if (modulos().length > 1) {\n <ius-dropdown\n selectable\n placement=\"bottom-end\"\n label=\"Filtrar por m\u00F3dulo\"\n ariaLabel=\"Filtrar por m\u00F3dulo\"\n [items]=\"opciones()\"\n [value]=\"valorFiltro()\"\n (valueChange)=\"alFiltrar($event.value)\"\n >\n <ius-icon-button\n iusDropdownTrigger\n icon=\"filter_list\"\n shape=\"circle\"\n size=\"small\"\n ariaLabel=\"Filtrar\"\n [variant]=\"filtro() ? 'secondary' : 'tertiary'\"\n [tooltip]=\"tooltipFiltro()\"\n />\n </ius-dropdown>\n }\n <ius-icon-button\n icon=\"done_all\"\n variant=\"tertiary\"\n shape=\"circle\"\n size=\"small\"\n tooltip=\"Marcar todas como vistas\"\n ariaLabel=\"Marcar todas como vistas\"\n [disabled]=\"!hayMarcables()\"\n (clicked)=\"marcarTodas.emit()\"\n />\n </div>\n }\n\n @switch (cuerpo()) {\n @case ('cargando') {\n <div ius-flex direction=\"column\" gap=\"sm\">\n @for (pieza of [0, 1, 2, 3]; track pieza) {\n <ius-skeleton variant=\"rect\" height=\"56px\" />\n }\n </div>\n }\n @case ('error') {\n <div ius-flex direction=\"column\" align=\"center\" justify=\"center\" class=\"ius-alertas-panel__centro\">\n <ius-status-state\n status=\"error\"\n size=\"compact\"\n title=\"No se cargaron las alertas\"\n [illustrationTemplate]=\"ilustracionError\"\n [primaryAction]=\"{ label: 'Reintentar', icon: 'refresh' }\"\n (primaryClick)=\"reintentar.emit()\"\n />\n </div>\n }\n @case ('al-dia') {\n <div ius-flex direction=\"column\" align=\"center\" justify=\"center\" class=\"ius-alertas-panel__centro\">\n <ius-empty-state\n size=\"compact\"\n variant=\"no-data\"\n illustration=\"empty-inbox\"\n title=\"Est\u00E1s al d\u00EDa\"\n description=\"Cuando pase algo en tus procesos, tus tareas o tu cuenta, te avisamos aqu\u00ED.\"\n />\n </div>\n }\n @case ('sin-resultados') {\n <div ius-flex direction=\"column\" align=\"center\" justify=\"center\" class=\"ius-alertas-panel__centro\">\n <ius-empty-state\n size=\"compact\"\n variant=\"no-results\"\n title=\"No hay alertas de este m\u00F3dulo\"\n primaryAction=\"Ver todas\"\n [illustration]=\"true\"\n (primaryClick)=\"filtrar.emit(null)\"\n />\n </div>\n }\n @default {\n <div ius-flex direction=\"column\" gap=\"md\">\n @for (seccion of secciones(); track seccion.dia) {\n <div ius-flex direction=\"column\" gap=\"xs\">\n <ius-section-header variant=\"group\" [count]=\"seccion.alertas.length\">{{ seccion.etiqueta }}</ius-section-header>\n <div>\n @for (fila of seccion.filas; track fila.alerta.alertaID) {\n <ius-notification-item\n [kind]=\"fila.deAccion ? 'action' : 'info'\"\n [icon]=\"fila.modulo.icono\"\n [module]=\"fila.modulo.etiqueta\"\n [title]=\"fila.alerta.titulo\"\n [message]=\"fila.alerta.descripcion\"\n [time]=\"fila.tiempo\"\n [dismissible]=\"!fila.alerta.seDecideEnSitio\"\n [leaving]=\"saliendo().has(fila.alerta.alertaID)\"\n (opened)=\"abrirAlerta.emit(fila.alerta)\"\n (dismissed)=\"marcarVista.emit(fila.alerta.alertaID)\"\n (exited)=\"quitada.emit(fila.alerta.alertaID)\"\n />\n }\n </div>\n </div>\n }\n </div>\n }\n }\n</ius-drawer>\n\n<ng-template #ilustracionError>\n <ius-illustration name=\"screenError\" size=\"small\" />\n</ng-template>\n", styles: [".ius-alertas-panel__centro{min-height:100%}\n"] }]
554
- }], propDecorators: { offsetTop: [{ type: i0.Input, args: [{ isSignal: true, alias: "offsetTop", required: false }] }], abierto: [{ type: i0.Input, args: [{ isSignal: true, alias: "abierto", required: false }] }], estado: [{ type: i0.Input, args: [{ isSignal: true, alias: "estado", required: false }] }], grupos: [{ type: i0.Input, args: [{ isSignal: true, alias: "grupos", required: false }] }], modulos: [{ type: i0.Input, args: [{ isSignal: true, alias: "modulos", required: false }] }], filtro: [{ type: i0.Input, args: [{ isSignal: true, alias: "filtro", required: false }] }], hayMarcables: [{ type: i0.Input, args: [{ isSignal: true, alias: "hayMarcables", required: false }] }], saliendo: [{ type: i0.Input, args: [{ isSignal: true, alias: "saliendo", required: false }] }], ahora: [{ type: i0.Input, args: [{ isSignal: true, alias: "ahora", required: true }] }], cerrar: [{ type: i0.Output, args: ["cerrar"] }], reintentar: [{ type: i0.Output, args: ["reintentar"] }], filtrar: [{ type: i0.Output, args: ["filtrar"] }], marcarVista: [{ type: i0.Output, args: ["marcarVista"] }], marcarTodas: [{ type: i0.Output, args: ["marcarTodas"] }], quitada: [{ type: i0.Output, args: ["quitada"] }], abrirAlerta: [{ type: i0.Output, args: ["abrirAlerta"] }] } });
883
+ TextAreaComponent,
884
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ius-drawer\n side=\"right\"\n size=\"sm\"\n title=\"Alertas\"\n showClose\n [showScrim]=\"false\"\n [closeOnScrim]=\"false\"\n [offsetTop]=\"offsetTop()\"\n [open]=\"abierto()\"\n (closed)=\"cerrar.emit()\"\n>\n @if (conAcciones()) {\n <div iusDrawerHeaderActions ius-flex gap=\"xxs\" align=\"center\">\n @if (modulos().length > 1) {\n <ius-dropdown\n selectable\n placement=\"bottom-end\"\n label=\"Filtrar por m\u00F3dulo\"\n ariaLabel=\"Filtrar por m\u00F3dulo\"\n [items]=\"opciones()\"\n [value]=\"valorFiltro()\"\n (valueChange)=\"alFiltrar($event.value)\"\n >\n <ius-icon-button\n iusDropdownTrigger\n icon=\"filter_list\"\n shape=\"circle\"\n size=\"small\"\n ariaLabel=\"Filtrar\"\n [variant]=\"filtro() ? 'secondary' : 'tertiary'\"\n [tooltip]=\"tooltipFiltro()\"\n />\n </ius-dropdown>\n }\n <ius-icon-button\n icon=\"done_all\"\n variant=\"tertiary\"\n shape=\"circle\"\n size=\"small\"\n tooltip=\"Marcar todas como vistas\"\n ariaLabel=\"Marcar todas como vistas\"\n [disabled]=\"!hayMarcables()\"\n (clicked)=\"marcarTodas.emit()\"\n />\n </div>\n }\n\n @switch (cuerpo()) {\n @case ('cargando') {\n <div ius-flex direction=\"column\" gap=\"sm\">\n @for (pieza of [0, 1, 2, 3]; track pieza) {\n <ius-skeleton variant=\"rect\" height=\"56px\" />\n }\n </div>\n }\n @case ('error') {\n <div ius-flex direction=\"column\" align=\"center\" justify=\"center\" class=\"ius-alertas-panel__centro\">\n <ius-status-state\n status=\"error\"\n size=\"compact\"\n title=\"No se cargaron las alertas\"\n [illustrationTemplate]=\"ilustracionError\"\n [primaryAction]=\"{ label: 'Reintentar', icon: 'refresh' }\"\n (primaryClick)=\"reintentar.emit()\"\n />\n </div>\n }\n @case ('al-dia') {\n <div ius-flex direction=\"column\" align=\"center\" justify=\"center\" class=\"ius-alertas-panel__centro\">\n <ius-empty-state\n size=\"compact\"\n variant=\"no-data\"\n illustration=\"empty-inbox\"\n title=\"Est\u00E1s al d\u00EDa\"\n description=\"Cuando pase algo en tus procesos, tus tareas o tu cuenta, te avisamos aqu\u00ED.\"\n />\n </div>\n }\n @case ('sin-resultados') {\n <div ius-flex direction=\"column\" align=\"center\" justify=\"center\" class=\"ius-alertas-panel__centro\">\n <ius-empty-state\n size=\"compact\"\n variant=\"no-results\"\n title=\"No hay alertas de este m\u00F3dulo\"\n primaryAction=\"Ver todas\"\n [illustration]=\"true\"\n (primaryClick)=\"filtrar.emit(null)\"\n />\n </div>\n }\n @default {\n <div ius-flex direction=\"column\" gap=\"md\">\n @for (seccion of secciones(); track seccion.dia) {\n <div ius-flex direction=\"column\" gap=\"xs\">\n <ius-section-header variant=\"group\" [count]=\"seccion.alertas.length\">{{ seccion.etiqueta }}</ius-section-header>\n <div>\n @for (fila of seccion.filas; track fila.alerta.alertaID) {\n <ius-notification-item\n [kind]=\"fila.deAccion ? 'action' : 'info'\"\n [icon]=\"fila.modulo.icono\"\n [module]=\"fila.modulo.etiqueta\"\n [title]=\"fila.alerta.titulo\"\n [message]=\"fila.alerta.descripcion\"\n [time]=\"fila.tiempo\"\n [dismissible]=\"!fila.alerta.seDecideEnSitio\"\n [leaving]=\"saliendo().has(fila.alerta.alertaID)\"\n [actions]=\"fila.acciones\"\n (opened)=\"abrirAlerta.emit(fila.alerta)\"\n (actionClick)=\"alAccionar(fila.alerta, $event)\"\n (dismissed)=\"marcarVista.emit(fila.alerta.alertaID)\"\n (exited)=\"quitada.emit(fila.alerta.alertaID)\"\n />\n }\n </div>\n </div>\n }\n </div>\n }\n }\n</ius-drawer>\n\n@if (rechazo()) {\n <ius-modal\n open\n size=\"small\"\n title=\"\u00BFRechazar la solicitud?\"\n (closed)=\"cancelarRechazo.emit()\"\n >\n <ius-text-area\n label=\"Raz\u00F3n del rechazo\"\n placeholder=\"Expl\u00EDcale al solicitante por qu\u00E9 no apruebas la solicitud\"\n required\n rows=\"3\"\n (valueChange)=\"razon.set($event)\"\n />\n <div iusModalFooter ius-flex justify=\"end\" gap=\"xs\">\n <ius-button variant=\"tertiary\" label=\"Cancelar\" (clicked)=\"cancelarRechazo.emit()\" />\n <ius-button\n variant=\"danger\"\n prefixIcon=\"close\"\n label=\"Rechazar solicitud\"\n [disabled]=\"sinRazon() || rechazando()\"\n (clicked)=\"confirmarRechazo.emit(razon())\"\n />\n </div>\n </ius-modal>\n}\n\n@if (descarte()) {\n <ius-modal\n open\n size=\"small\"\n dividers\n icon=\"help\"\n iconTone=\"warning\"\n destructive\n title=\"\u00BFDescartar los cambios?\"\n description=\"Tienes cambios sin guardar en esta pantalla.\"\n secondaryLabel=\"Cancelar\"\n primaryLabel=\"Descartar y continuar\"\n (closed)=\"cancelarDescarte.emit()\"\n (secondary)=\"cancelarDescarte.emit()\"\n (primary)=\"confirmarDescarte.emit()\"\n />\n}\n\n<ng-template #ilustracionError>\n <ius-illustration name=\"screenError\" size=\"small\" />\n</ng-template>\n", styles: [".ius-alertas-panel__centro{min-height:100%}\n"] }]
885
+ }], ctorParameters: () => [], propDecorators: { offsetTop: [{ type: i0.Input, args: [{ isSignal: true, alias: "offsetTop", required: false }] }], abierto: [{ type: i0.Input, args: [{ isSignal: true, alias: "abierto", required: false }] }], estado: [{ type: i0.Input, args: [{ isSignal: true, alias: "estado", required: false }] }], grupos: [{ type: i0.Input, args: [{ isSignal: true, alias: "grupos", required: false }] }], modulos: [{ type: i0.Input, args: [{ isSignal: true, alias: "modulos", required: false }] }], filtro: [{ type: i0.Input, args: [{ isSignal: true, alias: "filtro", required: false }] }], hayMarcables: [{ type: i0.Input, args: [{ isSignal: true, alias: "hayMarcables", required: false }] }], saliendo: [{ type: i0.Input, args: [{ isSignal: true, alias: "saliendo", required: false }] }], ahora: [{ type: i0.Input, args: [{ isSignal: true, alias: "ahora", required: true }] }], descarte: [{ type: i0.Input, args: [{ isSignal: true, alias: "descarte", required: false }] }], rechazo: [{ type: i0.Input, args: [{ isSignal: true, alias: "rechazo", required: false }] }], resolviendo: [{ type: i0.Input, args: [{ isSignal: true, alias: "resolviendo", required: false }] }], cerrar: [{ type: i0.Output, args: ["cerrar"] }], reintentar: [{ type: i0.Output, args: ["reintentar"] }], filtrar: [{ type: i0.Output, args: ["filtrar"] }], marcarVista: [{ type: i0.Output, args: ["marcarVista"] }], marcarTodas: [{ type: i0.Output, args: ["marcarTodas"] }], quitada: [{ type: i0.Output, args: ["quitada"] }], abrirAlerta: [{ type: i0.Output, args: ["abrirAlerta"] }], accionAlerta: [{ type: i0.Output, args: ["accionAlerta"] }], confirmarDescarte: [{ type: i0.Output, args: ["confirmarDescarte"] }], cancelarDescarte: [{ type: i0.Output, args: ["cancelarDescarte"] }], confirmarRechazo: [{ type: i0.Output, args: ["confirmarRechazo"] }], cancelarRechazo: [{ type: i0.Output, args: ["cancelarRechazo"] }] } });
555
886
 
556
887
  /** El panel conectado a `AlertasState`: cada web monta solo esta etiqueta. */
557
888
  class IusAlertasComponent {
@@ -559,11 +890,17 @@ class IusAlertasComponent {
559
890
  this.alertas = inject(AlertasState);
560
891
  /** Alto del encabezado de la web. */
561
892
  this.offsetTop = input(0, { ...(ngDevMode ? { debugName: "offsetTop" } : /* istanbul ignore next */ {}), transform: numberAttribute });
562
- /** Abrir la alerta en su módulo es de cada web (HU-2). */
563
- this.abrirAlerta = output();
893
+ }
894
+ alAccionar(alerta, accion) {
895
+ if (accion === 'aprobar') {
896
+ this.alertas.aprobar(alerta);
897
+ }
898
+ else {
899
+ this.alertas.pedirRechazo(alerta);
900
+ }
564
901
  }
565
902
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: IusAlertasComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
566
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: IusAlertasComponent, isStandalone: true, selector: "ius-alertas", inputs: { offsetTop: { classPropertyName: "offsetTop", publicName: "offsetTop", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { abrirAlerta: "abrirAlerta" }, ngImport: i0, template: `<ius-alertas-panel
903
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: IusAlertasComponent, isStandalone: true, selector: "ius-alertas", inputs: { offsetTop: { classPropertyName: "offsetTop", publicName: "offsetTop", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `<ius-alertas-panel
567
904
  [offsetTop]="offsetTop()"
568
905
  [abierto]="alertas.abierto()"
569
906
  [estado]="alertas.estado()"
@@ -573,14 +910,22 @@ class IusAlertasComponent {
573
910
  [hayMarcables]="alertas.hayMarcables()"
574
911
  [saliendo]="alertas.saliendo()"
575
912
  [ahora]="alertas.ahora()"
913
+ [descarte]="alertas.descarte()"
914
+ [rechazo]="alertas.rechazo()"
915
+ [resolviendo]="alertas.resolviendo()"
576
916
  (cerrar)="alertas.cerrar()"
577
917
  (reintentar)="alertas.reintentar()"
578
918
  (filtrar)="alertas.filtrar($event)"
579
919
  (marcarVista)="alertas.marcarVista($event)"
580
920
  (marcarTodas)="alertas.marcarTodasVistas()"
581
921
  (quitada)="alertas.quitar($event)"
582
- (abrirAlerta)="abrirAlerta.emit($event)"
583
- />`, isInline: true, dependencies: [{ kind: "component", type: AlertasPanelComponent, selector: "ius-alertas-panel", inputs: ["offsetTop", "abierto", "estado", "grupos", "modulos", "filtro", "hayMarcables", "saliendo", "ahora"], outputs: ["cerrar", "reintentar", "filtrar", "marcarVista", "marcarTodas", "quitada", "abrirAlerta"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
922
+ (abrirAlerta)="alertas.abrir($event)"
923
+ (accionAlerta)="alAccionar($event.alerta, $event.accion)"
924
+ (confirmarDescarte)="alertas.confirmarDescarte()"
925
+ (cancelarDescarte)="alertas.cancelarDescarte()"
926
+ (confirmarRechazo)="alertas.rechazar($event)"
927
+ (cancelarRechazo)="alertas.cancelarRechazo()"
928
+ />`, isInline: true, dependencies: [{ kind: "component", type: AlertasPanelComponent, selector: "ius-alertas-panel", inputs: ["offsetTop", "abierto", "estado", "grupos", "modulos", "filtro", "hayMarcables", "saliendo", "ahora", "descarte", "rechazo", "resolviendo"], outputs: ["cerrar", "reintentar", "filtrar", "marcarVista", "marcarTodas", "quitada", "abrirAlerta", "accionAlerta", "confirmarDescarte", "cancelarDescarte", "confirmarRechazo", "cancelarRechazo"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
584
929
  }
585
930
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: IusAlertasComponent, decorators: [{
586
931
  type: Component,
@@ -598,21 +943,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
598
943
  [hayMarcables]="alertas.hayMarcables()"
599
944
  [saliendo]="alertas.saliendo()"
600
945
  [ahora]="alertas.ahora()"
946
+ [descarte]="alertas.descarte()"
947
+ [rechazo]="alertas.rechazo()"
948
+ [resolviendo]="alertas.resolviendo()"
601
949
  (cerrar)="alertas.cerrar()"
602
950
  (reintentar)="alertas.reintentar()"
603
951
  (filtrar)="alertas.filtrar($event)"
604
952
  (marcarVista)="alertas.marcarVista($event)"
605
953
  (marcarTodas)="alertas.marcarTodasVistas()"
606
954
  (quitada)="alertas.quitar($event)"
607
- (abrirAlerta)="abrirAlerta.emit($event)"
955
+ (abrirAlerta)="alertas.abrir($event)"
956
+ (accionAlerta)="alAccionar($event.alerta, $event.accion)"
957
+ (confirmarDescarte)="alertas.confirmarDescarte()"
958
+ (cancelarDescarte)="alertas.cancelarDescarte()"
959
+ (confirmarRechazo)="alertas.rechazar($event)"
960
+ (cancelarRechazo)="alertas.cancelarRechazo()"
608
961
  />`,
609
962
  changeDetection: ChangeDetectionStrategy.OnPush,
610
963
  }]
611
- }], propDecorators: { offsetTop: [{ type: i0.Input, args: [{ isSignal: true, alias: "offsetTop", required: false }] }], abrirAlerta: [{ type: i0.Output, args: ["abrirAlerta"] }] } });
964
+ }], propDecorators: { offsetTop: [{ type: i0.Input, args: [{ isSignal: true, alias: "offsetTop", required: false }] }] } });
612
965
 
613
966
  /**
614
967
  * Generated bundle index. Do not edit.
615
968
  */
616
969
 
617
- export { ALERTAS_CONFIG, AlertasApiService, AlertasHubService, AlertasPanelComponent, AlertasState, IusAlertasComponent, MODULOS_ALERTA, SERVICIO_NO_DISPONIBLE, agruparAlertasPorDia, ahoraEnColombia, claveAlerta, coincideConSalida, esDelPanel, etiquetaDia, hayMarcables, horaCorta, modulosConPendientes, provideAlertas, tiempoDeAlerta };
970
+ export { ALERTAS_CONFIG, AlertasApiService, AlertasHubService, AlertasPanelComponent, AlertasState, IusAlertasComponent, MODULOS_ALERTA, SERVICIO_NO_DISPONIBLE, agruparAlertasPorDia, ahoraEnColombia, claveAlerta, coincideConSalida, esDelPanel, etiquetaDia, hayMarcables, horaCorta, modulosConPendientes, pathDeRuta, provideAlertas, resolverDestino, tiempoDeAlerta };
618
971
  //# sourceMappingURL=litigiovirtual-ius-alertas.mjs.map